/* The homepage has natural, visible, server-rendered meteorological content
   before the interactive map. The map itself can expand to the viewport. */
html { height: auto; overflow: auto; }
body.map-page {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  background: #f4f8fb;
}
.public-home { width: 100%; }
.public-home-intro {
  max-width: 1220px;
  padding: 28px 24px 19px;
  margin: 0 auto;
}
.public-home-intro h1 {
  font: 800 clamp(27px, 3.4vw, 43px)/1.12 'Encode Sans Condensed', sans-serif;
  color: #20293c;
  margin: 9px 0 10px;
}
.public-home-intro p {
  max-width: 1000px;
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.65;
}
.public-home-intro nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.public-home-intro nav a {
  border-radius: 999px;
  background: #fff;
  color: #5846d1;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 13px;
  border: 1px solid rgba(88,70,209,.16);
}
.public-home-intro nav a:hover { background: #efecff; }
.map-stage {
  position: relative;
  width: 100%;
  height: clamp(630px, 78dvh, 970px);
  isolation: isolate;
  background: #dce8ee;
  overflow: hidden;
}
.map-stage .radar-shell,
.map-stage .map { position: absolute; inset: 0; }
.map-stage .startup-cover,
.map-stage .topbar,
.map-stage .live-card,
.map-stage .nowcast-card,
.map-stage .traffic-card,
.map-stage .nowcast-verification-workspace,
.map-stage .layers-panel,
.map-stage .timeline,
.map-stage .source-credit { position: absolute; }
.map-stage .layers-panel { max-height: calc(100% - 248px); }
.map-stage .nowcast-verification-workspace { max-height: calc(100% - 248px); }
.map-stage .map-expand-button {
  flex: 0 0 auto;
  font-size: 23px;
  line-height: 1;
}
.map-stage.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100%;
  height: 100dvh;
}
html.map-expanded, body.map-expanded { overflow: hidden; }
.public-home-details {
  max-width: 1220px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 auto;
  padding: 31px 24px 55px;
}
.public-home-details > div {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 22px;
}
.public-home-details h2 {
  color: #20293c;
  font: 800 23px/1.18 'Encode Sans Condensed', sans-serif;
  margin: 0 0 12px;
}
.public-home-details p { font-size: 13px; line-height: 1.7; }
.public-home-details a { color: #5846d1; font-size: 12px; font-weight: 800; text-decoration: underline; }
.public-home a:focus-visible,
.map-stage button:focus-visible { outline: 3px solid #00aef5; outline-offset: 3px; }
@media (max-width: 880px) {
  .public-home-details { grid-template-columns: 1fr; }
  .map-stage .layers-panel { max-height: 58%; }
}
@media (max-width: 720px) {
  .public-home-intro { padding: 20px 14px; }
  .public-home-intro p { font-size: 12px; }
  .public-home-intro nav a { font-size: 11px; padding: 8px 10px; }
  .map-stage { height: max(570px, 85dvh); }
  .map-stage.is-expanded { height: 100dvh; }
  .public-home-details { padding: 20px 14px 40px; }
  .map-stage .layers-panel { max-height: 59%; }
}

/* Editorial URLs have readable, indexable server HTML and normal document
   scrolling; they do not bootstrap Leaflet or download any meteorological feed. */
html:has(body.content-page) { height: auto; overflow: auto; }
body.content-page {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  background: #f4f8fb;
  font-size: 15px;
}
.editorial-shell { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.editorial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid #dfe8ee;
}
.editorial-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #263448; }
.editorial-header nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; font-weight: 700; }
.editorial-header nav a:hover, .editorial-explore a:hover { color: #5846d1; text-decoration: underline; }
.editorial-main { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; padding: 23px 0 50px; }
.editorial-breadcrumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; font-size: 11px; color: #647681; }
.editorial-breadcrumbs a { color: #5846d1; text-decoration: underline; }
.editorial-article, .editorial-explore {
  background: #fff;
  padding: 30px;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(23,43,58,.07);
  align-self: start;
}
.editorial-kicker { color: #5846d1; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.editorial-article h1 { color: #20293c; font: 800 clamp(28px,4vw,42px)/1.1 'Encode Sans Condensed', sans-serif; margin: 12px 0 15px; }
.editorial-lead { color: #3e5064; font-size: 16px; line-height: 1.7; }
.editorial-cta {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding: 12px 17px;
  margin: 10px 0;
  border-radius: 8px;
  background: #5846d1;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.editorial-cta:hover { background: #4938c2; }
.editorial-accuracy { padding: 12px; background: #f2f6fb; font-size: 12px; line-height: 1.6; border-radius: 8px; }
.editorial-section { margin-top: 32px; }
.editorial-section h2 { color: #20293c; font: 800 22px/1.2 'Encode Sans Condensed', sans-serif; }
.editorial-section p { line-height: 1.7; }
.editorial-explore h2 { margin: 0; font: 800 19px/1.2 'Encode Sans Condensed', sans-serif; }
.editorial-explore ul { padding-left: 19px; line-height: 1.7; }
.editorial-explore li { margin: 11px 0; font-size: 12px; }
.editorial-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 30px; border-top: 1px solid #dfe8ee; font-size: 10px; color: #5c7081; }
.editorial-footer a { color: #5846d1; font-weight: 800; }
@media (max-width: 880px) {
  .editorial-main { grid-template-columns: 1fr; }
  .editorial-breadcrumbs { grid-column: 1; }
  .seo-home-guide { max-height: calc(100dvh - 315px); }
}
@media (max-width: 720px) {
  .seo-guide-toggle { padding: 7px 9px; font-size: 10px; }
  .seo-home-guide { top: 151px; left: 8px; width: min(322px, calc(100vw - 16px)); max-height: calc(100dvh - 285px); }
  .editorial-shell { padding: 0 14px; }
  .editorial-header { flex-wrap: wrap; }
  .editorial-header nav { gap: 9px 14px; }
  .editorial-article, .editorial-explore { padding: 19px; }
}
