/* ══════════════════════════════════════════════════════════════
   youwhatknow — shared design system
   Extracted from docs/index.html + docs/docs.html
   ══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables ── */
:root {
    --bg: #0a0a0c;
    --bg-card: #111114;
    --glow: #39ff85;
    --glow-dim: #39ff8533;
    --glow-mid: #39ff8566;
    --amber: #ffb830;
    --amber-dim: #ffb83033;
    --red: #ff4f4f;
    --text: #c8c8d0;
    --text-dim: #5a5a6e;
    --border: #1e1e28;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
    --display: 'Space Mono', monospace;
    --serif: 'Instrument Serif', Georgia, serif;
}

/* ── 2. Reset & Body ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── 3. Overlays ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    pointer-events: none;
    z-index: 9999;
}

body.landing::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
    pointer-events: none;
    z-index: 9998;
}

/* ── 4. Base typography ── */
a { color: var(--glow); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.muted { color: var(--text-dim); max-width: 600px; }
.muted strong { color: var(--text); font-weight: 500; }
section { padding: 5rem 0; }

.glow { color: var(--glow); }
.amber { color: var(--amber); }
.red { color: var(--red); }

/* ── 5. Nav ── */
nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
}

nav .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    font-size: 12px;
}

.nav-links a.active { color: #fff; }

/* ── 6. Section labels ── */
.section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--glow);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── 7. Headings ── */
h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h3 {
    font-family: var(--display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

/* ── 8. Hero ── */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--glow);
    border: 1px solid var(--glow-dim);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    margin-bottom: 2.5rem;
    background: var(--glow-dim);
    animation: fadeSlideUp 0.8s ease both;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--glow);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: #fff;
    margin-bottom: 0.5em;
    animation: fadeSlideUp 0.8s ease 0.1s both;
}

.hero h1 em {
    font-style: normal;
    color: var(--glow);
    text-shadow: 0 0 40px var(--glow-dim), 0 0 80px var(--glow-dim);
}

.hero-tagline {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s ease 0.15s both;
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeSlideUp 0.8s ease 0.2s both;
}

.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glow);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    animation: fadeSlideUp 0.8s ease 0.3s both;
    text-decoration: none;
}

.hero-cta:hover {
    background: #fff;
    text-decoration: none;
    box-shadow: 0 0 30px var(--glow-dim);
}

.hero-logo {
    filter: drop-shadow(0 0 40px rgba(57, 255, 133, 0.3));
    animation: fadeSlideUp 0.8s ease 0.2s both;
    margin-bottom: 2rem;
}

.hero-links {
    margin-top: 2rem;
    animation: fadeSlideUp 0.8s ease 0.4s both;
}

.hero-links a {
    font-size: 13px;
}

.hero-links a + a { margin-left: 2rem; }

/* ── 9. Terminal ── */
.terminal-section {
    padding: 3rem 0 6rem;
    animation: fadeSlideUp 1s ease 0.5s both;
}

.terminal-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.terminal {
    background: #0d0d12;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    font-size: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 650px;
    margin: 0 auto;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #161620;
    border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }

.terminal-bar-title {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-dim);
}

.terminal-body {
    padding: 16px;
    min-height: 320px;
}

.term-line {
    margin-bottom: 2px;
    opacity: 0;
    animation: termFadeIn 0.15s ease forwards;
    white-space: nowrap;
}

.t-prompt { color: var(--glow); }
.t-cmd { color: var(--text); }
.t-file { color: var(--amber); }
.t-warn { color: var(--red); }
.t-ok { color: var(--glow); }
.t-dim { color: var(--text-dim); }
.t-bold { font-weight: 700; }

.cursor-blink {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--glow);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* ── 10. Conversation bubbles ── */
.convo {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 620px;
}

.bubble {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.6;
    position: relative;
    animation: fadeSlideUp 0.5s ease both;
}

.bubble-claude {
    background: #161620;
    border: 1px solid var(--border);
    align-self: flex-start;
    border-left: 3px solid var(--amber);
}

.bubble-you {
    background: var(--bg);
    border: 1px solid var(--border);
    align-self: flex-end;
    border-right: 3px solid var(--red);
    text-align: right;
    font-style: italic;
    color: var(--red);
}

.bubble-ywk {
    background: #0d1a10;
    border: 1px solid #1a3d1f;
    align-self: flex-start;
    border-left: 3px solid var(--glow);
    color: var(--glow);
}

.bubble-who {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
    opacity: 0.6;
}

/* ── 11. Flow steps ── */
.flow { display: grid; gap: 0; margin-top: 3rem; }

