/* =========================================================================
   ARD FMC DECIDES — public ballot design system
   -------------------------------------------------------------------------
   Flat colour only. No gradients anywhere in this file.

   The visual idea is a printed campaign poster: deep flat colour blocks,
   heavy display type, big portrait photographs in framed "poster" cards,
   and a multi-colour rule that echoes the edge of a paper ballot.
   ========================================================================= */

:root {
  /* ---- Paper & ink ---------------------------------------------------- */
  --paper:        #FFFFFF;
  --paper-2:      #FBF9F4;
  --canvas:       #F6F2E8;
  --canvas-2:     #EDE7D8;
  --ink:          #14171D;
  --ink-2:        #333B49;
  --muted:        #69707E;
  --muted-2:     #9AA1AE;
  --line:         #E6E0D2;
  --line-2:       #D1C8B4;

  /* ---- Brand ----------------------------------------------------------- */
  --brand:        #0C6B4B;
  --brand-2:      #0A5C40;
  --brand-deep:   #05291C;
  --brand-ink:    #041B13;
  --brand-soft:   #E0F0E6;
  --gold:         #E9A825;
  --gold-2:       #C98A0D;
  --gold-soft:    #FBEFD4;
  --gold-ink:     #77510A;

  /* ---- Flat accent rotation (one hue per position) -------------------- */
  --acc-crimson:  #CE1126;  --acc-crimson-soft:  #FCE8EA;
  --acc-blue:     #1B5FD9;  --acc-blue-soft:     #E7EEFC;
  --acc-amber:    #B8730A;  --acc-amber-soft:    #FBF0DC;
  --acc-violet:   #6A3FC9;  --acc-violet-soft:   #EEE8FB;
  --acc-teal:     #0A8A80;  --acc-teal-soft:     #E0F4F2;
  --acc-magenta:  #C21E7A;  --acc-magenta-soft:  #FBE7F1;
  --acc-olive:    #4F7A18;  --acc-olive-soft:    #EDF4E0;
  --acc-orange:   #D9541E;  --acc-orange-soft:   #FCEBE1;
  --acc-indigo:   #3A4BA8;  --acc-indigo-soft:   #E9EBF8;
  --acc-bronze:   #8A4B1F;  --acc-bronze-soft:   #F6E9E1;

  /* ---- Semantic -------------------------------------------------------- */
  --danger:       #CE1126;
  --danger-soft:  #FCE8EA;
  --danger-ink:   #8E0B18;
  --success:      #0C6B4B;
  --success-soft: #E0F0E6;
  --success-ink:  #075038;
  --warning:      #B8730A;
  --warning-soft: #FBF0DC;
  --info:         #1B5FD9;
  --info-soft:    #E7EEFC;

  /* ---- Elevation (solid tints, never gradients) ----------------------- */
  --shadow-xs: 0 1px 2px rgba(20, 23, 29, .05);
  --shadow-sm: 0 3px 10px rgba(20, 23, 29, .06);
  --shadow:    0 10px 26px rgba(20, 23, 29, .08);
  --shadow-lg: 0 26px 60px rgba(20, 23, 29, .16);
  --shadow-pop: 0 18px 44px rgba(20, 23, 29, .22);

  /* ---- Shape & type ---------------------------------------------------- */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Black", "Segoe UI Semibold",
                  "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  --wrap: 1220px;
  --header-h: 74px;
  --header-total: 81px;
}

/* =========================================================================
   1. Base
   ========================================================================= */

body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { overflow-x: clip; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--ink);
}

a { color: var(--brand); }

