/*
Theme Name: Florida Crash Watch
Theme URI: https://floridacrashwatch.com/
Author: Florida Crash Watch
Description: SEO-first, accessible incident reporting theme for Florida Crash Watch.
Version: 0.1.8
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: florida-crash-watch
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --white: #ffffff;
  --navy-950: #061733;
  --navy-900: #0a2145;
  --navy-800: #12345f;
  --teal-700: #007985;
  --teal-600: #078b95;
  --teal-100: #e7f5f6;
  --orange-600: #ed6817;
  --orange-100: #fff0e4;
  --yellow-500: #f6b800;
  --yellow-100: #fff8d9;
  --red-700: #c6212c;
  --red-100: #fde8ea;
  --ink: #15213a;
  --muted: #5c687c;
  --muted-light: #768197;
  --border: #d7dde7;
  --border-strong: #bcc6d4;
  --surface: #f7f9fb;
  --shadow: 0 8px 24px rgb(6 23 51 / 9%);
  --header-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 72px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 68px;
    border-top: 1px solid var(--border);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -8px 24px rgb(6 23 51 / 8%);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav a {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
  }

  .mobile-bottom-nav a:first-child {
    background: var(--surface);
    color: var(--navy-950);
  }
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  padding: 10px 14px;
  color: var(--white);
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgb(0 121 133 / 30%);
  outline-offset: 3px;
}

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

.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 96%);
}

.site-header-inner {
  width: min(1536px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--navy-950);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.brand-mark-ring {
  position: absolute;
  inset: 2px;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
}

.brand-mark-road {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 8px;
  background: var(--white);
  border-left: 2px solid var(--navy-900);
  border-right: 2px solid var(--navy-900);
  clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
}

.brand-mark-road::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  border-left: 2px dashed var(--orange-600);
  transform: translateX(-50%);
}

.brand-mark-needle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.brand-mark-needle-north {
  top: 0;
  border-width: 0 4px 11px;
  border-color: transparent transparent var(--teal-700);
}

.brand-mark-needle-south {
  bottom: 0;
  border-width: 11px 4px 0;
  border-color: var(--teal-700) transparent transparent;
}

.brand-mark-needle-east {
  right: 0;
  border-width: 4px 0 4px 11px;
  border-color: transparent transparent transparent var(--orange-600);
}

.brand-mark-needle-west {
  left: 0;
  border-width: 4px 11px 4px 0;
  border-color: transparent var(--orange-600) transparent transparent;
}

.desktop-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 520;
}

.nav-link:hover {
  color: var(--teal-700);
}

.nav-link-active {
  color: var(--teal-700);
  font-weight: 700;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 3px;
  background: var(--teal-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
}

.header-action:hover {
  color: var(--teal-700);
}

.mobile-menu,
.mobile-bottom-nav {
  display: none;
}

.home-main {
  min-height: calc(100vh - var(--header-height) - 58px);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(520px, 0.98fr);
  align-items: start;
  width: min(1536px, 100%);
  min-height: calc(100vh - var(--header-height) - 58px);
  margin: 0 auto;
  padding: 20px 16px 8px;
  gap: 10px;
}

.home-ledger {
  min-width: 0;
  padding: 0 0 12px;
}

.hero-copy {
  padding: 0 14px 10px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(35px, 3vw, 46px);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-copy > p {
  max-width: 660px;
  margin: 7px 0 10px;
  color: #46536a;
  font-size: 17px;
  line-height: 1.5;
}

.freshness-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 12px;
  color: #4b5870;
  font-size: 14px;
}

.freshness-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 16px;
}

.freshness-row span + span {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.beta-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #efcf8a;
  border-radius: var(--radius-md);
  background: #fffaf0;
  color: #313b4e;
  font-size: 14px;
}

.beta-notice svg {
  flex: 0 0 auto;
  color: #b8750b;
}

.demo-data-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #79c7c0;
  border-left: 4px solid var(--teal-700);
  border-radius: var(--radius-md);
  background: #effaf8;
  color: #26364d;
  font-size: 14px;
  line-height: 1.45;
}

.demo-data-notice svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--teal-700);
}

.demo-data-notice div,
.demo-data-notice strong,
.demo-data-notice span {
  display: block;
}

.demo-data-notice strong {
  margin-bottom: 2px;
  color: var(--navy-950);
}

.demo-record-label {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.incident-explorer {
  min-width: 0;
  padding: 0 2px;
  scroll-margin-top: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 48px;
  margin: 0 12px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.search-row:focus-within {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgb(0 121 133 / 24%);
}

.search-field:focus-within,
.date-field:focus-within {
  background: var(--teal-100);
}

.search-field,
.date-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  min-width: 0;
  padding: 0 14px;
}

.date-field {
  min-width: 125px;
  padding: 0 11px;
  border-left: 1px solid var(--border);
}

.search-field svg,
.date-field svg {
  flex: 0 0 auto;
  color: var(--navy-900);
}

.search-field input,
.date-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-field input::placeholder {
  color: #68758a;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.scope-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
}

.scope-filter-row label {
  min-width: 0;
}

.scope-filter-row select,
.scope-filter-row button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.scope-filter-row select {
  min-width: 150px;
  max-width: 220px;
  padding: 7px 32px 7px 10px;
}

.scope-filter-row button {
  padding: 7px 11px;
  color: var(--teal-700);
  cursor: pointer;
  font-weight: 650;
}

.scope-filter-row select:hover,
.scope-filter-row select:focus,
.scope-filter-row button:hover,
.scope-filter-row button:focus {
  border-color: var(--border-strong);
}

.filter-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 570;
}

.filter-button:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.filter-button.selected {
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
  box-shadow: 0 4px 10px rgb(6 23 51 / 12%);
}

.filter-button:focus-visible {
  outline: 0;
  border-color: var(--teal-700);
  box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 5px var(--teal-700);
}

.scope-filter-row select:focus-visible,
.scope-filter-row button:focus-visible {
  outline: 3px solid rgb(0 121 133 / 38%);
  outline-offset: 2px;
  border-color: var(--teal-700);
}

.filter-injury_reported svg {
  color: var(--orange-600);
}

.filter-roadblock_reported svg {
  color: var(--yellow-500);
}

.filter-fatality_reported svg {
  color: var(--red-700);
}

.filter-commercial_vehicle_reported svg {
  color: var(--teal-700);
}

.filter-button.selected svg {
  color: currentColor;
}

.filter-label-short {
  display: none;
}

.mobile-view-toggle,
.mobile-map-toggle,
.mobile-map-message {
  display: none;
}

.incident-table {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.incident-table-head,
.incident-row {
  display: grid;
  grid-template-columns: minmax(245px, 1.4fr) minmax(145px, 0.8fr) 110px minmax(110px, 0.8fr) 34px;
  align-items: center;
}

.incident-table-head {
  min-height: 34px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  color: #243148;
  font-size: 12px;
  font-weight: 700;
}

.incident-table-head span {
  padding: 0 8px;
}

.incident-row {
  position: relative;
  min-height: 64px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
}

.incident-row:last-of-type {
  border-bottom: 0;
}

.incident-row.expanded {
  border-left: 4px solid var(--teal-700);
  background: #fbfdff;
  box-shadow: inset 0 0 0 1px #0d5da7;
}

.incident-cell {
  min-width: 0;
  padding: 8px;
  font-size: 13px;
}

.incident-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.incident-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-injury .incident-symbol {
  background: var(--orange-600);
  color: var(--white);
}

.status-roadblock .incident-symbol {
  background: var(--yellow-500);
  color: var(--navy-950);
}

.status-fatality .incident-symbol {
  background: var(--red-700);
  color: var(--white);
}

.status-commercial .incident-symbol {
  background: var(--teal-700);
  color: var(--white);
}

.incident-main > div {
  min-width: 0;
}

.incident-main a {
  display: block;
  overflow: hidden;
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-main a:hover {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.incident-main span,
.incident-main small {
  display: block;
  overflow: hidden;
  color: #46546a;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-main .person-line {
  margin-top: 2px;
  color: var(--navy-800);
  font-weight: 650;
}

.incident-status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.35;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow-500);
}

.status-injury .status-dot {
  background: var(--orange-600);
}

.status-fatality .status-dot {
  background: var(--red-700);
}

.status-commercial .status-dot {
  background: var(--teal-700);
}

.incident-reported span,
.incident-reported small {
  display: block;
}

.incident-reported small {
  color: var(--muted);
  font-size: 11px;
}

.incident-impact {
  line-height: 1.35;
}

.row-expand {
  display: grid;
  width: 34px;
  height: 40px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--navy-900);
  cursor: pointer;
}

.row-expand svg {
  transition: transform 160ms ease;
}

.expanded .row-expand svg {
  transform: rotate(90deg);
}

.incident-expanded {
  display: none;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 0;
  color: var(--muted);
  font-size: 11px;
}

.empty-results {
  padding: 36px 20px;
  text-align: center;
}

.empty-results svg {
  color: var(--teal-700);
}

.empty-results h3 {
  margin: 6px 0 2px;
  color: var(--navy-950);
}

.empty-results p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.production-empty-state {
  margin: 10px 14px;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.production-empty-state svg {
  color: var(--teal-700);
}

.production-empty-state h2 {
  margin: 8px 0 4px;
  color: var(--navy-950);
  font-size: 21px;
}

.production-empty-state p {
  max-width: 520px;
  margin: 0 auto 12px;
  color: var(--muted);
}

.production-empty-state a {
  color: var(--teal-700);
  font-weight: 700;
}

.florida-map {
  position: sticky;
  top: 10px;
  align-self: start;
  scroll-margin-top: calc(var(--header-height) + 16px);
  height: clamp(500px, calc(100vh - var(--header-height) - 40px), 720px);
  height: clamp(500px, calc(100dvh - var(--header-height) - 40px), 720px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #c8d9e6;
  border-radius: var(--radius-md);
  background: #dbeefa;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.florida-map > .map-iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.florida-map > .map-iframe:focus-visible {
  outline: 4px solid var(--teal-700);
  outline-offset: -6px;
}

.map-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgb(0 88 112 / 7%);
}

.map-marker {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 3px 12px rgb(6 23 51 / 32%);
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
}

.map-marker:hover {
  z-index: 6;
  transform: translate(-50%, -50%) scale(1.12);
}

.map-marker:focus-visible {
  z-index: 7;
  outline: 0;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--navy-950), 0 3px 12px rgb(6 23 51 / 32%);
  transform: translate(-50%, -50%) scale(1.12);
}

.marker-injury_reported {
  background: var(--orange-600);
}

.marker-fatality_reported {
  background: var(--red-700);
}

.marker-roadblock_reported {
  background: var(--yellow-500);
  color: var(--navy-950);
}

.marker-commercial_vehicle_reported {
  background: var(--teal-700);
}

.map-popover {
  position: absolute;
  z-index: 5;
  right: 24%;
  bottom: 9%;
  display: grid;
  grid-template-columns: auto 1fr;
  width: 280px;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.status-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
}

.map-popover strong,
.map-popover span {
  display: block;
}

.map-popover strong {
  color: var(--navy-950);
  font-size: 14px;
}

.map-popover span {
  color: #4f5c72;
  font-size: 12px;
}

.map-popover > a {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 750;
}

.map-popover > a:focus-visible,
.map-attribution a:focus-visible {
  outline: 2px solid var(--navy-950);
  outline-offset: 2px;
  background: var(--white);
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 90%);
  color: #334057;
  font-size: 10px;
}

.map-attribution a {
  color: var(--teal-700);
  text-decoration: underline;
}

.site-footer {
  min-height: 58px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.site-footer-inner {
  width: min(1536px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #445167;
  font-size: 12px;
}

.footer-source,
.footer-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-source {
  color: var(--navy-950);
  font-weight: 680;
}

.footer-source svg {
  color: var(--navy-900);
}

.footer-update::before,
.footer-time::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 22px;
  margin-right: 20px;
  vertical-align: middle;
  background: var(--border);
}

.site-footer nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  color: var(--teal-700);
  font-weight: 670;
}

/* Shared content and incident-detail surfaces */
.page-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px 30px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--teal-700);
  font-size: 14px;
}

