/* WeatherPulse Forecast — local newsroom foundation
   This is the authoritative page layer. Specialized chart/table rules live in
   weatherpulse-forecast-analytical.css and section state lives in
   weatherpulse-forecast-mode.css. */

:root {
  --forecast-canvas: #f5f2ea;
  --forecast-surface: #ffffff;
  --forecast-ink: #102230;
  --forecast-muted: #61707c;
  --forecast-accent: #1f6fb2;
  --forecast-line: rgba(16, 34, 48, 0.14);
  --forecast-soft: #eceff0;
  --forecast-shadow: 0 8px 24px rgba(16, 34, 48, 0.08);
  --forecast-card-radius: 14px;
  --forecast-control-radius: 10px;
  --forecast-page-width: 1120px;
  --forecast-pad: clamp(16px, 4vw, 28px);
  --bg-main: var(--forecast-canvas);
  --bg-card: var(--forecast-surface);
  --text-main: var(--forecast-ink);
  --text-sub: var(--forecast-muted);
  --brand-primary: var(--forecast-accent);
  --divider: var(--forecast-line);
  --input-bg: #f7f8f7;
}

html[data-theme="night"] {
  --forecast-canvas: #081521;
  --forecast-surface: #102330;
  --forecast-ink: #f4f7f9;
  --forecast-muted: #a9b7c2;
  --forecast-accent: #67b7f7;
  --forecast-line: rgba(244, 247, 249, 0.14);
  --forecast-soft: #172d3b;
  --forecast-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  --input-bg: #132a38;
}

html,
body.wp-page-forecast {
  background: var(--forecast-canvas);
  color: var(--forecast-ink);
}

body.wp-page-forecast {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}

body.wp-page-forecast *,
body.wp-page-forecast *::before,
body.wp-page-forecast *::after { box-sizing: border-box; }

body.wp-page-forecast button,
body.wp-page-forecast input,
body.wp-page-forecast select,
body.wp-page-forecast textarea { font: inherit; }

body.wp-page-forecast button,
body.wp-page-forecast a { -webkit-tap-highlight-color: transparent; }

body.wp-page-forecast [hidden] { display: none !important; }

body.wp-page-forecast :where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--forecast-accent) 70%, transparent);
  outline-offset: 2px;
}

body.wp-page-forecast #weather-engine { display: none; }

body.wp-page-forecast #main-scroll {
  width: 100%;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px) + var(--wp-native-tab-bar-offset, 0px));
}

body.wp-page-forecast .sticky-location-bar {
  position: sticky;
  z-index: 80;
  top: 0;
  width: 100%;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(0, 440px) minmax(88px, 1fr);
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--forecast-surface) 94%, transparent);
  border-bottom: 1px solid var(--forecast-line);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.wp-page-forecast .sticky-location-bar .search-pill {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-control-radius);
  background: var(--forecast-surface);
  color: var(--forecast-ink);
  box-shadow: none;
}

body.wp-page-forecast .search-pill-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

body.wp-page-forecast .search-text {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.93rem;
  font-weight: 700;
}

body.wp-page-forecast .search-icon,
body.wp-page-forecast .expand-arrow { color: var(--forecast-accent); }

body.wp-page-forecast .sticky-location-bar .search-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 19px;
  overflow: hidden;
  color: transparent;
  font-family: system-ui, sans-serif;
  font-size: 0;
  filter: none;
}

body.wp-page-forecast .sticky-location-bar .search-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--forecast-accent);
  border-radius: 50%;
}

body.wp-page-forecast .sticky-location-bar .search-icon::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 6px;
  width: 5px;
  height: 5px;
  border-right: 2px solid var(--forecast-accent);
  border-bottom: 2px solid var(--forecast-accent);
  transform: rotate(45deg);
}

body.wp-page-forecast .sticky-location-bar .expand-arrow {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin: -4px 2px 0 1px;
  overflow: hidden;
  border-right: 2px solid var(--forecast-muted);
  border-bottom: 2px solid var(--forecast-muted);
  color: transparent;
  font-family: system-ui, sans-serif;
  font-size: 0;
  line-height: 0;
  transform: rotate(45deg);
  filter: none;
}

body.wp-page-forecast .sticky-location-bar .header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 140px;
}

body.wp-page-forecast .sticky-location-bar .header-action-btn {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--forecast-control-radius);
  background: transparent;
  color: var(--forecast-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 0;
  line-height: 1;
  text-indent: 0;
  filter: none;
}