::selection { background: #F6D98C; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(720px, calc(100% - 40px)); margin-inline: auto; }

/* =========================================================================
   2. Colour rule — the ballot edge motif
   ========================================================================= */

.color-rule {
  display: flex;
  width: 100%;
  height: 7px;
  line-height: 0;
}
.color-rule > i { display: block; flex: 1 1 0; }
.color-rule > i:nth-child(1) { background: #CE1126; }
.color-rule > i:nth-child(2) { background: #E9A825; }
.color-rule > i:nth-child(3) { background: #0C6B4B; }
.color-rule > i:nth-child(4) { background: #1B5FD9; }
.color-rule > i:nth-child(5) { background: #6A3FC9; }
.color-rule > i:nth-child(6) { background: #D9541E; }
.color-rule > i:nth-child(7) { background: #0A8A80; }
.color-rule > i:nth-child(8) { background: #C21E7A; }

.color-rule--thin { height: 5px; }

/* =========================================================================
   3. Public header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--brand-deep);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  min-width: 0;
}
.brand:hover { color: #fff; }

.brand-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--paper);
  border: 2px solid rgba(255, 255, 255, .28);
  display: grid; place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.brand-logo { width: 100%; height: 100%; object-fit: cover; }

.brand-text { min-width: 0; }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.015em;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text small {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.header-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.only-narrow { display: none; }
.hide-sm { display: inline-flex; }

.header-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: .74rem; font-weight: 800;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}
.header-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #5BE49B; }
.header-chip.is-closed .dot { background: #F3A0A0; }
.header-chip.is-open .dot { animation: pulse 1.9s ease infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: .82rem; font-weight: 700;
  max-width: 220px;
}
.user-chip .avatar-xs {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--brand-ink);
  font-size: .7rem; font-weight: 900;
  flex: 0 0 auto;
}
.user-chip .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-chip--gold {
  background: rgba(233, 168, 37, .14);
  border-color: rgba(233, 168, 37, .45);
  color: var(--gold);
}
.user-chip--gold .label { color: var(--gold); }

/* =========================================================================
   4. Buttons (flat, with a solid offset edge for the primary action)
   ========================================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.15;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
              border-color .16s ease, color .16s ease;
}
.btn svg { flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 0 var(--brand-deep);
}
.btn-primary:hover { background: #0F7B56; color: #fff; box-shadow: 0 7px 0 var(--brand-deep); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brand-deep); }

.btn-gold {
  background: var(--gold);
  color: #3B2700;
  box-shadow: 0 5px 0 var(--gold-2);
}
.btn-gold:hover { background: #F2B63A; color: #3B2700; box-shadow: 0 7px 0 var(--gold-2); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-2); }

.btn-secondary { background: var(--brand-soft); color: var(--brand-deep); border-color: rgba(12, 107, 75, .16); }
.btn-secondary:hover { background: #D2E9DC; color: var(--brand-deep); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 5px 0 #8E0B18; }
.btn-danger:hover { color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--muted-2); }

/* Light outline used on the dark header */
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .7); }

.btn-link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 800; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 1rem; border-radius: 16px; }
.btn-sm { padding: 8px 14px; font-size: .78rem; border-radius: 11px; }
.btn-xs { padding: 6px 10px; font-size: .72rem; border-radius: 9px; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 13px; }

/* =========================================================================
   5. Badges, alerts, panels
   ========================================================================= */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  background: var(--canvas-2); color: var(--ink-2);
  white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-live { background: var(--success-soft); color: var(--success-ink); }
.badge-live .dot { animation: pulse 1.9s ease infinite; }
.badge-muted { background: var(--canvas-2); color: var(--muted); }
.badge-gold { background: var(--gold-soft); color: var(--gold-ink); }
.badge-brand { background: var(--brand-soft); color: var(--brand-deep); }
.badge-danger { background: var(--danger-soft); color: var(--danger-ink); }

.alert {
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: .87rem;
  font-weight: 650;
  margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: var(--success-soft); border-color: #A8DCC0; color: var(--success-ink); }
.alert-error { background: var(--danger-soft); border-color: #F3B6BE; color: var(--danger-ink); }
.alert-warning { background: var(--warning-soft); border-color: #EBCF96; color: #8A5307; }
.alert-info { background: var(--info-soft); border-color: #B4CEF8; color: #123FA0; }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.panel-tint { background: var(--brand-soft); border-color: rgba(12, 107, 75, .18); }
.panel-warn { background: var(--warning-soft); border-color: #EBCF96; }
.panel-danger { background: var(--danger-soft); border-color: #F3B6BE; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow-gold { color: var(--gold-ink); }

.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.section-sub { color: var(--muted); max-width: 62ch; }

/* =========================================================================
   6. Forms
   ========================================================================= */

.field { margin-bottom: 20px; }
.field > label, .label {
  display: block; margin-bottom: 8px;
  font-size: .78rem; font-weight: 800;
  color: var(--ink-2); letter-spacing: .02em;
}
.field .hint { margin-top: 7px; font-size: .77rem; color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  border: 2px solid var(--line-2);
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); font-weight: 500; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(12, 107, 75, .14);
}
.input-sm { padding: 9px 11px; border-radius: 10px; font-size: .85rem; }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-action {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: var(--canvas-2); color: var(--muted);
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; cursor: pointer;
}
.input-action:hover { background: var(--brand-soft); color: var(--brand-deep); }
.input-action .icon-eye-off { display: none; }
.input-action.is-visible .icon-eye { display: none; }
.input-action.is-visible .icon-eye-off { display: block; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* =========================================================================
   7. Public footer
   ========================================================================= */

.site-footer {
  margin-top: 0;
  border-top: 0;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .68);
}
.footer-inner {
  padding: 40px 0 34px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  font-size: .84rem;
}
.footer-inner strong { color: #fff; }
.footer-inner a { color: rgba(255, 255, 255, .78); }
.footer-inner a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: #fff; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 1rem; color: #fff; }
.footer-brand small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 700; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-note { max-width: 44ch; }

/* =========================================================================
   8. Index — the gate
   ========================================================================= */

.gate { padding: 26px 0 0; }

.gate-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 26px;
  align-items: stretch;
}

/* ---- Poster ----------------------------------------------------------- */
.gate-poster {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-deep);
  border-radius: var(--radius-xl);
  padding: 42px 42px 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

/* A flat "ballot swatch" panel — vivid colour blocks in a tidy grid. */
.poster-mosaic {
  position: absolute;
  right: 40px;
  bottom: 116px;
  width: 178px;
  padding: 13px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 0;
  pointer-events: none;
}
.poster-mosaic > i { display: block; aspect-ratio: 1; border-radius: 7px; }
.poster-mosaic > i:nth-child(1)  { background: #E8324A; }
.poster-mosaic > i:nth-child(2)  { background: #F2B635; }
.poster-mosaic > i:nth-child(3)  { background: #3B7BF0; }
.poster-mosaic > i:nth-child(4)  { background: #7C4BD8; }
.poster-mosaic > i:nth-child(5)  { background: #E8622A; }
.poster-mosaic > i:nth-child(6)  { background: #16A39A; }
.poster-mosaic > i:nth-child(7)  { background: #D6338C; }
.poster-mosaic > i:nth-child(8)  { background: #6E9C22; }
.poster-mosaic > i:nth-child(9)  { background: #1D4ED8; }
.poster-mosaic > i:nth-child(10) { background: #CE1126; }
.poster-mosaic > i:nth-child(11) { background: #E9A825; }
.poster-mosaic > i:nth-child(12) { background: #0A8A80; }

.poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.poster-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #F6DFA6;
  font-size: .68rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
}

.poster-seal {
  position: relative;
  z-index: 1;
  width: 118px; height: 118px;
  margin: 24px 0 20px;
  border-radius: 26px;
  background: var(--paper);
  border: 5px solid var(--gold);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
}
.poster-seal img { width: 100%; height: 100%; object-fit: cover; }

.poster-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.035em;
  line-height: 1.03;
  max-width: 13ch;
}
.poster-year {
  background: var(--gold);
  color: #3B2700;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  letter-spacing: -.02em;
  padding: 7px 15px;
  border-radius: 14px;
  transform: rotate(-2.5deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
  flex: 0 0 auto;
}
.poster-tagline {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .8);
  font-size: 1.02rem;
  max-width: 34ch;
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Flat colour strip of election facts, flush with the poster edges */
.poster-facts {
  list-style: none;
  margin: 34px -42px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.poster-facts li {
  padding: 18px 20px 20px;
  color: #fff;
}
.poster-facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.poster-facts span {
  display: block;
  margin-top: 6px;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  opacity: .92;
}
.poster-facts li:nth-child(1) { background: #CE1126; }
.poster-facts li:nth-child(2) { background: #1B5FD9; }
.poster-facts li:nth-child(3) { background: var(--gold); color: #3B2700; }

/* ---- Sign-in panel ---------------------------------------------------- */
.gate-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gate-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: var(--gold);
}
.gate-panel h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-bottom: 8px; }
.gate-panel .sub { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }

.signin-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start;
}
.signin-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--brand); }

.signin-alt {
  margin-top: 18px;
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--brand-soft);
  border: 1.5px dashed rgba(12, 107, 75, .32);
  color: var(--brand-deep);
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.signin-alt:hover { background: #D5EBDF; color: var(--brand-deep); transform: translateY(-2px); }
.signin-alt-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.signin-alt-text { flex: 1 1 auto; min-width: 0; }
.signin-alt-text strong { display: block; font-size: .88rem; text-decoration: underline; text-underline-offset: 2px; }
.signin-alt-text small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; margin-top: 2px; }

/* ---- How it works ----------------------------------------------------- */
.gate-how { padding: 56px 0 60px; }
.how-head { margin-bottom: 26px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.how-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 26px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.how-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--step-color);
}
.how-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--step-color);
  color: #fff;
  margin-bottom: 16px;
}
.how-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--step-color);
  opacity: .16;
  line-height: 1;
}
.how-card h3 { font-size: 1.16rem; margin-bottom: 6px; }
.how-card p { color: var(--muted); font-size: .87rem; margin: 0; }
.how-card--1 { --step-color: #CE1126; }
.how-card--2 { --step-color: #1B5FD9; }
.how-card--3 { --step-color: #0C6B4B; }

/* =========================================================================
   9. Vote — the ballot
   ========================================================================= */

.ballot-page { padding: 0 0 60px; }

/* ---- Sticky progress band --------------------------------------------- */
.ballot-band {
  position: sticky;
  top: var(--header-total);
  z-index: 40;
  background: var(--brand-deep);
  color: #fff;
}
.ballot-band-inner {
  min-height: 68px;
  display: flex; align-items: center; gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}
.band-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.band-back {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  flex: 0 0 auto;
}
.band-back:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.band-eyebrow {
  display: block;
  font-size: .64rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.band-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.04rem;
  color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 46vw;
}

.band-steps {
  display: flex; align-items: center; gap: 7px;
  list-style: none; margin: 0; padding: 0;
}
.band-steps a {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .78);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 900;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .16s ease, background .16s ease;
}
.band-steps a:hover { background: rgba(255, 255, 255, .38); color: #fff; transform: translateY(-2px); }
.band-steps li.is-done a { background: #fff; color: var(--brand-deep); }
.band-steps li.is-current a {
  width: 38px; height: 38px;
  background: var(--gold);
  color: #3B2700;
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}
.band-steps li.is-current a { font-size: .82rem; }

.ballot-band .user-chip { background: rgba(255, 255, 255, .18); }

/* Thin progress line pinned to the bottom edge of the coloured band. */
.band-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: rgba(0, 0, 0, .18);
}
.band-progress > span {
  display: block;
  height: 100%;
  background: #fff;
  transition: width .35s ease;
}

/* ---- Layout ----------------------------------------------------------- */
.ballot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-top: 26px;
}
.ballot-main { min-width: 0; }

.vote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vote-card-head {
  padding: 26px 30px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.vote-head-top { display: flex; align-items: flex-start; gap: 16px; }
.vote-num {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(20, 23, 29, .16);
}
.vote-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.025em;
  margin-top: 4px;
}
.vote-head-top .eyebrow { color: var(--accent-ink); }
.vote-help {
  color: var(--muted);
  font-size: .92rem;
  margin: 14px 0 0;
  max-width: 62ch;
}
.vote-help strong { color: var(--ink); }

.vote-card-body { padding: 26px 30px 30px; }

.vote-card-foot {
  padding: 16px 30px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

/* ---- Unopposed nominee poster ----------------------------------------- */
.nominee {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 22px 28px;
  align-items: start;
}

.nominee-poster {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.poster-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--canvas-2);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.poster-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.poster-zoom {
  position: absolute;
  left: 12px; bottom: 12px;
  right: 12px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(4, 27, 19, .84);
  color: #fff;
  font-size: .74rem; font-weight: 800;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .18s ease;
}
.poster-photo:hover .poster-zoom,
.poster-photo:focus-visible .poster-zoom { opacity: 1; }
@media (hover: none) {
  .poster-zoom { opacity: 1; }
}

.nominee-caption {
  grid-column: 1 / -1;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 14px;
  background: var(--paper-2);
}
.nominee-caption h3 {
  font-size: 1.28rem;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}
.nominee-caption p {
  color: var(--muted);
  font-size: .87rem;
  margin: 6px 0 0;
}

.nominee-note {
  margin-top: 2px;
  display: flex; align-items: flex-start; gap: 11px;
}
.nominee-note strong { display: block; font-size: .84rem; color: var(--ink-2); margin-bottom: 4px; }
.nominee-note p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.nominee-note-icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex: 0 0 auto;
}

.initials {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--brand-deep);
  background: var(--brand-soft);
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 2.6rem;
}

/* ---- Yes / No decision cards ------------------------------------------ */
.decide { display: flex; flex-direction: column; gap: 14px; }
.decide-title {
  font-size: .72rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.decide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.decide-card {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 214px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--line-2);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.decide-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.decide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.decide-card input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.decide-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.decide-mark {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 6px;
}
.decide-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.025em;
  color: var(--ink);
}
.decide-text { color: var(--muted); font-size: .87rem; }

.decide-yes .decide-mark { background: var(--success); }
.decide-no  .decide-mark { background: var(--danger); }

.decide-card.is-selected {
  background: var(--decide-soft);
  border-color: var(--decide-color);
  box-shadow: 0 0 0 5px var(--decide-halo);
}
.decide-yes { --decide-color: var(--success); --decide-soft: var(--success-soft); --decide-halo: rgba(12, 107, 75, .16); }
.decide-no  { --decide-color: var(--danger);  --decide-soft: var(--danger-soft);  --decide-halo: rgba(206, 17, 38, .13); }
.decide-yes.is-selected .decide-name { color: var(--success-ink); }
.decide-no.is-selected  .decide-name { color: var(--danger-ink); }

.decide-card.is-selected::after {
  content: "Selected";
  position: absolute; top: 16px; right: 16px;
  font-size: .62rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  background: var(--decide-color);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---- Contested candidate posters -------------------------------------- */
.candidates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.candidate {
  position: relative;
  display: flex; flex-direction: column;
  border: 2.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.candidate:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.candidate input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.candidate:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.candidate-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--canvas-2);
  overflow: hidden;
}
.candidate-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.candidate-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  border: 3px solid #fff;
  opacity: 0; transform: scale(.6);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 2;
}
.candidate.is-selected .candidate-check { opacity: 1; transform: scale(1); }

.candidate-info { padding: 16px 18px 20px; }
.candidate-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--ink);
}
.candidate-role { display: block; color: var(--muted); font-size: .8rem; margin-top: 5px; }

.candidate.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.candidate.is-selected .candidate-name { color: var(--accent-ink); }

/* ---- Rail (sidebar) ---------------------------------------------------- */
.ballot-side { position: sticky; top: calc(var(--header-h) + 84px); display: grid; gap: 16px; }
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.side-card h3 {
  font-size: .7rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.rail-meter {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 14px;
}
.rail-meter strong { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.rail-meter span { color: var(--muted); font-size: .82rem; font-weight: 700; }

.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.rail-list a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: .84rem; font-weight: 700;
  border-left: 4px solid var(--row-accent, var(--line-2));
  background: var(--paper-2);
  transition: background .15s ease, transform .15s ease;
}
.rail-list a:hover { background: var(--canvas-2); transform: translateX(2px); }
.rail-list .rail-num {
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--row-accent, var(--line-2));
  color: #fff;
  font-size: .7rem; font-weight: 900;
  flex: 0 0 auto;
}
.rail-list .rail-title {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-list .rail-state { color: var(--success); display: grid; place-items: center; flex: 0 0 auto; }
.rail-list .rail-state.pending { color: var(--muted-2); }
.rail-list li.is-current a { background: var(--row-accent); color: #fff; }
.rail-list li.is-current .rail-num { background: rgba(255, 255, 255, .28); color: #fff; }
.rail-list li.is-current .rail-state { color: #fff; }

.side-note { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.side-note strong { color: var(--ink-2); }

/* =========================================================================
   10. Completion, verification, committee sign-in
   ========================================================================= */

.complete-card {
  max-width: 640px;
  margin: 44px auto;
  text-align: center;
  padding: 40px 36px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.color-rule--cap {
  position: absolute;
  top: 0; left: 0; right: 0;
}
.complete-icon {
  width: 84px; height: 84px;
  border-radius: 28px;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  background: var(--success);
  color: #fff;
  box-shadow: 0 12px 26px rgba(12, 107, 75, .28);
}
.complete-card h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.complete-card .sub { color: var(--muted); margin: 12px auto 26px; max-width: 46ch; }

.receipt {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  text-align: left;
}
.receipt div { background: var(--paper); padding: 15px 17px; }
.receipt span {
  display: block; font-size: .66rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); font-weight: 800;
}
.receipt strong { display: block; margin-top: 4px; font-size: .92rem; color: var(--ink); }

/* Auth shell (verify + committee sign-in) */
.auth-page { padding: 36px 0 20px; }
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-aside {
  position: relative;
  padding: 44px;
  background: var(--brand-deep);
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  isolation: isolate;
}
.auth-aside::after {
  content: "";
  position: absolute; right: -70px; bottom: -70px;
  width: 230px; height: 230px;
  border: 3px solid rgba(255, 255, 255, .12);
  border-radius: 34px;
  z-index: -1;
}
.auth-aside--cms { background: #2A2417; }
.auth-aside--cms::after {
  width: 170px; height: 170px;
  right: -36px; bottom: -36px;
  border-color: rgba(233, 168, 37, .16);
}

/* Ballot swatch panel — the same colour key used on the poster. */
.auth-swatches {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 152px;
  padding: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.auth-swatches > i { display: block; aspect-ratio: 1; border-radius: 6px; }
.auth-swatches > i:nth-child(1) { background: #E8324A; }
.auth-swatches > i:nth-child(2) { background: #F2B635; }
.auth-swatches > i:nth-child(3) { background: #3B7BF0; }
.auth-swatches > i:nth-child(4) { background: #7C4BD8; }
.auth-swatches > i:nth-child(5) { background: #E8622A; }
.auth-swatches > i:nth-child(6) { background: #16A39A; }
.auth-swatches > i:nth-child(7) { background: #D6338C; }
.auth-swatches > i:nth-child(8) { background: #6E9C22; }
.auth-swatches > i:nth-child(9) { background: #F2B635; }

/* Flat colour fact strip flush with the bottom of the aside. */
.auth-facts {
  list-style: none;
  margin: 0 -44px -44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  z-index: 1;
}
.auth-facts li { padding: 18px 22px 20px; color: #fff; }
.auth-facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: -.02em;
}
.auth-facts span {
  display: block;
  margin-top: 4px;
  font-size: .64rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  opacity: .9;
}
.auth-facts li:nth-child(1) { background: #CE1126; }
.auth-facts li:nth-child(2) { background: #1B5FD9; }
.auth-aside h1 {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  letter-spacing: -.03em;
  margin: 16px 0 12px;
}
.auth-aside .lead { color: rgba(255, 255, 255, .76); max-width: 42ch; font-size: .96rem; margin: 0; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 900;
  color: #F6DFA6;
}
.auth-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.auth-meta strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: #fff; }
.auth-meta span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .58); font-weight: 800; }
.auth-card { padding: 42px; }
.auth-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.auth-foot {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted);
  display: flex; gap: 9px; align-items: flex-start;
}
.auth-foot svg { flex: 0 0 auto; margin-top: 2px; color: var(--brand); }
.auth-logo {
  width: 74px; height: 74px; border-radius: 20px; object-fit: cover;
  border: 4px solid var(--gold); margin-top: 22px;
  background: #fff;
}

.page-hero { padding: 34px 0 10px; }
.page-hero h1 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); }
.page-hero .sub { color: var(--muted); margin-top: 8px; max-width: 62ch; }

/* -------------------------------------------------------------------------
   Verification — the confirmed voter record
   ------------------------------------------------------------------------- */

.verify-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--brand-deep);
  color: #fff;
  margin-bottom: 16px;
}
.verify-avatar {
  width: 66px; height: 66px;
  border-radius: 20px;
  background: var(--gold);
  color: #3B2700;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, .28);
}
.verify-hero-label {
  display: block;
  font-size: .64rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
  color: #F6DFA6;
}
.verify-hero-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.42rem;
  letter-spacing: -.025em;
  color: #fff;
  margin: 3px 0 4px;
  line-height: 1.15;
}
.verify-hero-state {
  display: inline-block;
  font-size: .76rem; font-weight: 700;
  color: rgba(255, 255, 255, .78);
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.verify-tile {
  padding: 15px 17px;
  border-radius: var(--radius);
  color: #fff;
  min-width: 0;
}
.verify-tile .verify-label {
  display: flex; align-items: center; gap: 7px;
  font-size: .63rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
  opacity: .85;
}
.verify-tile strong {
  display: block;
  margin-top: 7px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.verify-tile--teal    { background: #0A8A80; }
.verify-tile--blue    { background: #1B5FD9; }
.verify-tile--violet  { background: #6A3FC9; }
.verify-tile--crimson { background: #CE1126; }
.verify-tile--gold    { background: var(--gold); color: #3B2700; }
.verify-tile--gold .verify-label { opacity: .72; }

.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state .icon {
  width: 62px; height: 62px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-deep);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.empty-state h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.empty-state p { font-size: .87rem; max-width: 42ch; margin: 0 auto; }

/* =========================================================================
   11. Lightbox + confirm dialog
   -------------------------------------------------------------------------
   These are created at runtime by assets/js/app.js and are shared by every
   page, so they live in app.css (loaded by all pages) rather than here.
   ========================================================================= */

/* =========================================================================
   12. Responsive
   ========================================================================= */

@media (max-width: 1080px) {
  .gate-grid { grid-template-columns: 1fr; }
  .gate-poster { min-height: auto; }
  .gate-panel { padding: 34px 30px; }
  .ballot-grid { grid-template-columns: 1fr; }
  .ballot-side { position: static; }
}

@media (max-width: 900px) {
  .nominee { grid-template-columns: 1fr; gap: 24px; }
  .nominee-poster { max-width: 420px; }
  .how-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell--verify .auth-card { order: -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; --header-total: 69px; }

  .wrap, .wrap-narrow { width: calc(100% - 24px); }

  .header-inner { min-height: var(--header-h); gap: 10px; }
  .brand { gap: 10px; flex: 1 1 auto; min-width: 0; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text small { font-size: .56rem; letter-spacing: .12em; }
  .header-meta { gap: 7px; flex: 0 0 auto; }
  .header-chip { display: none; }
  .hide-sm { display: none !important; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .header-meta .user-chip { padding: 4px 10px 4px 5px; }
  .header-meta .user-chip .label { display: none; }
  .btn-sm { padding: 7px 11px; font-size: .74rem; }

  .gate { padding: 14px 0 0; }
  .gate-poster { padding: 22px 20px 0; border-radius: var(--radius-lg); }
  .poster-top { gap: 10px; }
  .poster-kicker { font-size: .6rem; padding: 6px 11px; letter-spacing: .12em; }
  .poster-year { font-size: 1.15rem; padding: 5px 12px; border-radius: 12px; }
  .poster-seal { width: 86px; height: 86px; border-radius: 20px; border-width: 4px; margin: 16px 0 14px; }
  .poster-title { font-size: clamp(1.8rem, 8.5vw, 2.4rem); max-width: none; }
  .poster-tagline { font-size: .92rem; margin-top: 12px; }
  .poster-mosaic { display: none; }
  .poster-facts { margin: 22px -20px 0; grid-template-columns: repeat(3, 1fr); }
  .poster-facts li { padding: 13px 11px 15px; }
  .poster-facts span { font-size: .55rem; letter-spacing: .06em; }

  .gate-panel { padding: 26px 18px 24px; border-radius: var(--radius-lg); }
  .gate-panel h2 { font-size: 1.42rem; }
  .gate-how { padding: 36px 0 42px; }
  .how-card { padding: 20px 18px; }

  .ballot-band-inner { gap: 10px; min-height: 58px; padding: 8px 0; }
  .band-back { width: 34px; height: 34px; border-radius: 10px; }
  .band-left { gap: 10px; flex: 1 1 auto; min-width: 0; }
  .band-eyebrow { font-size: .58rem; letter-spacing: .12em; }
  .band-title { font-size: .88rem; max-width: 42vw; }
  .band-steps { display: none; }
  .band-right { display: none; }

  .ballot-grid { padding-top: 14px; gap: 14px; }
  .vote-card { border-radius: var(--radius-lg); }
  .vote-card-head { padding: 18px 16px 16px; }
  .vote-head-top { gap: 12px; }
  .vote-num { width: 44px; height: 44px; border-radius: 14px; font-size: 1.15rem; }
  .vote-title { font-size: 1.32rem; }
  .vote-help { font-size: .86rem; margin-top: 11px; }
  .vote-card-body { padding: 16px; }
  .vote-card-foot {
    position: sticky; bottom: 0; z-index: 20;
    padding: 11px 16px;
    box-shadow: 0 -8px 22px rgba(20, 23, 29, .07);
    margin-inline: -16px;
  }
  .vote-card-foot .btn { flex: 1 1 auto; }

  .nominee { grid-template-columns: 1fr; gap: 16px; }
  .nominee-poster { max-width: none; }
  .poster-photo { aspect-ratio: 4 / 5; }
  .nominee-caption { padding: 14px 16px; }
  .nominee-caption h3 { font-size: 1.12rem; }

  .decide-grid { grid-template-columns: 1fr; gap: 10px; }
  .decide-card {
    flex-direction: row; align-items: center; gap: 14px;
    min-height: 0; padding: 14px 16px;
  }
  .decide-mark { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 0; flex: 0 0 auto; }
  .decide-name { font-size: 1.18rem; }
  .decide-text { font-size: .78rem; }
  .decide-card.is-selected::after { top: 8px; right: 8px; font-size: .55rem; padding: 3px 7px; }
  .decide-card.is-selected .decide-body { padding-right: 72px; }

  .candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .candidate-info { padding: 12px 12px 16px; }
  .candidate-name { font-size: .92rem; }
  .candidate-role { font-size: .74rem; }

  .side-card { padding: 16px; }
  .receipt { grid-template-columns: 1fr; }
  .complete-card { margin: 20px auto; padding: 34px 20px; }
  .auth-page { padding: 18px 0 10px; }
  .auth-aside { padding: 26px 20px; }
  .auth-facts { margin: 0 -20px -26px; }
  .auth-facts li { padding: 14px 16px 16px; }
  .auth-facts strong { font-size: 1.05rem; }
  .auth-card { padding: 24px 18px 28px; }
  .verify-hero { padding: 15px 16px; gap: 14px; }
  .verify-avatar { width: 56px; height: 56px; border-radius: 17px; font-size: 1.25rem; }
  .verify-hero-name { font-size: 1.2rem; }
  .verify-grid { gap: 10px; }
  .verify-tile { padding: 13px 14px; }
  .verify-tile strong { font-size: .92rem; }
  .footer-inner { padding: 30px 0 26px; flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 420px) {
  .candidates { grid-template-columns: 1fr; }
  .candidate { flex-direction: row; align-items: stretch; }
  .candidate-photo { width: 128px; flex: 0 0 128px; aspect-ratio: 4 / 5; }
  .candidate-check { width: 28px; height: 28px; top: 8px; right: 8px; border-width: 2.5px; }
  .poster-facts li { padding: 12px 8px 14px; }
  .poster-facts span { font-size: .5rem; letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