.breadcrumb span {
  color: var(--muted-light);
}

.incident-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(460px, 0.97fr);
  gap: 20px;
}

.incident-article h1 {
  max-width: 860px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.incident-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 17px 0 22px;
  color: #3f4b61;
  font-size: 14px;
}

.incident-meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.incident-meta-strip .active::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-600);
}

.incident-summary {
  max-width: 760px;
  margin: 0 0 22px;
  color: #28354d;
  font-size: 17px;
  line-height: 1.65;
}

.identity-panel {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--navy-800);
  background: #f3f7fb;
}

.identity-panel h2 {
  margin: 0 0 9px;
  color: var(--navy-950);
  font-size: 16px;
}

.identity-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.identity-panel strong {
  color: var(--navy-950);
}

.publication-reasons {
  max-width: 760px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #b9dfe2;
  border-left: 4px solid var(--teal-700);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-100), #f8fcfc 72%);
}

.publication-reasons h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.publication-reasons-intro {
  max-width: 66ch;
  margin: 7px 0 14px;
  color: #394b61;
  font-size: 14px;
  line-height: 1.55;
}

.publication-reason-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-reason-list li {
  min-width: 0;
}

.publication-reason-link,
.publication-reason-label {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgb(0 121 133 / 28%);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 82%);
  color: var(--navy-900);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.publication-reason-link::before,
