/* Zebra · Register stylesheet
 *
 * Lifted from zebra_instrument.html (UI Polish, 2026-04-23). Variables,
 * grain overlay, typography, card anatomy, tally, tiers, Record·Canopy,
 * doctrine blocks, footer — all read from the reference artifact, not
 * paraphrased from the patch brief.
 *
 * Consumed by core/ui.py::page_register() on public-facing surfaces.
 * Legacy _BASE_CSS in core/ui.py stays in place for /admin/* and other
 * non-public surfaces.
 */

/* ── Palette ──────────────────────────────────────────────────────────── */
:root {
  --paper:      #F5F1E8;
  --paper-deep: #EDE6D4;
  --ink:        #0E0D0B;
  --ink-soft:   #2A2824;
  --muted:      #6B665C;
  --rule:       #BBB29C;
  --rule-soft:  #D4CBB6;
  --seal:       #8A2A1F;
  --anchor:     #1F3A35;

  /* Branch accents (addendum 2026-04-23). Applied only to cards via
   * .card.legislative / .card.executive / .card.judicial. --seal narrows
   * to branch-neutral surfaces (wordmark period, /about section numbers,
   * landing masthead). */
  --leg-accent: #B01E2E;   /* burgundy — Legislative */
  --exe-accent: #1B3A66;   /* deep navy — Executive */
  --jud-accent: #1E6B4C;   /* emerald — Judicial */

  /* Default accent for cards without a branch class (falls back to --seal
   * so cross-branch or unclassified cards still read as Register-native). */
  --accent: var(--seal);
}

/* Per-card branch accent. One class on the card root drives every
 * accent-colored element inside it (kicker, status pill, bill-id,
 * italic serif emphasis in the title). Nowhere else. */
.card.legislative { --accent: var(--leg-accent); }
.card.executive   { --accent: var(--exe-accent); }
.card.judicial    { --accent: var(--jud-accent); }

/* ── Reset + base ─────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* archival paper grain — site-wide */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 0 0.05  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--seal); }

/* ── Label mono ───────────────────────────────────────────────────────── */
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Page shell ───────────────────────────────────────────────────────── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 40px 60px;
  position: relative;
  z-index: 1;
}

.page.narrow { max-width: 560px; }
.page.reading { max-width: 960px; }  /* tighter cap for /about doctrine + landing showcase — reading-width by design */
.page.dashboard { max-width: 1800px; }  /* /your-government: three side-by-side seat-card columns need viewport room; capped to avoid sprawl on ultra-wide monitors */

/* Page-chrome wrapper (masthead + nav + footer) — always full-width
 * (1200px cap) regardless of body's .narrow or .reading class. Keeps
 * nav from wrapping on narrow auth-form pages. Patch 07 audit #4. */
.page-chrome {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.page-chrome:first-of-type { padding-top: 48px; }
.page-chrome:last-of-type { padding-bottom: 120px; }

/* ── Masthead ─────────────────────────────────────────────────────────── */
header.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 18px;
  margin-bottom: 88px;
}
.masthead-lockup {
  grid-column: 2;
  display: flex;
  align-items: end;
  gap: 18px;
  min-width: 0;
}
.masthead-mark img {
  display: block;
  height: 54px;
  width: auto;
}
.masthead-brand { min-width: 0; }
.wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark em { font-style: italic; color: var(--seal); }
.masthead-eyebrow { margin-bottom: 8px; color: var(--muted); }
.masthead-meta {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 6px;
}

/* ── Primary nav ──────────────────────────────────────────────────────── */
.mast-nav {
  margin-top: 22px;
  margin-bottom: 48px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mast-nav a {
  color: var(--seal);
  text-decoration: none;
  padding: 9px 14px;
  border: 1.5px solid var(--seal);
  border-radius: 4px;
  background: transparent;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.mast-nav a:hover {
  background: var(--seal);
  color: var(--paper);
  transform: translateY(-1px);
}
.mast-nav a[aria-current="page"] {
  background: var(--seal);
  color: var(--paper);
  border-color: var(--seal);
}

/* ── Zebra-wide search strip (under nav, centered) ─────────────────────── */
.zebra-search-strip {
  display: flex;
  justify-content: center;
  margin: -24px auto 40px;
  padding: 0 24px;
  width: 100%;
}
.zebra-search-form {
  display: flex;
  width: 100%;
  max-width: 720px;
  gap: 0;
  border: 2px solid var(--seal);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}
.zebra-search-form input[type="search"] {
  flex: 1;
  padding: 11px 16px;
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
  font-size: 15px;
  background-color: var(--paper);
  color: var(--ink);
  border: none;
  outline: none;
}
.zebra-search-form input[type="search"]::placeholder {
  font-style: italic;
  color: var(--muted, #6B665C);
}
.zebra-search-form button {
  padding: 0 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--seal);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.zebra-search-form button:hover {
  background: var(--ink);
}
@media (max-width: 700px) {
  .zebra-search-strip { margin: -8px auto 28px; padding: 0 16px; }
  .zebra-search-form input[type="search"] { font-size: 14px; padding: 9px 12px; }
  .zebra-search-form button { padding: 0 14px; font-size: 10px; letter-spacing: 0.16em; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { margin-bottom: 120px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 860px;
  margin-bottom: 36px;
}
.hero h1 em { font-style: italic; color: var(--seal); }
.hero .lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 680px;  /* bumped from 580 per Low #11 — tighter measure */
}

/* ── Section shell ────────────────────────────────────────────────────── */
.section { margin-bottom: 96px; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 36px;
  padding-top: 22px;
  border-top: 1.5px solid var(--ink);
}
.section-head .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--seal);
  padding-top: 6px;
}
.section-head h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 8px;
}

/* ── Feed shell (inside pages rendered via page_register()) ──────────── *
 * Used by /legislative, /executive-actions, /judicial. Hero stays in the
 * .hero pattern above; stats + collapsible sections add below. */

.feed-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 16px 0 72px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.feed-stat .label { display: block; margin-bottom: 10px; }
.feed-stat .v {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.feed-stat .d {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Cascade-form slot (state/county/municipality pickers above the
 * accordion). Presentational only — the form itself is route-owned. */
.feed-cascade {
  margin-bottom: 48px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.feed-cascade .label { display: block; margin-bottom: 10px; }

/* Cascade form — Register restyle of core/jurisdiction_cascade.py
 * render_cascade_form_html. The form's inline styles were retired in the
 * exec/judicial chrome flip pass; class-based now, styled here. */
.cascade-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 18px 20px;
  margin-bottom: 36px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.cascade-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.cascade-form .field.field-county,
.cascade-form .field.field-city { min-width: 200px; }
.cascade-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cascade-form select {
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.cascade-form select:focus { border-color: var(--seal); box-shadow: inset 0 -2px 0 var(--seal); }
.cascade-form select:disabled { opacity: 0.5; cursor: not-allowed; }
.cascade-form .actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 9px;
}
.cascade-form button[type="submit"] {
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.cascade-form .reset-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.cascade-form .reset-link:hover { color: var(--seal); border-bottom-color: var(--seal); }
.cascade-form .source-chips {
  flex-basis: 100%;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cascade-form .source-chip { margin-right: 12px; }

/* Executive-actions specific elements (formerly _EXEC_CSS, retired in
 * chrome flip pass). Scoped under .register-section so legacy SaaS pages
 * (none currently) wouldn't pick these up by accident. */
.register-section .agency-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.register-section .agency-card {
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 16px 18px;
  background: var(--paper);
  color: var(--ink);
}
.register-section .agency-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.register-section .agency-card-head:hover .agency-card-title {
  color: var(--seal);
  border-bottom-color: var(--seal);
}
.register-section .agency-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.register-section .agency-card-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 2px 10px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.register-section .agency-preview-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.register-section .agency-preview-item {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 0;
  border-top: 1px dotted var(--rule-soft);
  color: var(--ink-soft);
}
.register-section .agency-preview-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.register-section .agency-preview-item a:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}
.register-section .agency-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.register-section .agency-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.register-section .agency-chip:hover { border-color: var(--seal); color: var(--seal); }
.register-section .agency-chip .count {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.register-section .subsection-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.register-section .doc-fulltext {
  white-space: pre-wrap;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  max-height: 560px;
  overflow: auto;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  color: var(--ink);
}

/* PG-enrichment links (state bills' PG-sidecar block, originally inline
 * blue-SaaS color:#3b82f6). Inherits ink color, gains a subtle underline
 * on hover that swaps to oxblood. */
.card-firehose.card .pg-link,
.register-section .pg-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.card-firehose.card .pg-link:hover,
.register-section .pg-link:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* Detail-page shell for /judicial/judge/<nid> + /judicial/court/<slug>
 * (detail pages — single record rendered expanded). The Register card
 * sits inside; .detail-back is the breadcrumb above it. */
.detail-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 12px;
}
.detail-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  align-self: flex-start;
}
.detail-back:hover { color: var(--seal); border-bottom-color: var(--seal); }

/* Anchor-strip easter egg (Patch — Jefferson's Ten Rules, 2026-04-23).
 * On 10% of card renders the middle slot becomes a Jefferson rule in
 * Instrument Serif italic at anchor-green. The bracket glyph and epoch
 * label stay mono, untouched. */
.card-anchor.rule-variant .anchor-content,
.card-firehose.card .card-anchor.rule-variant .anchor-content {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--anchor);
  font-weight: 400;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Register section panels — collapsible accordion inside a feed page.
 * Keeps the .section-panel class + [data-section-toggle] attribute so the
 * existing _CIVIC_TOGGLE_SCRIPT still wires click/keyboard expand/collapse
 * without JS changes. The .register-section marker switches on Register
 * styling, leaving legacy SaaS rules (in core/ui.py::_BASE_CSS) untouched
 * for non-migrated scopes. */
.section-panel.register-section {
  margin-bottom: 32px;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.section-panel.register-section .section-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0 18px;
  border-top: 1.5px solid var(--ink);
  cursor: pointer;
  user-select: none;
  outline: none;
}
.section-panel.register-section .section-header:focus-visible {
  box-shadow: inset 0 2px 0 var(--seal);
}
.section-panel.register-section .section-head-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--seal);
}
.section-panel.register-section .section-header-main { min-width: 0; }
.section-panel.register-section .section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.section-panel.register-section .section-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
.section-panel.register-section .section-chevron {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 14px;
  transition: transform 200ms ease;
  display: inline-block;
  transform: rotate(0deg);
  align-self: start;
  padding-top: 4px;
}
.section-panel.register-section.is-collapsed .section-chevron {
  transform: rotate(-90deg);
}
.section-panel.register-section.is-collapsed .section-body { display: none; }
.section-panel.register-section .section-body {
  padding: 12px 0 0 96px;
}
/* Flat sections (detail/record/your-gov/verification/privacy/terms/auth
 * wrappers) have a .section-body as only-child — no section-header above,
 * so the 96px indent is dead space. Collapse to zero for those surfaces.
 * Patch 07 reader-polish fix. */
.section-panel.register-section > .section-body:only-child {
  padding: 0;
}
@media (max-width: 760px) {
  .section-panel.register-section .section-header {
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
  }
  .section-panel.register-section .section-body { padding-left: 0; }
  .feed-stats { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
}

/* Shell-card placeholder style for unmigrated scopes (grid of label/title/note
 * tuples in legacy civic_shell). These render below the accordion for
 * scopes that haven't shipped real card pipelines yet (state + local). */
.register-section .legislative-shell-card,
.register-section .executive-shell-card,
.register-section .judicial-shell-card {
  padding: 18px 22px;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-bottom: 14px;
}
.register-section .legislative-shell-label,
.register-section .executive-shell-label,
.register-section .judicial-shell-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.register-section .legislative-shell-title,
.register-section .executive-shell-title,
.register-section .judicial-shell-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 400;
}
.register-section .legislative-shell-note,
.register-section .executive-shell-note,
.register-section .judicial-shell-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Civic-CTA replacement for Register: the legacy .civic-cta emits SaaS
 * blue buttons; override inside register pages with a Register-native
 * form-shell-ish block. */
.register-section .civic-cta {
  padding: 22px;
  border: 1px dashed var(--rule);
  background: var(--paper-deep);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.register-section .civic-cta .cta-copy {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.4;
}
.register-section .civic-cta .cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.register-section .civic-cta .btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.register-section .civic-cta .btn.secondary {
  background: var(--paper);
  color: var(--ink);
}
.register-section .civic-cta .btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.register-section .civic-cta .btn.secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── /about doctrine page ──────────────────────────────────────────── *
 * Section-head layout: Roman numeral on the left, stacked eyebrow +
 * prose heading on the right. Body prose aligns to the stack column. */

.section-head-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.section-head-stack .about-h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 40px);  /* bumped from 26/34 per Low #13 */
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 8px 0 0;
  max-width: 760px;
}
.section-head-stack .about-h2 em { color: var(--seal); font-style: italic; }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;  /* tightened from 720 per Low #14 — ~65-70 char measure */
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.about-body em { color: var(--seal); font-style: italic; }

.negation-closing {
  margin-top: 28px;
  max-width: 640px;  /* match .about-body measure per Low #14 */
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.negation-closing em { color: var(--seal); font-style: italic; }

.section > .doctrine + .about-body,
.section > .doctrine-small + .about-body {
  margin-top: 28px;
}

/* ── Landing page (Section VIII variants + specimen card caption + */
/*    waitlist strip). Doctrine content (sections I-VII) reuses the   */
/*    /about CSS verbatim. */

.invitation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 12px;
}
.invitation-path { padding-top: 4px; max-width: 380px; }
.invitation-path .code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 14px;
  display: block;
}
.invitation-path h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.invitation-path p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.invitation-path .invitation-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.invitation-path .invitation-link:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

