/* Subsidy Dropoff — interim shell.
   Palette and type scale match design/v0-prompt.md so the v0 build drops in
   without a visual reset. */

:root {
  --ink: #0b0d0f;
  --paper: #faf9f7;
  --teal: #0e7c7b;
  --amber: #b45309;
  --clay: #9a3412;
  --slate: #334155;
  --muted: #5b6470;
  --rule: #e2ded9;
  --bg: var(--paper);
  --fg: var(--ink);
  --card: #fff;
  --radius: 10px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d0f;
    --fg: #f2f0ed;
    --card: #14181c;
    --rule: #262c33;
    --muted: #9aa4b0;
    --teal: #2fa8a6;
    --amber: #e0912f;
    --clay: #e06a45;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

header { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2.5rem; }

.brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { display: block; }

h1 {
  font: 600 clamp(1.9rem, 5vw, 3rem)/1.1 ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.75rem;
  max-width: 20ch;
}

.lede { color: var(--muted); max-width: var(--measure); margin: 0 0 1rem; }

h2 { font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 1rem; font-weight: 600; }

form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1.125rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }

label { font-size: 0.875rem; font-weight: 600; }
.hint { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }

input, select {
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  min-width: 0;
}

input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

button {
  font: 600 1rem/1 inherit;
  padding: 0.8125rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button[disabled] { opacity: 0.55; cursor: progress; }

.err { color: var(--clay); font-size: 0.8125rem; min-height: 1.2em; }

/* Results */
#out:empty { display: none; }

.headline {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.headline--live { border-left-color: var(--amber); }
.headline--over { border-left-color: var(--clay); }

.headline p { margin: 0.5rem 0 0; color: var(--muted); max-width: var(--measure); }

.big {
  font: 600 clamp(1.75rem, 5vw, 2.5rem)/1.1 ui-serif, Georgia, serif;
  letter-spacing: -0.02em;
  margin: 0;
}

.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.cell { background: var(--card); padding: 1rem 1.125rem; }
.cell dt { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.375rem; }
.cell dd { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }

details { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); padding: 0 1.25rem; margin: 1.5rem 0; }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: 0.5rem; }

.step { padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }
.step:last-child { border-bottom: 0; }
.step h3 { margin: 0 0 0.25rem; font-size: 0.9375rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.step cite { display: block; margin-top: 0.375rem; font-size: 0.8125rem; color: var(--muted); font-style: normal; opacity: 0.8; }

.notice { border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: var(--radius); background: var(--card); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.notice h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.notice p { margin: 0 0 0.75rem; color: var(--muted); }
.notice p:last-child { margin-bottom: 0; }

.choices { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.5rem; }
.choice { border: 1px solid var(--rule); background: var(--bg); color: var(--fg); font-weight: 500; padding: 0.75rem 1rem; border-radius: 8px; }

a { color: var(--teal); text-underline-offset: 2px; }

footer { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); }
footer p { max-width: 46rem; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
