/* self-hosted Barlow + Barlow Condensed (latin) — no external font requests */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/barlow-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Jeffersonville Police Department — Design System
   Navy / patch red / seal blue (per JPD patch) · Barlow Condensed + Barlow
   ============================================================ */

:root {
  --navy-950: #060d1a;
  --navy-900: #0a1626;
  --navy-800: #102039;
  --navy-700: #1a3357;
  --navy-line: rgba(255, 255, 255, 0.12);

  --blue: #1c4e8a;
  --blue-bright: #3a6ea5;
  --brand: #b4232b;
  --brand-bright: #e0897c;
  --red: #b4232b;
  --sky: #3a6ea5;
  --gold: #b98d3e;

  --paper: #f6f3ec;
  --card: #ffffff;
  --ink: #21303f;
  --muted: #5c5648;
  --nav-h: 75px; /* sticky nav height; keep feed-day sticky offset in sync */
  --line: #e4ddcd;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 38, 0.06), 0 2px 8px rgba(10, 22, 38, 0.06);
  --shadow-md: 0 2px 6px rgba(10, 22, 38, 0.08), 0 12px 32px rgba(10, 22, 38, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 88% -8%, rgba(185,141,62,0.10), transparent 55%), radial-gradient(110% 90% at -8% 108%, rgba(180,35,43,0.06), transparent 55%), #f4f0e7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--navy-900);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.015em; }
h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }

