:root {
  --wo-bg: #f7f8fa;
  --wo-surface: #ffffff;
  --wo-surface-2: #eef1f5;
  --wo-text: #17202a;
  --wo-muted: #5d6875;
  --wo-border: #d7dde5;
  --wo-gold: #c9952b;
  --wo-gold-strong: #a87412;
  --wo-red: #b4232a;
  --wo-red-strong: #89181f;
  --wo-blue: #0f6fae;
  --wo-cyan: #0ea5b7;
  --wo-shadow: 0 18px 48px rgba(15, 23, 42, .12);
  --wo-radius: 8px;
}

:root[data-theme="dark"] {
  --wo-bg: #0d1117;
  --wo-surface: #151b23;
  --wo-surface-2: #1e2630;
  --wo-text: #eef2f7;
  --wo-muted: #a9b4c0;
  --wo-border: #303a46;
  --wo-gold: #d6a84b;
  --wo-gold-strong: #f0bd54;
  --wo-red: #d3424a;
  --wo-red-strong: #a9222c;
  --wo-blue: #4ea6dc;
  --wo-cyan: #43c7d7;
  --wo-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--wo-bg);
  color: var(--wo-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--wo-surface);
  border: 1px solid var(--wo-border);
}

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

.wo-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.wo-alert-strip {
  background: var(--wo-red-strong);
  color: #fff;
  font-size: 14px;
}

.wo-alert-strip-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wo-alert-strip a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  padding: 4px 9px;
  border-radius: 999px;
}

.wo-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wo-surface);
  border-bottom: 1px solid var(--wo-border);
  backdrop-filter: blur(14px);
}

.wo-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.wo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 260px;
}

.wo-brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wo-gold);
  color: #111;
  font-weight: 800;
  border: 2px solid var(--wo-gold-strong);
  overflow: hidden;
}

.wo-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wo-brand-text span {
  display: block;
  font-weight: 800;
  line-height: 1.15;
}

.wo-brand-text small {
  color: var(--wo-muted);
  font-size: 12px;
}

.wo-primary-nav { margin-left: auto; }

.wo-menu,
.wo-footer-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wo-menu a,
.wo-footer-menu a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.wo-menu a:hover,
.wo-footer-menu a:hover,
.wo-text-link:hover { color: var(--wo-gold-strong); }

.wo-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--wo-border);
  background: var(--wo-surface-2);
  color: var(--wo-text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.wo-toggle-track {
  width: 36px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: var(--wo-muted);
}

.wo-toggle-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.wo-theme-toggle[aria-pressed="true"] .wo-toggle-dot { transform: translateX(16px); }

.wo-main { min-height: 64vh; }

.wo-dashboard-hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--wo-border);
}

.wo-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.wo-eyebrow {
  margin: 0 0 10px;
  color: var(--wo-gold-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wo-dashboard-copy h1,
.wo-page-header h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
}

.wo-lead {
  max-width: 680px;
  color: var(--wo-muted);
  font-size: 18px;
}

.wo-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.wo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: var(--wo-radius);
  border: 1px solid var(--wo-blue);
  background: var(--wo-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.wo-button-alert {
  border-color: var(--wo-red);
  background: var(--wo-red);
}

.wo-button-secondary {
  color: var(--wo-text);
  background: var(--wo-surface);
  border-color: var(--wo-border);
}

.wo-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wo-status-card,
.wo-ops-panel,
.wo-side-panel,
.wo-page-card,
.wo-post-card,
.wo-news-card {
  background: var(--wo-surface);
  border: 1px solid var(--wo-border);
  border-radius: var(--wo-radius);
  box-shadow: var(--wo-shadow);
}

.wo-status-card {
  padding: 14px;
  box-shadow: none;
}

.wo-status-card span,
.wo-status-card small,
.wo-news-card span {
  display: block;
  color: var(--wo-muted);
  font-size: 12px;
}

.wo-status-card strong {
  display: block;
  font-size: 20px;
}

.wo-ops-panel { overflow: hidden; }

.wo-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--wo-border);
}

.wo-panel-header span {
  display: block;
  color: var(--wo-muted);
  font-size: 12px;
}

