:root {
    --bg-color: #050505;
    --bg-elevated: #0a0a0a;
    --surface-color: #111111;
    --surface-strong: rgba(17, 17, 17, 0.88);
    --surface-glass: rgba(17, 17, 17, 0.62);
    --surface-glass-border: rgba(255, 255, 255, 0.08);
    --surface-hover-border: rgba(26, 107, 255, 0.42);
    --search-surface: rgba(12, 12, 12, 0.76);
    --code-bg: rgba(0, 0, 0, 0.72);
    --code-border: rgba(255, 255, 255, 0.065);
    --text-primary: #fff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --primary-color: #0759ee;
    --primary-bright: #1a6bff;
    --primary-gradient: #0759ee;
    --secondary-color: #ff7a00;
    --secondary-gradient: #ff7a00;
    --success-color: #22c55e;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --container-width: 1440px;
    --content-width: 1120px;
    --header-height: 76px;
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 7px;
    --shadow-card: 0 20px 65px rgba(0, 0, 0, 0.18);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
    --bg-color: #f6f9ff;
    --bg-elevated: #eef4ff;
    --surface-color: #fff;
    --surface-strong: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.78);
    --surface-glass-border: rgba(15, 23, 42, 0.09);
    --surface-hover-border: rgba(7, 89, 238, 0.34);
    --search-surface: rgba(255, 255, 255, 0.94);
    --code-bg: #11101e;
    --code-border: rgba(255, 255, 255, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary-color: #0759ee;
    --primary-bright: #1a6bff;
    --primary-gradient: #0759ee;
    --secondary-gradient: #ff7a00;
    --shadow-card: 0 18px 55px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 30px);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 78% 10%, rgba(7, 89, 238, 0.09), transparent 25rem),
        var(--bg-color);
    color: var(--text-primary);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

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

svg {
    display: block;
}

code,
pre,
kbd {
    font-family: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--text-primary);
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.025em;
}

