/* duma-abroad.
 *
 * LIGHT ONLY, DELIBERATELY. The ten party colours were validated against the
 * #fcfcfb surface and nothing else; `dataviz` is explicit that a dark palette is
 * a separate set of steps validated against the dark surface, not an automatic
 * inversion. Flipping these hues to a dark ground without re-measuring would
 * produce a map whose colours are indistinguishable in ways nobody checked, so
 * the page commits to one surface and paints it explicitly.
 *
 * Party colours are NOT here. They come from /duma/parties.css, generated at
 * import from webapp/parties.py, because the content security policy forbids
 * inline styles and two hand-maintained copies of sixteen colours is one too
 * many. Bar widths and map fills are set through the CSSOM in the modules under
 * this directory, which CSP does not restrict.
 */

/* 1rem = 10px at the browser's default of 16px, and 1rem = 15px for a
 * reader who has set their default to 24px. Every type size below is
 * therefore its old pixel value divided by ten, and all of them move
 * together when someone asks for larger text.
 *
 * They did not before: all 65 sizes were px, so raising the browser default
 * from 16px to 24px changed nothing on the page. Pinch zoom still worked,
 * but zooming means panning sideways, which is the thing the rest of this
 * stylesheet exists to avoid. */
html { font-size: 62.5%; }

:root {
  --surface: #fcfcfb;
  --paper: #ffffff;
  --ink: #14181f;
  --ink2: #454c59;
  --muted: #79808e;
  --rule: #e3e5e8;
  --grid: #eef0f2;
  --sea: #f4f6f8;
  --land: #e8eaed;      /* a country with no stations: present, not painted */
  --focus: #0056A4;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--surface);
  color: var(--ink);
  font: 1.5rem/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--focus); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* --- masthead ---------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: baseline; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { color: var(--ink); display: block; }
.brand strong { font-size: 1.7rem; letter-spacing: -0.01em; }
.brand .tagline {
  display: block; font-size: 1.25rem; color: var(--muted); font-weight: 400;
}
.masthead nav { display: flex; gap: 18px; align-items: baseline; font-size: 1.4rem; }
.masthead nav .langs { display: flex; gap: 8px; margin-left: 8px;
  padding-left: 16px; border-left: 1px solid var(--rule); font-size: 1.25rem; }
.masthead nav .langs .on { color: var(--muted); font-weight: 600; }

/* --- lede and controls ------------------------------------------------- */

.lede { padding: 30px 0 14px; }
.lede h1 { font-size: 3rem; line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 700; max-width: 30em; }
.figures { margin-top: 8px; font-size: 1.45rem; color: var(--ink2); }
.figures b { color: var(--ink); font-variant-numeric: tabular-nums; }

