/* Pax Memoria identity, taken from paxmemoria.org (src/index.css) and the
   identity guide: light by default like the site (cream, green, teal, gold
   fills, ink headings), dark when the visitor prefers dark (ink green,
   peach accent, sage). Thmanyah Sans for text, Thmanyah Serif Display for
   Arabic headings, IBM Plex Mono for Latin labels. The layout is the
   unused PledgeMeter design from the NAWA Media Figma file.
   web/fonts is a local link to the site's self-hosted Thmanyah files (not in
   git; the licence covers Pax's own pages only). */
:root {
  --base: #F5F1E9;
  --surface: #FCFAF5;
  --border: #E3DBCB;
  --text: #33433F;
  --head: #1F2C2A;
  --muted: #3F6D71;
  --accent: #3B7350;          /* links and accent text */
  --fill: #E1CA83;            /* solid fills, ink text on top */
  --on-fill: #1F2C2A;
  --badge: #46777B;           /* badges, white text */
  --hero-bg: #3B7350;
  --hero-text: #F5F1E9;
  --hero-accent: #E1CA83;
  --footer-bg: #46777B;
  --footer-text: #FFFFFF;
  --footer-band: #E1CA83;
  --map: #46777B;
  --bar-kept: #3B7350;
  --bar-not-kept: #EDA084;
  --bar-uncertain: #E1CA83;
  --bar-pending: #46777B;
  --track: #E3DBCB;
  --shadow: 0 20px 25px -5px rgba(31, 44, 42, 0.12), 0 10px 10px -5px rgba(31, 44, 42, 0.06);
  --font-sans: "Thmanyah Sans", system-ui, sans-serif;
  --font-display: "Thmanyah Serif Display", "Thmanyah Sans", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --base: #10201E;
    --surface: #172926;
    --border: #24403A;
    --text: #C7D2CE;
    --head: #FFFFFF;
    --muted: #8FAE9C;
    --accent: #EDA084;
    --fill: #EDA084;
    --on-fill: #10201E;
    --badge: #5A7D6E;
    --hero-bg: #021317;
    --hero-text: #FFFFFF;
    --hero-accent: #EDA084;
    --footer-bg: #0A1613;
    --footer-text: #8FAE9C;
    --footer-band: #24403A;
    --map: #8FAE9C;
    --bar-kept: #8FAE9C;
    --bar-not-kept: #EDA084;
    --bar-uncertain: #E1CA83;
    --bar-pending: #5A7D6E;
    --track: #24403A;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    color-scheme: dark;
  }
}


/* Design of 17 Nov 2026: a soft fill for nested cards and status aliases.
   Status colours follow the meter's rows: achieved and progress seen are
   "kept", stalled and no progress are "not kept", cannot be verified is
   "uncertain", too early is "pending". */
:root {
  --soft: #EFE9DC;
  --on-badge: #FFFFFF;
  --kept: var(--bar-kept);
  --on-kept: #FFFFFF;
  --notkept: var(--bar-not-kept);
  --on-notkept: #1F2C2A;
  --uncertain: var(--bar-uncertain);
  --on-uncertain: #1F2C2A;
  --pending: var(--bar-pending);
  --on-pending: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --soft: #1D332F;
    --on-badge: #FFFFFF;
    --on-kept: #10201E;
    --on-notkept: #10201E;
    --on-uncertain: #10201E;
    --on-pending: #FFFFFF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }
h1, h2, h3, h4 { color: var(--head); margin: 0; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-family: var(--font-display); font-weight: 700; }
a { color: var(--accent); }
a:hover { color: var(--head); }
:focus-visible { outline: 3px solid var(--head); outline-offset: 2px; border-radius: 4px; }
bdi { unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
a.t { min-height: 44px; display: inline-flex; align-items: center; }
.note { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.eyebrow { font-family: var(--font-sans) !important; font-size: 14px !important; font-weight: 600 !important; color: var(--muted); }
.ico { flex: none; vertical-align: middle; }
html[dir="rtl"] .ico.mirror { transform: scaleX(-1); }
html[dir="ltr"] .ico.fwd { transform: scaleX(-1); }
[hidden] { display: none !important; }

/* Disclosures: native <details>, chevron turns when open */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] > summary .chev { transform: rotate(180deg); }
details > summary { color: var(--accent); }

.draft-banner { background: var(--fill); color: var(--on-fill); text-align: center; padding: 6px 16px; font-size: 13px; font-weight: 500; }

/* Slim header: the lockup, the observatory's name, method and language */
.topbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; min-height: 60px; padding-block: 4px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; align-items: center; text-decoration: none; color: var(--head); min-width: 0; }
.lockup { direction: ltr; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--head); text-decoration: none; white-space: nowrap; }
.lockup span { font-weight: 300; color: var(--accent); margin-left: 4px; }
.site-name { font-size: 18px; font-weight: 700; white-space: nowrap; }
html[lang="ar"] .site-name { font-family: var(--font-display); }
.top-links { display: flex; align-items: center; gap: 16px; }
.method-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.method-link:hover, .foot-link:hover { text-decoration: underline; }
.lang { font: inherit; font-size: 14px; font-weight: 600; border-radius: 9999px; padding: 0 18px; min-height: 44px; cursor: pointer; background: var(--fill); color: var(--on-fill); border: 0; }

