.weather-body {
  background: #eef3f8;
  color: #071832;
}

.weather-body .site-nav a.is-active {
  background: #eef3f8;
  color: #8b6500;
}

.weather-main {
  overflow: hidden;
}

.weather-masthead {
  width: 100%;
  padding: 58px 0 50px;
  background: #071832;
  color: #f7fbff;
  border-bottom: 5px solid #d8a829;
}

.weather-masthead-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 38px;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.weather-masthead h1 {
  max-width: 820px;
  margin: 6px 0 14px;
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.weather-masthead p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: #c7d7e9;
  font-size: 1.08rem;
}

.weather-masthead-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.weather-masthead-actions .button {
  min-height: 48px;
}

.weather-main > section:not(.weather-masthead),
.weather-main > aside,
.weather-main > .weather-data-status {
  width: min(1220px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.weather-live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 18px 20px;
  background: #8f1d21;
  color: #ffffff;
  border-left: 6px solid #ffcc4d;
}

.weather-live-banner[hidden] {
  display: none;
}

.weather-live-banner > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.weather-live-banner p,
.weather-live-banner strong,
.weather-live-banner span {
  display: block;
  margin: 0;
}

.weather-live-banner p {
  color: #ffdf7d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-live-banner strong {
  font-size: 1.2rem;
}

.weather-live-banner span:not(.weather-live-dot) {
  color: #ffe9e9;
}

.weather-live-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: #ffcc4d;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 204, 77, 0.18);
  animation: weather-live-pulse 1.4s ease-in-out infinite;
}

@keyframes weather-live-pulse {
  50% { opacity: 0.45; }
}

.weather-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 24px;
  padding: 16px 18px;
  background: #fff8df;
  border: 1px solid #e8d48d;
  border-left: 5px solid #d8a829;
  color: #3c3218;
}

.weather-disclaimer svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  color: #8b6500;
}

.weather-disclaimer p {
  margin: 0;
}

.weather-data-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0 4px;
  color: #5b687a;
  font-size: 0.82rem;
  font-weight: 700;
}

.weather-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #28735c;
}

.weather-data-status.is-stale .weather-status-dot {
  background: #c78113;
}

.weather-data-status.is-error .weather-status-dot {
  background: #b64235;
}

.weather-alert-section,
.weather-current-section,
.weather-hourly-section,
.weather-forecast-section,
.weather-rainfall-section,
.weather-river-section,
.weather-tropical-section,
.weather-news-section,
.weather-report-cta,
.weather-sources-section {
  padding: 48px 0;
  border-bottom: 1px solid #cbd6e3;
}

.weather-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.weather-section-heading.compact {
  margin-bottom: 16px;
}

.weather-section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.weather-section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f5f9e;
  font-size: 0.88rem;
  font-weight: 800;
}

.weather-section-heading > a svg {
  width: 16px;
  height: 16px;
}

.weather-section-heading > span {
  color: #5b687a;
  font-weight: 800;
}

.weather-loading-row {
  width: 100%;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d6e0eb;
  color: #5b687a;
  text-align: center;
}

.weather-alert-list {
  display: grid;
  gap: 10px;
}

.weather-alert-clear,
.river-all-clear {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #e8f6ef;
  border-left: 5px solid #28735c;
  color: #174b3b;
}

.weather-alert-clear svg,
.river-all-clear svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.weather-alert-clear strong,
.weather-alert-clear span,
.river-all-clear strong,
.river-all-clear span {
  display: block;
}

.weather-alert-clear span,
.river-all-clear span {
  color: #4f6d62;
  font-size: 0.88rem;
}

.weather-alert {
  background: #ffffff;
  border: 1px solid #d6e0eb;
  border-left: 6px solid #c78113;
}

.weather-alert--extreme,
.weather-alert--severe {
  border-left-color: #b4232c;
}

.weather-alert--moderate {
  border-left-color: #d4781f;
}

.weather-alert summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
}

.weather-alert summary::-webkit-details-marker {
  display: none;
}

.weather-alert-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #fff1df;
  color: #a55300;
}

.weather-alert--extreme .weather-alert-icon,
.weather-alert--severe .weather-alert-icon {
  background: #fde7e8;
  color: #a61d26;
}

.weather-alert summary small,
.weather-alert summary strong,
.weather-alert summary em {
  display: block;
  min-width: 0;
}

.weather-alert summary small {
  color: #a61d26;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-alert summary strong {
  font-size: 1.15rem;
}