.controls { display: flex; flex-wrap: wrap; gap: 10px 20px;
  align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.yearswitch { display: inline-flex; border: 1px solid var(--rule);
  border-radius: 7px; overflow: hidden; background: var(--paper); }
.yearswitch a { padding: 6px 14px; font-size: 1.4rem; font-weight: 600;
  color: var(--ink2); }
.yearswitch a + a { border-left: 1px solid var(--rule); }
.yearswitch a.on { background: var(--ink); color: #fff; }
.yearswitch a:hover { text-decoration: none; }
.hint { font-size: 1.25rem; color: var(--muted); }

/* --- the map ----------------------------------------------------------- */

.mapfigure { margin: 0 0 34px; }
#map { background: var(--sea); border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; position: relative; }
#map svg { display: block; width: 100%; height: auto; }
.nojs { padding: 30px; color: var(--ink2); }

/* The land under everything: a country with no polling stations is drawn, so a
 * reader can see it was not omitted. */
.country { fill: var(--land); stroke: var(--surface); stroke-width: 0.4; }
.country.has-data { cursor: pointer; }
.country.has-data:hover, .country.selected { stroke: var(--ink); stroke-width: 1; }

#rumap { background: var(--sea); border: 1px solid var(--rule);
  border-radius: 10px; overflow: hidden; }
#rumap svg { display: block; width: 100%; height: auto; }
.subject { fill: var(--land); stroke: var(--surface); stroke-width: 0.4; }
.subject.has-data { cursor: pointer; }
.subject.has-data:hover { stroke: var(--focus); stroke-width: 1.4; }
/* Crimea and Sevastopol, as on the world map: drawn, dashed, labelled. */
.subject.disputed { stroke: var(--delta-fall); stroke-width: 1; stroke-dasharray: 3 2; }

/* Taken out of the totals but still on the map: a country the reader cannot
 * see is a country they cannot check. Neutral fill, dashed edge. */
.country.excluded { stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 3 2; }

/* Abkhazia and South Ossetia: drawn, and visibly not ordinary countries.
 * A dashed edge rather than a different fill, because the fill is carrying the
 * winning party and must stay comparable. */
.disputed { stroke: var(--ink); stroke-width: 0.9; stroke-dasharray: 2.5 1.8; }

/* Under 50 ballots. A hatch, not a different hue: the hue is the winner and
 * must not change, but 13 ballots should not read as settled. */
.hatch-few { fill: var(--land); }

figcaption { padding: 12px 2px 0; }
.legendtitle { font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 7px 0 8px; font-size: 1.35rem; }
.legend li { display: flex; align-items: center; gap: 7px; }
/* The legend is a small matrix: a row per party that ever led a country, a
 * column per election, the shown year emphasised. Narrow and quiet - it sits
 * under the map and must not compete with it. */
.legendtable { width: auto; font-size: 1.3rem; margin-top: 6px; }
.legendtable th { padding: 0 0 5px 18px; font-size: 1.15rem; }
.legendtable th.l { padding-left: 0; }
.legendtable td { padding: 4px 0 4px 18px; border-top: 1px solid var(--grid);
  color: var(--muted); font-variant-numeric: tabular-nums; }
.legendtable td.l { padding-left: 0; color: var(--ink); white-space: nowrap; }
.legendtable th.now, .legendtable td.now { color: var(--ink); font-weight: 700; }
.legendtable td.l .swatch { margin-right: 7px; vertical-align: 0; }

.swatch { width: 11px; height: 11px; border-radius: 3px;
  background: var(--party-bg); display: inline-block; flex: none; }

/* --- popup ------------------------------------------------------------- */

.popup {
  position: absolute; z-index: 5; min-width: 250px; max-width: 320px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 9px;
  box-shadow: 0 6px 22px rgba(20, 24, 31, 0.13); padding: 13px 14px 12px;
  font-size: 1.35rem;
}
.popup h3 { font-size: 1.55rem; letter-spacing: -0.01em; }
.popup .sub { color: var(--muted); font-size: 1.25rem; margin-top: 1px; }
.popup .lead { margin: 9px 0 3px; font-size: 1.3rem; color: var(--ink2); }
.popup .lead b { color: var(--ink); font-variant-numeric: tabular-nums;
  font-size: 1.5rem; }
.popup .shared { margin-top: 8px; font-size: 1.2rem; color: var(--ink2);
  border-left: 2px solid var(--rule); padding-left: 8px; }
.popup .close { position: absolute; top: 6px; right: 8px; border: 0;
  background: none; font-size: 1.7rem; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 3px 5px; }
.popup .details { display: inline-block; margin-top: 11px; font-weight: 600; }

.pbars { list-style: none; margin: 9px 0 0; }
.pbars li { display: grid; grid-template-columns: 1fr 52px; gap: 10px;
  align-items: center; padding: 3px 0; }
.pbars .name { font-size: 1.3rem; }
.pbars .track { display: block; height: 13px; background: var(--grid);
  border-radius: 4px; position: relative; margin-top: 3px; }
.pbars .fill { display: block; position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px; background: var(--party-bg); }
.pbars .val { text-align: right; font-weight: 700;
  font-variant-numeric: tabular-nums; }

/* --- tables ------------------------------------------------------------ */

.totals, .panel { margin: 0 0 34px; }
h2 { font-size: 1.9rem; letter-spacing: -0.01em; margin-bottom: 12px; }
h3 { font-size: 1.6rem; }

.scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse;
  font-variant-numeric: tabular-nums; }
th { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); font-weight: 600; text-align: right;
  padding: 0 0 7px 16px; white-space: nowrap; }
th.l { text-align: left; padding-left: 0; }
td { padding: 7px 0 7px 16px; border-top: 1px solid var(--grid);
  text-align: right; }
td.l { text-align: left; padding-left: 0; white-space: nowrap; }
td.num { color: var(--ink2); }
td.strong { font-weight: 700; color: var(--ink); }
tbody tr:first-child td { border-top: 1px solid var(--rule); }

.bars .barcol { width: 320px; padding-left: 22px; }
.bars .track { display: block; position: relative; height: 15px;
  background: var(--grid); border-radius: 4px; }
.bars .fill { display: block; position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px; background: var(--party-bg); }
.bars .fill.neutral { background: var(--neutral); }
tr.invalid td { border-top: 2px solid var(--rule); color: var(--ink2);
  font-style: italic; }
tr.invalid td.l { font-style: italic; }


/* --- deltas ------------------------------------------------------------ */

/* Red to green, as asked for, and never the only channel: every cell also
 * prints the signed number and an arrow. The two poles are ΔE 3.8 apart under
 * deuteranopia - about one man in twelve sees one colour here - so the text is
 * what carries the direction. A delta cell is tinted, never filled, and never
 * sits inside a party-coloured bar, where this red would read as КПРФ and this
 * green as Зелёные. */