.flow-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.flow-step:last-child { border-bottom: none; }
.flow-step > *:not(.flow-num) { grid-column: 2; }

.flow-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--glow);
    line-height: 1;
    text-shadow: 0 0 20px var(--glow-dim);
}

.flow-step h3 {
    font-family: var(--display);
    font-size: 14px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.flow-step p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

.flow-step code {
    display: inline-block;
    background: var(--glow-dim);
    color: var(--glow);
    padding: 0.15em 0.5em;
    font-size: 11px;
    margin-top: 0.75rem;
    border: 1px solid var(--glow-dim);
}

.flow-aside,
.flow-step aside {
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ── 12. Architecture diagram ── */
.arch-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 3rem;
    border-top: 2px solid var(--glow);
}

.arch-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.arch-row:last-child { margin-bottom: 0; }

.arch-box {
    padding: 0.75rem 1.5rem;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--bg);
    min-width: 160px;
}

.arch-box.primary {
    border-color: var(--glow-mid);
    color: var(--glow);
    box-shadow: 0 0 20px var(--glow-dim);
}

.arch-box.secondary { border-color: var(--amber-dim); color: var(--amber); }

.arch-arrow-down {
    display: block;
    text-align: center;
    margin: 0.75rem 0;
    color: var(--text-dim);
    font-size: 13px;
}

/* ── 13. Benefits grid ── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 3rem;
    border: 1px solid var(--border);
}

.benefit { background: var(--bg-card); padding: 2.5rem 2rem; }
.benefit-icon { font-size: 1.5rem; margin-bottom: 1rem; display: block; }

.benefit h3 {
    font-family: var(--display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 0.75rem;
}

.benefit p { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }

/* ── 14. Setup / Code blocks ── */
.setup-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-top: 2rem;
    overflow: hidden;
}

.setup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #161620;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-dim);
}

.setup-tag {
    color: var(--glow);
    background: var(--glow-dim);
    padding: 0.2em 0.6em;
    font-size: 10px;
}

.setup-code {
    padding: 1.5rem;
    font-size: 12.5px;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre;
    font-family: var(--mono);
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 1rem 0 1.5rem;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    background: #161620;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-dim);
}

.code-tag {
    color: var(--glow);
    background: var(--glow-dim);
    padding: 0.15em 0.5em;
    font-size: 10px;
}

.code-body {
    padding: 1.25rem;
    font-size: 12.5px;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre;
    font-family: var(--mono);
}

/* Syntax highlighting */
.k { color: var(--amber); }
.s { color: var(--glow); }
.c { color: var(--text-dim); font-style: italic; }
.v { color: var(--text); }

/* ── 15. Config tables ── */
.config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 1rem 0 1.5rem;
}

.config-table th {
    text-align: left;
    font-family: var(--display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
}

.config-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.config-table tr:last-child td { border-bottom: none; }

.config-key {
    font-weight: 500;
    color: var(--amber);
    white-space: nowrap;
}

.config-default {
    color: var(--glow);
    font-size: 12px;
    white-space: nowrap;
}

.config-desc {
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.6;
}

/* ── 16. Endpoint cards ── */
.endpoint {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 1rem 0;
}

.endpoint-method {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2em 0.6em;
    margin-right: 0.75rem;
    border: 1px solid;
}

.endpoint-method.get {
    color: var(--glow);
    border-color: var(--glow-dim);
    background: var(--glow-dim);
}

.endpoint-method.post {
    color: var(--amber);
    border-color: var(--amber-dim);
    background: var(--amber-dim);
}

.endpoint-path {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.endpoint p {
    margin-top: 0.75rem;
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ── 17. Callouts ── */
.callout {
    background: #0d1a10;
    border: 1px solid #1a3d1f;
    border-left: 3px solid var(--glow);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 13px;
    color: var(--glow);
    line-height: 1.7;
}

.callout-warn {
    background: #1a1510;
    border-color: #3d2e1f;
    border-left-color: var(--amber);
    color: var(--amber);
}

/* ── 18. Docs-specific ── */
body.docs .container { max-width: 800px; }
body.docs h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; line-height: 1.3; }
body.docs h3 { margin: 2rem 0 0.75rem; }
body.docs .footer-logo { font-size: 1.25rem; }

.page-header {
    margin-bottom: 4rem;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-dim);
    max-width: 550px;
    font-size: 14px;
}

.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    margin-bottom: 4rem;
    border-left: 3px solid var(--glow);
}

.toc-title {
    font-family: var(--display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--glow);
    margin-bottom: 0.75rem;
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 2rem;
}

.toc li { font-size: 13px; }
.toc li::before { content: ''; }

.doc-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

.doc-section p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 650px;
}

