/* La Habra Dashboard – Councilmember Delwin Lampkin */
:root {
  --navy-900: #0d1f3c;
  --navy-800: #102a52;
  --navy-700: #0d366b;
  --navy-600: #184f95;
  --blue-450: #2a78d6;
  --blue-100: #cde2fb;
  --gold: #f2b632;
  --gold-soft: #fff4d6;
  --surface-0: #f4f6fa;
  --surface-1: #fcfcfb;
  --card: #ffffff;
  --border: #e3e6ec;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #6f6e69;
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  /* categorical slots (validated reference palette, fixed order) */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(13, 31, 60, .18);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--surface-0);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--navy-600); }
a:hover { color: var(--blue-450); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Top nav ---------- */
.topnav { position: sticky; top: 0; z-index: 1000; background: rgba(13, 31, 60, .96); backdrop-filter: blur(6px); }
.topnav .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { color: #fff; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: .2px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), #ffd66e);
  color: var(--navy-900); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.topnav nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topnav nav a { color: #d7e3f6; text-decoration: none; font-size: 14px; padding: 7px 12px; border-radius: 8px; }
.topnav nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 760px) { .topnav nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(242, 182, 50, .28), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(42, 120, 214, .45), transparent 60%),
              linear-gradient(135deg, var(--navy-900), var(--navy-700) 55%, var(--navy-600)); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); background: rgba(242, 182, 50, .12); border: 1px solid rgba(242, 182, 50, .35);
  padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 18px 0 12px; letter-spacing: -.02em; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: #d7e3f6; max-width: 760px; margin: 0 0 28px; }
.search-box { position: relative; max-width: 720px; }
.search-box input { width: 100%; font-size: 18px; padding: 18px 120px 18px 54px; border-radius: 16px; border: 0;
  box-shadow: var(--shadow-lg); color: var(--text-primary); }
.search-box svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box button { position: absolute; right: 8px; top: 8px; bottom: 8px; padding: 0 20px; border: 0; border-radius: 11px;
  background: var(--gold); color: var(--navy-900); font-weight: 700; }
.search-hints { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #b9cbe6; }
.search-hints button { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.search-hints button:hover { background: rgba(255, 255, 255, .2); }
.updated { margin-top: 22px; font-size: 13px; color: #b9cbe6; display: flex; align-items: center; gap: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------- Stat tiles ---------- */
.stats { margin-top: -38px; position: relative; z-index: 2; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { background: var(--card); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow);
  border-top: 4px solid var(--navy-600); }
.stat .label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.stat .value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; color: var(--navy-800);
  font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--text-muted); }
.stat .delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--good-text); }
.stat a.src { font-size: 12px; color: var(--text-muted); }

/* ---------- Sections ---------- */
section.block { padding: 44px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; color: var(--navy-900); }
.section-head p { margin: 4px 0 0; color: var(--text-secondary); }