td.delta { font-weight: 700; white-space: nowrap; }
td.delta .chip { display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: var(--delta-zero); }
td.delta.rise .chip { background: color-mix(in oklab, var(--delta-rise) 16%, #fff); }
td.delta.fall .chip { background: color-mix(in oklab, var(--delta-fall) 16%, #fff); }
td.delta.rise { color: var(--delta-rise); }
td.delta.fall { color: var(--delta-fall); }
td.delta.none { color: var(--muted); font-weight: 400; font-style: italic;
  font-size: 1.25rem; }

.badge { display: inline-block; font-size: 1.1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink2);
  background: var(--grid); border-radius: 4px; padding: 2px 6px;
  margin-left: 7px; white-space: nowrap; }
/* ...except where the badge carries a phrase rather than a word. On the
 * reading list it is the whole category - «Рецензируемая статистика» - and
 * at a large text setting a badge that cannot wrap pushes the page 31px
 * sideways. Only this one needs it; the «вне итога» badges are two short
 * words and wrapping them would look like a mistake. */
.srcmeta .badge { white-space: normal; }

/* --- country page ------------------------------------------------------ */

.countryhead { display: flex; flex-wrap: wrap; gap: 20px 34px;
  align-items: flex-start; padding: 28px 0 8px; }
.countryhead h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
.outline { width: 220px; flex: none; }
.outline svg { display: block; width: 100%; height: auto; }
.outline path { fill: var(--land); stroke: var(--muted); stroke-width: 0.5; }

.sidebyside { display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border: 1px solid var(--rule); border-radius: 9px; padding: 13px 15px;
  background: var(--paper); }
.card .n { font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.card .v { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.01em;
  margin-top: 2px; font-variant-numeric: tabular-nums; }
.card .c { font-size: 1.25rem; color: var(--ink2); margin-top: 3px; }

.note { border-left: 3px solid var(--rule); padding: 2px 0 2px 12px;
  color: var(--ink2); font-size: 1.35rem; margin: 14px 0; }

footer { padding: 26px 0 40px; margin-top: 10px;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: 1.25rem; }
footer p + p { margin-top: 4px; }

/* --- the turnout page ----------------------------------------------------
 * Recessive grid and axes, as everywhere else here: the field of cells is
 * the data and the furniture should take no attention from it. */
.chartgrid { stroke: var(--grid); stroke-width: 1; }
.axisline { stroke: var(--rule); stroke-width: 1; }
/* The three sizes below stay in PIXELS, and that is not an oversight.
 * Inside a viewBox a font-size is a COORDINATE in the chart's own
 * coordinate system, not a type size: 10.5 there means 10.5 of the 720
 * units the density plot is wide, and the browser scales it with the rest
 * of the drawing. In rem it would grow relative to the chart when a reader
 * enlarges their text - axis labels swelling over the plot they label -
 * rather than growing with it. The mobile multipliers further down are the
 * same quantity and stay px for the same reason. */
.tick { font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.xlabel { font-size: 1.15rem; color: var(--ink2); text-align: center;
  margin: 1px 0 0; }
/* Without this the browser treats a drag across the chart as a page scroll
 * and never reports the move, so the readout stays on its prompt. */
#density svg { touch-action: none; }
.cross line { stroke: var(--focus); stroke-width: 1; stroke-dasharray: 3 2; }
.bin { fill: var(--ink); fill-opacity: 0.55; }
/* The spikes are already the tallest bars; this is redundant encoding, not
 * the only signal, and the label above each one is the third channel. */
.bin.peak { fill-opacity: 0.95; }
.peaklabel { font-size: 10.5px; fill: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums; }
.readout { font-size: 1.3rem; color: var(--ink2); min-height: 1.4em;
  font-variant-numeric: tabular-nums; }
.chartwrap { margin: 10px 0 2px; }
.ylabel { font-size: 1.15rem; color: var(--ink2); margin: 0 0 2px; }

/* --- the comparison table ------------------------------------------------
 *
 * This is the one page that cannot live inside the 1080px measure. The 2021
 * ballot had fourteen parties, which is nineteen columns, and `page-wide` on
 * the body exists for precisely that - except the class was set in the
 * template and defined NOWHERE for three weeks. The consequence was not a
 * scrollbar but silence: `table { width: 100% }` squeezed the table to the
 * container, the `nowrap` headers overflowed their own cells, and every
 * column past Коммунисты России was clipped with nothing to reveal it.
 *
 * So both halves are needed. A wider measure, and `width: auto` so the table
 * may be wider than its container - which is what gives `.scroll` something
 * to scroll on a narrow screen instead of hiding the overflow.
 */
.page-wide .wrap { max-width: 1680px; }

#compare { width: auto; min-width: 100%; font-size: 1.2rem; }
#compare th, #compare td { padding-left: 9px; }

/* Headers wrap rather than run on. No abbreviation of "Партия социальной
 * справедливости" is safe to invent, so it takes three lines and the column
 * stays narrow; `vertical-align: bottom` keeps the last line of a three-line
 * header level with the single line of "ЕР". */
#compare thead th { white-space: normal; text-transform: none;
  letter-spacing: 0.01em; font-size: 1.15rem; line-height: 1.2;
  vertical-align: bottom; color: var(--ink2); }
#compare thead th.party { width: 70px; min-width: 70px;
  /* Last resort, and deliberately ugly: a header word a few pixels too long
   * must break rather than widen its column, because one widened column
   * pushes the far end of the table back off the screen - which is the bug
   * this whole block exists to fix. */
  overflow-wrap: break-word; }

/* The country wraps too, for the same reason - "Центрально-африканская
 * Республика" on one line is a 230px column paid for by every other row. */
#compare th.l, #compare td.l { white-space: normal; max-width: 190px; }

/* The country column stays put while the rest scrolls. Horizontal scrolling a
 * 150-row table is useless if you lose track of which row you are on, and an
 * opaque background is not decoration here: without it the scrolled columns
 * show through. */
#compare th.l, #compare td.l { position: sticky; left: 0; z-index: 2;
  background: var(--surface); }
#compare tfoot td.l { background: var(--surface); }

/* Nineteen columns at 70px needs about 1,390px of table. A 13-inch laptop has
 * less, so tighten rather than scroll: 11px and 60px columns bring the 2021
 * ballot inside 1,230px. Below that the sticky country column and .scroll
 * take over, which is a working answer and not a broken one. */
@media (max-width: 1400px) {
  #compare { font-size: 1.1rem; }
  /* NOT reduced with the body text. The headers name the columns a reader
   * is scrolling sideways to find, so they are the last thing to shrink;
   * at 10.5px uppercase they were the smallest type on the site. */
  #compare thead th { font-size: 1.15rem; }
  #compare thead th.party { width: 60px; min-width: 60px; }
  #compare th, #compare td { padding-left: 7px; }
}

/* --- the falsification reading list -------------------------------------
 * Each source is a card with a rule down its left edge, so a reader
 * skimming for the next entry has a vertical line to follow rather than
 * having to parse headings. */
.source { border-left: 2px solid var(--rule); padding-left: 16px;
  margin: 22px 0 0; }
.source + .source { margin-top: 26px; }
.source h3 { margin: 2px 0 3px; font-size: 1.65rem; line-height: 1.3; }
.srcmeta { margin: 0; font-size: 1.2rem; color: var(--muted); }
.srcyear { font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--ink2); }
.srcwho { margin: 0 0 9px; font-size: 1.3rem; color: var(--ink2); }
.srcfind { margin: 10px 0 4px; font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
.source ul { margin: 0; padding-left: 18px; }
.source li { margin-bottom: 5px; }

/* --- the country picker -------------------------------------------------
 * Under the exclusion toggle, because the map cannot show a country the
 * size of Malta and a reader who cannot find one needs the alternative in
 * the same place they were looking. */
.picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; }
.picker label { font-size: 1.2rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
.picker select { font: inherit; font-size: 1.35rem; padding: 6px 9px;
  border: 1px solid var(--rule); border-radius: 7px;
  background: var(--paper); color: var(--ink); max-width: 260px;
  /* A flex item will not shrink below its min-content, and a <select>'s
   * min-content is its longest option. «Усть-Ордынский Бурятский
   * автономный округ» pushed the region picker to 378px inside a 349px
   * column and put 17px of horizontal scroll on the Russia page - on a
   * page that had none until the picker was added to it. */
  min-width: 0; }
.picker select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.picker button { font: inherit; font-size: 1.3rem; padding: 6px 14px;
  border: 1px solid var(--rule); border-radius: 7px;
  background: var(--ink); color: #fff; cursor: pointer; }
.picker .hint { flex: 1 1 240px; }

/* === Phones and narrow windows =========================================
 *
 * LAST IN THE FILE, DELIBERATELY. These were written in the middle of the
 * stylesheet and half of them did nothing: `.picker`, `.tick`, `#compare`
 * and `.source` are all defined further down, so a same-specificity
 * override sitting above them loses on source order. The symptom was a
 * select that took `flex: 1 1 100%` from this block and kept its 6px
 * padding from the base rule — one rule, half applied, no error anywhere.
 * Anything added below this point needs its own mobile case inside it.
 * Measured, not guessed: every page on the site scrolled 213px sideways at
 * 390px wide, and the cause was one rule. `.masthead nav` was a flex row
 * with no `flex-wrap`, so six navigation items and the language switch
 * forced the body to 588px — on every page, because it is in the base
 * template. Everything else was already contained; the tables were already
 * inside `.scroll`.
 *
 * The nav fix comes first and at a wider breakpoint than the rest, because
 * it is a function of how many nav items there are, not of being a phone.
 */
@media (max-width: 880px) {
  .masthead .wrap { gap: 8px 16px; }
  .masthead nav { flex-wrap: wrap; gap: 7px 15px; }
  .masthead nav .langs { margin-left: 0; padding-left: 13px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .brand strong { font-size: 1.6rem; }
  .masthead nav { font-size: 1.35rem; }
  .lede { padding: 22px 0 12px; }
  .lede h1 { font-size: 2.4rem; }
  .countryhead h1 { font-size: 2.3rem; }
  .countryhead { gap: 14px 20px; }
  h2 { font-size: 1.75rem; }
  .outline { width: 130px; }
  .bars .barcol { display: none; }
  .totals, .panel { margin-bottom: 26px; }

  /* Tap targets. 6px of padding on a 14px line is a 32px box, and these
   * controls are the only way to move around the site on a phone. A long
   * label like «Без Абхазии, Южной Осетии и Молдавии» has to be allowed to
   * wrap inside the switch rather than push it off the screen. */
  .yearswitch { flex-wrap: wrap; max-width: 100%; }
  .yearswitch a { padding: 10px 13px; }
  /* Nav links had no padding at all, so their hit area was the 20px text
   * line. Six of them cannot each be 44px tall without the navigation
   * owning the screen, but 30 is a finger and 20 is not. */
  .masthead nav a { padding: 5px 0; }
  /* A select's rendered height is the UA's business as much as ours, so
   * state the floor rather than inferring it from padding. */
  .picker select { min-height: 44px; }
  .picker { gap: 8px; }
  .picker select { flex: 1 1 100%; max-width: none; padding: 10px 10px;
    font-size: 1.5rem; }
  .picker button { padding: 10px 16px; }

  /* SVG text does not reflow, it SCALES. The turnout charts are drawn in a
   * 720-unit viewBox displayed at about 358px, so a 10.5-unit label comes
   * out at 5px — present, and unreadable. Multiplied back by the same
   * factor it lands near 11px again. The Russia map is a 1000-unit box, so
   * it needs more; its legend sets font-size as a presentation attribute,
   * which CSS overrides. */
  .tick { font-size: 21px; }
  .peaklabel { font-size: 22px; }
  #rumap svg text { font-size: 30px; }

  /* The frozen country column was 190px of a 390px screen - half the width
   * spent on the column you are scrolling away from. */
  #compare th.l, #compare td.l { max-width: 108px; }

  /* The popup STOPS FLOATING and flows under the map.
   *
   * Floating, it covered 101% of the map's area on a 390px screen - the map
   * is only 165px tall there - and `#map` is `overflow: hidden`, so the
   * bottom 88px were clipped away. The casualty was the Details link: the
   * one thing the popup exists to offer could not be reached on a phone at
   * all. `place()` still sets left and top; a statically positioned element
   * ignores them, which is why no JavaScript changes.
   *
   * It keeps its own card border against the sea-coloured map background,
   * so it reads as a panel belonging to the map rather than as part of it. */
  .popup { position: static; min-width: 0; max-width: none;
    margin: 10px; box-shadow: none; }
  .popup .close { padding: 8px 10px; top: 2px; right: 2px; }

  /* A row link was 12px tall in a 26px row - a twelfth of a finger. The
   * negative margin cancels the padding, so the link grows to fill the cell
   * it is already in and the table does not get 150 rows taller. */
  td.l a { display: block; padding: 7px 0; margin: -7px 0; }

  /* The masthead was 150px before any content, and on the home page its
   * tagline is the <h1> repeated word for word. */
  .brand .tagline { display: none; }
  .masthead .wrap { padding-top: 11px; padding-bottom: 11px; }

  .source { padding-left: 12px; }
  .source h3 { font-size: 1.55rem; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 12px; }
  .lede h1 { font-size: 2.1rem; }
  .countryhead h1 { font-size: 2.1rem; }
  .masthead nav { gap: 6px 12px; font-size: 1.3rem; }
  .yearswitch a { padding: 9px 10px; font-size: 1.35rem; }
  .card .v { font-size: 2.2rem; }
  /* Narrower screen, same physical label size, so a bigger multiplier. */
  .tick { font-size: 24px; }
  .peaklabel { font-size: 25px; }
  #rumap svg text { font-size: 34px; }
}
