@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --brand-accent: #ff8a24;
    --brand-accent-hover: #ffb347;
    --brand-accent-light: rgba(255, 138, 36, 0.14);
    --brand-accent-border: rgba(255, 138, 36, 0.35);
    --accent-solid: #ff8a24;

    --bg-primary: #070b16;
    --bg-secondary: #0b1222;
    --bg-tertiary: #111a30;
    --bg-elevated: #1a2542;
    --bg-code: #04060d;

    --text-primary: #efe9dc;
    --text-secondary: #9a958a;
    --text-muted: #6b6a72;
    --text-inverse: #070b16;

    --border-primary: #1a2542;
    --border-secondary: #111a30;
    --border-focus: #ff8a24;

    --brand-primary: #ff8a24;
    --brand-secondary: #9a958a;


    --color-success: #10b981;
    --color-warning: #ffb347;
    --color-error: #e6350f;
    --color-info: #3b82f6;


    --color-get: #10b981;
    --color-post: #3b82f6;
    --color-put: #f59e0b;
    --color-delete: #ef4444;
    --color-patch: #8b5cf6;

    
    --font-sans: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-headings: "Fraunces", Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    
    --space-1: 0.25rem;   
    --space-2: 0.5rem;    
    --space-3: 0.75rem;   
    --space-4: 1rem;      
    --space-5: 1.25rem;   
    --space-6: 1.5rem;    
    --space-8: 2rem;      
    --space-10: 2.5rem;   
    --space-12: 3rem;     
    --space-16: 4rem;     
    --space-20: 5rem;     

    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.30);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.40), 0 1px 2px -1px rgb(0 0 0 / 0.30);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 12px 28px -6px rgb(0 0 0 / 0.55);
    --shadow-xl: 0 24px 48px -12px rgb(0 0 0 / 0.65);


    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;

    
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);

    
    --text-xs: 0.75rem;   
    --text-sm: 0.875rem;  
    --text-base: 1rem;    
    --text-lg: 1.125rem;  
    --text-xl: 1.25rem;   
}


[data-theme="light"] {
    --bg-primary: #fdfaf2;
    --bg-secondary: #f7f1e3;
    --bg-tertiary: #efe9dc;
    --bg-elevated: #ffffff;
    --bg-code: #f7f1e3;

    --text-primary: #201a12;
    --text-secondary: #5d5748;
    --text-muted: #9a958a;
    --text-inverse: #fdfaf2;

    --border-primary: #e3dcc9;
    --border-secondary: #ece5d3;
    --border-focus: #d4400e;

    --brand-primary: #d4400e;
    --brand-secondary: #5d5748;
    --brand-accent: #d4400e;
    --brand-accent-hover: #b23409;
    --brand-accent-light: rgba(212, 64, 14, 0.09);
    --brand-accent-border: rgba(212, 64, 14, 0.30);
    --accent-solid: #d4400e;

    --shadow-sm: 0 1px 2px 0 rgb(32 26 18 / 0.05);
    --shadow: 0 1px 3px 0 rgb(32 26 18 / 0.07), 0 1px 2px -1px rgb(32 26 18 / 0.05);
    --shadow-md: 0 4px 12px -2px rgb(32 26 18 / 0.08);
    --shadow-lg: 0 12px 28px -6px rgb(32 26 18 / 0.10);
    --shadow-xl: 0 24px 48px -12px rgb(32 26 18 / 0.14);

    --color-success: #059669;
    --color-warning: #d97706;
    --color-error: #c22d0c;
    --color-info: #2563eb;

    --color-get: #059669;
    --color-post: #2563eb;
    --color-put: #d97706;
    --color-delete: #dc2626;
    --color-patch: #7c3aed;
}

pre[class*="language-"],
code[class*="language-"] {
    background: var(--bg-code);
    color: var(--code-text);
    text-shadow: none;
    font-family: var(--font-mono);
}

/* ===== Syntax palette (own theme, replaces prism-tomorrow) ===== */
:root {
    --code-text: #e4e4e7;
    --code-comment: #71717a;
    --code-punct: #a1a1aa;
    --code-property: #7dd3fc;
    --code-string: #86efac;
    --code-number: #fda4af;
    --code-keyword: #c4b5fd;
    --code-function: #93c5fd;
    --code-operator: #a1a1aa;
}

[data-theme="light"] {
    --code-text: #27272a;
    --code-comment: #a1a1aa;
    --code-punct: #52525b;
    --code-property: #0369a1;
    --code-string: #15803d;
    --code-number: #be123c;
    --code-keyword: #7c3aed;
    --code-function: #1d4ed8;
    --code-operator: #52525b;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: var(--code-comment);
    font-style: italic;
}

.token.punctuation {
    color: var(--code-punct);
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: var(--code-property);
}

.token.boolean,
.token.number {
    color: var(--code-number);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: var(--code-string);
}

.token.operator,
.token.entity,
.token.url,
.token.variable,
.token.parameter {
    color: var(--code-operator);
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
    color: var(--code-function);
}

.token.keyword {
    color: var(--code-keyword);
}

.token.regex,
.token.important {
    color: var(--code-number);
}

.token.bold { font-weight: 600; }


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px; 
    font-weight: 400;
    line-height: 1.6;
    transition: var(--transition-colors);
    overflow-x: hidden;
}

h1 { 
    font-family: var(--font-headings);
    font-size: 1.875rem; 
    font-weight: 400;
    margin-bottom: var(--space-6);
}
h2 { 
    font-family: var(--font-headings);
    font-size: 1.5rem; 
    font-weight: 400;
    margin-bottom: var(--space-5);
}
h3 { 
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 400;    
    margin-top: var(--space-12);
}

.request-title {
    margin-top: var(--space-6);
}

h4 { 
    font-family: var(--font-headings);
    font-size: 0.875rem;
    font-weight: 500;
}
h5 { 
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-3);
}
h6 { 
    font-family: var(--font-headings);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

p {
    color: var(--text-secondary);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.6;
    font-weight: 400;
}

code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius);
    font-weight: 400;
}


.main-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 4rem;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: color-mix(in srgb, var(--bg-primary) 85%, transparent);
    height: 4rem;
    border-bottom: 1px solid var(--border-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-content {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1.5rem;
    gap: 1rem;
}

.navbar-content .navbar-nav {
    margin-left: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 400; 
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--brand-primary);
}

