@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/heebo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/heebo-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/heebo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/heebo-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('../fonts/poppins-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --navy-950: #07142d;
  --navy-900: #0b1b3a;
  --navy-850: #0d2045;
  --navy-800: #14213d;
  --navy-700: #243657;
  --gold-600: #c8902c;
  --gold-500: #d9a441;
  --gold-400: #e8ba60;
  --surface: #f4f6fb;
  --surface-2: #e9edf5;
  --ink: #14213d;
  --muted: #697386;
  --line: #dce2ec;
  --white: #fff;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 24px 70px rgba(11, 27, 58, .12);
  --radius: 6px;
  --radius-lg: 18px;
  --container: 1180px;
  --gold: #e8a317;
  --gold-deep: #c8902c;
  --gold-press: #b87a0a;
  --gold-ink: #8a5e0a;
  --navy: #14213d;
  --ink-muted: #4a5568;
  --gold-600: var(--gold-ink);
  --gold-500: var(--gold);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: Heebo, sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.muted, .fine-print { color: var(--muted); }
.fine-print { font-size: .88rem; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.institution-strip { background: var(--navy-950); color: rgba(255,255,255,.72); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.strip-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; }
.strip-inner a { color: var(--gold-400); font-weight: 700; }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); }
.header-inner { min-height: 112px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand img { width: 82px; height: 82px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: Poppins, sans-serif; font-size: 1.12rem; letter-spacing: .12em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .72rem; max-width: 205px; }
.brand .brand-tagline { max-width: 215px; font-size: .78rem; line-height: 1.35; letter-spacing: .015em; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; font-family: Inter, sans-serif; font-size: .89rem; font-weight: 700; }
.primary-nav a { padding-block: 10px; position: relative; }
.primary-nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: 3px; width: 0; height: 2px; background: var(--gold-500); transition: width .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { width: 100%; }
.primary-nav .nav-cta { background: var(--gold-500); padding: 13px 18px; border-radius: 4px; }
.language-menu { display: flex; gap: 5px; padding-left: 12px; border-left: 1px solid var(--line); }
.language-menu a { position: relative; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; font: 700 .7rem Inter, sans-serif; color: var(--muted); }
/* Extend the touch target to ~44px without changing layout. */
.language-menu a::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.language-menu a[aria-current=true] { background: var(--navy-900); color: white; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 11px 10px; min-width: 44px; min-height: 44px; }

.hero { background: var(--navy-900); color: white; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(217,164,65,.18); border-radius: 50%; right: -170px; top: -210px; box-shadow: 0 0 0 75px rgba(217,164,65,.025), 0 0 0 150px rgba(217,164,65,.02); }
.hero-grid { min-height: 620px; padding-block: 88px 72px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-400); font: 700 .73rem Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 36px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--gold-600); }
h1, h2, h3 { font-family: Poppins, sans-serif; line-height: 1.12; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.hero h1 { max-width: 780px; margin: 24px 0; }
.hero-lead { max-width: 680px; margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.27rem); line-height: 1.75; color: rgba(255,255,255,.76); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions--center { justify-content: center; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; padding: 12px 22px; font: 700 .9rem Inter, sans-serif; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(217,164,65,.45); outline-offset: 3px; }
.button--gold { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 12px 28px rgba(217,164,65,.18); }
.button--gold:hover { background: var(--gold-400); }
.button--outline { border-color: rgba(255,255,255,.38); color: white; background: transparent; }
.button--navy { background: var(--navy-900); color: white; }
.button--light { background: var(--surface); color: var(--navy-900); border-color: var(--line); }
.button--danger { color: white; background: var(--danger); }
.button--large { min-height: 58px; padding-inline: 28px; }
.campaign-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 32px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.7); font-size: .82rem; }
.campaign-pill span { width: 8px; height: 8px; border-radius: 50%; background: #a8b0bf; }
.campaign-pill--open span { background: #42d392; box-shadow: 0 0 0 5px rgba(66,211,146,.12); }
.campaign-pill--closed span { background: #ee6c65; }
.constitutional-card { position: relative; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 34px; backdrop-filter: blur(10px); }
.constitutional-card::before { content: ''; position: absolute; inset: 13px; border: 1px solid rgba(217,164,65,.18); border-radius: 12px; pointer-events: none; }
.constitutional-card svg { width: 70px; margin: 32px 0 24px; stroke: var(--gold-400); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-kicker { color: rgba(255,255,255,.5); font: 700 .68rem Inter,sans-serif; letter-spacing: .15em; }
.constitutional-card p { position: relative; color: rgba(255,255,255,.82); font-size: 1.02rem; }
.constitutional-card a { position: relative; color: var(--gold-400); font-weight: 700; font-size: .88rem; }
.trust-row { min-height: 76px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.12); align-items: center; }
.trust-row span { text-align: center; color: rgba(255,255,255,.58); font: 700 .73rem Inter,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.trust-row span::first-letter { color: var(--gold-500); }

.section { padding-block: 96px; }
.split-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.split-heading h2, .section-heading h2 { margin-top: 17px; }
.prose { color: #3e4a5d; font-size: 1.05rem; }
.prose p:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; }
.check-list li { padding-left: 30px; position: relative; font-weight: 600; color: var(--ink); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-600); font-weight: 900; }
.candidates-section { background: var(--surface); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); font-size: 1.03rem; }
.section-heading .fact-check-note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold-500); background: #fff; color: var(--navy-800); font-size: .86rem; line-height: 1.55; }
.candidate-tier + .candidate-tier { margin-top: 68px; }
.tier-heading { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; max-width: 880px; margin: 0 0 24px; padding-top: 22px; border-top: 1px solid #ccd4e2; }
.tier-heading>span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-500); color: var(--gold-600); font: 700 .75rem Inter,sans-serif; }
.tier-heading h3 { margin: 0; color: var(--navy-900); font-size: 1.42rem; }
.tier-heading p { margin: 7px 0 0; color: var(--muted); }
.candidate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.candidate-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.candidate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.candidate-portrait { aspect-ratio: 4/3; background: linear-gradient(145deg,var(--navy-850),var(--navy-950)); display: grid; place-items: center; position: relative; overflow: hidden; }
.candidate-portrait::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(217,164,65,.25); }
.candidate-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.82); }
.candidate-portrait span { font: 800 clamp(2.4rem,6vw,4.5rem) Poppins,sans-serif; color: rgba(255,255,255,.92); letter-spacing: -.05em; }
.candidate-card--none .candidate-portrait { background: linear-gradient(145deg,#e9edf5,#dce2ec); }
.candidate-card--none .candidate-portrait span { color: var(--navy-700); }
.candidate-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.candidate-number { color: var(--gold-600); font: 700 .67rem Inter,sans-serif; letter-spacing: .15em; }
.candidate-body h3 { margin-top: 10px; font-size: 1.45rem; }
.candidate-role { margin: 6px 0 12px; color: var(--gold-600)!important; font-weight: 700; }
.candidate-body p { margin: 0 0 21px; color: var(--muted); font-size: .94rem; }
.candidate-verification { display: flex; align-items: center; gap: 7px; margin: auto 0 14px; color: #536176; font: 700 .67rem Inter,sans-serif; letter-spacing: .02em; }
.candidate-verification span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #e7f7ef; color: #08734b; font-size: .65rem; }
.candidate-body a { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font: 700 .85rem Inter,sans-serif; }
.candidate-body a span { color: var(--gold-600); }
.process-section { background: var(--navy-850); color: white; }
.section-heading--light p { color: rgba(255,255,255,.7); }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.13); }
.process-grid li { background: var(--navy-850); padding: 32px; min-height: 245px; }
.process-grid li>span { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(217,164,65,.55); color: var(--gold-400); font: 700 .82rem Inter,sans-serif; border-radius: 50%; }
.process-grid h3 { margin: 38px 0 12px; }
.process-grid p { color: rgba(255,255,255,.62); margin: 0; }
.privacy-callout { background: white; }
.privacy-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; border: 1px solid var(--line); border-left: 5px solid var(--gold-500); padding: 38px; box-shadow: 0 18px 50px rgba(11,27,58,.07); }
.privacy-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--gold-600); font-size: 2rem; }
.privacy-panel h2 { font-size: 1.75rem; margin-top: 8px; }
.privacy-panel p { margin: 8px 0 0; color: var(--muted); }