.wo-panel-header a,
.wo-side-panel a,
.wo-text-link {
  color: var(--wo-blue);
  font-weight: 800;
  text-decoration: none;
}

.wo-map-preview {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(35deg, rgba(18, 83, 48, .7), rgba(17, 52, 79, .62)),
    repeating-linear-gradient(28deg, rgba(255,255,255,.06) 0 1px, transparent 1px 42px),
    linear-gradient(120deg, #263f2d, #182d36 48%, #34492e);
}

.wo-map-river,
.wo-map-zone,
.wo-map-pin {
  position: absolute;
  pointer-events: none;
}

.wo-map-river {
  width: 420px;
  height: 80px;
  border-bottom: 4px solid rgba(69, 201, 218, .9);
  border-radius: 50%;
  transform: rotate(-38deg);
}

.wo-map-river-a { left: -90px; top: 150px; }
.wo-map-river-b { right: -140px; bottom: 95px; transform: rotate(26deg); }

.wo-map-zone {
  border: 3px solid rgba(239, 68, 68, .92);
  background: rgba(239, 68, 68, .18);
  border-radius: 48% 52% 46% 54%;
}

.wo-map-zone-a { width: 220px; height: 110px; left: 78px; top: 72px; transform: rotate(-18deg); }
.wo-map-zone-b { width: 280px; height: 130px; right: 40px; bottom: 65px; transform: rotate(14deg); }

.wo-map-pin {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: var(--wo-red);
  border: 2px solid #fff;
  transform: rotate(-45deg);
}

.wo-map-pin-a { left: 44%; top: 40%; }
.wo-map-pin-b { left: 68%; top: 62%; }

.wo-map-controls {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: var(--wo-surface);
  border: 1px solid var(--wo-border);
  border-radius: var(--wo-radius);
  font-size: 13px;
  font-weight: 700;
}

.wo-live-map-panel {
  min-height: 0;
}

.wo-live-map-frame {
  padding: 0;
}

.wo-live-map-frame .frm-flood-map {
  min-height: 430px;
  height: 430px !important;
  border: 0;
  border-radius: 0;
}

.wo-live-map-frame .frm-help {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--wo-border);
  background: var(--wo-surface);
  color: var(--wo-muted);
  font-size: 12px;
}

.wo-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  padding: 34px 0;
}

.wo-section-heading h2,
.wo-side-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.wo-embed-frame {
  width: 100%;
}

.wo-embed-frame > * {
  max-width: 100%;
}

.wo-embed-frame .frm-flood-map,
.wo-embed-frame #frm-flood-map {
  min-height: 520px;
  border-radius: var(--wo-radius);
  border: 1px solid var(--wo-border);
  overflow: hidden;
}

.wo-side-panel {
  padding: 18px;
  align-self: start;
  box-shadow: none;
}

.wo-side-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--wo-border);
}

.wo-news-section,
.wo-page-layout,
.wo-content-layout {
  padding: 38px 0 54px;
}

.wo-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wo-news-card,
.wo-post-card,
.wo-page-card {
  padding: 22px;
}

.wo-news-card h3,
.wo-post-card h2 {
  margin: 8px 0;
  line-height: 1.2;
}

.wo-news-card a,
.wo-post-card a {
  text-decoration: none;
}

.wo-page-card {
  max-width: 1040px;
  margin-inline: auto;
}

.wo-operational-page {
  max-width: 1180px;
}

.wo-page-header {
  margin-bottom: 22px;
}

.wo-entry-content {
  color: var(--wo-text);
}

.wo-entry-content a {
  color: var(--wo-blue);
  font-weight: 700;
}

.wo-entry-content input,
.wo-entry-content select,
.wo-entry-content textarea {
  max-width: 100%;
}

.wo-featured-image {
  margin: 20px 0;
  overflow: hidden;
  border-radius: var(--wo-radius);
}

.wo-featured-image img {
  width: 100%;
  display: block;
}

.wo-site-footer {
  border-top: 1px solid var(--wo-border);
  background: var(--wo-surface);
  color: var(--wo-muted);
  padding: 28px 0;
}

.wo-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr;
  gap: 20px;
}

.wo-footer-grid strong {
  color: var(--wo-text);
}

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

