/* style.css — Right to Redress design system v4.3 */
/* Fonts: Playfair Display | DM Sans | DM Mono */
/* Colors: navy #0D1B2A | red #E03A1E | blue #1A6FA8 | green #1A7A50 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:   #0D1B2A;
  --red:    #E03A1E;
  --blue:   #1A6FA8;
  --green:  #1A7A50;
  --cream:  #F7F4EE;
  --mid:    #4A5568;
  --light:  #EDF2F7;
  --border: #CBD5E0;
  --white:  #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;
  --font-script: 'IM Fell English', Georgia, serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);

  --max-w: 1120px;
  --max-narrow: 720px;
  --header-h: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: var(--max-narrow);
}
.section {
  padding: 2rem 0;
}
.section--alt {
  background: var(--cream);
}
.section__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--navy);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.site-logo span { color: var(--red); }
.site-logo:hover { opacity: 0.88; text-decoration: none; }
.site-logo__tm {
  font-size: 0.45em;
  vertical-align: super;
  line-height: 1;
  letter-spacing: 0;
  color: var(--red);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--white); background: rgba(255,255,255,0.1); text-decoration: none; }
.site-nav__link--active { color: var(--white); background: rgba(255,255,255,0.12); }
.site-nav__soon {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  padding: 0.4rem 0.7rem;
  cursor: default;
  font-style: italic;
}

.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.site-nav--mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem 1.5rem;
  /* cap to the viewport below the header bar and let the menu scroll */
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.site-nav__list--mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-nav__list--mobile a {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0;
  display: block;
}
.site-nav__soon--mobile {
  font-size: 1rem;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 0;
  display: block;
  font-style: italic;
}

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-header__hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.hero--short {
  padding: 1.5rem 0 1.25rem;
}
.hero__label {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__amendment {
  font-family: var(--font-script);
  font-style: normal;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: rgba(255,255,255,0.88);
  max-width: 700px;
  margin: 0 auto 0.35rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.hero__amendment-attr {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--red);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #c83418; box-shadow: var(--shadow-md); }
.btn--secondary { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.25); }
.btn--secondary:hover { background: rgba(255,255,255,0.2); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* Home hero action buttons (icon + label, responsive grid) */
.hero__actions--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 660px;
  margin: 0 auto 2rem;
}
.btn--action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: normal;
}
.btn--action:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); box-shadow: var(--shadow-md); }
.btn--action__icon { display: flex; flex-shrink: 0; color: var(--red); }
.btn--action__icon svg { width: 24px; height: 24px; display: block; }
.btn--action__text { display: flex; flex-direction: column; line-height: 1.2; }
.btn--action__sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-top: 0.12rem;
}
@media (max-width: 560px) {
  .hero__actions--grid { grid-template-columns: 1fr; max-width: 380px; }
}

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.tag--issue { background: rgba(26,111,168,0.1); color: var(--blue); border: 1px solid rgba(26,111,168,0.25); }
.tag--category { background: rgba(13,27,42,0.06); color: var(--mid); border: 1px solid var(--border); }

/* ============================================================
   ISSUES BROWSER
   ============================================================ */
.issues-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--mid);
  transition: all 0.15s;
}
.filter-btn:hover, .filter-btn--active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(26,111,168,0.05);
}
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.issue-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.issue-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue);
}
.issue-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.issue-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.issue-card__summary {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.division-bar {
  display: flex;
  gap: 2px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.division-bar__fill {
  height: 100%;
  border-radius: 2px;
}
.division-bar__fill--high { background: var(--red); }
.division-bar__fill--medium { background: #F6AD55; }
.division-bar__fill--low { background: var(--green); }
.division-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--mid);
  letter-spacing: 0.04em;
}

/* ============================================================
   ISSUE DETAIL
   ============================================================ */
.detail-hero { background: var(--navy); color: var(--white); padding: 2.5rem 0 2rem; }
.detail-hero__back { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.detail-hero__back:hover { color: var(--white); text-decoration: none; }
.detail-hero__title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.detail-hero__meta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.components-section { padding: 3rem 0; }
.components-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .components-grid { grid-template-columns: repeat(2, 1fr); } }

.component-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.component-card__header {
  background: var(--light);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.component-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mid);
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
}
.component-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.positions-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--white); }
.pos-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--mid);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.pos-tab:hover { color: var(--navy); }
.pos-tab--active.pos-tab--left { color: #2B6CB0; border-bottom-color: #2B6CB0; }
.pos-tab--active.pos-tab--center { color: var(--green); border-bottom-color: var(--green); }
.pos-tab--active.pos-tab--right { color: #C05621; border-bottom-color: #C05621; }
.pos-tab--active.pos-tab--compromise { color: var(--blue); border-bottom-color: var(--blue); }
.position-content { padding: 1rem 1.25rem; font-size: 0.9rem; line-height: 1.6; color: var(--mid); min-height: 80px; }
.compromise-block {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: rgba(26,122,80,0.05);
  border-left: 3px solid var(--green);
}
.compromise-block__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.compromise-block__text { font-size: 0.88rem; color: var(--mid); line-height: 1.6; }
.compromise-block__cite { font-size: 0.75rem; color: rgba(0,0,0,0.45); margin-top: 0.25rem; font-style: italic; }

/* Action panel */
.action-panel {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
  position: sticky;
  bottom: 0;
}
@media (min-width: 900px) {
  .action-panel { position: relative; background: var(--light); color: var(--navy); border-top: 1px solid var(--border); }
}
.action-panel__inner { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.action-panel__label { font-weight: 600; margin-right: 0.5rem; }
.action-panel__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================================
   ESSAYS — FOUNDERS & VOICES
   ============================================================ */
.essays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.essay-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.essay-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--navy);
}
.essay-card__voice {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

/* Portrait thumbnail on essay cards (author-chip byline) */
.essay-card__byline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.essay-card__voice { line-height: 1.3; }
.essay-card__avatar { flex: 0 0 auto; }
.essay-card__portrait,
.essay-card__monogram {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  object-fit: cover; object-position: center top;
}
.essay-card__monogram {
  background: var(--navy); color: var(--white);
  font-family: var(--font-serif); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em;
}
.essay-card__dates {
  color: var(--mid);
  font-weight: 400;
}
.essay-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.essay-card__sub {
  font-size: 0.85rem;
  color: var(--mid);
  font-style: italic;
}
.essay-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.essay-card__date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--mid);
}
.essay-card__teaser {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid var(--red);
  padding-left: 0.75rem;
  margin: 0.25rem 0;
}
.essay-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ============================================================
   FOUNDERS & VOICES — Phase 2 (mini-nav, featured, topics, bios)
   ============================================================ */
