/* Shared readability for the five individual treatment pages. Load after their
   local illustration rules. Keep the approved float/shape geometry intact. */
body.treatment-readable { overflow-x: clip; }
.treatment-readable .fade-up { transform: none; }

/* One continuous scale, matching the approved information-page hero. The image
   keeps its full-height composition while longer/enlarged wording can grow. */
body.treatment-readable .page-hero {
    --treatment-label-size: clamp(.875rem, .7625rem + .234375vw, .95rem);
    --treatment-title-offset: clamp(.125rem, 4.2875rem - 5.15625vw, 1.7875rem);
    display: block; height: auto; min-height: 100vh; min-height: 100svh;
    padding: calc(50vh + var(--treatment-title-offset) - var(--treatment-label-size) * 1.7 - 1rem) 0 64px;
    padding-top: calc(50svh + var(--treatment-title-offset) - var(--treatment-label-size) * 1.7 - 1rem);
}
body.treatment-readable .page-hero > .container {
    width: 100%; max-width: 860px; margin: 0 auto;
    padding: 0 clamp(1.5rem, 6.25vw - 1.5rem, 3.5rem); border-radius: 0;
}
body.treatment-readable .page-hero .section-label {
    display: block; width: fit-content; margin: 0 auto 16px;
    font-size: var(--treatment-label-size); line-height: 1.7;
}
body.treatment-readable .page-hero h1 {
    font-size: clamp(2rem, .5rem + 3.125vw, 3rem);
    line-height: 1.25; overflow-wrap: anywhere;
}
body.treatment-readable .page-hero p { font-size: 1.0625rem; line-height: 1.75; color: rgba(255,255,255,.9); }
@media (max-width: 768px) {
    body.treatment-readable .page-hero {
        background: linear-gradient(20deg, rgba(21,43,48,.96) 0%, rgba(21,43,48,.92) 35%, rgba(21,43,48,.8) 55%, rgba(21,43,48,.3) 78%, rgba(21,43,48,.1) 100%);
    }
}

/* Supporting information must remain legible on phones; do not shrink it to
   make a line fit. The 17px prose and existing contour tags retain their scale. */
