@font-face {
    font-family: Manrope;
    src: url("manrope-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("manrope-semibold.ttf") format("truetype");
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("manrope-extrabold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #10120f;
    --surface: #171a15;
    --surface-raised: #1e221b;
    --line: #2b3026;
    --line-bright: #3d4532;
    --text: #f1f2e9;
    --muted: #a0a695;
    --subtle: #7e8875;
    --accent: #e0f987;
    --accent-yellow: #f1d848;
    --sidebar: 246px;
    --header: 82px;
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 114px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 65% -20%, #26301b44, transparent 60%);
    content: "";
    pointer-events: none;
}

button, input {
    font: inherit;
}

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

button, a {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

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

button {
    color: inherit;
}

a, button {
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

::selection {
    color: var(--background);
    background: var(--accent);
}

[hidden] {
    display: none !important;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -80px;
    z-index: 100;
    padding: 16px 24px;
    color: var(--background);
    background: var(--accent);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 25px;
    height: var(--header);
    padding: 0 35px;
    border-bottom: 1px solid var(--line);
    background: #10120fed;
    backdrop-filter: blur(20px);
}

.brand {
    position: relative;
    padding-right: 13px;
    font-size: 39px;
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1;
    transform: rotate(-6deg);
}

.brand > span:first-child {
    color: var(--accent);
}

.brand-orbit {
    position: absolute;
    top: -1px;
    right: -4px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--accent);
    border-radius: 50%;
}

.header-divider {
    height: 23px;
    border-left: 1px solid var(--line-bright);
}

.docs-tag, .tiny-label, .edition, .sidebar-bottom, .last-update, .eyebrow, .pagination-direction, .footer-coordinate, .footer-bottom > span:last-child, .hero-coordinate, .orbital-label, .state-label, .section-number {
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.35px;
    line-height: 1.6;
}

.docs-tag {
    color: #c6cbbd;
    font-size: 10px;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

.header-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 20px 0;
}

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

.live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px #e0f98720;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 237px;
    height: 39px;
    margin-left: 23px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #191c16;
    color: var(--muted);
    font-size: 11px;
    text-align: left;
}

.header-search:hover {
    border-color: var(--line-bright);
    background: var(--surface-raised);
}

.header-search svg {
    width: 16px;
    height: 16px;
}

kbd {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid var(--line-bright);
    border-radius: 3px;
    font-family: inherit;
    font-size: 10px;
    line-height: 1.4;
}

.header-search kbd {
    margin-left: auto;
    white-space: nowrap;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    font-size: 25px;
}

#menu-toggle {
    display: none;
}

.reading-track {
    position: fixed;
    top: calc(var(--header) - 1px);
    left: var(--sidebar);
    right: 0;
    height: 1px;
    z-index: 35;
}

#reading-progress {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 80ms linear;
}

.sidebar {
    position: fixed;
    left: 0;
    top: var(--header);
    bottom: 0;
    z-index: 25;
    width: var(--sidebar);
    overflow: auto;
    padding: 31px 19px 17px;
    border-right: 1px solid var(--line);
    background: #11130f;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 11px 25px;
    color: var(--muted);
}

.edition {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 9px;
    letter-spacing: 0;
    color: var(--subtle);
}

.nav-group {
    margin: 0 0 22px;
}

.nav-group-title {
    margin: 0 0 8px 11px;
    color: #bbc1b1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.chapter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.chapter-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.65;
}

.chapter-link .chapter-count {
    margin-left: auto;
    font-family: "Courier New", monospace;
    font-size: 9px;
    opacity: 0.45;
}

.chapter-link:hover {
    color: var(--text);
    background: var(--surface);
}

.chapter-link.is-active {
    color: var(--accent);
    border-color: #d3f58820;
    background: #d3f5880c;
}

.chapter-link.is-active svg, .chapter-link.is-active .chapter-count {
    opacity: 1;
}

.sidebar-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 11px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.sidebar-note-icon {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #e1e5d5;
}

.sidebar-note-icon > span {
    font-size: 15px;
    vertical-align: top;
    color: var(--accent);
}

.sidebar-note-link {
    display: block;
    margin-top: 6px;
    color: var(--accent);
    font-size: 9px;
}

