/* Academy page: a photograph with nothing on it, then the age cards and one age group's timetable (css/calendar.css),
   the call-request box, the whole fee table, the faculty in one frame, and "Every Child Deserves to Shine".
   Tokens only; photographs are never filtered, tinted or overlaid. */

/* review layer: where a photo is still a stand-in. Review only; the photograph itself is untouched. */
.ph-slot{display:none;padding:6px 10px;background:var(--paper);color:var(--review);font:700 .75rem/1.3 var(--text);letter-spacing:.01em}
[data-review=on] .ph-slot{display:block;box-shadow:inset 0 0 0 1.5px var(--review)}

/* ---------------------------------------------------------------- 2. the four reasons (page.css .proof, on white) */
.page-academy .sec{padding-block:clamp(56px,6.5vw,96px)}
.page-academy .sec--bar{padding-block:clamp(24px,3vw,40px)}
.proof li{align-content:start}
.nw{white-space:nowrap}

/* ---------------------------------------------------------------- 3. find the right class, and the call request */
.page-academy #classes .shead{margin-bottom:clamp(20px,3vw,32px)}
.page-academy #classes .shead .h2{max-width:none}
.cal__nojs,.cal__empty{margin:0;padding:14px 16px;border-radius:var(--r);background:var(--cal-note);font-size:var(--t-body);line-height:1.5}
.cal__nojs a,.cal__empty a{font-weight:600}
.page-academy .lead.help{padding:clamp(22px,3vw,40px)}
.help{margin-top:clamp(36px,5vw,72px)}
html:not(.js) .help{display:none}
.help .lead__title{font-size:clamp(1.9rem,1.4rem + 1.6vw,2.6rem)}
.help__body{display:grid;gap:18px;min-width:0}
.help .lead__step{gap:18px}
.help .lead__actions .btn{width:auto;justify-self:start}
.help .check{font-weight:400;min-height:44px;align-items:center}
@media (min-width:1000px){
  .help{grid-template-columns:repeat(12,minmax(0,1fr));gap:0 28px;align-items:center}
  .help__head{grid-column:1 / 5}
  .help__body{grid-column:6 / 13}
}
.has-tray .mbar{display:none}

/* ---------------------------------------------------------------- 4. fees: the whole table */
.fees2{display:grid;gap:28px}
.fees2 h3{margin-bottom:6px;font-family:var(--disp);font-weight:400;font-size:1.75rem;line-height:1.1}
.ftabs{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:18px}
.ftab{display:grid;gap:2px;align-content:center;min-height:64px;padding:10px 14px;border:0;border-radius:var(--r);background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--iline-2);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .2s var(--ease),color .2s var(--ease)}
.ftab b{font-weight:700;font-size:1rem;line-height:1.2}
.ftab small{font-size:.8125rem;line-height:1.3;color:var(--ink-2)}
.ftab:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.ftab[aria-selected=true]{background:var(--ink);color:var(--paper);box-shadow:none}
.ftab[aria-selected=true] small{color:var(--paper);opacity:.85}
.ftab:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
html:not(.js) .ftabs{display:none}
.fees-js .fpanes{display:grid}
.fees-js .fpane{grid-area:1/1;min-width:0}
.fees-js .fpane.is-off{visibility:hidden}
.fees-js .fpane__h{display:none}
.fpane+.fpane{margin-top:28px}.fees-js .fpane+.fpane{margin-top:0}
.fpane__h{margin:0 0 8px;font-weight:700}
.ftable{width:100%;border-collapse:collapse;border-top:1.5px solid var(--ink)}
.ftable th,.ftable td{padding:14px 10px 14px 12px;border-bottom:1px solid var(--iline);text-align:left;vertical-align:baseline}
.ftable thead th{padding-block:12px;font-size:var(--t-small);font-weight:700;color:var(--ink-2)}
.ftable tbody th{font-family:var(--disp);font-weight:400;font-size:1.375rem;line-height:1.15}
.ftable th small{display:block;margin-top:2px;font-family:var(--text);font-size:.9375rem;font-weight:400;line-height:1.3;color:var(--ink-2)}
.ftable td{font-weight:700;font-size:1.5rem;font-variant-numeric:tabular-nums lining-nums}
.ftable td .per{font-size:.875rem;font-weight:500;color:var(--ink-2);white-space:nowrap}
.ftable tbody tr:last-child:not(:first-child) th,.ftable tbody tr:last-child:not(:first-child) td{background:var(--mist)}
.fees2__min{margin:18px 0 0;font-size:var(--t-lede);line-height:1.35;color:var(--ink)}
.ftable__note{margin-top:8px;max-width:58ch}
.fees2__incl{display:flex;flex-direction:column;gap:6px;padding:clamp(24px,3vw,40px);border-radius:var(--r);box-shadow:inset 0 5px 0 var(--g)}
.fees2__incl h3{font-size:clamp(2rem,1.5rem + 1.6vw,2.7rem);line-height:1}
.fees2__inclede{margin:0 0 14px;font-size:var(--t-lede);line-height:1.4;color:var(--light-2)}
.tick{display:grid;gap:12px}
.tick li{position:relative;padding-left:30px;font-size:var(--t-body);line-height:1.45}
.tick li::before{content:"";position:absolute;left:2px;top:.5em;width:13px;height:7px;border-left:2.5px solid var(--ink);border-bottom:2.5px solid var(--ink);transform:rotate(-45deg)}
.fees2__incl .tick{flex:1;align-content:space-between;gap:10px}
.fees2__incl .tick li{padding-left:36px;font-size:1.1875rem;font-weight:600;color:var(--light)}
.fees2__incl .tick li::before{left:3px;top:.55em;width:15px;height:8px;border-color:var(--g)}
@media (min-width:600px){.ftabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1000px){.fees2{grid-template-columns:repeat(12,minmax(0,1fr));gap:0 28px;align-items:stretch}.fees2__table{grid-column:1 / 8}.fees2__incl{grid-column:8 / 13}}
@media (max-width:480px){.ftable th,.ftable td{padding-inline:8px 4px}.ftable td{font-size:1.3rem}.ftable tbody th{font-size:1.25rem}}

