/* ==========================================================================
   The Race for the UN's Top Job — styles
   Design system per BUILD SPEC §4 (palette + type LOCKED). Mobile-first (§3):
   the mobile viewport is the design target; desktop is a centered ~720px column.
   Identity comes from using UN-blue with intent — tint blocks, rules, and the
   grid's dot rhythm — not from inventing new hues. Gold is ONLY "we are here".
   ========================================================================== */

:root {
  /* Palette (spec §4) + intentional, blue-biased derivations */
  --un-blue: #009EDB;         /* primary: fills, dots, rules */
  --un-blue-deep: #036CA0;    /* text/links on white (WCAG AA) */
  --un-blue-tint: #E6F5FC;    /* card grounds, tint blocks */
  --un-blue-wash: #F3FAFD;    /* faintest wash for zebra/alt grounds */
  --ink: #1A2B3C;             /* near-black, blue-biased */
  --ink-soft: #42566A;        /* secondary text */
  --warm-gray: #8A8F98;       /* meta, withdrawal/negative states (never red) */
  --paper: #FFFFFF;
  --paper-2: #F6F1E6;         /* warm cream off-white (matches the illustration paper) */
  --cream: #F8F4EA;           /* card ground, tuned to the stipple/sketch assets */
  --cream-line: #E9E0CE;      /* warm hairline for cream cards */
  --hairline: #DCE6EC;        /* blue-biased hairline */
  --hairline-strong: #C4D4DE;
  --gold: #F4B223;            /* ONLY the "we are here" marker */
  --gold-ink: #8A5A00;        /* accessible gold-family text */

  /* Type (spec §4): Source Serif 4 display / Inter body / 17px min */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --display: clamp(2.4rem, 3vw + 1.6rem, 3.6rem);
  --t-2xl: clamp(1.6rem, 1vw + 1.3rem, 2rem);
  --t-xl: 1.45rem;
  --t-lg: 1.2rem;
  --t-md: 1.0625rem;   /* 17px base */
  --t-sm: 0.9375rem;
  --t-xs: 0.8125rem;
  --t-2xs: 0.72rem;

  --measure: 720px;
  --pad: 1.25rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(26,43,60,.05), 0 6px 20px rgba(26,43,60,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink);
  background: #FCFAF4;        /* warm paper ground to sit with the cream illustrations */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--un-blue-deep); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--un-blue-deep); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem .75rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* Top identity hairline in UN blue */
body::before { content: ""; display: block; height: 4px; background: var(--un-blue); }

/* Layout: single centered column, generous mobile padding */
.masthead, .section, .footer { padding-inline: max(var(--pad), env(safe-area-inset-left)); }
.masthead > *, .section > *, .footer > * { max-width: var(--measure); margin-inline: auto; }
.section { padding-block: 2.4rem; scroll-margin-top: .75rem; }
.section + .section { border-top: 1px solid var(--hairline); }

/* --- Section headings: serif title + UN-blue kicker rule ---------------- */
.section__title {
  position: relative; font-size: var(--t-2xl); margin: 0 0 .5rem; padding-top: .85rem;
  letter-spacing: -0.01em;
}
.section__title::before {
  content: ""; position: absolute; top: 0; left: 0; width: 2.4rem; height: 3px;
  background: var(--un-blue); border-radius: 2px;
}
.section__intro { color: var(--ink-soft); margin: 0 0 1.4rem; font-size: var(--t-md); max-width: 60ch; }

/* --- Masthead + hero (spec §3.1, §4) ----------------------------------- */
.masthead { padding-top: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--hairline); }
.hero { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 42%; display: block; }
@media (min-width: 720px) { .hero img { aspect-ratio: 21 / 9; } }
.hero figcaption { font-size: var(--t-2xs); color: var(--warm-gray); padding: .4rem .2rem 0; letter-spacing: .01em; }
.hero--empty {
  height: 8px; border-radius: 999px; margin-bottom: 1.75rem; box-shadow: none;
  background: linear-gradient(90deg, var(--un-blue) 0%, #5CC4E8 45%, var(--un-blue-tint) 100%);
}
.masthead__headline {
  font-size: var(--display); margin: 0 0 .7rem; letter-spacing: -0.022em; line-height: 1.03;
  color: var(--ink);
}
.masthead__dek {
  font-size: var(--t-lg); color: var(--ink-soft); margin: 0 0 1.25rem; font-weight: 400;
  line-height: 1.45; max-width: 36ch;
}
.masthead__bylineblock { margin: 0; }
.masthead__byline { font-weight: 600; margin: 0; color: var(--ink); }
.masthead__project { margin: .1rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); }
/* "In this project" section nav — wraps naturally, no horizontal scroll */
.masthead__nav { margin: .8rem 0 0; font-size: var(--t-sm); line-height: 1.75; }
.masthead__nav a { display: inline-block; color: var(--un-blue-deep); text-decoration: none; transition: transform .12s ease; }
.masthead__nav a:hover { text-decoration: underline; transform: translateY(-1px); }
.masthead__nav a:focus-visible { text-decoration: underline; transform: translateY(-1px); outline: 2px solid var(--un-blue-deep); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  .masthead__nav a { transition: none; }
  .masthead__nav a:hover, .masthead__nav a:focus-visible { transform: none; }
}
.masthead__nav > span { color: var(--warm-gray); }
.masthead__dateline { color: var(--warm-gray); font-size: var(--t-sm); margin: .2rem 0 0; font-variant-numeric: tabular-nums; }

