/* Rohingya genocide ruling — Al Jazeera Net interactive.
   Light AJ identity: white page, #0f0f0f text, AJ Blue 60 for interaction, AJ Yellow for highlights,
   AJ Red only for deaths. Mobile first; one column, wide blocks for the album and the map. */
@font-face { font-family: "AJ"; src: url("../fonts/AlJazeeraNew-Regular.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "AJ"; src: url("../fonts/AlJazeeraNew-Bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "AJ"; src: url("../fonts/AlJazeeraNew-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --bg-3: #eceef2;
  --line: rgba(15, 15, 15, .10);
  --line-2: rgba(15, 15, 15, .18);
  --text: #0f0f0f;
  --muted: #3d3d42;
  --subtle: #6b6e7a;
  --blue: #1046e5;        /* AJ Blue 60: everything you can press */
  --blue-deep: #092f95;   /* AJ Blue 80 */
  --blue-soft: rgba(16, 70, 229, .08);
  --navy: #001a68;
  --yellow: #febe00;      /* AJ Yellow 60: highlights */
  --yellow-ink: #987300;  /* yellow text on white */
  --red: #d91615;         /* AJ Red 60: deaths only */
  --land: #e9ebef;
  --land-2: #dde1e8;
  --focus-land: #ffffff;
  --sea: #eef3fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 15, 15, .04), 0 12px 30px -22px rgba(15, 15, 15, .3);
  --gutter: 18px;
  --bar-h: 52px;
  --font: "AJ", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .25em; }
a:hover { color: var(--blue-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.num { font-feature-settings: "tnum"; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; }
.prose { width: min(100% - 2 * var(--gutter), 700px); margin-inline: auto; }
.prose p { margin: 0 0 1.1em; }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 14px; padding-inline: var(--gutter);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .35s var(--ease); }
.bar.on { transform: none; }
.bar__logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--text); text-decoration: none; white-space: nowrap; }
.bar__logo img { height: 26px; width: auto; }
.bar__title { font-size: 14px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.bar__nav { display: flex; gap: 4px; }
.bar__nav a { font-size: 13px; padding: 4px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.bar__nav a.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.bar__progress { position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--blue); transform-origin: right; transform: scaleX(var(--p, 0)); }
@media (max-width: 760px) { .bar__nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; background: #111; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 18, .92) 0%, rgba(8, 10, 18, .7) 32%, rgba(8, 10, 18, .05) 66%); }
.hero__body { position: relative; z-index: 1; padding: 0 0 clamp(28px, 6vh, 64px); }
.kicker { display: inline-block; font-size: 14px; font-weight: 800; color: var(--text); background: var(--yellow); padding: 2px 12px; border-radius: 4px; margin-bottom: 14px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(34px, 7.4vw, 74px); line-height: 1.18; max-width: 15ch; text-wrap: balance; }
.hero h1 span { color: var(--yellow); }
.hero__dek { margin: 16px 0 0; max-width: 40em; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.8; color: rgba(255, 255, 255, .92); }
.hero__cap { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; font-size: 11.5px; color: rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .35); padding: 2px 8px; border-radius: 4px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

.starters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px auto 6px; }
.starters a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.4; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.starters a:hover { border-color: var(--blue); transform: translateY(-1px); color: var(--text); }
.starters b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; }
.starters small { display: block; font-weight: 400; font-size: 12.5px; color: var(--subtle); }
@media (max-width: 760px) { .starters { grid-template-columns: 1fr 1fr; } }
.srcline { margin: 14px auto 0; font-size: 13.5px; color: var(--subtle); }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 9vw, 104px) 0 0; }
.sec--tint { background: var(--bg-2); padding-bottom: clamp(48px, 7vw, 80px); margin-top: clamp(56px, 9vw, 104px); }
.opener { width: min(100% - 2 * var(--gutter), 760px); margin: 0 auto 26px; }
.opener__k { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--blue); }
.opener__k::before { content: ""; width: 26px; height: 3px; background: var(--yellow); }
.opener h2 { margin: 8px 0 10px; font-weight: 900; font-size: clamp(28px, 5vw, 46px); line-height: 1.25; text-wrap: balance; }
.opener p { margin: 0; font-size: 18px; color: var(--muted); }
.note { font-size: 13px; color: var(--subtle); margin: 10px 0 0; line-height: 1.7; }
.minihead { font-size: 19px; font-weight: 800; margin: 0 0 12px; }

