/* Nigerian Election Compass
 *
 * Design note on colour, which is a political decision here and not a cosmetic
 * one: NO candidate or party is ever given a colour of its own. Party colours
 * carry affect and would make the tool look like it was taking sides. The
 * landscape plot is therefore an "emphasis" chart - a single accent hue for the
 * user's own position, de-emphasis grey for every one of the eighteen
 * candidates, with identity carried by direct labels. Every candidate is drawn
 * identically, by design.
 *
 * Palette validated with the dataviz validator (all-pairs, both modes):
 *   CVD separation  dE 15.9 (protan)   target >= 8
 *   Normal vision   dE 17.8            floor  >= 15
 *   Contrast        4.30 / 3.50 light, 4.79 / 4.85 dark   min 3:1
 * The chroma floor deliberately fails on the grey: that is what makes it
 * de-emphasis rather than a series colour.
 */

.viz-root,
:root {
  color-scheme: light;

  --surface-1: #fcfcfb;
  --page: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --gridline: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);

  --accent: #2a78d6;          /* the user's own position - the only hue */
  --deemphasis: #898781;      /* every candidate, without exception */

  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-critical: #d03b3b;

  --ramp-100: #cde2fb;
  --ramp-450: #2a78d6;

  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --maxw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --page: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --gridline: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
    --ramp-100: #184f95;
    --ramp-450: #3987e5;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-1: #1a1a19;
  --page: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --gridline: #2c2c2a;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #3987e5;
  --ramp-100: #184f95;
  --ramp-450: #3987e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { max-width: var(--maxw); margin: 0 auto; }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 2rem 0 0.25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; }
p { margin: 0.6rem 0; }
a { color: var(--accent); }

.subtitle { color: var(--text-secondary); margin-top: 0; }

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}

/* --- Data-state banner. Status colour never travels alone: icon + label. --- */
.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  font-size: 0.94rem;
}
.notice--warning { border-left-color: var(--status-warning); }
.notice--critical { border-left-color: var(--status-critical); }
.notice--info { border-left-color: var(--accent); }
.notice__icon { flex: none; font-weight: 700; line-height: 1.5; }
.notice__label { font-weight: 600; }
.notice p { margin: 0.25rem 0 0; color: var(--text-secondary); }

/* --- Meter: a single ratio against a limit, on a same-hue track. --- */
.meter { margin: 0.75rem 0 0.25rem; }
.meter--inline { margin: 0.35rem 0 0; max-width: 16rem; }
.meter__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.85rem; color: var(--text-secondary);
}
.meter__value { font-variant-numeric: tabular-nums; }
.meter__track {
  height: 8px; border-radius: 999px; background: var(--gridline);
  overflow: hidden; margin-top: 0.3rem;
}
.meter__fill { height: 100%; background: var(--ramp-450); border-radius: 999px; }

