/* ── maps.html: paper maps, found on a map ──────────────────────
   Generated by tools/build-maps.js since 17.11.2026. Void throughout. The
   land is flat bone at low strength with void hairlines between countries;
   what can be picked is lighter, and what is under the pointer or picked is
   signal red. Nothing else on the page is red except the buttons. */

.mp-top { text-align: center; }
.mp-intro {
  max-width: 60ch;
  margin: clamp(14px, 2vh, 22px) auto 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  opacity: 0.8;
}

/* ── The shapes ──────────────────────────────────────────────── */

.mp-world, .mp-cont { display: block; width: 100%; height: auto; }

/* A continent's map, its names and the panel beside it fit one screen: the
   map is as wide as its column until it would be taller than what is left
   under the section head, then it narrows to that height and centres. --ar
   is the map's own width over height, written on it by the build. */
.mp-cont {
  --cap: max(300px, calc(100dvh - var(--chrome-h) - 250px));
  width: min(100%, calc(var(--cap) * var(--ar)));
  margin: 0 auto;
}
.mp-world path, .mp-cont path {
  stroke: var(--void);
  stroke-width: 0.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.18s ease;
}

/* The world: a continent with a section is lighter and a link. */
.wc path { fill: rgba(var(--rgb-bone), 0.12); }
.wc--on path { fill: rgba(var(--rgb-bone), 0.34); }
.wc--on { cursor: pointer; outline: none; }
.wc--on:hover path,
.wc--on:focus-visible path,
.wc--on.is-hot path { fill: var(--signal); }

/* A continent: the ground, then the countries that can be picked. */
.cc path { fill: rgba(var(--rgb-bone), 0.10); }
.cc--on path { fill: rgba(var(--rgb-bone), 0.40); }
.cc--on { cursor: pointer; outline: none; }
.cc--on:hover path,
.cc--on:focus-visible path,
.cc--on.is-hot path { fill: rgba(232, 50, 30, 0.72); }
.cc--on[aria-current="true"] path { fill: var(--signal); }
/* A small island's dot: the same states as a shape. */
.cc-dot { fill: rgba(var(--rgb-bone), 0.55); stroke: var(--void); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill 0.18s ease; }
.cc--on:hover .cc-dot, .cc--on:focus-visible .cc-dot, .cc--on.is-hot .cc-dot { fill: rgba(232, 50, 30, 0.85); }
.cc--on[aria-current="true"] .cc-dot { fill: var(--signal); }

/* A continent is cut out of the globe by a rectangle, and a straight edge
   through Russia or Canada reads as a broken image. The edges fade instead. */
.mp-cont {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}

.mp-world-wrap { padding: clamp(8px, 2vh, 24px) 0 clamp(24px, 5vh, 56px); }
.mp-world { max-width: 1180px; margin: 0 auto; }

/* ── Names under each map ─────────────────────────────────────── */

.mp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(14px, 2.4vh, 24px);
}
.mp-chip {
  padding: 9px 16px;
  border: 1px solid rgba(var(--rgb-bone), 0.18);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(var(--rgb-bone), 0.66);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.mp-chip:hover, .mp-chip:focus-visible { color: var(--bone); border-color: rgba(var(--rgb-bone), 0.45); }
.mp-chip.is-hot { color: var(--bone); border-color: var(--signal); }
.mp-chip[aria-current="true"] { background: var(--signal); border-color: var(--signal); color: var(--bone); }


/* ── A continent section ──────────────────────────────────────── */

.mp-sec {
  padding-top: clamp(40px, 7vh, 84px);
  scroll-margin-top: var(--chrome-h);
}
.mp-sec-head { text-align: center; margin-bottom: clamp(14px, 2.4vh, 26px); }
.mp-head { font-size: clamp(34px, 4.6vw, 64px); line-height: 1; }
.mp-lead {
  max-width: 60ch;
  margin: 10px auto 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.45;
  opacity: 0.78;
}

/* Map on the left, the list or a card on the right (17.11.2026). A long
   list makes the section taller rather than scrolling inside a box, and the
   map stays pinned beside it so the red country never leaves the screen. */
.mp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.5vw, 64px);
  align-items: start;
}
.mp-figure { position: sticky; top: calc(var(--chrome-h) + 16px); }
.mp-panel { scroll-margin-top: calc(var(--chrome-h) + 16px); }

