/* ============================================================
   PRECIPNODE v2 — bespoke stylesheet (no Bootstrap).
   Encoding standard: hue = precip TYPE (solid), height = % chance,
   text = exact %. Never color by confidence.
   ============================================================ */

/* ---- design tokens ---- */
:root {
  --accent: #076AE0;        /* brand blue — from the logo; for text/borders/accents on light */
  --accent-deep: #0552C0;   /* deeper blue for WHITE-text fills (buttons, active tab) — ~7:1 */
  --ink: #0b1220;           /* storm-slate, for headlines/strong text */
  --mist: #edf2f7;          /* page field */
  --line: #e2e8f0;          /* hairlines */
  --sky-night: #b4c1dd;     /* day/night sky backdrop — shared by ribbon + week sunbar */
  --sky-day: #f4f9ff;
  --sky-twilight: #f6e2d0;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
}

/* ---- base + container (replaces Bootstrap's .container) ---- */
* { box-sizing: border-box; }
body { background:var(--mist); margin:0; padding:0; font-family:var(--font-body); color:#1e293b; line-height:1.6; }
.container { width:100%; max-width:720px; margin:0 auto; padding:0 16px; }
/* ---- brand lockup: flat blue app-chip (white cloud) + Manrope wordmark ---- */
#logo { display:flex; justify-content:center; padding:20px 0 10px; }
.brand { display:inline-flex; align-items:center; gap:13px; }
.brand-chip { width:60px; height:60px; border-radius:14px; background:var(--accent);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.brand-chip img { width:38px; height:38px; display:block; }
.brand-word { font-family:var(--font-display); font-weight:800; font-size:30px;
  letter-spacing:0.005em; color:var(--ink); line-height:1; }
#loading { display:flex; justify-content:center; align-items:center; padding:60px 0; }

/* ---- subject bar — line 1: time + place (read-only) · line 2: openers (Change / Map) ---- */
#locbar { margin:10px 0 6px; }
.show-bar { text-align:center; font-family:var(--font-body); }
.show-line { line-height:1.6; }
.show-back { border:none; background:none; padding:0; color:#64748b; font-size:18px; line-height:1; cursor:pointer; vertical-align:middle; margin-right:2px; }
.show-back:hover { color:var(--accent); }
.show-time { font-size:17px; font-weight:700; color:var(--accent); font-variant-numeric:tabular-nums; }
.show-at { font-size:14px; color:#64748b; }
.show-loc { color:var(--ink); font-weight:700; font-size:17px; }
.show-pin { margin-right:2px; }
.show-actions { margin-top:5px; display:flex; justify-content:center; align-items:center; }
.show-act { border:none; background:none; color:var(--accent); font-family:var(--font-body); font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; padding:2px 14px; line-height:1.2; }
.show-act:hover { text-decoration:underline; }
.show-act + .show-act { border-left:1px solid var(--line); }

/* ---- alert count badge (subject bar + saved-location cards) ---- */
.loc-badge { font-size:11px; font-weight:700; padding:1px 6px; border-radius:6px; background:#475569; color:#fff; }
.loc-badge.sev-extreme  { background:#7f1d1d; }
.loc-badge.sev-severe   { background:#dc2626; }
.loc-badge.sev-moderate { background:#ea580c; }
.loc-badge.sev-minor    { background:#d97706; }

/* ---- lens tabs: underline tabs over a hairline baseline (active = accent underline) ---- */
#navbar { display:flex; justify-content:center; gap:30px; width:100%; font-family:var(--font-body); margin:12px 0 6px; border-bottom:1px solid var(--line); }
.lens { position:relative; color:#64748b; padding:8px 2px 12px; font-size:16px; font-weight:600; text-decoration:none; }
.lens:hover { color:var(--ink); }
.lens.active { color:var(--ink); }
.lens.active::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:3px; background:var(--accent); border-radius:3px 3px 0 0; }

/* ---- footer: info + attribution (Info de-tabbed from nav) ---- */
#footer { margin:36px 0 28px; padding-top:18px; border-top:1px solid #e2e8f0; text-align:center; font-family:var(--font-body); }
#footer .ft-links { margin-bottom:8px; }
#footer .ft-links a { color:var(--accent); text-decoration:none; font-size:14px; font-weight:600; padding:4px 10px; border-radius:8px; }
#footer .ft-links a:hover { background:#eff5ff; }
#footer .ft-meta { font-size:12px; color:#64748b; line-height:1.6; }
#footer .ft-meta a { color:#64748b; }

/* ---- location picker bottom sheet ---- */
.sheet[hidden] { display:none; }
.sheet { position:fixed; inset:0; z-index:50; }
.sheet-backdrop { position:absolute; inset:0; background:rgba(15,23,42,0.45); animation:sheet-fade 0.18s ease; }
.sheet-panel { position:absolute; left:0; right:0; bottom:0; max-height:80vh; overflow-y:auto; background:#fff; border-radius:18px 18px 0 0; padding:18px 18px 28px; box-shadow:0 -6px 24px rgba(0,0,0,0.2); animation:sheet-up 0.22s cubic-bezier(.2,.8,.2,1); max-width:720px; margin:0 auto; }
.sheet-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.sheet-head h2 { font-size:18px; font-weight:700; margin:0; color:#0f172a; }
.sheet-x { border:none; background:#f1f5f9; color:#475569; font-size:15px; width:32px; height:32px; border-radius:50%; cursor:pointer; }
.sheet-x:hover { background:#e2e8f0; }
.sheet-empty { color:#64748b; font-size:14px; text-align:center; padding:24px 8px; }

/* ---- forecast-area map sheet ---- */
.mm-loc { text-align:center; font-weight:700; color:var(--ink); font-size:15px; margin:-2px 0 12px; }
.mm-loc .show-pin { margin-right:3px; }
.mm-map { width:100%; height:56vh; min-height:280px; border-radius:12px; overflow:hidden; background:var(--mist); }
.mm-cap { font-size:11px; color:#64748b; text-align:center; margin:8px 2px 12px; line-height:1.5; }
.mm-row { display:flex; justify-content:space-between; gap:14px; padding:8px 2px; border-bottom:1px solid #f1f5f9; font-size:13.5px; color:#475569; }
.mm-row:last-child { border-bottom:none; }
.mm-row .mm-k { color:#64748b; font-weight:600; flex:0 0 auto; }
.mm-row span:last-child { text-align:right; }
@keyframes sheet-up { from { transform:translateY(100%); } to { transform:translateY(0); } }
@keyframes sheet-fade { from { opacity:0; } to { opacity:1; } }

/* ---- FAQ cards (info sheet) ---- */
.faq h4 { color:var(--accent); font-size:17px; font-weight:600; margin:0 0 6px; }
.faq p { margin:0; color:#475569; }

/* ---- location picker (sheet contents) ---- */
.pick-list { display:flex; flex-direction:column; gap:8px; }
.pick-row { display:flex; align-items:flex-start; gap:8px; padding:10px 12px; border:1px solid #e2e8f0; border-radius:12px; cursor:pointer; background:#fff; transition:background 0.15s ease,border-color 0.15s ease; }
.pick-row:hover { background:#f8fafc; }
.pick-row.active { border-color:var(--accent); background:#eff5ff; }
.pick-main { flex:1; min-width:0; }
.pick-top { display:flex; align-items:center; gap:6px; }
.pick-ind { font-size:14px; flex:0 0 auto; }
.pick-name { font-weight:700; color:#0f172a; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pick-clock { margin-left:auto; font-size:12px; font-weight:600; color:var(--accent); font-variant-numeric:tabular-nums; flex:0 0 auto; }
.pick-line { font-size:14px; color:#334155; margin-top:2px; }
.pick-meta { font-size:12px; color:#64748b; margin-top:2px; }
.pick-rm { flex:0 0 auto; align-self:center; border:none; background:transparent; color:#cbd5e1; font-size:14px; cursor:pointer; padding:4px 6px; border-radius:6px; }
.pick-rm:hover { background:#fee2e2; color:#dc2626; }
.pick-add { margin-top:16px; padding-top:14px; border-top:1px solid #e2e8f0; }
.pick-addlbl { display:block; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:#64748b; margin-bottom:6px; }
.pick-search { width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid #cbd5e1; border-radius:10px; font-size:15px; font-family:var(--font-body); }
.pick-search:focus { outline:none; border-color:var(--accent); }
.srch-results { display:flex; flex-direction:column; gap:2px; margin-top:6px; }
.srch-hit { text-align:left; border:none; background:#f8fafc; color:#0f172a; font-size:14px; padding:9px 12px; border-radius:8px; cursor:pointer; font-family:inherit; }
.srch-hit:hover { background:#eff5ff; }
.srch-none { font-size:13px; color:#64748b; padding:8px 4px; }
.pick-addcur { margin-top:10px; width:100%; border:1px dashed var(--accent); background:#fff; color:var(--accent); font-family:var(--font-body); font-size:14px; font-weight:600; padding:10px; border-radius:10px; cursor:pointer; }
.pick-addcur:hover { background:#eff5ff; }
.pick-cap { font-size:13px; color:#64748b; text-align:center; padding:8px; }
.pick-actions { display:flex; flex-direction:column; gap:2px; align-self:center; flex:0 0 auto; }
.pick-edit { border:none; background:transparent; color:#cbd5e1; font-size:14px; cursor:pointer; padding:4px 6px; border-radius:6px; }
.pick-edit:hover { background:#eff5ff; color:var(--accent); }
.pick-editing { display:block; cursor:default; }
.pick-editing:hover { background:#fff; }
.pick-editlbl { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:#64748b; margin-bottom:4px; }
.pick-editin { width:100%; box-sizing:border-box; padding:9px 11px; border:1px solid var(--accent); border-radius:9px; font-size:15px; font-family:var(--font-body); }
.pick-editin:focus { outline:none; }
.pick-editactions { display:flex; gap:8px; margin-top:8px; }
.pick-save { border:none; background:var(--accent-deep); color:#fff; font-family:var(--font-body); font-size:13px; font-weight:600; padding:7px 16px; border-radius:8px; cursor:pointer; }
.pick-cancel { border:1px solid #cbd5e1; background:#fff; color:#475569; font-family:var(--font-body); font-size:13px; font-weight:600; padding:7px 14px; border-radius:8px; cursor:pointer; }

/* ---- section header ---- */
.headDate { font-family:var(--font-display); font-size:22px; font-weight:700; letter-spacing:-0.01em; color:var(--ink); margin:30px 0 20px; padding-bottom:8px; border-bottom:2px solid var(--accent); }
/* hero display type — the big "when" / temps / clock carry the personality */
#headline .hl-when, #headline .hl-main, .cur-temp, .show-time { font-family:var(--font-display); }

/* ---- card panel ---- */
.panel { background:#fff; border-radius:12px; box-shadow:0 2px 4px rgba(0,0,0,0.08); margin:16px 0; padding:16px; }

/* ---- skeletons (progressive reveal placeholders) ---- */
.skeleton .sk-line, .skeleton .sk-block { background:linear-gradient(90deg,#eef2f7 25%,#e2e8f0 37%,#eef2f7 63%); background-size:400% 100%; animation:sk 1.4s ease infinite; border-radius:8px; }
.skeleton .sk-line { height:18px; margin-bottom:12px; }
.skeleton .sk-line.w40 { width:40%; } .skeleton .sk-line.w60 { width:60%; }
.skeleton .sk-block { width:100%; }
.skeleton .sk-block.h80 { height:80px; } .skeleton .sk-block.h120 { height:120px; } .skeleton .sk-block.h160 { height:160px; }
@keyframes sk { 0% { background-position:100% 0; } 100% { background-position:0 0; } }

/* ---- emergency alerts: severity-colored banner(s) ---- */
#alerts { padding:0; background:transparent; box-shadow:none; }
.wx-checking { font-size:13px; color:#64748b; text-align:center; padding:8px; font-style:italic; }
.wx-alert { border-radius:12px; margin:12px 0; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.15); cursor:pointer; color:#fff; }
.wx-alert .al-head { display:flex; align-items:center; gap:12px; padding:14px 16px; }
.wx-alert .al-icon { font-size:28px; line-height:1; flex:0 0 auto; }
.wx-alert .al-body { flex:1; min-width:0; }
.wx-alert .al-toprow { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wx-alert .al-event { font-size:17px; font-weight:700; line-height:1.25; }
.wx-alert .al-tier { flex:0 0 auto; font-size:11px; font-weight:800; letter-spacing:0.8px; padding:3px 9px; border-radius:5px; background:#fff; color:#0f172a; }
.wx-alert .al-tier.tier-warning   { color:#b91c1c; }
.wx-alert .al-tier.tier-emergency { background:#0f172a; color:#fff; }
.wx-alert .al-tier.tier-watch     { color:#b45309; }
.wx-alert .al-tier.tier-advisory  { color:#1d4ed8; }
.wx-alert .al-status { font-size:13px; font-weight:700; margin-top:5px; }
.wx-alert .al-mean { font-size:13px; opacity:0.96; margin-top:4px; line-height:1.45; }
.wx-alert .al-headline { font-size:12px; opacity:0.9; margin-top:6px; line-height:1.4; }
.wx-alert .al-chev { flex:0 0 auto; align-self:flex-start; font-size:13px; opacity:0.85; padding-top:3px; transition:transform 0.18s ease; }
.wx-alert.expanded .al-chev { transform:rotate(180deg); }
.wx-alert .al-full { display:none; background:rgba(255,255,255,0.96); color:#1e293b; padding:14px 16px; font-size:13px; line-height:1.55; }
.wx-alert.expanded .al-full { display:block; }
.wx-alert .al-full p { margin:0 0 10px; white-space:pre-wrap; }
.wx-alert .al-full p:last-child { margin-bottom:0; }
.wx-alert .al-full .al-instr { font-weight:600; color:#0f172a; }
.wx-alert .al-full .al-src { font-size:11px; color:#64748b; margin-top:4px; }
.wx-alert.sev-extreme  { background:#7f1d1d; }
.wx-alert.sev-severe   { background:#dc2626; }
.wx-alert.sev-moderate { background:#ea580c; }
.wx-alert.sev-minor    { background:#d97706; }
.wx-alert.sev-unknown  { background:#475569; }

/* ---- headline: the one-glance answer ---- */
#headline { text-align:center; padding:22px 16px; }
#headline .headDate { text-align:left; }   /* match the other cards' section headers */
#headline .hl-emoji { font-size:44px; line-height:1; }
#headline .hl-main  { font-size:22px; font-weight:600; color:#0f172a; margin-top:8px; }
#headline .hl-sub   { font-size:14px; color:#64748b; margin-top:4px; }
/* future event: WHEN is the hero — day & time large up top */
#headline .hl-when  { font-size:30px; font-weight:700; color:#0f172a; line-height:1.15; }
#headline .hl-rel   { font-size:14px; color:#64748b; margin-top:2px; }
#headline .hl-when ~ .hl-main { font-size:18px; margin-top:12px; }
#headline .hl-emoji-inline { font-size:20px; }

/* ---- the ribbon: the signature — a precipitation profile over the next 24h ---- */
.rb-plot { position:relative; height:84px; margin-top:6px; overflow:hidden; }
.rb-grid { position:absolute; left:0; right:0; height:0; border-top:1px dashed var(--line); pointer-events:none; }
.rb-bars { position:absolute; inset:0; display:flex; align-items:flex-end; gap:2px; }
.rb-col { position:relative; flex:1 1 0; min-width:0; height:100%; display:flex; align-items:flex-end; }
.rb-bar { width:100%; min-height:3px; border-radius:3px 3px 0 0; box-shadow:inset 0 0 0 1px rgba(15,23,42,0.25); }
.rb-plot::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--ink); border-radius:1px; }
.flake { background-image:radial-gradient(circle, rgba(255,255,255,0.9) 0.5px, transparent 1.3px); background-size:4px 4px; }
.rb-ticks { display:flex; gap:2px; margin-top:6px; }
.rb-tick { flex:1 1 0; min-width:0; text-align:center; font-size:10px; color:#64748b; font-variant-numeric:tabular-nums; }
.rb-dry-note { color:#64748b; }
.ribbon-legend { display:flex; flex-wrap:wrap; gap:12px; margin-top:14px; justify-content:center; }
.ribbon-legend span { font-size:11px; color:#64748b; display:flex; align-items:center; gap:5px; }
.swatch { width:12px; height:12px; border-radius:3px; display:inline-block; }
.legend-note { font-size:11px; color:#64748b; font-style:italic; width:100%; text-align:center; }

/* ---- event list ---- */
.event-item { border-bottom:1px solid #f1f5f9; }
.event-item:last-child { border-bottom:none; }
.event-row { position:relative; display:flex; align-items:stretch; gap:14px; padding:14px 4px 14px 0; cursor:pointer; }
.event-row:hover { background:#fafbfc; }
.event-row .ev-emoji { font-size:30px; line-height:1; align-self:center; }
.event-row .ev-bar { width:4px; border-radius:2px; background:#3b82f6; flex:0 0 4px; }
.event-row .ev-body { flex:1; min-width:0; }
.event-row .ev-chev { align-self:center; flex:0 0 auto; margin-left:4px; padding:0 4px; color:#cbd5e1; font-size:13px; transition:transform 0.18s ease; }
.event-item.expanded .ev-chev { transform:rotate(180deg); color:var(--accent); }
.event-row .ev-edge { font-size:15px; color:#0f172a; font-weight:600; }
.event-row .ev-edge .ev-lbl { display:inline-block; min-width:46px; font-size:11px; font-weight:700; letter-spacing:0.5px; text-transform:uppercase; color:#64748b; }
.event-row .ev-edge .ev-rel { font-size:13px; font-weight:500; color:var(--accent); margin-left:4px; }
.event-row .ev-dur { font-size:15px; font-weight:600; color:var(--accent); margin:5px 0 5px 46px; }
.event-row .ev-dur .ev-cover { color:#64748b; font-weight:400; }
.event-item.expanded .ev-dur { display:none; }
.ev-details { display:none; }
.event-item.expanded .ev-details { display:block; margin:3px 0; }
.ev-seg { display:flex; align-items:center; gap:10px; margin-left:46px; padding:4px 0; }
.ev-seg .seg-emoji { font-size:22px; flex:0 0 auto; }
.ev-seg .seg-text { min-width:0; }
.ev-seg .seg-dur { font-size:13px; font-weight:500; color:#64748b; }
.ev-seg .seg-name { font-size:15px; font-weight:600; color:#0f172a; }
.ev-seg .seg-pop { font-weight:600; color:#475569; white-space:nowrap; }
.ev-trans { margin-left:46px; padding:3px 0; font-size:15px; font-weight:600; color:var(--accent); font-variant-numeric:tabular-nums; }
.ev-trans::before { content:"↓ "; color:#cbd5e1; }
.ev-stat { margin:2px 0 0; font-size:13px; color:#475569; }
.ev-stat strong { color:#0f172a; font-weight:600; }

/* ---- per-event hour chart ---- */
.event-chart { display:none; padding:2px 2px 12px; }
.event-item.expanded .event-chart { display:block; }
.mc-cap { font-size:11px; color:#64748b; margin:6px 0 4px; }
.mc-chart { margin:0; }
.mc-row { display:flex; align-items:flex-end; flex-wrap:nowrap; overflow:hidden; margin-bottom:1px; }
.mc-ticks { display:flex; flex-wrap:nowrap; margin-bottom:8px; }
.mc-tickgap { flex:0 0 6px; }
.mc-tick { flex:0 0 auto; font-size:9px; color:#64748b; white-space:nowrap; overflow:visible; }
.mc-axis { flex:0 0 6px; height:40px; position:relative; }
.mc-axis::before { content:""; position:absolute; left:0; bottom:0; width:2px; height:100%; background:#0f172a; border-radius:1px; }
.mc-cell { flex:0 0 auto; position:relative; height:40px; }
.mc-cell .mc-bar { position:absolute; left:1px; right:1px; bottom:0; min-height:3px; border-radius:2px 2px 0 0; }
.mc-cell.mc-dry { background:repeating-linear-gradient(90deg,#f1f5f9 0 3px,transparent 3px 6px); height:3px; }

/* ---- weekly heatmap (home view) ---- */
.wk-toggle { margin-top:14px; border:1px solid #cbd5e1; background:#fff; color:var(--accent); font-size:13px; font-weight:600; padding:6px 14px; border-radius:6px; cursor:pointer; }
.wk-toggle:hover { background:#f8fafc; }
.week { display:grid; grid-template-columns:48px repeat(24, 1fr); gap:5px 0; margin-top:12px; }
.wk-hd { font-size:9px; color:#64748b; line-height:14px; }
.wk-day { font-size:11px; font-weight:600; color:#475569; display:flex; align-items:center; padding-right:4px; }
/* structure now comes from drawn lines, not a grey fill: 6/12-hr verticals + a per-day baseline floor */
.wk-cell { position:relative; height:26px; background:transparent; border-bottom:1.5px solid #cbd5e1; }
.wk-empty { background:transparent; }
.wk-h6 { border-left:1px solid #eef2f7; }
.wk-h12 { border-left:1px solid #cbd5e1; }
.wk-hend { border-right:1px solid #cbd5e1; }
.wk-sunbar {
  grid-column:span 24; height:8px; border-radius:4px; margin-bottom:3px;
  background:linear-gradient(90deg,
    var(--sky-night) 0%, var(--sky-night) 19%, var(--sky-twilight) 27%, var(--sky-day) 38%,
    var(--sky-day) 62%, var(--sky-twilight) 79%, var(--sky-night) 87%, var(--sky-night) 100%);
}
.wk-fill { position:absolute; left:0; right:0; bottom:0; min-height:2px; border-radius:2px 2px 0 0; box-shadow:inset 0 0 0 1px rgba(15,23,42,0.08); }
.wk-now { outline:2px solid #0f172a; outline-offset:-1px; z-index:1; }
.wk-legend { font-size:11px; color:#64748b; margin-top:8px; font-style:italic; line-height:1.5; }
.coverage-note { font-size:11px; color:#64748b; text-align:center; margin-top:10px; font-style:italic; }

/* ---- current conditions (weather view top card) ---- */
.cur-top { display:flex; align-items:center; justify-content:center; gap:16px; }
.cur-emoji { font-size:56px; line-height:1; flex:0 0 auto; }
.cur-main { text-align:left; }
.cur-temp { font-size:46px; font-weight:700; color:#0f172a; line-height:1; }
.cur-desc { font-size:16px; color:#475569; margin-top:4px; }
.cur-stats { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-top:16px; font-size:13px; color:#64748b; }
.cur-stats .cur-k { color:#64748b; font-weight:700; margin-right:4px; }

/* ---- 24h chart (weather view): precip bars + heat-colored temp line ---- */
.wx-cap { font-size:11px; color:#64748b; margin:2px 0 10px; }
.wx-body { display:flex; align-items:flex-start; gap:6px; }
.wx-axis { position:relative; flex:0 0 30px; }
.wx-right { flex:1; min-width:0; }
.wx-plot { position:relative; display:flex; align-items:flex-end; gap:0; overflow:hidden; }
.wx-grid { position:absolute; left:0; right:0; border-top:1px dashed #e8edf3; pointer-events:none; }
.wx-base { position:absolute; left:0; right:0; height:2px; background:var(--ink); border-radius:1px; pointer-events:none; }
.wx-hl { position:absolute; left:0; right:0; text-align:right; font-size:11px; font-weight:700; line-height:1; transform:translateY(50%); }
.wx-col { position:relative; flex:1 1 0; min-width:0; height:100%; }
.wx-bar { position:absolute; left:1px; right:1px; border-radius:2px 2px 0 0; }
.wx-sky .wx-bar { box-shadow:inset 0 0 0 1px rgba(15,23,42,0.25); }   /* edge against the day/night sky — esp. pale cloudy bars */
.wx-temp { position:absolute; left:0; right:0; height:4px; border-radius:2px; box-shadow:0 0 0 1px rgba(255,255,255,0.55); }
.wx-ticks { display:flex; margin-top:4px; }
.wx-tick { flex:1 1 0; min-width:0; text-align:center; font-size:9px; color:#64748b; }

/* ---- weekly mini charts (weather view) ---- */
.wk2-head { display:flex; }
.wk2-pad { flex:0 0 36px; }
.wk2-hours { flex:1; display:flex; }
.wk2-htick { flex:1 1 0; min-width:0; font-size:9px; color:#64748b; }
.wk2-day { margin-bottom:8px; }
.wk2-name { font-size:12px; font-weight:700; color:#475569; margin:6px 0 2px; }
/* mirror the precip weekly's drawn structure: 6/12-hr verticals + matching baseline floor */
.wk2-day .wx-h6 { border-left:1px solid #eef2f7; }
.wk2-day .wx-h12 { border-left:1px solid #cbd5e1; }
.wk2-day .wx-hend { border-right:1px solid #cbd5e1; }
.wk2-day .wx-base { background:#cbd5e1; height:1.5px; }

/* ---- hour-by-hour list ---- */
.hr-daysep { font-size:12px; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:0.5px; margin:16px 0 2px; padding-bottom:4px; border-bottom:1px solid #e2e8f0; }
.hr-daysep:first-of-type { margin-top:6px; }
.hr-row { display:flex; align-items:flex-start; padding:8px 2px; border-bottom:1px solid #f1f5f9; }
.hr-row:last-child { border-bottom:none; }
.hr-time { flex:0 0 44px; font-size:13px; font-weight:600; color:#475569; padding-top:1px; }
.hr-temp { flex:0 0 42px; font-size:16px; font-weight:700; color:#0f172a; text-align:right; margin:0 12px 0 4px; }
.hr-main { flex:1 1 auto; min-width:0; font-size:14px; color:#475569; line-height:1.45; }
.hr-emoji { font-size:18px; vertical-align:-3px; margin-right:5px; }
.hr-pop { font-weight:600; color:var(--accent); margin-left:6px; white-space:nowrap; }

/* ---- mobile ---- */
@media (max-width:480px) {
  .brand { gap:11px; }
  .brand-chip { width:52px; height:52px; border-radius:12px; }
  .brand-chip img { width:33px; height:33px; }
  .brand-word { font-size:26px; }
  .headDate { font-size:20px; margin:20px 0 12px; }
  .panel { padding:12px; }
  .rb-plot { height:72px; }
  #headline .hl-main { font-size:19px; }
  #headline .hl-when { font-size:25px; }
  #headline .hl-when ~ .hl-main { font-size:17px; }
  .event-row .ev-edge .ev-lbl { min-width:40px; }
  .event-row .ev-dur, .ev-seg, .ev-trans { margin-left:16px; }
  .event-item.expanded .ev-emoji { display:none; }
}
