:root {
  --red: #D90000;
  --red-dark: #A30000;
  --navy: #000052;
  --navy-deep: #00002E;
  --gold: #FFCC00;
  --paper: #EEEEF0;
  --paper-warm: #E4E3E6;
  --ink: #17181D;
  --ink-soft: #4B4D57;
  --line: #CFD0D6;
  --radius: 2px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--navy);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Emergency strip */
.emergency-strip {
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.86rem;
  padding: 7px 0;
}
.emergency-strip .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.emergency-strip .call911 {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.emergency-strip a { text-decoration: none; }
.emergency-strip a:hover { text-decoration: underline; }

/* Header */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img { height: 56px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text .name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy);
}
.brand .brand-text .est {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

nav.main-nav > ul {
  list-style: none;
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  align-items: center;
  margin: 0;
  padding: 0;
}
nav.main-nav a, .nav-group-toggle {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active,
.nav-group-toggle:hover, .nav-group-toggle.active { border-bottom-color: var(--red); }
.nav-group { position: relative; }
.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  line-height: inherit;
  cursor: pointer;
}
.nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-group-toggle[aria-expanded="true"] .nav-chevron { transform: translateY(2px) rotate(225deg); }
nav.main-nav .nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  min-width: 270px;
  list-style: none;
  margin: 0;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 40, 0.14);
}
nav.main-nav .nav-dropdown[hidden] { display: none; }
nav.main-nav .nav-dropdown li + li { border-top: 1px solid var(--line); }
nav.main-nav .nav-dropdown a { display: block; padding: 12px 0; }
nav.main-nav a:focus-visible, .nav-group-toggle:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}
nav.main-nav a.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 20px;
  border-bottom: none;
  white-space: nowrap;
}
nav.main-nav a.nav-cta:hover { background: var(--red-dark); }
nav.main-nav a.nav-login {
  color: var(--navy);
  padding: 7px 16px;
  border: 2px solid var(--navy);
  border-radius: 20px;
  white-space: nowrap;
}
nav.main-nav a.nav-login:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.nav-toggle {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--navy);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
/* Turnout-stripe icon: yellow / red / yellow reflective bars, crossing into an X when open. */
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  height: 4px;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle span { left: 11px; top: 20px; width: 15px; background: var(--red); }
.nav-toggle span::before,
.nav-toggle span::after { left: -3.5px; width: 22px; background: var(--gold); }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-9px) rotate(-45deg); }

/* Page banner (non-home pages) */
.page-banner {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  padding: 52px 0;
}
.page-banner .crumb {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.page-banner .crumb a { text-decoration: none; color: var(--gold); }
.page-banner .crumb a:hover { text-decoration: underline; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.7rem); }
.page-banner p { color: #D9DAE8; max-width: 620px; margin-top: 12px; font-size: 1.05rem; }

/* Hero (home only) */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 84px 0 0;
}
.hero-watermark {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 480px;
  opacity: 0.09;
  filter: grayscale(1) brightness(3);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }

/* Hero with a department photo: the photo runs full-width and uncropped
   (nothing written over it) so it — and anything painted on the ground
   in it — stays the focal point; the headline/intro copy sits in a
   plain band underneath instead of overlaid on the image. */
.hero.hero-has-photo { padding: 0; overflow: visible; background: var(--navy-deep); }
.hero-photo-frame { line-height: 0; background: var(--navy-deep); }
.hero-photo-full { display: block; width: 100%; height: auto; }
.hero-intro { position: relative; z-index: 1; max-width: 720px; padding: 48px 0 0; }
.hero-intro .hero-ctas { margin-bottom: 48px; }

.hero .eyebrow-line {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero p.lede {
  font-size: 1.15rem;
  color: #D9DAE8;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-weight: 600;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Stat ticker */
.stat-ticker { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.16); background: rgba(0,0,0,0.18); }
.stat-ticker .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-item { padding: 22px 10px; text-align: center; border-left: 1px solid rgba(255,255,255,0.14); }
.stat-item:first-child { border-left: none; }
.stat-item .num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--gold); display: block; }
.stat-item .label { font-size: 0.82rem; color: #C7C9DA; }

/* Section basics */
section { padding: 76px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.04rem; }
.rule { height: 4px; width: 64px; background: var(--red); margin-bottom: 20px; }

/* Mission intro band (home) */
.mission-band {
  background: #fff;
  border-left: 6px solid var(--red);
  padding: 30px 34px;
  margin: 40px auto 0;
  max-width: 900px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}
.mission-band p { font-size: 1.12rem; color: var(--ink); margin: 0; }

/* Home preview tiles */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.preview-card {
  background: #fff;
  padding: 30px;
  text-decoration: none;
  display: block;
}
.preview-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.preview-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 14px; }
.preview-card .go { font-weight: 600; color: var(--red); font-size: 0.9rem; }
.preview-card:hover .go { text-decoration: underline; }