.essays-subnav { background: var(--cream); border-bottom: 1px solid var(--border); }
.essays-subnav .container {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.essays-subnav .container::-webkit-scrollbar { display: none; }
.essays-subnav__link {
  flex: 0 0 auto;
  padding: 0.85rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.essays-subnav__link:hover { color: var(--navy); text-decoration: none; }
.essays-subnav__link--active { color: var(--red); border-bottom-color: var(--red); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section__head-link { font-size: 0.85rem; font-weight: 600; color: var(--red); text-decoration: none; white-space: nowrap; }
.section__head-link:hover { text-decoration: underline; }

.essay-card { position: relative; }
.essay-card__new {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

/* Coming-soon teaser tile (e.g. Paine's Letter, July 4). Non-interactive:
   visually an essay card, but flagged as upcoming and not clickable. */
.essay-card--teaser {
  cursor: default;
  background: var(--cream);
  border-style: dashed;
}
.essay-card--teaser:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--border);
}
.essay-card__coming {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.essay-card__soonnote {
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mid);
}

.topic-group { margin-bottom: 2.75rem; }
.topic-group__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light);
}
.topic-group__title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.topic-group__count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mid); }

.bios-intro { background: var(--cream); padding: 2rem 0; border-bottom: 1px solid var(--border); }
.bios-intro__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.bios-grid { display: flex; flex-direction: column; gap: 1.5rem; max-width: 760px; margin: 0 auto; }
.bio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
}
.bio-card__bio p { margin-bottom: 0.7rem; }
.bio-card__bio p:last-child { margin-bottom: 0; }
.bio-card__avatar { flex: 0 0 auto; }
.bio-card__portrait, .bio-card__monogram {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  object-fit: cover; object-position: center top;
}
.bio-card__credit {
  font-size: 0.72rem;
  color: var(--mid);
  margin-top: 1rem;
  line-height: 1.5;
}
.bio-card__credit a { color: var(--blue); }
.bio-card__monogram {
  background: var(--navy); color: var(--white);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em;
}
.bio-card__body { flex: 1 1 auto; min-width: 0; }
.bio-card__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.bio-card__meta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--red); margin-top: 0.3rem;
}
.bio-card__tagline { font-size: 0.9rem; font-style: italic; color: var(--mid); margin-top: 0.4rem; }
.bio-card__bio { font-size: 0.9rem; color: var(--mid); line-height: 1.65; margin-top: 0.75rem; }
.bio-card__essays { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.bio-card__essays-label {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mid); width: 100%; margin-bottom: 0.1rem;
}
.bio-card__essays-label--muted { color: var(--border); }
.bio-essay-chip {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500;
  color: var(--navy); background: var(--light); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.3rem 0.7rem; cursor: pointer; text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.bio-essay-chip:hover { background: var(--cream); border-color: var(--navy); }

@media (max-width: 480px) { .bio-card { flex-direction: column; } }

/* Disclosure band */
.disclosure-band {
  background: rgba(26,111,168,0.06);
  border-top: 1px solid rgba(26,111,168,0.15);
  border-bottom: 1px solid rgba(26,111,168,0.15);
  padding: 0.85rem 0;
}
.disclosure-band__inner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.disclosure-band__icon {
  font-size: 1.1rem;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1.5;
}
.disclosure-band__text {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
}

/* Charter */
.charter { display: flex; flex-direction: column; gap: 2rem; }
.charter__block h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.charter__block p, .charter__block li {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}
.charter__list {
  list-style: decimal;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Essay modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.modal__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}
.modal__panel--essay {
  padding: 2.5rem 2rem;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--mid);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.modal__close:hover { background: var(--light); color: var(--navy); }
.modal__essay-header {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}
.modal__voice-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.modal__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.modal__subtitle {
  font-size: 0.9rem;
  color: var(--mid);
  font-style: italic;
  margin-bottom: 0.4rem;
}
.modal__meta {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--mid);
}
.modal__essay-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--navy);
}
.modal__essay-body p { margin-bottom: 1.25rem; }
.modal__essay-body em { font-style: italic; }
.modal__essay-body .signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.8;
}
.modal__essay-sources {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--mid);
}
.modal__essay-sources h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--mid);
}
.modal__essay-sources ul { list-style: disc; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.modal__essay-sources a { color: var(--blue); }
.modal__essay-disclosure {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--light);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ============================================================
   BILL DRAFTER
   ============================================================ */
.wizard { max-width: 640px; margin: 0 auto; }
.wizard__progress { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.wizard__step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}
.wizard__step-dot--active { background: var(--red); }
.wizard__step-dot--done { background: var(--green); }
.wizard__panel { display: none; }
.wizard__panel--active { display: block; }
.wizard__panel h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.5rem; }
.wizard__panel p { color: var(--mid); margin-bottom: 1.5rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.wizard__nav { display: flex; gap: 1rem; margin-top: 2rem; }
.bill-preview {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--navy);
  white-space: pre-wrap;
  margin-top: 1.5rem;
}

