/* Home page (2026-11-18). Phone first; uses only the tokens in site.css. No animation. */
.home { max-width: 760px; margin: 0 auto; padding: var(--sp-4) var(--sp-4) var(--sp-6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.home > * { min-width: 0; }
.home .fine { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.home .linkbtn { background: none; border: 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 4px; min-height: 44px; }
.home .muted { color: var(--muted); }

/* Location bar */
.locbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.loc-now { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 44px; }
.loc-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.loc-row { display: flex; gap: 8px; }
.loc-row input { flex: 1; min-width: 0; min-height: 48px; font-size: 1.1rem; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.loc-row .btn { min-height: 48px; white-space: nowrap; }

/* EPI hero */
.epi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow); }
/* 2026-11-22: the number stays full strength when one source is late; the note says which (was faded to 55%). */
.epi-k { margin: 0; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.epi-hint { margin: 6px 0 0; color: var(--muted); }
.epi-top { display: flex; gap: var(--sp-4); align-items: center; }
.epi-num { font-size: clamp(3.6rem, 18vw, 5.2rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2.1ch; text-align: center; color: var(--band, var(--text)); border-bottom: 6px solid var(--band, var(--line)); padding-bottom: 4px; } /* the number carries its level's colour */
.epi-band { margin: 2px 0 2px; font-size: var(--fs-xl); font-weight: 700; }
.epi-line { margin: 0; font-size: var(--fs-md); }
.epi-sub { margin: var(--sp-4) 0 6px; font-weight: 600; font-size: var(--fs-sm); }
.epi-degraded { margin: 0 0 var(--sp-3); padding-left: 10px; border-left: 2px solid var(--warn-line); color: var(--muted); font-size: var(--fs-sm); } /* 2026-11-22: a quiet line under the score, not a warning box above it */

.epi-scale { position: relative; margin: var(--sp-4) 0 var(--sp-2); padding-top: 10px; }
.sc-bar { display: flex; gap: 2px; }
.sc-seg { position: relative; height: 10px; background: var(--c); opacity: .35; border-radius: 3px; }
.sc-seg.on { opacity: 1; }
.sc-seg i, .sc-seg em { position: absolute; left: 0; font-style: normal; white-space: nowrap; color: var(--muted); }
.sc-seg i { top: 14px; font-size: .72rem; }
.sc-seg em { top: 28px; font-size: .66rem; opacity: .85; }
.sc-seg.on i { color: var(--text); font-weight: 700; }
.sc-mark { position: absolute; top: 2px; width: 3px; height: 26px; margin-left: -1.5px; background: var(--text); border-radius: 2px; }
.epi-scale { margin-bottom: 40px; }
@media (max-width: 420px) { .sc-seg em { display: none; } .sc-seg i { font-size: .66rem; } .epi-scale { margin-bottom: 30px; } }

.epi-drivers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.epi-drivers li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.dr-t { font-weight: 600; }
.dr-m { grid-column: 1; font-size: var(--fs-xs); color: var(--muted); }
.dr-n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; }
.epi-trend { margin: var(--sp-3) 0 4px; font-size: var(--fs-sm); }
.epi-conf { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.epi-why { margin-top: var(--sp-3); border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.epi-why summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.epi-why summary::-webkit-details-marker { display: none; }
.epi-why summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .16s ease-out; flex: 0 0 auto; }
.epi-why[open] summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .epi-why summary::before { transition: none; } }
.why-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.why-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.why-cats ul, .epi-why > div > ul { margin: 4px 0 0; padding-left: 1.1rem; font-size: var(--fs-sm); }

/* Cards */
.today h2 { font-size: var(--fs-lg); margin: 0 0 var(--sp-2); text-transform: none; letter-spacing: 0; }
.today h2::after { display: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.card-day { display: grid; grid-template-columns: 34px 1fr; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.card-day.t-weather { border-left-color: var(--c-weather); } .card-day.t-power { border-left-color: var(--c-out); } .card-day.t-travel { border-left-color: var(--c-roads); }
.card-day.t-services { border-left-color: var(--c-internet); } .card-day.t-health { border-left-color: var(--c-health); } .card-day.t-cyber { border-left-color: var(--c-cyber); }
.card-day.t-safety { border-left-color: var(--c-shelter); } .card-day.t-quake { border-left-color: var(--c-quake); } .card-day.calm { border-left-color: var(--ok); }
.cd-ic { font-size: 1.35rem; line-height: 1.2; text-align: center; }
.cd-body p { margin: 0; }
.cd-t { font-weight: 600; overflow-wrap: anywhere; }
.cd-until { font-weight: 400; color: var(--muted); }
.cd-m { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px !important; overflow-wrap: anywhere; }
.cd-conf { color: var(--text); }
.cd-w { font-size: var(--fs-sm); margin-top: 6px !important; }
.beach { margin-top: var(--sp-2); }
.beach summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--fs-sm); color: var(--link); }
.beach .cards { margin-top: var(--sp-2); }

/* Actions */
.acts { display: grid; gap: var(--sp-2); }
.act { display: flex; gap: 12px; align-items: center; padding: 14px 16px; min-height: 64px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.act:hover, .act:focus-visible { border-color: var(--accent); }
.act b { display: block; font-size: var(--fs-lg); }
.act small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.act-ic { font-size: 1.6rem; width: 34px; text-align: center; }
.more-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.more-links a { min-height: 44px; display: inline-flex; align-items: center; }
.alert-signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.alert-signup label { display: block; margin-bottom: 6px; }
@media (min-width: 720px) { .acts { grid-template-columns: repeat(3, 1fr); } .act { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .home * { transition: none !important; animation: none !important; } }

/* ── First visit (2026-11-21) ── */
.front h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.15; margin: 8px 0 10px; }
.front-lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0 0 16px; }
.front-zip { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.front-zip label { font-weight: 600; display: block; margin-bottom: 6px; }
.front-help { margin: 8px 0 0; font-size: .92rem; }
.btn-big { width: 100%; font-size: 1.15rem; min-height: 56px; margin: 4px 0 12px; }
.proof { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.proof b { color: var(--text); }
.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 14px; }
.feat-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.feat-card:hover { border-color: var(--accent); }
.feat-card span { font-size: 1.4rem; } .feat-card small { color: var(--muted); }
.godark-card, .plan-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid #f0a03e; border-radius: 12px; color: var(--text); text-decoration: none; }
.godark-card > span:first-child, .plan-card > span:first-child { font-size: 1.6rem; }
.godark-card small, .plan-card small { display: block; color: var(--muted); }
.godark-card.prominent { border: 2px solid #f0a03e; background: #2a2114; }
.plan-card { border-left-color: var(--btn); }
.plan-card .pc-go { margin-left: auto; white-space: nowrap; background: var(--btn); color: var(--accent-ink); font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.front-src { margin-top: 10px; }
/* ── Returning ── */
.epi-info { font-size: .78rem; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.epi-context { margin: 10px 0 0; } .epi-context ul { margin: 4px 0 0; padding-left: 1.1rem; font-size: .9rem; color: var(--muted); }
.epi-context li { margin: 2px 0; }
.gearnow { margin: 0 0 14px; } .gearnow h2 { font-size: 1.15rem; }
.gn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gn-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.gn-list li b { flex: 1 1 100%; } .gn-why { flex: 1 1 260px; color: var(--muted); font-size: .9rem; }
.home-slot { margin: 0 0 14px; }
.guide-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 12px; }
.epi-dialog { max-width: min(640px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0; }
.epi-dialog::backdrop { background: rgba(0,0,0,.6); }
.epi-dlg-body { padding: 18px 20px; max-height: 80vh; overflow: auto; } .epi-dlg-body ol { padding-left: 1.2rem; }
@media (max-width: 520px) { .front-zip .loc-row, .alert-signup .loc-row { flex-wrap: wrap; } #frontAlertZip { max-width: 96px; } .plan-card { flex-wrap: wrap; } .plan-card .pc-go { margin-left: 0; } }

/* ── 2026-11-21 redesign: fewer words, chips, bigger wordmark ── */
.hero-brand { display: flex; align-items: center; gap: 14px; font-size: clamp(2.6rem, 11vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0 14px; color: #fff; }
.hero-brand .brand-mark { width: 1em; height: 1em; border-radius: .26em; }
.front h1 { font-size: clamp(1.5rem, 5.6vw, 2.2rem); }
.front-lede { font-size: 1.05rem; margin-bottom: 14px; }
.chips-h { font-size: 1.05rem; margin: 18px 0 8px; color: var(--muted); font-weight: 600; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 16px; }
.chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.chip:hover { border-color: var(--accent); }
.chip-ic { grid-row: 1 / span 2; font-size: 1.35rem; }
.chip-l { font-weight: 700; font-size: .92rem; }
.chip-v { color: var(--muted); font-size: .82rem; }
.chip.down .chip-v { color: #f5a54a; }
.front-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 16px; }
.epi-retry { margin: 10px 0 0; display: flex; gap: 12px; align-items: center; }
#dash > .btn-big { margin: 0 0 12px; }
.proof { margin: 0 0 6px; }

/* 2026-11-22: on phones the header already shows the wordmark, so the hero repeat is desktop-only. */
@media (max-width: 760px) { .hero-brand { display: none; } }
/* "In the news" strip (2026-11-23): links to the news pages, shown to everyone under the front or dashboard. */
.news-strip { margin: 22px 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm, 10px); background: var(--surface); }
.news-strip h2 { margin: 0 0 6px; font-size: 1rem; }
.news-strip ul { margin: 0; padding-left: 1.1em; }
.news-strip li { margin: 4px 0; }
.news-strip a { display: inline-block; padding: 4px 0; }
