/* ============================================
   didyouvoteforthis.ca — shared stylesheet
   ============================================ */

:root {
  --bg: #0b0a08;
  --bg-deep: #050403;
  --surface: #131210;
  --surface-2: #1a1916;
  --border: rgba(255,240,200,0.08);
  --border-2: rgba(255,240,200,0.18);
  --text: #ebe5d8;
  --muted: #7a7468;
  --dim: #4a4640;
  --amber: #e8a04a;
  --amber-hot: #f5b964;
  --red: #c2503e;
  --red-dim: rgba(194,80,62,0.12);
  --green: #6b8a5a;
  --paper: #f0e9d6;
  --redact: #1f1a14;
  --slate: #8a96a3;
  --slate-dim: rgba(138,150,163,0.12);
  --neutral: #a89e8a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter Tight', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232,160,74,0.05), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(194,80,62,0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============== MASTHEAD + RUNNING TOTAL ============== */

.masthead {
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(11,10,8,0.85);
  backdrop-filter: blur(10px);
  flex-wrap: wrap; gap: 1rem;
}

.masthead-pub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.masthead-pub strong { color: var(--amber); font-weight: 500; }

.masthead-nav {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.masthead-nav a {
  color: var(--muted); text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.masthead-nav a:hover { color: var(--text); border-color: var(--border); }
.masthead-nav a.active {
  color: var(--amber); border-color: rgba(232,160,74,0.3);
  background: rgba(232,160,74,0.06);
}

/* page-color overrides for active states */
.page-conduct .masthead-nav a.active { color: var(--red); border-color: rgba(194,80,62,0.3); background: var(--red-dim); }
.page-contradictions .masthead-nav a.active { color: var(--green); border-color: rgba(107,138,90,0.4); background: rgba(107,138,90,0.08); }
.page-transparency .masthead-nav a.active { color: var(--amber-hot); border-color: rgba(245,185,100,0.4); background: rgba(245,185,100,0.06); }
.page-manufactured .masthead-nav a.active { color: var(--red); border-color: rgba(194,80,62,0.4); background: var(--red-dim); }

/* Running total banner — appears on every page */
.running-total {
  position: relative; z-index: 2;
  background: linear-gradient(90deg, rgba(232,160,74,0.06), rgba(194,80,62,0.04), rgba(232,160,74,0.06));
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.running-total-label {
  color: var(--muted); text-transform: uppercase;
}
.running-total-figure {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--amber-hot);
  letter-spacing: -0.02em;
}
.running-total-detail { color: var(--text); opacity: 0.85; }
.running-total-link {
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
  transition: all 0.2s;
}
.running-total-link:hover { color: var(--amber); border-color: rgba(232,160,74,0.4); }

main { position: relative; z-index: 1; }

/* ============== HERO ============== */

.hero { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem 3rem; }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--amber);
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 1px;
  background: currentColor;
}
.page-conduct .hero-eyebrow { color: var(--red); }
.page-contradictions .hero-eyebrow { color: var(--green); }
.page-transparency .hero-eyebrow { color: var(--amber-hot); }
.page-manufactured .hero-eyebrow { color: var(--red); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  font-weight: 900; line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 1.5rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero-title em {
  font-style: italic; font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: var(--amber);
}
.page-conduct .hero-title em { color: var(--red); }
.page-contradictions .hero-title em { color: var(--green); }
.page-transparency .hero-title em { color: var(--amber-hot); }
.page-manufactured .hero-title em { color: var(--red); }

.hero-deck {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400; line-height: 1.45;
  color: var(--text); opacity: 0.85;
  max-width: 740px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-byline {
  display: flex; flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.05em;
}
.hero-byline span strong { color: var(--text); font-weight: 500; }

/* ============== PRINCIPLE / OPENER CARDS ============== */

.principle, .opener, .closing { max-width: 1100px; margin: 4rem auto 0; padding: 0 2rem; }

.principle-card, .opener-card, .closing-card {
  background: linear-gradient(135deg, rgba(232,160,74,0.04), transparent 70%);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--amber);
  padding: 2.5rem 2.5rem 2.75rem;
  position: relative;
}

.page-conduct .principle-card,
.page-conduct .opener-card,
.page-conduct .closing-card {
  background: linear-gradient(135deg, rgba(194,80,62,0.05), transparent 70%);
  border-left-color: var(--red);
}
.page-contradictions .principle-card,
.page-contradictions .opener-card,
.page-contradictions .closing-card {
  background: linear-gradient(135deg, rgba(107,138,90,0.05), transparent 70%);
  border-left-color: var(--green);
}
.page-manufactured .principle-card,
.page-manufactured .opener-card,
.page-manufactured .closing-card {
  background: linear-gradient(135deg, rgba(194,80,62,0.05), transparent 70%);
  border-left-color: var(--red);
}

.principle-card::after {
  content: ''; position: absolute;
  top: 1.5rem; right: 2rem;
  width: 28px; height: 28px;
  border: 1px solid var(--amber);
  opacity: 0.3; transform: rotate(45deg);
}

.principle-eyebrow, .opener-eyebrow, .closing-eyebrow {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--amber);
}
.page-conduct .principle-eyebrow, .page-conduct .opener-eyebrow, .page-conduct .closing-eyebrow { color: var(--red); }
.page-contradictions .principle-eyebrow, .page-contradictions .opener-eyebrow, .page-contradictions .closing-eyebrow { color: var(--green); }
.page-transparency .principle-eyebrow, .page-transparency .opener-eyebrow, .page-transparency .closing-eyebrow { color: var(--amber-hot); }
.page-manufactured .principle-eyebrow, .page-manufactured .opener-eyebrow, .page-manufactured .closing-eyebrow { color: var(--red); }

.principle-title, .opener-title, .closing-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--paper);
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 1.25rem; max-width: 800px;
}
.principle-title em, .opener-title em, .closing-title em {
  font-style: italic; color: var(--amber);
}
.page-conduct .principle-title em, .page-conduct .opener-title em, .page-conduct .closing-title em { color: var(--red); }
.page-contradictions .principle-title em, .page-contradictions .opener-title em, .page-contradictions .closing-title em { color: var(--green); }
.page-transparency .principle-title em, .page-transparency .opener-title em, .page-transparency .closing-title em { color: var(--amber-hot); }
.page-manufactured .principle-title em, .page-manufactured .opener-title em, .page-manufactured .closing-title em { color: var(--red); }