body.wp-page-forecast .header-action-btn::before {
  display: block;
  color: currentColor;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

body.wp-page-forecast .header-action-btn[data-forecast-header-icon="heart-outline"]::before { content: "\2661"; }
body.wp-page-forecast .header-action-btn[data-forecast-header-icon="heart"]::before { content: "\2665"; }
body.wp-page-forecast .header-action-btn[data-forecast-header-icon="locate"]::before { content: "\2316"; font-size: 25px; }
body.wp-page-forecast .header-action-btn[data-forecast-header-icon="loading"]::before { content: "\21BB"; font-size: 24px; animation: forecast-header-spin 0.8s linear infinite; }

body.wp-page-forecast .sticky-location-bar .wp-shell-header-notify {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  overflow: hidden;
}

body.wp-page-forecast .sticky-location-bar #wp-shell-notify-icon {
  position: relative;
  width: 20px;
  height: 20px;
  overflow: visible;
  color: inherit;
  font-family: system-ui, sans-serif;
  font-size: 0;
  line-height: 0;
}

body.wp-page-forecast .sticky-location-bar #wp-shell-notify-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 14px;
  height: 13px;
  border: 2px solid currentColor;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;
}

body.wp-page-forecast .sticky-location-bar #wp-shell-notify-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 1px;
  width: 8px;
  height: 3px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
}

@keyframes forecast-header-spin { to { transform: rotate(360deg); } }

body.wp-page-forecast .header-action-btn:hover,
body.wp-page-forecast .header-action-btn.active-pin {
  background: var(--forecast-soft);
  color: var(--forecast-accent);
}

body.wp-page-forecast .forecast-alert-shell {
  width: min(calc(100% - (var(--forecast-pad) * 2)), var(--forecast-page-width));
  margin: 14px auto 0;
}

body.wp-page-forecast .forecast-alert-shell.is-empty { min-height: 0; margin-top: 6px; }

body.wp-page-forecast .forecast-context-hero {
  position: relative;
  width: min(calc(100% - (var(--forecast-pad) * 2)), var(--forecast-page-width));
  height: clamp(190px, 28vw, 230px);
  min-height: 190px;
  max-height: 230px;
  margin: 14px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #315e79;
  box-shadow: var(--forecast-shadow);
}

body.wp-page-forecast .forecast-context-hero #video-viewport,
body.wp-page-forecast .forecast-context-hero #bg-video,
body.wp-page-forecast .forecast-context-hero #motion-overlay,
body.wp-page-forecast .forecast-context-hero #android-hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.wp-page-forecast .forecast-context-hero #bg-video { object-fit: cover; }

body.wp-page-forecast .forecast-context-hero #motion-overlay {
  background: linear-gradient(100deg, rgba(5, 18, 28, 0.76) 0%, rgba(5, 18, 28, 0.34) 68%, rgba(5, 18, 28, 0.52) 100%);
}

body.wp-page-forecast .forecast-context-hero .hero-content-layer {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 4vw, 36px);
  display: flex;
  align-items: center;
}

body.wp-page-forecast .forecast-context-hero .hero-section,
body.wp-page-forecast .forecast-context-hero #hero-content { width: 100%; }

