:root {
  --color-gold: #f6c945;
  --color-purple: #5b3ba2;
  --color-green: #3e9b65;
  --color-orange: #f47a28;
  --color-bg: #101012;
  --color-fg: #faf8f4;
  --color-muted: rgba(250, 248, 244, 0.72);
  --color-border: rgba(250, 248, 244, 0.14);
  --color-border-strong: rgba(250, 248, 244, 0.2);
  --color-surface: rgba(250, 248, 244, 0.06);
  --color-surface-2: rgba(250, 248, 244, 0.09);
  --color-surface-3: rgba(250, 248, 244, 0.12);

  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 22px 55px rgba(0, 0, 0, 0.5);

  --font-display: "Aeonik", "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 12px;
  --container: 1280px;
  --text-max: 74ch;
  --gutter: 24px;
  --section-y: 96px;
  --section-y-mobile: 48px;
  --site-top-offset: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 18% 0%, rgba(246, 201, 69, 0.12), transparent 55%),
    radial-gradient(55% 45% at 100% 10%, rgba(91, 59, 162, 0.12), transparent 50%),
    radial-gradient(45% 55% at 70% 100%, rgba(62, 155, 101, 0.08), transparent 60%);
  opacity: 0.9;
  z-index: -1;
}

a {
  color: var(--color-fg);
  text-decoration: underline;
  text-decoration-color: rgba(250, 248, 244, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  text-decoration-color: rgba(246, 201, 69, 0.9);
}

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

code,
pre {
  font-family: var(--font-mono);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0.65rem 0.9rem;
  background: var(--color-fg);
  color: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transform: translateY(-150%);
  transition: transform 160ms ease;
  z-index: 999;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(16, 16, 18, 0.72);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.25rem, 6.5vw, 5.75rem) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 10% 0%, rgba(246, 201, 69, 0.22), transparent 60%),
    radial-gradient(60% 60% at 95% 0%, rgba(91, 59, 162, 0.22), transparent 60%),
    radial-gradient(55% 60% at 70% 100%, rgba(62, 155, 101, 0.12), transparent 65%);
  pointer-events: none;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 12rem;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.9);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.95rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-fg);
  border-color: rgba(250, 248, 244, 0.12);
  background: rgba(250, 248, 244, 0.06);
}

.nav a[aria-current="page"] {
  color: var(--color-fg);
  border-color: rgba(250, 248, 244, 0.16);
  background: rgba(250, 248, 244, 0.09);
}

.site-subnav {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.95rem 0 0.15rem;
  border-top: 1px solid rgba(250, 248, 244, 0.08);
}

.site-subnav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 244, 0.16);
  background: linear-gradient(135deg, rgba(246, 201, 69, 0.14), rgba(91, 59, 162, 0.14));
  color: var(--color-fg);
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-subnav-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.7);
}

.site-subnav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-subnav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(250, 248, 244, 0.04);
  color: var(--color-muted);
  text-decoration: none;
}

.site-subnav-links a:hover,
.site-subnav-links a:focus-visible {
  color: var(--color-fg);
  border-color: rgba(250, 248, 244, 0.12);
  background: rgba(250, 248, 244, 0.08);
}

.site-subnav-links a[aria-current="page"] {
  color: var(--color-fg);
  border-color: rgba(246, 201, 69, 0.38);
  background: linear-gradient(135deg, rgba(246, 201, 69, 0.14), rgba(91, 59, 162, 0.12));
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
}

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

.menu summary::after {
  content: "▾";
  display: inline-block;
  opacity: 0.72;
  font-size: 0.85em;
  transition: transform 140ms ease;
}

