/* === Variables === */
:root {
  --ink: #1a1a1a;        /* 16.4:1 on --paper ✓ AAA */
  --ink-2: #2e2e2e;      /* 13.0:1 on --paper ✓ AAA */
  --muted: #4a4a4a;      /* 8.3:1 on --paper ✓ AAA (was #5a5a5a, 6.3:1) */
  --quiet: #505050;      /* 7.5:1 on --paper ✓ AAA (was #888, 3.3:1) */
  --rule: #d4d0ca;
  --rule-2: #e8e4de;
  --paper: #f9f7f3;
  --paper-2: #f2ede6;
  --white: #ffffff;
  --red: #c0392b;        /* decorative only — borders, dots, large display numbers */
  --red-accessible: #9e2010;  /* 7.4:1 on --paper ✓ AAA (was #b03020, 6:1) */
  --accent: #1a3a5c;     /* 10.9:1 on --paper ✓ AAA */

  --display: 'Playfair Display', Georgia, serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'DM Mono', 'Courier New', monospace;

  --max: 860px;
  --header-offset: 120px;

  /* Aliases for migrated pages */
  --fog: var(--ink-2);
  --smoke: var(--muted);
  --charcoal: var(--ink);
  --charcoal-3: var(--rule);
  --font-mono: var(--mono);
  --navy: var(--ink);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red); }
ul { list-style: none; }

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  z-index: 999;
}
.skip-link:focus { top: 0.5rem; }

/* === Recall bar === */
.recall-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.recall-bar-label {
  color: #b0b0b0; /* light on dark bar — 7.9:1 on --ink ✓ AAA */
  white-space: nowrap;
}
.recall-bar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.recall-bar a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.recall-bar a:hover {
  color: #ffcdd2;
  border-color: rgba(255,255,255,0.8);
}
.recall-bar-divider { color: #b0b0b0; }

/* === Site header === */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* === Masthead === */
.masthead-link {
  text-decoration: none;
  display: block;
}
.masthead-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.masthead-name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.masthead-link:hover .masthead-name { color: var(--red); }

/* === Nav === */
.site-nav ul {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }

/* === Hamburger === */
.nav-hamburger {
  display: none;
  position: fixed;
  right: 1rem;
  z-index: 300;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-hamburger.is-open {
  background: var(--paper-2);
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Mobile menu === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 250;
  padding: calc(var(--header-offset) + 2rem) 2rem 2rem;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0; }
.mobile-menu li a {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu li a:hover { color: var(--red); }
.mobile-menu-divider {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--quiet);
  padding: 1.5rem 0 0.5rem;
}

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

  .recall-bar {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    text-align: center;
  }
  .recall-bar-links {
    flex-direction: column;
    gap: 0.3rem;
  }
  .recall-bar-divider { display: none; }
}

/* === Main content === */
main { min-height: 60vh; }

/* === Page wrapper === */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* === Page header === */
.page-header {
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 3px double var(--rule);
}
.page-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-accessible);
  margin-bottom: 0.75rem;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-dek {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 620px;
}

/* === Body text === */
.body-text h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}
.body-text p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--ink-2);
}
.body-text a { color: var(--accent); }

/* === Timeline === */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline-entry:last-child { border-bottom: none; }
.timeline-entry > h3,
.timeline-entry > p,
.timeline-entry > .timeline-entry-label,
.timeline-entry > .timeline-entry-source,
.timeline-entry > blockquote,
.timeline-entry > .receipt,
.timeline-entry > ul,
.timeline-entry > div:not(.timeline-entry-date) { grid-column: 2; }
.timeline-entry-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.3rem;
  line-height: 1.5;
}
.timeline-entry-date strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.timeline-entry h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.timeline-entry p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  max-width: 580px;
}
.timeline-entry-source {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-top: 0.5rem;
}
.timeline-entry-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-accessible);
  margin-bottom: 0.35rem;
}
.timeline-entry blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
  margin: 0.75rem 0;
  line-height: 1.65;
}
.timeline-entry blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-top: 0.4rem;
}
.timeline-entry.past { opacity: 0.6; }

