:root {
  color-scheme: light;
  --ink: #172338;
  --muted: #52637a;
  --line: #bfccd9;
  --blue: #194b87;
  --teal: #126859;
  --amber: #714900;
  --paper: #fff;
  --panel: #f2f6fa;
  --good-bg: #e2f3eb;
  --bad-bg: #fff2dd;
  --rose: #a33f4d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #e6edf4; font: 1rem/1.62 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #174d91; text-underline-offset: .19em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #c97900; outline-offset: 3px; }
.skip { position: absolute; z-index: 2; top: 8px; left: -10000px; padding: 10px 14px; color: var(--ink); background: var(--paper); }
.skip:focus { left: 8px; }
.page { width: min(1120px, calc(100% - 28px)); margin: 28px auto; padding: clamp(18px, 5vw, 58px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 34px #17233816; }
.hero { position: relative; overflow: hidden; padding: clamp(20px, 4vw, 38px); border: 1px solid #263d60; border-radius: 16px; color: #f4f7ff; background: linear-gradient(135deg, #142644, #0b182c 75%); }
.hero::after { position: absolute; right: -60px; bottom: -134px; width: 320px; height: 320px; border: 1px solid #66dfb955; border-radius: 50%; box-shadow: 0 0 0 28px #66dfb912, 0 0 0 58px #66dfb90a; content: ""; pointer-events: none; }
.hero .eyebrow { color: #8fe2c2; }
.eyebrow { margin: 0 0 7px; color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; }
h1 { position: relative; z-index: 1; max-width: 18ch; margin: .15em 0 .35em; font: 500 clamp(2.15rem, 5.4vw, 3.8rem)/1.08 Georgia, serif; text-wrap: balance; }
.lead { position: relative; z-index: 1; max-width: 76ch; margin: 0; color: #d0d9e8; font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.promise { position: relative; z-index: 1; max-width: 76ch; margin-top: 22px; padding: 13px 16px; border-left: 4px solid #70deb2; color: #f2f6ff; background: #ffffff11; }
.map, .sources { margin: 26px 0; padding: clamp(18px, 3.5vw, 30px); border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.map h2, .sources h2, .section-heading h2 { margin: .12em 0 .65em; font: 500 clamp(1.55rem, 3.5vw, 2.05rem)/1.2 Georgia, serif; text-wrap: balance; }
.action-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.action-path li { display: grid; align-content: start; gap: 4px; min-width: 0; min-height: 126px; padding: 13px 14px; border: 1px solid #bfccd9; border-top: 4px solid var(--blue); background: var(--panel); }
.action-path li:nth-child(2) { border-top-color: #4374a9; }
.action-path li:nth-child(3) { border-top-color: #8a6423; }
.action-path li:nth-child(4) { border-top-color: #b05a4e; }
.action-path li:nth-child(5) { border-top-color: var(--teal); }
.action-path .step { color: var(--muted); font-size: .74rem; font-weight: 850; letter-spacing: .12em; }
.action-path strong { font-size: 1.02rem; }
.action-path li > span:last-child { color: var(--muted); font-size: .91rem; line-height: 1.4; }
.callout, .note { margin: 18px 0 0; padding: 13px 16px; border-left: 4px solid var(--amber); background: #fff5e5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 42px 0 16px; }
.section-heading p { max-width: 38ch; margin: 0 0 11px; color: var(--muted); }
.case { margin: 18px 0; padding: clamp(17px, 3.5vw, 27px); border: 1px solid #c4cfdb; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px #1723380a; }
.case:nth-of-type(odd) { background: #fcfdff; }
.case-head { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 14px; }
.case-head h3 { max-width: 66ch; margin: .08em 0 14px; font-size: clamp(1.15rem, 2.4vw, 1.42rem); text-wrap: balance; }
.case-number { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #9fb4cc; border-radius: 50%; color: var(--blue); background: #eef4fb; font-weight: 850; }
.prompt-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 18px 60px; }
.prompt-sheet > div { display: grid; grid-template-columns: minmax(92px, .72fr) minmax(0, 1.5fr); gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid #d2dce5; background: var(--panel); }
.prompt-sheet dt { color: var(--muted); font-size: .82rem; font-weight: 750; }
.prompt-sheet dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
fieldset { display: grid; gap: 9px; margin: 13px 0; padding: 0; border: 0; }
legend { margin-bottom: 6px; font-weight: 800; }
.fieldset-choice, fieldset label { display: flex; align-items: flex-start; gap: 11px; min-height: 48px; padding: 11px 13px; border: 1px solid #c6d1dc; border-radius: 8px; color: var(--ink); background: #fcfdfe; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.fieldset-choice:hover, fieldset label:hover { border-color: #829ab5; background: #f4f8fc; }
.fieldset-choice:has(input:checked), fieldset label:has(input:checked) { border-color: var(--blue); background: #edf4fd; }
input[type="radio"] { flex: 0 0 auto; width: 1.12rem; height: 1.12rem; margin: .2rem 0 0; accent-color: var(--blue); }
.fieldset-choice span, fieldset label span { min-width: 0; }
button { min-height: 44px; margin-top: 4px; padding: 10px 18px; border: 0; border-radius: 7px; color: #fff; background: #174b78; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #10395f; }
.feedback { min-height: 2.7em; margin: 12px 0 0; padding: 10px 13px; border-left: 4px solid #718197; color: var(--ink); background: #f0f3f6; }
.feedback[data-result="correct"] { border-color: var(--teal); background: var(--good-bg); }
.feedback[data-result="incorrect"], .feedback[data-result="incomplete"], .feedback[data-result="unavailable"] { border-color: var(--amber); background: var(--bad-bg); }
.sources li { margin: 10px 0; padding-left: 2px; }
.sources li::marker { color: var(--teal); }
code { padding: .06em .32em; border: 1px solid #dce3ea; border-radius: 3px; color: #243752; background: #eef2f6; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.noscript { position: fixed; right: 12px; bottom: 12px; z-index: 4; max-width: 35ch; padding: 13px; border: 2px solid var(--amber); background: #fff; box-shadow: 0 4px 18px #17233822; }
@media (max-width: 820px) {
  .action-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .page { width: 100%; margin: 0 auto; padding: 14px; border: 0; box-shadow: none; }
  .hero { padding: 23px 19px; }
  .action-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-path li { min-height: 112px; }
  .section-heading { display: block; margin-top: 32px; }
  .section-heading p { margin: 0; }
  .prompt-sheet { grid-template-columns: 1fr; margin-left: 0; }
}
@media (max-width: 390px) {
  .page { padding: 9px; }
  .hero, .map, .sources, .case { padding: 16px 13px; }
  .action-path { gap: 7px; }
  .action-path li { padding: 10px; }
  .case-head { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .case-number { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
