:root {
  color-scheme: light;
  --ground: #eef1ec;
  --surface: #fcfcfb;
  --ink: #16201b;
  --ink-2: #4d5852;
  --ink-3: #75807a;
  --rule: #d6dcd5;
  --field: #2f5d3f;          /* ragi-field green: brand accent */
  --series-1: #2a78d6;       /* steady rain / average wind */
  --series-2: #eb6834;       /* convective rain / gusts */
  --dry-bg: #e3ebe2;
  --rain-bg: #dbe8f8;
  --rain-ink: #184f95;
  --maybe-bg: #ebf2fb;
  --storm-bg: #fbe3d6;
  --storm-ink: #8a3312;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #121614;
    --surface: #1a1f1c;
    --ink: #f1f4f0;
    --ink-2: #bcc5bf;
    --ink-3: #8b958f;
    --rule: #2e3531;
    --field: #8cc39c;
    --series-1: #3987e5;
    --series-2: #d95926;
    --dry-bg: #1f2a22;
    --rain-bg: #16263b;
    --rain-ink: #9ec5f4;
    --maybe-bg: #1a2430;
    --storm-bg: #35200f;
    --storm-ink: #f3b08f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
  font-variant-numeric: tabular-nums;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 48px;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }

/* Masthead ------------------------------------------------------------------ */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}
.place h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.place-meta { margin: 8px 0 0; color: var(--ink-2); font-size: 1rem; }
.coords { color: var(--ink-3); margin-left: 6px; }

.controls { display: flex; flex-direction: column; align-items: end; gap: 8px; max-width: 34ch; }
@media (max-width: 600px) { .controls { align-items: start; max-width: none; } }
.data-status { margin: 0; font-size: 0.82rem; color: var(--ink-2); text-align: right; }
@media (max-width: 600px) { .data-status { text-align: left; } }
.data-status[data-state="partial"], .data-status[data-state="failed"] { color: var(--storm-ink); }
.status-table td.failed { color: var(--storm-ink); font-weight: 600; }
.field { display: grid; gap: 4px; font-size: 0.8rem; color: var(--ink-2); }
select, .btn {
  font: 500 0.95rem var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-height: 40px;
}
.btn { cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
:focus-visible { outline: 3px solid var(--series-1); outline-offset: 2px; }

.notice {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--ink-3);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* Hero ------------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.verdict {
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  transition: background-color 0.4s ease;
}
.verdict[data-level="dry"] { background: var(--dry-bg); }
.verdict[data-level="rain"] { background: var(--rain-bg); color: var(--rain-ink); }
.verdict[data-level="storm"] { background: var(--storm-bg); color: var(--storm-ink); }
.verdict-when { margin: 0 0 6px; font-weight: 600; font-size: 0.9rem; opacity: 0.8; }
.verdict h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.verdict-detail { margin: 14px 0 0; font-size: 1.05rem; max-width: 55ch; }
.verdict-next { margin: 8px 0 0; font-size: 0.95rem; opacity: 0.85; }
.verdict-next:empty, .verdict-detail:empty { display: none; }

.now {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.now > div { background: var(--surface); padding: 16px 18px; }
.now dt { font-size: 0.85rem; color: var(--ink-2); }
.now dd { margin: 4px 0 0; font: 700 1.9rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.now dd small { font: 500 0.85rem var(--font-body); color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }

.verdict[data-level="maybe"] { background: var(--maybe-bg); color: var(--rain-ink); }
.verdict-soon { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 20%, transparent); font-size: 0.9rem; opacity: 0.85; }
.verdict-soon:empty { display: none; }

/* Model agreement -------------------------------------------------------------- */
.section-intro { margin: -6px 0 16px; color: var(--ink-2); max-width: 70ch; }
.agree-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 980px) {
  .agree-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; padding-bottom: 6px; }
}
.agree-day {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  border-top: 4px solid var(--rule);
}
.agree-day[data-level="maybe"] { background: var(--maybe-bg); border-top-color: var(--series-1); }
.agree-day[data-level="likely"] { background: var(--rain-bg); border-top-color: var(--rain-ink); }
.agree-day p { margin: 0; }
.agree-day h3 { font-size: 1rem; font-weight: 700; }
.agree-day .window { font-size: 0.75rem; color: var(--ink-3); margin-top: -6px; }
.agree-count { font: 700 2.1rem/1 var(--font-display); letter-spacing: -0.02em; }
.agree-count small { font: 500 0.95rem var(--font-body); color: var(--ink-2); margin-left: 2px; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--rain-ink); }
.dots i.wet { background: var(--rain-ink); }
.dots i.na { border-style: dashed; border-color: var(--ink-3); }
.agree-rate { font-size: 0.9rem; line-height: 1.35; }
.agree-rate strong { font: 700 1.15rem var(--font-display); display: block; color: var(--ink); }
.agree-day[data-level="likely"] .agree-rate strong { color: var(--rain-ink); }
.agree-mm { font-size: 0.8rem; color: var(--ink-2); }
.agree-details { margin-top: 14px; }
.agree-details summary { cursor: pointer; font-weight: 600; padding: 6px 0; width: fit-content; }
.agree-details .table-wrap { margin-top: 8px; }
.agree-table th, .agree-table td { padding: 8px 12px; white-space: nowrap; }
.agree-table td.wet { background: var(--rain-bg); color: var(--rain-ink); font-weight: 600; }
.agree-table td.na { color: var(--ink-3); }
.agree-note { margin: 12px 2px 0; color: var(--ink-3); font-size: 0.85rem; max-width: 90ch; }