.draft-flag {
  display: inline-block; font-size: var(--t-2xs); font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--warm-gray); background: var(--paper-2);
  border: 1px solid var(--hairline); border-radius: 999px; padding: .1rem .55rem;
  margin-left: .5rem; vertical-align: middle; white-space: nowrap;
}

/* --- Chips & badges (shared) ------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--t-xs); font-weight: 500; text-decoration: none;
  color: var(--un-blue-deep); background: var(--un-blue-tint);
  border: 1px solid transparent; border-radius: 999px; padding: .25rem .7rem;
  margin: .22rem .35rem .22rem 0; line-height: 1.3; transition: border-color .12s ease, background .12s ease;
}
.chip:hover { border-color: var(--un-blue); background: #DBEFFA; }
.chip--doc { background: var(--paper); border-color: var(--hairline); color: var(--ink); }
/* Current-role chip in Names in the wind — neutral tone, distinct from the blue source chip. */
.chip--role { background: var(--paper-2); border-color: var(--hairline); color: var(--ink-soft); }
.chip--role:hover { border-color: var(--warm-gray); background: var(--paper); }
.chip--doc:hover { border-color: var(--un-blue); color: var(--un-blue-deep); }
/* Language warning, rendered INSIDE its doc chip (a flex child, so it can never
   wrap away from the chip). An annotation, not a control: no background, border,
   pill radius, or hover — just small muted uppercase text set off by a hairline
   divider from the chip label. */
.badge-translated {
  font-size: var(--t-2xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--warm-gray); white-space: nowrap;
  padding-left: .4rem; border-left: 1px solid var(--hairline);
}
.tier { color: var(--warm-gray); font-size: var(--t-2xs); margin-left: .35rem; font-variant-numeric: tabular-nums; }

/* --- Portraits: monogram placeholder (spec §8) ------------------------- */
.portrait, .monogram {
  width: 76px; height: 76px; border-radius: 50%; flex: 0 0 auto; object-fit: cover;
}
.monogram {
  display: grid; place-items: center;
  background: var(--un-blue-tint); color: var(--un-blue-deep);
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem;
  border: 1px solid var(--hairline);
}

/* --- Status stepper — "the gauntlet" (spec §3.2) ---------------------- */
.stepper-section > .stepper, .stepper-section > .stepper__note { }
.stepper {
  list-style: none; margin: 0 0 .9rem; padding: 1.1rem 1rem .4rem;
  display: flex; gap: .25rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper-2); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.stepper__step {
  flex: 1 0 auto; min-width: 5.6rem; position: relative;
  padding-top: 1.6rem; text-align: center; font-size: var(--t-xs); color: var(--warm-gray); line-height: 1.25;
}
/* Connector as two half-lines: each dot draws half a segment to its left and
   half to its right, meeting at the gap midpoint. Each half is sized to the
   step's OWN half-width (+ half the .25rem flex gap), so it never depends on a
   neighbour's width. The previous single per-segment line was sized to one
   step's full width and fell short by half the width difference whenever the
   next step was wider — which the long "current" label always made true. */