/* Country tabs under the header */
.country-tabs { background: var(--surface); border-bottom: 1px solid var(--border); }
.country-tabs .wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.country-tabs a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; text-decoration: none; color: var(--accent); border-bottom: 4px solid transparent; font-size: 17px; }
.country-tabs a:hover { color: var(--head); }
.country-tabs a[aria-current="page"] { font-weight: 700; color: var(--head); border-bottom-color: var(--accent); }

/* The project line (was the banner), compact */
.intro { border-bottom: 1px solid var(--border); padding: 14px 0 16px; }
.intro-top { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.badge { display: inline-flex; align-items: center; background: var(--badge); color: var(--on-badge); font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 2px 12px; border-radius: 9999px; }
.intro .latin { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .intro .latin { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 500; }
.intro .lede { max-width: 820px; font-size: 15px; line-height: 1.85; margin: 6px 0 0; color: var(--text); }

main.wrap { padding-top: 24px; padding-bottom: 64px; }

/* ---------- Country page ---------- */
.country { display: flex; flex-direction: column; gap: 36px; }
.c-head { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: stretch; }
.c-intro { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.c-intro h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.3; }
.c-intro .note { font-size: 15px; margin: 0; }
.c-sentence { margin: 0; font-size: 18px; line-height: 1.8; color: var(--head); max-width: 760px; }
.overall { flex: 1 1 340px; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.level-line { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: var(--head); line-height: 1.4; }
.overall .gauge.big { width: min(100%, 420px); height: auto; margin: 0 auto; }
.overall .note { margin: 0; font-size: 14px; }
.gauge { display: block; direction: ltr; }
.gauge-wrap { position: relative; }

.c-body { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.c-list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.c-feed { flex: 1 1 280px; min-width: 0; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.list-head h2 { font-size: 28px; }
.list-head select { margin-inline-start: auto; font: inherit; font-size: 14px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--head); cursor: pointer; max-width: 100%; }
.cond-head { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); font-family: var(--font-sans) !important; }
.count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.prows { display: flex; flex-direction: column; gap: 8px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.5em 20px; gap: 14px; align-items: center; min-height: 72px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text); }
.prow:hover { border-color: var(--accent); color: var(--text); }
.prow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta { font-size: 13px; color: var(--muted); }
.prow-title { font-size: 16px; font-weight: 600; color: var(--head); line-height: 1.5; }
.prow-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.conf-s { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--head); }
.prow-when { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.when-l { font-size: 12px; color: var(--muted); }
.prow-when .mono { font-weight: 500; color: var(--head); }
.prow .fwd { color: var(--muted); }

/* Status pills: filled, icon and word */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 9999px; padding: 3px 12px 3px 10px; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1.5px solid var(--edge, transparent); }
.pill.big { gap: 10px; padding: 6.5px 20.5px 6.5px 16.5px; font-size: 24px; font-weight: 700; border-width: 3px; }
.pill.s-achieved, .pill.s-progress_seen { background: var(--kept); color: var(--on-kept); }
.pill.s-stalled, .pill.s-no_progress { background: var(--notkept); color: var(--on-notkept); }
.pill.s-unverifiable { background: var(--uncertain); color: var(--on-uncertain); }
.pill.s-too_early { background: var(--pending); color: var(--on-pending); }
.pill.s-not_assessed { background: transparent; color: var(--head); border: 1.5px dashed var(--muted); }

/* Latest updates beside the pledges */
.feed { display: flex; flex-direction: column; gap: 8px; }
.feed-title { font-size: 22px; }
.feed .note { margin: 0; }
.feed-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.feed-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.feed-item p { margin: 0; }
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.feed-kind { color: var(--muted); }
.feed-claim { color: var(--head); line-height: 1.6; }
.feed-foot a.t { min-height: 32px; }
.feed-more > summary { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 600; margin-top: 4px; }
.feed-more[open] > summary { margin-bottom: 8px; }

/* Announcement chip: squared, prefixed «الإعلان:», solid border */
.ann-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--head); color: var(--head); border-radius: 8px; padding: 2px 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ann-chip.ann-notKept { background: var(--notkept); color: var(--on-notkept); }
.ann-chip.ann-kept { background: var(--kept); color: var(--on-kept); }

