/* /weather (Scene Weather). Colors come from app.css's light/dark tokens. */
:root { --moon-lit: #f5e9c8; --moon-dark: #44403c; --rain: #1d4ed8; }
@media (prefers-color-scheme: dark) {
  :root { --moon-lit: #fdf4d6; --moon-dark: #2a2622; --rain: #60a5fa; }
}

.h2 { font-size: 1.1rem; }
.h3 { font-size: 1.05rem; margin: 0 0 12px; }

.place-field { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px -12px rgb(0 0 0 / .35);
  max-height: 320px; overflow-y: auto;
}
.suggest li { padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.suggest .cdp { color: var(--muted); font-size: .85rem; }

.date-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1fr); gap: 12px; }

.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.result-title { font-size: clamp(1.4rem, 5vw, 1.8rem); letter-spacing: -.02em; margin: 0; }
.units { display: inline-flex; flex: none; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.units button { font: inherit; font-weight: 700; font-size: .9rem; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.map-hint { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.map { height: 300px; border-radius: 10px; border: 1.5px solid var(--line); z-index: 0; }
@media (max-width: 560px) { .map { height: 240px; } }
.loading { color: var(--muted); margin: 0; }
.summary { font-size: 1.15rem; font-weight: 600; margin: 0 0 14px; }
#wx .stats { margin-bottom: 12px; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
#wx .stat b { font-size: clamp(1.5rem, 6vw, 2rem); }
.late { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--rain); background: color-mix(in srgb, var(--rain) 8%, var(--card)); border-radius: 0 8px 8px 0; font-size: .95rem; }
.kinds { margin: 0 0 12px; }
.kinds span { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); font-size: .875rem; font-weight: 600; }

.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
.strip div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; font-variant-numeric: tabular-nums; font-size: .85rem; }
.strip div.on { border-color: var(--accent); border-width: 2px; padding: 7px 5px; }
.strip b { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.strip .t { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); margin-top: 4px; }
.strip .lo { display: block; color: var(--muted); }
.strip .r { display: block; color: var(--rain); min-height: 1.3em; font-size: .8rem; margin-top: 2px; }

.sky-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.times { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-variant-numeric: tabular-nums; }
.times dt { color: var(--muted); }
.times dd { margin: 0; font-weight: 600; }
.times dd small { color: var(--muted); font-weight: 400; }
.moon { display: flex; gap: 14px; align-items: center; }
.moon svg { flex: none; }
.moon-name { font-weight: 700; font-size: 1.1rem; margin: 0 0 2px; }
.moon .muted { margin: 0; }
.moon-dark { fill: var(--moon-dark); }
.moon-lit { fill: var(--moon-lit); }

.notes { margin: 14px 0 0; padding: 12px 14px 12px 32px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); border-radius: 10px; }
.notes li { margin: 0 0 6px; }
.notes li:last-child { margin: 0; }

.actions { margin: 0 0 24px; }
.about p:last-child { margin: 0; }

@media (max-width: 560px) {
  .sky-grid { grid-template-columns: 1fr; }
  .strip { gap: 4px; }
  .strip div { padding: 6px 2px; font-size: .78rem; }
}

/* the stations map, shown when the nearest station is far away */
.stations { margin: 14px 0 6px; }
.stations-map { height: 260px; }
.stations .key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; vertical-align: -1px; margin: 0 3px 0 0; }
.stations .key.spot { background: #c2410c; }
.stations .key.used { background: #1d4ed8; }
.stations .key.other { background: #60a5fa; }
.st-pop { font: 14px/1.4 system-ui, sans-serif; color: #1c1917; min-width: 180px; }
.st-pop b { display: block; font-size: 15px; }
.st-pop .d { color: #57534e; font-size: 13px; margin-bottom: 4px; }
.st-pop button { margin-top: 8px; font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 6px; border: 1px solid #1d4ed8; background: #1d4ed8; color: #fff; cursor: pointer; }
.st-pop .now { margin-top: 6px; font-size: 13px; color: #1d4ed8; }

/* map markers (MapLibre) and the Names switch */
.map-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 3px rgba(0,0,0,.45); cursor: pointer; }
.map-dot.spot { width: 16px; height: 16px; background: #c2410c; cursor: default; }
.map-dot.used { width: 16px; height: 16px; background: #1d4ed8; }
.map-dot.other { background: #60a5fa; }
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.map-head .names { flex: none; margin-bottom: 8px; }
.maplibregl-popup-content { padding: 10px 12px; border-radius: 8px; }