@media (max-width: 960px) {
  .wo-header-inner,
  .wo-menu {
    flex-wrap: wrap;
  }

  .wo-primary-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .wo-dashboard-grid,
  .wo-section-grid,
  .wo-footer-grid {
    grid-template-columns: 1fr;
  }

  .wo-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .wo-shell {
    width: min(100% - 28px, 1180px);
  }

  .wo-alert-strip {
    font-size: 13px;
  }

  .wo-alert-strip-inner {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 8px 10px;
    padding: 12px 14px;
  }

  .wo-alert-strip-inner strong,
  .wo-alert-strip-inner span {
    grid-column: 1 / -1;
  }

  .wo-alert-strip-inner span {
    line-height: 1.4;
  }

  .wo-alert-strip a {
    display: inline-flex;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
  }

  .wo-site-header {
    position: static;
  }

  .wo-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    padding: 14px 0;
  }

  .wo-brand {
    min-width: 0;
    gap: 10px;
  }

  .wo-brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 16px;
  }

  .wo-brand-text span {
    font-size: 17px;
    line-height: 1.18;
  }

  .wo-brand-text small {
    font-size: 12px;
  }

  .wo-theme-toggle {
    align-self: center;
    min-width: 84px;
    justify-content: center;
    padding: 6px 8px;
  }

  .wo-primary-nav {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--wo-border);
  }

  .wo-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .wo-menu a {
    display: block;
    padding: 9px 10px;
    border: 1px solid var(--wo-border);
    border-radius: var(--wo-radius);
    background: var(--wo-surface-2);
    text-align: center;
    font-size: 14px;
  }

  .wo-dashboard-hero {
    padding: 24px 0 22px;
  }

  .wo-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wo-dashboard-copy h1,
  .wo-page-header h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .wo-lead {
    font-size: 15px;
  }

  .wo-action-row {
    display: grid;
    grid-template-columns: 1fr;
    margin: 18px 0;
  }

  .wo-button {
    width: 100%;
  }

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

  .wo-status-card strong {
    font-size: 18px;
  }

  .wo-ops-panel {
    display: none;
  }

  .wo-section-grid,
  .wo-news-section,
  .wo-page-layout,
  .wo-content-layout {
    padding: 24px 0;
  }

  .wo-section-heading h2,
  .wo-side-panel h2 {
    font-size: 24px;
  }

  .wo-page-card,
  .wo-post-card,
  .wo-news-card,
  .wo-side-panel {
    padding: 16px;
    box-shadow: none;
  }

  .wo-embed-frame .frm-flood-map,
  .wo-embed-frame #frm-flood-map,
  .wo-embed-frame .wwa-map {
    min-height: 360px;
  }

  .wo-footer-grid {
    gap: 10px;
  }

  body.home .wo-alert-strip {
    display: none;
  }

  body.home .wo-header-inner {
    padding: 14px 0 12px;
    gap: 10px;
  }

  body.home .wo-brand {
    gap: 10px;
  }

  body.home .wo-brand-mark {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  body.home .wo-brand-text span {
    font-size: 20px;
    line-height: 1.12;
  }

  body.home .wo-brand-text small {
    font-size: 13px;
  }

  body.home .wo-theme-toggle {
    min-width: 68px;
    padding: 5px 7px;
  }

  body.home .wo-primary-nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.home .wo-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    min-width: 100%;
  }

  body.home .wo-menu a {
    min-width: auto;
    padding: 7px 10px;
    border: 1px solid var(--wo-border);
    background: transparent;
    box-shadow: none;
    font-size: 14px;
  }

  body.home .wo-dashboard-hero {
    padding: 20px 0 18px;
  }

  body.home .wo-dashboard-copy h1 {
    font-size: 29px;
    line-height: 1.1;
  }

  body.home .wo-lead {
    display: none;
  }

  body.home .wo-action-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  body.home .wo-status-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.home .wo-status-card {
    padding: 12px;
  }

  .wo-weather-page {
    padding: 18px 0;
  }

  .wo-weather-page .wo-page-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .wo-weather-page .wo-page-header {
    margin-bottom: 12px;
  }

  .wo-weather-page .wo-page-header h1 {
    font-size: 28px;
  }

  .wo-weather-page .wo-entry-content {
    overflow: visible;
  }
}
