:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --blue: #0284c7;
  --blue-hover: #0369a1;
  --surface: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a:not([class]) {
  color: var(--blue);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: rgba(2, 132, 199, 0.35);
  transition: all 0.15s ease;
}

a:not([class]):hover {
  color: var(--blue-hover);
  text-decoration-color: currentColor;
}

button, summary {
  cursor: pointer;
}

button {
  font: inherit;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 3px;
}

main {
  scroll-margin-top: 100px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px 18px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

/* Header & Navigation */
.community-header {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.community-header-inner {
  max-width: 1280px;
  margin: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 20px;
}

.community-brand {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}

.community-brand small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.community-header nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.community-header nav a,
.community-header summary {
  display: block;
  padding: 8px 14px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.community-header nav a:hover,
.community-header summary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.community-header [aria-current=page] {
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.community-header nav details {
  position: relative;
}

.community-header nav details div {
  position: absolute;
  right: 0;
  top: 42px;
  min-width: 150px;
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 10px;
}

.community-header button {
  display: none;
  background: #1e293b;
  color: white;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
}

/* Freshness Status Bar */
.freshness {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 24px;
  color: #475569;
  font-size: 13px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.freshness strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #0f172a;
}

.freshness strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.freshness.data-degraded strong::before {
  background: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.freshness details {
  margin-left: auto;
  position: relative;
}

.freshness details[open] p {
  max-width: 480px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
}

.freshness button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.freshness button:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Main Layout */
.resident-main {
  max-width: 1140px;
  margin: auto;
  padding: 32px 24px;
  display: grid;
  gap: 24px;
}

.resident-intro {
  margin-bottom: 4px;
}

.resident-intro h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.resident-intro p {
  margin: 4px 0;
  color: #475569;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  font-weight: 750;
  color: #64748b;
  margin-bottom: 6px;
}

.resident-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Resident Cards */
.resident-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.resident-card h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #0f172a;
}

.resident-card h3 {
  font-size: 16px;
  font-weight: 750;
  margin: 16px 0 6px;
  color: #1e293b;
}

.resident-card p {
  font-size: 14px;
  margin: 8px 0;
  color: #334155;
  line-height: 1.55;
}

.resident-value {
  font-size: 32px !important;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: 10px 0 4px !important;
}

.resident-value small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: normal;
  margin-top: 2px;
}

.muted {
  color: var(--muted);
}

.resident-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff !important;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  margin: 8px 6px 2px 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}

.resident-button:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

/* Stoplight States */
.resident-card.stoplight-green {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-top: 5px solid #16a34a;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.07);
}
.resident-card.stoplight-green h2,
.resident-card.stoplight-green .resident-value {
  color: #14532d;
}
.resident-card.stoplight-green .eyebrow {
  color: #166534;
}

.resident-card.stoplight-yellow {
  background: #fefce8;
  border: 1.5px solid #fde047;
  border-top: 5px solid #ca8a04;
  box-shadow: 0 4px 18px rgba(202, 138, 4, 0.08);
}
.resident-card.stoplight-yellow h2,
.resident-card.stoplight-yellow .resident-value {
  color: #713f12;
}
.resident-card.stoplight-yellow .eyebrow {
  color: #854d0e;
}

.resident-card.stoplight-red {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-top: 5px solid #dc2626;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.09);
}
.resident-card.stoplight-red h2,
.resident-card.stoplight-red .resident-value {
  color: #7f1d1d;
}
.resident-card.stoplight-red .eyebrow {
  color: #991b1b;
}

.resident-card.stoplight-unknown {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-top: 5px solid #64748b;
  box-shadow: 0 4px 14px rgba(100, 116, 139, 0.05);
}
.resident-card.stoplight-unknown h2,
.resident-card.stoplight-unknown .resident-value {
  color: #334155;
}
.resident-card.stoplight-unknown .eyebrow {
  color: #475569;
}

/* Stoplight Badges */
.stoplight-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  width: fit-content;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stoplight-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.stoplight-badge.badge-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.stoplight-badge.badge-green .stoplight-dot {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.stoplight-badge.badge-yellow {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}
.stoplight-badge.badge-yellow .stoplight-dot {
  background: #ca8a04;
  box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.25);
}

.stoplight-badge.badge-red {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.stoplight-badge.badge-red .stoplight-dot {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.stoplight-badge.badge-unknown {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.stoplight-badge.badge-unknown .stoplight-dot {
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.25);
}

/* Visual Stage Meter (Tipping Point Bar) */
.stage-meter {
  position: relative;
  height: 10px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin: 14px 0 6px;
  overflow: visible;
}
.stage-meter-fill {
  height: 100%;
  border-radius: 9999px;
  background: #0284c7;
  transition: width 0.4s ease;
}
.stage-meter-fill.fill-green { background: #16a34a; }
.stage-meter-fill.fill-yellow { background: #ca8a04; }
.stage-meter-fill.fill-red { background: #dc2626; }
.stage-meter-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2.5px;
  background: #ef4444;
  z-index: 2;
  border-radius: 1px;
}
.stage-meter-threshold::after {
  content: "3.99' Brim";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  color: #dc2626;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.stage-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

/* Street Status Chips */
.street-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.street-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}
.street-chip.chip-green {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}
.street-chip.chip-yellow {
  background: #fefce8;
  color: #854d0e;
  border-color: #fde047;
}
.street-chip.chip-red {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* Action Window & High Ground Guidance */
.action-window-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.action-window-header {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.action-window-body p {
  margin: 4px 0;
  color: #78350f;
}
.high-ground-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #14532d;
}
.compound-warning-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #1e3a8a;
}

/* Official Warnings */
.official-card {
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.05);
}
.official-card strong {
  color: #0369a1;
  font-size: 14.5px;
}
.official-card p {
  margin: 6px 0 0;
  color: #0c4a6e;
}

/* Footer */
.community-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px max(24px, calc((100vw - 1200px)/2));
  margin-top: 48px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.community-footer strong {
  color: #ffffff;
  font-size: 14px;
}
.community-footer p {
  max-width: 760px;
  margin: 10px 0;
  line-height: 1.6;
}
.community-footer a {
  color: #7dd3fc;
}

/* Tables */
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.forecast-table {
  margin: 16px 0;
}
.forecast-table summary {
  font-size: 14px;
  font-weight: 700;
  color: #0284c7;
  padding: 8px 0;
}
table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 550px;
  width: 100%;
}
th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}
tr:hover td {
  background: #f8fafc;
}
caption {
  text-align: left;
  padding: 12px 14px;
  color: #64748b;
  font-size: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* Device Grid (Alerts) */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.device {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}
.device summary {
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
}
.device ol {
  padding-left: 20px;
  font-size: 14px;
  margin-top: 14px;
}
.device li {
  margin: 10px 0;
  color: #334155;
}

code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}

#offline-notice {
  background: #fff7ed;
  color: #9a3412;
  padding: 12px 20px;
  font-weight: 650;
  border-bottom: 1px solid #fed7aa;
}

#flood-map {
  scroll-margin-top: 100px;
}

/* Report Form */
#report-form {
  display: grid;
  gap: 16px;
}
#report-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: #1e293b;
}
#report-form input,
#report-form textarea {
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  transition: border-color 0.15s ease;
}
#report-form input:focus,
#report-form textarea:focus {
  border-color: #0284c7;
}
#report-form .consent {
  display: flex;
  align-items: start;
  gap: 8px;
  font-weight: 450;
  color: #475569;
  font-size: 13px;
}
#report-draft {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