.principle-card p, .opener-card p, .closing-card p {
  font-size: 0.97rem; line-height: 1.85;
  color: var(--text); opacity: 0.85;
  margin-bottom: 0.95rem;
  max-width: 740px;
}
.principle-card p:last-child, .opener-card p:last-child, .closing-card p:last-child { margin-bottom: 0; }
.principle-card strong, .opener-card strong, .closing-card strong { color: var(--paper); font-weight: 600; }

.principle-card .pull, .opener-card .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--amber-hot);
  border-left: 2px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin: 1.5rem 0; line-height: 1.5;
  max-width: 720px;
}

/* ============== REDACTED EFFECT (transparency page) ============== */

.redacted {
  background: var(--redact);
  color: var(--redact);
  padding: 0.05em 0.35em;
  border-radius: 1px;
  user-select: none;
  text-shadow: 0 0 1px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(0,0,0,0.5);
  border-top: 1px solid rgba(0,0,0,0.5);
}

.doc-stamp {
  position: absolute; top: 1.5rem; right: 2rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--red); letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  padding: 0.3rem 0.65rem;
  transform: rotate(2deg);
  opacity: 0.7;
}

/* ============== TALLY BOX ============== */

.tally { max-width: 1100px; margin: 3rem auto 0; padding: 0 2rem; }

.tally-frame {
  border: 1px solid var(--border-2);
  background: var(--surface);
  padding: 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tally-cell { text-align: center; }
.tally-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--amber-hot);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.tally-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--muted); letter-spacing: 0.15em;
  text-transform: uppercase; line-height: 1.5;
}

/* ============== LEDGER SUMMARY (receipts page) ============== */

.ledger-summary { max-width: 1100px; margin: 4rem auto 0; padding: 0 2rem; }

.summary-frame {
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, rgba(232,160,74,0.04), transparent 60%), var(--surface);
  padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
}
.summary-frame::before {
  content: 'INVOICE NO. 2019—2026';
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--dim); letter-spacing: 0.2em;
}

.summary-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 1rem;
}