.orientation {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.orientation-line {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.orientation-line .label {
  flex-shrink: 0;
  margin-right: 4px;
}
.orientation-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 1px;
}
.orientation-line a:hover { color: var(--seal); border-bottom-color: var(--seal); }
.orientation-line strong {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
}
.orientation-line .num {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.orientation-upgrade {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--rule);
  background: var(--paper-deep);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
}
.orientation-upgrade a {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.orientation-upgrade a:hover { color: var(--seal); border-bottom-color: var(--seal); }

/* Specimen card caption beneath the landing demo card (already in
 * register.css as .card-caption — no new rule needed). */

/* Waitlist strip: optional slim form between Section VIII and footer. */
.waitlist-strip {
  margin-top: 88px;
  padding: 22px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
/* "Stay Notified" label differentiated from section numbers per Low #15.
 * Register mono label styling without the section-numeral weight. */
.waitlist-strip .strip-label {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.waitlist-strip .pitch {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  flex: 1 1 280px;
  min-width: 240px;
}
.waitlist-strip form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
  min-width: 280px;
}
.waitlist-strip input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  outline: none;
}
.waitlist-strip input[type="email"]:focus { box-shadow: inset 0 -2px 0 var(--seal); }
.waitlist-strip button[type="submit"] {
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.waitlist-strip button[type="submit"]:hover { background: var(--paper); color: var(--ink); }
.waitlist-strip .notice {
  flex-basis: 100%;
  margin: 8px 0 0;
}

@media (max-width: 760px) {
  .invitation { grid-template-columns: 1fr; gap: 40px; }
  .orientation-line { font-size: 14.5px; }
  .waitlist-strip { flex-direction: column; align-items: stretch; }
}

/* Pipeline buckets (legislative stage groupings: "Awaiting presidential
 * action", "Passed both chambers", etc.) — Register restyle of what
 * routes/legislative.py's _PIPELINE_CSS emits for legacy pages. Scoped
 * under .register-section so legacy chrome (exec/judicial routes) keeps
 * their blue SaaS look until they migrate. */
.register-section .bucket-block {
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}
.register-section .bucket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.register-section .bucket-title {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.register-section .bucket-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 3px 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper-deep);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.register-section .bucket-pipeline {
  margin: 0 0 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.register-section .record-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px dashed var(--rule);
  border-radius: 0;
  margin-top: 16px;
  flex-wrap: wrap;
  background: var(--paper-deep);
}
.register-section .record-active-filters {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.register-section .record-search { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.register-section .record-search .input { flex: 1; min-width: 240px; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); font-family: 'Geist', sans-serif; font-size: 14px; }
.register-section .filter-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  font-weight: 500;
}
.register-section .detail-stage-line {
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Record-page filter chips (chamber / track / congress / policy-area /
 * FR category). SaaS _BASE_CSS defined .topic-chip as rounded pills with
 * explicit spacing; register.css needs an equivalent so chips render
 * readable on flipped /legislative/record + /executive-actions/record.
 * Without this, anchor tags run together: "AllHouseSenate". */
.register-section .topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.register-section .topic-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.register-section .topic-chip:hover {
  border-color: var(--seal);
  color: var(--seal);
}
.register-section .topic-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.register-section .topic-chip .count {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.register-section .topic-chip.active .count { color: var(--paper-deep); }
.register-section .record-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.register-section .record-search .input {
  flex: 1 1 280px;
  min-width: 240px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  outline: none;
}
.register-section .record-search .btn {
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.register-section .record-search .btn:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ── Negation list ────────────────────────────────────────────────────── */
.negation { display: grid; grid-template-columns: 72px 1fr; gap: 24px; }
.negation ul {
  list-style: none;
  font-family: 'Instrument Serif', serif;
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
}
/* Absolute-position the em-dash so the <li> stays a normal inline-flow
 * block. Grid/flex on an <li> blockifies child <em> elements and splits
 * text nodes into separate items, which collides "a <em>news</em> site"
 * into overlapping grid cells. */
.negation li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 2px;
}
.negation li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0.45em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--seal);
  line-height: 1;
}
.negation li em { font-style: italic; }

/* ── Card (the atom) ──────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  position: relative;
  box-shadow: none;
  border-radius: 0;
}
.card.pad { padding: 24px 28px; }
.card-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-deep);
  align-items: center;
}
.card-strip .jur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card-strip .bill-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.card-strip a.bill-id { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.card-strip a.bill-id:hover { border-bottom-color: var(--accent); }
.card-strip .status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-strip .status.locked { color: var(--ink); }

.card-body { padding: 44px 52px 36px; }
.card-kicker { margin-bottom: 14px; color: var(--accent); }
.card-title em { font-style: italic; color: var(--accent); }
.card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
  color: var(--ink);
}
.card-subtitle {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.4;
}
.card-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 660px;
}

/* card anchor strip */
.card-anchor {
  padding: 14px 22px;
  border-top: 1.5px solid var(--ink);
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-anchor .hash {
  color: var(--anchor);
  letter-spacing: 0.02em;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.card-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Tally (CRT) ──────────────────────────────────────────────────────── *
 * Full Register-flavor treatment. The CRT CSS inside core/card_assets.py
 * (CARD_CSS) stays scoped via --crt-* variables on .card-response; once
 * register.css is consumed by every card-serving page we can retire the
 * duplicated block in CARD_CSS. Until then, both must match.
 */
.tally {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.tally-col { padding: 0 24px; border-right: 1px solid var(--rule-soft); }
.tally-col:first-child { padding-left: 0; }
.tally-col:last-child  { padding-right: 0; border-right: none; }
.tally-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.tally-total {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.tally-rows { display: flex; flex-direction: column; gap: 6px; }
.tally-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  align-items: baseline;
}
.tally-row .v { letter-spacing: 0.14em; color: var(--ink); font-weight: 500; text-transform: uppercase; }
.tally-row .n { text-align: right; color: var(--ink); }
.tally-row .p { text-align: right; color: var(--muted); }

/* ── Position control ─────────────────────────────────────────────────── */
.position {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.position .prompt .label { margin-bottom: 6px; }
.position .prompt-txt {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.position-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--ink);
}
.position-buttons button {
  background: var(--paper);
  border: none;
  border-right: 1px solid var(--ink);
  padding: 16px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  transition: background 140ms ease, color 140ms ease;
}
.position-buttons button:last-child { border-right: none; }
.position-buttons button:hover:not(:disabled),
.position-buttons button.active {
  background: var(--ink);
  color: var(--paper);
}
.position-buttons button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Lock line ────────────────────────────────────────────────────────── */
.lock {
  margin-top: 28px;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lock .event { color: var(--ink); }

/* ── Tiers ────────────────────────────────────────────────────────────── */
.tiers { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.tier {
  display: grid;
  grid-template-columns: 88px 200px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.tier:first-child { border-top: none; }
.tier .code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--seal);
}
.tier .name {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}
.tier .desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.tier-note {
  margin-top: 26px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 680px;
}

/* ── Record · Canopy ──────────────────────────────────────────────────── */
.record-canopy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.rc-col { padding-top: 4px; }
.rc-col .kicker { margin-bottom: 14px; }
.rc-col h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  line-height: 1;
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.rc-col h3 em { color: var(--seal); font-style: italic; }
.rc-col p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 400px; }
.rc-col .terms {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Doctrine blocks ──────────────────────────────────────────────────── */
.doctrine {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  line-height: 1.35;
  max-width: 760px;
  color: var(--ink);
}
.doctrine em { font-style: italic; color: var(--seal); }
.doctrine-small { font-size: 24px; line-height: 1.4; }

/* ── Form shell ───────────────────────────────────────────────────────── */
.form-shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: none;
  border-radius: 0;
}
.form-shell h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 22px;
}
.form-shell .lede {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-stack label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.form-stack input[type="email"],
.form-stack input[type="password"],
.form-stack input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  outline: none;
}
.form-stack input:focus { border-color: var(--seal); box-shadow: inset 0 -2px 0 var(--seal); }
.form-stack button[type="submit"] {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 14px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.form-stack button[type="submit"]:hover { background: var(--paper); color: var(--ink); }
.form-aux { margin-top: 18px; display: flex; justify-content: space-between; gap: 18px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.form-aux a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.form-aux a:hover { color: var(--seal); border-bottom-color: var(--seal); }

/* Password show/hide toggle. Both SVGs (eye + eye-off) are emitted by
 * web_auth._pw_input; CSS gates display so only one shows at a time.
 * Without these rules the auth forms show two overlapping icons. */
.pw-wrap { position: relative; }
.pw-wrap .pw-input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pw-toggle:hover { color: var(--seal); }
.pw-toggle:focus-visible { outline: 1px solid var(--seal); outline-offset: 2px; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle.showing .pw-eye { display: none; }
.pw-toggle.showing .pw-eye-off { display: inline-flex; }
.pw-toggle svg { pointer-events: none; }

/* Draft-pending-review banner on /privacy and /terms. Shown at the top
 * of legal documents until counsel sign-off. The legal text underneath
 * is unmodified — this banner is a visible warning, not content. */
.draft-banner {
  margin-bottom: 32px;
  padding: 14px 18px;
  border: 1.5px solid var(--seal);
  background: var(--paper-deep);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.draft-banner b {
  display: block;
  color: var(--seal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Page prefix label — stands above the hero on /about as a page title
 * ("The Doctrine") per Low #12. Same treatment as a mono eyebrow but
 * with wider letterspacing so it functions as page anchor.
 * 2026-04-24: retired in Michael's-voice restoration; the kicker now
 * lives on .hero-kicker instead. Class kept in CSS in case a page
 * still uses it. */
.page-prefix-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

/* ── Voice-restored center alignment (post-audit-4) ──────────────────── *
 * Applies to landing (/, /home) and content pages (/about, /what, /how,
 * /civics, /faq) via `.page.voice`. Hero copy, copy-block prose, feature
 * items, notices, and FAQ items center. Tabular data, forms, nav, and
 * card anchor strips stay left-aligned — see DO-NOT-CENTER list in
 * post-audit-4 patch. Max-widths cap line length so centered prose still
 * reads at a comfortable measure. */
.page.voice .hero,
.page.voice .hero h1,
.page.voice .hero .lede,
.page.voice .hero .hero-kicker,
.page.voice .hero .hero-lede-bold,
.page.voice .hero .hero-body-heavy,
.page.voice .hero .hero-body-muted,
.page.voice .copy-block,
.page.voice .copy-block h2,
.page.voice .copy-block p,
.page.voice .copy-block .copy-eyebrow,
.page.voice .feature-item,
.page.voice .feature-item b,
.page.voice .feature-item .small,
.page.voice .content-notice,
.page.voice .content-notice b,
.page.voice .content-notice .small,
.page.voice .faq-item,
.page.voice .faq-item h2,
.page.voice .faq-item p {
  text-align: center;
}
.page.voice .hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}
.page.voice .hero .lede,
.page.voice .hero .hero-lede-bold,
.page.voice .hero .hero-body-heavy,
.page.voice .hero .hero-body-muted {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}
.page.voice .copy-block p,
.page.voice .copy-block ul,
.page.voice .copy-block .p,
.page.voice .faq-item p {
  margin-left: auto;
  margin-right: auto;
  max-width: 660px;
}
.page.voice .copy-block .feature-list {
  margin-left: auto;
  margin-right: auto;
  max-width: 580px;
}
.page.voice .action-row,
.page.voice .copy-block .action-row {
  justify-content: center;
}
/* Lists: center the block, but keep bullets flowing left-to-right. */
.page.voice .copy-block ul {
  list-style-position: inside;
  padding-left: 0;
}

/* ── Feed-page centering (Patch 08) ──────────────────────────────────── *
 * /legislative, /executive-actions, /judicial center their page
 * composition: hero, cascade form, section headers, stats ledger. Card
 * interiors stay left-aligned — a card reads as a civic document,
 * left-to-right. Max-width caps on centered prose keep lines readable. */
.page.feed-centered .hero,
.page.feed-centered .hero h1,
.page.feed-centered .hero .eyebrow,
.page.feed-centered .hero .lede {
  text-align: center;
}
.page.feed-centered .hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}
.page.feed-centered .hero .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 660px;
}

.page.feed-centered .cascade-form {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.page.feed-centered .section-panel.register-section .section-header {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
/* Section body (cards live here) stays full-width + left-aligned. The
 * 96px indent on .section-panel.register-section .section-body now
 * reads as a centered column rather than a left margin because the
 * section-header above it is centered. */

.page.feed-centered .feed-stats {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.page.feed-centered .feed-stat .label,
.page.feed-centered .feed-stat .v,
.page.feed-centered .feed-stat .d {
  text-align: center;
}

/* ── Michael's-voice content primitives (Patch 07 restoration) ─────── */

/* Hero kicker — small mono label above the H1 ("Guest browse mode",
 * "Your place in the process", "About Zebra", etc.). */
.hero-kicker {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 18px;
}

/* Load-bearing lede (bold, slightly smaller than H1) — "If it governs
 * your life, you belong in it." */
.hero-lede-bold {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  max-width: 760px;
  margin: 0 0 22px;
}

/* Heavy body — bold Geist ~18px, the complexity/obscurity/distance
 * sentence. */
.hero-body-heavy {
  font-family: 'Geist', sans-serif;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  max-width: 760px;
  margin: 0 0 18px;
}

/* Muted body — the softer paragraph under the heavy body. */
.hero-body-muted {
  font-family: 'Geist', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0;
}

/* Card blocks used on /, /home, /about, /what, /how, /civics, /faq.
 * Register-styled paper block (no offset shadow — those are reserved
 * for bill cards). */
.copy-block {
  padding: 32px 36px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: none;
  border-radius: 0;
}
.copy-block + .copy-block { margin-top: 20px; }
.copy-block .copy-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.copy-block h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.copy-block h2 a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.copy-block h2 a:hover { border-bottom-color: var(--seal); color: var(--seal); }
.copy-block p {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 640px;
}
.copy-block p:last-child { margin-bottom: 0; }
.copy-block p.muted { color: var(--muted); }

/* Legacy SaaS class aliases inside copy-block — .h1 / .h2 / .h3 / .p
 * were div-based headings in the SaaS era; older static pages still
 * emit them. Map to Register typography so /privacy / /terms look right
 * without rewriting every div. */
.copy-block .h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.copy-block .h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.copy-block .h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
.copy-block .p {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 640px;
}
.copy-block .p:last-child { margin-bottom: 0; }
.copy-block ul {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-left: 22px;
  margin: 0 0 12px;
}
.copy-block ul li { margin-bottom: 6px; }
/* copy-grid fallback (legacy /privacy layout — two-up card grid) */
.copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
@media (max-width: 820px) { .copy-grid { grid-template-columns: 1fr; } }
.copy-block .badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 10px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  margin-bottom: 12px;
}

/* Legacy grid-N layout classes. Mirrored from `_BASE_CSS` in core/ui.py
 * so Register-chrome pages (your-government, etc.) get the same 3-up
 * behavior the SaaS chrome does. Separate from `.grid-3up` below, which
 * is a Michael-voice variant with different spacing. */
.grid, .grid2, .grid3, .grid4 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* /your-government dashboard-specific grid3 breakpoints. The three
 * branch columns (Legislative / Executive / Judicial) need real width
 * to read: 3-up at desktop, 2-up at tablet, 1-up at phone. More
 * specific than the generic `.grid3` rules above, so these win when
 * both match. */
.page.dashboard .grid3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .page.dashboard .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .page.dashboard .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Grid layouts used by Michael-voice pages. */
.grid-3up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}
.grid-2up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.grid-full {
  margin: 28px 0;
}
@media (max-width: 820px) {
  .grid-3up, .grid-2up { grid-template-columns: 1fr; }
}

/* Feature list (bold line + small description) — used on /what and
 * /about's "What makes it different" section. */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}
.feature-item {
  font-family: 'Geist', sans-serif;
}
.feature-item b {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}
.feature-item .small {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: block;
}

/* Content notice — bordered callout. Used for "Browse open. Participation
 * locked." and the disclaimer at the bottom of /, and /what's
 * "Important." notice. */
.content-notice {
  margin: 24px 0;
  padding: 18px 22px;
  border: 1.5px solid var(--seal);
  background: var(--paper-deep);
  text-align: center;
}
.content-notice b {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.content-notice .small {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: block;
  max-width: 640px;
  margin: 0 auto;
}

/* Action buttons — used on landing/home CTA rows. Register palette. */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.btn-primary { background: var(--seal); color: var(--paper); }
.btn-primary:hover { background: #6E1F17; color: var(--paper); }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* External link row for civic resources (Vote.gov / USA.gov). */
.ext-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.ext-link-list a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  align-self: flex-start;
}
.ext-link-list a:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* FAQ question stack. */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.faq-item {
  padding: 24px 28px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: none;
  border-radius: 0;
}
.faq-item h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 10px;
}
.faq-item p {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 640px;
}
.faq-item p a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.faq-item p a:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* Skip-to-content link — visually hidden until focused. Accessibility
 * (keyboard / screen-reader) per Low #18. */
.skip-to-content {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 140ms ease;
}
.skip-to-content:focus {
  transform: translateY(0);
  outline: none;
}

/* Auth form title (Low #19 forgot-password heading, Create Account title).
 * Instrument Serif like /about-h2 but sized for a form page. */
.form-title {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}

/* Sub-group within a form — address block on /register per Low #16 + #17.
 * Group title + justification note appear ABOVE the fields so users know
 * why the block is asked for before typing. */
.form-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group-note {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: -4px 0 4px;
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.notice.error { border-color: var(--seal); color: var(--seal); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer.register-footer {
  margin-top: 120px;
  padding-top: 30px;
  border-top: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
footer.register-footer .footer-nav {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
footer.register-footer .footer-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
footer.register-footer .footer-nav a:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}
footer.register-footer .footer-sep {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
footer.register-footer .footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 402sites mark — small attribution above the footer nav */
footer.register-footer .foot-mark {
  text-align: center;
  order: -1;
  margin-bottom: 4px;
}
footer.register-footer .foot-402 {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #D4AF37 0%, #B87333 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0 0.4rem 0.18rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}
footer.register-footer .made-by {
  display: block;
  margin-top: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}
footer.register-footer .made-by a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
footer.register-footer .made-by a:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}


/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .page { padding: 32px 22px 80px; }
  .wordmark { font-size: 36px; }
  header.masthead { padding-bottom: 14px; margin-bottom: 56px; grid-template-columns: 1fr; justify-items: center; }
  .masthead-lockup { grid-column: 1; justify-content: center; }
  .masthead-meta { grid-column: 1; justify-self: stretch; flex-direction: row; justify-content: space-between; text-align: left; }
  .masthead-mark img { height: 42px; }
  .mast-nav { gap: 14px; font-size: 10px; margin-bottom: 32px; }
  .hero { margin-bottom: 72px; }
  .hero h1 { font-size: 34px; }
  .section { margin-bottom: 64px; }
  .negation { grid-template-columns: 1fr; gap: 8px; }
  .negation ul { font-size: 26px; }
  .section-head { grid-template-columns: 1fr; gap: 4px; }
  .tally { grid-template-columns: 1fr; }
  .tally-col { padding: 22px 0 0; border-right: none; border-top: 1px solid var(--rule-soft); }
  .tally-col:first-child { padding-top: 0; border-top: none; }
  .position { grid-template-columns: 1fr; gap: 16px; }
  .tier { grid-template-columns: 56px 1fr; gap: 16px; }
  .tier .desc { grid-column: 1 / -1; }
  .record-canopy { grid-template-columns: 1fr; gap: 40px; }
  .card-body { padding: 30px 26px 26px; }
  .card-strip { grid-template-columns: 1fr; gap: 4px; }
  .card-title { font-size: 26px; }
  .doctrine { font-size: 22px; }
  footer.register-footer { gap: 12px; }
  footer.register-footer .footer-nav { gap: 10px; font-size: 10.5px; letter-spacing: 0.18em; }
  .form-shell { padding: 28px 22px; }
}


/* ────────────────────────────────────────────────────────────────────
 * BANNER - 3-zone marginalia layout, operator MS-Paint mockup
 * polish 2026-04-29.
 *   Row 1: [motto 2/3 left] [logo + voting resources + disclaimer
 *           center] [apps right]
 *   Row 2: motto-1 big serif, full width centered headline.
 *   One bottom rule under the whole banner.
 * ──────────────────────────────────────────────────────────────────── */

header.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 20px;
  align-items: center;
  padding: 18px 0 22px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 36px;
}

/* Left marginalia - motto-2 (italic) + motto-3 (body) */
.masthead-marginalia-left {
  grid-column: 1; grid-row: 1;
  text-align: left;
  display: flex; flex-direction: column;
  gap: 8px;
  padding-top: 6px;
  align-self: center;
}
.motto-2 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  text-align: left;
}
.motto-3 {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
  font-style: normal;
  margin: 0;
  text-align: left;
  max-width: none;
}

/* Center focal - logo + voting resources + disclaimer */
.masthead-center {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.masthead-lockup {
  display: flex; align-items: center;
  justify-content: center;
  gap: 14px;
}
.masthead-mark img { height: 120px; }
.wordmark { font-size: 96px; }
.civic-resources {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: baseline; justify-content: center;
  gap: 4px 14px;
  font-size: 13px;
}
.civic-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.civic-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  font-weight: 500; font-size: 13px;
}
.civic-link:hover {
  color: var(--seal);
  text-decoration-color: var(--seal);
}
.civic-disclaimer {
  margin: 0;
  font-family: 'Geist', sans-serif;
  font-size: 11.5px; line-height: 1.4;
  color: var(--muted);
  font-style: italic;
  max-width: 520px;
  text-align: center;
}

/* Right marginalia - apps stacked, right-aligned */
.masthead-marginalia-right {
  grid-column: 3; grid-row: 1;
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 6px;
}
.civic-app-btn {
  display: inline-block;
  padding: 8px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  min-width: 180px;
}
.civic-app-btn:hover { background: var(--ink); color: var(--paper); }
.civic-app-btn-disabled,
.civic-app-btn-disabled:hover {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
  border-color: var(--rule);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.55;
}

.masthead-meta {
  grid-column: 1 / -1; grid-row: 3;
  text-align: center;
  font-size: 11px; padding: 0;
  gap: 4px;
}

/* Landing CTA - body button under banner */
.landing-cta {
  margin: 64px auto 80px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.landing-cta-kicker {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.landing-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
}
.landing-cta-btn:hover {
  background: var(--seal);
  border-color: var(--seal);
}

/* Mobile - stack zones vertically */
@media (max-width: 920px) {
  header.masthead {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    row-gap: 18px;
    text-align: center;
  }
  .masthead-marginalia-left {
    grid-column: 1; grid-row: 2;
    text-align: center; align-items: center;
  }
  .masthead-center { grid-column: 1; grid-row: 1; }
  .masthead-marginalia-right {
    grid-column: 1; grid-row: 4;
    align-items: center;
  }
  .motto-2, .motto-3 { text-align: center; }
  .motto-1 { font-size: 32px; }
  .wordmark { font-size: 36px; }
  .masthead-mark img { height: 42px; }
  .civic-app-btn { width: 100%; min-width: 0; max-width: 320px; }
}

/* === ADMIN STYLE PORT 2026-04-29 === */
.admin-nav{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:32px;padding-bottom:16px;border-bottom:1.5px solid var(--rule);}
.admin-nav a{padding:8px 14px;text-decoration:none;color:var(--muted);font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;border-bottom:2px solid transparent;margin-right:4px;}
.admin-nav a:hover{color:var(--ink);}
.admin-nav a.active{color:var(--ink);border-bottom-color:var(--seal);}
.admin-nav .spacer{flex:1;}
.admin-nav form{margin:0;}
.admin-nav button{padding:8px 14px;background:transparent;border:1px solid var(--rule);border-radius:0;font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);cursor:pointer;}
.admin-nav button:hover{color:var(--ink);border-color:var(--ink);}
.container{max-width:1200px;margin:0 auto;padding:0 40px 80px;position:relative;z-index:1;}
.container.narrow{max-width:560px;}
.h1{font-family:'Instrument Serif',serif;font-size:clamp(32px,5vw,44px);font-weight:400;line-height:1.1;letter-spacing:-0.02em;margin:0 0 12px;color:var(--ink);}
.h2{font-family:'Instrument Serif',serif;font-size:26px;font-weight:400;line-height:1.25;margin:0 0 10px;color:var(--ink);}
.h3{font-family:'Geist',sans-serif;font-size:16px;font-weight:600;margin:0;color:var(--ink);}
.eyebrow{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--seal);}
.muted{color:var(--muted);}
.small{font-size:12.5px;color:var(--muted);}
.p{margin:12px 0;}
.hr{height:1px;background:var(--rule);border:0;margin:20px 0;}
.stack{display:flex;flex-direction:column;gap:16px;}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
.actions{display:flex;gap:8px;flex-wrap:wrap;}
label{display:block;font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;}
.input,select,textarea{width:100%;padding:11px 14px;border:1px solid var(--rule);border-radius:0;background:var(--paper);color:var(--ink);font-family:'Geist',sans-serif;font-size:14px;outline:none;}
.input:focus,select:focus,textarea:focus{border-color:var(--ink);}
.btn{appearance:none;display:inline-block;padding:11px 22px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:0;font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;cursor:pointer;text-decoration:none;}
.btn:hover{background:var(--paper);color:var(--ink);}
.btn.secondary,.btn.btn-secondary{background:var(--paper);color:var(--ink);}
.btn.secondary:hover,.btn.btn-secondary:hover{background:var(--ink);color:var(--paper);}
.btn:disabled{opacity:.5;cursor:not-allowed;}
.notice{padding:14px 18px;border:1px solid var(--rule);background:var(--paper-deep);border-radius:0;margin-bottom:16px;font-size:14px;line-height:1.5;}
.notice b{color:var(--ink);}
.notice .small{display:block;margin-top:4px;color:var(--muted);}
.notice.error{border-color:var(--seal);background:rgba(138,42,31,.06);color:var(--seal);}
.notice.error b{color:var(--seal);}
.notice.ok{border-color:var(--anchor);background:rgba(31,58,53,.06);color:var(--anchor);}
.notice.ok b{color:var(--anchor);}
.notice.warn{border-color:#B85C00;background:rgba(184,92,0,.06);color:#B85C00;}
.notice.warn b{color:#B85C00;}
.badge{display:inline-block;padding:4px 10px;font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;border:1px solid var(--rule);border-radius:0;color:var(--muted);background:var(--paper);}
.badge.badge-strong{color:var(--ink);border-color:var(--ink);}
.badge.badge-success{color:var(--anchor);border-color:var(--anchor);background:rgba(31,58,53,.06);}
.badge.badge-danger{color:var(--seal);border-color:var(--seal);background:rgba(138,42,31,.06);}
.badge.badge-neutral{color:var(--muted);border-color:var(--rule);background:var(--paper);}
.badge.badge-warning{color:#B85C00;border-color:#B85C00;background:rgba(184,92,0,.06);}
.metric-card{padding:22px 24px;border:1px solid var(--rule);background:var(--paper);border-radius:0;}
.metric-label{font-family:'JetBrains Mono',monospace;font-size:10.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:12px;}
.metric-value{font-family:'Instrument Serif',serif;font-size:38px;line-height:1;color:var(--ink);letter-spacing:-0.02em;margin-bottom:6px;}
.metric-detail{font-size:12.5px;color:var(--muted);line-height:1.4;}
.section-card{padding:24px 28px;border:1px solid var(--rule);background:var(--paper);border-radius:0;}
.section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;}
.section-title-wrap{display:flex;flex-direction:column;gap:4px;}
.table{width:100%;border-collapse:collapse;background:var(--paper);font-size:14px;}
.table th,.table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--rule);vertical-align:middle;}
.table th{font-family:'JetBrains Mono',monospace;font-size:10.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);border-bottom:1.5px solid var(--ink);}
.table tr:last-child td{border-bottom:0;}
.table .actions{display:flex;gap:6px;flex-wrap:wrap;}
.draft-banner{background:rgba(184,92,0,.08);border:1px solid #B85C00;border-radius:0;padding:14px 18px;margin-bottom:20px;font-size:13.5px;line-height:1.5;}
.draft-banner b{display:block;margin-bottom:4px;color:#B85C00;}

/* === BANNER v4 final - polished masthead (2026-04-29) === */
.masthead-marginalia-left { text-align: center !important; align-items: center !important; gap: 12px !important; max-width: 360px; justify-self: center; }
.motto-1 { text-align: center !important; font-family: 'Instrument Serif', serif !important; font-weight: 400 !important; font-size: 26px !important; line-height: 1.15 !important; }
.motto-2 { text-align: center !important; font-size: 18px !important; }
.motto-3 { text-align: center !important; font-size: 12.5px !important; line-height: 1.5 !important; max-width: 320px; margin: 0 auto !important; }
.masthead-marginalia-right { gap: 10px !important; align-items: center !important; max-width: 360px; justify-self: center; }
.civic-app-btn { padding: 11px 18px !important; font-size: 13px !important; min-width: 0 !important; width: 220px !important; box-sizing: border-box; letter-spacing: 0.02em !important; }
.civic-disclaimer + .civic-disclaimer { margin-top: 2px !important; }
header.masthead { padding: 22px 0 18px !important; column-gap: 24px !important; }
/* === END v4 final === */
/* keep visible hover lift on app buttons */
.civic-app-btn:hover { transform: translateY(-1px); }

/* === ABOUT TABS 2026-04-29 === */
.about-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; padding: 12px 0 28px; border-bottom: 1.5px solid var(--rule); margin-bottom: 28px; }
.about-tabs button { background: transparent; border: 0; padding: 8px 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.about-tabs button:hover { color: var(--ink); }
.about-tabs button.active { color: var(--ink); border-bottom-color: var(--seal); }
.about-pane[hidden] { display: none !important; }
.about-pane { animation: about-fade .25s ease-out; }
@keyframes about-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* === END ABOUT TABS === */

/* === MAIN NAV CENTERING 2026-04-29 === */
.mast-nav { justify-content: center !important; }
/* === END === */

/* === ABOUT PANES UNBOXED 2026-04-29 === */
.about-pane .copy-block, .about-pane .faq-item { padding: 0 !important; border: 0 !important; background: transparent !important; max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
.about-pane .copy-block + .copy-block, .about-pane .faq-item + .faq-item { margin-top: 36px !important; }
.about-pane .grid-2up, .about-pane .grid-3up, .about-pane .grid-full { display: block !important; }
.about-pane .grid-2up > * + *, .about-pane .grid-3up > * + *, .about-pane .grid-full > * + * { margin-top: 36px !important; }
.about-pane .copy-block h2, .about-pane .faq-item h2, .about-pane .feature-item b { text-align: center !important; }
.about-pane .copy-block p, .about-pane .faq-item p, .about-pane .feature-item .small { text-align: center !important; max-width: 660px; margin-left: auto !important; margin-right: auto !important; }
.about-pane .feature-list { display: block; max-width: 580px; margin: 16px auto 0 !important; }
.about-pane .feature-item + .feature-item { margin-top: 18px !important; }
.about-pane .hero, .about-pane .hero h1, .about-pane .hero p, .about-pane .hero .hero-kicker { text-align: center !important; }
/* === END UNBOXED === */

/* === Masthead Sign-In Button (maroon) 2026-05-01 === */
.masthead-signin-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--seal);
  border: 1.5px solid var(--seal);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(138,42,31,0.25);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.masthead-signin-btn:hover {
  background: #6E1F17;
  border-color: #6E1F17;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(138,42,31,0.32);
}
.masthead-signin-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(138,42,31,0.25);
}
@media (max-width: 720px) {
  .masthead-signin-btn { width: 100%; max-width: 320px; padding: 12px 24px; font-size: 15px; }
}

/* Secondary "Get Verified" button under Sign In (outlined maroon) 2026-05-01 */
.masthead-getverified-btn {
  display: inline-block;
  padding: 12px 32px;
  margin-top: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--seal);
  background: transparent;
  border: 1.5px solid var(--seal);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  min-width: 160px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.masthead-getverified-btn:hover {
  background: var(--seal);
  color: var(--paper);
  transform: translateY(-1px);
}
/* === Verification page big CTA (L3 upgrade) 2026-05-01 === */
.verify-cta-big {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 22px 28px;
  font-family: 'Geist', sans-serif;
  color: var(--paper);
  background: var(--seal);
  border: 1.5px solid var(--seal);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 3px 10px rgba(138,42,31,0.32);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.verify-cta-big:hover {
  background: #6E1F17; border-color: #6E1F17;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(138,42,31,0.45);
}
.verify-cta-big .vcb-line1 { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
.verify-cta-big .vcb-line2 { font-size: 14px; font-weight: 400; opacity: 0.92; }
@media (max-width: 640px) {
  .verify-cta-big { padding: 18px 20px; }
  .verify-cta-big .vcb-line1 { font-size: 18px; }
  .verify-cta-big .vcb-line2 { font-size: 13px; }
}
/* === Masthead Verify CTA (signed-in L2 users) 2026-05-01 === */
.masthead-verify-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-family: 'Geist', sans-serif;
  color: var(--paper);
  background: var(--seal);
  border: 1.5px solid var(--seal);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(138,42,31,0.30);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  animation: zw-verify-pulse 2.4s ease-in-out infinite;
}
.masthead-verify-cta:hover {
  background: #6E1F17; border-color: #6E1F17;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(138,42,31,0.45);
  animation: none;
}
.masthead-verify-cta .mvc-icon {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--seal);
  border-radius: 50%;
  font-size: 13px; font-weight: 800;
  line-height: 1;
}
.masthead-verify-cta .mvc-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.masthead-verify-cta .mvc-line1 { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.masthead-verify-cta .mvc-line2 { font-size: 11px; opacity: 0.85; font-weight: 400; }
@keyframes zw-verify-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(138,42,31,0.30); }
  50% { box-shadow: 0 2px 16px rgba(138,42,31,0.55); }
}
@media (max-width: 720px) {
  .masthead-verify-cta { width: 100%; max-width: 360px; padding: 11px 18px; }
  .masthead-verify-cta .mvc-line1 { font-size: 14px; }
  .masthead-verify-cta .mvc-line2 { font-size: 10px; }
}
/* === Search inputs — magnifying glass icon 2026-05-01 === */
input[type="search"],
.search-empty-form input,
.search-top-form input,
input[name="q"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A2A1F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px 18px;
  padding-left: 40px !important;
}
/* === CRT three-axis explainer (per-card, compact) 2026-05-01 === */
.zebra-crt-explainer {
  margin: 0 0 14px;
  padding: 8px 14px;
  background: rgba(138,42,31,0.05);
  border: 1px solid rgba(138,42,31,0.25);
  border-radius: 6px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--ink);
  transition: padding .25s ease, background .2s ease;
}
.zebra-crt-explainer.cre-collapsed:hover { background: rgba(138,42,31,0.09); }
.zebra-crt-explainer.cre-playing,
.zebra-crt-explainer.cre-finished { padding: 14px 18px; background: rgba(138,42,31,0.07); }
.cre-collapsed-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cre-collapsed-label { color: var(--seal); font-weight: 500; flex: 1; }
.cre-collapsed-label::before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--seal); color: var(--paper); font-weight: 700; font-size: 11px; margin-right: 8px; }
.cre-play-btn, .cre-replay-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-family: 'Geist', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--paper); background: var(--seal);
  border: 1px solid var(--seal); border-radius: 4px;
  cursor: pointer;
}
.cre-play-btn:hover, .cre-replay-btn:hover { background: #6E1F17; border-color: #6E1F17; }
.cre-play-icon { width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 1px; }
.zebra-crt-explainer.cre-collapsed .cre-progress,
.zebra-crt-explainer.cre-collapsed .cre-stage,
.zebra-crt-explainer.cre-collapsed .cre-controls,
.zebra-crt-explainer.cre-collapsed .cre-finish-row { display: none; }
.zebra-crt-explainer.cre-playing .cre-collapsed-row,
.zebra-crt-explainer.cre-playing .cre-finish-row,
.zebra-crt-explainer.cre-finished .cre-collapsed-row { display: none; }
.zebra-crt-explainer.cre-finished .cre-stage { opacity: 0.6; }
.cre-progress {
  height: 3px; background: rgba(138,42,31,0.15);
  border-radius: 2px; overflow: hidden; margin-bottom: 12px;
}
.cre-progress-fill { height: 100%; width: 0%; background: var(--seal); transition: width .4s ease; }
.cre-stage {
  min-height: 70px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8px 4px;
}
.cre-stage-text {
  font-family: 'Geist', sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.45;
  color: var(--ink); max-width: 560px;
}
.cre-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.cre-stop-btn {
  background: transparent; color: var(--seal);
  border: 1px solid var(--seal); border-radius: 3px;
  padding: 3px 9px; font-size: 10px; font-weight: 600; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}
.cre-stop-btn:hover { background: var(--seal); color: var(--paper); }
.cre-finish-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 8px;
  font-size: 12px; color: var(--ink-soft);
}
/* === Welcome Widget (60s walkthrough, browser TTS) 2026-05-01 === */
.zebra-welcome {
  max-width: 760px;
  margin: 32px auto 24px;
  background: var(--paper-deep);
  border: 1.5px solid var(--seal);
  border-radius: 8px;
  font-family: 'Geist', sans-serif;
  color: var(--ink);
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.zebra-welcome.zw-collapsed { padding: 14px 20px; }
.zebra-welcome.zw-playing,
.zebra-welcome.zw-finished { padding: 22px 28px 20px; }
.zw-collapsed-row {
  display: flex; align-items: center; gap: 16px;
}
.zw-collapsed-row .zw-mark {
  flex: 0 0 auto; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--seal); color: var(--paper);
  font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
}
.zw-collapsed-row .zw-pitch {
  flex: 1 1 auto; font-size: 15px; color: var(--ink-soft);
}
.zw-collapsed-row .zw-pitch strong { color: var(--ink); }
.zw-collapsed-row .zw-pitch .zw-meta { display:block; font-size:12px; color: var(--muted); margin-top:2px; }
.zw-play-btn, .zw-replay-btn, .zw-cta-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--paper); background: var(--seal);
  border: 1.5px solid var(--seal); border-radius: 6px;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.zw-play-btn:hover, .zw-replay-btn:hover, .zw-cta-btn:hover {
  background: #6E1F17; border-color: #6E1F17; transform: translateY(-1px);
}
.zw-stop-btn {
  background: transparent; color: var(--seal);
  border: 1px solid var(--seal); border-radius: 4px;
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: 'Geist', sans-serif;
  transition: background .15s ease, color .15s ease;
}
.zw-stop-btn:hover { background: var(--seal); color: var(--paper); }
.zw-play-icon {
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}
.zebra-welcome.zw-collapsed .zw-stage,
.zebra-welcome.zw-collapsed .zw-progress,
.zebra-welcome.zw-collapsed .zw-controls,
.zebra-welcome.zw-collapsed .zw-finish-row { display: none; }
.zebra-welcome.zw-playing .zw-collapsed-row,
.zebra-welcome.zw-playing .zw-finish-row,
.zebra-welcome.zw-finished .zw-collapsed-row { display: none; }
.zebra-welcome.zw-finished .zw-stage { opacity: 0.55; }
.zw-progress {
  height: 4px; background: rgba(138,42,31,0.15);
  border-radius: 2px; overflow: hidden; margin-bottom: 18px;
}
.zw-progress-fill {
  height: 100%; width: 0%;
  background: var(--seal);
  transition: width .4s ease;
}
.zw-stage {
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px 8px;
}
.zw-stage-text {
  font-family: 'Geist', sans-serif;
  font-size: 22px; font-weight: 500; line-height: 1.45;
  color: var(--ink);
  max-width: 620px;
}
.zw-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.zw-controls-left { display: flex; align-items: center; gap: 12px; }
.zw-counter { font-variant-numeric: tabular-nums; }
.zw-finish-row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 18px; flex-wrap: wrap;
}
.zw-finish-line {
  width: 100%; text-align: center;
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .zw-stage-text { font-size: 18px; }
  .zw-stage { min-height: 200px; }
  .zw-collapsed-row { flex-wrap: wrap; }
  .zw-collapsed-row .zw-pitch { flex-basis: 100%; }
}
/* === AUTH TABS 2026-04-29 — unified sign-in / create account === */
.auth-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; padding: 8px 0 28px; border-bottom: 1.5px solid var(--rule); margin-bottom: 32px; }
.auth-tabs a { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px 4px; border-bottom: 2px solid transparent; }
.auth-tabs a:hover { color: var(--ink); }
.auth-tabs a.active { color: var(--ink); border-bottom-color: var(--seal); }
.auth-pane { max-width: 480px; margin: 0 auto; }
.auth-pane .stack { gap: 16px; }
.auth-pane .form-aux { display: flex; justify-content: center; gap: 18px; padding-top: 18px; font-size: 12px; }
.auth-pane .form-aux a { color: var(--muted); }
.auth-pane .form-aux a:hover { color: var(--seal); }
.auth-pane .action-row { justify-content: center; padding-top: 4px; }
/* === END AUTH TABS === */

