/* rainradar public weather page.
   Light by default, a different visual language from the operations dashboard.
   No build step, no framework. */

:root {
  --bg: #f4f1ea;
  --paper: #fffcf7;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #ddd6c8;
  --accent: #1f6feb;
  --rain: #2b6cb0;
  --dry: #8a9098;
  --warn: #b45309;
  --good: #2f6f4e;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --map-sea: #c5d6e4;
  --map-land: #f3efe6;
  --map-coast: #5e7588;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --paper: #1a2028;
    --ink: #eef2f6;
    --muted: #9aa3ad;
    --line: #2c3540;
    --accent: #6cb0ff;
    --rain: #7eb6e8;
    --dry: #8b95a0;
    --warn: #e0a454;
    --good: #7dcaa0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --map-sea: #15202c;
    --map-land: #2c3a48;
    --map-coast: #9ab0c2;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html.standalone,
html.standalone body {
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  border: 0;
}

a { color: var(--accent); }

/* --- header --- */
.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 22px;
  position: sticky;
  top: 0;
  z-index: 1100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

body.has-place .site-header { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.logo {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.refresh-banner {
  flex: 1 1 100%;
  order: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 6px 4px 2px;
  font-size: 13px;
  color: var(--muted);
}
.refresh-banner[hidden] { display: none !important; }
.refresh-banner.is-error { color: var(--warn); }

.refresh-spinner,
.ptr-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ptr {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 16px;
  left: auto;
  z-index: 1200;
  width: 36px;
  height: 36px;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: none;
}
.ptr[hidden] { display: none !important; }
.ptr.is-visible {
  opacity: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.ptr .ptr-spinner { width: 22px; height: 22px; }
.ptr:not(.is-refreshing) .ptr-spinner { animation-play-state: paused; }

.panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  color: var(--muted);
  font-size: 14px;
}
.panel-loading .refresh-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.nowcast-strip > .panel-loading,
.bars > .panel-loading,
.hourly > .panel-loading {
  flex: 1 1 auto;
  align-self: center;
  min-height: 72px;
  padding: 8px 0;
}
.daily > .panel-loading { grid-column: 1 / -1; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.search {
  position: relative;
  flex: 1 1 auto;
  max-width: 560px;
}

.search-field {
  position: relative;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  font: 16px/1.3 var(--sans);
  outline: none;
  box-shadow: none;
}

.search input[type="search"]::-webkit-search-cancel-button,
.search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.locate {
  appearance: none;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locate:hover,
.locate:focus-visible {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  outline: none;
}

.locate:disabled {
  opacity: 0.65;
  cursor: wait;
}

.locate-status {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 4px 0;
}

.suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style: none;
  margin: 0; padding: 6px;
  box-shadow: var(--shadow);
  z-index: 50;
}

.suggest li {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.suggest li[aria-selected="true"],
.suggest li:hover { background: color-mix(in srgb, var(--accent) 10%, var(--paper)); }

.suggest .name { font-weight: 600; }
.suggest .meta { color: var(--muted); font-size: 13px; }

main { max-width: 960px; margin: 0 auto; padding: 12px 22px 64px; }

/* --- landing --- */
.landing {
  padding: 12vh 0 8vh;
  text-align: center;
}

.landing h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 34em;
  margin: 0 auto;
}

.landing .search {
  width: 100%;
  max-width: 560px;
  margin: 28px auto 0;
  flex: none;
  text-align: left;
}

.landing .locate-status {
  text-align: center;
}

body.has-place .landing { display: none; }
body.has-place .search { max-width: 420px; margin-left: auto; }

/* --- hero --- */
.hero {
  padding: 18px 0 8px;
}

.hero .where {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.hero h1 {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1.3;
}

.hero .phrase {
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero .summary {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero .timing {
  font-size: 18px;
  color: var(--rain);
  font-weight: 550;
  margin: -2px 0 14px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.fact span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.fact b { font-size: 22px; font-weight: 650; }

.note { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.place-note {
  background: color-mix(in srgb, var(--warn) 12%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0 0 16px;
  font-size: 14px;
}

/* --- panels --- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px 20px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: flex;
}

.panel-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.panel-chip {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--good);
  background: color-mix(in srgb, var(--good) 16%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line));
  border-radius: 999px;
  padding: 2px 8px;
}

.panel-chip[hidden] { display: none !important; }

.panel-summary {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-chevron {
  flex: 0 0 auto;
  width: 0.45em;
  height: 0.45em;
  margin-left: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.panel.is-collapsed .panel-chevron {
  transform: rotate(-45deg);
}

.panel.is-collapsed .panel-body {
  display: none;
}

.panel.is-collapsible.is-collapsed {
  padding-bottom: 14px;
}

.panel-help {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font: 650 14px/1 var(--sans);
  cursor: pointer;
}

.panel-help:hover,
.panel-help:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.panel-help[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

.panel-tip {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.panel-tip[hidden] { display: none !important; }
.panel-tip p { margin: 0 0 8px; }
.panel-tip p:last-child { margin-bottom: 0; }
.panel-tip ol {
  margin: 0;
  padding-left: 1.2em;
}
.panel-tip li { margin: 0 0 4px; }

.panel.is-collapsible .panel-body {
  margin-top: 10px;
}

.map-wrap {
  position: relative;
}

.map {
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
  background: var(--map-sea);
  border: 1px solid var(--line);
}

.map-empty {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.map-empty[hidden] { display: none; }

.map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
}
.map-controls[hidden] { display: none !important; }
.map-play,
#map-play {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
}
#map-play[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.map-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 4.5rem;
}
.map-scrub {
  flex: 1 1 140px;
  min-width: 120px;
  accent-color: var(--accent);
}
.map-times {
  flex: 1 1 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.nowcast-strip .col.is-map-time .bar {
  box-shadow: 0 0 0 2px var(--accent);
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.legend i {
  width: 14px; height: 14px; border-radius: 3px;
  display: inline-block; margin-right: 6px;
  vertical-align: -2px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

/* --- bars --- */
.chart-plot {
  position: relative;
  padding-left: 2.75rem;
}
.chart-scale {
  position: absolute;
  left: 2.75rem;
  right: 0;
  top: var(--plot-top, 0);
  height: var(--plot-height, 56px);
  pointer-events: none;
  z-index: 0;
}
.chart-tick {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed color-mix(in srgb, var(--line) 85%, var(--muted));
}
.chart-tick span {
  position: absolute;
  right: calc(100% + 8px);
  top: 0;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nowcast-plot { --plot-top: 22px; --plot-height: 56px; }
.past-plot { --plot-top: 18px; --plot-height: 90px; }
.hourly-plot { --plot-top: 54px; --plot-height: 48px; }

.chart-plot .nowcast-strip,
.chart-plot .bars,
.chart-plot .hourly {
  position: relative;
  z-index: 1;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 132px;
  padding-top: 18px;
}

.bars .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
  min-width: 0;
}

.bars .hit {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 24px;
}

.bars .bar {
  width: 100%;
  max-width: 42px;
  background: var(--rain);
  border-radius: 6px 6px 2px 2px;
  min-height: 2px;
}

.bars .bar.dry { background: var(--line); }
.bars .label { font-size: 11px; color: var(--muted); }

/* --- hourly --- */
.hourly {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.hour {
  flex: 0 0 52px;
  text-align: center;
  font-size: 12px;
}

.hour .t { color: var(--muted); margin-bottom: 6px; }
.hour .temp { font-weight: 650; font-size: 14px; }
.hour .rainbar {
  height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 6px 0;
}
.hour .rainbar i {
  display: block;
  width: 10px;
  background: var(--rain);
  border-radius: 3px 3px 1px 1px;
  min-height: 2px;
}
.hour .rainbar i.dry { background: var(--line); }
.hour .mm { color: var(--muted); font-size: 11px; }
.hour .chance { color: var(--muted); font-size: 11px; }
.hour .chance.is-likely { color: var(--rain); }
.hour .rainbar i.from-nowcast,
.hour .rainbar i.handoff { background: transparent; min-height: 0; }

/* --- daily --- */
/* One shared parent grid so columns line up across days. Each .day is a
   subgrid row with a single full-width rule — not display:contents with a
   border on every cell, which staggers when wet/precip heights differ. */
.daily {
  display: grid;
  grid-template-columns:
    6.5rem
    minmax(5.25rem, max-content)
    7.35rem
    minmax(7.75rem, 1fr)
    4.35rem;
  column-gap: 12px;
}
.daily > .empty { grid-column: 1 / -1; }
.day {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  column-gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.day:first-child { border-top: 0; }
.day > * { min-width: 0; }
.day .name {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day .sky,
.day .wet {
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day .wet { font-weight: 500; }
.day .wet.is-likely { color: var(--rain); }
.day .wet.is-possible { color: var(--warn); }
.day .wet.is-unlikely { color: var(--dry); }
.day .wet .likely {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.day .temps {
  display: grid;
  grid-template-columns: 2.35rem minmax(2.75rem, 1fr) 2.35rem;
  align-items: center;
  column-gap: 8px;
  font-variant-numeric: tabular-nums;
}
.day .temps .low {
  color: var(--muted);
  text-align: right;
  font-weight: 500;
  font-size: 14px;
}
.day .temps .high {
  font-weight: 650;
  font-size: 14px;
}
.day .range {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--line) 88%, var(--muted));
  overflow: hidden;
}
.day .range i {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warn));
}
.day .precip {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.day .precip.has-rain {
  color: var(--rain);
  font-weight: 600;
}

.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

.nowcast-strip {
  display: flex;
  gap: 4px;
  align-items: stretch;
  min-height: 72px;
  overflow: visible;
  padding: 22px 8px 0 0;
}
.nowcast-strip .col {
  flex: 1;
  min-width: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.nowcast-strip .hit {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  min-height: 24px;
}
.nowcast-strip .bar {
  position: relative;
  width: 100%;
  background: var(--rain);
  border-radius: 3px 3px 1px 1px;
  min-height: 2px;
}
.nowcast-strip .bar.dry { background: var(--line); }
.nowcast-strip .bar.missing {
  background: transparent;
  border: 1px dashed var(--muted);
  min-height: 8px;
  box-sizing: border-box;
}
.nowcast-strip .lbl {
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.bar-hit { cursor: pointer; }
.tip-anchor { position: relative; }
.bar-hit:hover .tip-anchor,
.bar-hit:focus-visible .tip-anchor,
.bar-hit.is-selected .tip-anchor {
  filter: brightness(1.12);
  outline: none;
}
.bar-hit:hover .tip-anchor::after,
.bar-hit:focus-visible .tip-anchor::after,
.bar-hit.is-selected .tip-anchor::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  box-shadow: var(--shadow);
}

/* --- rain alerts --- */
.alerts-place {
  margin: 0 0 10px;
  font-weight: 650;
}
.alerts-place-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.alerts-enabled {
  color: var(--good);
  font-weight: 650;
  margin: 0 0 10px;
}
.alerts-summary {
  color: var(--muted);
  margin: 0 0 4px;
}
.alerts-field {
  margin: 0 0 14px;
}
.alerts-field > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
}
.alerts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.alerts-actions button {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
}
.alerts-actions button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.alerts-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.alerts-status {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}
.alerts-status.error { color: var(--warn); }

.about {
  max-width: 40em;
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.about-back {
  margin: 0 0 20px;
  font-size: 14px;
}

.about h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}

.about .lede {
  margin: 0 0 16px;
  text-align: left;
  max-width: none;
}

.about h2 {
  margin: 28px 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.about p { margin: 0 0 12px; }
.about p:last-child { margin-bottom: 0; }

.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 22px 40px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0 0 8px; }
.site-method { max-width: 42em; }
.site-credit { letter-spacing: 0.02em; }

@media (max-width: 720px) {
  .daily { display: block; }
  .day {
    display: grid;
    grid-column: auto;
    grid-template-columns: minmax(5.75rem, 1.25fr) minmax(6.75rem, 1.1fr) 3.6rem;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    align-items: center;
  }
  .day:first-child { border-top: 0; }
  .day > * { min-width: 0; }
  .day .name {
    grid-column: 1;
    grid-row: 1;
    overflow: visible;
    text-overflow: clip;
  }
  .day .sky { grid-column: 1; grid-row: 2; font-size: 13px; }
  .day .wet { grid-column: 1; grid-row: 3; font-size: 13px; }
  .day .wet:empty { display: none; }
  .day .temps {
    grid-column: 2;
    grid-row: 1 / -1;
    grid-template-columns: 2.15rem minmax(2.25rem, 1fr) 2.15rem;
    column-gap: 8px;
  }
  .day .precip { grid-column: 3; grid-row: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  .search { max-width: none; flex-basis: 100%; }
  body.has-place .search { max-width: none; margin-left: 0; }
  .locate { width: 44px; height: 44px; }
  .search input { padding-right: 52px; }
  .landing { padding-top: 6vh; }
  .map { height: 280px; }
}