/* --- Buttons --- */
.btn {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--baseline);
  background: var(--surface-1);
  color: var(--text-primary);
  cursor: pointer;
}
.btn:hover { border-color: var(--text-muted); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(1.07); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
/* Low-emphasis action that should not compete with the primary button. */
.btn--quiet { border-color: transparent; background: transparent; color: var(--text-secondary); }
.btn--quiet:hover { border-color: transparent; color: var(--text-primary); text-decoration: underline; }

.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

/* A single large call-to-action, for the landing page's one prominent button. */
.btn--lg { font-size: 1.1rem; padding: 0.8rem 1.6rem; }

/* --- Persistent "← Home" link at the top of the app and the doc pages. --- */
.site-nav { font-size: 0.9rem; margin: 0 0 0.75rem; }

/* --- Landing page: a spare start screen, nothing but the way in. --- */
.start { padding-top: 1.5rem; }
.start h1 { font-size: 2rem; }
.start .subtitle { font-size: 1.1rem; max-width: 42rem; }
.start .btn-row { margin: 1.75rem 0 0.5rem; }
.steps {
  margin: 2rem 0 0; padding-left: 1.3rem;
  color: var(--text-secondary); font-size: 0.95rem;
}
.steps li { margin: 0.5rem 0; }
.steps strong { color: var(--text-primary); }

/* --- Quiz --- */
.quiz-card { touch-action: pan-y; }
.quiz-swipe { position: relative; transition: transform 220ms ease, opacity 220ms ease; }
.quiz-swipe.quiz-swipe--dragging { transition: none; }
.swipe-label { position: absolute; top: 0; padding: 0.35rem 0.8rem; border: 2px solid currentColor; border-radius: var(--radius);
  font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; pointer-events: none; }
/* Same neutral styling both ways: neither answer is visually favoured. */
.swipe-label { color: var(--text-primary); background: var(--surface-1); }
/* Each label sits on the edge that stays on screen as the card moves away. */
.swipe-label--agree { left: 1rem; }
.swipe-label--disagree { right: 1rem; }
.quiz-hint--swipe { margin-top: 0.25rem; }
.quiz-card--enter-forward .quiz-swipe { transform: translateX(28px); opacity: 0; }
.quiz-card--enter-back .quiz-swipe { transform: translateX(-28px); opacity: 0; }

.progress-wrap { margin-bottom: 0.2rem; }
.progress-bar {
  height: 4px; border-radius: 999px; background: var(--gridline);
  overflow: hidden; margin-top: 0.3rem;
}
.progress-bar__fill {
  height: 100%; background: var(--accent); border-radius: 999px;
  transition: width 320ms ease;
}

.progress { font-size: 0.85rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.statement { font-size: 1.25rem; line-height: 1.4; margin: 0.75rem 0 0.25rem; }
.statement-context {
  font-size: 0.9rem; color: var(--text-secondary);
  border-left: 2px solid var(--gridline); padding-left: 0.7rem; margin: 0.6rem 0 0;
}
.axis-tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted);
}

.choices {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem; margin-top: 1.1rem;
}
.choice {
  font: inherit; text-align: center; padding: 0.7rem 0.6rem;
  border: 1px solid var(--baseline); border-radius: var(--radius);
  background: var(--surface-1); color: var(--text-primary); cursor: pointer;
  min-height: 44px;
}
.choice:hover { border-color: var(--text-muted); }
.choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice[aria-pressed="true"] {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: 600;
}

.important { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-secondary); }
.important input { margin-right: 0.6rem; width: 1.35rem; height: 1.35rem; vertical-align: middle; flex: none; }
.important label { cursor: pointer; padding: 0.65rem 0; flex: 1; }
.important { display: flex; align-items: center; min-height: 44px; }
.quiz-more { margin-top: 1rem; }
.quiz-more > .statement-context:first-of-type { margin-top: 0.5rem; }

