:root {
  color-scheme: light;
  --ink: #12344b;
  --muted: #466273;
  --water: #087ca1;
  --water-dark: #075b78;
  --paper: #f4f8f9;
  --surface: #fff;
  --line: #cddde3;
  --notice: #fff4d9;
  --notice-line: #b87912;
  --focus: #dd6b20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--water-dark); text-underline-offset: .18em; }
a:hover { color: var(--water); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: .5rem .75rem; background: var(--surface); z-index: 10; }
.skip:focus { top: .5rem; }
.shell { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem .75rem 1rem 1rem; background: var(--water-dark); color: white; font-size: .9rem; letter-spacing: -.08em; }
.brand small { display: block; margin-top: -.25rem; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.site-nav a { display: inline-block; padding: .45rem .7rem; border-radius: .45rem; text-decoration: none; font-size: .92rem; font-weight: 650; }
.site-nav a[aria-current="page"] { background: #e2f3f7; color: var(--water-dark); }
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) 2rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--water-dark); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { max-width: 18ch; margin: 0 0 1rem; font-size: clamp(2.1rem, 6vw, 3.7rem); }
h2 { margin: 0 0 .85rem; font-size: clamp(1.28rem, 3vw, 1.65rem); }
h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
p, li { max-width: 72ch; }
.lead { max-width: 65ch; margin: 0; color: var(--muted); font-size: 1.1rem; }
.notice { margin-block: 1.5rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--notice-line); border-radius: 0 .5rem .5rem 0; background: var(--notice); }
.notice p { margin: 0; }
.notice strong { color: #644007; }
.page-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 2rem; align-items: start; padding-bottom: 4rem; }
.toc { position: sticky; top: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.toc h2 { margin-bottom: .65rem; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase; }
.toc a { display: block; padding: .33rem 0; font-size: .9rem; }
.article { min-width: 0; }
.article section, .card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.article section + section { margin-top: .8rem; }
.article section { scroll-margin-top: 1rem; }
.article p:first-of-type { margin-top: 0; }
.article p:last-child, .article ul:last-child, .article ol:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .45rem; }
.pending { display: inline-block; padding: .1rem .4rem; border-radius: .25rem; background: var(--notice); color: #644007; font-size: .82rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.card { min-width: 0; }
.card p { color: var(--muted); }
.card a { font-weight: 700; }
.meta { margin-top: 1rem; color: var(--muted); font-size: .85rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.4rem; color: var(--muted); font-size: .85rem; }
.footer-inner p { margin: 0; }
@media (max-width: 760px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .toc { position: static; }
  .toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .header-inner { align-items: flex-start; }
  .site-nav { width: 100%; }
  .site-nav a { padding-inline: .5rem; }
  .toc nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
