/* First W4 batch: two condition pages and three English patient guides.
   Opt-in only. Keep each page's existing photograph and source content. */
.w4-readable {
    --w4-body: 1.0625rem;
    --w4-support: .875rem;
}
.w4-readable .fade-up { transform: none; }
.w4-readable :is(.section, .condition-section, .page-hero, .footer) { overflow-wrap: anywhere; }

/* Match the approved information/treatment hero scale without the old
   1024px font/position jump. Allow longer wording and enlarged text to grow. */
body.w4-readable .page-hero {
    --w4-label-size: clamp(.875rem, .7625rem + .234375vw, .95rem);
    --w4-title-offset: clamp(.125rem, 4.2875rem - 5.15625vw, 1.7875rem);
    display: block;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(50vh + var(--w4-title-offset) - var(--w4-label-size) * 1.7 - 1rem) 0 64px;
    padding-top: calc(50svh + var(--w4-title-offset) - var(--w4-label-size) * 1.7 - 1rem);
}
body.w4-readable .page-hero > .container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 6.25vw - 1.5rem, 3.5rem);
    border-radius: 0;
}
body.w4-readable .page-hero .section-label {
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
    font-size: var(--w4-label-size);
    line-height: 1.7;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
body.w4-readable .page-hero .section-label::after { content: none; }
body.w4-readable .page-hero h1 {
    font-size: clamp(2rem, .5rem + 3.125vw, 3rem);
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: anywhere;
}
body.w4-readable .page-hero h1 .gold-cursive {
    display: block;
    font-size: clamp(1.5rem, 1rem + 1.25vw, 2rem);
    line-height: 1.35;
    margin-top: 12px;
    text-shadow: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
body.w4-readable .page-hero p {
    font-size: var(--w4-body);
    line-height: 1.75;
    color: rgba(255,255,255,.9);
    max-width: 72ch;
}

.w4-readable .section-label { font-size: .95rem; line-height: 1.7; text-shadow: none; }
.w4-readable :is(.condition-body, .story-prose) { min-width: 0; }
.w4-readable .story-prose :is(h3, h4) { text-align: left; }
.w4-readable .story-prose p + p { margin-top: 1rem; }
.w4-readable :is(.condition-body p:not(.trust-line), .condition-body li,
    .story-prose p, .story-prose li, .approach-card p, .subcondition p,
    .benefit-item p, .research-handoff p, .treatment-card p) {
    font-size: var(--w4-body);
    line-height: 1.8;
    color: rgba(255,255,255,.9);
    text-align: left;
}
.w4-readable .condition-body h2 {
    font-size: clamp(1.75rem, 1.25rem + 1vw, 2rem);
    line-height: 1.3;
}
.w4-readable :is(.approach-card h3, .subcondition h3, .benefit-item h3) {
    font-size: 1.25rem;
    line-height: 1.4;
}
.w4-readable :is(.approach-eyebrow, .evidence-tag) {
    font-size: var(--w4-support);
    line-height: 1.6;
    letter-spacing: 1px;
}
.w4-readable .subcondition .evidence-tag {
    border-radius: 0;
    background: rgba(21,43,48,.88);
    color: rgba(255,255,255,.9);
}
.w4-readable :is(.conditions-pills .pill, .approach-card a,
    .research-handoff .research-link, .treatment-card .card-link) {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: .5px;
    max-width: 100%;
}
.w4-readable :is(.approach-card a, .research-handoff .research-link, .treatment-card .card-link) {
    min-height: 44px;
    align-content: center;
}
.w4-readable .trust-line {
    font-size: var(--w4-support);
    line-height: 1.7;
    color: rgba(255,255,255,.8);
}
.w4-readable .trust-segment { white-space: normal; }
.w4-readable :is(.refs .ref-item, .refs li, .hotel-card-body p) { font-size: 1rem; line-height: 1.75; }
.w4-readable .hotel-card-body h4 { font-size: 1.125rem; line-height: 1.4; }
.w4-readable :is(.approach-card, .subcondition) { background: rgba(21,43,48,.8); border-radius: 0; }
.w4-readable :is(.treatment-card, .hotel-card) { border-radius: 0; }
.w4-readable .cta-buttons :is(.btn-primary, .btn-dark) {
    width: auto;
    min-height: 48px;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.6;
    white-space: normal;
}
.w4-readable .footer-disclaimer { font-size: var(--w4-support) !important; line-height: 1.75; }
.w4-readable :is(a, summary):focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.w4-readable :is(.section[id], h2[id]) { scroll-margin-top: 112px; }

/* Existing questions and answers, with native keyboard/no-JavaScript controls. */
.w4-faq-item {
    border: 1px solid rgba(201,169,97,.4);
    background: rgba(21,43,48,.88);
    margin-bottom: 16px;
}
.w4-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    min-height: 48px;
    cursor: pointer;
    list-style: none;
    font: 600 var(--w4-body)/1.6 'Montserrat', Arial, sans-serif;
    color: #fff;
}
.w4-faq-item > summary::-webkit-details-marker { display: none; }
.w4-faq-item > summary::after { content: '+'; flex: 0 0 auto; font-size: 1.5rem; line-height: 1; }
.w4-faq-item[open] > summary, .w4-faq-item > summary:hover {
    background: var(--gold-gradient-strong);
    color: #152b30;
}
.w4-faq-item[open] > summary::after { content: '−'; }
.w4-faq-answer {
    padding: 24px 28px;
    border-top: 1px solid rgba(201,169,97,.4);
    font-size: var(--w4-body);
    line-height: 1.8;
    color: rgba(255,255,255,.9);
    text-align: left;
}
.w4-faq-answer a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 768px) {
    body.w4-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%);
    }
    .w4-readable :is(.section, .condition-section) { padding-block: 48px; }
    .w4-readable :is(.content-panel, .approach-card, .subcondition) { padding: 28px 20px; }
    .w4-readable .benefit-item { padding: 16px 0; }
    .w4-readable .w4-faq-item > summary { padding: 18px 20px; gap: 16px; }
    .w4-readable .w4-faq-answer { padding: 20px; }
}

/* Gold foil link lettering (Jed, November 25, 2026): guide links inside
   approach cards use the foil texture instead of a flat gold colour. */
.w4-readable .approach-card a {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

/* Desktop hero label: 18px gold foil on every page (Jed, November 27, 2026).
   The variable also feeds the hero padding, so the title does not move. */
@media (min-width: 1025px) {
    body.w4-readable .page-hero { --w4-label-size: 1.125rem; }
}