/* ============================================================
   BOYCOTT (kept in file, page is unlisted)
   ============================================================ */
.boycott-header { background: var(--navy); color: var(--white); padding: 2.5rem 0 2rem; }
.boycott-header h1 { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; }
.boycott-governance { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2rem; }
.boycott-governance h3 { font-weight: 600; margin-bottom: 0.75rem; }
.boycott-governance ul { list-style: disc; padding-left: 1.25rem; font-size: 0.88rem; color: var(--mid); display: flex; flex-direction: column; gap: 0.4rem; }
.fulcrum-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.fulcrum-card h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0.5rem; }
.fulcrum-card p { font-size: 0.88rem; color: var(--mid); margin-bottom: 1rem; }

/* ============================================================
   HOME PAGE CARDS
   ============================================================ */
.home-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.module-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  color: var(--white);
  display: block;
}
.module-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); text-decoration: none; color: var(--white); }
.module-card--soon { opacity: 0.45; cursor: default; pointer-events: none; }
.module-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.module-card__icon { font-size: 1.35rem; flex-shrink: 0; line-height: 1; }
.module-card__title { font-weight: 600; font-size: 0.97rem; line-height: 1.25; }
.module-card__desc { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.module-card__badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

/* Light-context module cards — used on Take Action (white sections).
   The base .module-card is built for the dark home hero; these overrides
   make the same markup legible on a light background. Scoped to .section
   so the home hero cards are untouched. */
.section .module-card {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.section .module-card:hover {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.section .module-card__title { color: var(--navy); }
.section .module-card__desc { color: var(--mid); }
.section .module-card__badge {
  background: var(--light);
  color: var(--mid);
}

/* ============================================================
   MODAL (generic — also used for issue detail)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

/* ============================================================
   TOAST
   ============================================================ */
#toast-root {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 300px;
}
.toast--visible { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
  margin-top: auto;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 0.2rem; }
.site-footer__name { color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 1rem; }
.site-footer__name-accent { color: var(--red); }
.site-footer__name .site-logo__tm { color: var(--red) !important; }
.site-footer__tagline { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--red); }
.site-footer__nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__nav a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.15s; }
.site-footer__nav a:hover { color: var(--white); text-decoration: none; }
.site-footer__legal { font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,0.35); max-width: 640px; }
.site-footer__copyright { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.site-footer__social { display: flex; gap: 0.9rem; align-items: center; }
.site-footer__social-link { color: rgba(255,255,255,0.55); display: inline-flex; transition: color 0.15s; }
.site-footer__social-link:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .hero { padding: 1.5rem 0 1.25rem; }
  .section { padding: 1.5rem 0; }
  .section__title { font-size: 1.5rem; }
  .modal__panel--essay { padding: 1.5rem 1.25rem; }
  .action-panel__actions { flex-direction: column; }
}
/* ============================================================
   BILL DRAFTER v5.0 — CHIP PICKER + OUTLINE BUILDER
   ============================================================ */

/* Step label track */
.wizard__step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  margin-top: -1.5rem;
}
.wizard__step-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
}
.wizard__step-label--active {
  color: var(--red);
}