.menu[open] summary::after {
  transform: rotate(180deg);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(16, 16, 18, 0.96);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 18px 44px rgba(0, 0, 0, 0.46);
  z-index: 220;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: rgba(250, 248, 244, 0.82);
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

.menu-item:hover,
.menu-item:focus-visible {
  border-color: rgba(250, 248, 244, 0.12);
  background: rgba(250, 248, 244, 0.06);
  color: var(--color-fg);
}

.menu-item small {
  color: rgba(250, 248, 244, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.menu-sep {
  height: 1px;
  background: rgba(250, 248, 244, 0.12);
  margin: 0.35rem 0.25rem;
}

.menu-hint {
  padding: 0.35rem 0.65rem;
  color: rgba(250, 248, 244, 0.55);
  font-size: 0.78rem;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.04);
  color: var(--color-fg);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.1;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.button:hover,
.button:focus-visible {
  background: rgba(250, 248, 244, 0.08);
  border-color: rgba(250, 248, 244, 0.18);
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(246, 201, 69, 0.45);
  background: linear-gradient(135deg, rgba(246, 201, 69, 0.24), rgba(244, 122, 40, 0.16), rgba(91, 59, 162, 0.18));
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: rgba(246, 201, 69, 0.7);
  background: linear-gradient(135deg, rgba(246, 201, 69, 0.3), rgba(244, 122, 40, 0.2), rgba(91, 59, 162, 0.22));
}

.button-quiet {
  border-color: transparent;
  background: transparent;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: rgba(250, 248, 244, 0.14);
  background: rgba(250, 248, 244, 0.05);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 244, 0.14);
  background: rgba(250, 248, 244, 0.03);
  color: rgba(250, 248, 244, 0.75);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-copy p {
  max-width: 60ch;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) + 999px);
  border: 1px solid rgba(250, 248, 244, 0.14);
  background: rgba(250, 248, 244, 0.03);
}

.hero-search-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.hero-search-input::placeholder {
  color: rgba(250, 248, 244, 0.52);
}

.hero-search-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tabs {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.02);
  overflow: hidden;
}

.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.45rem;
  border-bottom: 1px solid rgba(250, 248, 244, 0.12);
  background: rgba(250, 248, 244, 0.02);
}

.tabs-tab {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(250, 248, 244, 0.7);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.1;
}

.tabs-tab:hover,
.tabs-tab:focus-visible {
  color: var(--color-fg);
  background: rgba(250, 248, 244, 0.06);
  border-color: rgba(250, 248, 244, 0.12);
}

.tabs-tab[aria-selected="true"] {
  color: var(--color-fg);
  background: rgba(250, 248, 244, 0.08);
  border-color: rgba(250, 248, 244, 0.18);
}

.tabs-panel {
  padding: 0.9rem 1rem;
}

.tabs-panel > * + * {
  margin-top: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.col-span-12 {
  grid-column: span 12;
}

.col-span-6 {
  grid-column: span 6;
}

.col-span-4 {
  grid-column: span 4;
}

.card {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.03);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(246, 201, 69, 0.22), transparent 50%),
    radial-gradient(120% 120% at 100% 10%, rgba(91, 59, 162, 0.22), transparent 55%),
    radial-gradient(100% 120% at 70% 100%, rgba(62, 155, 101, 0.14), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card-body {
  padding: 1.15rem 1.2rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.card-meta {
  margin-top: 0.45rem;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.card-links a {
  text-decoration: none;
}

.card:hover {
  border-color: rgba(250, 248, 244, 0.2);
  transform: translateY(-2px);
}

.card:focus-within {
  border-color: rgba(246, 201, 69, 0.55);
}

.panel {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.03);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 16px 42px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(250, 248, 244, 0.14);
  background: rgba(250, 248, 244, 0.02);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.panel-body {
  padding: 1rem;
}

.panel-body > * + * {
  margin-top: 0.9rem;
}

.mt-md {
  margin-top: 1rem;
}

.mt-lg {
  margin-top: 1.75rem;
}

.list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(250, 248, 244, 0.02);
  overflow: hidden;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  text-decoration: none;
  color: inherit;
}

.list-row:first-child {
  border-top: 0;
}

.list-row:hover,
.list-row:focus-visible {
  background: rgba(250, 248, 244, 0.05);
}

.list-title {
  color: var(--color-fg);
  font-weight: 650;
  line-height: 1.25;
}

.list-desc {
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.list-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(250, 248, 244, 0.58);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  margin-top: 0.1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1.1;
}

h2 {
  font-size: 1.8rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.25;
}

h4 {
  font-size: 1.15rem;
  line-height: 1.35;
}

p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.lede {
  font-size: 1.15rem;
}

.section {
  padding: var(--section-y) 0;
}

.prose {
  max-width: var(--text-max);
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin-top: 2rem;
}

.prose h4 {
  margin-top: 1.4rem;
}

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: calc(1.25rem + var(--site-top-offset));
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose dl {
  margin: 0;
}

.prose dt {
  margin-top: 1rem;
  font-weight: 650;
}

.prose dt:first-child {
  margin-top: 0;
}

.prose dd {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
}

.prose dd + dt {
  margin-top: 1.5rem;
}

code {
  padding: 0.12em 0.32em;
  border-radius: 6px;
  border: 0;
  background: rgba(250, 248, 244, 0.06);
}

code.hljs-inline {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.prose a code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-gold);
  font-weight: 650;
}

.prose h1 code,
.prose h2 code,
.prose h3 code,
.prose h4 code {
  font-family: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-gold);
  font-weight: 650;
}

