:root {
    --section-space: clamp(3.5rem, 5vw, 5rem);
    --section-gap: clamp(1.5rem, 2.8vw, 2.75rem);
    --reading-gap: clamp(.75rem, 1.25vw, 1.125rem);
}
.ace-site .home-hero .hero-grid { padding-block: clamp(2.5rem, 4.5vw, 4.5rem); }
.ace-site .home-hero .review-badge { margin-top: .5rem; }
.ace-site .program-section, .ace-site .proof-band, .ace-site .how-band { padding-block: var(--section-space); }
.ace-site .centre-grid, .ace-site .fee-layout, .ace-site .faq-block, .ace-site .end-inner { padding-block: var(--section-space); }
.ace-site .section-line { margin-block-end: var(--section-gap); }
.ace-site .program-cards { gap: clamp(1rem, 1.7vw, 1.6rem); }
.ace-site .program-note { margin-top: .85rem; }
.ace-site .centre-points { margin-top: 1.1rem; }
.ace-site .faq-list summary { padding-block: 1.1rem; line-height: 1.4; }
.ace-site .faq-list details p { max-width: 64ch; }
.ace-site .lesson-path p { max-width: 41ch; }
.ace-site .end-band a.paper-btn,
.ace-site .end-band a.paper-btn:visited { background: var(--paper); color: var(--ink); }
.ace-site .end-band a.paper-btn:hover { background: #fff; color: #1a3093; }
.ace-site .end-band .kicker { color: #e2e7ff; }
.ace-site .footer-grid h2 { margin-bottom: .85rem; }

.curriculum-band { padding-block: var(--section-space); background: #edf0e7; border-block: 1px solid #cdd3c6; }
.curriculum-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--section-gap); margin-bottom: var(--section-gap); }
.ace-site .curriculum-heading h2 { font-size: clamp(2.1rem, 3.9vw, 3.65rem); letter-spacing: -.042em; line-height: 1.05; }
.ace-site .curriculum-heading > p { max-width: 34ch; margin: 0 0 .16rem; line-height: 1.5; color: #404f4a; }
.stage-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #b9c5b9; border-radius: 10px; background: #fafbf5; padding: 4px; gap: 4px; }
.ace-site .stage-tabs a { color: #293d39; position: relative; display: flex; align-items: center; gap: .78rem; text-decoration: none; padding: .8rem clamp(.7rem,1.45vw,1.4rem); border-radius: 6px; min-height: 59px; }
.ace-site .stage-tabs a:hover { background: #e6ebe1; }
.ace-site .stage-tabs a[aria-selected="true"] { color: #fff; background: #263f3b; box-shadow: 0 2px 5px #24383214; }
.ace-site .stage-tabs a:focus-visible { z-index: 1; outline-offset: 2px; }
.stage-tabs .icon { font-size: 1.35rem; flex: none; }
.stage-tabs strong, .stage-tabs small { display: block; }
.stage-tabs strong { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.stage-tabs small { margin-top: .15rem; font-size: .76rem; line-height: 1.3; }
.learning-panels { margin-top: clamp(1rem, 2vw, 1.6rem); }
.learning-panel { display: grid; grid-template-columns: 1.06fr .94fr; align-items: stretch; gap: clamp(1.5rem, 4.5vw, 4.9rem); padding: clamp(1.4rem, 2.8vw, 2.8rem); border: 1px solid #c2ccc0; border-radius: 12px; background: #fffef8; }
.learning-panel + .learning-panel { margin-top: 1rem; }
.learning-panels[data-enhanced] .learning-panel { margin-top: 0; }
.stage-content { align-self: center; min-width: 0; }
.ace-site .stage-content h3 { font-size: clamp(1.65rem, 2.3vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: pretty; }
.ace-site .stage-content > p { margin: .65rem 0 0; line-height: 1.52; max-width: 53ch; color: #40504d; }
.learning-skills { margin: 1rem 0 .75rem; }
.learning-skills > div { padding: .7rem 0; border-top: 1px solid #dce2d8; }
.learning-skills dt { display: flex; align-items: center; gap: .5rem; font-weight: 680; font-size: .98rem; }
.learning-skills .icon { font-size: 1.04rem; color: #344e48; }
.learning-skills dd { margin: .25rem 0 0 1.55rem; color: #40504d; max-width: 46ch; font-size: .92rem; line-height: 1.5; }
.stage-content .text-link { min-height: 40px; }
.lesson-sheet { --sample-ink: #283ca5; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.2rem,2.4vw,2.25rem); border-radius: 8px; border: 1px solid #d1d9ef; background-color: #eff2ff; background-image: linear-gradient(#4052a810 1px, transparent 1px), linear-gradient(90deg,#4052a810 1px,transparent 1px); background-size: 22px 22px; color: #192840; }
.sheet-top { display: flex; align-items: center; gap: .5rem; color: var(--sample-ink); font-size: .85rem; font-weight: 680; }
.sheet-top .icon { font-size: 1.13rem; }
.ace-site .lesson-sheet h4 { margin: 1rem 0 .9rem; font: 650 clamp(1.2rem,1.75vw,1.7rem)/1.22 var(--display); letter-spacing: -.023em; max-width: 31ch; }
.fraction-sample { display: grid; gap: .6rem; max-width: 22rem; margin: .65rem 0 1.4rem; }
.fraction-sample > div { display: flex; gap: .6rem; align-items: center; }
.fraction-sample strong { font: 600 1.32rem/1 var(--display); width: 2.45rem; white-space: nowrap; }
.portion { display: flex; flex: 1; gap: 2px; padding: 2px; border: 1px solid var(--sample-ink); background: #f9faff; border-radius: 3px; min-height: 1.3rem; }
.portion i { flex: 1; background: #d9e1f4; }
.portion i + i { border-inline-start: 1px solid #b5c0dc; }
.portion i:first-child, .quarters i:nth-child(2) { background-color: var(--sample-ink); }
.lesson-expression, .ace-site .lesson-sentence { margin: .6rem 0 1.4rem; font: 600 clamp(1.5rem,3vw,2.8rem)/1.2 var(--display); letter-spacing: -.025em; color: var(--sample-ink); }
.ace-site .lesson-sentence { font-size: clamp(1.3rem,2vw,2.15rem); max-width: 22ch; }
.lesson-expression i { font-style: normal; }
.ace-site .sequence-sample { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1.4rem; }
.sequence-sample span { display: grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; border: 1px solid #a8b4e0; background: #fbfcff; border-radius: 4px; color: var(--sample-ink); font: 650 1.1rem var(--display); }
.sample-solution { align-self: stretch; border-top: 1px solid #bbc5e1; }
.sample-solution summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; font-weight: 680; font-size: .92rem; list-style: none; color: var(--sample-ink); }
.sample-solution summary::-webkit-details-marker { display: none; }
.sample-solution .open-label, .sample-solution[open] .closed-label { display: none; }
.sample-solution[open] .open-label { display: inline; }
.sample-solution[open] .icon { transform: rotate(180deg); }
.ace-site .sample-solution > p { margin: .15rem 0 .4rem; font-size: .92rem; max-width: 45ch; }
@media (max-width: 760px) {
    :root { --section-space: clamp(2.65rem, 7.5vw, 3.5rem); --section-gap: 1.35rem; }
    .ace-site .home-hero .hero-grid { padding-block: 2rem 2.5rem; }
    .ace-site .section-line { gap: .75rem; }
    .curriculum-heading { display: block; }
    .ace-site .curriculum-heading > p { max-width: 48ch; margin-top: .65rem; }
    .stage-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ace-site .stage-tabs a { min-height: 54px; gap: .55rem; padding: .55rem .75rem; }
    .stage-tabs strong { font-size: .89rem; }
    .stage-tabs small { font-size: .72rem; }
    .stage-tabs .icon { font-size: 1.1rem; }
    .learning-panel { grid-template-columns: minmax(0,1fr); gap: 1.15rem; padding: 1.15rem; }
    .learning-skills { margin: .85rem 0 .2rem; }
    .stage-content > p, .learning-skills dd, .sample-solution > p { font-size: .93rem; }
    .lesson-sheet { padding: 1.05rem 1.1rem .5rem; }
    .ace-site .lesson-sheet h4 { margin: .65rem 0 .45rem; }
    .fraction-sample { margin: .55rem 0 .9rem; }
    .ace-site .centre-grid { gap: var(--section-gap); }
}
@media (max-width: 360px) {
    .ace-site .stage-tabs a { gap: .35rem; padding-inline: .47rem; }
    .learning-panel { padding: .95rem; }
}
@media print {
    .learning-panels .learning-panel[hidden] { display: grid !important; }
    .stage-tabs, .side-book { display: none !important; }
}
