/* Europoor · dark editorial data-viz theme. Vanilla CSS, no framework. */

:root {
  color-scheme: dark;
  --bg: #0a1420;
  --card: #0f1d2e;
  --card-hi: #132538;
  --card-edge: rgba(148, 178, 214, 0.13);
  --ink: #eaf1f8;
  --ink-2: #b4c2d2;
  --ink-3: #7d8ea4;
  --rule: rgba(148, 178, 214, 0.14);
  --sea: #0b1828;
  --land: #1a2b40;
  --nodata: #3b4b60;
  --accent: #2dd4bf;
  --accent-ink: #062a26;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -18px rgba(0, 0, 0, 0.8);
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 15px/1.5 var(--font-ui);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 640px at 8% -10%, rgba(37, 99, 160, 0.34), transparent 62%),
    radial-gradient(900px 600px at 100% -5%, rgba(16, 122, 108, 0.26), transparent 58%),
    radial-gradient(1200px 800px at 50% 115%, rgba(20, 60, 100, 0.22), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Very fine grain for depth. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.75  0 0 0 0 0.82  0 0 0 0 0.9  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px) clamp(14px, 3vw, 40px) 40px;
}

button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(45, 212, 191, 0.35); }

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.wordmark .tld { font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.dek {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(14px, 1.4vw, 16.5px);
  line-height: 1.45;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 14px;
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ghost-button:hover { color: var(--ink); border-color: rgba(148, 178, 214, 0.3); background: rgba(255, 255, 255, 0.08); }

/* ---------- Metric tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.tab[aria-selected="true"] {
  color: #08121d;
  background: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(234, 241, 248, 0.45);
}
.tab .tab-new {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.tab[aria-selected="true"] .tab-new { background: rgba(8, 18, 29, 0.1); color: #0b6b5f; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 20px;
}
.control { display: flex; align-items: center; gap: 10px; transition: opacity 0.25s var(--ease); }
.control.is-disabled { opacity: 0.32; pointer-events: none; }
.control-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--card-edge);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] {
  background: #24384f;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 2px 6px rgba(0, 0, 0, 0.35);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #2a3c53;
  transition: background 0.2s var(--ease);
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8eef5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s var(--ease);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(14px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch.small { font-size: 12.5px; }

/* ---------- Summary ---------- */
.summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 6px 0 14px;
}
.metric-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.metric-description {
  margin: 6px 0 0;
  max-width: 72ch;
  color: var(--ink-2);
  font-size: 14px;
}
.headline-stat {
  flex-shrink: 0;
  text-align: right;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.35;
}
.headline-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Freshness strip ---------- */
.freshness {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.fresh-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-edge);
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.fresh-chip.is-label { background: transparent; border-color: transparent; padding-left: 0; color: var(--ink-3); }
.fresh-chip .flag { font-size: 14px; line-height: 1; }
.fresh-chip strong { color: var(--ink); font-weight: 600; }
.fresh-chip .muted { color: var(--ink-3); }
.fresh-chip.is-stale {
  background: rgba(251, 191, 36, 0.09);
  border-color: rgba(251, 191, 36, 0.32);
  color: #f6d38a;
}
.fresh-chip.is-stale strong { color: #fde6a8; }
.fresh-chip .stale-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--warn); }