.publication-reason-label::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--teal-700);
  box-shadow: 0 0 0 1px var(--teal-700);
}

.publication-reason-list li[data-reason="fatality_reported"] > :is(.publication-reason-link, .publication-reason-label)::before {
  background: var(--red-700);
  box-shadow: 0 0 0 1px var(--red-700);
}

.publication-reason-list li[data-reason="injury_reported"] > :is(.publication-reason-link, .publication-reason-label)::before {
  background: var(--orange-600);
  box-shadow: 0 0 0 1px var(--orange-600);
}

.publication-reason-list li[data-reason="roadblock_reported"] > :is(.publication-reason-link, .publication-reason-label)::before {
  background: #c47b00;
  box-shadow: 0 0 0 1px #c47b00;
}

.publication-reason-link {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.publication-reason-link:hover {
  border-color: var(--teal-700);
  background: var(--white);
  color: var(--navy-950);
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 760px;
  margin: 0 0 14px;
}

.fact {
  display: grid;
  grid-template-columns: minmax(125px, 0.72fr) 1fr;
  gap: 12px;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.fact:nth-child(odd) {
  margin-right: 14px;
}

.fact dt {
  color: #46536a;
}

.fact dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-weight: 570;
}

.fact-link {
  color: var(--teal-700);
  font-weight: 680;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fact-link:hover {
  color: var(--navy-950);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 18px;
  color: var(--teal-700);
  font-size: 14px;
  font-weight: 750;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 7px 0 18px;
}

.source-links .source-link {
  margin: 0;
}

.timeline-panel,
.confidence-panel,
.related-panel,
.content-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.timeline-panel {
  margin-top: 0;
  padding: 18px 20px 12px;
}

.timeline-panel h2,
.confidence-panel h2,
.related-panel h2 {
  margin: 0 0 12px;
  color: var(--navy-950);
  font-size: 21px;
  letter-spacing: -0.02em;
}

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

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  min-height: 76px;
  gap: 12px;
  padding: 8px 0 12px 22px;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 3px solid var(--teal-700);
  border-radius: 50%;
  background: var(--white);
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  bottom: -16px;
  left: 6px;
  width: 2px;
  background: var(--teal-700);
}

.timeline-time {
  color: #28354d;
  font-size: 13px;
  font-weight: 650;
}

.timeline-copy strong,
.timeline-copy span {
  display: block;
}

.timeline-copy strong {
  color: var(--navy-950);
  font-size: 14px;
}

.timeline-copy span {
  color: #4d5a70;
  font-size: 13px;
}

.timeline-evidence {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: #39465d;
  font-size: 12px;
}

.timeline-observed {
  color: var(--muted);
  font-size: 12px;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.incident-location-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #e3f0f7;
}

.incident-location-map .map-iframe {
  position: absolute;
  inset: 0;
}

.location-fallback {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.location-fallback svg {
  color: var(--teal-700);
}

.location-fallback h2,
.location-fallback p {
  margin: 0;
}

.confidence-panel,
.related-panel {
  padding: 15px 18px;
}

.confidence-panel p {
  margin: 0 0 10px;
  color: #435067;
  font-size: 13px;
  line-height: 1.55;
}

.confidence-list {
  display: grid;
  gap: 8px;
}

.confidence-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.confidence-list svg {
  color: var(--teal-700);
}

.correction-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  padding: 9px 16px;
  border: 2px solid var(--teal-700);
  border-radius: var(--radius-sm);
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 750;
}

.correction-button-disabled {
  border-color: var(--border-strong);
  background: #f5f7fa;
  color: var(--muted);
  cursor: not-allowed;
}

.map-popover .demo-record-label {
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 800;
}

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

.related-list li + li {
  border-top: 1px solid var(--border);
}

.related-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.related-list a::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange-600);
}

