@font-face {
  font-family: "Louis George Cafe";
  src: url("../assets/fonts/louis-george-cafe/Louis%20George%20Cafe%20Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Louis George Cafe";
  src: url("../assets/fonts/louis-george-cafe/Louis%20George%20Cafe.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Louis George Cafe";
  src: url("../assets/fonts/louis-george-cafe/Louis%20George%20Cafe%20Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0d0e10;
  --bg-soft: #121315;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.065);
  --line: rgba(232, 229, 220, 0.13);
  --line-strong: rgba(192, 164, 122, 0.34);
  --text: #eee9df;
  --muted: #aaa399;
  --dim: #777168;
  --bronze: #c0a47a;
  --bronze-deep: #9a8061;
  --ink: #17181a;
  --header-h: 72px;
  color-scheme: dark;
  font-family: "Louis George Cafe", "Segoe UI", sans-serif;
  font-synthesis: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: var(--bg);
}

html,
.docs-sidebar,
.docs-toc,
.search-results,
.example-box,
.formula-box,
.code-box {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
.docs-sidebar::-webkit-scrollbar,
.docs-toc::-webkit-scrollbar,
.search-results::-webkit-scrollbar,
.example-box::-webkit-scrollbar,
.formula-box::-webkit-scrollbar,
.code-box::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 3%, rgba(154, 128, 97, 0.1), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--bronze);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

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

::selection {
  background: var(--bronze);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.docs-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 14, 16, 0.84);
  backdrop-filter: blur(22px) saturate(1.2);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  width: min(100%, 1600px);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 28px;
  gap: 22px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 0;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-lockup span {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.header-nav a {
  position: relative;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8bd91, transparent);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 9px 24px rgba(0, 0, 0, 0.1);
  color: #f6f1e7;
  transform: translateY(-1px);
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  width: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(232, 229, 220, 0.14);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(154, 128, 97, 0.035));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.12);
  color: #d8c7aa;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: normal;
  backdrop-filter: blur(16px) saturate(1.12);
}

.section-badge::before {
  content: "";
  width: 16px;
  height: 1px;
  margin-right: 9px;
  flex: none;
  background: linear-gradient(90deg, var(--bronze), rgba(192, 164, 122, 0.14));
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(60, 66, 69, 0.48), rgba(154, 128, 97, 0.34));
  color: var(--text);
  transform: translateY(-1px);
}

.sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.sidebar-toggle span,
.sidebar-toggle::before,
.sidebar-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.docs-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 820px) 210px;
  justify-content: center;
  width: min(100%, 1600px);
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: 34px 28px 80px;
  gap: 54px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
}

.docs-sidebar {
  padding: 18px 14px 20px;
  border: 1px solid rgba(232, 229, 220, 0.1);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(154, 128, 97, 0.02));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 18px 44px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(1.08);
}

.sidebar-heading {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-search {
  position: relative;
  margin-bottom: 20px;
}

.docs-search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.docs-search input:focus {
  border-color: var(--line-strong);
  background: var(--panel);
}

.docs-search input::placeholder {
  color: var(--dim);
}

.search-key {
  position: absolute;
  top: 50%;
  right: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.3;
  transform: translateY(-50%);
}

.search-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 320px;
  padding: 7px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(20, 21, 23, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.search-results[hidden] {
  display: none;
}

.search-results a,
.search-empty {
  display: block;
  padding: 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--panel-strong);
  color: var(--text);
}

.search-results strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 400;
}

.nav-group {
  margin: 0;
  overflow: clip;
  border-top: 1px solid var(--line);
}

.nav-group:last-of-type {
  border-bottom: 1px solid var(--line);
}

.nav-group summary {
  position: relative;
  padding: 13px 30px 13px 7px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.13em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--bronze);
  border-bottom: 1px solid var(--bronze);
  transform: translateY(-68%) rotate(45deg);
  transition: transform 0.22s ease;
}