.treatment-readable .section-label { font-size: .95rem; text-shadow: none; }
.treatment-readable .trust-line { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.85); }
.treatment-readable .trust-segment { white-space: normal; }
.treatment-readable :is(.evidence-status-label, .trust-meta-badge, .footer-disclaimer) {
    font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.85);
}
.treatment-readable .trust-meta-badge { border-radius: 0; background: rgba(21,43,48,.88); }
.treatment-readable .go-deeper-inline summary { min-height: 44px; font-size: 1rem; letter-spacing: 1px; }
.treatment-readable .gd-list { max-width: 100%; }
.treatment-readable .gd-pill { max-width: 100%; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.treatment-readable .gd-pill:focus-visible { background: var(--gold-gradient-strong); color: #152b30; }
.treatment-readable :is(a, summary):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.treatment-readable .science-fig .btn-primary {
    font-size: 1rem; line-height: 1.5; letter-spacing: .25px;
    padding: 10px 14px; min-height: 44px; max-width: 100%; white-space: normal;
}
.treatment-readable .treatment-card { border-radius: 0; }
.treatment-readable .treatment-card .card-link { font-size: 1rem; min-height: 44px; }
.treatment-readable .treatment-card .card-link svg { flex-shrink: 0; }
.treatment-readable .step-card p { font-size: 1.0625rem; color: rgba(255,255,255,.85); }
.treatment-readable :is(.image-placeholder, .testimonial-placeholder, .learn-more-accordion) { border-radius: 0; }
.treatment-readable .image-placeholder p { font-size: .875rem; color: rgba(255,255,255,.85); }
.treatment-readable .cta-buttons :is(.btn-primary, .btn-dark) { font-size: 1rem; max-width: 100%; min-height: 48px; }
@media (prefers-reduced-motion: reduce) {
    .treatment-readable .treatment-card:hover, .treatment-readable .gd-pill:hover { transform: none; }
}

/* The decorative edge bleeds must not create sideways page scrolling. Clip at
   the section edge, preserving the artwork's layout and vertical contour. */
.treatment-readable .section { overflow-x: clip; }
/* Decorative splatter is background texture, not a foreground illustration.
   Keep it subtle enough that it does not compete with the reading column. */
.page-treatment-peptide.treatment-readable .conditions-categories > .cond-right { opacity: .12; }
@media (min-width: 961px) and (max-width: 1200px) {
    /* Large negative rises put these figures on preceding text at half-screen
       widths. Keep the original floats; lower just the colliding artwork. */
    .page-treatment-iv.treatment-readable .benefits-flow .bfig-left { margin-top: -20px; margin-left: 0; }
    .page-treatment-iv.treatment-readable .benefits-flow .bfig-right { margin-top: 0; }
    .page-treatment-peptide.treatment-readable .benefits-flow .bfig-left { margin-top: -20px; }
}

.fig-webkit { display: none; }
/* Safari ignores shape-outside on floats moved far from their DOM anchor.
   Use anchored twins for the affected introductions and modest float margins
   for the remaining figures. The existing Chrome and phone layouts remain. */
@supports (font: -apple-system-body) {
    @media (min-width: 961px) {
        .page-treatment-biologics.treatment-readable .intro-fig > .fade-up > :is(.intro-fig-left, .intro-fig-right):not(.fig-webkit),
        .page-treatment-iv.treatment-readable .intro-fig .intro-fig-left:not(.fig-m),
        .page-treatment-peptide.treatment-readable .intro-fig .intro-fig-float:not(.fig-m) { display: none; }
        .page-treatment-biologics.treatment-readable .intro-fig .intro-fig-left.fig-webkit {
            display: block; float: left; width: 310px; margin: 8px 24px 16px 0; filter: none;
        }
        .page-treatment-biologics.treatment-readable .intro-fig .intro-fig-right.fig-webkit {
            display: block; float: right; width: 310px; margin: 8px 0 16px 24px; filter: none;
        }
        .page-treatment-iv.treatment-readable .intro-fig .intro-fig-left.fig-m {
            display: block; float: left; width: 280px; margin: 0 24px 16px 0;
            shape-outside: url(/assets/images/symbols/molecule-niacinamide.webp);
            shape-image-threshold: .4; shape-margin: 16px; filter: none;
        }
        .page-treatment-peptide.treatment-readable .intro-fig .intro-fig-float.fig-m {
            display: block; float: right; width: 250px; margin: 0 0 16px 24px;
            shape-outside: url(/assets/images/symbols/shapes/hexagons-cluster-hull.webp);
            shape-image-threshold: .2; shape-margin: 16px; filter: none;
        }
        .page-treatment-iv.treatment-readable .benefits-flow .bfig-left,
        .page-treatment-peptide.treatment-readable .benefits-flow .bfig-left { margin-top: 0; }
        .page-treatment-exosome.treatment-readable .conditions-categories .neuron-float:not(.fig-m) {
            width: 280px; margin: 0 0 20px 28px; filter: none;
        }
    }
    @media (min-width: 1201px) {
        .treatment-readable .science-book { max-width: 660px; display: flow-root; }
        .treatment-readable .science-fig .science-fig-float {
            width: 150px; margin: -16px 24px 12px 0; shape-margin: 14px; filter: none;
        }
        .treatment-readable .science-fig p { margin-right: 0; }
        .treatment-readable .science-fig .btn-primary { display: inline-block; margin-top: 4px !important; }
    }
}
@supports (font: -apple-system-body) {
    @media (min-width: 961px) {
        .page-treatment-iv.treatment-readable .intro-fig .intro-fig-right:not(.fig-m),
        .page-treatment-msc.treatment-readable .conditions-categories .cond-right:not(.fig-m) { display: none; }
        .page-treatment-iv.treatment-readable .intro-fig .intro-fig-right.fig-m {
            display: block; float: right; width: 200px; margin: 0 0 16px 24px;
            shape-outside: url(/assets/images/symbols/shapes/cells-cluster-hull.webp);
            shape-image-threshold: .2; shape-margin: 16px; filter: none;
        }
        .page-treatment-msc.treatment-readable .conditions-categories .cond-right.fig-m {
            display: block; float: right; width: 170px; margin: 0 0 16px 24px;
            shape-outside: url(/assets/images/symbols/organ-section.webp);
            shape-image-threshold: .4; shape-margin: 16px; filter: none;
        }
        .page-treatment-peptide.treatment-readable .benefits-flow .bfig-right:not(.fig-m) {
            width: 320px; margin: 0 0 16px 28px; shape-margin: 16px; filter: none;
        }
    }
}
/* The legacy shared-footer paragraph has an inline size. */
.treatment-readable .footer-disclaimer { font-size: .875rem !important; }

/* Keep primary-source links readable within treatment prose. */
.treatment-readable .evidence-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* The evidence paragraphs are longer than the former benefit claims. Anchor
   their figures beside the current text instead of lifting them into it. */
body:is(.page-treatment-peptide, .page-treatment-iv).treatment-readable .science-fig .science-fig-float { shape-margin: 18px; }
@media (min-width: 961px) {
    body:is(.page-treatment-peptide, .page-treatment-iv).treatment-readable .science-book { max-width: 760px; }
    body:is(.page-treatment-peptide, .page-treatment-iv).treatment-readable .science-fig .science-fig-float {
        width: 150px; margin: -16px 24px 16px 0; filter: none;
    }
    body:is(.page-treatment-peptide, .page-treatment-iv).treatment-readable .science-fig p { margin-right: 0; }
    body:is(.page-treatment-peptide, .page-treatment-iv).treatment-readable .benefits-flow .bfig-right:not(.fig-m) {
        margin-top: 8px; margin-bottom: 24px;
    }
}
@media (max-width: 960px) {
    body:is(.page-treatment-peptide, .page-treatment-iv).treatment-readable .benefits-flow .bfig-right.fig-m { margin-bottom: 36px !important; }
}
