/* =========================================================================
   project.css — carotid-plaque walkthrough only.

   This file holds ONLY what is specific to this project. Everything the
   macrophage-ML viewer also uses lives in the shared stylesheet:

     https://khosrofar.me/shared/shared.css
     (source of truth: Portfolio/_shared/shared.css)

   That file provides, among others: the masthead flex row and baseline
   alignment, .step-num, .card-header, .section-title, .toc, the
   .summary-stat block, .evidence-note, .resource-links and .num. Do not
   redefine them here; if something is wrong with them, fix the shared
   file so both projects change together.

   This project previously kept these rules in an inline <style> block in
   its template. That is what allowed the two walkthroughs to drift: the
   class names were identical everywhere while the actual layout rules
   lived in two unrelated places, and nothing caught it.

   LOAD ORDER
   ----------
   1. bootstrap (vendored, static/vendor/)
   2. theme.css   — palette variables
   3. shared.css  — common layout
   4. project.css — this file, overrides the above
   ========================================================================= */


/* ── Figures ─────────────────────────────────────────────────────────
   Only this project has figures: exported PNGs from the single-cell
   pipeline. The ML viewer has no equivalent element. */

figure.fig {
  margin: 1rem 0 0;
}

figure.fig img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
}

figure.fig figcaption {
  font-size: .8rem;
  color: #6c757d;
  padding-top: .5rem;
}


/* ── Inline statistical result ───────────────────────────────────────
   The p-value and test summary for the live gene-program comparison. */

.pval {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.slope-svg {
  width: 100%;
  height: auto;
}


/* ── "Why this matters" aside ────────────────────────────────────────
   The brick-red callout explaining why a comparison is misleading.
   Deliberately a different colour from the shared .evidence-note, which
   marks a limitation; this one marks a methodological warning. */

.why {
  border-left: 3px solid var(--brick);
  padding: .5rem .75rem;
  background: #f8f6f5;
  font-size: .875rem;
  margin-top: .75rem;
}

.why b {
  color: var(--brick);
}


/* ── Reproduction commands ─────────────────────────────────────────── */

details.reproduce summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}

/* Colors and padding for pre come from shared.css. */
details.reproduce pre {
  margin-top: .7rem;
}


/* ── Sticky sidebar ────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  aside .position-sticky {
    position: static !important;
  }
}
