/* ============================================================
   CONDITIONS HUB — /conditions (router + topical-authority anchor)
   Layered on base.css + v3.css + v9.css + therapy.css + condition.css.
   A clean router: name the conditions, group them by target, and link.
   Carries NO clinical detail — one routing line per condition + a link.
   Reuses .cd-crumb, .cd-tcard, .section-head, .eyebrow,    .rx-cta-sec/.rx-cta-panel. Adds: hero, routing frame, target groups,
   the solid-tumor divider, the "not sure" band, the therapies cross-link.
   ============================================================ */

/* ---------- Hero (typographic — no photo) ---------- */
.ch-hero { padding: 43px 0 72px; border-bottom: 1px solid var(--border-soft); }
.ch-hero .cd-crumb { margin-bottom: 34px; }
.ch-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.ch-title {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  color: var(--fg-strong);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.ch-title em { font-style: italic; }
.ch-standfirst {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.66;
  color: var(--slate-dark);
  margin: 26px 0 32px;
  max-width: var(--measure);
}
.ch-standfirst strong { color: var(--fg-strong); font-weight: 600; }
/* Conditions hub only — therapies.html shares .ch-standfirst and keeps 54ch */
.page-conditions .ch-standfirst { max-width: 75ch; }
.ch-hero-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ch-hero-aside {
  border-left: 1px solid var(--border);
  padding-left: clamp(20px, 2.4vw, 40px);
  padding-bottom: 6px;
}
.ch-hero-aside .k {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 14px;
}
.ch-hero-aside .targets { display: flex; flex-direction: column; gap: 10px; }
.ch-hero-aside .targets a {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--fg-strong);
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  border-radius: 6px;
  margin: -4px -8px;
  padding: 4px 8px;
  transition: background 0.16s ease, color 0.16s ease;
}
.ch-hero-aside .targets a:hover { background: color-mix(in oklab, var(--accent) 9%, transparent); }
.ch-hero-aside .targets a.solid:hover { background: color-mix(in oklab, var(--sage-ink) 9%, transparent); }
.ch-hero-aside .targets a .lbl em { font-style: italic; font-size: var(--fs-sm); color: var(--slate-mid); }
.ch-hero-aside .targets .t {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-deep);
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1;
}
.ch-hero-aside .targets .t.bcma { background: var(--sage-deep); }
.ch-hero-aside .targets .t.solid { background: var(--sage-ink); }
/* Solid entry publishes in both views — the section it points to is live */

/* Hero media (top-right, above the target index) */
.ch-hero-side { display: flex; flex-direction: column; gap: 26px; align-self: stretch; }
.ch-hero-media { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-3, 0 12px 32px rgba(30,26,24,0.08)); }
.ch-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-hero-side .ch-hero-aside { margin-top: auto; padding-bottom: 0; }

/* ---------- §2 Routing frame ---------- */
.ch-frame { padding: 76px 0 20px; }
.ch-frame-inner { max-width: 760px; }
.ch-frame p {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.62;
  color: var(--slate-dark);
  margin: 0;
  letter-spacing: -0.003em;
}
.ch-frame p em { font-style: italic; color: var(--accent-deep); }
.ch-frame p strong { color: var(--fg-strong); font-weight: 600; }
/* Treatment-volume note — sits in the hero left column, below the CTAs */
.ch-volume {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 34px;
  padding: 20px 24px;
  background: var(--sage-pale);
  border-radius: 10px;
  max-width: 75ch;
}
.ch-volume .rule { flex: 0 0 auto; width: 3px; align-self: stretch; background: var(--sage-deep); border-radius: 2px; }
.ch-volume p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--sage-ink);
  margin: 0;
}
.ch-volume p strong { font-weight: 600; }
/* ---------- §3–4 Target groups ---------- */
.ch-groups { padding: 56px 0 40px; }
.ch-group { margin-top: 12px; }
.ch-group + .ch-group { margin-top: 80px; }
.ch-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.ch-group-label {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  color: var(--fg-strong);
  margin: 0;
}
.ch-group-label .tgt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-deep);
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
  position: relative;
  top: -3px;
}
.ch-group.bcma .ch-group-label .tgt { background: var(--sage-deep); }
.ch-group-line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate-mid);
  max-width: 40ch;
  margin: 0;
}