.prose h1 code.hljs-inline,
.prose h2 code.hljs-inline,
.prose h3 code.hljs-inline,
.prose h4 code.hljs-inline {
  color: inherit;
}

pre {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.04);
  overflow: auto;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.55;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(250, 248, 244, 0.62);
  font-size: 0.95rem;
}

.footer-inner strong {
  color: var(--color-fg);
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.docs-layout[data-has-toc="true"] {
  grid-template-columns: 280px minmax(0, 1fr) 220px;
}

.spec-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.spec-toc-wrap {
  padding: 1rem 0;
}

.spec-toc-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(250, 248, 244, 0.62);
  margin-bottom: 0.75rem;
}

.spec-toc {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-toc a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: rgba(250, 248, 244, 0.78);
  font-size: 0.93rem;
  line-height: 1.25;
}

.spec-toc a:hover,
.spec-toc a:focus-visible {
  border-color: var(--color-border);
  background: rgba(250, 248, 244, 0.06);
  color: var(--color-fg);
}

.spec-toc a[data-active="true"] {
  border-color: var(--color-border);
  background: rgba(250, 248, 244, 0.08);
  color: var(--color-fg);
}

.spec-toc a[data-level="h2"] {
  font-weight: 650;
}

.spec-toc a[data-level="h3"] {
  padding-left: 1.05rem;
}

.spec-toc a[data-level="h4"] {
  padding-left: 1.7rem;
  color: rgba(250, 248, 244, 0.7);
  font-size: 0.9rem;
}

.spec-toc a[data-level="h5"] {
  padding-left: 2.35rem;
  color: rgba(250, 248, 244, 0.66);
  font-size: 0.88rem;
}

.spec-prose {
  max-width: 92ch;
}

.spec-prose h2,
.spec-prose h3,
.spec-prose h4,
.spec-prose h5 {
  scroll-margin-top: calc(1.5rem + var(--site-top-offset));
}

.docs-sidebar {
  position: sticky;
  top: calc(1.25rem + var(--site-top-offset));
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(250, 248, 244, 0.02);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 18px 44px rgba(0, 0, 0, 0.4);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}

.docs-sidebar-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.docs-sidebar-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-fg);
  margin-bottom: 0.75rem;
}

.docs-search {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.04);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.docs-search::placeholder {
  color: rgba(250, 248, 244, 0.52);
}

.docs-nav {
  padding: 1rem 0;
}

