:root {
  --color-bg: #f8f3e8;
  --color-surface: #fffdf7;
  --color-surface-soft: #f3ebd8;
  --color-ink: #243039;
  --color-muted: #64727d;
  --color-line: #e3d8c2;
  --color-blue: #78afc7;
  --color-blue-soft: #ddeff5;
  --color-green: #8fae7d;
  --color-green-soft: #e6efd9;
  --color-yellow: #f4c95d;
  --color-yellow-soft: #fff2c2;
  --color-orange: #d9854b;
  --color-orange-soft: #f8ddc8;
  --color-red: #b95c50;
  --color-red-soft: #f4d1cb;
  --radius-card: 24px;
  --radius-panel: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(36, 48, 57, 0.08);
  --shadow-tiny: 0 4px 14px rgba(36, 48, 57, 0.06);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(120, 175, 199, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(120, 175, 199, 0.06) 1px, transparent 1px),
    var(--color-bg);
  background-size: 44px 44px;
  color: var(--color-ink);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(120, 175, 199, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--color-ink);
  color: var(--color-surface);
  padding: 10px 14px;
  border-radius: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 243, 232, 0.88);
  border-bottom: 1px solid rgba(227, 216, 194, 0.85);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-green);
  font-weight: 800;
  box-shadow: var(--shadow-tiny);
}

.brand__name,
.brand__badge {
  display: block;
}

.brand__name {
  font-weight: 800;
}

.brand__badge,
.mini-label,
.eyebrow {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  color: var(--color-muted);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--color-surface);
  border-color: var(--color-line);
  color: var(--color-ink);
}

main {
  padding: 36px 0 64px;
}

.hero,
.section,
.source-notice,
.filter-panel,
.tracker-grid,
.cta-band,
.text-panel {
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(135deg, var(--color-surface), #f6eedc);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero h1 {
  margin: 6px 0 14px;
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
}

.hero__subhead {
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 800;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero__note {
  max-width: 340px;
  color: var(--color-muted);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 900;
  text-decoration: none;
}

.button--primary {
  background: var(--color-ink);
  color: var(--color-surface);
  border-color: var(--color-ink);
}

.button--secondary {
  background: var(--color-surface);
  color: var(--color-ink);
}

.earth-pathways__intro {
  max-width: 760px;
}

.earth-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.earth-pathway-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tiny);
}

.earth-pathway-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.earth-pathway-card p {
  margin: 0;
  color: var(--color-muted);
}

.earth-pathway-card .eyebrow {
  margin: 0;
}

.earth-pathway-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 4px;
}

.earth-pathway-card__links a {
  color: var(--color-ink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.earth-orb-wrap {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.earth-orb-wrap--small {
  min-height: 180px;
}

.rotating-earth {
  width: min(290px, 72vw);
  filter: drop-shadow(0 18px 24px rgba(36, 48, 57, 0.12));
}

.earth-orb-wrap--small .rotating-earth {
  width: min(210px, 58vw);
}

.section__heading {
  display: block;
  max-width: 760px;
  margin-bottom: 16px;
}

.section__heading h2,
.cta-band h2,
.text-panel h2,
.latest-panel h2,
.latest-reports-section h2,
.regions-active h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
}

.section-intro {
  margin-top: 8px;
  color: var(--color-muted);
}

.stat-grid,
.explainer-grid,
.region-card-grid,
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.signal-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.signal-layer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-tiny);
  cursor: pointer;
}

.signal-layer-card.is-active {
  border-color: rgba(143, 174, 125, 0.75);
  background: linear-gradient(135deg, var(--color-surface), var(--color-green-soft));
}

.signal-layer-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.signal-layer-card input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--color-green);
}

.signal-layer-card strong,
.signal-layer-card small,
.signal-layer-card em,
.signal-layer-card .signal-window {
  display: block;
}

.signal-layer-card strong {
  line-height: 1.25;
}