/* ── Issue tab bar ── */
.chip-issue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.chip-issue-tab {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--mid);
  transition: all 0.15s;
}
.chip-issue-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.chip-issue-tab--active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* ── Component chip grid ── */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 48px;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.chip-hint {
  font-size: 0.85rem;
  color: var(--mid);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ── Chips ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip:active { transform: translateY(0); }

.chip__stance {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  min-width: 1rem;
  text-align: center;
}
.chip__label { flex: 1; }
.chip__add-mark  { opacity: 0.5; font-size: 0.85rem; }
.chip__added-mark { font-size: 0.85rem; }

/* Stance colors */
.chip--left       { background: rgba(43,108,176,0.1);  border-color: rgba(43,108,176,0.3);  color: #2B6CB0; }
.chip--left.chip--added { background: rgba(43,108,176,0.2); border-color: #2B6CB0; }
.chip--center     { background: rgba(26,122,80,0.1);   border-color: rgba(26,122,80,0.3);   color: var(--green); }
.chip--center.chip--added { background: rgba(26,122,80,0.2); border-color: var(--green); }
.chip--right      { background: rgba(192,86,33,0.1);   border-color: rgba(192,86,33,0.3);   color: #C05621; }
.chip--right.chip--added  { background: rgba(192,86,33,0.2); border-color: #C05621; }
.chip--compromise { background: rgba(26,111,168,0.1);  border-color: rgba(26,111,168,0.3);  color: var(--blue); }
.chip--compromise.chip--added { background: rgba(26,111,168,0.2); border-color: var(--blue); }
.chip--custom     { background: rgba(13,27,42,0.06);   border-color: var(--border);         color: var(--navy); }
.chip--custom.chip--added { background: rgba(13,27,42,0.12); border-color: var(--navy); }

/* Custom POV row */
.chip-custom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.chip-custom-hint {
  font-size: 0.78rem;
  color: var(--mid);
  font-style: italic;
}

/* Outline counter */
.outline-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.outline-counter__count { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.outline-counter__empty { font-size: 0.85rem; color: var(--mid); font-style: italic; }

/* ── Outline zone (drop target) ── */
.outline-zone {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 80px;
  margin-bottom: 1rem;
}
.outline-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--mid);
  font-size: 0.88rem;
  font-style: italic;
  background: var(--cream);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
}

/* ── Outline items ── */
.outline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.75rem 0.75rem 0.5rem;
  cursor: grab;
  transition: box-shadow 0.15s, border-color 0.15s, opacity 0.15s;
}
.outline-item:active { cursor: grabbing; }
.outline-item--dragging { opacity: 0.4; }
.outline-item--over {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(26,111,168,0.2);
}

.outline-item__drag-handle {
  font-size: 1.1rem;
  color: var(--border);
  cursor: grab;
  padding: 0.1rem 0.2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  user-select: none;
}
.outline-item:active .outline-item__drag-handle { cursor: grabbing; }

.outline-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.outline-item__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.outline-item__issue {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}
.outline-item__sep { color: var(--border); font-size: 0.78rem; }
.outline-item__component {
  font-size: 0.78rem;
  color: var(--mid);
}

/* Inline chip badge on outline items */
.outline-chip {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  flex-shrink: 0;
}
.outline-chip--left       { background: rgba(43,108,176,0.12); color: #2B6CB0; }
.outline-chip--center     { background: rgba(26,122,80,0.12);  color: var(--green); }
.outline-chip--right      { background: rgba(192,86,33,0.12);  color: #C05621; }
.outline-chip--compromise { background: rgba(26,111,168,0.12); color: var(--blue); }
.outline-chip--custom     { background: var(--light);           color: var(--navy); }

/* Expand text details */
.outline-item__expand {
  font-size: 0.78rem;
}
.outline-item__expand summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 0.78rem;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.outline-item__expand summary::before { content: '▸ '; font-size: 0.7rem; }
.outline-item__expand[open] summary::before { content: '▾ '; }

.outline-item__text {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.55;
  margin-top: 0.35rem;
}
.outline-item__text--editable {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--navy);
  resize: vertical;
  background: var(--cream);
  transition: border-color 0.15s;
}
.outline-item__text--editable:focus {
  outline: none;
  border-color: var(--blue);
}

.outline-item__remove {
  background: none;
  border: none;
  color: var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.15rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  margin-top: 0.1rem;
  line-height: 1;
}
.outline-item__remove:hover { color: var(--red); background: rgba(224,58,30,0.08); }

/* Outline controls (clear button) */
.outline-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.outline-clear-confirm {
  font-size: 0.82rem;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Outline reminder on step 3 */
.outline-remind {
  font-size: 0.82rem;
  color: var(--blue);
  background: rgba(26,111,168,0.06);
  border-left: 3px solid var(--blue);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1rem !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .chip-issue-tabs { gap: 0.3rem; }
  .chip-issue-tab  { font-size: 0.75rem; padding: 0.3rem 0.65rem; }
  .chip            { font-size: 0.75rem; }
  .outline-item    { padding: 0.6rem 0.6rem 0.6rem 0.4rem; }
}

/* ============================================================
   THE PEOPLE'S DRAFT (Module 7)
   ============================================================ */

/* ── Bill wrapper ── */
.pd-bill {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Bill header ── */
.pd-bill-header {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}
.pd-bill-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pd-bill-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.pd-status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.pd-status-badge--open {
  background: rgba(26,122,80,0.25);
  color: #68D391;
  border: 1px solid rgba(26,122,80,0.4);
}
.pd-status-badge--closed {
  background: rgba(224,58,30,0.2);
  color: #FC8181;
  border: 1px solid rgba(224,58,30,0.35);
}
.pd-bill-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.pd-bill-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 1rem;
}
.pd-bill-summary {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

/* ── Progress bar ── */
.pd-progress {
  margin-bottom: 1.25rem;
}
.pd-progress__bar {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.pd-progress__fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.pd-progress__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}

/* ── Disclosure band ── */
.pd-disclosure {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}
.pd-disclosure__icon {
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.5;
}
.pd-disclosure__text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ── Sections ── */
.pd-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.pd-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pd-section__header {
  background: var(--light);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pd-section__number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 0.3rem;
}
.pd-section__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.pd-section__frame {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ── Position cards grid ── */
.pd-position-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 700px) {
  .pd-position-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Individual position card ── */
.pd-position-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
  background: var(--white);
}
.pd-position-card:last-child { border-right: none; }
@media (max-width: 700px) {
  .pd-position-card { border-right: none; border-bottom: 1px solid var(--border); }
  .pd-position-card:last-child { border-bottom: none; }
}

/* Selected states */
.pd-position-card--selected.pd-position-card--left   { background: rgba(43,108,176,0.05);  border-left: 3px solid #2B6CB0; }
.pd-position-card--selected.pd-position-card--center { background: rgba(26,122,80,0.05);   border-left: 3px solid var(--green); }
.pd-position-card--selected.pd-position-card--right  { background: rgba(192,86,33,0.05);   border-left: 3px solid #C05621; }

.pd-position-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Stance badges ── */
.pd-stance-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  flex-shrink: 0;
}
.pd-stance-badge--left   { background: rgba(43,108,176,0.12);  color: #2B6CB0; }
.pd-stance-badge--center { background: rgba(26,122,80,0.12);   color: var(--green); }
.pd-stance-badge--right  { background: rgba(192,86,33,0.12);   color: #C05621; }

.pd-position-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.3;
}
.pd-position-summary {
  font-size: 0.83rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
}

/* ── Support button ── */
.pd-support-btn {
  margin-top: auto;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--mid);
  transition: all 0.15s;
  text-align: center;
}
.pd-support-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--light);
}
.pd-support-btn--selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.pd-support-btn--selected:hover {
  background: var(--navy);
  opacity: 0.85;
}
.pd-position-closed {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--mid);
  min-height: 1.5rem;
}

/* ── Consensus Solutions ── */
.pd-consensus {
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: rgba(26,122,80,0.03);
}
.pd-consensus__header {
  background: rgba(26,122,80,0.08);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(26,122,80,0.25);
}
.pd-consensus__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}
.pd-consensus__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.pd-consensus__intro {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}
.pd-consensus__cards {
  display: flex;
  flex-direction: column;
}
.pd-consensus-card {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(26,122,80,0.18);
  background: var(--white);
  transition: background 0.15s;
}
.pd-consensus-card:last-child { border-bottom: none; }
.pd-consensus-card--endorsed { background: rgba(26,122,80,0.06); }
.pd-consensus-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.pd-consensus-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  flex: 1;
}
.pd-consensus-card__support {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 120px;
}
.pd-consensus-bar {
  flex: 1;
  height: 8px;
  background: var(--light);
  border-radius: 20px;
  overflow: hidden;
  min-width: 80px;
}
.pd-consensus-bar__fill {
  height: 100%;
  background: var(--green);
  border-radius: 20px;
}
.pd-consensus-bar__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}
.pd-consensus-card__supportnote {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--green);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.pd-consensus-card__summary {
  font-size: 0.83rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}
.pd-endorse-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--green);
  background: var(--white);
  color: var(--green);
  transition: background 0.15s, color 0.15s;
}
.pd-endorse-btn:hover { background: rgba(26,122,80,0.08); }
.pd-endorse-btn--endorsed {
  background: var(--green);
  color: var(--white);
}
.pd-endorse-btn--endorsed:hover { background: #166243; }
.pd-consensus-card__cite {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.pd-consensus-card__cite-src {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mid);
}
.pd-consensus-card__cite-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  text-decoration: none;
}
.pd-consensus-card__cite-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .pd-consensus-card__top { flex-direction: column; gap: 0.5rem; }
  .pd-consensus-card__support { min-width: 0; width: 100%; }
}