/* === LEGAL DOCS 2026-04-29 — /terms /privacy === */
.legal-doc { max-width: 720px; margin: 0 auto; }
.legal-doc h1 { font-family: 'Instrument Serif', serif; font-size: clamp(32px, 5vw, 44px); font-weight: 400; text-align: center; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--ink); }
.legal-doc h1 + p { text-align: center; color: var(--muted); font-size: 12.5px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 56px; }
.legal-doc h2 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; margin: 36px 0 12px; letter-spacing: -0.005em; color: var(--ink); }
.legal-doc h3 { font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 600; margin: 24px 0 8px; color: var(--ink); }
.legal-doc p { margin: 0 0 14px; line-height: 1.65; color: var(--ink-soft); font-size: 14.5px; }
.legal-doc ul { margin: 0 0 14px 24px; padding: 0; }
.legal-doc li { margin: 0 0 8px; line-height: 1.6; color: var(--ink-soft); font-size: 14.5px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc a { color: var(--seal); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.legal-doc a:hover { text-decoration-color: var(--seal); }
/* === END LEGAL === */

/* === REGISTER CONSENT BLOCK 2026-04-29 === */
.consent-block { padding: 18px 20px; border: 1px solid var(--rule); background: var(--paper-deep); border-radius: 0; margin-top: 8px; }
.consent-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.consent-list { list-style: none; padding: 0; margin: 0 0 14px; }
.consent-list li { font-size: 13px; line-height: 1.55; color: var(--ink-soft); padding-left: 14px; position: relative; margin: 0 0 10px; }
.consent-list li::before { content: '\2014'; position: absolute; left: 0; color: var(--seal); }
.consent-list li strong { color: var(--ink); font-weight: 600; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--rule); }
.consent-check input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
.consent-check span { font-size: 13px; line-height: 1.5; color: var(--ink); }
.consent-check a { color: var(--seal); }
/* === END CONSENT === */

/* ═════════════════════════════════════════════════════════════════
   ROLODEX DECK 2026-04-29 (deck-only, additive above cascade)
   /legislative · /executive-actions · /judicial — replaces civic_shell
   hero/lede block; cascade form + section panels render below the deck
   unchanged. Edge tabs / figures / modal go on /your-government home
   in a separate ship.
   ═════════════════════════════════════════════════════════════════ */

:root {
  --card-paper:        #F1E7D0;
  --card-paper-light:  #F7EFDE;
  --card-paper-shadow: #D9CAA3;
  --card-ink:          #2A1F15;
  --card-ink-soft:     #5A4A36;
  --card-ink-faded:    #8A7558;
  --card-rule:         #BBB29C;
  --card-burnt:        #6B3F1D;   /* status pill "floor" */
  --card-gold:         #A8854A;   /* status pill "committee" */
  --card-approve:      #4A6B3F;   /* status pill "passed" */
}

/* ── Masthead (replaces civic_shell hero) ── */
.rx-masthead {
  border-bottom: 1px solid var(--card-rule);
  padding-bottom: 22px;
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.rx-masthead-block { min-width: 0; flex: 1; }
.rx-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--card-ink-soft);
}
.rx-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.05;
  color: var(--card-ink);
  margin: 4px 0 0;
}
.rx-h1 em { font-style: italic; color: var(--card-burnt); }
.rx-masthead-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-ink-faded);
  text-align: right;
  line-height: 1.55;
}
.rx-masthead-meta strong { color: var(--card-ink); font-weight: 500; }

