.chead{ padding:clamp(112px,15vh,158px) 0 clamp(28px,3.4vw,46px); }
  .chead__back{
    font-family:var(--mono); font-size:11px; letter-spacing:.18em;
    text-transform:uppercase; text-decoration:none;
    border-bottom:1px solid var(--rule); padding-bottom:3px;
  }
  .chead__back:hover{ border-bottom-color:var(--ink); }
  .chead__name{
    font-family:var(--display); font-weight:800; text-transform:uppercase;
    font-size:clamp(2.6rem,8.6vw,7rem); line-height:.84; letter-spacing:-.015em;
    margin:22px 0 0; max-width:15ch;
  }
  .chead__name span{
    display:inline-block; background:var(--ink); color:var(--paper-hi);
    padding:.07em .18em .15em;
  }

  /* The map is the page and the reference is its caption, so the map gets the
     full width and the reference goes underneath as a strip. The old
     two-column split spent a third of the page on five short rows of figures
     and left the map in a box narrower than the text beside it. */
  .cbody{
    display:grid; grid-template-columns:minmax(0,1fr);
    gap:clamp(18px,2.4vw,32px); align-items:start;
  }

  .cmap{ border:1px solid var(--rule); background:var(--paper-hi); padding:clamp(10px,1.6vw,20px); }
  /* Full width, but a portrait country would otherwise run to three
     screens. Capped, it letterboxes — which is why the sea rect is painted
     well past the viewBox. */
  /* The cap is per map, written on the svg as a max-width derived from
     its own frame (see fill-map-context.py). Capping the height here instead
     kept the width at 100% and letterboxed every portrait country. */
  .cmap svg{ display:block; width:100%; height:auto; margin-inline:auto; }
  /* Flat opaque tones. Translucent fills stack wherever shapes overlap along a
     shared border, which flattens a continent into one mass and hides every
     frontier in it. */
  .rgn{
    fill:#8e8a86; stroke:var(--paper-hi); stroke-width:.5;
    stroke-linejoin:round;
    vector-effect:non-scaling-stroke; cursor:pointer; transition:fill .15s ease;
  }
  .rgn:hover, .rgn:focus{ fill:#4a4744; outline:none; }
  .rgn.is-sel{ fill:#0d0c0c; }
  /* The context shapes are subdivisions, so stroking them drew every province
     of every neighbour. Same trick as .cast: .ctxb lays the country down as a
     thick stroke, .ctx covers it with its own fill, and only the outer rim
     survives. Written border-then-fill per country so no two neighbours weld
     into one mass. */
  .ctxb{
    fill:rgba(13,12,12,.38); stroke:rgba(13,12,12,.38); stroke-width:1.0;
    stroke-linejoin:round; stroke-linecap:round;
    vector-effect:non-scaling-stroke; pointer-events:none;
  }
  .ctx{
    fill:#c4c1bd; pointer-events:none;
  }
  .river{
    fill:none; stroke:#7d97a8; stroke-width:.55;
    stroke-linecap:round; stroke-linejoin:round;
    vector-effect:non-scaling-stroke; pointer-events:none; opacity:.75;
  }
  .lake{
    fill:#aebfca; stroke:#7d97a8; stroke-width:.3;
    vector-effect:non-scaling-stroke; pointer-events:none;
  }
  /* The same water in a neighbour's territory. A river used to stop dead at
     the frontier because each map only ever drew its own country's water;
     these carry it across, a shade back so the country the map is about still
     reads as the subject. */
  .ctxriver{
    fill:none; stroke:#7d97a8; stroke-width:.45;
    stroke-linecap:round; stroke-linejoin:round;
    vector-effect:non-scaling-stroke; pointer-events:none; opacity:.5;
  }
  .ctxlake{
    fill:#aebfca; stroke:#7d97a8; stroke-width:.3;
    vector-effect:non-scaling-stroke; pointer-events:none; opacity:.72;
  }
  /* The national border, drawn as a stroke beneath the regions. Whatever the
     regions cover is hidden again by their own fills, so only their outer edge
     survives — the border and the states agree exactly. */
  .cast{
    fill:rgba(13,12,12,.82);
    stroke:rgba(13,12,12,.82); stroke-width:2.1;
    stroke-linejoin:round; stroke-linecap:round;
    vector-effect:non-scaling-stroke;
    pointer-events:none;
  }

  /* A compass. North is up everywhere on this projection, so this states the
     orientation rather than pretending to be a navigation instrument. */
  .compass circle{
    /* an opaque plate: on a landlocked country every corner of the frame is
       land, so the compass has to read over it */
    fill:#e7e5e2;
    stroke:rgba(13,12,12,.34); stroke-width:.8;
    vector-effect:non-scaling-stroke;
  }
  .compass__needle{ fill:rgba(13,12,12,.62); }
  .compass__n, .compass__t{
    font-family:var(--mono); font-weight:500;
    letter-spacing:.06em;
    text-anchor:middle; dominant-baseline:middle;
    fill:rgba(13,12,12,.62);
  }
  .compass__t{ fill:rgba(13,12,12,.38); }
  .compass{ pointer-events:none; user-select:none; }

  .border{
    fill:none; stroke:rgba(13,12,12,.82); stroke-width:1.05;
    stroke-linejoin:miter; stroke-miterlimit:2; stroke-linecap:butt;
    vector-effect:non-scaling-stroke; pointer-events:none;
  }
  .lbl{
    font-family:var(--mono); font-weight:500; fill:var(--ink);
    paint-order:stroke fill; stroke:var(--paper-hi); stroke-linejoin:round; text-anchor:middle; dominant-baseline:middle;
    pointer-events:none; letter-spacing:.06em; text-transform:uppercase;
  }
  .lbl{ opacity:0; transition:opacity .12s ease; }
  .lbl.is-on{ opacity:1; }

  .cmapkey{ display:flex; flex-wrap:wrap; gap:16px; margin-top:12px; }
  .cmapkey span{
    display:flex; align-items:center; gap:8px;
    font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
    text-transform:uppercase; color:var(--ink-faint);
  }
  .cmapkey i{ display:block; width:18px; border-top:1px solid rgba(13,12,12,.35); }
  .cmapkey i.k-sel{ width:13px; height:13px; border:0; background:var(--ink); }

  /* Laid out along the page rather than down it: the badge and the country
     name at the left, the figures spread across the middle, the note and the
     button at the right. Placed explicitly, because the source order is
     badge, name, figures, note, button and none of those want to be in the
     order a single flow would give them. */
  .status{
    border:1px solid var(--ink); background:var(--paper-hi);
    padding:clamp(18px,2.2vw,26px) clamp(20px,2.6vw,30px);
    display:grid;
    /* The third track has to hold Give and the offering terms side by
       side; at 190px they wrapped and stacked. */
    grid-template-columns:minmax(140px,.72fr) minmax(0,2.2fr) minmax(300px,1.3fr);
    gap:clamp(16px,2.4vw,36px);
    align-items:start;
  }
  /* Badge and country name share one cell and are separated by the badge's
     own height, so the pair stays together at the top left. Placing the name
     in the second row instead left it stranded at the foot of the box, a
     hundred and fifty pixels below the badge it belongs to, because the row
     above is as tall as the figures beside it. */
  .status__badge{ grid-area:1 / 1; align-self:start; justify-self:start; }
  .status__rows{
    grid-column:2; grid-row:1 / span 2;
    display:grid; grid-template-columns:repeat(auto-fit,minmax(126px,1fr));
    gap:0 clamp(12px,1.8vw,26px);
  }
  @media (max-width:900px){
    .status{ grid-template-columns:minmax(0,1fr); }
    .status__badge, .status h2, .status__rows,
    .status p, .status .hero__actions{ grid-column:1; grid-row:auto; }
  }
  .status__badge{
    display:inline-block; background:var(--ink); color:var(--paper-hi);
    font-family:var(--mono); font-size:10.5px; letter-spacing:.18em;
    text-transform:uppercase; padding:7px 11px;
  }
  .status h2{
    grid-area:1 / 1; align-self:start; padding-top:2.9rem;
    font-family:var(--display); font-weight:800; text-transform:uppercase;
    font-size:1.6rem; line-height:1; margin:0;
  }
  /* Label over value, not label opposite value: across a strip there is no
     right-hand edge for the value to sit against. */
  /* min-width:0 because a grid item defaults to min-width:auto, and one
     unbreakable string — jeremy.calvarycc@gmail.com, or a long URL — then
     forces its cell wider than its track and prints straight over the column
     beside it, losing both values. overflow-wrap breaks the string instead. */
  .status__row{
    display:block; padding:10px 0 12px;
    border-top:1px solid var(--rule); font-size:.93em;
    min-width:0; overflow-wrap:anywhere;
  }
  .status__row .label{ display:block; margin-bottom:5px; }
  .status__row a{ overflow-wrap:anywhere; }
  .status p{ grid-column:3; grid-row:1; margin:0; font-size:.92em; color:var(--ink-soft); }
  .status .hero__actions{
    grid-column:3; grid-row:2; margin-top:14px;
    display:flex; gap:10px; align-items:center;
  }
  .status .hero__actions .btn{ white-space:nowrap; }

  .profile__bg{
    font-size:1.04em; line-height:1.7; color:var(--ink-soft);
    max-width:74ch; margin:0 0 clamp(20px,2.6vw,30px);
  }
  .profile__bg::first-letter{
    font-family:var(--display); font-weight:900; font-size:3.1em;
    line-height:.78; float:left; margin:.06em .12em 0 0; color:var(--ink);
  }
  .facts{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:1px; background:var(--rule); border:1px solid var(--rule);
  }
  .facts div{ background:var(--paper-lo); padding:16px 18px; }
  .facts dt{
    font-family:var(--mono); font-size:10px; font-weight:500; letter-spacing:.2em;
    text-transform:uppercase; color:var(--ink-faint); margin:0 0 7px;
  }
  .facts dd{ margin:0; font-size:.94em; }
  .source{ margin-top:16px; }

  .rledger{ width:100%; border-collapse:collapse; }
  .rledger th{
    font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.2em;
    text-transform:uppercase; color:var(--ink-faint); text-align:left;
    padding:0 14px 10px 0; border-bottom:1px solid var(--rule);
  }
  .rledger td{ padding:12px 14px 12px 0; border-bottom:1px solid rgba(13,12,12,.12); }
  .rledger tbody tr{ cursor:pointer; transition:background .18s ease; }
  .rledger tbody tr:hover, .rledger tbody tr.is-sel{ background:rgba(13,12,12,.07); }
  .rledger .c-name{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:1.15rem; }
  .rledger .c-code{ font-family:var(--mono); font-size:12px; color:var(--ink-faint); white-space:nowrap; }

  .near{ display:flex; flex-wrap:wrap; gap:8px; }
  .near a{
    font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
    text-decoration:none; border:1px solid var(--rule); padding:10px 14px;
  }
  .near a:hover{ border-color:var(--ink); }

  .azbar{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:clamp(18px,2.4vw,26px); }
  .azbar a{
    font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-decoration:none;
    border:1px solid var(--rule); padding:7px 10px; min-width:32px; text-align:center;
  }
  .azbar a:hover{ border-color:var(--ink); }
  .azlist{ columns:4; column-gap:clamp(18px,2.4vw,34px); }
  .azlist a{
    display:flex; align-items:center; gap:9px; text-decoration:none;
    border-bottom:1px solid rgba(13,12,12,.10); padding:7px 4px;
    break-inside:avoid; font-size:.93em;
  }
  .azlist a:hover{ background:rgba(13,12,12,.07); }
  .azlist h3{
    font-family:var(--display); font-weight:800; font-size:1.5rem;
    margin:18px 0 6px; break-after:avoid;
  }
  @media (max-width:900px){ .azlist{ columns:2; } }
  @media (max-width:520px){ .azlist{ columns:1; } }
