/* 積雪・降雪のページ（/v2/snow/・snow-page.js）に固有の見た目。
   レイアウト・上部バー・パネル・シートはホームと同じ top.css を使い、ここでは違う所だけを書く（2026-10-09） */

/* ===== 地図の上：指標の切り替え ===== */
.snow-controls {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  right: 60px;
  display: grid;
  justify-items: start;
  gap: 6px;
  pointer-events: none;
}
.snow-controls .seg {
  pointer-events: auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.snow-controls .seg::-webkit-scrollbar {
  display: none;
}
.snow-controls .seg[hidden] {
  display: none;
}
.snow-controls .seg button {
  display: block;
  padding: 8px 12px 7px;
  font: 500 13px/1.2 var(--ui);
  color: var(--graphite);
  white-space: nowrap;
}
.snow-controls .seg button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
/* 段が 6 つになった（降水量・2026-10-22）。縮めて文字が隣に重ならないよう、ボタンは縮めず、
   スマホの幅では左右の余白を詰める（それでも入らない時は横にすべらせて見る） */
.snow-controls .seg button {
  flex: none;
}
@media (max-width: 420px) {
  .snow-controls #metric-groups button {
    padding: 8px 7px 7px;
    font-size: 12.5px;
  }
}
.snow-windows button {
  font-family: var(--data) !important;
  font-size: 12px !important;
  padding: 6px 10px 5px !important;
}

/* ===== 地図の上：地上天気図（と気象庁の面）の折りたたみ ===== */
/* 2026-10-17 CEO「地図が圧迫されてしまって、スマホなどで見にくくなってしまう」「重ねるじゃわからないので『地上天気図』」：
   左下の箱をやめ、指標の切り替えの下に「地上天気図 ▾」を置く。押すと欄が開く。地上天気図を表示している間はボタンが黒い */
.snow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.snow-overlay-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 10px 5px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 26, 34, 0.12);
  font: 500 12px/1.2 var(--ui);
  color: var(--graphite);
  cursor: pointer;
  white-space: nowrap;
}
.snow-overlay-btn.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.snow-overlay-state:empty {
  display: none;
}
.snow-overlay-state::before {
  content: "＋";
}
.snow-overlay-caret {
  margin-left: 6px;
  font-size: 10px;
  transition: transform 0.15s;
}
.snow-overlay-btn[aria-expanded="true"] .snow-overlay-caret {
  transform: rotate(180deg);
}
.snow-gridctl {
  pointer-events: auto;
  /* 右の拡大・縮小と地図の種類のボタン（幅 60px の列）にかからない幅 */
  width: min(340px, calc(100vw - 84px));
  max-height: 55svh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 26, 34, 0.12);
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--graphite);
}
.snow-gridctl[hidden] {
  display: none;
}
.snow-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}
.snow-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  margin: 0;
}
.snow-gridctl .snow-toggle.is-off {
  color: var(--mist);
  cursor: default;
}
.snow-grid-note[hidden] {
  display: none;
}
.snow-grid-note {
  font-size: 10px;
  line-height: 1.5;
  color: var(--graphite);
}
.foot .attrib a {
  color: inherit;
  word-break: break-all;
}
/* 地上天気図の操作 */
.snow-wx {
  display: grid;
  gap: 4px;
}
.snow-wx[hidden] {
  display: none;
}
.snow-wx-forecast {
  font-size: 12px;
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
}
.snow-wx-time {
  font-size: 11px;
  color: var(--ink);
}
/* 地上天気図の層（等圧線の気圧・高低気圧・台風の印）。気象庁の天気図に寄せる（2026-10-17 CEO「もう少し気象庁の天気図に寄った形で」）：
   中心は印（高気圧 ×・低気圧など ⊗）、その上に「高」「低」、下に気圧、移動は白抜きの矢印と速さ。等圧線の数字は白い下地 */
