/* Tolib landing page. Tokens follow the Tolib design system (tokens.json); brand-* stay fixed in both themes. */
:root {
  color-scheme: light dark;
  --ground: #f4f6fa;
  --surface: #ffffff;
  --surface-sunk: #ebeef4;
  --ink: #111726;
  --ink-muted: #4a5366;
  --hairline: #dce1ea;
  --border-strong: #858fa1;
  --lapis: #2446b5;
  --lapis-fill: #2446b5;
  --on-lapis: #ffffff;
  --lapis-tint: #e6ecff;
  --turquoise: #0b7a74;
  --turquoise-tint: #e3f6f4;
  --saffron: #924a00;
  --saffron-tint: #fff0dc;
  --focus-ring: #2446b5;
  --device: #111726;
  --shadow-phone: 0 18px 48px rgba(17, 23, 38, 0.18), 0 2px 6px rgba(17, 23, 38, 0.10);

  --brand-lapis: #2446b5;
  --brand-lapis-soft: #3d5fd6;
  --brand-saffron: #e8890c;
  --brand-white: #ffffff;
  --brand-night: #0d111c;

  --font-sans: "Onest", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d111c;
    --surface: #161b29;
    --surface-sunk: #0a0e17;
    --ink: #edf0f7;
    --ink-muted: #a8b0c2;
    --hairline: #262d40;
    --border-strong: #5d6782;
    --lapis: #8aa4ff;
    --lapis-fill: #3d5fd6;
    --lapis-tint: #1d2647;
    --turquoise: #4fd1c5;
    --turquoise-tint: #10302e;
    --saffron: #ffb357;
    --saffron-tint: #3a2a12;
    --focus-ring: #8aa4ff;
    --device: #2a3146;
    --shadow-phone: 0 18px 48px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lapis); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.logo img { height: 28px; width: auto; }
.main-nav { display: none; margin-left: 24px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-radius: 10px;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-sunk); }
.langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 38px; padding: 0 8px;
  border-radius: 9px; color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 0.875rem;
}
.langs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17, 23, 38, 0.12); }
.site-header .header-cta { display: none; }
@media (min-width: 560px) { .site-header .header-cta { display: inline-flex; } }
@media (min-width: 1000px) { .main-nav { display: block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--lapis-fill); color: var(--on-lapis); }
.btn--primary:hover { background: color-mix(in srgb, var(--lapis-fill) 88%, #000); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn--light { background: var(--brand-white); color: var(--brand-lapis); }
.btn--light:hover { background: #e6ecff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: var(--brand-white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.on-brand :focus-visible { outline-color: var(--brand-white); }

/* Brand fields (hero, pilot) */
.on-brand { background: var(--brand-lapis); color: var(--brand-white); position: relative; overflow: hidden; isolation: isolate; }
.on-brand .motif { position: absolute; z-index: -1; pointer-events: none; color: var(--brand-lapis-soft); }

/* Hero */
.hero { padding: 40px 0 0; }
.hero .motif { width: 560px; right: -170px; top: -60px; }
.hero-grid { display: grid; gap: 36px; align-items: end; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; line-height: 1.2; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lapis);
}
.on-brand .eyebrow { color: #dfe6ff; }
.hero h1 { font-size: clamp(2.5rem, 7vw + 0.5rem, 4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin-top: 14px; }
.hero .lead { font-size: 1.125rem; line-height: 1.55; margin-top: 18px; max-width: 34em; color: #eef2ff; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .meaning { margin-top: 22px; font-size: 0.9375rem; color: #dfe6ff; }
.hero-text { padding-bottom: 8px; }
@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero-text { padding-bottom: 96px; }
}
.hero-art { width: 100%; max-width: 480px; margin: 0 auto; padding-bottom: 40px; }
.hero-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 960px) { .hero-art { padding-bottom: 72px; } }
.hero + .after-hero { padding-top: 72px; }

/* Phone frame */
.phone {
  margin: 0; padding: 7px; border-radius: 34px; background: var(--device);
  box-shadow: var(--shadow-phone); flex: none;
}
.phone picture, .phone img { border-radius: 27px; overflow: hidden; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--surface); }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); letter-spacing: -0.02em; font-weight: 800; margin-top: 10px; }
.section .intro { color: var(--ink-muted); margin-top: 12px; font-size: 1.0625rem; }

