/* Global Resets */
:root {
  --font-family-sans: "Avenir Next LT Pro", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-size-body: clamp(1.05rem, 1.1vw + 0.85rem, 1.2rem);
  --font-size-h1: clamp(2.25rem, 3vw + 1.4rem, 3rem);
  --font-size-h2: clamp(1.85rem, 2.2vw + 1.1rem, 2.45rem);
  --font-size-h3: clamp(1.5rem, 1.8vw + 1rem, 2rem);
  --font-size-small: clamp(0.9rem, 0.45vw + 0.75rem, 1rem);
  --font-size-ui: clamp(0.95rem, 0.5vw + 0.8rem, 1.05rem);
  --line-height-body: 1.6;
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-muted: #475569;
  --color-card-bg: #ffffff;
  --color-card-border: rgba(15, 23, 42, 0.12);
  --color-card-shadow: rgba(15, 23, 42, 0.08);
  --color-card-icon: rgba(71, 85, 105, 0.8);
  --color-tooltip-bg: #ffffff;
  --color-tooltip-text: #111827;
  --color-link: #00449e;
  --color-link-hover: #003985;
  --color-link-active: #002b6e;
  --color-hero-caption: #2c3a4d;
  --color-hero-caption-link: #184b8c;
}

/* CSS map (major anchors):
   1) Base + typography + links
   2) Tachyons overrides / theme helpers
   3) Metric cards + chips
   4) Crash/hero media + heatmaps
   5) Layout shell (index/dynamic/hero band/year rail)
   6) Metric grid + timeline helpers + autocomplete/chips
   7) Notifications (alerts stack)
   8) Print tweaks */

html, body {
  overflow-x: hidden;
}

/* Prevent mobile horizontal clipping from padded 100%-width containers (e.g., Tachyons `w-100` + `pa*`). */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.2s, color 0.2s;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  font-synthesis: none;
  -webkit-font-smoothing: auto;
}

/* Ensure legacy Tachyons helpers inherit the new stack so typography stays consistent site-wide. */
.avenir,
.sans-serif {
  font-family: var(--font-family-sans);
}

.mw8 {
  max-width: min(58rem, 92vw);
}

@supports (-webkit-touch-callout: none) {
  /* Safari renders lighter weights; bump Tachyons' fw3 helpers to the next weight for legibility. */
  .fw3,
  .fw3-ns,
  .fw3-m,
  .fw3-l {
    font-weight: var(--font-weight-regular);
  }
}
img {
  max-width: 100%;
  height: auto;
}
/* Tachyons Overrides (Light Mode) */
.bg-white { background-color: #ffffff; }
.black { color: #000000; }

/* Typography */
h1 {
  margin: 0;
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
}
h2 {
  margin: 0 0 0.5em 0;
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}
h3, h4 {
  margin: 0;
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}
p {
  line-height: var(--line-height-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular); /* Light weight for body text */
}

strong {
  font-weight: var(--font-weight-semibold);
}

/* List Styles */
ul {
  padding-left: 1em;
}
li {
  padding-bottom: 1em;
}

/* Anchor Styles (Light Mode) */
a {
  text-decoration: none;
  text-decoration-skip-ink: auto;
  text-decoration-color: rgba(0, 68, 158, 0.25);
  text-decoration-color: color-mix(in srgb, var(--color-link) 35%, transparent);
  transition: color 0.15s ease-in, text-decoration-color 0.15s ease-in, outline-color 0.15s ease-in;
  font-weight: var(--font-weight-semibold); /* Medium weight for links */
}
a:link,
a:visited {
  color: var(--color-link);
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
a:active {
  color: var(--color-link-active);
}
a:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  text-decoration: underline;
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  width: 250px;
  word-wrap: break-word;
  white-space: normal;
  background-color: var(--color-tooltip-bg);
  color: var(--color-tooltip-text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.2);
  z-index: 120;
}
.relative:hover .tooltip,
.tooltip.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 480px) {
  .tooltip {
    width: 160px;
  }
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f172a;
    --color-text: #e2e8f0;
    --color-muted: #cbd5f5;
    --color-card-bg: rgba(15, 23, 42, 0.92);
    --color-card-border: rgba(148, 163, 184, 0.32);
    --color-card-shadow: rgba(8, 15, 28, 0.6);
    --color-card-icon: rgba(203, 213, 225, 0.8);
    --color-tooltip-bg: #0f172a;
    --color-tooltip-text: #e2e8f0;
    --color-link: #8ab4ff;
    --color-link-hover: #b3c9ff;
    --color-link-active: #7095ff;
    --color-hero-caption: #dbeafe;
    --color-hero-caption-link: #a3c9ff;
  }

  body {
    background-color: var(--color-bg);
    color: var(--color-text);
  }
  
  /* Tachyons Overrides (Dark Mode) */
  .bg-white { background-color: #131e33 !important; }
  .bg-near-white,
  .bg-light-gray { background-color: #1a2438 !important; }
  .black { color: #e2e8f0 !important; }
  .mid-gray { color: #cbd5f5 !important; }
  .dark-gray { color: #94a3b8 !important; }
  .bg-white-50 { background-color: rgba(255,255,255,0.08) !important; }
  .bg-near-white { background-color: #1a2438 !important; }
  .bg-light-gray { background-color: #1a2438 !important; }
  /* ── Autocomplete dropdown positioning fixes ──────────────── */
  .suggest-list {
    background: #0f172a  !important;
    box-shadow: 0 2px 10px rgba(8,15,28,.45)  !important;
  }

  .suggest-list:not(:empty) {
    border-color: rgba(148, 163, 184, 0.35);
  }

  .metric-chip {
    color: #ff9b67;
  }

  .b--black-10 {
    border-color: rgba(148, 163, 184, 0.25) !important;
  }

  .hourly-heatmap__cell {
    background-color: #1f2a3f;
    color: #ffffff;
  }

  .hourly-heatmap__cell[data-tooltip]::after {
    background: rgba(226, 232, 240, 0.95);
    color: #111111;
    box-shadow: 0 12px 30px rgba(8, 15, 28, 0.45);
  }

  .hourly-heatmap__swatch-box {
    background-color: #1f2a3f;
  }
}

/* ── Metric cards & chips ───────────────────────────────────── */
.metric-card {
  margin: 0 0 1rem 0;
  border: 0;
  background: transparent;
}

.mod-crash > .metric-card:last-child {
  margin-bottom: 0;
}

.metric-card > summary {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--color-card-border);
  border-radius: 0.75rem;
  background: var(--color-card-bg);
  box-shadow: 0 1px 3px var(--color-card-shadow);
  color: var(--color-text);
}

.metric-card > summary::-webkit-details-marker {
  display: none;
}

.metric-card[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.metric-card__body {
  border: 1px solid var(--color-card-border);
  border-top: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  background: var(--color-card-bg);
  box-shadow: 0 2px 6px var(--color-card-shadow);
  padding: 1.25rem;
  color: var(--color-text);
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1rem);
  line-height: 1.55;
}

.metric-card__body strong,
.metric-card__body b,
.metric-card__body .fw5,
.metric-card__body .fw6,
.metric-card__body .fw7,
.metric-card__body .fw8 {
  font-size: clamp(1rem, 0.45vw + 0.9rem, 1.075rem);
  font-weight: 500;
}

.metric-card__body .fw6 {
  font-weight: 600;
}

.metric-card__body .fw7 {
  font-weight: 650;
}

.metric-card__body .fw8 {
  font-weight: 700;
}

.metric-card__body #crash-counter {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: .5rem 0 0;
}

.metric-card[data-crash-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-crash-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-crash-card] > summary .metric-chip {
  color: #ef4e16;
  letter-spacing: .02em;
}

.metric-card[data-crash-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-crash-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-crash-card][open] > summary .metric-chip {
  display: none;
}

.metric-card__body #crash-counter .counter-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.metric-card__body #crash-counter .counter-row:first-child {
  margin-top: .25rem;
}

.metric-card__body #crash-counter .metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  margin-right: .35rem;
}

.metric-card__body #crash-counter .counter-row .label-text {
  font-weight: 500;
  color: var(--color-muted);
}

.metric-card__body #crash-counter .data-date {
  text-align: center;
  color: var(--color-muted);
}

.metric-card__body #crash-counter .sri-info-fab {
  right: .5rem;
  bottom: .5rem;
}