/* ── Path to Passage ── */
.pd-path-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.pd-path-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--light);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s;
  text-align: left;
}
.pd-path-toggle:hover { background: var(--border); }
.pd-path-toggle__icon {
  font-size: 0.85rem;
  color: var(--mid);
  flex-shrink: 0;
}
.pd-path-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.pd-path-disclaimer {
  background: rgba(26,111,168,0.06);
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pd-path-section__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.pd-path-section__summary {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.pd-polling-cites {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pd-polling-cite {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pd-polling-cite__source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}
.pd-polling-cite__finding {
  color: var(--mid);
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}
.pd-polling-cite__link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.pd-path-presshook {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}
.pd-path-presshook__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.pd-path-presshook a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* section--tight for bill wizard */
.section--tight { padding: 1.25rem 0 1.5rem; }

/* ============================================================
   QUICK ACCESS BAND (bill.html)
   ============================================================ */
.qa-band-section {
  background: var(--navy);
  padding: 0 0 1.5rem;
}
.qa-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .qa-band__inner { grid-template-columns: 1fr; }
}

.qa-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: var(--white);
}
.qa-tile:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}
.qa-tile--pd { border-color: rgba(26,122,80,0.35); }
.qa-tile--pd:hover { background: rgba(26,122,80,0.12); border-color: rgba(26,122,80,0.5); }

.qa-tile__icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.qa-tile__body { flex: 1; min-width: 0; }
.qa-tile__label { font-weight: 600; font-size: 0.9rem; color: var(--white); line-height: 1.3; }
.qa-tile__sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}
.qa-tile__arrow { color: rgba(255,255,255,0.3); font-size: 1rem; flex-shrink: 0; }
.qa-tile__status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
}
.qa-tile__status--open   { background: rgba(26,122,80,0.25); color: #68D391; }
.qa-tile__status--closed { background: rgba(224,58,30,0.2);  color: #FC8181; }

/* ── Sliding panels below the tile band ── */
.qa-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 0.75rem;
  overflow: hidden;
}
.qa-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.qa-panel__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  font-family: var(--font-serif);
}
.qa-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid);
  font-size: 0.9rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.qa-panel__close:hover { color: var(--red); background: rgba(224,58,30,0.07); }

/* ── My Bills panel ── */
.mybills-empty {
  padding: 1.5rem 1.25rem;
}
.mybills-empty p { font-size: 0.9rem; color: var(--mid); margin-bottom: 0.5rem; }
.mybills-empty__hint {
  font-size: 0.8rem !important;
  color: var(--border) !important;
  line-height: 1.6;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

.mybill-card {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mybill-card:last-child { border-bottom: none; }
.mybill-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--mid);
  letter-spacing: 0.04em;
}
.mybill-card__type { background: var(--light); border-radius: 20px; padding: 0.1rem 0.45rem; color: var(--navy); font-weight: 600; }
.mybill-card__date { margin-left: auto; }
.mybill-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.mybill-card__outline-count { font-size: 0.75rem; color: var(--mid); margin-bottom: 0.6rem; }
.mybill-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.mybill-card__delete { border-color: var(--border); color: var(--mid); }
.mybill-card__delete:hover { background: rgba(224,58,30,0.06); color: var(--red); border-color: var(--red); }
.mybill-card__delete-confirm { font-size: 0.82rem; color: var(--mid); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.25rem; }

/* ── Bill detail view ── */
.billdetail { padding: 1.25rem; }
.billdetail__nav { margin-bottom: 1rem; }
.billdetail__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.billdetail__meta { font-size: 0.75rem; color: var(--mid); font-family: var(--font-mono); margin-bottom: 1rem; }
.billdetail__compare-row { margin-bottom: 1rem; }
.billdetail__compare-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s;
}
.billdetail__compare-select:focus { outline: none; border-color: var(--blue); }
.billdetail__preview-label { font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin: 1.25rem 0 0.5rem; }

