/* Crime map and call log (Nov 2026). Loaded after site.css, only by /crime-info/, scoped to main.crimepg.cq.
   The map fills the first screen with the title, three counts and the search dock on it. Under it, on the
   same navy: the 30-day sentence, the color key, last night's calls and calls by hour. Recent trends and the
   call log sit on a warm sheet that slides over the navy; the year in review closes on a blue band.
   Every panel height on the map is fixed here, so nothing moves when the data arrives and the layout does
   not depend on /js/crime-2026.js (that file only adds the sliding highlights, the filter sheets' focus
   handling, the day-chart drag and the pinned day label). All motion is off under prefers-reduced-motion. */
.crimepg.cq {
  --q-deep: #060d1a; --q-navy: #0a1626; --q-panel: #0e1c31; --q-panel-2: #13253d;
  --q-line: rgba(255, 255, 255, 0.1); --q-line-2: rgba(255, 255, 255, 0.18);
  --q-on: #eef2f7; --q-on-2: #c3cedb; --q-on-3: #9fb0c4; --q-gold: #d9b675; --q-blue: #9ccbf5;
  --q-tile: rgba(8, 18, 34, 0.86); --q-r: 22px; --q-r2: 14px;
  --q-ease: cubic-bezier(.2, .7, .2, 1);
  --q-pad: max(16px, calc((100% - 1380px) / 2));
  --bf-navy: #0a1626; --bf-navy-2: #102039; --bf-steel: #16324f; --bf-blue: #1c4e8a; --bf-ink: #122636; --bf-muted: #4f5d6a;
  --bf-warm: #f3eee4; --bf-sand: #e8e0cf; --bf-sand-line: #cfc3a9; --bf-r: 22px; --bf-r-sm: 14px;
  --cx-paper: #f3eee4;
  /* the dock's row on the map (its height plus the gap under it) and where pinned labels stop */
  --cq-b: 158px; --cq-stick: var(--nav-h, 75px);
  display: block; background: var(--q-deep); color: var(--q-on-2); overflow-x: clip;
}
.crimepg.cq :focus-visible { outline: 2px solid var(--q-gold); outline-offset: 2px; }
.crimepg.cq .cx-paper :focus-visible { outline-color: var(--bf-blue); }