.stepper__step::before,
.stepper__step::after {
  content: ""; position: absolute; top: .5rem; height: 2px; background: var(--hairline-strong);
}
.stepper__step::before { right: 50%; width: calc(50% + .125rem); }  /* left half  */
.stepper__step::after  { left: 50%;  width: calc(50% + .125rem); }  /* right half */
.stepper__step:first-child::before { display: none; }
.stepper__step:last-child::after { display: none; }
.stepper__dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--hairline-strong); box-shadow: 0 0 0 3px var(--paper-2); z-index: 1;
}
.stepper__step--done .stepper__dot { background: var(--un-blue); border-color: var(--un-blue); }
/* A completed step's line is blue on both sides; the current step's LEFT half is
   also blue so the trail runs solid into the gold "we are here" dot. */
.stepper__step--done::before,
.stepper__step--done::after { background: var(--un-blue); }
.stepper__step--current::before { background: var(--un-blue); }
.stepper__step--done .stepper__label { color: var(--ink-soft); }
.stepper__step--current .stepper__dot {
  background: var(--gold); border-color: var(--gold); width: 1.25rem; height: 1.25rem;
  box-shadow: 0 0 0 4px rgba(244,178,35,.22);
}
.stepper__step--current .stepper__label { color: var(--ink); font-weight: 600; }
.stepper__here {
  display: block; font-size: var(--t-2xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold-ink); margin-top: .2rem;
}
.stepper__note { margin: 0; color: var(--ink-soft); font-size: var(--t-md); }

/* --- Question cards (spec §3.3) --------------------------------------- */
.qcards {
  display: flex; gap: .85rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; padding-bottom: .5rem;
  margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad);
}
.qcard {
  flex: 0 0 90%; max-width: 25rem; scroll-snap-align: start; align-self: flex-start;
  position: relative; overflow: hidden;
  background: var(--un-blue-tint); border: 1px solid #D3ECF7; border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.qcard__draft { margin: 0 0 .5rem; }
.qcard::after { /* faint UN-blue rule accent, top-left */
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--un-blue), transparent 70%);
}
.qcard[style*="background-image"] { background-color: var(--un-blue-tint); background-size: cover; background-position: center; }
.qcard[style*="background-image"] > * { position: relative; }
.qcard__q {
  font-family: var(--serif); font-weight: 700; font-size: var(--t-lg); cursor: pointer;
  list-style: none; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  text-wrap: balance;
}
@media (min-width: 480px) { .qcard__q { font-size: var(--t-xl); } }
.qcard__q::-webkit-details-marker { display: none; }
.qcard__q::after { content: "+"; color: var(--un-blue-deep); font-weight: 700; font-family: var(--sans); font-size: 1.3rem; }
.qcard[open] .qcard__q::after { content: "\2013"; }
.qcard__body { margin-top: .65rem; font-size: var(--t-md); color: var(--ink); }
.qcard__body p { margin: .55rem 0; }
.qcard__src { margin-top: .5rem; }
.funfacts { margin: .25rem 0 0; padding-left: 1.15rem; }
.funfacts li { margin: .6rem 0; }