.summary-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem; align-items: end;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.summary-cell-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--muted); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}

.summary-amount-big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900; color: var(--amber-hot);
  line-height: 1; letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144;
}
.summary-amount-big small {
  font-size: 0.4em; color: var(--muted);
  font-weight: 400; margin-left: 0.4em;
  font-style: italic; font-family: var(--font-display);
}

.summary-amount-mid {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; color: var(--text);
  line-height: 1; letter-spacing: -0.02em;
}

.summary-foot {
  margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.7; font-style: italic;
}
.summary-foot strong { color: var(--text); font-weight: 500; font-style: normal; }

/* ============== SECTION HEADER ============== */

.section, .ledger { max-width: 1100px; margin: 4rem auto 0; padding: 0 2rem; }

.section-header, .ledger-header {
  display: flex; align-items: baseline; gap: 1.5rem;
  margin-bottom: 0.5rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--text);
}
.section-header h2, .ledger-header h2 {
  font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 900; color: var(--paper);
  letter-spacing: -0.01em;
}
.section-header .badge, .ledger-header .count {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.15em;
  margin-left: auto; text-transform: uppercase;
}

.section-intro, .ledger-intro {
  font-size: 0.95rem; color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 1.25rem 0 2.5rem;
  font-style: italic;
}

/* ============== LINE ITEMS (receipts page) ============== */

.line-item {
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  position: relative;
  display: grid; grid-template-columns: 80px 1fr;
  gap: 2.5rem;
}
.line-item:last-child { border-bottom: none; }
.line-num {
  font-family: var(--font-display); font-size: 2.5rem;
  font-weight: 900; color: var(--dim);
  line-height: 0.9; font-style: italic;
  position: sticky; top: 80px; align-self: start;
}
.line-content { min-width: 0; }
.line-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--amber);
  background: rgba(232,160,74,0.08);
  border: 1px solid rgba(232,160,74,0.25);
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.line-tag.tag-direct { color: var(--red); background: var(--red-dim); border-color: rgba(194,80,62,0.25); }
.line-tag.tag-opportunity { color: var(--green); background: rgba(107,138,90,0.1); border-color: rgba(107,138,90,0.25); }

.line-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--paper);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.line-period {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.line-period strong { color: var(--amber); font-weight: 500; }

.line-amount {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.25rem 0; margin-bottom: 1.5rem;
  border-top: 1px dashed var(--border-2);
  border-bottom: 1px dashed var(--border-2);
}
.line-amount-figure {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--amber-hot);
  line-height: 1; letter-spacing: -0.03em;
}
.line-amount-unit {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Two-column "framing" grid */
.frame-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.frame { padding: 1.5rem 1.5rem 1.75rem; background: var(--surface); }
.frame + .frame { border-left: 1px solid var(--border); background: rgba(255,240,200,0.015); }
.frame-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.75rem; color: var(--muted);
}
.frame.govt .frame-label { color: var(--red); }
.frame.actual .frame-label { color: var(--amber); }
.frame p { font-size: 0.92rem; line-height: 1.7; color: var(--text); opacity: 0.88; }
.frame p + p { margin-top: 0.75rem; }
.frame blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--amber-hot);
  border-left: 2px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1rem;
  margin: 0.85rem 0 0.5rem; line-height: 1.45;
}
.frame blockquote cite {
  display: block; font-style: normal;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); margin-top: 0.5rem; letter-spacing: 0.05em;
}

.line-context {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text); opacity: 0.82;
  margin-bottom: 1.25rem; max-width: 720px;
}
.line-context p + p { margin-top: 0.85rem; }
.line-context strong { color: var(--paper); font-weight: 600; }

/* ============== SOURCES ============== */

.line-sources, .inv-sources {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.src-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--muted); letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-right: 0.5rem; align-self: center;
}
.src {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  transition: all 0.2s;
}
.src:hover {
  color: var(--amber); border-color: rgba(232,160,74,0.4);
  background: rgba(232,160,74,0.05);
}

/* ============== INVESTIGATION CARDS (conduct page) ============== */

