/* V3 layer: palette, shared header and footer, page openings and section rhythm.
   Loaded last on every page. Layout concept: full-width bands that alternate deep navy,
   lifted navy and porcelain, each with the same inner measure and vertical spacing. */
:root {
  --ink: #0c1322;          /* deep navy: page ground */
  --ink-soft: #131c30;     /* lifted navy: alternate band */
  --panel: #1a2540;        /* raised panels on navy */
  --paper: #eaf0f9;        /* primary text on navy */
  --paper-dim: #a9b5ca;    /* secondary text on navy */
  --rust: #e2a93a;         /* civic gold (legacy token name) */
  --rust-bright: #f5c15a;  /* bright gold for hover and highlights */
  --violet: #6cc4ff;       /* sky blue secondary */
  --line: rgba(206, 220, 245, 0.14);
  --porcelain: #eef2f8;    /* light band ground */
  --ink-on-light: #111a2e;
  --dim-on-light: #4a566e;
  --gold-on-light: #8a5a00;
  --space-section: clamp(4rem, 8vw, 7rem);
  --measure: 76rem;
  color-scheme: dark;
}
body { background: var(--ink); color: var(--paper); }
::selection { background: var(--rust-bright); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--rust-bright); outline-offset: 3px; }
#main:focus { outline: none; }

/* Buttons: gold with navy text for contrast. */
.primary-action { background: var(--rust); color: var(--ink); border-radius: 999px; padding: .85rem 1.35rem; gap: .8rem; font-weight: 700; }
.primary-action:hover { background: var(--rust-bright); color: var(--ink); }

/* Shared inner measure for new bands. */
.band-inner { width: min(100%, var(--measure)); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 3rem); }
.band { padding-block: var(--space-section); }
.band-light { background: var(--porcelain); color: var(--ink-on-light); }
.band-light .eyebrow { color: var(--gold-on-light); }
.band-light p { color: var(--dim-on-light); }
.band-light h2 { color: var(--ink-on-light); }

/* ---------- Header ---------- */
.skip-link:focus { background: var(--rust-bright); color: var(--ink); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); inset-inline: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem;
  min-height: 68px; padding: .55rem clamp(1.1rem, 4vw, 3rem);
  background: rgba(12, 19, 34, 0.94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header .header-actions { display: flex; flex-wrap: nowrap; gap: .25rem; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; max-width: 100%; }
.site-header .header-actions::-webkit-scrollbar { display: none; }
.site-header .header-action {
  flex: 0 0 auto; min-height: 2.6rem; padding: .45rem .85rem; border-radius: 999px;
  font: 500 .8rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--paper-dim);
}
.site-header .header-action:hover { color: var(--paper); background: rgba(206, 220, 245, 0.07); }
.site-header .header-action[aria-current="page"] { color: var(--ink); background: var(--rust); }
.version-badge { border-color: var(--rust); color: var(--rust-bright); }
.wordmark-icon { color: var(--rust-bright); }
/* Don’t Trust the Pig is a Freedom Preservation Project: the line under the wordmark links to the project home. */
.brand-stack { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.brand-parent { display: inline-flex; align-items: center; gap: .35rem; margin-left: 1.75rem; font: 500 .66rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--rust-bright); }
.brand-parent:hover { color: var(--paper); }
.footer-parent a { color: var(--paper); font-weight: 600; text-decoration: none; }
.footer-parent a:hover { color: var(--rust-bright); }
@media (max-width: 1100px) { .site-header { position: sticky; } .hero-copy { padding-top: 4rem; } }
@media (max-width: 760px) {
  .site-header { padding-block: .6rem .4rem; }
  .site-header .header-actions { width: 100%; flex-wrap: wrap; overflow: visible; margin-inline: -.3rem; }
  .site-header .header-action { font-size: .74rem; padding-inline: .7rem; }
}

/* Home hero now sits under the sticky header. */
.page-home .hero-copy { padding-top: clamp(4rem, 9vh, 7rem); }