.page-hero { background: var(--navy-900); color: white; padding-block: 82px; }
.page-hero--short { padding-block: 62px; }
.page-hero h1 { margin: 18px 0; font-size: clamp(2.5rem,5vw,4.4rem); }
.page-hero--profile { padding-block: 62px; }
.profile-hero { display: grid; grid-template-columns: 330px 1fr; gap: 54px; align-items: center; }
.candidate-portrait--large { aspect-ratio: 4/5; border: 1px solid rgba(255,255,255,.18); }
.profile-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; }
.prose--large { font-size: 1.14rem; }
.prose h2 { color: var(--ink); margin: 0 0 20px; }
.profile-facts { display: grid; gap: 0; margin: 35px 0; border-top: 1px solid var(--line); }
.profile-facts div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font: 700 .7rem Inter,sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.profile-facts dd { margin: 6px 0 0; color: var(--ink); font-weight: 700; }
.source-card { background: var(--surface); padding: 30px; align-self: start; border-top: 4px solid var(--gold-500); }
.source-card h2 { font-size: 1.3rem; }
.source-card ol { padding-left: 22px; }
.source-card li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.source-card a { font-weight: 700; }
.source-card small { display: block; margin-top: 3px; color: var(--muted); }
.supporter-section { background: var(--surface); }
.supporter-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.supporter-grid div { background: white; border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; }
.supporter-grid span { color: var(--muted); font-size: .85rem; }

