/* Can I Buy a Home Yet? v0.4.1 "Front Porch". Fraunces and Figtree, both SIL OFL 1.1, self-hosted in /fonts (licenses alongside). */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-vf.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-600.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-700.woff2) format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --sand: #faf4ea; --paper: #fffdf8; --ink: #1d2b2a; --muted: #56625f; --line: #e6dac6; --line-2: #cdbfa8;
  --teal: #12605a; --teal-hover: #0c4a45; --teal-soft: #e2efe9;
  --coral: #c2410c; --coral-hover: #9a3412; --sun: #f4b740; --sun-soft: #fff1d6; --sun-line: #f1d9a6;
  --amber: #8a4b00; --good: #2f6b3b; --good-soft: #e4f1e3; --bad: #b42318; --bad-soft: #fdeceb;
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 var(--sans); }
button, input { font: inherit; color: inherit; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
@media (min-width: 900px) { .wrap { padding: 0 44px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { left: 8px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* The sun mark: a setting sun over three lines of water */
.sunmark { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; background:
  linear-gradient(var(--sand) 0 0) 0 62% / 100% 2px no-repeat,
  linear-gradient(var(--sand) 0 0) 0 78% / 100% 2px no-repeat,
  linear-gradient(180deg, var(--sun) 0 50%, var(--coral) 50% 100%); }
.sunmark.small { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; margin-right: 8px; }
.sun { position: absolute; border-radius: 50%; pointer-events: none; background:
  linear-gradient(var(--paper) 0 0) 0 60% / 100% 3px no-repeat,
  linear-gradient(var(--paper) 0 0) 0 72% / 100% 3px no-repeat,
  linear-gradient(var(--paper) 0 0) 0 84% / 100% 3px no-repeat,
  linear-gradient(180deg, var(--sun) 0 48%, var(--coral) 100%); }

/* ---------- Header ---------- */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; margin-right: auto; text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 24; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.lgtxt { white-space: nowrap; }
.logo em { font-style: italic; color: var(--coral); font-variation-settings: "SOFT" 100, "WONK" 1; }
.topnav { display: none; align-items: center; gap: 24px; font-weight: 600; font-size: 15px; }
.topnav a:not(.btn) { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.topnav a:not(.btn):hover, .topnav a[aria-current] { color: var(--teal); text-decoration: underline; }
@media (min-width: 900px) { .topnav { display: flex; } }
.ver { font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.ver.small { padding: 3px 7px; font-size: 11px; }
.stepper { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.stepper i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.stepper i.done { background: var(--teal); }
.stepper i.now { background: var(--coral); width: 40px; }
.stepper span { margin-left: 6px; color: var(--ink); white-space: nowrap; }
body[data-mode="form"] { background: var(--paper); }
body[data-mode="form"] .topnav { display: none; }
@media (max-width: 560px) { body[data-mode="form"] .lgtxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* ---------- Buttons ---------- */
.btn { appearance: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; border-radius: 999px; min-height: 52px; padding: 0 26px; font-size: 17px; white-space: nowrap; }
.btn.go, .btn.primary { background: var(--coral); color: #fff; box-shadow: 0 2px 0 var(--coral-hover); }
.btn.go:hover, .btn.primary:hover { background: var(--coral-hover); color: #fff; }
.btn.go:active, .btn.primary:active { transform: translateY(1px); box-shadow: none; }
.btn.big { min-height: 64px; padding: 0 34px; font-size: 19px; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.back { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn.back:hover { border-color: var(--ink); }
.btn svg { transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn svg, .btn { transition: none; } .btn:hover svg { transform: none; } }

/* ---------- Home ---------- */
.hero .wrap { display: grid; gap: 30px; padding-top: 22px; padding-bottom: 40px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 64px; padding-top: 56px; padding-bottom: 72px; align-items: center; } }
.locale { margin: 0 0 14px; font-weight: 600; font-size: 15px; color: var(--teal); }
.hero h1 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 600; font-size: 46px; line-height: 1.02; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--coral); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  background: linear-gradient(transparent 78%, rgba(244,183,64,.55) 78% 94%, transparent 94%); padding: 0 .04em; }
.hero h1 .then { display: block; margin-top: 14px; font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1.25; }
@media (min-width: 960px) { .hero h1 { font-size: 84px; } .hero h1 .then { font-size: 28px; margin-top: 18px; } }
.hero .sub { margin: 14px 0 0; font-size: 18px; color: var(--muted); max-width: 33em; }
@media (min-width: 960px) { .hero .sub { font-size: 19px; } }
.cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.cta .btn { width: 100%; }
@media (min-width: 600px) { .cta { flex-direction: row; align-items: center; gap: 20px; } .cta .btn { width: auto; } }
.cta .meta { font-size: 15px; color: var(--muted); text-align: center; }
@media (min-width: 600px) { .cta .meta { text-align: left; } }
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.know { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px 28px 24px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(80,55,20,.25); }
.know .sun { top: -36px; right: -22px; width: 72px; height: 72px; }
.know h2 { margin: 0 0 16px; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.know ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.know li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; padding: 14px 0; border-top: 1px dashed var(--line-2); }
.know li::before { content: counter(n); font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 28px; line-height: 1; color: var(--coral); }
.know li b { display: block; font-size: 17px; }
.know li span { font-size: 15px; color: var(--muted); }
.chipline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vchip { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 15px; padding: 3px 12px; border-radius: 999px; }
.know .vchip.ready { background: var(--good-soft); color: var(--good); }
.know .vchip.months { background: var(--sun-soft); color: var(--amber); }
@media (max-width: 959px) { .know { display: none; } }

.counties { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.counties .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-top: 12px; padding-bottom: 12px; }
.counties b { font-size: 13px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.clist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.clist a { font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 20px; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.clist a:hover { color: var(--teal); text-decoration: underline; }

.guide { padding: 56px 0 24px; }
.guide .head { display: grid; gap: 8px; margin-bottom: 24px; }
@media (min-width: 960px) { .guide .head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; } }
.guide h2, .porch h2 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 34px; line-height: 1.08; letter-spacing: -.02em; }
@media (min-width: 960px) { .guide h2, .porch h2 { font-size: 46px; } }
.guide .head p { margin: 0; color: var(--muted); }
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.plist li { border-bottom: 1px solid var(--line); }
.plist a { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 18px 0; text-decoration: none; color: var(--ink); }
@media (min-width: 760px) { .plist a { grid-template-columns: 260px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; } }
.plist .amt { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; color: var(--teal); }
.plist b { font-size: 19px; display: block; }
.plist .d { color: var(--muted); font-size: 16px; }
.plist .arr { display: none; color: var(--coral); font-weight: 700; }
@media (min-width: 760px) { .plist .arr { display: inline; } }
.plist a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.alsoread { margin: 18px 0 0; font-size: 16px; }
.alsoread a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

.porch { margin-top: 40px; }
.porch .wrap { display: grid; gap: 20px; align-items: center; background: var(--teal); color: #fff; border-radius: 28px; padding-top: 32px; padding-bottom: 32px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .porch .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; padding-top: 48px; padding-bottom: 48px; max-width: calc(var(--wrap) - 88px); } }
@media (max-width: 899px) { .porch { padding: 0 12px; } .porch .wrap { padding-left: 22px; padding-right: 22px; } .porch .btn { width: 100%; } }
.porch h2 em { font-style: italic; color: var(--sun); font-variation-settings: "SOFT" 100, "WONK" 1; }
.porch p { margin: 10px 0 0; color: #d8ebe6; max-width: 34em; }

/* ---------- Footer ---------- */
footer.site { margin-top: 56px; border-top: 1px solid var(--line); padding: 26px 0 44px; font-size: 14px; color: var(--muted); }
footer.site p { margin: 8px 0; line-height: 1.55; max-width: 62em; }
footer.site nav ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
footer.site nav a { font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
footer.site .legal { color: var(--ink); }
footer.site .sign { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--ink); font-weight: 600; }
footer.site .sign .ver { margin-left: 6px; }

/* ---------- The 2-minute check ---------- */
.panel { scroll-margin-top: 0; }
.tool-wrap { padding-top: 28px; padding-bottom: 120px; }
@media (min-width: 900px) { .tool-wrap { padding-top: 56px; padding-bottom: 40px; } }
.tcol { max-width: 760px; }
.qnum { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 15px; color: var(--coral); margin: 0 0 6px; letter-spacing: .02em; }
.tcol h2 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 34px; line-height: 1.08; letter-spacing: -.02em; }
@media (min-width: 900px) { .tcol h2 { font-size: 52px; } }
.tcol .help { margin: 8px 0 26px; color: var(--muted); font-size: 18px; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.tile { appearance: none; text-align: left; cursor: pointer; background: var(--sand); border: 1.5px solid transparent; border-radius: 16px; padding: 12px 18px; min-height: 64px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; transition: border-color .12s, background .12s; }
.tile b { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 22px; line-height: 1.15; }
.tile small { grid-column: 1; font-size: 14px; color: var(--muted); line-height: 1.35; }
.tile::after { content: ""; grid-row: 1 / span 2; grid-column: 2; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); }
.tile:hover { border-color: var(--teal); }
.tile.on { background: var(--teal-soft); border-color: var(--teal); }
.tile.on::after { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 0 6px, var(--paper) 7px); }
.privacy { margin-top: 22px; font-size: 14px; color: var(--muted); }

.q { margin: 0 0 24px; }
.ql, .field > .lbl { display: block; font-weight: 700; font-size: 17px; margin-bottom: 10px; line-height: 1.35; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.seg.wrap2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
@media (min-width: 700px) { .seg.wrap2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seg.six { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
.seg button, .chips button { appearance: none; min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 700; font-size: 17px;
  cursor: pointer; padding: 8px 10px; line-height: 1.2; transition: border-color .12s, background .12s; }
.seg button:hover, .chips button:hover { border-color: var(--teal); }
.seg button.on, .chips button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chips button { font-size: 15px; font-weight: 600; }

.field { display: block; margin: 0 0 24px; }
.field small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.money { display: flex; align-items: center; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 14px; min-height: 60px; }
.money i { font-style: normal; font-family: var(--serif); font-size: 24px; color: var(--teal); padding: 0 4px 0 18px; }
.money input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; padding: 12px 18px 12px 4px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.money input::placeholder { color: #7a8582; font-weight: 400; font-size: 18px; }
.money:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18,96,90,.16); }
.money3 { display: grid; gap: 0 24px; }
@media (min-width: 760px) { .money3 { grid-template-columns: 1fr 1fr; } .money3 .wide { grid-column: 1 / -1; } }

/* Inline errors (v0.3.1): message right under the question at fault */
.err { color: var(--bad); background: var(--bad-soft); font-size: 15px; font-weight: 600; margin: -14px 0 22px; padding: 8px 12px; border-radius: 10px; }
.money3 > .err { grid-column: 1 / -1; }
.money.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.invalid > button { border-color: var(--bad); }
.tiles.invalid + .err, .seg.invalid + .err { margin-top: 10px; }

.tnav { display: flex; gap: 12px; margin-top: 30px; }
.tnav .go { min-width: 180px; }
@media (max-width: 899px) {
  .tnav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,253,248,.97);
    border-top: 1px solid var(--line); z-index: 10; }
  .tnav .go { flex: 1; min-width: 0; }
}
body[data-mode="form"] footer.site { padding-bottom: 110px; }

/* v0.4.1: laptop side panel on the question screens ("Why we ask" for the current step + reassurance). Hidden on phones and tablets. */
@media (min-width: 1100px) {
  .tool-wrap { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 330px); gap: 0 64px; justify-content: space-between; align-items: start; }
  .why { position: sticky; top: 32px; margin-top: 6px; }
}
.why { background: var(--sand); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 22px; }
.whyk { margin: 0 0 12px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 15px; color: var(--coral); letter-spacing: .02em; }
.whynote h3 { margin: 0 0 10px; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.whynote p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.reassure { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); }
.reassure li { position: relative; padding: 5px 0 5px 30px; font-weight: 600; font-size: 15px; }
.reassure li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft);
  box-shadow: inset 0 0 0 1.5px var(--teal); }
.reassure li::after { content: ""; position: absolute; left: 7px; top: 11px; width: 5px; height: 9px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.whysrc { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 1099px) { .why { display: none; } }

/* ---------- Result ---------- */
.rhead { background: var(--sun-soft); border-bottom: 1px solid var(--sun-line); }
.rhead .wrap { padding-top: 28px; padding-bottom: 30px; display: grid; gap: 22px; }
@media (min-width: 960px) { .rhead .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 56px; align-items: end; } }
.rhead.ready { background: var(--good-soft); border-bottom-color: #c9e2c7; }
.rhead.not_eligible { background: var(--paper); border-bottom-color: var(--line); }
.rk { margin: 0 0 8px; font-weight: 700; font-size: 15px; color: var(--amber); }
.rhead.ready .rk { color: var(--good); }
.rhead.not_eligible .rk { color: var(--muted); }
.verdict { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 600; font-size: 50px; line-height: .98; letter-spacing: -.03em; }
.verdict em { font-style: italic; color: var(--coral); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.verdict.ready em { color: var(--good); }
.verdict.not_eligible { font-size: 36px; line-height: 1.08; }
@media (min-width: 960px) { .verdict { font-size: 92px; } .verdict.not_eligible { font-size: 54px; } }
.rhead .sub { margin: 14px 0 0; font-size: 18px; max-width: 30em; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.path::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 13px; border-top: 2px dashed #d9b46a; }
.path li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--amber); }
.path li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--sun-soft); border: 2px solid #d9b46a; }
.path li.now::before { width: 26px; height: 26px; margin-top: 0; background: var(--coral); border-color: var(--coral); }
.path li.goal::before { width: 26px; height: 26px; margin-top: 0; background: var(--good); border-color: var(--good); }
.path li.now, .path li.goal { color: var(--ink); font-weight: 700; }
.path.ready::before { border-top: 2px solid var(--good); }
.path.ready li.done::before { background: var(--good-soft); border-color: var(--good); }
.path.ready li.goal { white-space: nowrap; }
.pathcap { margin: 10px 0 0; font-size: 14px; color: var(--amber); }
.rhead.ready .pathcap { color: var(--good); }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sun-line); }
.rhead.ready .nums { border-top-color: #c9e2c7; }
.rhead.not_eligible .nums { border-top-color: var(--line); margin-top: 0; }
@media (min-width: 960px) { .nums { grid-template-columns: repeat(4, auto); } }
.nums b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nums b small { font-size: 14px; font-weight: 600; color: var(--muted); }
.nums span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; }

.rbody { padding: 40px 0 0; }
.rsec { margin-bottom: 48px; }
.rsec > h2 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 30px; letter-spacing: -.015em; line-height: 1.1; }
@media (min-width: 960px) { .rsec > h2 { font-size: 40px; } }
.rsec > .help { margin: 6px 0 18px; color: var(--muted); }
.pgrid { display: grid; gap: 14px; }
@media (min-width: 960px) { .pgrid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; } .pgrid.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; } }
.bestfit { background: var(--paper); border: 2px solid var(--teal); border-radius: 22px; padding: 22px 22px 20px; }
@media (min-width: 960px) { .bestfit { padding: 30px 32px 28px; } }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ribbon { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--teal); border-radius: 999px; padding: 4px 12px; }
.tag, .funds { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.tag.match { background: var(--good-soft); color: var(--good); }
.tag.later { background: var(--sun-soft); color: var(--amber); }
.tag.no { background: #efe9df; color: var(--muted); }
.funds { background: #fbe3d6; color: var(--coral-hover); }
.bestfit .amt { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -.03em; margin: 16px 0 6px; color: var(--teal); }
@media (min-width: 960px) { .bestfit .amt { font-size: 80px; } }
.bestfit h3 { margin: 0; font-size: 22px; }
.bestfit p { margin: 8px 0 0; font-size: 16px; }
.bestfit .why { color: var(--muted); font-size: 15px; }
.olist { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.olist li { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.olist li:first-child { border-top: 0; }
.olist b { font-size: 17px; }
.olist .amt { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 22px; white-space: nowrap; }
.olist .d { grid-column: 1 / -1; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; line-height: 1.45; }
.olist .no b, .olist .no .amt { color: var(--muted); }
.olist .no .amt { font-size: 16px; }

ol.fixes { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 0; }
@media (min-width: 960px) { ol.fixes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
ol.fixes li { counter-increment: f; display: grid; grid-template-columns: 52px 1fr; gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); align-content: start; }
@media (min-width: 960px) { ol.fixes li { grid-template-columns: 1fr; border-top: 2px solid var(--ink); padding-top: 16px; } ol.fixes li.prep { border-top-color: var(--line-2); } }
ol.fixes li::before { content: counter(f); grid-row: 1 / span 3; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 600; font-size: 48px; line-height: .9; color: var(--coral); }
ol.fixes li.prep::before { color: var(--line-2); }
@media (min-width: 960px) { ol.fixes li::before { grid-row: auto; font-size: 56px; margin-bottom: 8px; } }
ol.fixes b { font-size: 19px; line-height: 1.3; }
ol.fixes .when { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); }
ol.fixes li.prep .when { color: var(--muted); }
ol.fixes p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.nextbox { background: var(--teal); color: #fff; border-radius: 26px; padding: 26px 22px; display: grid; gap: 18px; }
@media (min-width: 960px) { .nextbox { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: 40px 44px; } }
.nextbox a { color: #fff; }
.nextbox a:hover { color: var(--sun-soft); }
.soon { display: inline-block; font-size: 13px; font-weight: 700; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 5px 12px; margin: 0 0 12px; }
.nextbox h2 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 34px; line-height: 1.05; }
.nextbox .lead { margin: 10px 0 0; color: #d8ebe6; font-size: 16px; }
ol.steps { margin: 0; padding-left: 22px; }
ol.steps > li { margin: 0 0 12px; }
ul.ask { margin: 6px 0 0; padding-left: 18px; }
.nextbox .fine { margin: 6px 0 0; font-size: 14px; color: #d8ebe6; }
details.src { margin-top: 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; }
details.src summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
details.src ul { padding-left: 18px; }
.restart { appearance: none; background: none; border: 0; padding: 0 4px; min-height: 44px; min-width: 44px; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Reading pages: same family, quieter than the tool ---------- */
.phead { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; overflow: hidden; }
.phead .wrap { display: grid; gap: 22px; padding-top: 18px; padding-bottom: 30px; }
@media (min-width: 960px) { .phead .wrap { padding-top: 34px; padding-bottom: 52px; } .phead .wrap.hascard { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 56px; align-items: end; } }
.pintro { max-width: 46em; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--coral); }
.phead h1 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 600; font-size: 36px; line-height: 1.04; letter-spacing: -.025em; }
@media (min-width: 960px) { .phead h1 { font-size: 58px; } }
.phead .lede { margin: 16px 0 0; font-size: 18px; color: var(--muted); max-width: 38em; }
@media (min-width: 960px) { .phead .lede { font-size: 20px; } }

/* Each kind of page gets its own head band */
body.program .phead { background: var(--teal-soft); border-bottom-color: #c6ddd4; }
body.program .kicker { color: var(--teal); }
body.prog-hth .phead { background: var(--sun-soft); border-bottom-color: var(--sun-line); }
body.county .phead { background: var(--sand); background-image: repeating-linear-gradient(180deg, transparent 0 22px, rgba(205,191,168,.35) 22px 23px); }
body.hub .phead { background: var(--teal); color: #fff; border-bottom: 0; }
body.hub .phead .lede, body.hub .crumbs ol, body.hub .crumbs a { color: #d8ebe6; }
body.hub .kicker { color: var(--sun); }
body.faqpg .phead, body.aboutpg .phead, body.privacypg .phead { background: var(--sand); border-bottom: 0; }
body.faqpg .phead h1, body.aboutpg .phead h1, body.privacypg .phead h1 { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
body.checklistpg .phead { background: var(--sun-soft); border-bottom-color: var(--sun-line); }
body.notfound .phead { background: linear-gradient(180deg, var(--sun-soft), var(--sand)); border-bottom: 0; }
body.notfound .phead .wrap { width: 100%; }

/* Fact cards beside the H1 */
.figcard, .limcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 1px 0 var(--line), 0 22px 44px -26px rgba(80,55,20,.3); }
.fk { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.figcard .fig { display: block; margin: 6px 0 4px; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -.03em; color: var(--teal); }
.figcard p { margin: 6px 0 0; }
.figcard .fine, .limcard .fine { font-size: 14px; color: var(--muted); }
.figcard.four ul { list-style: none; margin: 10px 0 0; padding: 0; color: var(--ink); }
.figcard.four li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px dashed var(--line-2); }
.figcard.four li b { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 22px; color: var(--teal); }
.figcard.four li span { font-size: 15px; color: var(--muted); text-align: right; }
.figcard.tally, .figcard.lost { background: transparent; border: 0; box-shadow: none; padding: 0; text-align: left; }
.figcard.tally .fig { font-size: 120px; color: var(--coral); }
@media (min-width: 960px) { .figcard.tally .fig { font-size: 180px; } .figcard.tally, .figcard.lost { text-align: right; } }
.figcard.lost .fig { font-size: 96px; color: var(--coral); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
@media (min-width: 960px) { .figcard.lost .fig { font-size: 200px; } }
@media (max-width: 959px) { .figcard.tally, .figcard.lost { display: none; } }
.limcard dl { margin: 10px 0 0; }
.limcard dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.limcard dt { font-size: 15px; color: var(--muted); }
.limcard dd { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 24px; white-space: nowrap; }

/* The article column */
.pbody { padding-top: 28px; }
.prose > :first-child { margin-top: 0; }
.prose { max-width: 760px; font-size: 18px; }
@media (min-width: 960px) { .prose { font-size: 19px; } }
.prose h2 { margin: 44px 0 10px; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 28px; line-height: 1.12; letter-spacing: -.015em; }
@media (min-width: 960px) { .prose h2 { font-size: 34px; } }
.prose h3 { margin: 26px 0 6px; font-size: 20px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 0 0 8px; }
.prose ul:not([class]) li::marker { color: var(--coral); }
.prose p.src { font-size: 15px; color: var(--muted); }
.prose .note { background: var(--sun-soft); border-left: 4px solid var(--sun); border-radius: 0 14px 14px 0; padding: 14px 18px; font-size: 17px; }
.srclist { font-size: 15px; color: var(--muted); padding-left: 20px; }
.srclist a { overflow-wrap: anywhere; display: inline-flex; min-height: 44px; align-items: center; }

.cta-box { position: relative; overflow: hidden; margin: 28px 0 8px; background: var(--ink); color: #fff; border-radius: 22px; padding: 22px 22px 22px; display: grid; gap: 14px; }
.cta-box .sun { width: 96px; height: 96px; right: -18px; bottom: -22px; }
.cta-box { padding-right: 22px; }
.cta-box p { margin: 0; font-size: 18px; max-width: 30em; position: relative; }
.cta-box .btn { justify-self: start; position: relative; }
@media (max-width: 599px) { .cta-box .btn { width: 100%; white-space: normal; text-align: center; } .cta-box .sun { display: none; } }
@media (min-width: 760px) { .cta-box { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px 30px; gap: 24px; } .cta-box .btn { margin-right: 76px; } }

.tablewrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tablewrap th, .tablewrap td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tablewrap thead th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sand); }
.tablewrap tbody th { font-weight: 700; }
.tablewrap td.num { font-variant-numeric: tabular-nums; }
.tablewrap a { display: inline-flex; align-items: center; min-height: 44px; }

ul.cards { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { ul.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
ul.cards li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 0; }
ul.cards a { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 22px; display: inline-flex; align-items: center; min-height: 44px; }
ul.cards p { margin: 0; font-size: 15px; color: var(--muted); }

dl.facts { margin: 0 0 18px; border-top: 2px solid var(--ink); }
dl.facts dt { font-weight: 700; padding-top: 14px; }
dl.facts dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }

ol.checklist { list-style: none; margin: 30px 0 18px; padding: 0; counter-reset: c; }
ol.checklist li { counter-increment: c; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
ol.checklist li::before { content: counter(c); grid-row: 1 / span 2; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 600; font-size: 44px; line-height: .95; color: var(--coral); }
ol.checklist h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 20px; letter-spacing: 0; }
ol.checklist p { margin: 0; color: var(--muted); font-size: 17px; }

.faq h2 { margin: 0; padding: 26px 0 8px; border-top: 1px solid var(--line); font-size: 24px; }
@media (min-width: 960px) { .faq h2 { font-size: 27px; } }
.faq { margin-top: 36px; }
.faq h2:first-child { border-top: 2px solid var(--ink); }
.faq p { color: var(--ink); }

body.notfound .prose ul { list-style: none; padding: 0; }
body.notfound .prose li a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 19px; }

footer.site ul.fsrc { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
footer.site ul.fsrc a { display: inline-flex; align-items: center; min-height: 44px; }
.tablewrap a { min-width: 44px; }
@media (max-width: 599px) { .tablewrap table { font-size: 14px; } .tablewrap th, .tablewrap td { padding: 10px 8px; } .tablewrap thead th { font-size: 11px; letter-spacing: .03em; } }
