/* The Mitten Daily: weather.html (Oct. 20, 2026). Mobile first. Uses site.css variables. */
.wx-page { padding-bottom: 24px; }
.wx-intro-row { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.wx-intro h1 { margin-bottom: .4rem; }
.wx-intro h1 + p { margin-top: 0; }
.wx-controls { margin: 14px 0 0; }
.wx-controls label { display: block; font-weight: 600; margin: 0 0 6px; }
.wx-control-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wx-controls select { font: inherit; font-size: 17px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); color: var(--ink); flex: 1 1 220px; max-width: 360px; }
.wx-btn { font: inherit; font-size: 16px; font-weight: 600; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--lake); color: #fff; cursor: pointer; }
.wx-btn:hover, .wx-btn:focus-visible { background: var(--lake-deep); }
.wx-controls select:focus-visible, .wx-btn:focus-visible, .wx-page summary:focus-visible { outline: 3px solid var(--copper-soft); outline-offset: 2px; }
.wx-privacy-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.wx-sq-ad { margin: 0 auto; text-align: center; width: 264px; }
.wx-sq-ad a { display: block; line-height: 0; }
.wx-sq-ad img { width: 240px; height: 240px; max-width: 100%; display: block; margin: 0 auto; object-fit: cover; }
.wx-sq-ad .ad-label { margin: 0 0 8px; text-align: center; }
.wx-sq-ad .ad-disclaimer { margin: 8px 0 0; text-align: center; font-size: 11px; line-height: 1.35; }
.wx-sq-ad .ad-disclaimer a { display: inline; }

