/* ==========================================================================
   weather/css/jp.css — this site's skin over WeatherDaddy's style.css.

   style.css is WeatherDaddy's own: light type on a dark page, with its
   weather effects (#weather-fx: clouds, rain, snow, fog) drifting behind
   the forecast. Those effects are white and pale blue and only read on a
   dark sky, so this page keeps WeatherDaddy's arrangement, forecast straight
   on the background, and makes the background the season's own wash at
   dusk: the site's colours, deep enough for the weather to show.

   On top of that: the place name on the title line with refresh and the
   gear beside it, the site's type, and the full-screen settings screens as
   the site's light panels.
   ========================================================================== */

/* --- two skies ----------------------------------------------------------
   While the sun is up where you're looking, the page is the season's own
   daylight wash like every other page: dark type, the forecast in the
   site's cream cards, and the big temperature left open so the weather
   effects drift behind it. After sunset there (<html data-wxsky="night">,
   set from the city's sunrise and sunset in ui-dashboard.js) the wash
   turns to dusk: light type, and the cards go to faint glass so the
   white rain, snow and clouds show through. */
:root {
  --bg-color:       transparent;
  --header-bg:      transparent;
  --font-family:    var(--font-body);
  /* on the open sky: the season's wash ink where it has one (winter and
     summer are deep enough for light type), the brand ink elsewhere */
  --text-primary:   var(--wash-ink-deep, var(--ink-deep));
  --text-secondary: var(--wash-ink-soft, var(--ink-soft));
  --accent-color:   var(--wash-ink, var(--ink));
  --surface-color:  rgba(47,74,114,.08);
  --border-color:   rgba(47,74,114,.12);
  /* the cards */
  --wx-card:        rgba(255,255,255,.72);
  --wx-card-line:   rgba(47,74,114,.14);
  --wx-card-shadow: var(--shadow-sm);
  --wx-pick-bg:     var(--ink);
  --wx-pick-ink:    #fff;
  /* where the page starts below the site's bar; the overlay cube uses it */
  --wd-top:         calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
}
html[data-season="winter"] { --wx-card: rgba(243,248,253,.9); }
html[data-wxsky="night"] {
  --text-primary:   #f3f7fd;
  --text-secondary: rgba(222,232,246,.74);
  --accent-color:   #f4c46a;
  --surface-color:  rgba(255,255,255,.1);
  --border-color:   rgba(255,255,255,.12);
  --wx-card:        rgba(255,255,255,.06);
  --wx-card-line:   rgba(255,255,255,.1);
  --wx-card-shadow: none;
  --wx-pick-bg:     rgba(255,255,255,.16);
  --wx-pick-ink:    #f3f7fd;
}

/* style.css paints the page black; here it's the season (what an
   overscroll shows), or the dusk sky's colour at night. (Its hidden
   scrollbar stays hidden: a scrollbar's track drew as a stripe of the
   season's bright colour down the side.) */