.related-list strong,
.related-list span {
  display: block;
}

.related-list strong {
  color: var(--teal-700);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.related-list span {
  color: var(--muted);
  font-size: 12px;
}

.content-page {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 42px 28px 72px;
}

.content-page-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.content-page-header h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.content-page-header p {
  margin: 13px 0 0;
  color: #46536a;
  font-size: 18px;
  line-height: 1.6;
}

.content-panel {
  padding: 26px 30px;
}

.content-section + .content-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin: 0 0 10px;
  color: var(--navy-950);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.content-section h3 {
  margin: 22px 0 8px;
  color: var(--navy-900);
  font-size: 18px;
}

.content-section p,
.content-section li {
  color: #39465d;
  line-height: 1.7;
}

.content-section ul {
  padding-left: 21px;
}

.source-list {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--teal-700);
  background: var(--teal-100);
}

.source-list h2 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 18px;
}

.source-list ul {
  margin: 0;
  padding-left: 18px;
}

.source-list a {
  color: var(--teal-700);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reviewed-date {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.guide-index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.guide-index article {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr) auto;
  align-items: center;
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}

.guide-index h2,
.guide-index p {
  margin: 0;
}

.guide-index h2 {
  color: var(--navy-950);
  font-size: 20px;
  line-height: 1.3;
}

.guide-index p {
  color: #46536a;
  line-height: 1.65;
}

.guide-index article > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.correction-form-section,
.source-live-status {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.correction-form-section h2,
.source-live-status h2,
.form-success h2 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 24px;
}

.correction-form-section > p {
  margin: 0 0 18px;
  color: #46536a;
}

.correction-form-section form {
  display: grid;
  max-width: 680px;
  gap: 15px;
}

.correction-form-section label {
  display: grid;
  gap: 6px;
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 700;
}

.correction-form-section label span {
  color: var(--muted);
  font-weight: 500;
}

.correction-form-section input,
.correction-form-section textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 450;
}