@media (min-width: 720px) {
  .qcards { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .qcard { flex: 1 1 46%; }
}

/* --- The said/unsaid grid — the centerpiece (spec §3.4) --------------- */
.grid-section .grid__scroll {
  overflow: auto; max-height: 78vh; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Horizontal-scroll affordance (mobile): right-edge fade + "scroll →" hint,
   both hidden once the container is scrolled to its end (JS toggles .at-end). */
.hscroll { position: relative; }
.hscroll::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2.75rem;
  background: linear-gradient(to right, rgba(252,250,244,0), var(--paper-2));
  border-radius: 0 var(--radius) var(--radius) 0;
  pointer-events: none; z-index: 5; transition: opacity .2s ease;
}
.hscroll__hint {
  position: absolute; right: .5rem; bottom: .5rem; z-index: 6;
  font-size: var(--t-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--un-blue-deep); background: rgba(255,255,255,.9);
  border: 1px solid var(--hairline); border-radius: 999px; padding: .12rem .5rem;
  pointer-events: none; transition: opacity .2s ease;
}
.hscroll.at-end::after, .hscroll.at-end .hscroll__hint { opacity: 0; }
/* Fade the hint the moment the reader scrolls at all (first interaction). */
.hscroll.scrolled .hscroll__hint { opacity: 0; }
/* Stepper: drop the pill into padding below the track so it never covers the
   stage labels (the track's labels reach its bottom edge). */
.hscroll--stepper { padding-bottom: 1.5rem; }
.hscroll--stepper .hscroll__hint { bottom: .15rem; }
@media (min-width: 720px) { .hscroll::after, .hscroll__hint { display: none; } }
.grid { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
.grid thead th { vertical-align: top; padding: .7rem .25rem .6rem; background: var(--un-blue-wash);
  position: sticky; top: 0; z-index: 5; box-shadow: inset 0 -2px 0 var(--un-blue); }
.grid thead tr { border-bottom: 2px solid var(--un-blue); }
/* Option 2 (frozen grid): the empty corner pins to the top-left, above both the
   photo header row and the topic-label column, so both stay put as you scroll.
   It takes the label column's paper tone so it recedes instead of reading as a
   stray blue block. */
.grid__corner {
  position: sticky; top: 0; left: 0; z-index: 6; background: var(--paper-2);
  box-shadow: 1px 0 0 var(--hairline), inset 0 -2px 0 var(--un-blue);
}
.grid__cand { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 3.6rem; }
.grid__cand .monogram, .portrait--sm { width: 2.3rem; height: 2.3rem; font-size: .85rem; }
.grid__candname { font-size: var(--t-2xs); line-height: 1.15; color: var(--ink-soft); text-align: center; font-weight: 500; }
.grid tbody tr:nth-child(even) { background: var(--un-blue-wash); }
.grid tbody tr:hover { background: var(--un-blue-tint); }
.grid th, .grid td { border-bottom: 1px solid var(--hairline); }
.grid__topic {
  position: sticky; left: 0; z-index: 4; background: var(--paper-2); /* opaque: dots must not scroll through */
  text-align: left; font-weight: 600; font-size: var(--t-sm); color: var(--ink);
  padding: .55rem .7rem .55rem var(--pad); white-space: nowrap;
  box-shadow: 1px 0 0 var(--hairline);
}
.grid tbody tr:hover .grid__topic { background: var(--un-blue-tint); }
.grid__cell { text-align: center; }
.cell {
  appearance: none; background: none; border: none; cursor: pointer;
  width: 100%; min-height: 2.9rem; display: grid; place-items: center; padding: .3rem;
}
.cell:hover .dot--stated, .cell:hover .dot--partial { transform: scale(1.12); }
.cell:hover .dot--silent { border-color: var(--un-blue-deep); }
.cell:focus-visible { outline: 2px solid var(--un-blue-deep); outline-offset: -3px; border-radius: 8px; }
.dot { width: 1.15rem; height: 1.15rem; border-radius: 50%; display: block; transition: transform .12s ease, border-color .12s ease; }
.dot--stated { background: var(--un-blue); box-shadow: 0 0 0 4px rgba(0,158,219,.14); }
.dot--partial { background: linear-gradient(90deg, var(--un-blue) 0 50%, transparent 50%); border: 2px solid var(--un-blue); }
.dot--silent { background: transparent; border: 2px solid var(--warm-gray); }

/* Visual legend under the grid heading */
.grid-legend {
  list-style: none; display: flex; flex-wrap: wrap; gap: .45rem 1.4rem;
  margin: 0 0 .55rem; padding: 0; font-size: var(--t-sm); color: var(--ink-soft);
}
.grid-legend li { display: flex; align-items: center; gap: .5rem; }
.grid-legend .dot { flex: 0 0 auto; width: 1rem; height: 1rem; }
.grid-legend__tap { margin: 0 0 1.1rem; }

/* --- Bottom sheet ----------------------------------------------------- */
.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(18,33,46,.5); backdrop-filter: blur(1px); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--paper); border-radius: 18px 18px 0 0;
  max-height: 86vh; overflow-y: auto; padding: 1.15rem var(--pad) 2.25rem;
  max-width: var(--measure); margin-inline: auto;
  box-shadow: 0 -10px 40px rgba(18,33,46,.28);
  animation: sheet-up .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes sheet-up { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet__close {
  position: sticky; top: 0; margin-left: auto; display: block;
  background: var(--un-blue-tint); color: var(--un-blue-deep); border: none;
  border-radius: 999px; padding: .4rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
}
.sheet__close:hover { background: #DBEFFA; }
.sheet__title { font-family: var(--serif); font-size: var(--t-xl); margin: .3rem 0 .35rem; padding-right: 3rem; letter-spacing: -0.01em; }
.sheet__explainer { color: var(--ink-soft); font-size: var(--t-sm); margin: 0 0 1.1rem; }
.sheet__silent { font-size: var(--t-lg); font-family: var(--serif); color: var(--ink); }
.entry { margin: 0 0 1.2rem; padding: 0 0 1.2rem; border-bottom: 1px solid var(--hairline); }
.entry:last-child { border-bottom: none; }
.entry__quote { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.4; margin: 0 0 .55rem; color: var(--ink); }
.entry__meta { font-size: var(--t-xs); color: var(--ink-soft); margin: 0 0 .45rem; }
.entry__as { font-weight: 600; color: var(--ink); }
.entry__src { margin: 0; }
.correction { color: var(--ink-soft); font-size: var(--t-sm); }

/* --- Profiles (spec §3.5) --------------------------------------------- */
.profile, .withdrawn {
  border: 1px solid var(--cream-line); border-radius: var(--radius); background: var(--cream);
  padding: 1.35rem; margin-bottom: 1.15rem; scroll-margin-top: 1rem; box-shadow: var(--shadow);
}
/* Full-width color-sketch header per candidate (spec §3.5 header band). */
.profile__header { margin: -1.35rem -1.35rem 1.1rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.profile__header img { width: 100%; height: auto; display: block; }
.profile__header figcaption { font-size: var(--t-2xs); color: var(--warm-gray); padding: .45rem 1.35rem 0; }
.profile__head { display: flex; gap: 1rem; align-items: center; }
.profile__name { font-size: var(--t-2xl); margin: 0; letter-spacing: -0.015em; }
.profile__formal { margin: .15rem 0 0; color: var(--warm-gray); font-size: var(--t-sm); }
/* Editor's note between the name pair and the fact block — muted, quiet tone,
   thin blue left rule, matching the grid intro note (.grid-silence) treatment. */
.profile__context {
  margin: 1rem 0 0; padding: .65rem .85rem; background: var(--paper-2); color: var(--ink-soft);
  border-left: 3px solid var(--un-blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--t-sm);
}
.profile__sub {
  font-size: var(--t-2xs); font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em;
  color: var(--warm-gray); margin: 1.5rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--hairline);
}
.factblock { display: grid; gap: .6rem .9rem; margin: 1.15rem 0 0; font-variant-numeric: tabular-nums; }
.factblock > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; align-items: baseline; }
.factblock dt { font-weight: 600; color: var(--un-blue-deep); font-size: var(--t-sm); }
.factblock dd { margin: 0; }
.cite-reported { display: block; margin-top: .3rem; color: var(--warm-gray); font-size: var(--t-sm); }
@media (max-width: 480px) {
  .factblock > div { grid-template-columns: 1fr; gap: .1rem; }
  .factblock dt { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .05em; }
}
.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li {
  margin: 0; padding: .5rem 0; border-bottom: 1px dashed var(--hairline);
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.ledger li:last-child { border-bottom: none; }
.ledger__yrs { color: var(--warm-gray); font-size: var(--t-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }

.plist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-sm); overflow: hidden; }
.plist__row { border-bottom: 1px solid var(--hairline); }
.plist__row:last-child { border-bottom: none; }
.cell--inline {
  width: 100%; display: flex; align-items: center; gap: .8rem; justify-content: flex-start;
  min-height: 3rem; text-align: left; padding: .4rem .85rem;
}
.cell--inline:hover { background: var(--un-blue-wash); }
.cell--inline .dot { flex: 0 0 auto; }
.plist__topic { font-size: var(--t-md); color: var(--ink); }

.papertrail { margin: .35rem 0 0; }
.campaign { margin: .85rem 0 0; font-size: var(--t-sm); }

/* --- Withdrawn (spec §3.6) -------------------------------------------- */
.withdrawn { border-style: dashed; }
.withdrawn .profile__formal { color: var(--warm-gray); text-transform: uppercase; letter-spacing: .06em; font-size: var(--t-2xs); font-weight: 600; }

/* --- Names in the wind (spec §3.7) ------------------------------------ */
.speclist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.speclist li { margin: 0; padding: .75rem 0; border-bottom: 1px solid var(--hairline); }
.speclist li:last-child { border-bottom: none; }
.spec__name { font-weight: 600; color: var(--ink); }
.spec__role { margin: .3rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); }
.spec__update {
  margin: .5rem 0 0; padding: .55rem .8rem; font-size: var(--t-sm); color: var(--ink-soft);
  background: var(--paper-2); border-left: 3px solid var(--un-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Methodology (spec §3.8) ------------------------------------------ */
.methodology-section { background: var(--paper-2); }
.methodology-section p { margin: .4rem 0 .9rem; max-width: 62ch; }
.methodology-section em { font-style: normal; font-weight: 600; color: var(--un-blue-deep); }
/* "How this was built" accordions (same interaction as the question cards) */
/* Match the question-card treatment exactly so the two accordion families read
   as one visual system (un-blue-tint ground, same border + radius as .qcard). */
.acc { border: 1px solid #D3ECF7; border-radius: var(--radius); background: var(--un-blue-tint); margin-bottom: .6rem; overflow: hidden; }
.acc__q {
  font-family: var(--serif); font-weight: 700; font-size: var(--t-lg); cursor: pointer;
  list-style: none; padding: .8rem 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after { content: "+"; color: var(--un-blue-deep); font-weight: 700; font-family: var(--sans); font-size: 1.3rem; line-height: 1; }
.acc[open] .acc__q::after { content: "\2013"; }
.acc__body { padding: 0 1rem 1rem; font-size: var(--t-md); }
.acc__body p { margin: .5rem 0; }

/* --- Footer (spec §3.9) ----------------------------------------------- */
.footer {
  border-top: 3px solid var(--un-blue); margin-top: 1rem; background: var(--paper-2);
  padding-block: 2rem; color: var(--ink-soft); font-size: var(--t-sm);
}
.footer p { margin: .35rem 0; }
.footer .disclosure { color: var(--ink-soft); max-width: 62ch; }

/* --- Reported (non-verbatim) entries; grid silence note --------------- */
.entry--reported { margin: 0 0 1.2rem; padding: 0 0 1.2rem 0.9rem; border-left: 3px solid var(--hairline-strong); }
.entry--reported:last-child { margin-bottom: 0; }
.entry__reportedtext { font-family: var(--sans); font-size: var(--t-md); color: var(--ink); margin: 0 0 .5rem; line-height: 1.5; }
.badge-reported {
  display: inline-block; font-size: var(--t-2xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--warm-gray); background: var(--paper-2);
  border: 1px solid var(--hairline); border-radius: 5px; padding: .04rem .35rem; white-space: nowrap;
  vertical-align: middle;
}
.grid-silence {
  margin: 0 0 1.1rem; font-size: var(--t-sm); color: var(--ink-soft);
  background: var(--paper-2); border-left: 3px solid var(--un-blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .65rem .85rem;
}
.grid-silence .chip { margin-bottom: 0; }

/* ASR (UN Web TV automated transcript) entries — provisional until verified */
.entry--asr { margin: 0 0 1.2rem; padding: .1rem 0 1.2rem; border-bottom: 1px solid var(--hairline); }
.entry--asr:last-child { border-bottom: none; }
.entry__asrtext {
  font-family: var(--sans); font-size: var(--t-md); color: var(--ink); line-height: 1.55;
  margin: 0 0 .55rem; padding-left: .9rem; border-left: 3px dashed var(--hairline-strong);
}
.badge-asr {
  display: inline-block; font-size: var(--t-2xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-soft); background: var(--paper-2);
  border: 1px dashed var(--hairline-strong); border-radius: 5px; padding: .04rem .4rem; margin-left: .4rem;
  white-space: nowrap; vertical-align: middle;
}

/* --- Correction trigger + modal form (Netlify Form) ------------------- */
.linklike {
  appearance: none; background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: var(--un-blue-deep); text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.linklike:hover { text-decoration-thickness: 2px; }

.cmodal[hidden] { display: none; }
.cmodal { position: fixed; inset: 0; z-index: 60; }
.cmodal__backdrop { position: absolute; inset: 0; background: rgba(18,33,46,.5); backdrop-filter: blur(1px); }
.cmodal__panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 34rem; background: var(--paper);
  border-radius: 18px 18px 0 0; padding: 1.15rem var(--pad) 2rem;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(18,33,46,.28);
  animation: sheet-up .22s cubic-bezier(.2,.7,.3,1);
}
@media (min-width: 640px) {
  .cmodal__panel { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: var(--radius); max-height: 88vh; }
}
.cmodal__close {
  position: sticky; top: 0; margin-left: auto; display: block;
  background: var(--un-blue-tint); color: var(--un-blue-deep); border: none;
  border-radius: 999px; padding: .4rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
}
.cmodal__close:hover { background: #DBEFFA; }
.cmodal__title { font-family: var(--serif); font-size: var(--t-xl); margin: .2rem 0 .35rem; }
.cmodal__intro { color: var(--ink-soft); font-size: var(--t-sm); margin: 0 0 1.1rem; }

.cform { display: flex; flex-direction: column; gap: .85rem; }
.cform__context-note {
  margin: 0; font-size: var(--t-xs); color: var(--un-blue-deep);
  background: var(--un-blue-tint); border-radius: var(--radius-sm); padding: .45rem .7rem;
}
.cform__hp { position: absolute; left: -5000px; }   /* honeypot: off-screen, not for humans */
.cform__label { display: flex; flex-direction: column; gap: .3rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.cform__opt { font-weight: 400; color: var(--warm-gray); }
.cform input[type="text"], .cform input[type="email"], .cform textarea {
  font: inherit; font-size: var(--t-md); font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm);
  padding: .6rem .7rem; width: 100%;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--un-blue-deep); outline-offset: 1px; border-color: var(--un-blue-deep); }
.cform textarea { resize: vertical; min-height: 5.5rem; }
.cform__submit {
  align-self: flex-start; background: var(--un-blue); color: #fff; border: none;
  border-radius: 999px; padding: .6rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .12s ease;
}
.cform__submit:hover { background: var(--un-blue-deep); }
.cform__status { margin: .2rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); }
.cform__status--err { color: #9A4A00; }
.cform__thanks { padding: 1.25rem 0 .5rem; }
.cform__thanks p { font-family: var(--serif); font-size: var(--t-lg); color: var(--ink); margin: 0 0 1rem; }

/* --- Straw polls (straw-polls.html) ------------------------------------ */
.spolls__intro { color: var(--ink-soft); margin: 0 0 1.75rem; max-width: 60ch; }
.spoll { margin-bottom: 2rem; }
.spoll__title { font-size: var(--t-lg); margin: 0 0 .7rem; }
/* Four columns fit a 360px viewport; the wrapper is the safety net so a long
   name can never push the page into a horizontal scroll. */
.spoll__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spoll__table {
  width: 100%; border-collapse: collapse; font-size: var(--t-sm);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.spoll__table th, .spoll__table td { padding: .55rem .35rem; text-align: center; }
/* The three result headings are longer words than the counts under them, so on a
   narrow screen they, not the numbers, set the column width — keep them small so
   the candidate column keeps enough room for a name on one or two lines. */
.spoll__table thead th {
  font-family: var(--sans); font-size: var(--t-2xs); font-weight: 600; line-height: 1.25;
  color: var(--ink-soft); background: var(--un-blue-tint);
  border-bottom: 1px solid var(--hairline-strong);
}
.spoll__table tbody tr + tr th, .spoll__table tbody tr + tr td { border-top: 1px solid var(--hairline); }
.spoll__table tbody tr:nth-child(even) { background: var(--un-blue-wash); }
.spoll__table .spoll__name {
  text-align: left; font-family: var(--sans); font-weight: 600; color: var(--ink);
  padding-left: .6rem; min-width: 7rem;
}
.spoll__table tbody td { font-variant-numeric: tabular-nums; width: 3.5rem; color: var(--ink); }
@media (min-width: 480px) {
  .spoll__table thead th { font-size: var(--t-xs); }
  .spoll__table th, .spoll__table td { padding: .6rem .5rem; }
  .spoll__table .spoll__name { padding-left: .9rem; min-width: 9rem; }
  .spoll__table tbody td { width: 4.6rem; }
}
.spoll__note { margin: .55rem 0 0; font-size: var(--t-xs); color: var(--warm-gray); }
.spoll__figure { margin: 2rem 0 0; }
.spoll__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.spoll__figure figcaption {
  font-size: var(--t-xs); color: var(--ink-soft); padding: .55rem .2rem 0; max-width: 60ch;
}
.spoll__credit { display: block; font-size: var(--t-2xs); color: var(--warm-gray); margin-top: .3rem; }
.spoll__back { margin: 2rem 0 0; font-size: var(--t-sm); }

/* Utility */
.muted { color: var(--warm-gray); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
