:root {
  --ink: #102934;
  --ink-soft: #29414a;
  --paper: #edf2f2;
  --paper-strong: #f8fbfa;
  --line: #b8c6c8;
  --line-dark: #49616a;
  --accessible: #176c61;
  --accessible-dark: #0f554d;
  --purpose: #78aaa5;
  --purpose-dark: #4f827d;
  --exceptional: #d6a142;
  --prohibited: #c95c4b;
  --unknown: #aab7ba;
  --white: #fff;
  --display: "Inter Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: Inter, "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "IPAexGothic", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #ffd56a;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(237, 242, 242, 0.92);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 18px;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
}

.site-nav a,
.edition {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.edition {
  justify-self: end;
  margin: 0;
  color: #60747b;
  font-family: var(--mono);
}

.edition b {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: clamp(50px, 9vw, 150px);
  min-height: 650px;
  padding: clamp(88px, 11vw, 156px) clamp(24px, 7.5vw, 116px) clamp(70px, 9vw, 124px);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(16, 41, 52, 0.08) 50%, transparent 50.08%),
    linear-gradient(rgba(16, 41, 52, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 76px;
}

.hero-copy {
  max-width: 950px;
}

.kicker,
.section-code,
.index-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 30px;
  color: #63777e;
}

.kicker span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--paper);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6.4vw, 92px);
  font-weight: 760;
  line-height: 1.13;
  letter-spacing: -0.055em;
}

h1 em {
  position: relative;
  z-index: 0;
  color: var(--ink);
  font-style: normal;
}

h1 em::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.03em;
  left: -0.04em;
  height: 0.22em;
  transform: skewX(-12deg);
  background: var(--exceptional);
  content: "";
}

.hero-lede {
  max-width: 750px;
  margin: 42px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 2;
}

.hero-index {
  align-self: end;
  border-top: 1px solid var(--ink);
}

.hero-index > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.hero-index strong {
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 730;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-index div > span:last-child {
  grid-column: 2;
  margin-top: 7px;
  color: #687b82;
  font-size: 12px;
}

.index-label {
  padding-top: 4px;
  color: #687b82;
}

.explorer,
.country-directory,
.sources {
  padding: clamp(70px, 9vw, 132px) clamp(24px, 5vw, 76px);
}

.explorer {
  background: var(--paper-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.62fr);
  gap: 50px;
  align-items: end;
  max-width: 1500px;
  margin: 0 auto 48px;
}

.section-heading h2,
.methodology h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 65px);
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 0;
  color: #5b7077;
  font-size: 14px;
}

.section-code {
  color: var(--accessible);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1500px;
  margin: 0 auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.filter-button:last-child {
  border-right: 0;
}

.filter-button b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.filter-swatch {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(16, 41, 52, 0.2);
  border-radius: 50%;
}

.swatch-all {
  background: conic-gradient(var(--accessible) 0 25%, var(--purpose) 0 50%, var(--exceptional) 0 75%, var(--prohibited) 0);
}

.swatch-accessible { background: var(--accessible); }
.swatch-purpose { background: var(--purpose); }
.swatch-exceptional { background: var(--exceptional); }
.swatch-prohibited { background: var(--prohibited); }

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  max-width: 1500px;
  min-height: 630px;
  margin: 32px auto 0;
  background: var(--ink);
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 45%, rgba(74, 113, 124, 0.2), transparent 42%),
    var(--ink);
}

#world-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 630px;
  cursor: grab;
  touch-action: none;
}

#world-map:active {
  cursor: grabbing;
}