.nav-group[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.nav-group-links {
  display: grid;
  padding: 0 0 11px;
  gap: 2px;
}

.nav-group.is-animating > .nav-group-links {
  overflow: hidden;
  will-change: height, opacity, transform;
}

.nav-group-links a {
  display: block;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-group-links a:hover,
.nav-group-links a:focus-visible {
  border-color: rgba(232, 229, 220, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav-group-links a[aria-current="page"] {
  border-color: rgba(192, 164, 122, 0.14);
  background: linear-gradient(100deg, rgba(192, 164, 122, 0.13), rgba(255, 255, 255, 0.025));
  color: #e2d0af;
}

.sidebar-note {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid rgba(232, 229, 220, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 400;
}

.drawer-overlay {
  display: none;
}

.docs-main {
  min-width: 0;
  padding: 12px 0 0;
}

.doc-page {
  animation: page-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.js .doc-page {
  display: none;
}

.js .doc-page.is-active {
  display: block;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bronze);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-heading {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.page-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #c7c0b5;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}

.page-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  gap: 9px;
}

.content-block {
  margin-top: 54px;
}

.doc-page,
.content-block h2[id],
.content-block h3[id] {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.content-block:first-of-type {
  margin-top: 44px;
}

.content-block h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.content-block h3 {
  margin: 30px 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.content-block p {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--muted);
  text-wrap: pretty;
}

.content-block strong {
  color: var(--text);
  font-weight: 400;
}

.content-block a:not(.related-link):not(.quick-card) {
  color: #d8be92;
  text-decoration: underline;
  text-decoration-color: rgba(192, 164, 122, 0.4);
  text-underline-offset: 4px;
}

.content-block a:not(.related-link):not(.quick-card):hover {
  color: #f1dec0;
  text-decoration-color: currentColor;
}

.callout {
  position: relative;
  margin-top: 34px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(232, 229, 220, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(192, 164, 122, 0.09), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.075), 0 22px 54px rgba(0, 0, 0, 0.14);
  color: #d6d0c5;
  backdrop-filter: blur(20px) saturate(1.1);
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 189, 145, 0.68), transparent);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 400;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  gap: 12px;
}

.quick-card {
  position: relative;
  min-height: 118px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.quick-card::after {
  content: "\2192";
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--bronze);
  transition: transform 0.22s ease;
}

.quick-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(60, 66, 69, 0.24), rgba(154, 128, 97, 0.12));
  color: var(--text);
  transform: translateY(-2px);
}

.quick-card:hover::after {
  transform: translateX(3px);
}

.quick-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-card span {
  display: block;
  max-width: 80%;
  font-size: 16px;
  line-height: 1.3;
}

.bullet-list,
.check-list,
.reference-list,
.outline-list {
  display: grid;
  max-width: 720px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.bullet-list li,
.check-list li,
.reference-list li,
.outline-list li {
  position: relative;
  padding: 13px 12px 13px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.bullet-list li::before,
.check-list li::before,
.reference-list li::before,
.outline-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 4px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
}

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

.info-card,
.state-card,
.roadmap-card,
.component-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.info-card h3,
.state-card h3,
.roadmap-card h3,
.component-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.info-card p,
.state-card p,
.roadmap-card p,
.component-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.state-grid,
.component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  gap: 12px;
}

.state-card small,
.roadmap-card small,
.component-card small {
  display: block;
  margin-bottom: 9px;
  color: var(--bronze);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(154, 128, 97, 0.045));
  gap: 10px;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.62);
  color: #d9d3c8;
  font-size: 12px;
  line-height: 1.25;
}

.flow-arrow {
  color: var(--bronze);
  font-size: 13px;
}

.example-box,
.formula-box,
.code-box {
  margin: 24px 0 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #111214;
}
.content-block :is(
  .example-box,
  .formula-box,
  .code-box,
  .two-column,
  .callout,
  .flow-diagram,
  .bullet-list
) + p {
  margin-top: 24px;
}

.example-box small,
.formula-box small,
.code-box small {
  display: block;
  margin-bottom: 12px;
  color: var(--bronze);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.example-box blockquote {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 3vw, 27px);
  line-height: 1.35;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  margin: 0;
  color: #d8d0c2;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

code {
  color: #e4cda7;
  font-size: 0.9em;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.definition-grid > div {
  padding: 17px 18px 17px 0;
  border-bottom: 1px solid var(--line);
}

.definition-grid > div:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.definition-grid > div:nth-child(even) {
  padding-left: 24px;
}

.definition-grid dt {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.definition-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.roadmap-grid {
  display: grid;
  margin-top: 24px;
  gap: 12px;
}

.roadmap-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
}

.roadmap-card h3 {
  margin: 0;
}

.roadmap-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.roadmap-card li + li {
  margin-top: 7px;
}

.faq-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 19px 40px 19px 0;
  color: var(--text);
  font-size: 16px;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 6px;
  color: var(--bronze);
  font-size: 22px;
  font-weight: 300;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 40px 18px 0;
}

.related-link {
  display: inline-flex;
  align-items: center;
  margin-top: 38px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7c3a2;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.related-link:hover {
  border-color: var(--line-strong);
  background: rgba(192, 164, 122, 0.07);
}

.page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.page-nav a {
  display: flex;
  flex-direction: column;
  min-height: 90px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page-nav a:last-child {
  text-align: right;
}

.page-nav a:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--text);
  transform: translateY(-2px);
}

.page-nav small {
  margin-bottom: 7px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-nav span {
  color: var(--text);
  font-size: 14px;
}

.page-nav a[hidden] {
  visibility: hidden;
}

.docs-toc {
  padding-top: 12px;
}

.toc-title {
  margin: 0 0 15px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc-nav {
  display: grid;
  gap: 4px;
}

.toc-nav a {
  padding: 5px 0 5px 13px;
  border-left: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.toc-nav a[data-level="3"] {
  padding-left: 24px;
  font-size: 11px;
}

.toc-nav a:hover {
  border-color: var(--bronze);
  color: var(--muted);
}

.toc-status {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(232, 229, 220, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(154, 128, 97, 0.018));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
  backdrop-filter: blur(16px);
}

.docs-footer {
  border-top: 1px solid var(--line);
  background: #0b0c0e;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1600px);
  min-height: 88px;
  margin: 0 auto;
  padding: 22px 28px;
  gap: 16px 30px;
}

.footer-inner p {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner a {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.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;
}

@media (min-width: 1021px) and (max-height: 700px) {
  .docs-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 1260px) {
  .docs-shell {
    grid-template-columns: 250px minmax(0, 820px);
    gap: 44px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }
  .sidebar-toggle {
    display: block;
  }

  .docs-shell {
    display: block;
    padding: 28px 24px 70px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 110;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 330px);
    height: 100dvh;
    max-height: none;
    align-self: stretch;
    padding: 26px 22px calc(40px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0 18px 18px 0;
    background: rgba(14, 15, 17, 0.96);
    box-shadow: 22px 0 60px rgba(0, 0, 0, 0.38), inset -1px 0 rgba(255, 255, 255, 0.035);
    transform: translateX(-104%);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
    backdrop-filter: blur(24px) saturate(1.08);
  }

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

  .drawer-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.54);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .drawer-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-main {
    width: min(100%, 820px);
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    min-height: var(--header-h);
    padding: 0 14px;
    gap: 10px;
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-lockup img {
    width: 34px;
    height: 34px;
  }

  .brand-lockup span {
    font-size: 10px;
  }

  .back-link {
    display: none;
  }

  .docs-shell {
    padding: 24px 18px 56px;
  }

  .page-heading,
  .section-heading {
    font-size: clamp(36px, 11vw, 54px);
  }

  .page-lead {
    font-size: 18px;
  }

  .content-block {
    margin-top: 44px;
  }

  .quick-grid,
  .two-column,
  .state-grid,
  .component-grid,
  .page-nav,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .definition-grid > div,
  .definition-grid > div:nth-child(odd),
  .definition-grid > div:nth-child(even) {
    padding: 15px 0;
    border-right: 0;
  }

  .roadmap-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flow-diagram {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }

  .flow-step {
    justify-content: center;
    border-radius: 12px;
    text-align: center;
  }

  .flow-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .page-nav a:last-child {
    text-align: left;
  }

  .page-nav a[hidden] {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .docs-header,
  .docs-sidebar,
  .docs-toc,
  .page-nav,
  .docs-footer,
  .drawer-overlay {
    display: none !important;
  }

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

  .docs-shell {
    display: block;
    width: auto;
    padding: 0;
  }

  .js .doc-page {
    display: block;
    page-break-before: always;
  }

  .content-block p,
  .bullet-list li,
  .check-list li,
  .definition-grid dd {
    color: #333;
  }
}