.investigation {
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 2rem; overflow: hidden;
}
.inv-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(194,80,62,0.04), transparent);
}
.inv-status {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.status-tag {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--muted);
}
.status-tag.rcmp { color: var(--red); border-color: rgba(194,80,62,0.3); background: var(--red-dim); }
.status-tag.ag { color: var(--amber); border-color: rgba(232,160,74,0.3); background: rgba(232,160,74,0.06); }
.status-tag.court { color: var(--green); border-color: rgba(107,138,90,0.3); background: rgba(107,138,90,0.06); }
.status-tag.review { color: var(--text); border-color: var(--border-2); }

.inv-headline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700; color: var(--paper);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.inv-meta {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.08em;
}
.inv-meta strong { color: var(--text); font-weight: 500; }

.inv-body { padding: 1.75rem; }
.inv-body p {
  font-size: 0.93rem; line-height: 1.8;
  color: var(--text); opacity: 0.85;
  margin-bottom: 0.85rem; max-width: 760px;
}
.inv-body p:last-child { margin-bottom: 0; }
.inv-body strong { color: var(--paper); font-weight: 600; }
.inv-body h4 {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--amber); letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}
.inv-body ul {
  list-style: none; margin: 0.5rem 0 1rem;
  max-width: 760px;
}
.inv-body ul li {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--text); opacity: 0.85;
  padding-left: 1.5rem; position: relative;
  margin-bottom: 0.5rem;
}
.inv-body ul li::before {
  content: '◊'; position: absolute; left: 0;
  color: var(--red); font-size: 0.7rem; top: 0.3em;
}
.inv-body blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--amber-hot);
  border-left: 2px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin: 1rem 0; line-height: 1.5;
  max-width: 720px;
}
.inv-body blockquote cite {
  display: block; font-style: normal;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); margin-top: 0.5rem; letter-spacing: 0.05em;
}

/* ============== CONTRADICTION / SAID-DID CARDS ============== */

.contradiction, .entry {
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.c-header, .entry-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.entry-header { background: linear-gradient(90deg, rgba(232,160,74,0.04), transparent); }

.c-num, .entry-num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 500;
  color: var(--green); font-style: italic;
  margin-bottom: 0.4rem; letter-spacing: 0.05em;
}
.entry-num { color: var(--amber-hot); }
.page-manufactured .c-num, .page-manufactured .entry-num { color: var(--red); }

.c-headline, .entry-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700; color: var(--paper);
  line-height: 1.2; letter-spacing: -0.02em;
}
.c-headline em, .entry-headline em {
  font-style: italic; color: var(--green);
}
.entry-headline em { color: var(--amber-hot); }
.page-manufactured .c-headline em, .page-manufactured .entry-headline em { color: var(--red); }

.c-grid, .entry-grid {
  display: grid; grid-template-columns: 1fr 1fr;
}
.c-side, .entry-side {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--surface);
}
.c-side.then, .entry-side.said {
  background: rgba(107,138,90,0.03);
  border-right: 1px solid var(--border);
}
.entry-side.said { background: rgba(232,160,74,0.04); }
.c-side.now, .entry-side.did {
  background: rgba(194,80,62,0.04);
}

.c-label, .entry-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.c-side.then .c-label, .entry-side.said .entry-label { color: var(--green); }
.entry-side.said .entry-label { color: var(--amber); }
.c-side.now .c-label, .entry-side.did .entry-label { color: var(--red); }

.c-quote, .entry-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.98rem; color: var(--paper);
  line-height: 1.5; margin-bottom: 0.85rem;
}
.c-quote::before, .entry-quote::before { content: '"'; color: var(--muted); font-size: 1.4em; vertical-align: -0.1em; margin-right: 0.05em; }
.c-quote::after, .entry-quote::after { content: '"'; color: var(--muted); font-size: 1.4em; vertical-align: -0.1em; }

.c-cite, .entry-cite {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.05em;
  margin-bottom: 1rem; display: block;
}

.c-side p, .entry-side p {
  font-size: 0.9rem; line-height: 1.75;
  color: var(--text); opacity: 0.85;
}
.c-side p + p, .entry-side p + p { margin-top: 0.7rem; }
.c-side p strong, .entry-side p strong { color: var(--paper); font-weight: 600; }

.c-footer, .entry-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.5rem;
}

/* ============== FEATURED ENTRY (transparency Guthrie) ============== */