/* ── Empty-state (DB outage / zero-row feed) ── */
.rx-empty {
  padding: 36px 28px;
  border: 1px dashed var(--card-rule);
  background: rgba(168, 133, 74, 0.05);
  text-align: center;
  margin-bottom: 32px;
}
.rx-empty-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--card-burnt);
  margin-bottom: 10px;
}
.rx-empty-text {
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--card-ink-soft);
  margin: 0;
}

/* ── Sort bar (4 modes — Ship 1) ── */
.rx-sort-bar { margin-bottom: 28px; }
.rx-sort-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--card-ink-faded);
  margin-bottom: 10px;
}
.rx-sort-buttons {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--card-rule);
  border-bottom: 1px solid var(--card-rule);
}
.rx-sort-btn {
  flex: 1;
  min-width: 130px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--card-rule);
  padding: 13px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--card-ink-soft);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.02em;
}
.rx-sort-btn:last-child { border-right: none; }
.rx-sort-btn:hover {
  background: rgba(168, 133, 74, 0.10);
  color: var(--card-ink);
}
.rx-sort-btn.active {
  background: var(--card-ink);
  color: var(--card-paper);
  font-weight: 600;
}

/* ── Stage (3D perspective container for the deck) ── */
.rolodex-stage {
  position: relative;
  perspective: 2200px;
  perspective-origin: 50% 40%;
  height: 980px;
  margin: 0 auto 130px;
}
.rx-deck {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* ── Card ── */
.rx-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 880px;
  margin: -440px 0 0 -360px;
  background: var(--card-paper-light);
  border: 1px solid var(--card-paper-shadow);
  box-shadow:
    0 2px 0 var(--card-paper-shadow),
    0 4px 0 #cdbb91,
    0 6px 0 #c1ad7f,
    0 18px 32px rgba(42, 31, 21, 0.25),
    inset 0 0 60px rgba(168, 133, 74, 0.05);
  padding: 38px 48px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0.28, 1),
              opacity 0.6s;
  backface-visibility: hidden;
  background-image:
    linear-gradient(135deg, transparent 0%, rgba(168, 133, 74, 0.03) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Three-block flex layout keeps the focal card's voting controls always
   visible: kicker fixed top, title+summary scroll if too long for the
   card height, meta + source link + axes pinned to the bottom. The card
   itself stays at fixed height (480px) so the deck's 3D translateZ math
   stays consistent across cards. */
.rx-card-top    { flex: 0 0 auto; }
.rx-card-middle {
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rx-card-bottom { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.rx-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rx-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%, var(--card-burnt) 20%, var(--card-gold) 50%,
    var(--card-burnt) 80%, transparent 100%);
  opacity: 0.4;
}
.rx-card[data-pos="-3"] { transform: translateX(-520px) translateZ(-440px) rotateY(35deg);  opacity: 0.25; pointer-events: none; }
.rx-card[data-pos="-2"] { transform: translateX(-380px) translateZ(-280px) rotateY(28deg);  opacity: 0.5;  pointer-events: none; }
.rx-card[data-pos="-1"] { transform: translateX(-220px) translateZ(-150px) rotateY(18deg);  opacity: 0.75; pointer-events: none; }
.rx-card[data-pos="0"]  { transform: translateX(0)      translateZ(0)      rotateY(0deg);   opacity: 1;    z-index: 10; }
.rx-card[data-pos="1"]  { transform: translateX(220px)  translateZ(-150px) rotateY(-18deg); opacity: 0.75; pointer-events: none; }
.rx-card[data-pos="2"]  { transform: translateX(380px)  translateZ(-280px) rotateY(-28deg); opacity: 0.5;  pointer-events: none; }
.rx-card[data-pos="3"]  { transform: translateX(520px)  translateZ(-440px) rotateY(-35deg); opacity: 0.25; pointer-events: none; }
.rx-card[data-pos="hidden"] { transform: translateX(0) translateZ(-600px) rotateY(0deg); opacity: 0; pointer-events: none; }

/* ── Card content ── */
.rx-card-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--card-ink-faded);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rx-card-kicker-secondary {
  text-transform: none;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.rx-card-id { color: var(--card-burnt); font-weight: 500; }
.rx-card-status {
  background: var(--card-ink);
  color: var(--card-paper);
  padding: 3px 8px;
  font-size: 9px;
}
.rx-card-status.passed    { background: var(--card-approve); }
.rx-card-status.committee { background: var(--card-gold); }
.rx-card-status.floor     { background: var(--card-burnt); }
.rx-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--card-ink);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rx-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rx-card-summary {
  font-family: 'Crimson Text', serif;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--card-ink-soft);
  margin: 0 0 18px;
}
.rx-card-meta-row {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--card-paper-shadow);
  border-bottom: 1px solid var(--card-paper-shadow);
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-ink-faded);
  flex-wrap: wrap;
}
.rx-card-meta-row strong {
  color: var(--card-ink);
  font-weight: 500;
  margin-left: 5px;
}