.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 10px 0;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 8px;
    letter-spacing: 0.55px;
}

#sidebar-backdrop {
    display: none;
}

.main-content {
    max-width: 1850px;
    margin-left: var(--sidebar);
    padding: 0 46px;
}

.main-content:focus {
    outline: none;
}

.page-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 78px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--subtle);
}

.breadcrumb-icon {
    font-size: 15px;
}

#page-title {
    color: #d7dccb;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 0;
    white-space: nowrap;
}

.last-update time {
    color: var(--muted);
}

.document-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 157px;
    gap: 49px;
}

.article-column {
    min-width: 0;
}

.doc-page {
    min-width: 0;
    padding-top: 43px;
    animation: page-arrive 320ms ease-out;
}

.article-heading {
    margin-bottom: 38px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    display: block;
    margin-bottom: 17px;
    color: var(--accent);
    font-size: 10px;
}

.doc-page h1 {
    margin: 0;
    font-size: clamp(35px, 3.4vw, 55px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2.3px;
    text-wrap: balance;
}

.doc-page h2 {
    margin: 44px 0 17px;
    color: var(--text);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.7px;
    scroll-margin-top: 105px;
}

.doc-page h3 {
    margin: 29px 0 12px;
    color: #e0e5d6;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.2px;
    scroll-margin-top: 105px;
}

.doc-page h4 {
    margin: 25px 0 12px;
    font-size: 14px;
}

.doc-page p, .doc-page li {
    color: #b1b7a7;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.doc-page p {
    margin: 14px 0;
}

.doc-page strong, .doc-page b {
    color: #e1e6d7;
    font-weight: 600;
}

.doc-page ul, .doc-page ol {
    padding-left: 22px;
    margin: 16px 0 23px;
}

.doc-page li {
    padding-left: 5px;
    margin: 8px 0;
}

.doc-page li::marker {
    color: var(--accent);
    font-size: 11px;
}

.doc-page p a, .doc-page li a, .doc-page td a, .doc-page figcaption a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #e0f98750;
    overflow-wrap: anywhere;
}

.doc-page a:hover {
    color: #f4ffce;
}

.doc-page section {
    min-width: 0;
}

.doc-page section + section {
    margin-top: 36px;
}

.doc-page blockquote, .callout {
    margin: 24px 0;
    padding: 15px 21px;
    border: 1px solid #ddf88820;
    border-left: 2px solid var(--accent);
    border-radius: 0 5px 5px 0;
    background: #def98706;
}

.doc-page blockquote p, .callout p {
    margin: 4px 0;
}

.doc-page .callout-warning {
    border-color: #e9c65a55;
    border-left: 3px solid #f2cc60;
    background: #eabc4510;
    color: #eadbb0;
}

.doc-page .callout-note {
    border-color: #68b5ee55;
    border-left: 3px solid #79bfff;
    background: #439fee10;
    color: #c5dcf1;
}

.callout-warning::before {
    display: block;
    margin-bottom: 7px;
    color: #f2cc60;
    content: "⚠  Warning";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.doc-page img {
    max-width: 100%;
    height: auto;
}

.doc-page figure {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #1a1e16;
    text-align: center;
}

.doc-page figure img {
    max-height: 520px;
    object-fit: contain;
    border-radius: 3px;
}

.doc-page figcaption {
    margin-top: 13px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.table-wrap {
    margin: 25px 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-bright) var(--surface);
}

.table-scroll {
    margin: 25px 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-bright) var(--surface);
}

.state-grid {
    display: grid;
    gap: 13px;
    margin: 22px 0 35px;
}

.state-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(120deg, #242c1d50, #151813);
}

.state-icon {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
    width: 59px;
    padding-top: 4px;
}

.state-icon img {
    width: 59px;
    height: auto;
}

.state-copy {
    flex: 1;
    min-width: 0;
}

.state-copy p {
    margin: 0 0 12px;
    font-size: 13px;
}

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

.state-copy ul {
    margin-bottom: 5px;
}

.doc-page .article-figure {
    background: #0b0d09;
}

.article-meta {
    color: var(--subtle);
    font: 9px/1.5 "Courier New", monospace;
}