.signal-layer-card small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.signal-layer-card em {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

.signal-layer-card .signal-window {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.signal-layer-explainer {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(95, 142, 164, 0.28);
  border-radius: 14px;
  background: #eef6f8;
  color: var(--color-ink);
}

.signal-layer-explainer p {
  margin: 0;
  line-height: 1.55;
}

.signal-layer-explainer strong {
  color: #2f6477;
}

.signal-layer-explainer__meta {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.layer-reading-grid[hidden],
.signal-list-filters[hidden] {
  display: none;
}

.layer-reading-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
  padding: 16px;
  border: 1px solid rgba(227, 216, 194, 0.9);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: var(--shadow-tiny);
}

.layer-reading-header {
  display: grid;
  gap: 4px;
}

.layer-reading-header h3,
.layer-reading-header p {
  margin: 0;
}

.layer-reading-header p:not(.eyebrow) {
  color: var(--color-muted);
}

.layer-reading-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.layer-reading-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(227, 216, 194, 0.9);
  border-radius: 18px;
  background: var(--color-surface);
}

.layer-reading-card__header {
  display: grid;
  gap: 2px;
}

.layer-reading-card__header strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.layer-reading-card__meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.layer-reading-card__meta div {
  display: grid;
  gap: 2px;
}

.layer-reading-card__meta dt {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layer-reading-card__meta dd {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.layer-reading-card__meta a,
.layer-reading-card__note a {
  color: #3d748a;
  font-weight: 900;
}

.layer-reading-card__note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.signal-list-filters {
  margin: -4px 0 14px;
}

.signal-list-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-list-filter {
  border: 1px solid rgba(227, 216, 194, 0.95);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 8px 12px;
  box-shadow: var(--shadow-tiny);
}

.signal-list-filter:hover,
.signal-list-filter:focus-visible {
  border-color: rgba(120, 175, 199, 0.75);
}

.signal-list-filter.is-active {
  border-color: rgba(143, 174, 125, 0.75);
  background: var(--color-green-soft);
}

.stat-card,
.explainer-card,
.event-card,
.region-card,
.regions-active-card,
.text-panel,
.latest-panel,
.source-notice,
.filter-panel,
.mascot-note,
.ad-slot {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tiny);
}

.stat-card,
.explainer-card,
.event-card,
.region-card,
.regions-active-card {
  padding: 18px;
}

.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--color-blue-soft);
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.stat-card .mini-label {
  display: block;
}

.stat-card strong {
  display: block;
  margin: 5px 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.stat-card p,
.explainer-card p,
.event-card p {
  margin: 0;
  color: var(--color-muted);
}

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

.region-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.region-card h3 {
  margin: 4px 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.region-card p {
  margin: 0;
  color: var(--color-muted);
}

.region-card .button {
  align-self: flex-start;
}

.regions-active__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.regions-active-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
}

.regions-active-card h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

.regions-active-card__meta {
  display: grid;
  gap: 4px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.regions-active-card .button {
  justify-self: start;
}

.regions-active__note {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.explainer-grid--three,
.methodology-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-shell {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-panel);
  background: var(--color-blue-soft);
  overflow: hidden;
}

.map-panel {
  padding: 10px;
  background: var(--color-blue-soft);
  box-shadow: var(--shadow-soft);
}

.map-panel--preview {
  position: relative;
  overflow: visible;
}

.preview-map-viewport {
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-blue-soft);
}

.earth-map {
  display: block;
  width: 100%;
  border-radius: 24px;
  background: var(--color-blue-soft);
  overflow: hidden;
}

.map-preview {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 420px;
}

.preview-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.preview-map-ocean {
  fill: var(--color-blue-soft);
}

.preview-map-grid line {
  stroke: rgba(120, 175, 199, 0.28);
  stroke-width: 1;
}

.preview-map-silhouette {
  opacity: 0.95;
}

.preview-quake-dot {
  cursor: pointer;
  fill-opacity: 0.78;
  stroke: var(--color-surface);
  stroke-width: 3;
  filter: drop-shadow(0 4px 10px rgba(36, 48, 57, 0.18));
}

.preview-quake-halo {
  fill: none;
  pointer-events: none;
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 2;
}

.preview-quake-halo--moderate {
  animation: previewQuakePulse 3.2s ease-out infinite;
}

.preview-quake-halo--strong {
  animation: previewQuakePulse 2.5s ease-out infinite;
}

.preview-quake-dot:focus {
  outline: none;
  stroke: var(--color-ink);
  stroke-width: 4;
}

.preview-quake-dot--natural-symbol {
  fill-opacity: 0.9;
}

.preview-quake-count {
  pointer-events: none;
  fill: var(--color-surface);
  font-size: 14px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(36, 48, 57, 0.55);
  stroke-width: 4px;
  text-anchor: middle;
}

.preview-event-symbol-badge {
  pointer-events: none;
  fill: rgba(255, 253, 247, 0.9);
  stroke: rgba(36, 48, 57, 0.18);
  stroke-width: 1.5;
}

.preview-event-symbol {
  pointer-events: none;
  fill: var(--color-ink);
  font-size: 17px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 253, 247, 0.82);
  stroke-width: 3px;
  text-anchor: middle;
}

.preview-event-symbol--cluster {
  font-size: 16px;
}

.preview-map-popover {
  display: grid;
  gap: 3px;
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 48px));
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  transform: translate(-50%, -50%);
}