body.wp-page-forecast .wp-forecast-hero-kicker {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.wp-page-forecast .forecast-context-hero .hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.wp-page-forecast .forecast-context-hero .hero-temp-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.wp-page-forecast .forecast-context-hero .hero-temp {
  color: #fff;
  font-size: clamp(3rem, 9vw, 4.7rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  font-variant-numeric: tabular-nums;
}

body.wp-page-forecast .forecast-context-hero .hero-icon { width: 54px; height: 54px; object-fit: contain; }

body.wp-page-forecast .forecast-context-hero .hero-details {
  display: grid;
  gap: 2px;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.83rem;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.wp-page-forecast .forecast-context-hero .hero-condition {
  margin-top: 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 720;
}

body.wp-page-forecast .forecast-context-hero .last-updated {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

body.wp-page-forecast .hero-spacer { display: none; }

body.wp-page-forecast .main-wrapper,
body.wp-page-forecast .content-backdrop { width: 100%; background: transparent; }

body.wp-page-forecast .forecast-page-heading {
  width: min(calc(100% - (var(--forecast-pad) * 2)), var(--forecast-page-width));
  margin: clamp(28px, 5vw, 48px) auto 18px;
}

body.wp-page-forecast .wp-section-kicker {
  display: block;
  color: var(--forecast-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.wp-page-forecast .forecast-page-heading h1 {
  margin: 4px 0 6px;
  color: var(--forecast-ink);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

body.wp-page-forecast .forecast-page-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--forecast-muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

body.wp-page-forecast .content-container {
  width: min(calc(100% - (var(--forecast-pad) * 2)), var(--forecast-page-width));
  margin: 20px auto 0;
  padding: 0;
  display: block;
}

body.wp-page-forecast .content-container > * { margin: 0 0 18px; }

body.wp-page-forecast .card,
body.wp-page-forecast .forecast-report-intro,
body.wp-page-forecast .forecast-planning-selector,
body.wp-page-forecast .forecast-client-portal {
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-card-radius);
  background: var(--forecast-surface);
  color: var(--forecast-ink);
  box-shadow: var(--forecast-shadow);
}

body.wp-page-forecast .card-header,
body.wp-page-forecast .forecast-planning-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body.wp-page-forecast .card-title,
body.wp-page-forecast .forecast-report-intro h2,
body.wp-page-forecast .forecast-planning-selector h2 {
  margin: 4px 0 0;
  color: var(--forecast-ink);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

body.wp-page-forecast .forecast-section-note,
body.wp-page-forecast .hourly-context-note,
body.wp-page-forecast .forecast-report-copy > p {
  display: block;
  margin: 7px 0 0;
  color: var(--forecast-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

body.wp-page-forecast .forecast-report-meta {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--forecast-muted);
  font-size: 0.78rem;
}

body.wp-page-forecast .forecast-live-status { color: var(--forecast-ink); font-weight: 700; }
body.wp-page-forecast .forecast-live-status i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2e8b57; }

body.wp-page-forecast .forecast-pattern-read {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-control-radius);
  background: color-mix(in srgb, var(--forecast-accent) 7%, var(--forecast-surface));
}

body.wp-page-forecast .forecast-pattern-read span,
body.wp-page-forecast .forecast-pattern-read strong,
body.wp-page-forecast .forecast-pattern-read p { display: block; }
body.wp-page-forecast .forecast-pattern-read span { color: var(--forecast-accent); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
body.wp-page-forecast .forecast-pattern-read strong { margin-top: 3px; font-size: 1rem; }
body.wp-page-forecast .forecast-pattern-read p { margin: 3px 0 0; color: var(--forecast-muted); font-size: 0.86rem; }

body.wp-page-forecast .forecast-planning-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.wp-page-forecast .forecast-planning-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

body.wp-page-forecast .forecast-planning-tabs button,
body.wp-page-forecast .card-action,
body.wp-page-forecast .btn,
body.wp-page-forecast .retry-btn {
  min-height: 44px;
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-control-radius);
  background: var(--forecast-surface);
  color: var(--forecast-ink);
  font-weight: 700;
}

body.wp-page-forecast .forecast-planning-tabs button {
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.wp-page-forecast .forecast-planning-tabs button.is-active {
  border-color: var(--forecast-accent);
  background: var(--forecast-accent);
  color: #fff;
}

body.wp-page-forecast .forecast-planning-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--forecast-soft);
  color: var(--forecast-muted);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

body.wp-page-forecast .forecast-sponsor-closing {
  padding: 16px;
  box-shadow: none;
}

body.wp-page-forecast .sponsor-spot-head,
body.wp-page-forecast .sponsor-spot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.wp-page-forecast .sponsor-spot-label,
body.wp-page-forecast .sponsor-spot-count,
body.wp-page-forecast .sponsor-spot-note {
  color: var(--forecast-muted);
  font-size: 0.7rem;
}

body.wp-page-forecast .forecast-sponsor-title { margin: 2px 0 10px; font-size: 1rem; }
body.wp-page-forecast .sponsor-spot-frame { display: block; overflow: hidden; border: 1px solid var(--forecast-line); border-radius: 10px; background: var(--forecast-soft); }
body.wp-page-forecast .sponsor-spot-image-stage { position: relative; aspect-ratio: 16 / 5; overflow: hidden; }
body.wp-page-forecast .sponsor-spot-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; }
body.wp-page-forecast .sponsor-spot-image.is-visible { opacity: 1; }
body.wp-page-forecast .sponsor-spot-actions { margin-top: 10px; }
body.wp-page-forecast .sponsor-nav-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--forecast-soft); color: var(--forecast-ink); }
body.wp-page-forecast .sponsor-spot-cta { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--forecast-accent); font-weight: 750; text-decoration: none; }

body.wp-page-forecast .modal-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  background: rgba(3, 13, 20, 0.68);
  backdrop-filter: blur(6px);
}

body.wp-page-forecast .modal-overlay.active { display: flex; }

body.wp-page-forecast .modal-content {
  width: min(100%, 680px);
  max-height: min(84dvh, 760px);
  overflow: auto;
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-card-radius);
  background: var(--forecast-surface);
  color: var(--forecast-ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

body.wp-page-forecast .search-header {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 16px;
  display: flex;
  gap: 10px;
  background: var(--forecast-surface);
  border-bottom: 1px solid var(--forecast-line);
}

body.wp-page-forecast .search-input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-control-radius);
  background: var(--input-bg);
  color: var(--forecast-ink);
}