/* ── Compare panel ── */
.compare-panel { margin-bottom: 1.25rem; }
.compare-panel__header { margin-bottom: 1rem; }
.compare-panel__title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.compare-panel__sub { font-size: 0.82rem; color: var(--mid); margin-bottom: 0.35rem; }
.compare-panel__pd-note { font-size: 0.75rem; font-family: var(--font-mono); color: var(--blue); background: rgba(26,111,168,0.06); border-left: 3px solid var(--blue); padding: 0.4rem 0.75rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.cmp-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.cmp-row__component { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; color: var(--navy); padding: 0.6rem 1rem 0.2rem; }
.cmp-row__issue-tag { font-size: 0.7rem; font-family: var(--font-mono); color: var(--mid); padding: 0 1rem 0.6rem; letter-spacing: 0.04em; }
.cmp-row__cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
@media (max-width: 600px) { .cmp-row__cols { grid-template-columns: 1fr; } }
.cmp-col { padding: 0.85rem 1rem; }
.cmp-col--mine { background: var(--cream); }
.cmp-col--pd   { background: var(--white); border-left: 1px solid var(--border); }
@media (max-width: 600px) { .cmp-col--pd { border-left: none; border-top: 1px solid var(--border); } }
.cmp-col__label { font-size: 0.68rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.4rem; }
.cmp-col__text { font-size: 0.8rem; color: var(--mid); line-height: 1.5; margin-top: 0.4rem; }

.cmp-badge {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.5rem; border-radius: 20px;
  font-size: 0.72rem; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.04em; white-space: nowrap;
}
.cmp--left       { background: rgba(43,108,176,0.12);  color: #2B6CB0; }
.cmp--center     { background: rgba(26,122,80,0.12);   color: var(--green); }
.cmp--right      { background: rgba(192,86,33,0.12);   color: #C05621; }
.cmp--compromise { background: rgba(26,111,168,0.12);  color: var(--blue); }
.cmp--custom     { background: var(--light); color: var(--navy); }

.cmp-pd-sections { display: flex; flex-direction: column; gap: 0.35rem; }
.cmp-pd-section { display: flex; align-items: center; gap: 0.4rem; }
.cmp-pd-label { font-size: 0.78rem; color: var(--navy); }
.cmp-pd-note { font-size: 0.7rem; color: var(--mid); margin-top: 0.5rem; font-style: italic; }
.cmp-pd-nomatch { font-size: 0.8rem; color: var(--mid); font-style: italic; }
.compare-empty { padding: 1rem; font-size: 0.85rem; color: var(--mid); font-style: italic; }
.cmp-no-pd { font-size: 0.82rem; color: var(--mid); text-align: center; padding: 1rem; }

/* ── People's Draft tile summary ── */
.pd-tile-summary { padding: 1.25rem; }
.pd-tile-summary__bill { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.pd-tile-summary__num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.pd-tile-summary__title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.pd-tile-summary__tagline { font-size: 0.82rem; color: var(--mid); font-style: italic; margin-bottom: 0.2rem; }
.pd-tile-summary__opened { font-size: 0.72rem; font-family: var(--font-mono); color: var(--mid); margin-bottom: 1rem; }
.pd-tile-summary__disclosure { font-size: 0.72rem; color: var(--mid); font-style: italic; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

.pd-tile-sections { display: flex; flex-direction: column; gap: 0.5rem; }
.pd-tile-section { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.65rem 0.85rem; }
.pd-tile-section__header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.pd-tile-section__num { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; color: var(--blue); }
.pd-tile-section__title { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.pd-tile-section__positions { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* ============================================================
   NAV — TAKE ACTION DROPDOWN (v4.7)
   ============================================================ */
.site-nav__item--group { position: relative; }
.site-nav__grouplink {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.site-nav__grouplink--soon { color: rgba(255,255,255,0.4); cursor: default; }
.site-nav__grouplink--soon:hover { background: none; color: rgba(255,255,255,0.4); }
.site-nav__caret { font-size: 0.7em; transition: transform 0.15s; }
.site-nav__item--group:hover .site-nav__caret,
.site-nav__item--group:focus-within .site-nav__caret { transform: rotate(180deg); }
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-top: 6px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  display: none;
  z-index: 60;
}
.site-nav__item--group:hover .site-nav__dropdown,
.site-nav__item--group:focus-within .site-nav__dropdown { display: block; }
.site-nav__droplink {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__droplink:hover { background: var(--light); text-decoration: none; }
.site-nav__droplink--active { background: var(--light); font-weight: 600; }
.site-nav__dropdown .site-nav__soon { font-size: 0.9rem; padding: 0.55rem 0.7rem; display: block; }

/* mobile: Take Action as an indented sub-list (always expanded) */
.site-nav__mobile-grouplabel {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0.5rem 0 0.15rem;
}
.site-nav__mobile-sub { list-style: none; padding-left: 0.75rem; border-left: 2px solid rgba(255,255,255,0.12); }

/* ============================================================
   BALLOT MEASURES — RIR module (v1.0)
   ============================================================ */
.bm-lookup { margin-bottom: 1rem; }
.bm-lookup__label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.bm-lookup__select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy);
}
.bm-result { animation: fadeIn 0.25s ease; }
.bm-result__head { border-bottom: 2px solid var(--light); padding-bottom: 0.6rem; margin-bottom: 1rem; }
.bm-result__title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin: 0; }
.bm-result__approval { font-size: 0.9rem; color: var(--mid); margin: 0.35rem 0 0; }
.bm-mechs { display: flex; flex-direction: column; gap: 0.6rem; }
.bm-mech {
  display: flex; gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}
.bm-mech--yes { border-left: 4px solid var(--green); }
.bm-mech--no  { border-left: 4px solid var(--border); opacity: 0.82; }
.bm-mech__status {
  font-weight: 700; font-size: 1.1rem; line-height: 1.6;
  width: 1.4rem; text-align: center; flex: none;
}
.bm-mech--yes .bm-mech__status { color: var(--green); }
.bm-mech--no  .bm-mech__status { color: var(--border); }
.bm-mech__title { font-weight: 600; color: var(--navy); }
.bm-mech__tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.1rem 0.45rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle;
}
.bm-mech--yes .bm-mech__tag { background: rgba(26,122,80,0.12); color: var(--green); }
.bm-mech--no  .bm-mech__tag { background: var(--light); color: var(--mid); }
.bm-mech__desc { font-size: 0.9rem; color: var(--mid); margin-top: 0.25rem; }
.bm-mech__btn { margin-top: 0.6rem; font-size: 0.85rem; padding: 0.4rem 0.8rem; }
.bm-result__notes { margin-top: 1.2rem; }
.bm-result__notes h3 { font-size: 1rem; color: var(--navy); margin: 0 0 0.4rem; }
.bm-result__notes ul { margin: 0; padding-left: 1.1rem; }
.bm-result__notes li { font-size: 0.9rem; color: var(--mid); margin-bottom: 0.3rem; }
.bm-verify {
  margin-top: 1.2rem;
  font-size: 0.85rem; line-height: 1.5;
  color: var(--navy);
  background: #FBF6E9;
  border: 1px solid #E8DFC6;
  border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem;
}
.bm-refs { margin-top: 0.8rem; font-size: 0.8rem; color: var(--mid); }
.bm-refs a { color: var(--blue); }
.bm-note { font-size: 0.9rem; color: var(--mid); margin-bottom: 1rem; }
.bm-req { color: var(--red); font-weight: 600; font-size: 0.85em; }
.bm-federal {
  background: var(--navy); color: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg); padding: 1.1rem 1.25rem;
  font-size: 0.92rem; line-height: 1.55;
}
.bm-federal strong { color: var(--white); display: block; margin-bottom: 0.25rem; }
.bm-federal a { color: #8FC7E8; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Take Action dropdown dividers (v4.7.1) */
.site-nav__dropdiv { height: 1px; background: var(--border); margin: 0.35rem 0.3rem; }
.site-nav__mobile-div { height: 1px; background: rgba(255,255,255,0.12); margin: 0.45rem 0; }

/* Mechanism intro banner (Take Action deep-link) */
.bm-mech-intro {
  background: var(--light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
}
.bm-mech-intro__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.35rem;
}
.bm-mech-intro p { margin: 0; font-size: 0.92rem; color: var(--navy); line-height: 1.5; }
.bm-mech-intro__other { margin-top: 0.55rem !important; font-size: 0.82rem !important; color: var(--mid) !important; }
.bm-mech-intro__other a { color: var(--blue); }

/* Spotlight the mechanism a deep-link points to */
.bm-mech--focus {
  box-shadow: 0 0 0 2px var(--blue);
  background: #F2F8FC;
}
.bm-mech--focus.bm-mech--no { opacity: 1; }

/* Four-dropdown nav additions (v4.8) */
.site-nav__dropbadge {
  display: inline-block;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  background: var(--red); color: #fff;
  padding: 0.08rem 0.4rem; border-radius: 999px;
  vertical-align: middle; margin-left: 0.15rem;
}
.site-nav__mobile-grouplabel--link {
  font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: rgba(255,255,255,0.92); padding: 0.4rem 0; margin: 0.6rem 0 0.1rem; display: block;
}
.site-nav__mobile-grouplabel--soon {
  font-size: 1rem; text-transform: none; letter-spacing: 0; font-style: italic;
  color: rgba(255,255,255,0.4); margin: 0.6rem 0 0.1rem; display: block;
}

/* Take Action hub — "soon" card */
.module-card--soon { opacity: 0.6; cursor: default; }
.module-card--soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }

/* ============================================================
   TIMELINES MODULE
   ============================================================ */

/* ── Intro section ── */
.tl-intro-section { background: var(--cream); border-bottom: 1px solid var(--border); }
.tl-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 1rem;
}
.tl-sources { font-family: var(--font-mono); font-size: 0.72rem; color: var(--mid); }
.tl-sources__label { color: var(--navy); font-weight: 500; }
.tl-sources__link { color: var(--mid); text-decoration: underline; text-underline-offset: 2px; }
.tl-sources__link:hover { color: var(--red); }

/* ── Track (outer section) ── */
.tl-section { padding-top: 2.5rem; padding-bottom: 4rem; }
.tl-track {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

/* Continuous vertical rail line */
.tl-track::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

/* ── Individual event ── */
.tl-event {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 1.25rem;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: tlFadeUp 0.4s ease forwards;
  animation-delay: calc(var(--i) * 55ms);
}
.tl-event:last-child { padding-bottom: 0; }

/* ── Rail (dot + line connector) ── */
.tl-event__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.tl-event__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--white);
  outline: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 0.35rem;
  transition: background 0.2s, outline-color 0.2s;
  position: relative;
  left: -2.45rem;   /* align to the track rail */
}
.tl-event__line {
  display: none; /* rail handled by tl-track::before */
}

/* Milestone dot — bigger, red */
.tl-event--milestone .tl-event__dot {
  width: 16px;
  height: 16px;
  background: var(--red);
  outline-color: rgba(224, 58, 30, 0.25);
  margin-top: 0.25rem;
  left: -2.47rem;
}

/* ── Event body ── */
.tl-event__body { padding-top: 0; }

.tl-event__date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.25rem;
}
.tl-event--milestone .tl-event__date { color: var(--red); }