.preview-map-popover[hidden] {
  display: none;
}

.preview-map-popover strong {
  color: var(--color-ink);
  font-size: 1rem;
}

.map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--color-muted);
  font-size: 0.88rem;
}

.map-legend p {
  flex-basis: 100%;
  margin: 0;
}

.map-legend__note {
  color: var(--color-muted);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: normal;
}

.legend-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(36, 48, 57, 0.08);
}

.legend-dot--small {
  background: var(--color-blue);
}

.legend-dot--light {
  background: var(--color-green);
}

.legend-dot--moderate {
  background: var(--color-orange);
}

.legend-dot--strong {
  background: var(--color-red);
}

.legend-dot--signal {
  background: #0f766e;
}

.legend-dot--natural-event {
  background: #7c6f64;
}

.map-preview-note {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.tracker-map {
  width: 100%;
  height: 560px;
  min-height: 560px;
}

.region-map {
  height: 520px;
  min-height: 520px;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.leaflet-container img,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.quake-pulse--moderate {
  animation: quakePulse 3.2s ease-out infinite;
}

.quake-pulse--strong {
  animation: quakePulse 2.5s ease-out infinite;
}

@keyframes quakePulse {
  0% { stroke-opacity: 0.45; stroke-width: 2; }
  100% { stroke-opacity: 0; stroke-width: 18; }
}

@keyframes previewQuakePulse {
  0% { stroke-opacity: 0.75; stroke-width: 3; }
  100% { stroke-opacity: 0; stroke-width: 18; }
}

.quake-highlight-ring {
  animation: quakeHighlightRing 2.4s ease-out 1;
}

@keyframes quakeHighlightRing {
  0% { stroke-opacity: 0.9; stroke-width: 4; }
  100% { stroke-opacity: 0; stroke-width: 22; }
}

.tracker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.section__heading--stacked {
  display: block;
  max-width: 760px;
}

.section__heading--with-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  gap: 20px;
}

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

.event-list--grid .event-card {
  align-content: start;
  min-height: 0;
}

.event-list--grid .event-meta {
  grid-template-columns: 1fr;
}

.event-list--grid .magnitude-range-badge {
  justify-self: start;
  margin-top: 2px;
}

.tracker-grid--region {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.latest-panel {
  padding: 18px;
}

.latest-panel__header {
  margin-bottom: 14px;
}

.list-summary {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.list-more-button {
  justify-content: center;
  margin-top: 12px;
  width: 100%;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  gap: 10px;
}

.event-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.event-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.mag-badge,
.signal-value-badge,
.magnitude-range-badge,
.signal-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-weight: 900;
  justify-self: start;
  white-space: nowrap;
}

.mag-badge,
.signal-value-badge {
  background: var(--color-blue-soft);
}

.magnitude-range-badge,
.signal-status-badge {
  background: var(--color-green-soft);
  color: #435833;
  font-size: 0.78rem;
}

.magnitude-range-badge[data-magnitude-range="M4.5+"] {
  background: var(--color-yellow-soft);
  color: #765b12;
}

.magnitude-range-badge[data-magnitude-range="M6.0+"] {
  background: var(--color-red-soft);
  color: #7b3028;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.event-meta span {
  display: block;
}

.event-reading {
  padding-top: 9px;
  border-top: 1px solid rgba(227, 216, 194, 0.85);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.event-reading strong {
  color: var(--color-ink);
}

.event-detail {
  border: 1px solid rgba(227, 216, 194, 0.85);
  border-radius: 18px;
  background: rgba(243, 235, 216, 0.46);
  overflow: hidden;
}

.event-detail summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--color-ink);
  font-weight: 900;
}

.event-detail summary::marker {
  color: var(--color-green);
}

.event-detail__body {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.event-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.event-detail__grid div {
  min-width: 0;
}

.event-detail dt {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-detail dd {
  margin: 2px 0 0;
  color: var(--color-ink);
  font-size: 0.9rem;
  line-height: 1.42;
}

.event-detail__note {
  padding-top: 10px;
  border-top: 1px solid rgba(227, 216, 194, 0.85);
  font-size: 0.88rem;
}

.event-detail__source {
  justify-self: start;
}

.event-card a {
  color: #3d748a;
  font-weight: 900;
}

.event-actions {
  display: flex;
  justify-content: flex-start;
}

.event-map-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: var(--shadow-tiny);
}

.event-map-button:hover,
.event-map-button:focus-visible {
  border-color: #bcd5df;
  background: var(--color-blue-soft);
}

.source-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.source-notice img,
.mascot-note img {
  width: 70px;
  flex: 0 0 auto;
}

.mascot-note--home img {
  width: 92px;
  border-radius: 18px;
}

.source-notice p {
  margin: 0;
}

.source-notice p + p {
  margin-top: 8px;
  color: var(--color-muted);
}

.filter-panel {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: min(260px, 100%);
}

.field label {
  color: var(--color-muted);
  font-weight: 900;
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #fffaf0;
  color: var(--color-ink);
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
}

.status-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.status-chips span {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 247, 0.72);
  color: var(--color-muted);
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.mascot-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 430px;
  padding: 12px;
}

.mascot-note p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.explainer-card h3 {
  margin: 4px 0 8px;
}

.text-panel {
  padding: 24px;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

.depth-guide .section__heading {
  max-width: 760px;
}

.depth-guide__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.depth-scale,
.depth-scale__note {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tiny);
}

.depth-scale {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 540px;
  padding: 28px 22px 28px 86px;
}

.depth-scale__line {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 44px;
  width: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #9fc3d2 0%, #bfd8c7 28%, #ead89c 62%, #dcb99c 100%);
  box-shadow: inset 0 0 0 1px rgba(36, 48, 57, 0.08);
}

.depth-scale__marker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.depth-scale__point {
  width: 20px;
  height: 20px;
  border: 4px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 1px rgba(36, 48, 57, 0.14), var(--shadow-tiny);
}

.depth-scale__marker--surface .depth-scale__point {
  background: var(--color-blue);
}

.depth-scale__label {
  max-width: 560px;
  padding: 12px 14px;
  border: 1px solid rgba(205, 194, 169, 0.72);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.88);
}

