/* Palette roles. Dark values are declared under both the OS media query and the
   explicit theme stamp so a viewer's toggle wins in either direction. */
:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --plane: #f9f9f7;
  --ink-1: #0b0b0b;
  --ink-2: #52514e;
  --ink-muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-critical: #d03b3b;
  --band-elevated: rgba(250, 178, 25, 0.10);
  --band-systemic: rgba(208, 59, 59, 0.10);
  --band-normal: rgba(137, 135, 129, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --plane: #0d0d0d;
    --ink-1: #ffffff;
    --ink-2: #c3c2b7;
    --ink-muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --series-1: #3987e5;
    --series-2: #d95926;
    --band-elevated: rgba(250, 178, 25, 0.13);
    --band-systemic: rgba(208, 59, 59, 0.15);
    --band-normal: rgba(137, 135, 129, 0.10);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-1: #1a1a19;
  --plane: #0d0d0d;
  --ink-1: #ffffff;
  --ink-2: #c3c2b7;
  --ink-muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --series-1: #3987e5;
  --series-2: #d95926;
  --band-elevated: rgba(250, 178, 25, 0.13);
  --band-systemic: rgba(208, 59, 59, 0.15);
  --band-normal: rgba(137, 135, 129, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-block: 0;
  background: var(--plane);
  color: var(--ink-1);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; }

header.chrome { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding: 2px 0 8px; border-bottom: 1px solid var(--border); }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink-1); text-decoration: none; white-space: nowrap; }
.brand-tag { color: var(--ink-muted); font-size: 0.78rem; white-space: nowrap; }
header.chrome .topnav { padding: 0; margin-left: 10px; }
header.chrome .theme { margin-left: auto; }
@media (max-width: 760px) { .brand-tag { display: none; } header.chrome .topnav { margin-left: 0; flex-basis: 100%; gap: 14px; order: 3; } header.chrome .theme { margin-left: auto; order: 2; } }
header.masthead { padding-block: 14px 6px; }
.headrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.headrow h1 { margin: 0; }
.headin { font-size: 1.5rem; color: var(--ink-2); letter-spacing: -0.01em; }
select.inline-select { font: inherit; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--series-1);
  background: transparent; border: 0; border-bottom: 2px dotted var(--series-1); border-radius: 0; padding: 0 24px 1px 0; margin: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; max-width: 100%; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%232a78d6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 14px; }
select.inline-select:focus-visible { outline: 2px solid var(--series-1); outline-offset: 3px; }
.inline-select-probe { position: absolute; visibility: hidden; white-space: nowrap; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.rangebtns.compact { margin-left: auto; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; align-self: center; flex-wrap: nowrap; }
.rangebtns.compact button { border: 0; border-radius: 0; padding: 5px 11px; font-size: 0.8rem; font-weight: 500; background: var(--surface-1); color: var(--ink-2); }
.rangebtns.compact button + button { border-left: 1px solid var(--border); }
.rangebtns.compact button[aria-pressed="true"] { background: var(--series-1); color: #fff; }
.intro { margin: 8px 0 4px; font-size: 0.95rem; max-width: 72ch; }
h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.sub { color: var(--ink-2); margin: 0; font-size: 0.9rem; }

.controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  padding: 12px; margin-bottom: 20px;
  background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 10px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 200px; }
.field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
select, button {
  font: inherit; color: var(--ink-1); background: var(--surface-1);
  border: 1px solid var(--axis); border-radius: 7px; padding: 7px 9px; min-width: 0;
}
button { cursor: pointer; }
button[aria-pressed="true"] { border-color: var(--series-1); color: var(--series-1); font-weight: 600; }
.rangebtns { display: flex; gap: 5px; flex-wrap: wrap; }
.rangebtns button { padding: 7px 11px; }
.controls .hint { flex-basis: 100%; margin: 0; font-size: 0.78rem; color: var(--ink-muted); }
.period-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--series-1); border: 1px solid var(--series-1); }
.period-tag.fixed { color: var(--ink-muted); border-color: var(--axis); }
.period-tag:empty { display: none; }