.wx-label-wrap,
.wx-center-wrap {
  background: none;
  border: 0;
  pointer-events: none;
}
.wx-label {
  display: inline-block;
  transform: translate(-50%, -50%);
  padding: 1px 3px;
  background: #fff;
  border-radius: 2px;
  font: 500 10px/1.1 var(--data);
  color: #2b3138;
}
.wx-label.is-major {
  font-weight: 700;
}
.wx-center {
  position: relative;
  width: 0;
  height: 0;
  font-family: var(--ui);
  white-space: nowrap;
  --wx-c: #e0261b;
}
.wx-center.wx-high {
  --wx-c: #1d4fe0;
}
.wx-center > * {
  position: absolute;
  left: 0;
  top: 0;
}
.wx-mark-wrap {
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.wx-mark {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #111a22;
  stroke-width: 1.8;
}
.wx-name {
  transform: translate(-50%, calc(-100% - 9px));
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  color: var(--wx-c);
  text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff;
}
.wx-trough .wx-name,
.wx-td .wx-name,
.wx-typhoon .wx-name {
  font-size: 15px;
}
.wx-p {
  transform: translate(-50%, 10px);
  font: 600 12px/1 var(--data);
  color: #111a22;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff;
}
.wx-arrow-wrap {
  left: -9px;
  top: -12px;
  width: 18px;
  height: 24px;
  transform-origin: 50% 50%;
}
.wx-arrow {
  display: block;
  width: 18px;
  height: 24px;
  fill: #fff;
  stroke: #111a22;
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.wx-mv {
  font: 600 11px/1 var(--data);
  color: #111a22;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.wx-mv.wx-still {
  transform: translate(-50%, 26px);
  font-family: var(--ui);
  font-size: 10px;
}
.leaflet-pane .snow-grid-tiles {
  image-rendering: pixelated;
}

/* ===== 凡例 ===== */
/* 地図の左下：時刻の送り（地上天気図・雪の分布図）と凡例を縦に積む */
.snow-bottom {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 26px;
  max-width: calc(100% - 24px);
  display: grid;
  justify-items: start;
  gap: 6px;
  pointer-events: none;
}
.snow-time {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 3px 4px 3px 9px;
  font-size: 12px;
  color: var(--ink);
}
.snow-time[hidden] {
  display: none;
}
.snow-time-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--graphite);
  margin-right: 2px;
  white-space: nowrap;
}
.snow-time-label {
  font: 500 12px/1.2 var(--data);
  white-space: nowrap;
}
.snow-time-step {
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  flex: none;
}
.snow-time-step:disabled {
  color: var(--mist);
  cursor: default;
}
.snow-time-latest {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 600 11px var(--ui);
  cursor: pointer;
  flex: none;
}
.snow-time-latest[hidden] {
  display: none;
}
.snow-time-range {
  /* 幅は残りを使う（スマホの幅で時刻の文字が切れないように） */
  flex: 1 1 0;
  min-width: 60px;
  width: auto;
  accent-color: var(--ink);
  margin: 0 4px;
}
.snow-obs-time {
  width: min(460px, 100%);
}
/* スマホの幅では名前を外して、時刻と「最新」を画面に収める（読み上げは帯の aria-label が「観測の時刻」） */
@media (max-width: 560px) {
  .snow-obs-time .snow-time-name {
    display: none;
  }
}
.snow-time-day {
  font: 500 12px var(--ui);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  padding: 4px 4px;
  max-width: 9em;
}
.snow-time-day[hidden] {
  display: none;
}
.snow-legend {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 7px 10px 6px;
  display: grid;
  gap: 5px;
  pointer-events: none;
}
.snow-legend-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--graphite);
}
.snow-legend-bar {
  display: flex;
  padding-bottom: 13px;
}
.snow-legend-cell {
  position: relative;
  width: 26px;
  height: 9px;
}
.snow-legend-cell:first-child {
  border-radius: 3px 0 0 3px;
}
.snow-legend-cell:last-child {
  border-radius: 0 3px 3px 0;
}
.snow-legend-cell small {
  position: absolute;
  left: 0;
  top: 12px;
  transform: translateX(-50%);
  font: 500 10px/1 var(--data);
  color: var(--graphite);
  white-space: nowrap;
}
@media (max-width: 700px) {
  /* 面の説明は狭い画面では欄が長くなるので出さない（同じことを「データについて」に書いている） */
  .snow-grid-note {
    display: none;
  }
  .snow-legend-cell {
    width: 22px;
  }
}