/* Blocks ---------------------------------------------------------------------- */
.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 14px;
}
.block-head h2 { font-size: 1.6rem; font-weight: 700; }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}
.segmented button {
  font: 500 0.88rem var(--font-body);
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 34px;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.map {
  height: clamp(340px, 55vh, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map[hidden] { display: none; }
.map-layers { margin: -2px 0 12px; }
.segmented[hidden] { display: none; }
.map-note { margin: 10px 2px 0; color: var(--ink-3); font-size: 0.88rem; }
.leaflet-container { font: 400 13px/1.4 var(--font-body); }
.leaflet-popup-content { margin: 10px 14px; color: #16201b; }
.leaflet-popup-content strong { font-family: var(--font-display); font-size: 1rem; }

/* Charts ---------------------------------------------------------------------- */
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.charts .block-head { grid-column: 1 / -1; margin-bottom: -6px; }
.chart-rain, .charts-intro { grid-column: 1 / -1; }
.charts-intro { margin: 0; }
@media (max-width: 820px) { .charts { grid-template-columns: 1fr; } }

.chart-card {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 18px 12px;
  min-width: 0;
}
.chart-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.chart-card h3 { font-size: 1.1rem; font-weight: 700; }
.chart-card figcaption p { margin: 0; color: var(--ink-3); font-size: 0.85rem; }
.legend { list-style: none; display: flex; gap: 14px; margin: 0 0 0 auto; padding: 0; font-size: 0.85rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.canvas-wrap { position: relative; height: 220px; }
.chart-rain .canvas-wrap { height: 250px; }

/* Daily table ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--rule); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
td { font-size: 0.95rem; }
.num { text-align: right; }
td.day { font-weight: 600; }
.rain-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--series-1); margin-right: 8px; vertical-align: 1px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tag.storm { color: var(--storm-ink); }
.tag.steady { color: var(--rain-ink); }
.tag.none { color: var(--ink-3); }

.foot { margin-top: 36px; color: var(--ink-3); font-size: 0.85rem; }
.foot p { margin: 4px 0; }
code { font-size: 0.85em; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Language ------------------------------------------------------------------------------------ */
[hidden] { display: none !important; }
.lang-toggle { margin-bottom: 14px; }
.lang-toggle button { min-height: 32px; padding: 4px 14px; }
:root:lang(kn) {
  --font-display: "Noto Sans Kannada", "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Noto Sans Kannada", "Public Sans", system-ui, sans-serif;
}
:lang(kn) body { line-height: 1.65; }
:lang(kn) h1, :lang(kn) h2, :lang(kn) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(kn) .place h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.2; }
:lang(kn) .verdict h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; max-width: 22ch; }
:lang(kn) .agree-count, :lang(kn) .now dd { letter-spacing: 0; }

/* Forecast check ------------------------------------------------------------------------------ */
.check-summary { margin: 0 0 12px; font-weight: 600; }
.check-table th[scope="row"] { font-weight: 600; font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
.check-table td { white-space: nowrap; }
.muted { color: var(--ink-3); }
.outcome { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.outcome::before { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 0.75rem; color: #fff; }
.outcome.right::before { content: "✓"; background: #0ca30c; }
.outcome.wrong::before { content: "✗"; background: #d03b3b; }
.outcome.maybe::before { content: "~"; background: var(--ink-3); }
.outcome.waiting { color: var(--ink-3); font-weight: 500; }
.outcome.waiting::before { content: "…"; color: var(--ink-3); }
.check-pick { margin: 10px 0 4px; max-width: 320px; }
.check-matrix tr.measured td { font-weight: 700; }
.check-matrix tr.agree-row td { color: var(--ink-2); }
.mark { margin-left: 6px; font-weight: 700; }
.mark.right { color: #0a7d0a; }
.mark.wrong { color: #b02e2e; }
@media (prefers-color-scheme: dark) {
  .mark.right { color: #5fd35f; }
  .mark.wrong { color: #f08080; }
}

/* Rain agreement map ------------------------------------------------------------------------- */
#mapDayGroup { margin: -2px 0 12px; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 2px 0; font-size: 0.85rem; color: var(--ink-2); }
.legend-title { font-weight: 600; color: var(--ink); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--rule); }
.legend-item i.na { background: repeating-linear-gradient(45deg, #b9bdb8 0 3px, transparent 3px 6px); }
.cell-count { display: grid; place-items: center; font: 700 15px/1 var(--font-body); pointer-events: none; }
.cell-count.dark span { color: #16201b; }
.cell-count.light span { color: #ffffff; }
.tiles-muted { filter: grayscale(1) contrast(0.85) brightness(1.08); }
.check-matrix thead th small { font-weight: 500; color: var(--ink-3); }
.check-caption { margin: 8px 0 0; color: var(--ink-2); font-size: 0.9rem; max-width: 80ch; }

/* One-day detail ------------------------------------------------------------------------------- */
.day-detail[open] summary { margin-bottom: 10px; }
.day-picker { margin-bottom: 14px; }
.link-btn { display: block; margin-top: 2px; padding: 0; border: 0; background: none; font: 500 0.8rem var(--font-body); color: var(--series-1); text-decoration: underline; cursor: pointer; }
.day-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .day-result { grid-template-columns: 1fr; } }
.result-block { background: var(--surface); border-radius: var(--radius-lg); padding: 16px 18px; }
.result-block[data-state="rain"] { background: var(--rain-bg); }
.result-block[data-state="dry"] { background: var(--dry-bg); }
.result-block p { margin: 0; }
.result-label { font-size: 0.85rem; color: var(--ink-2); }
.result-value { font: 700 2.2rem/1.15 var(--font-display); margin-top: 4px !important; }
.result-said { font: 700 1.3rem/1.3 var(--font-display); margin-top: 6px !important; }
.result-sub { margin-top: 6px !important; }
.sub-head { font-size: 1.1rem; font-weight: 700; margin: 24px 0 4px; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; background: var(--surface); border-radius: var(--radius-lg); }
.tl-row { display: grid; grid-template-columns: 150px 150px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.tl-row:last-child { border-bottom: 0; }
.tl-row p { margin: 0; }
.tl-when strong { display: block; }
.tl-when span { font-size: 0.8rem; color: var(--ink-3); }
@media (max-width: 820px) { .tl-row { grid-template-columns: 1fr 1fr; } }
.model-score td.score { font-weight: 700; }
.model-score thead th small { font-weight: 500; color: var(--ink-3); }

/* Rain timing strip on outlook cards ----------------------------------------------------------- */
.time-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; height: 12px; margin-top: 2px; }
.time-strip span { border-radius: 2px; border: 1px solid var(--rule); }
.strip-ticks { display: flex; justify-content: space-between; white-space: nowrap; font-size: 0.62rem; color: var(--ink-3); margin-top: -4px !important; }
.agree-when { font-size: 0.85rem; font-weight: 600; color: var(--rain-ink); }

/* Outlook card drill-down ---------------------------------------------------------------------- */
.agree-day { position: relative; }
.card-open { position: absolute; inset: 0; width: 100%; background: transparent; border: 0; border-radius: inherit; cursor: pointer; z-index: 1; }
.card-open:hover + h3 { text-decoration: underline; }
.agree-day[data-open="true"] { outline: 3px solid var(--ink); outline-offset: -1px; }
.card-more { font-size: 0.8rem; font-weight: 600; color: var(--series-1); text-decoration: underline; }
.day-panel { margin-top: 12px; background: var(--surface); border-radius: var(--radius-lg); padding: 18px; border-top: 4px solid var(--ink); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.panel-head h3 { font-size: 1.25rem; }
.panel-head h3 span { font: 500 0.85rem var(--font-body); color: var(--ink-3); margin-left: 6px; }
.panel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
@media (max-width: 820px) { .panel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel-stat { background: var(--ground); border-radius: var(--radius-sm); padding: 12px 14px; }
.panel-stat p { margin: 0; }
.stat-label { font-size: 0.8rem; color: var(--ink-2); }
.stat-value { font: 700 1.35rem/1.25 var(--font-display); margin-top: 4px !important; }
.stat-sub { font-size: 0.8rem; color: var(--ink-2); margin-top: 2px !important; }
.panel-table thead th small { font-weight: 500; color: var(--ink-3); }
.panel-table td.total { font-weight: 700; border-left: 2px solid var(--rule); }
.foot a { color: inherit; }
.credits { max-width: 90ch; }
.source-credit { margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.source-credit a { color: inherit; }

/* Explanations tucked away ---------------------------------------------------------------------- */
.about { margin-top: 12px; }
.about summary { cursor: pointer; font-size: 0.9rem; color: var(--ink-2); width: fit-content; padding: 4px 0; }
.about .agree-note { margin-top: 6px; }

/* Panel: rain by time of day ------------------------------------------------------------------- */
.block-list { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 6px; }
.block-list li { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; gap: 10px; align-items: center; font-size: 0.9rem; }
.bl-bar { height: 12px; background: var(--ground); border-radius: 6px; overflow: hidden; }
.bl-bar i { display: block; height: 100%; border-radius: 6px; }
.bl-count { font-weight: 600; white-space: nowrap; }
.panel-models summary { cursor: pointer; font-weight: 600; padding: 8px 0; width: fit-content; }
@media (min-width: 641px) { .block-list { display: none; } }

/* Wide tables keep the first column in view while scrolling sideways */
.agree-table th[scope="row"] { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* Touch screens: finger-sized targets --------------------------------------------------------- */
@media (pointer: coarse) {
  .segmented button, .btn, select { min-height: 44px; }
  .lang-toggle button { min-height: 40px; }
  .link-btn { padding: 10px 0 6px; font-size: 0.9rem; }
  .agree-details summary, .about summary, .panel-models summary { padding: 12px 0; }
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
}

/* Phones ---------------------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .page { padding-top: 16px; }
  .place h1 { font-size: 2.3rem; }
  :lang(kn) .place h1 { font-size: 2.1rem; }
  .masthead { gap: 10px; padding-bottom: 14px; }
  .controls { flex-direction: row; align-items: center; gap: 12px; }
  .data-status { font-size: 0.78rem; }
  .block-head { margin-top: 32px; }

  /* Button rows scroll sideways in one line instead of wrapping into tall pills */
  .segmented { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { flex: 0 0 auto; white-space: nowrap; }

  /* Outlook cards: drop repeated lines so more of each card fits */
  .agree-strip { grid-auto-columns: minmax(46%, 1fr); gap: 8px; }
  .agree-day { padding: 12px 12px 10px; gap: 6px; }
  .agree-day .window, .agree-day .agree-mm { display: none; }
  .agree-count { font-size: 1.8rem; }
  .strip-ticks { font-size: 0.7rem; }
  .agree-when { font-size: 0.82rem; }

  .day-panel { padding: 14px; }
  .panel-head h3 span { display: block; margin: 2px 0 0; }
  .panel-stats { gap: 8px; }
  .stat-value { font-size: 1.15rem; }

  /* Tables become one card per row */
  .stack-mobile { min-width: 0; }
  .stack-mobile thead { display: none; }
  .stack-mobile tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
  .stack-mobile tbody tr:last-child { border-bottom: 0; }
  .stack-mobile th[scope="row"], .stack-mobile td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border: 0; text-align: right; white-space: normal; position: static; }
  .stack-mobile th[scope="row"] { font-size: 1rem; text-align: left; padding-bottom: 6px; }
  .stack-mobile td::before { content: attr(data-label); color: var(--ink-2); font-size: 0.85rem; text-align: left; font-weight: 500; }
  .check-table th[scope="row"] .link-btn { display: inline; margin: 0; }

  .map { height: 420px; }
  .canvas-wrap, .chart-rain .canvas-wrap { height: 200px; }
}
@media (max-width: 640px) {
  .stack-mobile, .stack-mobile tbody { display: block; width: 100%; }
}

@media (max-width: 640px) {
  .daily-table .rain-bar { display: none; }
  .block-list li { grid-template-columns: 1fr auto; grid-template-areas: "time time" "bar count"; gap: 2px 10px; }
  .bl-time { grid-area: time; }
  .bl-bar { grid-area: bar; }
  .bl-count { grid-area: count; }
}

/* Collapsible section ("Did the forecast work?") ---------------------------------------------- */
.section-toggle > summary { list-style: none; cursor: pointer; }
.section-toggle > summary::-webkit-details-marker { display: none; }
.toggle-hint { font: 600 0.95rem var(--font-body); color: var(--series-1); border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center; }
.section-toggle:not([open]) .when-open, .section-toggle[open] .when-closed { display: none; }
.section-toggle #leadGroup { margin: 0 0 12px; }

/* Maps: two big, plain choices ---------------------------------------------------------------- */
.map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.map-tabs button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; min-height: 72px; border-radius: var(--radius-lg); border: 2px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.map-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--rain-bg); }
.tab-icon { font-size: 1.9rem; line-height: 1; }
.tab-text { display: grid; gap: 2px; }
.tab-text strong { font: 700 1.1rem/1.25 var(--font-display); }
.tab-text small { font-size: 0.85rem; color: var(--ink-2); }
.map-help { margin: 0 0 10px; font-size: 1rem; color: var(--ink); max-width: 70ch; }
.day-chips { margin-bottom: 10px; }
.day-chips button { font-size: 0.95rem; min-height: 44px; padding: 8px 16px; }
#mapDayGroup:not(:empty) { display: inline-flex; }
.map-frame { position: relative; }
.map.covered iframe { pointer-events: none; }
.map-cover { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 14px 22px; min-height: 48px; border-radius: 999px; border: 0; background: rgba(22, 32, 27, 0.85); color: #fff; font: 600 1rem var(--font-body); cursor: pointer; }
.town-label span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font: 600 12px/1.2 var(--font-body); color: #16201b; background: rgba(255, 255, 255, 0.85); padding: 1px 5px; border-radius: 4px; }
.village-label { pointer-events: none; }
.village-label i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #d03b3b; border: 2px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px #16201b; }
.village-label span { display: inline-block; transform: translate(-50%, calc(-100% - 7px)); white-space: nowrap; font: 700 13px/1.2 var(--font-body); color: #fff; background: #16201b; padding: 2px 7px; border-radius: 6px; }
.map-legend .legend-item i { width: 20px; height: 20px; border: 1px solid #6b7a72; }
.map-legend { font-size: 0.95rem; }
@media (max-width: 640px) {
  .map-tabs { gap: 8px; }
  .map-tabs button { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .tab-text strong { font-size: 1rem; }
  .map { height: 380px; }
  #mapDayGroup:not(:empty) { display: flex; }
}

/* Rain map: when rain is expected, as a word inside each rainy square */
.cell-time span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font: 700 11px/1.2 var(--font-body); padding: 1px 4px; border-radius: 4px; }
.cell-time.likely span { color: #ffffff; background: rgba(13, 54, 107, 0.55); }
.cell-time.maybe span { color: #0d366b; background: rgba(255, 255, 255, 0.7); }
