/* Live from Grand Rapids — black & white, one red live mark. Serif headlines, Geist text. */
:root {
  --bg: #FFFFFF; --bg-2: #FAFAFA; --surface: #FFFFFF; --ink: #000000; --text: #1C1C1C; --muted: #737373;
  --line: rgba(0, 0, 0, .12); --line-warm: rgba(0, 0, 0, .12);
  --navy: #000000; --on-navy: #FFFFFF;
  --gold-1: #D4D4D4; --gold-2: #000000; --gold-soft: #F4F4F4;
  --fire: #000; --ems: #000; --police: #000; --traffic: #000; --hazard: #000; --other: #737373;
  --live: #E0231B; --ok: #1C1C1C;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px; --radius-sm: 10px;
  --shadow: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-2: #0A0A0A; --surface: #000000; --ink: #FFFFFF; --text: #E5E5E5; --muted: #8A8A8A;
    --line: rgba(255, 255, 255, .16); --line-warm: rgba(255, 255, 255, .16);
    --navy: #FFFFFF; --on-navy: #000000;
    --gold-1: #3A3A3A; --gold-2: #FFFFFF; --gold-soft: #111111;
    --fire: #fff; --ems: #fff; --police: #fff; --traffic: #fff; --hazard: #fff; --other: #8A8A8A;
    --live: #FF3B30; --ok: #E5E5E5;
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--ink); }

