/* area.css - 防災エリアページ用スタイル (freee design system) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font:          "Noto Sans JP", sans-serif;
  --c-primary:     #2864f0;
  --c-primary-hov: #285ac8;
  --c-primary-dk:  #1e46aa;
  --c-primary-bg:  #ebf3ff;
  --c-heading:     #323232;
  --c-text:        #595959;
  --c-muted:       #8c8989;
  --c-bg:          #ffffff;
  --c-surface:     #ffffff;
  --c-surface-sub: #f7f5f5;
  --c-border:      #e9e7e7;
  --radius-card:   0.75rem;
  --radius-btn:    0.5rem;
  --shadow-card:   0 0 1rem rgba(0,0,0,.08), 0 0.125rem 0.25rem rgba(0,0,0,.15);
  --max-w:         70rem;
}

body {
  font-family: var(--font);
  background:  var(--c-bg);
  color:       var(--c-text);
  line-height: 1.6;
  font-size:   16px;
  overflow-wrap: break-word;
}

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-hov); text-decoration: underline; }

/* ============================================================
   サイトヘッダー — ブランドブルーで存在感を出す
   ============================================================ */
.site-header {
  background: var(--c-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(40,100,240,.30);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__logo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: .95;
}
.site-header__logo:hover { opacity: 1; text-decoration: none; color: #fff; }
.site-header__nav { display: flex; gap: 4px; }
.site-header__nav a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: background .2s, color .2s;
}
.site-header__nav a:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   サイトフッター
   ============================================================ */
.site-footer {
  background: var(--c-surface-sub);
  border-top: 1px solid var(--c-border);
  margin-top: 64px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__copy { font-size: 13px; color: var(--c-muted); }
.site-footer__nav { display: flex; gap: 20px; }
.site-footer__nav a { font-size: 13px; color: var(--c-muted); text-decoration: none; }
.site-footer__nav a:hover { color: var(--c-primary); text-decoration: none; }

/* ============================================================
   ページ全体ラッパー
   ============================================================ */
.page-city {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ============================================================
   パンくず
   ============================================================ */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 16px 0;
  font-size: 13px;
  color: var(--c-muted);
}
.breadcrumb li + li::before { content: '›'; margin-right: 4px; }
.breadcrumb a { color: var(--c-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   ページヘッダー
   ============================================================ */
.city-header { padding: 8px 0 28px; }
.city-header h1 {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-heading);
  letter-spacing: 0.04em;
}
.city-header__sub {
  color: var(--c-muted);
  margin-top: 8px;
  font-size: 15px;
}
.lang-switch {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-primary);
  text-decoration: none;
  transition: all .2s;
}
.lang-switch:hover {
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   警戒バナー
   ============================================================ */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid;
  border-radius: var(--radius-card);
  margin-bottom: 28px;
}
.alert-banner__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.alert-banner__level { font-size: 16px; font-weight: 700; }
.alert-banner__text  { font-size: 14px; margin-top: 4px; color: var(--c-text); }

/* ============================================================
   セクション共通 — 左ボーダーアクセント
   ============================================================ */
.section-summary,
.section-hazard-overview,
.section-score,
.section-risks,
.section-seasonal,
.section-simulation,
.section-nearby,
.section-map {
  margin-bottom: 32px;
}

/* h2 — 左に太いブルーラインで強調 */
.section-risks h2,
.section-hazard-overview h2,
.section-nearby h2,
.section-source h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--c-primary);
  line-height: 1.4;
}

/* ============================================================
   ハザード概要
   ============================================================ */
.section-hazard-overview {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.hazard-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.hazard-overview-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: var(--c-surface-sub);
  padding: 14px 16px;
}
.hazard-overview-card__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-primary-dk);
  margin-bottom: 6px;
}
.hazard-overview-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  color: var(--c-heading);
}
.hazard-overview-card p {
  font-size: 12px;
  color: var(--c-text);
  line-height: 1.7;
  margin-top: 4px;
}
.hazard-overview-card small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--c-muted);
}
.hazard-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hazard-overview-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hazard-overview-actions a:hover {
  color: #fff;
  background: var(--c-primary);
  text-decoration: none;
}