body {
  background: var(--season-bg-flat, #dfe4ee);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-user-select: auto;
  user-select: auto;
  transition: background-color 900ms var(--ease);
}
html[data-wxsky="night"] body { background: color-mix(in srgb, var(--season-bg-flat, #3a4f6e) 24%, #060e20); }

/* Dusk is a veil over the season's wash that fades in and out, so a city
   swipe from day to night (or sunset with the page open) dims gently. It
   sits on body::before, above #backdrop (spring's blossoms are its own
   ::before) and below everything else. Winter is a night sky already,
   so its veil is lighter. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6,14,32,.84) 0%, rgba(6,14,32,.74) 55%, rgba(6,14,32,.8) 100%);
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
html[data-season="winter"] body::before { background: linear-gradient(180deg, rgba(6,14,32,.46), rgba(6,14,32,.38)); }
html[data-wxsky="night"] body::before { opacity: 1; }

/* By day, rain and thunder streaks are pale blue on a pale sky: darken
   them to a slate blue so they read. Winter's wash is a dark night blue
   already, so its rain stays pale. Snow stays white. */
html:not([data-wxsky="night"]):not([data-season="winter"]) #weather-fx:is(.fx-rain, .fx-rain-light, .fx-rain-heavy, .fx-thunder) .fx-layer {
  filter: brightness(.24) saturate(2.3);
}
/* Even so, daytime rain was too faint to tell it was raining (user,
   2026-11-13): each layer is one screen sliding from a screen above to a
   screen below, so half its drops are off screen at any moment, and the
   rest are specks mostly behind the cards. By day each drop layer is three
   screens tall with the drops repeated in each, so every drop is always
   falling somewhere on screen (the fall and its speed are unchanged: 200vh
   is two repeats, so the loop stays seamless), and the drops are a little
   longer and wider. Laying them twice across as well was too much. Night
   and winter keep the pale drops as they were. The Android app matches. */
html:not([data-wxsky="night"]):not([data-season="winter"]) #weather-fx:is(.fx-rain, .fx-rain-light, .fx-rain-heavy) .fx-layer,
html:not([data-wxsky="night"]):not([data-season="winter"]) #weather-fx.fx-thunder :is(.fx-layer-2, .fx-layer-3) {
  top: -100%;
  bottom: auto;
  height: 300%;
  background-repeat: repeat-y;
  background-size: 100% calc(100% / 3);
  --drop-w: 1.15;
  --drop-h: 1.35;
}
/* Light rain: WeatherDaddy drew seven tiny drops on the whole screen,
   which vanished behind the cards (user, 2026-10-31). Twice as many,
   a little longer, still clearly sparser and slower than rain. */
.fx-rain-light .fx-layer-1 {
  background-image:
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(16px * var(--drop-h, 1)) at 12% 30%, rgba(200,225,255,.8), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(16px * var(--drop-h, 1)) at 38% 8%,  rgba(200,225,255,.8), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(16px * var(--drop-h, 1)) at 56% 62%, rgba(200,225,255,.8), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(16px * var(--drop-h, 1)) at 82% 18%, rgba(200,225,255,.8), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(16px * var(--drop-h, 1)) at 68% 86%, rgba(200,225,255,.8), transparent 70%);
}
.fx-rain-light .fx-layer-2 {
  background-image:
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 25% 52%, rgba(200,225,255,.72), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 47% 34%, rgba(200,225,255,.72), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 72% 42%, rgba(200,225,255,.72), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 90% 70%, rgba(200,225,255,.72), transparent 70%),
    radial-gradient(ellipse calc(3px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 35% 80%, rgba(200,225,255,.72), transparent 70%);
}
.fx-rain-light .fx-layer-3 {
  background-image:
    radial-gradient(ellipse calc(2px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at  6% 55%, rgba(200,225,255,.7), transparent 70%),
    radial-gradient(ellipse calc(2px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 20% 14%, rgba(200,225,255,.7), transparent 70%),
    radial-gradient(ellipse calc(2px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 62% 22%, rgba(200,225,255,.7), transparent 70%),
    radial-gradient(ellipse calc(2px * var(--drop-w, 1)) calc(14px * var(--drop-h, 1)) at 92% 88%, rgba(200,225,255,.7), transparent 70%);
}

/* Fog, stronger than WeatherDaddy's faint wisps (user, 2026-10-31): wider,
   denser banks, whiter by day so they read on a light wash. */
.fx-fog .fx-layer-1 { background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(236,242,248,.5), rgba(236,242,248,.32) 45%, transparent 80%); background-size: 110vw 38vh; }
.fx-fog .fx-layer-2 { background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(236,242,248,.44), rgba(236,242,248,.28) 45%, transparent 82%); background-size: 120vw 34vh; }
.fx-fog .fx-layer-3 { background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(236,242,248,.4), rgba(236,242,248,.24) 45%, transparent 82%); background-size: 100vw 30vh; }
html:not([data-wxsky="night"]) .fx-fog .fx-layer { filter: brightness(1.08); opacity: 1; }
html:not([data-wxsky="night"]) .fx-fog .fx-layer-1 { background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(250,252,255,.72), rgba(250,252,255,.46) 45%, transparent 80%); }
html:not([data-wxsky="night"]) .fx-fog .fx-layer-2 { background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(250,252,255,.64), rgba(250,252,255,.4) 45%, transparent 82%); }
html:not([data-wxsky="night"]) .fx-fog .fx-layer-3 { background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(250,252,255,.58), rgba(250,252,255,.36) 45%, transparent 82%); }
/* White clouds and haze on a light wash (spring's green, fall's gold) get a
   soft blue-grey shadow underneath so they stand off it. The layer is
   filtered once and then only moved, so the drift stays cheap. */