.correction-form-section textarea {
  resize: vertical;
}

.correction-form-section button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.correction-form-section button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.form-error {
  margin: 0;
  color: var(--red-700);
  font-size: 13px;
}

.form-success,
.status-not-started {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #9acdc4;
  border-radius: var(--radius-md);
  background: #effaf7;
}

.form-success svg,
.status-not-started svg {
  flex: 0 0 auto;
  color: var(--teal-700);
}

.form-success h2,
.form-success p,
.status-not-started p {
  margin: 0;
}

.form-success p,
.status-not-started p {
  color: #435067;
  font-size: 14px;
}

.status-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.status-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.status-metric svg {
  grid-row: 1 / 3;
  width: 24px;
  color: var(--teal-700);
}

.status-metric span {
  color: var(--muted);
  font-size: 12px;
}

.status-metric strong {
  color: var(--navy-950);
  font-size: 14px;
  text-transform: capitalize;
}

.archive-page {
  width: min(1180px, 100%);
  min-height: calc(100vh - var(--header-height) - 58px);
  margin: 0 auto;
  padding: 44px 28px 70px;
}

.map-index-page {
  width: min(1380px, 100%);
}

.archive-header {
  max-width: 840px;
  margin-bottom: 30px;
}

.archive-header h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.archive-header p {
  margin: 13px 0 0;
  color: #46536a;
  font-size: 18px;
  line-height: 1.65;
}

.map-index-page > .florida-map {
  position: relative;
  top: auto;
  display: block;
  min-height: 640px;
  margin-bottom: 38px;
}

.archive-section-title {
  margin: 0 0 12px;
  color: var(--navy-950);
  font-size: 25px;
}

.archive-list {
  border-top: 1px solid var(--border);
}

.archive-list article {
  display: grid;
  grid-template-columns: 13px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 10px 22px 0;
  border-bottom: 1px solid var(--border);
}

.archive-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow-500);
}

.archive-status[data-reason="injury_reported"] {
  background: var(--orange-600);
}

.archive-status[data-reason="fatality_reported"] {
  background: var(--red-700);
}

.archive-status[data-reason="commercial_vehicle_reported"] {
  background: var(--teal-700);
}

.archive-list h2,
.archive-list p {
  margin: 0;
}

.archive-list h2 {
  color: var(--navy-950);
  font-size: 20px;
  line-height: 1.3;
}

.archive-list h2 a:hover {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archive-list p {
  max-width: 820px;
  margin-top: 5px;
  color: #46536a;
  font-size: 14px;
}

.archive-list .archive-people {
  color: var(--navy-800);
  font-weight: 680;
}

.archive-list span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.archive-open {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
}

.archive-empty {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.archive-pagination {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.archive-pagination > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 18px;
}

.archive-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--teal-800);
  font-weight: 760;
}

.archive-pagination a:last-child {
  justify-self: end;
}

.archive-pagination p {
  margin: 0;
  color: var(--navy-950);
  text-align: center;
  font-weight: 760;
}

.archive-pagination small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.directory-list > a {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--border);
}

.directory-list > a:nth-child(odd) {
  margin-right: 28px;
}

.directory-list > a:hover strong,
.directory-list > a:hover svg {
  color: var(--teal-700);
}

.directory-list strong,
.directory-list small {
  display: block;
}

.directory-list strong {
  color: var(--navy-950);
  font-size: 18px;
}

.directory-list small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 38px 28px 72px;
}

.admin-page > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-page h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: 42px;
  letter-spacing: -0.04em;
}

.admin-page header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.admin-page header > a {
  color: var(--teal-700);
  font-weight: 700;
}

.admin-page > section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.admin-page h2 {
  margin: 0 0 6px;
  color: var(--navy-950);
  font-size: 22px;
}

.admin-page section > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.admin-controls {
  display: grid;
  gap: 12px;
}

.admin-action-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
}

