:root {
  --page-bg: #f2ece2;
  --panel-bg: rgba(255, 251, 245, 0.82);
  --panel-border: rgba(77, 67, 54, 0.16);
  --text-main: #1f1c18;
  --text-muted: #5f564a;
  --accent: #7a5c43;
  --accent-soft: #d8c4ae;
  --accent-deep: #3e3428;
  --ocean: #ded9cf;
  --shadow: 0 18px 45px rgba(58, 46, 32, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(163, 134, 108, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, var(--page-bg) 46%, #ebe1d3 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  padding: 2rem 0 1.5rem;
}

.return-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color var(--transition), transform var(--transition);
}

.return-link:hover,
.return-link:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.return-link--top {
  margin-bottom: 0.85rem;
}

.return-link--bottom {
  margin: 0 auto 0.75rem;
}

.hero__title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero__eyebrow,
.panel__kicker,
.metric-card__label,
.detail-stats__label,
.detail-block__label,
.summary-hint {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero h1,
.panel h2 {
  margin: 0;
  font-family: "Baskerville Old Face", "Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  margin-top: 0.5rem;
}

.hero__cat {
  width: clamp(144px, 22vw, 240px);
  height: auto;
  object-fit: contain;
  margin-top: 1.25rem;
  margin-bottom: -3rem;
  align-self: flex-start;
  filter: drop-shadow(0 18px 30px rgba(62, 52, 40, 0.18));
}

.hero__subtitle {
  max-width: 46rem;
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero__cta {
  display: none;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.hero__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 61, 44, 0.16);
  background: rgba(255, 250, 244, 0.72);
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero__cta-link:hover,
.hero__cta-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(72, 54, 36, 0.1);
  outline: none;
}

.hero__cta-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 32rem;
}

.hero__bulletin {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "label headline meta";
    "label headline meta";
  align-items: center;
  gap: 1rem 1.25rem;
  width: 100%;
  margin: 1rem 0 0;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(122, 92, 67, 0.16);
  border-radius: 20px;
  border-left: 8px solid rgba(122, 92, 67, 0.28);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.92) 0%, rgba(246, 238, 228, 0.88) 100%);
  box-shadow: 0 12px 28px rgba(58, 46, 32, 0.08);
}

.hero__bulletin.is-elevated {
  border-color: rgba(161, 102, 53, 0.24);
  border-left-color: rgba(161, 102, 53, 0.52);
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.94) 0%, rgba(245, 231, 214, 0.9) 100%);
}

.hero__bulletin.is-elevated .hero__bulletin-label {
  background: #8f5f3d;
}

.hero__bulletin.is-critical {
  border-color: rgba(147, 73, 55, 0.26);
  border-left-color: rgba(147, 73, 55, 0.7);
  background: linear-gradient(180deg, rgba(255, 245, 242, 0.96) 0%, rgba(247, 225, 219, 0.92) 100%);
}

.hero__bulletin.is-critical .hero__bulletin-label {
  background: #8b4436;
}

.hero__bulletin-label {
  grid-area: label;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #f8f1e8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__bulletin-headline {
  grid-area: headline;
  margin: 0;
  color: var(--accent-deep);
  font-size: 1rem;
  line-height: 1.6;
}

.hero__bulletin-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.hero__bulletin-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(122, 92, 67, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.live-feed {
  width: 100%;
  margin-top: 0.9rem;
  border: 1px solid rgba(122, 92, 67, 0.14);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.78);
  overflow: hidden;
}

.live-feed--mobile {
  display: none;
  margin-top: 0.1rem;
}

.live-feed__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.live-feed__title-wrap {
  display: grid;
  gap: 0.2rem;
}

.live-feed__summary::-webkit-details-marker {
  display: none;
}