::selection {
    background: rgba(26, 107, 255, 0.38);
    color: #fff;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(7, 89, 238, 0.45);
    border: 2px solid var(--bg-color);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 3000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #111827;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

.scroll-progress {
    position: fixed;
    z-index: 2200;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    box-shadow: 0 0 18px rgba(255, 0, 128, 0.5);
}

.glass-panel {
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.gradient-text {
    background: none;
    color: var(--primary-bright);
    -webkit-text-fill-color: currentColor;
}

.site-header {
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid var(--surface-glass-border);
    background: rgba(8, 7, 17, 0.76);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header {
    background: rgba(248, 250, 252, 0.84);
}

.header-inner {
    display: flex;
    width: min(calc(100% - 48px), var(--container-width));
    height: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
}

.brand-icon {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: contain;
}

.brand-icon-white {
    display: block;
}

.brand-icon-color {
    display: none;
}

html[data-theme="light"] .brand-icon-white {
    display: none;
}

html[data-theme="light"] .brand-icon-color {
    display: block;
    mix-blend-mode: multiply;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav a {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.header-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--secondary-gradient);
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition: var(--transition-fast);
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: var(--text-primary);
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.version-chip {
    padding: 7px 12px;
    border: 1px solid rgba(0, 223, 216, 0.2);
    border-radius: 999px;
    background: rgba(0, 223, 216, 0.07);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.version-chip strong {
    color: var(--secondary-color);
}

.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--surface-glass-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-button:hover,
.icon-button:focus-visible {
    border-color: rgba(26, 107, 255, 0.45);
    background: rgba(7, 89, 238, 0.12);
    transform: translateY(-1px);
}

.icon-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.moon-icon {
    fill: currentColor !important;
    stroke: none !important;
}

.sun-icon,
html[data-theme="light"] .moon-icon {
    display: none;
}

html[data-theme="light"] .sun-icon {
    display: block;
}

.menu-button {
    display: none;
    align-content: center;
    gap: 4px;
}

.menu-button span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 9px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 650px;
    padding: calc(var(--header-height) + 104px) 24px 108px;
    overflow: hidden;
    border-bottom: 1px solid var(--surface-glass-border);
}

.hero::before {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 850px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 89, 238, 0.17), transparent 66%);
    content: "";
    filter: blur(12px);
    pointer-events: none;
    transform: translateX(-50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        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: 52px 52px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 94%);
    pointer-events: none;
}

html[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(115px);
    opacity: 0.25;
    pointer-events: none;
}

.orb-one {
    top: 80px;
    left: -160px;
    width: 380px;
    height: 380px;
    background: #0759ee;
}

.orb-two {
    right: -120px;
    bottom: 20px;
    width: 330px;
    height: 330px;
    background: #0759ee;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 24px;
    align-items: center;
    gap: 9px;
    color: var(--secondary-color);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 18px var(--secondary-color);
}

.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 5.65rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy {
    max-width: 760px;
    margin: 0 auto 34px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-search {
    position: relative;
    display: flex;
    width: min(100%, 700px);
    min-height: 64px;
    margin: 0 auto;
    align-items: center;
    gap: 13px;
    padding: 9px 12px 9px 20px;
    border: 1px solid rgba(26, 107, 255, 0.36);
    border-radius: var(--radius-lg);
    background: var(--search-surface);
    box-shadow: 0 22px 70px rgba(7, 89, 238, 0.22), inset 0 1px rgba(255, 255, 255, 0.035);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: var(--transition-fast);
}

.hero-search:focus-within {
    border-color: var(--primary-bright);
    box-shadow: 0 24px 75px rgba(7, 89, 238, 0.25), 0 0 0 4px rgba(26, 107, 255, 0.08);
    transform: translateY(-2px);
}

.hero-search > svg {
    width: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-width: 1.7;
}

.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.98rem;
}

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

.hero-search kbd {
    display: inline-flex;
    min-width: max-content;
    padding: 5px 8px;
    border: 1px solid var(--surface-glass-border);
    border-bottom-color: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.68rem;
    gap: 4px;
}

.mac-shortcut {
    display: none;
}

.clear-search {
    display: none;
    padding: 7px 9px;
    border: 0;
    background: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

.clear-search.visible {
    display: inline-flex;
}

.search-status {
    min-height: 1.5em;
    margin: 13px 0 0;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.hero-meta {
    display: flex;
    margin-top: 35px;
    justify-content: center;
    gap: 34px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.hero-meta span {
    position: relative;
}

.hero-meta span + span::before {
    position: absolute;
    top: 50%;
    left: -18px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    content: "";
}

.hero-meta strong {
    color: var(--text-primary);
    font-family: "Outfit", sans-serif;
}

.filter-strip {
    position: sticky;
    z-index: 900;
    top: var(--header-height);
    border-bottom: 1px solid var(--surface-glass-border);
    background: rgba(8, 7, 17, 0.82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .filter-strip {
    background: rgba(248, 250, 252, 0.88);
}

.filter-inner {
    display: flex;
    width: min(calc(100% - 48px), var(--container-width));
    min-height: 64px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    min-width: max-content;
    padding: 7px 13px;
    border: 1px solid var(--surface-glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.filter-chip:hover,
.filter-chip:focus-visible {
    border-color: rgba(26, 107, 255, 0.36);
    color: var(--text-primary);
}

.filter-chip.active {
    border-color: rgba(26, 107, 255, 0.25);
    background: rgba(7, 89, 238, 0.16);
    color: #a9c5ff;
}

html[data-theme="light"] .filter-chip.active {
    color: #0759ee;
}

.page-shell {
    display: grid;
    width: min(calc(100% - 48px), var(--container-width));
    margin: 0 auto;
    padding: 64px 0 110px;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

.sidebar {
    position: sticky;
    z-index: 20;
    top: calc(var(--header-height) + 88px);
    padding: 18px;
}

.sidebar-heading {
    display: flex;
    padding: 4px 8px 11px;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar-heading button {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.sidebar nav {
    display: grid;
    gap: 3px;
}

.sidebar-link {
    display: flex;
    padding: 9px 10px;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.79rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.sidebar-link span {
    color: var(--text-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
}

.sidebar-link.active {
    border-color: rgba(26, 107, 255, 0.18);
    background: linear-gradient(90deg, rgba(7, 89, 238, 0.16), rgba(7, 89, 238, 0.035));
    color: #dce8ff;
}

html[data-theme="light"] .sidebar-link.active {
    color: #0759ee;
}

.sidebar-link.active span {
    color: var(--secondary-color);
}

.sidebar-note {
    display: flex;
    margin-top: 17px;
    padding: 14px 10px 5px;
    align-items: flex-start;
    gap: 9px;
    border-top: 1px solid var(--surface-glass-border);
}

.status-dot {
    width: 7px;
    height: 7px;
    margin-top: 6px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 13px rgba(34, 197, 94, 0.75);
}

.sidebar-note div {
    display: flex;
    flex-direction: column;
}

.sidebar-note strong {
    font-size: 0.72rem;
}

.sidebar-note small {
    color: var(--text-muted);
    font-size: 0.62rem;
}

.sidebar-scrim {
    display: none;
}

.content {
    min-width: 0;
}

.reference-section {
    margin-bottom: 92px;
}

.reference-section[hidden] {
    display: none;
}

.section-heading {
    display: grid;
    margin-bottom: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    gap: 36px;
    align-items: end;
}

.section-heading > div {
    position: relative;
}

.section-number {
    position: absolute;
    z-index: -1;
    top: -44px;
    left: -8px;
    color: rgba(255, 255, 255, 0.025);
    font-family: "Outfit", sans-serif;
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1;
    user-select: none;
}

html[data-theme="light"] .section-number {
    color: rgba(15, 23, 42, 0.035);
}

.section-kicker {
    margin-bottom: 7px;
    color: var(--secondary-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.05;
}

.section-heading > p {
    margin-bottom: 2px;
    color: var(--text-secondary);
    font-size: 0.83rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reference-card {
    position: relative;
    min-width: 0;
    padding: 25px;
    overflow: hidden;
    transition: border-color var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.reference-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 107, 255, 0.42), transparent);
    content: "";
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.reference-card:hover {
    border-color: var(--surface-hover-border);
    box-shadow: 0 20px 60px rgba(7, 89, 238, 0.1);
    transform: translateY(-3px);
}

.reference-card:hover::before {
    opacity: 1;
}

.reference-card[hidden] {
    display: none;
}

.featured-card {
    background:
        linear-gradient(135deg, rgba(7, 89, 238, 0.11), transparent 65%),
        var(--surface-glass);
}

.warning-card {
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.07), transparent 58%),
        var(--surface-glass);
}

.card-top {
    display: flex;
    min-height: 25px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-label {
    color: var(--secondary-color);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-badge {
    padding: 4px 8px;
    border: 1px solid rgba(26, 107, 255, 0.23);
    border-radius: 999px;
    background: rgba(7, 89, 238, 0.11);
    color: #a9c5ff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-theme="light"] .card-badge {
    color: #0759ee;
}

.card-badge.cyan {
    border-color: rgba(0, 223, 216, 0.22);
    background: rgba(0, 223, 216, 0.08);
    color: var(--secondary-color);
}

.card-badge.warning {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.08);
    color: var(--warning-color);
}

.reference-card h3 {
    margin-bottom: 9px;
    font-size: 1.19rem;
    line-height: 1.25;
}

.reference-card h3 code {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.reference-card > p {
    margin-bottom: 17px;
    color: var(--text-secondary);
    font-size: 0.79rem;
}

.reference-card p:last-child,
.reference-card > :last-child {
    margin-bottom: 0;
}

.reference-card p code,
.mini-note code,
.check-list code,
.number-list code {
    padding: 2px 5px;
    border: 1px solid var(--surface-glass-border);
    border-radius: 4px;
    background: rgba(26, 107, 255, 0.07);
    color: #a9c5ff;
    font-size: 0.88em;
}

html[data-theme="light"] .reference-card p code,
html[data-theme="light"] .mini-note code,
html[data-theme="light"] .check-list code,
html[data-theme="light"] .number-list code {
    color: #0759ee;
}

pre {
    position: relative;
    margin: 16px -5px 0;
    padding: 18px 18px 18px 21px;
    overflow: auto;
    border: 1px solid var(--code-border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(90deg, rgba(7, 89, 238, 0.045), transparent 55%),
        var(--code-bg);
    color: #d6deeb;
    font-size: 0.72rem;
    line-height: 1.75;
    tab-size: 2;
    white-space: pre;
}

pre::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    border-radius: 2px 0 0 2px;
    background: var(--primary-gradient);
    content: "";
    opacity: 0.65;
}

pre code {
    color: inherit;
    font: inherit;
}

.copy-button {
    position: sticky;
    z-index: 4;
    top: 0;
    float: right;
    min-width: 58px;
    margin: -8px -9px 4px 12px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #18152b;
    color: #a0aec0;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.copy-button:hover,
.copy-button:focus-visible {
    border-color: rgba(0, 223, 216, 0.3);
    color: var(--secondary-color);
}

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

.callout {
    padding: 13px 15px;
    border-left: 2px solid var(--secondary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(0, 223, 216, 0.055);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.callout strong {
    color: var(--text-primary);
}

.callout code {
    color: var(--secondary-color);
}

.compact-list,
.field-list,
.check-list,
.number-list {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.compact-list {
    display: grid;
    gap: 8px;
}

.compact-list.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-list li {
    padding: 7px 9px;
    border: 1px solid var(--surface-glass-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.7rem;
}

.compact-list code {
    color: #a9c5ff;
}

html[data-theme="light"] .compact-list code {
    color: #0759ee;
}

.field-list {
    display: grid;
}

.field-list li {
    display: flex;
    min-width: 0;
    padding: 8px 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--surface-glass-border);
    font-size: 0.7rem;
}

.field-list li:last-child {
    border-bottom: 0;
}

.field-list code {
    min-width: 0;
    overflow: hidden;
    color: #a9c5ff;
    text-overflow: ellipsis;
}

html[data-theme="light"] .field-list code {
    color: #0759ee;
}

.field-list span {
    color: var(--text-muted);
    text-align: right;
}

.mini-note {
    margin-top: 12px !important;
    color: var(--text-muted) !important;
    font-size: 0.69rem !important;
}

.token-cloud {
    display: flex;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.token-cloud code {
    padding: 5px 8px;
    border: 1px solid rgba(26, 107, 255, 0.18);
    border-radius: 6px;
    background: rgba(7, 89, 238, 0.07);
    color: #a9c5ff;
    font-size: 0.67rem;
}

html[data-theme="light"] .token-cloud code {
    color: #0759ee;
}

.check-list,
.number-list {
    display: grid;
    gap: 10px;
}

.check-list li,
.number-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.check-list li::before {
    position: absolute;
    top: 0.05em;
    left: 0;
    color: var(--success-color);
    content: "\2713";
    font-weight: 800;
}

.check-list.negative li::before {
    color: var(--danger-color);
    content: "\00D7";
    font-size: 1.05rem;
}

.number-list {
    counter-reset: preflight;
}

.number-list li {
    counter-increment: preflight;
}

.number-list li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    color: var(--secondary-color);
    content: counter(preflight, decimal-leading-zero);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.61rem;
}

.no-results {
    padding: 68px 30px;
    text-align: center;
}

.no-results-icon {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-bright);
    font-size: 3.5rem;
    line-height: 1;
}

.no-results h2 {
    margin-bottom: 7px;
}

.no-results p {
    color: var(--text-secondary);
}

.button {
    display: inline-flex;
    padding: 11px 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.button-primary {
    background: var(--primary-color);
    box-shadow: 0 8px 26px rgba(7, 89, 238, 0.28);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    box-shadow: 0 12px 34px rgba(7, 89, 238, 0.42);
    transform: translateY(-2px);
}

.closing-panel {
    display: flex;
    padding: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    background:
        radial-gradient(circle at 90% 20%, rgba(0, 124, 240, 0.11), transparent 19rem),
        radial-gradient(circle at 5% 90%, rgba(7, 89, 238, 0.15), transparent 20rem),
        var(--surface-glass);
}

.section-badge {
    display: inline-block;
    margin-bottom: 13px;
    padding: 5px 12px;
    border: 1px solid rgba(7, 89, 238, 0.3);
    border-radius: 999px;
    background: rgba(7, 89, 238, 0.1);
    color: #ff7a00;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.closing-panel h2 {
    margin-bottom: 13px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.13;
}

.closing-panel p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.closing-panel .button {
    min-width: max-content;
}

.site-footer {
    display: flex;
    width: min(calc(100% - 48px), var(--container-width));
    margin: 0 auto;
    padding: 52px 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid var(--surface-glass-border);
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer > div > p {
    max-width: 520px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.73rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.68rem;
    text-align: right;
}

.back-to-top {
    position: fixed;
    z-index: 800;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--surface-glass-border);
    border-radius: 50%;
    background: var(--surface-strong);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: var(--transition-fast);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    border-color: rgba(26, 107, 255, 0.45);
    color: var(--secondary-color);
}

.toast {
    position: fixed;
    z-index: 2600;
    bottom: 26px;
    left: 50%;
    padding: 9px 14px;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 999px;
    background: #121b18;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: #86efac;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
    transition: var(--transition-fast);
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .header-nav {
        display: none;
    }

    .page-shell {
        grid-template-columns: 205px minmax(0, 1fr);
        gap: 28px;
    }

    .reference-card {
        padding: 22px;
    }
}

@media (max-width: 960px) {
    .menu-button {
        display: grid;
    }

    .page-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        z-index: 2100;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(84vw, 310px);
        padding: 22px;
        overflow-y: auto;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        background: var(--surface-color);
        opacity: 0;
        pointer-events: none;
        transform: translateX(-102%);
        transition: var(--transition-smooth);
    }

    .sidebar-heading button {
        display: block;
    }

    body.nav-open .sidebar {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 2050;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(3, 2, 9, 0.68);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-fast);
    }

    body.nav-open .sidebar-scrim {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
    }

    .header-inner,
    .filter-inner,
    .page-shell,
    .site-footer {
        width: min(calc(100% - 30px), var(--container-width));
    }

    .brand-copy small,
    .version-chip {
        display: none;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .hero {
        min-height: 590px;
        padding: calc(var(--header-height) + 82px) 15px 82px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.2rem);
    }

    .hero-copy {
        font-size: 0.93rem;
    }

    .hero-search {
        min-height: 58px;
        padding-left: 15px;
    }

    .hero-search kbd {
        display: none;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 11px 24px;
    }

    .hero-meta span + span::before {
        left: -13px;
    }

    .filter-inner {
        min-height: 58px;
        justify-content: flex-start;
    }

    .page-shell {
        padding-top: 48px;
    }

    .reference-section {
        margin-bottom: 72px;
    }

    .section-heading {
        display: block;
        margin-bottom: 23px;
    }

    .section-heading > p {
        margin-top: 13px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .reference-card {
        padding: 21px;
    }

    .closing-panel,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .closing-panel {
        padding: 30px 25px;
    }

    .site-footer {
        padding: 42px 0;
    }

    .footer-meta {
        text-align: left;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 430px) {
    .header-inner {
        gap: 10px;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button {
        width: 37px;
        height: 37px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .eyebrow {
        font-size: 0.66rem;
    }

    .hero-search input {
        font-size: 0.86rem;
    }

    .hero-meta span + span::before {
        display: none;
    }

    .compact-list.two-columns {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.67rem;
    }

    .field-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .field-list span {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    :root {
        --text-primary: #111827;
        --text-secondary: #374151;
        --text-muted: #6b7280;
        --surface-glass-border: #d1d5db;
    }

    body {
        background: #fff;
        color: #111827;
    }

    .site-header,
    .filter-strip,
    .sidebar,
    .sidebar-scrim,
    .hero-search,
    .hero-meta,
    .back-to-top,
    .toast,
    .copy-button,
    .scroll-progress {
        display: none !important;
    }

    .hero {
        min-height: 0;
        padding: 30px 0;
        border-bottom: 1px solid #d1d5db;
    }

    .hero h1 {
        font-size: 40px;
    }

    .page-shell {
        display: block;
        width: 100%;
        padding: 30px 0;
    }

    .reference-card,
    .closing-panel {
        break-inside: avoid;
        border: 1px solid #d1d5db;
        background: #fff;
        box-shadow: none;
    }

    pre {
        white-space: pre-wrap;
    }
}