.form-section { background: var(--surface); }
.form-container { max-width: 1020px; }
.participation-form { display: grid; gap: 26px; }
.form-step { border: 1px solid var(--line); background: white; padding: 30px; margin: 0; }
.form-step legend { background: white; padding: 0 15px; font: 700 1.15rem Poppins,sans-serif; }
.form-step legend span { color: var(--gold-600); margin-right: 10px; font-size: .82rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.choice-grid--compact { max-height: 580px; overflow: auto; padding-right: 5px; }
.choice-card { position: relative; display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); padding: 15px; cursor: pointer; transition: border .16s, background .16s; }
.choice-card:hover { border-color: var(--gold-500); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { background: #fffbf2; border-color: var(--gold-500); box-shadow: inset 4px 0 0 var(--gold-500); }
.choice-mark, .result-initials { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: white; font: 700 .78rem Poppins,sans-serif; }
.choice-mark { overflow: hidden; }
.choice-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.profile-portrait { margin: 0; }
.profile-portrait figcaption { margin-top: 9px; color: rgba(255,255,255,.62); font-size: .7rem; line-height: 1.45; }
.profile-portrait figcaption a { color: var(--gold); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { color: var(--muted); line-height: 1.25; margin-top: 3px; }
.choice-card i { opacity: 0; margin-left: auto; color: var(--success); font-style: normal; font-weight: 900; }
.choice-card:has(input:checked) i { opacity: 1; }
.field-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
label>span { display: block; margin-bottom: 7px; font: 700 .82rem Inter,sans-serif; }
input, select, textarea { width: 100%; border: 1px solid #cfd6e2; border-radius: 3px; background: white; color: var(--ink); padding: 13px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-600); }
textarea { resize: vertical; }
.consent-step { display: grid; gap: 13px; }
.check-control { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); padding: 15px; cursor: pointer; }
.check-control input { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; accent-color: var(--navy-900); }
.check-control span { margin: 0; font: 500 .94rem Heebo,sans-serif; }
.check-control a { color: var(--gold-600); text-decoration: underline; }
.check-control--important { border-left: 4px solid var(--gold-500); }
.submission-panel { background: white; border: 1px solid var(--line); padding: 25px; display: grid; grid-template-columns: 1fr auto auto; gap: 22px; align-items: center; }
.submission-panel p { margin: 4px 0 0; color: var(--muted); }
.honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.state-card { max-width: 700px; margin: 0 auto; text-align: center; padding: 55px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.state-card h2 { margin: 18px 0; }
.state-card p { color: var(--muted); }
.state-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: auto; background: var(--surface); color: var(--gold-600); font: 800 1.8rem Poppins,sans-serif; }
.auth-card { max-width: 520px; border: 1px solid var(--line); background: white; padding: 40px; box-shadow: var(--shadow); }
.auth-card form { display: grid; gap: 20px; }
.otp-input { text-align: center; font: 800 2rem Inter,sans-serif; letter-spacing: .35em; }
.confirmation-section { min-height: 70vh; background: var(--surface); display: grid; align-items: center; }
.confirmation-card { max-width: 760px; text-align: center; background: white; padding: 60px; box-shadow: var(--shadow); border-top: 5px solid var(--gold-500); }
.confirmation-card h1 { font-size: clamp(2.2rem,4vw,3.5rem); margin: 18px 0; }
.confirmation-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #e6f7ef; color: var(--success); font-size: 2rem; font-weight: 900; }
.private-link { margin: 30px 0; padding: 18px; background: var(--surface); text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.private-link strong { grid-column: 1/-1; }
.private-link input { background: white; }
.private-link button { border: 0; background: var(--navy-900); color: white; padding-inline: 18px; cursor: pointer; }
.danger-zone { margin-top: 45px; border: 1px solid #f2b8b5; background: #fff7f6; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.danger-zone p { margin: 4px 0 0; color: var(--muted); }

.results-section { background: var(--surface); }
.result-total { margin-bottom: 35px; display: flex; align-items: baseline; gap: 14px; }
.result-total strong { font: 900 3rem Poppins,sans-serif; }
.result-total span { color: var(--muted); }
.publication-commitment { margin: -18px 0 30px; padding: 14px 16px; border-left: 4px solid var(--navy); background: white; color: var(--ink-muted); }
.result-list { display: grid; gap: 10px; }
.result-row { display: grid; grid-template-columns: 52px minmax(250px,1.3fr) 100px minmax(150px,1fr) 44px; gap: 18px; align-items: center; background: white; border: 1px solid var(--line); padding: 18px 22px; }
.result-rank { color: #a1a9b8; font: 700 .78rem Inter,sans-serif; }
.result-person { display: flex; gap: 14px; align-items: center; }
.result-person h2 { font-size: 1.08rem; }
.result-person p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.result-metric { display: flex; flex-direction: column; align-items: flex-end; }
.result-metric strong { font: 800 1.2rem Poppins,sans-serif; }
.result-metric span { color: var(--gold-600); font-weight: 700; }
.result-bar { height: 7px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.result-bar span { display: block; height: 100%; background: var(--gold-500); min-width: 0; }
.result-row>a { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 1.4rem; color: var(--gold-600); }
.method-note { margin-top: 30px; padding: 22px; border-left: 4px solid var(--gold-500); background: #fffaf1; }
.method-note p { margin: 4px 0 0; color: var(--muted); }
.legal-page { background: var(--surface); }
.prose--legal { max-width: 820px; }
.prose--legal h2 { font-size: 1.55rem; margin-top: 42px; }
.prose--legal p { line-height: 1.85; }
.prose--legal a { color: var(--gold-600); text-decoration: underline; }
.about-page { background: #fff; }
.about-intro-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 70px; align-items: start; }
.about-intro-grid .prose h2 { max-width: 820px; margin-top: 18px; }
.about-principles { padding: 34px; border-top: 5px solid var(--gold); background: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.about-principles h2 { margin-bottom: 24px; font-size: 1.7rem; }
.about-principles ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.about-principles li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.82); }
.about-principles li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.about-credentials { margin-top: 78px; padding-top: 58px; border-top: 1px solid var(--line); }
.credential-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 30px; }
.credential-card { min-height: 190px; padding: 28px; border: 1px solid var(--line); border-bottom: 4px solid var(--navy-900); background: var(--surface); }
.credential-card span { display: block; color: var(--ink-muted); font: 800 .72rem Inter,sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.credential-card strong { display: block; margin: 18px 0 8px; color: var(--navy-900); font: 800 1.25rem Poppins,sans-serif; overflow-wrap: anywhere; }
.credential-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.about-independence { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; margin-top: 60px; padding: 42px; background: #f4f0e8; border-left: 5px solid var(--gold); }
.about-independence h2 { margin-top: 14px; font-size: 2rem; }
.about-independence p { margin-top: 0; color: #3e4a5d; line-height: 1.75; }
.about-independence a { color: var(--gold-ink); font-weight: 800; }
.legal-summary { display: flex; flex-direction: column; padding: 26px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--gold-500); }
.error-page { min-height: 70vh; background: var(--surface); display: grid; align-items: center; }

.flash-stack { position: fixed; z-index: 500; right: 20px; top: 130px; width: min(420px,calc(100% - 40px)); pointer-events: none; }
.flash { padding: 14px 17px; margin-bottom: 9px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--navy-900); }
.flash--error { border-left-color: var(--danger); background: #fff7f6; }
.flash--success { border-left-color: var(--success); background: #f2fbf7; }

.site-footer { background: var(--navy-950); color: white; padding-block: 58px; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.4fr .6fr; gap: 55px; align-items: start; }
.footer-brand small { color: rgba(255,255,255,.5); }
.site-footer p { margin-top: 0; color: rgba(255,255,255,.7); }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--gold-400); font-weight: 700; }

/* Administration */
.admin-shell { background: var(--surface); }
.admin-header { min-height: 76px; background: var(--navy-950); color: white; display: flex; align-items: center; padding: 10px 28px; gap: 40px; }
.brand--compact img { width: 44px; height: 44px; }
.brand--compact small { color: rgba(255,255,255,.55); }
.admin-header nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font: 700 .84rem Inter,sans-serif; }
.admin-header nav form { margin: 0; }
.link-button { color: var(--gold-600); font-weight: 700; border: 0; background: transparent; cursor: pointer; padding: 0; }
.admin-header .link-button { color: var(--gold-400); }
.setup-page, .admin-login { min-height: 100vh; display: grid; place-items: center; padding: 35px 20px; background: var(--surface); }
.setup-card { width: min(680px,100%); background: white; border-top: 5px solid var(--gold-500); padding: 46px; box-shadow: var(--shadow); }
.setup-brand { margin-bottom: 28px; }
.setup-card h1, .admin-login h1 { font-size: 2.1rem; margin-bottom: 12px; }
.requirement-list { list-style: none; margin: 25px 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.requirement-list li { padding: 11px 13px; background: var(--surface); font-weight: 600; }
.requirement-list li span { display: inline-grid; width: 22px; margin-right: 7px; font-weight: 900; }
.requirement-list .passed span { color: var(--success); }
.requirement-list .failed span { color: var(--danger); }
.stack-form { display: grid; gap: 18px; }
.secret-box { display: grid; gap: 7px; background: var(--navy-950); color: white; padding: 22px; margin: 25px 0; }
.secret-box span { color: rgba(255,255,255,.58); font-size: .75rem; }
.secret-box code { font-size: 1rem; word-break: break-all; color: var(--gold-400); }
.admin-login .auth-card { margin: auto; width: min(480px,100%); }
.admin-page { padding: 48px 20px 80px; }
.admin-container { width: min(1180px,100%); margin: auto; }
.admin-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.admin-title h1 { font-size: clamp(2rem,4vw,3.2rem); margin-top: 8px; }
.admin-title p { margin-bottom: 0; color: var(--muted); }
.status-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #eef1f6; color: var(--muted); font: 700 .68rem Inter,sans-serif; text-transform: uppercase; }
.status-badge--open, .status-badge--confirmed { background: #dff6eb; color: var(--success); }
.status-badge--closed, .status-badge--quarantined { background: #fde8e7; color: var(--danger); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.metric-grid article { background: white; border: 1px solid var(--line); padding: 24px; }
.metric-grid span { display: block; color: var(--muted); font-size: .82rem; }
.metric-grid strong { font: 800 2.2rem Poppins,sans-serif; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.admin-panel { background: white; border: 1px solid var(--line); padding: 28px; }
.admin-panel h2 { font-size: 1.3rem; margin-bottom: 22px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-results, .audit-list { display: grid; }
.mini-results div, .audit-list div { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.audit-list div { align-items: flex-start; flex-direction: column; gap: 2px; }
.audit-list small { color: var(--muted); }
.admin-candidate-list { display: grid; gap: 9px; }
.admin-candidate-list>a { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 16px; align-items: center; background: white; border: 1px solid var(--line); padding: 16px; }
.admin-candidate-list small { display: block; color: var(--muted); }
.admin-candidate-list b { color: var(--gold-600); font-size: .82rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a1a9b8; }
.status-dot.active { background: var(--success); }
.translation-fieldset { border: 1px solid var(--line); padding: 22px; }
.translation-fieldset legend { padding: 0 10px; font: 700 1rem Poppins,sans-serif; }
.source-manager { margin-top: 22px; }
.source-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.source-admin-row small { display: block; color: var(--muted); }
.danger-text { color: var(--danger); }
.source-form { margin-top: 25px; }
.span-two { grid-column: span 2; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font: 700 .7rem Inter,sans-serif; text-transform: uppercase; letter-spacing: .08em; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td small { display: block; color: var(--muted); }
td select { min-width: 130px; padding: 7px; margin-right: 8px; }

/* Engagement upgrade 1.2 */
.eyebrow, .eyebrow--dark { color: var(--ink-muted); }
.hero .eyebrow, .page-hero .eyebrow { color: rgba(255,255,255,.72); }
.primary-nav .nav-cta { background: var(--gold); color: var(--navy); box-shadow: 0 3px 0 var(--gold-press); }
.nav-vote-wrap { display: grid; align-items: center; text-align: center; }
.nav-vote-wrap small { max-width: 170px; margin-top: 5px; color: var(--ink-muted); font: 500 .58rem Heebo,sans-serif; line-height: 1.2; }
.site-header.is-condensed .header-inner { min-height: 64px; }
.site-header.is-condensed .brand img { width: 54px; height: 54px; }
.institution-strip.is-collapsed { display: none; }

.hero--compact { min-height: 0; }
.hero-compact-grid { min-height: 370px; padding-block: 54px; display: grid; grid-template-columns: 1.45fr .55fr; gap: 70px; align-items: center; position: relative; }
.hero--compact h1 { max-width: 780px; margin: 17px 0 15px; font-size: clamp(2.55rem,5.4vw,4.8rem); }
.hero--compact .hero-lead { line-height: 1.58; }
.hero-action-card { position: relative; z-index: 1; padding: 25px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.065); border-radius: var(--radius-lg); }
.hero-live-total { display: flex; align-items: baseline; gap: 9px; }
.hero-live-total strong { font: 900 2.25rem Poppins,sans-serif; }
.hero-live-total span { color: rgba(255,255,255,.7); font-size: .82rem; }
.hero-deadline { margin: 2px 0 16px; color: rgba(255,255,255,.76); font-size: .84rem; }
.hero-micro { display: block; margin-top: 9px; color: rgba(255,255,255,.72); text-align: center; }
.hero-action-card .campaign-pill { margin-top: 16px; }

.btn-vote { position: relative; z-index: 4; min-height: 52px; width: 100%; display: inline-flex!important; align-items: center; justify-content: center!important; padding: 12px 20px!important; border: 0!important; border-radius: 4px; background: var(--gold)!important; color: var(--navy)!important; box-shadow: 0 3px 0 var(--gold-press); font: 800 1rem Inter,sans-serif!important; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .16s ease,box-shadow .16s ease,background .16s ease; }
.btn-vote:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--gold-press),0 12px 25px rgba(20,33,61,.18); }
.btn-vote:active { transform: translateY(3px); box-shadow: none; }
.btn-vote:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn-vote[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-vote--hero { margin-top: 4px; }
.vote-disclaimer { display: block; margin: 8px 0 0; color: var(--ink-muted); font-size: .72rem; line-height: 1.35; text-align: center; }
.vote-disclaimer--dark { color: rgba(255,255,255,.72); }
.vote-disclaimer--light { grid-column: 1/-1; }

.candidates-section--immediate { padding-top: 58px; }
.candidate-section-heading { margin-bottom: 24px; }
.editorial-details { margin-top: 16px; border-left: 3px solid var(--ink-muted); background: white; padding: 10px 15px; }
.editorial-details summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.editorial-details p { margin: 10px 0 0; font-size: .88rem; }
.tier-nav { position: sticky; top: 64px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; margin: 0 0 35px; padding: 10px; background: rgba(244,246,251,.96); border: 1px solid var(--line); backdrop-filter: blur(10px); scrollbar-width: none; }
.tier-nav a { flex: 0 0 auto; padding: 8px 11px; color: var(--ink-muted); font: 700 .72rem Inter,sans-serif; border-radius: 3px; }
.tier-nav a.is-active { background: var(--navy); color: white; }
.candidate-tier { scroll-margin-top: 130px; }
.candidate-tier + .candidate-tier { margin-top: 54px; }
.tier-heading { grid-template-columns: 38px 1fr; gap: 11px; align-items: center; max-width: none; margin-bottom: 18px; padding-top: 15px; }
.tier-heading>span { width: 32px; height: 32px; border-color: #9ca7b8; color: var(--ink-muted); font-size: .66rem; }
.tier-heading h3 { font-size: 1.13rem; letter-spacing: -.02em; }
.candidate-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
#grupi-1 .candidate-grid,#grupi-2 .candidate-grid,#grupi-3 .candidate-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.candidate-card { position: relative; border-radius: 8px; }
.candidate-portrait { aspect-ratio: 4/5; isolation: isolate; }
.candidate-portrait::before { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg,rgba(240,228,206,.16),rgba(20,33,61,.30)); mix-blend-mode: multiply; pointer-events: none; }
.candidate-portrait::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: 2; border: 0; background: linear-gradient(to top,rgba(20,33,61,.55),transparent); pointer-events: none; }
.candidate-portrait img { object-position: var(--focal,50% 32%); filter: grayscale(1) contrast(1.04); transition: filter .3s ease; }
.candidate-card:hover .candidate-portrait img { filter: grayscale(.15) contrast(1.02); }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; background: linear-gradient(160deg,#324563,#0b1b3a); }
.portrait-placeholder svg { width: 34%; fill: rgba(255,255,255,.18); }
.portrait-placeholder span { font: 700 1.2rem Inter,sans-serif; color: rgba(255,255,255,.75); }
.live-vote-badge { position: absolute; z-index: 5; top: 15px; left: 50%; transform: translateX(-50%); min-width: 116px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 8px 25px rgba(7,20,45,.22); text-align: center; backdrop-filter: blur(8px); }
.live-vote-badge strong { display: block; font: 900 1.16rem Poppins,sans-serif; line-height: 1; }
.live-vote-badge span { color: var(--ink-muted); font: 700 .62rem Inter,sans-serif; letter-spacing: .03em; }
.live-vote-badge.is-updating { animation: countPulse .65s ease; }
@keyframes countPulse { 50% { transform: translateX(-50%) scale(1.1); background:#e6f7ef; } }
.candidate-body { padding: 22px; }
.candidate-body h3 { margin: 0; font-size: 1.42rem; }
.candidate-role { min-height: 2.9em; margin: 6px 0 11px; color: var(--ink-muted)!important; font-size: .88rem!important; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.candidate-summary { min-height: 4.65em; margin-bottom: 18px!important; color: var(--ink-muted)!important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.candidate-actions { margin-top: auto; position: relative; z-index: 3; }
.candidate-body .candidate-actions a { border: 0; }
.candidate-link { position: static; min-height: 44px; margin-top: 8px!important; padding: 10px 0 0!important; justify-content: center!important; color: var(--ink-muted); font-size: .86rem!important; text-decoration: underline; text-underline-offset: 4px; }
.candidate-link--stretched::after { content: ''; position: absolute; z-index: 1; inset: 0; }
.candidate-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; }

.constitutional-note-inline { margin-top: 34px; padding: 24px; border: 1px solid rgba(255,255,255,.15); display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.constitutional-note-inline strong { color: rgba(255,255,255,.72); font: 800 .72rem Inter,sans-serif; letter-spacing: .1em; }
.constitutional-note-inline p { margin: 0; color: rgba(255,255,255,.72); }
.constitutional-note-inline a { color: var(--gold-400); font-weight: 800; }
.process-grid h3 { min-height: 2.5em; }
.privacy-icon svg { width: 32px; fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.vote-dialog { width: min(980px,calc(100% - 30px)); max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 32px 90px rgba(7,20,45,.35); }
.vote-dialog::backdrop { background: rgba(7,20,45,.72); backdrop-filter: blur(5px); }
.vote-dialog__header { position: sticky; top: 0; z-index: 8; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); background: white; }
.vote-dialog__header h2 { margin-top: 5px; font-size: 1.8rem; }
.vote-dialog__body { padding: 25px; background: var(--surface); }
.dialog-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); font-size: 1.7rem; cursor: pointer; }
.choice-confirmation { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px; border: 2px solid var(--navy); background: white; }
.choice-confirmation>span { color: var(--ink-muted); font: 800 .72rem Inter,sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.choice-confirmation__person { display: flex; align-items: center; gap: 12px; }
.choice-confirmation__person strong,.choice-confirmation__person small { display: block; }
.choice-confirmation__person small { color: var(--ink-muted); }
.button-link { border: 0; background: transparent; color: var(--navy); font-weight: 800; text-decoration: underline; cursor: pointer; }
.location-fields { display: grid; gap: 12px; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); padding: 4px; background: var(--surface); }
.segmented-control label { position: relative; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { margin: 0; padding: 9px; text-align: center; }
.segmented-control label:has(input:checked) span { background: var(--navy); color: white; }
.field-error { display: block; min-height: 1.1em; color: var(--danger); font-size: .75rem; }
.submission-panel .btn-vote { min-width: 245px; }
.page-hero--compact { padding-block: 48px; }
.profile-hero--rich { grid-template-columns: 330px minmax(0,1fr) 310px; gap: 42px; }
.profile-page-hero .candidate-portrait::before,.profile-page-hero .candidate-portrait::after { display:block; }
.profile-hero-copy h1 { margin: 12px 0; }
.profile-vote { max-width: 280px; margin-top: 24px; }
.profile-hero-copy>.vote-disclaimer { max-width: 280px; }
.profile-facts--hero { margin: 26px 0 0; border-color: rgba(255,255,255,.18); }
.profile-facts--hero div { padding: 13px 0; border-color: rgba(255,255,255,.15); }
.profile-facts--hero dt { color: rgba(255,255,255,.58); }
.profile-facts--hero dd { color: white; }
.source-card--hero { background: rgba(255,255,255,.08); color: white; border-top-color: var(--gold); }
.source-card--hero h2,.source-card--hero a { color: white; }
.source-card--hero small { color: rgba(255,255,255,.72); font-size: .8rem; }
.profile-portrait figcaption { font-size: .81rem; color: rgba(255,255,255,.82); }
.profile-detail-section { background: white; }
.profile-detail-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 75px; }
.profile-detail-grid>aside>h2 { margin-bottom: 25px; }
.editorial-reason { margin-top: 34px; padding: 22px; border-left: 4px solid var(--navy); background: var(--surface); }
.editorial-reason span { color: var(--ink-muted); font: 800 .72rem Inter,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.editorial-reason p { margin: 7px 0 0; color: var(--navy); }
.career-timeline { list-style: none; margin: 0; padding: 0; }
.career-timeline li { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 0 0 27px; position: relative; }
.career-timeline li::before { content:''; position:absolute; left:95px; top:10px; bottom:0; width:1px; background:var(--line); }
.career-timeline time { color: var(--ink-muted); font: 800 .76rem Inter,sans-serif; }
.career-timeline div { padding-left: 24px; position:relative; }
.career-timeline div::before { content:''; position:absolute; left:-12px; top:6px; width:9px; height:9px; border-radius:50%; background:var(--navy); }
.career-timeline h3 { font-size: 1.05rem; }
.career-timeline p { margin: 7px 0 0; color: var(--ink-muted); }
.career-timeline li.is-undated { grid-template-columns: 1fr; padding-left: 24px; }
.career-timeline li.is-undated::before { left: 4px; }
.career-timeline li.is-undated div { padding-left: 0; }
.career-timeline li.is-undated div::before { left: -24px; }

.mobile-vote-bar { display: none; }

@media (max-width:1020px) {
  .hero-compact-grid { grid-template-columns: 1fr .72fr; gap: 35px; }
  .candidate-grid,#grupi-1 .candidate-grid,#grupi-2 .candidate-grid,#grupi-3 .candidate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tier-nav { top: 88px; }
  .profile-hero--rich { grid-template-columns: 280px 1fr; }
  .source-card--hero { grid-column: 1/-1; }
}

@media (max-width:700px) {
  body:has(.mobile-vote-bar) { padding-bottom: 76px; }
  .hero-compact-grid { min-height: 0; grid-template-columns: 1fr; gap: 25px; padding-block: 42px; }
  .hero--compact h1 { font-size: clamp(2.35rem,11vw,3.4rem); }
  .hero-action-card { padding: 18px; }
  .candidates-section--immediate { padding-top: 42px; }
  .tier-nav { display: none; }
  .candidate-grid,#grupi-1 .candidate-grid,#grupi-2 .candidate-grid,#grupi-3 .candidate-grid { grid-template-columns: 1fr; }
  .profile-hero--rich,.profile-detail-grid { grid-template-columns:1fr; }
  .candidate-tier + .candidate-tier { margin-top: 42px; }
  .candidate-body { padding: 20px; }
  .constitutional-note-inline { grid-template-columns: 1fr; }
  .choice-confirmation { grid-template-columns: 1fr auto; }
  .choice-confirmation>span { grid-column: 1/-1; }
  .vote-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .vote-dialog__body { padding: 14px; }
  .mobile-vote-bar { position: fixed; z-index: 90; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 9px 8px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(11,27,58,.96); color: white; box-shadow: 0 16px 45px rgba(7,20,45,.35); transform: translateY(130%); transition: transform .25s ease; }
  .mobile-vote-bar.is-visible { transform: translateY(0); }
  .mobile-vote-bar strong,.mobile-vote-bar span { display: block; }
  .mobile-vote-bar span { color: rgba(255,255,255,.65); font-size: .68rem; }
  .mobile-vote-bar .btn-vote { width: auto; min-width: 125px; }
}

@media (max-width: 1020px) {
  .header-inner { min-height: 92px; }
  /* Anchored to the header's real bottom edge so the JS-condensed header
     cannot detach the open menu; scrolls internally on short viewports. */
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: min(70dvh, 480px); overflow-y: auto; background: white; padding: 24px 20px; display: none; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .menu-toggle { display: grid; margin-left: auto; gap: 4px; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .language-menu { padding-left: 0; border-left: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .constitutional-card { max-width: 680px; }
  .candidate-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .submission-panel { grid-template-columns: 1fr auto; }
  .submission-panel .button { grid-column: 1/-1; }
  .profile-content { gap: 35px; }
  .footer-grid { grid-template-columns: 1fr 1.5fr; }
  .footer-links { grid-column: 1/-1; grid-template-columns: repeat(3,auto); justify-content: start; gap: 25px; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .institution-strip { display: none; }
  .brand img { width: 64px; height: 64px; }
  .brand .brand-tagline { max-width: 150px; font-size: .65rem; }
  .hero-grid { min-height: auto; padding-block: 68px 52px; }
  .hero h1 { font-size: clamp(2.5rem,12vw,3.8rem); }
  .trust-row { grid-template-columns: repeat(2,1fr); padding-block: 14px; gap: 15px; }
  .section { padding-block: 68px; }
  .split-heading, .profile-content, .profile-hero { grid-template-columns: 1fr; gap: 32px; }
  .candidate-portrait--large { max-width: 330px; }
  .candidate-grid, .choice-grid, .field-grid, .supporter-grid, .metric-grid, .admin-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: auto; }
  .privacy-panel { grid-template-columns: 1fr; }
  .credential-grid,.about-independence { grid-template-columns: 1fr; }
  .about-independence { gap: 24px; padding: 28px 22px; }
  .privacy-icon { display: none; }
  .page-hero { padding-block: 58px; }
  .form-step { padding: 20px 15px; }
  .submission-panel { grid-template-columns: 1fr; }
  .submission-panel .button { grid-column: auto; }
  .result-row { grid-template-columns: 38px 1fr auto; gap: 10px; padding: 14px; }
  .result-row .result-bar { grid-column: 2/-1; }
  .result-row>a { grid-column: 3; grid-row: 1; }
  .result-initials { display: none; }
  .confirmation-card { padding: 38px 20px; }
  .private-link { grid-template-columns: 1fr; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-links { grid-column: auto; grid-template-columns: 1fr; }
  .admin-header { flex-wrap: wrap; }
  .admin-header nav { order: 3; width: 100%; overflow-x: auto; margin: 0; padding-bottom: 5px; }
  .admin-page { padding-inline: 0; }
  .admin-title { flex-direction: column; }
  .requirement-list { grid-template-columns: 1fr; }
  .setup-card { padding: 30px 20px; }
  .span-two { grid-column: span 1; }
}

@media (max-width: 430px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; min-width: 0; flex: 0 1 auto; }
  .brand img { width: 48px; height: 48px; }
  .brand .brand-tagline { display: none; }
  .language-menu { gap: 4px; padding-left: 6px; }
  .submission-panel { padding: 16px 12px; }
  .submission-panel .btn-vote { min-width: 0; width: 100%; }
  .submission-panel > div, .submission-panel .cf-turnstile { min-width: 0; }
  .form-step { padding: 18px 12px; }
}

@media (max-width: 360px) {
  .brand strong { font-size: .95rem; letter-spacing: .08em; }
  /* The Turnstile iframe has a fixed 300px width; scale it into the
     narrower panel instead of letting it force horizontal scroll. */
  .cf-turnstile { transform: scale(.86); transform-origin: 0 50%; }
}

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