:root {
  --green: #008745;
  --green-dark: #006b37;
  --forest: #143326;
  --forest-mid: #1c4534;
  --ink: #141f19;
  --muted: #4a5950;
  --cream: #f2f3ee;
  --surface: #ffffff;
  --surface-tint: #e8ede3;
  --line: #c8d1c6;
  --red: #da2b1f;
  --yellow: #ffd700;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input,
textarea {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: 20px;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid var(--forest);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Emergency utility bar */
.utility {
  background: #0e241b;
  color: #e6ede8;
  font-size: 0.82rem;
}

.utility > div {
  max-width: 1280px;
  margin: auto;
  padding: 0.45rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.utility .social-links {
  padding-right: 0.85rem;
  border-right: 1px solid #2b4c3d;
}

.utility .social-links a span {
  display: none;
}

footer .social-links {
  margin: 0.75rem 0;
}

footer .social-links a {
  color: #e4ede6;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.65rem;
  border: 1px solid #355847;
}

footer .social-links a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.home-community .social-links {
  margin-top: 0.75rem;
}

.home-community .social-links a,
.sidebar-social .social-links a {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  color: var(--ink);
  font-weight: 700;
}

.home-community .social-links a:hover,
.sidebar-social .social-links a:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: #f5faf6;
}

.sidebar-social .social-links {
  margin-top: 0.5rem;
}

.utility a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.utility a:hover {
  text-decoration: underline;
}

.emergency-call {
  background: var(--red);
  color: #fff !important;
  padding: 0.2rem 0.65rem;
  font-weight: 700;
  border-radius: 2px;
}

.emergency-call strong {
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Department masthead */
header {
  background: var(--surface);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Barlow', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  border-left: 4px solid var(--red);
  padding: 0.15rem 0 0.15rem 0.9rem;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text span {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  margin-top: 0.3rem;
  font-weight: 700;
  color: var(--muted);
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

header nav a {
  white-space: nowrap;
}

header nav a:not(.nav-cta) {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  color: var(--ink);
}

header nav a:not(.nav-cta):hover {
  color: var(--green-dark);
  border-bottom-color: var(--line);
}

header nav a:not(.nav-cta)[aria-current] {
  color: var(--forest);
  font-weight: 700;
  border-bottom-color: var(--green);
}

header nav a.nav-cta {
  text-decoration: none;
  background: var(--green);
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 700;
  border-radius: 2px;
}

header nav a.nav-cta:hover,
header nav a.nav-cta[aria-current] {
  background: var(--forest);
}

/* Preview notice bar */
.draft {
  border-bottom: 1px solid #d8cc8c;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.5rem;
  background: #fff8cf;
  color: #2b2300;
  font-size: 0.78rem;
}

.draft strong {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Main container & headings */
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 2.5rem 4rem;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 3.6vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin: 2rem 0 0;
  min-height: 450px;
  background: var(--forest);
  border: 1px solid var(--forest);
}

.hero-copy {
  background: var(--forest);
  color: #f5f6f2;
  padding: 2.75rem 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy > .eyebrow {
  color: var(--yellow);
  margin-bottom: 0.65rem;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 3.5vw, 3.05rem);
  margin-bottom: 1rem;
}

.hero-copy > p:not(.eyebrow):not(.hero-footnote) {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #e2ebe4;
  margin-bottom: 0.9rem;
}

.hero-photo {
  margin: 0;
  position: relative;
  background: #dde3da;
  min-width: 0;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  object-position: 39% 50%;
  display: block;
}

/* Quick-action bar below homepage hero */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  margin-bottom: 3rem;
}

.quick-link {
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick-link:last-child {
  border-right: 0;
}

.quick-link:hover {
  background: #f7faf5;
}

.quick-link strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.quick-link span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.quick-link-alert {
  background: #fff9e6;
  border-left: 5px solid var(--red);
}

.quick-link-alert:hover {
  background: #fff3cc;
}

/* Actions & buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero .actions {
  margin-top: 0.75rem;
}

.button {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.35;
  border-radius: 2px;
}

.button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.hero .button:not(.button-outline) {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #10241b;
}

.hero .button:not(.button-outline):hover {
  background: #e6c200;
  border-color: #e6c200;
}

.button-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.text-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-dark);
}

.text-link:hover {
  color: var(--ink);
}

/* Resource grids & cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  padding: 1.5rem;
  min-width: 0;
}

.resource-card:hover {
  border-color: var(--green);
  border-top-color: var(--green);
  background: #fafcf8;
}

.card-top {
  margin-bottom: 0.5rem;
}

.card-top .eyebrow {
  font-size: 0.68rem;
  margin: 0;
}

.card-number {
  display: none;
}

.resource-card h2 {
  font-size: 1.3rem;
  line-height: 1.22;
  margin-bottom: 0.55rem;
}

.resource-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
}

/* Page headers & callouts */
.page-intro {
  padding: 2.25rem 0 1.25rem;
  max-width: 840px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.75rem;
}

.intro-split .page-intro {
  border-bottom: 0;
  margin-bottom: 0;
}

.lead {
  font-size: 1.08rem;
  max-width: 720px;
  line-height: 1.65;
  color: #2a3b32;
  margin-bottom: 0.65rem;
}

.quiet,
.review-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}

.notice {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  margin: 1.5rem 0;
}

.notice h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

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

.caution {
  background: #fff9e2;
  border-color: #dec982;
  border-left: 6px solid var(--red);
}

.santa-callout {
  border-left: 6px solid var(--red);
  margin: 0 0 3rem;
}

.santa-callout .eyebrow {
  color: var(--red);
}

.caution strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.conditions-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin-top: 2.25rem;
}

.conditions-callout h2 {
  margin-bottom: 0.4rem;
}

.conditions-callout p {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.conditions-callout .button {
  flex-shrink: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* Articles & Checklists */
article {
  max-width: 820px;
  margin: 0 auto;
}

.article-heading {
  padding: 1.5rem 0 1.25rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.5rem;
}

.checklist-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  margin-bottom: 2rem;
}

.checklist-tools p {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.checklist-tools > div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.plain-button {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}

.plain-button:hover {
  border-color: var(--ink);
  background: #e4e9e0;
}

.check-section {
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.section-number {
  display: none;
}

.check-section h2 {
  font-size: 1.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 0.5rem;
}

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

.checklist li {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.checklist li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.55;
}

.checklist input {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin: 0.2rem 0 0;
  accent-color: var(--green);
}

.checklist label:has(input:checked) {
  color: var(--muted);
  text-decoration: line-through;
}

.sources {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  margin: 2.25rem 0 2rem;
}

.sources h2 {
  font-size: 1.3rem;
}

.sources ul {
  padding-left: 1.2rem;
}

.sources li {
  margin: 0.5rem 0;
}

.sources p:last-child {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0;
}

.article-next {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  margin-bottom: 2rem;
}

.print-details {
  display: none;
}

/* Warnings & Local Conditions page */
.fire-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.panel-heading .eyebrow {
  margin-bottom: 0.25rem;
}

.feed-health {
  background: #fff8de;
  border: 1px solid #dec982;
  border-left: 5px solid #9c6f00;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.feed-health[data-state="current"] {
  background: #eef5f0;
  border-color: #b8cfc0;
  border-left-color: var(--green);
}

.feed-health[data-state="offline"],
.feed-health[data-state="stale"] {
  background: #fff1ec;
  border-color: #e0b4a4;
  border-left-color: var(--red);
}

#feed-times {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--cream);
  border: 1px solid var(--line);
}

#feed-times:empty {
  display: none;
}

#feed-times p {
  margin: 0;
}

.scope-note,
.source-credit {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 950px;
  line-height: 1.55;
}

.scope-note {
  margin: 1rem 0 1.25rem;
}

.source-credit {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.warning {
  border: 1px solid #b5c0b8;
  border-left: 8px solid #5c6f7c;
  margin: 1rem 0;
  padding: 1.25rem;
  background: #fff;
}

.warning[data-level="Advice"] {
  border-left-color: #fedd3a;
}

.warning[data-level="Watch and Act"] {
  border-left-color: #f7811d;
}

.warning[data-level="Emergency Warning"] {
  border-left-color: #af1917;
}

.warning-level {
  font-family: 'Barlow', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #e2e8ec;
  margin-bottom: 0.5rem;
}

.warning[data-level="Advice"] .warning-level {
  background: #fedd3a;
  color: #241d00;
}

.warning[data-level="Watch and Act"] .warning-level {
  background: #f7811d;
  color: #210d00;
}

.warning[data-level="Emergency Warning"] .warning-level {
  background: #af1917;
  color: #ffffff;
}

.warning h3 {
  margin: 0.4rem 0;
}

.warning p {
  font-size: 0.92rem;
}

.official-message {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  line-height: 1.7;
  background: var(--cream);
  padding: 1rem;
  border: 1px solid var(--line);
}

.warning details {
  margin-top: 0.85rem;
}

.warning .time {
  font-size: 0.78rem;
  color: var(--muted);
}

summary {
  cursor: pointer;
  padding: 0.65rem 0;
  font-weight: 700;
}

#statewide {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
}

#statewide > summary {
  font-size: 0.92rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.service-card {
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 1rem;
  padding: 0.85rem;
  background: var(--cream);
  border: 1px solid var(--line);
}

.weather-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.weather-metrics dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.weather-metrics dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.weather-note {
  font-size: 0.8rem !important;
  color: var(--muted);
  margin: 0 0 0.85rem !important;
}

.service-card-header .eyebrow {
  margin-bottom: 0;
}

.service-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.service-card p:not(.eyebrow) {
  font-size: 0.92rem;
  max-width: 520px;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.status-tag {
  font-size: 0.74rem !important;
  font-weight: 700;
  color: var(--ink) !important;
  background: var(--cream);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 0.18rem 0.55rem;
}

.official-links {
  padding: 1.75rem 2rem;
  margin-top: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
}

.official-links h2 {
  font-size: 1.45rem;
}

.official-links > p {
  max-width: 760px;
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.action-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.action-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  text-decoration: none;
}

.action-tile:hover {
  background: var(--surface-tint);
  border-color: var(--green);
}

.action-tile strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
}

.action-tile span {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Footer */
footer {
  background: var(--forest);
  color: #eef4e5;
  border-top: 4px solid var(--green);
  padding: 3rem max(2.5rem, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 3rem;
  font-size: 0.86rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

footer .brand-logo {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

footer .brand-text {
  font-size: 1.15rem;
  color: #fff;
}

footer .brand-text span {
  font-size: 0.6rem;
  color: #c8d8cc;
}

footer p {
  margin: 0.9rem 0;
  color: #d6e2d9;
}

.footer-emergency a {
  color: var(--yellow);
  font-weight: 800;
}

.footer-nav a {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: #e4ede6;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: #fff;
}

footer strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-note {
  grid-column: 1 / -1;
  border-top: 1px solid #355847;
  padding-top: 1.25rem;
  margin: 0;
  color: #b8cbbd;
  font-size: 0.76rem;
}

/* Learning & worksheet */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.reading-path {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  padding: 1rem 1.4rem;
  margin: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.86rem;
}

.reading-path ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  list-style-position: inside;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.learning-article > section {
  margin: 2rem 0;
}

.learning-article > section > h2 {
  font-size: 1.5rem;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  background: var(--surface);
}

caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border: 1px solid var(--line);
  vertical-align: top;
}

thead {
  background: var(--surface-tint);
}

tbody th {
  font-weight: 600;
}

th:first-child {
  width: 58%;
}

.table-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.plan-worksheet {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  margin: 2.5rem 0;
}

.plan-worksheet > h2 {
  font-size: 1.55rem;
}

.plan-worksheet > p {
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-field {
  margin: 1.5rem 0;
}

.plan-field label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.plan-field p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.3rem 0 0.5rem;
}

.plan-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  border: 1px solid #8a998a;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem;
  line-height: 1.5;
  border-radius: 2px;
}

.print-value {
  display: none;
}

.reading-next {
  font-size: 0.88rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.hero a:focus-visible,
footer a:focus-visible {
  outline-color: var(--yellow);
}

/* Homepage & Brigade story sections */
.brigade-introduction {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  padding: 1rem 0 3rem;
}

.story-prose p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42rem;
}

.story-prose .text-link {
  display: inline-block;
  margin-top: 0.35rem;
}

/* Dark feature band for 1979 founding story */
.community-memory {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  background: var(--forest);
  color: #f2f5f0;
  padding: 2.5rem 2.75rem;
  margin: 0 0 3.5rem;
  border-left: 6px solid var(--red);
}

.memory-year {
  font-family: 'Barlow', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--yellow);
  margin: 0 0 0.5rem;
}

.memory-heading h2 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0;
}

.community-memory .story-prose p {
  font-size: 0.98rem;
  color: #e0eae3;
}

.community-memory .text-link {
  color: var(--yellow);
}

.home-conversation {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  padding: 0.5rem 0 3rem;
}

.home-conversation > div > p {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 40rem;
}

.home-conversation aside {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  margin: 0;
}

.home-conversation aside h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.home-conversation aside p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.home-conversation aside a {
  display: block;
  margin-top: 0.75rem;
}

/* Recruitment banner */
.volunteer-invitation {
  padding: 2.25rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.volunteer-invitation h2 {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.volunteer-invitation p {
  font-size: 0.98rem;
  max-width: 40rem;
  line-height: 1.65;
  margin-bottom: 0;
  color: var(--muted);
}

.volunteer-invitation .button {
  flex-shrink: 0;
}

.brigade-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.brigade-story {
  margin: 0;
  max-width: 760px;
}

.brigade-story > section {
  margin: 1rem 0 2.5rem;
}

.brigade-story > section > h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.brigade-story > section > p:not(.story-source) {
  font-size: 1rem;
  line-height: 1.7;
}

.story-source {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.25rem;
}

.brigade-photo-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  padding: 1.25rem;
}

.brigade-photo-note img {
  max-width: 100%;
  height: auto;
  display: block;
}

.brigade-photo-note > div {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.brigade-photo-note > div strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.5rem;
}

.brigade-photo-note > div a {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.55rem 0;
}

.story-invitation {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
}

.brigade-story .review-note {
  font-size: 0.78rem;
}

.brigade-story #community {
  scroll-margin-top: 2rem;
}

/* Quotes & History */
.archive-quote {
  margin: 1.5rem 0 2.25rem;
  padding: 1.15rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
}

.archive-quote > p {
  font: italic 1.35rem/1.45 Georgia, serif;
  margin-bottom: 0.5rem;
}

.archive-quote > footer {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.history-story {
  margin: auto;
  max-width: 820px;
}

.history-milestones {
  list-style: none;
  padding: 0;
}

.history-milestones li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.history-milestones h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.history-milestones p {
  margin-bottom: 0;
}

.milestone-year {
  font-family: 'Barlow', sans-serif;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--green-dark);
}

.beginnings-link {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

/* Archive photographs */
.history-photo {
  margin: 2rem 0 2.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  break-inside: avoid;
}

.history-photo > a {
  display: block;
}

.history-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.history-photo figcaption {
  padding: 0.85rem 0.2rem 0.1rem;
  line-height: 1.55;
}

.history-photo figcaption strong {
  font-size: 0.95rem;
  display: block;
}

.history-photo figcaption p {
  font-size: 0.85rem;
  margin: 0.35rem 0;
}

.history-photo figcaption > span {
  font-size: 0.74rem;
  color: var(--muted);
}

.history-photo-small {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
}

.history-photo-small img {
  max-width: 400px;
}

.history-photo-small figcaption {
  padding: 0;
}

/* Brigade photographs from the media library */
.photo {
  margin: 2rem 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #dde3da;
}

.photo-wide {
  margin: 0.5rem 0 2.5rem;
}

.photo-wide img {
  aspect-ratio: 16 / 9;
  max-height: 540px;
  object-fit: cover;
  object-position: 50% 100%;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin: 0 0 3rem;
}

.photo-pair .photo {
  margin: 0;
}

.photo-pair img {
  height: 350px;
  object-fit: cover;
}

.home-community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 0 0 3rem;
}

.home-community .photo {
  margin: 0;
}

.home-community p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 34rem;
}

.intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 3rem;
  align-items: center;
  border-bottom: 2px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.intro-split .photo {
  margin: 1.5rem 0 0.5rem;
}

.intro-split .photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.brigade-photo-note .photo {
  margin: 0;
}

.learning-article > .photo {
  margin: 1.5rem 0 2.25rem;
}

.brigade-hero .hero-photo img {
  object-position: 78% 50%;
}

/* Emergency & Utility Contacts Strip */
.emergency-strip {
  background: #0e241b;
  color: #fff;
  border-top: 3px solid var(--red);
}

.emergency-strip-inner {
  max-width: 1280px;
  margin: auto;
  padding: 1.15rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.emergency-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 3px solid #355847;
  padding-left: 0.9rem;
}

.emergency-item-primary {
  border-left-color: var(--red);
}

.emergency-item span {
  font-size: 0.76rem;
  color: #c2d4c8;
  font-weight: 600;
}

.emergency-item a {
  font-family: 'Barlow', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
}

.emergency-item-primary a {
  color: var(--yellow);
}

.emergency-item a:hover {
  text-decoration: underline;
}

/* Australian Fire Danger Rating System (AFDR) Visual Bar */
.afdr-panel,
.permit-panel,
.fleet-showcase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.afdr-intro {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 1.25rem;
}

.afdr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.afdr-tier {
  border: 1px solid var(--line);
  padding: 1.15rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.afdr-badge {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  color: #111;
}

.afdr-moderate {
  border-top: 5px solid #64bf30;
}
.afdr-moderate .afdr-badge {
  background: #64bf30;
  color: #0b1f00;
}

.afdr-high {
  border-top: 5px solid #fedd3a;
}
.afdr-high .afdr-badge {
  background: #fedd3a;
  color: #241d00;
}

.afdr-extreme {
  border-top: 5px solid #f7811d;
}
.afdr-extreme .afdr-badge {
  background: #f7811d;
  color: #210d00;
}

.afdr-catastrophic {
  border-top: 5px solid #af1917;
}
.afdr-catastrophic .afdr-badge {
  background: #af1917;
  color: #fff;
}

.afdr-tier strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.afdr-tier p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.afdr-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

/* Permits & 4-Step Volunteer Timeline */
.permit-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.permit-step {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  width: 2rem;
  height: 2rem;
  background: var(--forest);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.permit-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.permit-step p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.permit-step a {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* Grouped Checklists & At-a-Glance Bar */
.checklist-group {
  margin: 2.25rem 0 2.75rem;
}

.group-header {
  margin-bottom: 1rem;
}

.group-header h2 {
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
}

.group-header p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.card-meta {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream);
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
}

.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 0.9rem 1.15rem;
  margin-top: 1rem;
}

.at-a-glance > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.at-a-glance strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
}

.at-a-glance span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

/* Fleet Showcase & Local Area Context on Our Brigade */
.fleet-roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fleet-unit {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}

.fleet-unit-yellow {
  border-top-color: #d9a400;
}

.fleet-unit-white {
  border-top-color: var(--green);
}

.unit-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.unit-callsign {
  font-family: 'Barlow', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.unit-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
}

.unit-spec {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.fleet-unit p:last-child {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.fleet-card {
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.fleet-card .photo {
  margin: 0;
}

.fleet-card .photo img {
  height: 210px;
  object-fit: cover;
}

.fleet-card-body {
  padding: 1.15rem 1.25rem;
}

.fleet-card-body h3 {
  font-size: 1.18rem;
  margin-bottom: 0.45rem;
}

.fleet-card-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.local-area-box {
  padding-bottom: 1.1rem;
}

.local-area-box strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.4rem;
}

.local-area-box p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Warning Levels 3-column grid */
.warning-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* Saved checklist progress badge states */
.card-meta[data-status="progress"] {
  background: #fff8de;
  border-color: #dec982;
  color: #5c4300;
}

.card-meta[data-status="complete"] {
  background: #e6f4ec;
  border-color: var(--green);
  color: var(--green-dark);
}

/* Interactive Permit Quick-Check */
.permit-checker,
.access-panel,
.area-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.checker-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.checker-controls fieldset {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--cream);
}

.checker-controls legend {
  font-family: 'Barlow', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0 0.35rem;
  color: var(--ink);
}

.checker-controls label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  margin-top: 0.55rem;
  cursor: pointer;
  line-height: 1.4;
}

.checker-controls input[type="radio"] {
  accent-color: var(--green);
  margin-top: 0.2rem;
}

.checker-result {
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 6px solid var(--forest);
}

.checker-result[data-verdict="stop"] {
  background: #fff1ec;
  border-color: #e0b4a4;
  border-left-color: var(--red);
}

.checker-result[data-verdict="permit"] {
  background: #fff9e2;
  border-color: #dec982;
  border-left-color: #d98200;
}

.checker-result[data-verdict="caution"] {
  background: #fff9e2;
  border-color: #dec982;
  border-left-color: #9c6f00;
}

.checker-result[data-verdict="check"] {
  background: #eef5f0;
  border-color: #b8cfc0;
  border-left-color: var(--green);
}

.checker-result strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.checker-result p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  max-width: 720px;
}

/* Truck Driveway Clearance Diagram */
.access-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 2rem;
  align-items: center;
}

