/* Red River Dispatch weather desk. Navy night sky over river-clay red; paper panels below. */
.wx-desk { display: grid; gap: 22px; margin: 8px 0 32px; }
.wx-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
  padding: 30px 34px; border-radius: 22px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(220,38,38,.35), transparent 55%),
    linear-gradient(135deg, #0b1424 0%, #13243d 55%, #3a1414 100%);
  box-shadow: 0 18px 40px rgba(11,20,36,.28);
}
.wx-now { display: flex; gap: 22px; align-items: center; }
.wx-now .wx-icon { flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.wx-temp { font-size: clamp(3.4rem, 8vw, 5.4rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; }
.wx-cond { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }
.wx-feels { color: rgba(255,255,255,.72); margin-top: 6px; font-size: .95rem; }
.wx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.wx-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; }
.wx-stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #fca5a5; font-weight: 800; }
.wx-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 1.02rem; }

.wx-panel { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); }
.wx-h2 { font-size: 1.15rem; margin: 0 0 12px; font-weight: 800; }
.wx-h2::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); border-radius: 2px; margin-right: 10px; transform: translateY(-1px); }
.wx-sub { color: var(--ink-soft); font-size: .88rem; margin: -6px 0 12px; }
.wx-sub a, .wx-foot a { text-decoration: underline; text-underline-offset: 3px; }

.wx-chart { margin: 0; }
.wx-chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.wx-legend { font-weight: 600; font-size: .8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.wx-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-left: 8px; }
.lg-temp { background: #dc2626; } .lg-rain { background: #38bdf8; height: 10px !important; }
.wx-chart svg { width: 100%; height: auto; overflow: visible; }
.wx-line { fill: none; stroke: #dc2626; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wx-dot { fill: var(--surface); stroke: #dc2626; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.wx-bar { fill: #38bdf8; opacity: .75; }
.wx-t { font-size: 13px; font-weight: 800; fill: var(--ink); text-anchor: middle; }
.wx-h { font-size: 11px; fill: var(--ink-soft); text-anchor: middle; }

.wx-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.wx-day { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--surface-alt); border: 1px solid var(--surface-border); }
.wx-dn { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.wx-hl b { font-size: 1.1rem; }
.wx-hl { color: var(--ink-soft); }
.wx-hl b { color: var(--ink); }
.wx-pop { font-size: .78rem; color: var(--ink-soft); }
.wx-pop::before { content: "💧"; font-size: .7rem; margin-right: 2px; }
.wx-pop.wet { color: #0284c7; font-weight: 700; }

.wx-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.wx-periods { display: grid; gap: 12px; }
.wx-periods article { border-left: 3px solid var(--red); padding: 2px 0 2px 14px; }
.wx-periods h3 { margin: 0; font-size: .95rem; }
.wx-periods p { margin: 2px 0 0; color: var(--ink-mid); font-size: .94rem; line-height: 1.55; }
.wx-radar img { width: 100%; height: auto; border-radius: 12px; background: #0b1424; aspect-ratio: 600 / 550; object-fit: cover; }

.wx-alerts { display: grid; gap: 10px; }
.wx-alert { border-radius: 14px; padding: 14px 18px; background: #fef2f2; border: 1px solid #fecaca; border-left: 6px solid var(--red); color: #450a0a; }
.wx-alert.sev-moderate { background: #fffbeb; border-color: #fde68a; border-left-color: #d97706; color: #451a03; }
.wx-alert.sev-minor { background: #eff6ff; border-color: #bfdbfe; border-left-color: #2563eb; color: #172554; }
.wx-alert-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wx-alert p { margin: 6px 0 0; }
.wx-instr { font-size: .9rem; opacity: .85; }
.wx-allclear { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--surface-border); color: var(--ink-mid); font-size: .92rem; }
.wx-ok { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.wx-foot { color: var(--ink-soft); font-size: .8rem; margin: 0; }

/* Homepage band */
.wx-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center;
  padding: 18px 22px; margin: 22px 0; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #0b1424 0%, #13243d 60%, #3a1414 100%);
}
.wx-band-now { display: flex; gap: 12px; align-items: center; }
.wx-band-temp { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.wx-band-cond { font-weight: 700; }
.wx-band-sub { color: rgba(255,255,255,.7); font-size: .82rem; }
.wx-band .wx-day { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); padding: 8px 4px; }
.wx-band .wx-hl, .wx-band .wx-pop { color: rgba(255,255,255,.72); }
.wx-band .wx-hl b { color: #fff; }
.wx-band .wx-pop.wet { color: #7dd3fc; }
.wx-band-alert { grid-column: 1 / -1; background: var(--red); border-radius: 10px; padding: 8px 14px; font-size: .92rem; }
.wx-band-link { color: #fca5a5 !important; font-weight: 700; white-space: nowrap; }

@media (max-width: 860px) {
  .wx-hero, .wx-split { grid-template-columns: 1fr; }
  .wx-hero { padding: 22px; }
  .wx-band { grid-template-columns: 1fr; }
  .wx-band .wx-days { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .wx-band .wx-day .wx-icon { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .wx-stats { grid-template-columns: repeat(2, 1fr); }
  .wx-now .wx-icon { width: 72px; height: 72px; }
  .wx-days { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
}