body.wp-page-forecast .close-search-btn {
  min-width: 72px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--forecast-accent);
  font-weight: 750;
}

body.wp-page-forecast .search-body { padding: 10px 16px 20px; }
body.wp-page-forecast .location-group-title { margin: 18px 0 7px; color: var(--forecast-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
body.wp-page-forecast .saved-list-item { min-height: 54px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--forecast-line); }
body.wp-page-forecast .forecast-location-option[aria-selected="true"] { background: color-mix(in srgb, var(--forecast-accent) 9%, transparent); }
body.wp-page-forecast .location-result-main { min-width: 0; flex: 1; min-height: 52px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; color: var(--forecast-ink); text-align: left; font-weight: 680; }
body.wp-page-forecast .location-result-main > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.wp-page-forecast .pin-list-btn { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--forecast-muted); }
body.wp-page-forecast .pin-list-btn.pinned { color: var(--forecast-accent); }

body.wp-page-forecast .toast {
  position: fixed;
  z-index: 1300;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px) + var(--wp-native-tab-bar-offset, 0px));
  max-width: calc(100% - 32px);
  min-height: 46px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #102230;
  color: #fff;
  box-shadow: var(--forecast-shadow);
  transform: translate(-50%, 18px);
}

body.wp-page-forecast .offline-banner {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px) + var(--wp-native-tab-bar-offset, 0px));
  width: min(calc(100% - 32px), 560px);
  padding: 12px 14px;
  border-radius: 10px;
  background: #102230;
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
}

body.wp-page-forecast .error-state { border: 1px solid var(--forecast-line); border-radius: var(--forecast-card-radius); background: var(--forecast-surface); color: var(--forecast-ink); }

/* Planning tools keep their specialized behavior while sharing the newsroom
   surface, control geometry and restrained depth. */
body.wp-experience.wp-page-forecast #content-grid > .forecast-planning-card,
body.wp-experience.wp-page-forecast #card-cruise {
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--forecast-line) !important;
  border-radius: var(--forecast-card-radius) !important;
  background: var(--forecast-surface) !important;
  color: var(--forecast-ink);
  box-shadow: var(--forecast-shadow) !important;
}

body.wp-experience.wp-page-forecast :is(.route-forecast-sponsor, .cruise-dedicated-sponsor) {
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-control-radius);
  background: var(--forecast-soft);
  box-shadow: none;
}

body.wp-experience.wp-page-forecast .route-place-field,
body.wp-experience.wp-page-forecast .route-departure-field,
body.wp-experience.wp-page-forecast .forecast-form-field :is(input, select, textarea) {
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-control-radius);
  background: var(--input-bg);
  box-shadow: none;
}

body.wp-experience.wp-page-forecast :is(.route-check-button, .forecast-event-save, .cruise-build-button) {
  min-height: 46px;
  border: 1px solid var(--forecast-accent);
  border-radius: var(--forecast-control-radius);
  background: var(--forecast-accent);
  color: #fff;
  box-shadow: none;
}

body.wp-experience.wp-page-forecast :is(.route-verdict, .cruise-result-hero, .event-empty-state) {
  border: 1px solid var(--forecast-line);
  border-radius: var(--forecast-control-radius);
  background: color-mix(in srgb, var(--forecast-accent) 6%, var(--forecast-surface));
  box-shadow: none;
}

/* Cruise's legacy planning sheet inherits light ds-* fallbacks. Rebind its
   local variables in night mode so every itinerary surface and label resolves
   through the shared newsroom palette. Sponsor artwork and brand accents are
   intentionally left untouched. */