.access-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 280;
  overflow: hidden;
  border: 1px solid var(--forest);
  background: #143326;
}

.access-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 92% 52%;
  display: block;
}

.access-photo-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.access-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.access-points > div > strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.2rem;
}

.access-points p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Brigade Area & Station Map Panel */
.area-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.3fr) 1fr;
  gap: 2rem;
  align-items: start;
}

.area-map > svg,
.osm-fallback-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.osm-map {
  position: relative;
  width: 100%;
  height: 390px;
  border: 1px solid var(--forest);
  background: #e4ebe0;
  overflow: hidden;
  user-select: none;
}

.osm-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.osm-viewport.is-dragging {
  cursor: grabbing;
}

.osm-tiles,
.osm-overlay,
.osm-markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.osm-tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 256px;
  height: 256px;
  max-width: none !important;
  pointer-events: none;
  will-change: transform;
}

.osm-overlay {
  pointer-events: none;
  z-index: 2;
}

.osm-boundary-halo {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.osm-boundary-path {
  fill: rgba(0, 135, 69, 0.22);
  stroke: #143326;
  stroke-width: 2.75px;
  stroke-linejoin: round;
}

.osm-markers {
  pointer-events: none;
  z-index: 3;
}

.osm-station-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  will-change: transform;
}