.depth-scale__label strong,
.depth-scale__label span {
  display: block;
}

.depth-scale__label strong {
  color: var(--color-ink);
  font-size: 0.95rem;
}

.depth-scale__label span {
  margin-top: 2px;
  font-weight: 900;
  line-height: 1.25;
}

.depth-scale__label p,
.depth-scale__note p {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.depth-scale__note {
  display: grid;
  align-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-surface), var(--color-blue-soft));
}

.depth-scale__note h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.privacy-notice {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: start;
  max-width: 980px;
  margin: 32px auto 0;
  padding: 28px 0 36px;
}

.privacy-notice h1 {
  max-width: 720px;
  margin: 6px 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.privacy-notice p {
  max-width: 720px;
  margin: 0;
  color: var(--color-ink);
  font-size: 1.05rem;
}

.privacy-notice p + p {
  margin-top: 14px;
}

.privacy-notice__aside {
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 247, 0.72);
  color: var(--color-muted);
}

.privacy-notice__aside h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.privacy-notice__aside p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-panel);
  background: var(--color-green-soft);
  border: 1px solid #cbdab8;
}

.ad-slot {
  display: grid;
  place-items: center;
  width: min(100%, 970px);
  min-height: 110px;
  margin: 36px auto;
  padding: 14px;
  color: var(--color-muted);
}