.doc-section p strong { color: var(--text); font-weight: 500; }

.doc-section ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.doc-section li { margin-bottom: 0.3rem; list-style-type: disc; color: var(--text-dim); font-size: 13.5px; line-height: 1.8; }

.file-tree {
    font-size: 13px;
    line-height: 2;
    padding: 1rem 0;
}

.file-tree .dir { color: var(--amber); }
.file-tree .file { color: var(--text-dim); }
.file-tree .desc { color: var(--text-dim); font-size: 11px; }

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin: 1rem 0 1.5rem;
}

.lang-card {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
}

.lang-card h4 {
    font-family: var(--display);
    font-size: 12px;
    color: #fff;
    margin-bottom: 0.25rem;
}

.lang-card .exts {
    font-size: 11px;
    color: var(--amber);
    margin-bottom: 0.5rem;
}

.lang-card p {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
}

details { margin-top: 2rem; color: var(--text-dim); font-size: 13px; }
summary { cursor: pointer; color: var(--text); margin-bottom: 1rem; }

/* ── 19. Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p { font-size: 12px; color: var(--text-dim); }

.footer-logo {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-quip {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 1rem;
}

.footer-links { margin-bottom: 0.75rem; }
.footer-links a { font-size: 12px; }
.footer-links a + a { margin-left: 1.5rem; }

/* ── 20. Animations ── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes termFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── 21. Responsive ── */
@media (max-width: 900px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .arch-row { flex-direction: column; }
    .bubble-you { align-self: flex-start; text-align: left; }
}

@media (max-width: 600px) {
    .toc ul { grid-template-columns: 1fr; }
    .lang-grid { grid-template-columns: 1fr; }
    .config-table { font-size: 12px; }
}

/* ── 22. Docs sidebar layout ── */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-title {
    font-family: var(--display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--glow);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.15rem;
}

.sidebar-nav a {
    display: block;
    font-size: 12.5px;
    color: var(--text-dim);
    padding: 0.3rem 0.75rem;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.sidebar-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.sidebar-nav a.active {
    color: var(--glow);
    border-left-color: var(--glow);
    background: var(--glow-dim);
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--glow-dim);
    color: var(--glow);
    width: 44px;
    height: 44px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

body.docs-page nav { margin-bottom: 2rem; }

.doc-content {
    min-width: 0;
    overflow-wrap: break-word;
}

.doc-content h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.doc-content h3 {
    font-family: var(--display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

.doc-content h4 {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    margin: 1.5rem 0 0.5rem;
}

.doc-content p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 650px;
}

.doc-content p strong { color: var(--text); font-weight: 500; }

.doc-content ul, .doc-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.doc-content li {
    margin-bottom: 0.3rem;
    list-style-type: disc;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.8;
}

.doc-content code {
    background: var(--glow-dim);
    color: var(--glow);
    padding: 0.15em 0.4em;
    font-size: 0.9em;
    font-family: var(--mono);
}

.doc-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.8;
    position: relative;
}

.doc-content pre code {
    background: none;
    color: var(--text);
    padding: 0;
    font-size: inherit;
}

.doc-content blockquote {
    background: #0d1a10;
    border: 1px solid #1a3d1f;
    border-left: 3px solid var(--glow);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 13px;
    color: var(--glow);
    line-height: 1.7;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 1rem 0 1.5rem;
}

.doc-content th {
    text-align: left;
    font-family: var(--display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
}

.doc-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.6;
}

.doc-content td:first-child {
    font-weight: 500;
    color: var(--amber);
    white-space: nowrap;
}

.doc-content td code {
    font-size: 11px;
}

.doc-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 10px;
    font-family: var(--mono);
    padding: 0.2em 0.5em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.doc-content pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--glow); border-color: var(--glow-dim); }

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 0;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        max-height: 100vh;
        background: var(--bg);
        border-right: 1px solid var(--border);
        z-index: 999;
        padding: 2rem 1.5rem;
        transition: left 0.3s ease;
    }

    .sidebar.open { left: 0; }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .sidebar-overlay.open { display: block; }
}

@media (max-width: 768px) {
    .docs-layout { padding: 0 1rem; max-width: 100vw; }

    .doc-content { overflow-x: hidden; }
    .doc-content p { max-width: 100%; }

    .doc-content pre {
        padding: 1rem;
        font-size: 11.5px;
        margin-left: -1rem;
        margin-right: -1rem;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .doc-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 12px;
    }

    .doc-content td:first-child { white-space: normal; }

    .doc-content blockquote {
        padding: 0.75rem 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .page-header { padding: 0 1rem; }
    .page-header h1 { font-size: 2rem; }
}