.navbar-brand-icon {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.brand-badge {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    line-height: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: var(--space-2) var(--space-1);
    transition: var(--transition-colors);
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: transparent;
}

.nav-link.active {
    color: var(--brand-accent);
}


.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: var(--transition-colors);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4375rem 1rem;
    background: var(--accent-solid);
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

:root:not([data-theme="light"]) .navbar-cta {
    color: #1c1917;
}

.navbar-cta:hover {
    background: color-mix(in srgb, var(--accent-solid) 88%, #000);
}

.navbar-tabs {
    display: none;
    align-items: center;
    gap: var(--space-1);
    margin: 0 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.navbar-tabs::-webkit-scrollbar { display: none; }

body.has-tabs .navbar-tabs {
    display: flex;
}

.navbar-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4375rem 0.875rem;
    background: none;
    border: none;
    border-radius: 9999px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-colors);
}

.navbar-tab i {
    display: none;
}

.navbar-tab:hover {
    color: var(--text-primary);
}

.navbar-tab.active {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

@media (max-width: 1024px) {
    .navbar-tabs {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        z-index: 40;
        height: 2.75rem;
        margin: 0;
        padding: 0 1rem;
        background-color: color-mix(in srgb, var(--bg-primary) 85%, transparent);
        border-bottom: 1px solid var(--border-secondary);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.has-tabs .main-layout {
        padding-top: 6.75rem;
    }

    body.has-tabs .sidebar,
    body.has-tabs .toc-sidebar {
        top: 6.75rem;
        height: calc(100vh - 6.75rem);
    }
}

.navbar-logo {
    height: 1.75rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-logo:hover {
    opacity: 0.8;
}

.hero-logo {
    text-align: center;
    margin-bottom: var(--space-6);
}

.hero-logo-img {
    height: 4rem;
    width: auto;
    max-width: 16rem;
    object-fit: contain;
}

.footer-logo {
    height: 3rem;
    width: auto;
    max-width: 16rem;
    object-fit: contain;
    margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 1.5rem;
        max-width: 6rem;
    }
    
    .hero-logo-img {
        height: 3.5rem;
        max-width: 14rem;
    }

    .footer-logo {
        height: 2.75rem;
        max-width: 12rem;
    }
    
    .footer-content {
        padding: 0 var(--space-4);
    }
}


.sidebar {
    width: 16rem;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-secondary);
    overflow-y: auto;
    padding: var(--space-6) 0 var(--space-8) 0;
    position: fixed;
    top: 4rem;
    left: 0;
    height: calc(100vh - 4rem);
    z-index: 30;
}

.sidebar-section {
    margin-bottom: var(--space-6);
    padding: 0 var(--space-5);
}

.sidebar-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: var(--space-2);
    padding: 0 var(--space-3);
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav-item {
    margin-bottom: var(--space-1);
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.375rem var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 400;
    transition: var(--transition-colors);
    line-height: 1.45;
}

.sidebar-nav-link i {
    width: 1rem;
    font-size: 0.8125rem;
    text-align: center;
    color: var(--text-muted);
}

.sidebar-nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.sidebar-nav-link.active {
    color: var(--brand-accent);
    background-color: var(--brand-accent-light);
    font-weight: 500;
}

.sidebar-nav-link.active i {
    color: var(--brand-accent);
}


.method-badge {
    --method-color: var(--text-secondary);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.4375rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    min-width: 2.75rem;
    text-align: center;
    font-family: var(--font-sans);
    background-color: color-mix(in srgb, var(--method-color) 12%, transparent);
    color: var(--method-color);
    border: none;
    flex-shrink: 0;
}

.method-get { --method-color: var(--color-get); }
.method-post { --method-color: var(--color-post); }
.method-put { --method-color: var(--color-put); }
.method-delete { --method-color: var(--color-delete); }
.method-patch { --method-color: var(--color-patch); }


.main-content {
    flex: 1;
    min-width: 0;
    margin-left: 16rem;
    margin-right: 14rem;
    padding: var(--space-6);
    max-width: calc(100vw - 30rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.main-content.no-toc {
    margin-right: 0;
    max-width: calc(100vw - 16rem); 
}

.main-content > * {
    width: 100%;
    max-width: 1024px;
    min-width: 0;
}


.main-content.no-toc > * {
    max-width: 1200px;
}


.hero-section {
    padding: var(--space-16) 0 var(--space-12) 0;
    text-align: center;
    margin-bottom: var(--space-8);
    width: 100%;
    position: relative;
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
    line-height: 1.1;
    position: relative;
}

.hero-title .brand-accent {
    color: var(--brand-accent);
    font-weight: 700;
}

.hero-subtitle {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-weight: 400;
    line-height: 1.6;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    line-height: 1.6;
    font-weight: 400;
}

.url-base {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    font-size: 0.875rem;
    font-weight: 400;
}

.note-box, .audience-box, .warning-box {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    margin: var(--space-4) 0;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.note-box-content, .audience-box-content, .warning-box-content {
    flex: 1;
    margin: 0;
}


.note-box {
    color: var(--text-secondary);
}


.audience-box {
    color: var(--text-secondary);
}


.warning-box {
    border-color: color-mix(in srgb, var(--color-warning) 30%, var(--border-primary));
    color: var(--text-secondary);
}


.critical-box {
    border-left-color: var(--brand-accent);
    background-color: var(--brand-accent-light);
    color: var(--text-secondary);
    border-color: var(--brand-accent-border);
}

.critical-box::before {
    content: "\f071"; 
    background-color: var(--brand-accent);
    color: #ffffff;
}


.note-box h4, .note-box h5, .note-box h6,
.audience-box h4, .audience-box h5, .audience-box h6,
.warning-box h4, .warning-box h5, .warning-box h6 {
    margin: 0 0 var(--space-2) 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.note-box p:last-child,
.audience-box p:last-child,
.warning-box p:last-child {
    margin-bottom: 0;
}


.success-box {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    font-size: 0.875rem;
    line-height: 1.6;
    border-left: 4px solid #666666;
    background-color: rgba(102, 102, 102, 0.06);
    border: 1px solid rgba(102, 102, 102, 0.15);
    color: var(--text-secondary);
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.success-box::before {
    content: "\f00c"; 
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #666666;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.error-box {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    font-size: 0.875rem;
    line-height: 1.6;
    border-left: 4px solid #333333;
    background-color: rgba(51, 51, 51, 0.06);
    border: 1px solid rgba(51, 51, 51, 0.15);
    color: var(--text-secondary);
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.error-box::before {
    content: "\f00d"; 
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #333333;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}


@media (max-width: 768px) {
    .note-box, .audience-box, .warning-box,
    .success-box, .error-box {
        padding: var(--space-3) var(--space-4);
        font-size: 0.8125rem;
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .success-box::before, .error-box::before {
        align-self: flex-start;
        margin-top: 0;
    }
}


.hero-stats {
    display: flex;
    gap: var(--space-8);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 200; 
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
    font-weight: 400;
}


.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, var(--brand-accent-light), rgba(0, 0, 0, 0.05));
    color: var(--brand-accent);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--brand-accent-border);
    margin-bottom: var(--space-4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-brand-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-brand-badge::before {
    content: "⚡";
    font-size: 1rem;
}


.steps-section {
    margin-top: var(--space-8);
    padding: var(--space-8) 0;
    width: 100%;
}

.steps-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.steps-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-2);
}

.steps-subtitle {
    font-family: var(--font-headings);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

.step-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step-item:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.step-item:hover .step-number {
    transform: translateY(-2px) scale(1.05);
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto var(--space-4) auto;
}

.step-content h4 {
    font-family: var(--font-headings);
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
    font-weight: 400;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-3);
    font-weight: 400;
}

.step-duration {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
}

.step-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
}

.step-link:hover {
    text-decoration: underline;
}


.features-section {
    margin: var(--space-4) 0;
    padding: var(--space-8) 0;
    width: 100%;
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.features-title {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.features-subtitle {
    font-family: var(--font-headings);
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 48rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

.feature-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    border-color: color-mix(in srgb, var(--text-muted) 45%, var(--border-primary));
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: var(--transition);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-accent-light);
    border: 1px solid var(--brand-accent-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    transition: var(--transition-colors);
}

.feature-icon i {
    font-size: 1.125rem;
    color: var(--brand-accent);
}

.feature-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-weight: 400;
}

.feature-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: var(--transition);
}

.feature-link:hover {
    color: var(--brand-primary);
    transform: translateX(2px);
}


.quick-start-section {
    margin: var(--space-16) 0;
    padding: var(--space-12) 0;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-primary);
    width: 100%;
    transition: var(--transition);
}

.quick-start-section:hover {
    border-color: var(--brand-accent) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

.quick-start-header {
    text-align: center;
    margin-bottom: var(--space-8);
    padding: 0 var(--space-6);
}

.quick-start-title {
    font-family: var(--font-headings);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.quick-start-subtitle {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 48rem;
    margin: 0 auto;
}

.quick-start-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.quick-start-example {
    display: grid;
    gap: var(--space-4);
}

.quick-start-response {
    position: relative;
    margin-top: 2rem;
}

.quick-start-response::before {
    content: '↓ Respuesta';
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.testimonials-section {
    margin: var(--space-16) 0;
    padding: var(--space-8) 0;
    width: 100%;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.testimonials-title {
    font-family: var(--font-headings);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

.testimonial-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    transition: var(--transition);
}

.testimonial-item:hover {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    font-size: 3rem;
    color: var(--text-muted);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
    margin: 0 0 var(--space-6) 0;
    padding-left: var(--space-8);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.author-company {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}


[data-theme="light"] .testimonial-item::before {
    color: var(--text-muted);
}


@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .feature-item {
        padding: var(--space-6);
        text-align: center;
    }
    
    .features-title {
        font-size: 1.75rem;
    }
    
    .quick-start-title {
        font-size: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .testimonials-title {
        font-size: 1.5rem;
    }
    
    .testimonial-item {
        padding: var(--space-6);
    }
    
    .testimonial-quote {
        font-size: 0.875rem;
        padding-left: var(--space-6);
    }
    
    .quick-start-content {
        padding: 0 var(--space-4);
    }
}


.content-section {
    padding: 0;
    margin-bottom: var(--space-12);
    width: 100%;
}

.content-section:last-child { margin-bottom: var(--space-8); }

.section-header {
    margin-bottom: var(--space-4);
}

.section-header .feature-icon { display: none; }

.section-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.section-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-accent);
    color: #ffffff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.section-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background-color: var(--brand-accent-hover);
}

.section-icon:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.section-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.section-icon:hover i {
    transform: scale(1.1);
}


.fas, .fab, .far, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.fas {
    font-weight: 900 !important;
}

.fab {
    font-weight: 400 !important;
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
}


.fa-info-circle::before,
.fas.fa-info-circle::before {
    content: "\f05a" !important;
}

.fa-laptop-code::before,
.fas.fa-laptop-code::before {
    content: "\f5fc" !important;
}

.fa-home::before,
.fas.fa-home::before {
    content: "\f015" !important;
}

.fa-play-circle::before,
.fas.fa-play-circle::before {
    content: "\f144" !important;
}

.fa-key::before,
.fas.fa-key::before {
    content: "\f084" !important;
}

.fa-code::before,
.fas.fa-code::before {
    content: "\f121" !important;
}

.fa-server::before,
.fas.fa-server::before {
    content: "\f233" !important;
}

.fa-rocket::before,
.fas.fa-rocket::before {
    content: "\f135" !important;
}

.fa-webhook::before,
.fas.fa-webhook::before {
    content: "\f793" !important;
}

.fa-exclamation-triangle::before,
.fas.fa-exclamation-triangle::before {
    content: "\f071" !important;
}

.fa-file-alt::before,
.fas.fa-file-alt::before {
    content: "\f15c" !important;
}

.fa-book::before,
.fas.fa-book::before {
    content: "\f02d" !important;
}

.fa-moon::before,
.fas.fa-moon::before {
    content: "\f186" !important;
}

.fa-sun::before,
.fas.fa-sun::before {
    content: "\f185" !important;
}

.fa-bars::before,
.fas.fa-bars::before {
    content: "\f0c9" !important;
}

.fa-spinner::before,
.fas.fa-spinner::before {
    content: "\f110" !important;
}

.fa-copy::before,
.fas.fa-copy::before {
    content: "\f0c5" !important;
}

.fa-terminal::before,
.fas.fa-terminal::before {
    content: "\f120" !important;
}

.fa-js-square::before,
.fab.fa-js-square::before {
    content: "\f3b9" !important;
}

.fa-python::before,
.fab.fa-python::before {
    content: "\f3e2" !important;
}

.fa-network-wired::before,
.fas.fa-network-wired::before {
    content: "\f6ff" !important;
}

.fa-globe-americas::before,
.fas.fa-globe-americas::before {
    content: "\f57d" !important;
}

.fa-shield-alt::before,
.fas.fa-shield-alt::before {
    content: "\f3ed" !important;
}

.fa-paper-plane::before,
.fas.fa-paper-plane::before {
    content: "\f1d8" !important;
}


.section-icon:not([class*="fa-"])::before {
    content: "📄" !important;
    font-size: 1.2rem !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}


.section-icon i:empty::after {
    content: "📄";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.2rem;
}


.fa-fallback .section-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", monospace !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.fa-fallback .sidebar-nav-link i,
.fa-fallback .navbar i,
.fa-fallback .btn i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", monospace !important;
    font-weight: 900 !important;
    font-style: normal !important;
}


.section-icon i,
.sidebar-nav-link i,
.navbar i {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.014em;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

.endpoint-method {
    width: 3.3rem;
    padding: 0.1rem 0.3rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border-color: rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.endpoint-card {
    overflow: hidden;
    margin: var(--space-6) 0;
}

.endpoint-header {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.endpoint-path {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 480;
}

.endpoint-body {
    padding: var(--space-6);
}


.table-container {
    overflow-x: auto;
    margin: var(--space-4) 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    font-weight: 400;
    background-color: var(--bg-secondary);

}

.table th {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 400;
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
}

.table td {
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
    font-weight: 400;
}

.table tbody tr:hover {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);

}


.content-list {
    list-style: none;
    margin: var(--space-4) 0;
    padding: 0;
}

.content-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.content-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-weight: 400;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 400; 
    text-decoration: none;
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}

.btn-hero {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--accent-solid);
    color: var(--text-inverse);
    border: 1px solid var(--accent-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--accent-solid);
    color: var(--text-inverse);
    border-color: var(--accent-solid);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-accent);
    border-color: var(--brand-accent-border);
}

.btn-outline:hover {
    background-color: var(--brand-accent-light);
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.btn-outline-neutral {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.btn-outline-neutral:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--bg-primary);
    border-color: var(--color-success);
}

.btn-success:hover {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

.btn-error {
    background-color: var(--color-error);
    color: var(--bg-primary);
    border-color: var(--color-error);
}

.btn-error:hover {
    background-color: var(--color-error);
    border-color: var(--color-error);
}

.btn-critical,
.btn-destructive {
    background-color: var(--brand-accent);
    color: #ffffff;
    border-color: var(--brand-accent);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-critical:hover,
.btn-destructive:hover {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-alert {
    background-color: var(--brand-accent-light);
    color: var(--brand-accent);
    border-color: var(--brand-accent-border);
    font-weight: 500;
}

.btn-alert:hover {
    background-color: var(--brand-accent);
    color: #ffffff;
    border-color: var(--brand-accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.code-block {
    position: relative;
    background-color: var(--bg-code);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.25rem 0;
    border: 1px solid var(--border-primary);
}

.code-title {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-mono);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0;
}

.code-block pre {
    margin: 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7 !important;
    color: var(--code-text);
    font-weight: 400;
}

.code-block code {
    background: transparent;
    padding: 0;
    font-size: 0.875rem !important;
    line-height: 1.7 !important;
    white-space: pre;
    word-wrap: normal;
    color: inherit;
    border-radius: 0;
    font-weight: 400;
}


.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.375rem;
    color: #a0a0a0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    opacity: 0.8;
    z-index: 10;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

.copy-button.copied {
    background-color: rgba(102, 102, 102, 0.2);
    color: #666666;
    border-color: rgba(102, 102, 102, 0.3);
}

.code-block:has(.code-title) .copy-button {
    top: 0.5rem;
    right: 0.5rem;
}

.code-block .highlight-line {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ffffff;
    padding-left: calc(1rem - 4px);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
}


.footer {
    background-color: var(--bg-secondary);
    padding: var(--space-16) 0;
    margin-top: var(--space-20);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
}

.footer-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.footer-subtitle {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-weight: 400;
}

.footer-license {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    font-weight: 400;
}

.footer-license a {
    color: var(--text-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-license a:hover {
    color: var(--text-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-primary);
    padding-top: var(--space-8);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}

@media (min-width: 1025px) {
    .footer.with-toc .footer-content {
        padding: 0 var(--space-6);
        max-width: calc(100vw - 16rem - 12rem);
        margin-left: 16rem;
        margin-right: 12rem;
    }
    
    .footer.no-toc .footer-content {
        padding: 0 var(--space-6);
        max-width: calc(100vw - 16rem);
        margin-left: 16rem;
        margin-right: 0;
    }
}

@media (min-width: 1201px) {
    .footer.with-toc .footer-content {
        max-width: calc(1280px - 16rem - 12rem);
        margin-left: calc(16rem + (100vw - 1280px) / 2);
        margin-right: calc(12rem + (100vw - 1280px) / 2);
    }
    
    .footer.no-toc .footer-content {
        max-width: calc(1280px - 16rem);
        margin-left: calc(16rem + (100vw - 1280px) / 2);
        margin-right: calc((100vw - 1280px) / 2);
    }
}


.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-8);
}

.loading-spinner i {
    font-size: 1.5rem;
    color: var(--text-primary);
}


.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--space-2);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 25;
}


@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 18rem;
        z-index: 40;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: var(--space-4) var(--space-6);
        max-width: 100%;
        overflow-x: hidden;
    }


    .main-content.no-toc {
        margin-right: 0;
        max-width: 100%;
    }
    
    .toc-sidebar {
        display: none; 
    }
    
    .footer-content {
        margin: 0 auto;
        max-width: 100%;
        padding: 0 var(--space-6);
    }
    
    .navbar-nav {
        display: none;
    }
    
    .navbar-nav.mobile-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-primary);
        flex-direction: column;
        padding: var(--space-4);
        gap: var(--space-2);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link {
        padding: var(--space-3);
        border-radius: var(--radius-md);
        text-align: left;
    }
    
    .theme-toggle {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title::after {
        width: 3rem;
        height: 1.5px;
    }
    
    .hero-section {
        padding: var(--space-8) 0 var(--space-6) 0;
        margin-bottom: var(--space-6);
    }
    
    .hero-section::before {
        height: 2px;
    }
    
    .hero-brand-badge {
        font-size: 0.8125rem;
        padding: var(--space-2) var(--space-3);
    }
    
    .btn-hero {
        padding: var(--space-3) var(--space-6);
        font-size: 1rem;
    }
    
    .content-section {
        padding: var(--space-4);
        margin-bottom: var(--space-6);
    }
    
    .footer-content {
        padding: 0 var(--space-4);
    }
    
    .navbar-content {
        padding: 0 var(--space-4);
    }
    
    .table-container {
        font-size: 0.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .steps-list {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .main-content {
        padding: var(--space-4);
        margin-right: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    .toc-sidebar {
        display: none !important;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .section-icon {
        align-self: flex-start;
    }
    
    .sidebar {
        width: 85vw;
        max-width: 20rem;
    }
    
    .sidebar-nav-link {
        font-size: 0.875rem;
        padding: var(--space-3);
    }
    
    .method-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.375rem;
        min-width: 3rem;
    }
    
    .code-block {
        margin: 1rem 0;
        border-radius: 0.375rem;
    }
    
    .code-block pre {
        padding: 1rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .code-title {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .copy-button {
        width: 1.75rem;
        height: 1.75rem;
        top: 0.625rem;
        right: 0.625rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: var(--space-3);
    }
    
    .table th,
    .table td {
        padding: var(--space-2) var(--space-3);
    }
    
    .main-content {
        padding: var(--space-3);
    }
    
    .main-content > * {
        max-width: 100%;
    }
    
    .navbar-content {
        padding: 0 var(--space-3);
    }
    
    .sidebar {
        width: 90vw;
    }
}

@media (min-width: 1025px) {
    .main-content {
        margin-left: 16rem;
        margin-right: 14rem; 
        padding: var(--space-6) var(--space-8);
        max-width: calc(100vw - 30rem); 
    }
    
    
    .main-content.no-toc {
        margin-right: 0;
        max-width: calc(100vw - 16rem); 
    }
    
    .sidebar {
        position: fixed;
        transform: translateX(0);
    }
    
    .toc-sidebar {
        display: block; 
    }
    
    
    .main-content.no-toc ~ .toc-sidebar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .main-content > * {
        max-width: 900px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .navbar-content {
        padding: 0 var(--space-2);
    }
    
    .main-content {
        padding: var(--space-2);
        margin-right: 0 !important;
        max-width: 100vw !important;
    }
    
    .toc-sidebar {
        display: none !important;
    }
    
    .content-section {
        padding: var(--space-3);
        margin-bottom: var(--space-4);
    }
}


.code-block pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.code-block pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .code-block pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .code-block pre::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .code-block pre::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}


.json-code,
.json-code * {
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}


.json-key {
    color: #7dd3fc !important; 
    font-weight: 400 !important;
}

.json-string {
    color: #d586ef !important; 
    font-weight: 300 !important;
}

.json-number {
    color: #fbbf24 !important; 
    font-weight: 300 !important;
}

.json-boolean {
    color: #c084fc !important; 
    font-weight: 300 !important;
}

.json-null {
    color: #f87171 !important; 
    font-weight: 300 !important;
}

.json-punctuation {
    color: #e2e8f0 !important; 
    font-weight: 300 !important;
}




.required-indicator,
.optional-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    position: relative;
}

.required-indicator {
    background-color: #666666;
    color: #ffffff;
}

.required-indicator::after {
    content: "✓";
    font-size: 0.875rem;
    font-weight: 600;
}

.optional-indicator {
    background-color: #6b7280;
    color: #ffffff;
}

.optional-indicator::after {
    content: "–";
    font-size: 1rem;
    font-weight: 600;
}


[data-theme="light"] .required-indicator {
    background-color: #666666;
}

[data-theme="light"] .optional-indicator {
    background-color: #9ca3af;
}


.required-badge,
.optional-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
}

.required-badge {
    background-color: rgba(102, 102, 102, 0.1);
    color: #666666;
    border: 1px solid rgba(102, 102, 102, 0.2);
}

.optional-badge {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

[data-theme="light"] .required-badge {
    background-color: rgba(102, 102, 102, 0.1);
    color: #666666;
    border-color: rgba(102, 102, 102, 0.2);
}

[data-theme="light"] .optional-badge {
    background-color: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.2);
}


.response-examples {
    margin: var(--space-4) 0;
}

.example-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    flex-wrap: wrap;
}

.example-tab {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-colors);
    white-space: nowrap;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.example-tab:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-focus);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.example-tab.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    font-weight: 400;
    position: relative;
}


.example-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px 1px 0 0;
}

.example-content {
    margin-top: var(--space-4);
}

.example-content .code-block {
    margin: 0;
}


.error-example {
    border-left: 4px solid var(--color-error);
}

.error-example .code-title {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border-bottom-color: rgba(239, 68, 68, 0.2);
}


[data-theme="light"] .example-tab.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="light"] .example-tab.active::after {
    background-color: var(--text-primary);
}

[data-theme="light"] .error-example .code-title {
    background-color: rgba(51, 51, 51, 0.1);
    color: #333333;
    border-bottom-color: rgba(51, 51, 51, 0.2);
}


@media (max-width: 768px) {
    .example-tabs {
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .example-tab {
        width: 100%;
        text-align: center;
        padding: var(--space-3) var(--space-4);
    }
    
    .example-tab.active::after {
        height: 2px;
        border-radius: 0 0 1px 1px;
    }
}


.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    font-size: 0.875rem;
    line-height: 1.6;
    border-left: 4px solid;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    transition: all 0.3s ease;
}

.alert:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.alert:hover::before {
    transform: translateY(-2px) scale(1.05);
}

.alert::before {
    content: '';
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}


.alert-warning {
    border-left-color: #808080;
    background-color: rgba(128, 128, 128, 0.05);
    color: var(--text-secondary);
    border-color: rgba(128, 128, 128, 0.15);
}

.alert-warning::before {
    content: "\f071"; 
    background-color: #808080;
    color: #ffffff;
}


.alert-error,
.alert-danger {
    border-left-color: #333333;
    background-color: rgba(51, 51, 51, 0.05);
    color: var(--text-secondary);
    border-color: rgba(51, 51, 51, 0.15);
}

.alert-error::before,
.alert-danger::before {
    content: "\f00d"; 
    background-color: #333333;
    color: #ffffff;
}


.alert-success {
    border-left-color: #666666;
    background-color: rgba(102, 102, 102, 0.05);
    color: var(--text-secondary);
    border-color: rgba(102, 102, 102, 0.15);
}

.alert-success::before {
    content: "\f00c"; 
    background-color: #666666;
    color: #ffffff;
}


.alert-info {
    border-left-color: #4a4a4a;
    background-color: rgba(74, 74, 74, 0.05);
    color: var(--text-secondary);
    border-color: rgba(74, 74, 74, 0.15);
}

.alert-info::before {
    content: "\f05a"; 
    background-color: #4a4a4a;
    color: #ffffff;
}


[data-theme="light"] .alert {
    background-color: var(--bg-secondary);
    border-color: var(--border-secondary);
}

[data-theme="light"] .alert-warning {
    background-color: rgba(128, 128, 128, 0.08);
    border-color: rgba(128, 128, 128, 0.2);
}

[data-theme="light"] .alert-error,
[data-theme="light"] .alert-danger {
    background-color: rgba(51, 51, 51, 0.08);
    border-color: rgba(51, 51, 51, 0.2);
}

[data-theme="light"] .alert-success {
    background-color: rgba(102, 102, 102, 0.08);
    border-color: rgba(102, 102, 102, 0.2);
}

[data-theme="light"] .alert-info {
    background-color: rgba(74, 74, 74, 0.08);
    border-color: rgba(74, 74, 74, 0.2);
}


.alert h4,
.alert .alert-title {
    margin: 0 0 var(--space-2) 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
}

.alert p:last-child {
    margin-bottom: 0;
}


.alert-dismissible {
    padding-right: var(--space-12);
}

.alert-dismiss {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: var(--space-1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.alert-dismiss:hover {
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .alert-dismiss:hover {
    background-color: rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .alert {
        padding: var(--space-3);
        font-size: 0.8125rem;
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .alert::before {
        align-self: flex-start;
        margin-top: 0;
    }
}


.toc-sidebar {
    width: 14rem;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-primary);
    position: fixed;
    top: 4rem;
    right: 0;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: var(--space-6) 0;
    z-index: 20;
    transition: var(--transition);
    scroll-behavior: smooth;
}

.toc-header {
    padding: 0 var(--space-4);
    margin-bottom: var(--space-4);
}

.toc-header h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.toc-nav {
    padding: 0 var(--space-2);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: var(--space-1);
}

.toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
    position: relative;
    margin: 1px 0;
}

.toc-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transform: translateX(1px);
}

.toc-link.active {
    color: var(--brand-accent);
    font-weight: 500;
}


.toc-item.level-2 .toc-link {
    padding-left: var(--space-5);
    font-size: 0.8125rem;
}

.toc-item.level-3 .toc-link {
    padding-left: var(--space-6);
    font-size: 0.75rem;
}

.toc-item.level-4 .toc-link {
    padding-left: var(--space-8);
    font-size: 0.75rem;
}


.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 2px;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--border-secondary);
}


@media (max-width: 1024px) {
    .toc-sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-right: 0;
        max-width: calc(100vw - 16rem);
    }
}

@media (max-width: 768px) {
    .toc-sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-right: 0 !important;
        max-width: 100vw !important;
    }
}


.toc-exclude {
    
}

.toc-include {
    
}


.toc-debug [data-toc-exclude="true"] {
    outline: 2px dashed rgba(255, 0, 0, 0.3);
    outline-offset: 2px;
}

.toc-debug [data-toc-exclude="true"]::before {
    content: "TOC Excluded";
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.75rem;
    color: red;
    background: rgba(255, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 1000;
}




.code-examples-section {
    margin: var(--space-8) 0 var(--space-6) 0;
    padding: var(--space-6);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.code-examples-section h3 {
    font-family: var(--font-headings);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.code-examples-section h3 i {
    color: var(--color-info);
    font-size: 1rem;
}


.multi-tech-examples {
    margin: var(--space-4) 0 0 0;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-secondary);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.tech-tabs::-webkit-scrollbar {
    display: none;
}

.tech-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-secondary);
    min-width: fit-content;
    text-transform: none;
}

.tech-tab:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.tech-tab.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    font-weight: 600;
}

.tech-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 2px 2px 0 0;
}