/* Closed rows with a one-line summary */
.c-more { display: flex; flex-direction: column; gap: 10px; }
.c-more > h2 { font-size: 28px; margin-bottom: 4px; }
details.row { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
details.row > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 20px; color: var(--text); }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-text strong { color: var(--head); }
.row-sum { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.row[open] .row-sum { white-space: normal; }
.row-body { padding: 0 20px 18px; }
.row-body > p { margin: 0 0 8px; font-size: 15px; }
.row-body .pbox { background: var(--soft); border: 0; border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; }
.row-body .pbox h3, .row-body > h3 { font-size: 16px; margin-bottom: 6px; }
.row-body .pbox p { margin: 6px 0 0; font-size: 15px; }
.row-body .oblig-box .proc h3, .row-body .oblig-box .proc .proc-count { display: none; }
.row-body .oblig-box h3 { font-size: 16px; margin: 10px 0 6px; }
.docs-map { text-align: center; margin-bottom: 12px; }
.shape { height: 170px; display: flex; align-items: center; justify-content: center; }
.shape svg { max-height: 170px; max-width: 240px; fill: var(--map); }
.noshape { font-family: var(--font-display); font-size: 36px; color: var(--map); }
.docs-map .name { color: var(--accent); font-weight: 700; margin-top: 6px; }
.subs { padding-inline-start: 18px; margin: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.tag { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 9999px; border: 1px solid var(--border); margin-inline-start: 6px; }
.omission { border-inline-start: 2px solid var(--accent); padding: 2px 14px; margin-bottom: 12px; }
.omission h3 { font-size: 16px; }
.omission p { margin: 4px 0; font-size: 15px; }
.scales { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 900px) { .scales { grid-template-columns: 1fr 1fr; } }
.scale h3 { font-size: 16px; }
.scale dl { margin: 0; font-size: 14px; }
.scale dt { color: var(--head); font-weight: 700; margin-top: 8px; }
.scale dd { margin: 0; }
.more-link { font-weight: 700; }

/* Procedural obligations, support table, report findings */
.oblig { margin: 0; display: grid; gap: 4px 24px; grid-template-columns: 1fr; font-size: 14px; }
.oblig dt { color: var(--text); }
.oblig dd { margin: 0 0 10px; color: var(--head); font-weight: 500; }
.oblig dd details { margin-top: 4px; }
.force { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 9999px; padding: 0 8px; margin-inline-start: 6px; white-space: nowrap; }
.proc-count { font-size: 15px; color: var(--head); }
.pbox details > summary, .oblig details > summary { font-size: 13px; font-weight: 500; min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; }
.findings { margin: 10px 0 0; display: grid; grid-template-columns: 1fr; gap: 2px 20px; font-size: 14px; }
@media (min-width: 900px) { .findings { grid-template-columns: 1fr 3fr; } }
.findings dt { color: var(--head); font-weight: 700; }
.findings dd { margin: 0 0 8px; }
table.support { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
table.support th { text-align: start; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); padding: 6px 8px; }
table.support td { border-bottom: 1px solid var(--border); padding: 8px; vertical-align: top; color: var(--head); }
table.support td:first-child { width: 34%; }
.cid { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.sup { display: inline-block; font-size: 13px; font-weight: 700; color: var(--head); padding: 2px 10px; border-radius: 12px; border: 2px dashed var(--muted); }
@media (max-width: 640px) { table.support td:first-child { width: auto; } table.support, table.support tbody, table.support tr, table.support td { display: block; } table.support thead { display: none; } table.support tr { border-bottom: 1px solid var(--border); padding: 6px 0; } table.support td { border: 0; padding: 2px 0; } }

/* ---------- Pledge page ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pp-main { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.pp-main > section { display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: 12px; }
.pp-main > section > h2 { font-size: 24px; }
.pp-main > section > .note { margin: 0; font-size: 15px; }
.crumb { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.pp-head h1 { font-size: clamp(24px, 4.2vw, 38px); line-height: 1.35; }

/* Side rail: jump links, print, method. On narrow screens it sits on top as a
   wrapping jump list. */
.rail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
.rail-nav { padding: 10px 16px; width: 100%; }
.rail-nav h2 { font-family: var(--font-sans) !important; font-size: 13px; font-weight: 600; color: var(--muted); }
.rail-nav ol { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 15px; }
.print-btn { font: inherit; font-weight: 600; background: var(--accent); color: var(--surface); border: 0; border-radius: 12px; min-height: 44px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (min-width: 1000px) {
  .pp { grid-template-columns: minmax(0, 1fr) 250px; column-gap: 40px; }
  .rail { grid-column: 2; grid-row: 1; flex-direction: column; align-items: stretch; position: sticky; top: 16px; align-self: start; }
  .rail-nav ol { flex-direction: column; font-size: 16px; }
  .pp-main { grid-column: 1; grid-row: 1; }
}

/* The answer panel */
.answer { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px !important; }
.marks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.conf { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--head); color: var(--head); border-radius: 9999px; padding: 8px 18px; font-size: 18px; line-height: 1.5; }
.conf-l { font-size: 13px; color: var(--muted); }
.answer-sent { margin: 0; font-size: 19px; line-height: 1.8; color: var(--head); }
.answer-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; font-size: 13px; color: var(--muted); }
.answer-foot a.t { font-size: 14px; }

/* Timeline: today at the marker, outlined track, ends below */
.tl2 { display: flex; flex-direction: column; gap: 4px; }
.tl2-today { position: relative; height: 22px; font-size: 13px; font-weight: 600; color: var(--head); }
.tl2-today span { position: absolute; white-space: nowrap; padding-inline: 8px; }
.tl2-track { position: relative; height: 10px; background: var(--track); border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--muted); }
.tl2-track i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--muted); border-radius: 9999px; }
.tl2-track b { position: absolute; top: -5px; width: 4px; height: 20px; margin-inline-start: -2px; background: var(--head); border-radius: 2px; }
.tl2-ends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; font-size: 13px; color: var(--muted); }
.tl-note { margin: 0; font-size: 13px; }