/* ---------------------------------------------------------------- 6. every child deserves to shine: three equal editorial cards */
.page-academy .shead--shine{grid-template-columns:minmax(0,1fr)}
.page-academy .shead--shine>*{grid-column:1}
.shead--shine .lede{max-width:56ch}
.shine{display:grid;gap:clamp(36px,5vw,48px)}
.scard{display:grid;grid-template-rows:auto 1fr;min-width:0}
.scard__ph{position:relative;margin:0;aspect-ratio:1/1;overflow:hidden;border-radius:var(--r);background:var(--well)}
.scard__ph img{width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 40%)}
.scard__ph .ph-slot{position:absolute;left:0;right:0;bottom:0}
.scard__body{display:flex;flex-direction:column;gap:12px;padding:22px 2px 0}
.scard__h{font-family:var(--disp);font-weight:400;font-size:clamp(1.9rem,1.5rem + 1.2vw,2.4rem);line-height:1.02;letter-spacing:-.01em}
.scard__tag{margin-top:-4px;font-weight:700;font-size:var(--t-body);line-height:1.3;color:var(--ink)}
.scard__lead{font-size:1.125rem;line-height:1.45;font-weight:600;color:var(--ink)}
.scard__body p:not([class]){font-size:var(--t-body);line-height:1.55;color:var(--ink-2)}
.scard__req{margin-top:auto;min-height:calc(2 * 1.4em + 1.45 * .9375em + 20px);padding-top:14px;border-top:1.5px solid var(--ink);font-size:var(--t-body);line-height:1.4;color:var(--ink)}
.scard__body>:nth-last-child(2){margin-bottom:6px}
.shine__both{margin-top:clamp(32px,4vw,48px);max-width:60ch;font-family:var(--disp);font-size:clamp(1.4rem,1.15rem + .9vw,1.9rem);line-height:1.22;text-wrap:balance;color:var(--ink)}
@media (min-width:900px){.shine{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.scard__ph{aspect-ratio:4/5}}

/* ---------------------------------------------------------------- 7. questions and the close */
.endband{display:grid;gap:48px}
.endband__faq .h2{margin-bottom:22px}
.endband__close{display:grid;gap:18px;align-content:start}
.endband__close .lede{max-width:34ch}
.callbox small a.inl{display:inline-flex;align-items:center;min-height:44px;font:inherit;font-weight:600;text-decoration:underline}
@media (min-width:1000px){
  .endband{grid-template-columns:repeat(12,minmax(0,1fr));gap:0 28px;align-items:start}
  .endband__faq{grid-column:1 / 7}
  .endband__close{grid-column:8 / 13}
}

/* ---------------------------------------------------------------- print: only the timetable of the age group that is open */
@page{size:A4 landscape;margin:10mm}
@media print{
  html,body{background:var(--paper)!important;color:var(--ink)!important}
  .notice,.mast,.sheet,.mbar,.toast,.skip,.foot,.p2hero,.agecards,.help,.tray,.req,.tsheet,.cal__skip,.cal__note,.agebar__menu,.cls__pick,.cls__ask,.cal__legend .flag--full,
  main>section:not(#classes){display:none!important}
  #classes{padding:0!important;box-shadow:none!important;background:none!important}
  #classes .shead{display:none}
  .agebar{position:static;border-bottom:1.5px solid var(--ink)}
  .cal__stage{display:grid!important;grid-template-columns:repeat(var(--units),minmax(0,1fr))!important;gap:0 6mm!important;max-width:none!important}
  .cls{break-inside:avoid;background:none!important;box-shadow:inset 0 0 0 1px var(--ink)!important;padding:2mm 3mm!important}
  .cls__name{font-size:10pt}.cls__time{font-size:10pt}.cls__who{font-size:8.5pt}
  .vh{display:none!important}
}

/* ================= owner notes 2026-10-30 ================= */
/* the not-sure box has its own pale band now */
.page-academy #help-sec .help{margin-top:0}

/* a charcoal band: the classes (the timetable cards stay white so they stand out) and "Every child deserves to shine" */
.page-academy .band-dark .shead .h2{color:var(--light)}
.page-academy .band-dark .scard__tag,.page-academy .band-dark .scard__lead,.page-academy .band-dark .shine__both{color:var(--light)}
.page-academy .band-dark .scard__body p:not([class]){color:var(--light-2)}
.page-academy .band-dark .scard__req{border-top-color:var(--line-2);color:var(--light)}
/* owner 2026-11-12: an example week under each prerequisite, smaller and lighter: a guide, not a requirement */
.scard__ex{display:block;margin-top:6px;font-size:var(--t-small);line-height:1.45;color:var(--light-3)}
.page-academy .band-dark .scard__ph{background:var(--well)}

/* the timetable buttons (2027 first, then 2026 until 15 December) */
.tterm{display:flex;flex-wrap:wrap;gap:8px;align-self:center}
.tterm[hidden]{display:none}
.tterm__b{min-height:48px;padding:0 24px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--light);font:700 1rem/1 var(--text);cursor:pointer;transition:background-color .2s var(--ease),color .2s var(--ease)}
.tterm__b:hover{box-shadow:inset 0 0 0 2px var(--light)}
.tterm__b[aria-pressed=true]{background:var(--light);color:var(--stage);box-shadow:none}
.tterm__b:focus-visible{outline:2px solid var(--light);outline-offset:3px}
@media (min-width:1000px){.page-academy #classes .shead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 28px}}

/* cards: white, dark ink, on the charcoal band */
.band-dark .acal .agecard,.band-dark .acal .cls{
  --cal-ink:var(--ink);--cal-ink-2:var(--ink-2);--cal-line:var(--iline);--cal-line-2:var(--iline-2);
  --cal-cell:var(--paper);--cal-cell-full:#E6E8EB;--cal-cell-sel:#FFFFFF;
  --cal-hover:var(--ink);--cal-sel:var(--ui);--cal-today-bg:var(--ink);--cal-today-ink:var(--paper);
  --cal-flag-bg:var(--ink);--cal-flag-ink:var(--paper)}
.band-dark .acal .cls[data-full]{background:var(--cal-cell-full)}
.agecards__note{margin:14px 0 0;max-width:none;font-size:var(--t-small);line-height:1.5;color:var(--light-2)}
.cal__stage{scroll-margin-top:calc(var(--hdr,62px) + 96px)}

/* the 2 classes a week notice in the tray */
.tray [hidden]{display:none!important}
.tray__min{grid-area:min;display:grid;gap:4px;margin:6px 0 2px;padding:10px 14px;border-radius:var(--r);background:var(--cal-note);font-size:var(--t-small);line-height:1.45}
.tray__min p{margin:0}
.tray__min.is-ok p{display:none}
.tray__min .check{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:700;cursor:pointer}
.tray__min .check input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--light)}
.tray__more.btn{min-height:48px;cursor:pointer;gap:10px}