.tech-tab i {
    font-size: 1rem;
    opacity: 0.7;
}

.tech-tab.active i {
    opacity: 1;
    color: var(--brand-accent);
}

.tech-content,
.tech-examples-content {
    background: var(--bg-secondary);
    position: relative;
}

.tech-example {
    display: none;
    padding: 0;
    margin: 0;
}

.tech-example.active {
    display: block;
}

.example-header {
    padding: var(--space-5) var(--space-6) var(--space-3) var(--space-6);
    background: var(--bg-secondary);
    margin: 0;
}

.example-header h4 {
    font-family: var(--font-headings);
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
}

.example-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.tech-example pre {
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: var(--bg-code) !important;
    padding: 1rem !important;
}

.tech-example pre code {
    padding: var(--space-6) !important;
    border-radius: var(--radius-lg) !important;
    background: #000000 !important;
    font-size: 0.875rem !important;
    line-height: 1.7 !important;
    display: block;
    min-height: 200px;
}

.tech-example .line-numbers-rows > span {
    padding-right: var(--space-2) !important;
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
}


.response-example {
    margin: 0;
    padding: var(--space-4) var(--space-6) var(--space-6) var(--space-6);
    border-top: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
}

.response-example h5 {
    font-family: var(--font-headings);
    margin: 0 0 var(--space-3) 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.response-example h5::before {
    content: '↓';
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.125rem;
}

.response-example .code-block {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.response-example pre {
    margin: 0 !important;
    background: var(--bg-code) !important;
}

.response-example pre code {
    padding: var(--space-4) !important;
    font-size: 0.875rem !important;
}




@media (max-width: 768px) {
    .code-examples-section {
        margin: var(--space-6) 0 var(--space-4) 0;
        padding: var(--space-4);
    }
    
    .code-examples-section h3 {
        font-size: 1.125rem;
        margin-bottom: var(--space-3);
    }
    
    .tech-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0;
    }
    
    .tech-tab {
        flex-shrink: 0;
        padding: var(--space-3) var(--space-4);
        font-size: 0.875rem;
    }
    
    .tech-tab i {
        font-size: 0.875rem;
    }
    
    .example-header {
        padding: var(--space-4) var(--space-4) var(--space-2) var(--space-4);
    }
    
    .example-header h4 {
        font-size: 1rem;
    }
    
    .example-header p {
        font-size: 0.8125rem;
    }
    
    .tech-example pre code {
        padding: var(--space-4) !important;
        font-size: 0.8125rem !important;
    }
    
    .response-example {
        padding: var(--space-3) var(--space-4) var(--space-4) var(--space-4);
    }
    
    .response-example h5 {
        font-size: 0.9375rem;
    }
    
    .tech-example .line-numbers {
        padding-left: 3.5em !important;
    }
}

@media (max-width: 480px) {
    .code-examples-section {
        padding: var(--space-3);
        margin: var(--space-4) 0;
    }
    
    .tech-tab {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8125rem;
    }
    
    .tech-tab i {
        font-size: 0.8125rem;
    }
    
    .example-header {
        padding: var(--space-3);
    }
    
    .tech-example pre code {
        padding: var(--space-3) !important;
        font-size: 0.8125rem !important;
        min-height: 150px;
    }
    
    .response-example {
        padding: var(--space-2) var(--space-3) var(--space-3) var(--space-3);
    }
}


.tech-tab[data-tech="curl"] i,
.tech-tab[data-tech="bash"] i {
    color: #4ade80; 
}

.tech-tab[data-tech="javascript"] i,
.tech-tab[data-tech="js"] i {
    color: #f7df1e; 
}

.tech-tab[data-tech="python"] i {
    color: #3776ab; 
}

.tech-tab[data-tech="php"] i {
    color: #777bb4; 
}

.tech-tab[data-tech="java"] i {
    color: #ed8b00; 
}

.tech-tab[data-tech="csharp"] i,
.tech-tab[data-tech="c#"] i {
    color: #239120; 
}

.tech-tab[data-tech="ruby"] i {
    color: #cc342d; 
}

.tech-tab[data-tech="go"] i,
.tech-tab[data-tech="golang"] i {
    color: #00add8; 
}

.tech-tab[data-tech="node"] i,
.tech-tab[data-tech="nodejs"] i {
    color: #339933; 
}

.tech-tab[data-tech="typescript"] i,
.tech-tab[data-tech="ts"] i {
    color: #3178c6; 
}

.tech-tab[data-tech="react"] i {
    color: #61dafb; 
}

.tech-tab[data-tech="vue"] i {
    color: #4fc08d; 
}

.tech-tab[data-tech="angular"] i {
    color: #dd0031; 
}


.tech-tab.active[data-tech="curl"] i,
.tech-tab.active[data-tech="bash"] i {
    color: #4ade80;
}

.tech-tab.active[data-tech="javascript"] i,
.tech-tab.active[data-tech="js"] i {
    color: #f7df1e;
}

.tech-tab.active[data-tech="python"] i {
    color: #3776ab;
}

.tech-tab.active[data-tech="php"] i {
    color: #777bb4;
}

.tech-tab.active[data-tech="java"] i {
    color: #ed8b00;
}

.tech-tab.active[data-tech="csharp"] i,
.tech-tab.active[data-tech="c#"] i {
    color: #239120;
}

.tech-tab.active[data-tech="ruby"] i {
    color: #cc342d;
}

.tech-tab.active[data-tech="go"] i,
.tech-tab.active[data-tech="golang"] i {
    color: #00add8;
}

.tech-tab.active[data-tech="node"] i,
.tech-tab.active[data-tech="nodejs"] i {
    color: #339933;
}

.tech-tab.active[data-tech="typescript"] i,
.tech-tab.active[data-tech="ts"] i {
    color: #3178c6;
}

.tech-tab.active[data-tech="react"] i {
    color: #61dafb;
}

.tech-tab.active[data-tech="vue"] i {
    color: #4fc08d;
}

.tech-tab.active[data-tech="angular"] i {
    color: #dd0031;
}

.icon-advanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #606060 0%, #808080 25%, #a0a0a0 50%, #cccccc 75%, #e0e0e0 100%);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: pulse-subtle 3s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    }
}