/* Figures: target, deadline and baseline are rows under the quote at every
   width; the phone only stacks them. */
.kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
.kv > div { display: contents; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.kv b { color: var(--head); font-weight: 600; }
@media (max-width: 699px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }

/* Support the pledge depends on: a dashed block, apart from the status */
.support-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 2px dashed var(--muted); border-radius: 12px; padding: 8px 14px; font-size: 15px; }
.support-l { font-size: 12px; font-weight: 600; color: var(--muted); }
.support-v { color: var(--head); font-weight: 700; }
.support-n { color: var(--text); }
.support-mark a.t { font-size: 14px; }

/* Source chips: accent border, 44px hit area */
.src { position: relative; font-family: var(--font-sans); font-size: 12px; text-decoration: none; border: 1px solid var(--accent); border-radius: 6px; padding: 1px 6px; margin-inline-start: 4px; background: var(--surface); white-space: nowrap; }
.src::after { content: ""; position: absolute; inset: -12px; }

/* The quote */
.quote-fig { margin: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.qmark { fill: var(--fill); }
.quote { margin: 0; font-size: 20px; line-height: 1.9; color: var(--head); }
.quote-src { font-size: 14px; color: var(--muted); border-inline-start: 2px dashed var(--border); padding-inline-start: 12px; }
.quote-fig .note { font-size: 14px; }
.doc-links { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 14px; color: var(--muted); }
.facts { font-size: 14px; color: var(--muted); margin: 0; }

/* How we know: numbered source cards, the full assessment, the ledger */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.src-card { padding: 8px 16px; display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.src-n { font-size: 14px; font-weight: 500; color: var(--muted); }
.src-b { display: flex; flex-direction: column; min-width: 0; }
.src-t { color: var(--head); padding-block: 8px; }
.assessment-full p { margin: 0 0 10px; font-size: 16px; line-height: 1.9; }
.earlier li { margin-bottom: 10px; font-size: 15px; }
.ledger-box { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.ledger-box h3 { font-size: 18px; }
.led-q { margin: 0; font-size: 15px; color: var(--muted); }
.led-sum { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.led-total { flex: 1 1 300px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.led-num { font-size: 28px; font-weight: 700; color: var(--head); line-height: 1.3; }
.led-off { flex: 1 1 300px; min-width: 0; background: var(--soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.led-off-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--head); }
.led-na { font-size: 12px; font-weight: 600; color: var(--muted); border: 1.5px dashed var(--muted); border-radius: 8px; padding: 0 8px; }
.led-off li { margin-top: 6px; }
.led-v { font-weight: 700; color: var(--head); white-space: nowrap; }
details.mini > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; text-decoration: underline; }
details.mini p { margin: 0 0 8px; font-size: 15px; }
details.grp { border-top: 1px solid var(--border); }
details.grp > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; color: var(--text); }
.grp-h { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.grp-h strong { color: var(--head); }
.grp-h .ico { color: var(--muted); }
.grp-h .ico.ok { color: var(--kept); }
.grp-st { font-size: 13px; color: var(--head); border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 0 8px; }
p.grp-line { margin: 0; border-top: 1px solid var(--border); min-height: 52px; display: flex; align-items: center; }
/* The ledger table: a real table with a header row; stacked, labelled rows
   on a phone. */
.led-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
.led-table th, .led-table td { text-align: start; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--border); }
.led-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.led-table tbody th { font-weight: 600; color: var(--head); width: 30%; }
.led-table td { color: var(--head); }
.led-table td:nth-of-type(1) { white-space: nowrap; }
.led-table td:nth-of-type(3) { min-width: 8em; }
.led-name > summary { display: inline-flex; align-items: flex-start; gap: 4px; color: var(--head); }
.led-name .chev { margin-top: 4px; color: var(--muted); }
.led-name p { margin: 6px 0 0; font-weight: 400; }
.led-st { display: inline-block; border: 1px solid var(--border); background: var(--surface); color: var(--head); border-radius: 8px; padding: 0 8px; white-space: nowrap; }
.led-recon { display: block; margin-top: 4px; }
.led-table details.mini > summary { min-height: 32px; }
.led-table ul { font-size: 13px; }
.led-table li { margin-bottom: 4px; }
@media (max-width: 720px) {
  .led-table, .led-table tbody, .led-table tr, .led-table th, .led-table td { display: block; width: auto !important; }
  .led-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .led-table tr { background: var(--soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
  .led-table th, .led-table td { border: 0; padding: 2px 0; }
  .led-table td { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .led-table td::before { content: attr(data-label); font-size: 13px; line-height: 1.5; color: var(--muted); }
  .led-table .cell { min-width: 0; }
  .led-table td:empty { display: none; }
}
.sat { display: inline-flex; align-items: center; gap: 6px; }
.sat .ico { color: var(--kept); }
.aggr li { margin-bottom: 8px; font-size: 14px; }
.watch li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 15px; }

/* How we follow this pledge: one open row, the next review in its summary */
.mon-body { display: flex; flex-direction: column; gap: 16px; }
.mon-body h3 { font-size: 15px; margin-bottom: 6px; }
.pace { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pace-svg { display: block; width: 100%; height: 120px; overflow: visible; }
.pace-axis { stroke: var(--border); stroke-width: 1.5; }
.pace-req { stroke: var(--head); stroke-width: 2.5; }
.pace-half { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; }
.pace-today { stroke: var(--head); stroke-width: 1.5; }
.mon-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 14px; line-height: 1.7; }
.mon-facts > div { display: contents; }
.mon-facts dt { font-weight: 700; color: var(--head); }
.mon-facts dd { margin: 0; }
.mon-routes { display: flex; flex-direction: column; }
.mon-routes > li { border-top: 1px solid var(--border); }
.mon-routes > li:last-child { border-bottom: 1px solid var(--border); }
.mon-route > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; color: var(--text); border-inline-start: 4px solid transparent; padding-inline-start: 10px; }
.mon-route.mon-main > summary { border-inline-start-color: var(--mark, var(--badge)); }
.mon-rh { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.mon-kind { color: var(--head); }
.mon-chip { background: var(--badge); color: var(--on-badge); font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 9999px; border: 1.5px solid var(--edge, transparent); }
.mon-route p, .mon-src { margin: 0 0 10px; padding-inline-start: 14px; font-size: 14px; line-height: 1.7; }
.mon-src { padding-inline-start: 32px; }
.mon-proxy { background: var(--soft); border-inline-start: 4px solid var(--mark, var(--badge)); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.mon-proxy strong { color: var(--head); }
.mon-proxy p { margin: 4px 0 0; }
.mon-next { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.mon-next strong { color: var(--head); font-size: 16px; }
@media (max-width: 640px) { .mon-facts { grid-template-columns: 1fr; gap: 2px; } .mon-facts dd { margin-bottom: 8px; } }
/* Small timelines: the pace line and announcement dates */
.tl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tl-track { position: relative; height: 6px; background: var(--track); border-radius: 9999px; }
.tl-track i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--badge); border-radius: 9999px; }
.tl-track b { position: absolute; top: 50%; width: 12px; height: 12px; margin-inline-start: -6px; transform: translateY(-50%); border-radius: 50%; background: var(--head); border: 2px solid var(--surface); }
.pace-tl { margin-top: 4px; }
@media (max-width: 480px) { .pace-tl { grid-template-columns: 1fr; } .pace-tl .tl-track { order: -1; } }

/* What's new: announcements as rows */
.ann-rows { display: flex; flex-direction: column; gap: 10px; }
details.ann-row { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
details.ann-row > summary { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 20px; color: var(--text); }
.ann-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ann-meta { font-size: 14px; color: var(--muted); }
.ann-meta b { color: var(--head); }
.ann-claim { font-size: 15px; }
.ann-body { padding: 0 20px 14px; }
.ann-body .note { margin: 6px 0 0; }
.ann-f { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; font-size: 15px; }
.ann-f > div { min-width: 0; }
.ann-f dt { font-size: 13px; color: var(--muted); }
.ann-f dd { margin: 0; }
.ann-f .ours { background: var(--soft); border-inline-start: 4px solid var(--mark, var(--badge)); border-radius: 10px; padding: 8px 12px; }
.ann-f .ours dd { display: flex; flex-direction: column; gap: 2px; }
.ours-v { font-weight: 600; color: var(--head); }
.ours-n { font-size: 14px; color: var(--text); }
details.ann-all > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 600; }
details.ann-all[open] > summary { margin-bottom: 10px; }
.ann-tl .tl-track i { background: var(--muted); }
.ann-tl-follow .tl-track { background: repeating-linear-gradient(90deg, var(--track) 0 6px, transparent 6px 10px); }

/* ---------- Methodology page ---------- */
.sec-title { display: inline-block; position: relative; font-size: clamp(24px, 4vw, 30px); line-height: 1.3; padding-bottom: 10px; margin-bottom: 20px; }
.sec-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 2px; background: var(--badge); }
.pbox { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-bottom: 16px; }
.pbox h3 { font-size: 17px; margin-bottom: 8px; }
.pbox p { margin: 8px 0 0; font-size: 15px; }
.back { color: var(--accent); font-weight: 500; }
.method-page { max-width: 760px; }
.method-page .lede-m { font-size: 18px; line-height: 1.8; }
.method-page .now { font-size: 15px; }
.mtoc ol { columns: 2; column-gap: 32px; padding-inline-start: 20px; margin: 0 0 24px; }
.mtoc a { color: var(--accent); }
.msec { padding-top: 8px; margin-bottom: 28px; scroll-margin-top: 16px; }
.msec h3 { font-size: 21px; margin-bottom: 8px; }
.msec p { line-height: 1.85; margin: 0 0 12px; }
.mscale { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin: 0 0 14px; }
.mscale dt { font-weight: 700; color: var(--head); }
.mscale dd { margin: 0; }
.mlist { margin: 0 0 14px; padding-inline-start: 22px; line-height: 1.8; }
@media (max-width: 600px) { .mtoc ol { columns: 1; } .mscale { grid-template-columns: 1fr; gap: 2px; } .mscale dd { margin-bottom: 10px; } }

footer { background: var(--footer-bg); color: var(--footer-text); border-top: 4px solid var(--footer-band); }
footer .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; font-size: 14px; }
footer .lockup { color: #FFFFFF; }
footer .lockup span { color: var(--hero-accent); }
.foot-link { color: var(--footer-text); font-weight: 700; }

/* ---------- Narrow screens (390px) ---------- */
@media (max-width: 720px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "status when"; gap: 8px 12px; padding: 12px 14px; }
  .prow-main { grid-area: main; }
  .prow-status { grid-area: status; }
  .prow-when { grid-area: when; text-align: end; }
  .prow .fwd { display: none; }
  .answer { padding: 14px; }
  .pill.big { font-size: 20px; padding: 6px 16px 6px 13px; }
  .conf { font-size: 16px; padding: 6px 12px; }
  .answer-sent { font-size: 17px; }
  .quote-fig { padding: 14px 16px; }
  .quote { font-size: 18px; }
  .ledger-box { padding: 16px; }
  details.row > summary, details.ann-row > summary { padding: 8px 14px; }
  .row-body, .ann-body { padding: 0 14px 14px; }
  details.ann-row > summary { flex-wrap: wrap; gap: 8px; }
  details.ann-row > summary .chev { margin-inline-start: auto; }
  .ann-sum { flex-basis: 100%; order: 2; }
  .list-head select { margin-inline-start: 0; }
  .site-name { font-size: 16px; }
  .lockup { font-size: 16px; }
  .top-links { gap: 10px; }
}

/* ---------- Print: everything open, no navigation, no colour ----------
   As the Marks board's print view: every fill white, every text and border
   black, in light and dark alike (this block comes after both). Status
   pills and chips keep their shape and get a black edge (--edge); marks
   drawn in a text colour on a track turn into outlines. The gauge keeps its
   drawing; its segments get a black outline, so the needle and the level
   above it carry the level. */
@media print {
  :root {
    --base: #FFFFFF; --surface: #FFFFFF; --soft: #FFFFFF; --border: #000000; --text: #000000; --head: #000000; --muted: #000000; --accent: #000000;
    --fill: #FFFFFF; --on-fill: #000000; --badge: #FFFFFF; --on-badge: #000000;
    --kept: #FFFFFF; --on-kept: #000000; --notkept: #FFFFFF; --on-notkept: #000000; --uncertain: #FFFFFF; --on-uncertain: #000000; --pending: #FFFFFF; --on-pending: #000000;
    --bar-kept: #FFFFFF; --bar-not-kept: #FFFFFF; --bar-uncertain: #FFFFFF; --bar-pending: #FFFFFF; --track: #FFFFFF;
    --hero-bg: #FFFFFF; --hero-text: #000000; --hero-accent: #000000; --footer-bg: #FFFFFF; --footer-text: #000000; --footer-band: #000000; --map: #000000;
    --shadow: none; --edge: #000000; --mark: #000000;
    color-scheme: light;
  }
  .topbar .top-links, .country-tabs, .rail, .draft-banner, footer .foot-link { display: none !important; }
  body { background: #fff; color: #000; }
  footer .lockup, footer .lockup span { color: #000; }
  .card, details.row, details.ann-row, .pbox, .led-table tr { break-inside: avoid; }
  details > summary .chev { display: none; }
  a { color: inherit; }
  .gauge .bseg { stroke: #000; stroke-width: 1.5; }
  .tl2-track { box-shadow: inset 0 0 0 1px #000; }
  .tl2-track i, .tl-track i, .ann-tl .tl-track i { background: #fff; }
  .tl2-track b, .tl-track b { background: #fff; border: 2px solid #000; }
  .tl-track { box-shadow: inset 0 0 0 1px #000; }
  .lang { border: 1.5px solid #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
