/* ==================================================================
   components.css — classes extracted from inline style attributes.

   The site had ~3,700 inline style="" attributes across 50 pages but only
   223 distinct patterns. Styling in markup is why dark mode was impossible,
   why contrast had to be fixed element-by-element, and why nothing responds
   to the viewport. These classes reproduce those patterns exactly; the
   refactor is verified byte-for-byte by tools/snapshot.py.

   Naming follows the existing house convention (block__element--modifier).
   ================================================================== */

/* ---------- FAQ accordion ---------------------------------------- */
.faq-list {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(47, 164, 169, 0.3);
}

.faq-item {
    border-bottom: 1px solid rgba(47, 164, 169, 0.3);
    padding: 1.5rem 0;
}

.faq-item__q {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0F3C5C;
    line-height: 1.3;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__marker {
    flex: 0 0 auto;
    color: #1F6A6E;
    font-family: Inter, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-item__a {
    font-family: Inter, sans-serif;
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.7;
    margin: 1rem 0 0.5rem 0;
}

/* ---------- editorial link list (blog rail, guidelines, related) --- */
.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list__item {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(15, 60, 92, 0.10);
}

.link-list__item:last-child { border-bottom: none; }

.link-list__link {
    color: #0F3C5C;
    text-decoration: none;
    font-family: Inter, sans-serif;
}

.link-list__title { font-size: 1.02rem; }

.link-list__dek {
    display: block;
    font-size: 0.9rem;
    /* matches the inline value it replaced; 4.54:1 on every ground this site uses */
    color: #6B7280;
    margin-top: 3px;
}

.link-list__dek--sm { font-size: 0.92rem; }

/* ---------- treatment / option cards ----------------------------- */
.option-card {
    padding: 1.25rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid rgba(15, 60, 92, 0.12);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 60, 92, 0.05);
}

.option-card__eyebrow {
    font-family: Inter, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1F6A6E;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.option-card__eyebrow--navy { color: #0F3C5C; }
.option-card__eyebrow--ink  { color: #1A2840; }

.option-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #0F3C5C;
    margin: 0.4rem 0 0.6rem 0;
    font-weight: 600;
}

.option-card__body {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.65;
    margin: 0;
}

.option-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* ---------- numbered approach list ------------------------------- */
.numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.numbered-list__rule {
    position: absolute;
    left: 38px;
    top: 70px;
    bottom: 70px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(47, 164, 169, 0.6), rgba(47, 164, 169, 0.15));
}

.numbered-list__item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.75rem 0;
    position: relative;
}

.numbered-list__num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    color: #1F6A6E;
    line-height: 0.9;
    letter-spacing: -2px;
}

.numbered-list__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #0F3C5C;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.numbered-list__body {
    font-family: Inter, sans-serif;
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.65;
    margin: 0;
}

/* ---------- shared prose helpers --------------------------------- */
.prose-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0F3C5C;
    margin: 2.25rem 0 1rem 0;
}

.prose-note {
    font-family: Inter, sans-serif;
    font-style: italic;
    /* matches the inline value replaced; 4.54:1 on every ground here */
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.65;
}