/* Card grid — reuses .cd-tcard shape; hub cards are name + slug + one line + link */
.ch-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ch-cards.single { grid-template-columns: minmax(0, 620px); }
a.cd-tcard { cursor: pointer; }
.cd-tcard .ch-slug {
  font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: var(--fs-note);
  letter-spacing: 0.01em;
  color: var(--slate-mid);
  margin-bottom: 14px;
}
.cd-tcard .ch-line {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-dark);
  margin: 14px 0 0;
}

/* Slug-provisional callout (review mode) */

/* ---------- §5 Solid-tumor program (divider + subheading) ---------- */
/* LIVE [DECISION — Jacob, 29 Jul 2026]: the section publishes in the clean view
   too, and the gastric card renders at the same width as the six cards above. */
.ch-solid { padding: 40px 0 8px; }
.ch-solid-band {
  border-top: 2px solid var(--sage-ink);
  padding-top: 40px;
}
.ch-solid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ch-solid-sub {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
}
.ch-solid-sub .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.ch-solid-sub h2 {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--fg-strong);
  margin: 0;
}
.ch-solid-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate-mid);
  max-width: 34ch;
  margin: 0;
}
.ch-solid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 30px;
}
.cd-tcard.held {
  border-style: dashed;
  border-color: color-mix(in oklab, var(--sage-ink) 34%, var(--border));
  background: color-mix(in oklab, var(--sage-pale) 30%, var(--bg-card));
}
.cd-tcard.held:hover { transform: none; box-shadow: none; }
.cd-tcard .held-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-ink);
  background: color-mix(in oklab, var(--sage-mid) 46%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}
.cd-tcard .go.disabled { color: var(--slate-mid); opacity: 0.7; }

/* ---------- §6 Not sure which applies? ---------- */
.ch-notsure { padding: var(--section-py) 0; }
.ch-notsure-panel {
  background: var(--sage-pale);
  border-radius: 16px;
  padding: clamp(40px, 5vw, 68px) clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.ch-notsure-panel .eyebrow { color: var(--sage-deep); margin-bottom: 20px; }
.ch-notsure-panel .eyebrow::before { background: var(--sage-deep); }
.ch-notsure-panel h2 {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--sage-ink);
  margin: 0;
  max-width: 18ch;
}
.ch-notsure-panel h2 em { font-style: italic; }
/* Conditions hub only — therapies.html shares this panel */
.page-conditions .ch-notsure-panel h2,
.page-conditions .ch-notsure-panel p { max-width: 75ch; }
.ch-notsure-panel p {
  font-size: 16px;
  line-height: 1.66;
  color: var(--sage-ink);
  opacity: 0.86;
  margin: 20px 0 0;
  max-width: var(--measure);
}
.ch-notsure-cta { display: flex; justify-content: flex-end; }

/* ---------- §7 Therapies cross-link ---------- */
.ch-therapies-x { padding: 0 0 96px; }
.ch-therapies-x-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.ch-therapies-x .copy { max-width: var(--measure); }
.ch-therapies-x .k {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 14px;
}
.ch-therapies-x p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.58;
  color: var(--slate-dark);
  margin: 0;
}
.ch-therapies-x p strong { color: var(--fg-strong); font-weight: 600; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .ch-hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .ch-hero-side { gap: 24px; }
  .ch-hero-media { aspect-ratio: 16 / 9; }
  .ch-hero-side .ch-hero-aside { margin-top: 4px; }
  .ch-hero-aside { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 26px; }
  .ch-hero-aside .targets { flex-direction: column; gap: 12px; }
  .ch-cards { grid-template-columns: 1fr; }
  .ch-cards.single { grid-template-columns: 1fr; }
  .ch-solid-grid { grid-template-columns: 1fr; }
  .ch-notsure-panel { grid-template-columns: 1fr; }
  .ch-notsure-cta { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ch-hero { padding: 24px 0 56px; }
  .ch-frame { padding: 56px 0 12px; }
  .ch-group + .ch-group { margin-top: 60px; }
  .ch-notsure { padding: 64px 0; }
  .ch-hero-aside .targets { flex-direction: column; gap: 12px; }
}