/* --- Landscape plot --- */
.plot-wrap { margin: 0.5rem 0 0; }
.plot { width: 100%; height: auto; display: block; overflow: visible; }
.plot__grid { stroke: var(--gridline); stroke-width: 1; }
.plot__axis { stroke: var(--baseline); stroke-width: 1; }
.plot__axis-label { fill: var(--text-muted); font-size: 12.5px; }
.plot__quadrant { fill: var(--text-muted); font-size: 10.5px; opacity: 0.75; }
.plot__dot { fill: var(--deemphasis); stroke: var(--surface-1); stroke-width: 2; }
.plot__logo-bg { fill: #fff; }
.plot__dot-label { fill: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.plot__user { fill: var(--accent); stroke: var(--surface-1); stroke-width: 2; }
.plot__hit { fill: transparent; cursor: pointer; }
.plot__hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.6rem; }
.legend__item { display: flex; align-items: center; gap: 0.4rem; }
.legend__swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend__swatch--user { background: var(--accent); }
.legend__swatch--cand { background: var(--deemphasis); }

/* --- Agreement by theme --- */
.radar__svg { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.radar__ring { fill: none; stroke: var(--gridline); stroke-width: 1; }
.radar__ring--outer { stroke: var(--baseline); }
.radar__poly { fill: var(--deemphasis); fill-opacity: 0.18; stroke: var(--deemphasis); stroke-width: 2; stroke-linejoin: round; }
.radar__pt { fill: var(--deemphasis); stroke: var(--surface-1); stroke-width: 2; }
.radar__pt--none { fill: var(--surface-1); stroke: var(--text-muted); stroke-dasharray: 2 2; }
.radar__label { fill: var(--text-secondary); font-size: 11px; font-weight: 600; }
.radar__value { fill: var(--text-primary); font-size: 12.5px; font-weight: 600; }
.radar__pct { fill: var(--text-muted); font-size: 12px; }

.save-share { margin: 1rem 0 0.5rem; }
.save-share__h { margin: 0 0 0.2rem; font-size: 1rem; }

/* --- Thematic readout bars + per-candidate breakdown --- */
.theme__h { margin: 1.2rem 0 0.25rem; font-size: 1rem; }
.breakdown { margin-top: 0.5rem; }
.breakdown__h {
  margin: 0.8rem 0 0.35rem; font-size: 0.85rem; letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.breakdown__item {
  margin: 0 0 0.6rem; padding-left: 0.7rem;
  border-left: 2px solid var(--gridline);
}
.breakdown__stmt {
  display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap;
  font-size: 0.9rem;
}
.breakdown__ans {
  margin-top: 0.15rem; font-size: 0.82rem; color: var(--text-secondary);
}

.tooltip {
  position: absolute; pointer-events: none; z-index: 20;
  background: var(--surface-1); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.4rem 0.6rem; font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  max-width: 260px;
}
.tooltip[hidden] { display: none; }

/* --- Tables (the WCAG-clean twin of every chart) --- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.75rem; }
th, td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--gridline); vertical-align: top; }
th { color: var(--text-secondary); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

details { margin-top: 0.75rem; }
summary { cursor: pointer; color: var(--text-secondary); font-size: 0.9rem; padding: 0.6rem 0; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Result rows --- */
.result { border-bottom: 1px solid var(--gridline); padding: 0.85rem 0; }
.result--scored {
  border: 1px solid var(--gridline); border-radius: var(--radius);
  background: var(--surface-1); padding: 1.25rem; margin: 1rem 0;
}
.result__identity { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.result__identity .result__links { margin: 0; flex: none; }
.result--scored .result__head { align-items: center; }
.result--scored .result__score { font-size: 1.65rem; text-align: right; flex: none; max-width: 40%; }
.result__score-label { display: block; max-width: 10rem; margin-left: auto; font-size: 0.75rem; color: var(--text-secondary); }
.result--scored .result__meta { margin-top: 0.8rem; }
.result__radar { min-width: 0; margin: 1rem 0; }
.result__radar-title { font-size: 0.9rem; font-weight: 600; text-align: center; }
.result__radar .radar__svg { max-width: 560px; }
.result__radar .radar__label { font-size: 12px; }
.result__actions { border-top: 1px solid var(--gridline); padding-top: 0.8rem; }
.result__actions details { min-width: 0; overflow-x: auto; font-size: 0.85rem; }
.result__actions summary { margin: 0; }
.result__actions table { min-width: 20rem; }
.result__actions details + details { margin-top: 0.75rem; }
@media (max-width: 420px) {
  .result--scored { padding: 0.9rem; }
  .result__identity { gap: 0.5rem; }
  .result__identity .result__logo { max-width: 52px; height: 36px; }
}
.result__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.result__name { font-weight: 600; }
.result__party { color: var(--text-secondary); font-size: 0.88rem; font-weight: 400; }
.result__score { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.result__meta { font-size: 0.84rem; color: var(--text-secondary); margin-top: 0.2rem; }
/* Link-out to the INEC register. Deliberately muted and uncoloured: it identifies
   the party without becoming party branding. Identical for every candidate. */
.result__links { font-size: 0.82rem; margin-top: 0.2rem; }
.result__links a { color: var(--text-secondary); }
/* Every logo gets the identical treatment: one fixed height, a neutral white
   chip (many party logos assume a light background), contained so aspect ratio
   is kept and no logo is cropped or allowed to dominate. Equal visual weight is
   the point — the chip favours no party. */
.result__logo {
  display: block; height: 44px; width: auto; max-width: 150px;
  object-fit: contain; background: #fff; border-radius: 4px; padding: 4px;
}
.result__links a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* A plain roster of candidates with nothing on record for the user's answers.
   Deliberately unadorned - no scores, no meters, no colour - so an empty record
   reads as "not gathered yet", never as a verdict on the candidate. */
.plain-list { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.plain-list li { margin: 0.2rem 0; }

.cite { font-size: 0.85rem; color: var(--text-secondary); margin: 0.35rem 0 0; }
.cite__flag { color: var(--text-primary); font-weight: 600; }
.cite__pending { font-style: italic; color: var(--text-secondary); }
.cite__quote { margin: 0.2rem 0 0; color: var(--text-secondary); }
.cite__checks { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--text-secondary); }

/* Two readings side by side (a party's own answer next to the coder's manifesto
   reading). Deliberately neutral: a muted left rule and a small label, no party
   colour. --accent stays reserved for the user's own marker. */
.cite__reading { border-left: 2px solid var(--gridline); padding-left: 0.6rem; margin: 0.4rem 0 0; }
.cite__label { display: block; font-size: 0.72rem; letter-spacing: 0.03em;
  text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin: 0 0 0.15rem; }
/* The divergence note borrows the warning idiom (amber), never red or a party
   hue: a difference between readings is a caveat to weigh, not a verdict. */
.cite__diverge { margin: 0.4rem 0 0; padding-left: 0.6rem;
  border-left: 2px solid var(--status-warning); color: var(--text-secondary); }
/* A sourced action in office that points the other way: the same amber caveat. */
.cite__record { margin: 0.4rem 0 0; padding-left: 0.6rem;
  border-left: 2px solid var(--status-warning); color: var(--text-secondary); }
.cite__record ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.cite__agree { margin: 0.4rem 0 0; padding-left: 0.6rem; border-left: 2px solid var(--gridline); color: var(--text-secondary); }

.footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--gridline); font-size: 0.85rem; color: var(--text-secondary); }
.site-footer { max-width: var(--maxw); margin: 3rem auto 0; padding: 1.5rem; background: #202020; border-left: 8px solid #008751; color: #d9d9d9; font-size: 0.85rem; line-height: 1.6; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 1rem; font-weight: 650; }
.site-footer__links a, .site-footer a { color: #fff; text-underline-offset: 0.2em; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer > p, .site-footer__links + p { margin: 1.25rem 0 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* --- Save or share --- */
.share-platforms { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.share-platform { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem;
  min-width: 5.5rem; min-height: 5.5rem; padding: 0.8rem; border: 1px solid var(--baseline); border-radius: var(--radius);
  background: var(--surface-1); color: var(--text-primary); font: inherit; cursor: pointer; }
.share-platform:hover { background: var(--surface-2, #eef5f0); }
.share-platform:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.share-platform span { font-size: 0.8rem; }
.share-tool { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--baseline); }
.save-share__status { min-height: 1.2em; }
.save-share__url { width: 100%; font: inherit; margin-top: 0.3rem; padding: 0.3rem 0.5rem;
  border: 1px solid var(--baseline); border-radius: var(--radius); background: var(--surface-1); color: var(--text-primary); }

@media print {
  .btn, .btn-row, .save-share, .doc-nav, .tooltip { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .theme__stmt, .plot-wrap, table { break-inside: avoid; }
  details > *:not(summary) { display: block; }
  a[href]::after { content: ""; }
}

.result__confirmation { margin-top: 0.25rem; font-size: 0.8rem; }

/* Shared card alignment and a visual companion to the existing agreement score. */
.result--scored .result__head { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; }
.result--scored .result__score { max-width: none; font-size: 2rem; font-weight: 700; }
.result__identity > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.result__identity .result__links { width: 120px; display: flex; align-items: center; justify-content: center; gap: 0.45rem; }
.result__identity .result__logo { width: 60px; height: 44px; object-fit: contain; }
.result__identity .result__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--baseline); }
.result__photo-credit { display: inline-block; margin-top: 0.15rem; color: var(--text-secondary); font-size: 0.75rem; font-weight: 400; }
.result__agreement-bar {
  display: block; width: 100%; height: 0.45rem; margin: 1rem 0 0;
  border: 0; border-radius: 1rem; overflow: hidden;
  appearance: none; background: var(--gridline); color: #008751;
}
.result__agreement-bar::-webkit-progress-bar { background: var(--gridline); border-radius: 1rem; }
.result__agreement-bar::-webkit-progress-value { background: #008751; border-radius: 1rem; }
.result__agreement-bar::-moz-progress-bar { background: #008751; border-radius: 1rem; }
.result__badge {
  display: inline-block; padding: 0.2rem 0.5rem; border: 1px solid var(--baseline);
  border-radius: 3px; font-size: 0.75rem; line-height: 1.5;
  color: var(--text-secondary); background: var(--page);
}
.result__explore { border-top: 1px solid var(--gridline); padding-top: 0.8rem; }
.result__explore > summary { font-weight: 600; color: var(--text-primary); }
.result__explore .result__actions { border-top: 0; padding-top: 0; }
@media (max-width: 420px) {
  .result--scored .result__head { grid-template-columns: minmax(0, 1fr) 6rem; gap: 0.65rem; }
  .result--scored .result__score { font-size: 1.65rem; }
  .result__identity .result__links { width: 82px; gap: 0.3rem; }
  .result__identity .result__logo { width: 38px; height: 34px; }
  .result__identity .result__photo { width: 38px; height: 38px; }
}

/* The questionnaire and results share the landing page's Nigerian green identity. */
.compass-app { --accent: #008751; --ramp-450: #008751; }
@media (prefers-color-scheme: dark) {
  .compass-app { --accent: #42bd8a; --ramp-450: #42bd8a; }
}
.compass-app h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 2.5rem; }
.compass-app h2 { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.025em; }
.compass-app .btn { min-height: 48px; padding: 0.75rem 1.1rem; }
.compass-app .btn--primary { background: #008751; border-color: #008751; color: #fff; font-weight: 750; }
.compass-app .btn--primary:hover { background: #006b40; border-color: #006b40; filter: none; }
.compass-app .btn--lg { min-width: 12rem; font-size: 1.2rem; }
.compass-app .quiz-card { padding-top: 1.5rem; }
.compass-app .statement { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.3; margin: 1.25rem 0 0.75rem; }
.compass-app .statement-context { margin-top: 1rem; }
.compass-app .choices { margin-top: 1.75rem; gap: 0.75rem; }
.compass-app .choice { padding: 1rem; font-weight: 600; }
.compass-app .important { margin-top: 1.25rem; }
.compass-app input[type="checkbox"] { accent-color: #008751; }
.quiz-nav { margin-top: 1.75rem; align-items: center; }
.quiz-hint { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.compass-app .result--scored { padding: 1.5rem; margin: 1.5rem 0; }
.compass-app .result__name { font-weight: 750; letter-spacing: -0.02em; }
.result__explanation { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.75rem; }
.trust-footer { margin-top: 3rem; }
.trust-footer summary { font-size: 0.8rem; }
.partner-recognition { margin-top: 1.5rem; font-size: 0.85rem; }
.partner-recognition h2 { font-size: 0.85rem; margin: 1rem 0 0.5rem; }
.partner-recognition ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
@media (max-width: 600px) {
  .compass-app .statement { font-size: 1.25rem; line-height: 1.4; }
}
@media (max-width: 480px) {
  .compass-app .result--scored { padding: 1rem; }
  /* Full-width answers: "Neither agree nor disagree" stays on one line. */
  .choices, .compass-app .choices { grid-template-columns: 1fr; gap: 0.5rem; margin-top: 1rem; }
  .compass-app .choice { padding: 0.75rem 1rem; min-height: 48px; }
}

.audience-survey { margin: 1.5rem 0; }
.survey-consent { display: flex; align-items: flex-start; gap: 0.6rem; }
.survey-consent input { width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; flex: none; }
.audience-survey h1 { font-size: 1.5rem; line-height: 1.3; margin-top: 0; }
.survey-consent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1.25rem 0; }
.survey-consent input { margin-top: 0.3rem; flex: none; }
.survey-field { display: grid; gap: 0.4rem; margin: 1rem 0; }
.survey-field select { width: 100%; min-height: 48px; padding: 0.65rem; font: inherit; color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }
/* Optional navigation stays hidden until public feature configuration enables it. */

/* Keep each result compact; its existing content opens beneath the match bar. */
.result__details { margin: 0; }
.result__toggle { display: block; list-style: none; color: inherit; padding: 0; }
.result__toggle::-webkit-details-marker { display: none; }
.result__toggle-label { display: block; margin-top: 0.55rem; color: var(--text-secondary); font-size: 0.85rem; }
.result__show::before { content: "▸ "; }
.result__hide::before { content: "▾ "; }
.result__details:not([open]) > .result__toggle .result__hide,
.result__details[open] > .result__toggle .result__show { display: none; }
.result__content { padding-top: 0.25rem; }