.pains-grid, .space-grid { list-style: none; padding: 0; }
.pains-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .pains-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pains-grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 20px; }
.card h3 { font-size: 1.0625rem; font-weight: 700; }
.card p { color: var(--ink-muted); margin-top: 8px; }
.pain h3::before {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-saffron); margin-bottom: 14px;
}

/* Outcomes: illustrated, no product screens */
.outcomes { border-top: 1px solid var(--hairline); }
.outcomes-grid { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .outcomes-grid { grid-template-columns: repeat(4, 1fr); } }
.outcome-art { background: var(--lapis-tint); border-radius: var(--radius-sm); margin-bottom: 18px; }
.outcome-art svg { display: block; width: 100%; height: auto; }

/* Illustration colours follow the theme */
.art .p { fill: var(--surface); }
.art .k { fill: var(--ink); fill-opacity: 0.8; }
.art .s { fill: var(--border-strong); fill-opacity: 0.4; }
.art .g { stroke: var(--lapis); }
.art .a { stroke: var(--lapis); }
.art .bx { stroke: var(--border-strong); }
.art .ln { stroke: var(--lapis); stroke-opacity: 0.45; }
.art .af { fill: var(--lapis-fill); }
.art .af2 { fill: var(--lapis-fill); fill-opacity: 0.4; }
.art .sf { fill: var(--brand-saffron); }
.art .t { fill: var(--turquoise); }
.art .on-t { stroke: var(--surface); }
.art .trk { stroke: var(--surface); }
.art .ring { stroke: var(--lapis-fill); }
.art .trk2 { fill: var(--surface); }
.art .trk3 { fill: var(--lapis-tint); stroke: var(--border-strong); stroke-opacity: 0.35; }