.admin-action-form input {
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.admin-action-form button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  background: var(--navy-950);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.admin-action-form span {
  min-width: 54px;
  color: var(--muted);
  font-size: 12px;
}

.admin-list {
  border-top: 1px solid var(--border);
}

.admin-list > article {
  display: grid;
  grid-template-columns: 1fr minmax(480px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.admin-list strong,
.admin-list span {
  display: block;
}

.admin-list span,
.admin-list p {
  color: var(--muted);
  font-size: 13px;
}

.admin-list p {
  margin: 4px 0;
}

.admin-list a {
  color: var(--teal-700);
  font-size: 12px;
  text-decoration: underline;
}

.admin-empty {
  padding: 16px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1360px) {
  .home-ledger .filter-label-wide {
    display: none;
  }

  .home-ledger .filter-label-short {
    display: inline;
  }
}

@media (max-width: 1240px) {
  .site-header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 0 10px;
    font-size: 14px;
  }

  .header-action span {
    display: none;
  }

  .home-grid {
    grid-template-columns: minmax(570px, 1fr) minmax(400px, 0.78fr);
  }

  .filter-button {
    padding: 8px 10px;
  }

  .filter-label-wide {
    display: none;
  }

  .filter-label-short {
    display: inline;
  }

  .incident-table-head,
  .incident-row {
    grid-template-columns: minmax(220px, 1.35fr) minmax(125px, 0.78fr) 100px minmax(100px, 0.7fr) 34px;
  }
}

@media (max-width: 1040px) {
  :root {
    --header-height: 82px;
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  html {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .site-header-inner {
    padding: 0 20px;
    justify-content: space-between;
  }

  .brand {
    font-size: 24px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--navy-950);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .menu-close-icon {
    display: none;
  }

  .mobile-menu[open] .menu-open-icon {
    display: none;
  }

  .mobile-menu[open] .menu-close-icon {
    display: block;
  }

  .mobile-menu nav {
    position: absolute;
    top: 56px;
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 36px));
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--navy-950);
    font-weight: 650;
  }

  .mobile-menu nav a:hover {
    background: var(--surface);
    color: var(--teal-700);
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 -5px 18px rgb(6 23 51 / 8%);
  }

  .mobile-bottom-nav a {
    position: relative;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 2px;
    color: #5d6678;
    font-size: 12px;
  }

  .mobile-bottom-nav a > span:first-child {
    font-size: 22px;
    line-height: 1;
  }

  .mobile-bottom-nav a.active {
    color: var(--teal-700);
    font-weight: 700;
  }

  .mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    right: 15%;
    left: 15%;
    height: 3px;
    background: var(--teal-700);
  }

  .home-grid {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .home-ledger {
    padding: 0 20px 26px;
  }

  .hero-copy {
    padding: 38px 10px 20px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 7vw, 45px);
  }

  .hero-copy > p {
    max-width: 650px;
    margin: 12px auto;
    font-size: 18px;
  }

  .freshness-row {
    justify-content: center;
    margin-top: 18px;
  }

  .freshness-row span + span {
    display: none;
  }

  .beta-notice {
    width: fit-content;
    max-width: 100%;
    margin: 16px auto 0;
    border-color: transparent;
    background: var(--teal-100);
    color: var(--navy-900);
  }

  .home-grid > .florida-map {
    display: none;
  }

  .home-grid > .florida-map.is-mobile-visible {
    position: relative;
    top: auto;
    display: block;
    width: auto;
    height: clamp(420px, 68vh, 620px);
    height: clamp(420px, 68dvh, 620px);
    min-height: 0;
    margin: 0 30px 24px;
  }

  .home-grid > .florida-map .map-popover {
    right: 16px;
    bottom: 42px;
    width: min(320px, calc(100% - 32px));
  }

  .incident-explorer {
    padding: 0 10px;
  }

  .search-row {
    display: flex;
    min-height: 62px;
    margin: 0 0 16px;
    border-color: var(--border-strong);
  }

  .search-field {
    flex: 1;
    padding: 0 18px;
  }

  .search-field input {
    font-size: 17px;
  }

  .date-field {
    width: auto;
    min-width: 154px;
    padding: 0 12px;
    justify-content: flex-start;
  }

  .date-field input {
    position: static;
    width: 118px;
    min-width: 0;
    opacity: 1;
    font-size: 14px;
  }

  .filter-row {
    margin: 0 -10px 18px;
    padding: 0 10px 10px;
    gap: 10px;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--teal-700) var(--teal-100);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    box-shadow: inset -18px 0 14px -16px rgb(6 23 51 / 45%);
  }

  .filter-row::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .filter-row::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--teal-100);
  }

  .filter-row::-webkit-scrollbar-thumb {
    border: 2px solid var(--teal-100);
    border-radius: 999px;
    background: var(--teal-700);
  }

  .scope-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: -6px 0 16px;
  }

  .scope-filter-row select {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 46px;
    font-size: 15px;
  }

  .scope-filter-row button {
    grid-column: 1 / -1;
    min-height: 42px;
    font-size: 14px;
  }

  .filter-button {
    min-height: 54px;
    padding: 10px 16px;
    border-color: var(--border-strong);
    border-radius: 8px;
    font-size: 15px;
  }

  .filter-label-wide {
    display: none;
  }

  .filter-label-short {
    display: inline;
  }

  .mobile-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 56px;
    margin-bottom: 14px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .mobile-view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--navy-950);
    cursor: pointer;
    font-size: 17px;
    font-weight: 650;
  }

  .mobile-view-toggle button.selected {
    background: var(--navy-950);
    color: var(--white);
  }

  .mobile-map-controls {
    margin: 0 0 16px;
  }

  .mobile-map-toggle {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--white);
    color: var(--navy-950);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-map-toggle:hover {
    border-color: var(--teal-700);
    background: var(--teal-100);
  }

  .mobile-map-toggle[aria-expanded="true"],
  .mobile-map-toggle.selected {
    border-color: var(--navy-950);
    background: var(--navy-950);
    color: var(--white);
  }

  .mobile-view-toggle button:focus-visible,
  .mobile-map-toggle:focus-visible {
    outline: 3px solid rgb(0 121 133 / 42%);
    outline-offset: 3px;
  }

  .mobile-map-message {
    display: block;
    margin: 7px 4px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

  .mobile-map-message svg,
  .mobile-map-message a {
    color: var(--teal-700);
  }

  .mobile-map-message p {
    max-width: 440px;
    margin: 0 auto;
    color: var(--muted);
  }

  .mobile-hidden {
    display: none;
  }

  .incident-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .incident-table-head {
    display: none;
  }

  .incident-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    min-height: 150px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  .incident-row.expanded {
    border-left: 0;
    background: var(--white);
    box-shadow: none;
  }

  .incident-cell {
    padding: 0;
  }

  .incident-main {
    grid-column: 1 / 3;
    display: contents;
  }

  .incident-symbol {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 58px;
    height: 58px;
    align-self: start;
    border-radius: 0;
    background: transparent !important;
  }

  .status-injury .incident-symbol {
    color: var(--orange-600);
  }

  .status-roadblock .incident-symbol {
    color: #df8b00;
  }

  .status-fatality .incident-symbol {
    color: var(--red-700);
  }

  .status-commercial .incident-symbol {
    color: var(--teal-700);
  }

  .incident-symbol svg {
    width: 42px;
    height: 42px;
    stroke-width: 2.4;
  }

  .incident-main > div {
    grid-column: 2;
    grid-row: 1;
  }

  .incident-main a {
    font-size: 20px;
    white-space: normal;
  }

  .incident-main span {
    margin-top: 2px;
    font-size: 15px;
  }

  .incident-main small {
    margin-top: 2px;
    font-size: 13px;
    white-space: normal;
  }

  .incident-status {
    grid-column: 2;
    grid-row: 2;
    align-items: center;
    width: fit-content;
    margin-top: 9px;
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--surface);
    font-size: 13px;
  }

  .status-injury .incident-status {
    background: var(--orange-100);
    color: #a7420e;
  }

  .status-fatality .incident-status {
    background: var(--red-100);
    color: var(--red-700);
  }

  .status-commercial .incident-status {
    background: var(--teal-100);
    color: var(--teal-700);
  }

  .status-roadblock .incident-status {
    background: var(--yellow-100);
    color: #8b6100;
  }

  .status-dot {
    display: none;
  }

  .incident-reported {
    grid-column: 3;
    grid-row: 1;
    padding: 4px 0 0 12px;
    text-align: right;
  }

  .incident-reported span {
    font-size: 14px;
    font-weight: 700;
  }

  .incident-reported small {
    display: none;
  }

  .incident-impact {
    grid-column: 2 / 4;
    grid-row: 3;
    margin-top: 8px;
    color: #57647a;
    font-size: 14px;
  }

  .row-expand {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
  }

  .incident-expanded {
    grid-column: 1 / 4;
    display: grid;
    gap: 3px;
    margin-top: 18px;
    padding: 18px 20px 18px 34px;
    border-left: 4px solid var(--teal-700);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fbfeff;
    color: #566278;
    font-size: 13px;
  }

  .incident-expanded a {
    margin-bottom: 8px;
    color: var(--teal-700);
    font-size: 16px;
    font-weight: 750;
  }

  .incident-expanded strong {
    color: #875b00;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .table-footer {
    padding: 12px 0;
  }

  .table-footer span:last-child {
    display: none;
  }

  .site-footer {
    display: block;
  }

  .site-footer-inner {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 18px 20px;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .page-shell {
    padding: 22px 20px 48px;
  }

  .incident-detail-grid {
    display: block;
  }

  .incident-article h1 {
    font-size: clamp(32px, 7vw, 42px);
  }

  .detail-sidebar {
    margin-top: 18px;
  }

  .incident-location-map {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 76px;
  }

  .site-header-inner {
    padding: 0 16px;
  }

  .brand {
    gap: 9px;
    font-size: 21px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .mobile-menu summary {
    width: 44px;
    height: 44px;
  }

  .home-ledger {
    padding: 0 12px 22px;
  }

  .home-grid > .florida-map.is-mobile-visible {
    margin-right: 12px;
    margin-left: 12px;
  }

  .hero-copy {
    padding: 30px 8px 18px;
  }

  .hero-copy h1 {
    font-size: 35px;
    line-height: 1.12;
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .freshness-row {
    font-size: 14px;
  }

  .beta-notice {
    align-items: flex-start;
    text-align: left;
  }

  .incident-explorer {
    padding: 0;
  }

  .filter-button {
    min-height: 50px;
    padding: 9px 13px;
    font-size: 14px;
  }

  .incident-row {
    grid-template-columns: 62px 1fr auto;
  }

  .incident-symbol {
    width: 50px;
  }

  .incident-symbol svg {
    width: 36px;
    height: 36px;
  }

  .incident-main a {
    font-size: 18px;
  }

  .incident-reported {
    max-width: 82px;
    font-size: 12px;
  }

  .fact-grid {
    display: block;
  }

  .fact:nth-child(odd) {
    margin-right: 0;
  }

  .timeline-item {
    grid-template-columns: 62px 1fr;
  }

  .timeline-observed {
    display: none;
  }

  .content-page {
    padding: 30px 18px 56px;
  }

  .content-panel {
    padding: 22px 20px;
  }

  .guide-index article {
    display: block;
    padding: 22px 0;
  }

  .guide-index p {
    margin: 8px 0 10px;
  }

  .status-metric-grid {
    grid-template-columns: 1fr;
  }

  .archive-page {
    padding: 30px 18px 52px;
  }

  .archive-header h1 {
    font-size: 38px;
  }

  .archive-header p {
    font-size: 16px;
  }

  .map-index-page > .florida-map {
    min-height: 500px;
  }

  .map-index-page .map-popover {
    display: none;
  }

  .archive-list article {
    grid-template-columns: 10px 1fr auto;
    gap: 12px;
  }

  .archive-list h2 {
    font-size: 18px;
  }

  .archive-pagination > div {
    grid-template-columns: 1fr 1fr;
  }

  .archive-pagination p {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .directory-list {
    grid-template-columns: 1fr;
  }

  .directory-list > a:nth-child(odd) {
    margin-right: 0;
  }

  .admin-page {
    padding: 28px 16px 56px;
  }

  .admin-page > header,
  .admin-list > article {
    display: block;
  }

  .admin-action-form {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress integration additions. The primary layout above is shared with
   the accepted server-rendered preview. */
[hidden] {
  display: none !important;
}

.fcw-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

.desktop-nav > li {
  display: flex;
  align-items: stretch;
  list-style: none;
}

.desktop-nav > li > .nav-link {
  height: 100%;
}

.save-view-button {
  white-space: nowrap;
}

.incident-row[hidden] {
  display: none !important;
}

.navigation.pagination {
  margin-top: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-links .page-numbers {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 650;
}

.nav-links .current,
.nav-links a:hover {
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
}

.content-index {
  display: grid;
  gap: 14px;
}

.content-index-item,
.source-status-card,
.not-found-panel {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.content-index-item h2,
.source-status-card h2,
.not-found-panel h1 {
  margin: 0 0 8px;
  color: var(--navy-950);
}

.content-index-item p,
.source-status-card p,
.not-found-panel p {
  margin: 0;
  color: var(--muted);
}

.content-panel > :first-child,
.content-panel .wp-block-group > :first-child {
  margin-top: 0;
}

.content-panel a:not(.correction-button) {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-panel h2,
.content-panel h3 {
  color: var(--navy-950);
  line-height: 1.2;
}

.archive-location {
  color: var(--muted);
  font-size: 13px !important;
}

.archive-location strong {
  color: var(--ink);
}

.not-found-panel {
  margin-top: 48px;
  text-align: center;
}

.not-found-panel .correction-button {
  display: inline-flex;
  width: auto;
  margin-top: 18px;
}

@media (max-width: 1040px) {
  .desktop-nav > li {
    display: none;
  }
}