/* ===== 地図の地点の値の札 ===== */
.snow-chip-wrap {
  background: none;
  border: 0;
}
.snow-chip {
  display: inline-block;
  transform: translate(-50%, -50%);
  font: 600 12px/1 var(--data);
  padding: 3px 5px 2px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow:
    0 0 0 1.5px #fff,
    0 1px 4px rgba(17, 26, 34, 0.35);
  cursor: pointer;
}
/* 窓の中に欠けた時間がある値（ランキングから外している値）は薄く */
.snow-chip.is-partial {
  opacity: 0.45;
}
.snow-chip-arrow {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  margin-right: 3px;
}
/* 風の矢印（風速の地図だけ） */
.snow-arrow-wrap {
  background: none;
  border: 0;
  pointer-events: none;
}
.snow-arrow {
  display: block;
  overflow: visible;
  transform-origin: 50% 50%;
}
/* 色と縁取りは風速で変わる（map-layer.js の arrowHtml が気象庁の区切りの色を入れる） */
.snow-arrow line {
  stroke-linecap: round;
}
.snow-arrow .snow-arrow-edge {
  stroke-width: 4.2;
}
.snow-arrow .snow-arrow-body {
  stroke-width: 2.2;
}
.snow-arrow .snow-arrow-head {
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.snow-legend-note {
  max-width: 300px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--graphite);
}
/* 札を出す縮尺では点を隠す（同じ地点を2つ重ねない） */
.snow-chips-on .leaflet-snowStations-pane {
  opacity: 0;
  pointer-events: none;
}

/* ===== パネル ===== */
.snow-intro {
  gap: 6px;
}
.snow-intro h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.snow-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite);
}
.snow-obs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--data);
  font-size: 12px !important;
  color: var(--ink) !important;
}
.snow-count {
  color: var(--mist);
}
.snow-msg {
  background: var(--wash);
  border-radius: 8px;
  padding: 10px 12px;
}
.snow-msg[hidden] {
  display: none;
}

.snow-find {
  gap: 0;
  position: relative;
}
.snow-search-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: grid;
}
.snow-search-list[hidden] {
  display: none;
}
.snow-search-list button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 10px;
  border-radius: 6px;
  font: 14px var(--ui);
  color: var(--ink);
  cursor: pointer;
}
.snow-search-list button:hover,
.snow-search-list button:focus-visible {
  background: var(--wash);
}
.snow-search-none {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--mist);
}

.snow-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ランキング */
.snow-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.snow-rank li + li {
  border-top: 1px solid var(--wash);
}
.snow-rank-item {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 8px;
  padding: 9px 2px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--ui);
}
.snow-rank-item:hover,
.snow-rank-item:focus-visible {
  background: var(--snow);
}
.snow-rank-n {
  font: 600 12px var(--data);
  color: var(--mist);
  text-align: right;
}
.snow-rank-name {
  display: grid;
  min-width: 0;
}
.snow-rank-name b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snow-rank-name small {
  font-size: 11px;
  line-height: 1.5;
  color: var(--graphite);
}
.snow-rank-val {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  padding-bottom: 6px;
}
.snow-rank-val i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 2px;
}
.snow-rank-val b {
  font: 600 17px/1 var(--data);
  color: var(--ink);
}
.snow-rank-val small {
  font-size: 11px;
  color: var(--graphite);
}
.snow-rank-empty,
.snow-rank-more {
  padding: 10px 2px;
  font-size: 13px;
  color: var(--graphite);
}
.snow-excluded {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--mist);
}
.snow-madeby {
  margin: 0;
  font-size: 11px;
  color: var(--mist);
}
.snow-about a {
  color: var(--link);
}
.snow-excluded[hidden] {
  display: none;
}