/* ---------- Page openings ---------- */
.page-intro { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); background: var(--ink); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-intro::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 46rem; height: 46rem; border-radius: 50%; background: radial-gradient(circle, rgba(226, 169, 58, 0.16), rgba(226, 169, 58, 0) 62%); pointer-events: none; }
.page-intro::after { content: ""; position: absolute; inset: -40% auto auto -12%; width: 38rem; height: 38rem; border-radius: 50%; background: radial-gradient(circle, rgba(108, 196, 255, 0.10), rgba(108, 196, 255, 0) 60%); pointer-events: none; }
.page-intro .band-inner { position: relative; z-index: 1; }
.page-intro h1 { margin: .2rem 0 0; font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .96; letter-spacing: -.035em; text-wrap: balance; color: var(--paper); }
.page-lede { max-width: 40rem; margin: 1.4rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--paper-dim); }
.on-this-page { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.on-this-page a { padding: .45rem .9rem; border: 1px solid rgba(226, 169, 58, 0.45); border-radius: 999px; font: 500 .78rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--rust-bright); }
.on-this-page a:hover { background: var(--rust); border-color: var(--rust); color: var(--ink); }

/* ---------- Section rhythm ----------
   Every top-level section gets the same breathing room and a hairline divider,
   and dark sections alternate between two navy tones. */
main > section, main > aside { scroll-margin-top: 84px; }
main > section:not(.hero):not(.band-light) { border-top: 1px solid var(--line); }
.page-truth main > section:nth-of-type(odd):not(.band-light):not(.record-section),
.page-home main > section:nth-of-type(even):not(.band-light):not(.hero),
.page-about main > section:nth-of-type(even):not(.band-light) { background-color: var(--ink-soft); }
[id] { scroll-margin-top: 84px; }

/* ---------- Home ---------- */
.doors { background: var(--ink-soft); }
.doors h2, .vote-teaser h2, .evidence-desk h2, .reach-us h2, .mission h2, .privacy-section h2 { margin: .3rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.door { position: relative; display: grid; align-content: start; gap: .55rem; min-height: 14rem; padding: 1.6rem 1.5rem 3.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--paper); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.door:hover { transform: translateY(-3px); border-color: rgba(226, 169, 58, 0.7); }
.door-kicker { font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rust-bright); }
.door strong { font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; }
.door span:not(.door-kicker):not(.door-go) { color: var(--paper-dim); }
.door-go { position: absolute; right: 1.4rem; bottom: 1.1rem; font-size: 1.4rem; color: var(--rust-bright); }
.teaser-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.vote-teaser p { max-width: 36rem; }
.vote-teaser .primary-action { margin-top: 1rem; }
.teaser-count { justify-self: center; display: grid; place-items: center; align-content: center; width: min(100%, 16rem); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 10px rgba(226, 169, 58, 0.22); text-align: center; }
.teaser-count strong { font: 700 clamp(3.4rem, 8vw, 5rem)/1 var(--serif); color: var(--rust-bright); }
.teaser-count span { font: 500 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); padding-inline: 1.2rem; }
@media (max-width: 720px) { .teaser-grid { grid-template-columns: 1fr; } .teaser-count { width: 12rem; } }