/* the Instagram strip sits on white after the pale end band */
.page-academy .feedband{background:var(--stage)}

/* age cards: the name and the check on one row, "Recommended for ages ..." on its own line under them */
.page-academy .agecard__t b{grid-column:1;grid-row:1}
.page-academy .agecard__t .agecard__ck{grid-column:2;grid-row:1}
.page-academy .agecard__t small{grid-column:1 / -1;grid-row:2}
/* ================= owner notes 2026-11-03 ================= */
/* the timetable now sits on a pale band (the header is charcoal and the bands alternate from there); the white cards lift off it with a small shadow */
.page-academy #classes .acal .agecard,.page-academy #classes .acal .cls{filter:drop-shadow(0 1px 2px rgba(20,24,38,.10)) drop-shadow(0 6px 14px rgba(20,24,38,.08))}
/* her two lines under the three cards */
.shine__both span{display:block}
.shine__both span+span{margin-top:.15em}
/* Birthday parties: text left, the ribbon-dancing photograph right, Academy orange as the accent (also used on /parties/) */
.btn--ac{background:var(--ac);color:var(--ink)}.btn--ac:hover{background:#FFB04A}
.page-academy .pparty{padding-block:0}
.pparty{overflow:hidden}
.pparty__in{display:grid}
.pparty__copy{display:grid;align-content:center;justify-items:start;gap:var(--hero-gap,20px);padding:clamp(40px,6vw,72px) var(--gut)}
.pparty .h2{max-width:14ch;font-size:clamp(2.2rem,1.4rem + 2.8vw,3.6rem)}
.pparty .lede{margin:0;max-width:34ch}
.pparty__ph{position:relative;margin:0;aspect-ratio:3/2;background:var(--well)}
.pparty__ph img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 46%)}
@media (min-width:1000px){
  .pparty__in{grid-template-columns:minmax(0,5fr) minmax(0,7fr);min-height:clamp(340px,30vw,440px)}
  .pparty__copy{padding:clamp(40px,5vw,72px) var(--hero-px,56px)}
  .pparty__ph{aspect-ratio:auto;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%);mask-image:linear-gradient(90deg,transparent 0,#000 14%)}
}

.extras__fn{display:block;margin-top:4px;font-size:var(--t-small);opacity:.8}
.fees2__fn{margin:10px 0 0;color:var(--light-2)}

/* ================= owner notes 2026-11-13 ================= */
/* Showtroupe and Elite: "View Prerequisites" under the teacher opens a light grey box inside the card; the card grows, nothing is covered.
   It sits above the card-wide "Add to trial" target (.cls__pick::after), so opening it never adds the class. */
.acal .cls__pre{grid-area:pre;position:relative;z-index:1;margin:2px 0 0}
.cls__pre summary{display:inline-flex;align-items:center;gap:4px;min-height:32px;list-style:none;font-size:.8125rem;font-weight:600;color:var(--cal-ink);text-decoration:underline;text-decoration-color:var(--cal-line-2);text-underline-offset:.24em;text-decoration-thickness:1.5px;cursor:pointer}
.cls__pre summary::-webkit-details-marker{display:none}
.cls__pre summary:hover{text-decoration-color:var(--cal-ink)}
.cls__pre summary:focus-visible{outline:2px solid var(--cal-focus);outline-offset:2px;border-radius:2px}
.cls__pre summary .ico{width:14px;height:14px;transition:transform .2s var(--ease)}
.cls__pre[open] summary .ico{transform:rotate(180deg)}
.cls__prebox{display:grid;gap:2px;margin:4px 0 2px;padding:10px 12px;border-radius:var(--r);background:#F1F2F4;font-size:.8125rem;line-height:1.45;color:var(--cal-ink)}
.cls__prebox p{margin:0}
.cls__preh{font-size:.6875rem;font-weight:700;letter-spacing:.06em;color:var(--cal-ink-2)}
.cls__preh:not(:first-child){margin-top:8px!important}

/* the trial tray: prerequisite notices in the same grey as the 2 classes a week notice, under it */
.tray__pre{grid-area:pre;display:grid;gap:6px;margin:6px 0 2px;padding:10px 14px;border-radius:var(--r);background:var(--cal-note);font-size:var(--t-small);line-height:1.45}
.tray__pre p{margin:0}
.tray__pre b{font-weight:700}
/* the tick works like the 2 classes a week one: ticked, the notice text folds away and the request can go */
.tray__pre.is-ok p{display:none}
.tray__pre .check{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:700;cursor:pointer}
.tray__pre .check input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--light)}