.tl-event__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.tl-event--milestone .tl-event__title { font-size: 1.3rem; }

.tl-event__text {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink);
}

/* Span events (multi-day) — slightly indented, softer */
.tl-event--span .tl-event__date::after {
  content: ' (multi-day)';
  font-size: 0.65rem;
  opacity: 0.6;
}

/* ── Animation ── */
@keyframes tlFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .tl-track { padding-left: 1.75rem; }
  .tl-event { grid-template-columns: 1rem 1fr; gap: 0 1rem; }
  .tl-event__dot { left: -1.7rem; }
  .tl-event--milestone .tl-event__dot { left: -1.72rem; }
  .tl-event__title { font-size: 1.05rem; }
  .tl-event--milestone .tl-event__title { font-size: 1.15rem; }
}

/* ============================================================
   "WHICH REFLECTS YOUR VIEW?" — position selector (v4.9)
   On issue-detail component cards. Picks persist via positions-store.js
   and flow into Contact Your Representatives.
   ============================================================ */
.myview {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}
.myview__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}
.myview__btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.myview-btn {
  flex: 1;
  min-width: 84px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--mid);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.myview-btn:hover { color: var(--navy); border-color: var(--mid); }
.myview-btn--left.myview-btn--on   { background: #2B6CB0; border-color: #2B6CB0; color: #fff; }
.myview-btn--center.myview-btn--on { background: var(--green); border-color: var(--green); color: #fff; }
.myview-btn--right.myview-btn--on  { background: #C05621; border-color: #C05621; color: #fff; }
.myview__state {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 0.5rem;
  min-height: 1.1em;
}
.action-panel__hint {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.action-panel__hint a { color: #8FC7E8; font-weight: 600; }

/* Components intro — explains the "mark your view" flow (v4.9) */
.components-intro {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.components-intro p { margin: 0; font-size: 0.9rem; color: var(--navy); line-height: 1.6; }
.components-intro a { color: var(--blue); font-weight: 600; }

/* ============================================================
   MY POSITIONS PANEL (v5.0) — reusable personal-record panel
   Mounts on issue-detail pages + issues landing. Email-to-self.
   ============================================================ */
.mp-panel {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  max-width: var(--max-narrow);
  margin: 0 auto;
}
.mp-panel--empty { text-align: left; }
.mp-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.mp-panel__title {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); font-weight: 600;
}
.mp-panel__count {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.3rem;
  vertical-align: middle;
}
.mp-clear {
  background: none; border: none; cursor: pointer;
  font-size: 0.78rem; color: var(--red); font-weight: 600; padding: 0;
}
.mp-clear:hover { text-decoration: underline; }
.mp-panel__sub { font-size: 0.84rem; color: var(--mid); line-height: 1.5; margin: 0.5rem 0 1rem; }
.mp-panel__empty { font-size: 0.88rem; color: var(--mid); line-height: 1.55; margin: 0.5rem 0 0; }
.mp-group { margin-bottom: 1rem; }
.mp-group__title {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.4rem;
}
.mp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.mp-item__label { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; font-size: 0.9rem; color: var(--navy); }
.mp-check { width: 1rem; height: 1rem; flex: none; accent-color: var(--navy); }
.mp-item__chip {
  flex: none; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff; padding: 0.12rem 0.45rem; border-radius: 999px;
}
.mp-item__chip--left   { background: #2B6CB0; }
.mp-item__chip--center { background: var(--green); }
.mp-item__chip--right  { background: #C05621; }
.mp-item__text { line-height: 1.4; }
.mp-actions {
  margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.mp-email { font-size: 0.9rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.mp-email:hover { text-decoration: underline; }
.mp-actions__note { font-size: 0.76rem; color: var(--mid); line-height: 1.45; }

/* ── Civic Profile nudge (er-profile-nudge, inline in email-reps) ─────────── */
.er-profile-nudge { color: rgba(255,255,255,0.55); font-family: 'DM Sans', sans-serif; }
.er-profile-nudge a { color: rgba(255,255,255,0.82); text-underline-offset: 2px; }
.er-profile-nudge a:hover { color: var(--white); }
.er-profile-nudge--setup { font-style: italic; }

/* ════════════════════════════════════════════════════════════
   56 Days · 56 Delegates (delegates.html)
   ════════════════════════════════════════════════════════════ */
.dg-disclaimer {
  background: rgba(26,111,168,0.06);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.dg-disclaimer strong { color: var(--navy); }
.dg-progress {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--mid);
  margin: 0;
}
.dg-empty {
  font-style: italic;
  color: var(--mid);
  text-align: center;
  padding: 2rem 0;
}

/* Colony grouping */
.dg-colony { margin-bottom: 2.5rem; }
.dg-colony__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.dg-colony__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mid);
  flex-shrink: 0;
}
.dg-colony__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) {
  .dg-colony__cards { grid-template-columns: 1fr; }
}

/* Delegate card */
.dg-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
}
.dg-card--forgotten { border-left: 3px solid var(--green); }
.dg-card--famous { border-left: 3px solid var(--blue); }

.dg-card__avatar { flex-shrink: 0; }
.dg-card__img,
.dg-card__monogram {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.dg-card__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.dg-card__body { flex: 1; min-width: 0; }
.dg-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.dg-card__no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}
.dg-tier {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.45rem;
  border-radius: 20px;
}
.dg-tier--forgotten { background: rgba(26,122,80,0.12); color: var(--green); }
.dg-tier--famous { background: rgba(26,111,168,0.12); color: var(--blue); }

.dg-card__name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.15rem 0;
  line-height: 1.25;
}
.dg-card__meta {
  font-size: 0.8rem;
  color: var(--mid);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.dg-card__brief {
  font-size: 0.86rem;
  color: var(--navy);
  line-height: 1.65;
  margin: 0 0 0.5rem 0;
}
.dg-card__more { margin-top: 0.5rem; }
.dg-card__more summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.03em;
}
.dg-card__more summary:hover { text-decoration: underline; }
.dg-card__more p {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.65;
  margin: 0.6rem 0 0.5rem 0;
}
.dg-card__sources {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mid);
  margin-top: 0.5rem;
}
.dg-card__sources a { color: var(--blue); text-decoration: none; }
.dg-card__sources a:hover { text-decoration: underline; }