.original-logo {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border: 1px solid var(--line-bright);
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 8px;
}

.doc-page table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
    line-height: 1.75;
}

.doc-page th {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line-bright);
    background: #20261a;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.doc-page td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    color: #b6bdab;
    vertical-align: top;
}

.doc-page tr:last-child > td {
    border-bottom: 0;
}

.doc-page tbody tr:nth-child(even) {
    background: #ffffff02;
}

.doc-page tbody tr:hover {
    background: #d4ef8a06;
}

.doc-page td p:first-child {
    margin-top: 0;
}

.doc-page td p:last-child {
    margin-bottom: 0;
}

.doc-page td img {
    width: 58px;
    min-width: 45px;
    margin: 6px;
}

.doc-page pre {
    max-width: 100%;
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0b0e09;
    color: #aab799;
    font: 11px/1.9 "Courier New", monospace;
}

.doc-page code {
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--surface-raised);
    color: var(--accent);
    font-size: 0.9em;
}

.doc-page pre code {
    padding: 0;
    background: none;
}

.page-rail {
    padding-top: 47px;
}

.rail-inner {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 146px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.page-rail .tiny-label {
    margin-bottom: 22px;
    color: #c1c8b5;
    font-size: 9px;
}

#toc-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 25px;
    border-left: 1px solid var(--line);
}

#toc-links a {
    display: block;
    margin-left: -1px;
    padding: 7px 0 7px 14px;
    border-left: 1px solid transparent;
    color: var(--subtle);
    font-size: 10px;
    line-height: 1.65;
}

#toc-links a.is-active {
    border-left-color: var(--accent);
    color: var(--accent);
}

#toc-links a:hover {
    color: var(--text);
}

#toc-links a.toc-subsection {
    padding-left: 24px;
    font-size: 9px;
}

#toc-links a.toc-link-sub {
    padding-left: 24px;
    font-size: 9px;
}