/* Chief section */
.chief-section { background: #fff; }
.chief-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.chief-photo {
  background: var(--navy);
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.chief-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.chief-copy p { font-size: 1.05rem; color: var(--ink); margin: 0 0 18px; }
.chief-copy p:first-of-type { font-size: 1.18rem; }
.chief-sign { margin-top: 26px; }
.chief-sign .who { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.chief-sign .role { color: var(--ink-soft); font-size: 0.92rem; }

/* Apparatus */
.apparatus-section { background: var(--paper-warm); }
.station-block { background: #fff; border: 1px solid var(--line); margin-bottom: 28px; }
.station-head {
  background: var(--navy);
  color: #fff;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.station-head h3 { color: #fff; font-size: 1.25rem; }
.station-head .addr { font-size: 0.88rem; color: #B9BBD8; }
.station-head .companies { width: 100%; font-size: 0.88rem; color: var(--gold); margin-top: 4px; }
table.roster { width: 100%; border-collapse: collapse; }
table.roster tr { border-bottom: 1px solid var(--line); }
table.roster tr:last-child { border-bottom: none; }
table.roster td { padding: 14px 26px; vertical-align: top; font-size: 0.96rem; }
table.roster td.unit { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--red); white-space: nowrap; width: 190px; }
table.roster td.desc { color: var(--ink); }
table.roster td.person-name { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--navy); width: 44%; }
table.roster td.person-title { color: var(--ink-soft); }
.station-head .subtitle { width: 100%; font-size: 0.88rem; color: var(--gold); margin-top: 4px; }

/* District / board photo */
.district-photo { background: #fff; border: 1px solid var(--line); padding: 10px; margin-bottom: 28px; }
.district-photo img { width: 100%; display: block; border-radius: 2px; }
.district-photo .caption { text-align: center; color: var(--ink-soft); font-size: 0.85rem; padding: 12px 10px 4px; }

/* Prevention hub grid */
.prevention-section { background: #fff; }
.prevention-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.prevention-card { background: #fff; padding: 32px; }
.prevention-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.prevention-card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 14px; }
.prevention-card .more { font-weight: 600; color: var(--red); text-decoration: none; font-size: 0.92rem; }
.prevention-card .more:hover { text-decoration: underline; }

/* Prevention detail page */
.detail-section { background: #fff; }
.detail-body { max-width: 720px; }
.detail-body p { font-size: 1.05rem; color: var(--ink); margin: 0 0 18px; }
.detail-body h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.detail-body ul { padding-left: 22px; margin: 0 0 18px; }
.detail-body li { margin-bottom: 8px; font-size: 1.02rem; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; color: var(--red); text-decoration: none; font-size: 0.94rem; }
.back-link:hover { text-decoration: underline; }

/* Live data (fetched from API) */
.live-loading {
  padding: 30px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.live-error {
  border: 1px dashed #C24B4B;
  background: #FFF5F5;
  color: #8A2C2C;
  padding: 24px 26px;
  font-size: 0.95rem;
}
.live-empty {
  border: 1px dashed #9EA1C2;
  background: #fff;
  padding: 34px 26px;
  text-align: center;
  color: var(--ink-soft);
}
.live-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 26px;
}
.live-item:last-child { border-bottom: none; }
.live-item .live-item-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.live-item .live-item-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.live-item .live-item-body {
  font-size: 0.95rem;
  color: var(--ink);
}
.story-preview { display: flex; align-items: flex-start; gap: 24px; margin-top: 14px; }
.story-preview .live-item-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.story-excerpt { margin: 12px 0 0; }
.story-read-more { margin: 18px 0 0; }
.story-read-more a, .story-back { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }
.story-link-context { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stories-page { max-width: 1000px; }
.stories-page .story-item { margin-bottom: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.stories-page .live-item-title { font-size: 1.5rem; }
.story-full { max-width: 760px; margin: 0 auto; background: #fff; padding: 28px; border: 1px solid var(--line); }
.story-full .story-poster { width: auto; max-width: 100%; max-height: 600px; margin: 24px auto; }
.story-content { line-height: 1.8; }
.story-content h2, .story-content h3, .story-content h4 { margin: 1.5em 0 0.5em; }
.story-item { scroll-margin-top: 24px; }
@media (max-width: 640px) {
  .stories-page .story-item, .story-full { padding: 20px 16px; }
}
.story-poster { width: 240px; max-width: 40%; height: auto; flex-shrink: 0; border-radius: var(--radius); }
@media (max-width: 640px) {
  .story-preview { flex-direction: column; gap: 16px; }
  .story-poster { width: 100%; max-width: 360px; }
}
.notice-description { overflow-wrap: anywhere; }
.notice-description > :first-child { margin-top: 0; }
@media (max-width: 560px) {
  table.roster.roster-people, table.roster.roster-people tbody, table.roster.roster-people tr { display: block; width: 100%; }
  table.roster.roster-people td.person-name, table.roster.roster-people td.person-title { display: block; width: auto; padding: 4px 20px; }
  table.roster.roster-people td.person-name { padding-top: 14px; }
  table.roster.roster-people td.person-title { padding-bottom: 14px; }
}
.notice-description > :last-child { margin-bottom: 0; }
.notice-description ul, .notice-description ol { padding-left: 1.5em; }
.notice-description img { max-width: 100%; height: auto; }
.notice-description pre { overflow-x: auto; }
.notice-description table { display: block; max-width: 100%; overflow-x: auto; }
.run-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
}
.run-pager button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white, #fff);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.run-pager button:hover:not(:disabled) { background: var(--paper); }
.run-pager button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.run-pager button:disabled { opacity: 0.4; cursor: default; }
.run-page-label { color: var(--navy); font-weight: 700; text-align: center; }
.run-empty { margin-top: 18px; color: var(--ink-soft); }
.run-month {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}
.run-month:last-child { border-bottom: none; }
.run-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.run-month-header h4 { font-size: 1.4rem; }
.run-total { display: flex; align-items: baseline; gap: 8px; }
.run-total strong {
  font-family: 'Oswald', sans-serif;
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.run-total span { color: var(--ink-soft); font-size: 0.88rem; }
.run-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 22px 0 0;
}
.run-category {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--radius);
}
.run-category dt { color: var(--ink-soft); font-size: 0.95rem; overflow-wrap: anywhere; }
.run-category dd {
  margin: 0;
  flex-shrink: 0;
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .run-pager { padding: 12px 16px; gap: 8px; }
  .run-pager button { padding: 8px; font-size: 0.85rem; }
  .run-page-label { font-size: 0.9rem; }
  .run-month { padding: 20px 16px; }
  .run-categories { grid-template-columns: 1fr; gap: 8px; }
}

/* Notices */
/* Membership benefits (Join Us Now page) */
.benefits-section { padding: 56px 0 24px; }
.benefits-section > .wrap > p { max-width: 760px; font-size: 1.05rem; margin: 0 0 20px; }
.benefits-list { max-width: 760px; padding-left: 22px; margin: 0 0 24px; }
.benefits-list li { margin-bottom: 10px; font-size: 1.02rem; }
.benefits-section a { color: var(--red); font-weight: 600; text-decoration: none; }
.benefits-section a:hover { text-decoration: underline; }

/* Forms (Join Us application, Records Request / FOIL) */
.form-section { padding: 40px 0 72px; }
.notice-callout {
  background: #fff;
  border-left: 6px solid var(--red);
  padding: 22px 26px;
  max-width: 820px;
  margin: 0 0 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.notice-callout p { margin: 0; font-size: 1rem; }
.site-form { max-width: 820px; display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-row.records-contact-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.records-contact-row .form-field, .records-contact-row input { min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label, .checkbox-group legend {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}
.required { color: var(--red); }
.field-hint { margin: -2px 0 2px; font-size: 0.88rem; color: var(--ink-soft); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.98rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,0,74,0.12);
}
.form-field textarea { resize: vertical; min-height: 70px; }
.checkbox-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-option { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.96rem; }
.checkbox-option input[type="checkbox"] { width: 18px; height: 18px; }
.form-status { font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.form-status-success { color: #157A3E; }
.form-status-error { color: var(--red); }
.site-form button[type="submit"] { align-self: flex-start; }
@media (max-width: 640px) {
  .form-row.two-col, .form-row.three-col, .form-row.records-contact-row { grid-template-columns: 1fr; }
}

/* Follow Us floating widget (Facebook Page Plugin) */
.fb-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.fb-float.fb-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.fb-float-tab {
  background: var(--navy);
  color: #fff;
  border: none;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.fb-float-tab:hover { background: var(--navy-deep); }
.fb-float.open .fb-float-tab { display: none; }
.fb-float-panel {
  display: none;
  margin-bottom: 12px;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.24);
}
.fb-float.open .fb-float-panel { display: block; }
.fb-float-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
}
.fb-float-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.fb-float-panel iframe { display: block; }
@media (max-width: 640px) {
  .fb-float { right: 12px; bottom: 12px; }
}

/* Calendar embed (department's own Google/Outlook calendar) */
.calendar-section { padding: 56px 0 72px; }
.calendar-embed { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 14px rgba(0,0,0,0.05); }
.calendar-embed iframe { display: block; }
.calendar-placeholder {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 34px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.calendar-placeholder code { background: var(--paper); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.calendar-embed-compact { max-width: 640px; }
.calendar-viewall { margin: 18px 0 0; }
.calendar-viewall a { color: var(--red); font-weight: 600; text-decoration: none; }
.calendar-viewall a:hover { text-decoration: underline; }

.notices-section { background: var(--paper-warm); }
.notice-empty {
  border: 1px dashed #9EA1C2;
  background: #fff;
  padding: 44px 30px;
  text-align: center;
  color: var(--ink-soft);
}
.notice-empty strong {
  display: block;
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* CTA band */
.cta-band { position: relative; background: var(--red); color: #fff; padding: 64px 0; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.14) 0 26px, transparent 26px 52px);
  opacity: 0.5;
}
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-inner h2 { color: #fff; font-size: 1.9rem; max-width: 560px; }
.cta-inner .btn-outline { border-color: #fff; }

/* Footer */
footer.site { background: var(--navy-deep); color: #C7C9DA; padding: 56px 0 26px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { text-decoration: none; color: #C7C9DA; }
footer.site a:hover { color: #fff; }
.footer-emergency { color: var(--gold); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8E90AC;
}

@media (max-width: 1180px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-watermark { display: none; }
  .stat-ticker .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .chief-grid { grid-template-columns: 1fr; }
  .chief-photo { max-width: 220px; }
  .prevention-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mission-band { margin: 24px 20px 0; }
}

@media (max-width: 1180px) {
  .site-header-inner { padding: 12px 16px; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  nav.main-nav > ul > li + li { border-top: 1px solid var(--line); }
  nav.main-nav a, .nav-group-toggle { padding: 14px 0; }
  .nav-group-toggle { width: 100%; justify-content: space-between; }
  nav.main-nav .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 12px;
  }
  nav.main-nav .nav-dropdown a { white-space: normal; }
  nav.main-nav a.nav-login { margin-top: 12px; padding: 10px 24px; }
  nav.main-nav a.nav-cta { margin-top: 12px; padding: 10px 24px; }
}

/* Calendar API cards */
.events-status, .events-updated { color: var(--ink-soft); margin: 0 0 18px; }
.events-updated { margin: 18px 0 0; font-size: .85rem; }
.events-list { display: grid; gap: 16px; }
.event-card { display: flex; gap: 22px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.event-date { flex: 0 0 64px; align-self: flex-start; text-align: center; color: var(--navy); border-top: 4px solid var(--red); background: var(--paper); padding: 8px 4px; border-radius: 4px; }
.event-month { display: block; text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.event-day { display: block; font-size: 2rem; line-height: 1.2; }
.event-content { min-width: 0; overflow-wrap: anywhere; }
.event-title { margin: 0 0 8px; color: var(--navy); font-family: 'Oswald', sans-serif; font-size: 1.4rem; }
.event-meta, .event-location { margin: 4px 0; color: var(--ink-soft); }
.event-location { font-weight: 600; }
.event-description { white-space: pre-wrap; margin: 10px 0 0; }
.events-retry { padding: 10px 18px; background: var(--navy); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
@media (max-width: 480px) { .event-card { padding: 16px; gap: 14px; } .event-date { flex-basis: 50px; } }

/* ---------------------------------------------------------------------
   Optional template features (only used when a department's config turns
   them on — see README "Optional features"). Safe for every department.
   --------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Apparatus photo cards ("apparatus_layout": "cards") */
.unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 24px; }
.unit-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.unit-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy); }
.unit-photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.unit-photo-num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--gold); }
.unit-photo-note { font-size: 0.82rem; color: #C7C9DA; }
.unit-body { padding: 16px 18px 18px; border-top: 4px solid var(--red); }
.unit-name { margin: 0 0 4px; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.18rem; color: var(--red); }
.unit-desc { margin: 0; font-size: 0.95rem; color: var(--ink); line-height: 1.45; }
@media (max-width: 1180px) { .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .unit-grid { grid-template-columns: 1fr; padding: 16px; } }

/* Company patches, rank insignia and roster sections (officers/district) */
.station-head.has-patch { align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
.station-head.has-patch .subtitle { width: auto; flex-basis: 100%; margin-top: 0; }
.station-patch { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.person-with-insignia { display: inline-flex; align-items: center; gap: 12px; }
.person-insignia { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.roster-section { margin-top: 48px; }
.roster-section-title { display: flex; align-items: center; gap: 16px; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 22px; }
.section-patch { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
table.roster tr:has(.person-insignia) td { vertical-align: middle; }
