.weather-live-page {
  --weather-navy: #061a36;
  --weather-blue: #3f6fff;
  --weather-aqua: #29bdd6;
  --weather-yellow: #ffbd35;
  --weather-coral: #ff625f;
  --weather-green: #24a876;
  --weather-line: #dce4ee;
  --weather-muted: #758297;
}

.weather-live-page > * {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.weather-live-intro h2 span {
  color: #a9b4c3;
}

.weather-intro-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
}

.weather-live-intro .weather-intro-actions > .weather-live-status {
  display: inline-flex;
  margin-top: 0;
  max-width: none;
  line-height: 1;
}

.weather-live-status,
.weather-refresh {
  min-height: 42px;
  border: 1px solid var(--weather-line);
  border-radius: 9px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--weather-navy);
  font-size: 11px;
  font-weight: 800;
}

.weather-live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--weather-yellow);
  box-shadow: 0 0 0 4px rgba(255, 189, 53, .16);
}

.weather-live-status.is-live i {
  background: var(--weather-green);
  box-shadow: 0 0 0 4px rgba(36, 168, 118, .14);
}

.weather-live-status.is-fallback i {
  background: var(--weather-coral);
  box-shadow: 0 0 0 4px rgba(255, 98, 95, .14);
}

.weather-refresh {
  cursor: pointer;
  transition: border-color .18s, transform .18s;
}

.weather-refresh:hover {
  border-color: #aab9ce;
  transform: translateY(-1px);
}

.weather-refresh b {
  color: var(--weather-blue);
  font-size: 14px;
}

.weather-refresh.is-loading b {
  animation: weather-spin .8s linear infinite;
}

.weather-alert-strip {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 15px 17px;
  border-color: #cfe7de;
  background: #f9fffc;
}

.weather-alert-strip.has-alert {
  border-color: #f1d69e;
  background: #fffaf0;
}

.weather-alert-strip.is-unavailable {
  border-color: var(--weather-line);
  background: #fff;
}

.weather-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e4f8ef;
  color: var(--weather-green);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.has-alert .weather-alert-icon {
  background: #fff0ce;
  color: #b16d00;
}

.is-unavailable .weather-alert-icon {
  background: #eef2f7;
  color: #7a8799;
}

.weather-alert-strip > div {
  display: grid;
  gap: 3px;
}

