/*
 * Focused layout inspired by WEATHER-TEMPLATE/map-details.html.
 * Only public header/banner, content grids and decorative link cards live
 * here. Do not import the template's Bootstrap/reset/JS or replace Leaflet.
 */
.weather-site-header {
  position: relative;
  z-index: 1;
  background: #fff;
  border-top: 3px solid #00aef5;
  border-bottom: 1px solid #e6eaf0;
}
.weather-site-header__inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.weather-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #071a47;
  font-family: var(--template-heading, 'Encode Sans Condensed', sans-serif);
  font-size: 23px;
  font-weight: 600;
}
.weather-site-brand__mark {
  color: #ffab13;
  font-size: 31px;
  line-height: 1;
}
.weather-site-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.weather-site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  font: 600 16px/1.2 var(--template-heading, 'Encode Sans Condensed', sans-serif);
  color: #243343;
}
.weather-site-menu-toggle { display: none; }
.weather-site-nav a:hover,
.weather-site-nav a[aria-current="page"] {
  background: #eefaff;
  color: #008aca;
}
.weather-page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 7%, rgba(72,143,182,.45), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(22,60,74,.8), transparent 55%),
    linear-gradient(130deg, #102b3d 0%, #173e59 42%, #081e35 100%);
  color: #fff;
}
.weather-page-banner::after {
  position: absolute;
  content: '';
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background: repeating-linear-gradient(157deg, transparent 0 27px, rgba(255,255,255,.08) 28px 29px, transparent 30px 53px);
}
.weather-page-banner__inner {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 176px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 27px 0;
}
.weather-page-banner__kicker,
.weather-section-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.weather-page-banner__kicker { color: #9ddff9; }
.weather-page-banner h1,
.weather-page-banner__title {
  font: 600 clamp(25px, 3.2vw, 39px)/1.18 var(--template-heading, 'Encode Sans Condensed', sans-serif);
  margin: 9px 0;
  color: #fff;
}
.weather-page-banner__title { max-width: 800px; }
.weather-page-banner p:not(.weather-page-banner__title) { margin: 0; max-width: 650px; font-size: 13px; line-height: 1.6; }
.weather-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 290px;
  font-size: 11px;
  line-height: 1.5;
}
.weather-breadcrumb a:hover { text-decoration: underline; }
.weather-breadcrumb [aria-current="page"] { color: #9ddff9; }
.weather-content { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.public-home-intro {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 29px 0 24px;
}
.public-home-intro h2,
.weather-section-heading h2,
.weather-forecast-summary h2,
.weather-highlights h2,
.weather-map-shortcuts h3,
.weather-guide-sidebar h2 {
  font: 600 clamp(23px, 2.4vw, 29px)/1.22 var(--template-heading, 'Encode Sans Condensed', sans-serif);
  color: #181818;
  margin: 0 0 9px;
}
.public-home-intro p { max-width: 1050px; margin: 0; font-size: 13px; line-height: 1.65; }
.weather-map-section { padding: 0 0 35px; }
.weather-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 17px;
}
.weather-section-heading p,
.weather-map-shortcuts > p,
.weather-guide-sidebar > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #64727c;
}
.weather-section-heading > a,
.weather-map-shortcuts__link {
  flex-shrink: 0;
  color: #0097d5;
  font-size: 12px;
  font-weight: 700;
}
.weather-section-heading > a:hover,
.weather-map-shortcuts__link:hover { text-decoration: underline; }
.weather-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(235px, 1fr);
  align-items: start;
  gap: 22px;
}
.weather-map-layout .map-stage {
  width: 100%;
  height: clamp(615px, 74dvh, 810px);
  min-width: 0;
  border: 1px solid #e2e9ed;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(7,26,71,.11);
}
.weather-map-layout .map-stage.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100%;
  height: 100dvh;
  border: 0;
  border-radius: 0;
}
.weather-map-layout .topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  left: 10px;
  right: 10px;
  top: 10px;
  min-height: 60px;
  padding: 8px 10px;
}
.weather-map-layout .topbar .product-nav { display: none; }
.weather-map-layout .brand-mark { width: 32px; height: 32px; font-size: 10px; }
.weather-map-layout .brand-copy strong { font-size: 16px; }
.weather-map-layout .brand-copy small { font-size: 9px; }
.weather-map-layout .top-actions { gap: 4px; }
.weather-map-layout .top-actions .icon-button { width: 35px; height: 35px; }
.weather-map-layout .live-card { top: 80px; left: 10px; padding: 10px 12px; min-width: 165px; }
.weather-map-layout .nowcast-card { top: 167px; left: 10px; }
.weather-map-layout .traffic-card { top: 310px; left: 10px; }
.weather-map-layout .layers-panel { top: 80px; right: 10px; max-height: calc(100% - 188px); }
.weather-map-layout .timeline {
  width: min(780px, calc(100% - 20px));
  bottom: 12px;
  padding: 10px 12px;
}
.weather-map-layout .timeline-copy strong { font-size: 15px; }
.weather-map-layout .source-credit { bottom: 1px; right: 4px; max-width: calc(100% - 8px); font-size: 7px; text-align: right; }
.weather-map-shortcuts { min-width: 0; }
.weather-map-shortcuts h3 { font-size: 21px; }
.weather-map-shortcuts > p { margin-bottom: 12px; }
.weather-map-shortcut {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #e8edf1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 13px rgba(7,26,71,.06);
  transition: border-color .15s ease, transform .15s ease;
}
.weather-map-shortcut:hover,
.weather-map-shortcut:focus-visible { border-color: #00aef5; transform: translateY(-2px); }
.weather-map-shortcut__preview {
  display: block;
  height: 76px;
  background-color: #d5e7e7;
  position: relative;
  overflow: hidden;
}
/* Illustrations for the three homepage layer cards; decorative, never live weather data. */
.weather-map-shortcut__preview::before,
.weather-map-shortcut__preview::after { content: none; }
.weather-map-shortcut__preview {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.weather-map-shortcut__preview--temperature {
  background-color: #c3e9da;
  background-image: url('/images/home-cards/temperature.webp');
}
.weather-map-shortcut__preview--rain {
  background-color: #a8e7eb;
  background-image: url('/images/home-cards/hourly-rain.webp');
}
.weather-map-shortcut__preview--forecast {
  background-color: #a2ddee;
  background-image: url('/images/home-cards/rain-forecast.webp');
}
@media (max-width: 720px) {
  .weather-map-shortcut__preview--temperature { background-position: 22% center; }
  .weather-map-shortcut__preview--rain,
  .weather-map-shortcut__preview--forecast { background-position: 78% center; }
}
.weather-map-shortcut__body { display: grid; gap: 3px; padding: 10px 13px 12px; }
.weather-map-shortcut__body strong {
  font: 600 17px/1.2 var(--template-heading, 'Encode Sans Condensed', sans-serif);
  color: #161e30;
}
.weather-map-shortcut__body small { font-size: 10px; color: #667584; line-height: 1.4; }
.weather-map-shortcuts__link { display: inline-block; padding: 7px 0; }
.weather-map-shortcut:focus-visible,
.weather-primary-link:focus-visible,
.weather-site-header a:focus-visible,
.weather-site-footer a:focus-visible { outline: 3px solid #00aef5; outline-offset: 3px; }
.weather-forecast-summary {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 29px 31px;
  border-radius: 8px;
  background: linear-gradient(120deg, #173c52, #0d2138);
  color: #fff;
}
.weather-section-kicker { color: #009cd9; }
.weather-forecast-summary .weather-section-kicker { color: #9fe8ff; }
.weather-forecast-summary h2 { margin: 8px 0; color: #fff; }
.weather-forecast-summary p { max-width: 860px; margin: 0; color: #e3f0f5; font-size: 12px; line-height: 1.65; }
.weather-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 16px;
  flex-shrink: 0;
  border-radius: 5px;
  background: #00aef5;
  color: #fff;
  font: 600 15px/1.25 var(--template-heading, 'Encode Sans Condensed', sans-serif);
}
.weather-primary-link:hover { background: #071a47; color: #fff; }
.weather-highlights { padding: 39px 0 8px; }
.weather-highlights__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.weather-highlight-card {
  min-height: 153px;
  border: 1px solid #e7ecf0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(7,26,71,.07);
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 16px;
}
.weather-highlight-card > span { color: #00aef5; font-size: 26px; line-height: 1; }
.weather-highlight-card strong { color: #181818; font: 600 18px var(--template-heading, 'Encode Sans Condensed', sans-serif); }
.weather-highlight-card small { color: #61717d; font-size: 11px; line-height: 1.45; }
.weather-highlight-card em { font: normal 700 11px var(--template-body, 'Montserrat', sans-serif); color: #009cd9; margin-top: 5px; }
.weather-highlight-card:hover { border-color: #00aef5; background: #f8fdff; }
.public-home-details {
  width: 100%;
  max-width: none;
  padding: 23px 0 54px;
  gap: 16px;
}
.public-home-details > div { padding: 22px; }
.weather-site-footer { background: #190f36; color: #fff; }
.weather-site-footer__inner {
  width: min(1220px,calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 35px;
}
.weather-site-footer strong {
  display: block;
  font: 600 19px var(--template-heading, 'Encode Sans Condensed', sans-serif);
}
.weather-site-footer p,
.weather-site-footer nav a { color: #e1ddee; font-size: 11px; line-height: 1.75; }
.weather-site-footer nav { display: grid; align-content: start; gap: 6px; }
.weather-site-footer a:hover { color: #76daff; text-decoration: underline; }

/* The guide pages use the same header, banner, central 9/3-style split and
   footer; no map or additional external assets are loaded on guide URLs. */
.weather-guide-content { padding: 32px 0 56px; }
.weather-guide-layout {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(235px,1fr);
  gap: 25px;
  align-items: start;
}
.weather-guide-article,
.weather-guide-sidebar {
  min-width: 0;
  padding: 25px;
  background: #fff;
  border: 1px solid #e5ebef;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(7,26,71,.05);
}
.weather-guide-article h1 {
  margin: 9px 0 16px;
  font: 600 clamp(28px,3vw,39px)/1.2 var(--template-heading, 'Encode Sans Condensed', sans-serif);
  color: #181818;
}
.weather-guide-lead { font-size: 15px; line-height: 1.75; color: #313b46; }
.weather-guide-accuracy { border-left: 3px solid #00aef5; padding: 12px; margin: 19px 0; background: #f1f9fc; font-size: 11px; line-height: 1.6; }
.weather-guide-section { padding-top: 16px; }
.weather-guide-section h2 { margin: 12px 0 8px; font: 600 24px/1.24 var(--template-heading, 'Encode Sans Condensed', sans-serif); color: #181818; }
.weather-guide-section p { margin: 0; font-size: 13px; line-height: 1.8; }
.weather-guide-sidebar h2 { font-size: 21px; }
.weather-guide-sidebar nav { display: grid; gap: 8px; margin-top: 13px; }
.weather-guide-sidebar nav a {
  padding: 10px;
  border-radius: 5px;
  background: #f4f8fb;
  color: #27384a;
  font-size: 12px;
  font-weight: 600;
}
.weather-guide-sidebar nav a:hover { color: #0078b8; background: #eaf8ff; }
.weather-guide-sidebar__link { display: inline-block; margin: 15px 0 0; color: #008dce; font-size: 12px; font-weight: 800; }
.weather-guide-sidebar__link:hover { text-decoration: underline; }
@media (max-width: 1120px) {
  .weather-map-layout, .weather-guide-layout { grid-template-columns: 1fr; }
  .weather-map-layout .map-stage { height: clamp(615px,74dvh,850px); }
  .weather-map-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .weather-map-shortcuts h3, .weather-map-shortcuts > p, .weather-map-shortcuts__link { grid-column: 1 / -1; }
  .weather-map-shortcut { margin: 0; }
  .weather-map-shortcut__preview { height: 66px; }
  .weather-guide-sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .weather-site-header__inner, .weather-page-banner__inner,
  .weather-content, .weather-site-footer__inner { width: calc(100% - 28px); }
  .weather-site-header__inner { min-height: 0; padding: 10px 0; flex-wrap: wrap; gap: 7px; }
  .weather-site-brand { font-size: 19px; }
  .weather-site-brand__mark { font-size: 24px; }
  .weather-site-nav { width: 100%; justify-content: space-between; gap: 0; }
  .weather-site-nav a { padding: 6px 5px; font-size: 12px; }
  .weather-page-banner__inner { min-height: 0; display: block; padding: 27px 0; }
  .weather-breadcrumb { justify-content: start; max-width: none; margin-top: 18px; }
  .weather-page-banner h1 { font-size: 26px; }
  .public-home-intro { padding: 23px 0 18px; }
  .public-home-intro h2 { font-size: 24px; }
  .weather-section-heading { display: block; }
  .weather-section-heading > a { display: inline-block; margin-top: 9px; }
  .weather-map-layout .map-stage { height: max(575px, 81dvh); }
  .weather-map-layout .map-stage.is-expanded { height: 100dvh; }
  .weather-map-layout .topbar { top: 7px; left: 7px; right: 7px; }
  .weather-map-layout .top-actions .icon-button { width: 34px; height: 34px; }
  .weather-map-layout .layers-panel { left: 7px; right: 7px; top: auto; bottom: 105px; width: auto; max-height: 59%; }
  .weather-map-layout .timeline { bottom: 7px; width: calc(100% - 14px); }
  .weather-map-shortcuts { grid-template-columns: 1fr; }
  .weather-map-shortcut { display: grid; grid-template-columns: 100px 1fr; }
  .weather-map-shortcut__preview { height: 100%; min-height: 83px; }
  .weather-forecast-summary { display: block; padding: 23px 19px; }
  .weather-forecast-summary .weather-primary-link { margin-top: 18px; }
  .weather-highlights__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .weather-site-footer__inner { grid-template-columns: 1fr; gap: 21px; }
  .weather-guide-content { padding: 19px 0 37px; }
  .weather-guide-article, .weather-guide-sidebar { padding: 18px; }
  .weather-guide-sidebar nav { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .weather-site-nav a { font-size: 11px; padding: 7px 2px; }
  .weather-highlights__grid { grid-template-columns: 1fr; }
}

/* The public website navigation collapses on narrow screens. Do not alter the
   separate radar layer-toggle inside .map-stage. */
@media (max-width: 880px) {
  .weather-site-header.nav-ready { z-index: 2100; }
  .weather-site-header.nav-ready .weather-site-header__inner {
    position: relative;
    min-height: 62px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .weather-site-header.nav-ready .weather-site-brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 19px;
    line-height: 1.18;
  }
  .weather-site-header.nav-ready .weather-site-brand > span:last-child { min-width: 0; }
  .weather-site-header.nav-ready .weather-site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 11px;
    min-height: 42px;
    border: 1px solid #dce9f0;
    border-radius: 6px;
    background: #f3fbff;
    color: #071a47;
    font: 600 13px/1.2 var(--template-body, 'Montserrat', sans-serif);
    cursor: pointer;
  }
  .weather-site-header.nav-ready .weather-site-menu-toggle:hover,
  .weather-site-header.nav-ready .weather-site-menu-toggle[aria-expanded="true"] {
    border-color: #00aef5;
    background: #e8f7ff;
  }
  .weather-site-header.nav-ready .weather-site-menu-toggle:focus-visible,
  .weather-site-header.nav-ready .weather-site-nav a:focus-visible {
    outline: 3px solid #00aef5;
    outline-offset: 2px;
  }
  .weather-site-header.nav-ready .weather-site-menu-toggle__bars { display: grid; gap: 4px; }
  .weather-site-header.nav-ready .weather-site-menu-toggle__bars span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .weather-site-header.nav-ready .weather-site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    width: auto;
    margin: 0;
    padding: 8px;
    grid-template-columns: 1fr;
    gap: 3px;
    border: 1px solid #dce9f0;
    border-top: 3px solid #00aef5;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 15px 25px rgba(7,26,71,.16);
  }
  .weather-site-header.nav-ready .weather-site-nav.is-open { display: grid; }
  .weather-site-header.nav-ready .weather-site-nav a {
    display: block;
    min-height: 42px;
    padding: 11px 12px;
    font-size: 15px;
    line-height: 1.3;
  }
}
@media (max-width: 400px) {
  .weather-site-header.nav-ready .weather-site-brand { font-size: 16px; }
  .weather-site-header.nav-ready .weather-site-menu-toggle { padding: 8px 9px; }
  .weather-site-header.nav-ready .weather-site-menu-toggle__label { font-size: 12px; }
  .weather-site-header.nav-ready .weather-site-nav a { font-size: 14px; padding: 11px 12px; }
}

/* The immersive Leaflet map must stay above the website header even when
   mobile navigation has its own stacking context. */
html.map-expanded .weather-site-header.nav-ready { z-index: 1; }

/* Curated local radar pages reuse the same map-details layout and weather
   data controls. These are ordinary HTML descriptions and internal links. */
.weather-local-editorial {
  padding: 22px 26px;
  margin-top: 23px;
  background: #fff;
  border-left: 4px solid #00aef5;
  border-radius: 7px;
  box-shadow: 0 5px 18px rgba(7,26,71,.06);
}
.weather-local-editorial h2,
.weather-local-links h2 {
  margin: 0 0 10px;
  font: 600 23px/1.24 var(--template-heading, 'Encode Sans Condensed', sans-serif);
  color: #181818;
}
.weather-local-editorial p { max-width: 950px; font-size: 13px; line-height: 1.75; }
.weather-local-editorial a { color: #008ac5; font-size: 12px; font-weight: 700; }
.weather-local-links { padding: 0 0 46px; }
.weather-local-links > div { display: flex; flex-wrap: wrap; gap: 9px; }
.weather-local-links a {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid #e5edf1;
  background: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #007faa;
}
.weather-local-links a:hover,
.weather-local-links a:focus-visible { border-color: #00aef5; background: #eefaff; }
@media (max-width: 720px) {
  .weather-local-editorial { padding: 18px; }
  .weather-local-links a { flex: 1 1 145px; }
}

.weather-section-heading .weather-map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.5;
}
.weather-map-legend__scale {
  display: inline-block;
  flex: 0 0 92px;
  width: 92px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(7,26,71,.13);
  background: linear-gradient(90deg, #35d7bf, #2ee731 22%, #f4e20e 47%, #ff7a18 67%, #e00000 83%, #9b00cf 100%);
}