.osm-pin-dot {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--red);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.osm-pin-label {
  background: rgba(20, 51, 38, 0.94);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-left: 3px solid var(--yellow);
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.osm-pin-label strong {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: var(--yellow);
  display: block;
}

.osm-pin-label span {
  display: block;
  color: #e4ede6;
}

.osm-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px;
  border: 1px solid var(--forest);
}

.osm-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  min-width: 30px;
  height: 30px;
  padding: 0 0.45rem;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.osm-btn-text {
  font-size: 0.78rem;
  font-weight: 700;
}

.osm-btn:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.osm-attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.map-caption {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.area-meta {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.area-meta > div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.area-meta > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.area-meta dt {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  margin-bottom: 0.15rem;
}

.area-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.quiet-inline {
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Digital AFDRS Roadside Fire Danger Rating Sign */
.fdr-sign-panel {
  margin: 0 0 2.5rem;
}

.fdr-sign-board {
  background: var(--surface);
  border: 2px solid var(--forest);
  box-shadow: 0 2px 0 rgba(20, 51, 38, 0.08);
}

.fdr-sign-header {
  background: #141f19;
  color: #fff;
  padding: 0.65rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-bottom: 3px solid var(--yellow);
}

.fdr-sign-header span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow);
}

.fdr-sign-header strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d6e2d9;
}