/* セクションカード（白地 + シャドウ） */
.section-seasonal,
.section-simulation,
.section-map {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

/* カード内 h2 も左ボーダー */
.section-seasonal h2,
.section-simulation h2,
.section-map h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--c-primary);
  line-height: 1.4;
}

.section-score {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.section-score > h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--c-primary);
  line-height: 1.4;
}

/* ============================================================
   総評カード — トップにブルーのライン
   ============================================================ */
.summary-card {
  display: flex;
  gap: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  border-top: 4px solid var(--c-primary);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.summary-card__icon  { font-size: 28px; flex-shrink: 0; }
.summary-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c-primary-dk);
}
.summary-card__text  { font-size: 14px; line-height: 1.9; color: var(--c-text); }

/* ============================================================
   スコアセクション
   ============================================================ */
.score-wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.score-circle-wrap { text-align: center; min-width: 140px; }
.score-circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 6px solid var(--score-color, var(--c-primary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: var(--c-primary-bg);
}
.score-circle__num   { font-size: 38px; font-weight: 700; line-height: 1; color: var(--score-color, var(--c-primary)); }
.score-circle__label { font-size: 12px; color: var(--c-muted); }
.score-circle__unit  { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.score-rank          { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.score-rank strong   { color: var(--c-primary); font-weight: 700; }
.score-note          { font-size: 11px; color: var(--c-muted); margin-top: 4px; }

.radar-wrap { flex: 1; min-width: 200px; display: flex; justify-content: center; }

/* ============================================================
   ワンポイント
   ============================================================ */
.onepoint {
  display: flex;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  margin-top: 24px;
  font-size: 14px;
}
.onepoint__icon { flex-shrink: 0; }

/* ============================================================
   リスクグリッド
   ============================================================ */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.risk-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--c-primary);
  transition: box-shadow .2s, transform .2s;
}
.risk-card:hover {
  box-shadow: 0 0 1.5rem rgba(0,0,0,.12), 0 0.25rem 0.5rem rgba(0,0,0,.18);
  transform: translateY(-2px);
}
.risk-card__head  { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.risk-card__icon  { font-size: 20px; }
.risk-card__head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary-dk);
  flex: 1;
}
.risk-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.risk-detail     { font-size: 13px; }
.risk-detail dt  { color: var(--c-muted); margin-top: 8px; font-size: 12px; }
.risk-detail dd  { font-weight: 600; color: var(--c-heading); }
.risk-detail small { font-weight: 400; color: var(--c-muted); }
.risk-card__desc {
  font-size: 13px;
  color: var(--c-text);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  line-height: 1.8;
}

/* ============================================================
   町丁目メッシュ集計
   ============================================================ */
