:root {
  --sw-bg-top: #09192f;
  --sw-bg-bottom: #06111e;
  --sw-panel: #10233f;
  --sw-panel-soft: #173255;
  --sw-panel-deep: #0b1d35;
  --sw-border: #4d7096;
  --sw-border-soft: rgba(156, 191, 222, 0.28);
  --sw-text: #eef5fb;
  --sw-muted: #b7cce2;
  --sw-accent: #9dd4ff;
  --sw-warm: #ffd79b;
}

body.weather-center-page {
  margin: 0;
  min-height: 100vh;
  color: var(--sw-text);
  background: radial-gradient(circle at top left, rgba(58, 102, 153, 0.35), transparent 28%), linear-gradient(180deg, var(--sw-bg-top), var(--sw-bg-bottom));
}

.sw-shell {
  width: min(1380px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.7rem 0 1.2rem;
}

.sw-header {
  margin-bottom: 0.45rem;
}

.sw-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sw-logo {
  width: 72px;
  height: auto;
}

.sw-kicker {
  margin: 0;
  font-size: 0.72rem;
  color: var(--sw-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sw-header h1 {
  margin: 0.14rem 0 0;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.sw-subtitle,
.sw-updated,
.sw-credit,
.sw-band-summary,
.empty-state,
.sw-console-muted,
.sw-forecast-card p,
.sw-feature-card p,
.sw-spc-card p {
  color: var(--sw-muted);
}

.sw-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.sw-menu-bar {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 0.7rem;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #17365d, #102743);
}

.sw-menu-bar a,
.sw-title-link,
.sw-graphic-head a {
  text-decoration: none;
}

.sw-menu-bar a {
  color: var(--sw-text);
  padding: 0.7rem 0.95rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}

.sw-menu-bar a[aria-current="page"] {
  background: rgba(157, 212, 255, 0.16);
  font-weight: 700;
}

.sw-classic-panel {
  background: linear-gradient(180deg, rgba(18, 38, 67, 0.97), rgba(10, 24, 44, 0.97));
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}

.sw-panel-title-row,
.sw-graphic-head,
.sw-console-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.sw-panel-title-row h2,
.sw-graphic-head h3,
.sw-console-head {
  margin: 0;
}

.sw-two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.sw-graphic-row,
.sw-image-row {
  margin-top: 0.7rem;
}

.sw-graphic-card,
.sw-console-box,
.sw-feature-card,
.sw-forecast-card,
.sw-spc-card {
  background: linear-gradient(180deg, rgba(25, 51, 84, 0.94), rgba(15, 31, 54, 0.98));
  border: 1px solid var(--sw-border-soft);
  border-radius: 8px;
}

.sw-graphic-card {
  padding: 0.7rem;
}

.sw-alert-graphic-body {
  min-height: 180px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.sw-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 31, 52, 0.9);
  color: var(--sw-text);
  font-size: 0.92rem;
}

.sw-alert-badge.severe,
.sw-alert-badge.extreme {
  background: rgba(128, 16, 18, 0.78);
}

.sw-alert-badge.moderate {
  background: rgba(110, 74, 12, 0.72);
}

.sw-alert-badge.minor {
  background: rgba(12, 78, 56, 0.7);
}

.sw-alert-badge-flash {
  animation: sw-alert-flash 1s steps(2, start) infinite;
}

@keyframes sw-alert-flash {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(255, 128, 116, 0);
  }

  50% {
    opacity: 0.35;
    box-shadow: 0 0 16px rgba(255, 128, 116, 0.55);
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(255, 128, 116, 0);
  }
}

.sw-alert-summary-card {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(157, 212, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 22, 39, 0.72);
}

.sw-alert-list {
  width: 100%;
  display: grid;
  gap: 0.55rem;
}

.sw-alert-helper {
  width: 100%;
  margin: 0.15rem 0 0.55rem;
  color: var(--sw-warm);
  font-weight: 700;
}

.sw-alert-details {
  width: 100%;
  border: 1px solid rgba(157, 212, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 22, 39, 0.8);
  overflow: hidden;
}

.sw-alert-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.8rem 0.95rem;
  font-weight: 700;
  color: #fff;
}

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

.sw-alert-details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sw-alert-details-body {
  padding: 0.8rem 0.95rem 0.95rem;
  color: var(--sw-text);
}

.sw-alert-details-body p {
  margin: 0 0 0.55rem;
  line-height: 1.5;
}

.sw-alert-meta {
  color: var(--sw-muted);
  font-size: 0.92rem;
}

.sw-image-link {
  display: block;
  margin-top: 0.7rem;
}

.sw-classic-image {
  display: block;
  width: 100%;
  min-height: 230px;
  object-fit: cover;
  background: #06101b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.sw-lightning-frame-wrap {
  margin-top: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  background: #06101b;
}

.sw-console-panel {
  padding-top: 0.45rem;
}

.sw-console-topline {
  padding: 0 0.15rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sw-console-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 0.9fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.sw-span-2 {
  grid-column: span 2;
}

.sw-console-head {
  background: #3a77af;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px 8px 0 0;
  text-align: center;
}


.sw-summary-box,
.sw-console-center,
.sw-outlook-box,
.sw-moon-box {
  padding: 0.75rem;
}

.sw-summary-box {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.sw-summary-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #dbe7f2;
}

.sw-console-copy {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  color: #fff;
}

.sw-console-temp {
  margin: 0.4rem 0;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--sw-warm);
}

.sw-console-condition,
.sw-console-big {
  font-size: 1.2rem;
  color: #fff;
}

.sw-console-center,
.sw-outlook-box,
.sw-moon-box {
  text-align: center;
}

.sw-wind-arrow-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72px;
}

