/* Academic Support shares the language pages' visual system on every device. */
.academic-page{--forest:#0f5132;--cream:#f7f3e8;--powder:#a7c7f7}
.academic-page .ac-section{padding:76px 0}
.academic-page .ac-hero.ac-blue{background:var(--powder);color:var(--forest);padding:64px 0 68px}
.academic-page .ac-hero h1{margin-bottom:26px;}
.academic-page .ac-hero .eyebrow{color:var(--forest);margin-bottom:24px}
.academic-page .ac-lead{font-size:19px;line-height:1.7;max-width:600px;margin-bottom:0}
.ac-hero-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:48px;align-items:center}
.ac-hero-art{width:100%;max-width:450px;justify-self:center}
.ac-hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.academic-page .ac-hero-actions .ac-cta{display:inline-flex;justify-content:center;align-items:center;background:var(--forest);border-color:var(--forest);color:var(--cream);border-radius:999px;font-size:15px;font-weight:500;min-height:52px;padding:12px 22px;line-height:1.5;text-align:center}
.academic-page .ac-hero-actions .ac-cta:hover{background:#176644}
.academic-page .ac-hero-actions .ac-cta-secondary{background:transparent;color:var(--forest)}
.academic-page .ac-hero-actions .ac-cta-secondary:hover{background:#f7f3e84d}
.academic-page .ac-intro .eyebrow{margin-bottom:20px}
.academic-page .ac-card{padding:32px;border-radius:22px}
.academic-page .ac-card h3{font-size:27px;font-weight:500;line-height:1.2}
.academic-page .ac-card p:not(.ac-price){font-size:18px;line-height:1.7}
.academic-page .ac-number{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;margin-bottom:20px}
.academic-page .ac-price{font-size:52px;margin:28px 0}
.ac-family-note{margin-top:28px;padding:24px 28px;border:1px solid #0f51322b;border-radius:20px;background:#f7f3e8}
.academic-page .ac-family-note h3{font-size:25px;margin:0 0 10px}
.academic-page .ac-family-note p{font-size:18px;margin:0}
.academic-page .ac-pricing-book{margin-top:28px;border-radius:999px;font-size:16px;min-height:52px;padding:12px 26px}
.academic-page .ac-instructor-grid{gap:64px}
.academic-page .ac-role{font-family:'DM Sans',sans-serif;font-size:16px;font-weight:500;line-height:1.5}
@media(max-width:1100px){.ac-hero-grid{gap:32px}.academic-page .ac-hero-actions .ac-cta{font-size:14px;padding-inline:18px}.academic-page .ac-instructor-grid{gap:36px}}
@media(min-width:701px) and (max-width:1000px){.ac-hero-grid{grid-template-columns:minmax(0,1fr) 260px}.academic-page .ac-hero h1{}.academic-page .ac-hero-actions{width:calc(100% + 292px)}.academic-page .ac-three.ac-pricing{gap:16px}.academic-page .ac-pricing .ac-card{padding:24px}.academic-page .ac-pricing h3{font-size:23px}}
@media(max-width:700px){.academic-page .ac-section{padding:52px 0}.academic-page .ac-hero.ac-blue{padding:40px 0 46px}.academic-page .ac-hero h1{}.academic-page .ac-lead{font-size:18px}.ac-hero-grid{grid-template-columns:1fr;gap:28px}.academic-page .ac-hero-actions .ac-cta{width:auto;flex:1 1 150px;font-size:14px;padding:12px 16px}.ac-hero-art{max-width:370px;margin:0 auto}.academic-page .ac-card{padding:26px}.academic-page .ac-card h3{font-size:25px}.ac-family-note{padding:24px}.academic-page .ac-price{font-size:48px}.academic-page .ac-instructor-grid{gap:30px}.academic-page .ac-pricing-book{width:100%;justify-content:center;box-sizing:border-box}}

/* Benefits follow the open, centered icon layout of the language pages. */
.academic-page .ac-benefits .ac-intro{text-align:center;max-width:none;margin-bottom:48px}
.academic-page .ac-benefits h2{max-width:none;text-align:center;font-size:clamp(32px,3.6vw,46px)}
.academic-page .ac-benefit-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.academic-page .ac-benefit-grid .ac-card{display:flex;flex-direction:column;align-items:center;padding:0;border:0;border-radius:0;background:transparent;text-align:center}
.ac-benefit-icon{display:grid;place-items:center;width:116px;height:108px;background:#dce8f7;border-radius:22px;margin-bottom:24px;color:#0f5132}
.ac-benefit-grid .ac-card:nth-child(even) .ac-benefit-icon{background:#e6ebdf}
.ac-benefit-icon svg{width:62px;height:62px}
.academic-page .ac-benefit-grid h3{font-family:'DM Sans',sans-serif;font-size:21px;line-height:1.3;font-weight:500;letter-spacing:-.02em;margin:0 0 12px}
.academic-page .ac-benefit-grid p{font-size:17px;line-height:1.65;color:#506154;margin:0;max-width:250px}
/* Compact Liza profile with the same shaped cutout and offset color as her other bio. */
.ac-instructor-heading{text-align:center;margin:0 0 40px}
.academic-page .ac-instructor-heading h2{max-width:none;margin:0}
.academic-page .ac-instructor-grid{grid-template-columns:280px minmax(0,1fr);gap:52px;max-width:960px;margin:auto;align-items:center}
.ac-portrait-stage{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:280px;height:300px}
.ac-portrait-stage:before{content:'';position:absolute;width:248px;height:270px;background:#afc4a0;clip-path:url(#academic-liza-portrait-shape);transform:translate(-12px,8px) rotate(-5deg)}
.ac-portrait-frame{position:relative;width:248px;height:270px;clip-path:url(#academic-liza-portrait-shape)}
.ac-portrait-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.ac-portrait-accent{position:absolute;left:0;top:25px;color:#0f5132;font-family:'Bricolage Grotesque',sans-serif;font-size:34px;z-index:2}
.academic-page .ac-instructor-name h3{font-size:34px;line-height:1.15;margin:0 0 8px}
.academic-page .ac-instructor .ac-role{font-size:15px;line-height:1.5;margin:0 0 24px}
.academic-page .ac-instructor-grid>div:last-child>p:not(.ac-role){font-size:18px;line-height:1.7;margin:0 0 18px}
/* Use the language pages' form width, spacing, two booking cards, and conversation art. */
.academic-page #contact .ad-final-form-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:80px;align-items:start}
.academic-page #contact .ad-final-copy{max-width:none;padding-right:0}
.academic-page #contact .ad-final-copy h2{font-size:clamp(34px,4vw,52px);line-height:1.12;margin:0 0 28px}
.academic-page #contact .ad-final-copy>p{max-width:410px;font-size:19px;line-height:1.7;margin:0 0 20px}
.academic-page #contact #inquiry-form{width:100%;min-width:0;max-width:none;justify-self:stretch;padding:30px;box-sizing:border-box}
.academic-page #contact .booking-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.academic-page #contact .appointment-option{min-width:0}
.academic-page #contact .form-grid{row-gap:20px;column-gap:22px}
.academic-page #contact .ad-contact-conversation{position:static;width:220px;height:auto;margin:32px 0 0}
@media(max-width:1000px){.academic-page .ac-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px}.academic-page .ac-instructor-grid{grid-template-columns:240px minmax(0,1fr);gap:32px}.ac-portrait-stage{width:240px}.ac-portrait-stage:before,.ac-portrait-frame{width:220px;height:245px}.academic-page #contact .ad-final-form-layout{grid-template-columns:1fr;gap:34px;max-width:760px}.academic-page #contact .ad-final-copy{position:relative;padding-right:205px}.academic-page #contact .ad-contact-conversation{position:absolute;right:0;bottom:8px;width:170px;margin:0}}
@media(max-width:700px){.academic-page .ac-benefits .ac-intro{margin-bottom:34px}.academic-page .ac-benefit-grid h3{font-size:20px}.academic-page .ac-benefit-grid p{font-size:16px}.ac-benefit-icon{width:94px;height:88px;margin-bottom:20px}.ac-benefit-icon svg{width:50px;height:50px}.academic-page .ac-instructor-grid{grid-template-columns:1fr;gap:26px;max-width:600px}.ac-portrait-stage{justify-self:center;width:260px;height:285px}.ac-portrait-stage:before,.ac-portrait-frame{width:240px;height:265px}.academic-page .ac-instructor-name h3,.academic-page .ac-instructor .ac-role{text-align:center}.academic-page #contact .ad-final-copy{padding-right:0}.academic-page #contact .ad-contact-conversation{position:static;width:140px;margin:24px 0 0}.academic-page #contact .ad-final-copy>p{font-size:18px}.academic-page #contact #inquiry-form{padding:24px 20px}.academic-page #contact .booking-choice-grid{grid-template-columns:1fr}}
@media(max-width:380px){.academic-page .ac-benefit-grid{grid-template-columns:1fr}}

/* Narrower subject and example cards, centered within the section gutters. */
.academic-page .ac-topic-grid,
.academic-page .ac-examples .ac-two{width:100%;max-width:960px;margin-inline:auto;gap:28px;box-sizing:border-box}
.academic-page .ac-topic-grid .ac-card{padding:28px}
.academic-page .ac-examples .ac-example .ac-card{padding:26px 28px}
.academic-page .ac-example-art{aspect-ratio:2.3;overflow:hidden}
.academic-page .ac-example-art svg{width:100%;height:100%;object-fit:contain}
/* A distinct copy column and a more generous gap before the form. */
@media(min-width:1001px){
 .academic-page #contact .ad-final-form-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);column-gap:112px}
 .academic-page #contact .ad-final-copy h2{font-size:clamp(34px,3.6vw,48px)}
}
.academic-page #contact .ad-final-copy .ad-contact-conversation{position:static;display:block;transform:none;margin:28px 0 0;align-self:start;object-position:left center}
@media(min-width:701px) and (max-width:1000px){.academic-page #contact .ad-final-copy{padding-right:0;max-width:620px}.academic-page #contact .ad-final-copy .ad-contact-conversation{width:170px}}
@media(max-width:700px){.academic-page .ac-topic-grid,.academic-page .ac-examples .ac-two{max-width:540px;gap:24px}.academic-page .ac-topic-grid .ac-card,.academic-page .ac-examples .ac-example .ac-card{padding:24px}.academic-page #contact .ad-final-copy .ad-contact-conversation{width:140px;margin-top:24px}}
@media(max-width:400px){.academic-page #contact .ac-contact-break{display:none}}

/* Shared section edges: heading, introduction, and cards share the same inset. */
.academic-page .ac-section.ac-subjects>.shell,
.academic-page .ac-section.ac-examples>.shell{width:min(960px,calc(100% - 96px));max-width:960px;margin-inline:auto}
.academic-page .ac-subjects .ac-intro,
.academic-page .ac-examples .ac-intro{max-width:none;margin:0 0 32px}
.academic-page .ac-subjects .ac-intro h2,
.academic-page .ac-examples .ac-intro h2{font-size:clamp(32px,3.5vw,44px);font-weight:400;line-height:1.18;max-width:850px;margin:0 0 20px;letter-spacing:-.035em}
.academic-page .ac-subjects .ac-intro>p{max-width:720px}
/* Match the language-page pricing cards and keep prices above body-copy rules. */
.academic-page .ac-lessons-pricing>.shell{max-width:1100px}
.academic-page .ac-pricing.ad-price-grid{gap:32px}
.academic-page .ac-pricing.ad-price-grid .ac-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;padding:25px 24px 26px;border:1px solid #0f51322b;border-radius:20px 20px 8px 8px;background:#fffcf5}
.academic-page .ac-pricing.ad-price-grid .ac-card:before{content:'';position:absolute;inset:0 0 auto;height:8px;background:#a7c7f7;z-index:-1}
.academic-page .ac-pricing.ad-price-grid .ac-card:nth-child(2):before{background:#afc4a0}
.academic-page .ac-pricing.ad-price-grid .ac-card:after{content:'';position:absolute;right:-14px;top:-25px;width:80px;height:80px;border:1px solid #638dc433;border-radius:50%;z-index:-1}
.academic-page .ac-pricing.ad-price-grid .ac-card h3{font-size:24px;font-weight:500;line-height:1.2;margin:3px 0 0}
.academic-page .ac-pricing.ad-price-grid p.ac-price{font-family:'Bricolage Grotesque',sans-serif;font-size:48px;font-weight:500;line-height:1.1;letter-spacing:-.04em;margin:20px 0 16px;white-space:nowrap}
.academic-page .ac-pricing.ad-price-grid p.ac-price small{font-family:'DM Sans',sans-serif;font-size:15px;font-weight:400;letter-spacing:0}
.academic-page .ac-pricing.ad-price-grid .ac-card>p:last-child{font-size:17px;line-height:1.6;margin:0}
/* A quieter instructor heading and a portrait aligned with the profile opening. */
.academic-page .ac-instructor-heading{margin-bottom:56px}
.academic-page .ac-instructor-heading h2{font-size:clamp(32.3px,3.8vw,49.4px);font-weight:400;line-height:1.18}
.academic-page .ac-instructor-grid{align-items:start}
.academic-page .ac-portrait-stage{align-self:start;align-items:flex-start;height:280px}
.academic-page .ac-instructor-name h3{margin-top:0}
.academic-page #contact .ad-final-copy .ad-contact-conversation{width:170px;max-width:100%;height:auto;margin:26px 0 0;transform:none}
@media(max-width:1000px){.academic-page .ac-section.ac-subjects>.shell,.academic-page .ac-section.ac-examples>.shell{width:calc(100% - 80px)}}
@media(max-width:820px){.academic-page .ac-pricing.ad-price-grid{gap:24px}.academic-page .ac-pricing.ad-price-grid p.ac-price{font-size:42px}.academic-page .ac-pricing.ad-price-grid p.ac-price small{display:block;font-size:14px;margin-top:5px}}
@media(max-width:700px){.academic-page .ac-section.ac-subjects>.shell,.academic-page .ac-section.ac-examples>.shell{width:calc(100% - 40px)}.academic-page .ac-instructor-heading{margin-bottom:40px}.academic-page .ac-instructor-heading h2{font-size:34.2px}.academic-page .ac-portrait-stage{height:280px}.academic-page #contact .ad-final-copy .ad-contact-conversation{width:140px}.academic-page .ac-pricing.ad-price-grid p.ac-price small{display:inline;font-size:15px}}

/* Remove inherited 6% copy offsets so text and artwork share one left edge. */
.adults-page .academic-page #contact .ad-final-copy>h2,
.adults-page .academic-page #contact .ad-final-copy>p,
.adults-page .academic-page #contact .ad-final-copy>.ad-contact-conversation{position:static;left:auto;right:auto;top:auto;bottom:auto;transform:none;margin-left:0;margin-right:0}
.adults-page .academic-page #contact .ad-final-copy>p{font-size:21px;line-height:1.65;max-width:100%;margin-bottom:20px}
@media(max-width:1000px){.adults-page .academic-page #contact .ad-final-copy>p{font-size:19px}}
@media(max-width:600px){.adults-page .academic-page #contact .ad-final-copy>p{font-size:18px}}

/* Two content-sized subject panels replace the four equal course cards. */
.academic-page .ac-subject-panels{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start}
.academic-page .ac-subject-panel{min-width:0;padding:30px;border:1px solid #0f51322b;border-radius:22px;background:#fffcf5;box-sizing:border-box}
.academic-page .ac-subject-panel h3{font-size:28px;font-weight:500;line-height:1.2;margin:0 0 24px}
.academic-page .ac-math-level{margin:0;border-top:1px solid #0f513226}
.academic-page .ac-math-level summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;cursor:pointer;list-style:none}
.ac-math-level summary::-webkit-details-marker{display:none}
.ac-math-level summary::marker{content:''}
.academic-page .ac-math-level summary strong{display:block;font-family:'DM Sans',sans-serif;font-size:18px;font-weight:500;line-height:1.4}
.academic-page .ac-level-description{display:block;font-size:16px;line-height:1.6;color:#506154;margin-top:5px}
.ac-level-toggle{position:relative;flex:0 0 24px;width:24px;height:24px}
.ac-level-toggle:before,.ac-level-toggle:after{content:'';position:absolute;left:5px;top:11px;width:14px;height:2px;border-radius:2px;background:currentColor}
.ac-level-toggle:after{transform:rotate(90deg)}
.ac-math-level[open] .ac-level-toggle:after{transform:rotate(0)}
.ac-math-level summary:focus-visible{outline:3px solid #638dc4;outline-offset:4px;border-radius:4px}
.academic-page .ac-level-topics{padding:0 0 20px}
.academic-page .ac-level-topics ul,.academic-page .ac-chemistry-panel ul{margin:0;padding-left:20px;font-size:17px;line-height:1.7}
.academic-page .ac-level-topics li,.academic-page .ac-chemistry-panel li{padding-left:3px;margin-bottom:8px}
.academic-page .ac-chemistry-panel>p{font-size:18px;line-height:1.7;margin:0 0 24px}
.academic-page .ac-subjects .ac-note{margin-top:22px;font-size:14px;line-height:1.6}
@media(max-width:700px){.academic-page .ac-subject-panels{grid-template-columns:1fr;gap:24px}.academic-page .ac-subject-panel{padding:24px}.academic-page .ac-subject-panel h3{font-size:26px;margin-bottom:20px}.academic-page .ac-math-level summary{padding:18px 0;gap:16px}}

/* A single instructor introduction, placed directly over Liza's name. */
.academic-page .ac-instructor-name .ac-instructor-label{font-family:'DM Sans',sans-serif;font-size:16px;font-weight:400;line-height:1.5;letter-spacing:0;margin:0 0 12px;color:#506154}
.academic-page .ac-instructor-name h2{font-size:clamp(32px,3.4vw,42px);font-weight:400;line-height:1.15;margin:0 0 12px;letter-spacing:-.035em}
@media(max-width:700px){.academic-page .ac-instructor-name .ac-instructor-label,.academic-page .ac-instructor-name h2{text-align:center}}

/* Keep the section title a heading above the instructor's name. */
.academic-page .ac-instructor-name h2.ac-instructor-title{font-size:clamp(32.3px,3.8vw,49.4px);font-weight:400;line-height:1.18;letter-spacing:-.035em;margin:0 0 30px}
.academic-page .ac-instructor-name h3{font-size:34px;font-weight:400;line-height:1.15;margin:0 0 12px}
@media(max-width:700px){.academic-page .ac-instructor-name h2.ac-instructor-title{font-size:34.2px;text-align:center;margin-bottom:26px}.academic-page .ac-instructor-name h3{text-align:center}}

/* Place the heading in its own text-column row so portrait and name align below. */
.academic-page .ac-instructor-grid{row-gap:30px}
.academic-page .ac-instructor-grid>h2.ac-instructor-title{grid-column:2;grid-row:1;font-size:clamp(32.3px,3.8vw,49.4px);font-weight:400;line-height:1.18;letter-spacing:-.035em;margin:0}
.academic-page .ac-instructor-grid>.ac-portrait-stage{grid-column:1;grid-row:2;align-self:start;transform:translateX(-18px)}
.academic-page .ac-instructor-grid>div:last-child{grid-column:2;grid-row:2;min-width:0}
@media(max-width:700px){
 .academic-page .ac-instructor-grid{row-gap:26px}
 .academic-page .ac-instructor-grid>h2.ac-instructor-title{grid-column:1;grid-row:1;font-size:34.2px;text-align:center}
 .academic-page .ac-instructor-grid>.ac-portrait-stage{grid-column:1;grid-row:2;transform:none}
 .academic-page .ac-instructor-grid>div:last-child{grid-column:1;grid-row:3}
}

/* Share the language-page bio reveal timing and opposing entrance directions. */
@media(prefers-reduced-motion:no-preference){
 .academic-page .ac-instructor-grid.reveal-ready>.ac-portrait-stage{opacity:0;transform:translateX(-42px);transition:opacity .65s ease,transform .65s ease}
 .academic-page .ac-instructor-grid.reveal-ready>.ac-instructor-copy{opacity:0;transform:translateX(20px);transition:opacity .65s .1s ease,transform .65s .1s ease}
 .academic-page .ac-instructor-grid.reveal-ready.is-visible>.ac-portrait-stage{opacity:1;transform:translateX(-18px)}
 .academic-page .ac-instructor-grid.reveal-ready.is-visible>.ac-instructor-copy{opacity:1;transform:none}
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 .academic-page .ac-instructor-grid.reveal-ready>.ac-portrait-stage{transform:translateX(-24px)}
 .academic-page .ac-instructor-grid.reveal-ready.is-visible>.ac-portrait-stage{transform:none}
}

/* A larger, integrated hero illustration with a closer connection to the copy. */
.academic-page .ac-hero .ac-hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:28px;align-items:center}
.academic-page .ac-hero .ac-hero-art{width:100%;max-width:540px;min-width:0;justify-self:start;margin:0}
.academic-page .ac-hero .ac-hero-art img{display:block;width:100%;height:auto;object-fit:contain;border-radius:24px}
@media(min-width:701px) and (max-width:1000px){.academic-page .ac-hero .ac-hero-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}.academic-page .ac-hero .ac-hero-actions{width:100%}}
@media(max-width:700px){.academic-page .ac-hero .ac-hero-grid{grid-template-columns:1fr;gap:28px}.academic-page .ac-hero .ac-hero-art{width:100%;max-width:430px;justify-self:center;margin:0 auto}.academic-page .ac-hero .ac-hero-art img{border-radius:18px}}

/* Warm cream hero, with a small rightward adjustment to the illustration. */
.academic-page .ac-hero.ac-blue{background:#a7c7f7}
.academic-page .ac-hero .ac-hero-art{transform:translateX(16px)}
@media(max-width:700px){.academic-page .ac-hero .ac-hero-art{transform:none}}

/* Match the language pages' heading weights and expressive hero typography. */
.academic-page .ac-benefits .ac-intro h2{font-weight:400}
.academic-page .ac-hero h1{}
@media(max-width:820px){.academic-page .ac-hero h1{}}
@media(max-width:600px){.academic-page .ac-hero h1{}}
@media(max-width:360px){.academic-page .ac-hero h1{}}

/* School-level tabs swap content without expanding the section. */
.academic-page .ac-subject-panels{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.academic-page .ac-subject-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.academic-page .ac-subject-title h3{margin:0}
.ac-subject-title>svg{width:38px;height:38px;flex:none;color:#0f5132}
.ac-math-tabs{display:flex;gap:4px;padding:4px;border-radius:14px;background:#eef0e7;margin-bottom:24px}
.ac-math-tabs [role="tab"]{flex:1;min-width:0;border:0;border-radius:10px;background:transparent;color:#0f5132;font:500 14px/1.4 'DM Sans',sans-serif;padding:10px 7px;cursor:pointer;text-align:center}
.ac-math-tabs [role="tab"][aria-selected="true"]{background:#a7c7f7}
.ac-math-tabs [role="tab"]:focus-visible,.ac-math-tabpanel:focus-visible{outline:3px solid #638dc4;outline-offset:3px}
.ac-math-tabpanels{display:grid}
.ac-math-tabpanel{grid-area:1/1;min-width:0}
.ac-math-tabpanel[aria-hidden="true"]{visibility:hidden;pointer-events:none}
.academic-page .ac-math-summary{font-size:17px;line-height:1.65;margin:0 0 20px;color:#506154}
.academic-page .ac-math-tabpanel ul{margin:0;padding-left:20px;font-size:17px;line-height:1.7}
.academic-page .ac-math-tabpanel li{padding-left:3px;margin-bottom:8px}
.academic-page .ac-chemistry-panel .ac-chemistry-level{display:inline-block;background:#e6ebdf;border-radius:10px;padding:10px 14px;margin:4px 0 24px;font-size:14px;font-weight:500;line-height:1.4}
@media(max-width:700px){.academic-page .ac-subject-panels{grid-template-columns:1fr;align-items:start}.ac-math-tabs [role="tab"]{padding-inline:5px;font-size:13px}.academic-page .ac-subject-title{margin-bottom:20px}}

/* Title-adjacent subject icons and consistent panel copy. */
.academic-page .ac-subject-title{justify-content:flex-start;gap:12px}
.academic-page .ac-subject-title>svg{width:34px;height:34px;flex:0 0 34px}
.academic-page .ac-math-tabpanel .ac-math-summary,
.academic-page .ac-chemistry-panel>p:not(.ac-chemistry-level){font-family:'DM Sans',sans-serif;font-size:17px;font-weight:400;line-height:1.65;color:#506154;margin:0 0 20px}
.academic-page .ac-subjects .ac-note{font-size:16px;line-height:1.65;margin-top:24px}

/* Tighten the two-line hero title to the shared heading rhythm. */
.academic-page .ac-hero h1{}

/* Match the language heroes' vertical rhythm from title through booking actions. */
.academic-page .ac-hero .eyebrow{margin-bottom:22px}
.academic-page .ac-hero h1{margin:0 0 32px;}
.academic-page .ac-hero .ac-lead{margin-bottom:0}
.academic-page .ac-hero .ac-hero-actions{margin-top:40px;gap:14px}
@media(max-width:600px){.academic-page .ac-hero .eyebrow{margin-bottom:18px}.academic-page .ac-hero h1{margin-bottom:30px;}.academic-page .ac-hero .ac-hero-actions{gap:12px}}

/* Compact shared title-to-level-to-description rhythm. */
.academic-page .ac-subject-panels{--ac-level-width:110px;--ac-level-height:40px}
.academic-page .ac-subject-title{margin-bottom:16px}
.academic-page .ac-math-tabs{gap:8px;padding:0;margin:0 0 16px;background:transparent;border-radius:0}
.academic-page .ac-math-tabs [role="tab"]{box-sizing:border-box;flex:0 1 var(--ac-level-width);width:var(--ac-level-width);min-height:var(--ac-level-height);padding:10px 7px;font-size:14px;line-height:20px;background:#eef0e7}
.academic-page .ac-math-tabs [role="tab"][aria-selected="true"]{background:#a7c7f7}
.academic-page .ac-chemistry-panel .ac-chemistry-level{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:var(--ac-level-width);min-height:var(--ac-level-height);padding:10px 7px;margin:0 0 16px;font-size:14px;line-height:20px}
.academic-page .ac-math-tabpanel .ac-math-summary,
.academic-page .ac-chemistry-panel>p:not(.ac-chemistry-level){margin-bottom:16px}
@media(max-width:700px){.academic-page .ac-math-tabs{gap:6px}.academic-page .ac-math-tabs [role="tab"]{font-size:13px;padding-inline:5px}}

/* Keep the Math title clear of its smaller icon. */
.academic-page .ac-math-panel .ac-subject-title{justify-content:flex-start;gap:10px}
.academic-page .ac-math-panel .ac-subject-title h3{flex:0 0 auto}
.academic-page .ac-math-panel .ac-subject-title>svg{display:block;width:28px;height:28px;flex:0 0 28px;margin:0;overflow:hidden}
/* Match Kids & Teens hero size and leading together for the same visible line gap. */
.academic-page .ac-hero h1{}
@media(max-width:820px){.academic-page .ac-hero h1{}}
@media(max-width:600px){.academic-page .ac-hero h1{}}

.academic-page .ac-subjects .ac-intro>p{max-width:none}
