/* mononews — status system, story rows, front page, district map, signup, listings, search. */

/* ---------- Status pills: colour + text label + shape glyph ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 650 0.78rem/1 var(--sans); letter-spacing: 0.01em; padding: 5px 9px 5px 7px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, currentColor 45%, transparent);
}
.pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none; box-sizing: border-box; }
.s-confirmed { color: var(--ok); background: var(--ok-bg); }
.s-confirmed::before { background: currentColor; }
.s-disputed { color: var(--warn); background: var(--warn-bg); }
.s-disputed::before { border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.s-unverified { color: var(--unk); background: var(--unk-bg); }
.s-unverified::before { border: 1.5px dashed currentColor; }
.s-retracted { color: var(--bad); background: var(--bad-bg); }
.s-retracted::before { border: 1.5px solid currentColor; background: linear-gradient(135deg, transparent 42%, currentColor 42% 58%, transparent 58%); }
.diff-status { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.arrow { color: var(--muted); font-family: var(--mono); }

/* ---------- Evidence meter: segment widths are proportional; patterns repeat the status cue ---------- */
.meter { display: flex; gap: 2px; height: 6px; width: 100%; max-width: 9rem; border-radius: 3px; overflow: hidden; background: var(--rule); }
.meter-empty { background: repeating-linear-gradient(90deg, var(--rule) 0 4px, transparent 4px 7px); }
.meter .seg { display: block; min-width: 6px; height: 100%; transform-origin: 0 50%; }
.meter .s-confirmed { background: var(--ok-bar); }
.meter .s-disputed { background: repeating-linear-gradient(135deg, var(--warn-bar) 0 3px, color-mix(in oklch, var(--warn-bar) 45%, var(--bg)) 3px 5px); }
.meter .s-unverified { background: repeating-linear-gradient(90deg, var(--unk-bar) 0 3px, color-mix(in oklch, var(--unk-bar) 45%, var(--bg)) 3px 5px); }
.meter .s-retracted { background: repeating-linear-gradient(45deg, var(--bad-bar) 0 2px, color-mix(in oklch, var(--bad-bar) 40%, var(--bg)) 2px 4px); }
.meter-block { display: grid; gap: 10px; max-width: 34rem; }
.meter-block .meter { max-width: none; height: 12px; border-radius: 4px; gap: 3px; }
.meter-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 0.88rem; color: var(--ink-2); }
.meter-legend li { display: inline-flex; align-items: center; gap: 7px; }
.meter-legend li.zero { color: var(--muted); }
.meter-legend b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.meter-legend .zero b { color: var(--muted); }
.key { width: 14px; height: 10px; border-radius: 2px; }
.key.s-confirmed { background: var(--ok-bar); }
.key.s-disputed { background: repeating-linear-gradient(135deg, var(--warn-bar) 0 3px, color-mix(in oklch, var(--warn-bar) 45%, var(--bg)) 3px 5px); }
.key.s-unverified { background: repeating-linear-gradient(90deg, var(--unk-bar) 0 3px, color-mix(in oklch, var(--unk-bar) 45%, var(--bg)) 3px 5px); }
.key.s-retracted { background: repeating-linear-gradient(45deg, var(--bad-bar) 0 2px, color-mix(in oklch, var(--bad-bar) 40%, var(--bg)) 2px 4px); }

