/* OpenRAGE website. Plain CSS, light and dark mode via tokens. */

:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-alt: #eef0f4;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-muted: #4f5662;
  --border: #d8dce3;
  --accent: #c2410c;        /* burnt orange, 5.2:1 on white */
  --accent-hover: #9a3412;
  --accent-text: #ffffff;
  --code-bg: #eceef2;
  --ok: #15803d;
  --planned: #6b7280;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.08);
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f10;
    --bg-alt: #161617;
    --surface: #1d1d1f;
    --text: #ececec;
    --text-muted: #a9a9ad;
    --border: #2f2f32;
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --accent-text: #1a1206;
    --code-bg: #262628;
    --ok: #4ade80;
    --planned: #9ca3af;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f10;
  --bg-alt: #161617;
  --surface: #1d1d1f;
  --text: #ececec;
  --text-muted: #a9a9ad;
  --border: #2f2f32;
  --accent: #fb923c;
  --accent-hover: #fdba74;
  --accent-text: #1a1206;
  --code-bg: #262628;
  --ok: #4ade80;
  --planned: #9ca3af;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

code, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  line-height: 1.5;
}
pre .c { color: var(--text-muted); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.site-nav ul {
  display: flex;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.35em; }
@media (max-width: 640px) {
  .site-nav .optional { display: none; }
  .site-header .wrap { gap: 0.75rem; }
  .site-nav ul { gap: 0.9rem; }
}

.theme-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); }

/* Hero */
.hero { padding: 3.5rem 0 2rem; text-align: center; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 auto 1rem;
  max-width: 24ch;
  text-wrap: balance;
}
.hero h1 strong {
  font-weight: inherit;
  color: var(--accent);
  white-space: nowrap;
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto 1.75rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-shot {
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 1000px;
}

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.notice strong { color: var(--text); }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-intro { color: var(--text-muted); max-width: 65ch; margin: 0 0 2rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.features p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
.features .icon { font-size: 1.4rem; margin-right: 0.35rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem 1.1rem;
  margin: 0;
}
.gallery figure { margin: 0; }
.gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.gallery figcaption { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.4; color: var(--text-muted); }
.gallery figcaption strong { color: var(--text); }

/* Tables */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.97rem;
}
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-alt); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
tbody tr:last-child > * { border-bottom: 0; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status { font-weight: 600; white-space: nowrap; }
.status.ok { color: var(--ok); }
.status.planned { color: var(--planned); }
.status.partial { color: var(--accent); }

@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--border); padding: 0.4rem 0; }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { border: 0; padding: 0.3rem 0.9rem; }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }
}