/* ---------- verdict ---------- */
.verdict { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .verdict { grid-template-columns: 1fr; } }
.votes { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); }
.votes__big { font-size: clamp(44px, 8vw, 68px); font-weight: 900; line-height: 1.1; }
.votes__big span { color: var(--subtle); font-weight: 400; font-size: .5em; margin-inline: .25em; }
.votes__dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; margin: 16px 0 10px; }
.votes__dots i { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line-2); transition: background .4s var(--ease), border-color .4s; transition-delay: calc(var(--i) * 70ms); }
.votes.on .votes__dots i.y { background: var(--blue); border-color: var(--blue); }
.votes.on .votes__dots i.n { background: var(--bg-3); }
.votes__legend { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); }
.votes__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; background: var(--blue); }
.votes__legend span + span::before { background: var(--bg-3); border: 1.5px solid var(--line-2); }
.votes blockquote { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.8; }
.votes cite { display: block; margin-top: 4px; font-size: 13px; color: var(--subtle); font-style: normal; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { padding: 16px; border-radius: 12px; background: var(--bg-2); }
.fact b { display: block; font-size: 26px; font-weight: 900; line-height: 1.3; }
.fact b.red { color: var(--red); }
.fact span { display: block; font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-top: 4px; }

details.fold { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
details.fold summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
details.fold[open] summary::after { content: "−"; }
.icj { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0 16px 16px; font-size: 15.5px; line-height: 1.7; }
.icj dt { color: var(--subtle); padding: 8px 0 8px 18px; border-top: 1px solid var(--line); }
.icj dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 700; }
details.fold p { margin: 0 16px 16px; font-size: 15.5px; color: var(--muted); }

/* ---------- album ---------- */
.album { position: relative; }
.journey { display: flex; gap: 3px; margin-bottom: 10px; }
.journey button { flex: var(--n) 1 0; min-width: 0; border: 0; padding: 18px 0 0; background: none; text-align: start; position: relative; font-size: 12.5px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey button::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 3px; background: var(--bg-3); }
.journey button::after { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 3px; background: var(--blue); transform-origin: right; transform: scaleX(var(--f, 0)); transition: transform .35s var(--ease); }
.journey button.on { color: var(--text); font-weight: 800; }
.album__stage { position: relative; aspect-ratio: 3 / 2; background: #0b0c10; border-radius: var(--radius); overflow: hidden; touch-action: pan-y; }
.album__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), filter .4s; }
.album__stage img.on { opacity: 1; }
.album__stage img.veil { filter: blur(28px) brightness(.6); transform: scale(1.08); }
.album__warn { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; }
.album__warn button { border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .45); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; }
.album__warn p { margin: 0 0 12px; font-size: 15px; max-width: 28em; }
.album__arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(15, 15, 15, .55); color: #fff; font-size: 18px; backdrop-filter: blur(6px); }
.album__arrow.prev { right: 10px; } .album__arrow.next { left: 10px; }
.album__arrow:hover { background: var(--blue); }
.album__count { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; font-size: 12.5px; color: #fff; background: rgba(15, 15, 15, .6); padding: 2px 10px; border-radius: 999px; }
.album__info { display: grid; grid-template-columns: 1fr auto; gap: 18px; margin-top: 12px; min-height: 7.2em; }
.album__ch { font-size: 13px; font-weight: 800; color: var(--blue); }
.album__cap { margin: 2px 0 0; font-size: 16.5px; line-height: 1.8; }
.album__q { margin: 10px 0 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--yellow); font-size: 17.5px; line-height: 1.85; font-weight: 500; }
.album__credit { display: block; margin-top: 6px; font-size: 12.5px; color: var(--subtle); }
.album__strip { display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 2px 4px; }
.album__strip::-webkit-scrollbar { display: none; }
.album__strip button { border: 0; padding: 0; background: none; opacity: .55; position: relative; transition: opacity .2s; }
.album__strip button.on, .album__strip button:hover { opacity: 1; }
.album__strip img { width: 74px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.album__strip button.on img { border-color: var(--blue); }
.album__strip button.hard img { filter: blur(5px); }
.album__strip button.cut { margin-inline-start: 10px; }
.minimap { width: 150px; margin: 0; }
.minimap svg { width: 100%; height: auto; border-radius: 10px; background: var(--sea); }
.minimap figcaption { font-size: 12px; color: var(--subtle); line-height: 1.5; margin-top: 4px; text-align: center; }
@media (max-width: 760px) {
  .album__stage { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); }
  .album__info { grid-template-columns: 1fr 96px; gap: 12px; }
  .minimap { width: 96px; }
  .album__q { font-size: 16.5px; }
}
/* map pins (shared by both maps) */
.m-land { fill: var(--land); stroke: #c4c9d3; stroke-width: .8; }
.m-land.focus { fill: var(--focus-land); }
.m-land.mmr { fill: #f3efe6; }
.m-pin { fill: var(--subtle); }
.m-pin.on { fill: var(--blue); }
.m-ring { fill: none; stroke: var(--blue); stroke-width: 2.5; opacity: 0; }
.m-ring.on { opacity: 1; animation: ping 1.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.m-lbl { font-family: var(--font); font-size: 22px; fill: var(--muted); paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 5px; stroke-linejoin: round; }
.m-lbl.big { font-size: 26px; font-weight: 800; fill: var(--text); }
.m-lbl.sea { font-style: italic; fill: #7d8aa6; stroke: none; }

/* ---------- now map ---------- */
.now { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .now { grid-template-columns: 1fr; } }
.now__map { position: relative; background: var(--sea); border-radius: var(--radius); overflow: hidden; }
.now__map svg { width: 100%; height: auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-3); margin-bottom: 14px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--blue); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.bubble { fill: rgba(16, 70, 229, .16); stroke: var(--blue); stroke-width: 2; cursor: pointer; transition: fill .2s; }
.bubble:hover, .bubble.on { fill: rgba(16, 70, 229, .32); }
.bubble.mmr { fill: rgba(254, 190, 0, .28); stroke: var(--yellow-ink); }
.bubble.mmr.on { fill: rgba(254, 190, 0, .5); }
.b-num { font-family: var(--font); font-weight: 800; font-size: 30px; fill: var(--text); paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 5px; pointer-events: none; }
.b-name { font-family: var(--font); font-size: 24px; fill: var(--muted); paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 5px; pointer-events: none; }
.rakhine { fill: rgba(254, 190, 0, .55); stroke: var(--yellow-ink); stroke-width: 1; }
.route { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 9 8; stroke-linecap: round; }
.route--land { stroke: var(--text); stroke-dasharray: none; stroke-width: 3.5; }
.layer { transition: opacity .35s; }
.layer[hidden] { display: none; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); box-shadow: var(--shadow); }
.panel h3 { margin: 0; font-size: 22px; font-weight: 900; }
.panel .big { font-size: 40px; font-weight: 900; line-height: 1.2; color: var(--blue); margin: 4px 0; }
.panel .big.red { color: var(--red); }
.panel p { margin: 8px 0 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.panel figure { margin: 14px 0 0; }
.panel figure img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.panel figcaption { font-size: 12.5px; color: var(--subtle); margin-top: 6px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips button { border: 1px solid var(--line-2); background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; }
.chips button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 6px; height: 150px; margin-top: 16px; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 12px; color: var(--subtle); }
.bars i { width: 100%; border-radius: 4px 4px 0 0; background: var(--land-2); height: calc(var(--h) * 1%); transition: height .6s var(--ease); }
.bars div.top i { background: var(--red); }
.bars b { font-size: 12.5px; color: var(--text); margin-bottom: 2px; }
.srcnote { font-size: 12.5px; color: var(--subtle); margin-top: 10px; }

/* ---------- case ---------- */
.tabs__bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs__bar [role=tab] { border: 0; background: none; padding: 10px 14px; font-weight: 700; font-size: 15.5px; color: var(--subtle); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs__bar [role=tab][aria-selected="true"] { color: var(--text); border-bottom-color: var(--blue); }
.argue { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .argue { grid-template-columns: 1fr; } }
.argue section { border-radius: 12px; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.argue section.court { border: 2px solid var(--blue); }
.argue h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--subtle); }
.argue .court h4 { color: var(--blue); }
.argue p { margin: 0; font-size: 16px; line-height: 1.8; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 7px; width: 2px; background: var(--line-2); }
.tl li { position: relative; padding: 0 30px 18px 0; }
.tl li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--blue); }
.tl li.key::before { background: var(--yellow); border-color: var(--yellow-ink); }
.tl time { display: block; font-size: 14px; font-weight: 800; color: var(--blue); }
.tl p { margin: 2px 0 0; font-size: 16px; line-height: 1.8; }
.tl .linklike { margin-top: 4px; }
.linklike { border: 0; padding: 0; background: none; color: var(--blue); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; text-decoration-style: dotted; }

/* ---------- what next ---------- */
.flow { display: grid; gap: 14px; justify-items: center; text-align: center; }
.flow__box { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 18px; background: var(--bg); font-weight: 800; max-width: 30em; }
.flow__box small { display: block; font-weight: 400; color: var(--subtle); font-size: 14px; }
.flow__q { font-size: 21px; font-weight: 900; }
.flow__btns { display: flex; gap: 10px; }
.flow__btns button { min-width: 96px; border: 2px solid var(--blue); background: var(--bg); color: var(--blue); border-radius: 999px; padding: 8px 18px; font-weight: 800; }
.flow__btns button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.flow__out { width: 100%; max-width: 640px; text-align: start; }
.flow__out ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.flow__out li { border-radius: 12px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; line-height: 1.75; }
.flow__out li b { display: block; }
.flow__out li.warn { border-color: rgba(217, 22, 21, .35); }
.now-real { margin-top: 26px; border-radius: var(--radius); padding: 18px; background: #fff8e1; border: 1px solid rgba(152, 115, 0, .25); }
.now-real h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.now-real p { margin: 0 0 8px; font-size: 16px; line-height: 1.8; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }
.cases li { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: 15.5px; line-height: 1.7; }
.cases b { display: block; }
.cases small { color: var(--subtle); }
.closing { margin: 44px auto 0; text-align: center; }
.closing blockquote { margin: 0; font-size: clamp(22px, 3.6vw, 32px); font-weight: 900; line-height: 1.55; text-wrap: balance; }
.closing cite { display: block; margin-top: 10px; font-size: 14px; color: var(--subtle); font-style: normal; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(56px, 9vw, 96px); padding: 36px 0 60px; background: var(--bg-2); border-top: 1px solid var(--line); font-size: 15px; line-height: 1.8; color: var(--muted); }
.foot h2 { font-size: 17px; margin: 0 0 8px; color: var(--text); }
.foot ul { margin: 0 0 20px; padding-inline-start: 18px; }
.foot li { margin-bottom: 4px; }
.foot small { color: var(--subtle); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* phones: the map is drawn at about a third of its size, so its labels grow; the journey bar keeps
   its segments only (the stage's name is shown above the caption) */
@media (max-width: 760px) {
  .b-num { font-size: 46px; stroke-width: 7px; }
  .b-name { font-size: 36px; stroke-width: 7px; }
  .now__map .m-lbl { font-size: 32px; }
  .journey button { font-size: 0; padding: 14px 0 8px; }
}

/* ---------- where-now map, v2: names on both layers, legend, animated sea routes ---------- */
.now__map svg { background: linear-gradient(#e7eef9, #f2f6fc); }
.m-land { fill: #eceef1; stroke: #c9ced8; stroke-width: .8; transition: fill .25s; }
.m-land.focus { fill: #fbfbfc; }
.m-land.focus:hover, .m-land.sel { fill: #e9eefc; }
svg[data-mode="sea"] .m-land.focus { fill: #f6f7f9; }
svg[data-mode="sea"] .m-land.dest { fill: #fdf0ee; }
.m-name { font-family: var(--font); font-size: 27px; font-weight: 800; fill: var(--text); paint-order: stroke; stroke: rgba(255, 255, 255, .95); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.m-ctx { font-family: var(--font); font-size: 22px; fill: #9aa1ad; pointer-events: none; }
.m-water { font-family: var(--font); font-size: 22px; font-style: italic; fill: #7f8fad; letter-spacing: .02em; pointer-events: none; }
.m-rakhine { font-size: 20px; fill: var(--yellow-ink); font-weight: 700; }
.m-small { font-size: 21px; font-weight: 700; }
.b-num { font-size: 25px; font-weight: 700; fill: var(--blue-deep); }
.bubble.mmr ~ .b-num { fill: var(--yellow-ink); }
.b:focus-visible { outline: none; }
.b:focus-visible .bubble { stroke-width: 4; }
.m-dest { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.m-stat { font-family: var(--font); font-size: 46px; font-weight: 900; fill: var(--red); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 6px; }
.m-stat-sub { font-family: var(--font); font-size: 20px; font-weight: 700; fill: #7a1110; }
.route { stroke-width: 3.2; stroke-dasharray: 10 9; animation: flow 1.4s linear infinite; }
.route--land { animation: none; stroke-dasharray: none; stroke-width: 4; }
@keyframes flow { to { stroke-dashoffset: -38; } }
@media (prefers-reduced-motion: reduce) { .route { animation: none; } }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .9); border-top: 1px solid var(--line); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { display: inline-block; flex: none; }
.lg-b, .lg-y { width: 12px; height: 12px; border-radius: 50%; background: rgba(16, 70, 229, .25); border: 2px solid var(--blue); }
.lg-y { background: rgba(254, 190, 0, .4); border-color: var(--yellow-ink); }
.lg-r { width: 22px; border-top: 3px dashed var(--red); }
.lg-d { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.lg-note { color: var(--subtle); }
.panel .big.mmr { color: var(--yellow-ink); }
.bars__title { margin: 18px 0 0; font-size: 15px; }
.bars { height: 170px; }
.bars div { position: relative; }
.bars i { background: #c9d4f2; }
.bars div.peak i { background: var(--blue); }
.bars div.deadly i { background: #c9d4f2; box-shadow: inset 0 3px 0 var(--red); }
.bars em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.bars div.deadly em { color: var(--red); }
.bars__note { font-size: 13px !important; color: var(--subtle) !important; margin-top: 6px !important; }
@media (max-width: 760px) {
  .m-name { font-size: 40px; stroke-width: 8px; }
  .b-num { font-size: 38px; stroke-width: 7px; }
  .m-ctx, .m-water { font-size: 30px; }
  .m-small, .m-rakhine { font-size: 28px; }
  .m-stat { font-size: 62px; }
  .m-stat-sub { font-size: 28px; }
  .now__map .m-lbl { font-size: 28px; }
}

/* ---------- editorial pass: why it matters, a refugee's voice, album links, the echo section, credits ---------- */
.starters { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .starters { grid-template-columns: 1fr 1fr; } .starters a:last-child { grid-column: 1 / -1; } }
.why { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); background: var(--blue-soft); border-inline-start: 4px solid var(--blue); }
.why h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.why ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.8; }
.why b { color: var(--blue-deep); }
.voice { margin-top: 28px; margin-bottom: 0; text-align: center; }
.voice blockquote { margin: 0 auto; max-width: 26em; font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; line-height: 1.55; text-wrap: balance; }
.voice blockquote::before { content: "❝"; display: block; color: var(--yellow); font-size: 1.4em; line-height: 1; }
.voice figcaption { margin-top: 8px; font-size: 14px; color: var(--subtle); }
.seealso { margin: 10px 0 0 !important; font-size: 14px !important; color: var(--subtle); }
.seealso .linklike { font-size: 14px; }
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } }
.vcard { margin: 0; padding: 20px; border-radius: var(--radius); background: var(--bg-2); border-top: 4px solid var(--yellow); display: flex; flex-direction: column; gap: 12px; }
.vcard blockquote { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.7; }
.vcard figcaption { font-size: 15px; line-height: 1.75; color: var(--muted); }
.vcard figcaption b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 2px; }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; color: var(--blue); font-weight: 700; font-size: 14.5px; }
.credits { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
@media (max-width: 760px) { .credits { grid-template-columns: 1fr; } }
.credits b { color: var(--text); }

/* the longer headline: first clause on its own line, the yellow clause below it */
.hero h1 { max-width: 19ch; font-size: clamp(32px, 6.2vw, 66px); }
.hero h1 span { display: block; }

/* ---------- mobile comfort pass ---------- */
.hero { min-height: min(92vh, 860px); min-height: min(92svh, 860px); } /* iOS: the toolbar does not push the headline */
.hero__cap { font-size: 12px; }
button, a, summary, [role=button] { -webkit-tap-highlight-color: rgba(16, 70, 229, .12); touch-action: manipulation; }
.paused .route, .paused .m-ring.on, svg.paused .route { animation-play-state: paused; }
@media (max-width: 760px) {
  /* every control at least a fingertip (44px) */
  .journey { gap: 4px; }
  .journey button { flex: 1 1 0; min-height: 44px; padding: 0; }
  .journey button::before, .journey button::after { top: 19px; }
  .linklike { display: inline-block; padding: 9px 0; }
  .seealso { line-height: 1.6; }
  details.more summary, details.fold summary { padding-block: 12px; }
  .chips button { min-height: 44px; padding: 6px 14px; }
  .seg button { min-height: 44px; }
  .flow__btns button { min-height: 48px; }
  .album__arrow { width: 44px; height: 44px; margin-top: -22px; }
  .album__strip { grid-auto-columns: 74px; }
}

/* ---------- design notes, 24 Nov ---------- */
/* headline: air between the lines so "رحلة" and "أراكان" do not touch */
.hero h1 { line-height: 1.34; }
.hero h1 span { margin-top: .12em; }
/* phones: the faces sit in the top band, above the kicker and the headline */
@media (max-width: 760px) {
  .hero__img { top: -22%; height: 125%; object-position: 50% 50%; }
}
/* starter icons: one simple line set, centred in the circle */
.starters b { width: 36px; height: 36px; }
.starters b svg { width: 18px; height: 18px; display: block; }
/* the vote: green for the judges who found genocide, red for those who did not */
.votes.on .votes__dots i.y { background: #1f8a4c; border-color: #1f8a4c; }
.votes.on .votes__dots i.n { background: var(--red); border-color: var(--red); }
.votes__legend span::before { background: #1f8a4c; }
.votes__legend span + span::before { background: var(--red); border: 0; }
/* the story's own credit, in the names' type */
.made { margin: 2px 0 22px; font-size: 15px; color: var(--muted); }
.made b { color: var(--text); }

/* ---------- design notes 2 ---------- */
/* hero: the faces sit higher, clear of the text (desktop and phones) */
.hero__img { top: -18%; height: 120%; object-position: 50% 50%; }
@media (max-width: 760px) { .hero__img { top: -32%; height: 135%; } }
/* photo credits: smaller captions, the source on its own line behind a camera mark */
.panel figcaption { font-size: 12.5px; line-height: 1.65; }
.photo-credit { display: block; margin-top: 3px; font-size: 12px; color: var(--subtle); }
.photo-credit::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-inline-end: 5px; vertical-align: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero__cap.photo-credit { display: inline-block; margin-top: 0; color: rgba(255, 255, 255, .85); }
/* voice cards: a quote mark, and a profile placeholder beside the name */
.vcard { position: relative; }
.vcard__q { width: 30px; height: 30px; color: var(--yellow); }
.vcard figcaption { display: flex; flex-direction: column; gap: 6px; }
.vcard .who { display: flex; align-items: center; gap: 10px; }
.vcard .who b { margin: 0; }
.avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--yellow); color: var(--subtle); }
.avatar svg { width: 20px; height: 20px; }
.made { line-height: 2; }
/* desktop: the crowd's faces fill the upper half, the text keeps to the lower half */
@media (min-width: 761px) {
  .hero__img { top: -30%; height: 135%; }
  .hero h1 { font-size: clamp(32px, 4.6vw, 56px); }
  .hero__dek { font-size: 18px; }
}

/* =====================================================================
   SPAIN 2026 — components
   ===================================================================== */
:root { --psoe: #e30613; --pp: #1d84ce; --vox: #5ac035; --fa: #c2185b; --pod: #6b2e8c; }
.hero--spain { background: #000; min-height: min(80vh, 760px); min-height: min(80svh, 760px); }
.hero--spain .hero__img { object-fit: contain; object-position: 50% 40%; top: 0; height: 100%; opacity: .95; }
.hero--spain::after { background: linear-gradient(to top, rgba(8,10,18,.96) 0%, rgba(8,10,18,.8) 38%, rgba(8,10,18,0) 70%); }
@media (max-width: 760px) { .hero--spain .hero__img { top: -12%; height: 100%; object-fit: cover; } }

/* key numbers strip */
.keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 22px; }
.keys div { background: var(--bg-2); border-radius: 12px; padding: 12px; text-align: center; }
.keys b { display: block; font-size: 24px; font-weight: 900; line-height: 1.2; }
.keys small { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.keys .red b { color: var(--red); }
@media (max-width: 860px) { .keys { grid-template-columns: repeat(3, 1fr); } }
.results-banner { margin: 18px auto 0; padding: 14px 18px; border-radius: 12px; background: #fff8e1; border: 1px solid rgba(152,115,0,.25); font-size: 15.5px; }
.results-banner b { color: var(--yellow-ink); }

/* parliament: king → two chambers */
.chambers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 0; }
.chambers > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.chambers b.big { display: block; font-size: 34px; font-weight: 900; color: var(--blue); line-height: 1.1; }
.chambers p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.king { text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px; font-size: 15px; color: var(--muted); }
.king b { color: var(--text); }
@media (max-width: 640px) { .chambers { grid-template-columns: 1fr; } }

/* constituencies map */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
@media (max-width: 860px) { .mapwrap { grid-template-columns: 1fr; } }
#spainMap svg { width: 100%; height: auto; background: var(--sea); border-radius: var(--radius); }
.prov { fill: #fbfbfc; stroke: #b9c0cc; stroke-width: 1.1; cursor: pointer; transition: fill .15s; }
.prov:hover, .prov:focus-visible { fill: #e3eafc; outline: none; }
.prov.on { fill: var(--blue); }
.prov.city { fill: var(--yellow); }
.inset { fill: none; stroke: #9aa1ad; stroke-dasharray: 6 6; }
.city-mk circle { fill: var(--yellow); stroke: var(--yellow-ink); stroke-width: 3; cursor: pointer; }
.city-mk:focus-visible { outline: none; } .city-mk:focus-visible circle { stroke: var(--blue); }
#spainMap .dot { fill: var(--text); }
#spainMap .lbl { font-family: var(--font); font-size: 24px; fill: var(--muted); paint-order: stroke; stroke: #fff; stroke-width: 6px; pointer-events: none; }
#spainMap .lbl.big { font-size: 28px; font-weight: 800; fill: var(--text); }
@media (max-width: 760px) { #spainMap .lbl { font-size: 34px; } #spainMap .lbl.big { font-size: 38px; } }
.mapinfo { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.mapinfo b { font-size: 22px; font-weight: 900; }
.mapinfo small { color: var(--subtle); }
.mapinfo p { margin: 8px 0 0; font-size: 16px; color: var(--muted); line-height: 1.75; }
.rules { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.rules li { font-size: 15.5px; line-height: 1.7; padding-inline-start: 26px; position: relative; }
.rules li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }

/* D'Hondt simulator */
.dhondt { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); box-shadow: var(--shadow); }
.dh-controls { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .dh-controls { grid-template-columns: 1fr; } }
.dh-row { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; font-size: 14.5px; margin-bottom: 6px; }
.dh-row input { accent-color: var(--c); width: 100%; height: 28px; }
.dh-name { font-weight: 800; color: var(--c); }
.dh-row output { text-align: end; font-weight: 700; }
.dh-seats { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.dh-seats output { font-size: 28px; min-width: 2ch; text-align: center; }
.dh-step { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); background: var(--bg); color: var(--blue); font-size: 22px; font-weight: 900; }
.dh-play { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.dh-play button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-weight: 700; }
.dh-play button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.dh-table { display: grid; gap: 4px; }
.dh-tr { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) 1.2fr; gap: 4px; align-items: stretch; }
.dh-head span { font-size: 13px; font-weight: 800; color: var(--subtle); text-align: center; }
.dh-p { font-weight: 800; color: var(--c); display: flex; flex-direction: column; justify-content: center; font-size: 14.5px; }
.dh-p small { color: var(--subtle); font-weight: 400; font-size: 12px; }
.dh-q { position: relative; display: grid; place-items: center; min-height: 40px; border-radius: 8px; background: var(--bg-2); font-size: 14px; }
.dh-q.will { outline: 1px dashed var(--line-2); }
.dh-q.lit { background: var(--c); color: #fff; font-weight: 800; }
.dh-q i { position: absolute; top: 3px; inset-inline-start: 4px; font-style: normal; font-size: 10.5px; background: rgba(255,255,255,.9); color: var(--c); border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; font-weight: 900; }
.dh-s { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.dh-s i { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.dh-s small { font-size: 11.5px; color: var(--subtle); line-height: 1.4; }
.dh-tr.out .dh-p, .dh-tr.out .dh-q { opacity: .45; }
.dh-result { margin-top: 12px; font-weight: 800; font-size: 16px; }
@media (max-width: 520px) { .dh-tr { grid-template-columns: 1.2fr repeat(3, 1fr) 1fr; } .dh-tr > :nth-child(5) { display: none; } .dh-q { font-size: 12.5px; } }

/* hemicycle + coalition builder */
.maj-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 10px; }
@media (max-width: 860px) { .maj-grid { grid-template-columns: 1fr; } }
.hemi { width: 100%; height: auto; display: block; }
.hemi .seat { fill: #dfe2e8; transition: fill .3s, opacity .3s; }
.hemi .seat.dim { opacity: .28; }
.hemi .maj { stroke: var(--text); stroke-width: .35; stroke-dasharray: 1.2 1; }
.hemi .maj-t { font-family: var(--font); font-size: 3.2px; font-weight: 900; fill: var(--text); }
.hemi-cap { text-align: center; font-size: 13px; color: var(--subtle); margin: 4px 0 0; direction: ltr; }
.picks { display: grid; gap: 6px; }
.pick { display: grid; grid-template-columns: 24px 14px 1fr auto; gap: 10px; align-items: center; min-height: 44px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; }
.pick input { width: 20px; height: 20px; accent-color: var(--c); }
.pick .sw { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.pick b { font-size: 16px; }
.pick:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.meter { position: relative; height: 12px; border-radius: 6px; background: var(--bg-3); margin: 16px 0 8px; }
.meter i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; background: var(--subtle); transition: width .3s var(--ease); }
.meter.ok i { background: #1f8a4c; }
.meter .mk { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); }
.sum { font-size: 17px; }
.sum b { font-size: 26px; font-weight: 900; }
.sum .yes { color: #1f8a4c; font-weight: 800; }
.sum .no { color: var(--red); font-weight: 800; }
.seg button[disabled] { opacity: .45; cursor: not-allowed; }

/* parties: the spectrum and the card */
.spectrum { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; }
.spec-axis { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--subtle); letter-spacing: .02em; border-bottom: 2px solid var(--yellow); padding-bottom: 6px; margin-bottom: 10px; direction: ltr; }
.spec-axis span { direction: rtl; }
.spec-row { position: relative; height: 46px; }
.chip-p { position: absolute; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--c); background: var(--bg); color: var(--text); font-weight: 800; font-size: 13.5px; white-space: nowrap; min-height: 38px; }
.chip-p::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip-p[aria-pressed="true"] { background: var(--c); color: #fff; }
.chip-p[aria-pressed="true"]::before { background: #fff; }
.pcard { margin-top: 16px; border-radius: var(--radius); padding: 18px; background: var(--bg-2); border-inline-start: 6px solid var(--c); }
.pcard h3 { margin: 0; font-size: 22px; font-weight: 900; }
.pcard .pos { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--c); }
.pcard dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 15.5px; line-height: 1.7; }
.pcard dt { color: var(--subtle); }
.pcard dd { margin: 0; }
.pcard p { margin: 10px 0 0; font-size: 16px; line-height: 1.8; }
@media (max-width: 760px) { .spectrum { overflow-x: auto; } .spec-inner { min-width: 640px; } }

/* issues */
.issues { display: grid; gap: 12px; }
.issue { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.issue h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.issue h3 svg { width: 26px; height: 26px; color: var(--yellow-ink); flex: none; }
.issue p { margin: 0 0 8px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.poll { display: grid; gap: 8px; margin: 8px 0 16px; }
.poll div { display: grid; grid-template-columns: 110px 1fr 48px; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; }
.poll i { height: 18px; border-radius: 4px; background: var(--blue); width: calc(var(--v) * 1%); max-width: 100%; }
.poll div + div i { background: #7f9cf0; }
.poll b { text-align: end; }
.rent { display: grid; gap: 10px; margin: 12px 0 4px; }
.rent div { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; font-size: 14.5px; }
.rent i { height: 22px; border-radius: 4px; background: var(--red); width: calc(var(--v) / 1191 * 100%); }
.rent div:last-child i { background: #1f8a4c; }
.rent b { text-align: end; }
@media (max-width: 520px) { .rent div { grid-template-columns: 110px 1fr 70px; font-size: 13.5px; } .poll div { grid-template-columns: 90px 1fr 42px; } }

/* government */
.cabinet { display: grid; grid-template-columns: repeat(22, 1fr); gap: 4px; margin: 14px 0 6px; }
.cabinet i { aspect-ratio: 1 / 1.4; border-radius: 4px; background: var(--c); }
.cab-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
.cab-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); margin-inline-end: 6px; vertical-align: -1px; }
.deputies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.deputies div { background: var(--bg-2); border-radius: 12px; padding: 12px; font-size: 14.5px; line-height: 1.6; }
.deputies b { display: block; font-size: 16px; }
@media (max-width: 640px) { .deputies { grid-template-columns: 1fr; } }

/* timeline (reuses .tl) */
.tl li.key time { color: var(--red); }
/* polls */
.polls { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pbar { display: grid; grid-template-columns: 110px 1fr 120px; gap: 10px; align-items: center; margin: 10px 0; font-weight: 800; font-size: 15px; }
.pbar i { height: 26px; border-radius: 6px; background: var(--c); width: calc(var(--v) / 40 * 100%); max-width: 100%; transition: width .5s var(--ease); }
.pbar b { font-size: 18px; } .pbar small { display: block; font-weight: 400; color: var(--subtle); font-size: 12.5px; }
.poll-note { font-size: 13px; color: var(--subtle); margin: 8px 0 0; }
@media (max-width: 520px) { .pbar { grid-template-columns: 76px 1fr 92px; font-size: 13.5px; } }
.model { display: grid; gap: 8px; margin-top: 14px; }
.model li { list-style: none; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: 15px; line-height: 1.6; }
.model b { font-size: 20px; font-weight: 900; color: var(--blue); text-align: center; }
.model { padding: 0; margin: 14px 0 0; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quotes figure { margin: 0; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border-top: 4px solid var(--c); }
.quotes blockquote { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.7; }
.quotes figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.next-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.next-steps li { counter-increment: s; position: relative; padding: 12px 16px 12px 16px; padding-inline-start: 54px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; line-height: 1.75; }
.next-steps li::before { content: counter(s); position: absolute; inset-inline-start: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.next-steps b { display: block; }
/* desktop hero: the illustration sits to the left, clear of the headline */
@media (min-width: 761px) { .hero--spain .hero__img { object-position: 12% 40%; } }
/* the spectrum is an axis: laid out left to right (far left on the left), its labels still Arabic */
.spectrum { direction: ltr; }
.spectrum .chip-p, .spec-axis span { direction: rtl; }
/* the allocation table grows with the divisions needed; on phones it scrolls sideways */
.dh-table { overflow-x: auto; }
.dh-tr { grid-template-columns: 1.3fr repeat(var(--cols, 4), minmax(64px, 1fr)) 1.2fr; min-width: min-content; }
@media (max-width: 520px) { .dh-tr { grid-template-columns: 76px repeat(var(--cols, 3), 64px) 64px; } .dh-tr > :nth-child(5) { display: grid; } }
/* desktop hero: the illustration on the left half, the text on the right half */
@media (min-width: 761px) {
  .hero--spain .hero__img { left: 0; right: auto; width: 50%; object-position: 50% 45%; }
  .hero--spain .hero__body { padding-inline-end: 44%; }
  .hero--spain::after { background: linear-gradient(to left, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 60%); }
}
.keys div:first-child b { font-size: 20px; }
@media (min-width: 761px) {
  .hero--spain .hero__body { padding-top: 72px; }
  .hero--spain h1 { font-size: clamp(30px, 3.7vw, 50px); max-width: none; }
}
/* phones: the illustration on top, the text under it (no overlap) */
@media (max-width: 760px) {
  .hero--spain { display: block; min-height: 0; padding-top: 8px; }
  .hero--spain .hero__img { position: relative; inset: auto; top: auto; width: 100%; height: 250px; object-fit: contain; object-position: 50% 50%; }
  .hero--spain::after { display: none; }
  .hero--spain .hero__body { padding-top: 4px; }
}
/* review pass: visual */
.keys div:first-child b { font-size: 24px; }
.model li { grid-template-columns: 96px 1fr; }
.model b { font-size: 18px; white-space: nowrap; }
@media (min-width: 761px) { .hero--spain { min-height: 0; } .hero--spain .hero__body { padding-top: 48px; padding-bottom: 48px; } }
/* editorial pass: the Vox question, the caption as an axis */
.vox-q { margin-top: 40px; padding: 20px 22px; border-radius: var(--radius); background: #f1f9ec; border-inline-start: 5px solid var(--vox); }
.vox-q h3 { margin: 0 0 8px; font-size: 21px; font-weight: 900; }
.vox-q p { margin: 0; font-size: 16.5px; line-height: 1.85; }
.hemi-cap { display: flex; justify-content: space-between; direction: ltr; padding: 0 4%; }
.hemi-cap span { direction: rtl; }
.quotes { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- simplify pass: seat map + guess game ---------- */
.prov.b1 { fill: #e8eefc; } .prov.b2 { fill: #c6d4f7; } .prov.b3 { fill: #94aff0; } .prov.b4 { fill: #5c83e6; } .prov.b5 { fill: #1d3fb0; }
.prov.city { fill: #e8eefc; }
.prov.on { fill: var(--yellow) !important; stroke: var(--yellow-ink); stroke-width: 2.5; }
.prov:hover, .prov:focus-visible { filter: brightness(.92); }
#spainMap .seatnum { font-family: var(--font); font-size: 26px; font-weight: 900; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 3px; pointer-events: none; }
@media (max-width: 760px) { #spainMap .seatnum { font-size: 38px; } }
#spainMap .map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 4px 0; font-size: 13px; color: var(--muted); border: 0; background: none; }
#spainMap .map-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
#spainMap .map-legend i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
#spainMap .map-legend i.b1 { background: #e8eefc; border: 1px solid #c6d4f7; } #spainMap .map-legend i.b2 { background: #c6d4f7; } #spainMap .map-legend i.b3 { background: #94aff0; } #spainMap .map-legend i.b4 { background: #5c83e6; } #spainMap .map-legend i.b5 { background: #1d3fb0; }
.mi-head b { font-size: 22px; font-weight: 900; } .mi-head small { margin: 0 10px; color: var(--subtle); direction: ltr; unicode-bidi: isolate; }
.mi-num { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.mi-num b { font-size: 46px; font-weight: 900; color: var(--blue-deep); line-height: 1; }
.mi-num span { font-size: 18px; font-weight: 800; }
.mi-share { margin: 6px 0 0 !important; font-size: 14px !important; color: var(--subtle) !important; }

.dhondt { padding: 20px; }
.dg-intro { margin: 0 0 14px; font-weight: 800; font-size: 16.5px; }
.dg-rows { display: grid; gap: 10px; }
.dg-row { display: grid; grid-template-columns: minmax(110px, 1fr) auto minmax(120px, 1.2fr) 90px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); border-inline-start: 5px solid var(--c); }
.dg-party b { display: block; font-size: 16px; color: var(--c); }
.dg-party small { font-size: 12.5px; color: var(--subtle); }
.dg-ctrl { display: flex; align-items: center; gap: 8px; }
.dg-ctrl output { min-width: 1.6ch; text-align: center; font-size: 24px; font-weight: 900; }
.dg-step { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--c); background: var(--bg); color: var(--c); font-size: 22px; font-weight: 900; line-height: 1; }
.dg-step:disabled { opacity: .3; cursor: default; }
.dg-seats { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.dg-seats i { width: 22px; height: 22px; border-radius: 5px; background: var(--c); }
.dg-verdict { font-size: 13.5px; font-weight: 800; text-align: center; }
.dg-verdict.ok { color: #1f8a4c; } .dg-verdict.no { color: var(--subtle); }
.dg-left { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); min-height: 1.6em; }
.dg-actions { display: flex; gap: 10px; margin-top: 6px; }
.dg-reveal, .dg-again { min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; border: 2px solid var(--blue); }
.dg-reveal { background: var(--blue); color: #fff; }
.dg-reveal:disabled { background: var(--bg-3); border-color: var(--bg-3); color: var(--subtle); cursor: default; }
.dg-again { background: var(--bg); color: var(--blue); }
.dg-lesson { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #fff8e1; border: 1px solid rgba(152,115,0,.25); }
.dg-lesson b { font-size: 17px; } .dg-lesson p { margin: 6px 0 0; font-size: 16px; line-height: 1.8; }
.dg-how { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.dg-how summary { cursor: pointer; padding: 12px 0; font-weight: 800; color: var(--blue); }
.dg-how p { margin: 0 0 10px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.dg-how ol { margin: 0 0 10px; padding-inline-start: 22px; font-size: 15px; line-height: 1.9; }
.dg-how li b { color: var(--c); }
@media (max-width: 600px) {
  .dg-row { grid-template-columns: 1fr auto; grid-template-areas: "p c" "s v"; row-gap: 8px; }
  .dg-party { grid-area: p; } .dg-ctrl { grid-area: c; } .dg-seats { grid-area: s; } .dg-verdict { grid-area: v; }
}

/* ---------- results box + coverage strip ---------- */
.results { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); border: 2px solid var(--text); background: var(--bg); scroll-margin-top: calc(var(--bar-h) + 12px); }
.rs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rs-head h2 { margin: 0; font-size: 24px; font-weight: 900; order: -1; }
.rs-head small { color: var(--subtle); font-size: 13px; margin-inline-start: auto; }
.rs-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #fdecec; color: var(--red); }
.rs-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
.rs-pill.done { background: #e8f5ec; color: #1f8a4c; } .rs-pill.done i { background: #1f8a4c; animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.rs-turnout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 12px; }
.rs-turnout b { font-size: 40px; font-weight: 900; color: var(--blue-deep); line-height: 1; }
.rs-turnout span { font-weight: 800; }
.rs-turnout small { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.rs-wait { margin: 10px 0 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.rs-bar { position: relative; display: flex; height: 30px; border-radius: 6px; overflow: visible; margin: 18px 0 8px; direction: ltr; background: var(--bg-3); }
.rs-bar i { height: 100%; } .rs-bar i:first-child { border-radius: 6px 0 0 6px; } .rs-bar i:nth-last-child(2) { border-radius: 0 6px 6px 0; }
.rs-mk { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); }
.rs-mk span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 900; }
.rs-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.rs-list li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; font-size: 15px; }
.rs-list .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.rs-list b { font-size: 18px; } .rs-list small { color: var(--subtle); font-size: 12.5px; }
.rs-bloc { margin: 12px 0 0; font-weight: 800; font-size: 16px; }
.rs-bloc.yes { color: #1f8a4c; } .rs-bloc.no { color: var(--muted); }
.rs-src { margin: 10px 0 0; font-size: 13px; color: var(--subtle); }
.cov-wrap { margin-top: 26px; }
.cov { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cv { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); color: var(--text); text-decoration: none; padding-bottom: 12px; transition: border-color .2s; }
.cv:hover { border-color: var(--blue); color: var(--text); }
.cv img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-3); }
.cv-k { display: inline-flex; align-items: center; gap: 6px; margin: 2px 12px 0; font-size: 12.5px; font-weight: 800; color: var(--blue); }
.cv.live .cv-k { color: var(--red); }
.cv-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
.cv b { margin: 0 12px; font-size: 15.5px; line-height: 1.6; font-weight: 800; }
.cv small { margin: 0 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (max-width: 760px) { .cov { grid-auto-columns: 78%; } }
@media (prefers-reduced-motion: reduce) { .rs-pill i, .cv-k i { animation: none; } }

.cv img { height: auto; flex: none; }
.rs-src a { display: inline-block; padding: 10px 0; font-weight: 800; }
