:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --surface: #fffdf7;
  --ink: #173b2e;
  --muted: #56675d;
  --line: #c9d0c5;
  --accent: #c94b2c;
  --soft: #ecefe5;
  --code: #123a2c;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.72; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

.skip { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--ink); color: white; }
.skip:focus { top: 12px; }
.topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding: 10px clamp(20px, 4vw, 64px); background: rgba(247,244,235,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand>span { font-family: var(--serif); font-size: 31px; font-weight: 700; letter-spacing: -.06em; }
.brand-sub { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.top-actions>a { text-decoration: none; }
.version { font: 10px var(--mono); letter-spacing: .09em; color: var(--muted); }
.layout { display: grid; grid-template-columns: 224px minmax(0, 790px) 154px; gap: clamp(28px, 4vw, 60px); max-width: 1510px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 64px) 0; }
.sidebar { position: sticky; top: 88px; align-self: start; height: calc(100dvh - 88px); overflow: auto; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 18px 22px 0; border-right: 1px solid var(--line); }
.nav-group { margin: 0 17px 26px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nav-group:last-child { border: 0; }
.nav-group>p, .toc>p { margin: 0 0 9px; color: var(--muted); font: 700 10px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.nav-group a { display: block; margin: 1px 0; padding: 5px 9px 5px 13px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.55; }
.nav-group a:hover { color: var(--ink); }
.nav-group a[aria-current] { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.sidebar-foot { padding: 14px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #527c5c; vertical-align: middle; }
main { min-width: 0; padding: 45px 0 0; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font: 700 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; text-wrap: balance; }
h1 { max-width: 850px; margin: 0 0 21px; font-size: clamp(42px, 5.2vw, 69px); line-height: .99; letter-spacing: -.045em; }
.lead { max-width: 680px; margin: 0 0 34px; color: var(--muted); font-size: 19px; line-height: 1.55; }
article { font-size: 15px; }
h2 { margin: 48px 0 13px; font-size: 29px; line-height: 1.15; letter-spacing: -.025em; }
h3 { margin: 27px 0 8px; font-size: 21px; line-height: 1.25; }
p { max-width: 70ch; margin: 13px 0; }
li { max-width: 72ch; margin: 8px 0; padding-left: 3px; }
code { padding: 2px 5px; border-radius: 3px; background: var(--soft); font: .85em var(--mono); overflow-wrap: anywhere; }
pre { position: relative; overflow: auto; margin: 18px 0 23px; padding: 22px 24px; border-radius: 5px; background: var(--code); color: #f3f1e8; font: 13px/1.75 var(--mono); }
pre code { padding: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }
.copy-button { position: absolute; top: 9px; right: 10px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; background: transparent; color: white; font-size: 11px; cursor: pointer; }
.copy-button:hover { background: rgba(255,255,255,.14); }
.callout { margin: 27px 0; padding: 15px 19px; border-left: 3px solid var(--accent); background: #f0ece0; color: var(--ink); }
.callout p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.table-wrap { overflow: auto; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: var(--muted); font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.hero-note { margin: 0 0 30px; color: var(--muted); font: 11px/1.8 var(--mono); }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 38px; padding: 22px 0 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-card { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 15px; color: var(--ink); text-decoration: none; }
.path-card:hover h2 { color: var(--accent); }
.step { grid-row: span 3; padding-top: 3px; color: var(--accent); font: 700 21px var(--serif); }
.path-card h2 { margin: 0 0 7px; font-size: 23px; }
.path-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-link { font-size: 12px; font-weight: 700; }
.link-list { padding: 0; list-style: none; }
.link-list li { margin: 0; padding: 0; }
.link-list a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.link-list span { color: var(--accent); font: 11px var(--mono); white-space: nowrap; }
.toc { position: sticky; top: 126px; align-self: start; max-height: calc(100dvh - 150px); overflow: auto; padding: 25px 0 0 18px; border-left: 1px solid var(--line); font-size: 11px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.5; }
.toc a:hover { color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 62px; padding: 17px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.flow { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 12px; margin: 24px 0; padding: 19px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 12px var(--mono); }
.flow span { color: var(--accent); }
.timeline { padding-left: 27px; border-left: 1px solid var(--line); list-style: none; counter-reset: steps; }
.timeline li { position: relative; margin: 23px 0; counter-increment: steps; }
.timeline li:before { position: absolute; top: 0; left: -42px; color: var(--accent); content: "0" counter(steps); font: 12px var(--mono); }
.timeline p { margin: 5px 0; color: var(--muted); }
.menu-button { display: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }

@media (max-width: 1200px) { .layout { grid-template-columns: 205px minmax(0, 1fr); gap: 35px; max-width: 1080px; } .toc { display: none; } }
@media (max-width: 800px) {
  .topbar { min-height: 68px; padding: 8px 20px; }
  .brand>span { font-size: 26px; }
  .brand img { width: 31px; height: 31px; }
  .brand-sub { margin-left: 9px; padding-left: 9px; font-size: 10px; }
  .top-actions { gap: 13px; }
  .version { display: none; }
  .menu-button { display: block; }
  .layout { display: block; padding: 0 22px; }
  .sidebar { position: static; height: auto; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .nav-group { margin: 0; padding: 8px 0; }
  .sidebar-foot { display: none; }
  .js .sidebar { display: none; }
  .js .sidebar.is-open { display: block; }
  main { padding-top: 34px; }
  h1 { font-size: clamp(41px, 9vw, 58px); }
  .lead { font-size: 17px; }
  footer { display: block; }
  footer span { display: block; margin-top: 5px; }
}
@media (max-width: 520px) {
  .top-actions>a { font-size: 12px; }
  .path-grid { grid-template-columns: 1fr; gap: 21px; }
  .path-card h2 { font-size: 22px; }
  pre { padding: 28px 15px 18px; font-size: 11px; }
  h1 { font-size: 40px; }
  h2 { font-size: 25px; }
  .sidebar nav { grid-template-columns: 1fr 1fr; }
  .link-list a { display: block; }
  .link-list span { display: block; margin-top: 4px; }
  th, td { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print { .topbar, .sidebar, .toc, .copy-button { display: none; } .layout { display: block; } main { padding: 0; } body { background: white; } pre { white-space: pre-wrap; color: black; background: #eee; } .callout { break-inside: avoid; } a { color: inherit; } }
