:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1a2230;
  --muted: #5a6577;
  --line: #d5dae3;
  --brand: #1d3f8a;
  --brand-dark: #142c63;
  --focus: #ff9d00;
  --red: #b3261e;
  --red-bg: #fdecea;
  --amber: #8a5300;
  --amber-bg: #fff3d6;
  --blue: #124f94;
  --blue-bg: #e4f0fc;
  --green: #1b6b3a;
  --green-bg: #e3f4e9;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--brand-dark); color: #fff; padding: 12px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.logo { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: .01em; }
.strap { color: #cdd8f2; font-size: .95rem; }

h1 { font-size: 1.7rem; line-height: 1.2; margin: 24px 0 12px; }
h2 { font-size: 1.3rem; line-height: 1.3; }
h3 { font-size: 1.05rem; }
.badges { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: var(--blue-bg); color: var(--blue); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.notice { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 6px; padding: 10px 14px; font-size: .95rem; margin: 0 0 16px; }

.layout { display: block; }
.side-col { margin: 20px 0; }
@media (min-width: 1190px) {
  .layout { max-width: 1100px; display: grid; grid-template-columns: 728px 300px; gap: 32px; align-items: start; margin-left: calc(50% - 380px); margin-right: 0; padding: 0; }
  .layout { margin-left: max(16px, calc(50% - 380px)); }
  .main-col { min-width: 0; }
  .side-col { position: sticky; top: 16px; margin-top: 90px; }
}

.ad-slot { background: #eef1f7; border: 1px dashed var(--line); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; width: 320px; height: 100px; max-width: 100%; }
.ad-sidebar { width: 300px; height: 250px; margin-bottom: 0; }
@media (min-width: 768px) { .ad-leaderboard { width: 728px; height: 90px; } }
.house-ad { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 6px 10px; height: 100%; width: 100%; }
.ad-leaderboard .house-ad { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.house-ad-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 100%; }
.ad-leaderboard .house-ad-label { display: none; }
.house-ad-headline { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.ad-sidebar .house-ad-headline { font-size: 1.15rem; }
.house-ad-cta { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 6px; font-size: .9rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; }
@media (min-width: 560px) { .card { padding: 24px; } }
.progress-text { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.progress-track { height: 8px; background: #e3e7ee; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 99px; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { padding: 0; width: 100%; }
legend h2 { margin: 0 0 4px; font-size: 1.25rem; outline-offset: 4px; }
.article-ref { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
.help { margin: 0 0 10px; color: var(--muted); }
.options { display: grid; gap: 10px; margin-top: 12px; }
.option { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; background: #fff; }
.option:hover { border-color: #9fb0d4; }
.option input { margin: 4px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.option:has(input:checked) { border-color: var(--brand); background: #eef3ff; }
.option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.option-body { display: flex; flex-direction: column; min-width: 0; }
.option-label { font-weight: 600; overflow-wrap: anywhere; }
.option-detail { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.callout { background: var(--amber-bg); border-left: 4px solid var(--amber); padding: 8px 12px; border-radius: 4px; margin: 0 0 10px; }
.callout-list { background: var(--amber-bg); border-left: 4px solid var(--amber); padding: 8px 12px 8px 30px; border-radius: 4px; margin: 0 0 10px; }
.error { color: var(--red); font-weight: 600; min-height: 1.4em; margin: 10px 0 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 8px 0 0; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }

.btn { font: inherit; font-weight: 700; border-radius: 8px; padding: 12px 20px; min-height: 44px; cursor: pointer; border: 2px solid var(--brand); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); }
.btn[hidden] { display: none; }

.result h2 { margin-top: 0; }
.summary { margin-bottom: 8px; }
.badge { display: inline-block; font-weight: 800; padding: 8px 14px; border-radius: 8px; border: 2px solid; }
.badge-red { background: var(--red-bg); color: var(--red); border-color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.badge-blue { background: var(--blue-bg); color: var(--blue); border-color: var(--blue); }
.badge-green { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.facts dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 600; }
.facts div { min-width: 0; }
.asof { color: var(--muted); font-size: .9rem; margin: 6px 0 14px; }
.warning { border-left: 5px solid; border-radius: 6px; padding: 10px 14px; margin: 12px 0; }
.warning p { margin: 4px 0 0; }
.warning-red { background: var(--red-bg); border-color: var(--red); }
.warning-amber { background: var(--amber-bg); border-color: var(--amber); }
.note { background: #f0f2f6; border-radius: 6px; padding: 10px 14px; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.item-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.art { color: var(--muted); font-size: .85rem; }
.tag { background: var(--amber-bg); color: var(--amber); font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.item-when { font-size: .85rem; font-weight: 700; color: var(--brand); }
.item-note { font-style: italic; color: var(--muted); }
.deadline { margin: 0 0 12px; display: flex; flex-direction: column; }
.deadline-label { font-size: .85rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.deadline-date { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.penalties { background: #f0f2f6; border-radius: 8px; padding: 4px 14px 10px; margin-top: 20px; }
.penalties ul { padding-left: 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 12px; margin-top: 150px; padding-top: 4px; }
.restart { font-weight: 600; }
.copy-status { font-size: .9rem; color: var(--green); }
.disclaimer { font-size: .9rem; border: 1px solid var(--line); background: #fafbfc; padding: 12px 14px; border-radius: 6px; margin: 16px 0; }
.newsletter { border-top: 1px solid var(--line); padding-top: 4px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-form input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 10px 12px; min-height: 44px; border: 2px solid var(--line); border-radius: 8px; }

.explainer { margin-top: 40px; padding-bottom: 24px; }
.explainer h2 { margin-top: 32px; }
.timeline { list-style: none; padding: 0; margin: 16px 0; border-left: 3px solid var(--line); }
.timeline li { padding: 4px 0 14px 16px; position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li.tl-applied::before { background: var(--brand); }
.tl-date { font-weight: 700; }
.tl-tag { font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; margin-left: 6px; }
.legal h1 { margin-bottom: 8px; }
.draft { background: var(--amber-bg); padding: 8px 12px; border-radius: 6px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 32px; color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0; }
.site-footer p { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.supporting { font-size: 1.1rem; color: var(--muted); margin: 0 0 10px; }
.points { margin: 0 0 14px; padding-left: 20px; }
.ext { margin-left: 3px; vertical-align: -1px; }
.art-link { white-space: nowrap; }
.headline { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; }
.start-label { margin: 0 0 4px; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.badge { font-size: .95rem; padding: 6px 12px; }
.group { margin-top: 14px; }
.group h4, .adviser h4 { margin: 14px 0 4px; font-size: 1rem; }
.group-head { margin: 0 0 8px; color: var(--muted); }
.deadline-alt { font-size: .9rem; color: var(--muted); }
.questions { padding-left: 24px; margin: 4px 0 8px; }
.questions li { margin-bottom: 8px; }