details.more { margin-top: 1.5rem; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.more[open] summary { margin-bottom: 1rem; }

/* Download cards */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* Docs page */
.doc { padding: 2.5rem 0 3rem; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 0.5rem; }
.doc h2 { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.doc h3 { margin-top: 1.75rem; }
.doc .lead { color: var(--text-muted); font-size: 1.15rem; }
.doc .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
}
.doc .toc ol { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  margin: 1.25rem 0;
}
.callout p { margin: 0.25rem 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.site-footer p { margin: 0.4rem 0; max-width: 80ch; }

/* Theme-dependent images (follow the toggle, not only the system setting) */
.muted { color: var(--text-muted); font-weight: 400; }
.dark-only { display: none; }
:root[data-theme="dark"] .light-only { display: none; }
:root[data-theme="dark"] .dark-only { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .light-only { display: none; }
  :root:not([data-theme="light"]) .dark-only { display: block; }
}
.doc p > .btn + .btn { margin-left: 0.5rem; }
.doc p > .btn { margin-bottom: 0.5rem; }

/* Markdown content */
.hero .lead p { margin: 0; }
.notice p { margin: 0.2rem 0; }
.prose table { display: block; overflow-x: auto; }
.prose table code { white-space: nowrap; }
.prose blockquote {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
}
.prose blockquote p { margin: 0.25rem 0; }
.prose [class^="markdown-alert-"]::before {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.prose .markdown-alert-note::before { content: "Note"; }
.prose .markdown-alert-tip::before { content: "Tip"; }
.prose .markdown-alert-important::before { content: "Important"; }
.prose .markdown-alert-warning::before { content: "Warning"; }
.prose .markdown-alert-caution::before { content: "Caution"; }

/* ---------------------------------------------------------------- Hero (compact) */
.hero h1 { margin-bottom: 0.75rem; }
.hero .lead { max-width: 46ch; margin-bottom: 1.6rem; }
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.facts li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.facts li:first-child { color: var(--text); font-weight: 600; }
.section-intro p { margin: 0; }

/* ---------------------------------------------------------------- Buttons */
.btn .size { white-space: nowrap; font-weight: 500; opacity: 0.85; }
.btn { transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }

/* ---------------------------------------------------------------- Screenshots */
a.zoom { display: block; cursor: zoom-in; color: inherit; }
.hero-shot { display: block; }
/* Same frame for every screenshot; the full image opens on click. */
.gallery .shot {
  aspect-ratio: 1512 / 945;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.gallery .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.35s ease;
}
.gallery .shot:hover img, .gallery .shot:focus-visible img { transform: scale(1.03); }
.hero-shot img { transition: transform 0.5s ease; }
.hero-shot:hover img { transform: scale(1.01); }

/* ---------------------------------------------------------------- Cards */
.features li, .card { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.features li:hover, .card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- Lightbox */
.lightbox {
  max-width: min(96vw, 1600px);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.45);
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(8 8 8 / 0.78); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: calc(94vh - 3.5rem); width: auto; margin: 0 auto; cursor: zoom-out; }
.lightbox figcaption { padding: 0.7rem 3.2rem 0.8rem 1rem; font-size: 0.95rem; color: var(--text-muted); }
.lightbox figcaption strong { color: var(--text); }
.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-nav {
  position: absolute;
  top: calc(50% - 1.75rem);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox-nav:hover, .lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-nav.prev { left: 0.6rem; }
.lightbox-nav.next { right: 0.6rem; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav[hidden], .lightbox-count[hidden] { display: none; }
.lightbox-count {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.lightbox figcaption { padding-right: 5rem; }
.lightbox[open] { animation: zoom-in 0.22s ease-out; }
.lightbox[open]::backdrop { animation: fade-in 0.22s ease-out; }

/* ---------------------------------------------------------------- Motion */
@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero h1, .hero .lead, .hero .actions, .hero .facts, .hero-shot {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .lead { animation-delay: 0.08s; }
.hero .actions { animation-delay: 0.16s; }
.hero .facts { animation-delay: 0.22s; }
.hero-shot { animation-delay: 0.3s; animation-duration: 0.8s; }

/* Only hidden when JS runs and will reveal them again. */
.animate .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.animate .reveal.visible { opacity: 1; transform: none; }
.animate .features li.reveal.visible:hover, .animate .card.reveal.visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gallery .shot:hover img, .hero-shot:hover img, .btn:hover, .features li:hover, .card:hover { transform: none; }
}

/* ---------------------------------------------------------------- Doc pages: full width, TOC sidebar */
.doc .wrap { max-width: var(--max); }
.doc-head { margin-bottom: 1.5rem; }
.doc-head .lead { margin: 0; max-width: 60ch; }
.doc-grid { display: grid; gap: 1.5rem 3rem; }
.doc-grid .prose { min-width: 0; max-width: 78ch; }
.doc-grid .prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .doc-grid.has-toc { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .doc-grid .toc { position: sticky; top: 84px; }
}
.prose h2, .prose h3, section[id] { scroll-margin-top: 80px; }

/* Why OpenRAGE and the comparison with OpenIV */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.reasons { margin-bottom: 2.5rem; }
.compare-title { font-size: 1.25rem; margin: 0 0 1rem; }
table.compare th[scope="row"] { font-weight: 600; white-space: nowrap; }
table.compare thead th:last-child { color: var(--accent); }
table.compare td.edge { font-weight: 600; color: var(--text); }
table.compare td.edge::after {
  content: "✓";
  display: inline-block;
  margin-left: 0.45rem;
  color: var(--ok);
  font-weight: 700;
}
.compare-note { color: var(--text-muted); font-size: 0.95rem; max-width: 70ch; margin-top: 1rem; }
.compare-note p { margin: 0; }
@media (min-width: 641px) {
  table.compare th[scope="row"] { width: 22%; }
  table.compare td { width: 39%; }
}
@media (max-width: 640px) {
  table.compare th[scope="row"] { white-space: normal; padding-top: 0.6rem; }
}

/* GitHub icon in the navigation */
.site-nav .nav-icon { display: inline-flex; align-items: center; padding: 0.2rem; }
.site-nav .nav-icon svg { width: 20px; height: 20px; }

/* "Your system" marks and Linux / Windows tabs */
.os-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.os-badge[hidden] { display: none; }
.os-tabs.tabbed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 1.25rem 0;
}
.os-tablist {
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem 0.4rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius) var(--radius) 0 0;
}
.os-tab {
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 0.5rem 1rem;
  margin-bottom: -1px;
  cursor: pointer;
}
.os-tab:hover { color: var(--text); }
.os-tab[aria-selected="true"] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: inset 0 2px 0 var(--accent);
}
.os-tab:focus-visible, .os-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.os-tabs.tabbed .os-panel { padding: 0.25rem 1.1rem 0.6rem; }
.os-tabs.tabbed .os-panel[hidden] { display: none; }

/* Prominent hint in guides: <div class="callout"> … </div> */
.prose .callout {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 1.05rem;
}
.prose .callout p { margin: 0; }
.prose .callout strong:first-child { color: var(--accent); }

/* Small line above the hero headline */
.hero .eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (prefers-reduced-motion: reduce) { .hero .eyebrow { animation: none; } }

/* Documentation sidebar (templates/page.html, pages listed in config.toml) */
.docs-nav { font-size: 0.93rem; }
.docs-nav summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.docs-nav[open] summary { margin-bottom: 0.6rem; }
.docs-group {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.docs-nav nav > .docs-group:first-child { margin-top: 0.2rem; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li { margin: 0; }
.docs-nav ul > li > a {
  display: block;
  padding: 0.3rem 0.7rem;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
}
.docs-nav ul > li > a:hover { color: var(--text); border-left-color: var(--text-muted); }
.docs-nav ul > li > a[aria-current="page"] { color: var(--text); font-weight: 600; border-left-color: var(--accent); }
.docs-toc { list-style: none; margin: 0.15rem 0 0.4rem; padding: 0 0 0 0.9rem; border-left: 2px solid var(--border); }
.docs-toc a { display: block; padding: 0.18rem 0.6rem; font-size: 0.86rem; color: var(--text-muted); text-decoration: none; }
.docs-toc a:hover { color: var(--accent); }
@media (min-width: 960px) {
  .docs-nav { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 0.3rem; }
  .docs-nav summary { display: none; }
}

/* Shorter sections: more air between them, compact tables in prose */
.prose h3 { margin-top: 1.8rem; }
