:root {
  --bg: oklch(99% 0.0042 293);
  --bg-2: oklch(96.5% 0.007 293);
  --line: oklch(83% 0.014 293);
  --ink: oklch(24% 0.021 293);
  --muted: oklch(40.61% 0.0196 293);
  --brand: oklch(48% 0.24 293);
  --brand-ink: oklch(98% 0.01 293);
  --link: oklch(49.73% 0.132 293);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(22% 0.0042 293);
    --bg-2: oklch(17% 0.007 293);
    --line: oklch(38% 0.014 293);
    --ink: oklch(93% 0.021 293);
    --muted: oklch(72.63% 0.0196 293);
    --brand: oklch(70% 0.1736 293);
    --brand-ink: oklch(18% 0.02 293);
    --link: oklch(77.81% 0.1056 293);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: oklch(22% 0.0042 293);
  --bg-2: oklch(17% 0.007 293);
  --line: oklch(38% 0.014 293);
  --ink: oklch(93% 0.021 293);
  --muted: oklch(72.63% 0.0196 293);
  --brand: oklch(70% 0.1736 293);
  --brand-ink: oklch(18% 0.02 293);
  --link: oklch(77.81% 0.1056 293);
  color-scheme: dark;
}

/* Yak Docs — shared layout. Fluid type system per the fleet rule:
   rem baseline on html, body 1rem, clamp() heading scale. */
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.15; margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.25; margin: 2rem 0 .75rem; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.3; margin: 1.25rem 0 .5rem; }
p, li { font-size: 1rem; }
@media (min-width: 1400px) { body { font-size: 1.0625rem; } }
a { color: var(--link, var(--brand)); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
code { font-size: .92em; background: var(--bg-2); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; overflow-x: auto; font-size: .9rem; line-height: 1.5; }
pre code { background: none; padding: 0; font-size: inherit; }
.body > p { margin: 0 0 .5rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 9; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
header.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; gap: .5rem; align-items: center; }
.brand .dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--brand); }
.brand small { font-weight: 500; color: var(--muted); }
header.top nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: .55rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; border: 0; font-size: 1rem; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.crumbs { font-size: .9rem; margin: 1.25rem 0 0; color: var(--muted); }
.crumbs a { color: inherit; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; }
main { padding: 1.5rem 1rem 4rem; }
@media (max-width: 40rem) {
  header.top { position: static; }
  header.top .wrap { gap: .5rem; padding-top: .5rem; padding-bottom: .5rem; }
  header.top nav { gap: .75rem; font-size: .95rem; }
  header.top nav .hub { display: none; }
  .btn { padding: .45rem .8rem; }
}
.lede { font-size: 1.15rem; max-width: 46rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem; }
.chip { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; background: var(--bg-2); }
.chip.plan { border-color: var(--brand); }
.chip.st-draft { background: #fff3cd; color: #5c4400; border-color: #e0c060; }
.chip.st-recon-verified { background: #e6f0ff; color: #12366b; border-color: #8fb1e6; }
.chip.st-approved { background: #e3f6e8; color: #124a24; border-color: #7cc492; }
.chip.st-recorded { background: #e3f6e8; color: #124a24; border-color: #2f9a54; }
.chip.preview { background: #f3e8ff; color: #46186e; border-color: #b58ce0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 64rem) { .layout { grid-template-columns: minmax(0, 1fr) 16rem; } }
aside.side { font-size: .95rem; }
aside.side .box { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; position: sticky; top: 5rem; background: var(--bg); }
aside.side ol { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.prereq { border-left: 4px solid var(--brand); background: var(--bg-2); padding: .75rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.prereq h2 { font-size: 1rem; margin: 0 0 .25rem; }
.prereq ul { margin: 0; padding-left: 1.2rem; }
.video { margin: 1.25rem 0; }
.video video { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.video .soon { border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-2); color: var(--muted); padding: .75rem 1rem; }
.video details { margin-top: .5rem; font-size: .95rem; }
.video .note { font-size: .85rem; margin: .35rem 0 0; color: var(--muted); }
ol.steps { list-style: none; padding: 0; margin: 1rem 0; counter-reset: s; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 1.75rem 3rem; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
ol.steps h3 { margin: 0 0 .25rem; }
ol.steps .body { margin: 0 0 .6rem; }
ol.steps figure { margin: .5rem 0 0; }
ol.steps img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
ol.steps figcaption { font-size: .8rem; margin-top: .25rem; color: var(--muted); }
.jump { font-size: .85rem; margin-left: .5rem; }
.result { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--bg-2); }
.result strong:first-child { display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.cards li { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--bg); }
.cards li a { font-weight: 600; }
.cards .n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  font-size: .85rem; font-weight: 700; margin-right: .4rem; }
.cat { margin-top: 2.5rem; }
.cat > p { margin-top: -.25rem; }
.cat ul { padding-left: 1.2rem; }
.az { columns: 2 18rem; padding-left: 1.2rem; }
.search { margin: 1rem 0 1.5rem; max-width: 46rem; }
.search noscript, .search .fallback { font-size: .9rem; }
footer.bottom { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .9rem; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
table.cov { border-collapse: collapse; width: 100%; font-size: .9rem; }
table.cov th, table.cov td { border-bottom: 1px solid var(--line); padding: .4rem .5rem; text-align: left; vertical-align: top; }
table.cov img { width: 120px; border-radius: 6px; border: 1px solid var(--line); }
.pagefind-ui { --pagefind-ui-scale: .9; --pagefind-ui-primary: var(--brand); --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--bg); --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--bg-2); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
