:root {
    --ink: #10233f;
    --muted: #52657f;
    --forest: #0b4aa2;
    --mint: #b9dcff;
    --lime: #d9ebff;
    --paper: #f6f9ff;
    --card: rgba(255, 255, 255, 0.92);
    --line: #d4e1f2;
    --code: #082d63;
    --shadow: 0 22px 60px -42px rgba(7, 56, 123, 0.58);
    --header: rgba(246, 249, 255, 0.96);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at 88% 2%, rgba(133, 193, 255, 0.48), transparent 25rem),
        linear-gradient(135deg, rgba(203, 225, 255, 0.62), transparent 38rem),
        var(--paper);
}

a { color: var(--forest); }
code, pre { font-family: "IBM Plex Mono", monospace; }
code { font-size: 0.9em; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(18px); }
.topbar { display: grid; grid-template-columns: auto auto minmax(240px, 1fr) auto; align-items: center; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; text-decoration: none; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: white; background: var(--forest); }
.topnav, .productbar nav { display: flex; align-items: center; gap: 4px; }
.topnav a, .productbar a { padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.topnav a:hover, .topnav a[aria-current="page"], .productbar a:hover { color: var(--forest); background: #e3efff; }
.manage-link { white-space: nowrap; color: var(--forest); font-size: 0.9rem; font-weight: 700; }
.docs-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; justify-self: stretch; }
.docs-search input, .toc-filter input { width: 100%; min-height: 40px; border: 1px solid #a9bdd8; color: var(--ink); background: white; font: inherit; }
.docs-search input { padding: 8px 78px 8px 13px; border-radius: 9px; grid-column: 1 / -1; grid-row: 1; }
.docs-search button { z-index: 1; grid-column: 2; grid-row: 1; margin: 4px; padding: 0 12px; border: 0; border-radius: 6px; color: white; background: var(--forest); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.docs-search input:focus, .toc-filter input:focus { outline: 3px solid rgba(35, 119, 212, 0.26); border-color: var(--forest); }
.search-results { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 20; max-height: min(420px, 70vh); overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 20px 50px -24px rgba(7, 56, 123, 0.55); }
.search-results a { display: grid; gap: 3px; padding: 10px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: #e8f2ff; }
.search-results span { overflow: hidden; color: var(--muted); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 0.9rem; }
.productbar { border-top: 1px solid var(--line); background: white; }
.productbar .shell { display: flex; align-items: center; gap: 24px; min-height: 46px; }
.productbar strong { font-family: "Space Grotesk", sans-serif; white-space: nowrap; }
.mobile-menu { display: none; }
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: 24px; color: white; background: var(--forest); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -54px; bottom: -96px; width: 260px; height: 260px; border: 42px solid rgba(133, 193, 255, 0.18); border-radius: 50%; }
.eyebrow { color: var(--mint); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 { position: relative; z-index: 1; max-width: 800px; margin: 10px 0 14px; font-size: clamp(2.1rem, 4.5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero p { position: relative; z-index: 1; max-width: 720px; margin: 0; color: #dcecff; font-size: 1rem; line-height: 1.6; }
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 170px; grid-template-areas: "toc content article"; gap: 28px; padding: 34px 0 72px; align-items: start; }
.docs-toc { position: sticky; top: 24px; grid-area: toc; min-width: 0; }
.docs-toc > details > summary { margin-bottom: 12px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; cursor: pointer; }
.toc-filter { display: block; margin: 0 14px 14px 0; }
.toc-filter input { min-height: 36px; padding: 7px 10px; border-radius: 8px; font-size: 0.86rem; }
.docs-nav { display: grid; gap: 15px; padding: 2px 14px 4px 0; border-right: 1px solid var(--line); }
.toc-group { display: grid; gap: 3px; }
.toc-group strong { margin: 2px 10px 5px; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.docs-nav a { padding: 9px 12px; border-left: 3px solid transparent; border-radius: 0 7px 7px 0; color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.docs-nav a:hover { color: var(--forest); background: rgba(227, 239, 255, 0.55); }
.docs-nav a[aria-current="page"] { color: var(--forest); border-left-color: var(--forest); background: #e3efff; font-weight: 600; }
.content { display: grid; grid-area: content; min-width: 0; gap: 24px; }
.card { min-width: 0; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.card h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); }
.card h3 { margin: 28px 0 8px; font-size: 1.08rem; }
.card h4 { margin: 22px 0 8px; font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.card p, .card li { color: var(--muted); line-height: 1.68; overflow-wrap: anywhere; }
.card code { overflow-wrap: anywhere; }
.card pre code { overflow-wrap: normal; }
.card ol, .card ul { padding-left: 1.35rem; }
.card li + li { margin-top: 8px; }
.card blockquote { margin: 20px 0 0; padding: 16px 18px; border-left: 4px solid #2377d4; border-radius: 0 14px 14px 0; background: #eaf3ff; color: #163f72; }
.card blockquote p { margin: 0; color: inherit; }
.expansion { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #f8fbff; }
.expansion summary { padding: 15px 44px 15px 17px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 600; cursor: pointer; }
.expansion summary::marker { color: var(--forest); }
.expansion[open] summary { border-bottom: 1px solid var(--line); background: #edf5ff; }
.expansion-content { padding: 2px 18px 18px; }
.article-nav { position: sticky; top: 24px; display: grid; grid-area: article; gap: 5px; padding-left: 16px; border-left: 1px solid var(--line); }
.article-nav strong { margin-bottom: 6px; font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; }
.article-nav a { padding: 5px 0; color: var(--muted); font-size: 0.82rem; line-height: 1.35; text-decoration: none; }
.article-nav a:hover { color: var(--forest); }
.article-nav-mobile { display: none; }
pre { overflow-x: auto; margin: 16px 0 0; padding: 18px; border-radius: 16px; color: #e7f2ff; background: var(--code); font-size: 0.82rem; line-height: 1.65; }
table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); font-family: "Space Grotesk", sans-serif; }
td { color: var(--muted); }
footer { padding: 0 0 34px; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 1050px) {
    .topbar { grid-template-columns: auto minmax(220px, 1fr) auto; }
    .topnav { display: none; }
    .layout { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "toc mobile" "toc content"; }
    .article-nav { display: none; }
    .article-nav-mobile { display: block; grid-area: mobile; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
    .article-nav-mobile summary { color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 600; cursor: pointer; }
    .article-nav-mobile nav { display: grid; gap: 8px; padding-top: 12px; }
    .article-nav-mobile a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
}

@media (max-width: 800px) {
    .shell { width: min(100% - 24px, 680px); }
    .topbar { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 2px; }
    .docs-search { grid-column: 1 / -1; grid-row: 2; }
    .manage-link { display: none; }
    .mobile-menu { position: relative; display: block; }
    .mobile-menu summary { padding: 8px 10px; color: var(--forest); font-weight: 700; cursor: pointer; }
    .mobile-menu nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; width: min(280px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
    .mobile-menu a { padding: 11px; color: var(--ink); text-decoration: none; }
    .productbar { overflow-x: auto; }
    .productbar .shell { width: max-content; min-width: calc(100% - 24px); }
    .hero { border-radius: 18px; }
    .layout { grid-template-columns: 1fr; grid-template-areas: "toc" "mobile" "content"; gap: 20px; padding-top: 24px; }
    .docs-toc { position: static; }
    .docs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
    .toc-group { min-width: 0; }
    .toc-filter { margin-right: 0; }
    .card { padding: 22px; }
}

@media (max-width: 480px) {
    .docs-nav { grid-template-columns: 1fr; }
    .brand span:last-child { font-size: 0.95rem; }
}