/* ── Source link (focal card only) ── */
.rx-card-source-row {
  display: flex;
  justify-content: center;
  margin: 2px 0 12px;
}
.rx-card-source-link {
  display: inline-block;
  padding: 6px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--card-burnt);
  border: 1px solid var(--card-burnt);
  background: transparent;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.rx-card-source-link:hover,
.rx-card-source-link:focus {
  background: var(--card-burnt);
  color: var(--card-paper);
  outline: none;
}

/* ── Three-axis voice (inline on focal card) ── */
.rx-axis-section { margin-top: 8px; }
.rx-axis-header {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--card-burnt);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.05em;
}
.rx-axis-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}
.rx-axis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--card-ink-faded);
  width: 100px;
  text-align: right;
  flex-shrink: 0;
}
.rx-axis-options {
  display: flex;
  flex: 1;
  border: 1px solid var(--card-ink-faded);
}
.rx-axis-opt {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid var(--card-ink-faded);
  padding: 9px 6px;
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  color: var(--card-ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rx-axis-opt:last-child { border-right: none; }
.rx-axis-opt:hover {
  background: rgba(168, 133, 74, 0.15);
  color: var(--card-ink);
}
.rx-axis-opt.selected {
  background: var(--card-ink);
  color: var(--card-paper);
  font-weight: 600;
}
.rx-axis-status {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-ink-faded);
  text-align: center;
}
.rx-axis-status.pending  { color: var(--card-burnt); }
.rx-axis-status.success  { color: var(--card-approve); }
.rx-axis-status.warn     { color: var(--card-burnt); font-weight: 500; }
.rx-axis-status.error    { color: #8a3f3f; }

/* ── Anonymous CTA (inline on focal card, anon only) ── */
.rx-anon-cta {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--card-burnt);
  background: rgba(168, 133, 74, 0.06);
  text-align: center;
  font-family: 'Crimson Text', serif;
  font-size: 12px;
  line-height: 1.45;
  color: var(--card-ink-soft);
}
.rx-anon-cta strong { color: var(--card-burnt); }
.rx-anon-cta-btn {
  display: inline-block;
  margin-top: 6px;
  color: var(--card-paper);
  background: var(--card-ink);
  padding: 6px 14px;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.rx-anon-cta-btn:hover { background: var(--card-burnt); }

/* ── Nav row + hint (below deck) ── */
.rx-nav-row {
  position: absolute;
  bottom: -68px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--card-rule);
  z-index: 4;
}
.rx-nav-btn {
  background: transparent;
  border: 1px solid var(--card-ink-soft);
  color: var(--card-ink);
  padding: 8px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.rx-nav-btn:hover:not(:disabled) {
  background: var(--card-ink);
  color: var(--card-paper);
}
.rx-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.rx-position-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--card-ink-faded);
}
.rx-position-indicator strong {
  color: var(--card-ink);
  font-size: 14px;
  font-weight: 500;
}
.rx-hint {
  position: absolute;
  bottom: -100px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--card-ink-faded);
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .rx-h1 { font-size: 28px; }
  .rolodex-stage { height: 460px; margin-bottom: 110px; }
  .rx-card { width: 86vw; height: 420px; margin-left: -43vw; padding: 22px; }
  .rx-card-title { font-size: 20px; }
  .rx-card-summary { font-size: 13px; }
  .rx-axis-label { width: 84px; font-size: 7px; }
  .rx-sort-btn { font-size: 14px; padding: 10px 8px; min-width: 100px; }
}
/* === END ROLODEX DECK === */