/* ---------- Highlights carousel ---------- */
.highlights { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px); gap: 16px; overflow-x: auto;
  padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.highlight { scroll-snap-align: start; background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); color: #fff;
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  min-height: 230px; cursor: pointer; border: 0; text-align: left; transition: transform .15s; }
.highlight:hover { transform: translateY(-3px); }
.highlight .icon { font-size: 28px; }
.highlight h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.highlight p { margin: 0; font-size: 14px; color: #d7e3f6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.highlight .foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.pill.gold { background: var(--gold); color: var(--navy-900); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat-tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px; text-align: left; transition: all .15s; position: relative; }
.cat-tile:hover { border-color: var(--navy-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.cat-tile[aria-pressed="true"] .cat-count { background: var(--gold); color: var(--navy-900); }
.cat-tile[aria-pressed="true"] .cat-blurb { color: #d7e3f6; }
.cat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--gold-soft); }
.cat-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.cat-blurb { font-size: 12.5px; color: var(--text-muted); }
.cat-count { position: absolute; top: 14px; right: 14px; font-size: 13px; font-weight: 800; min-width: 28px; text-align: center;
  padding: 2px 8px; border-radius: 999px; background: var(--blue-100); color: var(--navy-700); }

/* ---------- Charts ---------- */
.charts { display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
.panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; }
.panel h3 { margin: 0 0 2px; font-size: 16px; color: var(--navy-900); }
.panel .panel-sub { margin: 0 0 12px; font-size: 13px; color: var(--text-secondary); }
.hbar { display: grid; grid-template-columns: 170px 1fr 34px; align-items: center; gap: 10px; padding: 3px 0; cursor: pointer; border-radius: 6px; }
.hbar:hover { background: #eef3fb; }
.hbar .hb-label { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .hb-track { height: 14px; position: relative; }
.hbar .hb-fill { height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .hb-val { font-size: 13px; color: var(--text-primary); font-variant-numeric: tabular-nums; text-align: right; }
.cols { display: flex; align-items: flex-end; gap: 2px; height: 190px; border-bottom: 1px solid #cfd3da; padding-top: 10px; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.col .bar { background: var(--series-1); border-radius: 4px 4px 0 0; min-height: 2px; }
.col:hover .bar { background: var(--navy-600); }
.col-labels { display: flex; gap: 2px; margin-top: 6px; }
.col-labels span { flex: 1; text-align: center; font-size: 10.5px; color: var(--text-muted); }
.tooltip { position: fixed; z-index: 3000; pointer-events: none; background: #fff; color: var(--text-primary); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); border-radius: 10px; padding: 8px 12px; font-size: 13px; opacity: 0; transition: opacity .1s; max-width: 260px; }
.tooltip strong { display: block; }

/* ---------- Filters & results ---------- */
.toolbar { position: sticky; top: 58px; z-index: 900; background: rgba(244, 246, 250, .96); backdrop-filter: blur(6px);
  padding: 12px 0; border-bottom: 1px solid var(--border); }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input[type=search] { flex: 1 1 260px; padding: 10px 14px; border-radius: 10px; border: 1px solid #cfd3da; font-size: 15px; }
.toolbar select { padding: 9px 12px; border-radius: 10px; border: 1px solid #cfd3da; background: #fff; font-size: 14px; }
.chip { border: 1px solid #cfd3da; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text-secondary); }
.chip[aria-pressed="true"] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.chip.reset { border-style: dashed; }
.result-meta { margin: 16px 0 12px; font-size: 14px; color: var(--text-secondary); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex;
  flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card.flash { animation: flash 1.6s; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: none; } }
.card-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.3; color: var(--navy-900); }
.card p.summary { margin: 0; font-size: 14.5px; color: #2b2b29; }
.card .note { font-size: 13px; color: var(--navy-700); background: #eef3fb; border-radius: 8px; padding: 6px 10px; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--text-muted); }
.card-foot .money { font-weight: 700; color: var(--text-primary); }
.card-foot a { font-weight: 600; }
.card-foot button.linkish { background: none; border: 0; padding: 0; color: var(--navy-600); font-weight: 600; text-decoration: underline; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #f0efec; color: var(--text-secondary); border: 0; }
.tag:hover { background: var(--blue-100); color: var(--navy-700); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status svg { width: 13px; height: 13px; }
.status.completed { background: #e3f5e3; color: var(--good-text); }
.status.in-progress, .status.approved { background: #e5effc; color: var(--navy-700); }
.status.upcoming, .status.pending, .status.announced, .status.opening-soon { background: #fff4d6; color: #7a5200; }
.status.proposed { background: #f3eefb; color: #4a3aa7; }
.role { font-size: 12px; font-weight: 700; color: var(--navy-900); background: var(--gold); padding: 3px 9px; border-radius: 999px; }
.role.quiet { background: #f0efec; color: var(--text-secondary); font-weight: 600; }
.auto-badge { font-size: 11px; color: var(--text-muted); border: 1px dashed #cfd3da; border-radius: 999px; padding: 1px 8px; }
mark { background: #ffe58a; padding: 0 1px; border-radius: 3px; }
.empty { text-align: center; padding: 50px 20px; color: var(--text-secondary); background: var(--card); border-radius: var(--radius); border: 1px dashed #cfd3da; }
.more { display: block; margin: 20px auto 0; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--navy-600); background: #fff; color: var(--navy-700); font-weight: 700; }

/* ---------- Map ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }
#map { height: 560px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); z-index: 1; }
.map-side { display: flex; flex-direction: column; gap: 12px; }
.legend-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14px; }
.legend-row label { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; }
.legend-row .n { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.mk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.mk.hollow { background: #fff !important; border-width: 3px; }
.mk.dashed { outline: 2px dashed currentColor; outline-offset: 1px; }
.mk-wrap { background: none; border: 0; }
.leaflet-popup-content { font-family: inherit; font-size: 13.5px; margin: 12px 14px; }
.leaflet-popup-content h4 { margin: 0 0 4px; font-size: 15px; color: var(--navy-900); }
.leaflet-popup-content p { margin: 4px 0; }
.status-legend { font-size: 13px; color: var(--text-secondary); display: grid; gap: 6px; }
.status-legend div { display: flex; align-items: center; gap: 8px; }

/* ---------- About / footer ---------- */
.about { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.about .panel p { font-size: 14px; color: var(--text-secondary); }
footer { margin-top: 50px; background: var(--navy-900); color: #b9cbe6; font-size: 13px; padding: 28px 0; }
footer a { color: #fff; }

/* ---------- Modal ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; max-width: 680px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(13, 31, 60, .55); }
.modal-head { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 22px 24px; position: relative; }
.modal-head h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.25; }
.modal-body { padding: 20px 24px 24px; display: grid; gap: 12px; font-size: 15px; }
.modal-close { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 10px; width: 36px; height: 36px; font-size: 20px; }
.src-list { margin: 0; padding-left: 18px; font-size: 14px; }

@media print {
  .topnav, .toolbar, #map, .search-box, .search-hints { display: none !important; }
  .hero { color: #000; background: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Seal & portrait ---------- */
.brand-seal { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(242, 182, 50, .7); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero-portrait { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.portrait-ring { position: relative; width: 300px; height: 300px; border-radius: 50%; padding: 6px;
  background: linear-gradient(140deg, var(--gold), #ffe39a 45%, #c8102e); box-shadow: var(--shadow-lg); }
.portrait { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid var(--navy-800); }
.portrait-seal { position: absolute; right: -26px; bottom: -14px; width: 128px; height: 128px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); border: 3px solid #fff; }
.hero-portrait figcaption { text-align: center; line-height: 1.35; }
.hero-portrait figcaption strong { display: block; font-size: 19px; color: #fff; }
.hero-portrait figcaption span { font-size: 14px; color: #b9cbe6; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-portrait { order: -1; }
  .portrait-ring { width: 200px; height: 200px; }
  .portrait-seal { width: 88px; height: 88px; right: -18px; bottom: -8px; }
}
.footer-grid { display: flex; gap: 18px; align-items: center; }
.footer-seal { width: 64px; height: 64px; border-radius: 50%; background: #fff; flex: none; }
@media print { .hero-portrait { display: none; } }
.hero-text { min-width: 0; }

/* ---------- Social media ---------- */
.follow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.follow-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700;
  font-size: 14px; color: #fff; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.follow-btn svg { width: 18px; height: 18px; }
.follow-btn.ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.follow-btn.yt { background: #e00000; }
.follow-btn:hover { color: #fff; filter: brightness(1.08); }
.follow.small .follow-btn { padding: 5px 11px; font-size: 12.5px; }
.follow.small { justify-content: flex-start; margin-top: 10px; }
.sub-head { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--navy-800); margin: 22px 0 12px; }
.sub-head svg { width: 22px; height: 22px; }
.yt-head svg { color: #e00000; }
.ig-head svg { color: #dd2a7b; }
.video-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.video { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none;
  color: var(--text-primary); display: flex; flex-direction: column; transition: transform .15s; }
.video:hover { transform: translateY(-3px); color: var(--text-primary); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 36px; border-radius: 10px;
  background: rgba(224, 0, 0, .92); color: #fff; display: grid; place-items: center; font-size: 16px; }
.v-title { font-weight: 700; padding: 12px 14px 4px; line-height: 1.3; }
.v-meta { font-size: 13px; color: var(--text-muted); padding: 0 14px 14px; margin-top: auto; }
.ig-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ig-post { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ig-post:hover img { transform: scale(1.05); }
.ig-post .play { background: rgba(0, 0, 0, .6); }
.ig-cap { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; color: #fff; font-size: 13px; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); opacity: 0; transition: opacity .2s; }
.ig-cap em { display: block; font-style: normal; opacity: .8; margin-top: 4px; font-size: 12px; }
.ig-post:hover .ig-cap, .ig-post:focus .ig-cap { opacity: 1; }
.ig-follow { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text-secondary); max-width: 640px; }
.ig-follow strong { color: var(--text-primary); }
.ig-badge { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.ig-badge svg { width: 28px; height: 28px; }
.ig-follow .go { margin-left: auto; font-weight: 700; color: #dd2a7b; white-space: nowrap; }
@media print { #social, .follow { display: none; } }

/* ---------- Emergency & incident tracker ---------- */
.inc-month { font-weight: 600; color: var(--text-secondary); display: flex; gap: 8px; align-items: center; }
.inc-month select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid #cfd3da; background: #fff; }
.callout-911 { background: #fdecec; border-left: 4px solid var(--critical); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.inc-live { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14.5px; }
.inc-live.warn { background: #fff4d6; border-left: 4px solid var(--warning); }
.inc-live.ok { background: #e8f6ef; border-left: 4px solid #1baf7a; }
.inc-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.inc-stat { border-top: 4px solid; }
.inc-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.inc-side { display: grid; gap: 16px; }
@media (max-width: 860px) { .inc-layout { grid-template-columns: minmax(0, 1fr); } }
.inc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.inc-filter .chip { font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid #cfd3da; background: #fff; cursor: pointer; }
.inc-filter .chip[aria-pressed="true"] { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.inc-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; }
.inc-row { display: flex; gap: 12px; padding: 12px 4px; border-top: 1px solid #eceef2; }
.inc-row:first-child { border-top: 0; }
.inc-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; }
.inc-t { font-weight: 700; }
.inc-d { font-size: 13.5px; color: var(--text-secondary); }
.inc-a { display: flex; gap: 14px; font-size: 13px; margin-top: 4px; }
.inc-a .linkish { background: none; border: 0; padding: 0; color: var(--navy-600); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.inc-links { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.inc-links li { margin: 6px 0; }
#inc-chart .col { cursor: pointer; }
#inc-chart .col.on .bar { background: var(--navy-800); }
.inc-sources { margin-top: 14px; }
.inc-mk { box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.4); }
@media print { #inc-live { display: none; } }

[hidden] { display: none !important; }