.ad-slot__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot--footer {
  width: min(var(--max-width), calc(100% - 32px));
}

.site-footer {
  background: rgba(255, 253, 247, 0.72);
  border-top: 1px solid var(--color-line);
}

.site-footer__inner {
  padding: 28px 0;
  color: var(--color-muted);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.is-loading {
  color: var(--color-muted);
}

.ui-note {
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-yellow-soft);
  color: #675019;
  font-weight: 800;
}

@media (min-width: 901px) {
  .latest-panel {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 760px);
    overflow: hidden;
  }

  .latest-panel__header {
    flex: 0 0 auto;
  }

  .latest-panel .event-list {
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
  }

  .list-more-button {
    flex: 0 0 auto;
  }
}

@media (max-width: 900px) {
  .hero,
  .privacy-notice,
  .tracker-grid,
  .tracker-grid--region {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
    gap: 18px;
  }

  .earth-orb-wrap {
    min-height: 160px;
  }

  .rotating-earth {
    width: min(240px, 54vw);
  }

  .earth-orb-wrap--small .rotating-earth {
    width: min(190px, 48vw);
  }

  .stat-grid,
  .signal-layer-grid,
  .explainer-grid,
  .earth-pathway-grid,
  .region-card-grid,
  .methodology-grid,
  .regions-active__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__heading,
  .section__heading--with-guide,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

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

  .latest-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .latest-panel .event-list {
    overflow: visible;
  }

  .depth-guide__panel {
    grid-template-columns: 1fr;
  }

  .depth-scale {
    min-height: 0;
    padding-left: 70px;
  }

  .depth-scale__line {
    left: 34px;
  }

  .depth-scale__marker {
    gap: 14px;
  }

  .depth-scale__label {
    padding: 10px 12px;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 6px;
  }

  .site-nav a {
    min-height: 42px;
    padding: 8px 12px;
  }

  main,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 22px, var(--max-width));
  }

  .hero h1 {
    font-size: 2.08rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero {
    margin-top: 20px;
    padding: 22px;
    border-radius: 24px;
  }

  .privacy-notice {
    margin-top: 24px;
    padding: 10px 0 26px;
    gap: 20px;
  }

  .privacy-notice h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .privacy-notice p {
    font-size: 1rem;
  }

  .hero__subhead {
    font-size: 1.04rem;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 18px;
  }

  .earth-orb-wrap,
  .earth-orb-wrap--small {
    min-height: 130px;
  }

  .rotating-earth,
  .earth-orb-wrap--small .rotating-earth {
    width: min(170px, 48vw);
  }

  .stat-grid,
  .signal-layer-grid,
  .explainer-grid,
  .earth-pathway-grid,
  .region-card-grid,
  .methodology-grid,
  .regions-active__grid,
  .event-meta {
    grid-template-columns: 1fr;
  }

  .map-panel {
    padding: 8px;
  }

  .map-preview {
    height: 300px;
    min-height: 300px;
  }

  .tracker-map {
    height: 410px;
    min-height: 410px;
  }

  .region-map {
    height: 390px;
    min-height: 390px;
  }

  .earth-map,
  .map-panel--preview .earth-map {
    border-radius: 20px;
  }

  .preview-map-viewport {
    border-radius: 20px;
  }

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

  .source-notice {
    align-items: flex-start;
  }

  .filter-panel {
    gap: 12px;
  }

  .field {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .status-chips {
    gap: 6px;
    margin-top: 12px;
  }

  .status-chips span {
    padding: 6px 10px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .event-card__top {
    flex-wrap: wrap;
  }

  .event-detail__grid {
    grid-template-columns: 1fr;
  }

  .text-panel,
  .latest-panel,
  .source-notice,
  .filter-panel,
  .cta-band,
  .depth-scale,
  .depth-scale__note {
    padding: 18px;
    border-radius: 22px;
  }

  .leaflet-popup {
    max-width: calc(100vw - 56px);
  }

  .leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.35;
  }

  .preview-map-popover {
    position: static;
    width: auto;
    max-width: none;
    margin-top: 10px;
    transform: none;
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .hero h1 {
    font-size: 1.86rem;
  }

  .hero {
    padding: 20px;
  }

  .hero__actions .button,
  .cta-band .button {
    width: 100%;
  }

  .source-notice,
  .mascot-note {
    flex-direction: column;
  }

  .source-notice img,
  .mascot-note img {
    width: 58px;
  }

  .map-preview {
    height: 280px;
    min-height: 280px;
  }

  .tracker-map {
    height: 390px;
    min-height: 390px;
  }

  .region-map {
    height: 360px;
    min-height: 360px;
  }

  .depth-scale {
    min-height: 0;
    padding: 24px 12px 24px 54px;
  }

  .depth-scale__line {
    left: 26px;
  }

  .depth-scale__marker {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
  }

  .depth-scale__point {
    width: 18px;
    height: 18px;
  }

  .depth-scale__label p {
    font-size: 0.92rem;
  }

  .cta-band__actions {
    display: grid;
    justify-content: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .preview-quake-halo--moderate,
  .preview-quake-halo--strong,
  .quake-pulse--moderate,
  .quake-pulse--strong,
  .quake-highlight-ring {
    animation: none !important;
  }
}

/* Final map sizing guard: keep Leaflet containers from collapsing on Hostinger/browser cache edges. */
.map-shell {
  width: 100%;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-blue-soft);
}

.map-shell.map-panel--preview {
  position: relative;
  overflow: visible;
}

.map-shell .earth-map {
  display: block;
  width: 100%;
}

.map-shell .earth-map.map-preview {
  height: 420px;
  min-height: 420px;
}

.map-shell .earth-map.tracker-map {
  height: 560px;
  min-height: 560px;
}

.leaflet-container {
  width: 100%;
  height: 100%;
}

.leaflet-container img,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

@media (max-width: 768px) {
  .map-shell .earth-map.map-preview {
    height: 300px;
    min-height: 300px;
  }

  .map-shell .earth-map.tracker-map {
    height: 410px;
    min-height: 410px;
  }
}

@media (max-width: 430px) {
  .map-shell .earth-map.map-preview {
    height: 280px;
    min-height: 280px;
  }

  .map-shell .earth-map.tracker-map {
    height: 390px;
    min-height: 390px;
  }

  .map-shell .earth-map.region-map {
    height: 360px;
    min-height: 360px;
  }
}