.icon-advanced::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #404040, #606060, #808080, #a0a0a0, #cccccc, #e0e0e0);
    border-radius: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.icon-advanced:hover::before {
    opacity: 1;
}

.icon-advanced:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: none;
}

.icon-advanced i {
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.icon-advanced:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.icon-tech-api {
    background: linear-gradient(135deg, #666666 0%, #808080 50%, #a0a0a0 100%);
    box-shadow: 0 8px 25px rgba(102, 102, 102, 0.4);
}

.icon-tech-api:hover {
    box-shadow: 0 20px 40px rgba(102, 102, 102, 0.6);
}

.icon-tech-security {
    background: linear-gradient(135deg, #333333 0%, #4a4a4a 50%, #666666 100%);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.icon-tech-security:hover {
    box-shadow: 0 20px 40px rgba(51, 51, 51, 0.6);
}

.icon-tech-data {
    background: linear-gradient(135deg, #808080 0%, #a0a0a0 50%, #cccccc 100%);
    box-shadow: 0 8px 25px rgba(128, 128, 128, 0.4);
}

.icon-tech-data:hover {
    box-shadow: 0 20px 40px rgba(128, 128, 128, 0.6);
}

.icon-tech-ai {
    background: linear-gradient(135deg, #a0a0a0 0%, #cccccc 50%, #e0e0e0 100%);
    box-shadow: 0 8px 25px rgba(160, 160, 160, 0.4);
}

.icon-tech-ai:hover {
    box-shadow: 0 20px 40px rgba(160, 160, 160, 0.6);
}

.endpoint-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin: 0 0 var(--space-8) 0;
    padding: var(--space-3) var(--space-4);
}

.endpoint-banner-content {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    max-width: 100%;
}

.endpoint-banner-icon {
    color: var(--brand-accent);
    font-size: 0.85rem;
    opacity: 0.8;
    flex-shrink: 0;
    margin-top: -2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.endpoint-banner-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.endpoint-banner-url {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 0;
    flex-wrap: wrap;
    line-height: 1.2;
}

.endpoint-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 70px;
    line-height: 1.3;
    display: inline-block;
    vertical-align: middle;
}



.endpoint-url-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-code);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.endpoint-copy-btn {
    background: none;
    border: 1px solid var(--brand-accent-border);
    color: var(--brand-accent);
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    font-size: 0.7rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.endpoint-copy-btn:hover {
    background: var(--brand-accent-light);
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--brand-accent);
}

.endpoint-banner-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-left: calc(70px + var(--space-2));
}

.endpoint-banner-note i {
    color: var(--brand-accent);
    font-size: 0.65rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .endpoint-banner {
        padding: var(--space-3);
        margin-bottom: var(--space-4);
        position: relative;
        top: auto;
    }
    
    .endpoint-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .endpoint-banner-icon {
        align-self: flex-start;
        margin-top: 0;
    }
    
    .endpoint-banner-info {
        width: 100%;
        gap: var(--space-3);
    }
    
    .endpoint-banner-url {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: var(--space-2);
        flex-wrap: wrap;
    }
    
    .endpoint-label {
        min-width: auto;
        flex-shrink: 0;
    }
    
    .endpoint-url-text {
        flex: 1;
        min-width: 200px;
        text-align: left;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .endpoint-copy-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .endpoint-banner-note {
        font-size: 0.65rem;
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .endpoint-banner {
        padding: var(--space-2);
    }
    
    .endpoint-banner-content {
        gap: var(--space-2);
    }
    
    .endpoint-banner-url {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }
    
    .endpoint-label {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .endpoint-url-text {
        font-size: 0.7rem;
        padding: 0.5rem;
        text-align: center;
        min-width: auto;
        width: 100%;
    }
    
    .endpoint-copy-btn {
        align-self: center;
        padding: 0.4rem 0.8rem;
    }
    
    .endpoint-banner-note {
        font-size: 0.6rem;
        text-align: center;
        justify-content: center;
    }
}

[data-theme="light"] .endpoint-banner {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .endpoint-banner-icon {
    color: #000000;
    opacity: 0.9;
}

[data-theme="light"] .endpoint-label {
    color: #000000;
    opacity: 1;
}

[data-theme="light"] .endpoint-url-text {
    color: var(--text-primary);
    background: var(--bg-primary);
    border-color: var(--border-primary);
}

[data-theme="light"] .endpoint-copy-btn {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.25);
    opacity: 0.8;
}

[data-theme="light"] .endpoint-copy-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

[data-theme="light"] .endpoint-banner-note {
    color: var(--text-secondary);
    opacity: 0.9;
}

[data-theme="light"] .endpoint-banner-note i {
    color: #000000;
    opacity: 0.7;
}


[data-theme="light"] .navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
}

[data-theme="light"] .sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
}

[data-theme="light"] .toc-sidebar {
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
}

[data-theme="light"] .content-section {
    background-color: transparent;
    border-color: transparent;
}

[data-theme="light"] .quick-start-section {
    background-color: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .code-block {
    background-color: var(--bg-code);
    border-color: var(--border-primary);
}

[data-theme="light"] .code-block pre {
    color: var(--code-text);
}

[data-theme="light"] .code-title {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-bottom-color: var(--border-primary);
}

[data-theme="light"] .step-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .feature-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .testimonial-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .table-container {
    background-color: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

[data-theme="light"] .multi-tech-examples {
    background-color: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .tech-tabs {
    background-color: var(--bg-tertiary);
    border-bottom-color: var(--border-primary);
}

[data-theme="light"] .tech-tab {
    border-right-color: var(--border-primary);
}

[data-theme="light"] .tech-tab.active::after {
    background-color: var(--brand-accent);
}

[data-theme="light"] .example-header {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-primary);
}

[data-theme="light"] .response-example {
    background-color: var(--bg-secondary);
    border-top-color: var(--border-primary);
}

[data-theme="light"] .footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

[data-theme="light"] .endpoint-card {
    background-color: var(--bg-secondary);
}

[data-theme="light"] .btn-primary {
    background-color: var(--accent-solid);
    border-color: var(--accent-solid);
}

[data-theme="light"] .btn-outline {
    color: var(--brand-accent);
    border-color: var(--brand-accent-border);
}

[data-theme="light"] .btn-outline:hover {
    background-color: var(--brand-accent-light);
    color: var(--brand-accent);
}

[data-theme="light"] .hero-brand-badge {
    background: linear-gradient(135deg, var(--brand-accent-light), rgba(0, 0, 0, 0.05));
    color: var(--brand-accent);
    border-color: var(--brand-accent-border);
}

[data-theme="light"] .step-number {
    background-color: var(--brand-accent);
    color: #ffffff;
}

[data-theme="light"] .section-icon {
    background-color: var(--brand-accent);
    color: #ffffff;
}

[data-theme="light"] .section-icon:hover {
    background-color: var(--brand-accent-hover);
}

[data-theme="light"] .icon-advanced {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .icon-advanced:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .icon-tech-api {
    box-shadow: 0 8px 25px rgba(102, 102, 102, 0.15);
}

[data-theme="light"] .icon-tech-api:hover {
    box-shadow: 0 20px 40px rgba(102, 102, 102, 0.25);
}

[data-theme="light"] .icon-tech-security {
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.15);
}

[data-theme="light"] .icon-tech-security:hover {
    box-shadow: 0 20px 40px rgba(51, 51, 51, 0.25);
}

[data-theme="light"] .icon-tech-data {
    box-shadow: 0 8px 25px rgba(128, 128, 128, 0.15);
}

[data-theme="light"] .icon-tech-data:hover {
    box-shadow: 0 20px 40px rgba(128, 128, 128, 0.25);
}

[data-theme="light"] .icon-tech-ai {
    box-shadow: 0 8px 25px rgba(160, 160, 160, 0.15);
}

[data-theme="light"] .icon-tech-ai:hover {
    box-shadow: 0 20px 40px rgba(160, 160, 160, 0.25);
}

@keyframes pulse-subtle-light {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    }
}

[data-theme="light"] .icon-advanced {
    animation: pulse-subtle-light 3s infinite;
}

[data-theme="light"] .loading-spinner {
    color: var(--text-secondary);
}

[data-theme="light"] .copy-button {
    background-color: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

[data-theme="light"] .copy-button:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .copy-button.copied {
    background-color: var(--brand-accent);
    color: #ffffff;
}

[data-theme="light"] .code-examples-section {
    background-color: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .step-item:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feature-item:hover {
    border-color: color-mix(in srgb, var(--text-muted) 45%, var(--border-primary));
}

[data-theme="light"] .quick-start-section:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .content-section:hover {
    border-color: transparent;
    box-shadow: none;
}

[data-theme="light"] .alert:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


i[class*="fa-"],
.fas,
.fab,
.far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    opacity: 1 !important;
    visibility: visible !important;
}


.fa-fallback .fa-home::before { content: "🏠" !important; }
.fa-fallback .fa-play-circle::before { content: "▶️" !important; }
.fa-fallback .fa-key::before { content: "🔑" !important; }
.fa-fallback .fa-code::before { content: "💻" !important; }
.fa-fallback .fa-info-circle::before { content: "ℹ️" !important; }
.fa-fallback .fa-laptop-code::before { content: "💻" !important; }
.fa-fallback .fa-file-alt::before { content: "📄" !important; }
.fa-fallback .fa-book::before { content: "📚" !important; }
.fa-fallback .fa-sun::before { content: "☀️" !important; }
.fa-fallback .fa-moon::before { content: "🌙" !important; }
.fa-fallback .fa-bars::before { content: "≡" !important; }
.fa-fallback .fa-copy::before { content: "📋" !important; }
.fa-fallback .fa-server::before { content: "🖥️" !important; }
.fa-fallback .fa-rocket::before { content: "🚀" !important; }
.fa-fallback .fa-users::before { content: "👥" !important; }
.fa-fallback .fa-lock::before { content: "🔒" !important; }
.fa-fallback .fa-sync-alt::before { content: "🔄" !important; }
.fa-fallback .fa-search::before { content: "🔍" !important; }


i[class*="fa-"],
.feature-icon i,
.section-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}


.section-header .feature-icon { display: none; }

[data-theme="light"] .testimonial-item:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.line-numbers {
    position: relative;
    padding-left: 3.8em !important;
    counter-reset: linenumber;
}

.line-numbers > code {
    position: relative;
    white-space: pre;
    line-height: 1.7 !important;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    line-height: 1.7 !important;
}

.line-numbers-rows > span {
    pointer-events: none;
    display: block;
    counter-increment: linenumber;
    line-height: 1.7 !important;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
    color: rgba(255, 255, 255, 0.4);
    display: block;
    padding-right: 0.8em;
    text-align: right;
    font-size: 0.875rem;
    line-height: 1.7 !important;
}


[data-theme="dark"] .line-numbers-rows > span:before {
    color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .line-numbers .line-numbers-rows {
    border-right-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .line-numbers-rows > span:before {
    color: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .line-numbers .line-numbers-rows {
    border-right-color: rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
    .line-numbers {
        padding-left: 3.5em !important;
    }
    
    .line-numbers .line-numbers-rows {
        left: -3.5em;
        width: 2.8em;
    }
    
    .line-numbers-rows > span:before {
        font-size: 0.75em;
        padding-right: 0.6em;
    }
}

@media (max-width: 480px) {
    .line-numbers {
        padding-left: 3em !important;
    }
    
    .line-numbers .line-numbers-rows {
        left: -3em;
        width: 2.5em;
    }
    
    .line-numbers-rows > span:before {
        font-size: 0.7em;
        padding-right: 0.5em;
    }
}

.response-example {
    margin: 0;
    padding: var(--space-4) var(--space-6) var(--space-6) var(--space-6);
    border-top: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
}

/* ===== Search (cmd+K) ===== */
.navbar-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 0.625rem 0 0.875rem;
    border-radius: 9999px;
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 14rem;
    flex-shrink: 0;
}

.navbar-search:hover {
    border-color: var(--brand-accent-border);
    color: var(--text-secondary);
}

.navbar-search .navbar-search-label {
    flex: 1;
    text-align: left;
}

.navbar-search-kbd {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 0.0625rem 0.3125rem;
    line-height: 1.4;
}

.search-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    background: color-mix(in srgb, var(--bg-primary) 70%, transparent);
    backdrop-filter: blur(4px);
}

.search-modal-overlay.open {
    display: flex;
    animation: search-fade 120ms ease-out;
}

@keyframes search-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal {
    width: 100%;
    max-width: 40rem;
    margin: 0 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: search-pop 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes search-pop {
    from { transform: translateY(-8px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    height: 3.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.search-input-ico {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    height: 100%;
}

.search-input::placeholder { color: var(--text-muted); }

.search-kbd {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 0.0625rem 0.375rem;
    line-height: 1.5;
}

.search-results {
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.search-result.active {
    background: var(--brand-accent-light);
}

.search-result-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
}

.search-ico {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-result.active .search-ico { color: var(--brand-accent); }

.search-result-body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-sub-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-result-enter {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0;
}

.search-result.active .search-result-enter {
    opacity: 1;
    color: var(--brand-accent);
}

.search-method {
    min-width: auto;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-empty-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.search-empty-title {
    margin: 0;
    font-weight: 550;
    color: var(--text-primary);
}

.search-empty-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: var(--space-8) var(--space-4);
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 32rem;
}

.error-badge {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.error-title {
    margin: 0 0 var(--space-2) 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.error-desc {
    margin: 0;
    max-width: 36ch;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
}

.error-hint {
    margin: var(--space-5) 0 0 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.search-foot {
    display: flex;
    gap: 1.25rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-primary);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-foot .search-kbd { margin-right: 0.25rem; }

body.search-open { overflow: hidden; }

@media (max-width: 768px) {
    .navbar-search-label,
    .navbar-search-kbd { display: none; }
    .navbar-search { min-width: auto; padding: 0 0.625rem; }
}

/* ===== Rich components (Phase C) ===== */
.callout {
    --callout-color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    margin: 1.25rem 0;
    border-radius: var(--radius);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--callout-color);
    background: color-mix(in srgb, var(--callout-color) 6%, var(--bg-primary));
}
.callout-icon { font-size: 1rem; margin-top: 0.15rem; flex-shrink: 0; color: var(--callout-color); }
.callout-body { min-width: 0; }
.callout-title { font-weight: 600; margin-bottom: 0.25rem; color: var(--text-primary); }
.callout-content { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }
.callout-note { --callout-color: var(--text-muted); }
.callout-info { --callout-color: var(--color-info); }
.callout-tip, .callout-success { --callout-color: var(--color-success); }
.callout-warning { --callout-color: var(--color-warning); }
.callout-danger { --callout-color: var(--color-error); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}
.doc-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.doc-card-link:hover {
    border-color: color-mix(in srgb, var(--text-muted) 45%, var(--border-primary));
}
.card-icon {
    width: 2.125rem;
    height: 2.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--brand-accent-light);
    border: 1px solid var(--brand-accent-border);
    color: var(--brand-accent);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.card-title { font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.card-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; }

.doc-tabs { margin: 1.25rem 0; }
.doc-tabs-nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 1rem;
}
.doc-tab {
    padding: 0.5rem 0.875rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: -1px;
}
.doc-tab:hover { color: var(--text-primary); }
.doc-tab.active { color: var(--brand-accent); border-bottom-color: var(--brand-accent); }
.doc-tab-panel { display: none; }
.doc-tab-panel.active { display: block; }

.accordion {
    margin: 1.25rem 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.accordion-item + .accordion-item { border-top: 1px solid var(--border-primary); }
.accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
}
.accordion-head:hover { background: var(--bg-tertiary); }
.accordion-chevron { transition: transform 200ms ease; color: var(--text-muted); font-size: 0.75rem; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.accordion-item.open .accordion-panel { max-height: 40rem; }
.accordion-panel-inner {
    padding: 0 1.125rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.code-group { margin: 1.25rem 0; }

.fields-list {
    margin: 1.25rem 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.field-item { padding: 0.875rem 1.125rem; }
.field-item + .field-item { border-top: 1px solid var(--border-primary); }
.field-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.field-name { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-primary); font-weight: 600; }
.field-type { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand-accent); }
.field-required { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-error); font-weight: 600; }
.field-optional { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.field-default { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.field-desc { margin-top: 0.375rem; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.55; }

/* ===== Navigation (Phase E) ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.breadcrumb-sep { font-size: 0.625rem; }
.breadcrumb-current { color: var(--text-secondary); font-weight: 500; }
.breadcrumb { margin-bottom: 0; }

.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-actions { position: relative; }
.page-actions-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.page-actions-btn:hover { border-color: var(--brand-accent-border); color: var(--text-primary); }
.page-actions-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    min-width: 14rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    z-index: 40;
    display: none;
}
.page-actions.open .page-actions-menu { display: block; }
.page-actions-menu [data-action] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
}
.page-actions-menu [data-action]:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.page-actions-menu [data-action] i { width: 1rem; text-align: center; color: var(--text-muted); }

/* ===== Feedback (Phase G) ===== */
.feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
}
.feedback-q { font-size: 0.875rem; color: var(--text-secondary); }
.feedback-actions { display: flex; align-items: center; gap: 0.5rem; }
.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
}
.feedback-btn:hover { border-color: var(--brand-accent-border); color: var(--text-primary); }
.feedback-btn.active { border-color: var(--brand-accent); color: var(--brand-accent); background: var(--brand-accent-light); }

/* ===== Version selector (Phase G) ===== */
.version-select { position: relative; flex-shrink: 0; }
.version-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
}
.version-btn:hover { border-color: var(--brand-accent-border); color: var(--text-primary); }
.version-btn i { font-size: 0.625rem; }
.version-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    min-width: 8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.25rem;
    z-index: 60;
    display: none;
}
.version-select.open .version-menu { display: block; }
.version-item {
    display: block;
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
}
.version-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.version-item.active { color: var(--brand-accent); }

.page-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}
.page-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    background: var(--bg-tertiary);
}
.page-nav-link:hover {
    border-color: var(--brand-accent-border);
    transform: translateY(-1px);
}
.page-nav-next { text-align: right; align-items: flex-end; }
.page-nav-dir { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.375rem; }
.page-nav-title { font-size: 0.9375rem; font-weight: 600; color: var(--brand-accent); }
.page-nav-spacer { display: block; }

@media (max-width: 640px) {
    .page-nav { grid-template-columns: 1fr; }
}

/* ===== Playground (Phase D) ===== */
.playground {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    padding: 1rem;
    margin: 0 0 1.5rem 0;
}
.playground-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-primary);
}
.playground-url {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: nowrap;
}
.playground-send {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    background: var(--accent-solid);
    color: #1c1917;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.playground-send:hover { background: color-mix(in srgb, var(--accent-solid) 88%, #000); }
.playground-send:disabled { opacity: 0.6; cursor: default; }

.playground-group { margin-top: 0.875rem; }
.playground-group-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.playground-field {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.playground-field label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: right;
}
.playground-req { color: var(--color-error); }
.playground-input,
.playground-body {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: 0.4375rem 0.625rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color var(--transition);
}
.playground-input:focus,
.playground-body:focus { border-color: var(--brand-accent-border); }
.playground-body { resize: vertical; line-height: 1.5; }

.playground-response {
    margin-top: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.playground-response-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}
.playground-status {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.playground-status.ok { color: var(--color-success); }
.playground-status.err { color: var(--color-error); }
.playground-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.playground-response pre { margin: 0; border-radius: 0; border: none; }
.playground-response-pre {
    padding: 0.875rem 3rem 0.875rem 1rem;
    background: var(--bg-code);
    max-height: 24rem;
    overflow: auto;
}
.playground-response-body {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.playground-note {
    margin-top: 0.875rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

@media (max-width: 640px) {
    .playground-field { grid-template-columns: 1fr; gap: 0.25rem; }
    .playground-field label { text-align: left; }
}

/* ===== Flat content components: no shadows, neutral (non-colored) hover ===== */
.feature-item,
.feature-item:hover,
.doc-card,
.doc-card-link:hover,
.quick-start-section,
.quick-start-section:hover,
.step-item,
.step-item:hover,
.alert,
.alert:hover,
.testimonial-item,
.testimonial-item:hover,
.endpoint-banner,
.endpoint-banner:hover,
.multi-tech-examples,
.callout,
.code-block,
.table-container,
.hero-brand-badge,
.section-icon,
.icon-advanced,
.icon-advanced:hover,
.success-box,
.error-box,
.note-box,
.warning-box,
.audience-box,
.critical-box {
    box-shadow: none !important;
}

.quick-start-section:hover,
.step-item:hover,
.alert:hover,
.endpoint-banner:hover,
.testimonial-item:hover,
.icon-advanced:hover {
    transform: none !important;
}

/* Neutral (non-colored) borders on every content container.
   Callouts are intentionally excluded: their colored left border is semantic. */
.feature-item,
.doc-card,
.doc-card-link,
.quick-start-section,
.quick-start-section:hover,
.step-item,
.step-item:hover,
.alert,
.alert:hover,
.testimonial-item,
.testimonial-item:hover,
.endpoint-banner,
.endpoint-banner:hover,
.multi-tech-examples,
.code-block,
.table-container,
.tech-tabs,
.example-header {
    border-color: var(--border-primary) !important;
}

/* ===== API reference layout (Mintlify-style) ===== */
.main-content {
    overflow-y: visible;
}

.endpoint-page {
    width: 100%;
}

.endpoint-head {
    margin-bottom: 0.5rem;
}

.endpoint-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.625rem 0;
    color: var(--text-primary);
}

.endpoint-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

.api-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.api-path {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.api-path::-webkit-scrollbar { display: none; }

.api-path-sep {
    color: var(--text-muted);
}

.api-path-seg {
    color: var(--text-primary);
}

.api-path-param {
    color: var(--brand-accent);
    background: var(--brand-accent-light);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

.api-try {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.875rem;
    background: var(--accent-solid);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

:root:not([data-theme="light"]) .api-try {
    color: #1c1917;
}

.api-try i {
    font-size: 0.625rem;
}

.api-try:hover {
    background: color-mix(in srgb, var(--accent-solid) 88%, #000);
}

.endpoint-head .playground {
    margin: 1rem 0 0 0;
}

.endpoint-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 3rem;
    align-items: start;
    margin-top: 1.5rem;
}

.endpoint-prose {
    min-width: 0;
}

.endpoint-examples {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

@media (max-width: 1280px) {
    .endpoint-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .endpoint-examples {
        position: static;
        order: -1;
    }
}

/* ===== Prose blocks (sections with hairline dividers) ===== */
.prose-block {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-secondary);
}

.endpoint-prose .prose-block:first-child {
    padding-top: 0.5rem;
    margin-top: 0;
    border-top: none;
}

.prose-heading {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.prose-heading-chip {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
}

/* ===== Field rows (plain, hairline separated) ===== */
.fields-plain {
    border: none;
    border-radius: 0;
    overflow: visible;
    margin: 0;
}

.fields-plain .field-item {
    padding: 1rem 0;
}

.fields-plain .field-item:first-child {
    padding-top: 0;
}

.fields-plain .field-item + .field-item {
    border-top: 1px solid var(--border-secondary);
}

.field-name {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    background: transparent;
    padding: 0;
}

.field-chip {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.375rem;
    line-height: 1.2;
}

.field-chip-required {
    color: var(--color-error);
    background: color-mix(in srgb, var(--color-error) 10%, transparent);
}

.field-required {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-error);
    background: color-mix(in srgb, var(--color-error) 10%, transparent);
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.375rem;
    font-weight: 500;
    line-height: 1.2;
}

.field-optional {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.375rem;
    line-height: 1.2;
}

.field-type {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.375rem;
    line-height: 1.2;
}

.field-desc {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
}

.field-example {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.field-example code {
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

/* ===== Response status rows ===== */
.response-list {
    display: flex;
    flex-direction: column;
}

.response-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.response-row + .response-row {
    border-top: 1px solid var(--border-secondary);
}

.response-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-chip {
    --status-color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--status-color);
    background: color-mix(in srgb, var(--status-color) 10%, transparent);
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.status-2xx { --status-color: var(--color-success); }
.status-3xx { --status-color: var(--color-info); }
.status-4xx { --status-color: var(--color-error); }
.status-5xx { --status-color: var(--color-error); }

/* ===== Code panels (sticky example column) ===== */
.code-panel {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-code);
    overflow: hidden;
}

.code-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.5rem 0 0.375rem;
    height: 2.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.code-panel-tabs {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    height: 100%;
}

.code-panel-tabs::-webkit-scrollbar { display: none; }

.code-panel-tab {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 0.625rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-top: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-colors);
}

.code-panel-tab:hover {
    color: var(--text-primary);
}

.code-panel-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--brand-accent);
}

.code-panel-tab.code-panel-status {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.code-panel-tab.code-panel-status.active {
    color: var(--status-color, var(--text-primary));
    border-bottom-color: var(--status-color, var(--brand-accent));
}

.code-panel-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-colors);
}

.code-panel-copy:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.code-panel-copy.copied {
    color: var(--color-success);
}

.code-panel-body {
    display: none;
}

.code-panel-body.active {
    display: block;
}

.code-panel-body pre.code-panel-pre {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 1rem;
    font-size: 0.75rem;
    line-height: 1.7;
    max-height: 26rem;
    overflow: auto;
    font-family: var(--font-mono);
    color: var(--code-text);
}

.code-panel-body pre.code-panel-pre code {
    background: transparent;
    padding: 0;
    font-size: 0.75rem !important;
    white-space: pre;
    color: inherit;
}

/* ===== Code block header + copy in header ===== */
.code-block {
    border-radius: var(--radius-lg);
}

.code-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.375rem 0.5rem 0.375rem 1rem;
    min-height: 2.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border-bottom: 1px solid var(--border-secondary);
}

.copy-button.in-header {
    position: static;
    width: 1.75rem;
    height: 1.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    opacity: 1;
}

.copy-button.in-header:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.copy-button.in-header.copied {
    background: transparent;
    color: var(--color-success);
}

/* ===== Slim environment banner ===== */
.endpoint-banner {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.endpoint-url-text {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    font-family: var(--font-mono);
}

[data-theme="light"] .endpoint-url-text {
    background: transparent;
    border: none;
}

.endpoint-banner-note {
    font-size: 0.71875rem;
    margin-left: 0;
}

/* ===== Quieter tables (guide pages) ===== */
.table-container {
    background-color: transparent;
    border-radius: var(--radius-lg);
}

.table {
    background-color: transparent;
}

.table th {
    background-color: var(--bg-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.table tbody tr:hover {
    background-color: var(--bg-secondary);
    border: none;
}

/* ===== Subtle feedback row ===== */
.feedback {
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    margin-top: 3rem;
}

/* ===== Content width & breathing room ===== */
@media (min-width: 1025px) {
    .main-content {
        padding-top: var(--space-8);
    }
}

/* core.js marks inner pres with .code-block (copy-button bookkeeping);
   inside a framed container the pre must not paint its own box. */
.code-block pre.code-block,
.multi-tech-examples pre.code-block,
.playground-response pre.code-block,
.code-panel pre.code-block {
    border: none;
    border-radius: 0;
    margin: 0;
    background: transparent;
    overflow-x: auto;
}


/* ===== cosmos brand additions ===== */
.navbar-brand .brand-wordmark {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--brand-accent);
}

.navbar-logo {
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .navbar-logo {
    transform: rotate(45deg);
}

:root:not([data-theme="light"]) .hero-section {
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(255, 138, 36, 0.16) 0%, rgba(255, 138, 36, 0) 65%),
        var(--bg-primary);
}

:root:not([data-theme="light"]) .doc-card:hover,
:root:not([data-theme="light"]) .feature-card:hover {
    box-shadow: 0 0 24px rgba(255, 138, 36, 0.12);
}