html:not([data-wxsky="night"]):not([data-season="winter"]) #weather-fx:is(.fx-clouds, .fx-clouds-many, .fx-haze) .fx-layer {
  filter: drop-shadow(0 6px 10px rgba(29,49,83,.28));
}

/* The site's reset makes every image and SVG a block; WeatherDaddy's are
   inline unless it says otherwise (the wind arrow follows "11.5 mph W" on
   the same line, for one). As low in specificity as that reset, so any
   rule of WeatherDaddy's still wins. */
:where(.app-container) :is(svg, img) { display: inline; }

/* The site's page shell, opened up: WeatherDaddy's column sets the width
   (500px, or two columns on a wide landscape screen). */
.wd-shell { max-width: none; padding: 0 0 2rem; }
.app-container { padding: 0; }   /* WeatherDaddy's sections pad themselves */

/* --- the place in the site's bar: ? · place ⌄ ★ · gear ------------------ */
/* (Refresh now is in the gear's drawer; the forecast refreshes itself.) */
/* (site.css .topbar__title). The name opens Locations, so it takes taps;
   it trails off with "…" and the star stays beside it. */
.topbar__title--wx {
  display: flex; align-items: center; justify-content: center; gap: .15rem;
  pointer-events: auto; overflow: visible;
}
html .topbar #location-name {
  font: inherit; color: inherit; letter-spacing: inherit;
  line-height: var(--topbar-h); padding: 0; text-shadow: none;
  transition: none;
}
html .topbar #location-name::after { font-family: var(--font-body); font-size: .8rem; }
.topbar #save-btn-container { flex: none; display: flex; }
.topbar .save-loc-btn, .topbar .save-loc-btn.saved { flex: 0 0 auto; color: inherit; padding: 6px; }
.topbar .save-loc-btn { display: grid; place-items: center; margin: 0; }
.topbar .save-loc-btn svg { display: block; width: 20px; height: 20px; }
/* the star makes the title wider, so on a phone the bar leaves out the
   Install pill (the other pages still offer it) */
@media (max-width: 30rem) { .topbar:has(.topbar__title--wx) .installpill { display: none; } }

/* --- the forecast -------------------------------------------------------- */
.hero-section { padding-top: 1.75rem; }
.hero-when { text-transform: none; letter-spacing: .02em; font-style: italic; font-weight: 500; font-size: .95rem; }
.hero-desc::first-letter { text-transform: uppercase; }
.hero-temp-large { font-family: var(--font-display); font-weight: 400; }
html[data-wxsky="night"] .hero-temp-large { text-shadow: 0 2px 14px rgba(4,12,28,.35); }
/* style.css lets the cube faces paint the page's black behind a city swipe */
.cube-face { background: transparent; }

/* The cards: everything under the big temperature. They carry the brand
   ink by day whatever the season, as the other pages' cards do. */