/* ---------- Map panels ---------- */
.maps {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.panel {
  margin: 0;
  padding: 14px 14px 10px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 4px 9px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.panel-sub { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--sea);
  touch-action: manipulation;
}
.map .land { fill: var(--land); stroke: var(--sea); stroke-width: 0.6; }
.map .region {
  stroke: rgba(7, 15, 25, 0.9);
  stroke-width: 0.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.45s var(--ease);
  vector-effect: non-scaling-stroke;
}
.map .region.is-missing { fill: var(--nodata); }
.map .region:focus { outline: none; }
.map .region:focus-visible { stroke: var(--accent); stroke-width: 2.4; }
.map .outline { fill: none; stroke: #ffffff; stroke-width: 1.8; stroke-linejoin: round; pointer-events: none; vector-effect: non-scaling-stroke; }
.map .outline-select { stroke-width: 2.4; stroke: var(--accent); }
.map .border { fill: none; stroke: #07101a; stroke-width: 1.6; pointer-events: none; vector-effect: non-scaling-stroke; }
.map .hatch { pointer-events: none; opacity: 0; transition: opacity 0.35s var(--ease); }
.map .hatch.is-on { opacity: 1; }
.map .marker { stroke: #07101a; stroke-width: 1.2; cursor: pointer; transition: fill 0.45s var(--ease); }
.map .marker.is-hover { stroke: #fff; stroke-width: 2; }
.map .marker.is-select { stroke: var(--accent); stroke-width: 2.2; }
.map .inset-frame { fill: var(--sea); stroke: rgba(148, 178, 214, 0.2); stroke-width: 1; }
.map .inset-label, .map .country-label {
  font: 600 9.5px var(--font-ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  fill: var(--ink-3);
  pointer-events: none;
}
.map .country-label {
  font-size: 11px;
  fill: rgba(240, 246, 252, 0.85);
  paint-order: stroke;
  stroke: rgba(7, 15, 25, 0.7);
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* ---------- Legend ---------- */
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0 26px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legend { flex: 1; min-width: 0; }
.legend svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.legend .tick-label { font: 500 11.5px var(--font-ui); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.legend .tick-label.mid { font-weight: 600; fill: var(--ink); }
.legend .region-tick { stroke: rgba(234, 241, 248, 0.42); stroke-width: 1; transition: all 0.2s var(--ease); }
.legend .region-tick.is-hover { stroke: #fff; stroke-width: 2.4; }
.legend .swatch-label { font: 500 11.5px var(--font-ui); fill: var(--ink-2); }

/* ---------- Ranking ---------- */
.ranking {
  padding: 18px 18px 10px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ranking-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ranking-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--card-edge);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: rgba(148, 178, 214, 0.32); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #08121d; }
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 560px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr));
  column-gap: 28px;
  align-content: start;
  scrollbar-color: #2a3c53 transparent;
}
.rank-item {
  display: grid;
  grid-template-columns: 34px 20px minmax(0, 1fr) minmax(60px, 34%) 86px;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.rank-item:hover, .rank-item.is-hover { background: var(--accent-soft); }
.rank-item.is-selected { background: rgba(255, 255, 255, 0.07); }
.rank-item .rank { color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; font-size: 12px; }
.rank-item .flag { font-size: 14px; line-height: 1; }
.rank-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rank-item .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.rank-item .bar i { display: block; height: 100%; border-radius: 4px; transition: width 0.45s var(--ease), background 0.45s var(--ease); }
.rank-item .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.rank-item .val .stale-dot { color: var(--warn); margin-right: 3px; font-weight: 700; }

/* ---------- Tooltip ---------- */
.tooltip {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: max-content;
  max-width: 300px;
  padding: 12px 14px;
  background: rgba(13, 26, 42, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 178, 214, 0.2);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  pointer-events: none;
  font-size: 12.5px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s var(--ease), transform 0.12s var(--ease);
}
.tooltip.is-visible { opacity: 1; transform: none; }
.tt-head { display: flex; align-items: center; gap: 8px; }
.tt-head .flag { font-size: 18px; line-height: 1; }
.tt-name { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.tt-country { font-size: 12px; color: var(--ink-3); }
.tt-value {
  margin: 8px 0 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tt-value small { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tt-sub { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tt-rank { margin-top: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tt-rank b { color: var(--ink); }
.tt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tt-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.tt-tag.is-stale { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.tt-tag.is-national { background: rgba(45, 212, 191, 0.12); color: #7eeadb; }
.tt-note { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }

/* ---------- Profile card ---------- */
.profile {
  position: fixed;
  z-index: 30;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #14273c, #0f1d2e);
  border: 1px solid rgba(148, 178, 214, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  animation: rise 0.28s var(--ease);
  scrollbar-color: #2a3c53 transparent;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.profile-country { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-button:hover { background: rgba(255, 255, 255, 0.13); color: var(--ink); }
.profile-metrics { list-style: none; margin: 14px 0 0; padding: 0; }
.profile-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.profile-metric.is-current .pm-label { color: var(--ink); font-weight: 700; }
.pm-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.pm-value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.pm-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pm-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.profile-spark { margin-top: 6px; }
.profile-spark svg { display: block; width: 100%; height: auto; }
.profile-spark .spark-line { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.profile-spark .spark-dot { fill: var(--accent); }
.profile-spark .spark-label { font: 500 10.5px var(--font-ui); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.profile-spark-title { font-size: 11.5px; color: var(--ink-3); margin: 10px 0 0; }

/* ---------- Methodology dialog ---------- */
.methodology {
  width: min(880px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid rgba(148, 178, 214, 0.2);
  border-radius: var(--radius);
  background: #0f1d2e;
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.methodology::backdrop { background: rgba(3, 8, 14, 0.66); backdrop-filter: blur(3px); }
.methodology[open] { animation: rise 0.25s var(--ease); }
.methodology-inner { padding: 22px 26px 26px; }
.methodology-head {
  position: sticky;
  top: -22px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -22px -26px 10px;
  padding: 18px 26px 12px;
  background: #0f1d2e;
  border-bottom: 1px solid var(--rule);
}
.methodology h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.methodology h3 { margin: 22px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.methodology p, .methodology li { font-size: 13.5px; color: var(--ink-2); }
.methodology strong { color: var(--ink); }
.methodology ul { padding-left: 18px; margin: 6px 0; }
.methodology table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: 12.5px; }
.methodology th, .methodology td { text-align: left; vertical-align: top; padding: 7px 8px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.methodology th { color: var(--ink-3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; }
.methodology td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.methodology a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
}
.footer p { margin: 0 0 6px; max-width: 120ch; }
.link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.noscript { padding: 24px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .maps { grid-template-columns: 1fr; }
  .summary { flex-direction: column; align-items: flex-start; }
  .headline-stat { text-align: left; }
}
@media (max-width: 720px) {
  .masthead { flex-direction: column; align-items: flex-start; }
  .toolbar { gap: 10px 14px; }
  .control { width: 100%; justify-content: space-between; }
  .segmented { flex: 1; justify-content: stretch; }
  .segmented button { flex: 1; padding: 7px 6px; }
  .legend-row { flex-direction: column; align-items: stretch; }
  .rank-item { grid-template-columns: 28px 18px minmax(0, 1fr) 70px 78px; }
  .profile { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 62vh; }
  .tooltip { max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