.mesh-risk-summary {
  border-left: 4px solid var(--c-primary);
}
.mesh-risk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.mesh-risk-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 16px;
}
.mesh-risk-card__label {
  display: block;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.mesh-risk-card strong {
  display: block;
  color: var(--c-primary-dk);
  font-size: 28px;
  line-height: 1.2;
}
.mesh-risk-card small {
  display: block;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
}
.mesh-risk-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.mesh-risk-meta div {
  min-width: 0;
}
.mesh-risk-meta dt {
  color: var(--c-muted);
  font-size: 12px;
}
.mesh-risk-meta dd {
  color: var(--c-heading);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ============================================================
   避難場所
   ============================================================ */
.shelter-list { list-style: none; font-size: 13px; }
.shelter-list li { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.shelter-list li:last-child { border-bottom: none; }
.shelter-name  { font-weight: 600; display: block; color: var(--c-heading); }
.shelter-meta  { color: var(--c-muted); font-size: 12px; margin-top: 2px; }
.shelter-tags  { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag {
  background: var(--c-primary-bg);
  color: var(--c-primary-dk);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
}
.no-data { color: var(--c-muted); font-size: 14px; }

/* ============================================================
   季節リスク・シミュレーション
   ============================================================ */
.seasonal-content,
.simulation-content {
  font-size: 14px;
  line-height: 2.0;
  color: var(--c-text);
}

/* seasonal_risk の各行先頭の「月〜月」部分を強調 */
.seasonal-content br + * , .seasonal-content {
  /* 行ごとに区切り線の代わりに背景を交互にする必要あれば JS で処理 */
}

/* ============================================================
   近隣比較テーブル
   ============================================================ */
.nearby-table-wrap { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--c-border); }
.nearby-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nearby-table th {
  background: var(--c-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.nearby-table th:first-child { border-radius: 0; }
.nearby-table td { padding: 10px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-text); }
.nearby-table tr:last-child td { border-bottom: none; }
.nearby-table .current-row td { background: var(--c-primary-bg); font-weight: 600; color: var(--c-primary-dk); }
.nearby-table a { color: var(--c-primary); text-decoration: none; }
.nearby-table a:hover { text-decoration: underline; }
.nearby-note { font-size: 12px; color: var(--c-muted); margin-top: 10px; }

/* ============================================================
   地図ボタン
   ============================================================ */
.map-layer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.map-layer-btns button {
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--c-primary);
  background: var(--c-primary-bg);
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.map-layer-btns button:hover,
.map-layer-btns button.active {
  background: var(--c-primary);
  color: #fff;
}

/* ============================================================
   出典
   ============================================================ */
.section-source {
  border-top: 1px solid var(--c-border);
  padding-top: 28px;
  margin-top: 40px;
}
.source-list { list-style: none; font-size: 13px; }
.source-list li {
  padding: 6px 0;
  padding-left: 12px;
  border-left: 3px solid var(--c-primary-bg);
  margin-bottom: 4px;
}
.source-list a { color: var(--c-primary); }
.source-list a:hover { color: var(--c-primary-hov); }
.official-links {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: var(--c-primary-bg);
}
.official-links h3 {
  font-size: 14px;
  color: var(--c-primary-dk);
  margin-bottom: 8px;
}
.official-links ul {
  list-style: none;
}
.official-links li + li {
  margin-top: 4px;
}
.official-links a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.official-links a:hover {
  text-decoration: underline;
}
.disclaimer {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 16px;
  line-height: 1.9;
  padding: 14px 16px;
  background: var(--c-surface-sub);
  border-radius: var(--radius-btn);
  border-left: 4px solid var(--c-border);
}
.data-updated { font-size: 12px; color: var(--c-muted); margin-top: 10px; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .score-wrap { flex-direction: column; gap: 20px; }
  .radar-wrap canvas { width: 240px !important; height: 240px !important; }
  .site-header__nav a { padding: 6px 8px; font-size: 13px; }
  .city-header h1 { letter-spacing: 0.02em; }
  .section-score,
  .section-seasonal,
  .section-simulation,
  .section-map { padding: 20px 16px; }
}

@media (max-width: 375px) {
  .page-city { padding: 0 12px 64px; }
  .risk-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   2026 clarity refresh
   情報の階層を優先し、装飾・カード・色数を最小限にする
   ============================================================ */
:root {
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --c-primary: #0f6b66;
  --c-primary-hov: #0b554f;
  --c-primary-dk: #173f3b;
  --c-primary-bg: #eef5f3;
  --c-heading: #18201e;
  --c-text: #46514e;
  --c-muted: #737d7a;
  --c-bg: #fbfbf9;
  --c-surface: #ffffff;
  --c-surface-sub: #f3f5f3;
  --c-border: #dfe4e1;
  --radius-card: 6px;
  --radius-btn: 4px;
  --shadow-card: none;
  --max-w: 72rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  line-height: 1.75;
  letter-spacing: .01em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 107, 102, .22);
  outline-offset: 3px;
}

.site-header {
  background: rgba(251, 251, 249, .96);
  border-bottom: 1px solid var(--c-border);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.site-header__inner {
  height: 64px;
  padding-inline: 24px;
}
.site-header__logo {
  color: var(--c-heading);
  font-size: 16px;
  letter-spacing: .02em;
}
.site-header__logo:hover { color: var(--c-primary); }
.site-header__nav { gap: 24px; }
.site-header__nav a {
  padding: 6px 0;
  color: var(--c-text);
  border-radius: 0;
}
.site-header__nav a:hover {
  color: var(--c-primary);
  background: transparent;
}

.page-city {
  padding: 0 24px 96px;
}
.breadcrumb ol {
  padding: 20px 0;
  font-size: 12px;
}
.breadcrumb li + li::before {
  color: #a7afac;
  margin-inline: 2px 6px;
}
.breadcrumb a { color: var(--c-muted); }

.city-header {
  max-width: 56rem;
  padding: 20px 0 36px;
}
.city-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: -.025em;
}
.city-header__sub {
  max-width: 46rem;
  margin-top: 12px;
  color: var(--c-text);
  font-size: 15px;
}

.alert-banner {
  align-items: center;
  gap: 12px;
  max-width: 56rem;
  padding: 14px 0 14px 16px;
  border-width: 0 0 0 3px;
  border-radius: 0;
  background: transparent !important;
  margin-bottom: 28px;
}
.alert-banner__dot {
  width: 8px;
  height: 8px;
  margin-top: 0;
}
.alert-banner__level { font-size: 14px; }
.alert-banner__text {
  margin-top: 2px;
  color: var(--c-text);
}

.page-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 56px;
  padding: 14px 0;
  overflow-x: auto;
  border-block: 1px solid var(--c-border);
  scrollbar-width: none;
}
.page-nav::-webkit-scrollbar { display: none; }
.page-nav a {
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.page-nav a:hover { color: var(--c-primary); }
.page-nav.page-nav--before-title { margin-bottom: 0; }

.section-summary,
.section-hazard-overview,
.section-score,
.section-risks,
.section-seasonal,
.section-simulation,
.section-nearby,
.section-map {
  margin-bottom: 56px;
}

.section-risks h2,
.section-hazard-overview h2,
.section-nearby h2,
.section-source h2,
.section-seasonal h2,
.section-simulation h2,
.section-map h2,
.section-score > h2 {
  margin-bottom: 20px;
  padding-left: 0;
  border-left: 0;
  color: var(--c-heading);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.section-hazard-overview {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hazard-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--c-border);
}
.hazard-overview-card {
  min-width: 0;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
}
.hazard-overview-card:first-child { padding-left: 0; }
.hazard-overview-card:last-child {
  padding-right: 0;
  border-right: 0;
}
.hazard-overview-card__label {
  margin-bottom: 8px;
  color: var(--c-muted);
  font-size: 12px;
  letter-spacing: .06em;
}
.hazard-overview-card strong {
  color: var(--c-heading);
  font-size: 19px;
}
.hazard-overview-card p {
  margin-top: 6px;
  color: var(--c-text);
  font-size: 12px;
}
.hazard-overview-card small {
  margin-top: 8px;
  color: var(--c-muted);
}
.hazard-overview-actions {
  gap: 18px;
  margin-top: 16px;
}
.hazard-overview-actions a {
  min-height: auto;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--c-primary);
  font-size: 13px;
}
.hazard-overview-actions a:hover {
  background: transparent;
  color: var(--c-primary-hov);
}

.summary-card {
  display: block;
  max-width: 56rem;
  padding: 22px 24px;
  border: 0;
  border-radius: 4px;
  background: var(--c-surface-sub);
  box-shadow: none;
}
.summary-card__title {
  margin-bottom: 6px;
  color: var(--c-heading);
  font-size: 14px;
}
.summary-card__text {
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.9;
}

.section-score {
  padding: 0;
  border: 0;
  background: transparent;
}
.score-wrap {
  align-items: flex-start;
  gap: 24px;
}
.score-circle-wrap {
  min-width: 0;
  text-align: left;
}
.score-circle {
  width: auto;
  height: auto;
  margin: 0 0 10px;
  padding-left: 16px;
  border: 0;
  border-left: 3px solid var(--score-color, var(--c-primary));
  border-radius: 0;
  background: transparent;
  align-items: flex-start;
}
.score-circle__num {
  color: var(--c-heading);
  font-size: 48px;
  letter-spacing: -.05em;
}
.score-circle__label {
  margin-top: -4px;
  color: var(--c-muted);
}
.score-circle__unit {
  margin-top: 4px;
  color: var(--c-text);
  font-size: 12px;
  font-weight: 600;
}
.score-rank { margin-top: 8px; }
.score-rank strong { color: var(--c-heading); }
.score-note {
  max-width: 34rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.onepoint {
  max-width: 56rem;
  margin-top: 20px;
  padding: 16px 0;
  border: 0;
  border-block: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}

.risk-grid {
  display: block;
  border-top: 1px solid var(--c-border);
}
.risk-card {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
  column-gap: 40px;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.risk-card:hover {
  transform: none;
  box-shadow: none;
}
.risk-card__head {
  align-content: start;
  margin: 0;
}
.risk-card__head h3 {
  color: var(--c-heading);
  font-size: 16px;
}
.risk-badge {
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid var(--c-border);
  border-radius: 3px;
  background: var(--c-surface-sub) !important;
  color: var(--c-text);
  font-size: 11px;
}
.risk-detail {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(100px, 1fr);
  align-items: baseline;
  font-size: 13px;
}
.risk-detail dt {
  margin: 0;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid #edf0ee;
  color: var(--c-muted);
  font-size: 12px;
}
.risk-detail dd {
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0ee;
  color: var(--c-heading);
}
.risk-card__desc {
  grid-column: 2;
  margin-top: 16px;
  padding: 0;
  border: 0;
  color: var(--c-text);
}
.shelter-list li { padding: 10px 0; }

.section-seasonal,
.section-simulation,
.section-map {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.seasonal-content,
.simulation-content {
  max-width: 52rem;
  color: var(--c-text);
  line-height: 1.95;
}

.nearby-table-wrap {
  border-color: var(--c-border);
  border-radius: 4px;
}
.nearby-table th {
  padding: 11px 14px;
  background: #eef1ef;
  color: var(--c-heading);
}
.nearby-table td { padding: 11px 14px; }
.nearby-table .current-row td {
  background: #f3f7f5;
  color: var(--c-heading);
}

.section-source {
  margin-top: 64px;
  padding-top: 32px;
}
.official-links {
  max-width: 56rem;
  margin-bottom: 18px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
}
.official-links h3 { color: var(--c-heading); }
.source-list { max-width: 56rem; }
.source-list li {
  margin: 0;
  padding: 5px 0;
  border: 0;
}
.disclaimer {
  max-width: 56rem;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
}

.pref-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--c-border);
}
.pref-list-heading {
  margin-top: 8px;
  color: var(--c-heading);
  font-size: 22px;
  line-height: 1.45;
}
.pref-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.pref-list a:hover { color: var(--c-primary); }
.pref-score {
  padding: 1px 0 1px 12px;
  background: transparent !important;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
}

.area-score-layout {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}
.priority-guidance {
  padding: 0 0 0 24px;
  border-left: 1px solid var(--c-border);
}
.priority-guidance__title {
  margin-bottom: 10px;
  color: var(--c-heading);
  font-size: 14px;
  font-weight: 700;
}
.priority-guidance__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}
.priority-guidance__links a {
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.risk-section {
  padding: 28px 0;
  border-top: 1px solid var(--c-border);
}
.risk-section:last-child { border-bottom: 1px solid var(--c-border); }
.risk-section h2 {
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  font-size: 18px;
}

.site-footer {
  margin-top: 32px;
  background: #f2f3f1;
}
.site-footer__inner { padding-block: 28px; }

@media (max-width: 800px) {
  .hazard-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hazard-overview-card:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }
  .hazard-overview-card:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--c-border);
  }
  .hazard-overview-card:nth-child(4) {
    padding-right: 0;
    border-top: 1px solid var(--c-border);
  }
  .risk-card {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .risk-card__desc { grid-column: 1; }
}

@media (max-width: 640px) {
  .site-header__inner { padding-inline: 16px; }
  .site-header__nav { gap: 14px; }
  .site-header__nav a:last-child { display: none; }
  .page-city { padding: 0 16px 72px; }
  .city-header { padding: 12px 0 28px; }
  .city-header h1 { font-size: 28px; }
  .page-nav {
    gap: 22px;
    margin-inline: -16px;
    margin-bottom: 44px;
    padding-inline: 16px;
  }
  .section-summary,
  .section-hazard-overview,
  .section-score,
  .section-risks,
  .section-seasonal,
  .section-simulation,
  .section-nearby,
  .section-map {
    margin-bottom: 44px;
  }
  .hazard-overview-grid { grid-template-columns: 1fr; }
  .hazard-overview-card,
  .hazard-overview-card:first-child,
  .hazard-overview-card:last-child,
  .hazard-overview-card:nth-child(2),
  .hazard-overview-card:nth-child(3),
  .hazard-overview-card:nth-child(4) {
    padding: 16px 0;
    border-right: 0;
    border-top: 1px solid var(--c-border);
  }
  .hazard-overview-card:first-child { border-top: 0; }
  .summary-card {
    margin-inline: -4px;
    padding: 18px 20px;
  }
  .risk-detail {
    grid-template-columns: minmax(150px, 1.4fr) minmax(100px, 1fr);
  }
  .pref-list { grid-template-columns: 1fr; }
  .area-score-layout { grid-template-columns: 1fr; }
  .priority-guidance {
    padding: 20px 0 0;
    border-top: 1px solid var(--c-border);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   Reader-first information architecture
   ============================================================ */
.page-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.page-context > div {
  display: flex;
  gap: 8px;
  font-size: 12px;
}
.page-context dt { color: var(--c-muted); }
.page-context dd {
  color: var(--c-heading);
  font-weight: 600;
}

.live-info-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: -8px 0 28px;
  padding: 16px 0;
  border-block: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 13px;
}
.live-info-note p { max-width: 44rem; }
.live-info-note strong { color: var(--c-heading); }
.live-info-note__links {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.live-info-note__links a,
.text-link {
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
}
.live-info-note--footer {
  margin: 28px 0 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.section-lead {
  max-width: 54rem;
  margin: -6px 0 22px;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.9;
}

.hazard-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
  border-top: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
}
.hazard-overview-card,
.hazard-overview-card:first-child,
.hazard-overview-card:last-child {
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  color: inherit;
  text-decoration: none;
}
.hazard-overview-card:hover {
  background: #f5f8f6;
  color: inherit;
  text-decoration: none;
}
.hazard-overview-card small {
  color: var(--c-primary);
  font-weight: 600;
}

.section-shelters,
.section-actions {
  margin-bottom: 56px;
}
.section-shelters h2,
.section-actions h2 {
  margin: 0 0 8px;
  color: var(--c-heading);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.section-heading-row p {
  max-width: 48rem;
  color: var(--c-muted);
  font-size: 13px;
}
.section-heading-row > a {
  flex-shrink: 0;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.shelter-directory {
  list-style: none;
  border-top: 1px solid var(--c-border);
}
.shelter-directory li {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr);
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}
.shelter-directory__main,
.shelter-directory__meta {
  display: flex;
  gap: 8px 16px;
}
.shelter-directory__main { flex-direction: column; }
.shelter-directory__meta {
  justify-content: flex-end;
  color: var(--c-muted);
  font-size: 12px;
}
.shelter-address {
  color: var(--c-muted);
  font-size: 12px;
}
.shelter-caution {
  max-width: 54rem;
  margin: 12px 0 6px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.8;
}

.action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  counter-reset: action;
  border-top: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
}
.action-list li {
  counter-increment: action;
  padding: 20px;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.action-list li::before {
  content: "0" counter(action);
  display: block;
  margin-bottom: 14px;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.action-list strong,
.action-list span { display: block; }
.action-list strong {
  margin-bottom: 6px;
  color: var(--c-heading);
  font-size: 14px;
}
.action-list span {
  color: var(--c-text);
  font-size: 12px;
  line-height: 1.8;
}

.reference-score {
  display: grid;
  grid-template-columns: 150px minmax(0, 42rem);
  gap: 32px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
}
.reference-score > div:last-child {
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.85;
}
.reference-score > div:last-child p + p { margin-top: 12px; }

.data-scope-note,
.value-note {
  margin: -8px 0 12px;
  color: var(--c-muted);
  font-size: 12px;
}
.value-note {
  max-width: 48rem;
  margin: 12px 0 0;
  line-height: 1.8;
}

.data-definitions {
  max-width: 56rem;
  margin-top: 22px;
  border-top: 1px solid var(--c-border);
}
.data-definitions > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
}
.data-definitions dt {
  color: var(--c-heading);
  font-weight: 700;
}
.data-definitions dd { color: var(--c-muted); }

@media (max-width: 800px) {
  .live-info-note {
    flex-direction: column;
    gap: 12px;
  }
  .live-info-note__links { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
  .hazard-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hazard-overview-card,
  .hazard-overview-card:first-child,
  .hazard-overview-card:last-child,
  .hazard-overview-card:nth-child(2),
  .hazard-overview-card:nth-child(3),
  .hazard-overview-card:nth-child(4) {
    padding: 18px;
    border-top: 0;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
  }
  .action-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-context {
    display: grid;
    gap: 6px;
  }
  .page-context > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .live-info-note:not(.live-info-note--footer) { margin-top: -4px; }
  .hazard-overview-grid { grid-template-columns: 1fr; }
  .hazard-overview-card,
  .hazard-overview-card:first-child,
  .hazard-overview-card:last-child,
  .hazard-overview-card:nth-child(2),
  .hazard-overview-card:nth-child(3),
  .hazard-overview-card:nth-child(4) {
    padding: 16px;
  }
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .shelter-directory li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .shelter-directory__meta { justify-content: flex-start; }
  .reference-score {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .data-definitions > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Reader-first town lookup */
.section-area-lookup {
  margin-bottom: 56px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-surface-sub);
}
.section-area-lookup h2 {
  margin: 0 0 10px;
  color: var(--c-heading);
  font-size: 20px;
  line-height: 1.45;
}
.area-lookup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--c-heading);
  font-size: 13px;
  font-weight: 700;
}
.area-lookup-form > div {
  display: flex;
  gap: 10px;
  max-width: 42rem;
}
.area-lookup-form select {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: #fff;
  color: var(--c-heading);
  font: inherit;
}
.area-lookup-form button {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--c-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.area-lookup-form button:hover { background: var(--c-primary-hov); }
.u-nowrap { white-space: nowrap; }

@media (max-width: 640px) {
  .page-nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .section-area-lookup {
    margin-bottom: 44px;
    padding: 20px 16px;
  }
  .area-lookup-form > div { flex-direction: column; }
  .area-lookup-form button { width: 100%; }
}

.point-lookup-form {
  margin-bottom: 20px;
}
.point-lookup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--c-heading);
  font-size: 13px;
  font-weight: 700;
}
.point-lookup-form > div {
  display: flex;
  gap: 10px;
  max-width: 46rem;
}
.point-lookup-form input[type="search"] {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: #fff;
  color: var(--c-heading);
  font: inherit;
}
.point-lookup-form button,
.point-result-head button {
  min-height: 46px;
  padding: 9px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--c-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.point-lookup-form button:disabled {
  cursor: wait;
  opacity: .65;
}
.lookup-help,
.lookup-note {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
}
.point-lookup-result {
  margin: 20px 0 28px;
  padding: 22px;
  border: 1px solid #b8d5c2;
  border-radius: 6px;
  background: #fff;
}
.point-lookup-result.is-error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.point-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.point-result-head span,
.point-result-grid span {
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}
.point-result-head h3 {
  margin: 3px 0 4px;
  color: var(--c-heading);
  font-size: 18px;
}
.point-result-head p {
  color: var(--c-muted);
  font-size: 12px;
}
.point-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
}
.point-result-grid > div {
  padding: 16px;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.point-result-grid strong,
.point-result-grid small {
  display: block;
}
.point-result-grid strong {
  margin-top: 6px;
  color: var(--c-heading);
  font-size: 19px;
}
.point-result-grid small {
  margin-top: 5px;
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1.6;
}
.point-raw-data,
.point-shelters {
  margin-top: 20px;
}
.point-raw-data h4,
.point-shelters h4 {
  margin-bottom: 8px;
  color: var(--c-heading);
  font-size: 13px;
}
.point-raw-data dl {
  border-top: 1px solid var(--c-border);
}
.point-raw-data dl > div {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
}
.point-raw-data dt { color: var(--c-heading); font-weight: 700; }
.point-raw-data dd { color: var(--c-text); }
.point-raw-data dd small {
  display: block;
  color: var(--c-muted);
}
.point-shelters ol {
  margin: 0;
  padding-left: 22px;
}
.point-shelters li {
  padding: 5px 0;
  font-size: 12px;
}
.point-shelters li strong,
.point-shelters li span { display: block; }
.point-shelters li span { color: var(--c-muted); }
.area-lookup-divider {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.area-lookup-divider h3 {
  margin-bottom: 5px;
  color: var(--c-heading);
  font-size: 16px;
}
.area-lookup-divider p {
  margin-bottom: 14px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .point-lookup-form > div,
  .point-result-head {
    flex-direction: column;
  }
  .point-lookup-form button,
  .point-result-head button {
    width: 100%;
  }
  .point-result-grid {
    grid-template-columns: 1fr;
  }
  .point-raw-data dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Reader-first hazard summary and expandable calculation evidence */
.hazard-overview-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hazard-overview-grid--compact .hazard-overview-card {
  min-height: 178px;
}
.overview-note {
  margin-top: 14px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
}
.evidence-details {
  margin-top: 20px;
  border-top: 1px solid var(--c-border);
}
.evidence-details summary {
  padding: 14px 0;
  color: var(--c-primary-dk);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.evidence-details[open] summary {
  margin-bottom: 8px;
}
.evidence-details .data-definitions,
.evidence-details .mesh-risk-meta {
  margin-top: 0;
}

@media (max-width: 800px) {
  .hazard-overview-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .city-header h1 {
    max-width: 100%;
    font-size: 26px;
    overflow-wrap: anywhere;
  }
  .city-header h1 .u-nowrap {
    white-space: normal;
  }
  .section-heading-row,
  .section-heading-row > div,
  .section-heading-row p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hazard-overview-grid--compact {
    grid-template-columns: 1fr;
  }
  .hazard-overview-grid--compact .hazard-overview-card {
    min-height: 0;
  }
}
