/* BenefitMap — M0 shell styles. Mobile-first, plain CSS, no build step. */
:root {
  --ink: #14213d;
  --paper: #fdfcf9;
  --accent: #0b7285;
  --trust-bg: #eef7f5;
  --rule: #d9dee7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.brand {
  font-weight: 800; letter-spacing: 0.02em; color: var(--accent);
  text-transform: uppercase; font-size: 0.85rem; margin: 0;
}
.brand a { color: inherit; text-decoration: none; }

/* ---- M4 accessibility: skip link + designed focus ring ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 0 0 0.6rem 0;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 0.25rem;
}

/* ---- M4 save-and-resume banner ---- */
.resume-banner {
  background: var(--trust-bg); border: 1px solid var(--rule);
  border-radius: 0.75rem; padding: 0.9rem 1.1rem; margin-bottom: 1.25rem;
}
.resume-banner p { margin: 0; }
.resume-banner .step-nav { margin-top: 0.7rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.4rem 0 0.8rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.lede { font-size: 1.05rem; margin: 0 0 1.5rem; }
.trust {
  background: var(--trust-bg); border: 1px solid var(--rule);
  border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.trust ul { margin: 0; padding-left: 1.2rem; }
.trust li { margin: 0.35rem 0; }
.status { border-top: 1px solid var(--rule); padding-top: 1rem; }
footer { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; color: #4a5568; }

/* ---- M1 profile flow + results ---- */
.app { margin-bottom: 1.5rem; }
.step-phase { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin: 0 0 0.25rem; }
.step-intro { margin-top: 0; color: #33415c; }
.field { margin: 0 0 1rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input[type="text"], .field input[type="date"], .field input[type="number"], .field select {
  width: 100%; padding: 0.55rem 0.6rem; border: 1px solid var(--rule);
  border-radius: 0.5rem; font: inherit; background: #fff; color: var(--ink);
}
.field-check label, .checkline { display: block; font-weight: 400; margin: 0.3rem 0; }
.help { font-size: 0.88rem; color: #4a5568; margin: 0.3rem 0 0; }
.step-error {
  background: #fdf0ec; border: 1px solid #e5a08c; color: #7c2d12;
  border-radius: 0.5rem; padding: 0.6rem 0.8rem; margin-bottom: 1rem;
}
.step-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 0.6rem;
  padding: 0.65rem 1.1rem; background: var(--accent); color: #fff;
}
.btn[disabled] { opacity: 0.55; cursor: wait; }
.btn-quiet { background: #e8edf3; color: var(--ink); }
.privacy-note { font-size: 0.85rem; color: #4a5568; margin-top: 1rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

#results { margin-top: 1.5rem; }
.money { font-size: 1.05rem; }
.card {
  border: 1px solid var(--rule); border-left: 0.35rem solid var(--rule);
  border-radius: 0.6rem; padding: 0.8rem 1rem; margin: 0 0 0.8rem; background: #fff;
}
.card h4 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.card.verdict-likely_eligible { border-left-color: #1e9e6a; }
.card.verdict-worth_checking { border-left-color: #d9a404; }
.card.verdict-not_eligible { border-left-color: #b0b7c3; }
.card .amount { font-weight: 800; font-size: 1.1rem; margin: 0.2rem 0; }
.card .because { margin: 0.3rem 0; }
.card .next, .card .deadline { font-size: 0.92rem; margin: 0.35rem 0; }
.card .source { font-size: 0.85rem; margin: 0.35rem 0 0; }
.badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; vertical-align: middle;
  background: #fdf3d8; border: 1px solid #d9a404; color: #6b4e00;
  border-radius: 0.35rem; padding: 0.1rem 0.35rem;
}
.loans { border-top: 2px dashed var(--rule); margin-top: 1.5rem; padding-top: 1rem; }
#results details { margin-bottom: 1rem; }
#results summary { cursor: pointer; font-weight: 700; margin-bottom: 0.6rem; }

/* ---- M4 print: a clean one-page summary ----
 * Printing the results view yields the summary, not the app chrome:
 * no trust box, no status section, no buttons, no collapsed groups —
 * just the totals, the deadlines, and the cards that carry them. */
@media print {
  .skip-link, .trust, .status, .no-print, #flow { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  header .lede { display: none; }
  h1 { font-size: 1.4rem; }
  #results details { display: none; }
  .card { break-inside: avoid; border: 1px solid #bbb; margin-bottom: 0.5rem; }
  .card .source a { color: var(--ink); text-decoration: none; }
  footer { font-size: 0.8rem; }
}
