/* /weather/ — the live page. Loaded after v2.css, which supplies the shell. */

.wx-hero { padding: clamp(18px, 3vw, 28px) 0 0; }
.wx-hero h1 { font-size: clamp(30px, 5vw, 52px); max-width: 18ch; margin: 10px 0 8px; }

/* ——— the board ——— */
.wx-board {
  position: relative; border-radius: 28px; overflow: hidden; margin: 22px 0 0;
  background: linear-gradient(150deg, rgba(22,28,42,.6) 0%, rgba(12,16,26,.7) 46%, rgba(9,12,20,.76) 100%);
  border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  box-shadow: 0 40px 96px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
.wx-aura {
  position: absolute; inset: -16% -8%; border-radius: 50%; filter: blur(120px); opacity: .3; z-index: 0;
  background: conic-gradient(from var(--sweep, 0deg), rgba(255,122,69,.9), rgba(255,206,110,.45),
    rgba(72,196,255,.5), rgba(152,96,255,.55), rgba(255,122,69,.9));
  animation: wx-turn 26s linear infinite;
}
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes wx-turn { to { --sweep: 360deg; } }
.wx-board > * { position: relative; z-index: 1; }

.wx-hd {
  display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap;
  padding: 20px clamp(16px, 3vw, 28px) 4px;
}
.wx-hd strong { font-size: 19px; font-weight: 700; letter-spacing: -.035em; color: #fff; }
.wx-hd .when { margin-left: auto; font-size: 13px; color: var(--muted); }

.wx-split { display: flex; flex-wrap: wrap; padding: 4px clamp(8px, 2vw, 16px) 14px; }
.wx-mapwrap { flex: 999 1 460px; min-width: 0; padding: 6px 10px; }
.wx-side { flex: 1 1 280px; padding: 8px 12px; }

.wx-node { cursor: pointer; transition: transform .45s cubic-bezier(.16,1,.3,1); transform-box: fill-box; transform-origin: center; }
.wx-node:hover { transform: scale(1.18); }
@keyframes wx-ping { 0% { r: 9; opacity: .85 } 100% { r: 32; opacity: 0 } }
.wx-ping { animation: wx-ping 2.4s cubic-bezier(.2,.6,.3,1) infinite; }

/* phones: the coast map goes unreadable, so the same data becomes a row */
.wx-pills { display: none; }
@media (max-width: 759px) {
  .wx-mapwrap { display: none; }
  .wx-pills {
    display: flex; gap: 8px; width: 100%; padding: 4px 6px 10px; overflow-x: auto;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .wx-pills::-webkit-scrollbar { display: none; }
  .wx-pill {
    flex: 0 0 auto; min-width: 104px; scroll-snap-align: start; cursor: pointer; text-align: left;
    padding: 11px 13px 12px; border-radius: 16px; font: inherit; color: inherit;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  }
  .wx-pill.on { background: rgba(255,138,82,.18); border-color: rgba(255,138,82,.5); }
  .wx-pill .c { display: block; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
  .wx-pill .t { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.05em; color: #fff; margin-top: 2px; }
  .wx-pill.on .t { color: var(--coral); }
  .wx-pill .d { display: block; font-size: 12px; color: var(--body); margin-top: 3px; }
}

/* ——— now card ——— */
.wx-now {
  background: rgba(8,12,20,.5); border: 1px solid rgba(255,255,255,.2); border-radius: 24px;
  padding: 20px 22px; box-shadow: 0 26px 56px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.wx-now .city { font-size: 13px; font-weight: 600; color: var(--muted); }
.wx-big { display: flex; align-items: baseline; gap: 11px; margin-top: 4px; }
.wx-big .t { font-size: 58px; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--coral); text-shadow: 0 0 38px rgba(255,138,82,.55); }
.wx-big .f { font-size: 15px; color: var(--body); }
.wx-desc { font-size: 16px; color: #eaf0f8; margin-top: 8px; font-weight: 500; }
.wx-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 10px; margin-top: 18px; }
.wx-stats .k { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.wx-stats .v { font-size: 17px; font-weight: 700; color: #fff; margin-top: 1px; }
.wx-stats .s { font-size: 12px; color: var(--muted); }

/* ——— sun arc ——— */
.wx-arc { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }

/* ——— charts ——— */
.wx-panel { padding: 0 clamp(16px, 3vw, 28px) 10px; }
.wx-panel h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 2px; letter-spacing: -.02em; }
.wx-panel .sub { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.wx-chart { position: relative; }
.wx-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.wx-tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -115%);
  background: rgba(8,12,20,.94); border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: 7px 11px; font-size: 12.5px; color: #fff; white-space: nowrap;
  box-shadow: 0 14px 32px rgba(0,0,0,.6); transition: opacity .18s;
}
.wx-tip b { color: var(--coral); }

/* ——— 7 day ——— */
.wx-days { display: grid; gap: 1px; margin: 4px 0 0; }
.wx-day {
  display: grid; grid-template-columns: 58px 30px 1fr 86px; align-items: center; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.wx-day:last-child { border-bottom: 0; }
.wx-day .dn { font-size: 13.5px; font-weight: 700; color: #fff; }
.wx-day.is-today .dn { color: var(--coral); }
.wx-day .ic { font-size: 17px; text-align: center; }
.wx-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
.wx-range {
  position: absolute; top: 0; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,138,82,.45), var(--coral));
}
.wx-day .tt { font-size: 13px; color: var(--body); text-align: right; font-variant-numeric: tabular-nums; }
.wx-day .tt b { color: #fff; font-weight: 700; }
.wx-day .meta { grid-column: 3 / span 2; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
@media (max-width: 520px) {
  .wx-day { grid-template-columns: 50px 24px 1fr 76px; gap: 9px; }
  .wx-day .tt { font-size: 12.5px; }
}

.wx-foot {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  padding: 12px clamp(16px, 3vw, 28px) 18px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 12.5px; color: var(--muted);
}
.wx-foot a { color: var(--coral); }

details.wx-table { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
details.wx-table summary { cursor: pointer; }
details.wx-table table { margin-top: 8px; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .wx-aura, .wx-ping { animation: none !important; }
  .wx-node { transition: none; }
}