.metric-card:not([open]) .metric-card__body {
  display: none;
}

.metric-card[data-timeline-card] .metric-card__body {
  display: block;
}

.metric-chip {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ef4e16;
  white-space: nowrap;
}

.metric-chip--light {
  color: var(--color-muted);
  font-weight: 500;
}

.metric-chip--accent {
  color: #ef4e16;
}

.metrics-title {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}

.crash-headline {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.hourly-heatmap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hourly-heatmap__grid-wrapper {
  overflow: visible;
  padding: 0.25rem clamp(0.4rem, 1.6vw, 1rem);
  position: relative;
}

.hourly-heatmap__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.6vw, 0.9rem);
}

.hourly-heatmap__row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: clamp(0.45rem, 1.5vw, 0.9rem);
}

.hourly-heatmap__row-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  min-width: 2.6rem;
  text-align: right;
}

.hourly-heatmap__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.14rem, 0.4vw, 0.28rem);
  row-gap: clamp(0.35rem, 1.2vw, 0.6rem);
  width: 100%;
  max-width: 100%;
}

.hourly-heatmap__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: clamp(0.6rem, 1vw, 0.82rem);
  color: #111111;
  background-color: #f3f5f8;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 1.4rem;
}

.hourly-heatmap__cell[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 115%;
  transform: translate(-50%, 0);
  white-space: normal;
  min-width: 160px;
  max-width: 240px;
  padding: 0.45rem 0.6rem;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1.25;
  border-radius: 0.5rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 120;
  text-align: center;
}

.hourly-heatmap__cell[data-tooltip]:hover::after,
.hourly-heatmap__cell[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -4px);
}