.featured-entry {
  margin-bottom: 3rem;
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--amber-hot);
  background: var(--surface);
}
.featured-entry .entry-header {
  background: linear-gradient(90deg, rgba(232,160,74,0.08), transparent 80%);
  padding: 2rem 2rem 1.5rem;
}
.featured-entry .entry-num {
  color: var(--amber-hot); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.1em;
}
.featured-entry .entry-headline {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
.featured-detail {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}
.featured-detail h4 {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--amber); letter-spacing: 0.2em;
  text-transform: uppercase; margin: 1.25rem 0 0.75rem;
}
.featured-detail h4:first-child { margin-top: 0; }
.featured-detail p {
  font-size: 0.95rem; line-height: 1.85;
  color: var(--text); opacity: 0.88;
  margin-bottom: 0.85rem; max-width: 760px;
}
.featured-detail p strong { color: var(--paper); font-weight: 600; }
.featured-detail blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--amber-hot);
  border-left: 2px solid var(--amber); line-height: 1.5;
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin: 1rem 0; max-width: 720px;
}
.featured-detail blockquote cite {
  display: block; font-style: normal;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); margin-top: 0.6rem; letter-spacing: 0.05em;
}
.featured-detail ul {
  list-style: none; margin: 0.75rem 0 1.25rem;
  max-width: 760px;
}
.featured-detail ul li {
  font-size: 0.92rem; line-height: 1.75;
  color: var(--text); opacity: 0.85;
  padding-left: 1.5rem; position: relative;
  margin-bottom: 0.6rem;
}
.featured-detail ul li::before {
  content: '◇'; position: absolute; left: 0;
  color: var(--amber-hot); font-size: 0.7rem; top: 0.3em;
}

/* ============== SURVEY / PUSH POLL EFFECT (manufactured-consent) ============== */

.survey-mockup {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 1.75rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  position: relative;
}
.survey-mockup::before {
  content: 'ALBERTA NEXT PANEL · OFFICIAL SURVEY';
  display: block; font-size: 0.6rem;
  color: var(--red); letter-spacing: 0.2em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
}
.survey-q {
  color: var(--paper);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.survey-options { display: flex; flex-direction: column; gap: 0.5rem; }
.survey-options label {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); opacity: 0.85;
  font-size: 0.82rem; line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
}
.survey-options label::before {
  content: '○'; color: var(--muted); font-size: 1rem;
}
.survey-options label.missing {
  color: var(--red); border-color: rgba(194,80,62,0.3);
  background: var(--red-dim); opacity: 1;
  font-style: italic;
}
.survey-options label.missing::before { content: '✕'; color: var(--red); }

/* ============== METHODOLOGY / DISCLAIMER ============== */

.methodology { max-width: 1100px; margin: 6rem auto 0; padding: 0 2rem; }
.methodology-inner, .standard-notice, .disclaimer-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 2.5rem 2.5rem 2.75rem;
}
.standard-notice {
  background: rgba(194,80,62,0.05);
  border: 1px solid rgba(194,80,62,0.2);
  border-left: 3px solid var(--red);
  padding: 1.5rem 1.75rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}
.standard-notice .notice-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--red); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.standard-notice p {
  font-size: 0.92rem; line-height: 1.75;
  color: var(--text); opacity: 0.9;
  margin-bottom: 0.75rem;
}
.standard-notice p:last-child { margin-bottom: 0; }
.standard-notice strong { color: var(--paper); font-weight: 600; }

.methodology h3 {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 700; color: var(--paper);
  margin-bottom: 1rem; letter-spacing: -0.01em;
}
.methodology p {
  font-size: 0.93rem; line-height: 1.75;
  color: var(--text); opacity: 0.82;
  margin-bottom: 1rem; max-width: 760px;
}
.methodology p:last-child { margin-bottom: 0; }
.methodology ul { list-style: none; margin: 1rem 0 1.5rem; max-width: 760px; }
.methodology ul li {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--text); opacity: 0.82;
  padding-left: 1.5rem; position: relative; margin-bottom: 0.6rem;
}
.methodology ul li::before {
  content: '§'; position: absolute; left: 0;
  color: var(--amber); font-family: var(--font-display); font-style: italic;
}