/* the re-enrolment bar: white, a fine line and a soft shadow above, Academy orange button; slides in while the timetable section is on screen */
.rebar{position:fixed;left:0;right:0;bottom:0;z-index:64;padding:8px 0 calc(8px + env(safe-area-inset-bottom));background:#FFFFFF;border-top:1px solid var(--cal-line-2,rgba(20,24,38,.14));box-shadow:0 -6px 18px rgba(20,24,38,.08);transform:translateY(105%);visibility:hidden;transition:transform .35s var(--ease),visibility 0s linear .35s}
.rebar.is-on{transform:none;visibility:visible;transition:transform .35s var(--ease),visibility 0s}
.rebar__in{display:flex;align-items:center;justify-content:space-between;gap:12px 24px}
.rebar__t{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0;font-size:var(--t-small);line-height:1.3;color:var(--ink-2,#3a3f4b)}
.rebar__t b{font-size:1rem;font-weight:700;color:var(--ink,#141826)}
.rebar__go.btn{flex:none;min-height:48px;padding:0 22px;font-size:.9375rem;letter-spacing:.04em;cursor:pointer}
@media (prefers-reduced-motion:reduce){.rebar,.rebar.is-on{transition:none}}
/* phones: just the button, full width; it takes the place of the bottom bar while the timetable is on screen */
@media (max-width:759px){
  .rebar__t{display:none}
  .rebar__go.btn{width:100%;justify-content:center}
  .has-rebar .mbar{display:none}
}
/* the trial tray stops above the bar, and the section ends with room for the bar so the last classes and the tray are never under it */
.has-rebar .tray{bottom:var(--rebar-h,64px);padding-bottom:12px}
.has-rebar #classes{padding-bottom:calc(clamp(56px,6.5vw,96px) + var(--rebar-h,64px))}
html:has(body.has-rebar){scroll-padding-bottom:calc(var(--rebar-h,64px) + 16px)}
@media print{.rebar,.cls__pre{display:none!important}}

/* owner notes 2026-11-13, extended to desktop 2026-11-13 (her first note only ever reached mobile): the requirement
   notices fold into one compact line ("Still needed: 2-class minimum, Showtroupe prerequisites") on every screen size;
   a tap opens the full notices and their tick boxes, which scroll inside the tray if long, so the timetable stays in
   view. Desktop keeps its own two-column tray (the selected-class chips and Clear/Request buttons stay as they were,
   see calendar.css); only the requirement boxes below them compact the same way mobile's already did. */
.tray__reqs{display:contents}
.tray__req{display:none}
.tray__req:not([hidden]){grid-area:req;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:6px 12px;border:0;border-radius:var(--r);background:var(--cal-note);color:var(--cal-ink);font:inherit;font-size:var(--t-small);line-height:1.3;text-align:left;cursor:pointer}
.tray__req:focus-visible{outline:2px solid var(--cal-focus);outline-offset:2px}
.tray__reqt{min-width:0}
.tray__reqt b{font-weight:700}
.tray__reqt .ico{width:16px;height:16px;margin-right:6px;vertical-align:-3px}
.tray__reqm{flex:none;display:inline-flex;align-items:center;gap:4px;font-weight:600;text-decoration:underline;text-underline-offset:.22em}
.tray__reqm .ico{width:14px;height:14px;transition:transform .2s var(--ease)}
.tray__reqm .t-on{display:none}
.is-req-open .tray__reqm .t-on{display:inline}.is-req-open .tray__reqm .t-off{display:none}
.is-req-open .tray__reqm .ico{transform:rotate(180deg)}
.tray__reqs{grid-area:reqs;display:none;gap:6px;max-height:45vh;overflow:auto;overscroll-behavior:contain}
.tray.is-req-open .tray__reqs{display:grid}
.tray__reqs>*{grid-area:auto;margin:0}