/* ---------- Story rows ---------- */
.section-h { font: 720 1.02rem/1.2 var(--sans); letter-spacing: -0.005em; padding-top: 12px; border-top: 2px solid var(--rule-strong); margin: 0 0 20px; }
.row-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; font-size: 0.86rem; }
.topic-link { position: relative; z-index: 1; font-weight: 700; color: var(--brand-ink); text-decoration: none; }
.topic-link:hover { text-decoration: underline; }
.row-places { color: var(--muted); }
.row, .result { position: relative; padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.row-title { font-size: var(--step-1); font-weight: 620; line-height: 1.22; margin: 0 0 12px; }
.row-title a, .lead-title a, .top-title a { color: var(--ink); text-decoration: none; }
.stretch::after { content: ''; position: absolute; inset: 0; }
.row:hover .row-title a, .lead:hover .lead-title a, .top:hover .top-title a, .result:hover .row-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.84rem; color: var(--muted); }
.row-meta .meter { width: 7rem; }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 40px; }
.badge { display: inline-block; font: 600 0.76rem/1 var(--sans); padding: 5px 8px; border-radius: 5px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--rule); }
.badge-stakes { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in oklch, var(--warn) 35%, transparent); }
.badge-primary { background: var(--brand-wash); color: var(--brand-ink); border-color: color-mix(in oklch, var(--brand) 30%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.93rem; background: var(--surface); transition: border-color 0.2s, background-color 0.2s; }
.chips a:hover { border-color: var(--brand); background: var(--brand-wash); }

/* ---------- Masthead ---------- */
.masthead { padding: clamp(18px, 3vw, 28px) 0 clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--rule); overflow: clip; }
.masthead-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); }
.dateline { margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.live { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 600 0.86rem/1 var(--sans); color: var(--ok); }
.live-time { color: var(--ink-2); font-weight: 450; }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok-bar); }
.live-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ok-bar); opacity: 0; }
.live.is-idle { color: var(--muted); }
.live.is-idle .live-dot { background: var(--muted); }
.live.is-idle .live-dot::after { display: none; }
.masthead-plate { padding-top: clamp(28px, 5vw, 64px); }
.nameplate { font-size: var(--step-5); font-weight: 640; line-height: 0.98; letter-spacing: -0.018em; word-spacing: 0.04em; max-width: 13em; margin-bottom: 26px; }
.nameplate em { font-style: italic; font-weight: 520; color: var(--brand); }
.np-dash { color: var(--muted); font-weight: 300; }
.masthead-dek { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 44em; margin-bottom: 18px; }
.masthead-stats { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ---------- Front page ---------- */
.front { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 56px; padding-top: clamp(32px, 5vw, 56px); }
.front-changes { padding-left: 32px; border-left: 1px solid var(--rule); }
.lead { position: relative; padding-bottom: 32px; }
.lead-title { font-size: var(--step-4); font-weight: 640; line-height: 1.04; letter-spacing: -0.014em; word-spacing: 0.04em; margin: 4px 0 18px; max-width: 18em; }
.lead-dek { font: 400 var(--step-1) / 1.55 var(--serif); color: var(--ink-2); max-width: 40em; margin-bottom: 22px; }
.lead .meter-block { margin-bottom: 16px; }
.lead-meta { font-size: 0.84rem; color: var(--muted); margin: 0; }
.tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.top { position: relative; padding: 22px 0; border-top: 1px solid var(--rule); }
.top-title { font-size: var(--step-2); font-weight: 620; line-height: 1.16; margin: 0 0 10px; }
.top-dek { color: var(--ink-2); font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.jc { list-style: none; margin: 0; padding: 0; }
.jc li { position: relative; padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.jc li:first-child { border-top: 0; padding-top: 0; }
.jc-when { margin: 0 0 4px; font-size: 0.8rem; color: var(--muted); }
.jc-title { display: block; color: var(--ink); font-weight: 640; line-height: 1.3; text-decoration: none; margin-bottom: 8px; }
.jc-title:hover { text-decoration: underline; }
.jc-change { margin: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.jc-change .diff-status { margin-right: 4px; vertical-align: middle; }
.jc-change .pill { font-size: 0.72rem; padding: 4px 7px 4px 6px; }
.jc-more { font-size: 0.78rem; color: var(--muted); }
.diff-kind { display: inline-block; font: 700 0.72rem/1 var(--mono); padding: 4px 6px; border-radius: 4px; margin-right: 4px; vertical-align: 0.08em; }
.k-new { background: var(--ok-bg); color: var(--ok); }
.k-changed { background: var(--brand-wash); color: var(--brand-ink); }
.k-removed { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 960px) {
  .front { grid-template-columns: 1fr; }
  .front-changes { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) { .tops { grid-template-columns: 1fr; } }

/* ---------- Districts & map ---------- */
.districts { margin-top: clamp(48px, 7vw, 88px); padding: clamp(40px, 6vw, 72px) 0; background: var(--bg-2); border-block: 1px solid var(--rule); --halo: var(--bg-2); }
.districts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; }
.districts-intro > p { color: var(--ink-2); max-width: 34em; }
.district-index { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dli { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 0.93rem; transition: color 0.2s; }
.dli::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--map-0); border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent); flex: none; transition: transform 0.3s var(--ease-out); }
.dli[data-level='1']::before { background: var(--map-1); }
.dli[data-level='2']::before { background: var(--map-2); }
.dli[data-level='3']::before { background: var(--map-3); }
.dli .n { margin-left: auto; color: var(--muted); font-size: 0.84rem; }
.dli:hover, .dli:focus-visible { color: var(--brand-ink); }
.dli:hover::before, .dli:focus-visible::before { transform: scale(1.35); }
.dmap { position: relative; }
.dmap-svg { width: 100%; height: auto; overflow: visible; }
.d path { fill: var(--map-0); stroke: var(--halo); stroke-width: 2.5; stroke-linejoin: round; transition: fill 0.35s var(--ease-out); }
.d[data-level='1'] path { fill: var(--map-1); }
.d[data-level='2'] path { fill: var(--map-2); }
.d[data-level='3'] path { fill: var(--map-3); }
.d:hover path, .d:focus-visible path { fill: var(--brand); }
.d:focus-visible { outline: none; }
.d:focus-visible path { stroke: var(--ink); stroke-width: 4; }
.dl { font-family: var(--sans); font-weight: 620; fill: var(--ink); paint-order: stroke; stroke: var(--halo); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; transition: fill 0.25s; }
.dl-n { font-family: var(--mono); font-weight: 650; fill: var(--brand-ink); font-size: 1.1em; }
.dmap-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 0; }
.dmap-key .k { width: 14px; height: 10px; border-radius: 2px; margin-left: 8px; border: 1px solid color-mix(in oklch, var(--ink) 15%, transparent); }
.dmap-key .k0 { margin-left: 0; background: var(--map-0); }
.dmap-key .k1 { background: var(--map-1); }
.dmap-key .k2 { background: var(--map-2); }
.dmap-key .k3 { background: var(--map-3); }
@media (max-width: 960px) { .districts-grid { grid-template-columns: 1fr; } .dmap { order: -1; } }
@media (max-width: 600px) {
  .dl-name { display: none; }
  .dl-n { font-size: 2em; }
}
/* Hovering a name in the list lights up its district, and the other way round. */
.districts:has(.dli-mitte:hover) .d-mitte path, .districts:has(.dli-pankow:hover) .d-pankow path,
.districts:has(.dli-friedrichshain-kreuzberg:hover) .d-friedrichshain-kreuzberg path,
.districts:has(.dli-charlottenburg-wilmersdorf:hover) .d-charlottenburg-wilmersdorf path,
.districts:has(.dli-spandau:hover) .d-spandau path, .districts:has(.dli-steglitz-zehlendorf:hover) .d-steglitz-zehlendorf path,
.districts:has(.dli-tempelhof-schoeneberg:hover) .d-tempelhof-schoeneberg path, .districts:has(.dli-neukoelln:hover) .d-neukoelln path,
.districts:has(.dli-treptow-koepenick:hover) .d-treptow-koepenick path, .districts:has(.dli-marzahn-hellersdorf:hover) .d-marzahn-hellersdorf path,
.districts:has(.dli-lichtenberg:hover) .d-lichtenberg path, .districts:has(.dli-reinickendorf:hover) .d-reinickendorf path { fill: var(--brand); }
.districts:has(.d-mitte:hover) .dli-mitte, .districts:has(.d-pankow:hover) .dli-pankow,
.districts:has(.d-friedrichshain-kreuzberg:hover) .dli-friedrichshain-kreuzberg,
.districts:has(.d-charlottenburg-wilmersdorf:hover) .dli-charlottenburg-wilmersdorf,
.districts:has(.d-spandau:hover) .dli-spandau, .districts:has(.d-steglitz-zehlendorf:hover) .dli-steglitz-zehlendorf,
.districts:has(.d-tempelhof-schoeneberg:hover) .dli-tempelhof-schoeneberg, .districts:has(.d-neukoelln:hover) .dli-neukoelln,
.districts:has(.d-treptow-koepenick:hover) .dli-treptow-koepenick, .districts:has(.d-marzahn-hellersdorf:hover) .dli-marzahn-hellersdorf,
.districts:has(.d-lichtenberg:hover) .dli-lichtenberg, .districts:has(.d-reinickendorf:hover) .dli-reinickendorf { color: var(--brand-ink); }

.locator svg { width: 100%; height: auto; }
.locator path { fill: var(--map-0); stroke: var(--bg); stroke-width: 5; stroke-linejoin: round; }
.locator path.on { fill: var(--brand); }

/* ---------- Topic rail ---------- */
.topic-rail ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.topic-rail a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.topic-rail .n { min-width: 1.9em; text-align: center; padding: 3px 6px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 0.8rem; }
.topic-rail a:hover { border-color: var(--brand); }
.topic-rail a[aria-current='page'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.topic-rail a[aria-current='page'] .n { background: color-mix(in oklch, var(--bg) 18%, transparent); color: var(--bg); }
.latest { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Digest signup ---------- */
.signup {
  margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 5vw, 56px); border-radius: 16px;
  background: var(--brand-deep); color: oklch(0.96 0.01 200);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: center;
}
.signup h2 { font-size: var(--step-3); color: oklch(0.99 0.005 200); margin-bottom: 14px; }
.signup-pitch > p { color: oklch(0.88 0.02 200); max-width: 38em; }
.signup .fine { color: oklch(0.82 0.02 200); }
.signup a { color: oklch(0.9 0.08 195); }
.founding .tag { margin-right: 6px; }
.signup-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 22px 0 12px; }
.signup .field { color: oklch(0.95 0.01 200); }
.signup .field input, .signup .field select { border-color: transparent; background: oklch(0.99 0.004 200); color: oklch(0.2 0.02 225); }
.signup .btn { background: oklch(0.86 0.1 195); color: oklch(0.2 0.04 215); }
.signup .btn:hover { background: oklch(0.92 0.08 195); }
.digest-preview { margin: 0; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 22px 22px 16px; box-shadow: 0 30px 60px -30px oklch(0 0 0 / 0.55); }
.dp-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.dp-title { font: 650 1.3rem/1.2 var(--serif); margin-bottom: 12px; }
.digest-preview dl { margin: 0; display: grid; gap: 9px; }
.digest-preview dt { font: 700 0.74rem/1.2 var(--sans); color: var(--muted); }
.digest-preview dd { margin: 2px 0 0; font-size: 0.9rem; line-height: 1.45; }
.digest-preview .pill { font-size: 0.7rem; }
.digest-preview figcaption { margin-top: 12px; }
.signup-compact { display: block; background: var(--bg-2); color: var(--ink); border: 1px solid var(--rule); }
.signup-compact h2 { color: var(--ink); font-size: var(--step-2); }
.signup-compact .field { color: var(--ink); }
.signup-compact .field input, .signup-compact .field select { border-color: var(--field); background: var(--surface); color: var(--ink); }
.signup-compact .btn { background: var(--brand); color: var(--on-brand); }
.signup-compact .fine { color: var(--muted); }
.signup-compact a { color: var(--brand-ink); }
@media (max-width: 960px) { .signup { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .signup-form { grid-template-columns: 1fr; } .signup-form .btn { width: 100%; } }

/* ---------- Empty states ---------- */
.empty { padding: 36px 28px; border: 1px dashed var(--field); border-radius: var(--radius); background: var(--bg-2); max-width: 44rem; }
.empty-title { font: 650 var(--step-2) / 1.2 var(--serif); margin-bottom: 8px; }
.empty p:last-child { margin: 0; color: var(--ink-2); }
.empty-meter { display: flex; gap: 3px; width: 10rem; height: 10px; margin-bottom: 20px; }
.empty-meter span { flex: 1; border-radius: 3px; background: var(--rule); }

/* ---------- Listings & search ---------- */
.listing { padding-top: clamp(28px, 5vw, 56px); }
.listing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--rule-strong); }
.listing-head .locator { width: clamp(140px, 22vw, 240px); margin: 0; }
.listing-title { font-size: var(--step-5); letter-spacing: -0.018em; line-height: 1; margin: 6px 0 14px; }
.listing-dek { color: var(--ink-2); font-size: var(--step-1); max-width: 40em; margin: 0; }
.crumbs { margin: 0; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.listing .topic-rail { margin: 20px 0 8px; }
.other-districts { margin-top: 48px; }
.search-big { display: flex; gap: 10px; max-width: 40rem; margin: 24px 0 18px; }
.search-big input { min-height: 52px; font-size: 1.1rem; }
.search-big .btn { min-height: 52px; }
.search-status { color: var(--ink-2); }
.results { list-style: none; margin: 16px 0 0; padding: 0; max-width: 52rem; }
.result-snippet { color: var(--ink-2); margin-bottom: 12px; }
.result mark, .results mark { background: color-mix(in oklch, var(--warn-bar) 38%, transparent); padding: 0 0.12em; }
@media (max-width: 640px) { .listing-head { grid-template-columns: 1fr; } .listing-head .locator { width: 150px; } }