.disclaimer { max-width: 1100px; margin: 4rem auto 0; padding: 0 2rem; }
.disclaimer-inner {
  border: 1px dashed var(--border-2);
  background: rgba(255,240,200,0.02);
  padding: 1.5rem 1.75rem;
}
.disclaimer h4 {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--amber); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.disclaimer p { font-size: 0.85rem; line-height: 1.7; color: var(--muted); font-style: italic; }

/* ============== FOOTER ============== */

footer {
  max-width: 1100px; margin: 5rem auto 0;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: end;
}
.colophon {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); line-height: 1.8; letter-spacing: 0.03em;
}
.colophon strong { color: var(--text); font-weight: 500; }
.colophon a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-2); transition: color 0.2s; }
.colophon a:hover { color: var(--amber); }
.colophon-mark {
  font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 900; color: var(--amber);
  font-style: italic; line-height: 1; text-align: right;
}
.page-conduct .colophon-mark { color: var(--red); }
.page-contradictions .colophon-mark { color: var(--green); }
.page-transparency .colophon-mark { color: var(--amber-hot); }
.page-manufactured .colophon-mark { color: var(--red); }
.colophon-mark small {
  display: block; font-style: normal; font-size: 0.5rem;
  font-family: var(--font-mono); color: var(--muted);
  letter-spacing: 0.2em; margin-top: 0.4rem; font-weight: 400;
}

/* ============== ANIMATIONS ============== */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: rise 0.6s ease both 0.05s; }
.hero-title { animation: rise 0.6s ease both 0.15s; }
.hero-deck { animation: rise 0.6s ease both 0.25s; }
.hero-byline { animation: rise 0.6s ease both 0.32s; }
.principle-card, .opener-card, .summary-frame { animation: rise 0.6s ease both 0.42s; }

/* ============== RESPONSIVE ============== */

@media (max-width: 760px) {
  .masthead { padding: 0.75rem 1.25rem; }
  .running-total { padding: 0.75rem 1.25rem; gap: 0.75rem; }
  .running-total-link { display: none; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .ledger-summary, .ledger, .methodology, .disclaimer, .principle, .opener, .closing, .section, .tally { padding: 0 1.25rem; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .tally-frame { grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1.5rem; }
  .line-item { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem 0; }
  .line-num { font-size: 1.4rem; position: static; opacity: 0.6; }
  .frame-grid, .c-grid, .entry-grid { grid-template-columns: 1fr; }
  .frame + .frame { border-left: none; border-top: 1px solid var(--border); }
  .c-side.then, .entry-side.said { border-right: none; border-bottom: 1px solid var(--border); }
  footer { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 1.25rem; }
  .colophon-mark { text-align: left; }
  .principle-card, .opener-card, .closing-card { padding: 1.75rem 1.5rem; }
  .principle-card::after { display: none; }
  .doc-stamp { position: static; transform: none; display: inline-block; margin-bottom: 1rem; }
  .featured-entry .entry-header, .featured-detail { padding: 1.5rem; }
  .inv-header, .inv-body { padding: 1.25rem; }
}

/* ============== PAGE ACCENT: ACCOUNTABILITY (slate) ============== */

.page-accountability .masthead-nav a.active {
  color: var(--slate);
  border-color: rgba(138,150,163,0.4);
  background: rgba(138,150,163,0.08);
}
.page-accountability .hero-eyebrow { color: var(--slate); }
.page-accountability .hero-title em { color: var(--slate); }
.page-accountability .principle-card,
.page-accountability .opener-card,
.page-accountability .closing-card {
  background: linear-gradient(135deg, rgba(138,150,163,0.06), transparent 70%);
  border-left-color: var(--slate);
}
.page-accountability .principle-eyebrow,
.page-accountability .opener-eyebrow,
.page-accountability .closing-eyebrow { color: var(--slate); }
.page-accountability .principle-title em,
.page-accountability .opener-title em,
.page-accountability .closing-title em { color: var(--slate); }
.page-accountability .colophon-mark { color: var(--slate); }
.page-accountability .featured-entry { border-left-color: var(--slate); }
.page-accountability .featured-entry .entry-header {
  background: linear-gradient(90deg, rgba(138,150,163,0.10), transparent 80%);
}
.page-accountability .featured-entry .entry-num { color: var(--slate); }
.page-accountability .featured-detail h4 { color: var(--slate); }

/* ============== PAGE ACCENT: CITATIONS (neutral) ============== */

.page-citations .masthead-nav a.active {
  color: var(--neutral);
  border-color: rgba(168,158,138,0.4);
  background: rgba(168,158,138,0.08);
}
.page-citations .hero-eyebrow { color: var(--neutral); }
.page-citations .hero-title em { color: var(--neutral); }
.page-citations .principle-card,
.page-citations .opener-card,
.page-citations .closing-card {
  background: linear-gradient(135deg, rgba(168,158,138,0.06), transparent 70%);
  border-left-color: var(--neutral);
}
.page-citations .principle-eyebrow,
.page-citations .opener-eyebrow,
.page-citations .closing-eyebrow { color: var(--neutral); }
.page-citations .principle-title em,
.page-citations .opener-title em,
.page-citations .closing-title em { color: var(--neutral); }
.page-citations .colophon-mark { color: var(--neutral); }

/* ============== CITATIONS PAGE LAYOUT ============== */

.cite-toc {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
}
.cite-toc-frame {
  border: 1px solid var(--border-2);
  background: var(--surface);
  padding: 1.75rem 2rem;
}
.cite-toc-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neutral);
  margin-bottom: 1rem;
}
.cite-toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1.5rem;
}
.cite-toc-list a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  display: block;
}
.cite-toc-list a:hover {
  color: var(--neutral);
  border-bottom-color: var(--neutral);
}

