/* Page-by-page editorial pass. Preserve the established hierarchy and media crops. */
.editorial-page :is(p,dd,li){text-wrap:pretty}
.editorial-page :is(a,summary){-webkit-tap-highlight-color:transparent}
.bava-page-subtitle>span{overflow-wrap:break-word}
.ed-audience.bava-page-subtitle>span{text-wrap:balance}
.ed-coursebar,.p3-bottom,.p12-contact{min-width:0}
/* 03 — a prominent diagnostic action with its duration kept alongside it. */
.p3-diagnostic-action{flex:none;max-width:100%}
.p3-bottom .p3-diagnostic-action a{display:flex;justify-content:space-between;gap:28px;white-space:normal;padding:17px 22px;margin:0;border:0;border-radius:24px 6px;background:#a34e36;color:#fff;min-height:62px;font-weight:600;text-decoration:none}
.p3-diagnostic-hint{display:block;font-size:20px;line-height:1.5;color:#57564e;margin-top:10px}
/* 04–05 — long technical terms stay legible when a disclosure is opened. */
.p4-skill-content,.p5-system-intro{overflow-wrap:break-word}
.p4-skill-content li+li{margin-top:3px}
/* 06 and 08 — keep a single closing sentence together on wider screens. */
.p6-closing,.p8-closing{justify-content:flex-start;gap:.35em;flex-wrap:wrap}
/* 07 — separate week markers from lesson titles and allow English labels to wrap. */
.p7-track-name{text-wrap:balance;overflow-wrap:break-word}
.p7-weeks>li{align-items:start}
/* 09–12 — consistent open-state spacing, readable biographies and price numerals. */
.p9-selection-content,.p10-support-content,.p11-more-content,.p12-condition-content{overflow-wrap:break-word}
.p11-more-content{line-height:1.7}.p11-more-content>li+li{margin-top:16px}
.p11-career li{line-height:1.6}
.p12-price,.p12-monthly{font-variant-numeric:tabular-nums}
.p12-contact-note{max-width:28em}
/* Next-page actions have a stable right arrow and never force a narrow overflow. */
:is(.p2-next,.p3-bottom a,.p4-next a,.p5-next a,.p6-next a,.p7-next a,.p8-next a,.p9-next a,.p10-next a,.p11-next a)>span[aria-hidden]{flex-shrink:0}
@media(max-width:599px){
 .ed-audience.bava-page-subtitle>span{text-wrap:balance}
 .ed-scene{height:clamp(280px,80vw,320px)}
 .p3-diagnostic-action{margin-top:20px;width:100%}
 .p3-bottom .p3-diagnostic-action a{margin:0}
 .p3-diagnostic-hint{margin-top:10px}
 .p2-next,.p4-next a,.p5-next a,.p6-next a,.p7-next a,.p8-next a,.p9-next a,.p10-next a,.p11-next a{width:100%;max-width:100%;white-space:normal;justify-content:space-between;gap:18px}
 .p6-closing,.p8-closing{display:block;line-height:1.6}
 .p6-closing>strong,.p8-closing>strong{display:block;margin-top:4px}
 .p7-track-name{max-width:100%}
 .p11-career li{padding:14px 0}
 .p12-contact-intro :is(h2,h3){text-wrap:balance}
}
@media(min-width:600px) and (max-width:1100px){.p3-bottom{flex-wrap:wrap;gap:22px}.p3-diagnostic-action{flex:0 1 340px}}
/* An open disclosure shows a minus; rotating the plus extended beyond narrow summaries. */
.p4-skill[open] .p4-expand{transform:none}.p4-skill[open] .p4-expand::after{transform:none}

.p7-reading-practice{margin-top:12px}.p7-reading-practice .p7-lesson-note{line-height:1.65}.p7-reading-practice .p7-lesson-note+.p7-lesson-note{margin-top:18px!important}.p7-reading-practice strong{display:block;font-size:20px;line-height:1.5;font-weight:600;color:#a34e36;margin-bottom:5px}