.fdr-sign-body {
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

.fdr-dial-wrap {
  background: #141f19;
  padding: 0.85rem 0.9rem 0.7rem;
  border: 2px solid #141f19;
}

.fdr-dial-svg {
  width: 100%;
  height: auto;
  display: block;
}

.fdr-dial-svg [data-fdr-tier] {
  opacity: 0.28;
  transition: opacity 0.2s ease;
}

.fdr-dial-svg [data-fdr-tier="no-rating"] {
  opacity: 0.45;
}

.fdr-dial-svg [data-fdr-tier][data-active="true"] {
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 3px;
}

.fdr-dial-svg rect[data-fdr-tier="no-rating"][data-active="true"] {
  opacity: 1;
  stroke: var(--yellow);
  stroke-width: 2.5px;
}

.fdr-current-pill {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 0.28rem 0.85rem;
  margin-bottom: 0.5rem;
  background: #e2e8ec;
  color: #141f19;
  border: 1px solid #9aa8b2;
}

.fdr-sign-panel[data-rating="no-rating"] .fdr-current-pill {
  background: #ffffff;
  color: #141f19;
  border: 2px solid #141f19;
}

.fdr-sign-panel[data-rating="moderate"] .fdr-current-pill {
  background: #64bf30;
  color: #0b1f00;
  border-color: #4b9620;
}

.fdr-sign-panel[data-rating="high"] .fdr-current-pill {
  background: #fedd3a;
  color: #241d00;
  border-color: #c9ab00;
}

.fdr-sign-panel[data-rating="extreme"] .fdr-current-pill {
  background: #f7811d;
  color: #210d00;
  border-color: #bd5b08;
}

.fdr-sign-panel[data-rating="catastrophic"] .fdr-current-pill {
  background: #af1917;
  color: #ffffff;
  border-color: #7e0f0e;
}

.fdr-sign-readout h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.fdr-summary-text {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 680px;
}

.fdr-outlook {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.fdr-outlook:empty {
  display: none;
}

.fdr-outlook-day {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid #9aa8b2;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fdr-outlook-day[data-rating="no-rating"] {
  border-top-color: #141f19;
}
.fdr-outlook-day[data-rating="moderate"] {
  border-top-color: #64bf30;
}
.fdr-outlook-day[data-rating="high"] {
  border-top-color: #fedd3a;
}
.fdr-outlook-day[data-rating="extreme"] {
  border-top-color: #f7811d;
}
.fdr-outlook-day[data-rating="catastrophic"] {
  border-top-color: #af1917;
}

.fdr-outlook-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.fdr-outlook-level {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

/* Responsive breakpoints */
@media (max-width: 1050px) {
  .header-inner {
    padding: 1rem 2rem;
  }
  header nav {
    gap: 1rem;
    font-size: 0.84rem;
  }
  .quick-links,
  .afdr-grid,
  .permit-steps,
  .emergency-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-link:nth-child(2) {
    border-right: 0;
  }
  .quick-link:nth-child(1),
  .quick-link:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .resource-grid,
  .learning-grid,
  .action-tiles,
  .fleet-grid,
  .fleet-roster,
  .warning-levels-grid,
  .checker-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .access-layout,
  .area-layout,
  .fdr-sign-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-copy {
    padding: 2.25rem 2rem;
  }
  .brigade-introduction,
  .community-memory,
  .home-conversation,
  .home-community,
  .brigade-story-layout {
    gap: 2.25rem;
  }
  .photo-pair img {
    height: 280px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  header nav {
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }
  main {
    padding: 0 1.25rem 2.5rem;
  }
  .utility > div {
    padding: 0.5rem 1.25rem;
    font-size: 0.74rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .emergency-strip-inner,
  .fdr-outlook {
    padding: 1rem 1.25rem;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .fdr-outlook {
    padding: 0;
    gap: 0.65rem;
  }
  .draft {
    justify-content: flex-start;
    padding: 0.45rem 1.25rem;
    gap: 0.5rem;
    font-size: 0.72rem;
  }
  .brand-logo {
    width: 46px;
    height: 46px;
  }
  .brand-text {
    font-size: 1.2rem;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }
  .hero-copy {
    padding: 1.75rem 1.4rem;
  }
  .hero-photo img {
    min-height: 0;
    height: 280px;
    object-position: 45% 52%;
  }
  .quick-links,
  .resource-grid,
  .learning-grid,
  .service-grid,
  .action-tiles,
  .afdr-grid,
  .warning-levels-grid,
  .checker-controls,
  .permit-steps,
  .fleet-grid,
  .fleet-roster,
  .at-a-glance,
  .brigade-introduction,
  .community-memory,
  .home-conversation,
  .home-community,
  .intro-split,
  .brigade-story-layout,
  .photo-pair,
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .quick-link {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .quick-link:last-child {
    border-bottom: 0;
  }
  .photo-pair img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .conditions-callout,
  .checklist-tools,
  .panel-heading,
  .volunteer-invitation,
  .article-next {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .sources,
  .notice,
  .fire-panel,
  .afdr-panel,
  .permit-panel,
  .permit-checker,
  .access-panel,
  .area-panel,
  .fleet-showcase,
  .service-card,
  .community-memory,
  .volunteer-invitation {
    padding: 1.25rem;
  }
  .history-photo-small {
    display: block;
  }
  footer {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.25rem;
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Give long pages a clear rhythm without hiding current warnings. */
.page-jumps { display:flex; flex-wrap:wrap; gap:0.75rem 1.75rem; margin:0 0 2.5rem; padding:1rem 0; border-block:1px solid var(--line); font-weight:700; }
.brigade-page > .photo-wide { margin-bottom:3.5rem; }
.brigade-page .brigade-story > section { margin:1.5rem 0 3.5rem; }
.brigade-page .brigade-story > section > p { max-width:66ch; line-height:1.8; }
.brigade-page > .fleet-showcase, .brigade-page > .area-panel { margin-block:4rem; }
.brigade-page .brigade-photo-note { padding:1.75rem; }
.brigade-photo-note h2 { font-size:1.35rem; }
.conditions-page > .fire-panel, .conditions-page > .fdr-sign-panel, .conditions-links, .conditions-reference { margin-block:3rem; }
.conditions-page > .page-intro { margin-bottom:2rem; }
.conditions-page .lead { max-width:62ch; }
.conditions-links h2, .conditions-reference > h2 { margin-bottom:0.75rem; }
.conditions-links .service-grid { margin-top:1.5rem; }
.reference-disclosure { border-top:1px solid var(--line); margin:1.5rem 0; background:var(--surface); }
.reference-disclosure > summary { padding:1.4rem 1rem; font-size:1.1rem; font-weight:800; cursor:pointer; }
.reference-disclosure[open] > summary { border-bottom:1px solid var(--line); }
.disclosure-content { padding:0.5rem 1rem 1.5rem; }
.feed-details, .boundary-notes { margin:1.25rem 0; color:var(--muted); font-size:0.88rem; }
.feed-details > summary, .boundary-notes > summary { cursor:pointer; font-weight:700; padding:0.5rem 0; }
.area-reference { margin-top:2rem; }
[id^="brigade-"] { scroll-margin-top:2rem; }
@media (max-width:700px) {
  .brigade-page > .fleet-showcase, .brigade-page > .area-panel { margin-block:2.75rem; }
  .brigade-page .brigade-story > section { margin-bottom:2.5rem; }
  .disclosure-content { padding:0 0.5rem 1rem; }
  .conditions-page .disclosure-content .afdr-panel, .conditions-page .disclosure-content .permit-panel, .conditions-page .disclosure-content .permit-checker { padding:1.25rem 0.75rem; }
}

@page {
  size: A4;
  margin: 16mm;
}

@media print {
  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font: 10pt/1.45 Arial, sans-serif;
  }
  .page-jumps,
  .utility,
  .emergency-strip,
  header,
  footer,
  .draft,
  .skip-link,
  .breadcrumbs,
  .checklist-tools,
  .at-a-glance,
  .permit-checker,
  .article-next,
  .hero-photo,
  .brigade-photo-note,
  .quick-links,
  .fleet-showcase,
  .reading-path,
  .reading-next,
  .photo,
  .photo-pair,
  .plan-worksheet .actions,
  button {
    display: none !important;
  }
  main {
    padding: 0 !important;
    max-width: none;
  }
  article {
    max-width: none;
    margin: 0;
  }
  h1,
  article h1 {
    font-size: 22pt !important;
    line-height: 1.1;
  }
  h2,
  .check-section h2,
  .sources h2 {
    font-size: 14pt !important;
    break-after: avoid;
  }
  p {
    orphans: 3;
    widows: 3;
  }
  .print-details {
    display: block;
    border-top: 1px solid #888;
    border-bottom: 1px solid #888;
    padding: 8pt 0;
    margin: 12pt 0;
  }
  .print-details p {
    margin: 4pt 0;
  }
  .check-section,
  .sources,
  .resource-card,
  .service-card,
  .fire-panel,
  .warning,
  .history-photo,
  .archive-quote,
  .history-milestones li,
  .plan-field {
    break-inside: avoid;
  }
  .checklist li {
    padding: 7pt 0;
    border-color: #aaa;
    break-inside: avoid;
  }
  .checklist label {
    font-size: 10pt;
    gap: 8pt;
    color: #000 !important;
    text-decoration: none !important;
  }
  .checklist input {
    appearance: none;
    width: 10pt;
    height: 10pt;
    border: 1pt solid #333;
    margin-top: 3pt;
    background: #fff;
  }
  .checklist input:checked::after {
    content: '✓';
    display: block;
    font-size: 9pt;
    line-height: 9pt;
    text-align: center;
  }
  .notice,
  .sources,
  .community-memory,
  .story-invitation {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #888;
    padding: 10pt;
    margin: 12pt 0;
  }
  .sources a[href^="https"]::after {
    content: '\A' attr(href);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 7.5pt;
    font-weight: 400;
  }
  .hero,
  .service-grid,
  .resource-grid,
  .learning-grid,
  .brigade-introduction,
  .community-memory,
  .home-conversation,
  .brigade-story-layout,
  .home-community,
  .intro-split {
    display: block;
  }
  .hero-copy {
    background: #fff;
    color: #000;
    padding: 0;
  }
  .hero-copy p,
  .scope-note,
  .source-credit,
  .time,
  .table-note {
    color: #000 !important;
  }
  .plan-worksheet {
    break-before: page;
    margin-top: 0;
    padding: 0;
    border: 0;
  }
  .plan-field textarea {
    display: none;
  }
  .plan-field .print-value {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 48pt;
    border: 1px solid #888;
    padding: 6pt;
    color: #000;
    font-size: 10pt;
  }
}
