@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #0b1019;
  --surface: #111925;
  --control: #151f2d;
  --hover: #1b283a;
  --line: #273446;
  --line-strong: #3b4b62;
  --ink: #edf2fa;
  --muted: #a2b1c7;
  --accent: #a7bbff;
  --completed: #75d9ba;
  --ongoing: #edc989;
  --not-completed: #f6a6a8;
  --pending: #a7b3c9;
  --advocated: #95c8fb;
  --radius: 14px;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--base);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.14; font-weight: 600; }
h2 { font-size: clamp(1.28rem, 2.6vw, 1.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.05rem; letter-spacing: -.02em; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .7rem; background: var(--surface); }

.shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2.4rem;
  padding: 1.8rem 1.05rem 1.3rem; border-right: 1px solid var(--line); background: #0d141e;
}
.wordmark {
  display: flex; align-items: center; gap: .62rem; padding-inline: .35rem; color: var(--ink);
  font-size: .98rem; font-weight: 650; text-decoration: none; white-space: nowrap; letter-spacing: -.025em;
}
.mark {
  flex: 0 0 1.8rem; height: 1.8rem; display: grid; place-items: center;
  border: 1px solid #44577a; border-radius: 7px; background: #1a2941;
}
.mark::before {
  content: ""; width: .67rem; height: .67rem; border: 1px solid #b0c3ff;
  box-shadow: inset 0 0 0 2px #1a2941; background: #b0c3ff; transform: rotate(45deg);
}
nav { display: grid; gap: .32rem; }
nav a {
  display: flex; align-items: center; gap: .64rem; padding: .6rem .66rem; min-height: 2.7rem;
  border: 1px solid transparent; border-radius: 8px; color: var(--muted);
  font-size: .86rem; text-decoration: none; white-space: nowrap;
}
nav a:hover { background: var(--control); color: var(--ink); }
nav a[aria-current="page"] { background: #1a263a; border-color: #2f4161; color: #d8e2ff; font-weight: 600; }
.nav-icon { position: relative; display: inline-block; width: .86rem; height: .86rem; flex: 0 0 .86rem; border: 1px solid currentColor; border-radius: 2px; opacity: .82; }
.nav-pledges::before, .nav-method::before { position: absolute; content: ""; left: 2px; right: 2px; top: 3px; height: 1px; background: currentColor; }
.nav-pledges::after { position: absolute; content: ""; left: 2px; right: 4px; top: 6px; height: 1px; background: currentColor; }
.nav-parties { border-radius: 50%; }
.nav-parties::before, .nav-parties::after { position: absolute; content: ""; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.nav-parties::before { left: 2px; }
.nav-parties::after { right: 2px; }
.nav-method { border-radius: 50%; }
.nav-method::before { top: 6px; left: 5px; right: auto; width: 1px; height: 3px; box-shadow: 0 -3px 0 currentColor; }
.sidebar-context { margin: auto .5rem 0; font-size: .76rem; color: var(--muted); }

main { width: min(100%, 1320px); padding: clamp(1.15rem, 3vw, 3rem); margin-inline: auto; min-width: 0; }
.hero {
  isolation: isolate; position: relative; overflow: hidden;
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  padding: clamp(1.4rem, 3.4vw, 2.65rem); min-height: 235px; margin-bottom: 1.15rem;
  border: 1px solid #293a55; border-radius: 18px; background:
    radial-gradient(ellipse at 86% 10%, #263b64 0%, transparent 55%),
    linear-gradient(115deg, #141f31, #142034 62%, #111b2b);
}
.hero::before {
  z-index: -1; position: absolute; content: ""; width: 430px; height: 430px; top: -226px; right: -32px;
  border-radius: 50%; border: 1px solid #9bb1ed38;
  box-shadow: 0 0 0 29px #9bb1ed13, 0 0 0 58px #9bb1ed0d, 0 0 0 87px #9bb1ed0a;
  mask-image: linear-gradient(to bottom left, #000, transparent 86%); pointer-events: none;
}
.eyebrow { margin: 0 0 .55rem; color: #c1cffa; font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 5vw, 4.35rem); letter-spacing: -.065em; line-height: 1.01; }
.intro { margin: .8rem 0 0; color: #b6c4db; font-size: .97rem; }
.page-heading { margin-bottom: 1.15rem; padding: .55rem 0 .6rem; }
.page-heading h1, .screen-title { font-size: clamp(1.9rem, 4.1vw, 3.2rem); line-height: 1.12; letter-spacing: -.045em; }
.page-heading .intro { margin-top: .45rem; }
.edition {
  display: grid; flex: 0 0 auto; align-content: start; min-width: 150px; gap: .12rem;
  border-left: 1px solid #627ba16b; padding: .05rem 0 .05rem 1.05rem; color: #c0cbe0;
  font-size: .84rem; font-variant-numeric: tabular-nums;
}
.edition strong { font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1; letter-spacing: -.06em; color: var(--ink); }
.edition a { margin-top: .34rem; font-size: .76rem; white-space: nowrap; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1rem, 2vw, 1.45rem); }
.screen { scroll-margin-top: 1rem; }
.overview { margin-bottom: 1rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem 1rem; }
.section-head > a, .section-head > time { font-size: .83rem; }
.section-head > time, .scope, .result-count, .lead { color: var(--muted); }
.view-buttons { display: flex; gap: .22rem; border: 1px solid var(--line); border-radius: 9px; background: var(--base); padding: .18rem; }
.view-buttons button {
  padding: .44rem .68rem; min-height: 2rem; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: .79rem; line-height: 1.25; text-align: left;
}
.view-buttons button:hover { color: var(--ink); }
.view-buttons button[aria-pressed="true"] { background: var(--hover); border-color: #354662; color: #e2eaff; }
.status-grid { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.status-card {
  --status: var(--accent);
  flex: 1 1 125px; min-width: 0; display: grid; align-content: start; gap: .22rem; text-align: left;
  padding: .65rem .78rem; background: var(--control); border: 1px solid var(--line); border-radius: 9px;
}
.status-card strong { font-size: 1.65rem; line-height: 1.14; letter-spacing: -.045em; font-weight: 650; font-variant-numeric: tabular-nums; }
.status-card[aria-pressed="true"] { border-color: var(--status); background: #1b293e; }
.status-card:hover { border-color: var(--status); }
.status-name { display: flex; align-items: baseline; gap: .37rem; color: #c5d1e3; font-size: .78rem; }
.completed { --status: var(--completed); }
.ongoing { --status: var(--ongoing); }
.planned { --status: #b0bdf0; }
.not-started, .broad-goal, .wording-unverified { --status: #b0bdcf; }
.stalled { --status: #eda987; }
.partly-delivered { --status: #d4b9f0; }
.not-completed { --status: var(--not-completed); }
.other, .pending, .advocacy-pending { --status: var(--pending); }
.advocated { --status: var(--advocated); }
.dot { display: inline-block; flex: 0 0 .43rem; width: .43rem; height: .43rem; border-radius: 50%; margin-right: .12rem; background: var(--status); }
.distribution { display: flex; height: .3rem; margin-top: .8rem; gap: 2px; overflow: hidden; border-radius: 6px; background: var(--line); }
.distribution span { background: var(--status); }
.scope, .result-count { font-size: .81rem; }
.status-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .42rem .75rem; margin-top: .55rem; }
.scope { margin: 0; }
.region-scope { margin: -.55rem 0 .8rem; }
.coverage-scope { margin-bottom: .75rem; }
.status-controls select { min-height: 2rem; padding-block: .26rem; }
.tracker-note { margin: .65rem 0 0; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.tracker-note strong { color: var(--ink); font-weight: 600; }

.register-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .65fr); align-items: center; gap: .8rem; }
.register-head .section-head { justify-content: start; }
.result-count { margin: 0; font-variant-numeric: tabular-nums; }
.search { position: relative; display: block; }
.search-icon { position: absolute; top: .83rem; left: .8rem; width: .66rem; height: .66rem; border: 1px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { position: absolute; content: ""; top: .53rem; left: .48rem; width: .32rem; height: 1px; background: var(--muted); transform: rotate(46deg); }
input[type="search"], select, .button {
  min-width: 0; min-height: 2.5rem; padding: .46rem .67rem; border: 1px solid var(--line-strong);
  border-radius: 7px; background: var(--control); font-size: .84rem;
}
input[type="search"] { width: 100%; padding-left: 2.05rem; }
input::placeholder { color: var(--muted); opacity: 1; }
select { width: 100%; text-overflow: ellipsis; }
.button { font-weight: 550; white-space: nowrap; }
.button:hover:not(:disabled) { background: var(--hover); border-color: var(--accent); }
.button:disabled { opacity: .54; cursor: default; }
.reset { color: #c4cee3; }
.filters { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: .6rem; margin: .85rem 0 1.05rem; }
.filters label { display: grid; gap: .24rem; min-width: 0; color: var(--muted); font-size: .78rem; font-weight: 550; }
.filters:has(#topic-filter[hidden]) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; }

.pledge { border: 1px solid var(--line); border-radius: 8px; margin-bottom: .35rem; background: #101824; }
.pledge > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .85rem;
  min-height: 3.65rem; padding: .63rem .83rem; list-style: none;
}
.pledge > summary::-webkit-details-marker, .promise-notes > summary::-webkit-details-marker,
.method-detail summary::-webkit-details-marker { display: none; }
.pledge > summary:hover, .pledge[open] > summary { background: var(--control); border-radius: 7px; }
.pledge-title { display: block; font-size: .9rem; font-weight: 550; line-height: 1.4; }
.pledge-meta { display: block; margin-top: .13rem; color: var(--muted); font-size: .74rem; }
.promise-badges { display: flex; flex-direction: column; align-items: flex-end; gap: .22rem; }
.pill {
  color: var(--status); padding: .16rem .5rem; border: 1px solid color-mix(in srgb, var(--status), transparent 63%);
  border-radius: .35rem; font-size: .73rem; font-weight: 550; text-align: center;
}
.chevron { width: .43rem; height: .43rem; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); color: var(--muted); }
.pledge[open] .chevron { transform: rotate(225deg); }
.detail { padding: .8rem .85rem .55rem; border-top: 1px solid var(--line); }
.detail-finding { margin: 0 0 .35rem; max-width: 68ch; font-size: .9rem; overflow-wrap: anywhere; }
.promise-notes { max-width: 68ch; font-size: .8rem; }
.promise-notes > summary {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem 1rem;
  min-height: 2rem; padding-block: .4rem; list-style: none;
}
.notes-label { color: var(--accent); font-weight: 550; }
.notes-label::before { content: "+"; display: inline-block; width: 1rem; }
.promise-notes[open] .notes-label::before { content: "−"; }
@media (hover: hover) {
  .promise-notes > summary:hover .notes-label { text-decoration: underline; }
}
.detail-meta, .detail .test { color: var(--muted); }
.notes-content { border-left: 1px solid var(--line-strong); padding-left: .85rem; margin: .18rem 0 .5rem; }
.notes-content p { margin: 0; }
.notes-content p + p { margin-top: .5rem; }
.promise-origin .detail-meta, .detail .test strong { display: block; }
.detail .test strong { color: var(--ink); font-weight: 600; }
.sources { display: flex; flex-wrap: wrap; gap: .33rem 1rem; list-style: none; margin: .55rem 0 0; padding: 0; font-size: .81rem; }
.sources a { overflow-wrap: anywhere; }
.empty { margin: 0; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: .55rem; margin-top: .85rem; color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums; }

.selection-note, .audit-summary { margin-bottom: .8rem; padding: .75rem .85rem; border: 1px solid #354662; border-radius: 8px; background: #172337; }
.selection-note p, .audit-summary p { margin: .22rem 0; font-size: .86rem; color: #c5d1e6; }
.selection-note > .button { margin-top: .55rem; min-height: 2rem; }
.regional-notes { padding-left: 1.1rem; margin: .4rem 0; font-size: .84rem; }
.regional-notes li + li { margin-top: .27rem; }
.selection-note summary { margin-top: .25rem; color: var(--accent); font-size: .83rem; }

.lead { margin: .55rem 0 1.05rem; font-size: .88rem; }
.coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.coverage-group { padding: .95rem; border: 1px solid var(--line); border-radius: 9px; background: #101824; }
.coverage-count { margin: .32rem 0 .65rem; color: var(--muted); font-size: .82rem; }
.coverage-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .62rem; }
.coverage-list .button { min-height: 2rem; padding: .27rem .58rem; }
.button:is(a) { display: inline-block; text-decoration: none; }
.button:is(a):hover { background: var(--hover); }
.coverage-scope { margin-top: 1rem; }
.source-list { display: grid; }
.permalink { font-size: .8rem; }
.direct-page { max-width: 58rem; }
.direct-page h1 { font-size: clamp(1.6rem, 4.5vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; margin: .5rem 0 .65rem; }
.direct-page .pill { display: inline-block; }
.direct-page .detail-finding { margin-top: .8rem; }
.direct-page .sources { display: grid; gap: .45rem; margin-bottom: 1rem; }
.direct-page .method-detail { margin-top: .9rem; }
.archive-links { padding-left: 1.2rem; }
.archive-links li { margin: .45rem 0; }
.coverage-detail { margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .55rem; color: var(--muted); font-size: .82rem; }
.coverage-detail summary { color: var(--accent); }
.coverage-detail p { margin: .42rem 0; }
.coverage-detail p:first-child { margin-top: .5rem; }

.method .section-head { margin-bottom: .85rem; }
.audit-summary h3 { margin-bottom: .42rem; }
.method-detail { border-top: 1px solid var(--line); padding-block: .76rem; }
.method-detail summary { list-style: none; font-weight: 600; font-size: .9rem; }
.method-detail summary::after { content: "+"; float: right; color: var(--muted); }
.method-detail[open] summary::after { content: "−"; }
.method-detail p { max-width: 72ch; margin: .6rem 0; color: var(--muted); font-size: .87rem; }
.definition-heading { margin-top: .8rem; color: var(--muted); font-size: .84rem; }
.definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; margin: .7rem 0 0; }
.definitions > div { border: 1px solid var(--line); border-radius: 7px; padding: .58rem .7rem; font-size: .85rem; }
.definitions dt { font-weight: 600; }
.definitions dd { margin: .12rem 0 0; color: var(--muted); }
footer { padding-block: 1.05rem 0; font-size: .75rem; color: var(--muted); }

@media (max-width: 1040px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-inline: .65rem; }
  .status-card { flex-basis: 96px; }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: static; height: auto; padding: .7rem 1rem; gap: .55rem;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  nav { display: flex; flex-wrap: wrap; }
  nav a { padding: .4rem .55rem; min-height: 2.3rem; }
  .sidebar-context { display: none; }
  .hero { min-height: 195px; }
}

@media (max-width: 550px) {
  main { padding: .8rem; }
  .sidebar { padding-inline: .65rem; }
  nav { gap: .2rem; }
  nav a { gap: .32rem; padding-inline: .42rem; font-size: .77rem; }
  .nav-icon { display: none; }
  .hero { align-items: start; flex-direction: column; gap: .88rem; min-height: auto; padding: 1.2rem; }
  .hero::before { right: -225px; }
  .desktop-break { display: none; }
  .intro { font-size: .88rem; }
  .edition { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .43rem; padding-left: .6rem; }
  .edition strong { font-size: 1.35rem; }
  .edition a { margin-top: 0; }
  .status-card { flex-basis: 29%; padding-inline: .51rem; }
  .status-name { font-size: .72rem; }
  .status-card strong { font-size: 1.43rem; }
  .register-head, .coverage-grid, .definitions { grid-template-columns: minmax(0, 1fr); }
  .filters, .filters:has(#topic-filter[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pledge > summary { grid-template-columns: minmax(0, 1fr) auto; gap: .32rem .55rem; padding: .55rem .65rem; }
  .promise-badges { grid-row: 2; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .pledge .chevron { grid-row: 1; grid-column: 2; }
}