.hourly-heatmap__cell:hover,
.hourly-heatmap__cell:focus {
  outline: none;
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.hourly-heatmap__cell-label {
  pointer-events: none;
}

.hourly-heatmap__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.hourly-heatmap__swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hourly-heatmap__swatch-box {
  width: 1.5rem;
  height: 0.6rem;
  border-radius: 999px;
  background-color: #f3f5f8;
  display: inline-block;
}

.hourly-heatmap__swatch-box--max {
  background-color: #d90429;
}

.hourly-heatmap__notes {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text, #222222);
}

@media (max-width: 48rem) {
  .hourly-heatmap__notes {
    font-size: 0.76rem;
  }
  .hourly-heatmap__row {
    column-gap: 0.6rem;
  }
  .hourly-heatmap__row-label {
    min-width: 2.2rem;
    font-size: 0.66rem;
  }
}

@media (max-width: 36rem) {
  .hourly-heatmap__row {
    grid-template-columns: minmax(2.1rem, auto) 1fr;
  }
}

@media (max-width: 30rem) {
  .hourly-heatmap__row {
    grid-template-columns: 1fr;
    row-gap: 0.3rem;
    justify-items: center;
  }
  .hourly-heatmap__row-label {
    text-align: center;
    width: 100%;
  }
  .hourly-heatmap__grid {
    width: 100%;
  }
}

.hero-caption {
  margin-top: 0.75rem;
  max-width: 768px;
  width: 100%;
  font-size: clamp(0.95rem, 0.45vw + 0.8rem, 1.05rem);
  color: var(--color-hero-caption);
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
}

.hero-caption a {
  color: var(--color-hero-caption-link);
  text-decoration: underline;
}

.metric-card--outline > summary {
  border: 1px solid var(--color-card-border);
  box-shadow: none;
  background: var(--color-card-bg);
}

.metric-card--outline > summary::after {
  color: var(--color-card-icon);
}

.metric-card--outline > summary {
  border: 1px solid var(--color-card-border);
  box-shadow: none;
  background: var(--color-card-bg);
  position: relative;
  padding-right: 2.25rem;
}

.metric-card--outline > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card--outline[open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card--outline[open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

/* Open state shows the title (no summary chips). */
.metric-card--outline[open] > summary .metric-chip {
  display: none;
}

.metric-card--outline .metric-chip {
  color: #ef4e16;
}

.metric-card__body--plain {
  border: 1px solid var(--color-card-border);
  border-top: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  background: var(--color-card-bg);
  box-shadow: none;
  padding: 1.5rem;
  color: var(--color-text);
}

.metric-card[data-simple] > summary {
  justify-content: center;
  text-align: center;
}

.metric-card[data-simple] > summary .metric-chip {
  display: none;
}

.metric-card[data-simple][open] > summary span:first-child {
  display: none;
}

.metric-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 1rem;
}
.metric-controls .year-selector {
  width: auto;
  min-width: 10rem;
}
.metric-controls__label {
  margin: 0 .5rem 0 0;
}

/* Breakpoints */
@media screen and (min-width: 50em) {
  /* Medium and up */
  .dn-m { display: none !important; }
  .db-m { display: block !important; }
  .ph0-m { padding-left: 0 !important; padding-right: 0 !important; }
  .w-30-m { width: 30% !important; }
  .w-70-m { width: 70% !important; }
  .f4-m { font-size: 1.25rem !important; }
  .f3-m { font-size: 1.5rem !important; }
  .mr3-m { margin-right: 1rem !important; }
  .mr4-m { margin-right: 1.5rem !important; }
  .w5\.5-ns { width: 32rem !important; }
}
@media screen and (max-width: 49.99em) {
  /* Small screens */
  .dn-m { display: block !important; }
  .db-m { display: none !important; }
  .metric-controls {
    justify-content: center;
  }
  /* Mobile: bump body copy weight for better legibility */
  p { font-weight: 500; }
  h1, h2, h3, h4 {
    font-weight: 600 !important; /* Medium weight for headings */
  }
  /* Mobile: make bold text stand out more */
  strong, b {
    font-weight: 700 !important;  /* Boldest available weight */
  }
}

/* Modal and Utility Styles */
#signupModal.dn {
  display: none !important;
}
.lh-copy p {
  line-height: 1.5;
}

/* Crash Color Utilities */
.crash-orange { color: #ef4e16 !important; }
.bg-crash-orange { background-color: #ef4e16 !important; }
.b--crash-orange { border-color: #ef4e16 !important; }
.crash-yellow { color: #ffce31 !important; }
.bg-crash-yellow { background-color: #ffce31 !important; }

/* ID-Specific Overrides */
#week-of-jan-19,
#period-heading {
  color: #ef4e16;
}

/* ── Index page layout ───────────────────────────────────────── */

/* MOBILE: single column (natural DOM order) */
.layout-index {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.layout-shell {
  max-width: 112rem;
  width: 100%;
}

/* ── Dynamic page layout (single source of truth) ────────────── */

.layout-dynamic {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.layout-dynamic__hero,
.mod-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.layout-dynamic__hero .hero-block {
  text-align: center;
}

.notifications-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 48rem;
}

.notifications-highlights .featured-highlights {
  margin: 0;
}

@media screen and (min-width: 48em) {
  .layout-dynamic__hero .hero-block {
    text-align: left;
  }
}

/* Hero media/captions */
.hero-block picture img,
.hero-block img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.hero-updated {
  margin-top: 0.5rem;
}

.hero-band {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Mobile DOM order: alerts/hero first, metric cards second. */
.hero-card {
  order: 1;
}

@media screen and (min-width: 75em) {
  .hero-band {
    display: grid;
    grid-template-columns: minmax(20rem, 28rem) minmax(0, 52rem);
    gap: 1.5rem;
    align-items: start;
    justify-content: center;
  }
  /* Desktop: metrics on the left, hero/alerts on the right */
  .hero-card {
    order: 0;
  }
  .layout-dynamic__hero {
    order: 1;
  }
}

.year-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-page-bg, #ffffff);
  padding: 0.4rem 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.year-rail.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
}

.year-rail__inner {
  max-width: 112rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  grid-auto-flow: row dense;
  align-items: start;
}

.metric-grid .metric-card,
.metric-grid .metric-grid__section {
  margin: 0;
}

.metric-card--span-2 {
  grid-column: span 1;
}

.metric-grid__section {
  width: 100%;
}

/* ── Metric grid + timeline layout ───────────────────────────── */
@media screen and (min-width: 64em) {
  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 1.25rem;
  }
  .metric-card--span-2 {
    grid-column: span 2;
  }
}

@media screen and (min-width: 90em) {
  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  }
}

/* Tall modules on mobile: internal scroll */
@media screen and (max-width: 47.99em) {
  [data-map-body],
  .top-intersections-card,
  [data-timeline-card] .metric-card__body {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Timeline: toggle arrows + pseudo headers */
summary::-webkit-details-marker {      /* remove default ▶ marker */
  display: none;
}
summary::marker {                      /* Firefox / generic */
  content: '';
}

details[open] .arrow-toggle {
  transform: rotate(90deg);
}

.tl-item[data-month]::before {
  content: attr(data-month) ' ' attr(data-year);
  display: block;
  margin: 1.25rem 0 0.25rem;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
}

.metric-card--timeline {
  grid-column: span 1;
  max-height: 36rem;
}

.metric-card--timeline [data-timeline-card] {
  height: 100%;
  max-height: 36rem;
  overflow: hidden;
}

.metric-card--timeline [data-timeline-card] .metric-card__body {
  max-height: 30rem;
  overflow-y: auto;
}

/* Desktop: sync timeline height to adjacent map card via JS */
@media screen and (min-width: 48em) {
  .metric-card--timeline.is-height-synced {
    max-height: none;
  }

  .metric-card--timeline.is-height-synced [data-timeline-card] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .metric-card--timeline.is-height-synced [data-timeline-card] .metric-card__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

/* ----- Index desktop layout ----- */
@media screen and (min-width: 50em) {
  .layout-index {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 22rem 1fr;
    grid-template-areas:
      "crash   content"
      "geo     content"
      "timeline content";
  }

  .mod-crash    { grid-area: crash; }
  .mod-main     { grid-area: content; }
  .mod-geo      { grid-area: geo; }
  .mod-timeline { grid-area: timeline; }
}

/* ── Find‑my‑neighborhood autocomplete ─────────────────────────── */
.suggest-list { list-style: none; max-height: 14rem; overflow-y: auto; margin: 0; padding: 0; }
.suggest-item { padding: .5rem .75rem; cursor: pointer; font-weight: 500;}
.suggest-item:hover { background: #f3f3f3; }

/* ── Autocomplete dropdown positioning fixes ──────────────── */
.suggest-list {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: .25rem;          /* small gap below input */
  width: 100%;
  background: #fff;
  z-index: 1000;
  border: 1px solid transparent;   /* hide until filled */
  border-radius: .25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
}

.suggest-list:not(:empty) {
  border-color: rgba(0,0,0,.1);
}

/* ── Chip list for composite pages ───────────────────────────── */
.geo-bar { display:flex; flex-wrap:wrap; }
.chip {
  padding:.25rem .6rem;
  background:#f6f6f6;
  border-radius:9999px;
  font-size:.875rem;
  transition:background .15s;
}
.chip:hover { background:#e2e2e2; }


/* ── Pedestrian cause grid ───────────────────────────── */
.ped-grid {
  display: grid;
  grid-template-columns: max-content repeat(3, auto);
  column-gap: 2rem;
  row-gap: 0.25rem;
  align-items: center;
  justify-content: center;  /* center whole grid */
  margin: 0 auto;           /* horizontally center card */
}
@media (max-width: 30em) {
  .ped-grid {
    grid-template-columns: max-content repeat(3, auto);
    column-gap: 1rem;
  }
}

/* On large screens open citations and hide arrow */
@media (min-width: 64rem) {
  .citation-details[open] summary { cursor: default; pointer-events: none; }
  .citation-details summary .arrow-toggle { display: none; }
}

/* Contact list spacing */
.rep-contact + .rep-contact { margin-top: 1rem; }
.metric-card[data-carnage-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-carnage-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}



.metric-card[data-carnage-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-carnage-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-carnage-card][open] > summary .metric-chip {
  display: none;
}

.metric-card__body[data-carnage-body] {
  padding: 1.25rem;
}

.metric-card__body[data-carnage-body] .inj-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.metric-card[data-ped-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-ped-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-ped-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-ped-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-ped-card][open] > summary .metric-chip {
  display: none;
}

.metric-card[data-preventables-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-preventables-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-preventables-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-preventables-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-preventables-card][open] > summary .metric-chip {
  display: none;
}

.metric-card[data-offenders-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-offenders-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-hourly-wrapper] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-hourly-wrapper] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-hourly-wrapper][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-hourly-wrapper][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-hourly-wrapper][open] > summary .metric-chip {
  display: none;
}

.metric-card[data-timeline-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-timeline-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-timeline-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-timeline-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-timeline-card][open] > summary .metric-chip {
  display: none;
}

.metric-card[data-alerts-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-alerts-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-alerts-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-alerts-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-alerts-card][open] > summary .metric-chip {
  display: none;
}

.metric-card[data-top-intersections-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-top-intersections-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-top-intersections-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-offenders-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-offenders-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-offenders-card][open] > summary .metric-chip {
  display: none;
}

.metric-card__body[data-map-body] {
  padding: 0;
}


.metric-card[data-map-card] > summary {
  position: relative;
  padding-right: 2.25rem;
}

.metric-card[data-map-card] > summary::after {
  content: '\25bc';
  font-size: 0.85rem;
  color: var(--color-card-icon);
  transition: transform 0.2s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.metric-card[data-map-card][open] > summary {
  border-bottom: 1px solid var(--color-card-border);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-right: 1.5rem;
}

.metric-card[data-map-card][open] > summary::after {
  transform: rotate(-180deg);
  top: 1.1rem;
}

.metric-card[data-map-card][open] > summary .metric-chip {
  display: none;
}


.metric-card[data-map-card] {
  position: relative;
}

.metric-card__body[data-map-body] {
  position: relative;
  overflow: visible;
}

.crash-map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 320px;
}

.crash-map-container.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #ffffff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crash-map-canvas {
  position: absolute;
  inset: 0;
  overflow: visible;
  border-radius: 0.75rem;
}

.crash-map-container.is-expanded .crash-map-canvas {
  position: relative;
  flex: 1;
}

.crash-map-canvas #crash-map {
  width: 100%;
  height: 100%;
}

.crash-map-controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.crash-map-expand,
.crash-map-close {
  border: 1px solid var(--color-card-border, #d9e2ec);
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.crash-map-close {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  display: none;
  z-index: 3;
}

.crash-map-container.is-expanded .crash-map-close {
  display: inline-flex;
}

.crash-map-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  display: none;
}

.crash-map-container.is-expanded .crash-map-overlay {
  display: block;
}

html.map-expanded,
body.map-expanded {
  overflow: hidden;
}

.crash-map-print {
  display: none;
  margin-top: 0.5rem;
}

.crash-map-print__image {
  width: 100%;
  height: auto;
  border-radius: 0.65rem;
  border: 1px solid var(--color-card-border, #d9e2ec);
}

.print-accident-list__item {
  margin-bottom: 0.6rem;
}

.print-accident-list__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.print-accident-list__location {
  font-weight: 600;
}

.print-accident-list__summary {
  color: #4b5563;
}

.map-legend {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.map-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.map-legend__swatch--fatal { background: #ff1744; }
.map-legend__swatch--serious { background: #ff9800; }
.map-legend__swatch--moderate { background: #666666; }

/* ------------------------------------------------------------------ */
/* Featured Highlights module                                          */
/* ------------------------------------------------------------------ */

.featured-highlights {
  margin: 2rem 0;
  background: linear-gradient(145deg, rgba(26, 36, 52, 0.96), rgba(10, 18, 32, 0.92));
  color: #f8fafc;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(8,15,28,.35);
}

@media (prefers-color-scheme: dark) {
  .featured-highlights {
    background: linear-gradient(160deg, rgba(46, 58, 76, 0.92), rgba(24, 32, 46, 0.95));
    box-shadow: 0 20px 50px rgba(8, 12, 24, 0.45);
  }

  .featured-highlights__incident-list {
    background: rgba(58, 75, 102, 0.55);
    border-color: rgba(156, 200, 247, 0.25);
  }

  .featured-support-card {
    background: rgba(35, 46, 66, 0.75);
    border-color: rgba(160, 210, 255, 0.2);
  }
}

.featured-highlights__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-highlights__hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-highlights__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #67e8f9;
}

.featured-highlights__title {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
}

.featured-highlights__summary {
  margin: 0;
  line-height: 1.45;
  color: #f8fafc;
  font-weight: 400;
  display: inline;
}
.featured-highlights__meta {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 0.35rem;
}
.featured-highlights__meta-date {
  font-weight: 700;
}
.featured-highlights__meta-tag {
  font-weight: 600;
  color: #67e8f9;
}
.featured-highlights__summary--compact {
  font-size: 1.05rem;
  line-height: 1.4rem;
  margin-bottom: 0.25rem;
}

.featured-highlights__summary-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.featured-highlights__summary-toggle {
  border: none;
  padding: 0;
  margin-left: 0;
  background: none;
  color: #67e8f9;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.featured-highlights__summary-toggle::before {
  content: "▸";
  font-size: 0.9rem;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.featured-highlights__summary-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.featured-highlights__summary-toggle:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.6);
  outline-offset: 2px;
}

.featured-highlights__explainer {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5f5;
}

.featured-highlights__explainer p {
  margin: 0 0 0.75rem;
}

.featured-highlights__explainer p:last-child {
  margin-bottom: 0;
}

.featured-highlights__summary > .featured-highlights__summary-toggle {
  margin-left: 0.5rem;
}

.featured-highlights__cta {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fbbf24;
}

.featured-highlights__stats {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.featured-highlights__stats li {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: #e2e8f0;
}

.featured-highlights__stat-number {
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.4rem;
}

.featured-highlights__window {
  font-size: 0.8rem;
  color: #cbd5f5;
  font-weight: 500;
}

.featured-highlights__incident {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
  color: #f1f5f9;
}

.featured-highlights__incident-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #c7d7ef;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-highlights__incident-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(163, 230, 255, 0.85);
  margin-bottom: 0.75rem;
}

.featured-highlights__incident-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.featured-highlights__incident-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.featured-highlights__severity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.2);
  color: #67e8f9;
  font-size: 1rem;
  flex-shrink: 0;
}

.featured-highlights__severity-icon svg,
.featured-highlights__severity-icon i {
  width: 1.1rem;
  height: 1.1rem;
}

/* Alert incident styling */
.alert-incidents {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08));
  border: 1px solid rgba(103, 232, 249, 0.2);
}
.alert-incidents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.alert-incidents__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.alert-incidents__icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  color: #cbeafe;
  flex-shrink: 0;
}

.featured-highlights__incident-copy {
  flex: 1;
}

.featured-highlights__incident-text {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
}

.featured-highlights__support {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.featured-highlights__support::-webkit-scrollbar {
  height: 6px;
}

.featured-highlights__support::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.featured-support-card {
  min-width: 13.5rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(7, 16, 31, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.15);
  color: inherit;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.45;
}

.featured-support-card.is-active {
  opacity: 1;
  border-color: rgba(125, 211, 252, 0.6);
}

.featured-support-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.featured-support-card__summary {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  color: #e2e8f0;
}

.featured-support-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d5e0f4;
  font-weight: 600;
}

.featured-support-card__window {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #b9c7e6;
  font-weight: 500;
}

/* Collapsible wrapper for notifications */
.featured-notifications-shell {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.featured-notifications-shell summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.25rem;
  cursor: pointer;
}
.featured-notifications-shell summary::-webkit-details-marker { display: none; }
.featured-notifications-shell .featured-notifications-shell__summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.featured-notifications-shell__excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}
.featured-notifications-shell__tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 700;
}
.featured-notifications-shell__title {
  font-weight: 700;
  color: #0f172a;
}
.featured-notifications-shell .arrow-toggle {
  font-size: 0.9rem;
  color: #475569;
}

/* Alert card using featured-highlights styling */
.alert-card {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem 0;
  background: transparent;
}
.alert-card__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
}
.alert-card__summary::-webkit-details-marker { display: none; }
.alert-card__summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.alert-card__body {
  margin-top: 0.5rem;
}
.alert-card .arrow-toggle {
  font-size: 1rem;
  color: #475569;
}
.alert-card:not([open]) .alert-card__body {
  display: none;
}

@media (min-width: 48rem) {
  .featured-notifications-shell summary {
    padding: 0.5rem 0.25rem;
  }
}

/* Keep highlights + alert body collapsed when the shell is closed */
.featured-notifications-shell:not([open]) .featured-notifications__body {
  display: none;
}

/* Political inline collapsible */
.politics-inline-shell {
  border: 0;
  padding: 0;
  margin: 1.5rem 0 0;
  background: transparent;
}
.politics-inline-shell summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.25rem;
  cursor: pointer;
}
.politics-inline-shell summary::-webkit-details-marker { display: none; }
.politics-inline-shell__name {
  margin: 0;
}
.politics-inline-shell__meta {
  margin: 0;
}
.politics-inline-shell .arrow-toggle {
  font-size: 0.9rem;
  color: #475569;
}

