/* LakeCount live conditions module (Release 3, staged).
   Companion to conditions.js. Designed in the Release 2 language:
   white panel, 5px top rule, Fraunces display numerals, amber sun accent.
   The host section (.wx) carries no margin or height of its own; the
   frame below owns all spacing, so a module that never populates leaves
   zero trace on the page. Heights are reserved per breakpoint so the
   skeleton and the populated frame occupy the same footprint. */

.wx{margin:0;padding:0}
.wx-frame{
  background:var(--panel);
  border:1px solid var(--line);
  border-top:5px solid var(--sun);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px 20px 14px;
  margin:26px 0 6px;
  min-height:236px;
}

/* header row */
.wx-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wx-kicker{
  font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:var(--sun-dk);
}
.wx-updated{font-size:12.5px;color:var(--muted);white-space:nowrap}

/* current conditions */
.wx-now{display:flex;align-items:center;gap:18px;margin-top:10px}
.wx-now .wx-ic{flex:0 0 auto}
.wx-temp{
  font-family:var(--font-display);font-weight:900;color:var(--ink);
  font-size:54px;line-height:1;letter-spacing:-.01em;white-space:nowrap;
}
.wx-temp sup{font-size:24px;font-weight:700;color:var(--muted);margin-left:2px}
.wx-cond{min-width:0}
.wx-desc{font-size:17px;font-weight:700;color:var(--ink);line-height:1.25}
.wx-meta{font-size:14px;color:var(--muted);margin-top:3px;line-height:1.45}
.wx-meta b{color:var(--ink);font-weight:700}

/* weather icons (inline SVG strokes) */
.wx-ic{color:#e09c00}
.wx-ic.cloud,.wx-ic.partly{color:var(--accent)}
.wx-ic.rain,.wx-ic.snow,.wx-ic.storm{color:var(--accent-dk)}
.wx-ic svg{display:block}

/* alert strip - only rendered when NWS has an active alert for the point */
.wx-alert{
  display:flex;gap:9px;align-items:flex-start;
  background:var(--sand);border:1px solid #efdfae;border-radius:12px;
  padding:8px 12px;margin-top:12px;
  font-size:13.5px;font-weight:700;color:#6b4e00;line-height:1.4;
}
.wx-alert .wx-ic{color:var(--sun-dk);flex:0 0 auto;margin-top:1px}

/* short forecast strip */
.wx-strip{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
  border-top:1px solid var(--line);margin-top:14px;padding-top:12px;
}
.wx-per{min-width:0}
.wx-per-name{
  font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:var(--accent-dk);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.wx-per-row{display:flex;align-items:center;gap:8px;margin-top:4px}
.wx-per-temp{font-family:var(--font-display);font-weight:700;font-size:21px;color:var(--ink);white-space:nowrap}
.wx-per-temp sup{font-size:12.5px;color:var(--muted);font-weight:700}
.wx-per-wind{font-size:12.5px;color:var(--muted);margin-top:2px;white-space:nowrap}

/* loading skeleton - same footprint as the populated frame */
.wx-skel .bar{
  border-radius:8px;
  background:linear-gradient(100deg,var(--panel2) 40%,#f4f9fd 50%,var(--panel2) 60%);
  background-size:200% 100%;
  animation:wxshimmer 1.4s ease-in-out infinite;
}
.wx-skel .b-kicker{width:150px;height:12px}
.wx-skel .b-now{width:62%;height:54px;margin-top:16px}
.wx-skel .b-meta{width:44%;height:14px;margin-top:12px}
.wx-skel .b-strip{height:52px;margin-top:26px}
@keyframes wxshimmer{from{background-position:120% 0}to{background-position:-80% 0}}

/* tablet */
@media (max-width:1180px){
  .wx-frame{min-height:232px}
  .wx-temp{font-size:48px}
}

/* phone: stack the strip 2 x 2, keep every label on one line */
@media (max-width:640px){
  .wx-frame{padding:14px 16px 12px;min-height:318px}
  .wx-now{gap:13px}
  .wx-temp{font-size:44px}
  .wx-temp sup{font-size:20px}
  .wx-desc{font-size:16px}
  .wx-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
}

@media (prefers-reduced-motion: reduce){
  .wx-skel .bar{animation:none}
}