/* === LANDING PRELUDE 2026-05-01 === */
.landing-prelude {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto 48px;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--rule);
}
.landing-prelude-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.landing-line {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.landing-cta {
  margin: 56px auto 24px;
  text-align: center;
}
.landing-cta-link {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 6px;
}
.landing-cta-link:hover {
  color: var(--seal);
  text-decoration-color: var(--seal);
}
@media (max-width: 720px) {
  .landing-prelude { grid-template-columns: 1fr; gap: 36px; }
}
/* === END LANDING PRELUDE === */
.landing-prelude-orientation .landing-line { color: var(--seal); }
.landing-prelude-offer .landing-line { color: var(--anchor); }

/* === REGISTER LAYOUT — wide /get-verified 2026-05-01 === */
.auth-pane.auth-pane-wide { max-width: 880px; }
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.register-grid-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 720px) {
  .register-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* === END REGISTER LAYOUT === */
.auth-pane fieldset { border: 0; padding: 0; margin: 0; }
.register-grid .form-group-note { min-height: calc(1.55em * 2); }
@media (max-width: 720px) { .register-grid .form-group-note { min-height: 0; } }
.auth-pane .auth-intro { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mast-nav .mast-nav-user {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
  align-self: center;
}

/* === CHIP-STYLE CRT 2026-05-01 === */
.card-response.three-axis .cr-axis-controls {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
}
.card-response.three-axis .cr-axis-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 13px;
  background: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  line-height: 1;
}
.card-response.three-axis .cr-axis-option:hover {
  background: var(--ink);
  color: #FFFFFF;
}
.card-response.three-axis .cr-axis-option:hover .cr-opt-label,
.card-response.three-axis .cr-axis-option:hover .cr-opt-tally {
  color: #FFFFFF;
  opacity: 1;
}
.card-response.three-axis .cr-axis-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.card-response.three-axis .cr-axis-option:has(input:checked) {
  background: var(--seal);
  color: var(--paper);
  border-color: var(--seal);
}
.cr-opt-label { font-family: 'Cormorant Garamond', serif; font-size: 13.5px; }
.cr-opt-tally { font-family: 'JetBrains Mono', monospace; font-size: 9px; opacity: 0.55; }

/* === COLLAPSIBLE CANOPY SECTIONS 2026-05-01 === */
details.canopy-section {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 0;
}
details.canopy-section[open] { background: rgba(255,255,255,0.3); }
details.canopy-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
details.canopy-section > summary::-webkit-details-marker { display: none; }
details.canopy-section > summary:hover .canopy-section-heading { color: var(--seal); }
.canopy-section-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.canopy-section-chevron {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.15s;
  width: 18px;
  text-align: center;
}
details.canopy-section[open] > summary .canopy-section-chevron {
  transform: rotate(45deg);
}
.canopy-section-body { padding: 0 4px 18px; }
/* === END COLLAPSIBLE === */

/* === DASHBOARD CRT (Direction 3, maroon strip) 2026-05-01 === */
.cr-participants-strip {
  background: var(--seal);
  color: var(--paper);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.cr-participants-left { display: flex; gap: 24px; align-items: baseline; }
.cr-participants-num {
  font-family: 'Instrument Serif', serif;
  font-size: 34px;
  line-height: 1;
}
.cr-participants-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 4px;
}
.cr-participants-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  opacity: 0.85;
}
.cr-participants-detail strong { color: var(--paper); font-weight: 500; }
.cr-strip-locked {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: var(--paper);
  color: var(--seal);
}
.cr-axis-dash { margin-top: 28px; }
.cr-axis-dash .cr-axis-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 16px;
}
.cr-axis-dash .cr-axis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.cr-axis-dash .cr-axis-help {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}
.axis-stacked {
  display: flex;
  height: 32px;
  border: 1px solid var(--ink);
  margin-bottom: 8px;
  overflow: hidden;
}
.axis-stacked-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--paper);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.axis-stacked-seg:hover { opacity: 0.85; }
.seg-positive { background: var(--anchor); }
.seg-negative { background: var(--seal); }
.seg-neutral { background: #A8854A; }
.seg-state { background: #3A5E7A; }
.axis-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.axis-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}
.axis-legend-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.axis-legend-swatch {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.axis-legend-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--ink);
}
.axis-legend-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}
.axis-legend-item:has(input:checked) .axis-legend-label { color: var(--seal); font-weight: 600; }
.axis-legend-item:has(input:checked) .axis-legend-num { color: var(--seal); }
/* === END DASHBOARD CRT === */