/* ── Notifications (alerts stack) ─────────────────────────────── */
.featured-notifications {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.featured-notifications[hidden],
.featured-notifications.is-dismissed {
  display: none !important;
}


.featured-notification {
  padding: 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(18, 31, 47, 0.96), rgba(9, 17, 31, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.15);
  color: #e2e8f0;
  box-shadow: 0 18px 45px rgba(8, 15, 28, 0.35);
  position: relative;
}

.featured-notification--hero {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: linear-gradient(160deg, rgba(26, 42, 61, 0.96), rgba(12, 22, 36, 0.95));
  border-color: rgba(160, 210, 255, 0.25);
}

.featured-notification__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.featured-notification__tag {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(148, 192, 255, 0.85);
}

.featured-notification__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: #f8fafc;
}

.featured-notification__body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
  margin: 0;
}

.featured-notification__debug {
  font-weight: 800;
  color: #ef4444;
}

.featured-notification__body p {
  margin: 0;
}

.featured-notification__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.featured-notification__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #0ea5e9;
  color: #0b1725;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
  border: 0;
  cursor: pointer;
}

.featured-notification__cta:hover,
.featured-notification__cta:focus-visible {
  background: #38bdf8;
  transform: translateY(-1px);
}

.featured-notification__source {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.featured-notification__dismiss {
  display: none;
}

.featured-notification__explainer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.9);
}