.rail-note {
    margin-top: 20px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.rail-star {
    display: inline-block;
    color: var(--accent);
    font-size: 38px;
    line-height: 1;
}

.rail-note p {
    margin: 11px 0;
    color: #c5cdb7;
    font-size: 12px;
    line-height: 1.75;
}

.rail-note > span:last-child {
    color: var(--subtle);
    font: 8px/1.5 "Courier New", monospace;
    letter-spacing: 1px;
}

.rail-top {
    display: flex;
    justify-content: space-between;
    margin-top: 31px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 10px;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 376px;
    margin: -4px -10px 0 0;
    padding: 17px 0 31px;
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 8px;
    letter-spacing: 1.65px;
}

.hero .eyebrow::before {
    width: 16px;
    height: 1px;
    background: var(--accent);
    content: "";
}

.doc-page .hero h1 {
    position: relative;
    z-index: 2;
    max-width: 430px;
    font-size: clamp(62px, 6.1vw, 104px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -5px;
}

.hero h1 > span {
    color: var(--accent);
}

.hero h1 > .hero-question {
    display: inline-block;
    margin-left: 7px;
    color: var(--text);
}

.doc-page .hero-description {
    position: relative;
    z-index: 2;
    max-width: 340px;
    margin: 23px 0 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.95;
}

.hero-actions {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 23px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: #1c2213;
    background: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

.doc-page .primary-button:hover {
    color: #10120f;
    background: #ecffb0;
    transform: translateY(-2px);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #dce3ce;
    font-size: 10px;
}

.orbital-scene {
    position: absolute;
    z-index: -1;
    top: 15px;
    right: -13px;
    width: 365px;
    height: 360px;
    background: radial-gradient(ellipse at 55% 53%, #b4d34017, transparent 63%);
}

.orbital-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#8396470a 1px, transparent 1px), linear-gradient(90deg, #8396470a 1px, transparent 1px);
    background-size: 29px 29px;
    mask-image: radial-gradient(ellipse, #000 30%, transparent 69%);
}

.orbit {
    position: absolute;
    top: 37px;
    left: 24px;
    width: 310px;
    height: 280px;
    border: 1px solid #b0c77320;
    border-radius: 50%;
    transform: rotate(-27deg);
}

.orbit::before, .orbit::after {
    position: absolute;
    content: "";
}

.orbit::before {
    top: 34px;
    right: 33px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px #d4f28666;
}

.orbit::after {
    inset: 16px;
    border: 1px dashed #adc76819;
    border-radius: 50%;
}

.orbit-two {
    top: 114px;
    left: -7px;
    width: 371px;
    height: 125px;
    transform: rotate(-27deg);
    border-color: #cee58337;
}

.orbit-two::after {
    display: none;
}

.doc-page .hero-face {
    position: absolute;
    z-index: 2;
    top: 72px;
    left: 70px;
    width: 221px;
    height: 221px;
    filter: drop-shadow(0 24px 29px #0009) saturate(0.93);
    transform: rotate(-14deg);
    animation: float-face 7s ease-in-out infinite;
}

.orbital-label {
    position: absolute;
    z-index: 3;
    color: #99a882;
    font-size: 7px;
    letter-spacing: 1px;
}

.orbital-label-top {
    top: 29px;
    right: 27px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.orbital-label-left {
    top: 89px;
    left: 19px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.state-label {
    position: absolute;
    z-index: 3;
    bottom: 19px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #a3b46c32;
    border-radius: 5px;
    background: #22291acf;
    box-shadow: 0 8px 30px #0005;
    backdrop-filter: blur(15px);
    color: #8c9a7c;
    font-size: 7px;
    letter-spacing: 1px;
    transform: rotate(-5deg);
}

.state-label img {
    width: 30px;
    height: 30px;
}

.state-label strong {
    display: block;
    margin-top: 2px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 400;
}

.hero-coordinate {
    position: absolute;
    left: 59px;
    bottom: 11px;
    color: #7f8c6c;
    font-size: 7px;
    letter-spacing: 0.65px;
}

.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin: 21px 0 40px;
}

.quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 152px;
    padding: 19px 17px 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(125deg, #21271a55, #151813);
}

.quick-card:hover {
    border-color: #98b05d77;
    background: #232c1a;
    transform: translateY(-3px);
}

.quick-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
}

.quick-card-top svg {
    width: 19px;
    height: 19px;
    color: var(--accent);
}

.quick-card-top > span {
    color: var(--subtle);
    font: 9px/1 "Courier New", monospace;
}

.quick-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.quick-card small {
    padding-right: 13px;
    color: var(--subtle);
    font-size: 9px;
    line-height: 1.6;
}

.quick-card .card-arrow {
    position: absolute;
    bottom: 17px;
    right: 16px;
    font-size: 13px;
    color: #c7d5b3;
}

.overview-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.overview-heading .section-number {
    color: var(--accent);
    font-size: 10px;
}

.doc-page .overview-heading h2 {
    margin: 22px 0 13px;
    font-size: 22px;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 26px;
    padding: 0 !important;
    margin: 24px 0 !important;
    list-style: none;
}

.intro-features li {
    position: relative;
    margin: 0;
    padding: 15px 0 15px 26px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.9;
}

.intro-features li::before {
    position: absolute;
    top: 19px;
    left: 0;
    width: 13px;
    height: 13px;
    border: 1px solid #77894b;
    border-radius: 50%;
    color: var(--accent);
    content: "✓";
    text-align: center;
    font-size: 8px;
    line-height: 12px;
}

.intro-boundaries {
    margin-top: 32px;
    padding: 8px 21px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.doc-page .intro-boundaries h2 {
    margin-top: 16px;
    font-size: 15px;
}

.intro-boundaries ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 27px;
    margin: 12px 0 0;
    padding-left: 13px;
}

.intro-boundaries li {
    margin: 0;
    font-size: 11px;
}

.page-pagination {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    margin: 48px 0 57px;
}

.page-pagination > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
}

.page-pagination > a:hover {
    border-color: #839751;
    background: #d9f58107;
}

.page-pagination > #next-page {
    text-align: right;
}

.pagination-direction {
    color: var(--subtle);
    font-size: 8px;
}

.site-footer {
    position: relative;
    isolation: isolate;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid var(--line-bright);
    border-radius: 7px;
    background: radial-gradient(ellipse at 12% 85%, #a9c85513, transparent 60%), #161b13;
}

.site-footer::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(#8196460b 1px, transparent 1px), linear-gradient(90deg, #8196460b 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(120deg, #000, transparent 75%);
    content: "";
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 26px 0;
    color: var(--muted);
}

.footer-top .tiny-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 8px;
}

.footer-coordinate {
    color: var(--subtle);
    font-size: 7px;
    letter-spacing: 1px;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 7%;
    padding: 25px 28px 34px;
}

.footer-wordmark {
    position: relative;
    color: var(--accent);
    font-size: clamp(98px, 12vw, 205px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -14px;
    transform: rotate(-5deg);
}

.footer-wordmark > span:first-child {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}

.footer-spark {
    position: absolute;
    top: 14px;
    right: -30px;
    color: var(--accent);
    font-size: 35px;
    line-height: 1;
    transform: rotate(6deg);
}

.footer-message {
    margin-left: 12px;
}

.footer-message .tiny-label {
    color: var(--subtle);
    font-size: 7px;
    letter-spacing: 0.8px;
}

.footer-message p {
    margin: 13px 0 0;
    font-size: clamp(19px, 2vw, 29px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.7px;
}

.footer-message p > span {
    color: var(--subtle);
}

.footer-up {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    margin-left: auto;
    border: 1px solid #728149;
    border-radius: 50%;
    color: var(--accent);
    font-size: 34px;
}

.footer-up:hover {
    color: var(--background);
    background: var(--accent);
    transform: rotate(-45deg);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 26px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 9px;
}

.footer-bottom nav {
    display: flex;
    gap: 22px;
    color: #c1cbb2;
}

.footer-bottom > span:last-child {
    font-size: 7px;
    letter-spacing: 0.65px;
}

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

.search-dialog {
    position: fixed;
    top: min(16vh, 120px);
    width: min(620px, calc(100% - 30px));
    max-height: 76vh;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #6c7f4870;
    border-radius: 10px;
    color: var(--text);
    background: #171c13;
    box-shadow: 0 40px 150px #000a;
}

.search-dialog::backdrop {
    background: #080b08b8;
    backdrop-filter: blur(9px);
}

.search-dialog[open] {
    display: flex;
    flex-direction: column;
}

.search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 22px 8px;
}

.search-heading h2 {
    margin: 0;
    color: #d8e1ca;
    font-size: 14px;
    font-weight: 600;
}

.search-heading .icon-button {
    width: 30px;
    height: 30px;
    color: var(--muted);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 20px 16px;
    padding: 13px 16px;
    border: 1px solid #6c7f4860;
    border-radius: 5px;
    background: #0e120b;
    color: var(--accent);
}

.search-field svg {
    flex-shrink: 0;
}

.search-field input {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
    font-size: 14px;
}

.search-field input::placeholder {
    color: var(--subtle);
}

.search-results {
    min-height: 130px;
    max-height: 430px;
    padding: 0 12px 14px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-bright) var(--surface);
}

.search-results > p, .search-empty {
    padding: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.search-result {
    display: block;
    margin: 3px 0;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.search-result.is-selected, .search-result:hover {
    border-color: #d1ed8230;
    background: #d1ed8209;
}

.search-result-title {
    display: block;
    color: #e5ecd9;
    font-size: 13px;
    font-weight: 600;
}

.search-result-meta {
    display: block;
    margin: 3px 0;
    color: var(--accent);
    font-size: 9px;
}

.search-result-snippet {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.search-result mark {
    color: var(--accent);
    background: #d3f38717;
}

.search-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 9px;
}

.search-footer kbd {
    margin: 0 2px;
    font-size: 9px;
}

@keyframes float-face {
    0%, 100% { transform: translateY(0) rotate(-14deg); }
    50% { transform: translateY(-9px) rotate(-10deg); }
}

@keyframes page-arrive {
    from { opacity: 0.5; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1650px) {
    :root {
        --sidebar: 276px;
    }

    .main-content {
        padding: 0 65px;
    }

    .document-grid {
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 70px;
    }

    .orbital-scene {
        right: 15px;
        top: 16px;
        transform: scale(1.1);
        transform-origin: center right;
    }

    .hero {
        min-height: 400px;
    }

    .doc-page p, .doc-page li {
        font-size: 14px;
    }

    .hero-description {
        max-width: 380px !important;
    }

    .chapter-link {
        min-height: 38px;
        font-size: 12px;
    }
}

@media (max-width: 1250px) {
    :root {
        --sidebar: 221px;
    }

    .site-header {
        padding: 0 27px;
        gap: 20px;
    }

    .header-nav {
        gap: 22px;
    }

    .header-search {
        width: 205px;
        margin-left: 8px;
    }

    .main-content {
        padding: 0 31px;
    }

    .document-grid {
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 28px;
    }

    .orbital-scene {
        top: 41px;
        right: -31px;
        transform: scale(0.8);
        transform-origin: center right;
    }

    .doc-page .hero h1 {
        font-size: 75px;
    }

    .doc-page .hero-description {
        max-width: 275px;
        font-size: 11px;
    }

    .quick-card {
        padding: 16px 12px;
    }

    .quick-card strong {
        font-size: 11px;
    }

    .footer-center {
        gap: 8%;
    }
}

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

    .header-search {
        margin-left: auto;
        width: 237px;
    }

    .document-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-rail {
        display: none;
    }

    .orbital-scene {
        top: 12px;
        right: -6px;
        transform: scale(0.95);
    }

    .doc-page .hero h1 {
        font-size: 88px;
    }

    .doc-page .hero-description {
        max-width: 330px;
        font-size: 12px;
    }

    .hero {
        min-height: 397px;
    }

    .footer-coordinate {
        display: none;
    }

    .footer-bottom > span:last-child {
        display: none;
    }
}

@media (max-width: 800px) {
    :root {
        --header: 69px;
        --sidebar: 246px;
    }

    .site-header {
        padding: 0 22px;
        gap: 17px;
    }

    .brand {
        font-size: 34px;
    }

    .docs-tag {
        font-size: 8px;
    }

    .header-search {
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        background: transparent;
    }

    .header-search > span, .header-search kbd {
        display: none;
    }

    #menu-toggle {
        display: flex;
        width: 36px;
        height: 36px;
    }

    .reading-track {
        left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    #sidebar-backdrop.is-open {
        position: fixed;
        z-index: 20;
        inset: var(--header) 0 0;
        display: block;
        width: 100%;
        border: 0;
        background: #0009;
        backdrop-filter: blur(3px);
    }

    body.menu-open {
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
        padding: 0 28px;
    }

    .page-topline {
        min-height: 65px;
    }

    .doc-page {
        padding-top: 30px;
    }

    .doc-page h1 {
        font-size: 40px;
    }

    .hero {
        min-height: 395px;
        padding-top: 13px;
    }

    .doc-page .hero h1 {
        font-size: 87px;
    }

    .orbital-scene {
        right: 0;
    }

    .footer-wordmark {
        font-size: 130px;
    }
}

@media (max-width: 570px) {
    .site-header {
        gap: 12px;
        padding: 0 18px;
    }

    .header-divider {
        margin-left: 3px;
    }

    .docs-tag {
        font-size: 7px;
        letter-spacing: 0.8px;
    }

    .header-search {
        margin-left: auto;
    }

    .main-content {
        padding: 0 21px;
    }

    .last-update {
        font-size: 7px;
        gap: 5px;
    }

    .last-update .live-dot {
        display: none;
    }

    .breadcrumb {
        gap: 8px;
        font-size: 9px;
    }

    .breadcrumb-icon {
        display: none;
    }

    .hero {
        min-height: 605px;
        margin-right: 0;
        padding-top: 5px;
        padding-bottom: 0;
    }

    .hero .eyebrow {
        margin-bottom: 22px;
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .doc-page .hero h1 {
        font-size: 78px;
        line-height: 1.03;
        letter-spacing: -4px;
    }

    .doc-page .hero-description {
        max-width: 290px;
        margin: 17px 0 22px;
        font-size: 12px;
    }

    .hero-actions {
        gap: 21px;
    }

    .orbital-scene {
        top: 300px;
        right: calc(50% - 174px);
        width: 365px;
        height: 335px;
        transform: scale(0.77);
        transform-origin: center center;
    }

    .state-label {
        bottom: 0;
    }

    .hero-coordinate {
        bottom: -5px;
    }

    .quickstart-grid {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 16px;
        margin-bottom: 29px;
    }

    .quick-card {
        display: grid;
        grid-template-columns: 39px 1fr;
        min-height: 82px;
        padding: 16px;
    }

    .quick-card-top {
        grid-row: 1 / 3;
        justify-content: flex-start;
        margin: 0;
    }

    .quick-card-top > span {
        display: none;
    }

    .quick-card strong {
        align-self: end;
        margin-bottom: 3px;
        font-size: 12px;
    }

    .quick-card small {
        grid-column: 2;
        font-size: 10px;
    }

    .quick-card .card-arrow {
        top: 32px;
        bottom: auto;
        right: 17px;
    }

    .intro-features {
        grid-template-columns: 1fr;
    }

    .intro-features li {
        padding-top: 13px;
        padding-bottom: 13px;
        font-size: 12px;
    }

    .intro-boundaries ul {
        display: block;
        margin-top: 10px;
    }

    .intro-boundaries li {
        margin: 5px 0;
    }

    .doc-page h1 {
        font-size: 35px;
        letter-spacing: -1.5px;
    }

    .doc-page h2 {
        font-size: 21px;
    }

    .doc-page h3 {
        font-size: 16px;
    }

    .doc-page p, .doc-page li {
        font-size: 14px;
    }

    .doc-page figure {
        padding: 10px;
    }

    .doc-page td, .doc-page th {
        padding: 12px;
    }

    .doc-page td img {
        width: 45px;
        min-width: 35px;
        margin: 3px 0;
    }

    .state-card {
        padding: 15px;
        gap: 15px;
    }

    .state-icon, .state-icon img {
        width: 40px;
    }

    .page-pagination {
        gap: 10px;
        margin: 35px 0;
    }

    .page-pagination > a {
        gap: 8px;
        padding: 16px 12px;
        font-size: 11px;
    }

    .pagination-direction {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .footer-top {
        padding: 18px 19px 0;
    }

    .footer-center {
        position: relative;
        flex-wrap: wrap;
        gap: 24px;
        padding: 27px 20px 23px;
    }

    .footer-wordmark {
        font-size: 133px;
        letter-spacing: -13px;
    }

    .footer-message {
        width: 100%;
        margin-left: 0;
        padding-top: 15px;
        border-top: 1px solid var(--line);
    }

    .footer-message p {
        margin-top: 9px;
        font-size: 20px;
        line-height: 1.4;
    }

    .footer-message p br {
        display: none;
    }

    .footer-message p br::after {
        content: " ";
    }

    .footer-up {
        position: absolute;
        top: 46px;
        right: 23px;
        width: 47px;
        height: 47px;
        font-size: 28px;
    }

    .footer-spark {
        top: 11px;
        font-size: 28px;
        right: -21px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 13px;
        padding: 16px 19px;
        font-size: 8px;
    }

    .footer-bottom nav {
        gap: 20px;
    }

    .search-dialog {
        top: 80px;
        max-height: calc(100dvh - 110px);
    }

    .search-heading {
        padding-left: 17px;
        padding-right: 17px;
    }

    .search-heading h2 {
        font-size: 12px;
    }

    .search-field {
        margin-left: 16px;
        margin-right: 16px;
    }

    .search-field input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    :root {
        color-scheme: light;
    }

    body, .main-content, .doc-page {
        color: #111;
        background: white;
    }

    .site-header, .sidebar, .page-rail, .reading-track, .page-pagination, .site-footer, .hero-actions, .orbital-scene, .quickstart-grid {
        display: none !important;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .document-grid {
        display: block;
    }

    .doc-page p, .doc-page li, .doc-page h1, .doc-page h2, .doc-page h3, .doc-page td, .doc-page th, .doc-page strong {
        color: #111;
    }

    .hero {
        min-height: 0;
    }

    .doc-page table, .doc-page figure, .doc-page blockquote {
        break-inside: avoid;
    }
}
