/* ============================================================
   PragerU Exposed — authority + warning design system (v3)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #e9e6dc;
  --paper-card: #f2f0e7;
  --ink: #15171b;
  --ink-soft: #3d434c;
  --navy: #1d2a44;
  --navy-deep: #12192a;
  --amber: #e8a33d;
  --amber-deep: #ad7423;
  --red: #a32f2f;
  --red-deep: #7d2222;
  --steel: #5b6472;
  --line: #b9b4a3;
  --green: #3d6b4f;

  --serif: 'Zilla Slab', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 760px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

/* ---------- advisory banner ---------- */

.advisory {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--amber);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(232,163,61,0.10) 0 14px,
    rgba(232,163,61,0) 14px 28px
  );
}

.advisory .tri { flex: none; }
.advisory a { color: #f3d9ad; text-decoration: underline; }
.advisory a:hover { color: #fff; }

@media (max-width: 640px) {
  .advisory { font-size: 12px; padding: 8px 14px; }
  .advisory span.longtext { display: none; }
}

/* ---------- layout shell ---------- */

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
}

/* ---------- sidebar ---------- */

.sidebar {
  background: var(--navy-deep);
  color: #d3d7e0;
  padding: 24px 0 24px;
  position: sticky;
  top: 38px;
  height: calc(100vh - 38px);
  overflow-y: auto;
  border-right: 1px solid #0a0e18;
}

@media (max-width: 860px) {
  .sidebar { position: static; height: auto; }
}

.sidebar .brand {
  padding: 0 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.seal {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
}

.brand a {
  color: #f2efe4;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand .file-no {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: #8b93a5;
  margin-top: 4px;
  font-weight: 400;
}

.tabs { list-style: none; margin: 10px 0 0; padding: 0; }

.tabs a {
  display: block;
  padding: 10px 22px;
  color: #c3c8d4;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.tabs a:hover { background: rgba(255,255,255,0.04); color: #fff; }

.tabs a.current {
  background: rgba(232,163,61,0.1);
  border-left-color: var(--amber);
  color: #f2efe4;
  font-weight: 500;
}

.tabs .tab-num { font-family: var(--mono); font-size: 11px; color: var(--amber); margin-right: 8px; }

.sidebar .sidebar-foot {
  padding: 18px 22px 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-size: 12px;
  color: #8b93a5;
  line-height: 1.7;
}

.sidebar .sidebar-foot a { color: #b7bccb; }

/* ---------- main content ---------- */

main { padding: 52px 32px 90px; }

.page { max-width: var(--max); margin: 0 auto; }
.page-wide { max-width: 880px; margin: 0 auto; }

.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--red); margin: 0 0 10px; font-weight: 500; }

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.14;
  margin: 0 0 18px;
  color: var(--ink);
  max-width: 18ch;
}

h1.lead-h1 {
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  line-height: 1.25;
  margin: 4px 0 16px;
  color: var(--ink-soft);
  max-width: 22ch;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  margin: 46px 0 14px;
  color: var(--ink);
  border-top: 3px solid var(--amber);
  padding-top: 26px;
}

.page > h2:first-of-type, .page-wide > h2:first-of-type, h2.no-rule { border-top: none; padding-top: 0; }

h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 26px 0 8px; }

p { margin: 0 0 16px; max-width: 68ch; }

.dek {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 26px;
}

/* ---------- authority stamp ---------- */

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 22px;
  background: rgba(29,42,68,0.05);
}

.stamp .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 28px 0 10px;
}

@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

.stat { background: var(--paper-card); padding: 18px 16px; border-top: 3px solid var(--navy); }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--navy); line-height: 1; }
.stat .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- revenue bar chart (Kids Investment page) ---------- */

.rev-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  margin: 24px 0 6px;
  padding: 0 4px;
  border-bottom: 2px solid var(--ink);
}

