/* Weather page only. CSS-compatible SCSS; copy to css/weather.css. */
.weather-page { color: var(--color-text-primary); }
.weather-page h1, .weather-page h2 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
.weather-page h1 { font-size: clamp(2.8rem, 4.7vw, 4.1rem); margin: 0 0 26px; }
.weather-page h2 { font-size: clamp(2rem, 3.3vw, 2.8rem); margin: 0 0 22px; }
.weather-page h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 8px; }
.weather-page em { color: var(--color-text-brand); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.weather-page p { color: var(--color-text-secondary); line-height: 1.7; margin: 0 0 20px; }
.weather-page .weather-lead { font-size: 1.125rem; }
.weather-page .weather-detail { font-size: .9375rem; }
.weather-page a, .weather-page a:hover { text-decoration: none; }
.weather-page a:focus-visible { outline: 3px solid var(--color-text-brand); outline-offset: 5px; }
.weather-page .btn-primary { background: #2563eb; color: #fff; border-radius: 3px; gap: 18px; }
.weather-page .btn-primary:hover { background: #1d4ed8; }
.weather-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: var(--color-text-brand); font-size: .9375rem; font-weight: 600; }
.weather-link:hover { opacity: .8; }
.weather-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; }
.weather-hero { padding: 36px 0 64px; }
.weather-section { padding: 80px 0; scroll-margin-top: 90px; }
.weather-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.weather-split > * { min-width: 0; }
.weather-page img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.weather-split > img { width: 100%; }
.weather-hero__image { box-shadow: 0 12px 28px -15px #16293c66; }
.weather-gallery { position: relative; aspect-ratio: 5 / 4; }
.weather-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 650ms ease-in-out; }
.weather-gallery img[hidden] { display: none; }
.weather-split--reverse > :first-child { order: 2; }
.weather-days { padding-top: 24px; }
.weather-proof { padding: 48px 0; background: var(--color-bg-tinted); }
.weather-proof__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.weather-proof p:last-child { margin-bottom: 0; }
.weather-setup__main { align-items: start; }
.weather-steps { margin: 0; padding: 0; counter-reset: step; list-style: none; }
.weather-steps li { counter-increment: step; position: relative; padding: 0 0 28px 44px; }
.weather-steps li:last-child { padding-bottom: 0; }
.weather-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 3px; color: var(--color-text-brand); font-size: .8125rem; font-weight: 600; }
.weather-steps p { margin: 0; font-size: .9375rem; }
.weather-delivery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; border-top: 1px solid var(--color-border); margin-top: 36px; padding-top: 28px; }
.weather-delivery p { font-size: .9375rem; margin: 0; }
.weather-rules { background: var(--color-bg-tinted); }
.weather-page .weather-rules__example { max-width: 360px; justify-self: center; }
.weather-rule-builder { margin-top: 36px; border: 1px solid var(--color-border); border-radius: 3px; }
.weather-rule-builder img { width: 100%; border-radius: 0; }
.weather-rule-details { display: none; }
.weather-close { padding: 64px 0 0; background: #0b2842; color: #fff; }
.weather-close__main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-bottom: 52px; }
.weather-close h2 { color: #fff; font-size: clamp(2.5rem, 4.4vw, 3.8rem); text-wrap: initial; margin-bottom: 24px; }
.weather-close em { color: #9ec4ff; }
.weather-close__main p { color: #cfdeea; max-width: 440px; font-size: 1.0625rem; margin: 0 0 32px; }
.weather-close .btn-primary { min-height: 54px; padding: 15px 24px; background: #fff; color: #0b2842; }
.weather-close .btn-primary:hover { background: #dfebff; color: #0b2842; }
.weather-close a:focus-visible { outline-color: #9ec4ff; }
.weather-close__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 22px 0; border-top: 1px solid #385167; }
.weather-close__footer p { color: #b6cbdc; margin: 0; font-size: .875rem; }
.weather-close__footer a { color: #fff; }
.weather-close__footer p a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: 16px; }
.weather-close__footer a:hover { color: #9ec4ff; }
@media (max-width: 1000px) {
  .weather-split, .weather-proof__inner, .weather-delivery, .weather-close__main { gap: 36px; }
}
@media (max-width: 768px) {
  .weather-page h1 { font-size: clamp(2.55rem, 8.5vw, 3.6rem); }
  .weather-page h2 { font-size: clamp(1.9rem, 6.8vw, 2.6rem); }
  .weather-split, .weather-proof__inner, .weather-delivery, .weather-close__main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .weather-split--reverse > :first-child { order: initial; }
  .weather-hero { padding: 28px 0 44px; }
  .weather-section { padding: 52px 0; }
  .weather-days { padding-top: 12px; }
  .weather-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .weather-proof { padding: 40px 0; }
  .weather-proof h2 { margin-bottom: 0; }
  .weather-close { padding-top: 44px; }
  .weather-close h2 { font-size: clamp(2.3rem, 8vw, 3.5rem); }
  .weather-close__main { padding-bottom: 32px; }
  .weather-close__footer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0; }
  .weather-close__footer p a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .weather-gallery img { transition: none; }
}
@media (max-width: 600px) {
  .weather-rule-builder { display: none; }
  .weather-rule-details { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 280px; margin: 32px auto 0; }
  .weather-rule-detail { position: relative; overflow: hidden; width: calc(var(--field-width) / 472 * 100%); aspect-ratio: var(--field-width) / 76; }
  .weather-page .weather-rule-detail img { position: absolute; width: calc(2429 / var(--field-width) * 100%); max-width: none; height: auto; left: calc(var(--field-x) / var(--field-width) * -100%); top: calc(147 / 76 * -100%); border-radius: 0; }
}