.weather-alert summary em {
  overflow: hidden;
  color: #5b687a;
  font-size: 0.83rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-alert-expiry {
  color: #5b687a;
  font-size: 0.78rem;
  font-weight: 800;
}

.weather-alert summary > svg {
  width: 20px;
  height: 20px;
  transition: transform 160ms ease;
}

.weather-alert[open] summary > svg {
  transform: rotate(180deg);
}

.weather-alert-detail {
  padding: 0 20px 20px 76px;
  color: #33475f;
}

.weather-alert-detail p {
  margin: 8px 0 14px;
  white-space: pre-line;
}

.weather-alert-map {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 4px 0 16px;
  border: 1px solid #c8d4e0;
  background: #071832;
  object-fit: contain;
}

.weather-current-section {
  background: #ffffff;
}

.weather-current-heading {
  align-items: center;
}

.weather-location-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-location-controls select,
.icon-text-button {
  min-height: 44px;
  border: 1px solid #b9c8d9;
  border-radius: 6px;
  background: #ffffff;
  color: #071832;
  font-weight: 800;
}

.weather-location-controls select {
  min-width: 185px;
  padding: 8px 34px 8px 12px;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  cursor: pointer;
}

.icon-text-button svg {
  width: 17px;
  height: 17px;
}

.current-weather-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid #dce4ef;
  border-bottom: 1px solid #dce4ef;
}

.current-weather-primary {
  display: flex;
  align-items: center;
  gap: 24px;
}

.current-weather-icon {
  display: grid;
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  place-items: center;
  background: #fff4c9;
  color: #c78113;
  border: 1px solid #ead68b;
}

.current-weather-icon svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.5;
}

.current-weather-primary p {
  margin: 0;
  color: #5b687a;
  font-weight: 700;
}

.current-temperature {
  display: flex;
  align-items: flex-start;
  min-height: 100px;
  font-size: clamp(4.7rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
}

.current-temperature sup {
  margin-top: 10px;
  font-size: 1.1rem;
}

.current-description,
.current-observed {
  display: block;
}

.current-description {
  font-size: 1.25rem;
}

.current-observed {
  margin-top: 4px;
  color: #6a788b;
  font-size: 0.78rem;
}

.current-weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.current-weather-metrics article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 92px;
  padding: 15px;
  background: #eef3f8;
  border: 1px solid #d4dee9;
  border-radius: 6px;
}

.current-weather-metrics svg {
  grid-row: 1 / 3;
  align-self: center;
  width: 22px;
  height: 22px;
  color: #0f5f9e;
}

.current-weather-metrics span {
  color: #657489;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.current-weather-metrics strong {
  overflow-wrap: anywhere;
  font-size: 1.15rem;
}

.weather-heat-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  background: #fff0d6;
  border-left: 5px solid #d4781f;
  color: #6d3700;
}

.weather-heat-notice[hidden] {
  display: none;
}

.weather-heat-notice.is-danger {
  background: #fde7e8;
  border-left-color: #b4232c;
  color: #7b151b;
}

.weather-heat-notice svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.hourly-weather-track {
  display: grid;
  grid-auto-columns: minmax(132px, 1fr);
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 10px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

.hourly-weather-card {
  display: grid;
  min-height: 210px;
  padding: 14px;
  align-content: start;
  justify-items: center;
  background: #ffffff;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  text-align: center;
  scroll-snap-align: start;
}

.hourly-weather-card time {
  color: #44566c;
  font-size: 0.78rem;
  font-weight: 900;
}

.hourly-weather-card > svg {
  width: 38px;
  height: 38px;
  margin: 17px 0 10px;
  color: #c78113;
}

.hourly-weather-card > strong {
  font-size: 1.65rem;
}

.hourly-weather-card > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f5f9e;
  font-size: 0.78rem;
  font-weight: 800;
}

.hourly-weather-card > span svg {
  width: 13px;
  height: 13px;
}

.hourly-weather-card small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: #5b687a;
  font-size: 0.72rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.weather-forecast-section {
  background: #ffffff;
}

.daily-forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.daily-forecast-card {
  display: grid;
  min-width: 0;
  min-height: 300px;
  padding: 15px 12px;
  align-content: start;
  background: #0d2947;
  border-top: 4px solid #d8a829;
  color: #eef6ff;
  border-radius: 4px;
}

.daily-forecast-card time {
  min-height: 42px;
  color: #f0c95c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-forecast-card > svg {
  width: 44px;
  height: 44px;
  margin: 16px auto 10px;
  color: #ffcf4f;
}

.daily-temperatures {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.daily-temperatures strong {
  font-size: 2rem;
}

.daily-temperatures span {
  color: #aebed1;
  font-weight: 800;
}

.daily-forecast-card > p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 58px;
  margin: 9px 0;
  color: #d4e0ed;
  font-size: 0.75rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.daily-forecast-meta {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.daily-forecast-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #b8c8da;
  font-size: 0.7rem;
  font-weight: 800;
}

.daily-forecast-meta svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #54c8e8;
}

.weather-rainfall-section {
  background: #e9f2f8;
}

.weather-segmented {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 20px;
  padding: 3px;
  background: #d4dee9;
  border-radius: 6px;
}

.weather-segmented button {
  min-height: 38px;
  padding: 7px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #40536a;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.weather-segmented button.is-active {
  background: #ffffff;
  color: #071832;
  box-shadow: 0 2px 8px rgba(7, 24, 50, 0.12);
}