.snow-about ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--graphite);
}

/* ===== 地点の詳細（シート） ===== */
@media (min-width: 1024px) {
  .snow-sheet {
    width: 520px;
  }
}
.snow-sheet .sheet-body {
  padding: 4px 18px 24px;
  display: grid;
  /* 行は中身の高さ（overflow: hidden の欄が、シートの高さに合わせて潰れないように） */
  grid-auto-rows: max-content;
  gap: 16px;
  align-content: start;
}
.sd-meta {
  margin: 0;
  font-size: 13px;
  color: var(--graphite);
}
.sd-warn {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdf0ee;
  color: #8a2a22;
  font-size: 13px;
}
.sd-note {
  margin: 0;
  font-size: 12px;
  color: var(--mist);
}
.sd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.sd-stat {
  background: var(--paper);
  padding: 10px 11px 9px;
  display: grid;
  align-content: start;
  gap: 3px;
}
.sd-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--graphite);
}
.sd-stat-value {
  font: 600 22px/1.1 var(--data);
  color: var(--ink);
}
.sd-stat-unit {
  font: 500 12px var(--ui);
  color: var(--graphite);
  margin-left: 3px;
}
.sd-stat-sub {
  font-size: 11px;
  line-height: 1.45;
  color: var(--mist);
}
@media (max-width: 420px) {
  .sd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sd-sec {
  display: grid;
  gap: 8px;
}
.sd-sec h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--graphite);
}
.sd-facts {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.sd-range {
  width: fit-content;
}
.sd-range[hidden],
.linkish[hidden] {
  display: none;
}
.sd-range button {
  padding: 6px 12px 5px;
  font: 500 12px var(--ui);
  color: var(--graphite);
}
.sd-range button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.linkish {
  justify-self: start;
  border: 0;
  background: none;
  padding: 0;
  font: 500 12px var(--ui);
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}
.sd-near-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.sd-near-list a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--link);
}
.sd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== グラフ ===== */
.sc-area {
  position: relative;
  min-height: 120px;
}
.sc-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  user-select: none;
}
.sc-title {
  font: 700 11px var(--ui);
  fill: var(--graphite);
}
.sc-tick {
  font: 500 10px var(--data);
  fill: var(--mist);
}
.sc-key {
  font: 500 10px var(--ui);
  fill: var(--graphite);
}
.sc-empty {
  margin: 0;
  padding: 24px 0;
  font-size: 13px;
  color: var(--mist);
  text-align: center;
}
.sc-tip {
  position: absolute;
  top: 0;
  z-index: 3;
  min-width: 150px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(17, 26, 34, 0.16);
  padding: 7px 9px;
  display: grid;
  gap: 3px;
  pointer-events: none;
  font-size: 11px;
}
.sc-tip[hidden] {
  display: none;
}
.sc-tip-time {
  font: 600 11px var(--data);
  color: var(--ink);
  margin-bottom: 2px;
}
.sc-tip-row {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.sc-tip-row i {
  width: 10px;
  height: 2px;
  border-radius: 1px;
}
.sc-tip-row b {
  font: 600 12px var(--data);
  color: var(--ink);
}
.sc-tip-row span {
  color: var(--graphite);
}
.sc-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.sc-table-wrap[hidden] {
  display: none;
}
.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sc-table th {
  position: sticky;
  top: 0;
  background: var(--snow);
  font-weight: 500;
  color: var(--graphite);
  text-align: right;
  padding: 6px 8px;
  white-space: nowrap;
}
.sc-table td {
  font-family: var(--data);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding: 4px 8px;
  border-top: 1px solid var(--wash);
  white-space: nowrap;
}
.sc-table th:first-child,
.sc-table td:first-child {
  text-align: left;
}

/* 地点の値の升が 1 つだけ余った行は、横いっぱいに広げる（降水量の升を足して 7 つになった・2026-10-22） */
@media (min-width: 421px) {
  .sd-stat:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .sd-stat:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
  }
}