html[data-theme="night"] body.wp-experience.wp-page-forecast #card-cruise,
body.wp-experience.wp-page-forecast.wp-shell-theme-night #card-cruise {
  --plan-panel: var(--forecast-surface);
  --plan-soft: var(--forecast-soft);
  --plan-line: var(--forecast-line);
  --plan-ink: var(--forecast-ink);
  --plan-muted: var(--forecast-muted);
  color: var(--forecast-ink);
}

html[data-theme="night"] body.wp-experience.wp-page-forecast #card-cruise :is(
  #cruise-planner-title,
  .cruise-manual-head h3,
  .cruise-date-copy strong,
  .cruise-port-library-head strong,
  .cruise-result-hero h3
),
body.wp-experience.wp-page-forecast.wp-shell-theme-night #card-cruise :is(
  #cruise-planner-title,
  .cruise-manual-head h3,
  .cruise-date-copy strong,
  .cruise-port-library-head strong,
  .cruise-result-hero h3
) { color: var(--forecast-ink); }

html[data-theme="night"] body.wp-experience.wp-page-forecast #card-cruise :is(
  .forecast-section-note,
  .cruise-manual-head p,
  .cruise-date-copy small,
  .cruise-port-gap,
  .cruise-port-library-head small,
  .cruise-result-hero p,
  .cruise-recent-head
),
body.wp-experience.wp-page-forecast.wp-shell-theme-night #card-cruise :is(
  .forecast-section-note,
  .cruise-manual-head p,
  .cruise-date-copy small,
  .cruise-port-gap,
  .cruise-port-library-head small,
  .cruise-result-hero p,
  .cruise-recent-head
) { color: var(--forecast-muted); }

html[data-theme="night"] body.wp-experience.wp-page-forecast #card-cruise :is(
  .cruise-date-icon,
  .cruise-port-library-head > .material-icons-round:first-child,
  .cruise-port-library-chevron,
  .cruise-result-icon
),
body.wp-experience.wp-page-forecast.wp-shell-theme-night #card-cruise :is(
  .cruise-date-icon,
  .cruise-port-library-head > .material-icons-round:first-child,
  .cruise-port-library-chevron,
  .cruise-result-icon
) { color: var(--forecast-accent); }

@media (max-width: 720px) {
  body.wp-page-forecast .sticky-location-bar { grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
  body.wp-page-forecast .header-spacer:first-child { display: none; }
  body.wp-page-forecast .sticky-location-bar .search-pill { justify-self: stretch; }
  body.wp-page-forecast .forecast-context-hero { height: 200px; min-height: 200px; }
  body.wp-page-forecast .forecast-page-heading { margin-top: 26px; }
  body.wp-page-forecast .forecast-planning-selector { align-items: stretch; flex-direction: column; }
  body.wp-page-forecast .forecast-planning-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  body.wp-page-forecast .forecast-planning-tabs button { justify-content: center; padding: 0 8px; }
  body.wp-page-forecast .card-header,
  body.wp-page-forecast .forecast-planning-head { align-items: stretch; flex-direction: column; }
  body.wp-page-forecast .forecast-planning-badge { align-self: flex-start; }
  body.wp-page-forecast .modal-overlay { align-items: flex-end; padding: 0; }
  body.wp-page-forecast .modal-content { width: 100%; max-height: 90dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

@media (max-width: 430px) {
  :root { --forecast-pad: 14px; }
  body.wp-page-forecast .forecast-context-hero .hero-content-layer { padding: 20px; }
  body.wp-page-forecast .forecast-context-hero .hero-icon { width: 46px; height: 46px; }
  body.wp-page-forecast .forecast-context-hero .hero-details { font-size: 0.76rem; }
  body.wp-page-forecast .card,
  body.wp-page-forecast .forecast-report-intro,
  body.wp-page-forecast .forecast-planning-selector { padding: 18px 16px; }
}

body.wp-page-forecast .forecast-empty-state {
  width: 100%;
  margin: 0;
  padding: 24px 16px;
  color: var(--text-sub);
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Native focus and scrollIntoView must clear the dock and sticky section tabs. */
body.wp-page-forecast #main-scroll {
  scroll-padding-top: 160px;
  scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}
body.wp-page-forecast :is(.hour-row-button, .day-row-button) {
  scroll-margin-top: 160px;
  scroll-margin-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}
html:has(body.wp-page-forecast) {
  scroll-padding-top: 160px;
  scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
  body.wp-page-forecast *,
  body.wp-page-forecast *::before,
  body.wp-page-forecast *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.wp-page-forecast .forecast-context-hero #bg-video { display: none; }
}