.map-coordinate {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.graticule {
  fill: none;
  stroke: rgba(218, 233, 233, 0.12);
  stroke-width: 0.55;
}

.sphere {
  fill: transparent;
  stroke: rgba(218, 233, 233, 0.22);
  stroke-width: 0.8;
}

.country {
  stroke: var(--ink);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: opacity 180ms ease, filter 180ms ease;
}

.country.accessible { fill: var(--accessible); }
.country.purpose { fill: var(--purpose); }
.country.exceptional { fill: var(--exceptional); }
.country.prohibited { fill: var(--prohibited); }
.country.unknown { fill: var(--unknown); }
.country.non-country { fill: #405660; cursor: default; }

.country:hover,
.country:focus-visible,
.country.is-selected {
  filter: brightness(1.16) saturate(1.12);
  stroke: var(--white);
  stroke-width: 2;
}

.country.is-dimmed,
.micro-marker.is-dimmed {
  opacity: 0.16;
}

.micro-marker {
  cursor: pointer;
  stroke: var(--white);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  transition: opacity 180ms ease, r 140ms ease;
}

.micro-marker.accessible { fill: var(--accessible); }
.micro-marker.purpose { fill: var(--purpose); }
.micro-marker.exceptional { fill: var(--exceptional); }
.micro-marker.prohibited { fill: var(--prohibited); }

.micro-marker:hover,
.micro-marker:focus-visible,
.micro-marker.is-selected {
  r: 6px;
  stroke-width: 2;
}

.map-controls {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 25px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.map-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(16, 41, 52, 0.88);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
}

.map-controls button:last-child {
  border-right: 0;
}

.map-controls button:hover {
  background: var(--white);
  color: var(--ink);
}

.map-caption {
  position: absolute;
  z-index: 3;
  bottom: 23px;
  left: 26px;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.map-tooltip {
  position: fixed;
  z-index: 30;
  min-width: 170px;
  padding: 10px 13px;
  transform: translate(12px, 12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 25, 32, 0.96);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

.map-tooltip[aria-hidden="true"] {
  display: none;
}

.map-tooltip b {
  display: block;
  font-size: 14px;
}

.map-tooltip span {
  color: rgba(255, 255, 255, 0.65);
}

.country-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px clamp(24px, 3.2vw, 50px) 36px;
  background: #dfe9e8;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #9fb2b4;
  color: #587079;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.panel-main {
  padding: 44px 0 32px;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 750;
}

.status-label::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-label.accessible { color: var(--accessible); }
.status-label.purpose { color: var(--purpose-dark); }
.status-label.exceptional { color: #91600e; }
.status-label.prohibited { color: #9e372a; }

.country-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.panel-country-en {
  margin: 5px 0 28px;
  color: #61777e;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.panel-definition {
  margin: auto 0 26px;
  border-top: 1px solid #9fb2b4;
}

.panel-definition > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #b7c7c7;
}

.panel-definition dt {
  color: #61777e;
  font-size: 10px;
  font-weight: 700;
}

.panel-definition dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.source-link {
  display: flex;
  justify-content: space-between;
  padding: 13px 0 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.source-link:hover {
  color: var(--accessible);
}

.legend-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1500px;
  margin: 36px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legend-notes article {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.legend-notes article:not(:first-child) {
  padding-left: 24px;
}

.legend-notes article:last-child {
  border-right: 0;
}

.legend-number {
  grid-row: 1 / 3;
  color: #778a90;
  font-family: var(--mono);
  font-size: 11px;
}

.legend-notes h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.legend-notes p {
  margin: 0;
  color: #60747b;
  font-size: 11px;
  line-height: 1.65;
}

.country-directory {
  background: var(--paper);
}

.list-heading {
  align-items: end;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
}

.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-box input::placeholder {
  color: #7c8e93;
}

.result-summary {
  max-width: 1500px;
  margin: 0 auto 28px;
  color: #61757c;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.country-groups {
  max-width: 1500px;
  margin: 0 auto;
}

.country-group {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) 1fr;
  gap: 40px;
  padding: 30px 0 45px;
  border-top: 1px solid var(--ink);
}

.country-group-heading {
  position: sticky;
  top: 20px;
  align-self: start;
}

.country-group-heading p {
  margin: 0 0 4px;
  color: #60747b;
  font-family: var(--mono);
  font-size: 10px;
}

.country-group-heading h3 {
  margin: 0;
  font-size: 18px;
}

.country-group-heading b {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.country-button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.country-button {
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.country-button:hover,
.country-button:focus-visible {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--white);
}

.country-button strong,
.country-button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-button strong {
  font-size: 12px;
}

.country-button span {
  margin-top: 1px;
  color: #71848a;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.country-button:hover span,
.country-button:focus-visible span {
  color: rgba(255, 255, 255, 0.62);
}

.country-button sup {
  margin-left: 4px;
  color: #96610b;
  font-size: 8px;
}

.empty-state {
  padding: 60px 0;
  border-top: 1px solid var(--ink);
  color: #61757c;
  text-align: center;
}

.supplement-note {
  max-width: 1500px;
  margin: 24px auto 0;
  color: #6d8086;
  font-size: 11px;
}

.methodology {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: clamp(60px, 10vw, 160px);
  padding: clamp(80px, 10vw, 140px) clamp(24px, 7.5vw, 116px);
  background: var(--ink);
  color: var(--white);
}

.section-code.light {
  color: var(--purpose);
}

.methodology h2 {
  max-width: 560px;
}

.method-lede {
  margin: 0 0 48px;
  color: #dce7e7;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 600;
  line-height: 1.65;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.method-grid > div {
  padding: 28px 28px 30px 0;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.method-grid > div:nth-child(even) {
  padding-right: 0;
  padding-left: 28px;
  border-right: 0;
}

.method-grid h3 {
  margin: 0 0 8px;
  color: var(--purpose);
  font-size: 13px;
}

.method-grid p {
  margin: 0;
  color: #b9c8ca;
  font-size: 12px;
}

.sources {
  background: var(--paper-strong);
}

.source-list {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.source-list li {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.source-list li > span {
  color: #71848a;
  font-family: var(--mono);
  font-size: 11px;
}

.source-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.source-list p {
  margin: 0;
  color: #60747b;
  font-size: 12px;
}

.source-list a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--accessible);
}

.disclaimer {
  padding: clamp(70px, 9vw, 132px) clamp(24px, 5vw, 76px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.disclaimer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  counter-reset: disclaimer;
}

.disclaimer-list li {
  counter-increment: disclaimer;
  padding: 26px 24px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.disclaimer-list li:nth-child(3n) {
  border-right: 0;
}

.disclaimer-list li::before {
  content: counter(disclaimer, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: #6d8086;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.disclaimer-list h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.disclaimer-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  color: #b7c7c9;
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-footer a {
  justify-self: end;
  color: var(--white);
  font-family: var(--mono);
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1100px) {
  .disclaimer-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .disclaimer-list li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .disclaimer-list li:nth-child(2n) {
    border-right: 0;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

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

  .hero-index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-index > div {
    grid-template-columns: 1fr;
    padding-right: 22px;
  }

  .hero-index div > span:last-child {
    grid-column: 1;
  }

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

  .country-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
  }

  .panel-topline,
  .source-link {
    grid-column: 1 / -1;
  }

  .panel-definition {
    margin-top: 44px;
  }

  .legend-notes {
    grid-template-columns: repeat(2, 1fr);
  }

  .legend-notes article:nth-child(2) {
    border-right: 0;
  }

  .legend-notes article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .country-button-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .disclaimer-list {
    grid-template-columns: 1fr;
  }

  .disclaimer-list li,
  .disclaimer-list li:nth-child(3n) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .site-header {
    min-height: 72px;
  }

  .edition {
    font-size: 9px;
  }

  .hero {
    min-height: 0;
    padding-top: 76px;
    background-size: 100% 100%, 100% 58px;
  }

  .hero-lede {
    margin-top: 30px;
    line-height: 1.85;
  }

  .hero-index {
    grid-template-columns: 1fr;
  }

  .hero-index > div {
    grid-template-columns: 90px 1fr;
  }

  .hero-index div > span:last-child {
    grid-column: 2;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .filter-bar {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
    min-width: 140px;
  }

  .map-stage,
  #world-map {
    min-height: 430px;
  }

  .map-coordinate {
    right: 16px;
    left: 16px;
  }

  .map-caption {
    right: 75px;
    bottom: 18px;
    left: 16px;
    line-height: 1.4;
  }

  .map-controls {
    right: 14px;
    bottom: 14px;
    flex-direction: column;
  }

  .map-controls button {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .map-controls button:last-child {
    border-bottom: 0;
  }

  .country-panel {
    display: flex;
  }

  .panel-definition {
    margin-top: 0;
  }

  .legend-notes {
    grid-template-columns: 1fr;
  }

  .legend-notes article,
  .legend-notes article:not(:first-child) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .legend-notes article:last-child {
    border-bottom: 0;
  }

  .country-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .country-group-heading {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .country-group-heading p {
    grid-column: 1;
  }

  .country-group-heading b {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
  }

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

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

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

  .method-grid > div,
  .method-grid > div:nth-child(even) {
    padding: 24px 0;
    border-right: 0;
  }

  .source-list li {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .source-list a {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer a {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .edition {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .country-button-grid {
    grid-template-columns: 1fr;
  }
}

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

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