/* Motion: play once when first on screen (assets/motion.js adds .motion and .in); final state without it */
.rv-draw { stroke-dasharray: 1; }
.rv-pop, .rv-grow { transform-box: fill-box; transform-origin: center; }
.rv-grow { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal]:not(.in) :is(.rv, .rv-pop, .rv-slide) { opacity: 0; }
  .motion [data-reveal]:not(.in) .rv-draw { stroke-dashoffset: 1; }
  .motion [data-reveal]:not(.in) .rv-grow { transform: scaleX(0); }
  .motion [data-reveal]:not(.in) .rv-ring { stroke-dasharray: 0 100; }
  .motion .in .rv { animation: rv-fade 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .motion .in .rv-slide { animation: rv-slide 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .motion .in .rv-pop { animation: rv-pop 460ms cubic-bezier(0.34, 1.4, 0.64, 1) both; }
  .motion .in .rv-draw { animation: rv-draw 480ms ease-out both; }
  .motion .in .rv-grow { animation: rv-grow 760ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .motion .in .rv-ring { animation: rv-ring 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .motion .in .d1 { animation-delay: 90ms; }
  .motion .in .d2 { animation-delay: 180ms; }
  .motion .in .d3 { animation-delay: 270ms; }
  .motion .in .d4 { animation-delay: 360ms; }
  .motion .in .d5 { animation-delay: 450ms; }
  .motion .in .d6 { animation-delay: 540ms; }
  .motion .in .d7 { animation-delay: 630ms; }
  .motion .in .d8 { animation-delay: 720ms; }
  .motion .in .d9 { animation-delay: 810ms; }
  .motion .in .d10 { animation-delay: 900ms; }
  .motion .in .d11 { animation-delay: 990ms; }
  .motion .in .d12 { animation-delay: 1080ms; }
  .motion .in .d13 { animation-delay: 1170ms; }
  .motion .in .d14 { animation-delay: 1260ms; }
  .motion .in .d15 { animation-delay: 1350ms; }
}
@keyframes rv-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes rv-slide { from { opacity: 0; transform: translateX(-10px); } }
@keyframes rv-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes rv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rv-grow { from { transform: scaleX(0); } }
@keyframes rv-ring { from { stroke-dasharray: 0 100; } }

/* One look inside */
.glimpse { background: var(--surface); border-top: 1px solid var(--hairline); }
.glimpse-grid { display: grid; gap: 32px; align-items: center; }
.glimpse-text p.body { margin-top: 14px; font-size: 1.0625rem; color: var(--ink-muted); max-width: 34em; }
.glimpse .phone { width: min(78%, 280px); margin: 0 auto; }
@media (min-width: 960px) { .glimpse-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.screens-note { color: var(--ink-muted); font-size: 0.875rem; margin-top: 14px; }

/* Your space */
.space { border-top: 1px solid var(--hairline); }
.space + .section { border-top: 1px solid var(--hairline); }
.space-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .space-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .space-grid { grid-template-columns: repeat(4, 1fr); } }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--lapis-fill); color: var(--on-lapis); font-weight: 800; margin-bottom: 14px;
}

/* Pilot */
.pilot { padding: 64px 0; }
.pilot .motif { width: 420px; left: -150px; bottom: -150px; }
.pilot-inner { max-width: 720px; }
.pilot h2 { color: var(--brand-white); font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); letter-spacing: -0.02em; font-weight: 800; margin-top: 10px; }
.pilot p { margin-top: 14px; font-size: 1.0625rem; color: #eef2ff; }
.pilot .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pilot .small { font-size: 0.9375rem; color: #dfe6ff; }
@media (min-width: 960px) { .pilot { padding: 96px 0; } }

/* FAQ */
.faq-list { margin-top: 24px; display: grid; gap: 10px; max-width: 820px; }
.faq-list details { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 700; position: relative; min-height: 44px; border-radius: var(--radius-md);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 20px 18px; color: var(--ink-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 48px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .tagline { margin-top: 12px; font-weight: 700; }
.site-footer .muted { color: var(--ink-muted); font-size: 0.9375rem; }
.site-footer h2 { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.break { overflow-wrap: anywhere; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 48px var(--gutter); }
.notfound .nf-title { font-size: 2rem; font-weight: 800; }
.notfound .langs-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Hero flow + key phrase (Tolib DS: HeroFlow, KeyPhrase; founder 2026-10-22). Final state without .motion. */
.key { position: relative; display: inline-block; white-space: nowrap; font-weight: 700; color: var(--brand-white); }
.key-line { position: absolute; left: -2%; bottom: -0.3em; width: 104%; height: 0.55em; overflow: visible; color: var(--brand-saffron); pointer-events: none; }
.key-line path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.hero-art.hf { max-width: 560px; padding-bottom: 40px; }
@media (min-width: 960px) { .hero-art.hf { padding-bottom: 72px; } }
.hf-panel { display: flex; flex-direction: column; align-items: center; padding: 28px 14px 30px; border-radius: 28px; background: var(--surface-sunk); border: 1px solid var(--hairline); color: var(--ink); text-align: left; }
.hf-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.hf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hf-stack { display: flex; padding-left: 6px; }
.hf-chip { width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--surface); background: var(--surface-sunk); color: var(--ink); display: grid; place-items: center; }
.hf-chip svg { width: 15px; height: 15px; }
.hf-eyebrow { font: 700 11px/14px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); text-align: right; }
.hf-prompt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-sunk); font: 500 14px/20px var(--font-sans); }
.hf-prompt svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--lapis); }
.hf-wire { display: block; width: 2px; height: 20px; border-radius: 1px; background: var(--border-strong); transform-origin: top; }
.hf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--lapis-fill); color: var(--on-lapis); font: 700 11px/14px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.hf-pill svg { width: 13px; height: 13px; }
.hf-hub { max-width: 330px; border-color: var(--lapis); }
.hf-brand { display: flex; align-items: center; gap: 10px; }
.hf .hf-icon { width: 32px; height: 32px; flex-shrink: 0; }
.hf-brand b { display: block; font: 700 15px/20px var(--font-sans); }
.hf-brand span { display: block; font: 500 12px/16px var(--font-sans); color: var(--ink-muted); }
.hf-line { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--lapis-tint); color: var(--lapis); font: 600 13px/18px var(--font-mono); font-variant-ligatures: none; white-space: nowrap; overflow: hidden; }
.hf-type { display: inline-block; }
.hf-branches { display: block; width: 100%; height: 40px; color: var(--border-strong); }
.hf-outs { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hf-out { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hf-out-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--lapis-tint); color: var(--lapis); }
.hf-out-icon.hf-done { background: var(--turquoise-tint); color: var(--turquoise); }
.hf-out-icon svg { width: 18px; height: 18px; }
.hf-out b { font: 700 13px/18px var(--font-sans); }
.hf-out > span:last-child { font: 500 12px/16px var(--font-sans); color: var(--ink-muted); }
@media (max-width: 560px) { .hf-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; } .hf-branches { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal]:not(.in) .hf-wire { transform: scaleY(0); }
  .motion [data-reveal]:not(.in) .hf-reveal { clip-path: inset(0 0 100% 0); }
  .motion [data-reveal]:not(.in) .hf-type { clip-path: inset(0 100% 0 0); }
  .motion .in .hf-wire { animation: hf-grow-y 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .motion .in .hf-reveal { animation: hf-reveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .motion .in .hf-type { animation: hf-type 900ms steps(28, end) both; }
  .motion .in .hf-pill.rv-pop { animation: rv-pop 460ms cubic-bezier(0.34, 1.4, 0.64, 1) both, hf-glow 900ms ease-out both; }
  .motion .in .key-line .rv-draw { animation: rv-draw 1100ms cubic-bezier(0.4, 0, 0.3, 1) 700ms both; }
  .motion .in .f0 { animation-delay: 60ms; }
  .motion .in .f1 { animation-delay: 300ms; }
  .motion .in .f2 { animation-delay: 380ms, 800ms; }
  .motion .in .f3 { animation-delay: 560ms; }
  .motion .in .f4 { animation-delay: 640ms; }
  .motion .in .f5 { animation-delay: 1000ms; }
  .motion .in .f6 { animation-delay: 1400ms; }
  .motion .in .f7 { animation-delay: 1650ms; }
  .motion .in .f8 { animation-delay: 1750ms; }
  .motion .in .f9 { animation-delay: 1850ms; }
  .motion .in .f10 { animation-delay: 1950ms; }
}
@keyframes hf-grow-y { from { transform: scaleY(0); } }
@keyframes hf-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hf-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hf-glow { 0% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 6px var(--lapis-tint); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Legal and help pages (tools/doc_pages.py) */
.doc { max-width: 860px; padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.doc h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 800; margin-bottom: 8px; }
.doc section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.doc p, .doc li { font-size: 1rem; line-height: 1.6; }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 8px; margin: 0; }
.doc a { color: var(--lapis); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.doc-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface-sunk); color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.doc-nav a[aria-current="page"] { background: var(--lapis-tint); color: var(--lapis); }
.doc-status { align-self: flex-start; padding: 6px 12px; border-radius: 10px; background: var(--saffron-tint); color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.doc-meta { color: var(--ink-muted); font-size: 0.9375rem; }
.doc-short { padding: 16px 18px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.doc-short h2 { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.doc-toc ol { color: var(--ink-muted); }
.doc-blank { background: var(--saffron-tint); color: var(--saffron); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.doc details { border-top: 1px solid var(--hairline); padding: 4px 0; }
.doc summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.doc details p { padding-bottom: 10px; }
.doc-table-box { overflow-x: auto; border-radius: 14px; background: var(--surface); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.45; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.doc-table th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunk); }
.doc-table td:first-child { font-weight: 600; }
@media (max-width: 759px) {
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr { padding: 8px 0; border-bottom: 1px solid var(--hairline); }
  .doc-table td { border: 0; padding: 2px 14px; }
  .doc-table td::before { content: attr(data-label); display: block; margin-top: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
  .doc-table td:first-child::before { display: none; }
}
.doc-foot { display: flex; flex-direction: column; gap: 8px; }
.doc-foot .muted a { color: var(--ink-muted); margin-right: 12px; }