/* === Board grid === */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.board-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.board-card:hover {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: inherit;
}
.board-card-district {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.board-card-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.board-card-status {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.board-card-status.implicated {
  background: #fdf0ef;
  color: var(--red-accessible);
  border: 1px solid #f5c6c2;
}
.board-card-status.no-documented {
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--rule);
}
.board-card-votes {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.8;
}

/* === Member page === */
.member-header {
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 3px double var(--rule);
}
.member-district {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.member-name {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.member-role {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}
.member-recall-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-accessible);
  text-decoration: none;
  border-bottom: 1px solid var(--red-accessible);
  padding-bottom: 1px;
}
.member-recall-link:hover { color: var(--red); border-color: var(--red); }

/* === Receipts / evidence blocks === */
.receipt {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.receipt-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.receipt blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.65;
}
.receipt.highlight { border-left-color: var(--red); }
.receipt.highlight .receipt-label { color: var(--red-accessible); }

/* === Source link === */
.source-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.source-link:hover { color: var(--accent); border-color: var(--accent); }

/* === Back link === */
.back-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--ink); }

/* === Section rule === */
.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}
.section-rule.double {
  border-top: 3px double var(--rule);
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: #b0b0b0; /* 7.9:1 on --ink ✓ AAA */
  padding: 3rem 2rem;
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-masthead {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}
.site-footer p {
  font-family: var(--serif);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  max-width: 600px;
}
.site-footer a { color: #aaa; }
.site-footer a:hover { color: var(--white); }
.footer-sources {
  font-family: var(--mono);
  font-size: 0.7rem !important;
  letter-spacing: 0.05em;
  color: #b0b0b0 !important; /* 7.9:1 on --ink ✓ AAA */
  margin-top: 1rem !important;
}
.footer-disclaimer {
  font-size: 0.8rem !important;
  color: #b0b0b0 !important; /* 7.9:1 on --ink ✓ AAA */
  margin-top: 0.25rem !important;
}

/* === Utilities === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* === Missing classes from migrated pages === */

/* Timeline container */
.timeline, .full-timeline { display: flex; flex-direction: column; gap: 0; }

/* Buttons */
.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--red); color: var(--white); }
.btn-secondary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--rule);
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); }

/* Demand page */
.demand-list { display: flex; flex-direction: column; gap: 0; }
.demand-list li {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  padding-left: 1.5rem;
  position: relative;
}
.demand-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* TL;DR block */
.tldr-block {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  padding: 1.5rem;
  margin: 2rem 0;
}
.tldr-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-accessible);
  margin-bottom: 0.75rem;
}
.tldr-block ul { list-style: none; padding: 0; }
.tldr-block li {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.65;
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  border-bottom: none;
}
.tldr-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

/* TSS page */
.tss-section { margin-bottom: 3rem; }
.tss-section h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.tss-section p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  max-width: 620px;
}
.tss-list { list-style: none; padding: 0; }
.tss-list li {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--rule-2);
}
.tss-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 5px;
  height: 5px;
  background: var(--muted);
}

/* Recall-btn aliases */
.recall-btn-primary { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--white); text-decoration: none; padding: 0.7rem 1.5rem; transition: background 0.15s; }
.recall-btn-primary:hover { background: var(--red); color: var(--white); }
.recall-btn-secondary { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; background: transparent; color: var(--ink); text-decoration: none; padding: 0.7rem 1.5rem; border: 1px solid var(--rule); transition: border-color 0.15s; }
.recall-btn-secondary:hover { border-color: var(--ink); }


@media (max-width: 600px) {
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .timeline-entry-date {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
  }
  .timeline-entry-date strong { display: inline; }
  .page-wrap { padding: 2rem 1.25rem 4rem; }
  .board-grid { grid-template-columns: 1fr; }
}

/* === Contact board (board/index.astro) === */
.contact-grid-light {
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--rule-2);
  text-decoration: none;
  transition: background 0.12s;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: var(--paper-2); }
.contact-row.implicated-row { border-left: 3px solid var(--red); }
.contact-row-district {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-row-email {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}
@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
  }
  .contact-row-email { color: var(--muted); }
}