.rev-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.rev-bar .bar { width: 100%; background: var(--navy); position: relative; }
.rev-bar:last-child .bar { background: var(--red); }
.rev-bar .val { font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); margin-bottom: 4px; white-space: nowrap; }
.rev-bar .yr { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- timeline ---------- */

.timeline { margin: 20px 0 8px; }

.tl-item { position: relative; padding: 2px 0 22px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl-item:last-child { border-left-color: transparent; }
.tl-item::before {
  content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 50%;
}

.tl-date { font-family: var(--mono); font-size: 12.5px; color: var(--red); display: block; margin-bottom: 4px; font-weight: 500; }

/* ---------- citation refs ---------- */

.src-ref {
  font-family: var(--mono); font-size: 12px; color: var(--navy);
  background: var(--paper-card); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 3px; text-decoration: none; white-space: nowrap;
}
.src-ref:hover { border-color: var(--red); color: var(--red); }

.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li {
  padding: 16px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
}
.source-list li:first-child { border-top: none; }
.source-list .tag { font-family: var(--mono); font-size: 12px; color: var(--red); padding-top: 2px; font-weight: 500; }
.source-list .meta { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- callouts ---------- */

.note {
  background: var(--paper-card); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  padding: 16px 20px; margin: 22px 0; font-size: 15.5px;
}
.note strong { color: var(--navy); }
.note.dispute { border-left-color: var(--red); display: flex; gap: 12px; align-items: flex-start; }
.note.dispute .tri { flex: none; margin-top: 2px; color: var(--red); }
.note.dispute strong { color: var(--red-deep); }

.faq { margin: 8px 0 22px; }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { border-top: none; }
.faq-item h3 { margin: 0 0 8px; }
.faq-item p { margin-bottom: 0; }

.more-questions { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.more-questions li { border: 1px solid var(--line); background: var(--paper-card); padding: 12px 16px; }
.more-questions a { font-family: var(--serif); font-weight: 600; font-size: 15px; }

.video-embed { margin: 10px 0 22px; max-width: 560px; }
.video-embed iframe { width: 100%; aspect-ratio: 560 / 306; height: auto; display: block; }

/* ---------- attribution / email exhibit block ---------- */

.attrib {
  border-left: 3px solid var(--amber-deep); padding: 4px 0 4px 18px; margin: 20px 0;
  color: var(--ink-soft); font-size: 15.5px;
}
.attrib .who { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

.exhibit {
  background: var(--paper-card); border: 1px solid var(--line);
  padding: 18px 20px; margin: 20px 0; font-size: 15px;
}
.exhibit .ex-label {
  font-family: var(--mono); font-size: 11.5px; color: var(--red); display: block; margin-bottom: 8px;
}
.exhibit blockquote { margin: 0; font-family: var(--serif); font-size: 16.5px; color: var(--ink); font-style: italic; }
.exhibit .ex-source { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); font-family: var(--mono); font-style: normal; }

/* ---------- org role card ---------- */

.role-card {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: var(--paper-card); border: 1px solid var(--line); border-left: 4px solid var(--amber-deep);
  padding: 14px 18px; margin: 14px 0;
}
.role-card .role-title { font-weight: 500; }
.role-card .role-name { font-size: 13px; color: var(--ink-soft); }

/* ---------- footer ---------- */

.page-foot {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.page-foot .next-lbl { color: var(--steel); margin-right: 4px; }

/* ---------- topbar ---------- */

.topbar {
  display: none; background: var(--navy-deep); color: #f2efe4; padding: 14px 18px;
  align-items: center; justify-content: space-between; font-family: var(--serif); font-weight: 600; font-size: 18px;
}
.topbar button {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: #f2efe4;
  padding: 6px 12px; border-radius: 3px; font-family: var(--sans); font-size: 13px;
}
@media (max-width: 860px) {
  .topbar { display: flex; }
  .sidebar { display: none; }
  .sidebar.open { display: block; }
}

/* ---------- home section grid ---------- */

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 10px; }
@media (max-width: 640px) { .section-grid { grid-template-columns: 1fr; } }

.sec-card {
  background: var(--paper-card); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  padding: 18px 20px; text-decoration: none; color: var(--ink); display: block;
}
.sec-card:hover { border-left-color: var(--red); }
.sec-card .sc-num { font-family: var(--mono); font-size: 12px; color: var(--red); font-weight: 500; }
.sec-card h3 { margin: 6px 0 6px; font-size: 18px; }
.sec-card p { font-size: 14px; margin: 0; color: var(--ink-soft); max-width: none; }

/* ---------- Snare Check result cards (Case File 08) ---------- */

.snare-card {
  background: var(--paper-card); border: 1px solid var(--line); margin: 26px 0; overflow: hidden;
  position: relative;
}
.snare-card-warn { border-color: var(--red); box-shadow: 0 1px 0 rgba(163,47,47,0.08); }

.sc-warn-strip {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--navy-deep) 14px 28px);
}

.sc-media { background: var(--navy-deep); }
.sc-thumb { display: block; position: relative; line-height: 0; }
.sc-thumb img { display: block; width: 100%; height: auto; opacity: 0.85; transition: opacity .15s; }
.sc-thumb:hover img { opacity: 1; }
.sc-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(21,23,27,0.72);
  color: var(--amber); display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 2px solid var(--amber);
}

.snare-card .sc-head {
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.snare-card .sc-title { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.snare-card .sc-src { font-size: 12.5px; color: var(--ink-soft); }
.snare-card .sc-src a { color: var(--ink-soft); }
.snare-card .sc-badges { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }

.badge {
  font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 5px 10px;
  border-radius: 3px; border: 1.5px solid; white-space: nowrap;
}
.badge-snare-confirmed { color: #fff; border-color: var(--red-deep); background: var(--red); }
.badge-snare-partial { color: var(--steel); border-color: var(--line); background: transparent; }
.badge-christ { color: #fff; border-color: var(--amber-deep); background: var(--amber-deep); }

.snare-card .sc-body { padding: 4px 20px 20px; }

.jesus-flag {
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px;
  background: rgba(163,47,47,0.07); border: 1px solid var(--red); border-left: 4px solid var(--red);
  padding: 12px 16px; font-size: 14px;
}
.jesus-flag .tri { flex: none; margin-top: 2px; color: var(--red-deep); }
.jesus-flag strong { color: var(--red-deep); display: block; margin-bottom: 2px; }

.sc-meta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; font-size: 13.5px;
}
@media (max-width: 640px) { .sc-meta-row { grid-template-columns: 1fr; } }
.sc-meta-row .mlabel { font-family: var(--mono); font-size: 11px; color: var(--steel); display: block; margin-bottom: 3px; }

.sc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 14px 0; }
@media (max-width: 640px) { .sc-cols { grid-template-columns: 1fr; } }
.sc-cols h4 { font-family: var(--mono); font-size: 12px; text-transform: none; margin: 0 0 8px; color: var(--ink-soft); }
.sc-cols ul { margin: 0; padding-left: 18px; font-size: 14px; }
.sc-cols li { margin-bottom: 6px; }

.fallacy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.fallacy-tag {
  font-family: var(--mono); font-size: 11.5px; background: var(--paper); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 3px; color: var(--ink-soft);
}

.sc-link { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12.5px; }

