:root {
  --ink: #172231;
  --ink-soft: #596574;
  --paper: #f3f5f7;
  --panel: #ffffff;
  --line: #d9dee5;
  --line-strong: #b9c5ce;
  --accent: #a43f69;
  --accent-dark: #7e3155;
  --success: #106b40;
  --control-surface: #f8fafb;
  --control-track: #e9edf1;
  --selected-surface: #eaf0f5;
  --muted-surface: #f4f6f8;
  --focus-ring: rgba(164, 63, 105, 0.24);
  --panel-shadow: 0 8px 24px rgba(18, 36, 60, 0.06);
}

:root[data-theme="dark"] {
  --ink: #eaf0f7;
  --ink-soft: #aebccc;
  --paper: #10151c;
  --panel: #18212c;
  --line: #344151;
  --line-strong: #516174;
  --accent: #d66d99;
  --accent-dark: #f0a7c4;
  --success: #63c594;
  --control-surface: #162231;
  --control-track: #213145;
  --selected-surface: #2a4056;
  --muted-surface: #1d2b3b;
  --focus-ring: rgba(214, 109, 153, 0.34);
  --panel-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
table {
  font: inherit;
}

button,
input {
  color: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1380px, calc(100% - 40px));
  margin-inline: auto;
  padding: 0 0 42px;
}

.global-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(620px, 1.3fr);
  align-items: end;
  gap: 36px;
  padding: 22px 0 14px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0;
}

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

.eyebrow,
.detail-kicker,
.search-label,
.detail-status {
  margin: 0;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 7px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.lede {
  max-width: 54ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.hero-link,
.toolbar-button,
.row-button,
.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background 160ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-link:hover,
.toolbar-button:hover,
.row-button:hover,
.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle {
  min-height: 40px;
  gap: 7px;
  padding-inline: 10px;
  font-size: 12px;
}

.theme-toggle-state {
  padding: 2px 6px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 4px;
  font-size: 11px;
}

.global-controls .toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 3px;
  padding: 3px;
  background: var(--control-track);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.segment {
  min-height: 36px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 750;
}

.segment:hover {
  color: var(--ink);
}

.segment.is-active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 1px 3px rgba(18, 36, 60, 0.12);
}

.search-field {
  display: flex;
  flex: 1 1 280px;
  min-width: min(100%, 260px);
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-label {
  color: var(--ink-soft);
}

.search-field:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.search-field input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 16px;
  padding: 10px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.country-directory {
  padding: 30px 2px 34px;
  border-bottom: 1px solid var(--line);
}

.country-directory-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 22px;
}

.country-directory h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
}

.country-directory p {
  max-width: 76ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.country-directory-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-directory-list li {
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.country-directory-list a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent);
  text-underline-offset: 3px;
}

.country-directory-list a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

.map-introduction {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1fr);
  gap: 34px;
  padding: 30px 2px;
  border-bottom: 1px solid var(--line);
}

.map-introduction h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
}

.map-introduction p {
  max-width: 76ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.map-introduction p + p {
  margin-top: 14px;
}

.chip-row,
.legend-scale,
.legend-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body .status-strip .chip.chip {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
}

.chip-verified {
  color: var(--success);
}

.chip-neutral {
  color: var(--ink-soft);
}

.chip-current {
  color: #8ab8ff;
}

.chip-historical {
  color: #d5aa74;
}

.chip-new {
  color: var(--accent-dark);
}

.home-digest {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  border-bottom: 1px solid var(--line);
}

.digest-block {
  min-width: 0;
  padding: 28px 28px 28px 2px;
}

.digest-block + .digest-block {
  padding-right: 2px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.digest-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.digest-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}

.digest-view-button {
  padding: 4px 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
}

.digest-view-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.digest-list {
  border-top: 1px solid var(--line);
}

.digest-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 0.8fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
}

.digest-row:hover .digest-country {
  color: var(--accent-dark);
}

.digest-country {
  min-width: 0;
  font-weight: 750;
}

.digest-meta,
.digest-row time,
.digest-empty {
  color: var(--ink-soft);
}

