@font-face {
  font-family: Oswald;
  src: url("fonts/oswald-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #101f36;
  --blue: #152e50;
  --orange: #f96a23;
  --orange-light: #ff9d67;
  --cream: #f3f0e7;
  --paper: #fff;
  --ink: #12233b;
  --muted: #4a5667;
  --line: #dedbd1;
  --light-line: #ffffff2b;
  --radius: 10px;
  --heading: Oswald, "Arial Narrow", "Nimbus Sans Narrow", sans-serif;
  --stripe: repeating-linear-gradient(132deg, var(--navy) 0 13px, var(--orange) 13px 25px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
html[data-connection-message] { scroll-padding-top: 155px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-family: var(--heading); text-transform: uppercase; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.15vw, 3.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b44b15; outline-offset: 4px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: #ffb385; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
img { display: block; max-width: 100%; }
iframe { display: block; border: 0; width: 100%; }
.icon { flex: 0 0 auto; width: 1.16em; height: 1.16em; vertical-align: -.19em; }
.wrap { width: min(100% - 48px, 1216px); margin-inline: auto; }
.dark { background-color: var(--navy); color: #fff; }
.cream { background-color: var(--cream); }
.blue-band { background-color: var(--blue); }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 16px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 4px 16px #07112026;
}
.connection-status { background: #ffdfa0; color: var(--navy); font-size: .85rem; font-weight: 650; }
.connection-status p { padding-block: 7px; }
.site-header::after, .striped-end::after, .hero::after, .site-footer::before, .mascot-card::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--stripe);
}
.header-row { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 24px); min-height: 70px; padding-block: 9px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; text-decoration: none; line-height: 1.12; }
.brand img { border-radius: 7px; object-fit: contain; background: #fff; }
.brand span { display: grid; gap: 3px; }
.brand small { font: 500 .77rem/1 var(--heading); letter-spacing: .18em; text-transform: uppercase; color: #d4ddeb; }
.brand strong { font: 700 1.38rem/1.08 var(--heading); text-transform: uppercase; }
.primary-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: clamp(10px, 1.5vw, 24px); }
.primary-nav a, .more-menu summary {
  text-decoration: none;
  text-transform: uppercase;
  font: 600 .95rem/1.15 var(--heading);
  white-space: nowrap;
}
.primary-nav a { padding-block: 9px; }
.primary-nav a:hover { color: var(--orange-light); }
.more-menu { position: relative; margin-left: auto; }
.more-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  background: #25364f;
  border-radius: 6px;
}
.more-menu summary:hover, .more-menu[open] summary { background: #304765; }
.more-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(265px, calc(100vw - 24px));
  max-height: calc(100dvh - 92px);
  overflow: auto;
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  background: var(--navy);
  padding: 8px;
  box-shadow: 0 12px 32px #07112054;
}
.more-menu nav a { display: block; padding: 8px 10px; border-radius: 5px; text-decoration: none; font-size: .92rem; }
.more-menu nav a:hover, .more-menu nav a:focus-visible { background: #25364f; }
.menu-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--light-line); }
.more-menu nav .menu-title { font-weight: 750; color: var(--orange-light); }
.mobile-links { display: none; }
.hero-mobile { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  font: 600 1.05rem/1.2 var(--heading);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.button-orange { color: #132136; background: var(--orange); }
.button-orange:hover { background: #ff8d50; }
.button-outline { color: #fff; border-color: #d9e3f2; background: #1429434d; }
.button-outline:hover { background: #2d4563; }
.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: #274465; }
.button-light { color: var(--navy); background: var(--cream); border-color: var(--line); }
.button-light:hover { background: #e9e3d5; }
.button-small { min-height: 40px; padding: 7px 12px; font: 650 .86rem/1.25 system-ui, sans-serif; text-transform: none; }
.button:disabled { opacity: .72; cursor: wait; }
.header-call { min-height: 44px; padding-inline: 13px; }

.hero {
  padding-top: clamp(4rem, 7.4vw, 6.7rem);
  background-image: linear-gradient(92deg, #101f36fa 1%, #14263ddc 54%, #101f36aa 100%), url("redes.jpg");
  background-size: cover;
  background-position: center, center 53%;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5.2vw, 76px); padding-bottom: clamp(3.8rem, 7vw, 6.4rem); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 20px;
  background: #e2edff21;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .79rem;
}
.hero-kicker span { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.hero #about-home-title { margin-top: 18px; font-size: clamp(4rem, 9.15vw, 7.85rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
.hero #about-home-title span { color: var(--orange); }
.hero-intro { margin-top: 21px; max-width: 530px; color: #e2ebf6; font-size: clamp(1.05rem, 1.48vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; max-width: 515px; }
.hero-actions .button { min-height: 54px; font-size: 1.15rem; }
.group-phone { display: grid; gap: 3px; text-align: left; }
.group-phone > span { font: 650 .72rem/1.15 system-ui, sans-serif; text-transform: none; }
.group-phone > strong { white-space: nowrap; }
.situation { border: 1px solid var(--light-line); border-left: 6px solid var(--orange); border-radius: var(--radius); background: #101f36ee; padding: clamp(18px, 2.4vw, 32px); }
.tag { color: var(--muted); font: 600 .78rem/1.4 var(--heading); letter-spacing: .14em; text-transform: uppercase; }
.dark .tag { color: #d7e3f1; }
.situation h2 { margin: 6px 0 10px; font-size: clamp(1.6rem, 2.5vw, 2.13rem); }
.situation > p:not(.tag) { color: #dbe5f1; font-size: .94rem; }
.mini-weather { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 18px; border-top: 1px solid var(--light-line); padding-top: 16px; }
.mini-weather a { display: grid; align-content: center; gap: 3px; padding: 8px 5px; min-height: 64px; border-radius: 5px; background: #26364d; text-align: center; text-decoration: none; }
.mini-weather a:hover { background: #3b5373; }
.mini-weather span { font: 500 clamp(.66rem, 1vw, .82rem)/1.15 var(--heading); text-transform: uppercase; }
.mini-weather strong { color: #fff; font: 600 1.55rem/1 var(--heading); }
.situation .mini-note { margin-top: 10px; font-size: .78rem !important; }

.band { padding-block: clamp(3.6rem, 7.5vw, 6.2rem); }
.band-divided { border-top: 1px solid var(--line); }
.striped-end { position: relative; }
.striped-end::after { position: absolute; inset: auto 0 0; }
.section-heading { margin-bottom: clamp(25px, 4vw, 46px); max-width: 810px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--navy);
  font: 600 .84rem/1.3 var(--heading);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker::before { content: ""; flex: 0 0 34px; height: 3px; background: #d65a19; }
.dark .kicker { color: var(--orange-light); }
.dark .kicker::before { background: var(--orange); }
.section-heading > p:not(.kicker) { max-width: 690px; margin-top: 12px; color: var(--muted); }
.dark .section-heading > p:not(.kicker), .dark-card p, .dark .section-note { color: #d6e2ef; }
.grid { display: grid; gap: clamp(12px, 1.7vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-note { margin: 21px 0 11px; font-size: .91rem; }
.section-action { margin-top: 22px; }
.text-link { font-weight: 650; text-decoration: underline; text-underline-offset: .17em; }
.text-link:hover { text-decoration-thickness: 2px; }
.accent-link { color: var(--orange-light); }
.tile-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
}
.tile-icon .icon { width: 22px; height: 22px; }
.tile-orange { background: var(--orange); color: var(--navy); }
.card, .phone-card, .weather-card, .source-panel { border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: clamp(17px, 2vw, 26px); background: #fff; }
.card h3 { margin-top: 5px; }

.weather-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 18px; flex-wrap: wrap; }
.weather-update { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.weather-update p { color: var(--muted); font-size: .83rem; }
.weather-toolbar > a { font-size: .9rem; }
.weather-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.weather-brief { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.weather-brief h3 { font-size: 1.13rem; }
.weather-brief-data, .weather-brief-condition { display: flex; align-items: center; gap: 5px; }
.weather-brief-data { gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.weather-brief-temp { color: var(--navy); font: 650 1.55rem/1 var(--heading); white-space: nowrap; }
.weather-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); font-weight: 650; }
.weather-details[open] > summary { margin-bottom: 12px; }
.weather-details[open] > summary .icon { transform: rotate(180deg); }
.weather-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; box-shadow: 0 1px 2px #0e1f3614; }
.weather-card > header { background: var(--navy); color: #fff; padding: 15px 18px; }
.weather-card > header p { margin-top: 3px; color: #d6e2ef; font-size: .82rem; }
.weather-data { padding: 17px 18px 0; flex: 1; }
.weather-placeholder { margin-bottom: 16px; color: var(--muted); font-size: .92rem; }
.current-weather { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 65px; }
.current-temp { color: var(--navy); font: 700 clamp(3.25rem, 5.2vw, 4.55rem)/1 var(--heading); }
.current-temp span { color: #b84914; font-size: .55em; vertical-align: top; }
.current-condition { display: grid; justify-items: end; gap: 4px; text-align: right; font-size: .88rem; font-weight: 700; }
.current-condition .icon { width: 34px; height: 34px; }
.weather-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0 19px; }
.weather-stats dt { color: var(--muted); font-size: .77rem; }
.weather-stats dd { margin: 0; font-size: .87rem; font-weight: 700; }
.forecast { margin: 6px 0 13px; }
.forecast h4 { margin: 0; border-bottom: 2px solid var(--navy); padding-bottom: 5px; font: 600 .88rem/1.3 var(--heading); text-transform: uppercase; letter-spacing: .13em; }
.forecast ul { list-style: none; margin: 0; padding: 0; }
.forecast li { display: grid; grid-template-columns: minmax(60px, 1.35fr) .55fr .8fr 1.03fr; align-items: center; gap: 4px; min-height: 34px; border-bottom: 1px solid #eceae3; font-size: .77rem; }
.forecast li:last-child { border-bottom: 0; }
.forecast li > :last-child { justify-self: end; white-space: nowrap; }
.forecast li .rain { color: var(--muted); white-space: nowrap; }
.weather-link { margin: 0 18px 16px; color: var(--navy); font-size: .83rem; }

.source-panel { overflow: hidden; background: #fff; }
.source-panel.cream { background: var(--cream); }
.source-summary, .callout { display: flex; align-items: center; gap: clamp(13px, 1.7vw, 21px); }
.source-summary, .callout { padding: clamp(17px, 2.65vw, 33px); }
.source-summary p, .callout p { margin-top: 5px; font-size: .95rem; }
.source-summary > a, .callout > a { margin-left: auto; flex: 0 0 auto; }
.fire-map, .fire-use-guide { padding: clamp(14px, 2.6vw, 28px); border-top: 1px solid var(--line); }
.fire-map { background: #fff; }
.fire-use-guide ul { display: grid; gap: 8px; margin: 8px 0 12px; padding-left: 1.2em; }
.fire-use-guide li, .fire-use-guide .text-link { font-size: .94rem; }
.effis-panel { margin-top: 16px; }
.effis-panel summary { outline-offset: -4px; }
.effis-title { display: block; font: 650 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--heading); }
.effis-chevron { margin-left: auto; }
.effis-panel[open] .effis-chevron { transform: rotate(180deg); }
.effis-content { display: grid; justify-items: start; gap: 14px; padding: clamp(14px, 2.6vw, 28px); border-top: 1px solid var(--line); }
.effis-content > .grid { width: 100%; }
.effis-layer { min-width: 0; }
.effis-note { display: block; color: var(--muted); font-size: .9rem; }
.effis-frame { display: grid; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.effis-frame img { grid-area: 1 / 1; width: 100%; height: auto; }
.effis-risk-overlay { opacity: .68; }
.effis-status, .effis-layer > .effis-note { margin-top: 8px; }
.effis-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .83rem; }
.effis-legend li::before { display: inline-block; width: .8em; height: .8em; margin-right: 5px; border: 1px solid var(--line); border-radius: 2px; background: var(--legend-color); content: ""; vertical-align: -.02em; }
.desktop-dashboard { padding-block: 18px 10px; background: var(--cream); }
.home-alerts { display: grid; gap: 8px; }
.situation-dashboard { margin-block: 17px 12px; }
.situation-dashboard h1 { color: var(--navy); font-size: clamp(1.5rem, 3.5vw, 2.15rem); margin-bottom: 10px; }
.situation-list { display: flex; flex-wrap: wrap; gap: 8px; }
.situation-row {
  flex: 1 1 0; min-width: 0; padding: 5px 8px; border-inline-start: 1px solid var(--line);
  overflow-wrap: anywhere; font-size: .88rem; line-height: 1.35;
}
.situation-row:first-child, .situation-row[data-situation-priority] + .situation-row:not([data-situation-priority]) {
  border-inline-start-color: transparent;
}
.situation-row > .icon { display: none; }
.situation-label { font-size: .83rem; font-weight: 700; }
.situation-reading { margin-top: 2px; }
.situation-reading [data-situation-title], .situation-reading [data-situation-description] { display: block; }
.situation-reading [data-situation-source] { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; }
.situation-row [data-situation-description]:empty, .situation-row [data-situation-source]:empty { display: none; }
.situation-row[data-situation-priority] {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "icon label" "icon reading";
  column-gap: 11px; flex-basis: 100%; padding: 9px 12px;
  border-inline-start: 5px solid #b84c17; border-radius: var(--radius); background: #ffe7d1;
}
.situation-row[data-situation-priority] > .icon {
  display: block; grid-area: icon; align-self: center; width: 28px; height: 28px; color: #9c3b13;
}
.situation-row[data-situation-priority] .situation-label { grid-area: label; color: #8b3410; }
.situation-row[data-situation-priority] .situation-reading { grid-area: reading; }
.situation-row[data-situation-priority] [data-situation-title] { font-size: clamp(1.05rem, 2.2vw, 1.28rem); }
.situation-row[data-situation-priority="3"] { border-inline-start-color: #ab342b; background: #f8dfd8; }
.situation-row[data-situation-priority="3"] > .icon,
.situation-row[data-situation-priority="3"] .situation-label { color: #912c23; }
.situation-row[data-situation-priority] + .situation-row[data-situation-priority] + .situation-row:not([data-situation-priority]) {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 12px;
}
.situation-dashboard > p { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.valley-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mobile-home-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 105px;
  padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-decoration: none;
  overflow-wrap: anywhere;
}
.mobile-home-tile > .icon { width: 22px; height: 22px; color: #b84914; margin-bottom: 5px; }
.mobile-home-tile > strong { font: 650 15px/1.4 system-ui, sans-serif; }
.mobile-home-tile > span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.valley-links > a { position: relative; justify-content: flex-start; }
.valley-links > a:hover { border-color: var(--orange); }
.valley-links .valley-link-chevron {
  position: absolute; inset: 13px 12px auto auto; width: 16px; height: 16px; color: var(--navy); transform: rotate(-90deg);
}
.favorite-roads { margin-block: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.favorite-roads h2 { font: 700 1rem/1.4 system-ui, sans-serif; }
.favorite-roads ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 6px 14px; margin: 7px 0; padding: 0; list-style: none; }
.favorite-roads ul:empty { display: none; }
.favorite-roads li { padding: 7px 0; border-top: 1px solid var(--line); }
.favorite-roads li p, .favorite-roads .road-checked, .favorite-roads > a { font-size: .85rem; }
.favorite-roads li p { margin: 3px 0; }
.mountain-road { scroll-margin-top: 85px; }
.road-pass-link { margin-bottom: 14px; }
.mountain-road-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.mountain-road-heading button[aria-pressed="true"] { color: var(--navy); background: #ffdfa0; }
.notice-history { margin-top: 24px; scroll-margin-top: 85px; }
.notice-history h3 { margin-bottom: 10px; }
.notice-history select { margin: 4px 0 4px 6px; max-width: 100%; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); }
.notice-history-list { list-style: none; padding: 0; margin: 12px 0 0; }
.notice-history-item { padding-block: 8px; border-top: 1px solid var(--line); }
.notice-history-item p { color: var(--muted); font-size: .85rem; }
.radio-card { padding: 20px; }
.radio-card p { margin: 8px 0 14px; }
.river-comparison { margin-top: 8px; font-size: .84rem; }
@media (max-width: 860px) {
  .mobile-app-ready .desktop-dashboard { display: none; }
  .valley-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .situation-list:not(:has(> [data-situation-priority])) > .situation-row {
    display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 6px;
    flex-basis: 100%; align-items: baseline; border-inline-start: 0;
  }
  .situation-list:not(:has(> [data-situation-priority])) > .situation-row + .situation-row {
    border-top: 1px solid var(--line);
  }
}
.fire-map-date { color: var(--muted); font-size: .9rem; font-weight: 650; }
.fire-map-image { display: block; width: 100%; max-width: 900px; height: auto; margin: 4px auto 0; }
.fire-map-image polygon { stroke: #24364b; stroke-width: .8; stroke-linejoin: round; }
.fire-map-image polygon { cursor: pointer; }
.fire-map-image polygon:hover, .fire-map-image polygon:focus { stroke: #101f36; stroke-width: 2.5; outline: none; }
.fire-map-hint { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }
.fire-map-selection { min-height: 1.5em; margin: 0; font-weight: 700; }
.fire-map-image .fire-local-outline { stroke-width: 2.2; }
.fire-local-levels, .fire-legend { list-style: none; padding: 0; }
.fire-local-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 13px; }
.fire-local-levels li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.fire-level-number { display: inline-grid; min-width: 1.45em; min-height: 1.45em; padding-inline: .15em; place-items: center; border-radius: 99px; background: var(--risk-color); color: #131c29; font-weight: 750; }
.fire-legend { display: flex; flex-wrap: wrap; gap: 5px 13px; margin: 0; color: var(--muted); font-size: .82rem; }
.fire-map-note { color: var(--muted); }
@media (max-width: 540px) {
  .fire-local-levels { grid-template-columns: 1fr; }
}
.route-card {
  display: flex;
  gap: 14px;
  padding: clamp(15px, 2vw, 23px);
  border-left: 6px solid #bb501c;
  border-radius: 8px;
  background: var(--cream);
  text-decoration: none;
}
a.route-card:hover { background: #ede8da; }
.route-card .text-link { display: inline-block; margin-top: 9px; font-size: .88rem; }
.route-card h3 { margin-top: 4px; }
.subheading { margin: 32px 0 13px; font-size: clamp(1.48rem, 2.4vw, 2rem); }
.callout-stack { display: grid; gap: 13px; margin-top: 28px; }
.callout { border-radius: var(--radius); }
.callout.cream { border: 1px solid var(--line); }
.callout .tag { margin: 0 0 5px; color: var(--orange-light); }
.traffic-map-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }

.dark-card { padding: clamp(16px, 2vw, 25px); background: var(--blue); border: 1px solid #ffffff18; border-radius: var(--radius); }
.dark-card .card-mark { color: var(--orange-light); width: 1.35rem; height: 1.35rem; }
.dark-card h3 { margin-top: 8px; }
.dark-card p { margin-top: 6px; font-size: .92rem; }
.dark-card .text-link { display: inline-block; margin-top: 13px; font-size: .88rem; }
.plan-links { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; font-size: .84rem; }
.reservoir-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.reservoir-card .text-link { grid-column: 1 / -1; }

.phone-card { display: block; padding: clamp(18px, 2.25vw, 29px); text-decoration: none; }
.phone-card:hover { box-shadow: 0 0 0 2px #415b7870; }
.phone-card h3 { margin: 12px 0 7px; font-size: 1.25rem; }
.phone-card strong { display: block; margin-top: 4px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.phone-card p { margin-bottom: 12px; font-size: .92rem; }
.phone-card .text-link { font-size: .88rem; }
.phone-emergency { color: #fff; background: #a51c25; border-color: #a51c25; }
.phone-emergency .tile-icon { color: #9e1b24; background: #fff; }
.notice { padding: 17px 21px; border: 1px dashed #cbc5b7; border-radius: var(--radius); background: #fff; }
.notice.cream { background: var(--cream); }

.volunteer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: start; gap: clamp(25px, 5vw, 80px); }
.volunteer-grid .section-heading { margin: 0; }
.volunteer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; }
.volunteer-form { display: grid; gap: 6px; padding: clamp(17px, 2.75vw, 33px); border: 1px solid var(--light-line); border-radius: 11px; background: var(--navy); }
.volunteer-form label { font-size: .9rem; font-weight: 650; }
.volunteer-form :is(input, select, textarea) { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #cfd6df; border-radius: 5px; background: #fff; color: var(--ink); }
.volunteer-form :is(input, select, textarea) { margin-bottom: 5px; }
.volunteer-form textarea { resize: vertical; }
.volunteer-form > p { font-size: .83rem; color: #d6e2ef; margin-bottom: 6px; }
.volunteer-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.volunteer-form .volunteer-consent input { flex: 0 0 auto; width: 1.1rem; min-height: 1.1rem; margin: .18em 0 0; accent-color: var(--orange); }
#volunteer-status:not(:empty) { margin: 4px 0 0; padding: 8px 10px; border-left: 3px solid var(--orange); background: #2d4563; }
#volunteer-status:empty { display: none; }

.safety-grid { display: grid; grid-template-columns: minmax(0, .67fr) minmax(0, 1.08fr); align-items: start; gap: clamp(18px, 3vw, 40px); }
.mascot-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mascot-card img { margin: 0 auto; width: min(100%, 375px); height: auto; }
.mascot-card figcaption { margin: 0 18px 18px; padding: 12px; border-radius: 7px; color: #fff; background: var(--navy); text-align: center; font: 600 1.05rem/1.32 var(--heading); text-transform: uppercase; }
.advice { display: grid; gap: 8px; }
.advice details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.advice details[open] { border-color: #8996a7; }
.advice summary { display: flex; align-items: center; gap: 11px; padding: 10px 12px; font: 650 clamp(1.03rem, 1.8vw, 1.35rem)/1.23 var(--heading); text-transform: uppercase; }
.advice summary .tile-icon { width: 35px; height: 35px; }
.advice summary .expand-icon { margin-left: auto; }
.advice details[open] .expand-icon { transform: rotate(180deg); }
.advice details > div { border-top: 1px solid #e4e1d9; padding: 10px 15px 14px; font-size: .91rem; }
.advice ul { margin: 0 0 10px; padding-left: 19px; }
.advice li { padding-block: 2px; }
.advice li::marker { color: #b84914; }
.safety-callout { margin-top: 26px; }
.safety-callout h3 { font-size: clamp(1.5rem, 3vw, 2.45rem); }

.about-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1fr); gap: clamp(21px, 4vw, 58px); align-items: center; }
.landscape img { width: 100%; height: clamp(205px, 31vw, 370px); object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.landscape figcaption { padding-top: 9px; border-top: 8px solid transparent; border-image: var(--stripe) 1; color: var(--muted); font-size: .8rem; }
.about-grid .section-heading { margin-bottom: 21px; }
.about-grid h3 { margin-bottom: 10px; }

.install-app { padding-block: 28px; }
.install-app-row { display: flex; align-items: start; gap: 16px; }
.install-app-row img { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; }
.install-app h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 5px; }
.install-app button { margin-top: 10px; }
.install-help { margin-top: 8px; }
.install-help summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.install-help ul { margin: 0; padding-inline-start: 20px; }
.install-help li + li { margin-top: 6px; }
@media (display-mode: standalone) {
  .install-app, .more-menu nav .install-app-link { display: none; }
}

.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 25px; padding-block: 30px; }
.footer-grid p { margin-top: 6px; color: #e0e8f3; font-size: .88rem; }
.footer-grid .footer-note { font-size: .78rem; }
.footer-actions { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-actions .text-link { flex-basis: 100%; text-align: right; font-size: .83rem; }

.privacy-copy { max-width: 760px; overflow-wrap: anywhere; }
.privacy-copy h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-block: 16px 28px; }
.privacy-copy h2 { font-size: 1.3rem; margin-block: 20px 7px; }

@media (max-width: 1020px) {
  .primary-nav { gap: 10px; }
  .primary-nav a { font-size: .86rem; }
  .header-row { gap: 12px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .mobile-alert { display: block; padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 6px; background: #fff; }
  .mobile-alert > p:last-child { font-size: .8rem; color: var(--muted); }
  .header-call { margin-left: auto; }
  .more-menu { margin-left: 0; }
  .mobile-links { display: block; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px solid var(--light-line); }
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; padding-bottom: 24px; }
  .hero #about-home-title { margin-top: 0; font-size: clamp(2.7rem, 9vw, 4.6rem); }
  .hero-intro { margin-top: 6px; }
  .hero-kicker, .hero-wide, .hero .situation, .hero-actions .hero-emergency { display: none; }
  .hero-mobile { display: inline; }
  .hero-actions { margin-top: 13px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #actualidad .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weather-data { padding-inline: 12px; }
  .weather-link { margin-inline: 12px; }
}
@media (max-width: 980px) {
  /* The SEPA viewer hides its map when the frame itself is narrow. */
}
@media (max-width: 650px) {
  html { scroll-padding-top: 78px; }
  .wrap { width: calc(100% - 32px); }
  .header-row { min-height: 61px; gap: 7px; padding-block: 6px; }
  .brand { gap: 7px; }
  .brand img { width: 39px; height: 39px; }
  .brand small { font-size: .65rem; }
  .brand strong { font-size: 1.12rem; }
  .header-call, .more-menu summary { min-height: 40px; padding-inline: 9px; font-size: .91rem; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { min-height: 45px; padding-inline: 11px; font-size: .97rem; }
  .grid-2, .grid-3, #actualidad .grid-3, .safety-grid, .about-grid, .footer-grid, .volunteer-grid { grid-template-columns: 1fr; }
  .source-summary, .callout { flex-wrap: wrap; }
  .source-summary > a, .callout > a { flex: 0 1 auto; margin-left: 0; }
  .traffic-map-links { justify-content: flex-start; margin-left: 0; }
  .weather-data { padding-inline: 17px; }
  .weather-link { margin-inline: 17px; }
  .weather-overview { grid-template-columns: 1fr; gap: 6px; }
  #actualidad .section-heading { margin-bottom: 16px; }
  .mascot-card { max-width: 395px; margin-inline: auto; }
  .about-grid .landscape { order: 2; }
  .footer-actions { justify-content: start; }
  .footer-actions .text-link { text-align: left; }
}
@media (max-width: 460px) {
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 24px); }
  .header-call .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Notices, confirmed dates and work from the group. */
.today-band { padding-block: clamp(2.8rem, 5.6vw, 4.5rem); }
.today-label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.today-label .icon { color: #b44b15; }
.today-grid > div { display: flex; flex-direction: column; min-width: 0; }
.today-grid .record-card { flex: 1; }
#latest-notice { display: flex; flex: 1; flex-direction: column; }
.home-overview { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border: 1px solid var(--line); border-inline-start: 4px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; }
.home-overview > .icon { flex: none; width: 22px; height: 22px; color: var(--navy); }
.home-overview > .icon:last-child { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); }
.home-overview-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.home-overview-copy > strong { display: block; font-size: 14px; line-height: 1.4; }
.home-overview-copy small, .home-notice-title { display: block; font-size: 13px; line-height: 1.4; }
.home-overview-copy small { color: var(--muted); }
.home-overview:hover .home-overview-copy > strong { text-decoration: underline; }
.home-aemet-overview { border-inline-start-color: #b84914; }
.home-aemet-overview > .icon:first-child { color: #b84914; }
.home-aemet-overview .aemet-level { font-size: inherit; }
.home-notice-overview:has(.home-notice-preview:not([hidden])) { border-inline-start-color: #b84914; background: #fff8ef; }
.home-notice-title, .home-overview [data-home-notice-count] { font-weight: 650; }
.home-notice-instructions { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; }
.notice-priority[data-priority="urgente"] { color: #912c23; font-weight: 800; }
.notice-priority[data-priority="importante"] { color: #8b3410; font-weight: 700; }
.home-notice-overview:has(.home-notice-preview[data-notice-priority="urgente"]:not([hidden])) { border-inline-start-color: #ab342b; background: #fff3f0; }
.notice-instructions { padding: 8px 10px; border-inline-start: 3px solid #b84914; background: #fff8ef; }
.home-notice-preview { display: block; margin-top: 2px; }
.home-notice-preview:not([hidden]) ~ .home-notice-preview,
.home-notice-preview:not([hidden]) ~ .home-notice-empty { display: none; }
.record-card { padding: 0; overflow: hidden; overflow-wrap: anywhere; }
.record-body { padding: clamp(16px, 2.3vw, 27px); }
.record-body p:not(.tag) { margin-top: 8px; color: var(--muted); }
.record-body .text-link { display: inline-block; margin-top: 11px; font-size: .9rem; }
.record-body .record-validity { font-size: .84rem; }
.record-list { margin-bottom: 17px; }
.activity-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.siren-guide { display: grid; grid-template-columns: 1.35fr 1fr; align-items: start; gap: 22px; padding: clamp(16px, 3vw, 32px); margin-top: 26px; border-left: 6px solid var(--orange); border-radius: var(--radius); }
.siren-guide ol { margin: 13px 0 0; padding-left: 1.2rem; color: #e0e8f3; }
.siren-guide li + li { margin-top: 6px; }
.siren-guide li::marker { color: var(--orange-light); font-weight: 700; }
.siren-audio { background: var(--blue); padding: 17px; border-radius: 8px; }
.siren-audio p + p { margin: 7px 0 11px; }
@media (max-width: 650px) {
  .siren-guide { grid-template-columns: 1fr; }
}

.road-checked { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; opacity: .85; }

.aemet-zone { min-width: 0; padding: clamp(15px, 3vw, 24px); background: var(--paper); }
.aemet-zone > p { margin-top: 5px; }
.aemet-zone > .text-link { display: inline-block; margin-top: 8px; }
.aemet-zone[data-aemet-error] [data-aemet-empty] strong { color: #74272c; }
.aemet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aemet-towns { font-weight: 650; }
.aemet-warning { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.aemet-warning > p + p, .aemet-warning .text-link { margin-top: 4px; }
.aemet-date { font-size: .78rem; color: var(--muted); }
.aemet-level { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: .78rem; font-weight: 750; }
.level-amarillo { background: #ffdf77; color: #482e03; }
.level-naranja { background: #fca766; color: #49230a; }
.level-rojo { background: #9c292c; color: #fff; }
.road-source { display: inline-block; margin-top: 12px; }
.road-reference { margin-top: 20px; padding-block: 12px; border-block: 1px solid var(--line); }
.road-reference > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.road-reference[open] > summary { margin-bottom: 14px; }
.road-reference[open] > summary .icon { transform: rotate(180deg); }
.incident-card { border-color: #a55a12; overflow-wrap: anywhere; }
.incident-closed { border-color: #a02b2c; }
.incident-badge { display: inline-block; padding: 3px 9px; margin-bottom: 5px; border-radius: 6px; background: #fce0aa; color: #593000; font-weight: 750; font-size: .78rem; text-transform: uppercase; }
.incident-closed .incident-badge { background: #9c292c; color: #fff; }
.incident-location, .incident-notes { margin-top: 7px; }
.incident-location { font-weight: 650; }
.pass-incident { overflow-wrap: anywhere; }
.pass-incident + .pass-incident { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pass-sources { display: flex; flex-wrap: wrap; gap: 9px; }
.pass-source { margin-top: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.valley-reading { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.dark .valley-reading { border-color: var(--light-line); }
.reservoir-card .valley-reading { grid-column: 1 / -1; margin-top: 0; }
.valley-reading .valley-reading-label { font-weight: 700; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; }
.valley-reading .valley-value { margin-block: 1px 6px; font-size: 1.03rem; }
.valley-value strong { font: 700 clamp(1.8rem, 3.4vw, 2.7rem)/1.12 var(--heading); }
.dark .valley-value strong { color: #fff; }
.valley-meter {
  display: block; width: 100%; height: 12px; appearance: none; border: 0; border-radius: 4px;
  background: var(--meter-track); --meter-track: #e6e1d4; --meter-fill: #173454;
}
.dark .valley-meter { --meter-track: #2e4b6b; --meter-fill: #ff9d67; }
.valley-meter::-webkit-meter-bar { border: 0; border-radius: 4px; background: var(--meter-track); }
.valley-meter::-webkit-meter-optimum-value { border-radius: 4px; background: var(--meter-fill); }
.valley-meter::-moz-meter-bar { border-radius: 4px; background: var(--meter-fill); }
.meter-scale { display: flex; justify-content: space-between; margin-top: 3px; font-size: .75rem; }
.valley-reading-note, .dark-card .valley-reading-note { margin-top: 6px; font-size: .82rem; }
.river-grid { align-items: start; }
@media (max-width: 600px) {
  .river-grid { grid-template-columns: minmax(0, 1fr); }
}
.river-card > .icon { color: var(--orange-light); width: 1.35rem; height: 1.35rem; }
.river-card .river-code { font-size: .81rem; }
.river-details { margin-top: 12px; border-top: 1px solid var(--light-line); }
.river-details > summary {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .89rem; font-weight: 700; cursor: pointer; list-style: none;
}
.river-details > summary::-webkit-details-marker { display: none; }
.river-details[open] > summary .icon { transform: rotate(180deg); }
.river-measurements { margin: 0 0 10px; }
.river-measurements > div { padding: 7px 0; border-bottom: 1px solid var(--light-line); }
.river-measurements dt { font-weight: 700; font-size: .84rem; }
.river-measurements dd { margin: 2px 0 0; color: #d6e2ef; font-size: .86rem; }
.river-measurements time { display: block; font-size: .79rem; }
.reservoir-volume { margin-top: 8px; }