/* Stale & Degraded Guards */
.data-degraded {
  background: #fff7ed !important;
  border-bottom: 1px solid #fdba74 !important;
  color: #7c2d12 !important;
}
.freshness #stale-detail {
  flex-basis: 100%;
  margin: 0;
  color: #9a3412;
}
.freshness #update-age {
  display: block;
}
.estimate-age-note {
  display: block;
  background: #fff7ed;
  color: #7c2d12;
  border-left: 4px solid #ea580c;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
}
.resident-grid > .estimate-age-note {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.outdated-estimate {
  border-color: #fdba74 !important;
}

.bg-white .text-slate-400 {
  color: #52667d;
}
.community-header .text-slate-400,
.community-footer .text-slate-400 {
  color: #94a3b8;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .community-header button {
    display: block;
  }
  .community-header-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
    gap: 10px;
  }
  .community-header nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 8px;
  }
  .community-header nav.open {
    display: flex;
  }
  .community-header nav details div {
    position: static;
  }
  .freshness {
    padding: 10px 18px;
    gap: 8px;
  }
  .freshness details {
    margin-left: 0;
  }
  .freshness span {
    font-size: 12px;
  }
  .resident-grid {
    gap: 14px;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .community-brand {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .resident-grid {
    grid-template-columns: 1fr;
  }
  .resident-card {
    padding: 18px;
  }
  .resident-main {
    padding: 20px 16px;
  }
  .resident-value {
    font-size: 26px !important;
  }
  .resident-intro h1 {
    font-size: 27px;
  }
  .resident-card h2 {
    font-size: 18px;
  }
  .freshness span {
    display: none;
  }
  main {
    scroll-margin-top: 85px;
  }
  .resident-intro p:not(.eyebrow) {
    font-size: 13px;
  }
  .resident-card details {
    font-size: 13px;
  }
  .resident-card .eyebrow {
    font-size: 11px;
  }
  .resident-card p {
    margin: 6px 0;
  }
  .resident-value small {
    display: inline;
    margin-left: 6px;
  }
  main.space-y-8 {
    padding-top: 16px;
  }
}

/* ============ UX improvements: dial, picker, jargon ============ */

/* Status dial: one full-width banner above the fold */
.status-dial { border-radius: 16px; border: 2px solid; padding: 18px 20px; margin: 0 0 4px; }
.status-dial h2 { font-size: 1.25rem; font-weight: 800; margin: 10px 0 6px; line-height: 1.3; }
.status-dial.stoplight-green { background: #ecfdf5; border-color: #6ee7b7; }
.status-dial.stoplight-green h2 { color: #064e3b; }
.status-dial.stoplight-yellow { background: #fffbeb; border-color: #fcd34d; }
.status-dial.stoplight-yellow h2 { color: #78350f; }
.status-dial.stoplight-red { background: #fef2f2; border-color: #fca5a5; }
.status-dial.stoplight-red h2 { color: #7f1d1d; }
.status-dial.stoplight-unknown { background: #f8fafc; border-color: #cbd5e1; }
.status-dial.stoplight-unknown h2 { color: #0f172a; }
.status-countdown { font-weight: 700; font-size: 0.95rem; margin: 4px 0 10px; }
.audio-briefing { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* Jargon explainer */
.jargon { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; position: relative; }
.jargon-tip { display: none; position: absolute; z-index: 50; left: 0; top: 1.4em; min-width: 200px; max-width: 280px;
  background: #0f172a; color: #f8fafc; font-size: 13px; font-weight: 400; line-height: 1.4;
  padding: 10px 12px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.jargon.jargon-open .jargon-tip { display: block; }

/* Street picker */
.street-picker-card .street-picker-label { display: block; font-weight: 700; margin: 10px 0 6px; }
.street-picker-select { width: 100%; max-width: 420px; padding: 12px; font-size: 16px; border-radius: 12px;
  border: 2px solid #cbd5e1; background: #fff; }
.street-result { margin-top: 12px; }
.street-result-card { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 14px 16px; }
.street-result-card strong { font-size: 1.05rem; }
.street-result-card p { margin: 6px 0 0; }

/* Signup hero */
.signup-hero .step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: #0284c7; color: #fff; font-size: 1rem; margin-right: 8px; }
.store-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.qr-hero { display: flex; gap: 18px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.qr-hero img { border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,.06);
  background: #fff; padding: 8px; }
.qr-hero p { flex: 1; min-width: 200px; }
.troubleshoot-body h3 { margin-top: 12px; }
.troubleshoot-body ul { margin: 6px 0 12px 18px; }
.troubleshoot-body li { margin: 4px 0; }

/* Plain-language water level, status summary, 48-hour strip */
.water-words { font-size: 1.15rem; font-weight: 800; margin: 4px 0 2px; }
.status-summary { margin: 4px 0 10px; font-size: 0.98rem; line-height: 1.45; }
.alert-cta { display: inline-flex; align-items: center; margin-top: 10px; }
.tl-card .tl-days { display: flex; font-size: 0.8rem; font-weight: 700; color: #475569; margin-bottom: 4px; }
.tl-card .tl-days span { border-left: 2px solid #cbd5e1; padding-left: 4px; }
.tl-strip { display: flex; gap: 1px; border-radius: 8px; overflow: hidden; }
.tl-cell { flex: 1; height: 26px; display: inline-block; }
.tl-green { background: #34d399; } .tl-yellow { background: #facc15; } .tl-orange { background: #fb923c; }
.tl-red { background: #ef4444; } .tl-unknown { background: #cbd5e1; }
.tl-peak { position: relative; display: inline-block; transform: translateX(-50%); font-size: 0.8rem; font-weight: 700; color: #7f1d1d; white-space: nowrap; margin-top: 2px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; margin: 8px 0; }
.tl-legend i { width: 12px; height: 12px; flex: none; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.tl-card ul { margin: 6px 0 6px 18px; }

/* Touch targets: at least 44px for tappable controls */
summary, .resident-button, button, .street-picker-select, .community-footer a, .official-card a, .freshness a,
.community-header a, .data-controls a { min-height: 44px; }
summary, .community-footer a, .official-card a, .freshness a { display: inline-flex; align-items: center; }
.freshness details > summary { padding: 6px 4px; }
.community-footer a { padding: 0 2px; }