.digest-row time {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.digest-new {
  margin-left: 8px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.digest-empty {
  margin: 0;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.sponsor-slot {
  display: grid;
  min-height: 58px;
  margin-top: 18px;
  place-items: center;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sponsor-slot span {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.view-map,
.view-list {
  margin-top: 0;
}

.legend-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.legend-scale,
.legend-meta {
  color: var(--ink-soft);
  font-size: 13px;
}

.legend-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-gradient {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  width: min(340px, 38vw);
  min-width: 210px;
  height: 12px;
  padding: 2px;
  background: #0d0b12;
  border: 1px solid var(--line);
  border-radius: 0;
}

.legend-step,
.legend-swatch.current b {
  display: block;
  min-width: 0;
}

.lead-left-strong {
  background: #a51f2f;
}

.lead-left {
  background: #bd3948;
}

.lead-left-soft {
  background: #d35b64;
}

.lead-midpoint {
  background: #7b5dae;
}

.lead-right-soft {
  background: #4e6eca;
}

.lead-right {
  background: #3260b2;
}

.lead-right-strong {
  background: #184f9c;
}

.legend-swatch {
  display: inline-block;
  width: 18px;
  height: 10px;
  border: 1px solid transparent;
  border-radius: 2px;
}

.legend-swatch.current {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 34px;
  padding: 1px;
  background: #0d0b12;
  border-color: var(--line-strong);
  border-radius: 0;
}

.legend-swatch.historical {
  background: #b07a3f;
  border-color: #d5aa74;
}

.legend-swatch.unavailable {
  background: #514c58;
  border-color: #77717f;
}

.view-map .map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 330px);
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.map-stage {
  position: relative;
  height: clamp(440px, 58vh, 700px);
  overflow: hidden;
  background: var(--control-surface);
  border-right: 1px solid var(--line);
}

.map-fallback {
  max-width: 46ch;
  margin: 0;
  padding: 32px;
  color: var(--ink-soft);
  font-size: 14px;
}

#world-map {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#world-map.is-dragging {
  cursor: grabbing;
}

#world-map path[role="link"] {
  cursor: pointer;
}

#world-map path:focus-visible {
  outline: none;
  stroke: var(--accent-dark);
  stroke-width: 2;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  padding: 11px 13px;
  color: #ffffff;
  background: rgba(18, 36, 60, 0.94);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(18, 36, 60, 0.24);
  pointer-events: none;
}

.tooltip-name {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 750;
}

.tooltip-line,
.tooltip-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.tooltip-meta {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 11px;
  padding: 20px 0 20px 22px;
  background: transparent;
}

.detail-panel.is-empty .detail-stats,
.detail-panel.is-empty .detail-coverage,
.detail-panel.is-empty .detail-parties,
.detail-panel.is-empty .detail-source,
.detail-panel.is-empty .detail-note {
  display: none;
}

.detail-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.detail-status {
  color: var(--ink-soft);
}

.detail-status.is-verified {
  color: var(--success);
}

.detail-lead {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-stats div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-stats div:nth-child(2n) {
  border-right: 0;
}

.detail-stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-stats dt {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.detail-stats dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
}

.detail-parties,
.detail-source,
.detail-note,
.detail-coverage {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.detail-coverage {
  font-weight: 750;
}

.detail-source a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

.row-button.is-disabled {
  color: var(--ink-soft);
  background: var(--muted-surface);
  pointer-events: none;
}

.view-list {
  padding: 18px 0 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.is-hidden {
  display: none;
}

.list-meta {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-soft);
  background: var(--control-surface);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.row-country {
  font-weight: 750;
}

.row-subline {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.row-source {
  max-width: 42ch;
  color: var(--ink-soft);
}

.row-button {
  min-width: 104px;
  min-height: 36px;
  padding-inline: 12px;
}

.hero-link:focus-visible,
.toolbar-button:focus-visible,
.row-button:focus-visible,
.theme-toggle:focus-visible,
.segment:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .global-top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 24px;
  }

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

  .map-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-panel {
    padding: 22px 0;
  }
}

@media (max-width: 900px) {
  .home-digest {
    grid-template-columns: 1fr;
  }

  .digest-block,
  .digest-block + .digest-block {
    padding: 24px 2px;
    border-left: 0;
  }

  .digest-block + .digest-block {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: auto;
    max-width: 1380px;
    margin-inline: max(11px, env(safe-area-inset-left)) max(11px, env(safe-area-inset-right));
    padding-bottom: 30px;
  }

  .global-top {
    gap: 12px;
    padding: 16px 0 10px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 4px;
    font-size: 31px;
  }

  .lede {
    max-width: 42ch;
    font-size: 13px;
  }

  .hero-actions,
  .hero-link {
    width: 100%;
  }

  .hero-link,
  .toolbar-button,
  .segment,
  .search-field {
    min-height: 48px;
  }

  .toolbar {
    align-items: stretch;
    gap: 10px;
    padding: 0;
  }

  .segmented {
    order: 1;
    flex: 1 1 170px;
  }

  .search-field {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
  }

  .toolbar-button {
    order: 2;
    flex: 0 0 auto;
    min-height: 44px;
  }

  .status-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0 0;
  }

  .chip-row {
    gap: 7px;
  }

  .chip {
    min-height: 18px;
    font-size: 12px;
  }

  .map-introduction {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 2px;
  }

  .country-directory-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .country-directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .country-directory-list a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .home-digest {
    grid-template-columns: 1fr;
  }

  .digest-block,
  .digest-block + .digest-block {
    padding: 24px 2px;
    border-left: 0;
  }

  .digest-view-button {
    min-height: 44px;
  }

  .digest-block + .digest-block {
    border-top: 1px solid var(--line);
  }

  .digest-row {
    grid-template-columns: minmax(110px, 1fr) auto;
    gap: 8px 14px;
  }

  .digest-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .digest-row time {
    grid-column: 2;
    grid-row: 1;
  }

  .legend-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 9px 0;
  }

  .legend-gradient {
    width: min(190px, 50vw);
    min-width: 130px;
  }

  .legend-scale,
  .legend-meta {
    gap: 6px;
    font-size: 11px;
  }

  .legend-meta span {
    gap: 5px;
  }

  .map-stage,
  #world-map {
    height: clamp(320px, 55svh, 390px);
  }

  .detail-panel {
    padding: 22px 0;
  }

  .detail-link {
    width: 100%;
    min-height: 48px;
  }

  .view-list {
    padding: 12px 0 0;
  }

  table {
    font-size: 14px;
  }

  .view-list .table-wrap {
    overflow: visible;
  }

  .view-list table,
  .view-list tbody,
  .view-list tr,
  .view-list td {
    display: block;
    width: 100%;
  }

  .view-list thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

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

  .view-list tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .view-list td {
    display: grid;
    grid-template-columns: minmax(104px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
  }

  .view-list td:first-child,
  .view-list td:nth-child(2),
  .view-list td:last-child,
  .view-list td[colspan] {
    grid-column: 1 / -1;
  }

  .view-list td:nth-child(n + 3):nth-child(-n + 5) {
    display: block;
    min-width: 0;
  }

  .view-list td:nth-child(n + 3):nth-child(-n + 5)::before {
    display: block;
    min-height: 27px;
    margin-bottom: 5px;
  }

  .view-list td::before {
    color: var(--ink-soft);
    content: attr(data-label);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .view-list td:last-child {
    display: block;
    border-bottom: 0;
  }

  .view-list td:last-child::before,
  .view-list td[colspan]::before {
    content: none;
  }

  .view-list .row-country {
    font-size: 17px;
  }

  .view-list .row-button {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 340px) {
  .detail-stats {
    grid-template-columns: 1fr;
  }

  .detail-stats div,
  .detail-stats div:nth-child(2n),
  .detail-stats div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-stats div:last-child {
    border-bottom: 0;
  }
}

@media (pointer: coarse) {
  .hero-link,
  .detail-link,
  .toolbar-button,
  .row-button,
  .segment,
  .search-field,
  .digest-view-button,
  .theme-toggle {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-link,
  .toolbar-button,
  .row-button,
  .theme-toggle {
    transition: none;
  }
}

/* Global page: square Bismuth instrument treatment. */
:root[data-theme="dark"] body {
  --global-obsidian: #09070d;
  --global-basalt: #151119;
  --global-basalt-raised: #1d1723;
  --global-line: #45394d;
  background: var(--global-obsidian);
}

:root[data-theme="dark"] body *,
:root[data-theme="dark"] body *::before,
:root[data-theme="dark"] body *::after {
  border-radius: 0;
}

:root[data-theme="dark"] body .global-top,
:root[data-theme="dark"] body .view-map .map-layout {
  position: relative;
}

:root[data-theme="dark"] body .global-top::after,
:root[data-theme="dark"] body .view-map .map-layout::before {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--bi-spectrum);
  content: "";
  opacity: 0.82;
  pointer-events: none;
}

:root[data-theme="dark"] body .global-top::after {
  bottom: 0;
}

:root[data-theme="dark"] body .view-map .map-layout::before {
  top: 0;
}

:root[data-theme="dark"] body .hero-link,
:root[data-theme="dark"] body .detail-link,
:root[data-theme="dark"] body .toolbar-button,
:root[data-theme="dark"] body .row-button,
:root[data-theme="dark"] body .theme-toggle,
:root[data-theme="dark"] body .search-field {
  background: var(--global-basalt);
  border-color: var(--global-line);
}

:root[data-theme="dark"] body .segmented {
  background: #100d14;
  border-color: var(--global-line);
}

:root[data-theme="dark"] body .segment.is-active {
  background: var(--global-basalt-raised);
  box-shadow: inset 0 0 0 1px rgba(185, 181, 194, 0.16);
}

:root[data-theme="dark"] body .view-map .map-layout {
  background: #0d0b12;
  border-bottom-color: var(--global-line);
}

:root[data-theme="dark"] body .map-stage {
  background: #100c14;
  border-color: var(--global-line);
}

:root[data-theme="dark"] body .detail-panel {
  background: #120e16;
}

:root[data-theme="dark"] body .map-tooltip {
  background: rgba(18, 14, 22, 0.97);
  border: 1px solid #5a4963;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] body th {
  background: var(--global-basalt);
}

:root[data-theme="dark"] body .country-directory,
:root[data-theme="dark"] body .map-introduction,
:root[data-theme="dark"] body .home-digest,
:root[data-theme="dark"] body .legend-band,
:root[data-theme="dark"] body .detail-stats,
:root[data-theme="dark"] body .digest-list,
:root[data-theme="dark"] body .digest-row,
:root[data-theme="dark"] body th,
:root[data-theme="dark"] body td {
  border-color: var(--global-line);
}