.prose-note--center {
    text-align: center;
    margin-top: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.text-link { color: #1F6A6E; }

.text-link--strong {
    color: #1F6A6E;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- layout helpers --------------------------------------- */
.container--900 { max-width: 900px; }
.container--880 { max-width: 880px; }
.container--940 { max-width: 940px; }
.container--1100 { max-width: 1100px; }

.section--tight {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section--tight-lg {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

.heading--sm { font-size: 1.75rem; }

/* ---------- author / E-E-A-T block -------------------------------- */
.author-card {
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: #FFFFFF;
    border: 1px solid rgba(15, 60, 92, 0.10);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 60, 92, 0.05);
}

.author-card__body {
    font-family: Inter, sans-serif;
    font-size: 1.02rem;
    color: #4A5568;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.author-card__more {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

/* ---------- "first weeks" pathway timeline ------------------------ */
.pathway__row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(15, 60, 92, 0.10);
}

.pathway__row:last-child { border-bottom: none; }

.pathway__label {
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1F6A6E;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-top: 0.45rem;
}

.pathway__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0F3C5C;
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.pathway__body {
    font-family: Inter, sans-serif;
    font-size: 1.02rem;
    color: #4A5568;
    line-height: 1.68;
    margin: 0;
}

/* ---------- local "near me" block --------------------------------- */
.near-me__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.near-me__site {
    border-left: 3px solid #2FA4A9;
    padding: 0.15rem 0 0.15rem 1.25rem;
}

.near-me__site--alt { border-left-color: #0F3C5C; }

.near-me__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0F3C5C;
    margin: 0 0 0.55rem 0;
    line-height: 1.25;
}

/* identical to .option-card__body — kept as a named alias so the near-me markup
   reads for itself; the extractor maps this pattern to .option-card__body */
.near-me__detail,
.option-card__body {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.65;
    margin: 0;
}

.near-me__travel {
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    /* matches the inline value replaced */
    color: #6B7280;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* ---------- mobile ------------------------------------------------ */
@media (max-width: 768px) {
    .numbered-list__item { grid-template-columns: 64px 1fr; gap: 1.25rem; }
    .numbered-list__num  { font-size: 3rem; }
    .numbered-list__rule { left: 27px; }
    .pathway__row        { grid-template-columns: 1fr; gap: 0.35rem; }
    .pathway__label      { padding-top: 0; font-size: 0.875rem; letter-spacing: 0.8px; }
    .option-card         { padding: 1.1rem 1.15rem; }
    .faq-item__q         { font-size: 1.25rem; }
}

/* ---------- related-services rail --------------------------------- */
.related-grid {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-link {
    color: var(--primary-blue);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
}

/* ---------- misc utilities --------------------------------------- */
.font-body { font-family: Inter, sans-serif; }

.rail-more {
    margin-top: 1.5rem;
    text-align: right;
}

.rail-more__link {
    color: #1F6A6E;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.last-reviewed {
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0.5rem 0 0 0;
    letter-spacing: 0.3px;
}

/* ==================================================================
   ==== topic-hub slice ====
   Classes extracted from the residual inline styles on the six topic
   hub pages (best-oncologist, medical-oncologist, hemato-oncologist,
   chemotherapy, CAR-T, bone-marrow-transplant). Each rule reproduces
   the inline declarations it replaced exactly — no value was changed.
   ================================================================== */

/* ---------- editorial link row without a leading mark ------------- */
/* .blog-editorial-list__item is a 3-column grid (mark | body | meta);
   rows that omit the mark carried this override inline. */
.blog-editorial-list__item--nomark {
    grid-template-columns: 1fr auto;
}

/* ---------- "questions to ask" numbered Q&A list ------------------ */
.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: q;
}

.question-list__item {
    counter-increment: q;
    padding: 1rem 0 1rem 3.5rem;
    border-bottom: 1px solid rgba(15, 60, 92, 0.10);
    position: relative;
}

.question-list__item:last-child { border-bottom: none; }

.question-list__num {
    position: absolute;
    left: 0;
    top: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1F6A6E;
    line-height: 1;
}

.question-list__q {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #0F3C5C;
    display: block;
    margin-bottom: 0.35rem;
}

.question-list__a {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    color: #4A5568;
}

/* ---------- question-list: collapse the hanging indent on phones ---
   3.5rem reserves 56px for a "Q1" label that measures 28.1px in
   Cormorant Garamond 600 at 1.6rem. 2rem still clears the 21.96px
   label at 1.25rem with a 10px gutter. Not in the block at line 343:
   that is declared before .question-list__item and would lose. */
@media (max-width: 768px) {
    .question-list__item { padding-left: 2rem; }
    .question-list__num  { font-size: 1.25rem; }
}

/* ---------- green-flag / red-flag panels -------------------------- */
.flag-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.flag-card {
    padding: 1.5rem;
    background: rgba(47, 164, 169, 0.06);
    border: 1px solid rgba(47, 164, 169, 0.28);
    border-radius: 12px;
}

.flag-card--warn {
    background: rgba(201, 95, 74, 0.06);
    border-color: rgba(201, 95, 74, 0.28);
}

.flag-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #0F3C5C;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.flag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: Inter, sans-serif;
    color: #2D3748;
    line-height: 1.7;
}

.flag-list__item {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.flag-list__mark {
    position: absolute;
    left: 0;
    color: #1F6A6E;
}

.flag-list__mark--warn { color: #A33B28; }

/* ---------- numbered-list variants -------------------------------- */
/* A row that keeps the 90px number column at every width — the inline
   rule it replaces also outranked the 768px .numbered-list__item
   override, so this is deliberately a separate element, not a
   modifier of __item. */
.numbered-list__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.5rem 0;
}

.numbered-list__title--sm {
    font-size: 1.7rem;
    margin: 0 0 0.5rem 0;
}

.numbered-list__body--sm { font-size: 1.05rem; }

/* ---------- option-card variant ----------------------------------- */
.option-card__title--sm { font-size: 1.35rem; }

/* ---------- section variants -------------------------------------- */
.section--tight-xl { padding: 3rem 0; }

.section--faq-gradient {
    background: linear-gradient(180deg, #FCF7F3 0%, #F2F4F8 50%, #FCF7F3 100%);
}

/* ---------- inline text ------------------------------------------- */
.text-navy { color: #0F3C5C; }

.text-link--bold { font-weight: 600; }

/* ---------- spacing utilities (suffix is the rem value) ----------- */
.mt-1    { margin-top: 1rem; }
.mt-1-25 { margin-top: 1.25rem; }
.mt-1-5  { margin-top: 1.5rem; }
.mb-2    { margin-bottom: 2rem; }

/* ==================================================================
   ==== disease-page slice ====
   Classes extracted from the residual inline styles on the ten
   disease pages (lung, colorectal, prostate, ovarian, cervical,
   stomach, head-and-neck, leukemia, lymphoma, multiple-myeloma).
   Each rule reproduces the inline declarations it replaced exactly —
   no value was changed. One-off geometry inside the warning-sign SVGs
   is deliberately left inline.
   ================================================================== */

/* ---------- SVG hero band ----------------------------------------- */
.section--hero-pad {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.figure-full {
    margin: 0;
    max-width: 1200px;
    width: 100%;
}

.hero-svg {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #FCF7F3;
}

/* Hero copy sits under the artwork, narrower than the figure. */
.hero-intro {
    max-width: 900px;
    margin: 2.5rem auto 0;
}

/* ---------- subtype legend under the hero artwork ------------------ */
/* .topic-hero__subtype-legend (topic-pages.css) is the same component
   but with a clamped top margin; these pages carried a fixed 1.75rem
   inline, so the value is kept exactly as it was. */
.hero-legend {
    margin-top: 1.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.25rem;
    max-width: 100%;
}

/* Text column inside a .topic-hero__subtype-item bullet. */
.hero-legend__text { padding-left: 0.5rem; }

/* ---------- warning-signs diagram --------------------------------- */
.diagram-figure {
    margin: 3rem auto 1rem;
    max-width: 820px;
}

.diagram-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* ---------- section-description variant --------------------------- */
/* Narrower than the 52ch default, with the negative top margin
   cancelled — the inline shorthand it replaces did the same. */
.section-description--center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 0.5rem;
}

/* ---------- numbered-list / option-card variants ------------------ */
/* .numbered-list__row with the deeper row padding these pages used. */
.numbered-list__row--roomy { padding: 1.75rem 0; }

.option-card__title--flush { margin: 0 0 0.5rem 0; }

.option-stack--gap-top { margin-top: 2.5rem; }

/* ---------- spacing utilities (suffix is the rem value) ----------- */
.mb-2-5 { margin-bottom: 2.5rem; }

/* Left-aligned editorial footnote under a pathway/timeline block. */
.prose-note--aside {
    margin-top: 1.75rem;
    max-width: 760px;
}

/* ==== editorial slice ==== */
/* Residual patterns from the fourteen essays, the blog index, and the FAQ hub,
   cancer-types, second-opinion, services, about, media and home pages. Same rule as
   the rest of this file: each class reproduces the inline declarations it replaced
   exactly, including where that means fighting a later stylesheet back to a draw. */

/* ---------- links and quiet emphasis ------------------------------ */
.link-navy {
    color: #0F3C5C;
    text-decoration: none;
}

.link-primary {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Pairs with a block class whose inline original carried no font-family, so the
   face keeps coming from the page rather than from the block. */
.font-inherit { font-family: inherit; }

/* ---------- essay section rhythm ---------------------------------- */
.section--article-head {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.section--article-body {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.section--roomy {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ---------- essay figures ----------------------------------------- */
.blog-hero { margin: 0 0 2rem 0; }

.blog-hero__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.blog-figure {
    margin: 2.5rem auto;
    max-width: 720px;
}

.blog-figure__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.blog-figure__caption {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    /* matches the inline value replaced */
    color: #6B7280;
    font-style: italic;
    text-align: center;
}

/* Dateline under an essay title. topic-pages.css loads after this file on the essays,
   so .blog-article__meta would otherwise take back the size, face and colour the
   inline rule set; the pairing is pinned one step above it. */
.last-reviewed--byline { margin: 0.4rem 0 1.5rem 0; }

.blog-article__meta.last-reviewed--byline {
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    color: #6B7280;
    letter-spacing: 0.3px;
}

/* ---------- unbulleted source / aside lists ----------------------- */
.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.6;
}

.list-item--tight { padding: 0.55rem 0; }
.list-item--pad   { padding: 0.5rem 0; }
.list-item--loose { margin: 0.5rem 0; }

/* ---------- FAQ hub ----------------------------------------------- */
.faq-group { border-top: 1px solid rgba(47, 164, 169, 0.3); }

.faq-group__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #0F3C5C;
    margin: 2.5rem 0 0.5rem 0;
}

/* The hub sets its questions a notch under the topic pages. Declared after the
   mobile block above so it holds at every width, as the inline rule did. */
.faq-item__q--compact { font-size: 1.45rem; }

/* ---------- second-opinion process and checklist ------------------ */
.numbered-list__title--md {
    font-size: 1.85rem;
    margin: 0 0 0.5rem 0;
}

.option-card__body--spaced { margin: 0.4rem 0 0 0; }

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 60, 92, 0.15);
}

.step-badge {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(47, 164, 169, 0.18);
    color: #0F3C5C;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.step-item__title {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #0F3C5C;
    margin-bottom: 0.25rem;
}

/* ---------- media page -------------------------------------------- */
.media-card__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1F6A6E;
    margin: 0 0 0.35rem 0;
}

/* main.css repaints every <p> inside a card on the dark sections; the eyebrow keeps
   the teal it carried inline. */
.section-dark .card p.media-card__eyebrow { color: #1F6A6E; }

.media-related__rule {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light, rgba(107, 114, 128, 0.15));
}

/* media.css loads after this file and shorthands the margin away on press cards. */
.card--press .media-internal-links.media-related__rule { margin-top: 1rem; }

.media-related__list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

/* ---------- spacing and centring ---------------------------------- */
.mt-2-5 { margin-top: 2.5rem; }

.prose-center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Centred "read more" line closing a section. */
.section-more {
    text-align: center;
    margin-top: 2rem;
    font-family: Inter, sans-serif;
    font-size: 1.05rem;
}

.img--cover { object-fit: cover; }


/* ---------- A7: numbered-list__row mobile geometry -----------------
   Declared at the END on purpose: the 768px block at line 344 is
   declared before .numbered-list__row, __row--roomy and the
   __title--sm / __title--md size modifiers, so a rule placed there
   loses on source order at equal specificity. 64px + 1.25rem matches
   .numbered-list__item and keeps the shared .numbered-list__rule
   { left: 27px } correctly centred under the 3rem numerals. */
@media (max-width: 768px) {
    .numbered-list__row {
        grid-template-columns: 64px 1fr;
        gap: 1.25rem;
    }
    /* Not optional: removes the grid item's automatic minimum so
       overflow-wrap can act. break-word alone does not affect
       min-content sizing and would not have prevented the clip. */
    .numbered-list__row > div { min-width: 0; }
    /* Two classes (0,2,0) so it also outranks __title--sm and
       __title--md, single classes declared later in this file. */
    .numbered-list__row .numbered-list__title,
    .numbered-list__row .numbered-list__title--sm,
    .numbered-list__row .numbered-list__title--md {
        font-size: 1.5rem;
        overflow-wrap: break-word;
    }
}

/* ---------- A10a: small type that never stepped up for phones ------
   Fixed per-consumer rather than by redefining --text-sm, which would
   collapse it into --text-base across 16 consumers on desktop. */
@media (max-width: 768px) {
    .link-list__title { font-size: 1.1rem; }
    .link-list__dek,
    .link-list__dek--sm { font-size: 1rem; line-height: 1.55; }
    .prose-note,
    .plain-list,
    .near-me__travel,
    .rail-more__link { font-size: 1rem; }
    /* The .media-card__eyebrow base rule is further up this file, so this
       override must live after it, not in the 768px block at line 343. */
    .media-card__eyebrow { font-size: 0.875rem; letter-spacing: 0.04em; }
    /* The medical-review byline is a trust signal, not fine print.
       components.css loads last on the 15 topic pages. */
    .last-reviewed { font-size: 0.9375rem; }
}

/* ---------- A11e: the compact FAQ question -------------------------
   Must be after .faq-item__q--compact; inside the 768px block at 343
   it would still lose on source order. Desktop keeps its 1.45rem. */
@media (max-width: 768px) {
    .faq-item__q--compact { font-size: 1.25rem; }
}

/* ---------- A16d: mobile density ----------------------------------
   Keep each modifier tighter/roomier than the base, which itself steps
   down to 2rem below 768px. At 360px this gives tight 24 < tight-lg 26
   < tight-xl 28 < base 32 < roomy 40 — the ordering the names promise.
   .section--tight-xl is written as the shorthand `padding: 3rem 0`, so
   setting only the block axis is correct; the inline 0 still applies.
   Desktop values are unchanged. */
@media (max-width: 768px) {
    .section--tight        { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
    .section--tight-lg     { padding-top: 1.625rem; padding-bottom: 1.625rem; }
    .section--tight-xl     { padding-top: 1.75rem;  padding-bottom: 1.75rem; }
    .section--roomy        { padding-top: 2.5rem;   padding-bottom: 2.5rem; }
    .section--hero-pad     { padding-top: 2rem;     padding-bottom: 1rem; }
    .section--article-head { padding-top: 2rem;     padding-bottom: 0.75rem; }
    .section--article-body { padding-top: 1rem;     padding-bottom: 2rem; }
}


/* ---------- A12: legible warning-sign callouts on phones ----------
   The <text> labels in .diagram-svg / .hero-svg compute to 2.4-5.9 CSS px
   at 360px — illegible, not merely small. Below 640px hide them and show
   the same copy as real HTML. Hiding rather than enlarging is deliberate:
   .diagram-svg has overflow: visible, so an in-place enlargement risks
   spilling outside the figure and creating horizontal page overflow. */
.figure-callouts { display: none; }

@media (max-width: 640px) {
  .diagram-svg text,
  .hero-svg text { display: none; }
  .figure-callouts {
    display: block;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.55;
  }
  .figure-callouts li { margin-bottom: 0.75rem; }
}