/* ===== 上空の寒気（2026-11-08） ===== */
.snow-cold {
  display: grid;
  gap: 4px;
  margin: 2px 0 6px 24px;
}
.snow-cold[hidden] {
  display: none;
}
.snow-cold-levels {
  max-width: 100%;
  flex-wrap: wrap;
}
.snow-cold-levels button {
  font-size: 12px;
  padding-left: 8px;
  padding-right: 8px;
}
.snow-cold-legend .snow-legend-cell {
  width: 14px;
}
@media (max-width: 700px) {
  .snow-cold-legend .snow-legend-cell {
    width: 13px;
  }
}

/* ===== スマホ・タブレットの幅：地図の上を空ける（2026-11-08 CEO「地図上にメーターや指示などがごちゃごちゃ乱立しすぎて、
   実際に見たい地図がうまく表示できていない」→ 案を承認）=====
   ① 上の 2 段（指標・降雪の時間）は「降雪 24時間 ▾」のボタン 1 つに畳む（押すと開く）
   ② 時刻の送りと凡例は、地図の上でなく地図の真下の帯にする（地図にかぶらない）
   ③ 拡大・縮小のボタンは出さない（指でつまんで拡大できる）
   PC の幅（1024px 以上）は今までどおり */
.snow-metric-btn {
  display: none;
}
@media (max-width: 1023px) {
  .snow-controls {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
  }
  .snow-controls .snow-row {
    display: contents;
  }
  .snow-metric-btn {
    display: inline-flex;
    grid-row: 1;
    grid-column: 1;
  }
  .snow-controls #overlay-btn {
    grid-row: 1;
    grid-column: 2;
  }
  .snow-controls #metric-groups {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .snow-controls #metric-windows {
    grid-row: 3;
    grid-column: 1 / -1;
  }
  .snow-controls #grid-ctl {
    grid-row: 4;
    grid-column: 1 / -1;
  }
  .snow-controls:not(.metric-open) #metric-groups,
  .snow-controls:not(.metric-open) #metric-windows {
    display: none;
  }

  /* ② 地図の下の帯。地図と時刻の行を合わせて、上のバーと「雪崩を記録する」の間に収める。凡例はその下に続き、スクロールして見る
     （時刻の行までの高さ --snow-strip-h は snow-page.js が測る・2026-11-08 CEO「地図を大きく」） */
  .snow-page .map-wrap {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .snow-page #map {
    position: relative;
    inset: auto;
    flex: none;
    height: calc(
      100svh - var(--bar-h) - env(safe-area-inset-top, 0px) -
        var(--action-bar-h) - env(safe-area-inset-bottom, 0px) - var(--snow-strip-h, 0px)
    );
    min-height: 300px;
  }
  .snow-page .snow-bottom {
    position: static;
    max-width: none;
    width: 100%;
    justify-items: stretch;
    gap: 8px;
    padding: 8px 12px 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    pointer-events: auto;
  }
  .snow-page .snow-bottom .snow-time,
  .snow-page .snow-bottom .snow-obs-time {
    width: 100%;
  }
  .snow-page .snow-bottom .snow-legend {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    gap: 3px;
  }
  .snow-page .snow-bottom .snow-legend-bar {
    width: 100%;
    max-width: 520px;
  }
  .snow-page .snow-bottom .snow-legend-cell,
  .snow-page .snow-bottom .snow-cold-legend .snow-legend-cell {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  /* ③ */
  .snow-page .leaflet-control-zoom {
    display: none;
  }
}