/* ---- masthead ---- */
.mast { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; gap: 14px; align-items: center; }
h1 { margin: 0; font: 400 34px/1 var(--serif); letter-spacing: -.035em; color: var(--ink); }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.dot { width: 34px; height: 34px; border-radius: 10px; flex: none; position: relative;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 14px -8px var(--gold-2); }
.dot::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--on-navy); opacity: .9; }
.dot.on::before { background: #fff; }
.dot.on::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 2px var(--bg); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.mast-right { display: flex; align-items: center; gap: 22px; }
.stats { display: flex; gap: 22px; font: 500 11px/1.2 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats b { display: block; font: 400 30px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; text-transform: none; margin-bottom: 2px; }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 15px;
  font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; text-decoration: none; }
.chip:hover { border-color: var(--line-warm); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip[aria-selected="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.mast-right .chip { background: var(--navy); color: var(--on-navy); border-color: var(--navy); font-weight: 600; padding: 11px 20px; }
.hood { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hood select, select { font: 500 14px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* ---- sections ---- */
.notice { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--gold-soft);
  border: 1px solid var(--line-warm); font-size: 15px; color: var(--ink); }
.section-h { font: 400 30px/1.1 var(--serif); letter-spacing: -.025em; color: var(--ink); margin: 36px 0 16px; text-transform: none; }
.section-h span { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.empty { color: var(--muted); font-size: 15px; }
.empty a { font-weight: 600; }

/* ---- incident cards ---- */
.card { --c: var(--other); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px 18px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.card[data-cat="fire"] { --c: var(--fire); } .card[data-cat="ems"] { --c: var(--ems); } .card[data-cat="police"] { --c: var(--police); }
.card[data-cat="traffic"] { --c: var(--traffic); } .card[data-cat="hazard"] { --c: var(--hazard); }
.card.done { background: var(--bg-2); box-shadow: none; }
.card.done .headline, .card.done .log div { color: var(--muted); }
.card.fresh { animation: enter .5s cubic-bezier(.2,.8,.2,1); }
.card.bump { animation: bump 1.4s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(-8px); } }
@keyframes bump { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-1) 60%, transparent); } }

.card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.cat { display: inline-flex; align-items: center; gap: 7px; font: 600 11.5px/1 var(--sans); color: var(--c); text-transform: uppercase; letter-spacing: .09em; }
.cat-ico { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, transparent); }
.cat-ico svg { width: 13px; height: 13px; }
.state { font: 600 10.5px/1 var(--sans); padding: 5px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.state.is-live { background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.state.is-hot { background: var(--live); color: #fff; }
.state.is-done { background: var(--line); color: var(--muted); }
.copy { margin-left: auto; font: 500 12.5px/1 var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.when { margin: 0; font: 500 12.5px var(--mono); color: var(--muted); letter-spacing: .01em; }
.headline { margin: 2px 0 0; font: 400 30px/1.05 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.where { margin: 2px 0 0; font-weight: 500; font-size: 15px; color: var(--text); }

.card .log { list-style: none; padding: 14px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.card .log li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--text); }
.card .log time { font: 500 12.5px var(--mono); color: var(--muted); padding-top: 2px; }
.card .log li:last-child div { color: var(--ink); font-weight: 500; }
.card .log .tx { color: var(--muted); font-style: italic; font-weight: 400; font-size: 13px; margin-top: 3px; }

.units { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; }
.units li { font: 500 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.units:empty { display: none; }

.foot { color: var(--muted); font-size: 13px; margin: 56px 0 40px; max-width: 640px; line-height: 1.6; }
.foot::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .stats { gap: 16px; } .stats b { font-size: 24px; }
  .headline { font-size: 26px; }
  .mast-right { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .card.fresh, .card.bump, .dot.on::after { animation: none; } }

input[type=range] { accent-color: var(--gold-2); }

/* ---- city police dispatch list ---- */
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-row .section-h { margin-bottom: 12px; }
.src { margin: 0; font-size: 13px; color: var(--muted); }
.calls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 22px; }
.call { --c: var(--police); display: grid; grid-template-columns: 78px minmax(160px, 1fr) minmax(180px, 1.3fr); gap: 14px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.call:last-child { border-bottom: 0; }
.call[data-cat="traffic"] { --c: var(--traffic); } .call[data-cat="ems"] { --c: var(--ems); }
.call time { font: 500 12.5px var(--mono); color: var(--muted); }
.ctype { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctype i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.ctype b { font: 600 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--live); padding: 4px 7px; border-radius: 999px; }
.cloc { color: var(--text); }
.call.fresh { animation: callin 2.4s ease-out; }
@keyframes callin { 0% { background: color-mix(in srgb, var(--gold-1) 30%, transparent); } }
.more { margin: 12px auto 0; display: block; font: 500 14px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.more:hover { border-color: var(--ink); }
@media (max-width: 600px) {
  .calls { padding: 4px 16px; }
  .call { grid-template-columns: 64px 1fr; row-gap: 2px; }
  .cloc { grid-column: 2; font-size: 14px; color: var(--muted); }
}

/* ================= minimal homepage ================= */
body.min .wrap { max-width: 760px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 8px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 400 30px/1 var(--serif); letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.top .dot { width: 26px; height: 26px; border-radius: 8px; }
.top .dot::before { inset: 9px; }
.pulse { font-size: 13px; color: var(--muted); }
.eyebrow { font: 600 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 40px 0 14px; }
.eyebrow span { color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: none; margin-left: 4px; }
.quiet { color: var(--muted); font-size: 15px; margin: 0; }

/* critical cards */
.crit .eyebrow { color: var(--live); margin-top: 28px; }
.crit-list { display: grid; gap: 14px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px 18px; position: relative; overflow: hidden; }
.ccard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--live); }
.ccard.bump { animation: bump 1.4s ease-out; }
.ccard-top { display: flex; align-items: center; gap: 10px; }
.tag { font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: #fff; background: var(--live); padding: 5px 9px; border-radius: 999px; }
.ccard .when { font: 500 12.5px var(--mono); color: var(--muted); }
.ccard .copy { margin-left: auto; }
.ctitle { margin: 12px 0 0; font: 400 38px/1.02 var(--serif); letter-spacing: -.035em; color: var(--ink); }
.cplace { margin: 6px 0 0; font-weight: 500; color: var(--text); }
.clatest { margin: 14px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink); }
.ccall .ctitle { font-size: 30px; }
.clog { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.clog summary, .earlier summary { cursor: pointer; list-style: none; }
.clog summary { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.clog summary::-webkit-details-marker, .earlier summary::-webkit-details-marker { display: none; }
.clog summary::after, .earlier summary::after { content: " +"; }
.clog[open] summary::after, .earlier[open] summary::after { content: " −"; }
.ccard .log, .rowlog .log { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; }
.ccard .log li, .rowlog .log li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; }
.ccard .log time, .rowlog .log time { font: 500 12.5px var(--mono); color: var(--muted); padding-top: 2px; }

/* compact rows */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.rowbtn { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 3px; padding: 14px 2px; }
.rowbtn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 8px; }
.rows time { font: 500 12.5px var(--mono); color: var(--muted); padding-top: 3px; }
.rt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rt b { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.rp { color: var(--muted); font-size: 14px; }
.rl { grid-column: 2; color: var(--text); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inc.open .rl { white-space: normal; }
.rowlog { display: none; padding: 0 2px 16px 78px; }
.inc.open .rowlog { display: block; }
.rowlog .copy { margin-top: 12px; }
.inc.done .rt b { color: var(--text); font-weight: 500; }
.call { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; padding: 12px 2px; }
.call.fresh { animation: callin 2.4s ease-out; }
.earlier summary { margin: 40px 0 14px; }
body.min .more { margin-top: 14px; }
body.min .foot { margin-top: 64px; }

@media (max-width: 600px) {
  .top { padding-top: 20px; }
  .mark { font-size: 25px; }
  .ctitle { font-size: 32px; }
  .ccard { padding: 18px 18px 16px; }
  .rowbtn, .call { grid-template-columns: 56px 1fr; column-gap: 10px; }
  .rowlog { padding-left: 0; }
  .ccard-top { flex-wrap: wrap; }
}

/* ---- header tools: list/map + alerts ---- */
.tools { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { all: unset; cursor: pointer; font: 500 13.5px/1 var(--sans); color: var(--muted); padding: 8px 14px; border-radius: 999px; }
.seg button[aria-selected="true"] { background: var(--navy); color: var(--on-navy); }
.bell { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font: 600 13.5px/1 var(--sans); color: var(--on-navy);
  background: var(--navy); border: 1px solid var(--navy); border-radius: 999px; padding: 10px 15px; }
.bell svg { width: 15px; height: 15px; }
.bell.on { background: transparent; color: var(--ink); border-color: var(--line); }
.bell.on svg { color: var(--gold-2); }
body.min .pulse { margin: 2px 0 0; }

/* ---- map ---- */
.mapwrap { max-width: 1180px; margin: 18px auto 0; padding: 0 20px; position: relative; }
#map { height: calc(100vh - 150px); min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.maplegend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); padding: 12px 4px 30px; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg.crit { background: var(--live); } .lg.act { background: var(--navy); } .lg.pol { background: var(--police); } .lg.old { background: var(--muted); opacity: .5; }
.pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; padding: 0; }
.pin-act { background: var(--navy); } .pin-pol { background: var(--police); width: 11px; height: 11px; }
.pin-old { background: #8b8f96; opacity: .55; width: 10px; height: 10px; }
.pin-crit { background: var(--live); width: 18px; height: 18px; position: relative; }
.pin-crit::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--live); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.maplibregl-popup-content { background: var(--surface) !important; color: var(--text); border-radius: 14px !important; box-shadow: var(--shadow) !important; padding: 12px 14px !important; font-family: var(--sans); }
.maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.pop { display: grid; gap: 3px; }
.pop-tag { font: 600 10px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pop b { font: 400 21px/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.pop span:not(.pop-tag) { font-size: 13px; color: var(--text); }
.pop p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink); }
.pop time { font: 500 11.5px var(--mono); color: var(--muted); margin-top: 2px; }

/* ---- alerts sheet ---- */
.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--line); border-radius: 26px; padding: 0;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.sheet::backdrop { background: rgba(18, 22, 26, .45); backdrop-filter: blur(3px); }
.sheet form { padding: 22px 24px 20px; display: grid; gap: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font: 400 30px/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.x { all: unset; cursor: pointer; font-size: 26px; line-height: 1; color: var(--muted); padding: 4px 8px; }
.sheet fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.sheet legend { font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.opt { display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; color: var(--ink); cursor: pointer; flex-wrap: wrap; }
.opt small { flex-basis: 100%; padding-left: 26px; color: var(--muted); font-size: 13px; }
.opt input, .hoodgrid input { accent-color: var(--navy); }
.sub { padding: 2px 0 6px 26px; }
.hoodgrid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; padding: 2px; }
.hoodgrid label { cursor: pointer; }
.hoodgrid input { position: absolute; opacity: 0; pointer-events: none; }
.hoodgrid span { display: inline-block; font-size: 13px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.hoodgrid input:checked + span { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.hoodgrid input:focus-visible + span { outline: 2px solid var(--gold-2); }
.addr { display: flex; gap: 8px; }
.addr input { flex: 1; font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); min-width: 0; }
.addr button, .sheet .ghost { font: 500 14px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.found { margin: 8px 0; font-size: 13.5px; color: var(--ok); }
.radius { font-size: 14px; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.sheet-note { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--line-warm); font-size: 14px; color: var(--ink); }
.sheet-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--ok); }
.sheet-msg[data-bad="1"] { color: var(--live); }
.sheet-actions { display: flex; gap: 10px; }
.sheet .primary { font: 600 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px; border: 0; background: var(--navy); color: var(--on-navy); cursor: pointer; }
.sheet .primary:disabled { opacity: .45; cursor: default; }

@media (max-width: 600px) {
  .top { gap: 10px; }
  .tools { width: 100%; justify-content: space-between; }
  .mapwrap { padding: 0 10px; }
  #map { height: calc(100vh - 190px); border-radius: 18px; }
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 88vh; }
}

.pulse .paused { color: var(--live); font-weight: 500; }

.feed .rl2, .radio .rl2 { color: var(--text); font-size: 14.5px; line-height: 1.45; }
.livepip { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-left: 6px; vertical-align: 1px; animation: pulse 1.8s ease-in-out infinite; }
.aibar { margin-top: 16px; }

/* combined feed labels */
.src-tag { font: 600 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 999px; align-self: center; }
.src-tag.police { background: var(--navy); color: var(--on-navy); }
.src-tag.radio { background: color-mix(in srgb, var(--gold-1) 30%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--gold-2) 55%, transparent); }

/* grouped event cards */
.feed-list { display: grid; gap: 12px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; position: relative; }
.fcard.bump { animation: bump 1.4s ease-out; }
.fcard.done { background: transparent; }
.ftop, .ccard-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.srcs { display: inline-flex; gap: 6px; }
.fwhen { font: 500 12.5px var(--mono); color: var(--ink); }
.fcat { font: 500 12px var(--sans); color: var(--muted); }
.fago { font: 500 12px var(--sans); color: var(--muted); }
.fcard .copy { margin-left: auto; }
.ftitle { margin: 10px 0 0; font: 400 26px/1.08 var(--serif); letter-spacing: -.025em; color: var(--ink); }
.fcard.done .ftitle { color: var(--text); }
.fplace { margin: 4px 0 0; font-weight: 500; color: var(--text); font-size: 15px; }
.funits { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.funits:empty { display: none; }
.flog { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.flog li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text); }
.flog li.mixed { grid-template-columns: 44px 58px 1fr; }
.flog li .src-tag { justify-self: start; align-self: start; margin-top: 1px; }
.flog time { font: 500 12.5px var(--mono); color: var(--muted); padding-top: 2px; }
.flog li:last-child div { color: var(--ink); font-weight: 500; }
.fcard.done .flog li:last-child div { color: var(--text); font-weight: 400; }
.fmore { all: unset; cursor: pointer; margin-top: 10px; font-size: 13px; color: var(--muted); text-decoration: underline; }
@media (max-width: 560px) { .fcard { padding: 16px; } .ftitle { font-size: 23px; } .flog li.mixed { grid-template-columns: 40px 1fr; } .flog li.mixed .src-tag { grid-column: 2; } .flog li.mixed div { grid-column: 2; } }
.fcard.small { padding: 12px 20px; }
.fcard.small .ftitle { font-size: 20px; margin-top: 6px; }
.fcard.small .fplace { font-size: 14px; }
.fcard.small .copy { display: none; }
.reclink { font: 500 13.5px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.reclink:hover { border-color: var(--gold-2); }

/* ---- minimal black & white overrides ---- */
.dot, .top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: none; flex: none; animation: blink 1.2s steps(1, end) infinite; }
.dot::before, .dot::after, .dot.on::before, .dot.on::after { content: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot, .top .dot { animation: none; } }
.mark { gap: 10px; }
.fcard, .ccard, .card, .calls, #map, .tile { box-shadow: none; }
.ccard { border-color: var(--ink); }
.ccard::before { height: 2px; }
.fcard.done { border-style: dashed; }
.src-tag.police { background: var(--ink); color: var(--bg); }
.src-tag.radio { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 3px 6px; }
.tag { background: var(--live); }
.reclink, .seg, .bell, .chip { box-shadow: none; }
.foot::before { background: var(--ink); height: 2px; }
.notice { background: var(--bg-2); border: 1px solid var(--line); }
@keyframes callin { 0% { background: var(--gold-soft); } }
@keyframes bump { 0% { box-shadow: 0 0 0 2px var(--ink); } }
.pin-pol, .lg.pol { background: var(--bg); border: 2px solid var(--ink); }
.pin-act, .lg.act { background: var(--ink); }
#map .maplibregl-canvas { filter: grayscale(1); }
.livepip { display: none; }
.ccard::before { content: none; }

/* related news */
.fnews { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fnews h4 { margin: 0 0 8px; font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fnews ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fnews a { color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.35; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fnews span { display: block; margin-top: 2px; font: 500 12px var(--mono); color: var(--muted); }
.maplibregl-popup { z-index: 5000; }
.maplibregl-popup-content { border: 1px solid var(--line); }

/* larger, easier-to-tap map pins */
.pin { width: 18px; height: 18px; border-width: 2.5px; position: relative; transition: transform .12s; }
.pin::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }   /* invisible 42px tap target */
.pin:hover, .pin:focus-visible { transform: scale(1.25); outline: none; }
.pin-pol { width: 16px; height: 16px; }
.pin-old { width: 14px; height: 14px; }
.pin-crit { width: 24px; height: 24px; }
.pin-crit::after { inset: -9px; }
.lg { width: 12px; height: 12px; }
.pop .popgo { all: unset; cursor: pointer; margin-top: 8px; font: 500 13px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* iPhone alert instructions */
.ios-help { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--ink); border-radius: var(--radius-sm); }
.ios-lead { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.ios-steps { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.ios-ico { width: 18px; height: 18px; vertical-align: -4px; color: var(--ink); }
.ios-foot { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.sheet.ios-install fieldset, .sheet.ios-install .sheet-actions { opacity: .4; pointer-events: none; }

/* incident-type icon pins */
.pin, .pin-act, .pin-pol, .pin-old, .pin-crit { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 2px solid var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pin svg { width: 15px; height: 15px; display: block; pointer-events: none; }
.pin-act { background: var(--ink); color: var(--bg); }
.pin-old { background: #9A9A9A; color: #fff; opacity: .8; }
.pin-crit { background: var(--live); color: #fff; width: 32px; height: 32px; }
.pin-crit svg { width: 18px; height: 18px; }
.pin-crit::after { inset: -8px; }
.maplegend { flex-wrap: wrap; row-gap: 6px; }
.maplegend .lgnote { font-weight: 600; color: var(--ink); }
.maplegend .lgsep { width: 1px; height: 14px; background: var(--line); }
.maplegend .lgi { display: inline-flex; align-items: center; gap: 5px; }
.maplegend .lgi svg { width: 14px; height: 14px; color: var(--ink); }
.lg.old { background: #9A9A9A; opacity: .8; }

/* pull to refresh */
html, body { overscroll-behavior-y: contain; }
.ptr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 0; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.ptr-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--ink); font: 500 13px var(--sans); color: var(--ink); white-space: nowrap;
  transform: translateY(calc(var(--d, 0px) - 52px)); opacity: var(--p, 0); transition: opacity .15s; }
.ptr:not(.show) .ptr-pill { transition: transform .25s ease, opacity .2s; }
.ptr-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); rotate: calc(var(--p, 0) * 300deg); }
.ptr.ready .ptr-spin { border-color: var(--ink); }
.ptr.busy .ptr-spin { border-color: var(--line); border-top-color: var(--ink); animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .ptr.busy .ptr-spin { animation-duration: 2s; } }
