:root {
    --docs-bg: #f8f6f1;
    --docs-surface: #ffffff;
    --docs-surface-soft: #fbfaf7;

    --docs-text-main: #101827;
    --docs-text-muted: #7a7165;
    --docs-text-soft: #9a9185;

    --docs-border: #e7dfd2;
    --docs-border-strong: #d8c9ad;

    --docs-navy: #071326;
    --docs-navy-soft: #101827;

    --docs-gold: #d5ad28;
    --docs-gold-dark: #8f671d;
    --docs-gold-soft: #f4ead6;

    --docs-sidebar-width: 300px;
    --docs-topbar-height: 98px;

    --docs-shadow-soft: 0 18px 44px rgba(31, 31, 31, 0.055);
    --docs-shadow-dark: 0 28px 82px rgba(7, 19, 38, 0.22);
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--docs-bg);
    color: var(--docs-text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================
   Layout
========================= */

.docs-layout {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at 16% 12%, rgba(213, 173, 40, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, var(--docs-bg) 100%);
}


/* =========================
   Sidebar
========================= */

.docs-sidebar {
    width: var(--docs-sidebar-width);
    height: 100vh;

    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;

    padding: 24px 18px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        radial-gradient(circle at top left, rgba(213, 173, 40, 0.14), transparent 34%),
        linear-gradient(180deg, #101827 0%, #071326 100%);

    border-right: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 20px 0 70px rgba(7, 19, 38, 0.14);
}

.docs-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 84%);
    pointer-events: none;
}

.docs-mobile-sidebar-header,
.docs-sidebar-header,
.docs-nav,
.docs-sidebar-card {
    position: relative;
    z-index: 2;
}

.docs-mobile-sidebar-header {
    display: none;
}

