/* ==========================================================
   JUST BLOOD - Chapter pages (cancer-study, validation, clia-lab, finance)
   Loaded AFTER style.css on the chapter pages only.
   index.html does not use this file.
   ========================================================== */

:root { --red: #ff4b57; --panel: #04101a; --panel-line: #173a47; }

.c { color: var(--cyan); }
.r { color: var(--red); }
.w { color: var(--white); }

/* ---------- Page hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + var(--safe-top) + 40px) calc(var(--gutter) + var(--safe-right)) 56px calc(var(--gutter) + var(--safe-left));
  background: radial-gradient(ellipse at 50% 30%, #072233 0%, #02070a 55%, #000 100%);
  text-align: center;
}
.page-hero .eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.page-hero-inner { max-width: 920px; margin: 0 auto; }
.page-title {
  font-size: clamp(46px, 11vw, 96px);
  font-weight: 700; line-height: .98; letter-spacing: -.03em;
  margin: 0 0 22px;
}
.page-sub {
  font-size: clamp(22px, 4.2vw, 38px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.015em;
  margin: 0 auto 22px; max-width: 860px;
}
.page-lede { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 760px; margin: 0 auto 14px; }
@media (min-width: 900px) {
  .page-hero {
    min-height: calc(100vh - 1px); min-height: calc(100svh - 1px);
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 80px;
  }
  .page-lede { font-size: 19px; }
}
.poster-hero { padding-bottom: 40px; }
.poster-hero .media-btn { max-width: 860px; margin: 0 auto; }
.page-source { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.page-source a { color: var(--cyan); text-decoration: none; }
.page-source a:hover { text-decoration: underline; }

/* ---------- Chapters ---------- */
.chapter {
  position: relative;
  padding: 56px 0 60px;
  background: radial-gradient(ellipse at 50% 40%, #061520 0%, #02070a 55%, #000 100%);
}
.chapter::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--rule);
}
.wrap {
  max-width: calc(980px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left));
}
.wrap-narrow { max-width: calc(800px + var(--gutter) * 2); }
.chapter-num { color: var(--cyan); font-size: 13px; letter-spacing: .02em; margin: 0 0 10px; }
.chapter-title {
  font-size: clamp(32px, 7vw, 54px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 22px;
}
.sub-title {
  font-size: clamp(26px, 5.4vw, 40px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.015em;
  margin: 52px 0 18px;
}
.mini-title { font-size: 15px; letter-spacing: .14em; color: var(--cyan); margin: 34px 0 12px; font-weight: 700; }
@media (min-width: 900px) {
  .chapter { padding: 88px 0 92px; }
}

.prose { font-size: 17px; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose strong, .prose b { color: var(--white); }
.prose .note { font-size: 13px; line-height: 1.6; color: var(--muted); }
.center { text-align: center; }
@media (min-width: 900px) { .prose { font-size: 18px; } }

/* Big centred statement inside a chapter */
.say {
  font-size: clamp(26px, 5.6vw, 46px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.015em;
  text-align: center; margin: 40px auto; max-width: 900px;
}
.say-xl { font-size: clamp(34px, 8vw, 68px); }

/* Full-width statement band */
.band {
  margin: 48px 0;
  padding: 56px calc(var(--gutter) + var(--safe-right)) 56px calc(var(--gutter) + var(--safe-left));
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, #08283a 0%, #03111a 45%, #000 100%);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.band h2, .band p.say { margin: 0 auto; max-width: 980px; }
.band h2 {
  font-size: clamp(26px, 5.4vw, 48px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.015em;
}
@media (min-width: 900px) { .band { margin: 64px 0; padding: 80px var(--gutter); } }

/* ---------- Panels / cards ---------- */
.grid { display: grid; gap: 14px; margin: 26px 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 18px; } }
.panel {
  border: 1px solid var(--panel-line); background: var(--panel);
  padding: 22px 22px;
}
.panel h3 { font-size: 18px; letter-spacing: .04em; margin: 0 0 10px; color: var(--white); }
.panel p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.panel p + p { margin-top: 8px; }
.panel-accent { border-color: var(--cyan); }

.metric { text-align: center; padding: 26px 18px; }
.metric .label { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.metric .num { font-size: clamp(38px, 8vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.metric .unit { font-size: 14px; color: var(--muted); margin-top: 8px; }
.metric p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.metric .sub-label { font-size: 12px; letter-spacing: .1em; color: var(--muted); margin: 16px 0 6px; }

.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0; }
.pill {
  border: 1px solid var(--line-2); padding: 9px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--white);
}
.pill-c { border-color: var(--cyan); color: var(--cyan); }

.callout {
  margin: 32px 0; padding: 26px 24px;
  border-left: 3px solid var(--cyan); background: linear-gradient(90deg, #071a25, rgba(5, 11, 16, 0));
}
.callout .kicker { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--cyan); margin: 0 0 10px; }
.callout .headline { font-size: clamp(24px, 4.6vw, 38px); font-weight: 700; line-height: 1.1; margin: 0 0 12px; }
.callout p { margin: 0 0 10px; font-size: 17px; line-height: 1.6; color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-box { border: 1px solid var(--panel-line); border-left: 3px solid var(--cyan); background: var(--panel); }

.flow-steps { text-align: center; font-size: clamp(22px, 4.6vw, 36px); font-weight: 700; line-height: 1.25; margin: 34px 0; }
.flow-steps .arrow { display: block; color: var(--muted); font-size: .7em; line-height: 1.4; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; border: 1px solid var(--panel-line); }
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 13px 14px; text-align: right; border-bottom: 1px solid #10242e; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: #051018; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.c { font-weight: 700; }
.table-hint { display: none; font-size: 12px; color: var(--muted); margin: -12px 0 22px; text-align: right; }
@media (max-width: 639px) { .table-hint { display: block; } }

/* ---------- Documents (clickable evidence images) ---------- */
.doc { margin: 30px auto; max-width: 820px; }
.doc .media-btn { background: #fff; border-color: #2a3c44; }
.doc figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 10px; text-align: center; }
.doc-pair { display: grid; gap: 18px; margin: 30px 0; }
.doc-pair .doc { margin: 0; }
@media (min-width: 760px) { .doc-pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--cyan-bright); color: #001116;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none;
  border: 0; cursor: pointer; transition: background-color .2s ease;
}
.btn-primary:hover { background: var(--white); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  background: transparent; color: var(--white); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 0; }

/* ---------- Brand lockup (cancer study) ---------- */
.brand-lockup { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 14px; }
.brand-lockup img { height: auto; }
.brand-lockup .theranos { width: 170px; max-width: 40vw; }
.brand-lockup .pfizer { width: 120px; max-width: 28vw; }
.brand-lockup .x { color: var(--muted); font-size: 22px; font-weight: 300; }
.study-line { margin: 0 0 30px; }
.study-line strong { display: block; font-size: clamp(14px, 2.4vw, 18px); letter-spacing: .1em; }
.study-line small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------- Court exhibit cards (validation) ---------- */
.exhibit-card {
  margin: 28px 0; padding: 22px;
  border: 1px solid var(--panel-line); background: var(--panel);
}
.badge {
  display: inline-block; border: 1px solid var(--cyan); color: var(--cyan);
  padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.exhibit-card .ex-title { margin: 14px 0 0; font-size: 16px; color: var(--text); }
.exhibit-card .btn-row { justify-content: flex-start; margin-top: 18px; }
.ex-preview { margin-top: 18px; }
.ex-preview iframe { display: block; width: 100%; height: 760px; border: 0; background: #fff; }
.preview-btn { display: none; }
@media (hover: hover) and (min-width: 900px) { .preview-btn { display: inline-flex; } }

/* ---------- More chapters ---------- */
.chapters-nav {
  padding: 60px 0 64px;
  background: #000;
  border-top: 1px solid var(--line);
}
.chapters-nav .eyebrow { text-align: center; letter-spacing: .14em; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.chapters-nav h2 { text-align: center; font-size: clamp(28px, 5vw, 42px); font-weight: 700; margin: 0 0 28px; }
.chapter-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .chapter-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .chapter-cards { grid-template-columns: repeat(3, 1fr); } }
.chapter-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; min-height: 150px;
  border: 1px solid var(--panel-line); background: var(--panel);
  text-decoration: none; color: var(--white);
  transition: border-color .2s ease, transform .2s ease;
}
.chapter-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.chapter-card .k { font-size: 11px; letter-spacing: .16em; color: var(--cyan); font-weight: 700; }
.chapter-card .t { font-size: 22px; font-weight: 700; line-height: 1.1; }
.chapter-card .d { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: auto; }
.chapter-card.is-home .k { color: var(--muted); }

/* Compact hero (title only) followed directly by a story section */
@media (min-width: 900px) { .page-hero.hero-compact { min-height: 0; padding-bottom: 24px; } }
.page-hero.hero-compact { padding-bottom: 12px; }
.chapter-flush { padding-top: 24px; }
.chapter-flush::before { display: none; }

/* v14 single page: chapter sections sit inside index.html, so the hero no
   longer needs to clear the fixed header (scroll-padding already does). */
.chapter-page .page-hero { padding-top: 56px; }
@media (min-width: 900px) { .chapter-page .page-hero { padding-top: 72px; } }
