/* iAlert Forecast — centerpiece v3 (2026-05-12, post-feedback revision).
 *
 * Layered on top of centerpiece-v1.css. New BEM roots: .ialert-cp__hero3,
 * .ialert-cp__glance, .ialert-cp__fiveday3. Reuses .ialert-cp__tools for
 * Explore. The humidity bar-chart row was removed in this revision.
 */

/* ---------- 1. Small Hero strip ---------- */

.ialert-cp__hero3 {
  background: #ffffff;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--ialert-border-subtle);
  font-family: var(--ialert-font-display);
}

.ialert-cp__hero3-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "panel";
  row-gap: 0;
  align-items: center;
}
.ialert-cp__hero3-titleblock   { grid-area: title; }
.ialert-cp__hero3-alerts-panel { grid-area: panel; }

.ialert-cp__hero3-titleblock {
  min-width: 0;
}

.ialert-cp__hero3-eyebrow {
  margin: 0 0 4px;
  font-family: var(--ialert-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ialert-red);
}

.ialert-cp__hero3-h {
  margin: 0;
  font-family: var(--ialert-font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ialert-navy);
}

.ialert-cp__hero3-h-state {
  color: inherit;
  font-weight: inherit;
}

/* Alerts row under the H1. Carries an actual pill (chrome ported from
   v1's .ialert-cp__hero-chip on 8007, retinted for a light hero) followed
   by a muted "Last checked" stamp. */
.ialert-cp__hero3-alerts {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--ialert-font-display);
  font-size: 13px;
  color: var(--ialert-text);
}

.ialert-cp__hero3-alerts-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 7px;
  border-radius: 6px;
  border: 1px solid rgba(143, 219, 162, 0.55);
  background: rgba(143, 219, 162, 0.20);
  font-family: var(--ialert-font-display);
  line-height: 1;
  transition: background 140ms, border-color 140ms, box-shadow 140ms;
}

/* When the pill is a <button> (active-alerts state), strip default UA chrome
   so it inherits the same look as the static clear-state span. */
button.ialert-cp__hero3-alerts-pill {
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
}
button.ialert-cp__hero3-alerts-pill:focus-visible {
  outline: 2px solid var(--ialert-navy);
  outline-offset: 2px;
}

.ialert-cp__hero3-alerts-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--ialert-navy);
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.ialert-cp__hero3-alerts-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  color: currentColor;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ialert-cp__hero3-alerts-chev svg {
  width: 12px;
  height: 8px;
  display: block;
}
button.ialert-cp__hero3-alerts-pill[aria-expanded="true"] .ialert-cp__hero3-alerts-chev {
  transform: rotate(180deg);
}

/* Open-state visual: deepen the same severity tint and add a subtle ring so
   the active pill reads as "this is the one driving the panel". */
button.ialert-cp__hero3-alerts-pill[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(23, 26, 31, 0.06);
}

.ialert-cp__hero3-alerts-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #2f8a3b;
  flex-shrink: 0;
}

.ialert-cp__hero3-alerts-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f6b2a;
  line-height: 1;
}