.featured-notification__explainer p {
  margin: 0 0 0.65rem;
}

.featured-notification__explainer p:last-child {
  margin-bottom: 0;
}

.featured-notification__explainer a {
  color: #bae6fd;
}

.featured-notification.is-expanded {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 26px 60px rgba(15, 70, 120, 0.35);
}

.featured-notifications__stack {
  display: grid;
  gap: 0.75rem;
}

.featured-notification--compact {
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  background: #13263d;
  border: 1px solid rgba(71, 85, 105, 0.42);
}

.featured-notification--compact .featured-notification__title {
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.featured-notification--compact .featured-notification__body {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
  margin-top: 0.25rem;
}

.featured-notification--compact .featured-notification__tag {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}

@media (min-width: 48rem) {
  .featured-highlights__inner {
    flex-direction: row;
    align-items: stretch;
  }

  .featured-highlights__hero {
    flex: 1 1 60%;
  }

  .featured-highlights__support {
    flex: 1 1 40%;
    flex-direction: column;
    overflow: visible;
  }

  .featured-support-card {
    min-width: 0;
  }

  .featured-notifications {
    margin-top: 2rem;
  }

  .featured-notifications--with-stack {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .featured-notifications--with-stack .featured-notification--hero {
    grid-column: span 7;
  }

  .featured-notifications--with-stack .featured-notifications__stack {
    grid-column: span 5;
  }
}

/* ── Print export (modal + export view) ─────────────────────── */
.metric-controls__export { white-space: nowrap; }

.export-modal[hidden] {
  display: none !important;
}

.export-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.export-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.export-modal__dialog {
  position: relative;
  width: min(44rem, 100%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 1rem;
}

.export-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.export-modal__icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.export-modal__form {
  display: grid;
  gap: 0.85rem;
}

.export-modal__fieldset {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
}

.export-modal__legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.export-modal__row {
  display: grid;
  gap: 0.35rem;
}

.export-modal__label {
  font-weight: 600;
}

.export-modal__select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: #fff;
}

.export-modal__input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: #fff;
}

.export-modal__choice {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.export-modal__hint {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.export-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.export-modal__primary,
.export-modal__secondary {
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.export-modal__primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.export-modal__secondary {
  background: #fff;
  color: #111;
}

.export-shell[hidden] {
  display: none !important;
}

.export-shell {
  max-width: 60rem;
  margin: 0 auto;
}

.export-shell__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.export-shell__btn {
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #111;
  color: #fff;
  cursor: pointer;
}

.export-shell__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.export-shell__doc {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 1rem;
}

.export-shell__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.export-shell__brand-name {
  font-weight: 700;
}

.export-shell__brand-url {
  display: block;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.export-shell__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.export-shell__subtitle {
  margin-top: 0.35rem;
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.95rem;
}

.export-shell__summary {
  display: grid;
  gap: 1rem;
}

.export-shell[data-export-format="cards"] {
  max-width: none;
}

.export-shell[data-export-format="cards"] .export-shell__doc {
  border: 0;
  padding: 0;
  background: transparent;
}

.export-shell[data-export-format="cards"] .export-shell__header {
  display: none;
}

.export-cards {
  display: block;
}

.export-cards__grid {
  --export-card-width: 3.5in;
  --export-card-height: 2in;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--export-card-width), var(--export-card-width)));
  gap: 0.14in;
  justify-content: center;
  padding: 0.2in 0.1in;
}

.export-card {
  width: var(--export-card-width);
  height: var(--export-card-height);
  box-sizing: border-box;
  border: 0.5pt solid rgba(0, 0, 0, 0.25);
  border-top: 2pt solid #ef4e16;
  border-radius: 0;
  background: #fff;
  padding: 0.09in 0.09in 0.07in;
  display: flex;
  flex-direction: column;
  position: relative;
  break-inside: avoid;
  page-break-inside: avoid;
}

.export-card__header {
  padding-bottom: 0.05in;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 0.05in;
  text-align: left;
}

.export-card__title {
  font-weight: 800;
  font-size: 9.2pt;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.export-card__subtitle {
  margin-top: 0.01in;
  font-size: 7.2pt;
  color: #374151;
}

.export-card__counter {
  flex: 1 1 auto;
  min-height: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 8.4pt;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.export-card__counter .tc {
  text-align: left !important;
}

.export-card__counter .counter-row {
  display: grid;
  grid-template-columns: 1.15em 1fr auto;
  align-items: center;
  column-gap: 0.22rem;
  margin: 0 0 0.04in;
  justify-content: flex-start;
}

.export-card__counter .counter-row:last-child {
  margin-bottom: 0;
}

.export-card__counter .metric-icon {
  width: 1.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.export-card__counter .label-text {
  font-weight: 600;
  color: #374151;
}

.export-card__counter .value {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}

.export-card__counter [data-metric] {
  font-size: 9.2pt;
  font-weight: 800;
}

.export-card__counter .metric-trend {
  display: inline-flex;
  justify-content: flex-end;
  width: 3.1rem;
  gap: 0.2rem;
  margin-left: 0.25rem;
}

.export-card__counter .metric-delta {
  font-size: 7.2pt;
  font-weight: 650;
}

.export-card__counter .crash-counter-spark {
  width: 28px !important;
  height: 10px !important;
}

.export-card__counter .crash-counter-spark__line {
  stroke: #94a3b8 !important;
  stroke-width: 1.25 !important;
}

.export-card__counter .fw8,
.export-card__counter .fw6,
.export-card__counter .fw5 {
  font-weight: 800;
}

.export-card__counter .data-date {
  margin-top: 0.02in;
  font-size: 6.9pt;
  color: #374151;
  text-align: left;
}

.export-card__counter .sri-info-fab {
  display: none !important;
}

.export-card__footer {
  margin-top: auto;
  padding-top: 0.04in;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 6.9pt;
  color: #111827;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.12in;
}

.export-card__url {
  margin-left: auto;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: right;
}

.export-card__contact {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.1;
  flex: 1 1 auto;
}

.export-slides {
  display: block;
}

.export-slide {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 1rem;
  margin-top: 1rem;
}

.export-slide:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.export-slide__eyebrow {
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.95rem;
  font-weight: 600;
}

.export-slide__title {
  margin: 0.25rem 0 0;
  font-size: 1.6rem;
  line-height: 1.15;
}

.export-slide__big {
  margin-top: 0.75rem;
}

.export-slide__big-number {
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.export-slide__big-label {
  margin-top: 0.25rem;
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.05rem;
  font-weight: 650;
}

.export-slide__quote {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.88);
  font-size: 1.2rem;
  line-height: 1.35;
}

.export-slide__body {
  margin-top: 0.9rem;
}

.export-slide__footer {
  margin-top: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
}

.export-story__meta {
  margin-top: 0.35rem;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
}

.export-story__explainer {
  margin-top: 0.75rem;
  color: rgba(0, 0, 0, 0.85);
  font-size: 1rem;
  line-height: 1.45;
}

.export-shell__appendix {
  margin-top: 1.25rem;
}

.export-shell__h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.export-shell__appendix-meta {
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.export-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.export-list__year {
  padding: 0.9rem 0 0.35rem;
  font-weight: 700;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.export-list__item {
  margin: 0 0 0.75rem;
  break-inside: avoid;
  page-break-inside: avoid;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: 0.65rem;
}

.export-list__header {
  display: grid;
  gap: 0.15rem;
}

.export-list__bullet {
  grid-column: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.15rem;
  color: rgba(0, 0, 0, 0.8);
}

.export-list__content {
  grid-column: 2;
}

.export-list__icon {
  min-width: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.export-list__count {
  margin-left: 0.35rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: rgba(0, 0, 0, 0.8);
}

.export-list__title {
  font-weight: 650;
}

.export-list__meta {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
}

.export-list__summary {
  margin-top: 0.35rem;
  color: rgba(0, 0, 0, 0.85);
  font-size: 0.95rem;
}

.export-list__explainer {
  margin-top: 0.35rem;
  color: rgba(0, 0, 0, 0.78);
  font-size: 0.9rem;
}

body.is-export-view .layout-shell > header {
  display: none !important;
}

body.is-export-view .layout-shell main > .layout-dynamic {
  display: none !important;
}

body.is-export-view .layout-shell main > .export-shell {
  display: block !important;
}

body.is-export-view footer {
  display: none !important;
}

/* ── Print styles ───────────────────────────────────────────── */
@media print {
  :root {
    --color-card-bg: #ffffff;
    --color-card-border: #e5e7eb;
  }

  body {
    color: #111111;
  }

  .layout-dynamic {
    gap: 0.75rem;
  }

  .layout-dynamic__hero .hero-block {
    text-align: left;
  }

  .year-rail {
    position: static;
    box-shadow: none;
    padding: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .metric-card--span-2 {
    grid-column: span 2;
  }

  details.metric-card {
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
  }

  details.metric-card > summary {
    border: 0;
    padding: 0.25rem 0;
    background: transparent;
  }

  details.metric-card > summary::after {
    display: none;
  }

  details.metric-card > *:not(summary),
  details.metric-card .metric-card__body {
    display: block !important;
  }

  details.metric-card .metric-card__body {
    padding: 0;
  }

  .metric-chip {
    background: none;
    color: inherit;
    box-shadow: none;
  }

  .crash-map-canvas,
  .crash-map-controls,
  .crash-map-close,
  .crash-map-overlay {
    display: none !important;
  }

  .crash-map-print {
    display: block;
  }

  .metric-card__body[data-map-body],
  [data-timeline-card] .metric-card__body {
    max-height: none !important;
    overflow: visible !important;
  }

  body.is-export-view .layout-shell > header,
  body.is-export-view footer,
  body.is-export-view .export-shell__toolbar,
  body.is-export-view .export-modal {
    display: none !important;
  }

  body.is-export-view .layout-shell main > .layout-dynamic {
    display: none !important;
  }

  body.is-export-view .layout-shell main > .export-shell {
    display: block !important;
  }

  body.is-export-view .export-shell__doc {
    border: 0;
    padding: 0;
  }

  body.is-export-view .export-slide {
    break-after: page;
    page-break-after: always;
    border: 0;
    padding-top: 0;
    margin-top: 0;
  }

  body.is-export-view .export-shell[data-export-format="cards"] .export-cards__grid {
    padding: 0;
    gap: 0.16in;
  }

  body.is-export-view .export-shell[data-export-format="cards"],
  body.is-export-view .export-shell[data-export-format="cards"] * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.is-export-view .export-shell[data-export-format="cards"] .export-card {
    border: 0;
    border-top: 2pt solid #ef4e16 !important;
  }

  body.is-export-view .export-shell[data-export-format="cards"] .export-card::after {
    content: "";
    position: absolute;
    inset: -0.05in;
    pointer-events: none;
    opacity: 0.45;
    background:
      linear-gradient(#000, #000) left top / 0.12in 0.5pt no-repeat,
      linear-gradient(#000, #000) left top / 0.5pt 0.12in no-repeat,
      linear-gradient(#000, #000) right top / 0.12in 0.5pt no-repeat,
      linear-gradient(#000, #000) right top / 0.5pt 0.12in no-repeat,
      linear-gradient(#000, #000) left bottom / 0.12in 0.5pt no-repeat,
      linear-gradient(#000, #000) left bottom / 0.5pt 0.12in no-repeat,
      linear-gradient(#000, #000) right bottom / 0.12in 0.5pt no-repeat,
      linear-gradient(#000, #000) right bottom / 0.5pt 0.12in no-repeat;
  }
}
