/* The Daily Check front page. Same civic-signage family as the finder: Bitter slab + Atkinson Hyperlegible,
   map-ink blue, highlighter yellow. The one loud thing is the inspection-tag idea: punch holes that fill and a rubber stamp. */
:root {
  color-scheme: light;
  --paper: #f3f6f5; --card: #ffffff; --ink: #16242c; --soft: #4b5d66; --rule: #cfdad8;
  --blue: #1f5a7a; --blue-ink: #ffffff; --mark: #ffd84a; --mark-ink: #2b2300;
  --ok: #1d7a4a; --ok-bg: #e2f3e9; --warn: #8a5a00; --warn-bg: #fdf0d4; --stop: #9b2c2c; --stop-bg: #fbe4e4;
  --night: #12232d; --night-ink: #f4f8f9;
  --display: "Bitter", "Rockwell", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --base: 19px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f181d; --card: #172329; --ink: #e9f0f2; --soft: #a7b8bf; --rule: #2c3c44;
    --blue: #6fb3d6; --blue-ink: #0b1a22; --ok: #7fd3a4; --ok-bg: #17372a; --warn: #f3c26b; --warn-bg: #3a2d12;
    --stop: #f29a9a; --stop-bg: #3d1d1d; --night: #0a1318;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f181d; --card: #172329; --ink: #e9f0f2; --soft: #a7b8bf; --rule: #2c3c44;
  --blue: #6fb3d6; --blue-ink: #0b1a22; --ok: #7fd3a4; --ok-bg: #17372a; --warn: #f3c26b; --warn-bg: #3a2d12;
  --stop: #f29a9a; --stop-bg: #3d1d1d; --night: #0a1318;
}
:root.big { --base: 23px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--base); line-height: 1.5;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1080px; margin: 0 auto; padding-block: 8px 48px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: 1.55em; font-weight: 800; }
h3 { font-size: 1.15em; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 6px; }
.notgov { font-size: .8em; color: var(--soft); padding-block: 8px 2px; }
.sub { color: var(--soft); margin-top: 4px; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 6px 14px; border-bottom: 3px solid var(--ink); }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.5em; color: var(--ink); text-decoration: none; }
.brand span { background: linear-gradient(transparent 58%, var(--mark) 58%); padding: 0 3px; }
.tools { display: flex; gap: 8px; }
.tools button { background: transparent; border: 2px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: .8em; font-weight: 700; }
.tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: var(--blue-ink); border: 2px solid var(--blue); border-radius: 12px; padding: 12px 20px; font-weight: 700; text-decoration: none; text-align: center; min-height: 52px; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.yes { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.no { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: .88em; }
.btn:active { transform: translateY(1px); }

/* ---------- hero + deck ---------- */
.hero { display: grid; gap: 22px; padding-block: 26px 10px; }
.today { color: var(--soft); font-weight: 700; }
.hero h1 { font-size: clamp(1.9em, 5.2vw, 3em); font-weight: 800; margin-top: 6px; }
.lede { margin-top: 12px; max-width: 34em; }
.punch { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.punch i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 700; transition: background .25s, transform .25s; }
.punch i.done { background: var(--mark); color: var(--mark-ink); transform: scale(1.08); }
.punch i.now { box-shadow: 0 0 0 4px var(--mark); }
.punch b { margin-left: 6px; font-size: .9em; }

.deck { display: grid; gap: 10px; align-content: start; }
.check { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 22px; display: grid; gap: 14px; box-shadow: 6px 6px 0 var(--ink); }
.check .kind { font-weight: 700; color: var(--soft); font-size: .85em; display: flex; gap: 8px; align-items: center; }
.kind .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex: none; }
.t-recall .dot, .t-scam-watch .dot { background: var(--stop); }
.t-deadline .dot, .t-disaster .dot { background: var(--mark); border: 2px solid var(--ink); }
.t-money-amount .dot, .t-new-program .dot, .t-local-panhandle .dot { background: var(--ok); }
.check h2 { font-size: clamp(1.35em, 3.6vw, 1.9em); }
.check .fact { color: var(--soft); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answers .btn { font-size: 1.1em; min-height: 62px; }
.result { border-top: 2px dashed var(--rule); padding-top: 14px; display: grid; gap: 12px; animation: drop .28s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.result ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.names { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.names button { width: 100%; text-align: left; background: var(--paper); border: 2px solid var(--rule); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 52px; }
.names button small { color: var(--soft); white-space: nowrap; }
.names button.hit { background: var(--stop-bg); border-color: var(--stop); }
.names .hitnote { background: var(--stop-bg); border-left: 6px solid var(--stop); border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.bigdate { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bigdate strong { font-family: var(--display); font-size: 1.7em; font-weight: 800; background: linear-gradient(transparent 58%, var(--mark) 58%); }
.src { font-size: .8em; color: var(--soft); overflow-wrap: anywhere; }
.src .ok { display: inline-block; background: var(--ok-bg); color: var(--ok); font-weight: 700; border-radius: 999px; padding: 1px 9px; margin-right: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.done-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--rule); border-radius: 14px; padding: 10px 14px; min-height: 52px; }
.done-row .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 15px; }
.done-row span.t { flex: 1; min-width: 0; }
.done-row small { color: var(--soft); white-space: nowrap; }

.finish { background: var(--night); color: var(--night-ink); border-radius: 18px; padding: 26px 22px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.finish h2 { color: var(--night-ink); }
.finish .btn { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.finish .btn.ghost { background: transparent; color: var(--night-ink); border-color: var(--night-ink); }
.stamp { justify-self: start; font-family: var(--display); font-weight: 800; font-size: 1.25em; letter-spacing: .04em; color: var(--mark); border: 4px double var(--mark); border-radius: 10px; padding: 6px 16px; transform: rotate(-5deg); animation: press .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes press { from { opacity: 0; transform: rotate(-14deg) scale(2.2); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }

/* ---------- story ---------- */
.story-sec, .near, .dates, .doors { margin-top: 56px; }
.story-sec { display: grid; gap: 20px; }
.story-copy { display: grid; gap: 12px; align-content: start; }
.story-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.story { position: relative; background: var(--night); color: var(--night-ink); border-radius: 22px; aspect-ratio: 9 / 14; width: 100%; max-width: 380px; justify-self: center; padding: 22px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; user-select: none; cursor: pointer; overflow: hidden; }
.story .bars { display: flex; gap: 5px; }
.story .bars i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.story .bars i b { display: block; height: 100%; width: 0; background: var(--mark); }
.story .bars i.past b { width: 100%; }
.story .bars i.live b { animation: fill var(--beat, 7s) linear forwards; }
.story.paused .bars i.live b { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.story .beat { align-self: center; display: grid; gap: 14px; }
.story .beat .big { font-family: var(--display); font-weight: 800; font-size: clamp(1.7em, 7vw, 2.3em); line-height: 1.08; text-wrap: balance; }
.story .beat .big em { font-style: normal; background: linear-gradient(transparent 60%, rgba(255, 216, 74, .9) 60%); color: #fff; }
.story .beat .say { font-size: 1.02em; color: #d5e1e5; }
.story .beat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.story .beat li { border: 2px solid var(--mark); color: var(--mark); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .92em; }
.story .hint { font-size: .8em; color: #a9bcc3; display: flex; justify-content: space-between; }
.video { margin-top: 8px; }
.video button { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: var(--night) center / cover; color: #fff; display: grid; place-items: end start; padding: 14px; text-align: left; font-weight: 700; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }

/* ---------- near you ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips button { background: var(--card); border: 2px solid var(--rule); border-radius: 999px; padding: 8px 16px; font-weight: 700; min-height: 46px; }
.chips button[aria-pressed="true"] { background: var(--mark); border-color: var(--ink); color: var(--mark-ink); }
.near-list { display: grid; gap: 10px; margin-top: 16px; }
.item { background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--blue); border-radius: 12px; }
.item > button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 56px; }
.item > button b { font-weight: 700; }
.item > button .pm { font-family: var(--display); font-size: 1.4em; font-weight: 800; flex: none; width: 1em; text-align: center; }
.item .more { padding: 0 16px 16px; display: grid; gap: 10px; }
.empty { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 14px 16px; font-weight: 700; }

/* ---------- dates ---------- */
.dates-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.dates-list li { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.cal { width: 74px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; text-align: center; background: var(--card); flex: none; }
.cal span { display: block; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .75em; padding: 2px 0; }
.cal strong { display: block; font-family: var(--display); font-size: 1.7em; font-weight: 800; line-height: 1.25; }
.dates-list .what { display: grid; gap: 6px; min-width: 0; }
.left { display: inline-block; font-weight: 700; border-radius: 999px; padding: 1px 10px; font-size: .82em; background: var(--ok-bg); color: var(--ok); }
.left.soon { background: var(--warn-bg); color: var(--warn); }
.left.now { background: var(--stop-bg); color: var(--stop); }

/* ---------- doors + foot ---------- */
.doors { display: grid; gap: 14px; }
.door { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 22px; display: grid; gap: 10px; text-decoration: none; color: var(--ink); align-content: start; }
.door.alt { background: transparent; }
.door .btn { justify-self: start; margin-top: 4px; }
.foot { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .85em; color: var(--soft); display: grid; gap: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 700; max-width: calc(100vw - 32px); z-index: 10; }

@media (min-width: 880px) {
  .hero { grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; padding-top: 40px; }
  .hero-text { position: sticky; top: 24px; }
  .story-sec { grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
  .doors { grid-template-columns: 1fr 1fr; }
  .near-list { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 640px) { .hero { padding-top: 16px; gap: 16px; } .hero h1 { font-size: 1.45em; } .lede { display: none; } .punch { margin-top: 12px; } }
@media (max-width: 420px) { .check { padding: 18px 16px; box-shadow: 4px 4px 0 var(--ink); } .answers { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } .story .bars i.live b { width: 100%; } }
@media print {
  body { background: #fff; font-size: 12pt; }
  .tools, .story-sec, .chips, .answers, .row, .toast, .doors .btn, .punch { display: none !important; }
  .check, .finish { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .finish { background: #fff; color: #000; }
}

.sitenav { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px 4px; }
.sitenav a { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 2px solid var(--rule); border-radius: 999px; font-weight: 700; font-size: .9em; color: var(--ink); text-decoration: none; background: var(--card); }
.sitenav a:hover { border-color: var(--ink); }
.sitenav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media print { .sitenav { display: none !important; } }
.hubs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 16px; border-top: 3px solid var(--ink); }
.hubs a { font-weight: 700; padding: 8px 14px; border: 2px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); min-height: 44px; display: inline-flex; align-items: center; }
.hubs a:hover { border-color: var(--ink); }
.hubs + .foot { margin-top: 16px; }
@media print { .hubs { display: none !important; } }