/* ---------- Truth Portal: Evidence Desk ---------- */
.evidence-desk { background: var(--ink); }
.desk-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.desk-heading > p { margin: 0; color: var(--paper-dim); }
.desk-form { display: grid; gap: 1rem; margin-top: 2.2rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid rgba(226, 169, 58, 0.35); border-radius: 20px; background: var(--panel); }
.desk-inputs { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 1rem; align-items: end; }
.desk-form label { display: grid; gap: .45rem; font: 500 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); min-width: 0; }
.desk-form input[type="url"] { width: 100%; min-height: 3.1rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--paper); font: 1rem var(--sans); }
.desk-form input[type="file"] { width: 100%; font: .9rem var(--sans); color: var(--paper-dim); }
.desk-form input[type="file"]::file-selector-button { margin-right: .8rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 .85rem var(--sans); cursor: pointer; }
.desk-file-hint { font: .8rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--paper-dim); }
.desk-or { padding-bottom: .9rem; font: 500 .78rem var(--mono); text-transform: uppercase; color: var(--paper-dim); }
.desk-form .primary-action { justify-self: start; border: 0; cursor: pointer; }
.desk-status { margin: 0; min-height: 1.4em; color: var(--violet); }
.desk-status.is-error { color: #ff9a8a; }
.desk-sample { margin-top: 2rem; }
.desk-sample-label { margin: 0 0 .6rem; font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }
.desk-card { max-width: 42rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-soft); }
.desk-card-tags { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.desk-tag { padding: .3rem .7rem; border-radius: 999px; font: 700 .8rem var(--sans); }
.desk-supported { background: rgba(88, 201, 140, 0.16); color: #7fe0ab; }
.desk-strength { font: 500 .85rem var(--sans); color: var(--paper); }
.desk-strength span { letter-spacing: 2px; color: #7fe0ab; }
.desk-claim { margin: .9rem 0 .6rem; font: 600 1.2rem/1.35 var(--serif); }
.desk-why { margin: 0; padding-left: 1.1rem; color: var(--paper-dim); font-size: .95rem; }
.desk-note { margin: .9rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--paper-dim); }
.desk-note a { color: var(--violet); }
.desk-how { margin-top: 1.6rem; max-width: 52rem; }
.desk-how summary { cursor: pointer; font-weight: 600; color: var(--rust-bright); }
.desk-how ol { padding-left: 1.2rem; color: var(--paper-dim); }
.desk-how li { margin: .4rem 0; }
.desk-how p { color: var(--paper-dim); }
/* Evidence Desk results */
.desk-form .primary-action:disabled { opacity: .6; cursor: progress; }
.desk-contradicted { background: rgba(255, 122, 102, 0.16); color: #ff9a8a; }
.desk-misleading { background: rgba(245, 193, 90, 0.18); color: var(--rust-bright); }
.desk-disputed { background: rgba(108, 196, 255, 0.16); color: var(--violet); }
.desk-unverifiable { background: rgba(238, 242, 248, 0.1); color: var(--paper-dim); }
.desk-strength-moderate span { color: var(--rust-bright); }
.desk-strength-limited span { color: var(--paper-dim); }
.desk-results { margin-top: 2rem; scroll-margin-top: 10rem; }
.desk-results-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: end; }
.desk-results-head h3 { margin: 0; font: 600 clamp(1.2rem, 2.4vw, 1.6rem)/1.25 var(--serif); overflow-wrap: anywhere; }
.desk-results-head h3 a { color: var(--paper); }
.desk-meta, .desk-privacy, .desk-message, .desk-wait { margin: .4rem 0 0; color: var(--paper-dim); font-size: .9rem; }
.desk-progress { height: 6px; margin: 1rem 0 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.desk-progress span { display: block; height: 100%; background: var(--rust); transition: width .4s ease; }
.desk-claims { display: grid; gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.desk-claims .desk-card { max-width: none; }
.desk-pending { opacity: .75; }
.desk-pending .desk-claim { font-size: 1.05rem; }
.desk-reused { font: 500 .78rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--paper-dim); }
.desk-updated { margin: 0 0 .5rem; font-size: .88rem; color: var(--rust-bright); }
.desk-unknown { margin: .7rem 0 0; font-size: .92rem; color: var(--paper-dim); }
.desk-sources { margin-top: .7rem; }
.desk-sources summary, .desk-set-aside summary { cursor: pointer; font-weight: 600; color: var(--violet); }
.desk-sources ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.desk-sources li { margin: .35rem 0; }
.desk-sources a { color: var(--paper); overflow-wrap: anywhere; }
.desk-sources small { display: block; color: var(--paper-dim); }
.desk-positions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: .8rem; }
.desk-position { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.desk-position h4 { margin: 0 0 .5rem; font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); }
.desk-position p { margin: .6rem 0; font-size: .92rem; }
.desk-link-button { padding: 0; border: 0; background: none; color: var(--violet); font: inherit; text-decoration: underline; cursor: pointer; }
.desk-small-button { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 .88rem var(--sans); cursor: pointer; }
.desk-small-button:hover, .desk-small-button:focus-visible { border-color: var(--rust); }
.desk-report-form { display: grid; gap: .6rem; margin-top: .8rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 12px; }
.desk-report-form label { display: grid; gap: .4rem; font-weight: 600; }
.desk-report-form label span { font-weight: 400; color: var(--paper-dim); }
.desk-report-form textarea { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); color: var(--paper); font: 1rem var(--sans); }
.desk-report-form p { margin: 0; font-size: .88rem; color: var(--paper-dim); }
.desk-set-aside { margin-top: 1.2rem; }
.desk-set-aside p, .desk-set-aside li { color: var(--paper-dim); font-size: .92rem; }
@media (max-width: 760px) { .desk-heading, .desk-inputs, .desk-positions { grid-template-columns: 1fr; } .desk-or { padding: 0; } }

.debt-section { padding-block: var(--space-section); }
.debt-section .national-debt-banner { margin: 0; }

/* ---------- About ---------- */
.about-page { background: var(--ink-soft); }
.about-page.band { padding-block: var(--space-section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-grid > .about-mirror, .about-grid > .mirror-photo, .about-grid > .mirror-controls, .about-grid > .mirror-status, .about-grid > .mirror-browser-link { grid-column: 1; }
.about-grid > .about-message { grid-column: 2; grid-row: 1 / span 5; }
.about-page .about-mirror { width: 100%; max-width: 30rem; border-radius: 22px; overflow: hidden; }
.mirror-controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.mirror-controls button, .mirror-photo-actions button { padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--paper); cursor: pointer; font-weight: 600; }
.mirror-controls #mirror-start, .mirror-controls #mirror-snap { background: var(--rust); color: var(--ink); border-color: var(--rust); }
.mirror-photo { max-width: 30rem; }
.mirror-photo img { width: 100%; border-radius: 16px; display: block; }
.mirror-photo-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.about-message h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 1rem; }
.about-message p { color: var(--paper-dim); font-size: 1.1rem; max-width: 36rem; }
.about-message .about-promise { color: var(--paper); font-family: var(--serif); font-size: 1.5rem; }
.about-next-step { display: inline-flex; gap: .6rem; margin-top: 1rem; padding: .8rem 1.3rem; border-radius: 999px; background: var(--rust); color: var(--ink); font-weight: 700; text-decoration: none; }
.mission-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.2rem clamp(2rem, 5vw, 4.5rem); }
.mission-copy p { font-size: 1.1rem; color: var(--paper-dim); max-width: 40rem; }
.mission-copy p:first-child { color: var(--paper); font: 500 clamp(1.3rem, 2.4vw, 1.7rem)/1.35 var(--serif); }
.mission-tag { font: 500 .85rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rust-bright) !important; }
.privacy-section { background: var(--porcelain); padding-block: var(--space-section); }
.band-light .assurance-details { background: #ffffff; border-color: #d5dcea; }
.band-light .assurance-details > summary { color: var(--ink-on-light); }
.band-light .assurance-details[open] > summary { border-color: #d5dcea; }
.band-light .assurance-content p { color: var(--dim-on-light); }
.band-light .visitor-privacy button { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band-light a { color: #1d5aa3; }
.privacy-section .visitor-privacy { margin-top: 1.6rem; }
@media (max-width: 820px) { .about-grid, .mission-grid { grid-template-columns: 1fr; } .about-grid > .about-message { grid-column: 1; grid-row: auto; } }

/* ---------- Contact ---------- */
.reach-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: center; }
.reach-card { padding: 1.5rem; border-radius: 18px; background: #ffffff; border: 1px solid #d5dcea; }
.reach-card p { margin: .3rem 0; }
.reach-card b { color: var(--ink-on-light); }
@media (max-width: 760px) { .reach-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { display: block; padding: 0; border-top: 3px solid var(--rust); background: #080d18; color: var(--paper-dim); font: inherit; text-transform: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem 3rem; padding-block: 3rem 2.4rem; }
.footer-brand { display: grid; gap: .4rem; }
.footer-brand strong { font: 700 1.5rem var(--serif); color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-content: start; }
.footer-links a { color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--rust-bright); }
.footer-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; }
.footer-social span { font: .74rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.footer-social a { color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--rust-bright); }
.follow-title { margin: 1.8rem 0 0; font: 700 1.25rem/1.2 var(--serif); }
.follow-note { margin-top: .8rem; font-size: .9rem; opacity: .8; }
.follow-list { list-style: none; margin: .6rem 0 0; padding: .8rem 0 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); display: grid; gap: .45rem; }
.follow-list li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; }
.follow-list b { min-width: 6.5rem; }
.follow-list a { font-weight: 600; overflow-wrap: anywhere; }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font: .74rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .door { transition: none; } .door:hover { transform: none; } }

/* Map legend: keep the three fictional states distinct (renewal, pressure, rupture). */
.legend-rupture, .orbit-node.rupture { --rupture: #ff7a66; }
.legend-rupture { background: var(--rupture); }
.orbit-node.rupture { border-color: var(--rupture); }

/* The memorial moved to its own band on the Truth Portal. */
.page-truth .killed-section { padding-block: var(--space-section); padding-inline: clamp(1.1rem, 4vw, 3rem); }
.page-truth .killed-section > * { max-width: var(--measure); margin-inline: auto; }

/* "More" toggles: detail stays one tap away so each section reads quickly. */
details.more { margin-top: 1rem; border-top: 1px solid var(--line); }
details.more > summary { display: inline-flex; align-items: center; gap: .55rem; margin-top: .9rem; padding: .5rem 1rem; border: 1px solid rgba(226, 169, 58, 0.5); border-radius: 999px; list-style: none; cursor: pointer; font: 600 .88rem/1.2 var(--sans); color: var(--rust-bright); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font: 700 1rem/1 var(--mono); }
details.more[open] > summary::after { content: "−"; }
details.more > summary:hover { background: rgba(226, 169, 58, 0.12); }
details.more > .more-body { padding-top: 1rem; }
details.more-feature { border-top: 0; margin-top: 2.2rem; }
details.more-feature > summary { width: 100%; justify-content: space-between; padding: 1.1rem 1.4rem; border-radius: 16px; background: var(--panel); font: 600 clamp(1.05rem, 2vw, 1.3rem)/1.3 var(--serif); color: var(--paper); border-color: rgba(226, 169, 58, 0.45); }
details.more-feature > summary::after { color: var(--rust-bright); }
.privacy-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.privacy-points li { padding: 1.1rem 1.2rem; border-radius: 14px; background: #ffffff; border: 1px solid #d5dcea; color: var(--dim-on-light); }
.privacy-points strong { display: block; margin-bottom: .25rem; color: var(--ink-on-light); }
.privacy-clear-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.4rem 0 .4rem; }
.privacy-clear-row button { padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 .9rem var(--sans); cursor: pointer; }
.privacy-clear-row p { margin: 0; color: var(--dim-on-light); }

/* ---------- Follow the money ---------- */
.money-section { --dem: #5b9dff; --rep: #ff6b6b; --oth: #8a96ad; }
.money-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.money-heading h2 { margin: .3rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; letter-spacing: -.03em; }
.money-heading > p { margin: 0; color: var(--paper-dim); }
.money-heading strong { color: var(--rust-bright); }
.money-slider { margin-top: 2.2rem; padding: 1.3rem 1.4rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.money-slider label { display: flex; justify-content: space-between; align-items: baseline; font: 500 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.money-slider output { font: 700 clamp(1.6rem, 4vw, 2.4rem)/1 var(--serif); letter-spacing: -.02em; text-transform: none; color: var(--rust-bright); }
.money-slider input[type="range"] { width: 100%; margin: 1rem 0 .3rem; accent-color: var(--rust); height: 2rem; cursor: pointer; }
.money-ticks { display: flex; justify-content: space-between; font: 500 .72rem var(--mono); color: var(--paper-dim); padding-inline: .1rem; }
.money-note { margin: .6rem 0 0; font-size: .85rem; color: var(--paper-dim); }
.money-summary { margin-top: 1.6rem; }
.money-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-bottom: .8rem; }
.money-headline strong { font: 700 clamp(2rem, 5vw, 3rem)/1 var(--serif); }
.money-headline span { color: var(--paper-dim); }
.money-bar { display: flex; height: .8rem; border-radius: 999px; overflow: hidden; background: rgba(206, 220, 245, 0.08); }
.money-bar span { display: block; height: 100%; }
.money-d { background: var(--dem); } .money-r { background: var(--rep); } .money-o { background: var(--oth); }
.dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .4rem; vertical-align: .05em; }
.money-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .7rem; font-size: .9rem; color: var(--paper-dim); }
.money-empty { padding: 1.2rem 1.4rem; border: 1px dashed var(--line); border-radius: 14px; color: var(--paper-dim); list-style: none; }
.money-tools { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.money-tools label { display: grid; gap: .35rem; font: 500 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); flex: 1 1 14rem; }
.money-tools input, .money-tools select { min-height: 2.8rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--paper); font: 1rem var(--sans); }
.money-list { display: grid; gap: .6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.money-row details { border: 1px solid var(--line); border-radius: 14px; background: var(--ink-soft); }
.money-row details[open] { border-color: rgba(226, 169, 58, 0.5); }
.money-row summary { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; grid-template-areas: "rank who total" "rank bar bar"; gap: .45rem 1rem; align-items: center; padding: .9rem 1.1rem; cursor: pointer; list-style: none; }
.money-row summary::-webkit-details-marker { display: none; }
.money-rank { grid-area: rank; font: 500 .85rem var(--mono); color: var(--paper-dim); }
.money-who { grid-area: who; display: grid; min-width: 0; }
.money-who strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.money-who small { color: var(--paper-dim); overflow-wrap: anywhere; }
.money-total { grid-area: total; font: 600 1.05rem var(--mono); font-variant-numeric: tabular-nums; color: var(--rust-bright); }
.money-row .money-bar { grid-area: bar; height: .55rem; }
.money-detail { padding: 0 1.1rem 1.1rem 4.3rem; }
.money-amounts { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: .2rem 0 1rem; }
.money-amounts div { display: grid; }
.money-amounts dt { font-size: .82rem; color: var(--paper-dim); }
.money-amounts dd { margin: 0; font: 600 1rem var(--mono); font-variant-numeric: tabular-nums; }
.money-sub { margin: 0 0 .4rem; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.money-recipients { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.money-recipients li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .6rem; align-items: start; }
.money-recipients li > span:nth-child(2) { display: grid; min-width: 0; }
.money-recipients small { color: var(--paper-dim); }
.money-recipients a, .money-fec { color: var(--violet); }
.money-amt { font: 500 .92rem var(--mono); font-variant-numeric: tabular-nums; }
.money-fec { display: inline-block; margin-top: .9rem; font-weight: 600; }
.money-more { margin-top: 1rem; padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--paper); font-weight: 600; cursor: pointer; }
@media (max-width: 760px) {
  .money-heading { grid-template-columns: 1fr; }
  .money-detail { padding-left: 1.1rem; }
  .money-row summary { grid-template-columns: 1.6rem minmax(0, 1fr); grid-template-areas: "rank who" "rank total" "rank bar"; }
}

/* ---------- Who's left to do the work ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.workforce-section { background: var(--ink-soft); }
.workforce-panel { margin-top: 2.2rem; padding: 1.4rem 1.4rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.workforce-stat { display: grid; gap: .2rem; }
.workforce-stat output { font: 500 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.workforce-stat strong { font: 700 clamp(2.2rem, 6vw, 3.4rem)/1 var(--serif); color: var(--rust-bright); font-variant-numeric: tabular-nums; }
.workforce-stat span { color: var(--paper-dim); }
.workforce-chart { margin-top: 1rem; }
.workforce-chart svg { display: block; width: 100%; height: clamp(150px, 26vw, 200px); }
.wf-bar { fill: rgba(169, 181, 202, 0.45); cursor: pointer; transition: fill .15s; }
.wf-bar:hover { fill: rgba(169, 181, 202, 0.75); }
.wf-bar.is-on { fill: var(--rust-bright); }
.wf-grid { stroke: rgba(206, 220, 245, 0.10); stroke-width: 1; }
.wf-axis { fill: var(--paper-dim); font: 500 10px var(--mono); }
.wf-axis.is-on { fill: var(--rust-bright); }
.wf-band-a { fill: rgba(226, 169, 58, 0.06); } .wf-band-b { fill: rgba(108, 196, 255, 0.06); }
.wf-band-label { fill: var(--paper-dim); font: 500 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.wf-axis-note { margin: .2rem 0 0; font-size: .75rem; color: var(--paper-dim); text-align: right; }
#workforce-year { width: 100%; margin: .8rem 0 .3rem; accent-color: var(--rust); height: 2rem; cursor: pointer; }
.workforce-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 2rem; }
.workforce-list-head h3, .workforce-agencies h3 { margin: 0; font: 700 clamp(1.3rem, 2.6vw, 1.7rem)/1.2 var(--serif); }
.workforce-all, .wf-record { padding: .55rem 1rem; border: 1px solid rgba(226, 169, 58, 0.5); border-radius: 999px; background: transparent; color: var(--rust-bright); font: 600 .88rem var(--sans); cursor: pointer; }
.workforce-all:hover, .wf-record:hover { background: rgba(226, 169, 58, 0.12); }
.workforce-events { display: grid; gap: .9rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.wf-event article { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); }
.wf-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font: 500 .78rem var(--mono); color: var(--paper-dim); }
.wf-pill { padding: .15rem .55rem; border-radius: 999px; background: rgba(226, 169, 58, 0.14); color: var(--rust-bright); letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; }
.wf-admin { padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 999px; }
.wf-event h4 { margin: .6rem 0 .8rem; font: 700 clamp(1.15rem, 2.2vw, 1.4rem)/1.25 var(--serif); }
.wf-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin-bottom: .9rem; }
.wf-numbers div { display: grid; gap: .15rem; padding-left: .8rem; border-left: 2px solid var(--rust); }
.wf-numbers strong { font: 600 1.2rem var(--mono); font-variant-numeric: tabular-nums; }
.wf-numbers span { font-size: .85rem; color: var(--paper-dim); }
.wf-event p { margin: .4rem 0; color: var(--paper-dim); }
.wf-event p b { color: var(--paper); }
.wf-record { margin-top: .5rem; }
.wf-sources { display: grid; gap: .45rem; padding-left: 1.1rem; }
.wf-sources a { color: var(--violet); }
.wf-sources small { display: block; color: var(--paper-dim); }
.wf-reviewed { font: 500 .75rem var(--mono); }
.workforce-agencies { margin-top: 2.6rem; }
.agency-bars { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.agency-bars li { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr) 4rem; grid-template-areas: "name track pct" ". detail detail"; gap: .15rem .8rem; align-items: center; }
.ab-name { grid-area: name; font-size: .92rem; }
.ab-track { grid-area: track; height: .7rem; border-radius: 999px; background: rgba(206, 220, 245, 0.08); overflow: hidden; }
.ab-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rust), #ff8a6b); }
.ab-pct { grid-area: pct; text-align: right; font: 600 .9rem var(--mono); font-variant-numeric: tabular-nums; }
.ab-detail { grid-area: detail; font-size: .76rem; color: var(--paper-dim); }
@media (max-width: 640px) {
  .agency-bars li { grid-template-columns: minmax(0, 1fr) 3.6rem; grid-template-areas: "name pct" "track track" "detail detail"; }
}
@media (prefers-reduced-motion: reduce) { .wf-bar { transition: none; } }

/* ---------- Keep digging ---------- */
.dig-section { background: var(--ink); }
.dig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.dig-group { padding: 1.3rem 1.3rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); min-width: 0; }
.dig-group h3 { margin: 0; font: 700 1.3rem/1.2 var(--serif); }
.dig-group > p { margin: .4rem 0 .9rem; font-size: .9rem; color: var(--paper-dim); }
.dig-group ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.dig-group li { display: grid; gap: .1rem; }
.dig-group a { color: var(--violet); font-weight: 600; text-decoration: none; }
.dig-group a:hover { text-decoration: underline; }
.dig-group li span { font-size: .86rem; color: var(--paper-dim); }

/* Home closing principle: full-width band and a normal-size button. */
.page-home .freedom-section { max-width: none; margin: 0; padding-inline: max(clamp(1.2rem, 4vw, 4rem), calc((100% - 1280px) / 2 + 4rem)); }
.page-home .freedom-copy > p + p { margin-top: 1.6rem; }
.page-home .freedom-copy .primary-action { font-size: 1rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: .55rem; color-scheme: light; accent-color: #8a5a00; }
.contact-form label { font-weight: 600; color: var(--ink-on-light); }
.contact-form label span { font-weight: 400; color: var(--dim-on-light); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="url"], .contact-form textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #b9c3d4; border-radius: 10px; background: #fff; color: var(--ink-on-light); font: inherit; }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--gold-on-light); outline-offset: 2px; }
.contact-topics { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .3rem; padding: 0; border: 0; }
.contact-topics legend { width: 100%; margin-bottom: .35rem; font-weight: 600; color: var(--ink-on-light); }
.contact-topics label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.contact-count { margin: -.2rem 0 .3rem !important; font-size: .8rem; text-align: right; }
.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.contact-pair > div { display: grid; gap: .45rem; align-content: end; }
.contact-consent { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; color: var(--dim-on-light) !important; }
.contact-consent input { margin-top: .25rem; }
.contact-form .primary-action { justify-self: start; border: 0; cursor: pointer; }
.contact-form .primary-action:disabled { opacity: .6; cursor: wait; }
.contact-status { min-height: 1.4em; margin: 0 !important; font-weight: 600; color: #1d6b3a !important; }
.contact-status.contact-error { color: #a1271b !important; }
.contact-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .contact-pair { grid-template-columns: 1fr; } }

/* Notice shown only on the private test address (see preview-banner.js). */
.preview-banner { margin: 0; padding: .45rem 1rem; background: #f5c15a; color: #111a2e; font: 600 .82rem/1.3 var(--mono, monospace); letter-spacing: .02em; text-align: center; }

/* Home hero on phones: the turning picture gets its own square panel above the headline, centered on the
   figure (the person and Swilliam stand on the right of each picture), instead of a backdrop that crops them out. */
@media (max-width: 760px) {
  .page-home .hero { display: flex; flex-direction: column; min-height: 0; align-items: stretch; }
  .page-home .hero-stage { position: relative; inset: auto; width: 100%; aspect-ratio: 1 / 1; max-height: 70svh; z-index: 0; }
  .page-home .hero-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(0deg, #0f1625, rgba(15, 22, 37, 0)); pointer-events: none; }
  .page-home .hero-face { background-position: 76% center; }
  .page-home .hero-face .flag-wave-canvas { object-position: 76% center; }
  /* The left-side shading meant for text over the picture isn't needed when the text sits below it. */
  .page-home .hero-human { background-image: url("./assets/hero-dream-v50.webp"); }
  .page-home .hero-swilliam { background-image: url("./assets/hero-nightmare-v5.webp"); }
  .page-home .hero-face.flag-wave-ready::after { display: none; }
  .page-home .hero-scrim { display: none; }
  .page-home .hero-copy { position: relative; padding: 1.4rem 1.2rem 2.2rem; background: #0f1625; }
  .page-home .fiction-note { position: static; display: block; max-width: none; margin: 0; padding: 0 1.2rem 1.4rem; text-align: left; background: #0f1625; }
}