.stats-pager, .day-detail-section, .hourly-scroll, .daily-list {
  margin: 0 .75rem .75rem;
  background: var(--wx-card);
  border: 1px solid var(--wx-card-line);
  border-radius: var(--radius-card);
  box-shadow: var(--wx-card-shadow);
  transition: background 900ms var(--ease), border-color 900ms var(--ease);
}
html:not([data-wxsky="night"]) :is(.stats-pager, .day-detail-section, .hourly-scroll, .daily-list) {
  --text-primary:   var(--ink-deep);
  --text-secondary: var(--ink-soft);
  --accent-color:   var(--ink);
  color: var(--ink-deep);
}
.quick-stats-grid { border: 0; }
.stats-page-arrow { color: var(--text-secondary); opacity: .55; width: 20px; }
.stats-page-arrow:hover, .stats-page-arrow:active { color: var(--text-primary); opacity: 1; }
.day-detail-section { padding: .75rem 1rem 1rem; }
.graph-container { margin-bottom: .5rem; }
.hourly-scroll { padding: .75rem; gap: .5rem; }
.hourly-tile { border-radius: var(--radius); }
.hourly-tile.active-day { background: var(--surface-color); }
.hourly-tile.active-hour { background: var(--wx-pick-bg); box-shadow: none; color: var(--wx-pick-ink); }
.hourly-tile.active-hour .hourly-time { color: inherit; opacity: .85; }
.hourly-day-divider { margin: 0 .35rem; }
.daily-list { padding: .35rem .5rem; }
.daily-item { border-radius: var(--radius); }
.daily-item:last-child { border-bottom: 0; }
.daily-item.active { background: var(--surface-color); }
/* The middle column: what stands out about the day (ui-daynotes.js).
   The day/date column stops growing so the note takes the free space;
   an empty note still holds it, keeping temps and icons to the right. */
.daily-day-date { flex: 0 0 auto; min-width: 3.4rem; }
.daily-note {
  flex: 1 1 auto; min-width: 0; padding: 0 .6rem;
  text-align: center; font-size: .8rem; line-height: 1.2;
  color: var(--text-secondary);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
}
.daily-note--warn { color: var(--text-primary); font-weight: 600; }
/* The day view's list of everything notable about the day on screen,
   under the hero's other lines (ui-daynotes.js _dayNotesHTML). */
.day-notes {
  list-style: none; margin: 1rem auto 0; padding: 0; max-width: 30rem;
  display: flex; flex-direction: column; gap: .4rem;
  font-size: .9rem; line-height: 1.3;
}
.day-notes__title { font-weight: 600; color: var(--text-primary); }
.day-notes__detail { color: var(--text-secondary); }
.day-notes__title + .day-notes__detail::before { content: " · "; }
.day-notes__item--warn .day-notes__title { color: var(--accent-color); }
html:not([data-wxsky="night"]) .graph-guideline { stroke: rgba(47,74,114,.15); }

/* Radar and Forecaster's notes: the site's ghost button */
.notes-btn, .radar-btn {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  font-size: .85rem;
  padding: .5rem 1rem .5rem .85rem;
}
.notes-btn:hover, .radar-btn:hover { border-color: var(--accent-color); color: var(--accent-color); background: var(--surface-color); }
.notes-btn:active, .radar-btn:active { color: var(--accent-color); }
.notes-btn:focus-visible, .radar-btn:focus-visible { outline: 3px solid var(--focus); }

/* the credits line and the footer, on the open sky */
.wx-credits { max-width: 34rem; margin: 1.25rem auto 0; padding: 0 1.25rem; text-align: center; font-size: .8rem; line-height: 1.55; color: var(--text-secondary); }
.sitefoot { color: var(--text-secondary); }

/* --- the full-screen screens: the site's light panels ------------------- */
/* They open below the site's bar (WeatherDaddy's column is its own layer,
   under the bar), which keeps the site's "<" and menu in reach. */
.overlay-screen {
  --bg-color:       #f3f7fc;
  --surface-color:  rgba(47,74,114,.07);
  --text-primary:   #1d3153;
  --text-secondary: #4a6491;
  --accent-color:   #33578a;
  --border-color:   rgba(47,74,114,.14);
  color: var(--text-primary);
}
.overlay-screen {
  top: var(--wd-top);
  height: calc(100% - var(--wd-top));
  background-color: rgba(243,247,252,.96);
}
/* In the one-column layouts a screen is a sheet as wide as WeatherDaddy's
   column (and its closing cube), centred over the sky, rather than the
   whole window; a full-width panel would snap to the cube's width as it
   turns. (The two-column layouts close with a cube per column, from a
   full-width panel, so there it stays full width.) It slides in from the
   right as before: 50vw plus half its own width puts it in the middle. */