/* === MY POSITIONS PAGE === */
.my-positions, .my-positions-empty { max-width: 760px; margin: 0 auto; padding: 16px 0 80px; }
.mp-title {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  margin-bottom: 4px;
}
.mp-deck {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 16px;
}
.mp-list { display: flex; flex-direction: column; gap: 0; }
.mp-row {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  transition: background 0.15s, padding 0.15s;
}
.mp-row:hover { background: var(--paper-deep); padding-left: 12px; padding-right: 12px; }
.mp-row-top {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.mp-kind { color: var(--seal); }
.mp-locked { background: var(--seal); color: var(--paper); padding: 2px 8px; }
.mp-aid {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.mp-chip-stance { border-color: var(--anchor); color: var(--anchor); }
.mp-chip-fiscal { border-color: #A8854A; color: #6B3F1D; }
.mp-chip-auth { border-color: #3A5E7A; color: #3A5E7A; }
.mp-chip-judicial { border-color: var(--seal); color: var(--seal); }
.mp-empty-title { font-family: 'Instrument Serif', serif; font-size: 36px; margin-bottom: 12px; }
.mp-empty-deck { font-family: 'Crimson Text', serif; font-style: italic; color: var(--muted); margin-bottom: 24px; }

/* === DASHBOARD CRT — buttons-above-bar 2026-05-02 === */
.cr-axis-dash .axis-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cr-axis-dash .axis-legend-item {
  flex: 1 1 0;
  min-width: 130px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, color 0.15s;
}
.cr-axis-dash .axis-legend-item:hover {
  background: var(--ink);
  color: var(--paper);
}
.cr-axis-dash .axis-legend-item:has(input:checked) {
  background: var(--seal);
  color: var(--paper);
  border-color: var(--seal);
}
.cr-axis-dash .axis-legend-swatch {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.cr-axis-dash .axis-legend-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  flex-grow: 1;
  font-weight: 500;
}
.cr-axis-dash .axis-legend-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.cr-axis-dash .axis-legend-item:hover .axis-legend-num,
.cr-axis-dash .axis-legend-item:has(input:checked) .axis-legend-num {
  color: var(--paper);
  opacity: 0.85;
}
.cr-axis-dash .axis-stacked {
  height: 22px;
  margin-bottom: 0;
}
/* === END BUTTONS-ABOVE-BAR === */
.cr-axis-dash .axis-stacked-seg [data-pct-label] { display: inline; font-size: 10px; letter-spacing: 0.04em; color: var(--paper); }


/* Rolodex fullscreen modal — opens when user clicks the focal card. */
.rx-fullscreen-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(42,31,21,0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: flex-start; justify-content: center;
  overflow-y: auto;
  padding: 32px 24px;
}
.rx-fullscreen-overlay.open { display: flex; }
.rx-fullscreen-card {
  background: var(--card-paper-light, #F7EFDE);
  width: min(960px, 100%);
  border: 1px solid var(--card-paper-shadow, #D9CAA3);
  box-shadow: 0 18px 48px rgba(0,0,0,0.30);
  padding: 28px 32px 40px;
  position: relative;
}
.rx-fullscreen-close {
  position: sticky; top: 0;
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; letter-spacing: 0.04em;
  color: var(--card-burnt, #6B3F1D);
  background: var(--card-paper-light, #F7EFDE);
  border: 1px solid var(--card-burnt, #6B3F1D);
  cursor: pointer;
}
.rx-fullscreen-close:hover {
  background: var(--card-burnt, #6B3F1D); color: #fffdf6;
}
.rx-fullscreen-loading,
.rx-fullscreen-error {
  text-align: center;
  padding: 48px 16px;
  color: var(--card-ink-soft, #5A4A36);
  font-family: 'Crimson Text', serif;
  font-size: 16px;
}
body.rx-fullscreen-open { overflow: hidden; }

/* Make rolodex side cards visibly clickable. */
.rx-card[data-pos="-1"], .rx-card[data-pos="1"],
.rx-card[data-pos="-2"], .rx-card[data-pos="2"],
.rx-card[data-pos="-3"], .rx-card[data-pos="3"] {
  pointer-events: auto !important;
  cursor: pointer;
}
.rx-card[data-pos="0"] { cursor: zoom-in; }

/* === Deck card content + CRT compression — comprehensive === */
/* Scoped strictly to .rx-card so tab pages are unaffected. */

/* Summary tighter on the deck */
.rx-card .rx-card-summary { font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.rx-card .rx-card-meta-row { font-size: 9px; padding: 6px 0; margin-bottom: 10px; }

/* Participants strip — compact */
.rx-card .card-response .cr-participants-strip { padding: 5px 12px; }
.rx-card .card-response .cr-participants-num { font-size: 14px; }
.rx-card .card-response .cr-participants-label { font-size: 8px; }
.rx-card .card-response .cr-participants-detail { font-size: 9px; line-height: 1.15; }

/* Explainer compact (kept visible — Play button still works) */
.rx-card .zebra-crt-explainer.cre-collapsed { padding: 4px 10px; margin: 4px 0; }
.rx-card .zebra-crt-explainer .cre-collapsed-label { font-size: 10.5px; }
.rx-card .zebra-crt-explainer .cre-play-btn { padding: 3px 9px; font-size: 10px; }

/* Hide redundant chrome on the deck */
.rx-card .card-response .cr-voice-header { display: none; }
.rx-card .card-response .cr-status { display: none; }
.rx-card .card-response .cr-axis-help { display: none; }

/* Axis container compact */
.rx-card .card-response.three-axis .cr-axis { margin-top: 8px; padding-top: 6px; }
.rx-card .card-response.three-axis .cr-axis-head { margin-bottom: 4px; gap: 8px; }
.rx-card .card-response.three-axis .cr-axis-label { font-size: 10px; letter-spacing: 0.16em; }

/* Tally bar slim */


/* Buttons (horizontal layout, smaller, with word-wrap for long labels) */
.rx-card .cr-axis-dash .axis-legend {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 4px;
}
.rx-card .cr-axis-dash .axis-legend-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 6px;
  gap: 4px;
}
.rx-card .axis-legend-swatch { width: 9px; height: 9px; }
.rx-card .axis-legend-label {
  font-size: 11px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.rx-card .axis-legend-num { font-size: 9px; margin-left: auto; flex-shrink: 0; }


/* Authority axis only — stack vertically since 4 buttons + long words
 * (UNCONSTITUTIONAL, MARKETS/PRIVATE) don't fit in a 4-column horizontal
 * row inside the deck card. */
.rx-card .cr-axis-dash[data-axis="authority_level"] .axis-legend {
  flex-direction: column !important;
  gap: 4px;
}
.rx-card .cr-axis-dash[data-axis="authority_level"] .axis-legend-item {
  width: 100%;
  flex: 0 0 auto;
}


/* Force label readability on hover and selected states across all CRTs.
 * The base .axis-legend-label color stays dark, which blends into the
 * dark hover background and the seal-red checked background. */
.cr-axis-dash .axis-legend-item:hover .axis-legend-label,
.cr-axis-dash .axis-legend-item:has(input:checked) .axis-legend-label {
  color: #FFFFFF !important;
  font-weight: 600;
}
.cr-axis-dash .axis-legend-item:hover .axis-legend-num,
.cr-axis-dash .axis-legend-item:has(input:checked) .axis-legend-num {
  color: #FFFFFF !important;
  opacity: 1 !important;
}
.cr-axis-dash .axis-legend-item:hover,
.cr-axis-dash .axis-legend-item:has(input:checked) {
  color: #FFFFFF;
}


/* Force seal-red checked state on Authority axis (and all cr-axis-dash
 * buttons) with !important so per-axis stacking rules can't override
 * the visual selection. Mike: 'color is not on authority'. */
.cr-axis-dash .axis-legend-item:has(input:checked) {
  background: var(--seal) !important;
  color: #FFFFFF !important;
  border-color: var(--seal) !important;
}
.cr-axis-dash .axis-legend-item:hover {
  background: var(--ink) !important;
  color: #FFFFFF !important;
}


/* Make the CRT inside rolodex deck cards visually integrated with the
 * card paper — no separate cream/white panel that looks bolted on. */
.rx-card .card-response,
.rx-card .card-response[data-locked="1"] {
  background: transparent !important;
  border-top: none !important;
  border-radius: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

/* === LANDING OFFER BLOCK (Stripe-visible product disclosure, 2026-05-02) === */
.landing-offer-block {
  max-width: 880px;
  margin: 0 auto 48px;
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.landing-offer-headline {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--ink);
}
.landing-offer-body {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto 14px;
  max-width: 720px;
  text-wrap: pretty;
}
.landing-offer-body strong {
  font-weight: 500;
  color: var(--seal);
}
.landing-offer-body:last-child { margin-bottom: 0; }