.weather-alert-strip > div > span {
  color: var(--weather-green);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.has-alert > div > span { color: #aa6a04; }
.is-unavailable > div > span { color: #7c8899; }

.weather-alert-strip strong {
  color: var(--weather-navy);
  font-size: 15px;
}

.weather-alert-strip p {
  margin: 0;
  color: #728095;
  font-size: 12px;
  line-height: 1.55;
}

.weather-alert-strip > a {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.weather-alert-strip > a b { color: var(--weather-blue); margin-left: 7px; }

.weather-overview-grid {
  display: grid;
  grid-template-columns: minmax(390px, .8fr) minmax(540px, 1.2fr);
  gap: 12px;
  margin-bottom: 12px;
}

.weather-now-card {
  min-height: 440px;
  padding: 27px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 92% 10%, rgba(70, 118, 255, .44), transparent 29%),
    radial-gradient(circle at 13% 106%, rgba(34, 192, 220, .2), transparent 37%),
    var(--weather-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(6, 26, 54, .13);
}

.weather-now-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -98px;
  top: -98px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.018);
}

.weather-now-card > header,
.weather-now-reading,
.weather-now-card > footer {
  position: relative;
  z-index: 1;
}

.weather-now-card > header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.weather-now-card > header div { display: grid; gap: 5px; }
.weather-now-card > header span { color: #82d9e9; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 900; }
.weather-now-card > header b { color: #95a7bf; font-size: 13px; font-weight: 700; }
.weather-now-card > header > i { color: #ffd266; font-size: 50px; font-style: normal; line-height: 1; }

.weather-now-reading {
  display: flex;
  align-items: end;
  gap: 17px;
  margin: 25px 0 27px;
}

.weather-now-reading > strong {
  letter-spacing: -.085em;
  font-size: clamp(70px, 6vw, 94px);
  line-height: .82;
}

.weather-now-reading > span { display: grid; gap: 6px; padding-bottom: 3px; }
.weather-now-reading b { font-size: 19px; }
.weather-now-reading small { color: #97abc3; font-size: 15px; }

.weather-now-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.13);
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.weather-now-metrics > div { padding: 18px 10px 18px 0; display: grid; gap: 6px; }
.weather-now-metrics > div:nth-child(3n+2),
.weather-now-metrics > div:nth-child(3n+3) { border-left: 1px solid rgba(255,255,255,.13); padding-left: 13px; }
.weather-now-metrics > div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.13); }
.weather-now-metrics dt { color: #8297b2; font-size: 13px; }
.weather-now-metrics dd { margin: 0; color: #fff; font-size: 18px; font-weight: 850; }

.weather-now-card > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding: 19px 0 0;
  border: 0;
  background: transparent;
  grid-template-columns: none;
}

.weather-now-card > footer span { max-width: 340px; color: #a6b8cc; font-size: 14px; line-height: 1.55; }
.weather-now-card > footer button { flex: none; cursor: pointer; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; color: #fff; padding: 12px 15px; font-size: 13px; font-weight: 850; }
.weather-now-card > footer button:hover { background: #fff; color: var(--weather-navy); }

.weather-host-desk { padding: 25px; }
.weather-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.weather-section-heading p { margin-bottom: 8px; font-size: 14px; }
.weather-section-heading h3 { margin: 0; color: var(--weather-navy); letter-spacing: -.04em; font-size: 30px; line-height: 1; }
.weather-section-heading > span { color: #8b96a5; font-size: 13px; }

.weather-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 21px;
}

.weather-impact-grid article {
  min-height: 170px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #f8fafd;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px;
}

.weather-impact-grid article > i {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.impact-blue { background: #e8eeff; color: var(--weather-blue); }
.impact-yellow { background: #fff3d7; color: #b27000; }
.impact-coral { background: #ffebea; color: #db4d4b; }
.impact-aqua { background: #e2f8fb; color: #148ba0; }
.weather-impact-grid article > span { display: flex; flex-direction: column; }
.weather-impact-grid small { color: #8290a3; text-transform: uppercase; letter-spacing: .09em; font-size: 12px; font-weight: 850; }
.weather-impact-grid strong { margin: 11px 0 7px; color: var(--weather-navy); font-size: 18px; line-height: 1.25; }
.weather-impact-grid p { margin: 0; color: #738095; font-size: 14px; line-height: 1.55; }

.weather-hourly-section { margin-bottom: 12px; padding: 24px 25px 20px; overflow: hidden; }
.weather-hourly-track { display: flex; gap: 7px; margin-top: 20px; padding-bottom: 5px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c6d1df transparent; }
.weather-hourly-track article { flex: 0 0 110px; min-height: 180px; border: 1px solid #e1e7ee; border-radius: 9px; background: #f8fafd; display: flex; flex-direction: column; align-items: center; padding: 15px 8px; }
.weather-hourly-track article.is-now { background: var(--weather-navy); border-color: var(--weather-navy); color: #fff; }
.weather-hourly-track span { color: #7d899b; font-size: 13px; }
.weather-hourly-track .is-now span { color: #a3b3c8; }
.weather-hourly-track i { margin: 14px 0 9px; color: #f5b927; font-size: 24px; font-style: normal; }
.weather-hourly-track strong { font-size: 23px; }
.weather-hourly-track small { color: var(--weather-blue); margin-top: 8px; font-size: 12px; font-weight: 800; }
.weather-hourly-track .is-now small { color: #7fe2f1; }
.weather-hourly-track em { color: #909bab; margin-top: 6px; font-size: 12px; font-style: normal; }

.weather-detail-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 12px; margin-bottom: 12px; }
.weather-daily-card { padding: 25px; }
.weather-daily-list { margin-top: 20px; }
.weather-daily-list article { display: grid; grid-template-columns: 104px 36px 1fr 88px 80px; gap: 10px; align-items: center; border-top: 1px solid #e4e9f0; min-height: 72px; }
.weather-daily-list article:first-child { border-top: 0; }
.weather-daily-list article > span { color: var(--weather-navy); font-size: 15px; font-weight: 850; }
.weather-daily-list i { color: #eeb422; font-size: 20px; font-style: normal; text-align: center; }
.weather-daily-list p { margin: 0; color: #738095; font-size: 14px; }
.weather-daily-list small { color: var(--weather-blue); font-size: 13px; font-weight: 800; text-align: right; }
.weather-daily-list strong { color: var(--weather-navy); font-size: 16px; text-align: right; }

.weather-coast-card { border-radius: 12px; background: var(--weather-navy); color: #fff; padding: 25px; overflow: hidden; position: relative; }
.weather-coast-card::after { content: ""; position: absolute; width: 330px; height: 330px; right: -170px; top: 70px; border: 1px solid rgba(63,111,255,.35); border-radius: 50%; box-shadow: 0 0 0 42px rgba(63,111,255,.06), 0 0 0 84px rgba(63,111,255,.035); }
.weather-section-heading-dark { position: relative; z-index: 1; }
.weather-section-heading-dark p { color: #53d5e9; }
.weather-section-heading-dark h3 { color: #fff; }
.weather-section-heading-dark > i { color: #54d3e7; font-size: 38px; font-style: normal; }
.coast-primary { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; margin: 27px 0 0; }
.coast-primary > span { display: grid; }
.coast-primary > span + span { border-left: 1px solid rgba(255,255,255,.14); padding-left: 20px; }
.coast-primary small, .coast-details small { color: #8296b0; font-size: 13px; }
.coast-primary strong { letter-spacing: -.055em; margin: 9px 0 6px; font-size: 40px; }
.coast-primary em { color: #a9b8c9; font-size: 14px; font-style: normal; }
.coast-details { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); margin-top: 24px; }
.coast-details > span { display: grid; gap: 6px; padding: 15px 7px 15px 0; }
.coast-details > span + span { border-left: 1px solid rgba(255,255,255,.14); padding-left: 11px; }
.coast-details strong { font-size: 16px; }
.coast-outlook { position: relative; z-index: 1; display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; }
.coast-outlook span { flex: 1 0 48px; border-radius: 7px; background: rgba(255,255,255,.07); padding: 8px 6px; display: grid; gap: 5px; text-align: center; }
.coast-outlook small { color: #8296b0; font-size: 12px; }
.coast-outlook strong { font-size: 15px; }
.weather-coast-card > footer { position: relative; z-index: 1; display: block; color: #7f93ad; background: transparent; border: 0; margin-top: 17px; padding: 0; font-size: 13px; line-height: 1.5; }

.weather-map-card-live { margin-bottom: 12px; padding: 0; overflow: hidden; }
.weather-map-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 24px 25px 19px; }
.weather-map-header .weather-section-heading { flex: 1; }
.weather-layer-tabs { display: flex; gap: 5px; overflow-x: auto; }
.weather-layer-tabs button { cursor: pointer; flex: none; min-width: 92px; border: 1px solid #dce3ec; border-radius: 999px; background: #fff; color: #667387; padding: 10px 16px; font-size: 12px; font-weight: 800; }
.weather-layer-tabs button.active { border-color: var(--weather-navy); background: var(--weather-navy); color: #fff; }
.weather-official-frame { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; height: 620px; border-top: 1px solid #e0e7ee; border-bottom: 1px solid #e0e7ee; background: #c7eef2; overflow: hidden; }
.weather-official-frame[data-layer="satellite"] { background: #07101a; }
.weather-official-frame > #local-weather-map { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.weather-official-frame > #local-weather-map[hidden] { display: none; }
.weather-radar-overlay { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; opacity: .7; filter: blur(4px) saturate(.92) contrast(.96); transform: scale(1.014); transition: opacity .2s ease; }
.weather-radar-overlay[hidden] { display: none; }
.weather-radar-overlay.is-loading, .weather-radar-overlay.is-moving { opacity: .16; }
#local-weather-map .maplibregl-marker { z-index: 3; }
#local-weather-map .maplibregl-ctrl-top-left,
#local-weather-map .maplibregl-ctrl-top-right,
#local-weather-map .maplibregl-ctrl-bottom-left,
#local-weather-map .maplibregl-ctrl-bottom-right { z-index: 4; }
.weather-map-source,
.weather-frame-location { position: absolute; z-index: 4; top: 14px; border: 1px solid rgba(6,26,54,.08); border-radius: 10px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(6,26,54,.12); }
.weather-map-source { left: 14px; display: flex; align-items: center; gap: 8px; padding: 11px 13px; color: #607087; font-size: 11px; font-weight: 800; }
.weather-map-source i { width: 7px; height: 7px; border-radius: 50%; background: var(--weather-green); box-shadow: 0 0 0 3px rgba(36,168,118,.13); }
.weather-frame-location { right: 14px; display: grid; grid-template-columns: 29px 1fr; gap: 9px; align-items: center; padding: 9px 12px; }
.weather-frame-location > i { width: 29px; height: 29px; border: 7px solid var(--weather-navy); border-radius: 50%; background: var(--weather-yellow); box-shadow: 0 0 0 2px #fff; }
.weather-frame-location > span { display: grid; gap: 2px; }
.weather-frame-location small { color: #8794a6; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 850; }
.weather-frame-location strong { color: var(--weather-navy); font-size: 12px; }
.weather-radar-legend { position: absolute; z-index: 4; left: 14px; bottom: 32px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(6,26,54,.08); border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(6,26,54,.11); padding: 9px 11px; color: #607087; font-size: 10px; font-weight: 800; }
.weather-radar-legend[hidden] { display: none; }
.weather-radar-legend i { width: 92px; height: 7px; border-radius: 999px; background: linear-gradient(90deg,#68c7db 0%,#3cc66b 36%,#f4d33a 64%,#ff8b24 82%,#e53c34 100%); }
.weather-official-frame .maplibregl-canvas { outline: none; }
.weather-official-frame .maplibregl-ctrl-group { overflow: hidden; border: 1px solid rgba(7,28,56,.12); border-radius: 10px; box-shadow: 0 10px 28px rgba(7,28,56,.18); }
.weather-official-frame .maplibregl-ctrl-group button { width: 40px; height: 38px; }
.weather-official-frame .maplibregl-ctrl-attrib { border-radius: 7px; background: rgba(255,255,255,.91); color: #667386; font-size: 9px; }
.weather-host-map-marker { width: 22px; height: 22px; border: 6px solid var(--weather-navy); border-radius: 50%; background: var(--weather-yellow); box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(6,26,54,.28); }
.weather-map-loading, .weather-map-error { position: absolute; z-index: 5; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; background: #eef3f6; color: var(--weather-navy); }
.weather-map-error[hidden] { display: none; }
.weather-map-loading.is-ready { opacity: 0; pointer-events: none; transition: opacity .35s; }
.weather-map-loading i { width: 28px; height: 28px; border: 3px solid #d2dce8; border-top-color: var(--weather-blue); border-radius: 50%; animation: weather-spin .8s linear infinite; }
.weather-map-loading span, .weather-map-error span { color: #7a879a; font-size: 11px; }
.weather-map-error strong { font-size: 15px; }
.weather-map-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 25px; color: #8793a4; font-size: 11px; }
.weather-map-footer a { color: var(--weather-blue); font-weight: 850; }

.weather-data-note { display: flex; justify-content: space-between; gap: 24px; color: #8c97a7; background: transparent; border: 0; padding: 6px 0 0; font-size: 10px; }
.weather-data-note span { flex: none; font-weight: 800; }
.weather-data-note p { margin: 0; text-align: right; }
.weather-data-note a { color: #687589; text-decoration: underline; text-underline-offset: 2px; }
.weather-toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; border-radius: 9px; background: var(--weather-navy); color: #fff; box-shadow: 0 15px 38px rgba(6,26,54,.25); padding: 12px 15px; font-size: 9px; font-weight: 800; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.weather-toast.is-visible { opacity: 1; transform: translateY(0); }
.weather-noscript { margin: 0; padding: 15px; background: #fff3d7; color: #6e4a00; font-size: 13px; text-align: center; }

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

@media (max-width: 1180px) {
  .weather-overview-grid { grid-template-columns: 1fr; }
  .weather-now-card { min-height: 405px; }
  .weather-detail-grid { grid-template-columns: 1fr; }
  .weather-map-header { display: block; }
  .weather-layer-tabs { margin-top: 18px; }
}

@media (max-width: 760px) {
  .weather-live-intro h2 { font-size: 42px; }
  .weather-intro-actions { margin-top: 20px; }
  .weather-alert-strip { grid-template-columns: 38px 1fr; }
  .weather-alert-icon { width: 38px; height: 38px; }
  .weather-alert-strip > a { grid-column: 2; justify-self: start; }
  .weather-now-card { min-height: 0; padding: 22px; }
  .weather-now-reading { display: block; }
  .weather-now-reading > span { margin-top: 17px; }
  .weather-now-metrics { grid-template-columns: repeat(2, 1fr); }
  .weather-now-metrics > div:nth-child(3n+2), .weather-now-metrics > div:nth-child(3n+3) { border-left: 0; padding-left: 0; }
  .weather-now-metrics > div:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.13); padding-left: 13px; }
  .weather-now-metrics > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.13); }
  .weather-now-card > footer { align-items: start; flex-direction: column; }
  .weather-impact-grid { grid-template-columns: 1fr; }
  .weather-impact-grid article { min-height: 160px; }
  .weather-daily-list article { grid-template-columns: 62px 26px 1fr 55px; }
  .weather-daily-list p { display: none; }
  .weather-daily-list small { display: none; }
  .coast-primary strong { font-size: 32px; }
  .weather-official-frame { height: 470px; }
  .weather-map-source { top: 12px; left: 12px; }
  .weather-frame-location { top: auto; right: auto; bottom: 12px; left: 12px; }
  .weather-map-footer, .weather-data-note { align-items: start; flex-direction: column; }
  .weather-data-note p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .weather-refresh, .weather-map-loading, .weather-toast { transition: none; }
  .weather-refresh.is-loading b, .weather-map-loading i { animation: none; }
}