.cite-block {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
}
.cite-block-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-2);
}
.cite-block-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.cite-block-header .cite-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neutral);
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(168,158,138,0.3);
}
.cite-block-intro {
  font-size: 0.93rem;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 740px;
}
.cite-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.cite-item {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--neutral);
}
.cite-item-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neutral);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.cite-item-title {
  font-size: 0.95rem;
  color: var(--paper);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.cite-item-title a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--border-2);
}
.cite-item-title a:hover {
  border-bottom-color: var(--neutral);
  color: var(--text);
}
.cite-item-context {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.6;
}

/* ============== HOMEPAGE / PAGE-HOME ============== */

.page-home .masthead-nav a.active {
  color: var(--amber);
  border-color: rgba(232,160,74,0.4);
  background: rgba(232,160,74,0.08);
}
.page-home .hero-eyebrow { color: var(--amber); }
.page-home .hero-title em { color: var(--amber); }

.masthead-pub-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.2s ease;
}
.masthead-pub-link:hover {
  border-bottom-color: var(--amber);
}
.colophon-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--border-2);
}
.colophon-link:hover {
  border-bottom-color: var(--amber);
}

/* ============== PROMISE GRID (homepage) ============== */

.promise-section {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}
.promise-section .section-header {
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.promise-section .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.promise-section .section-intro {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 740px;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.promise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--dim);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.promise-card:hover {
  border-left-color: var(--amber);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.promise-card:hover .promise-cta {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* Per-card accent based on the page it links to */
.promise-card.to-receipts:hover { border-left-color: var(--amber); }
.promise-card.to-conduct:hover, .promise-card.to-healthcare:hover, .promise-card.to-consent:hover { border-left-color: var(--red); }
.promise-card.to-accountability:hover { border-left-color: var(--slate); }
.promise-card.to-contradictions:hover { border-left-color: var(--green); }
.promise-card.to-transparency:hover, .promise-card.to-affordability:hover { border-left-color: var(--amber-hot); }

.promise-card-body {
  padding: 1.5rem 1.5rem 1rem;
  flex: 1;
}

.promise-promise {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.promise-promise-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--paper);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.promise-reality {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.promise-reality-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  opacity: 0.92;
}
.promise-reality-text strong {
  color: var(--paper);
  font-weight: 600;
}

.promise-card-footer {
  padding: 0.85rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.promise-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.promise-cta::after {
  content: ' →';
  margin-left: 0.2em;
}

/* The single citations card sits on its own row, centered, narrower */
.promise-grid.citations-row {
  margin-top: 1.25rem;
  grid-template-columns: minmax(360px, 600px);
  justify-content: center;
}

@media (max-width: 760px) {
  .promise-section { padding: 0 1.25rem; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-card-body { padding: 1.25rem 1.25rem 1rem; }
  .promise-card-footer { padding: 0.75rem 1.25rem 1rem; }
}