/* ── The list of countries ────────────────────────────────────── */

.mp-list[hidden] { display: none; }
.mp-list-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.mp-count {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(var(--rgb-bone), 0.55);
}
.mp-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Rows side by side share one height, so the rules under them stay on one
   line when a long name wraps. */
.mp-rows li { display: flex; }
.mp-row {
  flex: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
  transition: color 0.2s ease;
}
.mp-row-n { font-family: var(--mono); font-size: 11px; color: rgba(var(--rgb-bone), 0.45); }
.mp-row-t { font-size: 16px; font-weight: 500; line-height: 1.25; }
.mp-row-go { color: rgba(var(--rgb-bone), 0.45); transition: transform 0.2s ease, color 0.2s ease; }
.mp-row:hover .mp-row-t, .mp-row:focus-visible .mp-row-t, .mp-row.is-hot .mp-row-t { color: var(--signal); }
.mp-row:hover .mp-row-go, .mp-row:focus-visible .mp-row-go, .mp-row.is-hot .mp-row-go { color: var(--signal); transform: translateX(3px); }

/* The way back from a card to the list. */
.mp-back {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(var(--rgb-bone), 0.6);
  transition: color 0.2s ease;
}
.mp-back:hover, .mp-back:focus-visible { color: var(--signal); }


/* ── The card in the panel ────────────────────────────────────── */

.mp-card[hidden] { display: none; }
.mp-card + .mp-card { margin-top: 28px; }
.mp-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--signal);
}
.mp-country { font-size: clamp(22px, 2vw, 28px); line-height: 1.05; }
.mp-hint { font-size: 14px; line-height: 1.45; opacity: 0.7; }
.mp-hint + .mp-kicker, .mp-kicker + .mp-hint { margin-top: 12px; }

.mp-map { padding: 10px 0; border-top: 1px solid var(--hair); }
.mp-country + .mp-map, .mp-kicker + .mp-map { margin-top: 12px; }
.mp-map:last-child { padding-bottom: 0; }

/* The index card (17.11.2026): a red number, the name in Anton, one line of
   meta. The number is the order on the card, not a ranking. */
.mp-map-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.mp-num { font-size: clamp(26px, 2.3vw, 34px); line-height: 0.9; color: var(--signal); }
.mp-name { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.05; }
.mp-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 6px;
}
.mp-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  line-height: 1.5;
  color: rgba(var(--rgb-bone), 0.55);
}
.mp-why { margin-top: 6px; font-size: 14px; line-height: 1.45; opacity: 0.88; }

/* The links are red text with an arrow, not buttons: several sit on one
   line without shouting, which matters on a card with a link per state. */
.mp-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mp-go {
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--signal);
  transition: color 0.2s ease;
}
.mp-go span { display: inline-block; transition: transform 0.2s ease; }
.mp-go:hover, .mp-go:focus-visible { color: var(--bone); }
.mp-go:hover span, .mp-go:focus-visible span { transform: translateX(3px); }

/* A volume per state or province: the toggle reads as a link, the grid
   under it is small mono names, each one a link to that region's volume. */
.mp-regions { margin-top: 8px; }
.mp-regions summary { display: inline-block; cursor: pointer; list-style: none; }
.mp-regions summary::-webkit-details-marker { display: none; }
.mp-regions summary span { transition: transform 0.2s ease; }
.mp-regions[open] summary span { transform: rotate(180deg); }
.mp-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2px 14px;
  margin-top: 8px;
}
.mp-region {
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  color: rgba(var(--rgb-bone), 0.78);
  transition: color 0.2s ease;
}
.mp-region span { color: var(--signal); }
.mp-region:hover, .mp-region:focus-visible { color: var(--signal); }

.mp-note { padding: clamp(48px, 9vh, 104px) 0 clamp(56px, 10vh, 120px); }
.mp-note p {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  opacity: 0.72;
}

@media (max-width: 860px) {
  .mp-body { grid-template-columns: 1fr; }
  .mp-figure { position: static; }
  .mp-rows { column-gap: 16px; }
  .mp-row { grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 6px; padding: 10px 0; }
  .mp-row-t { font-size: 14px; }
}