.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; margin-bottom: 18px;
}
.card > h2 { font-size: 1rem; margin: 0 0 2px; }
.card > .note { color: var(--ink-2); font-size: 0.83rem; margin: 0 0 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--border); border-radius: 9px; padding: 13px; }
.tile h3 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
.tile .big { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.tile .unit { font-size: 0.85rem; font-weight: 400; color: var(--ink-2); }
.tile dl { margin: 10px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 0.83rem; }
.tile dt { color: var(--ink-2); }
.tile dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.verdict { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; margin-top: 9px; }
.verdict .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.facets { display: grid; gap: 18px; }
.facet h3 { margin: 0 0 2px; font-size: 0.86rem; }
.facet .facet-sub { margin: 0 0 6px; font-size: 0.78rem; color: var(--ink-muted); }
.facet .facet-legend { margin: 2px 0 6px; font-size: 0.76rem; gap: 10px; }
.facet .gapfill { fill-opacity: var(--gap-alpha); stroke: none; pointer-events: none; }
svg { display: block; width: 100%; height: auto; overflow: visible; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.axisline { stroke: var(--axis); stroke-width: 1; }
.tick { fill: var(--ink-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.bandlabel { fill: var(--ink-muted); font-size: 9.5px; paint-order: stroke; stroke: var(--surface-1); stroke-width: 3px; stroke-linejoin: round; }
.serieslabel { font-size: 10.5px; font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .nowrap { white-space: nowrap; }
.swatch { width: 14px; height: 3px; border-radius: 2px; flex: none; }

table { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
th, td { text-align: right; padding: 5px 7px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; font-variant-numeric: normal; }
th { color: var(--ink-muted); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tablewrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.partial { color: var(--ink-muted); font-style: italic; }

.tooltip {
  position: fixed; pointer-events: none; z-index: 20; opacity: 0;
  transition: opacity 90ms; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-size: 0.8rem; box-shadow: 0 5px 18px rgba(0,0,0,0.16); min-width: 172px;
}
.tooltip h4 { margin: 0 0 6px; font-size: 0.78rem; color: var(--ink-muted); font-weight: 600; }
.tooltip dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.tooltip dt { color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.tooltip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tooltip .tip-what { font-size: 0.7rem; color: var(--ink-muted); margin: -4px 0 4px; }
.tooltip .tip-series { margin-top: 5px; }
.tooltip .tip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.tooltip .tip-head span { display: flex; align-items: center; gap: 5px; color: var(--ink-2); }
.tooltip .tip-head b { font-size: 0.98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tooltip .tip-sub { font-size: 0.71rem; color: var(--ink-muted); padding-left: 17px; }
.tooltip .tip-city { border-top: 1px solid var(--border); margin-top: 7px; padding-top: 5px; }
.tooltip .tip-city b { font-weight: 600; color: var(--ink-2); }
.facet .hoverdot { pointer-events: none; }
.facet .eqdot { cursor: default; }

footer.method { color: var(--ink-2); font-size: 0.79rem; line-height: 1.6; }
footer.method a { color: var(--series-1); }
footer.method h2 { font-size: 0.9rem; color: var(--ink-1); margin: 0 0 6px; }

@media (max-width: 560px) {
  .wrap { padding: 16px 16px 48px; }
  h1 { font-size: 1.25rem; }
  .headin, select.inline-select, .inline-select-probe { font-size: 1.25rem; }
  .rangebtns.compact { margin-left: 0; }
  .tile .big { font-size: 1.5rem; }
}

/* ---- additions: nav, headline, bars, heatmap ---- */
.sectionnav {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px;
  font-size: 0.76rem; position: sticky; top: 0; z-index: 5;
  background: var(--plane); padding: 8px 0; border-bottom: 1px solid var(--border);
}
.sectionnav a { color: var(--ink-2); text-decoration: none; padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; }
.sectionnav a:hover { color: var(--series-1); border-color: var(--series-1); }
section[id], footer[id] { scroll-margin-top: 44px; }

.headline .lede { font-size: 1.12rem; line-height: 1.45; margin: 0 0 6px; }
.headline .lede strong { font-weight: 600; }
.subhead { font-size: 0.86rem; margin: 18px 0 2px; }
.inline-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .twocol { grid-template-columns: 1fr; } }

/* ordinal blue ramp (stages / outcomes) and sequential ramp (heatmap) */
:root {
  --ord-1: #86b6ef; --ord-2: #2a78d6; --ord-3: #104281; --ord-4: #0d366b;
  --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5;
  --seq-5: #256abf; --seq-6: #184f95; --seq-7: #0d366b;
  --cell-empty: #eeede8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ord-1: #86b6ef; --ord-2: #3987e5; --ord-3: #1c5cab; --ord-4: #cde2fb;
    --seq-1: #b7d3f6; --seq-2: #86b6ef; --seq-3: #5598e7; --seq-4: #3987e5;
    --seq-5: #256abf; --seq-6: #1c5cab; --seq-7: #184f95;
    --cell-empty: #262624;
  }
}
:root[data-theme="dark"] {
  --ord-1: #86b6ef; --ord-2: #3987e5; --ord-3: #1c5cab; --ord-4: #cde2fb;
  --seq-1: #b7d3f6; --seq-2: #86b6ef; --seq-3: #5598e7; --seq-4: #3987e5;
  --seq-5: #256abf; --seq-6: #1c5cab; --seq-7: #184f95;
  --cell-empty: #262624;
}

.hbar-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: center; margin: 5px 0; }
.hbar-row .lbl { font-size: 0.8rem; color: var(--ink-2); text-align: right; }
.hbar-row .lbl b { color: var(--ink-1); font-weight: 600; }
.hbar-row .lbl .headline { color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar { display: flex; height: 22px; gap: 2px; background: transparent; }
.hbar .seg { height: 100%; border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: #fff; overflow: hidden; white-space: nowrap; min-width: 0; }
.hbar .seg.light { color: var(--ink-1); }
.hbar .seg { container-type: inline-size; }
@container (max-width: 30px) { .seg-txt { display: none; } }
.hbar-under { grid-column: 2; font-size: 0.74rem; color: var(--ink-muted); margin-top: -2px; }
.priority-block { margin: 10px 0 16px; }
.priority-block h4 { margin: 0 0 4px; font-size: 0.8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.swatch.sq { width: 12px; height: 12px; border-radius: 3px; }

table.bars td .bar { display: inline-block; height: 9px; border-radius: 2px; background: var(--series-1); vertical-align: middle; margin-right: 6px; }
table.bars td.num { white-space: nowrap; }
.muted { color: var(--ink-muted); }
.pos { color: var(--status-critical); }
.neg { color: #006300; }
:root[data-theme="dark"] .neg, :root:not([data-theme="light"]) .neg { color: #0ca30c; }

.heatgrid { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; font-size: 10px; }
.heatgrid .hl { color: var(--ink-muted); text-align: center; align-self: end; }
.heatgrid .dl { color: var(--ink-muted); align-self: center; }
.heatgrid .cell { aspect-ratio: 1 / 1; border-radius: 2px; background: var(--cell-empty); min-width: 0; }
.heatgrid .cell.thin, .swatch.thin { background: repeating-linear-gradient(45deg, var(--ink-muted), var(--ink-muted) 2px, var(--cell-empty) 2px, var(--cell-empty) 5px); opacity: .55; }
.ramp { display: inline-flex; gap: 1px; margin: 0 6px; vertical-align: middle; }
.ramp i { width: 14px; height: 10px; display: inline-block; }
@media (max-width: 560px) { .heatgrid { font-size: 8px; gap: 1px; } .hbar-row { grid-template-columns: 90px 1fr; } }
/* grid children default to min-width:auto, which lets a wide table push the
   column past the viewport instead of scrolling inside its own wrapper */
.twocol > div, .card, .tablewrap { min-width: 0; }
.tablewrap { max-width: 100%; }
.topnav { display: flex; gap: 18px; font-size: 0.82rem; padding: 6px 0 2px; }
.topnav a { color: var(--ink-2); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.topnav a[aria-current="page"] { color: var(--ink-1); border-bottom-color: var(--series-1); font-weight: 600; }
.topnav .theme { margin-left: auto; padding: 2px 9px; font-size: 0.76rem; color: var(--ink-2);
  background: transparent; border: 1px solid var(--border); border-radius: 6px; line-height: 1.5; white-space: nowrap; }
.topnav .theme:hover { color: var(--ink-1); border-color: var(--axis); }
tr.highlight td { background: rgba(42, 120, 214, 0.08); font-weight: 600; }
/* crime page: ranking column alignment and full-height ranking */
table td.left, table th.left { text-align: left; font-variant-numeric: normal; }
.tablewrap.tall { max-height: none; }
@media (max-width: 560px) { table.bars td .bar { max-width: 40px; } }
.banner { background: var(--band-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 0.83rem; margin-bottom: 14px; }
.banner:empty { display: none; }

/* ---- map ---- */
.mapwrap { height: clamp(420px, 72vh, 760px); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface-1); }
.zoomwrap { height: clamp(320px, 56vh, 560px); margin-bottom: 14px; }
.mapwrap .maplibregl-ctrl-attrib { font-size: 10px; }
.mapwrap .maplibregl-ctrl-attrib a { color: var(--ink-2); }
.mapwrap .maplibregl-ctrl-group { box-shadow: 0 0 0 1px var(--border); }
.mapwrap .maplibregl-cooperative-gesture-screen { font-size: 0.9rem; }
:root {
  --div-1: #1c5cab; --div-2: #3987e5; --div-3: #9ec5f4; --div-4: #d9d8d2;
  --div-5: #f2a29f; --div-6: #e34948; --div-7: #a8221f;
  --fill-alpha: 0.28; --gap-alpha: 0.13;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --div-1: #3987e5; --div-2: #6da7ec; --div-3: #b7d3f6; --div-4: #5a5955;
  --div-5: #f2a29f; --div-6: #e66767; --div-7: #c23c3b; --fill-alpha: 0.32; --gap-alpha: 0.2; } }
:root[data-theme="dark"] {
  --div-1: #3987e5; --div-2: #6da7ec; --div-3: #b7d3f6; --div-4: #5a5955;
  --div-5: #f2a29f; --div-6: #e66767; --div-7: #c23c3b; --fill-alpha: 0.32; --gap-alpha: 0.2; }
.divramp { display: inline-flex; gap: 1px; margin: 0 6px; vertical-align: middle; }
.divramp i { width: 16px; height: 10px; display: inline-block; }

/* Areas compared */
table.compare th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.compare th.sortable:hover { color: var(--series-1); }
table.compare td.num { white-space: nowrap; text-align: right; }
table.compare tr.cityrow td { font-weight: 600; border-bottom: 2px solid var(--axis); }
table.compare tr.selected td { background: var(--band-normal); }
table.compare tr.compared td { background: rgba(235, 104, 52, 0.10); }
table.compare td a { color: var(--ink-1); text-decoration: none; border-bottom: 1px dotted var(--axis); }
table.compare td a:hover { color: var(--series-1); }

/* One intersection's trend, opened from the busiest table */
table#ix-table button.ixlink { background: none; border: 0; padding: 0; font: inherit; color: var(--series-1); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; text-align: left; }
table#ix-table button.ixlink:hover { text-decoration-style: solid; }
table#ix-table tr.ixsel td { background: rgba(235,104,52,0.10); }
.ixdetail { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--grid); }
.ixdetail .ixhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ixdetail .ixhead h3 { margin: 0; font-size: 0.95rem; }
.ixdetail .ixhead .where { color: var(--ink-2); font-weight: 400; }
.ixdetail .ixhead button { padding: 5px 10px; font-size: 0.8rem; }
.ixdetail table.ixsum { margin: 8px 0 14px; max-width: 640px; }
.ixdetail table.ixsum td { white-space: nowrap; }
.ixdetail table.ixsum td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ixdetail .chart-title { font-size: 0.8rem; color: var(--ink-2); margin: 0 0 4px; }
.ixdetail svg { width: 100%; height: auto; display: block; }
.ixdetail table.ct th, .ixdetail table.ct td { padding: 4px 8px; }
.ixfind { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; }
.ixfind label { color: var(--ink-2); }
.ixfind input { padding: 6px 9px; border: 1px solid var(--grid); border-radius: 6px; background: var(--surface-1); color: var(--ink-1); font: inherit; min-width: 200px; }
#ixfind-list { display: flex; flex-wrap: wrap; gap: 6px 14px; flex-basis: 100%; }
#ixfind-list button.ixlink { background: none; border: 0; padding: 0; font: inherit; color: var(--series-1); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }

/* stage medians: one bar per stage, the citywide value as a thin ghost bar beneath */
.scope { margin: 0 0 4px; }
.stage-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.stage-row .lbl { font-size: 0.8rem; color: var(--ink-2); text-align: right; }
.stage-row .lbl b { color: var(--ink-1); font-weight: 600; }
.stage { display: grid; grid-template-columns: 78px 1fr 92px; gap: 8px; align-items: center; font-size: 0.78rem; margin: 2px 0; }
.stage .sl { color: var(--ink-2); }
.stage .sb { position: relative; height: 14px; }
.stage .sb i { position: absolute; left: 0; top: 0; height: 9px; border-radius: 2px; display: block; }
.stage .sb i.ghost { top: 10px; height: 3px; background: var(--axis); opacity: 0.7; }
.stage .sv { font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch.sq.ghost { background: var(--axis); height: 3px; }
@media (max-width: 560px) { .stage-row { grid-template-columns: 1fr; gap: 2px; } .stage-row .lbl { text-align: left; } .stage { grid-template-columns: 70px 1fr 80px; } }

/* recent calls */
.cadrow { display: flex; gap: 6px; }
.cadrow input { flex: 1 1 auto; min-width: 0; }
.controls .check { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-2); align-self: center; }
.controls .reload { align-self: center; }
table.calls td.nowrap, table.timeline td.nowrap { white-space: nowrap; }
table.calls td.notes { max-width: 260px; font-size: 0.8rem; color: var(--ink-2); }
table.calls tr.pri-A td:nth-child(5) { font-weight: 700; color: var(--status-critical); }
table.calls tr.onview td { color: var(--ink-muted); }
table.calls .over { color: var(--status-critical); font-weight: 600; }
table.calls button.ixlink { background: none; border: 0; padding: 0; font: inherit; color: var(--series-1); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 0.68rem; padding: 0 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-muted); vertical-align: 1px; }
#cadcard .ixhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#cadcard .ixhead h2 { margin: 0; }
#cadcard .ixhead .where { color: var(--ink-2); font-weight: 400; font-size: 0.9rem; }
#cadcard .ixhead button { padding: 5px 10px; font-size: 0.8rem; }
.ixsum-line { margin: 8px 0; font-size: 0.92rem; }
table.timeline { max-width: 520px; }
table.calls tr.daybreak td { background: var(--surface-2, var(--surface-1)); color: var(--ink-2); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 8px; }
table.calls td .what { display: none; }
@media (max-width: 640px) {
  table.calls .c-cad, table.calls .c-onscene, table.calls .c-notes, table.calls .c-disp, table.calls .c-type { display: none; }
  table.calls td .what { display: block; font-size: 0.74rem; color: var(--ink-2); text-transform: capitalize; }
  table.calls tr[data-cad] { cursor: pointer; }
  table.calls td, table.calls th { padding: 6px 5px; font-size: 0.82rem; }
  table.calls th .lbl-full { display: none; }
}
@media (min-width: 641px) { table.calls th .lbl-short { display: none; } }

/* pages on this site, at the foot of every page */
.sitemapnav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 6px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.82rem; }
.sitemapnav a { color: var(--ink-2); text-decoration: none; }
.sitemapnav a:hover { color: var(--series-1); text-decoration: underline; }