.wx-status { margin: 16px 0 0; padding: 10px 14px; border-left: 4px solid var(--lake); background: var(--paper-2); font-size: 15px; }
.wx-status--warn { border-left-color: var(--copper); }
.wx-status--error { border-left-color: #a32020; background: #f8e3df; }
.wx-loading { color: var(--muted); }
.wx-error { color: #7a1b12; background: #f8e3df; padding: 10px 12px; border-radius: 4px; }
.wx-error a { color: inherit; text-decoration: underline; }
.wx-src { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.wx-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wx-card { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 14px 16px; margin: 18px 0; }
.wx-card h2 { margin: 0 0 10px; font-size: 1.3rem; }

/* alerts */
.wx-alerts { margin: 18px 0 0; }
.wx-alerts-head { font-size: 1.15rem; margin: 0 0 8px; }
.wx-noalerts { margin: 0; padding: 8px 12px; border-left: 4px solid #3c7a4a; background: #e8f1e9; font-size: 15px; }
.wx-alert { border: 1px solid; border-left-width: 6px; border-radius: 4px; margin: 0 0 10px; background: #fff; }
.wx-alert summary { cursor: pointer; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-height: 44px; }
.wx-alert-sev { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 2px 7px; border-radius: 3px; color: #fff; }
.wx-alert-event { font-size: 1.05rem; }
.wx-alert-until { font-size: 14px; color: var(--muted); }
.wx-alert > p, .wx-alert > h3 { margin: 0 12px 10px; }
.wx-alert-text { white-space: pre-line; font-size: 15px; }
.wx-alert-sub { font-size: 1rem; }
.wx-alert-area, .wx-alert-src { font-size: 13px; color: var(--muted); }
.wx-alert--extreme { border-color: #7a0019; background: #fbe9ec; }
.wx-alert--extreme .wx-alert-sev { background: #7a0019; }
.wx-alert--severe { border-color: #c21f1f; background: #fdeeee; }
.wx-alert--severe .wx-alert-sev { background: #c21f1f; }
.wx-alert--moderate { border-color: #c46a00; background: #fff4e5; }
.wx-alert--moderate .wx-alert-sev { background: #a85a00; }
.wx-alert--minor { border-color: #b8a000; background: #fffbe5; }
.wx-alert--minor .wx-alert-sev { background: #6f6200; }
.wx-alert--unknown { border-color: var(--rule); }
.wx-alert--unknown .wx-alert-sev { background: var(--muted); }

/* now */
.wx-now-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wx-now-icon { font-size: 52px; line-height: 1; }
.wx-now-temp { font-size: 56px; font-weight: 700; line-height: 1; }
.wx-now-text p { margin: 0; }
.wx-now-cond { font-size: 1.25rem; font-weight: 600; }
.wx-now-where { color: var(--muted); font-size: 15px; }
.wx-now-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 14px 0 0; }
.wx-now-grid div { border-top: 1px solid var(--rule); padding-top: 6px; }
.wx-now-grid dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wx-now-grid dd { margin: 2px 0 0; font-weight: 600; }
.wx-now-detail { margin: 14px 0 0; }

/* hourly */
.wx-hours { max-width: 100%; list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.wx-hour { position: relative; flex: 0 0 74px; scroll-snap-align: start; text-align: center; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 4px; display: flex; flex-direction: column; gap: 3px; background: var(--paper); }
.wx-hour-time { font-weight: 600; font-size: 14px; }
.wx-hour-icon { font-size: 24px; line-height: 1.1; }
.wx-hour-temp { font-size: 20px; font-weight: 700; }
.wx-hour-pop { font-size: 13px; color: var(--lake); }
.wx-hour-wind { font-size: 12px; color: var(--muted); }

/* 7-day */
.wx-days { list-style: none; margin: 0; padding: 0; }
.wx-day { border-top: 1px solid var(--rule); }
.wx-day:first-child { border-top: 0; }
.wx-day-row { cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name temps" "short pop"; gap: 2px 10px; padding: 10px 0; min-height: 44px; list-style: none; }
.wx-day-row::-webkit-details-marker { display: none; }
.wx-day-name { grid-area: name; font-weight: 700; }
.wx-day-icon { display: none; }
.wx-day-short { grid-area: short; color: var(--ink-soft); font-size: 15px; }
.wx-day-pop { grid-area: pop; color: var(--lake); font-size: 14px; text-align: right; }
.wx-day-temps { grid-area: temps; text-align: right; white-space: nowrap; }
.wx-hi { font-weight: 700; margin-left: 8px; }
.wx-lo { color: var(--muted); margin-left: 8px; }
.wx-day-detail { margin: 0 0 10px; font-size: 15px; }

/* radar + links */
.wx-radar-fig { margin: 0 0 12px; }
.wx-radar-fig img { display: block; width: 100%; max-width: 600px; height: auto; border-radius: 4px; background: #1d2a36; }
.wx-links-list { margin: 0; padding-left: 20px; }
.wx-links-list li { margin: 6px 0; }
.wx-offices ul { padding-left: 20px; }
.wx-offices li { margin: 6px 0; }

/* banner ads (same 1400:220 format as every site banner) */
.wx-ad { margin: 22px auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wx-ad > * { width: 100%; max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.wx-ad a[data-section-banner] { display: block; line-height: 0; }
.wx-ad img { width: 100%; height: auto; display: block; }

@media (min-width: 720px) {
  .wx-intro-row { grid-template-columns: minmax(0, 1fr) 264px; gap: 20px; }
  .wx-sq-ad img { width: 264px; height: 264px; }
  .wx-now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wx-card { padding: 18px 20px 20px; }
  .wx-day-row { grid-template-columns: 9rem 2rem minmax(0, 1fr) 3.5rem 9rem; grid-template-areas: "name icon short pop temps"; align-items: center; }
  .wx-day-icon { display: inline; grid-area: icon; font-size: 22px; }
  .wx-ad > * { width: min(50%, 700px); }
}
@media (min-width: 1000px) {
  .wx-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  .wx-body > .wx-alerts, .wx-body > .wx-ad, .wx-body > #wx-updated { grid-column: 1 / -1; }
  .wx-body > .wx-card { margin: 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .wx-hours { scroll-behavior: auto; } }
/* 2026-10-20: middle banner sits in the .wx-body grid, where auto side margins shrank it to 700px (350px banner) on desktop; stretch it so it matches the bottom banner exactly (weather page only). */
@media (min-width: 1000px) {
  .wx-body > .wx-ad { width: 100%; margin-left: 0; margin-right: 0; justify-self: stretch; }
}