p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 62ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- emergency ribbon ---------- */
.ribbon {
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-line);
  color: #c8d4e2;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.ribbon .wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 7px 24px;
  display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap;
}
.ribbon strong { color: #fff; }
.ribbon a { color: var(--brand-bright); text-decoration: none; font-weight: 600; }
.ribbon a:hover { text-decoration: underline; color: var(--brand-bright); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 26, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-line);
}
.nav .wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand .t {
  font-family: var(--display); text-transform: uppercase; line-height: 1;
  color: #fff; font-weight: 700; font-size: 21px; letter-spacing: 0.04em;
}
.brand .t small { display: block; font-weight: 500; font-size: 12.5px; letter-spacing: 0.22em; color: var(--brand-bright); margin-top: 4px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: #d7dfe9; text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 9px 14px; border-radius: 8px; letter-spacing: 0.01em;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a[aria-current="page"] { color: var(--brand-bright); }
.nav-links a.cta {
  background: var(--brand); color: #fff; margin-left: 8px;
}
.nav-links a.cta:hover { background: #d8352a; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--navy-line); border-radius: 8px;
  color: #fff; padding: 8px 12px; font-size: 20px; line-height: 1; cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
    background: rgba(6, 13, 26, 0.97); border-bottom: 1px solid var(--navy-line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 17px; }
  .nav-links a.cta { margin-left: 0; text-align: center; margin-top: 6px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--navy-900);
  display: grid; align-items: end;
  min-height: min(78vh, 760px);
}
.hero.short { min-height: min(56vh, 520px); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 26, 0.55) 0%, rgba(6, 13, 26, 0.25) 40%, rgba(6, 13, 26, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 13, 26, 0.55) 0%, rgba(6, 13, 26, 0) 60%);
}
.hero .wrap {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: 96px 24px 72px; width: 100%;
}
.hero h1, .hero h2 { color: #fff; }
.hero .lede { color: #cfdae7; }
.eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 14px; font-weight: 600; color: var(--brand-bright); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 42px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--sky)); flex: none; }
.section .eyebrow { color: #a5281f; }
.hero .eyebrow, .section-dark .eyebrow, .bignums .eyebrow, .band .eyebrow, .cta-band .eyebrow { color: var(--brand-bright); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 17px; font-weight: 600; text-decoration: none;
  padding: 13px 26px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #d8352a; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 24px; }
.section .wrap { max-width: var(--maxw); margin: 0 auto; }
.section.tight { padding-top: clamp(40px, 6vw, 70px); }
.section-dark { background: var(--navy-900); color: #c9d5e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: #9fb0c4; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
a.card { text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 2px; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  color: var(--brand-bright); margin-bottom: 18px; font-size: 24px;
}
.grid > .card:nth-child(3n+2) .icon { background: linear-gradient(145deg, #a5281f, var(--brand)); color: #fff; }
.grid > .card:nth-child(3n) .icon { background: linear-gradient(145deg, #1c6fa3, var(--sky)); color: #fff; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.card .go { color: var(--blue); font-weight: 700; font-size: 14.5px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 14px; display: inline-block; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  background: #e9f2fb; border: 1px solid #bcd8ec; color: var(--navy-700);
  border-radius: 999px; padding: 5px 13px;
}
.section-dark .chip { background: rgba(255, 255, 255, 0.06); border-color: var(--navy-line); color: #c9d5e3; }

/* stats */
.stat { text-align: left; }
.card.stat { position: relative; overflow: hidden; }
.card.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--sky)); }
.stat .n {
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 58px);
  color: var(--navy-900); line-height: 1; letter-spacing: 0.01em;
}
.section-dark .stat .n { color: #fff; }
.stat .n em { font-style: normal; color: var(--brand); }
.stat .l { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.section-dark .stat .l { color: #8fa2b8; }
.stat .s { font-size: 14px; color: var(--muted); margin-top: 6px; }
.section-dark .stat .s { color: #7e91a8; }

/* leadership */
.leader { overflow: hidden; padding: 0; }
.leader img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top; }
.leader .pad { padding: 22px 24px 26px; }
.leader .rank { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #a5281f; font-weight: 700; }
.leader h3 { margin: 6px 0 2px; }

/* split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: #9fb0c4; font-size: 15px; }
.footer .top {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
@media (max-width: 900px) { .footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .top { grid-template-columns: 1fr; } }
.footer h4 {
  color: #fff; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--body); font-weight: 700; margin-bottom: 16px;
}
.footer a { color: #c9d5e3; text-decoration: none; }
.footer a:hover { color: var(--brand-bright); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .brandline { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.footer .brandline img { width: 58px; }
.footer .brandline .t { font-family: var(--display); text-transform: uppercase; color: #fff; font-weight: 700; font-size: 22px; line-height: 1.05; }
.footer .legal {
  border-top: 1px solid var(--navy-line);
  padding: 22px 24px; text-align: center; font-size: 13.5px; color: #8296ad;
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border: 1px solid var(--navy-line); border-radius: 10px;
  display: grid; place-items: center; color: #c9d5e3;
}
.social a:hover { border-color: var(--brand); color: var(--brand-bright); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- accordion (FAQ) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.acc + .acc { margin-top: 14px; }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px;
  padding: 20px 24px; font-weight: 700; font-size: 17.5px; color: var(--navy-900); align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; font-family: var(--display); font-size: 26px; color: #a5281f;
  line-height: 1; flex: none; transition: transform 0.18s ease;
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 24px 22px; color: var(--muted); }
.acc .body a { font-weight: 600; }
.faq-group { margin: 42px 0 16px; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
label.f { display: grid; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--navy-800); }
label.f span em { color: var(--red); font-style: normal; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid #7b8794; border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-bright); outline-offset: 1px; border-color: var(--blue-bright); }
.hint { font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* ---------- crime data ---------- */
.databar {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: 14px; color: var(--muted); margin-top: 14px;
}
.databar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2fa46a; display: inline-block; margin-right: 7px; }
.databar .dot.stale { background: #d9a13c; }
.databar .dot.daily { background: var(--sky); }

.controls { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.controls input[type="search"] { flex: 1 1 260px; }
.controls select { flex: 0 1 260px; width: auto; }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
table.log { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 640px; }
table.log th {
  text-align: left; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 14px 18px; border-bottom: 2px solid var(--line);
  background: #fbf9f3; position: sticky; top: 0;
}
table.log td { padding: 12px 18px; border-bottom: 1px solid #ede6d6; vertical-align: top; }
table.log tr:last-child td { border-bottom: none; }
table.log td.when { white-space: nowrap; color: var(--muted); font-size: 14px; }
table.log td.num { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; color: var(--muted); white-space: nowrap; }
.typechip {
  display: inline-block; font-size: 13.5px; font-weight: 600; padding: 3px 11px;
  border-radius: 999px; background: #f3eee2; color: var(--navy-700); border: 1px solid #dbe5f1;
}
.load-more { margin: 22px auto 0; display: block; }

/* charts */
.chart-card { padding: 26px 28px 20px; }
.chart-card h3 { margin-bottom: 4px; }
.chart-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.barlist { display: grid; gap: 11px; }
.barlist .row { display: grid; grid-template-columns: 180px 1fr 52px; gap: 12px; align-items: center; font-size: 14.5px; }
.barlist .row .name { font-weight: 600; color: var(--navy-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barlist .row .track { background: #ede6d6; border-radius: 99px; height: 12px; overflow: hidden; }
.barlist .row .fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-700), var(--blue-bright)); }
.barlist .row .val { text-align: right; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .barlist .row { grid-template-columns: 110px 1fr 44px; font-size: 13.5px; } }

.skeleton { position: relative; overflow: hidden; background: #ede6d6; border-radius: 8px; min-height: 18px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.notice {
  border-left: 4px solid var(--brand); background: #fdf8ee; border-radius: 0 10px 10px 0;
  padding: 16px 20px; font-size: 15px; color: #6b5a2e; margin-top: 26px;
}
.notice.error { border-color: var(--red); background: #fdf1ef; color: #7a3a32; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   CINEMATIC LAYER — depth, motion, and drama on top of the base
   ============================================================ */

/* --- hero: taller, slow Ken Burns push-in, gradient with depth --- */
.hero { min-height: 100svh; }
.hero.short { min-height: min(62vh, 560px); }
.hero-bg img { animation: kenburns 26s ease-out both; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1); } }
.hero-bg::after {
  background:
    radial-gradient(120% 90% at 75% 15%, rgba(6,13,26,0) 0%, rgba(6,13,26,0.55) 70%, rgba(6,13,26,0.85) 100%),
    linear-gradient(180deg, rgba(6,13,26,0.60) 0%, rgba(6,13,26,0.15) 38%, rgba(6,13,26,0.92) 100%),
    linear-gradient(90deg, rgba(6,13,26,0.70) 0%, rgba(6,13,26,0) 62%);
}
/* hero content spacing */
.hero .wrap { padding-bottom: 96px; }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,0.35); }

/* staged entrance for hero content */
.hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row { opacity: 0; transform: translateY(22px); animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.16s; }
.hero .lede { animation-delay: 0.30s; }
.hero .btn-row { animation-delay: 0.44s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* scroll cue */
.hero-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: #cfdae7; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 11.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 9px;
  opacity: 0; animation: heroIn 1s ease 0.9s forwards;
}
.hero-cue span { width: 1px; height: 34px; background: linear-gradient(var(--brand-bright), transparent); animation: cuePulse 2.2s ease-in-out infinite; }
@keyframes cuePulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* --- overlapping stat bar between hero and content --- */
.statbar {
  position: relative; z-index: 5; max-width: var(--maxw); margin: -64px auto 0; padding: 0 24px;
}
.statbar .inner {
  background: rgba(10,22,38,0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--navy-line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.65);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.statbar .cell { padding: 26px 28px; border-right: 1px solid var(--navy-line); }
.statbar .cell:last-child { border-right: 0; }
.statbar .cell .n { font-family: var(--display); font-weight: 700; font-size: clamp(30px,3.4vw,42px); color: #fff; line-height: 1; letter-spacing: 0.01em; }
.statbar .cell .n em { font-style: normal; color: var(--brand-bright); }
.statbar .cell .l { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8fa2b8; margin-top: 10px; }
@media (max-width: 780px) {
  .statbar { margin-top: -48px; }
  .statbar .inner { grid-template-columns: 1fr 1fr; }
  .statbar .cell:nth-child(2) { border-right: 0; }
  .statbar .cell:nth-child(1), .statbar .cell:nth-child(2) { border-bottom: 1px solid var(--navy-line); }
}

/* --- full-bleed cinematic photo band (parallax on desktop) --- */
.band {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-950); isolation: isolate;
}
.band .bg { position: absolute; inset: 0; z-index: -1; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,13,26,0.90) 0%, rgba(6,13,26,0.55) 55%, rgba(6,13,26,0.25) 100%);
}
.band .wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px,14vw,170px) 24px; position: relative; }
.band .quote {
  font-family: var(--display); font-weight: 600; text-transform: none;
  font-size: clamp(28px,4.2vw,52px); line-height: 1.12; max-width: 20ch; color: #fff;
  text-wrap: balance;
}
.band .quote .accent { color: var(--brand-bright); }
.band .cite { margin-top: 24px; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-bright); font-weight: 600; }
/* full-bleed cover band — CSS bg for the .fixed variant (static, robust) */
.band.fixed .bg { background-size: cover; background-position: center 35%; }

/* --- oversized animated numbers band --- */
.bignums { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; }
/* generous separation so the oversized figures never crowd each other on desktop */
.bignums .grid { column-gap: clamp(32px, 5.5vw, 80px); }
.bignum .n {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.005em; line-height: 0.92;
  font-size: clamp(50px, 6.6vw, 92px);
  background: linear-gradient(180deg, #fff 30%, #9fb4cf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.bignum .n em { font-style: normal; -webkit-text-fill-color: var(--brand-bright); }
.bignum .l { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8fa2b8; margin-top: 12px; }
.bignum .s { font-size: 14.5px; color: #7e91a8; margin-top: 6px; }
.bignum + .bignum { border-top: 0; }

/* --- values / what we stand for --- */
.value { display: flex; gap: 18px; align-items: flex-start; }
.value .vi {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), #d8352a); color: #fff;
}
.value .vi svg { width: 22px; height: 22px; }
.value h3 { font-size: 21px; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }
.section-dark .value p { color: #9fb0c4; }

/* --- cinematic leadership cards --- */
.leader { position: relative; }
.leader .pad {
  position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px;
  background: linear-gradient(180deg, rgba(6,13,26,0) 0%, rgba(6,13,26,0.86) 62%, rgba(6,13,26,0.96) 100%);
}
.leader .rank { color: var(--brand-bright); }
.leader h3 { color: #fff; margin-bottom: 0; }
.leader img { aspect-ratio: 4 / 4.9; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.leader:hover img { transform: scale(1.04); }

/* --- closing CTA band --- */
.cta-band { position: relative; color: #fff; overflow: hidden; text-align: center; isolation: isolate; }
.cta-band .bg { position: absolute; inset: 0; z-index: -1; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,26,0.72), rgba(6,13,26,0.88)); }
.cta-band .wrap { max-width: 760px; margin: 0 auto; padding: clamp(80px,12vw,140px) 24px; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* richer card hover accent */
a.card { position: relative; }
a.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px;
  background: linear-gradient(var(--brand), var(--brand-bright)); transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s ease;
}
a.card:hover::before { transform: scaleY(1); }

/* count-up numbers start hidden until observed (progressive enhancement) */
.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: none; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row, .hero-cue { opacity: 1; transform: none; animation: none; }
  .hero-cue span { animation: none; }
}

/* ============================================================
   2026 ELEVATION LAYER — map, alerts, search, news, careers, report
   ============================================================ */

/* WCAG 2.2 — visible focus + min target size on interactive chrome */
a, button, input, select, textarea, summary, [tabindex] { }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }
.nav-links a, .btn, .chip, .icon-btn { min-height: 40px; }

/* scroll progress bar */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transition: width 0.1s linear; }

/* ---- emergency alert banner (site-wide) ---- */
.alertbar { background: linear-gradient(90deg, #7a1f16, var(--red)); color: #fff; font-size: 14.5px; display: none; }
.alertbar.on { display: block; }
.alertbar .wrap { max-width: var(--maxw); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 14px; }
.alertbar .tag { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; font-size: 12.5px; background: rgba(255,255,255,0.18); padding: 3px 10px; border-radius: 6px; flex: none; }
.alertbar a { color: #fff; text-decoration: underline; font-weight: 600; }
.alertbar .x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; flex: none; opacity: 0.85; }
.alertbar .x:hover { opacity: 1; }

/* ---- nav utility buttons (search, language) ---- */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: none;
  border: 1px solid var(--navy-line); border-radius: 8px; color: #d7dfe9; cursor: pointer; padding: 8px 12px;
  font: inherit; font-size: 14px; font-weight: 600; }
.icon-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn kbd { font-family: var(--body); font-size: 11px; background: rgba(255,255,255,0.12); border-radius: 4px; padding: 1px 5px; color: #aebccd; }
@media (max-width: 880px) { .icon-btn kbd { display: none; } .nav-util { display: flex; gap: 8px; } }

/* ---- search / command palette ---- */
.searchwrap { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center;
  background: rgba(6,13,26,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 12vh 20px 20px; }
.searchwrap.on { display: flex; }
.searchbox { width: 100%; max-width: 620px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.searchbox input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 18px; padding: 20px 22px; }
.searchbox input:focus { outline: none; }
.searchresults { max-height: 52vh; overflow-y: auto; }
.searchresults a { display: block; padding: 13px 22px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #f0f3f7; }
.searchresults a:hover, .searchresults a.sel { background: #f3eee2; }
.searchresults .t { font-weight: 700; font-size: 15.5px; color: var(--navy-900); }
.searchresults .d { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.searchresults .none { padding: 22px; color: var(--muted); text-align: center; }
.searchhint { padding: 10px 22px; font-size: 12.5px; color: var(--muted); background: #fbf9f3; display: flex; gap: 16px; }
.searchhint kbd { background: #ede6d6; border-radius: 4px; padding: 1px 6px; }

/* ---- crime map ---- */
.map-shell { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
#crimemap { height: 520px; width: 100%; background: #16243a; z-index: 1; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.map-toolbar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.map-toolbar .seg button { background: #fff; border: 0; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.map-toolbar .seg button + button { border-left: 1px solid var(--line); }
.map-toolbar .seg button.on { background: var(--navy-800); color: #fff; }
.map-toolbar select { flex: 0 1 240px; width: auto; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.map-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.map-legend .sw { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.leaflet-popup-content { font-family: var(--body); font-size: 14px; margin: 12px 14px; }
.leaflet-popup-content .pt { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.leaflet-popup-content .pm { color: var(--muted); font-size: 13px; margin-top: 3px; }
.mapnote { font-size: 13.5px; color: var(--muted); padding: 12px 18px 0; }

/* ---- category color chips (shared map + charts) ---- */
.cat-violent { background: #c0392b; }
.cat-property { background: #d98324; }
.cat-traffic { background: #2b6cb0; }
.cat-disorder { background: #7c5cbf; }
.cat-service { background: #2f9e6a; }
.cat-other { background: #6b7d90; }

/* ---- news & alerts ---- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filterbar button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy-700); cursor: pointer; }
.filterbar button.on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.newsitem { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.newsitem:first-child { padding-top: 0; }
.newsitem .meta { font-size: 14px; color: var(--muted); }
.newsitem .cat { display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; color: #fff; margin-bottom: 10px; }
.newsitem h3 { margin: 0 0 8px; }
.newsitem p { color: var(--muted); margin: 0; }
.cat-press { background: var(--navy-700); }
.cat-alert { background: var(--red); }
.cat-scam { background: #866009; }
.cat-road { background: #2b6cb0; }
.cat-event { background: #237a51; }
.cat-recognition { background: #6b5aa8; }
@media (max-width: 640px) { .newsitem { grid-template-columns: 1fr; gap: 8px; } }

/* ---- careers ---- */
.bene { display: grid; gap: 20px; }
.bene .b { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.bene .b .n { font-family: var(--display); font-weight: 700; font-size: clamp(26px,3vw,34px); color: var(--navy-900); line-height: 1; }
.bene .b .n em { font-style: normal; color: var(--brand); }
.bene .b h3 { font-size: 18px; margin: 12px 0 4px; }
.bene .b p { font-size: 14.5px; color: var(--muted); margin: 0; }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding-bottom: 30px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.step .num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy-800), var(--navy-700)); color: var(--brand-bright); font-family: var(--display); font-weight: 700; font-size: 22px; flex: none; z-index: 1; }
.step h3 { margin: 10px 0 4px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.section-dark .step .num { background: linear-gradient(145deg, var(--brand), #d8352a); color: #fff; }
.section-dark .step:not(:last-child)::before { background: var(--navy-line); }
.section-dark .step p { color: #9fb0c4; }
.reqlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reqlist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.reqlist li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: none; }
.section-dark .reqlist li { color: #c9d5e3; }

/* ---- report page ---- */
.calltable { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .calltable { grid-template-columns: 1fr; } }
.calltable .cell { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.calltable .cell.emerg { background: #fdf1ef; border-color: #f2c9c2; }
.calltable .cell.online { background: #eef7f1; border-color: #cbe6d6; }
.calltable .cell h3 { display: flex; align-items: center; gap: 10px; }
.calltable .cell ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.calltable .cell.emerg .dot2 { color: var(--red); }
.calltable .cell.online .dot2 { color: #2f9e6a; }

/* ---- nav: utilities (search + language) + wider collapse breakpoint ---- */
.nav .wrap { gap: 16px; }
.nav-links { margin-left: auto; }
.nav-links a { font-size: 14.5px; padding: 9px 9px; white-space: nowrap; }
.nav-util { display: flex; align-items: center; gap: 10px; }
.nav-search .lbl { display: none; }
.langtog { display: inline-flex; border: 1px solid var(--navy-line); border-radius: 8px; overflow: hidden; }
.langtog button { background: none; border: 0; color: #aebccd; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 10px; cursor: pointer; }
.langtog button + button { border-left: 1px solid var(--navy-line); }
.langtog button[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (min-width: 1400px) { .nav-search .lbl { display: inline; } }
@media (max-width: 1330px) {
  .brand .t small { display: none; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
    background: rgba(6, 13, 26, 0.98); border-bottom: 1px solid var(--navy-line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 17px; }
  .nav-links a.cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .nav-util { margin-left: auto; }
}
@media (max-width: 480px) { .nav-search kbd { display: none; } .brand .t small { display: none; } }

/* ---- 3D MapLibre crime map ---- */
.map-shell { background: var(--navy-950); border-color: var(--navy-line); }
.map-toolbar { background: var(--navy-900); border-bottom-color: var(--navy-line); }
.map-toolbar .seg { border-color: var(--navy-line); }
.map-toolbar .seg button { background: var(--navy-800); color: #9fb0c4; border-color: var(--navy-line); }
.map-toolbar .seg button + button { border-left-color: var(--navy-line); }
.map-toolbar .seg button.on { background: var(--brand); color: #fff; }
.map-toolbar select { background: var(--navy-800); color: #f1ebdd; border-color: var(--navy-line); }
.map-toolbar .icon-btn { color: #cdd8e5; }
.map-toolbar .hint { color: #8fa2b8; }
.mapplay { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff;
  border: 0; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 15px; cursor: pointer; }
.mapplay:hover { background: #d8352a; }
.mapplay.playing { background: var(--navy-700); color: #fff; }
.mapbox-wrap { position: relative; }
#crimemap { height: 600px; width: 100%; background: #0b1a2b; }
@media (max-width: 640px) { #crimemap { height: 460px; } }
.map-daytag { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(6,13,26,0.82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border: 1px solid var(--navy-line);
  border-radius: 10px; padding: 10px 16px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.map-daytag em { font-style: normal; color: var(--brand-bright); display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.map-hint { position: absolute; bottom: 12px; left: 16px; z-index: 2; background: rgba(6,13,26,0.7);
  color: #cdd8e5; font-size: 12px; padding: 6px 11px; border-radius: 8px; pointer-events: none; }
.map-legend { background: var(--navy-900); border-top-color: var(--navy-line); color: #9fb0c4; }
.maplibregl-popup-content { font-family: var(--body); border-radius: 10px; padding: 12px 15px; box-shadow: var(--shadow-md); }
.maplibregl-popup-content .pt { font-weight: 700; color: var(--navy-900); font-size: 15px; display: block; }
.maplibregl-popup-content .pm { color: var(--muted); font-size: 13px; margin-top: 3px; display: block; }
.maplibregl-ctrl-group { border-radius: 8px !important; overflow: hidden; }

/* a11y fixes: visible focus for search input; keep others from review */
.searchbox input:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; }

/* ---- map v2: orbit, HUD, rhythm bar, vignette ---- */
.maporbit { background: var(--navy-800); color: #cdd8e5; }
.maporbit:hover { background: var(--navy-700); color: #fff; }
.maporbit.playing { background: var(--brand); color: #fff; }
.map-hud { position: absolute; top: 16px; right: 56px; z-index: 2; background: rgba(6,13,26,0.82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border: 1px solid var(--navy-line);
  border-radius: 10px; padding: 10px 16px; max-width: 260px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.map-hud em { font-style: normal; color: var(--brand-bright); display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2px; }
.map-hud span { display: block; font-weight: 500; font-size: 12.5px; color: #9fb0c4; margin-top: 2px; }
.map-daytag .tc { color: #9fb0c4; font-size: 14px; font-weight: 500; margin-left: 8px; }
.map-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, rgba(6,13,26,0) 55%, rgba(6,13,26,0.42) 100%),
              linear-gradient(180deg, rgba(6,13,26,0.35), rgba(6,13,26,0) 14%); }
.map-rhythm-wrap { display: flex; align-items: center; gap: 14px; padding: 12px 18px 4px; background: var(--navy-900); }
.map-rhythm-wrap .rt { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #8fa2b8; flex: none; }
.map-rhythm { display: flex; flex-direction: column; align-items: stretch; gap: 4px; flex: 1; min-width: 0; }
.map-rhythm .rl { font-size: 10.5px; color: #8a9cb2; flex: none; }
.map-rhythm .raxis { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; color: #7d90a8; letter-spacing: 0.02em; }
.map-rhythm .rbars { display: flex; align-items: flex-end; gap: 2px; height: 38px; flex: 1; min-width: 0; }
.map-rhythm .rb { flex: 1; min-width: 3px; background: #2b4066; border-radius: 2px 2px 0 0; }
.map-rhythm .rb.on { background: linear-gradient(180deg, var(--brand-bright), var(--brand)); }
@media (max-width: 720px) { .map-rhythm-wrap .rt { display: none; } .map-hud { display: none; } }

/* ---- homepage community mosaic ---- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.mosaic a { position: relative; border-radius: 14px; overflow: hidden; display: block; }
.mosaic a img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,26,0) 45%, rgba(6,13,26,0.78) 100%); }
.mosaic a .cap { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; }
.mosaic a .cap small { display: block; font-family: var(--body); font-weight: 500; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: #c9d5e3; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 540px) { .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; } .mosaic .big { grid-column: span 1; grid-row: span 1; } }

/* ---- badge entrance intro (homepage, once per session) ---- */
.intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 40%, #12233d 0%, var(--navy-950) 70%);
  animation: introOut 0.7s ease 2s forwards;
  cursor: pointer;
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro img {
  width: min(46vw, 220px); height: auto;
  opacity: 0; transform: scale(0.72) translateY(10px);
  animation: introBadge 0.95s cubic-bezier(0.16, 0.8, 0.24, 1) 0.15s forwards;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.55));
}
@keyframes introBadge { to { opacity: 1; transform: scale(1) translateY(0); } }
.intro .ring, .intro .ring2 {
  position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; margin: -160px 0 0 -160px;
  border-radius: 50%; opacity: 0; pointer-events: none;
}
.intro .ring { border: 2px solid rgba(240, 113, 104, 0.75); animation: introRing 1.3s ease-out 0.5s forwards; }
.intro .ring2 { border: 1.5px solid rgba(53, 168, 221, 0.6); animation: introRing 1.3s ease-out 0.72s forwards; }
@keyframes introRing {
  0% { opacity: 0.9; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1.9); }
}
.intro .it {
  position: absolute; bottom: 12vh; left: 0; right: 0; text-align: center;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.34em;
  font-size: 13px; font-weight: 600; color: #8fa2b8;
  opacity: 0; animation: introBadge 0.8s ease 0.55s forwards;
}
html.intro-off .intro { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---- map level 2: tour card, street search, ticker, trends ---- */
.tour-card { position: absolute; z-index: 3; left: 50%; bottom: 44px; transform: translateX(-50%);
  min-width: 280px; max-width: 84%; text-align: center; background: rgba(6,13,26,0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--navy-line);
  border-radius: 12px; padding: 14px 22px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 21px; }
.tour-card em { font-style: normal; display: block; color: var(--brand-bright); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 3px; }
.tour-card span { display: block; font-family: var(--body); font-weight: 500; font-size: 13px; color: #9fb0c4; margin-top: 3px; }
.tr.up { color: #f28b7d; } .tr.dn { color: #57c28b; } .tr { color: #8fa2b8; }
.leaflet-popup-content .tr, .maplibregl-popup-content .tr { font-weight: 700; }

.map-search { position: relative; flex: 1 1 200px; max-width: 260px; }
.map-search input { width: 100%; background: var(--navy-800); color: #f1ebdd; border: 1.5px solid var(--navy-line); border-radius: 9px; padding: 9px 13px; font-size: 14px; }
.map-search input::placeholder { color: #7e91a8; }
.map-search .sug { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--navy-900); border: 1px solid var(--navy-line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); }
.map-search .sug button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #d7dfe9;
  font: inherit; font-size: 13.5px; padding: 10px 14px; cursor: pointer; }
.map-search .sug button:hover, .map-search .sug button:focus-visible { background: var(--navy-700); color: #fff; }

.map-ticker-wrap { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--navy-line); background: var(--navy-950); overflow: hidden; }
.tklbl { flex: none; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--brand-bright);
  padding: 10px 16px; border-right: 1px solid var(--navy-line); background: var(--navy-900); position: relative; z-index: 2; }
.map-ticker { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.tk-track { display: inline-flex; gap: 10px; padding: 7px 12px; animation: tkScroll 60s linear infinite; }
.map-ticker:hover .tk-track, .map-ticker:focus-within .tk-track { animation-play-state: paused; }
@keyframes tkScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .map-ticker { overflow-x: auto; } }
button.tk { flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--navy-800); color: #c9d5e3;
  border: 1px solid var(--navy-line); border-radius: 999px; font: inherit; font-size: 12.5px; padding: 4px 13px; cursor: pointer; }
button.tk:hover { background: var(--navy-700); color: #fff; }
button.tk .tkt { color: #7fb0dd; font-weight: 700; } /* AA on navy-800 (was --sky 3.07:1) */
button.tk .tka { color: #8fa2b8; }
button.tk.nomap { opacity: 0.72; cursor: default; }

/* ---- map level 3: cinema mode, block report, popup report link ---- */
.pop-report { display: block; margin-top: 10px; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; cursor: pointer; width: 100%; }
.pop-report:hover { background: #d8352a; }

.block-report { position: absolute; z-index: 4; top: 14px; left: 14px; bottom: 14px; width: min(360px, calc(100% - 28px));
  overflow-y: auto; background: rgba(6,13,26,0.93); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--navy-line); border-radius: 14px; padding: 22px 24px; color: #c9d5e3; font-size: 15px; }
.block-report em { font-style: normal; color: var(--brand-bright); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.block-report h3 { color: #fff; margin: 6px 0 10px; font-size: 26px; }
.block-report .br-big { font-family: var(--display); font-weight: 700; font-size: 21px; color: #fff; line-height: 1.25; }
.block-report p { margin: 0 0 10px; }
.block-report .br-fine { font-size: 12px; color: #7e91a8; margin-top: 14px; }
.block-report .br-actions { display: flex; gap: 10px; margin-top: 16px; }
.block-report .br-actions .btn { font-size: 14px; padding: 10px 16px; }
.block-report .br-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #8fa2b8;
  font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.block-report .br-x:hover { color: #fff; }

.cinema-brand { position: absolute; z-index: 3; right: 18px; bottom: 40px; display: none; align-items: center; gap: 12px;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em;
  background: rgba(6,13,26,0.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--navy-line); border-radius: 12px; padding: 10px 16px; }
.cinema-brand span { display: block; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; color: #9fb0c4; text-transform: none; margin-top: 3px; }
body.cinema-on .cinema-brand { display: flex; }
body.cinema-on .map-hint, body.cinema-on .map-hud { display: none; }
.mapbox-wrap:fullscreen { background: #081120; }
.mapbox-wrap:fullscreen #crimemap { height: 100vh; }
.mapbox-wrap:fullscreen .map-daytag { top: 28px; left: 28px; font-size: 34px; padding: 16px 24px; }
.mapbox-wrap:fullscreen .cinema-brand { right: 28px; bottom: 28px; }


/* ---- map band (dark theater) + tactical frame ---- */
.mapband .mapnote { color: #8fa2b8; }
.mapband .mapnote a { color: #5fc0ea; }
.mapband .map-shell { box-shadow: 0 40px 90px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(53,168,221,0.18); border-color: rgba(53,168,221,0.28); }
.mapbox-wrap::before, .mapbox-wrap::after,
.mapbox-wrap .map-corner-a, .mapbox-wrap .map-corner-b {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 3; pointer-events: none;
}
.mapbox-wrap::before { top: 10px; left: 10px; border-top: 2px solid var(--sky); border-left: 2px solid var(--sky); border-top-left-radius: 6px; }
.mapbox-wrap::after { bottom: 10px; right: 10px; border-bottom: 2px solid var(--brand-bright); border-right: 2px solid var(--brand-bright); border-bottom-right-radius: 6px; }
.mapbox-wrap .map-corner-a { top: 10px; right: 10px; border-top: 2px solid var(--brand-bright); border-right: 2px solid var(--brand-bright); border-top-right-radius: 6px; }
.mapbox-wrap .map-corner-b { bottom: 10px; left: 10px; border-bottom: 2px solid var(--sky); border-left: 2px solid var(--sky); border-bottom-left-radius: 6px; }
body.cinema-on .mapbox-wrap::before, body.cinema-on .mapbox-wrap::after,
body.cinema-on .map-corner-a, body.cinema-on .map-corner-b { display: none; }

/* light-section polish: notices get patch tint, tables soft blue header */
.notice { border-left-width: 4px; }
table.log th { background: #eef4fb; }
.chart-card { position: relative; overflow: hidden; }
.chart-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--sky)); }

/* ---- interactive charts ---- */
.barlist .row { -webkit-appearance: none; appearance: none; background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer;
  border-radius: 8px; padding: 4px 6px; margin: 0 -6px; transition: background 0.15s ease; }
.barlist .row:hover, .barlist .row:focus-visible { background: #eef4fb; outline: 3px solid var(--blue-bright); outline-offset: -3px; }
.barlist .row:hover .name { color: var(--brand); }
.barlist .row .fill { transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); background: linear-gradient(90deg, #1c3f74, #4c8fe8); }
.barlist .row:hover .fill { background: linear-gradient(90deg, #a5281f, var(--brand-bright)); }
.section-dark .barlist .row:hover, .section-dark .barlist .row:focus-visible { background: rgba(255,255,255,0.06); }
.section-dark .barlist .row .name { color: #c9d5e3; }
.section-dark .barlist .row .val { color: #fff; }
#trend .tbar { cursor: default; }
#trend .tbar rect { transition: filter 0.15s ease; }
#trend .tbar:hover rect { filter: brightness(1.14); }
/* the trend/toptypes cards sit on white inside the dark map-adjacent flow; keep readable */
.chart-card { background: var(--card); }

/* ============================================================
   Mobile map declutter + light-section contrast pass
   ============================================================ */
@media (max-width: 768px) {
  /* the "drag to pan" hint collided with the map attribution — drop it on touch */
  .map-hint { display: none; }
  /* ticker is secondary on a phone; hide to cut the noise */
  .map-ticker-wrap { display: none; }
  /* tidy the wrapped control set; count on its own full-width top line */
  .map-toolbar { padding: 12px 14px; row-gap: 10px; }
  .map-toolbar .map-search { flex: 1 1 100%; max-width: none; }
  .map-toolbar #map-count { order: -1; flex-basis: 100%; margin-bottom: 2px; }
  #crimemap { height: 440px; }
  .map-legend { font-size: 12.5px; gap: 9px 13px; }
  /* keep the maplibre attribution compact + readable at the corner */
  .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { max-width: 62%; }
  .maplibregl-ctrl-attrib.maplibregl-compact { margin: 6px; }
}

/* MapLibre 4.x opens the compact attribution by default (and re-opens it on desktop
   resizes), leaving a wide credit bar sitting over the map. Force it to stay collapsed
   to just the ⓘ badge regardless of the -show class; hovering or focusing it still
   expands the full OSM/OpenMapTiles credit, so attribution stays one interaction away. */
#crimemap .maplibregl-ctrl-attrib.maplibregl-compact-show:not(:hover):not(:focus-within) {
  padding: 2px 24px 2px 0;
}
#crimemap .maplibregl-ctrl-attrib.maplibregl-compact-show:not(:hover):not(:focus-within) .maplibregl-ctrl-attrib-inner {
  display: none;
}

/* deeper page tone so cards + photos aren't floating on near-white */
body {
  background:
    radial-gradient(60% 36% at 88% 3%, rgba(53, 168, 221, 0.14), transparent 62%),
    radial-gradient(52% 32% at 0% 34%, rgba(194, 43, 33, 0.08), transparent 60%),
    radial-gradient(56% 34% at 96% 82%, rgba(53, 168, 221, 0.11), transparent 60%),
    #f1ede3;
}

/* frame photos so light images (the cream JPD flag) get a defined edge + lift off the page */
.split .photo {
  position: relative; background: var(--navy-900);
  box-shadow: 0 30px 70px -30px rgba(10, 22, 38, 0.6), 0 6px 18px rgba(10, 22, 38, 0.16);
}
.split .photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(10, 22, 38, 0.18);
}

/* cards on light sections read as distinct objects, not white-on-white */
.section:not(.section-dark):not(.bignums) .card {
  border-color: #e4ddcd;
  box-shadow: 0 1px 2px rgba(10, 22, 38, 0.05), 0 14px 34px -16px rgba(10, 22, 38, 0.2);
}
.chart-card, .table-wrap { border-color: #e4ddcd; }


/* stronger color presence on light sections (per Brennan: too white, too subtle) */
.tintband { background: linear-gradient(180deg, #ece3d1 0%, #f1ebdd 100%); position: relative; }
.tintband::before, .tintband::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(28, 63, 116, 0.1);
}
.tintband::before { top: 0; } .tintband::after { bottom: 0; }
.tintband .chip { background: #fff; border-color: #d9cfb8; }
/* section eyebrow accent gets a touch more weight */
.section .eyebrow::before { height: 3px; width: 46px; }
/* ---------- Daily Incident Log — "dispatch feed" ---------- */
.log-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 26px 0 14px; }
.log-search { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
.log-search-ic { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.log-search input[type="search"] { width: 100%; padding-left: 44px; }
.log-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.log-tools .seg { display: inline-flex; border: 1px solid #e0d8c6; border-radius: 10px; overflow: hidden; background: #fff; }
.log-tools .seg button { background: none; border: 0; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.log-tools .seg button + button { border-left: 1px solid #e0d8c6; }
.log-tools .seg button.on { background: var(--navy-800); color: #fff; }

.fcats { display: flex; gap: 9px; flex-wrap: wrap; margin: 2px 0 12px; }
.fcat { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e0d8c6; color: var(--navy-800); padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.fcat b { color: var(--muted); font-weight: 700; }
.fcat:hover { border-color: #bcac8f; }
.fcat.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.fcat.on b { color: #bcd0e6; }
.fcat-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.factive { margin: 0 0 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.factive[hidden] { display: none; }
.factive b { color: var(--navy-800); }
.fclear { border: 0; background: #f1ebdd; color: var(--navy-800); width: 22px; height: 22px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; }
.fclear:hover { background: #e5decc; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed-group { display: block; }
.feed-calls { list-style: none; margin: 0; padding: 0; }
.feed-day { position: sticky; top: 6px; z-index: 4; margin: 20px 0 9px; pointer-events: none; }
.feed-group:first-child .feed-day { margin-top: 2px; }
.feed-day span { display: inline-block; background: linear-gradient(180deg, #ebe3d1, #ded6c3); color: var(--navy-800); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; box-shadow: 0 4px 14px -6px rgba(10,22,38,.4); }

.call { background: #fff; border: 1px solid #e9e2d1; border-radius: 14px; margin: 0 0 10px; overflow: hidden; transition: box-shadow .18s, border-color .18s, transform .12s; }
.call:hover { border-color: #d7ccb5; box-shadow: 0 12px 28px -18px rgba(10,22,38,.4); }
.call.open { border-color: #c9bb9b; box-shadow: 0 18px 44px -22px rgba(10,22,38,.45); }
.call-main { display: flex; align-items: stretch; width: 100%; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.call-rail { flex: 0 0 6px; align-self: stretch; }
.call-body { flex: 1 1 auto; padding: 14px 6px 14px 16px; min-width: 0; }
.call-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.call-type { font-weight: 700; color: var(--navy-900); font-size: 15.5px; line-height: 1.25; }
.call-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }
.call-loc { color: #5a5240; font-size: 14.5px; line-height: 1.4; }
.call-chev { flex: 0 0 auto; align-self: center; width: 46px; position: relative; }
.call-chev::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-right: 2px solid #b3a88e; border-bottom: 2px solid #b3a88e; transform: translate(-60%, -60%) rotate(45deg); transition: transform .2s; }
.call.open .call-chev::after { transform: translate(-50%, -30%) rotate(-135deg); }

.call-detail { padding: 2px 18px 18px 22px; }
.cd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; padding: 14px 0 4px; border-top: 1px dashed #e4ddcd; }
.cd-wide { grid-column: 1 / -1; }
.cd-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.cd-v { font-size: 14.5px; color: var(--navy-900); }
.cd-cat { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; }
.cd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cd-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

@media (max-width: 640px) {
  .log-controls { gap: 10px; }
  .log-tools { width: 100%; justify-content: space-between; }
  /* one swipeable row of category chips instead of a stacked cluster */
  .fcats { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; margin-right: -20px; padding-right: 20px; }
  .fcats::-webkit-scrollbar { display: none; }

  .cd-grid { grid-template-columns: 1fr; }
  .cd-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- incident dashboard v1 ---------- */
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 18px; }
.dtile {
  background: linear-gradient(170deg, var(--navy-900), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 18px 20px 16px;
  box-shadow: 0 16px 36px -22px rgba(10,22,38,0.55);
}
.dtile .dt-n {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #9fb4cf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.dtile .dt-n.dt-type { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; padding-top: 6px; -webkit-text-fill-color: #fff; background: none; color: #fff; }
.dtile .dt-l { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa2b8; margin-top: 9px; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.dash-main { min-width: 0; }

.feed-panel {
  max-height: 660px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #e9e1cf, #ede5d5); border: 1px solid #dbd1bc; border-radius: 16px;
  padding: 12px 14px 14px; overscroll-behavior: contain;
}
.feed-panel:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.feed-panel .load-more { margin: 10px auto 4px; }
.feed-panel .feed-group:first-child .feed-day { margin-top: 0; }

.dash-side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 14px); }
.dpanel { background: #fff; border: 1px solid #e5dfce; border-radius: 14px; padding: 16px 16px 12px; box-shadow: 0 14px 30px -22px rgba(10,22,38,0.35); }
.dpanel-t { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-800); margin: 0 0 10px; }
.dp-list { display: grid; gap: 4px; }
.dp-row { display: block; width: 100%; background: none; border: 0; padding: 6px 4px; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.dp-row:hover { background: #f3eee2; }
.dp-row[data-noop] { cursor: default; }
.dp-row[data-noop]:hover { background: none; }
.dp-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.dp-label { font-size: 13.5px; font-weight: 600; color: var(--navy-900); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.dp-track { display: block; height: 6px; border-radius: 999px; background: #ede6d6; overflow: hidden; }
.dp-fill { display: block; height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.2,.7,.3,1); }
.dp-empty { font-size: 13.5px; color: var(--muted); margin: 2px 4px 6px; }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; grid-template-columns: 1fr; }
  .dash-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feed-panel { max-height: clamp(340px, 58vh, 560px); }
}

/* touch devices: let a swipe past the panel edge continue scrolling the page
   (wheel/trackpad users on desktop keep the contained behavior) */
@media (pointer: coarse) {
  .feed-panel { overscroll-behavior: auto; }
}

/* ---------- dashboard v2: date range + tile sparklines ---------- */
.frange { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.frange [data-range] {
  background: #fff; border: 1px solid #e0d8c6; color: var(--muted);
  padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.frange [data-range]:hover { border-color: #bcac8f; }
.frange [data-range].on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.frange-custom { display: inline-flex; align-items: center; gap: 6px; }
.frange-custom[hidden] { display: none; }
.frange-custom input[type="date"] {
  padding: 7px 10px; border: 1px solid #e0d8c6; border-radius: 10px;
  font: inherit; font-size: 13.5px; color: var(--navy-900); background: #fff; width: auto;
}
.frange-sep { color: var(--muted); }

.dtile .dt-sparkwrap { margin-top: 12px; min-height: 30px; }
.dt-spark { display: block; opacity: 0.92; }

@media (max-width: 640px) {
  .frange { gap: 6px; }
  .frange-custom { flex: 1 1 100%; }
  .frange-custom input[type="date"] { flex: 1 1 0; min-width: 0; }
}

/* ---------- 5-year neighborhood trends (/trends/) ---------- */
.tchart { display: block; }
.tc-axis { font-size: 12px; fill: var(--muted); font-weight: 600; }
.tc-partial { fill: var(--brand); }
.tc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tcdraw 1.3s cubic-bezier(.4,.5,.2,1) forwards; }
@keyframes tcdraw { to { stroke-dashoffset: 0; } }

.citychart { padding: 18px 20px 10px; }
.citycats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.citycat { background: #fff; border: 1px solid #e5dfce; border-radius: 12px; padding: 12px 14px; }
.citycat-top { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.citycat-n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.tspark { display: block; }

.nb-dash { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.nb-list { display: grid; gap: 8px; }
.nb-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #e5dfce; border-radius: 12px; padding: 11px 14px; font: inherit; transition: border-color .15s, box-shadow .15s, transform .1s; }
.nb-item:hover { border-color: #d1c5ab; }
.nb-item[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 12px 30px -18px rgba(194,43,33,.4); background: #fffdfc; }
.nb-rank { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-100, #f1ebdd); color: var(--navy-800); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.nb-item[aria-selected="true"] .nb-rank { background: var(--brand); color: #fff; }
.nb-item-body { flex: 1 1 auto; min-width: 0; }
.nb-name { display: block; font-weight: 700; color: var(--navy-900); font-size: 14.5px; line-height: 1.2; }
.nb-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nb-item-spark { flex: 0 0 88px; }

.nb-detail { background: #fff; border: 1px solid #e5dfce; border-radius: 16px; padding: 20px 22px; box-shadow: 0 18px 44px -28px rgba(10,22,38,.4); }
.nb-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.nb-detail-head h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.nb-detail-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.ttag { flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.ttag.up { color: #a5281f; background: #fbeceb; }
.ttag.dn { color: #1f6b45; background: #e8f5ee; }
.ttag.flat { color: var(--muted); background: #f4efe5; }
.nb-chart { margin: 8px 0 10px; }
.nb-detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nb-detail-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 6px 0 10px; }
.tmix { display: grid; gap: 9px; }
.tmix-top { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 4px; }
.tmix-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.tmix-n { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tmix-track { display: block; height: 6px; border-radius: 999px; background: #ede6d6; overflow: hidden; }
.tmix-fill { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.3,1); }
.nb-blocks h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 6px 0 10px; }
.nb-blocks ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nb-blocks li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--navy-900); }
.nb-blocks li b { color: var(--muted); font-variant-numeric: tabular-nums; }

.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.nb-card { text-align: left; cursor: pointer; background: #fff; border: 1px solid #e5dfce; border-radius: 14px; padding: 15px 16px; font: inherit; transition: border-color .15s, box-shadow .15s, transform .1s; }
.nb-card:hover { border-color: #d1c5ab; transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(10,22,38,.4); }
.nb-card.on { border-color: var(--brand); }
.nb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nb-card-name { font-weight: 700; font-size: 14px; color: var(--navy-900); line-height: 1.2; }
.nb-card-top .ttag { font-size: 11px; padding: 3px 8px; }
.nb-card-n { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy-900); line-height: 1; margin-bottom: 8px; }
.nb-card-n span { font-family: var(--body, inherit); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 900px) {
  .nb-dash { grid-template-columns: 1fr; }
  .nb-detail-cols { grid-template-columns: 1fr; gap: 18px; }
}

/* crime-info -> trends CTA band */
.trends-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  text-decoration: none; color: inherit; background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  border: 1px solid var(--navy-line); border-radius: 18px; padding: 26px 30px;
  box-shadow: 0 22px 50px -30px rgba(10,22,38,.7); transition: transform .15s, box-shadow .15s; }
.trends-cta:hover { transform: translateY(-2px); box-shadow: 0 28px 60px -30px rgba(10,22,38,.8); }
.trends-cta-txt { flex: 1 1 340px; }
.trends-cta-txt .eyebrow { color: var(--brand-bright); }
.trends-cta-txt h3 { color: #fff; margin: 4px 0 8px; font-size: clamp(20px, 2.4vw, 27px); }
.trends-cta-txt p { color: #a9b8cc; margin: 0; font-size: 15px; max-width: 640px; }
.trends-cta-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 999px; }
.trends-cta:hover .trends-cta-go { background: var(--brand-bright); }

/* ---------- header: open/closed status pill + de-squished brand ---------- */
.ribbon .wrap { align-items: center; }
.rib-emerg { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rib-sep { color: #435067; }
.hours-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.hours-status .hs-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.hours-status.is-open { background: rgba(47,158,106,0.15); color: #8fe3ba; }
.hours-status.is-open b { color: #c3f3dd; font-weight: 700; }
.hours-status.is-open .hs-dot { background: #37d089; box-shadow: 0 0 0 3px rgba(55,208,137,0.18); }
.hours-status.is-closed { background: rgba(194,43,33,0.18); color: #f2ada6; }
.hours-status.is-closed b { color: #ffdad5; font-weight: 700; }
.hours-status.is-closed .hs-dot { background: var(--brand-bright); box-shadow: 0 0 0 3px rgba(240,113,104,0.16); }
@media (prefers-reduced-motion: no-preference) {
  .hours-status.is-open .hs-dot { animation: hsPulse 2.4s ease-in-out infinite; }
}
@keyframes hsPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(55,208,137,0.18); } 50% { box-shadow: 0 0 0 5px rgba(55,208,137,0.05); } }

/* brand lockup — a bit more air, calmer subtitle */
.brand { gap: 13px; }
.brand .t small { color: #9fb2c6; letter-spacing: 0.3em; font-weight: 600; opacity: 0.85; }
.nav-links { gap: 5px; }

@media (max-width: 620px) {
  .hours-status { font-size: 12px; padding: 2px 10px; }
  .ribbon .wrap { justify-content: center; gap: 8px 14px; }
}

/* ---------- nav refinement: calmer, better-organized layout ---------- */
.nav .wrap { gap: 22px; }
.brand { margin-right: 4px; }                 /* was margin-right:auto — let links sit beside it */
.nav-links { margin-left: 6px; gap: 3px; }    /* links group left, next to the brand */
.nav-links a { font-size: 15px; font-weight: 600; padding: 9px 13px; border-radius: 9px; color: #ccd6e2; position: relative; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a[aria-current="page"] { color: #fff; background: transparent; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}
/* utilities cluster, set off from the links by a hairline divider */
.nav-util { margin-left: auto; display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--navy-line); }
.nav-search { width: 38px; height: 38px; padding: 0; border-radius: 9px; gap: 0; }
.nav-util .cta { background: var(--brand); color: #fff; font-weight: 700; font-size: 14.5px; padding: 9px 17px; border-radius: 9px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.nav-util .cta:hover { background: var(--brand-bright); color: #fff; }

@media (max-width: 1240px) { .nav-util { padding-left: 12px; gap: 9px; } }
@media (max-width: 560px) {
  .nav-util { border-left: none; padding-left: 0; gap: 7px; }
  .nav-util .cta { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 390px) { .nav-util .cta { display: none; } }  /* tip stays in the ribbon + footer */

/* Submit-a-Tip: in the desktop utility cluster; inside the hamburger menu on mobile */
.nav-mob-tip { display: none; }
@media (max-width: 1240px) {
  .nav-util .cta { display: none; }
  .nav-links .nav-mob-tip { display: block; }
}

/* ---------- review fixes: contrast + narrow-phone nav ---------- */
/* #3: the .tr trend colors are tuned for dark panels; inside the WHITE map popup
   they fail contrast — give the popup its own darker, on-white variants */
.maplibregl-popup-content .tr.up { color: #a5281f; }
.maplibregl-popup-content .tr.dn { color: #1f6b45; }
.maplibregl-popup-content .tr { color: #51606f; }

/* #8: keep the sticky nav from forcing horizontal page scroll on <=400px phones
   (iPhone SE / mini / small Android). Tighten padding + gaps; CTA already hides <=390 */
@media (max-width: 400px) {
  .nav .wrap { padding: 0 13px; gap: 9px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; }
}

/* ---------- trends: "State of Safety" data story ---------- */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.rec-card { background: #fffdf8; border: 1px solid #e4ddcd; border-radius: 14px; padding: 18px 20px; box-shadow: 0 14px 30px -24px rgba(10,22,38,.3); }
.rec-card.wide { grid-column: span 1; }
.rec-n { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.05; color: var(--navy-900); letter-spacing: .01em; }
.rec-l { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--brand); font-weight: 700; margin-top: 9px; }
.rec-s { font-size: 13px; color: var(--muted); margin-top: 4px; }

.heatwrap { background: #fffdf8; border: 1px solid #e4ddcd; border-radius: 16px; padding: 18px 20px 10px; box-shadow: 0 16px 36px -26px rgba(10,22,38,.35); overflow-x: auto; }
.heat { display: block; min-width: 520px; }
.heat-lbl { font-size: 11px; fill: var(--muted); font-weight: 600; }

.dz2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.season-card { padding: 16px 18px 8px; background: #fffdf8; border-color: #e4ddcd; }
.catshift-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding-left: 4px; }
.catshift-legend .cl { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--navy-900); font-weight: 600; }
.catshift-legend .cl-dot { width: 10px; height: 10px; border-radius: 50%; }

.dl-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); border: 1px solid var(--navy-line);
  border-radius: 18px; padding: 26px 30px; box-shadow: 0 22px 50px -32px rgba(10,22,38,.7); }
.dl-copy { flex: 1 1 300px; }
.dl-copy .eyebrow { color: var(--gold); }
.dl-copy h3 { color: #fff; margin: 4px 0 8px; font-size: clamp(19px, 2.2vw, 25px); }
.dl-copy p { color: #b3c0d0; margin: 0; font-size: 14.5px; max-width: 52ch; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btns .btn { background: rgba(255,255,255,.08); color: #eaf0f7; border: 1px solid var(--navy-line); }
.dl-btns .btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 820px) { .dz2 { grid-template-columns: 1fr; gap: 20px; } }


/* ---------- ultracode review fixes ---------- */
.heatwrap:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
@media (max-width: 520px) {
  .heatwrap { position: relative; }
  .heatwrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
    background: linear-gradient(90deg, rgba(255,253,248,0), #fffdf8 78%); pointer-events: none; border-radius: 0 16px 16px 0; }
  .heat-swipe { display: block; }
}
.heat-swipe { display: none; font-size: 12px; color: var(--muted); text-align: right; margin-top: 6px; }
.nav-links a[aria-current="page"]::after { background: linear-gradient(90deg, var(--brand-bright), var(--gold)); }


/* ---------- improvement wave (Jul 2026) ---------- */
.heat { height: auto; }
@media (min-width: 1100px) { .rec-grid { grid-template-columns: repeat(3, 1fr); } }

/* entrance choreography for async-injected trends content */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .rec-grid .rec-card, .citycats .citycat { animation: cardIn .55s cubic-bezier(.2,.7,.2,1) both; }
  .rec-grid .rec-card:nth-child(2), .citycats .citycat:nth-child(2) { animation-delay: .07s; }
  .rec-grid .rec-card:nth-child(3), .citycats .citycat:nth-child(3) { animation-delay: .14s; }
  .rec-grid .rec-card:nth-child(4), .citycats .citycat:nth-child(4) { animation-delay: .21s; }
  .rec-grid .rec-card:nth-child(5), .citycats .citycat:nth-child(5) { animation-delay: .28s; }
  .rec-grid .rec-card:nth-child(6), .citycats .citycat:nth-child(6) { animation-delay: .35s; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .nb-detail.swap { animation: panelIn .28s cubic-bezier(.2,.7,.2,1); }
}

/* comfortable tap targets on touch devices only (desktop keeps the tight look) */
@media (pointer: coarse) {
  .icon-btn, .nav-toggle { min-width: 44px; min-height: 44px; }
  .langtog button { min-height: 40px; padding-left: 12px; padding-right: 12px; }
  .seg button, .fcat, .dp-row { min-height: 44px; }
}

/* week-tile year-over-year line */
.dt-yoy { margin-top: 4px; min-height: 18px; }
.dt-yoy .ttag { font-size: 11.5px; }

/* ============ authoritative mobile-nav hardening (demo-eve) ============
   The nav accreted several conflicting breakpoints over successive redesigns.
   This final block re-asserts the intended mobile behavior so no earlier
   fragment can override it: hamburger visible, inline Submit-a-Tip collapsed
   into the menu, and the brand sized so nothing wraps. */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav-util .cta { display: none; }          /* Submit a Tip: in the hamburger + ribbon on mobile */
  .nav-links .nav-mob-tip { display: block; }
  .brand .t { font-size: 18px; }
  .brand .t small { display: none; }
}
@media (max-width: 400px) {
  .nav .wrap { gap: 10px; padding: 0 13px; }
  .brand { gap: 10px; }
  .brand img { width: 38px; }
  .brand .t { font-size: 16px; }
  .nav-util { gap: 6px; }
}

/* downloadable request forms (report page cards) */
.form-dl { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13.5px;
  font-weight: 600; color: var(--brand-bright); text-decoration: none; }
.form-dl svg { width: 15px; height: 15px; flex: none; }
.form-dl:not(.pending):hover { text-decoration: underline; }
.form-dl.pending { color: #7d8ea3; cursor: default; }
.form-dl.pending em { font-style: normal; font-weight: 500; opacity: .85; }
.card .form-dl + .go { margin-top: 10px; }

/* the width/height attrs (added for CLS) set a definite pixel height that blocks
   aspect-ratio — let aspect-ratio drive the crop for all .leader photos */
.leader img { height: auto; }
/* community program tiles are landscape EVENT photos, not portrait headshots —
   override the tall .leader crop so they sit as proper wide tiles on desktop */
.leader.event img { aspect-ratio: 16 / 11; object-position: center; }
@media (max-width: 720px) { .leader.event img { aspect-ratio: 16 / 10; } }

/* on-submit confirmation pop-up (report form) */
.form-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6,13,26,.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: fmIn .2s ease; }
.form-modal[hidden] { display: none; }
.fm-card { background: #fffdf8; border-radius: 18px; max-width: 460px; width: 100%; padding: 34px 32px 28px;
  text-align: center; box-shadow: 0 40px 90px -30px rgba(6,13,26,.75); animation: fmCard .3s cubic-bezier(.2,.7,.2,1); }
.fm-check { width: 60px; height: 60px; border-radius: 50%; background: #1f7a4d; color: #fff; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px; }
.fm-check svg { width: 30px; height: 30px; }
.fm-card h2 { margin: 0 0 10px; color: var(--navy-900); }
.fm-card p { color: var(--muted); margin: 0 0 12px; line-height: 1.55; }
.fm-card .fm-fine { font-size: 13px; color: #8a8676; }
.fm-actions { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.fm-again { background: none; border: 0; color: var(--navy-900); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fm-again:hover { color: var(--brand); }
@keyframes fmIn { from { opacity: 0; } }
@keyframes fmCard { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .form-modal, .fm-card { animation: none; } }

/* ---------- Ask JPD assistant widget ---------- */
.ask-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 190; }
.ask-fab { display: inline-flex; align-items: center; gap: 9px; background: var(--brand); color: #fff;
  border: 0; border-radius: 999px; padding: 12px 18px 12px 15px; font-family: var(--display); font-weight: 700;
  font-size: 15px; letter-spacing: .02em; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(180,35,43,.6);
  transition: transform .15s, background .15s; }
.ask-fab:hover { background: var(--brand-bright); transform: translateY(-2px); }
.ask-fab svg { width: 20px; height: 20px; }
.ask-panel { position: absolute; bottom: calc(100% + 12px); right: 0; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px)); background: #fffdf8; border: 1px solid #e4ddcd; border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 90px -28px rgba(6,13,26,.6);
  animation: askIn .22s cubic-bezier(.2,.7,.2,1); }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px; background: var(--navy-900); color: #fff; }
.ask-dot { width: 9px; height: 9px; border-radius: 50%; background: #35c07a; box-shadow: 0 0 0 4px rgba(53,192,122,.2); }
.ask-title { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; flex: 1; }
.ask-close { background: none; border: 0; color: #cbd6e2; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ask-close:hover { color: #fff; }
.ask-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ask-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.ask-msg p { margin: 0 0 8px; } .ask-msg p:last-child { margin: 0; }
.ask-msg a { color: inherit; text-decoration: underline; }
.ask-assistant { background: #f0ece1; color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.ask-user { background: var(--sky); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.ask-user a { color: #fff; }
.ask-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.ask-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a99; animation: askBlink 1.2s infinite; }
.ask-typing i:nth-child(2) { animation-delay: .2s; } .ask-typing i:nth-child(3) { animation-delay: .4s; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 8px; }
.ask-chip { background: #fff; border: 1px solid #e0d8c8; border-radius: 999px; padding: 7px 12px; font-size: 12.5px;
  color: var(--navy-900); cursor: pointer; text-align: left; line-height: 1.3; }
.ask-chip:hover { border-color: var(--brand); color: var(--brand); }
.ask-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #ece5d6; align-items: center; }
.ask-input { flex: 1; border: 1px solid #d8cfbd; border-radius: 11px; padding: 11px 13px; font: inherit; font-size: 14.5px; background: #fff; color: var(--ink); }
.ask-input:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
.ask-send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ask-send:hover { background: var(--brand-bright); }
.ask-send svg { width: 20px; height: 20px; }
.ask-fine { margin: 0; padding: 0 16px 12px; font-size: 11px; color: #8a8676; line-height: 1.4; text-align: center; }
@keyframes askIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes askBlink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
@media (max-width: 640px) { .ask-fab-t { display: none; } .ask-fab { padding: 13px; } }
@media (prefers-reduced-motion: reduce) { .ask-panel { animation: none; } .ask-typing i { animation: none; } .ask-fab:hover { transform: none; } }