.ialert-cp__hero3-signup {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px 7px;
  border-radius: 6px;
  font-family: var(--ialert-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: #fff;
  background: var(--ialert-red);
  border: 1px solid var(--ialert-red);
  transition: background 140ms, border-color 140ms;
}
.ialert-cp__hero3-signup:hover {
  background: #a01821;
  border-color: #a01821;
}

/* Severity variants. Tinted pill fill carries the signal (matches v1's
   pattern); border picks up the same hue at a stronger alpha. */
.ialert-cp__hero3-alerts-pill--warning {
  background: rgba(200, 32, 43, 0.14);
  border-color: rgba(200, 32, 43, 0.55);
}
.ialert-cp__hero3-alerts-pill--warning .ialert-cp__hero3-alerts-dot  { background: var(--ialert-red); }
.ialert-cp__hero3-alerts-pill--warning .ialert-cp__hero3-alerts-label { color: #8c1620; }

.ialert-cp__hero3-alerts-pill--watch {
  background: rgba(229, 138, 28, 0.16);
  border-color: rgba(229, 138, 28, 0.55);
}
.ialert-cp__hero3-alerts-pill--watch .ialert-cp__hero3-alerts-dot   { background: #c9761a; }
.ialert-cp__hero3-alerts-pill--watch .ialert-cp__hero3-alerts-label { color: #8a4a0f; }

.ialert-cp__hero3-alerts-pill--advisory {
  background: rgba(214, 179, 46, 0.18);
  border-color: rgba(214, 179, 46, 0.55);
}
.ialert-cp__hero3-alerts-pill--advisory .ialert-cp__hero3-alerts-dot   { background: #b09422; }
.ialert-cp__hero3-alerts-pill--advisory .ialert-cp__hero3-alerts-label { color: #6b5a13; }

.ialert-cp__hero3-alerts-pill--alert {
  background: rgba(64, 96, 168, 0.14);
  border-color: rgba(64, 96, 168, 0.45);
}
.ialert-cp__hero3-alerts-pill--alert .ialert-cp__hero3-alerts-dot   { background: #4060a8; }
.ialert-cp__hero3-alerts-pill--alert .ialert-cp__hero3-alerts-label { color: #2c4480; }

/* Full-width disclosure panel beneath the hero row. All severities render
   expanded by default; cap is enforced server-side (5 items max + overflow
   link). Pills still toggle individual severity buckets. The Collapse all
   button in the header hides every list at once. */
.ialert-cp__hero3-alerts-panel {
  margin-top: 18px;
  border: 1px solid var(--ialert-border-subtle);
  border-radius: 12px;
  background: #fafaf8;
  padding: 14px 18px;
}
.ialert-cp__hero3-alerts-panel[hidden] { display: none; }

.ialert-cp__hero3-alerts-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ialert-border-subtle);
}

.ialert-cp__hero3-alerts-panel-title {
  margin: 0;
  font-family: var(--ialert-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ialert-navy);
}

.ialert-cp__hero3-alerts-panel-count {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ialert-text-muted);
}

/* Collapse/Expand-all toggle. Lives in the hero alerts row so it stays
   reachable even when the panel itself is hidden. Label and chevron
   direction flip based on aria-expanded. */
.ialert-cp__hero3-alerts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 4px 6px;
  margin-left: 4px;
  font-family: var(--ialert-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ialert-text-muted);
  cursor: pointer;
  transition: color 140ms;
}
.ialert-cp__hero3-alerts-toggle:hover {
  color: var(--ialert-navy);
}
.ialert-cp__hero3-alerts-toggle:focus-visible {
  outline: 2px solid var(--ialert-navy);
  outline-offset: 2px;
  border-radius: 3px;
}
.ialert-cp__hero3-alerts-toggle-icon {
  display: inline-flex;
  align-items: center;
  width: 12px;
  height: 8px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ialert-cp__hero3-alerts-toggle-icon svg {
  width: 12px;
  height: 8px;
}
.ialert-cp__hero3-alerts-toggle[aria-expanded="false"] .ialert-cp__hero3-alerts-toggle-icon {
  transform: rotate(180deg);
}

.ialert-cp__hero3-alerts-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ialert-cp__hero3-alerts-panel-list[hidden] { display: none; }

.ialert-cp__hero3-alerts-panel-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 14px;
  padding: 10px 0 10px 14px;
  border-bottom: 1px solid var(--ialert-border-subtle);
  border-left: 4px solid transparent;
}
.ialert-cp__hero3-alerts-panel-list:last-of-type .ialert-cp__hero3-alerts-panel-item:last-child {
  border-bottom: none;
}
.ialert-cp__hero3-alerts-panel-item--warning  { border-left-color: #c8202b; background: rgba(200,  32,  43, 0.05); }
.ialert-cp__hero3-alerts-panel-item--watch    { border-left-color: #e58a1c; background: rgba(229, 138,  28, 0.07); }
.ialert-cp__hero3-alerts-panel-item--advisory { border-left-color: #d6b32e; background: rgba(214, 179,  46, 0.08); }
.ialert-cp__hero3-alerts-panel-item--outlook  { border-left-color: #4a7c94; background: rgba( 74, 124, 148, 0.07); }
.ialert-cp__hero3-alerts-panel-item--alert    { border-left-color: #4060a8; background: rgba( 64,  96, 168, 0.07); }

.ialert-cp__hero3-alerts-panel-badge {
  display: inline-block;
  padding: 3px 9px 4px;
  border-radius: 999px;
  font-family: var(--ialert-font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ialert-cp__hero3-alerts-panel-badge--warning {
  background: rgba(200, 32, 43, 0.14);
  border-color: rgba(200, 32, 43, 0.5);
  color: #8c1620;
}
.ialert-cp__hero3-alerts-panel-badge--watch {
  background: rgba(229, 138, 28, 0.16);
  border-color: rgba(229, 138, 28, 0.5);
  color: #8a4a0f;
}
.ialert-cp__hero3-alerts-panel-badge--advisory {
  background: rgba(214, 179, 46, 0.18);
  border-color: rgba(214, 179, 46, 0.5);
  color: #6b5a13;
}
.ialert-cp__hero3-alerts-panel-badge--alert {
  background: rgba(64, 96, 168, 0.14);
  border-color: rgba(64, 96, 168, 0.45);
  color: #2c4480;
}

.ialert-cp__hero3-alerts-panel-main {
  min-width: 0;
}

.ialert-cp__hero3-alerts-panel-headline {
  margin: 0;
  font-family: var(--ialert-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ialert-navy);
  line-height: 1.2;
}
.ialert-cp__hero3-alerts-panel-headline-link {
  color: inherit;
  text-decoration: none;
}
.ialert-cp__hero3-alerts-panel-headline-link:hover {
  text-decoration: none;
  color: inherit;
}

.ialert-cp__hero3-alerts-panel-meta {
  margin: 0;
  font-family: var(--ialert-font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--ialert-text-muted);
  line-height: 1.35;
}

.ialert-cp__hero3-alerts-panel-sep {
  display: inline-block;
  margin: 0 6px;
  opacity: 0.6;
}

.ialert-cp__hero3-alerts-panel-link {
  font-family: var(--ialert-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ialert-red);
  text-decoration: none;
  white-space: nowrap;
}
.ialert-cp__hero3-alerts-panel-link:hover {
  text-decoration: underline;
}

.ialert-cp__hero3-alerts-panel-more {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--ialert-border-subtle);
  font-family: var(--ialert-font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ialert-text-muted);
  text-align: center;
}
.ialert-cp__hero3-alerts-panel-more a {
  color: var(--ialert-red);
  text-decoration: none;
  font-weight: 700;
}
.ialert-cp__hero3-alerts-panel-more a:hover {
  text-decoration: underline;
}

/* CTAs stay rounded — they're buttons, not section chrome */
.ialert-cp__hero3-ctas {
  display: flex;
  gap: 10px;
}

.ialert-cp__hero3-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--ialert-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.ialert-cp__hero3-cta--ghost {
  color: var(--ialert-navy);
  background: transparent;
  border: 1.5px solid var(--ialert-navy);
}
.ialert-cp__hero3-cta--ghost:hover {
  background: var(--ialert-navy);
  color: #fff;
}

.ialert-cp__hero3-cta--solid {
  color: #fff;
  background: var(--ialert-red);
  border: 1.5px solid var(--ialert-red);
}
.ialert-cp__hero3-cta--solid:hover {
  background: #a01821;
  border-color: #a01821;
}

@media (max-width: 720px) {
  .ialert-cp__hero3-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "panel";
  }
}

/* ---------- 2. At a Glance card ---------- */

.ialert-cp__glance {
  background: #f5f1ea;
  padding: 16px 0 12px;
  font-family: var(--ialert-font-display);
}

.ialert-cp__glance .ialert-cp__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.ialert-cp__glance-head {
  margin: 0 0 18px;
}

.ialert-cp__glance-mode {
  display: inline-block; font-size: 0.72em; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px 4px;
  border-radius: 4px; vertical-align: middle; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  box-shadow: 0 1px 3px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}
.ialert-cp__glance-mode--obs      { background: linear-gradient(to bottom, #34b854, #1a6a2a); }
.ialert-cp__glance-mode--forecast { background: linear-gradient(to bottom, #3470d4, #1a3a5c); }

.ialert-cp__glance-head .ialert-cp__sec-h {
  font-size: 22px;
  font-weight: 700;
  color: var(--ialert-navy);
  margin: 2px 0 0;
}

.ialert-cp__glance-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 44px 16px;
  box-shadow: 0 1px 0 rgba(23, 26, 31, 0.04), 0 14px 40px rgba(23, 26, 31, 0.06);
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 26px;
  /* Position+overflow lets each tile draw a vertical divider that visually
     spans the full card height (clipped by the card's rounded corners). */
  position: relative;
  overflow: hidden;
}

/* Color bar flush with the top of the card — obs=green, forecast=blue.
   overflow:hidden on the card clips it to the rounded top corners. */
.ialert-cp__glance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 2;
  transition: background 280ms ease;
}
.ialert-cp__glance-card.is-obs::before {
  background: linear-gradient(to right, #34b854, #1a6a2a);
}
.ialert-cp__glance-card.is-forecast::before {
  background: linear-gradient(to right, #3470d4, #1a3a5c);
}

/* ---- Top row: temp cell + stats cell + modules zone ----
   Stretch the row so the modules block fills the full vertical extent of
   the temp-cell side. That lets the inter-tile dividers run from the top
   of the row to the bottom (the full card height between the slider and
   the card top) instead of hugging each tile's content height. */
.ialert-cp__glance-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  column-gap: 0;
  row-gap: 18px;
}

.ialert-cp__glance-temp-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding-top: 18px;
}

.ialert-cp__glance-temp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 0.85;
}

.ialert-cp__glance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  color: var(--ialert-red);
  flex-shrink: 0;
}

.ialert-cp__glance-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ialert-cp__glance-temp-block {
  display: flex;
  align-items: flex-start;
  line-height: 0.85;
  color: var(--ialert-navy);
}

.ialert-cp__glance-temp {
  font-family: var(--ialert-font-display);
  font-size: clamp(96px, 10vw, 136px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

.ialert-cp__glance-deg {
  font-family: var(--ialert-font-display);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 600;
  margin-top: 4px;
  color: var(--ialert-red);
}

.ialert-cp__glance-cond {
  margin: 4px 0 0;
  font-family: var(--ialert-font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  min-height: calc(2 * 1.3em);
  color: var(--ialert-text);
}

.ialert-cp__glance-fc-label { display: none; }

/* Inline stat strip under the condition string. Three compact value+label
   stat units flowing horizontally, no card chrome, no vertical divider. */
.ialert-cp__glance-inline-stats {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.ialert-cp__glance-inline-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.ialert-cp__glance-inline-val {
  font-family: var(--ialert-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ialert-navy);
  font-variant-numeric: tabular-nums;
}

.ialert-cp__glance-inline-val--precip {
  color: var(--ialert-navy);
}

.ialert-cp__glance-inline-sep {
  margin: 0 2px;
  color: var(--ialert-text-muted);
  font-weight: 500;
}

.ialert-cp__glance-inline-label {
  font-family: var(--ialert-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ialert-text-muted);
}

/* Modules zone: five equal-weight instrument tiles. No box outline — the
   vertical dividers do the separating, and they extend full card height
   via per-tile pseudo-elements (see .ialert-cp__glance-tile::before). */
.ialert-cp__glance-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--ialert-border-subtle);
  border-bottom: 1px solid var(--ialert-border-subtle);
}

.ialert-cp__glance-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 14px;
  gap: 6px;
  margin: 0;
  min-width: 0;
  position: relative;
}

/* Vertical divider between tiles — skip the first tile so the Wind section
   is open to the data on the left. Adjacent-sibling selector means only
   tiles that follow another tile get the line. */
.ialert-cp__glance-tile + .ialert-cp__glance-tile::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: rgba(23, 26, 31, 0.18);
  pointer-events: none;
  z-index: 0;
}

/* Keep the tile's own content above the divider line in case anything
   visually overlaps (the SVGs sit near the tile edges). */
.ialert-cp__glance-tile > * {
  position: relative;
  z-index: 1;
}

.ialert-cp__glance-tile-vis {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--ialert-navy);
}

.ialert-cp__glance-mini-dial,
.ialert-cp__glance-uv-bar,
.ialert-cp__glance-sun-arc,
.ialert-cp__glance-humidity {
  display: block;
  height: 76px;
  width: auto;
}

.ialert-cp__glance-mini-dial {
  width: 76px;
}

#glance-barb-rot {
  transform-origin: 0 0;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

#glance-hum-fill {
  transition: y 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-cp-uv-seg] {
  transition: y 220ms ease, height 220ms ease, opacity 220ms ease;
}

.ialert-cp__glance-tile-label {
  margin: 0;
  font-family: var(--ialert-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ialert-red);
}

.ialert-cp__glance-tile-val {
  margin: 0;
  font-family: var(--ialert-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ialert-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ialert-cp__glance-tile-val--sun {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ialert-cp__glance-tile-mid {
  display: inline-block;
  margin: 0 4px;
  color: var(--ialert-text-muted);
  font-family: var(--ialert-font-display);
  font-weight: 500;
}

.ialert-cp__glance-tile-unit {
  font-size: 13px;
  font-family: var(--ialert-font-display);
  font-weight: 600;
  color: var(--ialert-text-muted);
  margin-left: 3px;
}

.ialert-cp__glance-tile-sub {
  margin: 0;
  font-family: var(--ialert-font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--ialert-text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- Clean hourly slider ---- */
.ialert-cp__glance-slider {
  padding: 16px 0 0;
  margin-top: 4px;
  border-top: 1px solid var(--ialert-border-subtle);
}

.ialert-cp__glance-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: transparent;
  margin: 14px 0 8px;
  cursor: pointer;
}

.ialert-cp__glance-range::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--ialert-border-subtle);
  border-radius: 2px;
}
.ialert-cp__glance-range::-moz-range-track {
  height: 4px;
  background: var(--ialert-border-subtle);
  border-radius: 2px;
}

.ialert-cp__glance-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--ialert-red);
  border: 3px solid #fff;
  border-radius: 50%;
  margin-top: -8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
}
.ialert-cp__glance-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--ialert-red);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
}
.ialert-cp__glance-range:focus { outline: none; }
.ialert-cp__glance-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(200, 32, 43, 0.22);
}

/* 13 hourly labels keyed off the timeline start (12p, 1p, ..., 12a). */
.ialert-cp__glance-slider-ticks {
  position: relative;
  height: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.ialert-cp__glance-slider-tick {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--ialert-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ialert-text-muted);
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
  font-variant-numeric: tabular-nums;
  transition: color 140ms ease;
}

.ialert-cp__glance-slider-tick:hover { color: var(--ialert-navy); }
.ialert-cp__glance-slider-tick.is-obs,
.ialert-cp__glance-slider-tick.is-obs.is-active { color: #2a7a3a; }
.ialert-cp__glance-slider-tick.is-obs::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.85;
  position: relative;
  top: -1px;
}
.ialert-cp__glance-slider-tick.is-active { color: var(--ialert-red); }

.ialert-cp__glance-obs-bar {
  width: var(--obs-pct, 0%);
  height: 2px;
  margin: 0 0 4px 10px;
  background: linear-gradient(to right, rgba(42, 122, 58, 0.5), rgba(42, 122, 58, 0.04));
  border-radius: 1px;
}

.ialert-cp__glance-source {
  margin: 16px 0 0;
  font-family: var(--ialert-font-display);
  font-size: 12px;
  color: var(--ialert-text-muted);
}

/* Responsive */
@media (max-width: 1100px) {
  .ialert-cp__glance-row {
    grid-template-columns: 1fr;
    row-gap: 24px;
    border-top: none;
    border-bottom: none;
  }
  /* Modules are now below the temp area — the full-height ::before dividers
     would extend upward through the temp/stats area. Switch to border-based
     separation (already applied at ≤720px; tiles handle it themselves). */
  .ialert-cp__glance-tile::before {
    display: none;
  }
  .ialert-cp__glance-modules {
    border-top: 1px solid var(--ialert-border-subtle);
  }
  .ialert-cp__glance-tile {
    border-left: 1px solid var(--ialert-border-subtle);
  }
  .ialert-cp__glance-tile:first-child {
    border-left: none;
  }
}

@media (max-width: 720px) {
  /* Section outer padding */
  .ialert-cp__glance {
    padding: 8px 0 10px;
  }
  .ialert-cp__glance-head {
    margin: 0 0 8px;
  }
  .ialert-cp__glance-head .ialert-cp__sec-link {
    display: none;
  }
  /* Card: tighter padding, collapsed row-gap */
  .ialert-cp__glance-card {
    padding: 12px 16px 10px;
    row-gap: 12px;
  }
  /* Center the temp/condition/stats block */
  .ialert-cp__glance-temp-cell {
    align-items: center;
    text-align: center;
    padding-top: 4px;
    gap: 4px;
  }
  .ialert-cp__glance-temp-row {
    justify-content: center;
  }
  .ialert-cp__glance-inline-stats {
    justify-content: center;
  }
  /* Reduce big temp and icon — biggest single space savers */
  .ialert-cp__glance-temp {
    font-size: 72px;
  }
  .ialert-cp__glance-deg {
    font-size: 32px;
  }
  .ialert-cp__glance-icon {
    width: 44px;
    height: 44px;
  }
  /* Condition: smaller font, no artificial min-height */
  .ialert-cp__glance-cond {
    font-size: 15px;
    min-height: 0;
    margin-top: 2px;
  }
  /* Stats strip */
  .ialert-cp__glance-inline-stats {
    margin: 4px 0 0;
    gap: 14px;
  }
  .ialert-cp__glance-inline-val {
    font-size: 15px;
  }
  .ialert-cp__glance-inline-label {
    font-size: 9px;
  }
  /* Slider: no extra spacing */
  .ialert-cp__tick-ampm {
    display: none;
  }
  .ialert-cp__glance-slider {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  /* Tile grid: 2-up, tighter padding and shorter vis */
  .ialert-cp__glance-modules {
    grid-template-columns: repeat(2, 1fr);
    border-top: none;
    border-bottom: none;
  }
  .ialert-cp__glance-tile {
    padding: 8px 10px;
    gap: 3px;
    border-left: none;
    border-bottom: 1px solid var(--ialert-border-subtle);
  }
  .ialert-cp__glance-tile:nth-last-child(-n+2) {
    padding-bottom: 0;
    border-bottom: none;
  }
  .ialert-cp__glance-tile-vis {
    height: 40px;
    margin-bottom: 2px;
  }
  .ialert-cp__glance-mini-dial,
  .ialert-cp__glance-uv-bar,
  .ialert-cp__glance-sun-arc,
  .ialert-cp__glance-humidity {
    height: 40px;
  }
  .ialert-cp__glance-mini-dial {
    width: 40px;
  }
  .ialert-cp__glance-tile:nth-child(odd) {
    border-right: 1px solid var(--ialert-border-subtle);
  }
  .ialert-cp__glance-tile:nth-child(even) {
    border-right: none;
  }
  /* Tick labels: every 3rd visible */
  .ialert-cp__glance-slider-tick {
    font-size: 10px;
    visibility: hidden;
  }
  .ialert-cp__glance-slider-tick:nth-child(3n+1),
  .ialert-cp__glance-slider-tick.is-obs,
  .ialert-cp__glance-slider-tick.is-active {
    visibility: visible;
  }
  .ialert-cp__glance-tile-val--sun {
    font-size: 11px;
  }
  /* Larger thumb for finger touch */
  .ialert-cp__glance-range::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    margin-top: -14px;
  }
  .ialert-cp__glance-range::-moz-range-thumb {
    width: 32px;
    height: 32px;
  }
  /* 5-day cards: same framing as Today but no fill */
  .ialert-cp__day {
    border-radius: 6px;
    outline: 1px solid rgba(23, 26, 31, 0.13);
    outline-offset: -1px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .ialert-cp__day:first-child { border-left: 0; }
}

/* ---------- Weather Analysis Tools — white card treatment ---------- */
.ialert-cp__tools--beige { padding-top: 24px; padding-bottom: 24px; }
.ialert-cp__tools--beige .ialert-cp__sec-head { margin-bottom: 8px; }

.ialert-cp__tools--beige .ialert-cp__tools-grid {
  gap: 14px;
  border-top: none;
  padding-top: 4px;
}
.ialert-cp__tools--beige .ialert-cp__tools-grid > li {
  background: #fff;
  border-radius: 10px;
  border-top: 3px solid var(--ialert-red);
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(23,26,31,0.07), 0 4px 14px rgba(23,26,31,0.06);
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.ialert-cp__tools--beige .ialert-cp__tools-grid > li:hover {
  box-shadow: 0 4px 8px rgba(23,26,31,0.10), 0 14px 28px rgba(23,26,31,0.09);
  transform: translateY(-2px);
}
.ialert-cp__tools--beige .ialert-cp__tools-grid > li + li { border-left: none; }
.ialert-cp__tools--beige .ialert-cp__tools-grid > li:nth-child(2n+1) { border-left: none; }
.ialert-cp__tools--beige .ialert-cp__tool:hover,
.ialert-cp__tools--beige .ialert-cp__tool:focus-visible { background: transparent; }
.ialert-cp__tools--beige .ialert-cp__tool-thumb {
  border: none;
  border-right: 1px solid rgba(23,26,31,0.08);
  flex-shrink: 0;
}

/* ---------- Weather Analysis Tools — full-bleed image cards (all sizes) ---------- */
.ialert-cp__tools--beige .ialert-cp__tools-grid > li {
  position: relative;
  height: 160px;
  border-top: none;
  border-radius: 10px;
  overflow: hidden;
  transform: none;
}
.ialert-cp__tools--beige .ialert-cp__tools-grid > li:hover {
  transform: none;
  box-shadow: 0 4px 18px rgba(23,26,31,0.18);
}
.ialert-cp__tools--beige .ialert-cp__tool {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.ialert-cp__tools--beige .ialert-cp__tool-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: none;
  transition: transform 320ms ease, filter 320ms ease;
}
.ialert-cp__tools--beige .ialert-cp__tool::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,15,22,0.82) 0%, rgba(12,15,22,0.30) 52%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  transition: background 200ms ease;
}
.ialert-cp__tools--beige .ialert-cp__tool-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: none;
}
.ialert-cp__tools--beige .ialert-cp__tool-h {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.ialert-cp__tools--beige .ialert-cp__tool-sub {
  color: rgba(255,255,255,0.82);
  font-size: 11px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.50);
}
.ialert-cp__tools--beige .ialert-cp__tools-grid > li:hover .ialert-cp__tool-thumb {
  transform: scale(1.05);
  filter: brightness(1.08);
}
.ialert-cp__tools--beige .ialert-cp__tools-grid > li:hover .ialert-cp__tool::after {
  background: linear-gradient(to top, rgba(12,15,22,0.90) 0%, rgba(12,15,22,0.42) 52%, transparent 100%);
}

@media (min-width: 721px) {
  .ialert-cp__tools--beige .ialert-cp__tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ialert-cp__tools--beige .ialert-cp__tools-grid > li {
    height: 210px;
  }
  .ialert-cp__tools--beige .ialert-cp__tool-h { font-size: 15px; }
  .ialert-cp__tools--beige .ialert-cp__tool-text { padding: 14px 16px; gap: 4px; }
}

/* ---------- 3. 5-Day Forecast ----------
 * v3 reuses v1's .ialert-cp__fiveday + .ialert-cp__day chrome (defined in
 * centerpiece-v1.css). One override: v1's wx-icon helper returns a span that
 * collapses inline. v1's photo variant absolute-positions it, so v1 never
 * needed a block treatment. v3's no-photo column does, so size it like
 * v1's intended .ialert-cp__day-icon (44px block, red).
 */
.ialert-cp__day:last-child { border-right: 1px solid var(--cp-rule-soft); }

.ialert-cp__day .wx-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
  color: var(--ialert-red);
}

.ialert-cp__day--today {
  background: rgba(52, 112, 212, 0.06);
  border-radius: 6px;
  outline: 1px solid rgba(52, 112, 212, 0.18);
  outline-offset: -1px;
}
.ialert-cp__day--today:first-child { padding-left: 22px; }

.ialert-cp__detail-src {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
  cursor: default;
}