@media (orientation: portrait), (orientation: landscape) and (min-height: 501px) and (max-width: 899px) {
  .overlay-screen { width: min(100%, 500px); }
  /* The shadow only while open: parked off the right edge, every screen's
     shadow reached back into view, a dark band down the side. */
  .overlay-screen.open { transform: translateX(calc(-50vw - 50%)); box-shadow: var(--shadow-lg); }
}
.overlay-header {
  max-width: 40rem; width: 100%; margin: 0 auto;
  padding: .75rem 1rem;
}
.overlay-header h2 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--ink); }
.overlay-body { width: 100%; max-width: 40rem; margin: 0 auto; }
/* Closing a screen with the cube. WeatherDaddy's faces are solid black,
   which hides the page behind; here they're clear, so the sky shows. So:
   · the screen's copy fills its face (it's otherwise parked off the side,
     unseen against WeatherDaddy's black),
   · the live forecast hides for the turn (it would show through the clear
     face as a ghost of the incoming one); the place stays put in the bar.
   Only these cubes are added to <body>; a city swipe's spin elsewhere. */
.cube-face .overlay-screen { left: 0; top: 0; height: 100%; transform: none; }
body:has(> .cube-perspective:not(.wx-drawer-cube)) #weather-view { visibility: hidden; }
.back-btn, .settings-icon-btn { color: var(--ink); border-radius: 10px; }
.back-btn:hover { background: rgba(47,74,114,.08); }