.docs-results {
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.docs-search-empty {
  color: rgba(250, 248, 244, 0.62);
  font-size: 0.95rem;
}

.docs-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-search-result {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}

.docs-search-result:hover,
.docs-search-result:focus-visible {
  border-color: var(--color-border);
  background: rgba(250, 248, 244, 0.06);
}

.docs-search-result[data-active="true"] {
  border-color: var(--color-border);
  background: rgba(250, 248, 244, 0.08);
}

.docs-search-result-title {
  color: var(--color-fg);
  font-weight: 650;
  line-height: 1.25;
}

.docs-search-result-meta {
  margin-top: 0.15rem;
  color: rgba(250, 248, 244, 0.55);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-search-result-summary {
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.docs-nav-section {
  margin-top: 1rem;
  color: rgba(250, 248, 244, 0.55);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-nav-section:first-child {
  margin-top: 0;
}

.docs-nav-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.docs-nav-list li + li {
  margin-top: 0.15rem;
}

.docs-nav a {
  display: block;
  padding: 0.3rem 0.45rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(250, 248, 244, 0.72);
}

.docs-nav a:hover,
.docs-nav a:focus-visible {
  color: var(--color-fg);
  background: rgba(250, 248, 244, 0.06);
}

.docs-nav a[data-active="true"] {
  color: var(--color-fg);
  background: rgba(250, 248, 244, 0.08);
}

.docs-content {
  max-width: none;
  min-width: 0;
}

.docs-breadcrumb {
  color: rgba(250, 248, 244, 0.58);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.docs-toc {
  position: sticky;
  top: calc(1.25rem + var(--site-top-offset));
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(250, 248, 244, 0.02);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 18px 44px rgba(0, 0, 0, 0.4);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}

.docs-toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-fg);
}

.docs-toc-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.docs-toc-list li + li {
  margin-top: 0.35rem;
}

.docs-toc-list li[data-level="h3"] {
  padding-left: 0.9rem;
}

.docs-toc-list a {
  color: rgba(250, 248, 244, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}

.docs-toc-list a:hover,
.docs-toc-list a:focus-visible {
  color: var(--color-fg);
}

.docs-heading-anchor {
  margin-left: 0.5rem;
  font-size: 0.9em;
  opacity: 0;
  text-decoration: none;
  color: rgba(250, 248, 244, 0.55);
}

.prose h2:hover .docs-heading-anchor,
.prose h3:hover .docs-heading-anchor,
.prose h4:hover .docs-heading-anchor,
.docs-heading-anchor:focus-visible {
  opacity: 1;
}

.docs-inline-ref {
  color: var(--color-fg);
  text-decoration: underline;
  text-decoration-color: rgba(250, 248, 244, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.docs-inline-ref code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-gold);
  font-weight: 650;
}

.docs-inline-code {
  font-family: var(--font-mono);
  padding: 0.12em 0.32em;
  border-radius: 6px;
  border: 0;
  background: rgba(250, 248, 244, 0.06);
  color: var(--color-fg);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-inline-code:hover,
.docs-inline-code:focus-visible {
  background: rgba(246, 201, 69, 0.09);
  color: var(--color-fg);
}

.docs-hash-target {
  outline: 2px solid rgba(246, 201, 69, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
  background: rgba(246, 201, 69, 0.08);
}

.prose h1 .docs-inline-code,
.prose h2 .docs-inline-code,
.prose h3 .docs-inline-code,
.prose h4 .docs-inline-code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-gold);
}

.docs-inline-ref:hover,
.docs-inline-ref:focus-visible {
  text-decoration-color: rgba(246, 201, 69, 0.9);
}

.docs-prevnext {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.docs-prevnext-item {
  min-width: 0;
}

.docs-prevnext-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.03);
  text-decoration: none;
  color: inherit;
}

.docs-prevnext-link:hover,
.docs-prevnext-link:focus-visible {
  background: rgba(250, 248, 244, 0.06);
}

.docs-prevnext-label {
  display: block;
  color: rgba(250, 248, 244, 0.55);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-prevnext-title {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-fg);
  font-weight: 650;
  line-height: 1.3;
}

.docs-nav code,
.docs-breadcrumb code,
.docs-search-result-title code,
.docs-prevnext-title code {
  font-family: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-gold);
  font-weight: 650;
}

.docs-nav code.hljs-inline,
.docs-breadcrumb code.hljs-inline,
.docs-search-result-title code.hljs-inline,
.docs-prevnext-title code.hljs-inline {
  color: inherit;
}

.prose table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  background: rgba(250, 248, 244, 0.02);
}

.prose th,
.prose td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.prose th {
  color: var(--color-fg);
  background: rgba(250, 248, 244, 0.06);
  font-weight: 650;
  text-align: left;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose blockquote {
  margin: 0;
  padding: 0.2rem 1rem;
  border-left: 2px solid var(--color-border);
  color: var(--color-muted);
}

@media (max-width: 720px) {
  .site-subnav {
    gap: 0.65rem;
    padding-top: 0.8rem;
  }

  .site-subnav-parent {
    font-size: 0.88rem;
  }

  .site-subnav-links {
    gap: 0.4rem;
  }

  .section {
    padding: var(--section-y-mobile) 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .col-span-6,
  .col-span-4 {
    grid-column: span 12;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .docs-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    padding: 0.95rem;
  }

  .docs-toc {
    display: none;
  }

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

@media (max-width: 980px) and (min-width: 721px) {
  .docs-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .col-span-4 {
    grid-column: span 6;
  }

  .docs-toc {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