.rainfall-outlook-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(480px, 1.3fr);
  gap: 34px;
  align-items: center;
}

.rainfall-risk-badge {
  display: inline-flex;
  padding: 6px 9px;
  background: #dbe8ee;
  color: #40536a;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rainfall-risk-badge--1 { background: #c9efbf; color: #215b16; }
.rainfall-risk-badge--2 { background: #fff0a9; color: #715700; }
.rainfall-risk-badge--3 { background: #f8b7a6; color: #772414; }
.rainfall-risk-badge--4 { background: #f0b1dc; color: #74134f; }

.rainfall-outlook-copy h3 {
  margin: 13px 0 8px;
  font-size: 1.55rem;
}

.rainfall-outlook-copy p {
  color: #4d6077;
}

.rainfall-map-link {
  display: block;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #bdccdb;
}

.rainfall-map-link img {
  width: 100%;
  aspect-ratio: 600 / 422;
  object-fit: contain;
}

.weather-river-section {
  width: 100% !important;
  padding-right: max(18px, calc((100vw - 1220px) / 2)) !important;
  padding-left: max(18px, calc((100vw - 1220px) / 2)) !important;
  background: #071832;
  color: #edf5ff;
}

.weather-river-section .weather-section-heading h2 {
  color: #ffffff;
}

.weather-river-section .eyebrow {
  color: #f0c95c;
}

.river-summary {
  color: #adbed1;
  font-size: 0.8rem;
  font-weight: 800;
}

.weather-river-filter {
  background: #183652;
}

.weather-river-filter button {
  color: #c5d4e4;
}

.weather-river-filter button.is-active {
  background: #f0c95c;
  color: #071832;
}

.river-gauge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.river-gauge-grid > .river-all-clear {
  grid-column: 1 / -1;
}

.river-gauge-card {
  display: flex;
  min-width: 0;
  min-height: 285px;
  padding: 16px;
  flex-direction: column;
  background: #102e4d;
  border: 1px solid #294a69;
  border-top: 5px solid #39a87c;
  border-radius: 4px;
}

.river-gauge-card--action { border-top-color: #e0c33c; }
.river-gauge-card--minor { border-top-color: #f0a23a; }
.river-gauge-card--moderate { border-top-color: #dc513f; }
.river-gauge-card--major { border-top-color: #c43a83; }
.river-gauge-card--monitoring,
.river-gauge-card--not-current,
.river-gauge-card--out-of-service { border-top-color: #7f91a4; }

.river-gauge-heading,
.river-stage-row,
.river-gauge-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.river-gauge-heading {
  color: #9db0c5;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.river-gauge-heading strong {
  color: #7ee0b8;
}

.river-gauge-card--minor .river-gauge-heading strong,
.river-gauge-card--action .river-gauge-heading strong { color: #ffd163; }
.river-gauge-card--moderate .river-gauge-heading strong,
.river-gauge-card--major .river-gauge-heading strong { color: #ff9e93; }

.river-gauge-card h3 {
  min-height: 44px;
  margin: 7px 0 13px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.3;
}

.river-stage-row {
  align-items: flex-end;
}

.river-stage-row > strong {
  color: #ffcf4f;
  font-size: 1.85rem;
}

.river-stage-row > span {
  max-width: 110px;
  color: #afc0d2;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
}

.river-meter {
  position: relative;
  height: 10px;
  margin: 14px 0;
  overflow: hidden;
  background: #31a877;
  border-radius: 2px;
}

.river-flood-zone {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: #df5e3d;
}

.river-current-marker,
.river-forecast-marker {
  position: absolute;
  z-index: 2;
  top: -4px;
  width: 4px;
  height: 18px;
  background: #ffffff;
  box-shadow: 0 0 0 2px #071832;
}

.river-forecast-marker {
  width: 2px;
  background: #ffcf4f;
}

.river-meter-unavailable {
  margin: 14px 0;
  padding: 6px 8px;
  background: #203f5d;
  color: #9fb2c7;
  font-size: 0.68rem;
  text-align: center;
}

.river-gauge-meta {
  color: #aebed0;
  font-size: 0.68rem;
  font-weight: 700;
}

.river-impact {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: #f7d6d1;
  font-size: 0.72rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.river-gauge-card > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  color: #76c9ec;
  font-size: 0.75rem;
  font-weight: 800;
}

.river-gauge-card > a svg {
  width: 14px;
  height: 14px;
}

.weather-tropical-section {
  background: #ffffff;
}

.tropical-status-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #e9f4ef;
  border-left: 5px solid #28735c;
}

.tropical-status-line--watch {
  background: #fff4d9;
  border-left-color: #c78113;
}

.tropical-status-line--active {
  background: #fde7e8;
  border-left-color: #b4232c;
}

.tropical-status-badge {
  padding: 4px 7px;
  background: #28735c;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tropical-status-line--watch .tropical-status-badge { background: #a86600; }
.tropical-status-line--active .tropical-status-badge { background: #a61d26; }

.tropical-status-line small {
  color: #5f6d7e;
  font-size: 0.72rem;
}

.tropical-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.tropical-map {
  display: block;
  min-width: 0;
  background: #e8eef5;
  border: 1px solid #bdccdb;
}

.tropical-map img {
  width: 100%;
  aspect-ratio: 1920 / 1344;
  object-fit: contain;
}

.tropical-details {
  display: grid;
  gap: 14px;
}

.tropical-details h3 {
  margin: 0 0 7px;
}

.tropical-details p {
  margin: 0;
  color: #4d6077;
}

.tropical-systems {
  display: grid;
  gap: 8px;
}

.tropical-systems > a,
.tropical-no-systems {
  display: block;
  padding: 13px;
  background: #eef3f8;
  border-left: 4px solid #b4232c;
}

.tropical-systems > a span,
.tropical-systems > a strong {
  display: block;
}

.tropical-systems > a span {
  color: #a61d26;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tropical-systems > a p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  font-size: 0.72rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tropical-no-systems {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left-color: #28735c;
  color: #365f51;
  font-size: 0.82rem;
}

.tropical-no-systems svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.tropical-sst {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #071832;
  color: #ffffff;
}

.tropical-sst span,
.tropical-sst strong {
  display: block;
}

.tropical-sst span {
  color: #f0c95c;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tropical-sst img {
  width: 160px;
  aspect-ratio: 1.25;
  object-fit: contain;
  background: #ffffff;
}

.tropical-infrared-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  background: #071832;
  border: 1px solid #223c5b;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(7, 24, 50, 0.16);
}

.tropical-infrared-copy span,
.tropical-infrared-copy strong {
  display: block;
}

.tropical-infrared-copy span {
  color: #f0c95c;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tropical-infrared-copy strong {
  margin-top: 5px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.tropical-infrared-copy p {
  max-width: 460px;
  margin: 10px 0 0;
  color: #c9d7e7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.infrared-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.infrared-view-tabs button,
.infrared-toolbar button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.infrared-view-tabs button {
  padding: 8px 11px;
}

.infrared-view-tabs button.is-active {
  border-color: rgba(240, 201, 92, 0.78);
  background: #d8a829;
  color: #071832;
}

.infrared-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #f0c95c;
  font-size: 0.82rem;
  font-weight: 850;
}

.infrared-source-link svg {
  width: 15px;
  height: 15px;
}

.infrared-viewer-shell {
  min-width: 0;
}

.infrared-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #0d243f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
}

.infrared-toolbar strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.infrared-toolbar > div {
  display: flex;
  gap: 6px;
}

.infrared-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 10px;
}

.infrared-toolbar svg {
  width: 16px;
  height: 16px;
}

.infrared-image-stage {
  overflow: hidden;
  touch-action: none;
  background: #000814;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.infrared-image-stage img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 160ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.weather-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.weather-news-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
}

.weather-news-image {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #0d2947;
  color: #f0c95c;
}

.weather-news-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071832;
}

.weather-news-image svg {
  width: 54px;
  height: 54px;
}

.weather-news-card > div {
  padding: 16px;
}

.weather-news-card > div > span {
  color: #9a7100;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-news-card h3 {
  margin: 6px 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.weather-news-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #5b687a;
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.weather-news-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d6e0eb;
}

.weather-news-empty svg {
  width: 36px;
  height: 36px;
  color: #0f5f9e;
}

.weather-news-empty h3,
.weather-news-empty p {
  margin: 0;
}

.weather-news-empty p {
  color: #5b687a;
}

.weather-report-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 28px;
  border: 1px solid rgba(7, 24, 50, 0.12);
  border-left: 6px solid #d8a829;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(7, 24, 50, 0.08);
}

.weather-report-cta h2 {
  max-width: 760px;
  margin: 4px 0 10px;
  color: #071832;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.weather-report-cta p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: #455468;
  font-size: 1rem;
  line-height: 1.65;
}

.weather-report-cta .button {
  flex: 0 0 auto;
}

.weather-sources-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 50px;
  border-bottom: 0;
}

.weather-sources-section h2 {
  margin: 4px 0 0;
  font-size: 1.6rem;
}

.weather-sources-section nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.weather-sources-section nav a {
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #c8d5e3;
  border-radius: 4px;
  color: #0f5f9e;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .daily-forecast-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .current-weather-layout {
    grid-template-columns: 1fr;
  }

  .river-gauge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tropical-layout,
  .rainfall-outlook-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .weather-masthead {
    padding: 42px 0 38px;
  }

  .weather-masthead-inner,
  .weather-section-heading,
  .weather-report-cta,
  .weather-sources-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .weather-masthead h1 {
    font-size: 2.65rem;
  }

  .weather-masthead-actions {
    width: 100%;
  }

  .weather-masthead-actions .button {
    flex: 1 1 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .weather-live-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .weather-live-banner .button {
    width: 100%;
  }

  .weather-report-cta {
    padding: 26px 20px;
  }

  .weather-report-cta .button {
    width: 100%;
  }

  .weather-current-heading {
    align-items: stretch;
  }

  .weather-location-controls {
    width: 100%;
  }

  .weather-location-controls label,
  .weather-location-controls select,
  .icon-text-button {
    width: 100%;
  }

  .weather-location-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .current-weather-primary {
    align-items: flex-start;
  }

  .current-weather-icon {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .current-weather-icon svg {
    width: 52px;
    height: 52px;
  }

  .current-temperature {
    min-height: 78px;
    font-size: 4.7rem;
  }

  .daily-forecast-grid {
    display: grid;
    grid-auto-columns: minmax(178px, 68vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: inline proximity;
  }

  .daily-forecast-card {
    scroll-snap-align: start;
  }

  .weather-alert summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .weather-alert-expiry {
    display: none;
  }

  .weather-alert-detail {
    padding-left: 18px;
  }

  .river-gauge-grid,
  .weather-news-grid {
    grid-template-columns: 1fr;
  }

  .tropical-status-line {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tropical-status-line small {
    grid-column: 2;
  }

  .weather-sources-section nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .weather-main > section:not(.weather-masthead),
  .weather-main > aside,
  .weather-main > .weather-data-status {
    width: min(100% - 24px, 1220px);
  }

  .weather-masthead-inner {
    width: calc(100% - 24px);
  }

  .weather-masthead h1 {
    font-size: 2.35rem;
  }

  .weather-masthead-actions {
    flex-direction: column;
  }

  .weather-alert-section,
  .weather-current-section,
  .weather-hourly-section,
  .weather-forecast-section,
  .weather-rainfall-section,
  .weather-river-section,
  .weather-tropical-section,
  .weather-news-section,
  .weather-sources-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .weather-disclaimer {
    padding: 14px;
  }

  .weather-section-heading h2 {
    font-size: 1.8rem;
  }

  .current-weather-layout {
    gap: 28px;
  }

  .current-weather-primary {
    gap: 15px;
  }

  .current-weather-icon {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .current-weather-icon svg {
    width: 43px;
    height: 43px;
  }

  .current-temperature {
    min-height: 64px;
    font-size: 3.8rem;
  }

  .current-description {
    font-size: 1rem;
  }

  .current-weather-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .current-weather-metrics article {
    min-height: 96px;
    padding: 12px;
  }

  .current-weather-metrics strong {
    font-size: 0.95rem;
  }

  .rainfall-outlook-layout,
  .tropical-layout {
    gap: 20px;
  }

  .tropical-sst {
    grid-template-columns: 1fr;
  }

  .tropical-sst img {
    width: 100%;
  }

  .tropical-infrared-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .infrared-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .infrared-toolbar > div,
  .infrared-toolbar button {
    width: 100%;
  }

  .infrared-image-stage img {
    max-height: none;
  }

  .weather-segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .weather-river-filter {
    grid-template-columns: repeat(2, 1fr);
  }

  .river-stage-row > strong {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-live-dot {
    animation: none;
  }
}

/* APR weather page visual refresh */
.weather-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 168, 41, 0.14), transparent 28%),
    linear-gradient(180deg, #061326 0, #071832 46%, #04101f 100%);
  color: #edf5ff;
  overflow-x: hidden;
}

.weather-body .site-nav a.is-active {
  background: rgba(216, 168, 41, 0.18);
  color: #ffdc73;
}

.weather-main {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
}

.weather-masthead {
  padding: clamp(42px, 7vw, 82px) 0 clamp(34px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(7, 24, 50, 0.98), rgba(7, 24, 50, 0.84)),
    radial-gradient(circle at 80% 25%, rgba(216, 168, 41, 0.2), transparent 32%);
  border-bottom-color: rgba(216, 168, 41, 0.85);
}

.weather-masthead h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.7rem);
}

.weather-masthead p:not(.eyebrow) {
  max-width: 760px;
  color: #d9e7f6;
}

.weather-data-status {
  color: #aebfd2;
}

.weather-disclaimer,
.weather-live-banner,
.weather-alert-section,
.weather-current-section,
.weather-hourly-section,
.weather-forecast-section,
.weather-rainfall-section,
.weather-tropical-section,
.weather-news-section,
.weather-sources-section {
  background: rgba(7, 24, 50, 0.84);
  border: 1px solid rgba(150, 176, 205, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.weather-current-section,
.weather-forecast-section {
  background: linear-gradient(145deg, rgba(10, 32, 58, 0.96), rgba(6, 19, 38, 0.96));
  border-color: rgba(216, 168, 41, 0.32);
}

.weather-main > section:not(.weather-masthead),
.weather-main > aside,
.weather-main > .weather-data-status {
  margin-top: 22px;
  padding-right: clamp(16px, 3vw, 28px);
  padding-left: clamp(16px, 3vw, 28px);
  border-radius: 8px;
}

.weather-main > .weather-data-status {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(3, 12, 24, 0.62);
  border: 1px solid rgba(150, 176, 205, 0.18);
}

.weather-section-heading h2,
.weather-news-card h3,
.rainfall-outlook-copy h3,
.tropical-details h3 {
  color: #ffffff;
}

.weather-section-heading > span,
.river-summary {
  color: #b7c8db;
}

.weather-section-heading > a,
.weather-sources-section nav a,
.river-gauge-card > a {
  color: #91d8ff;
}

.weather-loading-row,
.weather-alert,
.hourly-weather-card,
.weather-news-card,
.weather-news-empty,
.rainfall-map-link,
.tropical-map,
.tropical-systems > a,
.tropical-no-systems {
  background: rgba(10, 32, 58, 0.92);
  border-color: rgba(150, 176, 205, 0.24);
  color: #edf5ff;
}

.weather-disclaimer {
  background: rgba(216, 168, 41, 0.12);
  border-color: rgba(216, 168, 41, 0.38);
  border-left-color: #d8a829;
  color: #fff4ca;
}

.weather-disclaimer svg {
  color: #ffdc73;
}

.weather-location-controls select,
.icon-text-button {
  background: #f6f9fd;
}

.current-weather-layout {
  border-color: rgba(150, 176, 205, 0.24);
}

.current-weather-primary p,
.current-observed,
.current-weather-metrics span,
.hourly-weather-card small,
.weather-news-card p,
.weather-news-empty p,
.rainfall-outlook-copy p,
.tropical-details p,
.tropical-status-line small {
  color: #b7c8db;
}

.current-description,
.current-temperature,
.current-weather-metrics strong,
.hourly-weather-card > strong,
.daily-temperatures strong,
.weather-alert summary strong {
  color: #ffffff;
}

.current-weather-icon {
  background: rgba(216, 168, 41, 0.18);
  border-color: rgba(216, 168, 41, 0.38);
  color: #ffcf4f;
  border-radius: 8px;
}

.current-weather-metrics article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(150, 176, 205, 0.2);
}

.hourly-weather-card {
  background: linear-gradient(180deg, rgba(16, 46, 77, 0.98), rgba(8, 27, 51, 0.98));
}

.daily-forecast-card {
  background: linear-gradient(180deg, #12365f, #081d38);
  border: 1px solid rgba(216, 168, 41, 0.34);
  border-top: 4px solid #d8a829;
}

.apr-weather-art {
  position: relative;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

.apr-weather-art--current {
  width: 96px;
  height: 88px;
}

.apr-weather-art--daily {
  width: 104px;
  height: 92px;
  margin: 8px auto 8px;
}

.apr-weather-art--hourly {
  width: 76px;
  height: 68px;
  margin: 11px auto 8px;
}

.apr-weather-sun {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.96) 0 13%, transparent 14%),
    radial-gradient(circle at 44% 42%, #fff7ac 0 30%, #ffd55a 48%, #f49a2f 78%, #d56b18 100%);
  box-shadow:
    0 0 15px rgba(255, 246, 168, 0.86),
    0 0 34px rgba(255, 216, 80, 0.72),
    0 0 56px rgba(244, 154, 47, 0.28);
  animation: apr-sun-pulse 2.8s ease-in-out infinite;
}

.apr-weather-sun::before {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: conic-gradient(
    from 8deg,
    rgba(255, 213, 78, 0),
    rgba(255, 213, 78, 0.28),
    rgba(255, 213, 78, 0) 18%,
    rgba(255, 213, 78, 0.24) 28%,
    rgba(255, 213, 78, 0) 42%,
    rgba(255, 213, 78, 0.26) 56%,
    rgba(255, 213, 78, 0) 100%
  );
  filter: blur(6px);
  opacity: 0.7;
  animation: apr-sun-rays 8s linear infinite;
}

.apr-weather-sun::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 18%;
  width: 28%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(5px);
}

.apr-weather-cloud {
  position: absolute;
  z-index: 2;
  left: 15%;
  bottom: 23%;
  width: 70%;
  height: 32%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 40%, #fbfdff 0 27%, transparent 28%),
    radial-gradient(circle at 55% 14%, #ffffff 0 30%, transparent 31%),
    radial-gradient(circle at 82% 40%, #d4e0eb 0 35%, transparent 36%),
    linear-gradient(180deg, #edf5fc 0 48%, #bdccd9 100%);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.22),
    inset 0 9px 12px rgba(255, 255, 255, 0.44),
    inset 0 -10px 14px rgba(74, 99, 124, 0.22);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18));
  animation: apr-cloud-drift 3.6s ease-in-out infinite;
}

.apr-weather-cloud::before,
.apr-weather-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #fff 0 34%, #dfeaf3 67%, #b8c9d8 100%);
}

.apr-weather-cloud::before {
  left: 21%;
  top: -62%;
  width: 44%;
  height: 112%;
}

.apr-weather-cloud::after {
  right: 15%;
  top: -42%;
  width: 37%;
  height: 94%;
}

.apr-weather-art--partly .apr-weather-sun {
  inset: 7% 39% 33% 8%;
}

.apr-weather-art--partly .apr-weather-cloud {
  left: 23%;
  bottom: 18%;
}

.apr-weather-rain {
  position: absolute;
  z-index: 1;
  top: 68%;
  width: 4px;
  height: 20%;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(120, 214, 255, 0), #a9eaff 22%, #38b7f1 68%, rgba(43, 159, 226, 0));
  box-shadow: 0 0 6px rgba(84, 201, 255, 0.74);
  transform: rotate(10deg);
  animation: apr-rain-fall 0.9s linear infinite;
}

.apr-weather-rain--one {
  left: 35%;
}

.apr-weather-rain--two {
  left: 52%;
  animation-delay: 0.18s;
}

.apr-weather-rain--three {
  left: 69%;
  animation-delay: 0.34s;
}

.apr-weather-bolt {
  position: absolute;
  z-index: 3;
  left: 46%;
  top: 55%;
  width: 24%;
  height: 44%;
  clip-path: polygon(46% 0, 100% 0, 64% 40%, 100% 40%, 22% 100%, 44% 54%, 8% 54%);
  background: linear-gradient(90deg, #fff7bf 0 22%, #ffd34f 23% 70%, #ff9b2f 100%);
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 13px rgba(255, 211, 79, 0.9))
    drop-shadow(0 0 21px rgba(84, 201, 255, 0.32));
  animation: apr-lightning-flash 1.4s steps(2) infinite;
}

.apr-weather-flash {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 56% 60%, rgba(255, 255, 255, 0.28), transparent 22%),
    radial-gradient(circle at 72% 48%, rgba(255, 244, 168, 0.46), transparent 42%);
  opacity: 0;
  animation: apr-storm-flash 1.4s steps(2) infinite;
}

.apr-weather-snow {
  position: absolute;
  z-index: 1;
  top: 72%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7fbff;
  box-shadow: 0 0 8px rgba(167, 211, 255, 0.82);
  animation: apr-snow-float 2.4s ease-in-out infinite;
}

.apr-weather-snow--one { left: 34%; }
.apr-weather-snow--two { left: 52%; animation-delay: -0.4s; }
.apr-weather-snow--three { left: 70%; animation-delay: -0.8s; }

.apr-weather-fog {
  position: absolute;
  z-index: 3;
  left: 17%;
  width: 66%;
  height: 5px;
  border-radius: 999px;
  background: rgba(214, 231, 245, 0.8);
  box-shadow: 0 0 10px rgba(167, 211, 255, 0.25);
  animation: apr-fog-slide 4.8s ease-in-out infinite;
}

.apr-weather-fog--one { top: 66%; }
.apr-weather-fog--two { top: 76%; animation-delay: -1.1s; }
.apr-weather-fog--three { top: 86%; animation-delay: -2.1s; }

@keyframes apr-sun-pulse {
  50% {
    transform: scale(1.08) rotate(6deg);
  }
}

@keyframes apr-sun-rays {
  to {
    transform: rotate(360deg);
  }
}

@keyframes apr-cloud-drift {
  50% {
    transform: translateX(7px);
  }
}

@keyframes apr-rain-fall {
  from {
    transform: translateY(-8px) rotate(10deg);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  to {
    transform: translateY(18px) rotate(10deg);
    opacity: 0;
  }
}

@keyframes apr-lightning-flash {
  0%,
  55%,
  100% {
    opacity: 0.35;
  }
  56%,
  63%,
  68% {
    opacity: 1;
  }
}

@keyframes apr-storm-flash {
  0%,
  55%,
  100% {
    opacity: 0;
  }
  56%,
  63% {
    opacity: 1;
  }
}

@keyframes apr-snow-float {
  0%, 100% {
    transform: translateY(-3px);
    opacity: 0.72;
  }
  50% {
    transform: translateY(9px);
    opacity: 1;
  }
}

@keyframes apr-fog-slide {
  0%, 100% {
    transform: translateX(-6px);
    opacity: 0.52;
  }
  50% {
    transform: translateX(8px);
    opacity: 0.9;
  }
}

.current-weather-icon.current-weather-icon--clear,
.current-weather-icon.current-weather-icon--partly-cloudy {
  position: relative;
  overflow: hidden;
}

.current-weather-icon.current-weather-icon--clear::before,
.current-weather-icon.current-weather-icon--partly-cloudy::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 79, 0.28), transparent 64%);
  animation: weather-sun-glow 3.8s ease-in-out infinite;
}

.weather-animated-icon {
  display: inline-grid;
  place-items: center;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.weather-animated-icon svg {
  width: 100%;
  height: 100%;
}

.current-weather-icon .weather-animated-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
}

.hourly-weather-card > .weather-animated-icon {
  width: 38px;
  height: 38px;
  margin: 17px 0 10px;
  color: #c78113;
}

.daily-forecast-card > .weather-animated-icon {
  width: 44px;
  height: 44px;
  margin: 16px auto 10px;
  color: #ffcf4f;
}

.weather-animated-icon--clear {
  animation: weather-sun-spin 16s linear infinite, weather-sun-pulse 3.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 207, 79, 0.28));
}

.weather-animated-icon--partly-cloudy,
.weather-animated-icon--cloudy,
.weather-animated-icon--fog {
  animation: weather-cloud-drift 4.8s ease-in-out infinite;
}

.weather-animated-icon--rain {
  animation: weather-rain-bob 1.55s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(84, 200, 232, 0.32));
}

.weather-animated-icon--storm {
  animation: weather-storm-flash 2.2s ease-in-out infinite, weather-rain-bob 1.65s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 207, 79, 0.36));
}

.weather-animated-icon--snow {
  animation: weather-snow-float 3.6s ease-in-out infinite;
}

.daily-forecast-card:nth-child(2n) .weather-animated-icon,
.hourly-weather-card:nth-child(2n) .weather-animated-icon {
  animation-delay: -0.8s;
}

.daily-forecast-card:nth-child(3n) .weather-animated-icon,
.hourly-weather-card:nth-child(3n) .weather-animated-icon {
  animation-delay: -1.5s;
}

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

@keyframes weather-sun-pulse {
  0%, 100% { opacity: 0.94; }
  50% { opacity: 1; }
}

@keyframes weather-sun-glow {
  0%, 100% { transform: scale(0.86); opacity: 0.34; }
  50% { transform: scale(1.08); opacity: 0.62; }
}

@keyframes weather-cloud-drift {
  0%, 100% { transform: translateX(-2px) translateY(0); }
  50% { transform: translateX(3px) translateY(-2px); }
}

@keyframes weather-rain-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@keyframes weather-storm-flash {
  0%, 72%, 100% { opacity: 0.92; }
  78% { opacity: 1; color: #fff3a5; }
  84% { opacity: 0.7; }
  90% { opacity: 1; color: #ffcf4f; }
}

@keyframes weather-snow-float {
  0%, 100% { transform: translateY(-2px) rotate(-4deg); }
  50% { transform: translateY(3px) rotate(4deg); }
}

.weather-alert-clear,
.river-all-clear {
  background: rgba(40, 115, 92, 0.18);
  color: #dff9ee;
}

.weather-alert-clear span,
.river-all-clear span {
  color: #b8d8c9;
}

.weather-alert-detail,
.weather-alert summary em {
  color: #c5d6e9;
}

.weather-alert-map {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.weather-rainfall-section {
  background: linear-gradient(145deg, rgba(11, 34, 60, 0.94), rgba(8, 24, 45, 0.94));
}

.weather-segmented {
  background: rgba(255, 255, 255, 0.11);
}

.weather-segmented button {
  color: #cbd8e7;
}

.weather-segmented button.is-active {
  background: #d8a829;
  color: #071832;
}

.tropical-status-line {
  background: rgba(40, 115, 92, 0.18);
  color: #edf5ff;
}

.tropical-status-line--watch {
  background: rgba(216, 168, 41, 0.15);
}

.tropical-status-line--active {
  background: rgba(166, 29, 38, 0.2);
}

.tropical-sst {
  border: 1px solid rgba(216, 168, 41, 0.3);
}

.weather-news-image img {
  background: #071832;
}

.weather-sources-section {
  margin-bottom: 50px;
}

.weather-sources-section nav a {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(150, 176, 205, 0.22);
}

@media (max-width: 760px) {
  .weather-body {
    width: 100%;
  }

  .weather-main {
    max-width: 100vw;
  }

  .weather-masthead-inner {
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px);
  }

  .weather-masthead-inner > div {
    width: 100%;
    min-width: 0;
  }

  .weather-masthead h1 {
    font-size: 3rem;
  }

  .weather-masthead p:not(.eyebrow) {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .weather-masthead-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .weather-masthead-actions .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .weather-main > section:not(.weather-masthead),
  .weather-main > aside,
  .weather-main > .weather-data-status {
    margin-top: 14px;
    border-radius: 6px;
  }

  .weather-current-section,
  .weather-forecast-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-animated-icon,
  .apr-weather-sun,
  .apr-weather-sun::before,
  .apr-weather-cloud,
  .apr-weather-rain,
  .apr-weather-bolt,
  .apr-weather-flash,
  .apr-weather-snow,
  .apr-weather-fog,
  .current-weather-icon.current-weather-icon--clear::before,
  .current-weather-icon.current-weather-icon--partly-cloudy::before {
    animation: none !important;
  }
}