.menu-option-btn {
  background: #fff;
  color: var(--ink-deep);
  border: 1px solid rgba(47,74,114,.14);
  box-shadow: var(--shadow-sm);
}
.menu-option-btn:hover { background: #f7faff; }
.menu-option-btn:active { background-color: #eef3fa; }

.segmented-control { background: rgba(47,74,114,.1); }
.segmented-control button.active { background: #fff; color: var(--ink-deep); box-shadow: var(--shadow-sm); }

.menu-search { background: #fff; border: 1px solid rgba(47,74,114,.22); }
.menu-search input { color: var(--ink-deep); }
.search-confirm-btn { color: #fff; }
.current-loc-btn { background: #fff; }
.current-loc-btn.loading::before,
.overlay-screen .city-load-spinner { border-color: rgba(47,74,114,.15); border-top-color: var(--accent-color); }
.location-card { background: transparent; }
.location-card.dragging { background: #fff; box-shadow: 0 10px 24px rgba(20,35,60,.25); }
.drop-indicator { box-shadow: 0 0 8px rgba(51,87,138,.5); }
#city-autocomplete { background: #fff; border: 1px solid rgba(47,74,114,.18); box-shadow: var(--shadow-md); scrollbar-color: rgba(47,74,114,.3) transparent; }
#city-autocomplete li { border-bottom-color: rgba(47,74,114,.08); color: var(--ink-deep); }
#city-autocomplete li:hover,
#city-autocomplete li.ac-active { background: rgba(51,87,138,.12); color: var(--ink-deep); }

.about-sources li, .accordion-item, .alert-card, .byok-status { background: #fff; }
.about-logo { box-shadow: var(--shadow-md); }
.byok-input, .byok-toggle, .push-select { background: #fff; color: var(--ink-deep); }
.checkmark { background-color: #fff; border-color: rgba(47,74,114,.3); }
.custom-checkbox:hover input ~ .checkmark { border-color: var(--accent-color); }
#import-export-textarea { background: #fff !important; color: var(--ink-deep) !important; border-color: rgba(47,74,114,.22) !important; }
#import-export-textarea::placeholder { color: rgba(47,74,114,.45); }
.wd-switch { background: rgba(47,74,114,.25); }

/* Inline colours ui-locations.js and ui.js write for the dark theme. */
#saved-locations-list [style*="#a0a0a0"],
#alerts-body [style*="#a0a0a0"] { color: var(--ink-soft) !important; }

/* Radar keeps its dark map; only its controls come over. */
.radar-play { border-color: rgba(47,74,114,.2); background: rgba(47,74,114,.06); color: var(--ink); }

/* --- the site's controls in the settings screens ------------------------ */
/* Units: the site's chips instead of a dark segmented bar */
.segmented-control { background: none; padding: 0; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.segmented-control button {
  padding: .4rem .9rem; border: 1px solid rgba(47,74,114,.2); border-radius: 999px;
  background: rgba(255,255,255,.7); color: var(--ink); font-size: .82rem; font-weight: 600;
}
.segmented-control button:hover { background: #fff; }
.segmented-control button.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
/* on/off: the site's .switch */
.wd-switch { width: 3.1rem; height: 1.8rem; border-radius: 999px; background: rgba(47,74,114,.25); }
.wd-switch[aria-checked="true"] { background: var(--ink); }
.wd-switch-knob { top: .2rem; left: .2rem; width: 1.4rem; height: 1.4rem; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.wd-switch[aria-checked="true"] .wd-switch-knob { transform: translateX(1.3rem); }
/* buttons: the site's .btn and .btn--ghost */
.byok-btn { border-radius: 999px; padding: .62rem 1.15rem; font-size: .87rem; letter-spacing: .02em; border: 1px solid var(--ink); }
.byok-btn-primary { background: var(--ink); color: #fff; }
.byok-btn-primary:hover:not(:disabled) { filter: none; background: var(--ink-deep); }
.byok-btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.byok-btn-secondary:hover:not(:disabled) { background: rgba(47,74,114,.1); }
/* dropdowns: the site's text fields */
.push-select { border: 1px solid rgba(47,74,114,.3); border-radius: var(--radius-sm); padding: .55rem .7rem; }
.push-section { background: #fff; border: 1px solid rgba(47,74,114,.12); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.push-status.is-error, .push-row-sub.is-error { color: var(--c-bad); }

/* --- this site's own bits ------------------------------------------------ */
.wd-locknote { margin: 0 0 .75rem; font-size: .9rem; color: var(--ink-soft); }
.wd-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Parked just off the bottom, these shadows reached back into view on the
   dark page too: only while showing. */
.iossheet:not([data-open="true"]),
.toast:not([data-open="true"]),
.toast-notification:not(.visible),
.overlay-screen:not(.open) .about-logo { box-shadow: none; }

/* --- the graph's captions, by day ---------------------------------------- */
html:not([data-wxsky="night"]) .graph-series-label { fill: rgba(29,49,83,.55); }
html:not([data-wxsky="night"]) .graph-position-label { fill: rgba(29,49,83,.45); }
html:not([data-wxsky="night"]) .graph-position-label.pinned { fill: rgba(29,49,83,.8); }
html:not([data-wxsky="night"]) .graph-position-line { stroke: rgba(29,49,83,.25); }
html:not([data-wxsky="night"]) .graph-position-line.pinned { stroke: rgba(29,49,83,.55); }
html:not([data-wxsky="night"]) .graph-mode-letter:not(.active) { fill: rgba(29,49,83,.35); }
/* the picked hour by day: a white tile (its ring is the temperature's colour) */
html:not([data-wxsky="night"]) .hourly-tile.active-hour { background: #fff; color: var(--ink-deep); box-shadow: var(--shadow-sm); }
.stat-value { white-space: nowrap; }
/* the season's footer colour is for its daylight wash */
html[data-wxsky="night"] .sitefoot { color: var(--text-secondary); }

/* --- the gear's screens: the site's settings drawer ---------------------
   (js/jp-drawer.js). Cream, from the right, full height over the site's
   bar, as wide as every page's settings drawer (css/site.css .setdrawer).
   Moving between screens turns a cube inside it. */
.overlay-screen.wx-drawer {
  top: 0; left: auto; right: 0;
  width: min(24rem, 92vw);
  height: 100svh;
  z-index: 101;
  background: #fdfcf8;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  overflow: hidden;
  transform: translateX(102%);
  box-shadow: none;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.overlay-screen.wx-drawer.open { transform: none; box-shadow: -12px 0 40px rgba(10,20,40,.35); }
.wx-drawer .overlay-header { border-bottom-color: rgba(47,74,114,.12); }
.wx-drawer .overlay-body { overflow-y: auto; overscroll-behavior: contain; }
/* Settings closes with an ×, top right, like a dialog */
.wx-drawer-x { margin-left: auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.35rem; line-height: 1; color: var(--ink-soft); }
#wx-scrim { z-index: 99; }
/* the copies on a turning cube fill their face */
.cube-face .overlay-screen.wx-drawer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: none; transition: none; box-shadow: none;
}
.wx-drawer-cube .cube-face { border-radius: var(--radius-card) 0 0 var(--radius-card); overflow: hidden; }

/* --- one column as wide as every other page ----------------------------
   WeatherDaddy capped its single column at 500px; the site's pages are
   46rem (--shell-max). Same layouts as the drawer rule above: portrait,
   and landscape windows too narrow for the two-column layout. The cubes
   (city swipe, stats pager) take half the wider column as their depth. */
@media (orientation: portrait), (orientation: landscape) and (min-height: 501px) and (max-width: 899px) {
  .app-container { max-width: var(--shell-max); }
  .cube-perspective { --cube-half: min(50vw, calc(var(--shell-max) / 2)); }
  .overlay-screen:not(.wx-drawer) { width: min(100%, var(--shell-max)); }
}

/* The number flying from a day or hour up into the hero (ui-transitions.js):
   WeatherDaddy's ghost was white; here it fades from the card's ink to the
   hero's, so the colour joins the size change. */
.day-slide-ghost { color: var(--text-primary); }
.day-slide-ghost > .daily-temps,
.day-slide-ghost > .hourly-temp {
  transition: font-size 520ms cubic-bezier(.2, .7, .2, 1),
              font-weight 520ms cubic-bezier(.2, .7, .2, 1),
              color 520ms cubic-bezier(.2, .7, .2, 1);
}

/* After a city swipe lands on a city with the other sky (ui-transitions.js
   _cubeDone), everything fades to the new colours with the sky for a
   moment, instead of text and cards snapping while the sky fades. */
/* Not the cube stage: its own transition is the turn itself, and this
   list (no transform) would make a second swipe within the second snap. */
html.wx-skyfade :is(.app-header, .app-container, .wx-credits, .sitefoot),
html.wx-skyfade :is(.app-header, .app-container) *:not(.cube-stage) {
  transition: color 900ms var(--ease), background-color 900ms var(--ease),
              border-color 900ms var(--ease), fill 900ms var(--ease),
              stroke 900ms var(--ease), box-shadow 900ms var(--ease) !important;
}

/* The quick details are swiped to flip pages: a drag there shouldn't
   select their text (or open iOS's text callout on a long press). */
.stats-pager { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* The header's save star: a little smaller, in the picked hour's
   temperature colour (the time tile's ring), outline or filled. */
.save-loc-btn, .save-loc-btn.saved { color: var(--wx-temp, var(--text-secondary)); transition: color 900ms var(--ease), transform .2s; }
.save-loc-btn svg { width: 22px; height: 22px; }

/* After dark, Forecaster's notes and Radar take the shown hour's
   temperature colour (the picked tile's ring), lightened enough to read on
   the dusk sky, instead of a gold of their own. By day they stay ink. */
html[data-wxsky="night"] :is(.notes-btn, .radar-btn) {
  --wx-btn: color-mix(in srgb, var(--wx-temp, #f4c46a) 62%, #fff);
  color: var(--wx-btn);
  border-color: var(--wx-btn);
}
html[data-wxsky="night"] :is(.notes-btn, .radar-btn):is(:hover, :active) { color: var(--wx-btn); border-color: var(--wx-btn); }

/* --- dark menus and dialogs (css/site.css; Auto / Light / Dark) ---------
   Every screen (the gear's drawer, Forecaster's notes, alerts, radar), in
   the menu's navy. */
html[data-ui="dark"] .overlay-screen {
  --bg-color:       var(--dlg-bg);
  --surface-color:  var(--dlg-tint);
  --text-primary:   var(--dlg-ink);
  --text-secondary: var(--dlg-ink-soft);
  --accent-color:   var(--dlg-accent);
  --border-color:   var(--dlg-line);
  --ink:            var(--dlg-ink);
  --ink-deep:       var(--dlg-ink-deep);
  --ink-soft:       var(--dlg-ink-soft);
  color: var(--dlg-ink);
  color-scheme: dark;
}
html[data-ui="dark"] .overlay-screen { background: var(--dlg-bg); }
html[data-ui="dark"] .overlay-screen .overlay-header { border-bottom-color: var(--dlg-line); }
html[data-ui="dark"] .overlay-screen .overlay-header h2 { color: var(--dlg-ink-deep); }
html[data-ui="dark"] :is(.overlay-screen .back-btn, .wx-drawer-x) { color: var(--dlg-ink-soft); }
html[data-ui="dark"] .overlay-screen .back-btn:hover { background: var(--dlg-tint); }
html[data-ui="dark"] .overlay-screen :is(.menu-option-btn, .push-section, .current-loc-btn, .about-sources li, .accordion-item, .alert-card, .byok-status) {
  background: var(--dlg-raise); color: var(--dlg-ink); border-color: var(--dlg-line); box-shadow: none;
}
html[data-ui="dark"] .overlay-screen .menu-option-btn:hover { background: #2b4670; }
html[data-ui="dark"] .overlay-screen .menu-option-btn:active { background: #2f4c78; }
html[data-ui="dark"] .overlay-screen :is(.menu-search, .byok-input, .byok-toggle, .push-select, #import-export-textarea) {
  background: var(--dlg-raise) !important; color: var(--dlg-ink) !important; border-color: var(--dlg-line) !important;
}
html[data-ui="dark"] .overlay-screen .menu-search input { color: var(--dlg-ink); }
html[data-ui="dark"] .overlay-screen .search-confirm-btn { color: var(--dlg-accent-ink); }
html[data-ui="dark"] .overlay-screen .segmented-control button { background: var(--dlg-tint); border-color: var(--dlg-line); color: var(--dlg-ink); }
html[data-ui="dark"] .overlay-screen .segmented-control button.active { background: var(--dlg-accent); border-color: var(--dlg-accent); color: var(--dlg-accent-ink); }
html[data-ui="dark"] .overlay-screen .wd-switch { background: rgba(231,238,250,.22); }
html[data-ui="dark"] .overlay-screen .wd-switch[aria-checked="true"] { background: var(--dlg-accent); }
html[data-ui="dark"] .overlay-screen .byok-btn-primary { background: var(--dlg-accent); border-color: var(--dlg-accent); color: var(--dlg-accent-ink); }
html[data-ui="dark"] .overlay-screen .byok-btn-secondary { color: var(--dlg-ink); border-color: var(--dlg-line); }
html[data-ui="dark"] .overlay-screen .checkmark { background-color: var(--dlg-raise); border-color: var(--dlg-line); }
html[data-ui="dark"] .overlay-screen .location-card.dragging { background: var(--dlg-raise); }
html[data-ui="dark"] #city-autocomplete { background: var(--dlg-raise); border-color: var(--dlg-line); }
html[data-ui="dark"] #city-autocomplete li { color: var(--dlg-ink); border-bottom-color: var(--dlg-line); }
html[data-ui="dark"] #city-autocomplete li:is(:hover, .ac-active) { background: var(--dlg-tint); color: var(--dlg-ink); }
html[data-ui="dark"] :is(#saved-locations-list, #alerts-body) [style*="#a0a0a0"] { color: var(--dlg-ink-soft) !important; }
html[data-ui="dark"] .discussion-heading { color: var(--dlg-accent); }
html[data-ui="dark"] .radar-play { background: var(--dlg-tint); border-color: var(--dlg-line); color: var(--dlg-ink); }

/* The earthquake pill under the graph (ui-dashboard.js _quakeButtonHTML): a link styled as the other pills. */
.quake-btn { text-decoration: none; }

/* Radar's link to Live Map (2026-11-28), beside the provider's name */
.radar-livemap { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
  color: var(--text-primary, #fff); border: 1px solid var(--border-color, rgba(255,255,255,.3)); text-decoration: none; }
.radar-livemap:hover, .radar-livemap:focus-visible { background: rgba(255,255,255,.12); }