.sw-wind-arrow {
  font-size: 3rem;
  line-height: 1;
  color: var(--sw-accent);
  transition: transform 0.2s ease;
}

.sw-console-table {
  padding: 0.35rem 0.75rem 0.75rem;
}

.sw-console-table div {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sw-console-table div:last-child {
  border-bottom: 0;
}

.sw-console-table strong,
.sw-outlook-box p,
.sw-moon-box p {
  color: #fff;
}

.sw-outlook-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0.5rem auto;
}

.sw-moon-disc {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 0.55rem;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d7dbe2 35%, #8e98a8 72%, #404856 100%);
  box-shadow: inset -16px 0 0 rgba(0, 0, 0, 0.24);
}

.sw-feature-card,
.sw-forecast-card,
.sw-spc-card {
  padding: 0.75rem;
}

.sw-forecast-feature {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sw-feature-inner {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.sw-feature-inner img,
.sw-forecast-card img,
.sw-spc-card img {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #06101b;
}

.sw-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.sw-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 0.8rem;
}

.sw-radio-frame {
  margin-top: 0.7rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-radio-frame iframe {
  width: 100%;
  min-height: 540px;
  border: 0;
}

.sw-radio-direct {
  margin-top: 0.7rem;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(23, 48, 80, 0.94), rgba(14, 30, 50, 0.98));
}

.sw-radio-audio {
  width: 100%;
  margin: 0.7rem 0 0.9rem;
}

.sw-radio-meta {
  display: grid;
  gap: 0.45rem;
}

.sw-radio-meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-radio-meta div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sw-radio-direct .sw-credit {
  margin-top: 0.85rem;
}

.sw-radio-direct .sw-credit a {
  color: var(--sw-accent);
}

.sw-spc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
}

@media (max-width: 1180px) {
  .sw-console-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sw-span-2 {
    grid-column: span 3;
  }

  .sw-forecast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sw-two-up,
  .sw-bottom-grid,
  .sw-forecast-feature,
  .sw-console-grid,
  .sw-forecast-grid,
  .sw-spc-grid {
    grid-template-columns: 1fr;
  }

  .sw-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .sw-shell {
    width: min(100% - 0.6rem, 100%);
  }

  .sw-brand-wrap,
  .sw-panel-title-row,
  .sw-graphic-head,
  .sw-console-topline,
  .sw-summary-box,
  .sw-feature-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .sw-logo {
    width: 58px;
  }

  .sw-classic-image {
    min-height: 190px;
  }

  .sw-lightning-frame-wrap iframe {
    height: 220px;
  }

  .sw-radio-frame iframe {
    min-height: 480px;
  }
}