.live-feed__title {
  color: var(--accent-deep);
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-feed__updated {
  color: var(--text-muted);
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.live-feed__chevron {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid rgba(79, 65, 50, 0.68);
  border-bottom: 2px solid rgba(79, 65, 50, 0.68);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex-shrink: 0;
}

.live-feed[open] .live-feed__chevron {
  transform: rotate(225deg);
}

.live-feed__body {
  display: grid;
  gap: 0.28rem;
  padding: 0.25rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(122, 92, 67, 0.1);
}

.live-feed__item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(122, 92, 67, 0.08);
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.35;
}

.live-feed__item:last-child {
  border-bottom: 0;
}

.live-feed__item.is-new {
  animation: live-feed-fade-in 420ms ease;
}

.live-feed__timestamp {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.live-feed__city {
  color: var(--accent-deep);
  font-weight: 600;
  white-space: nowrap;
}

.live-feed__message {
  margin: 0;
  color: var(--text-strong);
}

@keyframes live-feed-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard {
  display: grid;
  gap: 1.25rem;
}

.mobile-controls,
.mobile-forecast-context,
.mobile-overview-summary {
  display: none;
}

.mobile-controls {
  gap: 0.8rem;
}

.mobile-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.mobile-view-tabs__button {
  border: 1px solid rgba(79, 61, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  color: var(--text-muted);
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.mobile-view-tabs__button.is-active {
  background: linear-gradient(180deg, rgba(239, 228, 214, 0.98) 0%, rgba(231, 217, 199, 0.94) 100%);
  border-color: rgba(82, 64, 45, 0.24);
  color: var(--accent-deep);
}

.mobile-forecast-context {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(83, 68, 50, 0.08);
}

.mobile-forecast-context__city,
.mobile-forecast-context__meta {
  margin: 0;
}

.mobile-forecast-context__city {
  font-family: "Baskerville Old Face", "Garamond", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.mobile-forecast-context__meta {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.mobile-overview-summary {
  margin-top: 0.9rem;
  gap: 0.8rem;
}

.mobile-overview-summary__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(83, 68, 50, 0.08);
}

.mobile-overview-summary__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.mobile-overview-summary__headline {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(83, 68, 50, 0.08);
  color: var(--accent-deep);
  line-height: 1.55;
}

.mobile-overview-summary__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mobile-overview-summary__metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(122, 92, 67, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.mobile-map-toggle {
  display: none;
  position: static;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(79, 61, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.86);
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(52, 44, 34, 0.1);
}

.dashboard__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1.25rem;
}

.panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  min-width: 0;
}

.timeline-panel {
  grid-column: 1 / -1;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel__header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel__header--stack {
  align-items: flex-end;
}

.panel__note {
  margin: 0;
  max-width: 20rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

.button {
  border: 1px solid rgba(79, 61, 44, 0.25);
  background: linear-gradient(180deg, #f8f1e8 0%, #ecdfd0 100%);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(72, 54, 36, 0.12);
  outline: none;
}

.button--small {
  padding: 0.48rem 0.8rem;
  font-size: 0.82rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(83, 68, 50, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 9.5rem;
}

.metric-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.metric-card__value {
  margin: 0.35rem 0;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
}

.metric-card__value--risk,
.metric-card__value--small {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.metric-card__risk {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.35rem 0;
}

.metric-card__risk-image {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 24px rgba(58, 46, 32, 0.08);
}

.metric-card__meta,
.detail-note,
.methodology-copy p,
.footer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.metric-card--advisory {
  background: linear-gradient(180deg, rgba(243, 234, 223, 0.92) 0%, rgba(236, 225, 210, 0.88) 100%);
}

.metric-card__statement {
  margin: 0.55rem 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.map-and-list {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 30% 20%, rgba(122, 92, 67, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(242, 236, 226, 0.78) 0%, rgba(225, 216, 202, 0.62) 100%);
  border: 1px solid rgba(73, 61, 48, 0.08);
}

.mobile-map-stage {
  display: none;
}

.globe-legend {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(73, 61, 48, 0.08);
  background: rgba(255, 250, 244, 0.7);
}

.globe-legend__title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.globe-legend__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}

.globe-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.globe-legend__dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #8d694b;
  box-shadow: 0 0 0 3px rgba(141, 105, 75, 0.14);
  flex-shrink: 0;
}

.globe-legend__dot--low {
  background: #d1b7a0;
  box-shadow: 0 0 0 2px rgba(209, 183, 160, 0.16);
}

.globe-legend__dot--medium {
  background: #b68863;
  box-shadow: 0 0 0 3px rgba(182, 136, 99, 0.18);
}

.globe-legend__dot--high {
  background: #8f5f3d;
  box-shadow: 0 0 0 4px rgba(143, 95, 61, 0.18);
}

.globe-legend__dot--extreme {
  background: #66412a;
  box-shadow:
    0 0 0 3px rgba(102, 65, 42, 0.16),
    0 0 0 6px rgba(102, 65, 42, 0.08);
}

.globe-stage {
  display: block;
  width: 100%;
  height: 500px;
  min-height: 300px;
  position: relative;
  background-color: #050505;
  border-radius: 8px;
  overflow: hidden;
}

.flat-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  min-height: 300px;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.flat-map__surface {
  position: relative;
  width: 100%;
  min-width: 760px;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    url("assets/earth_atmos_2048.jpg") center / 100% 100% no-repeat;
}

.flat-map__grid,
.flat-map__markers {
  position: absolute;
  inset: 0;
}

.flat-map__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 12.5% 16.66%;
  opacity: 0.4;
}

.flat-map__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  width: 0;
  height: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  overflow: visible;
}

.flat-map__pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--marker-color, #8d694b);
  border: 2px solid rgba(255, 251, 245, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 251, 245, 0.22);
  transform: translate(-50%, -50%);
}

.flat-map__marker.is-active .flat-map__pin {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 6px rgba(255, 251, 245, 0.3);
}

.flat-map__label {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  gap: 0.1rem;
  min-width: 5rem;
  padding: 0.34rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.9);
  color: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(52, 44, 34, 0.12);
  font-size: 0.7rem;
  line-height: 1.2;
}

.flat-map__marker--top-left .flat-map__label {
  transform: translate(calc(-100% - 0.4rem), calc(-100% - 0.45rem));
}

.flat-map__marker--top-right .flat-map__label {
  transform: translate(0.4rem, calc(-100% - 0.45rem));
}

.flat-map__marker--bottom-left .flat-map__label {
  transform: translate(calc(-100% - 0.4rem), 0.45rem);
}

.flat-map__marker--bottom-right .flat-map__label {
  transform: translate(0.4rem, 0.45rem);
}

.flat-map__label strong {
  font-size: 0.74rem;
}

.flat-map__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.78);
  border: 1px solid rgba(73, 61, 48, 0.08);
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-align: center;
  backdrop-filter: blur(8px);
}

.globe-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.globe-stage::after {
  content: "Rotatable monitoring instrument. Scroll or pinch to inspect hemispheric conditions.";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(73, 61, 48, 0.08);
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  text-align: center;
  pointer-events: none;
}

.region-legend {
  display: grid;
  gap: 0.65rem;
}

.legend-item {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "swatch name metrics";
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(72, 61, 48, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.legend-item.is-active {
  background: linear-gradient(180deg, rgba(239, 228, 214, 0.98) 0%, rgba(231, 217, 199, 0.94) 100%);
  border-color: rgba(82, 64, 45, 0.28);
  transform: translateX(-2px);
  box-shadow: 0 14px 28px rgba(58, 46, 32, 0.12);
}

.legend-item.is-active .legend-name {
  font-weight: 600;
}

.legend-item.is-active .legend-value {
  color: var(--accent-deep);
}

.legend-swatch {
  grid-area: swatch;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
}

.legend-name,
.legend-value,
.legend-status {
  margin: 0;
  font-size: 0.92rem;
}

.legend-name {
  grid-area: name;
}

.legend-name small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.legend-metrics {
  grid-area: metrics;
  display: grid;
  gap: 0.28rem;
  justify-items: end;
}

.legend-status {
  align-self: start;
  justify-self: end;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(122, 92, 67, 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-value {
  align-self: center;
}

.detail-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.detail-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.detail-card__region {
  margin: 0;
  font-family: "Baskerville Old Face", "Garamond", "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.detail-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.detail-card__cycle {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(79, 65, 50, 0.14);
  background: rgba(255, 255, 255, 0.64);
  color: var(--text-strong);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.detail-card__cycle:hover {
  transform: translateX(1px);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(79, 65, 50, 0.22);
}

.detail-card__cycle--header {
  margin-top: 0.08rem;
}

.detail-card__region-subtitle {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-card__phase {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-card__state {
  margin: 0.45rem 0 0;
  font-family: "Baskerville Old Face", "Garamond", "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.detail-card__state-image {
  width: clamp(76px, 10vw, 112px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: -0.2rem;
  filter: drop-shadow(0 10px 18px rgba(62, 52, 40, 0.12));
}

.detail-card__hotspot {
  margin: -0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.detail-stats > div {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
}

.detail-stats__label {
  min-height: 2.4em;
}

.detail-stats__value {
  margin: 0.3rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.detail-block {
  padding-top: 0.2rem;
  border-top: 1px solid rgba(79, 65, 50, 0.1);
  min-width: 0;
}

.detail-block--forecast-mobile {
  display: none;
}

.detail-block--forecast .timeline {
  margin-top: 0.7rem;
}

.detail-list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.detail-mobile-actions {
  display: none;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  min-width: 0;
}

.forecast-slot {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1rem;
  min-height: 100%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(83, 68, 50, 0.08);
  box-shadow: 0 12px 30px rgba(58, 46, 32, 0.06);
}

.forecast-slot.is-peak-hour {
  background: linear-gradient(180deg, rgba(248, 240, 230, 0.96) 0%, rgba(239, 227, 212, 0.9) 100%);
  border-color: rgba(122, 92, 67, 0.28);
  box-shadow: 0 18px 34px rgba(58, 46, 32, 0.11);
  transform: translateY(-2px);
}

.forecast-slot__time,
.forecast-slot__flag,
.forecast-slot__state,
.forecast-slot__index,
.forecast-slot__description {
  margin: 0;
}

.forecast-slot__time {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.forecast-slot__flag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.forecast-slot.is-peak-hour .forecast-slot__flag {
  color: var(--accent-deep);
}

.forecast-slot:first-child .forecast-slot__flag {
  color: var(--accent-deep);
}

.forecast-slot__icon {
  width: min(100%, 96px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 10px 18px rgba(62, 52, 40, 0.12));
}

.forecast-slot__state {
  font-family: "Baskerville Old Face", "Garamond", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.forecast-slot__index {
  font-size: 0.84rem;
  color: var(--accent);
}

.forecast-slot__description {
  color: var(--text-muted);
  line-height: 1.5;
}

details {
  width: 100%;
}

summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.methodology-copy {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.methodology-confidence {
  font-size: 0.88rem;
}

.footer {
  padding: 1.2rem 0 0.25rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard__grid,
  .map-and-list {
    grid-template-columns: 1fr;
  }

  .panel__note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 1rem, 1200px);
    padding-top: 1rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero__title-wrap {
    align-items: flex-end;
    gap: 1rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__bulletin {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "headline"
      "meta";
    align-items: start;
  }

  .hero__bulletin-meta {
    justify-content: flex-start;
  }

  .panel {
    padding: 1rem;
  }

  .panel__header,
  .panel__header--stack {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .detail-stats {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .detail-stats > div {
    min-width: 140px;
  }

  .globe-stage {
    height: 420px;
  }
}

@media (max-width: 820px) {
  .hero__bulletin {
    display: none;
  }

  .hero > .live-feed:not(.live-feed--mobile) {
    display: none;
  }

  .dashboard,
  .methodology-panel,
  .summary-grid,
  .dashboard__grid,
  .map-and-list {
    min-width: 0;
  }

  .mobile-controls,
  .mobile-forecast-context,
  .mobile-overview-summary {
    display: grid;
  }

  .live-feed--mobile {
    display: block;
  }

  .mobile-map-toggle {
    display: inline-flex;
    position: absolute;
    top: 3.2rem;
    right: 0;
    margin: 0;
    z-index: 3;
  }

  .dashboard.active-view-overview .detail-panel,
  .dashboard.active-view-city .map-panel,
  .dashboard.active-view-city .panel--summary {
    display: none;
  }

  .detail-stats {
    display: none;
  }

  .timeline-panel {
    display: none;
  }

  .detail-block--forecast {
    overflow: hidden;
  }

  .detail-block--forecast-mobile {
    display: block;
  }

  .detail-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.2rem;
  }

  .detail-mobile-actions__button {
    width: 100%;
    justify-content: center;
  }

  .mobile-forecast-context {
    display: grid;
    margin-top: 0.2rem;
  }

  .dashboard__grid {
    grid-template-columns: 1fr;
  }

  .dashboard.mobile-map-mode-map .globe-stage {
    display: none;
  }

  .dashboard.mobile-map-mode-map .mobile-map-stage {
    display: block;
  }

  .dashboard.mobile-map-mode-globe .globe-stage {
    display: block;
  }

  .dashboard.mobile-map-mode-globe .mobile-map-stage {
    display: none;
  }

  .globe-legend {
    display: none;
  }

  .map-and-list {
    grid-template-columns: 1fr;
  }

  .flat-map {
    aspect-ratio: auto;
  }

  .flat-map__surface {
    min-width: 920px;
  }

  .timeline {
    grid-auto-flow: column;
    grid-auto-columns: minmax(78vw, 78vw);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    width: 100%;
    max-width: 100%;
  }

  .forecast-slot {
    min-width: 0;
    width: 100%;
    scroll-snap-align: start;
  }
}