.docs-sidebar-header {
    flex-shrink: 0;
    padding: 0 6px 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.docs-logo {
    display: inline-flex;
    align-items: center;
}

.docs-logo-full {
    display: block;
    width: 224px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
}

.docs-logo-symbol {
    display: none;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.docs-sidebar-subtitle {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 750;
}


/* =========================
   Docs Nav
========================= */

.docs-nav {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
    gap: 24px;

    padding-right: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.docs-nav::-webkit-scrollbar {
    width: 6px;
}

.docs-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.docs-nav-section {
    display: grid;
    gap: 6px;
}

.docs-nav-title {
    margin-bottom: 6px;
    padding: 0 12px;

    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.docs-nav-link {
    min-height: 40px;
    padding: 0 12px;

    display: flex;
    align-items: center;

    border-radius: 13px;

    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    font-weight: 700;

    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.docs-nav-link:hover {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    transform: translateX(2px);
}

.docs-nav-link.active {
    background: rgba(213, 173, 40, 0.16);
    border: 1px solid rgba(213, 173, 40, 0.25);
    color: var(--docs-gold);
}


/* =========================
   Sidebar CTA
========================= */

.docs-sidebar-card {
    flex-shrink: 0;

    margin-top: 18px;
    padding: 18px;

    border-radius: 20px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

.docs-sidebar-card span {
    display: block;

    color: rgba(255, 255, 255, 0.52);
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
}

.docs-sidebar-card strong {
    display: block;

    color: #ffffff;
    font-size: 0.94rem;
    line-height: 1.45;
    font-weight: 800;
}

.docs-sidebar-card a {
    margin-top: 14px;

    min-height: 40px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    border-radius: 999px;
    background: var(--docs-gold);
    color: var(--docs-navy);

    font-size: 0.88rem;
    font-weight: 850;

    transition: all 0.2s ease;
}

.docs-sidebar-card a:hover {
    background: #f0c849;
    transform: translateY(-2px);
}


/* =========================
   Main
========================= */

.docs-main {
    width: calc(100% - var(--docs-sidebar-width));
    min-height: 100vh;
    margin-left: var(--docs-sidebar-width);

    display: flex;
    flex-direction: column;
}


/* =========================
   Topbar
========================= */

.docs-topbar {
    min-height: var(--docs-topbar-height);
    padding: 22px 34px;

    position: sticky;
    top: 0;
    z-index: 30;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    background: rgba(248, 246, 241, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--docs-border);
}

.docs-topbar-left {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 14px;
}

.docs-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 7px;

    color: var(--docs-gold-dark);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.docs-topbar h1 {
    color: var(--docs-text-main);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 850;
}

.docs-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.docs-button {
    min-height: 42px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 850;

    transition: all 0.2s ease;
}

.docs-button.secondary {
    background: #ffffff;
    color: var(--docs-navy);
    border: 1px solid var(--docs-border);
    box-shadow: 0 12px 28px rgba(31, 31, 31, 0.045);
}

.docs-button.secondary:hover {
    border-color: rgba(213, 173, 40, 0.45);
    color: var(--docs-gold-dark);
    transform: translateY(-2px);
}

.docs-button.primary {
    background: var(--docs-navy);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(7, 19, 38, 0.14);
}

.docs-button.primary:hover {
    background: var(--docs-gold-dark);
    transform: translateY(-2px);
}


/* =========================
   Mobile Menu Toggle
========================= */

.docs-menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    flex-shrink: 0;
    position: relative;

    border: 1px solid rgba(7, 19, 38, 0.08);
    border-radius: 16px;

    background:
        radial-gradient(circle at top right, rgba(213, 173, 40, 0.18), transparent 42%),
        #ffffff;

    cursor: pointer;

    box-shadow:
        0 14px 34px rgba(7, 19, 38, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.docs-menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(213, 173, 40, 0.32);
    box-shadow:
        0 18px 42px rgba(7, 19, 38, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.docs-menu-toggle span {
    position: absolute;
    left: 13px;

    display: block;

    width: 20px;
    height: 2px;

    border-radius: 999px;
    background: var(--docs-navy);

    transition: transform 0.22s ease, opacity 0.18s ease, width 0.18s ease, background 0.18s ease;
}

.docs-menu-toggle span:nth-child(1) {
    top: 15px;
}

.docs-menu-toggle span:nth-child(2) {
    top: 22px;
    width: 15px;
}

.docs-menu-toggle span:nth-child(3) {
    top: 29px;
}

.docs-menu-toggle:hover span:nth-child(2) {
    width: 20px;
}

.docs-menu-toggle.active {
    background:
        radial-gradient(circle at top right, rgba(213, 173, 40, 0.26), transparent 42%),
        var(--docs-navy);
    border-color: rgba(213, 173, 40, 0.28);
}

.docs-menu-toggle.active span {
    background: #ffffff;
}

.docs-menu-toggle.active span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.docs-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.docs-menu-toggle.active span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.docs-overlay {
    display: none;
}


/* =========================
   Content Wrapper
========================= */

.docs-content {
    width: 100%;
    max-width: 1120px;
    padding: 44px 34px 96px;
}


/* =========================
   Docs Content Styling
========================= */

.docs-section {
    scroll-margin-top: 130px;
    margin-bottom: 42px;
    padding: 32px;

    border-radius: 28px;
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    box-shadow: var(--docs-shadow-soft);
}

.docs-section h2 {
    color: var(--docs-text-main);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 850;
    margin-bottom: 14px;
}

.docs-section h3 {
    color: var(--docs-text-main);
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 850;
    margin: 28px 0 10px;
}

.docs-section p {
    color: var(--docs-text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.docs-section ul,
.docs-section ol {
    margin: 16px 0 18px 20px;
    color: var(--docs-text-muted);
}

.docs-section li {
    margin-bottom: 9px;
    line-height: 1.65;
}

.docs-section code {
    padding: 3px 6px;

    border-radius: 7px;
    background: var(--docs-gold-soft);
    color: var(--docs-gold-dark);

    font-size: 0.9em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-weight: 700;
}

.docs-section pre {
    margin: 18px 0;
    padding: 20px;

    overflow-x: auto;

    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(213, 173, 40, 0.14), transparent 34%),
        linear-gradient(180deg, #101827 0%, #071326 100%);

    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.docs-section pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.86rem;
    line-height: 1.7;
    white-space: pre;
}

.docs-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;

    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--docs-border);
}

.docs-section th,
.docs-section td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--docs-border);
    text-align: left;
    font-size: 0.92rem;
}

.docs-section th {
    background: var(--docs-surface-soft);
    color: var(--docs-text-main);
    font-weight: 850;
}

.docs-section td {
    color: var(--docs-text-muted);
}

.docs-section tr:last-child td {
    border-bottom: none;
}

.docs-callout {
    margin: 20px 0;
    padding: 18px 20px;

    border-radius: 20px;
    background: var(--docs-gold-soft);
    border: 1px solid var(--docs-border-strong);

    color: var(--docs-gold-dark);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 700;
}


/* =========================
   Responsive
========================= */

@media (max-width: 1180px) {
    :root {
        --docs-sidebar-width: 270px;
    }

    .docs-logo-full {
        width: 200px;
    }
}

@media (max-width: 900px) {
    body.docs-menu-open {
        overflow: hidden;
    }

    .docs-layout {
        display: block;
    }

    .docs-overlay {
        display: block;

        position: fixed;
        inset: 0;
        z-index: 80;

        background: rgba(7, 19, 38, 0.56);
        backdrop-filter: blur(5px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .docs-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .docs-sidebar {
        width: min(88vw, 350px);
        height: calc(100vh - 24px);

        left: 12px;
        top: 12px;
        z-index: 100;

        padding: 18px;

        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, 0.12);

        transform: translateX(calc(-100% - 24px));
        transition: transform 0.24s ease;

        box-shadow: 0 30px 90px rgba(7, 19, 38, 0.45);
    }

    .docs-sidebar.active {
        transform: translateX(0);
    }

    .docs-mobile-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;

        padding-bottom: 16px;
        margin-bottom: 16px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }

    .docs-mobile-logo-link {
        display: inline-flex;
        align-items: center;
    }

    .docs-mobile-logo {
        display: block;
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .docs-sidebar-close {
        width: 42px;
        height: 42px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;

        background: rgba(255, 255, 255, 0.075);
        color: #ffffff;

        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

    .docs-sidebar-header {
        display: none;
    }

    .docs-nav {
        gap: 22px;
    }

    .docs-nav-link {
        min-height: 44px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.045);
    }

    .docs-main {
        width: 100%;
        min-height: 100vh;
        margin-left: 0;
    }

    .docs-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .docs-topbar {
        min-height: auto;
        padding: 18px 22px;

        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .docs-topbar-left {
        width: 100%;
        align-items: flex-start;
    }

    .docs-topbar-actions {
        display: none;
    }

    .docs-content {
        max-width: 100%;
        padding: 28px 22px 70px;
    }

    .docs-section {
        scroll-margin-top: 110px;
        padding: 24px;
        border-radius: 24px;
    }
}

@media (max-width: 520px) {
    .docs-sidebar {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        left: 12px;
        top: 12px;

        padding: 16px;
        border-radius: 24px;
    }

    .docs-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .docs-menu-toggle span {
        left: 12px;
    }

    .docs-menu-toggle span:nth-child(1) {
        top: 14px;
    }

    .docs-menu-toggle span:nth-child(2) {
        top: 21px;
    }

    .docs-menu-toggle span:nth-child(3) {
        top: 28px;
    }

    .docs-menu-toggle.active span:nth-child(1),
    .docs-menu-toggle.active span:nth-child(3) {
        top: 21px;
    }

    .docs-topbar {
        padding: 16px 18px;
    }

    .docs-topbar h1 {
        font-size: 1.35rem;
    }

    .docs-eyebrow {
        font-size: 0.72rem;
    }

    .docs-content {
        padding: 22px 18px 60px;
    }

    .docs-section {
        padding: 20px;
        border-radius: 22px;
        margin-bottom: 24px;
    }

    .docs-section p,
    .docs-section li {
        font-size: 0.92rem;
    }

    .docs-section pre {
        padding: 16px;
        border-radius: 18px;
    }

    .docs-section pre code {
        font-size: 0.76rem;
    }

    .docs-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .docs-sidebar {
        width: calc(100vw - 18px);
        height: calc(100vh - 18px);
        left: 9px;
        top: 9px;

        border-radius: 22px;
    }

    .docs-topbar {
        padding: 14px 16px;
    }

    .docs-content {
        padding: 18px 16px 54px;
    }

    .docs-section {
        padding: 18px;
    }
}
/* ==================================================
   Docs Home Content Components
   Styles docs_home.html specific elements
================================================== */


/* =========================
   Page Intro Blocks
========================= */

.docs-page-intro {
    position: relative;
    overflow: hidden;

    margin-bottom: 34px;
    padding: 36px;

    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(213, 173, 40, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);

    border: 1px solid var(--docs-border);
    box-shadow: var(--docs-shadow-soft);
}

.docs-page-intro::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;

    width: 220px;
    height: 220px;

    border-radius: 999px;
    background: rgba(213, 173, 40, 0.10);
    pointer-events: none;
}

.docs-page-label {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    padding: 7px 12px;
    margin-bottom: 18px;

    border-radius: 999px;
    background: var(--docs-gold-soft);
    color: var(--docs-gold-dark);

    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.docs-page-intro h2 {
    position: relative;
    z-index: 2;

    max-width: 820px;

    color: var(--docs-text-main);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.065em;
    font-weight: 850;
}

.docs-page-intro > p:not(.docs-page-label) {
    position: relative;
    z-index: 2;

    max-width: 780px;
    margin-top: 18px;

    color: var(--docs-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.core-api-intro,
.data-guide-intro,
.developer-reference-intro,
.support-intro {
    margin-top: 56px;
}


/* =========================
   Section Header Blocks
========================= */

.docs-section-header {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: flex-start;

    margin-bottom: 26px;
}

.docs-step {
    width: 54px;
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(213, 173, 40, 0.44), transparent 42%),
        var(--docs-navy);

    color: var(--docs-gold);
    font-size: 0.86rem;
    font-weight: 900;

    box-shadow: 0 14px 30px rgba(7, 19, 38, 0.18);
}

.docs-section-header h2 {
    margin-bottom: 8px;
}

.docs-section-header p {
    max-width: 780px;
    margin-bottom: 0;
}


/* =========================
   Content Cards
========================= */

.docs-card {
    margin-top: 18px;
    padding: 22px;

    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(213, 173, 40, 0.08), transparent 34%),
        var(--docs-surface-soft);

    border: 1px solid var(--docs-border);
}

.docs-card h3 {
    margin-top: 0;
}

.docs-card p:last-child,
.docs-card ul:last-child,
.docs-card ol:last-child {
    margin-bottom: 0;
}


/* =========================
   Lists
========================= */

.docs-list {
    margin: 14px 0 0;
    padding: 0;

    display: grid;
    gap: 10px;

    list-style: none;
}

.docs-list li {
    position: relative;

    margin: 0;
    padding-left: 26px;

    color: var(--docs-text-muted);
    line-height: 1.65;
}

.docs-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;

    width: 8px;
    height: 8px;

    border-radius: 999px;
    background: var(--docs-gold);
    box-shadow: 0 0 0 4px rgba(213, 173, 40, 0.14);
}

.docs-list.numbered {
    counter-reset: docs-counter;
}

.docs-list.numbered li {
    counter-increment: docs-counter;
    padding-left: 36px;
}

.docs-list.numbered li::before {
    content: counter(docs-counter);

    top: 0.18em;

    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: var(--docs-navy);
    color: var(--docs-gold);

    font-size: 0.72rem;
    font-weight: 850;
    box-shadow: none;
}


/* =========================
   Notes / Warnings
========================= */

.docs-note,
.docs-warning {
    margin-top: 20px;
    padding: 18px 20px;

    border-radius: 20px;

    font-size: 0.95rem;
    line-height: 1.65;
}

.docs-note {
    background: var(--docs-gold-soft);
    border: 1px solid var(--docs-border-strong);
    color: var(--docs-gold-dark);
}

.docs-warning {
    background: rgba(157, 61, 46, 0.08);
    border: 1px solid rgba(157, 61, 46, 0.20);
    color: #8a2d2d;
}

.docs-note strong,
.docs-warning strong {
    font-weight: 900;
}


/* =========================
   Code Cards
========================= */

.docs-code-card {
    overflow: hidden;

    margin-top: 18px;

    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(213, 173, 40, 0.15), transparent 34%),
        linear-gradient(180deg, #101827 0%, #071326 100%);

    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 22px 58px rgba(7, 19, 38, 0.14);
}

.docs-code-header {
    min-height: 48px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.docs-code-header span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 850;
}

.docs-code-header small {
    padding: 5px 9px;

    border-radius: 999px;
    background: rgba(213, 173, 40, 0.14);
    border: 1px solid rgba(213, 173, 40, 0.24);

    color: var(--docs-gold);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-code-card pre {
    margin: 0;
    padding: 22px;

    overflow-x: auto;

    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    line-height: 1.7;
}

.docs-code-card code {
    padding: 0;
    background: transparent;
    color: inherit;

    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    white-space: pre;
}

.docs-mini-code {
    margin-top: 14px !important;
    padding: 16px !important;

    border-radius: 16px !important;
    background: #101827 !important;
    color: rgba(255, 255, 255, 0.86) !important;
    overflow-x: auto;
}

.docs-mini-code code {
    padding: 0;
    background: transparent;
    color: inherit;
    white-space: pre;
}


/* =========================
   Endpoint Cards
========================= */

.docs-endpoint-card {
    margin: 20px 0;
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-radius: 20px;
    background: var(--docs-surface-soft);
    border: 1px solid var(--docs-border);
}

.docs-endpoint-card code {
    min-width: 0;
    overflow-wrap: anywhere;

    padding: 0;
    background: transparent;
    color: var(--docs-text-main);

    font-size: 0.94rem;
    font-weight: 800;
}

.docs-method {
    flex-shrink: 0;

    min-width: 58px;
    min-height: 32px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.docs-method.get {
    background: rgba(47, 111, 70, 0.10);
    color: #2f6f46;
    border: 1px solid rgba(47, 111, 70, 0.20);
}

.docs-method.post {
    background: rgba(213, 173, 40, 0.14);
    color: var(--docs-gold-dark);
    border: 1px solid rgba(213, 173, 40, 0.28);
}


/* =========================
   Tables
========================= */

.docs-table-wrap {
    width: 100%;
    margin-top: 18px;
    overflow-x: auto;

    border-radius: 20px;
    border: 1px solid var(--docs-border);
    background: var(--docs-surface);
}

.docs-table {
    width: 100%;
    min-width: 680px;

    border-collapse: collapse;
}

.docs-table th,
.docs-table td {
    padding: 14px 16px;

    border-bottom: 1px solid var(--docs-border);

    text-align: left;
    vertical-align: top;

    font-size: 0.92rem;
    line-height: 1.55;
}

.docs-table th {
    background: var(--docs-surface-soft);
    color: var(--docs-text-main);

    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-table td {
    color: var(--docs-text-muted);
}

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

.docs-table td code {
    white-space: nowrap;
}


/* =========================
   Changelog
========================= */

.changelog-card {
    padding: 0;
    overflow: hidden;
}

.changelog-entry {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;

    padding: 24px;

    border-bottom: 1px solid var(--docs-border);
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-date {
    width: fit-content;
    height: fit-content;

    padding: 7px 11px;

    border-radius: 999px;
    background: var(--docs-gold-soft);
    color: var(--docs-gold-dark);

    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.changelog-content h3 {
    margin-top: 0;
}

.changelog-content p {
    margin-bottom: 14px;
}

.changelog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.changelog-tags span {
    padding: 6px 9px;

    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--docs-border);

    color: var(--docs-text-muted);
    font-size: 0.74rem;
    font-weight: 800;
}


/* =========================
   Responsive Fixes
========================= */

@media (max-width: 900px) {
    .docs-page-intro {
        margin-bottom: 24px;
        padding: 28px;
        border-radius: 26px;
    }

    .core-api-intro,
    .data-guide-intro,
    .developer-reference-intro,
    .support-intro {
        margin-top: 42px;
    }

    .docs-section-header {
        grid-template-columns: 48px 1fr;
        gap: 15px;
    }

    .docs-step {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .docs-card {
        padding: 20px;
        border-radius: 20px;
    }

    .docs-code-card {
        border-radius: 20px;
    }

    .docs-code-card pre {
        padding: 20px;
        font-size: 0.78rem;
    }

    .docs-endpoint-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .changelog-entry {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .docs-page-intro {
        padding: 22px;
        border-radius: 22px;
    }

    .docs-page-intro h2 {
        letter-spacing: -0.052em;
    }

    .docs-section-header {
        grid-template-columns: 1fr;
    }

    .docs-step {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .docs-card {
        padding: 18px;
        border-radius: 18px;
    }

    .docs-note,
    .docs-warning {
        padding: 16px;
        border-radius: 18px;
        font-size: 0.9rem;
    }

    .docs-code-header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;

        padding: 14px 16px;
    }

    .docs-code-card pre {
        padding: 16px;
        font-size: 0.72rem;
        line-height: 1.6;
    }

    .docs-table {
        min-width: 620px;
    }

    .docs-table th,
    .docs-table td {
        padding: 12px 13px;
        font-size: 0.86rem;
    }

    .docs-list li {
        font-size: 0.9rem;
    }

    .changelog-entry {
        padding: 18px;
    }

    .changelog-tags span {
        font-size: 0.7rem;
    }
}