/* ---------- segmented controls: one highlight that slides (class set by the page script) ---------- */
.crimepg.cq :is(.seg, #f-range) { position: relative; --sl-bg: #fff; }
.crimepg.cq :is(.seg, #f-range).cq-slide::before { content: ""; position: absolute; left: 0; top: 0; width: var(--sw); height: var(--sh);
  transform: translate(var(--sx), var(--sy)); border-radius: 10px; background: var(--sl-bg); box-shadow: 0 1px 3px rgba(3, 8, 18, 0.28); pointer-events: none;
  transition: transform .3s var(--q-ease), width .3s var(--q-ease); }
.crimepg.cq :is(.seg, #f-range) > button { position: relative; z-index: 1; }

/* ============================================================
   The stage
   ============================================================ */
.crimepg.cq .cq-stage { padding: 0; background: var(--q-deep); color: var(--q-on-2); }
.crimepg.cq .cq-stage .map-shell { display: block; position: relative; z-index: 3; isolation: isolate; margin: 0; border: 0; border-radius: 0; background: var(--q-deep); overflow: visible; }
.crimepg.cq .map-shell > * { order: 0; }
/* rows: title panel, open map, dock, then the 3D map button (under the map on phones) */
.crimepg.cq .cq-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(150px, 1fr) var(--cq-b) auto; min-height: calc(clamp(540px, 100svh - 218px, 680px) + 76px); }
.crimepg.cq .cq-box > .mapbox-wrap { grid-area: 1 / 1 / 4 / -1; position: relative; min-height: 0; overflow: hidden;
  background-color: #081120;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(120% 80% at 30% 45%, #12294a 0%, #081120 70%);
  background-size: 44px 44px, 44px 44px, 100% 100%; }
.crimepg.cq .cq-box #crimemap { position: absolute; inset: 0; width: auto; height: auto; background: transparent; }
.crimepg.cq .mapbox-wrap:fullscreen { --cq-b: 0px; }
.crimepg.cq .mapbox-wrap:fullscreen #crimemap { height: 100vh; }
.crimepg.cq .map-vignette { background: radial-gradient(130% 100% at 50% 50%, rgba(6, 13, 26, 0) 55%, rgba(6, 13, 26, 0.5) 100%); }

/* title panel: breadcrumb, title, stamp, three counts. Every line has a fixed height. */
.crimepg.cq .cq-box > .cq-top { grid-area: 1 / 1; position: relative; z-index: 2; overflow: visible; padding: 4px var(--q-pad) 28px; pointer-events: none; color: var(--q-on);
  background: linear-gradient(180deg, rgba(6, 13, 26, 0.97) 0%, rgba(6, 13, 26, 0.93) 62%, rgba(6, 13, 26, 0.6) 86%, rgba(6, 13, 26, 0) 100%);
  transition: opacity .25s ease, visibility 0s; }
.crimepg.cq .cq-top a, .crimepg.cq .cq-top .dtile, .crimepg.cq .cq-top .cx-fresh { pointer-events: auto; }
.crimepg.cq .cq-top .crumbs { display: flex; align-items: center; height: 34px; margin: 0; padding: 0; font-size: 0.9375rem; }
.crimepg.cq .cq-top .crumbs ol { margin: 0; }
.crimepg.cq .cq-top .crumbs a { min-width: 44px; color: #fff; }
.crimepg.cq .cq-top .crumbs [aria-current] { color: var(--q-on-2); }
.crimepg.cq .cq-top .crumbs li:first-child a::after { inset: -12px -10px; min-width: 44px; min-height: 44px; }
.crimepg.cq .cq-top h1 { display: flex; align-items: center; height: 40px; margin: 0; color: #fff; font: 700 2.25rem/1 var(--display); letter-spacing: -0.005em; white-space: nowrap; }
.crimepg.cq .cq-top .cx-fresh { display: block; height: 38px; margin: 2px 0 10px; padding: 0; overflow: hidden; font-size: 0.8125rem; line-height: 19px; color: var(--q-on); font-variant-numeric: tabular-nums; }
.crimepg.cq .cq-top .cx-fresh > span { display: block; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crimepg.cq .cq-top .cx-fresh > span::before { display: none; }
.crimepg.cq .cq-top .cx-fresh > span:first-child:not(:only-child) { display: none; }
.crimepg.cq .cq-top .cx-fresh > .skeleton { width: 210px !important; max-width: 100%; height: 34px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.crimepg.cq .cq-top .cx-fresh .notice { margin: 0; padding: 4px 8px; font-size: 0.8125rem; line-height: 1.2; }
/* the Spanish title is longer: on phones it runs to two lines at the same size as the English one */
@media (max-width: 599px) { html[lang="es"] .crimepg.cq .cq-top h1 { height: auto; min-height: 40px; padding: 2px 0; white-space: normal; text-wrap: balance; } }

.crimepg.cq .cq-top .cx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; border: 0; min-height: 0; }
.crimepg.cq .cx-kpis .dtile { position: relative; display: flex; flex-direction: column; box-sizing: border-box; height: 90px; min-height: 0; margin: 0; padding: 9px 9px 0; overflow: hidden;
  border: 1px solid var(--q-line-2); border-radius: 16px; background: var(--q-tile); box-shadow: 0 10px 26px rgba(3, 8, 18, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.crimepg.cq .cx-kpis .dtile.skeleton { background: var(--q-tile); }
.crimepg.cq .dtile .dt-l { order: -1; margin: 0 0 4px; font: 600 0.75rem/15px var(--body); letter-spacing: 0; text-transform: none; color: var(--q-on-2); white-space: nowrap; }
.crimepg.cq .dtile .dt-n { font: 700 2.125rem/32px var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.005em; white-space: nowrap; }
.crimepg.cq .dtile .dt-note, .crimepg.cq .dtile .dt-yoy { margin-top: 4px; min-height: 0; font-size: 0.75rem; line-height: 15px; color: var(--q-on-2); }
/* phones and small tablets: each note is one short line (the date, "vs 2025"), so the three tiles match */
.crimepg.cq .cx-kpis .dtile :is(.dt-note, .dt-yoy) { display: block; overflow: hidden; max-height: 15px; white-space: nowrap; text-overflow: ellipsis; }
.crimepg.cq .dtile .ttag { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.75rem; font-weight: 600; line-height: 15px; white-space: inherit; }
@media (max-width: 768px) { .crimepg.cq .cx-kpis .cx-long { display: none; } .crimepg.cq .cx-kpis .cx-short { display: inline; } }
.crimepg.cq .dtile .ttag.up { color: #ffb4ab; } .crimepg.cq .dtile .ttag.dn { color: #92e0b6; } .crimepg.cq .dtile .ttag.flat { color: var(--q-on-2); }
.crimepg.cq .cx-kpis .dt-sparkwrap { display: none; }

/* the dock: street search, Filters and Watch */
.crimepg.cq .cq-box > .map-toolbar { grid-area: 3 / 1; position: relative; z-index: 5; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 10px;
  height: calc(var(--cq-b) - 8px); margin: 0 8px 8px; padding: 12px 12px 0; border: 0; border-radius: var(--q-r); background: none; }
.crimepg.cq .map-toolbar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1px solid var(--q-line-2); background: rgba(9, 20, 37, 0.94);
  box-shadow: 0 18px 44px rgba(3, 8, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.crimepg.cq .cq-dockhead { display: contents; }
/* phones: the title above already names the map; the dock's own heading stays for screen readers */
.crimepg.cq .cq-dockhead h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crimepg.cq .map-search { order: 1; flex: 1 1 100%; max-width: none; position: relative; }
.crimepg.cq .map-prompt { display: block; height: 17px; margin: 0 2px 6px; font: 600 0.8125rem/17px var(--body); color: var(--q-on); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crimepg.cq .map-search input { height: 48px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: var(--q-r2); background: #fff; color: #122636; font-size: 1rem; font-weight: 500; }
.crimepg.cq .map-search input::placeholder { color: #55626f; }
.crimepg.cq .map-search input:focus { outline: 2px solid var(--q-gold); outline-offset: 2px; }
.crimepg.cq .map-search .sug { top: auto; bottom: calc(100% + 8px); border: 0; border-radius: var(--q-r2); background: #fff; box-shadow: 0 -18px 48px rgba(3, 8, 18, 0.6); max-height: min(300px, 40vh); overflow-y: auto; }
.crimepg.cq .map-search .sug button { min-height: 44px; color: #122636; }
.crimepg.cq .map-search .sug button:hover, .crimepg.cq .map-search .sug button:focus-visible { background: #eceae4; color: #122636; }
.crimepg.cq .map-search .sug-empty { color: #4f5d6a; }
.crimepg.cq .map-disc { order: 2; flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--q-line-2); border-radius: var(--q-r2);
  background: rgba(255, 255, 255, 0.08); color: #fff; font: 600 0.9375rem var(--body); cursor: pointer; transition: background-color .18s ease, transform .18s var(--q-ease); }
.crimepg.cq .map-disc:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--q-line-2); }
.crimepg.cq .map-disc:active { transform: scale(.97); }
.crimepg.cq .map-disc[aria-expanded="true"]:not(.mt-watchbtn) { background: #fff; color: var(--q-navy); border-color: #fff; }
.crimepg.cq .mt-watchbtn[aria-expanded="true"] { border-color: var(--q-gold); background: rgba(255, 255, 255, 0.12); }
.crimepg.cq .mt-watchwrap { display: contents; }
/* Watch opens as a panel above the dock, so the dock keeps its height */
.crimepg.cq .map-watch { display: none; position: absolute; z-index: 40; left: 0; right: 0; top: auto; bottom: calc(100% + 8px); grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px;
  border: 1px solid var(--q-line-2); border-radius: 18px; background: #0b182b; box-shadow: 0 -18px 48px rgba(3, 8, 18, 0.7); }
.crimepg.cq .map-toolbar.watch-open .map-watch { display: grid; animation: none; }
.crimepg.cq .map-watch .mapplay { display: flex; width: auto; gap: 8px; align-items: center; min-height: 48px; margin: 0; padding: 0 12px; border: 1px solid var(--q-line); border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: var(--q-on); text-align: left; }
.crimepg.cq .map-watch .mapplay[hidden] { display: none; }
.crimepg.cq .map-watch .mapplay svg { flex: none; }
/* Cinema is off below the desktop width, so three options show: one row of three where they fit */
@media (min-width: 600px) and (max-width: 768px) { .crimepg.cq .map-watch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* phones: the list opens right above the Filters and Watch row, over the top of the dock, so it never reaches up into the count tiles */
@media (max-width: 599px) { .crimepg.cq .map-watch { bottom: calc(13px + 44px + 8px); } }
/* the busiest-block label and the map's own buttons step aside while the list is open over them */
@media (max-width: 768px) { .crimepg.cq .cq-box:has(.map-toolbar.watch-open) .map-hud { display: none; } }
.crimepg.cq .cq-box:has(.map-toolbar.watch-open) .mapbox-wrap :is(.maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-right),
.crimepg.cq .cq-box:has(.map-toolbar.watch-open) .mapbox-wrap :is(.maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-right) > .maplibregl-ctrl { visibility: hidden; }
/* the "now playing" dot sits on the button's corner, so the play mark, the word and the arrow keep their room */
.crimepg.cq .mt-watchbtn { position: relative; }
.crimepg.cq .mt-watchbtn svg { flex: none; }
.crimepg.cq .mt-watchbtn.is-on::after { position: absolute; top: 7px; right: 7px; }
.crimepg.cq .map-watch .mapplay small { display: none; }
.crimepg.cq .map-watch .mapplay.playing { border-color: var(--q-gold); background: rgba(217, 182, 117, 0.16); color: #fff; }
/* the play mark on the Watch button is gold: red is kept for things that need attention */
.crimepg.cq .mt-watchbtn svg { background: var(--q-gold); color: var(--q-navy); }
.crimepg.cq .map-toolbar .seg { display: flex; padding: 3px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, 0.1); overflow: visible; }
.crimepg.cq .map-toolbar .seg button { flex: 1 1 auto; min-width: 44px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--q-on); font: 600 0.875rem var(--body); white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.crimepg.cq .map-toolbar .seg button + button { border: 0; }
.crimepg.cq .map-toolbar .seg button:hover { background: transparent; color: #fff; }
.crimepg.cq .map-toolbar .seg button.on { background: #fff; color: var(--q-navy); }
.crimepg.cq .map-toolbar .seg.cq-slide button.on { background: transparent; }
.crimepg.cq .map-toolbar .mt-lbl, .crimepg.cq .map-toolbar label.mt-lbl { display: block; font: 600 0.8125rem/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--q-on-2); white-space: nowrap; }
.crimepg.cq .map-toolbar select { height: 50px; min-width: 0; width: 100%; border: 0; border-radius: 13px; background-color: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1rem; }
.crimepg.cq .mapreset { min-height: 44px; padding: 0 14px; border: 1px solid var(--q-line-2); border-radius: var(--q-r2); color: var(--q-on); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.crimepg.cq #map-count { font-size: 0.8125rem; color: var(--q-on-2); font-variant-numeric: tabular-nums; }
.crimepg.cq .cq-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crimepg.cq .cq-sheet-t { margin: 0; color: #fff; font: 600 1.0625rem/1.3 var(--body); }
.crimepg.cq .cq-done { min-height: 44px; min-width: 64px; margin-right: -8px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--q-gold); font: 600 1rem var(--body); cursor: pointer; }
.crimepg.cq .cq-done:hover { background: rgba(255, 255, 255, 0.08); }
.crimepg.cq .cq-catch { display: none; }
.crimepg.cq .cq-sheet:focus { outline: none; }

/* the full-screen 3D map: a solid white button */
.crimepg.cq .cx-3dlink { grid-area: 4 / 1; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; margin: 12px 16px; padding: 0 20px;
  border: 0; border-radius: var(--q-r2); background: #fff; color: #122636; font: 600 1.0625rem/1.2 var(--body); text-decoration: none; transition: background-color .18s ease, transform .18s var(--q-ease); }
.crimepg.cq .cx-3dlink:hover { background: var(--bf-sand); color: #122636; }
.crimepg.cq .cx-3dlink:active { transform: scale(.98); }
.crimepg.cq .cx-3dlink svg { width: 18px; height: 18px; flex: none; }

/* phones and small tablets: the map filters open as a bottom sheet */
@media (max-width: 768px) {
  .crimepg.cq .mt-filtersbtn { order: 2; } .crimepg.cq .mt-watchbtn { order: 3; }
  .crimepg.cq .cq-sheet { position: fixed; z-index: 96; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 14px; max-height: min(78svh, 560px); overflow-y: auto; overscroll-behavior: contain;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--q-line-2); border-radius: var(--q-r) var(--q-r) 0 0; background: #0d1b30; box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(104%); visibility: hidden; transition: transform .34s var(--q-ease), visibility 0s .34s; }
  .crimepg.cq .map-toolbar.adv-open .cq-sheet { transform: none; visibility: visible; transition: transform .34s var(--q-ease), visibility 0s; }
  .crimepg.cq .cq-sheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
  .crimepg.cq .map-toolbar.adv-open .cq-catch { display: block; position: fixed; z-index: 95; inset: 0; touch-action: none; }
  .crimepg.cq .cq-sheet .mt-filter, .crimepg.cq .map-toolbar.adv-open .mt-filter { display: flex; flex: none; order: 0; }
  .crimepg.cq .cq-sheet .map-adv, .crimepg.cq .map-toolbar.adv-open .map-adv { display: flex; flex-direction: column; align-items: stretch; gap: 14px; flex: none; order: 0; margin: 0; padding: 0; border: 0; background: none; }
  .crimepg.cq .cq-sheet .mt-group { display: flex; flex-direction: column; gap: 7px; }
  .crimepg.cq .cq-sheet .seg button { padding: 0 6px; }
  /* the category group keeps its own height (no leftover row basis), and two-option switches split in half */
  .crimepg.cq .cq-sheet #map-catwrap { flex: none; }
  .crimepg.cq .cq-sheet :is(#map-days .seg, .viewseg) button { flex: 1 1 0; min-width: 0; }
  .crimepg.cq .cq-sheet #map-count { order: 0; }
  .crimepg.cq .cq-sheet .mapreset { align-self: stretch; justify-content: center; min-height: 48px; }
}
/* The Spanish emergency ribbon wraps to more lines, so the stage starts lower: it gives the height back
   and the dock still ends inside the first screen. */
@media (max-width: 768px) {
  html[lang="es"] .crimepg.cq .cq-box { min-height: calc(clamp(540px, 100svh - 242px, 680px) + 76px); }
}
/* small phones */
@media (max-width: 374px) {
  .crimepg.cq .cq-box { grid-template-rows: auto minmax(120px, 1fr) var(--cq-b) auto; min-height: calc(clamp(510px, 100svh - 218px, 680px) + 76px); }
  html[lang="es"] .crimepg.cq .cq-box { min-height: calc(clamp(510px, 100svh - 272px, 680px) + 76px); }
  .crimepg.cq .cq-top h1 { font-size: 2.0625rem; }
  .crimepg.cq .dtile .dt-n { font-size: 1.9375rem; }
  .crimepg.cq .cx-kpis .dtile { padding: 9px 7px 0; }
  .crimepg.cq .cq-top .cx-kpis { gap: 6px; }
}

/* the map's own furniture is placed from the dock up, never from the title panel */
/* the zoom group, the info button and the busiest-block card all stop on the page gutter, like the counts above */
.crimepg.cq .mapbox-wrap .maplibregl-ctrl-top-right { top: auto; bottom: calc(var(--cq-b) + 46px); right: calc(var(--q-pad) - 10px); }
.crimepg.cq .mapbox-wrap .maplibregl-ctrl-bottom-right, .crimepg.cq .mapbox-wrap .maplibregl-ctrl-bottom-left { bottom: calc(var(--cq-b) + 4px); }
.crimepg.cq .mapbox-wrap .maplibregl-ctrl-bottom-right { right: calc(var(--q-pad) - 10px); }
.crimepg.cq .mapbox-wrap .maplibregl-ctrl-group { display: flex; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 24px rgba(3, 8, 18, 0.5); }
/* zoom in, zoom out and compass sit side by side at full touch size, so the group never reaches up into the counts */
.crimepg.cq .mapbox-wrap .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.crimepg.cq .mapbox-wrap .maplibregl-ctrl-group button + button { border-top: 0; border-left: 1px solid #d9dde2; }
.crimepg.cq .map-hud { border: 1px solid var(--q-line-2); border-radius: var(--q-r2); background: var(--q-tile); color: #fff; box-shadow: 0 12px 30px rgba(3, 8, 18, 0.45); }
.crimepg.cq .map-hud em { color: var(--q-gold); }
.crimepg.cq .map-hud span { color: var(--q-on-2); }
/* busiest block: a compact card at the map's bottom left, above the dock and clear of the zoom buttons.
   On phones a long block name or the Spanish line wraps inside the card instead of being cut off. */
.crimepg.cq .map-hud[hidden] { display: none; }
.crimepg.cq .map-hud:not([hidden]) { display: block; top: auto; right: auto; left: var(--q-pad); bottom: calc(var(--cq-b) + 12px); max-width: calc(100% - 172px); padding: 8px 12px;
  font: 600 0.9375rem/1.25 var(--body); overflow-wrap: anywhere; text-wrap: balance; }
.crimepg.cq .map-hud em { font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
.crimepg.cq .map-hud span { font-size: 0.8125rem; }
.crimepg.cq .cq-box:has(#map-play.playing) .map-hud, .crimepg.cq .cq-box:has(.block-report:not([hidden])) .map-hud,
body.bs-open .crimepg.cq .map-hud, body.cinema-on .crimepg.cq .map-hud { display: none; }
@media (max-width: 768px) {
  /* on phones the pinned blocks, the tour card and a popup use the same corner */
  .crimepg.cq .cq-box:has(.pin-tray:not([hidden])) .map-hud, .crimepg.cq .cq-box:has(.tour-card:not([hidden])) .map-hud, .crimepg.cq .cq-box:has(.maplibregl-popup) .map-hud { display: none; }
}
.crimepg.cq .map-daytag { top: auto; left: var(--q-pad); bottom: calc(var(--cq-b) + 12px); border-radius: var(--q-r2); }
.crimepg.cq .pin-tray { top: auto; left: var(--q-pad); bottom: calc(var(--cq-b) + 72px); }
.crimepg.cq .tour-card { bottom: calc(var(--cq-b) + 56px); border-radius: var(--q-r2); }
.crimepg.cq .map-hint { display: none; }
.crimepg.cq .cinema-brand { bottom: calc(var(--cq-b) + 40px); }
.crimepg.cq .block-report { z-index: 4; top: 10px; left: 8px; right: 8px; bottom: calc(var(--cq-b) + 16px); width: auto; max-height: none; border-radius: var(--q-r2); overflow-y: auto; }
/* a block card or popup takes the stage: the title panel fades out of its way (no layout change) */
.crimepg.cq .cq-box:has(.block-report:not([hidden])) .cq-top,
.crimepg.cq .cq-box:has(.maplibregl-popup) .cq-top,
body.bs-open .crimepg.cq .cq-top, body.cinema-on .crimepg.cq .cq-top { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
body.cinema-on .crimepg.cq .map-toolbar, body.cinema-on .crimepg.cq .cx-3dlink { visibility: hidden; }

/* ---------- under the stage: color key ---------- */
.crimepg.cq .map-shell > .map-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 4px; margin: 0; padding: 2px var(--q-pad) 4px; border: 0; background: var(--q-deep); color: var(--q-on-2); font-size: 0.8125rem; }
.crimepg.cq .map-shell > .map-legend[hidden] { display: none; }
.crimepg.cq .map-shell > .map-legend-heat:not([hidden]) { display: flex; align-items: center; gap: 12px; padding: 14px var(--q-pad); }
.crimepg.cq .map-legend button.lg, .crimepg.cq .map-legend button.lg:first-child { justify-content: flex-start; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid transparent; border-radius: 12px; color: var(--q-on); font: 500 0.875rem var(--body); }
.crimepg.cq .map-legend button.lg:hover { border-color: var(--q-line-2); }
.crimepg.cq .map-legend button.lg.on { border-color: rgba(217, 182, 117, 0.7); background: rgba(255, 255, 255, 0.07); color: #fff; }
.crimepg.cq .map-legend .sw { border-color: var(--q-deep); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.crimepg.cq .map-legend .lg-note { grid-column: 1 / -1; margin: 2px 0 0 10px; font-size: 0.8125rem; color: var(--q-on-2); }

/* ---------- the 30-day sentence, the jump row, the top call type ---------- */
.crimepg.cq .cq-brief { display: grid; gap: 22px; margin: 0; padding: 30px var(--q-pad) 8px; }
.crimepg.cq .cq-brief .cx-deckwrap { min-width: 0; }
.crimepg.cq .cq-brief .cx-deck.pulse-line { margin: 0; padding: 0; max-width: none; min-height: 300px; font-size: 1.125rem; line-height: 1.5; color: var(--q-on-2); }
.crimepg.cq .cq-brief .cx-deck.skeleton { border-radius: var(--q-r2); background: rgba(255, 255, 255, 0.05); }
.crimepg.cq .bf-big { display: block; max-width: 15em; font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(2.5rem, 1.35rem + 5.2vw, 4.75rem); line-height: 0.98; letter-spacing: -0.008em; text-wrap: balance; }
.crimepg.cq .bf-big strong { font: inherit; font-size: 1em; letter-spacing: inherit; color: var(--q-gold); font-variant-numeric: tabular-nums; }
.crimepg.cq .bf-cmp, .crimepg.cq .bf-cmp strong { color: #fff; }
.crimepg.cq .bf-more { display: block; max-width: 36em; margin-top: 18px; }
.crimepg.cq .bf-more strong { font: 700 1em/inherit var(--body); letter-spacing: 0; color: #fff; }
.crimepg.cq .cx-deck .pulse-note { display: block; margin-top: 10px; max-width: 46em; font-size: 0.875rem; line-height: 1.5; color: var(--q-on-3); }
.crimepg.cq .cq-brief-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
/* each button is as wide as its label needs, and every label stays on one line */
.crimepg.cq .bf-jump { display: flex; gap: 8px; margin: 0; }
.crimepg.cq .bf-jump a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 48px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--q-r2);
  background: var(--q-panel); color: #fff; font: 600 0.9375rem/1.15 var(--body); text-decoration: none; text-align: center; white-space: nowrap; transition: background-color .18s ease, color .18s ease; }
.crimepg.cq .bf-jump a:hover { background: #fff; border-color: #fff; color: #122636; }
.crimepg.cq .bf-jump svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* phones: labels only at every phone width; the Spanish labels step down a size so all three fit */
@media (max-width: 599px) { .crimepg.cq .bf-jump svg { display: none; } }
@media (max-width: 429px) { html[lang="es"] .crimepg.cq .bf-jump a { padding-inline: 8px; font-size: 0.875rem; } }
@media (max-width: 374px) { html[lang="es"] .crimepg.cq .bf-jump a { padding-inline: 6px; font-size: 0.8125rem; } }
/* beside the 30-day sentence the column is narrow: the three links stack as a short list, icon first */
@media (min-width: 769px) {
  .crimepg.cq .bf-jump { flex-direction: column; }
  .crimepg.cq .bf-jump a { justify-content: flex-start; gap: 12px; padding: 6px 16px; text-align: left; }
}
.crimepg.cq .cq-brief .dtile { position: relative; display: flex; flex-direction: column; min-height: 124px; margin: 0; padding: 16px 16px 14px; border: 1px solid var(--q-line); border-radius: 18px; background: var(--q-panel); box-shadow: inset 0 3px 0 #86d6aa; }
.crimepg.cq .cq-brief .dtile.skeleton { background: var(--q-panel); }
.crimepg.cq .cq-brief .dtile .dt-l { font-size: 0.875rem; line-height: 1.3; white-space: normal; }
.crimepg.cq .cq-brief .dtile .dt-n.dt-type { padding: 2px 0 0; font-size: 1.875rem; line-height: 1.05; white-space: normal; }
.crimepg.cq .cq-brief .dtile .dt-note { font-size: 0.875rem; line-height: 1.4; }
.crimepg.cq .cq-brief .dtile .dt-ctx { margin: 6px 0 0; max-width: none; font-size: 0.875rem; line-height: 1.45; color: var(--q-gold); }
.crimepg.cq .cq-brief .dtile .dt-ctx[hidden] { display: none; }
.crimepg.cq .cq-brief .cx-release, .crimepg.cq .cq-brief .cx-release:empty { display: block; min-height: 1.5em; margin: 0; padding: 0; border: 0; font-size: 0.875rem; line-height: 1.5; color: var(--q-on-3); }

/* ---------- last night's calls, calls by hour, notes ---------- */
.crimepg.cq .map-ticker-wrap { margin: 14px var(--q-pad) 0; border: 1px solid var(--q-line); border-radius: var(--q-r2); background: var(--q-panel); overflow: hidden; }
.crimepg.cq .tklbl { align-self: stretch; display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--q-line); background: var(--q-panel-2); color: var(--q-gold); font: 700 0.75rem/1 var(--body); letter-spacing: 0.05em; }
.crimepg.cq .map-ticker { min-height: 56px; scrollbar-width: none; }
.crimepg.cq .map-ticker::-webkit-scrollbar { display: none; }
.crimepg.cq .map-ticker .tk-track { align-items: center; padding-block: 6px; }
.crimepg.cq button.tk { min-height: 44px; padding: 4px 14px; border: 1px solid var(--q-line); border-radius: 10px; background: transparent; color: var(--q-on-2); font-size: 0.8125rem; }
.crimepg.cq button.tk:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.crimepg.cq button.tk .tkt { color: var(--q-gold); font-weight: 600; }
.crimepg.cq button.tk .tka { color: var(--q-on-3); }
.crimepg.cq button.tk.nomap { opacity: 1; color: var(--q-on-3); }
.crimepg.cq .map-rhythm-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px var(--q-pad) 0; padding: 14px 14px 10px; border: 1px solid var(--q-line); border-radius: var(--q-r2); background: var(--q-panel); }
.crimepg.cq .map-rhythm-wrap .rt { flex: 1 1 100%; font: 700 0.75rem/1.2 var(--body); letter-spacing: 0.05em; color: var(--q-on-2); }
.crimepg.cq .map-rhythm-wrap .map-rhythm { flex: 1 1 100%; min-height: 84px; }
.crimepg.cq .map-rhythm .rbars { height: 44px; gap: 3px; }
.crimepg.cq .map-rhythm .rb { border-radius: 3px 3px 0 0; background: #2a4165; }
.crimepg.cq .map-rhythm .rb.on { background: var(--q-gold); }
.crimepg.cq .map-rhythm .raxis, .crimepg.cq .rbands { color: var(--q-on-3); font: 600 0.75rem var(--body); }
/* the navy runs on under the warm sheet's rounded corners */
.crimepg.cq .cq-notes { display: grid; gap: 8px; padding: 22px var(--q-pad) 72px; }
.crimepg.cq .cq-notes p { margin: 0; padding: 0; max-width: 92ch; font-size: 0.875rem; line-height: 1.55; color: var(--q-on-3); }
.crimepg.cq .cq-notes .cx-shead-note { display: block; font-size: 0.9375rem; color: var(--q-on-2); }

/* Phones: one order down the navy. Under the map come the 3D map button and the jump row, then the color key
   with the two map notes in small type, the 30-day sentence, the top call type, and one card that holds
   last night's calls over calls by hour. Nothing is removed; the groups below are only re-ordered. */
@media (max-width: 768px) {
  .crimepg.cq .cq-stage .map-shell { display: flex; flex-direction: column; padding-bottom: 60px; }
  .crimepg.cq .cq-brief, .crimepg.cq .cq-brief-side { display: contents; }
  .crimepg.cq .bf-jump { order: 1; margin: 0 16px 8px; }
  .crimepg.cq .map-shell > .map-legend { order: 2; }
  .crimepg.cq .map-shell > .cq-notes { order: 3; gap: 4px; padding: 6px 26px 0; }
  .crimepg.cq .cq-notes p, .crimepg.cq .cq-notes .cx-shead-note { font-size: 0.8125rem; line-height: 1.5; color: var(--q-on-3); }
  .crimepg.cq .map-legend .lg-note { display: none; }
  .crimepg.cq .cx-deckwrap { order: 4; margin: 30px 16px 0; }
  .crimepg.cq .cq-brief .dtile { order: 5; margin: 22px 16px 0; }
  .crimepg.cq .cq-brief .cx-release { order: 6; margin: 10px 16px 0; }
  .crimepg.cq .map-shell > .map-ticker-wrap { order: 7; margin-top: 18px; border-bottom: 0; border-radius: var(--q-r2) var(--q-r2) 0 0; }
  .crimepg.cq .map-shell > .map-rhythm-wrap { order: 8; margin-top: 0; border-top: 1px solid var(--q-line); border-radius: 0 0 var(--q-r2) var(--q-r2); }
  .crimepg.cq .map-shell > #map-a11y { order: 9; }
}

/* entrance: the title and counts rise once; nothing changes size */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cq-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
  .crimepg.cq .cq-top h1 { animation: cq-rise .7s var(--q-ease) .05s both; }
  .crimepg.cq .cq-top .dtile { animation: cq-rise .7s var(--q-ease) .14s both; }
  .crimepg.cq .cq-top .dtile:nth-child(2) { animation-delay: .2s; }
  .crimepg.cq .cq-top .dtile:nth-child(3) { animation-delay: .26s; }
}

/* ---------- stage, wide screens ---------- */
@media (min-width: 769px) {
  .crimepg.cq { --q-pad: max(28px, calc((100% - 1380px) / 2)); --cq-b: 342px; }
  .crimepg.cq .cq-box { grid-template-rows: auto minmax(120px, 1fr) var(--cq-b); min-height: clamp(780px, calc(100svh - 226px), 960px); }
  .crimepg.cq .cq-box > .mapbox-wrap { grid-area: 1 / 1 / -1 / -1; }
  .crimepg.cq .cq-box > .cq-top { padding: 12px var(--q-pad) 44px;
    background: linear-gradient(180deg, rgba(6, 13, 26, 0.96) 0%, rgba(6, 13, 26, 0.88) 66%, rgba(6, 13, 26, 0.5) 88%, rgba(6, 13, 26, 0) 100%); }
  .crimepg.cq .cq-top .crumbs { height: 36px; }
  .crimepg.cq .cq-top h1 { height: 60px; font-size: 3rem; }
  html[lang="es"] .crimepg.cq .cq-top h1 { font-size: 3rem; }
  .crimepg.cq .cq-top .cx-fresh { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; height: 24px; margin: 0 0 14px; font-size: 0.875rem; white-space: nowrap; }
  .crimepg.cq .cq-top .cx-fresh > span { display: inline-flex; align-items: center; flex: none; overflow: visible; }
  .crimepg.cq .cq-top .cx-fresh > span:first-child:not(:only-child) { display: inline-flex; }
  .crimepg.cq .cq-top .cx-fresh > span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 12px; background: var(--q-line-2); }
  .crimepg.cq .cq-top .cx-fresh > .skeleton { width: 420px !important; height: 20px; }
  .crimepg.cq .cq-top .cx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .crimepg.cq .cx-kpis .dtile { height: 176px; padding: 14px 16px 0; border-radius: 18px; }
  .crimepg.cq .dtile .dt-l { margin-bottom: 6px; font-size: 0.875rem; line-height: 18px; }
  .crimepg.cq .cx-kpis .dtile .dt-n { font-size: 3rem; line-height: 46px; }
  .crimepg.cq .dtile .dt-note, .crimepg.cq .dtile .dt-yoy { margin-top: 6px; font-size: 0.8125rem; line-height: 17px; }
  .crimepg.cq .cx-kpis .dtile :is(.dt-note, .dt-yoy) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-height: 34px; white-space: normal; }
  .crimepg.cq .dtile .ttag { font-size: 0.8125rem; line-height: 17px; }
  .crimepg.cq .cx-kpis .dt-sparkwrap { display: block; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 38px; min-height: 0; margin: 0; padding: 0; overflow: hidden; }

  /* the dock: a grid with fixed rows */
  /* every track that holds a control has a fixed width, so nothing in the dock moves when the web font
     or the Spanish text arrives */
  .crimepg.cq .cq-box > .map-toolbar { display: grid; grid-template-columns: 148px minmax(0, 1fr) 124px; grid-template-rows: 44px 70px 70px 57px;
    grid-template-areas: "h2 h2 h2" "search search search" "days cat watch" "adv adv adv";
    gap: 12px 16px; align-items: end; align-content: start; height: calc(var(--cq-b) - 20px); margin: 0 calc(var(--q-pad) - 8px) 20px; padding: 16px 18px; }
  .crimepg.cq .map-toolbar::before { background: rgba(9, 20, 37, 0.8); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
  .crimepg.cq .cq-dockhead h2 { grid-area: h2; position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; align-self: center; color: #fff; font: 600 1.1875rem/1.25 var(--body); letter-spacing: -0.005em; text-transform: none; }
  /* the 3D map button sits in the dock's title row; it steps aside while the Watch menu or the street list is open over it */
  .crimepg.cq .cq-box:has(.map-toolbar.watch-open) .cx-3dlink, .crimepg.cq .cq-box:has(#street-sug:not([hidden])) .cx-3dlink { visibility: hidden; }
  .crimepg.cq .cx-3dlink { z-index: 6; grid-area: 3 / 1; justify-self: end; align-self: start; display: inline-flex; box-sizing: border-box; width: 306px; min-height: 44px; margin: 16px calc(var(--q-pad) + 10px) 0 0; padding: 0 16px; font-size: 0.9375rem; white-space: nowrap; }
  .crimepg.cq .map-search { grid-area: search; }
  .crimepg.cq .cq-sheet { display: contents; }
  .crimepg.cq .cq-sheet-h { display: none; }
  .crimepg.cq #map-days { grid-area: days; }
  .crimepg.cq #map-catwrap { grid-area: cat; }
  .crimepg.cq #map-catwrap select { width: 100%; }
  .crimepg.cq .mt-group { display: flex; flex-direction: column; gap: 6px; }
  .crimepg.cq .map-toolbar select { width: 100%; min-width: 0; height: 50px; }
  .crimepg.cq .mt-watchwrap { grid-area: watch; display: block; position: relative; }
  .crimepg.cq .map-disc { flex: none; }
  .crimepg.cq .mt-watchbtn { width: 100%; min-height: 50px; padding: 0 12px; }
  .crimepg.cq .mt-filtersbtn { display: none; }
  .crimepg.cq .map-watch { left: auto; right: 0; bottom: calc(100% + 10px); width: 300px; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px; background: rgba(11, 24, 43, 0.97); box-shadow: 0 -20px 56px rgba(3, 8, 18, 0.7); }
  .crimepg.cq .map-watch .mapplay { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
  .crimepg.cq .map-watch .mapplay small { display: block; grid-column: 2; color: var(--q-on-3); }
  .crimepg.cq .map-watch .mapplay:hover, .crimepg.cq .map-watch .mapplay:focus-visible { background: rgba(255, 255, 255, 0.08); }
  .crimepg.cq .map-adv { grid-area: adv; align-self: stretch; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 20px; min-width: 0; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--q-line); background: none; }
  .crimepg.cq .map-adv .mt-group { flex-direction: row; align-items: center; gap: 10px; flex: none; }
  .crimepg.cq .map-adv .seg button { min-height: 44px; padding: 0 6px; font-size: 0.8125rem; }
  .crimepg.cq .map-adv .viewseg { width: 196px; }
  .crimepg.cq .map-adv .hourseg { width: 284px; }
  .crimepg.cq .map-adv #map-count { flex: 1 1 0; min-width: 0; max-height: 45px; margin-left: auto; overflow: hidden; text-align: right; font-size: 0.75rem; line-height: 15px; }
  .crimepg.cq .map-adv .mapreset { flex: none; }
  /* tablets: the count gets its own line inside the last dock row */
  .crimepg.cq .map-adv { flex-wrap: wrap; column-gap: 12px; }
  .crimepg.cq .map-adv .mt-group > .mt-lbl { display: none; }

  .crimepg.cq .map-hud:not([hidden]) { left: var(--q-pad); bottom: calc(var(--cq-b) + 16px); max-width: 320px; padding: 10px 14px; font: 500 1.125rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .crimepg.cq .map-hud span { font-family: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .crimepg.cq .mapbox-wrap .maplibregl-ctrl-top-right { bottom: calc(var(--cq-b) + 50px); right: calc(var(--q-pad) - 10px); }
  .crimepg.cq .mapbox-wrap .maplibregl-ctrl-bottom-right { right: calc(var(--q-pad) - 10px); bottom: calc(var(--cq-b) + 8px); }
  .crimepg.cq .map-daytag { left: var(--q-pad); bottom: calc(var(--cq-b) + 16px); }
  .crimepg.cq .pin-tray { left: var(--q-pad); bottom: calc(var(--cq-b) + 104px); }
  .crimepg.cq .block-report { top: 20px; left: var(--q-pad); right: auto; width: min(380px, calc(100% - 56px)); bottom: calc(var(--cq-b) + 28px); }

  .crimepg.cq .map-shell > .map-legend:not(.map-legend-heat) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 12px var(--q-pad) 4px; }
  .crimepg.cq .map-legend button.lg:first-child { margin-left: -10px; }
  .crimepg.cq .map-legend .lg-note { margin: 0 0 0 auto; }
  .crimepg.cq .cq-brief { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px 56px; align-items: start; padding-top: 48px; padding-bottom: 20px; }
  .crimepg.cq .cq-brief .cx-deck.pulse-line { min-height: 330px; font-size: 1.1875rem; }
  /* the headline grows with the column, so it runs to about four lines and ends level with the cards beside it */
  .crimepg.cq .bf-big { font-size: clamp(2.75rem, 5.3vw, 4.75rem); }
  .crimepg.cq .cq-brief .dtile { padding: 20px 22px 18px; }
  .crimepg.cq .cq-brief .dtile .dt-n.dt-type { font-size: 2.25rem; }
  .crimepg.cq .map-rhythm-wrap { flex-wrap: nowrap; padding: 14px 18px 10px; }
  .crimepg.cq .map-rhythm-wrap .rt { flex: none; }
  .crimepg.cq .map-rhythm-wrap .map-rhythm { flex: 1 1 auto; }
  .crimepg.cq .cq-notes { padding-bottom: 92px; }
}
/* desktop: title left, counts right, two dock rows over a filter row */
@media (min-width: 1024px) {
  .crimepg.cq { --cq-b: 260px; }
  .crimepg.cq .cq-box { grid-template-rows: auto minmax(150px, 1fr) var(--cq-b); min-height: clamp(660px, calc(100vh - 180px), 900px); }
  .crimepg.cq .cq-top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 36px 176px; grid-template-areas: "crumbs stamp" "h1 kpis"; column-gap: 40px; row-gap: 14px; }
  .crimepg.cq .cq-top .crumbs { grid-area: crumbs; }
  .crimepg.cq .cq-top .cx-fresh { grid-area: stamp; justify-self: end; align-self: center; margin: 0; }
  .crimepg.cq .cq-top h1 { grid-area: h1; align-self: end; align-items: flex-end; height: auto; max-width: 9.5em; white-space: normal; text-wrap: balance; font-size: clamp(3rem, 1.4rem + 3.6vw, 4.75rem); line-height: 0.94; text-shadow: 0 2px 24px rgba(6, 13, 26, 0.6); }
  html[lang="es"] .crimepg.cq .cq-top h1 { font-size: clamp(2.75rem, 1.2rem + 3.2vw, 4.25rem); max-width: 10.5em; }
  .crimepg.cq .cq-top .cx-kpis { grid-area: kpis; grid-template-columns: repeat(3, 190px); }
  .crimepg.cq .cq-box > .map-toolbar { grid-template-columns: minmax(0, 1fr) 148px 240px 124px; grid-template-rows: 44px 70px 57px;
    grid-template-areas: "h2 h2 h2 h2" "search days cat watch" "adv adv adv adv"; }
  .crimepg.cq .map-adv { flex-wrap: nowrap; column-gap: 20px; }
  .crimepg.cq .map-adv .mapreset { box-sizing: border-box; width: 160px; justify-content: center; }
}
@media (min-width: 1200px) { .crimepg.cq .map-adv .mt-group > .mt-lbl { display: block; } }
/* widest screens: every control on one row, the count and reset beside the dock title */
@media (min-width: 1400px) {
  .crimepg.cq { --cq-b: 190px; }
  .crimepg.cq .cq-box > .map-toolbar { grid-template-columns: minmax(200px, 1fr) 148px 210px 196px 284px 124px; grid-template-rows: 44px 70px; grid-template-areas: "h2 count count reset . ." "search days cat view hours watch"; }
  .crimepg.cq .map-adv { display: contents; }
  .crimepg.cq .map-adv #map-count { max-height: none; font-size: 0.8125rem; white-space: nowrap; }
  .crimepg.cq .map-adv .mt-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .crimepg.cq .map-adv .mt-group:nth-child(1) { grid-area: view; }
  .crimepg.cq .map-adv .mt-group:nth-child(2) { grid-area: hours; }
  .crimepg.cq .map-adv #map-count { grid-area: count; justify-self: start; align-self: center; margin: 0; text-align: left; }
  .crimepg.cq .map-adv .mapreset { grid-area: reset; justify-self: start; align-self: center; }
}
/* short laptop screens: a lower title, shorter counts without their sparklines and a one-line busiest-block
   card, so the title, the counts and the whole dock fit above the fold */
@media (min-width: 1024px) and (max-height: 820px) {
  .crimepg.cq .cq-box { grid-template-rows: auto minmax(64px, 1fr) var(--cq-b); min-height: clamp(520px, calc(100svh - 180px), 900px); }
  .crimepg.cq .cq-box > .cq-top { padding-bottom: 28px; }
  .crimepg.cq .cq-top-in { grid-template-rows: 36px 124px; row-gap: 10px; }
  .crimepg.cq .cq-top h1, html[lang="es"] .crimepg.cq .cq-top h1 { font-size: clamp(2.25rem, 0.9rem + 2.4vw, 2.75rem); }
  .crimepg.cq .cx-kpis .dtile { height: 124px; padding-top: 12px; }
  .crimepg.cq .cx-kpis .dtile .dt-n { font-size: 2.5rem; line-height: 40px; }
  .crimepg.cq .cx-kpis .dt-sparkwrap { display: none; }
  .crimepg.cq .map-hud:not([hidden]) { display: flex; align-items: baseline; gap: 10px; max-width: min(640px, 60%); bottom: calc(var(--cq-b) + 10px); padding: 8px 14px; font-size: 1rem; }
  .crimepg.cq .map-hud em, .crimepg.cq .map-hud span { margin: 0; flex: none; }
}
/* just past the tablet width the Spanish ribbon still runs to two lines, so the stage allows for it */
@media (min-width: 1024px) and (max-width: 1099px) {
  .crimepg.cq .cq-box { min-height: clamp(660px, calc(100svh - 218px), 900px); }
}
@media (min-width: 1024px) and (max-width: 1099px) and (max-height: 820px) {
  .crimepg.cq .cq-box { min-height: clamp(520px, calc(100svh - 218px), 900px); }
}

/* ============================================================
   Recent trends and the call log: a warm sheet over the navy
   ============================================================ */
.crimepg.cq .cx-paper { color: var(--bf-ink); }
.crimepg.cq .cx-paper .wrap { max-width: 1380px; }
.crimepg.cq .cx-shead { border-top: 0; padding-top: 0; margin-bottom: 24px; }
.crimepg.cq .cx-paper .cx-shead h2, .crimepg.cq .cx-yir .cx-shead h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.375rem, 1.6rem + 3.6vw, 4rem);
  line-height: 0.98; letter-spacing: -0.005em; text-transform: none; text-wrap: balance; }
.crimepg.cq .cx-paper .shead h2 { color: var(--bf-ink); }
.crimepg.cq .cx-paper .cx-shead-note, .crimepg.cq .cx-yir .cx-shead-note { font-size: 1.0625rem; line-height: 1.5; max-width: 40ch; }
.crimepg.cq .cx-paper .cx-shead-note { color: var(--bf-muted); }
@media (max-width: 899px) { .crimepg.cq .cx-paper .cx-shead-note, .crimepg.cq .cx-yir .cx-shead-note { margin-top: 12px; } }

.crimepg.cq .cx-trends { position: relative; z-index: 4; margin-top: -28px; border-radius: 28px 28px 0 0; background: var(--bf-warm); padding: clamp(48px, 6vw, 84px) 28px clamp(44px, 5vw, 72px); }
.crimepg.cq .cxd { gap: 14px; }
.crimepg.cq .cxd-card { border-radius: var(--bf-r); border: 0; box-shadow: 0 0 0 1px rgba(18, 38, 54, 0.08); }
.crimepg.cq .cxd-card h3 { font: 700 1.625rem/1.1 var(--display); letter-spacing: 0; }
.crimepg.cq .cxd-card .cxd-s { font-size: 0.9375rem; line-height: 1.45; }
.crimepg.cq .cxd-dark { background: var(--bf-navy); box-shadow: none; }
.crimepg.cq .cxd-pill { border-radius: 10px; font-size: 0.875rem; }
.crimepg.cq #trend .tbar { cursor: pointer; }
.crimepg.cq #trend .tb { rx: 4px; }
.crimepg.cq #trend .tkey { font-size: 0.875rem; }
.crimepg.cq .cx-types .row { min-height: 56px; border-radius: 0; }
.crimepg.cq .cx-types .row:first-child { border-top: 0; }
.crimepg.cq .cx-types .row .track { height: 10px; border-radius: 5px; overflow: hidden; background: rgba(18, 38, 54, 0.08); }
.crimepg.cq .cxd-types .cx-types .row .fill, .crimepg.cq .cxd-types .cx-types .row:hover .fill { border-radius: 5px; background: var(--c, #1d3a5c); }
.crimepg.cq .cx-types .row:hover .name { color: var(--bf-blue); }
.crimepg.cq .cx-types .row .val { font-size: 1.375rem; }
.crimepg.cq .cx-types .row .share { font-size: 0.875rem; }
.crimepg.cq .cx-tag { border-radius: 6px; }
.crimepg.cq .cx-ctx-k { font-size: 0.9375rem; }
.crimepg.cq .cx-ctx-n { font-family: var(--display); }
.crimepg.cq .cx-ctx-d { font-size: 0.9375rem; }
.crimepg.cq .cxd-link { background: var(--bf-steel); box-shadow: none; color: var(--q-on-2); }
.crimepg.cq .cxd-link h3 { color: #fff; }
.crimepg.cq .cxd-link p { color: var(--q-on-2); }
.crimepg.cq .cxd-link .cxd-go { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; margin-top: 6px; border-radius: var(--bf-r-sm); background: #fff; color: var(--bf-ink); font-weight: 600; text-decoration: none; }
.crimepg.cq .cxd-link:hover .cxd-go { background: var(--bf-sand); color: var(--bf-ink); }
.crimepg.cq .cxd-link:focus-visible { outline-color: var(--bf-blue); }
@media (max-width: 899px) { .crimepg.cq .cx-trends { padding: 48px 16px 40px; } }

/* ---------- call log ---------- */
.crimepg.cq .cx-logband, .crimepg.cq .cx-logband:has(#lgdash[data-look]) { background: var(--bf-sand); padding-top: clamp(48px, 6vw, 84px); }
@media (min-width: 900px) { .crimepg.cq .cx-logband { padding-left: 28px; padding-right: 28px; } }
.crimepg.cq .lg[data-look] { --ap-r: var(--bf-r); --ap-fill: #fff; --ap-fill-2: #f6f1e7; --ap-label: #55606b; --ap-line: rgba(18, 38, 54, 0.11); }
.crimepg.cq .lg[data-look] .lg-bar { gap: 8px; padding: 10px 0; margin-bottom: 14px; }
@media (min-width: 981px) {
  .crimepg.cq { --cq-stick: calc(var(--nav-h, 75px) + 72px); }
  .crimepg.cq .lg[data-look] .lg-bar { background: var(--bf-sand); -webkit-backdrop-filter: none; backdrop-filter: none; margin-inline: -12px; padding-inline: 12px; border-radius: 0 0 var(--bf-r-sm) var(--bf-r-sm); }
}
.crimepg.cq .lg[data-look] .log-search input[type="search"] { height: 48px; border-radius: var(--bf-r-sm); background: #fff; font-size: 1rem; padding-left: 44px; box-shadow: 0 0 0 1px var(--ap-line); }
.crimepg.cq .lg[data-look] .log-search input[type="search"]::placeholder { color: #5d6670; }
.crimepg.cq .lg[data-look] .log-search-ic { left: 15px; color: #5d6670; }
.crimepg.cq .log-search .sug button { min-height: 44px; }
.crimepg.cq #f-range { --sl-bg: var(--bf-navy); }
.crimepg.cq .lg[data-look] .frange { padding: 4px; border-radius: var(--bf-r-sm); background: rgba(18, 38, 54, 0.09); }
.crimepg.cq .lg[data-look] .frange [data-range] { min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 0.9375rem; transition: color .2s ease; }
.crimepg.cq .lg[data-look] .frange [data-range].on { background: var(--bf-navy); color: #fff; box-shadow: none; }
.crimepg.cq .lg[data-look] .frange.cq-slide [data-range].on, .crimepg.cq .lg[data-look] .frange.cq-slide [data-range].on:hover { background: transparent; }
.crimepg.cq .lg-fbtn { height: 48px; min-width: 48px; justify-content: center; border-radius: var(--bf-r-sm); box-shadow: 0 0 0 1px var(--ap-line); font-size: 0.9375rem; }
.crimepg.cq .lg-pop { border-radius: 18px; }
.crimepg.cq .lg-pop:focus { outline: none; }
.crimepg.cq .lg-pop .cq-sheet-h { display: none; }
.crimepg.cq .lg-pop .cq-sheet-t { color: var(--bf-ink); }
.crimepg.cq .lg-pop .cq-done { color: #17467f; }
.crimepg.cq .lg-pop .cq-done:hover { background: rgba(18, 38, 54, 0.07); }
.crimepg.cq .lg-fwrap { margin-left: auto; }
@media (min-width: 641px) and (max-width: 1100px) {
  .crimepg.cq .lg[data-look] .log-search { flex: 1 1 180px; }
  .crimepg.cq .lg[data-look] .frange [data-range] { padding: 0 10px; }
}
.crimepg.cq .lg-pop .fcat { min-height: 46px; }
.crimepg.cq .lg-pop .log-tools { width: 100%; }
.crimepg.cq .lg-pop .log-tools .seg { display: flex; width: 100%; border-radius: 12px; background: #ece7dc; }
.crimepg.cq .lg-pop .log-tools .seg button { min-height: 44px; border-radius: 10px; }
.crimepg.cq .lg-pop .log-tools .seg.cq-slide button.on { background: transparent; box-shadow: none; }
.crimepg.cq .lg[data-look] .frange-custom input[type="date"] { height: 46px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--ap-line); }
.crimepg.cq .lg[data-look] .fchip { min-height: 44px; border-radius: 12px; padding-left: 14px; font-size: 0.9375rem; }
.crimepg.cq .lg[data-look] .fchip .fclear { width: 44px; height: 44px; border-radius: 10px; font-size: 1.25rem; }
.crimepg.cq .lg[data-look] .fchip .fmap, .crimepg.cq .lg[data-look] .fa-all { min-height: 44px; color: #17467f; font-weight: 600; }
.crimepg.cq .lg[data-look] .fa-l { color: var(--bf-muted); }
@media (max-width: 640px) {
  /* the log's filters: a bottom sheet, like the map's */
  .crimepg.cq .lg-pop:not([hidden]) { position: fixed; z-index: 96; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: min(82svh, 620px); overflow-y: auto; overscroll-behavior: contain;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: var(--q-r) var(--q-r) 0 0; background: #fff; box-shadow: 0 -24px 60px rgba(3, 8, 18, 0.45); animation: cq-sheet .34s var(--q-ease); }
  .crimepg.cq .lg-pop::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(18, 38, 54, 0.25); }
  .crimepg.cq .lg-pop .cq-sheet-h { display: flex; margin-bottom: 4px; }
}
@keyframes cq-sheet { from { transform: translateY(100%); } to { transform: none; } }

/* the day chart: press and drag across the bars to move through the days */
.crimepg.cq .lg[data-look="b2"] .lg-kpis { background: var(--bf-navy); border-radius: var(--bf-r); padding: 24px 24px 18px; margin-bottom: 14px; }
.crimepg.cq .fh-l, .crimepg.cq .fh-s { font-size: 0.875rem; }
.crimepg.cq .fh-dark .fh-l, .crimepg.cq .fh-dark .fh-s, .crimepg.cq .fh-dark .fh-stats dt, .crimepg.cq .fh-dark .faxis, .crimepg.cq .fd-span { color: var(--q-on-3); }
.crimepg.cq .fh-n { font: 700 3.5rem/0.95 var(--display); letter-spacing: 0; }
.crimepg.cq .fh-n small { font: 500 1rem/1 var(--body); }
.crimepg.cq .fh-stats dt { font-size: 0.8125rem; }
.crimepg.cq .fchart { padding-top: 10px; }
.crimepg.cq .fbars { touch-action: pan-y; cursor: ew-resize; border-bottom: 2px solid rgba(255, 255, 255, 0.2); -webkit-user-select: none; user-select: none; }
.crimepg.cq .fb { position: relative; cursor: inherit; -webkit-tap-highlight-color: transparent; }
.crimepg.cq .fb, .crimepg.cq .fb i { border-radius: 4px 4px 0 0; }
.crimepg.cq .fh-dark .fb i { background: #2f486b; }
.crimepg.cq .fh-dark .fb.sel i { background: var(--q-gold); }
.crimepg.cq .fb.sel::before { content: ""; position: absolute; left: 50%; top: -10px; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(217, 182, 117, 0.55); pointer-events: none; }
.crimepg.cq .fb.sel::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--q-gold);
  box-shadow: 0 0 0 4px rgba(217, 182, 117, 0.22), 0 2px 8px rgba(3, 8, 18, 0.6); pointer-events: none; transition: box-shadow .15s ease; }
.crimepg.cq .cq-scrub .fb.sel::after { box-shadow: 0 0 0 8px rgba(217, 182, 117, 0.26), 0 2px 8px rgba(3, 8, 18, 0.6); }
.crimepg.cq .fh-dark .favg span { background: #0a1626; color: var(--q-on-2); }
.crimepg.cq .faxis { margin-top: 16px; font-size: 0.75rem; }
.crimepg.cq .fh-day { margin-top: 14px; scroll-margin-top: calc(var(--cq-stick) + 12px); }
.crimepg.cq .fd-k { font-size: 0.875rem; color: var(--q-gold); }
.crimepg.cq .fh-dark .fd-t h3 { margin: 0; color: #fff; font: 700 1.875rem/1.05 var(--display); letter-spacing: 0; }
.crimepg.cq .fd-span { font-size: 0.875rem; }
.crimepg.cq .fd-step { width: 48px; height: 48px; border-radius: var(--bf-r-sm); transition: background-color .18s ease, transform .18s var(--q-ease); }
.crimepg.cq .fd-step:active:not([disabled]) { transform: scale(.94); }
.crimepg.cq .fd-h { grid-template-columns: 48px minmax(0, 1fr) 48px; }
.crimepg.cq .lg[data-look] .dd-pill { height: 26px; border-radius: 8px; font-size: 0.8125rem; }

/* the open day: one white sheet */
.crimepg.cq .lg[data-look="b2"] .fday, .crimepg.cq .fday { position: relative; padding: 6px 18px 10px; border-radius: var(--bf-r); box-shadow: 0 0 0 1px var(--ap-line); }
.crimepg.cq .fd-none { padding: 18px; }
/* its label pins under the site header once the day's own heading has scrolled away (class set by the page script) */
.crimepg.cq .fd-sen { height: 1px; margin: -6px 0 5px; pointer-events: none; }
.crimepg.cq .fd-bar { position: sticky; top: var(--cq-stick); z-index: 6; height: 0; pointer-events: none; }
.crimepg.cq .fd-bar-in { position: absolute; left: -18px; right: -18px; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 18px;
  border-radius: 0 0 var(--bf-r-sm) var(--bf-r-sm); background: var(--bf-navy); color: #fff; box-shadow: 0 8px 20px rgba(10, 22, 38, 0.22); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
.crimepg.cq .fd-bar.is-stuck .fd-bar-in { opacity: 1; visibility: visible; transition: opacity .18s ease, visibility 0s; }
/* the day's title has gone under the header but the list has not reached it yet: the same label, held under the header */
.crimepg.cq .fd-bar.is-early:not(.is-stuck) .fd-bar-in { position: fixed; top: var(--fx-t); left: var(--fx-l); right: auto; width: var(--fx-w); box-sizing: border-box; opacity: 1; visibility: visible; transition: opacity .18s ease, visibility 0s; }
.crimepg.cq .fd-bar-t { font: 700 1.25rem/1.1 var(--display); letter-spacing: 0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crimepg.cq .fd-bar-n { flex: none; font: 600 0.875rem/1.2 var(--body); color: var(--q-on-2); font-variant-numeric: tabular-nums; }
.crimepg.cq .fd-ax, .crimepg.cq .lg[data-look] .dd-top { font-size: 0.8125rem; }
.crimepg.cq .fd-mixrow .dd-mix { height: 8px; border-radius: 4px; }
.crimepg.cq .lg[data-look] .dd-clock i { border-radius: 3px 3px 0 0; }
.crimepg.cq .dd-sep { padding: 16px 0 8px; font-size: 0.8125rem; font-weight: 600; color: #7a5a1e; }
.crimepg.cq .lg[data-look] .dd-all { min-height: 48px; margin: 8px 0 4px; border-radius: 12px; background: #f1ece2; color: #17467f; font-weight: 600; font-size: 0.9375rem; }
.crimepg.cq .lg[data-look] .dd-all:hover { background: #e8e0cf; text-decoration: none; }

/* call rows: time, a dot on the day's rail, a category chip, the call and its block */
.crimepg.cq .call-chip { display: inline-flex; align-items: center; justify-self: start; height: 22px; padding: 0 8px; border-radius: 6px; white-space: nowrap; font: 600 0.75rem/1 var(--body); background: #e9edf1; color: #44525f; }
.crimepg.cq .call-chip[data-cat="violent"] { background: #fbe6e3; color: #99271d; }
.crimepg.cq .call-chip[data-cat="property"] { background: #fbeedb; color: #824a0c; }
.crimepg.cq .call-chip[data-cat="traffic"] { background: #e2edfa; color: #1d4f8c; }
.crimepg.cq .call-chip[data-cat="disorder"] { background: #ece7f8; color: #57399f; }
.crimepg.cq .call-chip[data-cat="service"] { background: #e0f2e8; color: #1b6844; }
.crimepg.cq .lg[data-look] .call, .crimepg.cq .lg[data-look] .fold { --cc: #6b7d90; position: relative; border-bottom: 1px solid var(--ap-line); }
.crimepg.cq :is(.call, .fold)[data-cat="violent"] { --cc: #c0392b; } .crimepg.cq :is(.call, .fold)[data-cat="property"] { --cc: #d98324; }
.crimepg.cq :is(.call, .fold)[data-cat="traffic"] { --cc: #2b6cb0; } .crimepg.cq :is(.call, .fold)[data-cat="disorder"] { --cc: #7c5cbf; }
.crimepg.cq :is(.call, .fold)[data-cat="service"] { --cc: #2f9e6a; }
.crimepg.cq .call-main { grid-template-columns: 5rem 9px 5.25rem minmax(0, 1.05fr) minmax(0, 1fr) 28px; column-gap: 14px; min-height: 56px; padding: 8px 0; }
.crimepg.cq .lg[data-look] .call-time { font: 600 0.9375rem/1.2 var(--body); color: var(--bf-ink); font-variant-numeric: tabular-nums; }
.crimepg.cq .lg[data-look] .call-dot { position: relative; z-index: 1; width: 9px; height: 9px; box-shadow: 0 0 0 3px #fff; }
.crimepg.cq .lg[data-look] .call-type { font-size: 1.0625rem; line-height: 1.25; }
.crimepg.cq .lg[data-look] .call-loc { font-size: 0.9375rem; color: var(--bf-muted); }
/* the call and its block are read in full: long names wrap instead of ending in an ellipsis */
.crimepg.cq .lg[data-look] .call-type, .crimepg.cq .lg[data-look] .call-loc { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.crimepg.cq .lg[data-look] .fold-main .fold-n { height: 26px; min-width: 2.5rem; justify-self: start; border-radius: 8px; font-size: 0.875rem; }
.crimepg.cq .lg[data-look] .call.open { background: none; }
.crimepg.cq .lg[data-look] .call.open > .call-main .call-type { color: #17467f; }
.crimepg.cq .call-detail, .crimepg.cq .lg .call-detail { position: relative; z-index: 2; margin: 2px 0 14px; padding: 14px 16px 16px; border-radius: var(--bf-r-sm); background: #f6f1e7; box-shadow: inset 4px 0 0 var(--cc); }
.crimepg.cq .cd-grid { grid-template-columns: repeat(4, minmax(0, auto)); gap: 12px 36px; padding: 0; }
.crimepg.cq .cd-k { font-size: 0.8125rem; color: var(--bf-muted); }
.crimepg.cq .cd-v { font-size: 1rem; }
.crimepg.cq .cd-actions { gap: 8px; margin-top: 14px; }
.crimepg.cq .cd-actions .btn { min-height: 44px; border-radius: 12px; }
.crimepg.cq .cd-note { font-size: 0.9375rem; color: var(--bf-muted); }
/* routine actions are navy; red is kept for things that need attention */
.crimepg.cq .call-detail .btn-brand, .crimepg.cq .mapbox-wrap .btn-brand, .block-sheet .btn-brand { background: var(--bf-navy, #0a1626); border-color: var(--bf-navy, #0a1626); color: #fff; }
.block-sheet .bs-link { color: #17467f; }
.crimepg.cq .call-detail .btn-brand:hover, .crimepg.cq .mapbox-wrap .btn-brand:hover, .block-sheet .btn-brand:hover { background: #1c4e8a; border-color: #1c4e8a; color: #fff; }
.crimepg.cq .lg[data-look] .fold-list { position: relative; z-index: 2; margin: 0 0 10px; padding-left: 12px; border-left: 3px solid #bfe0cd; background: #fff; }
/* a faint rail joins the dots down the day */
.crimepg.cq .dd-calls > .call::before, .crimepg.cq .dd-calls > .fold::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(5rem + 14px + 4px); width: 1px; background: rgba(18, 38, 54, 0.13); pointer-events: none; }
@media (max-width: 760px) {
  .crimepg.cq .lg[data-look="b2"] .fday, .crimepg.cq .fday { padding: 6px 14px 8px; }
  .crimepg.cq .fd-bar-in { left: -14px; right: -14px; padding: 0 14px; }
  .crimepg.cq .call-detail, .crimepg.cq .lg .call-detail { padding: 14px 14px 16px; }
  .crimepg.cq .cd-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .crimepg.cq .cd-actions .btn { flex: 1 1 0; }
}
/* phones, and laptops where the breakdowns column narrows the list: the call sits over its block */
@media (max-width: 760px), (min-width: 981px) and (max-width: 1279px) {
  .crimepg.cq .call-main { grid-template-columns: 4.75rem 9px minmax(0, 1fr) 24px; grid-template-areas: "time dot type chev" "chip . loc chev"; column-gap: 10px; row-gap: 4px; align-items: start; min-height: 64px; padding: 12px 0; }
  .crimepg.cq .call-time { grid-area: time; align-self: center; padding: 0; }
  .crimepg.cq .lg[data-look] .call-dot { grid-area: dot; align-self: center; margin: 0; }
  .crimepg.cq .call-chip { grid-area: chip; align-self: start; }
  .crimepg.cq .call-type { grid-area: type; align-self: center; }
  .crimepg.cq .call-loc { grid-area: loc; }
  .crimepg.cq .call-chev { grid-area: chev; align-self: center; width: 24px; }
  .crimepg.cq .fold-main .fold-n { grid-area: time; }
  .crimepg.cq .dd-calls > .call::before, .crimepg.cq .dd-calls > .fold::before { left: calc(4.75rem + 10px + 4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .crimepg.cq .call.open > .call-detail, .crimepg.cq .fold.open > .fold-list { animation: bf-open 0.2s var(--q-ease) both; }
  @keyframes bf-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* more days: one row each; a tap opens that day */
.crimepg.cq .fmore { list-style: none; margin: 18px 0 0; padding: 0; }
.crimepg.cq .fmore-h { margin: 0 4px 8px; font: 600 0.9375rem/1.3 var(--body); color: var(--bf-muted); }
.crimepg.cq .fmore-list { list-style: none; margin: 0; padding: 0; border-radius: var(--bf-r); background: #fff; box-shadow: 0 0 0 1px var(--ap-line); overflow: hidden; }
.crimepg.cq .fmore-list > li + li { border-top: 1px solid var(--ap-line); }
.crimepg.cq .fmore-b { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; grid-template-areas: "t clock chev" "m m chev"; align-items: center; gap: 6px 12px; width: 100%; min-height: 68px; padding: 12px 8px 12px 14px;
  border: 0; background: none; color: var(--bf-muted); font: inherit; text-align: left; cursor: pointer; transition: background-color .18s ease; }
.crimepg.cq .fmore-b:hover { background: #f6f1e7; }
.crimepg.cq .fmore-b:focus-visible { outline-offset: -3px; border-radius: var(--bf-r); }
.crimepg.cq .fmore-t { grid-area: t; color: var(--bf-ink); font: 700 1.25rem/1.15 var(--display); letter-spacing: 0.005em; }
.crimepg.cq .fmore-m { grid-area: m; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.crimepg.cq .fmore-n { font-size: 0.9375rem; color: var(--bf-muted); font-variant-numeric: tabular-nums; }
.crimepg.cq .fmore-b .dd-clock { grid-area: clock; display: grid; width: 96px; height: 24px; border-bottom: 1px solid var(--ap-line); }
.crimepg.cq .fmore-b .call-chev { grid-area: chev; width: 24px; height: 28px; }
.crimepg.cq .fmore-b .call-chev::after { transform: translate(-70%, -50%) rotate(-45deg); }
@media (min-width: 641px) { .crimepg.cq .fbars { height: 170px; } }
/* The list lays itself out by its own width, so every row in it takes the same shape: one line when the
   count and the comparison fit beside the day, the comparison under the count when they do not, and the
   phone layout when the list is narrow (also beside the breakdowns on small laptops). */
.crimepg.cq .fmore-list { container: fmore / inline-size; }
@container fmore (min-width: 640px) {
  .crimepg.cq .fmore-b { grid-template-columns: 11rem minmax(0, 1fr) 150px 24px; grid-template-areas: "t m clock chev"; min-height: 60px; padding: 8px 12px 8px 18px; }
  .crimepg.cq .fmore-m { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .crimepg.cq .fmore-b .dd-clock { width: 150px; height: 30px; }
}
@container fmore (min-width: 780px) {
  .crimepg.cq .fmore-m { flex-direction: row; align-items: center; }
  .crimepg.cq .fmore-n { min-width: 5.5rem; }
}
/* small phones in Spanish: the comparison is longer than the row, so it always sits under the count */
@container fmore (max-width: 388px) { html[lang="es"] .crimepg.cq .fmore-m { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; } }
.crimepg.cq .lg[data-look] .feed-foot { margin-top: 12px; }
.crimepg.cq .lg[data-look] .cx-textbtn { min-height: 44px; color: #17467f; font-weight: 600; }
.crimepg.cq .cx-footnote { font-size: 0.875rem; color: var(--bf-muted); }

/* breakdowns */
.crimepg.cq .lg[data-look="b2"] .dash-side { top: calc(var(--cq-stick) + 14px); }
.crimepg.cq .lg[data-look="b2"] .dash-side .dpanel { border-radius: var(--bf-r); padding: 18px 18px 14px; }
.crimepg.cq .lg[data-look="b2"] .dash-side .dpanel-t { font: 700 1.5rem/1.1 var(--display); }
.crimepg.cq .lg[data-look] .dpanel-s { font-size: 0.875rem; margin-bottom: 8px; }
.crimepg.cq .lg[data-look] .dp-row { min-height: 48px; }
.crimepg.cq .lg[data-look] #dp-streets .dp-row::before { color: #55606b; }
.crimepg.cq .lg[data-look] .dp-track { height: 6px; border-radius: 3px; }
.crimepg.cq .lg[data-look] .dp-fill { border-radius: 3px; }
.crimepg.cq .lg[data-look] .dp-count { font-size: 0.9375rem; color: var(--bf-ink); }
.crimepg.cq .lg[data-look] .hb i { border-radius: 3px 3px 0 0; }
.crimepg.cq .hgram-axis, .crimepg.cq .hgram-cap { font-size: 0.8125rem; }
.crimepg.cq .cx-logband .notice { font-size: 0.9375rem; border-top-color: var(--bf-sand-line); }
.crimepg.cq .cx-logjump { border-radius: var(--bf-r-sm); min-height: 48px; }
@media (max-width: 980px) {
  .crimepg.cq .lg[data-look="b2"] .lg-kpis { padding: 20px 16px 14px; }
  /* the swipe row rests on the page gutter and shows a clear slice of the next card */
  .crimepg.cq .lg[data-look="b2"] .dash-side { scroll-padding-inline: 16px; grid-template-columns: none; grid-auto-columns: min(84vw, 360px); }
  /* the cards in a row are one height: the hour chart grows to fill its card */
  .crimepg.cq .lg[data-look="b2"] .dash-side .dpanel { display: flex !important; flex-direction: column; }
  .crimepg.cq .lg[data-look="b2"] .dash-side #dp-hours { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
  .crimepg.cq .lg[data-look="b2"] .dash-side :is(.dp-list, #dp-hours) > * { flex: none; }
  /* the two lists keep their own row height and rest on the card's foot, so their rows line up across the cards even when one title wraps */
  .crimepg.cq .lg[data-look="b2"] .dash-side .dp-list { flex: none; display: flex; flex-direction: column; margin-top: auto; }
  .crimepg.cq .lg[data-look="b2"] .dash-side #dp-hours > .hgram { flex: 1 1 90px; height: auto; min-height: 90px; }
}
/* tablets: streets and call types side by side, hours across the full width under them (no hidden third card) */
@media (min-width: 641px) and (max-width: 980px) {
  .crimepg.cq .lg[data-look="b2"] .dash-side { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .crimepg.cq .lg[data-look="b2"] .dash-side .dpanel[data-p="hours"] { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* each segment is as wide as its label plus the same side padding, so long labels are not squeezed */
  .crimepg.cq .lg[data-look] .frange [data-range] { flex: 1 1 auto; min-width: 44px; padding: 0 6px; font-size: 0.875rem; }
  .crimepg.cq .fh-n { font-size: 3rem; }
  .crimepg.cq .fh-dark .fd-t h3 { font-size: 1.625rem; }
}

/* ============================================================
   2025 year in review: one blue band, figures as ruled rows, a white PDF button
   ============================================================ */
.crimepg.cq .cx-yir { background: linear-gradient(160deg, var(--bf-navy-2) 0%, #17406f 100%); padding: clamp(56px, 7vw, 96px) 28px; }
.crimepg.cq .cx-yir .wrap { max-width: 1380px; }
.crimepg.cq .cx-yir :focus-visible { outline-color: var(--q-gold); }
.crimepg.cq .cx-yir .cx-shead h2 { color: #fff; }
.crimepg.cq .cx-yir .cx-shead-note { color: var(--q-on); }
.crimepg.cq .cx-yir-nums { border-top: 0; gap: 0 28px; }
.crimepg.cq .cx-yir-nums .stat, .crimepg.cq .cx-yir-nums .stat:first-child { padding: 18px 0 8px; border: 0; border-top: 3px solid var(--q-gold); }
.crimepg.cq .cx-yir-nums .stat:nth-child(2) { border-top-color: #fff; }
.crimepg.cq .cx-yir-nums .stat:nth-child(3) { border-top-color: #9cc3ee; }
.crimepg.cq .cx-yir-nums .stat:nth-child(4) { border-top-color: #86d6aa; }
.crimepg.cq .cx-yir-nums .stat .n { font-size: clamp(3.25rem, 5.4vw, 4.75rem); }
.crimepg.cq .cx-yir-nums .stat .l { font: 600 1.0625rem/1.25 var(--body); letter-spacing: 0; text-transform: none; color: #fff; }
.crimepg.cq .cx-yir-nums .stat .s { font-size: 0.9375rem; color: var(--q-on-2); }
.crimepg.cq .cx-yir-ledger { gap: 14px; }
.crimepg.cq .cx-yir-ledger .item { border-top: 0; padding: 20px; border-radius: var(--bf-r); background: rgba(6, 13, 26, 0.34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.crimepg.cq .cx-yir-ledger h3 { font: 700 1.625rem/1.1 var(--display); }
.crimepg.cq .cx-yir-ledger p { font-size: 1rem; line-height: 1.55; color: var(--q-on); }
.crimepg.cq .cx-yir .btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: var(--bf-r-sm); background: #fff; border-color: #fff; color: var(--bf-ink); font-size: 1.0625rem; }
.crimepg.cq .cx-yir .btn:hover { background: var(--bf-sand); border-color: var(--bf-sand); color: var(--bf-ink); }
@media (max-width: 899px) {
  .crimepg.cq .cx-yir { padding: 52px 16px; }
  .crimepg.cq .cx-yir-nums { grid-template-columns: 1fr; }
  .crimepg.cq .cx-yir-nums .stat, .crimepg.cq .cx-yir-nums .stat:first-child, .crimepg.cq .cx-yir-nums .stat:nth-child(odd) { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 14px 0; }
  .crimepg.cq .cx-yir-nums .stat .n { grid-row: 1 / span 2; font-size: 3.25rem; }
  .crimepg.cq .cx-yir-nums .stat .l { margin-top: 0; align-self: end; }
  .crimepg.cq .cx-yir-nums .stat .s { align-self: start; }
  .crimepg.cq .cx-yir .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ============================================================
   Alignment pass (Nov 13)
   ============================================================ */
/* day chart: the selected day's marker stays inside the chart and above its neighbours; the average label
   has its own gutter left of the first bar and sits on its line, clear of the bars and of the marker */
.crimepg.cq .fbars, .crimepg.cq .faxis { padding-inline: 46px 12px; }
.crimepg.cq .fb.sel { z-index: 2; }
.crimepg.cq .favg { z-index: 3; }
.crimepg.cq .favg span { right: auto; left: 0; top: 0; transform: translateY(-50%); padding: 0 6px 0 0; border-radius: 0; line-height: 16px; }
/* the three small stats share one label row and one value row, so the values line up however a label wraps */
@media (max-width: 640px) {
  .crimepg.cq .fh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .crimepg.cq .fh-stats > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 2px; }
  .crimepg.cq .fh-stats dt { align-self: end; }
  .crimepg.cq .fh-stats dd { margin-top: 0; }
}
@media (max-width: 374px) { .crimepg.cq .lg[data-look] .frange [data-range] { font-size: 0.8125rem; } }
/* the log's filter sheet: call-type rows run the sheet's full width, like the Order switch under them */
.crimepg.cq .lg-pop .fcats { margin-right: 0; padding-right: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; scroll-snap-type: none; }
/* tablets: the short range label, so search, range and Filters share one row; under that, search takes its own row */
@media (min-width: 641px) and (max-width: 900px) {
  .crimepg.cq .lg[data-look] .lg-long { display: none; }
  .crimepg.cq .lg[data-look] .lg-short { display: inline; }
}
@media (min-width: 641px) and (max-width: 767px) {
  .crimepg.cq .lg[data-look] .log-search { flex: 1 1 100%; }
  .crimepg.cq .lg[data-look] .frange { flex: 1 1 auto; }
  .crimepg.cq .lg[data-look] .frange [data-range] { flex: 1 1 auto; }
}
/* breakdown rows: rank, name and count share a baseline; both lists start on the card's left edge and use one bar color */
.crimepg.cq .lg[data-look] .dp-row { padding-inline: 0; }
.crimepg.cq .lg[data-look] #dp-streets .dp-row { padding-left: 30px; }
.crimepg.cq .lg[data-look] .dp-top { align-items: baseline; }
.crimepg.cq .lg[data-look] .dp-label { line-height: 1.4rem; }
.crimepg.cq .lg[data-look] #dp-streets .dp-row::before { top: 9px; line-height: 1.4rem; }
.crimepg.cq .lg[data-look] #dp-cats .dp-fill { background: #1c4e8a !important; }
/* a percentage reads as one figure: the sign is part of the number, not a small grey unit */
/* the face draws its percent sign with thin strokes, so it is set heavier to carry the same weight as the numerals */
.crimepg.cq .cxd-ctx .cx-ctx-n .cx-pct { margin-left: 1px; font-size: 0.8em; font-weight: 700; -webkit-text-stroke: 0.05em currentColor; letter-spacing: 0; color: inherit; }
/* the short card gets the narrower column, so the two end at about the same height */
@media (min-width: 641px) { .crimepg.cq .cxd-ctx { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
/* top call types on phones: the count column has one width, so every bar track is the same length */
@media (max-width: 560px) { .crimepg.cq .cx-types .row { grid-template-columns: minmax(0, 1fr) 3.4rem 2.6rem; } }
/* calls by hour: each time-of-day label is centered under a bracket that spans its hours */
.crimepg.cq .rbands { gap: 3px; margin-top: 6px; }
.crimepg.cq .rbands span, .crimepg.cq .rbands span:nth-child(3) { padding-top: 5px; border-top: 2px solid var(--q-line-2); text-align: center; white-space: nowrap; }
@media (max-width: 768px) {
  /* last night's calls: the label sits over the strip, so the strip runs the card's full width */
  .crimepg.cq .map-ticker-wrap { flex-direction: column; align-items: stretch; }
  .crimepg.cq .tklbl { align-self: auto; padding: 14px 14px 2px; border-right: 0; background: none; }
  .crimepg.cq .map-ticker { min-height: 52px; }
}
/* the dock on desktop: the search label matches the other field labels, and the field is as tall as the controls beside it */
@media (min-width: 769px) {
  .crimepg.cq .map-prompt { height: auto; margin: 0 0 6px; font: 600 0.8125rem/1.2 var(--body); color: var(--q-on-2); }
  .crimepg.cq .map-search input { height: 50px; }
}
/* laptops: View and Time of day carry their labels like Period and Category above them */
@media (min-width: 1024px) and (max-width: 1399px) {
  .crimepg.cq .cq-box > .map-toolbar { grid-template-rows: 44px 70px 70px; }
  .crimepg.cq .map-adv { align-items: flex-end; padding: 0; border-top: 0; }
  .crimepg.cq .map-adv .mt-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .crimepg.cq .map-adv .mt-group > .mt-lbl { display: block; }
  .crimepg.cq .map-adv #map-count { height: 50px; max-height: 50px; align-content: center; text-wrap: balance; }
  .crimepg.cq .map-adv .mapreset { min-height: 50px; }
}
/* Spanish day names start a heading or a label here, so they take a capital */
html[lang="es"] .crimepg.cq :is(#dt-today-l, .fd-t h3, .fd-bar-t, .fmore-t, .dd-sep)::first-letter { text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .crimepg.cq *, .crimepg.cq *::before, .crimepg.cq *::after { animation: none !important; transition: none !important; }
}
@media print {
  .crimepg.cq, .crimepg.cq .cq-stage { background: #fff !important; color: #111 !important; }
  .crimepg.cq .cq-box { min-height: 0; display: block; }
  .crimepg.cq .cq-box > .mapbox-wrap, .crimepg.cq .map-toolbar, .crimepg.cq .bf-jump, .crimepg.cq .cx-3dlink, .crimepg.cq .fd-bar { display: none; }
  .crimepg.cq .cq-top { background: none !important; color: #111 !important; }
  .crimepg.cq .cq-top h1, .crimepg.cq .dtile .dt-n, .crimepg.cq .bf-big, .crimepg.cq .bf-big strong, .crimepg.cq .bf-cmp strong, .crimepg.cq .bf-more strong { color: #111 !important; text-shadow: none; }
}

/* Nov 16 2026: last night's calls fades at the right edge while more calls are off-screen (swipe hint) */
.crimepg .map-ticker.tk-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
