/* theme-v3 part 4 of 4 (sp1, 2 Dec 2026: split so each file stays under the host's 128 KB limit; pages link all parts in order) */

/* --- MM APPLE (Nov 2026, retuned to apple.com's global nav timing): the panel unrolls downward over
   0.56s on Apple's curve (.52,.16,.24,1); its contents fade in 0.32s on (.4,0,.6,1), each moving down
   only a few pixels, one after another 30ms apart (intro, links, spotlight, strip). Closing starts at once and rolls the
   panel smoothly back up over 0.55s, slowing as it finishes. The page behind dims and blurs.
   Uses clip-path, filter and the translate property, so older opacity/transform locks do not block it. --- */
@media (min-width:1081px){
  html{--mm-glide:cubic-bezier(.52,.16,.24,1);--mm-ease-in:cubic-bezier(.4,0,.6,1)}
  html body:is(.ds,.dsc) .site-header .site-nav__group .site-nav__panel.mm.mm6{clip-path:inset(0 0 100% 0 round 16px);
    transition:clip-path .55s cubic-bezier(.25,.6,.3,1),opacity .12s linear .53s,visibility 0s linear .65s!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6{clip-path:inset(-40px -60px -80px -60px round 16px);
    transition:clip-path .56s var(--mm-glide),opacity .2s var(--mm-ease-in),visibility 0s!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group .site-nav__panel.mm.mm6 :is(.mm6__ed,.mm6__si){opacity:1!important}
  @keyframes mmApple{from{filter:opacity(0);translate:0 -6px}to{filter:opacity(1);translate:0 0}}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 :is(.mm6__ed,.mm__item,.mm6__spot,.mm6__strip){animation:mmApple .32s var(--mm-ease-in) both!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm6__ed{animation-delay:120ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm__item:nth-child(1){animation-delay:150ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm__item:nth-child(2){animation-delay:180ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm__item:nth-child(3){animation-delay:210ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm__item:nth-child(4){animation-delay:240ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm__item:nth-child(5){animation-delay:270ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm__item:nth-child(6){animation-delay:300ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm__item:nth-child(7){animation-delay:330ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm6__spot{animation-delay:240ms!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 .mm6__strip{animation-delay:320ms!important}
  html.is-nav-open .nav-scrim{background:rgba(6,20,45,.24)!important;-webkit-backdrop-filter:blur(12px) saturate(1.1)!important;backdrop-filter:blur(12px) saturate(1.1)!important}
  .nav-scrim{transition:opacity .56s var(--mm-glide),visibility .56s,-webkit-backdrop-filter .56s var(--mm-glide),backdrop-filter .56s var(--mm-glide)!important}
}
@media (min-width:1081px) and (prefers-reduced-motion:reduce){
  html body:is(.ds,.dsc) .site-header .site-nav__group .site-nav__panel.mm.mm6,html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6{clip-path:none;transition:opacity .2s ease,visibility 0s!important}
  html body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 :is(.mm6__ed,.mm__item,.mm6__spot,.mm6__strip){animation:none!important}
}

/* --- MM SWAP (Nov 2026): once a mega menu is open, moving along the bar to another menu word
   cross-fades the panels in place: the new panel fades in over 0.28s ON TOP of the old one, which
   stays fully visible underneath until the fade is done and only then hides. No roll-up, no empty
   card, no flash. nav-v2.js sets html.mm-swap on a switch and clears it on a fresh open or a close
   (so closing after a switch still rolls up smoothly). --- */
@media (min-width:1081px){
  html.mm-swap body:is(.ds,.dsc) .site-header .site-nav__group .site-nav__panel.mm.mm6{clip-path:inset(-40px -60px -80px -60px round 16px)!important;z-index:1!important;
    transition:opacity 0s linear .3s,visibility 0s linear .3s!important}
  html.mm-swap body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6{clip-path:inset(-40px -60px -80px -60px round 16px)!important;z-index:3!important;
    transition:opacity .28s cubic-bezier(.4,0,.6,1),visibility 0s!important}
  html.mm-swap body:is(.ds,.dsc) .site-header .site-nav__group:is(.is-hover,.is-open,:has(:focus-visible)) .site-nav__panel.mm.mm6 :is(.mm6__ed,.mm__item,.mm6__spot,.mm6__strip){animation:none!important}
}

/* --- MM COVER (Nov 2026): the Admissions menu spotlight shows the prospectus cover in the same frame,
   border, inner shade, bracket animation and hover effects as the other menus' photos; no text.
   Links to the Prospectus page. --- */
html body:is(.ds,.dsc) .site-header .site-nav__panel.mm.mm6 a.mm6__spot--cover .mm6__ph img{object-position:center 40%!important}

/* --- MM NO SHADE (Nov 2026): the dark shade on the lower part of the mega menu photos is removed;
   only the light top tint that gives the inner frame its depth stays. --- */
html body:is(.ds,.dsc) .site-header .site-nav__panel.mm.mm6 a.mm6__spot::before{background:linear-gradient(180deg,rgba(9,16,29,.35) 0%,rgba(9,16,29,0) 24%)!important}

/* grey filter removed (Nov 2026): the photos show in full colour at rest; hover still zooms. */
html body:is(.ds,.dsc) .site-header .mm6 a.mm6__spot .mm6__ph img{filter:none!important}

/* --- FEES LIKE APPLY (Nov 2026): the Tuition and Fees estimate uses the Apply page's look. Choices
   sit left like the form; the sum sits right in the same white panel as Apply's "Before You Start"
   (.ds-task__aside); labels are the form's grey mono field labels; choice buttons are drawn like
   .ds-input fields, and the chosen one fills with the navy of the header's language switch. --- */
.ds-fees .ds-est{grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:clamp(28px,4vw,64px)}
.ds-fees .ds-est__f > .ds-label{margin-bottom:10px;color:var(--t2)}
.ds-fees .ds-seg{gap:8px}
.ds-fees .ds-seg button{height:50px;min-width:50px;padding:0 16px;background:#fff;border:1px solid rgba(10,35,66,.18);border-radius:var(--ds-radius-sm);
  font-family:var(--ds-font-ui);font-size:16px;font-weight:var(--ds-w-regular);color:var(--ds-ink);
  transition:border-color var(--ds-fast) var(--ds-ease),box-shadow var(--ds-fast) var(--ds-ease),color var(--ds-fast) var(--ds-ease)}
.ds-fees .ds-seg button:hover{border-color:rgba(10,35,66,.32)}
.ds-fees .ds-seg button[aria-pressed="true"]{background:#283E5A;color:#fff;font-weight:var(--ds-w-semibold);border-color:#283E5A;box-shadow:none}  /* the navy of the header's language switch */
.ds-fees .ds-seg--two button{flex:1 1 0;padding:0 10px}
@media (max-width:620px){.ds-fees .ds-seg--two button{flex:1 1 calc(50% - 4px)}}
.ds-fees .ds-est__sum{top:calc(var(--ds-bar,68px) + 24px);padding:clamp(22px,2.4vw,32px);border:var(--ds-line);border-radius:var(--ds-radius);background:#fff;color:var(--ds-ink);box-shadow:none}
.ds-fees .ds-est__sum .ds-label{color:var(--k)}
.ds-fees .ds-est__big{color:var(--ds-ink)}
.ds-fees .ds-est__big small{color:var(--ds-ink-3)}
.ds-fees .ds-est__cap{color:var(--ds-ink-2)}
.ds-fees .ds-est__lines{border-top:var(--ds-line)}
.ds-fees .ds-est__lines li{border-bottom:var(--ds-line);font-size:14.5px;color:var(--ds-ink-2)}
.ds-fees .ds-est__lines b{color:var(--ds-ink)}
.ds-fees .ds-est__lines .is-off b{color:var(--k)}
.ds-fees .ds-est__lines .is-total,.ds-fees .ds-est__lines .is-total b{color:var(--ds-ink)}
.ds-fees .ds-est__note{color:var(--ds-ink-3)}
/* est-slate: the estimate card takes the navy of the header's language switch, with light text */
.ds-fees .ds-est__sum{background:#283E5A;border-color:#283E5A;color:#fff}
.ds-fees .ds-est__sum .ds-label{color:var(--ds-kicker-dark)}
.ds-fees .ds-est__big{color:#fff}
.ds-fees .ds-est__big small{color:rgba(255,255,255,.6)}
.ds-fees .ds-est__cap{color:rgba(255,255,255,.78)}
.ds-fees .ds-est__lines{border-top:1px solid rgba(255,255,255,.18)}
.ds-fees .ds-est__lines li{border-bottom:1px solid rgba(255,255,255,.18);color:rgba(255,255,255,.78)}
.ds-fees .ds-est__lines b,.ds-fees .ds-est__lines .is-total,.ds-fees .ds-est__lines .is-total b{color:#fff}
.ds-fees .ds-est__lines .is-off b{color:var(--ds-kicker-dark)}
.ds-fees .ds-est__note{color:rgba(255,255,255,.62)}
/* est-compact (Nov 2026): smaller choices and a tighter card, so the whole estimate fits one laptop screen */
.ds-fees #estimate .ds-sec__in{padding-top:clamp(32px,4vw,56px);padding-bottom:clamp(40px,5vw,72px)}
.ds-fees .ds-est{grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:clamp(24px,3.2vw,48px)}
.ds-fees .ds-est__q{gap:clamp(16px,1.8vw,22px)}
.ds-fees .ds-est__f > .ds-label{margin-bottom:8px}
.ds-fees .ds-seg{gap:6px}
.ds-fees .ds-seg button{height:40px;min-width:40px;padding:0 12px;font-size:14.5px}
.ds-fees .ds-seg--grades button{width:40px;padding:0}
.ds-fees .ds-est__sum{padding:clamp(20px,2vw,28px)}
.ds-fees .ds-est__big{font-size:clamp(30px,2.8vw,40px);margin:8px 0 2px}
.ds-fees .ds-est__lines{margin-top:16px}
.ds-fees .ds-est__lines li{padding:9px 0;font-size:14px}
.ds-fees .ds-est__note{margin-top:12px;font-size:12px}
@media (max-width:1000px){.ds-fees .ds-est{grid-template-columns:minmax(0,1fr)}}
@media (max-width:620px){.ds-fees .ds-seg--grades button{width:auto}.ds-fees .ds-seg button{font-size:13.5px;padding:0 8px;line-height:1.15}}
@media (max-width:1000px){.ds-fees .ds-est{grid-template-columns:minmax(0,1fr)}.ds-fees .ds-est__sum{position:static}}

/* --- TASK FIELDS (Nov 2026): on Apply and Book a Tour (.ds-task) the form fields match the Tuition and
   Fees choice buttons: 40px high, 14.5px text. Phones keep 16px text so iPhones do not zoom into a field. --- */
.ds-task .ds-input{height:40px;padding:0 12px;font-size:14.5px;line-height:38px}
.ds-task select.ds-input{padding-right:40px;background-position:right 12px center}
.ds-task textarea.ds-input{height:auto;min-height:110px;padding:9px 12px;line-height:1.5}
.ds-task .ds-field{gap:6px}
@media (max-width:620px){.ds-task .ds-input{font-size:16px}}

/* --- KARDAN GRADIENT SAMPLE (Nov 2026, signed off on Lower Primary, now on every page): the Our Promise
   section takes the Kardan One dashboard gradient (navy-blue to purple to CST red).
   The wider gap between the "Our promise" wordmark and the statement applies to every promise section. --- */
html body .ds-promise__kick{margin-bottom:clamp(48px,5.5vw,84px)!important}
html body .ds-promise{background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%)!important}

/* promise statement: held back for a moment until the web fonts have loaded, so a refresh does not
   show it first in a stand-in font and then re-wrap it (html.pf-wait is set and cleared by ds-lines.js) */
html.pf-wait .ds-promise__title{visibility:hidden}
html .ds-promise__title{transition:opacity .4s ease}

/* --- DS JOB (Nov 2026, Careers): the full job posting, a sheet that
   slides in from the right over the page (a native <dialog>). Head:
   context label, title and the facts list; body: the posting's
   sections, lists as short ruled bullets; foot: one Apply button that
   stays in view. Full width on phones. */
.ds-job{position:fixed;inset:0 0 0 auto;margin:0 0 0 auto;padding:0;border:0;width:min(720px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;
  background:var(--ds-ground-paper);color:var(--t2);box-shadow:-30px 0 80px rgba(10,14,24,.22);overflow:hidden}
.ds-job[open]{display:flex;flex-direction:column;animation:ds-job-in .34s cubic-bezier(.2,.7,.2,1)}
.ds-job::backdrop{background:rgba(10,14,24,.55)}
@keyframes ds-job-in{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.ds-job[open]{animation:none}}
.ds-job__scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:clamp(28px,4vw,52px) clamp(20px,4.5vw,56px) clamp(28px,3vw,40px)}
.ds-job__head{position:relative;display:flex;flex-direction:column;gap:12px}
.ds-job__head > .ds-label,.ds-job__head > .ds-h3{margin-right:60px}
.ds-job__head .ds-h3{margin:0;color:var(--t1)}
.ds-job__head .ds-vacancy__meta{margin-top:10px}
.ds-job__x{position:absolute;top:-6px;right:0;width:44px;height:44px;border-radius:50%;border:1px solid var(--btn-line);background:transparent;color:var(--t1);
  font-size:26px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background .2s,color .2s}
.ds-job__x:hover,.ds-job__x:focus-visible{background:var(--t1);color:var(--on-t1)}
.ds-job__sec{margin-top:clamp(26px,3vw,36px)}
.ds-job__sec + .ds-job__sec{padding-top:clamp(26px,3vw,36px);border-top:var(--ds-line)}
.ds-job__sec .ds-h4{margin:0 0 12px;color:var(--t1)}
.ds-job__list{margin:0;padding:0;list-style:none}
.ds-job__list li{position:relative;padding-left:24px;font-family:var(--ds-font-text);font-size:var(--ds-size-body);line-height:var(--ds-lh-text);color:var(--t2)}
.ds-job__list li + li{margin-top:.6em}
.ds-job__list li::before{content:"";position:absolute;left:0;top:.8em;width:12px;height:1px;background:var(--k)}
.ds-job__foot{flex:none;padding:16px clamp(20px,4.5vw,56px);border-top:var(--ds-line);background:var(--ds-ground-paper)}
@media (max-width:760px){.ds-job__foot .ds-btn{width:100%}
  .ds-job .ds-vacancy__meta{grid-template-columns:1fr;gap:2px}
  .ds-job .ds-vacancy__meta dd + dt{margin-top:10px}}

/* =====================================================================
   DS FEES (Nov 2026): the Tuition and Fees page (pages/fees.html), with
   no drawer. Everything is on the page, in six short parts, reached from
   a bar of links that stays under the header:
   - .ds-feenav        the bar of section links (the current one is marked)
   - .ds-seg           a row of choices (grade, plan); one is pressed
   - .ds-est           the estimate: choices on the left, the sum on the right
   - .ds-feerows       tuition by grade: a name, a bar, the two amounts
   - .ds-feetiles      a row of tiles led by one large figure
   - .ds-chips         short facts in a row
   - .ds-copy          a value with a Copy button (the bank account)
   Figures come from the page; the estimate script is at the end of it.
   ===================================================================== */

.ds-seg button:focus-visible{outline:2px solid var(--ds-static);outline-offset:2px}
.ds-fees .ds-sec{scroll-margin-top:calc(var(--ds-bar) + 56px)}
.ds-fees .ds-head .ds-lede{max-width:44em}

/* a row of choices */
.ds-seg{display:flex;flex-wrap:wrap;gap:6px}
.ds-seg button{min-width:46px;height:44px;padding:0 14px;border-radius:var(--ds-radius-sm);border:1px solid rgba(10,35,66,.16);background:var(--ds-ground-paper);cursor:pointer;
  font-family:var(--ds-font-ui);font-size:var(--ds-size-ui);font-weight:var(--ds-w-medium);line-height:1;color:var(--ds-ink);
  transition:background var(--ds-fast) var(--ds-ease),color var(--ds-fast) var(--ds-ease),border-color var(--ds-fast) var(--ds-ease)}
.ds-seg button:hover{border-color:var(--ds-ink)}
.ds-seg button[aria-pressed="true"]{background:var(--ds-ink);border-color:var(--ds-ink);color:var(--ds-ground-paper)}
.ds-seg--fill button{flex:1 1 0}

/* the estimate */
.ds-est{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(24px,3.4vw,56px);align-items:start}
.ds-est__q{display:grid;gap:clamp(22px,2.4vw,32px)}
.ds-est__f{margin:0;padding:0;border:0;min-width:0}
.ds-est__f > .ds-label{margin-bottom:12px;color:var(--k)}
.ds-est__sum{position:sticky;top:calc(var(--ds-bar) + 76px);padding:clamp(24px,2.6vw,36px);border-radius:var(--ds-radius);background:var(--ds-ground-navy);color:var(--ds-paper);box-shadow:var(--ds-shadow-card)}
.ds-est__sum .ds-label{color:var(--ds-kicker-dark)}
.ds-est__big{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 10px;margin:10px 0 4px;font-family:var(--ds-font-ui);font-weight:var(--ds-w-medium);
  font-size:clamp(34px,3.6vw,52px);line-height:1.05;letter-spacing:var(--ds-track-title);color:var(--ds-paper)}
.ds-est__big small,.ds-feerows small{font-family:var(--ds-font-mono);font-size:var(--ds-size-label);font-weight:var(--ds-w-medium);letter-spacing:var(--ds-track-label);text-transform:uppercase}
.ds-est__big small{color:var(--ds-paper-3)}
.ds-est__cap{margin:0;font-family:var(--ds-font-ui);font-size:var(--ds-size-ui-sm);color:var(--ds-paper-2)}
.ds-est__lines{margin:22px 0 0;padding:0;list-style:none;border-top:var(--ds-line-dark)}
.ds-est__lines li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 0;border-bottom:var(--ds-line-dark);
  font-family:var(--ds-font-ui);font-size:var(--ds-size-ui);line-height:1.35;color:var(--ds-paper-2)}
.ds-est__lines li[hidden]{display:none}
.ds-est__lines b{font-weight:var(--ds-w-medium);color:var(--ds-paper);white-space:nowrap}
.ds-est__lines .is-off b{color:var(--ds-kicker-dark)}
.ds-est__lines .is-total{color:var(--ds-paper);font-weight:var(--ds-w-semibold)}
.ds-est__lines .is-total b{font-weight:var(--ds-w-semibold)}
.ds-est__note{margin:16px 0 0;font-family:var(--ds-font-ui);font-size:var(--ds-size-ui-xs);line-height:1.55;color:var(--ds-paper-3)}

/* tuition by grade */
.ds-feerows{margin:0;padding:0;list-style:none;border-top:var(--ds-line)}
.ds-feerows li{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(0,2fr) minmax(150px,auto) minmax(150px,auto);align-items:center;column-gap:clamp(16px,2.4vw,40px);
  padding:16px 0;border-bottom:var(--ds-line)}

.ds-feerows small{margin-left:6px;color:var(--ds-ink-3)}
.ds-feerows .is-you{background:linear-gradient(90deg,rgba(201,162,39,.14),rgba(201,162,39,0) 70%);box-shadow:inset 3px 0 0 var(--ds-static);padding-left:14px}

/* short facts */
.ds-chips{display:flex;flex-wrap:wrap;gap:8px;margin:clamp(22px,2.6vw,34px) 0 0;padding:0;list-style:none}
.ds-chips li{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px;border-radius:var(--ds-radius-pill);border:var(--ds-line);background:var(--ds-ground-paper);
  font-family:var(--ds-font-ui);font-size:var(--ds-size-ui-sm);color:var(--ds-ink-2);white-space:nowrap}
.ds-chips li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ds-static)}

/* tiles led by one figure */

.ds-feerows + .ds-chips{margin-top:clamp(22px,2.6vw,34px)}

/* a value with a Copy button */

.ds-fees .ds-acc__group{grid-template-columns:minmax(0,1fr);gap:0;padding:0;border-bottom:0}
.ds-fees .ds-acc__item:first-of-type > summary{padding-top:16px}
.ds-fees .ds-acc__item:last-child{border-bottom:var(--ds-line)}

@media (max-width:980px){
  .ds-est{grid-template-columns:minmax(0,1fr)}
  .ds-est__sum{position:static}
  
  .ds-feerows li{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}
  
  
  
}
@media (max-width:560px){
  .ds-seg--grades{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
  .ds-seg--grades button{min-width:0;padding:0}
  
}

/* ---- DS WORLDMAP LIST (Nov 2026): the destinations under the map on Where Graduates Go ---- */
.ds-worldmap__list{margin-top:clamp(28px,3.4vw,44px);padding-top:clamp(22px,2.6vw,34px);border-top:var(--ds-line)}
.ds-worldmap__list .ds-h4{margin:0 0 clamp(18px,2vw,26px)}
.ds-worldmap__list-unis{margin:8px 0 0;padding:0;list-style:none}
.ds-worldmap__list-unis li{padding:8px 0;border-top:var(--ds-line);font-family:var(--ds-font-text);font-size:var(--ds-size-ui);line-height:1.5;color:var(--ds-ink)}
.ds-worldmap__list-city{color:var(--t2)}

/* ==== PICTURE BESIDE TEXT (ds-split): READING WIDTH, PARAGRAPH SPACE, TABLET LAYOUT (20 Nov 2026) ====
   From a measured check of About > Our Story; the faults were in the shared layout, so all 20 such sections are
   corrected together. Type sizes are unchanged.
   1. ONE READING WIDTH. Beside a picture, the opening paragraph and the paragraphs under it share one width, 33rem
      (528px): about 60 characters a line for the opening paragraph and 77 for the body. Before, the body ran the full
      column (101 characters a line on a desktop) and ended further right than the opening paragraph above it. */
:root{--ds-prose:33rem}
.ds-split > :not(.ds-split__media) :is(.ds-lede,.ds-body){max-width:var(--ds-prose)}
/* 2. PARAGRAPHS a full line-space apart (was .8em, 12px: hard to tell a new paragraph from a new line). Everywhere. */
.ds-body + .ds-body{margin-top:1em}
/* 3. TABLET ON ITS SIDE AND SMALL LAPTOPS (861 to 1080px): picture and text stay side by side, as on a desktop.
      Before, the picture dropped above the text at 420px wide with an empty half beside it, and the text below ran
      137 characters a line. Below 861px the section still stacks. */
@media (min-width:861px) and (max-width:1080px){
  .ds-split{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(40px,6vw,96px)}
  .ds-split--flip{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .ds-split--flip > :first-child{order:2}
  .ds-split__media{position:sticky;top:calc(var(--ds-bar) + 40px);max-width:none}
  
  
  
}

/* ==== ONE STANDARD FOR TYPE AND PAGE WIDTH: EVERY PAGE, EVERY SECTION (21 Nov 2026) ====
   The owner asked for the corrections found on About > Our Story to become the rule everywhere. These are the
   definitions; a new section follows them by using the design system's own classes and adding nothing.

   THE PAGE COLUMN. Everything on a page starts and ends on the same two edges: the header's logo and buttons, the
   banner's breadcrumb and title, every section's content and the footer. The column is 1280px wide (--max-w), centred;
   on screens too narrow for that it keeps a gutter of 4% of the screen. Before, the header and the banners kept the 4%
   gutter on every screen, so above 1390px they stood outside the content: 22px at 1440, 243px at 1920.
   --sbw is the width of a classic scrollbar (set by site-chrome.js; 0 where scrollbars float over the page).

   TYPE, by job:
     banner title    Playfair Display, 34 to 62px, line spacing 1.08    (ran from 0.98 to 1.08, banner by banner)
     banner line     Inter, 16 to 17.5px, line spacing 1.55             (three banner types had three sizes, 15 to 17.5)
     section title   Playfair Display, 30 to 50px, line spacing 1.1     (was 1.04: two-line titles touched)
     standfirst      Inter, 17 to 19px, line spacing 1.55               (was 1.7)
     paragraph       Inter, 16px, line spacing 1.7                      (was 15px)
     news story      Inter, 16 to 17px, line spacing 1.75
     note            Inter, 14px, line spacing 1.55                     (were 12, 13, 14 and 14.5px)
     statements and quotations keep their looser 1.22 to 1.3; labels, tables, form fields, menus, drawers and the
     footer keep the interface sizes (--ds-size-ui and its two smaller steps): they are not running text.
   READING WIDTH. No line of running text is longer than about 76 characters: paragraphs stop at 33rem (--ds-prose),
   standfirsts at 34em, the words of a news story at 35 times their size, notes at 32em. A banner's line under its title, never more than two
   lines, may run to 62ch.
   PARAGRAPHS stand one line-space apart (1em). */
:root{
  --ds-size-body:16px;
  --ds-lh-banner:1.08;
  --ds-lh-title:1.1;
  --ds-lh-lede:1.55;
  --ds-lh-note:1.55;
  --ds-note-measure:32em;
  --ds-prose:33rem;
  --ds-read-measure:calc(35 * var(--ds-size-read));
  --page-gutter:max(clamp(20px,4vw,80px),calc((100vw - var(--sbw,0px) - var(--max-w,1280px)) / 2));
}
/* the page column: the header and every banner measure their gutter to it */
header,.site-header,.ds-hero,.h7{--gutter:var(--page-gutter)}
/* titles */
.ds-hero .ds-display{line-height:var(--ds-lh-banner)!important}
.ds-title{line-height:var(--ds-lh-title)}
html body:is(.ds,.dsc) :is(.cnd__t,.news-strip__title,.adm-path__title,.creds__t){line-height:var(--ds-lh-title)!important}
/* the line under a banner's title */
.ds-hero .ds-lede{font-size:clamp(16px,1.2vw,17.5px)!important;line-height:var(--ds-lh-lede)!important}
/* standfirsts */
.ds-lede,.ds-intro__body .ds-lede + .ds-body,.ds-article__lede,html .h7 .h7__lede{line-height:var(--ds-lh-lede)}
/* paragraphs: one reading width everywhere, centred where the section is centred */
.ds-body{max-width:var(--ds-prose)}
.ds-split > :not(.ds-split__media) :is(.ds-lede,.ds-body){max-width:var(--ds-prose)}
:is(.ds-head--center,.ds-values__panel,[style*="text-align:center"]) > .ds-body{margin-left:auto;margin-right:auto}
/* notes: the small explanatory lines under a form, beside a task and under the fee estimate */
.ds-form__note,.ds-est__note,.ds-fees .ds-est__note,.ds-task__aside li,.ds-task__aside p{font-size:var(--ds-size-ui);line-height:var(--ds-lh-note)}
.ds-form__note{max-width:var(--ds-note-measure)}
.ds-form__note + .ds-form{margin-top:18px}   /* a note above a form stands one field-gap clear of it (it touched) */
.ds-form__note.hj-note{max-width:calc(var(--ds-note-measure) + 2 * clamp(24px,3vw,44px))}
/* news stories and policy pages: the words keep the reading width; pictures, video, galleries and tables keep the
   full 44rem column, on the same left edge */
.ds-article > :is(p:not(.ds-article__back),ul,ol,h2,h3,h4,.ds-article__callout,.ds-article__sign){max-width:var(--ds-read-measure)}

/* ==== A PICTURE BESIDE TEXT AND ITS TWIN (22 Nov 2026, corrected 23 Nov) ====
   Owner, About Us: "Our Community" is the twin of "Our Story": same picture, same text, same formatting.
   22 Nov: the flipped section's text was moved to stand beside the picture, a strict mirror of its twin.
   23 Nov, owner: "there is too much left margin... the left margin being a mirror doesn't look clean and nice."
   He is right: the text no longer started on the page's left edge, under the logo, where every other section starts.
   TAKEN BACK. In a flipped split the text starts on the page's left edge and the picture ends on its right edge; the
   space falls between them. Do not indent the text of a flipped split again.
   What twins share: the picture's size, the type, the reading width and the same amount of text.
   Kept:
   - in every split a title's red phrase is kept whole: the title breaks before it, never inside it;
   - .ds-title--break puts the red phrase on a line of its own at every width (for twins that must keep one height);
   - on a short screen the upright picture is drawn smaller than its column: in a flipped split it keeps to the page's
     right edge, as its twin keeps to the left (it stood 22px short at 1366 by 768). */
.ds-split .ds-title em{display:inline-block}
.ds-title.ds-title--break em{display:block}
@media (min-width:861px){
  .ds-split--flip > .ds-split__media > .ds-img{margin-left:auto}
}

/* ==== EVERY SECTION ON THE ONE PAGE COLUMN (28 Nov 2026) ====
   Owner: "the OUR CORE VALUES section's width is smaller than the sections on top and below it make it the same width
   and review the rest of the sections across all pages ... all sections must have same width except if there is some
   that needs to be full screen width like hero banners."
   Every section's content now spans the page column (1280px, starting under the logo). Measured on all 46 pages; these
   were narrower: the values and Value of the Month cards (1120), the alumni map (1120), the two-card grids (.ds-grid--narrow,
   896), the numbers on full-screen statement sections (shrank to their content), Home's student voices and the Apply form (both inset twice), and
   rows of two to four people cards, which sat centred at the five-across size. Rows of people now fill the column: four
   across, three across or two across. The photo keeps its height limit, so two across reads as a wide picture.
   Left as they are, on purpose: full-width banners and picture walls; a news story's reading column; and statement
   sections that are a few centred lines of text, where a longer line would be harder to read. */
@media (min-width:761px){html body .ds-values{max-width:none}}
.ds-worldmap{max-width:none}
.ds-grid--narrow{max-width:none}
.ds-sec--fill > .ds-sec__in{width:100%}
body.ds #voices{padding-left:0!important;padding-right:0!important}
body.ds #voices .voices__in{max-width:calc(var(--max-w,1280px) + 2 * var(--gutter))!important}
html body .section > .container{max-width:calc(var(--max-w,1280px) + 2 * var(--gutter))}
html body .section > .container > .apply-layout{max-width:none}   /* Apply form (older layout) */
@media (min-width:761px){
  .ds-people.ds-people--center:has(> .ds-person:nth-child(2):last-child){--n:2}
  .ds-people.ds-people--center:has(> .ds-person:nth-child(2):last-child) > .ds-person > .ds-person__photo{aspect-ratio:3 / 2}
}
@media (min-width:1081px){
  .ds-people.ds-people--center:has(> .ds-person:nth-child(3):last-child){--n:3}
  .ds-people.ds-people--center:has(> .ds-person:nth-child(4):last-child){--n:4}
}

/* ==== A SECTION WITH ITS HEADING BESIDE IT · AN EVEN RHYTHM ON ACADEMICS (29 Nov 2026) ====
   Owner, Academics: Our Curriculum and How It's Designed looked alike; then (Safari screenshots): Our Curriculum has
   pictures, How It's Designed and How We Teach have none, Student Support has one: "change the styles of these sections,
   not the order, to not look like too much and then too little."
   The page now alternates: Our Curriculum (four pictures) / How It's Designed (a navy band, no picture: the heading on
   the left, the four principles two by two on the right, each with a large gold number) / How We Teach (one wide
   picture strip, then the four approaches two by two under hairlines, no boxes) / Student Support (picture beside text)
   / Languages (text) / Technology (picture beside text) / Assessment (text) / The journey (four pictures).
   The first version of How It's Designed (a long list beside a heading that stayed in view) left a large empty column
   while scrolling in Safari; the two-by-two list is as tall as the heading, so nothing is left empty. */
@media (min-width:861px){
  .ds-sec--aside > .ds-sec__in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(48px,6vw,112px);align-items:center}
  .ds-sec--aside .ds-head{margin:0;text-align:left}
  .ds-sec--aside .ds-head .ds-kick{justify-content:flex-start}
  .ds-sec--aside .ds-head .ds-lede{margin-left:0;margin-right:0}
}
.ds-sec--aside .ds-grid.ds-grid--ruled{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(32px,3.4vw,56px);row-gap:clamp(28px,3vw,44px)}
.ds-sec--aside .ds-grid > .ds-block{padding:clamp(18px,2vw,24px) 0 0;border-top:var(--ds-line)}
.ds-sec--navy.ds-sec--aside .ds-grid > .ds-block{border-top-color:rgba(245,240,230,.18)}
.ds-sec--aside .ds-grid > .ds-block::before{display:none}
.ds-sec--aside .ds-block > .ds-label{display:block;font-family:var(--ds-font-display);font-size:clamp(34px,3.2vw,48px);line-height:1;
  letter-spacing:0;font-weight:400;margin-bottom:14px}
@media (max-width:560px){.ds-sec--aside .ds-grid.ds-grid--ruled{grid-template-columns:minmax(0,1fr)}}
/* A wide picture strip under a section heading (How We Teach). */
.ds-img.ds-strip{--ratio:1920 / 366;margin:0 0 var(--ds-head-gap)}
@media (max-width:760px){.ds-img.ds-strip{--ratio:16 / 7}}
/* Two columns under hairlines: the first of each row has no line on its left. */
.ds-grid--2.ds-grid--ruled{row-gap:clamp(32px,4vw,56px)}
.ds-grid--2.ds-grid--ruled > :nth-child(2n+1)::before{display:none}

/* ==== CARD ROWS COUNT EVERY LINE (29 Nov 2026) ====
   Found while reviewing Academics for the owner: the four stage cards (The K-12 Journey) have one line more than the
   row rule above expects (stage, title, grade range, text, link), so the link fell into the text's row and sat on its
   last line. A card now takes as many rows as it has lines. Checked on every page: these four were the only ones. */
@media (min-width:761px){
  .ds-grid > .ds-card:not(:has(> .ds-card__media)):has(> :nth-child(5)){grid-row:span 5}
  .ds-grid > .ds-card:has(> :nth-child(6)){grid-row:span 6}
  .ds-grid > .ds-card:has(> :nth-child(7)){grid-row:span 7}
}

/* ==== EACH LANGUAGE GREETS IN ITS OWN WORDS (29 Nov 2026) ====
   Owner, Academics > Languages: asked about a flag above each language. A flag names a country, not a language
   (whose flag for English, or for French? Russia's flag in Tashkent reads as politics), so each card opens instead with
   a greeting in its own language and script, large in the display face: Hello, Privet, Salom, Bonjour. */
.ds-block > .ds-greet{display:block;font-family:var(--ds-font-display);font-style:italic;font-weight:400;
  font-size:var(--greet-fs);line-height:1;letter-spacing:-.01em;color:var(--cst-gold,#B8923A);margin:0 0 18px}

/* ==== THE SIX-LEVEL SCALE, DRAWN (29 Nov 2026) ====
   Owner, Academics > Assessment & Progress: wanted something like the Languages greetings. The section's real picture
   is its scale, so it is drawn under the heading: six gold steps rising from Beginning to Mastery, each named below.
   The six points follow as before. On phones the steps stack, each a bar that grows toward Mastery. */
.ds-scale{margin:0 0 clamp(36px,4vw,56px)}
.ds-scale > figcaption{display:block;text-align:center;margin-bottom:clamp(18px,2vw,26px)}
.ds-scale__steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(6px,.8vw,12px);align-items:start;
  --u:clamp(9px,1vw,14px)}
.ds-scale__steps > li{display:flex;flex-direction:column;gap:12px}
.ds-scale__bar{display:block;height:calc(var(--i) * var(--u));margin-top:calc((6 - var(--i)) * var(--u));border-radius:4px 4px 0 0;
  background:var(--cst-gold,#B8923A);opacity:calc(.3 + var(--i) * .1167)}
.ds-scale__name{font-family:var(--ds-font-display);font-size:clamp(15px,1.3vw,19px);line-height:1.2;color:var(--cst-navy,#0A2342)}
.ds-scale__steps > li:last-child .ds-scale__name{font-style:italic;color:var(--cst-red,#C8102E)}
@media (max-width:640px){
  .ds-scale > figcaption{text-align:left}
  .ds-scale__steps{grid-template-columns:minmax(0,1fr);gap:10px}
  .ds-scale__steps > li{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:14px}
  .ds-scale__name{order:-1;font-size:16px}
  .ds-scale__bar{height:10px;margin-top:0;width:calc(var(--i) * 16.66%);border-radius:0 4px 4px 0}
}

/* The scale shows this year's report-card bands (owner, 29 Nov 2026: "not what we have recently reported in the progress
   report"): Beginning, Emerging, Satisfactory, Good, Very good, Excellent, each with its percentage range. */
.ds-scale__txt{display:flex;flex-direction:column;gap:4px}
.ds-scale__rng{font-family:var(--ds-font-mono,ui-monospace,monospace);font-size:11px;letter-spacing:.08em;color:var(--ds-muted,#6B7280)}
@media (max-width:640px){.ds-scale__txt{order:-1}.ds-scale__name{order:0}}

/* ==== STUDENT LIFE: A DAY AT CST AND COMPETITIONS (30 Nov 2026) ====
   Owner: "sections A DAY AT CST and COMPETITIONS haven't been done nicely, revise their layout." Both were text only
   between sections with photographs; the day was a long list beside a short heading (an empty column), the
   competitions four plain columns.
   A Day at CST (.sl-day): the day runs left to right as five moments, each with its photograph, joined by one gold
   line with a dot for each moment. On phones the moments stack, photo beside text.
   Competitions (.sl-comp): Greenwich Olympiad is the headline, a large photograph with its result; robotics,
   Model UN and the olympiads follow as a list beside it, each with a small square photograph. */
.sl-day{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(16px,1.8vw,28px);position:relative}
.sl-day > li{display:flex;flex-direction:column;gap:0}
.sl-day__ph{display:block;margin:0;aspect-ratio:4 / 5;overflow:hidden;border-radius:var(--ds-radius,14px);background:var(--ds-ground-cream)}
.sl-day__ph img{width:100%;height:100%;object-fit:cover;display:block}
.sl-day__mark{position:relative;display:block;height:1px;background:var(--cst-gold,#B8923A);opacity:.55;margin:22px 0 18px}
.sl-day__mark::before{content:"";position:absolute;left:0;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--cst-gold,#B8923A)}
.sl-day > li:last-child .sl-day__mark{background:linear-gradient(90deg,var(--cst-gold,#B8923A) 0 9px,transparent 9px)}
.sl-day .ds-label{display:block;margin-bottom:8px}
.sl-day .ds-h4{margin:0 0 8px}
@media (max-width:900px){
  .sl-day{grid-template-columns:minmax(0,1fr);gap:0}
  .sl-day > li{display:grid;grid-template-columns:clamp(96px,28vw,150px) minmax(0,1fr);column-gap:18px;align-items:start;padding:18px 0;border-top:var(--ds-line)}
  .sl-day > li:first-child{border-top:0;padding-top:0}
  .sl-day__ph{grid-row:1 / span 4;aspect-ratio:1}
  .sl-day__mark{display:none}
}
.sl-comp{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(28px,4vw,64px);align-items:start}
.sl-comp__lead{margin:0}
.sl-comp__lead .ds-img{--ratio:16 / 10;margin-bottom:22px}
.sl-comp__lead .ds-h3{margin:8px 0 10px}
.sl-comp__list{list-style:none;margin:0;padding:0}
.sl-comp__list > li{display:grid;grid-template-columns:clamp(76px,7vw,104px) minmax(0,1fr);column-gap:20px;align-items:start;padding:22px 0;border-top:var(--ds-line)}
.sl-comp__list > li:first-child{padding-top:0;border-top:0}
.sl-comp__list .ds-img{--ratio:1;grid-row:1 / span 3;border-radius:12px}
.sl-comp__list .ds-label{display:block;margin-bottom:6px}
.sl-comp__list .ds-h4{margin:0 0 6px}
@media (max-width:900px){.sl-comp{grid-template-columns:minmax(0,1fr)}}

/* ==== STUDENT LIFE: CLUBS AND LEADERSHIP (30 Nov 2026) ====
   Owner: "fix CLUBS AND LEADERSHIP section since the layout is not the right one for it." The bento left an empty
   cell, put text over a busy robotics photo (the same event as Competitions) and squeezed the three steps into a
   small box. Now: the Student Ambassadors photograph beside the three ways in (numbered, like A Day at CST),
   and the three steps to start a club as one navy band across the width, read left to right. */
.sl-clubs{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,4.5vw,72px);align-items:stretch}
.sl-clubs__ph{position:relative;margin:0;min-height:360px;border-radius:var(--ds-radius,14px);overflow:hidden;background:var(--ds-ground-cream)}
.sl-clubs__ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;display:block}
.sl-clubs__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;justify-content:center}
.sl-clubs__list > li{padding:clamp(18px,2vw,26px) 0;border-top:var(--ds-line)}
.sl-clubs__list > li:first-child{border-top:0;padding-top:0}
.sl-clubs__list > li:last-child{padding-bottom:0}
.sl-clubs__list .ds-label{display:block;margin-bottom:8px}
.sl-clubs__list .ds-h4{margin:0 0 8px}
@media (max-width:1080px){.sl-clubs{grid-template-columns:minmax(0,1fr)}.sl-clubs__ph{aspect-ratio:16 / 10;min-height:0}
}

/* ==== PICTURE BESIDE TEXT: NEVER SHORTER THAN THE TEXT (30 Nov 2026) ====
   Owner: "TECHNOLOGY, STUDENT SUPPORT and every other section having the same layout: increase the height of
   pictures slightly so they at least become equal to the height of the text." The portrait picture was capped at
   one screen height (621px on a 1470x830 screen) while the text beside it ran to 640-720px. Now the picture keeps
   its usual size (4:5, never taller than the screen) and grows only as far as the text beside it needs. */
@media (min-width:1081px){
  .ds-split:not(.ds-split--fill) > .ds-split__media:has(> .ds-img--tall){position:relative;top:auto;align-self:stretch;
    display:flex;flex-direction:column;container-type:inline-size}
  .ds-split:not(.ds-split--fill) > .ds-split__media > .ds-img--tall{flex:1 0 auto;aspect-ratio:auto;max-height:none;
    height:min(calc(100svh - var(--ds-bar) - var(--ds-section) * 2), 125cqi)}
}

/* ==== OUR CAMPUS DINING: THE TIME OF DAY AS A WORD (30 Nov 2026) ====
   Owner: the Languages greeting format "will look nice in DINING". Four columns are narrower than the greetings'
   column, so the word is set a little smaller here to keep Mid-morning and После обеда on one line. */
#dining .ds-block > .ds-greet{font-size:var(--greet-fs);white-space:nowrap}

/* ==== THE WORD FORMAT, WIDER USE (30 Nov 2026) ====
   Owner: after Our Campus and Dining, asked for Innovation and Media and "any other section" that suits it. Also used now
   in Faculty (We choose, We support, We celebrate; Qualified, Training, Recognition). Longer words are kept on one
   line by a size that follows the column width. */
.ds-block > .ds-greet{white-space:nowrap}
#innovation .ds-block > .ds-greet,#philosophy .ds-block > .ds-greet,#growth .ds-block > .ds-greet{font-size:var(--greet-fs)}

/* ==== ROWS OF TWO PEOPLE: TWO CENTRED PORTRAITS (30 Nov 2026) ====
   Owner (Safari, Achievements, Ambassadors): "not center aligned and the pictures are not properly cropped." A row of two
   had been set two across the full width with a wide 3:2 photo under a height limit: the portraits were cut at the eyes,
   and Safari also narrowed each photo to fit the height limit, leaving it at the left of its half. Now a row of two is
   two portrait cards at the four-across size, centred, framed on the face; and a person's photo always keeps the full
   width of its card. Inside a split (picture beside text) a pair still fills its column. */
@media (min-width:761px){
  .ds-person > .ds-person__photo{width:100%}
  .ds-people.ds-people--center:has(> .ds-person:nth-child(2):last-child){--n:4}
  .ds-people.ds-people--center:has(> .ds-person:nth-child(2):last-child) > .ds-person > .ds-person__photo{aspect-ratio:4 / 5}
  .ds-people.ds-people--center:has(> .ds-person:nth-child(2):last-child) > .ds-person > .ds-person__photo img{object-position:50% 22%}
  .ds-split .ds-people.ds-people--center:has(> .ds-person:nth-child(2):last-child){--n:2}
}

/* ==== VALUE OF THE MONTH: THE NUMBER OF WINNERS AS THE WORD (30 Nov 2026) ====
   Owner (Achievements): the panel's "April 2026 / Innovation / 26 winners" repeated the month and value already in the
   tabs and carved beside it. Now only the number of winners, large in the display face, as the Languages greetings. */
.ds-values__panel > .ds-greet{display:block;font-family:var(--ds-font-display);font-style:italic;font-weight:400;
  font-size:clamp(36px,3.4vw,52px);line-height:1;letter-spacing:-.01em;color:var(--cst-gold,#B8923A);margin:0 0 clamp(16px,2vh,22px)}

/* ==== TUITION AND FEES: THE TUITION BOX IN THE PROMISE GRADIENT (30 Nov 2026) ====
   Owner: "the section TUITION in tuition and fees, background change to the same background as our promise section."
   The estimate's summary box (Tuition, the total and its lines) takes the Our Promise gradient, navy-blue to purple
   to CST red, in place of the flat slate. */
html body .ds-fees .ds-est__sum{background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),
  linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%);border-color:transparent;color:#fff}

/* ==== APPLY: BEFORE YOU START IN THE PROMISE GRADIENT (30 Nov 2026) ====
   Owner: the Apply page's "Before You Start" box takes the same background as Our Promise (navy-blue to purple to
   CST red). Text turns white, the step numbers stay on pale circles, the link turns pale gold. */
html body #apply .ds-task__aside{background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),
  linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%);border-color:transparent;color:#fff}
#apply .ds-task__aside .ds-kick{color:var(--ds-kicker-dark,#E9D49A)}
#apply .ds-task__aside .ds-h4{color:#fff}
#apply .ds-task__aside .ds-h4 em{color:#E9D49A}
#apply .ds-task__aside li,#apply .ds-task__aside p{color:rgba(255,255,255,.86)}
#apply .ds-task__aside li b{color:#fff}
#apply .ds-task__aside li::before{background:rgba(255,255,255,.92);color:#0A2342}
#apply .ds-task__aside a,#apply .ds-task__aside a.ds-link{color:#E9D49A}

/* ==== OPEN HOUSE: YOUR VISIT IN THE PROMISE GRADIENT (30 Nov 2026) ====
   Owner: as on Apply, the Open House "Your Visit" box takes the Our Promise background. */
html body #book .ds-task__aside{background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),
  linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%);border-color:transparent;color:#fff}
#book .ds-task__aside .ds-kick{color:var(--ds-kicker-dark,#E9D49A)}
#book .ds-task__aside .ds-h4,#book .ds-task__aside h2,#book .ds-task__aside h3{color:#fff}
#book .ds-task__aside .ds-h4 em{color:#E9D49A}
#book .ds-task__aside li,#book .ds-task__aside p,#book .ds-task__aside dd,#book .ds-task__aside dt{color:rgba(255,255,255,.86)}
#book .ds-task__aside li b,#book .ds-task__aside strong{color:#fff}
#book .ds-task__aside li::before{background:rgba(255,255,255,.92);color:#0A2342}
#book .ds-task__aside a,#book .ds-task__aside a.ds-link{color:#E9D49A}

/* ==== FAQ: ASK US BESIDE THE QUESTIONS, IN THE PROMISE GRADIENT (30 Nov 2026) ====
   Owner: put Ask Us on the side of the page like Your Visit (Open House) and Before You Start (Apply), with the same
   background. It was a section of its own under the questions; it is now the box beside them (.ds-task__aside, kept
   at id="ask" so "Ask us your question" still finds it). */
html body #questions .ds-task__aside{background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),
  linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%);border-color:transparent;color:#fff}
#questions .ds-task__aside .ds-kick{color:var(--ds-kicker-dark,#E9D49A)}
#questions .ds-task__aside .ds-h4{color:#fff}
#questions .ds-task__aside .ds-h4 em{color:#E9D49A}
#questions .ds-task__aside li,#questions .ds-task__aside p{color:rgba(255,255,255,.86)}
#questions .ds-task__aside li b{color:#fff}
#questions .ds-task__aside li::before{background:rgba(255,255,255,.92);color:#0A2342}
#questions .ds-task__aside a,#questions .ds-task__aside a.ds-link{color:#E9D49A}

/* ==== SIDE BOX: ROOM ABOVE ITS CLOSING LINK (30 Nov 2026) ====
   Owner (FAQ, Safari): "SEND A MESSAGE link is too close to the text above it." The link that closes a side box
   (Send a Message, See document requirements, Admissions overview) now stands clear of the paragraph above. */
.ds-task__aside p:has(> a.ds-link:only-child){margin-top:clamp(16px,1.8vw,22px)}

/* ==== SIDE BOX: ROOM ABOVE ITS CLOSING LINK, EVERY BROWSER (30 Nov 2026) ====
   Owner: the same on Book a Tour and Apply. The closing link is always the box's last paragraph after another
   paragraph, so the space is set on that too, without relying on :has(). */
html body .ds-task__aside p + p:last-child{margin-top:clamp(16px,1.8vw,22px)}

/* ==== CAREERS: THE TAX-FREE PANEL (30 Nov 2026) ====
   Owner: the full-width blue band that shrank on scroll becomes a navy panel inside the page, like Student Life's
   "Start a club, in three steps", and stays still. Kicker and title on the left, the decree on the right. */
.cr-tax{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(24px,4vw,64px);align-items:center;
  padding:clamp(30px,3.6vw,52px) clamp(24px,3.8vw,60px);border-radius:var(--ds-radius,14px);
  background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%);color:var(--ds-paper-2)}
.cr-tax .ds-kick{color:var(--ds-kicker-dark,#E9D49A)}
.cr-tax .ds-h3{margin:10px 0 0;color:var(--ds-paper);text-wrap:balance}
.cr-tax .ds-h3 em{color:#E9D49A}
.cr-tax .ds-lede{margin:0;padding-left:clamp(18px,2vw,28px);border-left:1px solid rgba(201,162,39,.55);color:rgba(255,255,255,.86)}
@media (max-width:900px){.cr-tax{grid-template-columns:minmax(0,1fr)}.cr-tax .ds-lede{padding:16px 0 0;border-left:0;border-top:1px solid rgba(201,162,39,.55)}}

/* ==== CAREERS: THE TAX PANEL CLOSES YOUR PACKAGE (30 Nov 2026) ====
   Owner: "make careers page's sections properly done." The tax-free panel stood alone between two sections, with a
   section's worth of empty page above and below it; it is part of the package, so it now closes Your Package. */
#benefits .cr-tax{margin-top:clamp(40px,5vw,72px)}

/* ==== CONTACT: THE VISIT CARD IN THE PROMISE GRADIENT (30 Nov 2026) ====
   Owner: the "Visit" card on the Contact page map takes the Our Promise background, as the side boxes on Apply,
   Open House and FAQ. White text, pale gold label and link, the "Open now" badge in its light form. */
html body .ct-map__card{background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),
  linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%);color:rgba(255,255,255,.86)}
html body .ct-map__card .ds-label,html body .ct-map__card .ds-label--gold{color:#E9D49A}
.ct-map__card strong{color:#fff}
.ct-map__card a:not(.ds-link){color:#fff;text-decoration-color:rgba(255,255,255,.4)}
.ct-map__card .ds-link{color:#E9D49A}
.ct-map__card .h7-open--ink{align-self:flex-start;margin-left:0;background:rgba(255,255,255,.14);color:#fff}
.ct-map__card .h7-open--ink.is-off::before{background:rgba(255,255,255,.55)}

/* ==== CAREERS: CURRENT OPENINGS AS A LIST OF POSTINGS (30 Nov 2026) ====
   Owner: "Current Openings is not nice; instead of posting the whole announcement, just make a link to the position."
   Each opening is one row: its area (gold), the title, the type, and "View posting", which opens the full posting
   (the existing sheet, with its own Apply). The whole row is the link. */
.cr-jobs{list-style:none;margin:0 auto;padding:0;max-width:64rem;border-top:var(--ds-line)}
.cr-job{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,15rem) auto;align-items:center;column-gap:clamp(20px,3vw,48px);
  padding:clamp(18px,2.2vw,26px) clamp(4px,1vw,12px);border-bottom:var(--ds-line);transition:background .25s ease}
.cr-job:hover{background:rgba(255,255,255,.55)}
.cr-job__main .ds-label{display:block;margin-bottom:6px}
.cr-job__main .ds-h4{margin:0;font-size:clamp(20px,1.7vw,26px);line-height:1.2;transition:color .25s ease}
.cr-job:hover .ds-h4{color:var(--ds-accent,#C8102E)}
.cr-job__type{font-family:var(--ds-font-ui);font-size:14px;color:var(--t2);text-align:right}
.cr-job__go{display:inline-flex;align-items:center;gap:10px;margin:0;padding:0;border:0;background:none;cursor:pointer;
  font:600 11px/1 var(--ds-font-mono,ui-monospace,monospace);letter-spacing:.16em;text-transform:uppercase;color:var(--ds-ink,#0A2342)}
.cr-job__go::after{content:"";position:absolute;inset:0}
.cr-job__go svg{width:18px;height:18px;fill:none;stroke:var(--ds-accent,#C8102E);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s ease}
.cr-job:hover .cr-job__go svg{transform:translateX(5px)}
.cr-job__go:focus-visible{outline:none}
.cr-job:has(.cr-job__go:focus-visible){outline:2px solid var(--ds-accent,#C8102E);outline-offset:2px}
@media (max-width:760px){.cr-job{grid-template-columns:minmax(0,1fr) auto;row-gap:8px}
  .cr-job__type{grid-column:1;grid-row:2;text-align:left}.cr-job__go{grid-column:2;grid-row:1 / span 2}.cr-job__go span{display:none}}

/* ==== CAREERS: PACKAGE TITLES IN THE HELLO STYLE; RECOGNITION'S FOUR HONOURS (30 Nov 2026) ====
   Owner: the Your Package subheadings like "Hello" in Languages (large gold italic display face; slightly smaller, as
   these are phrases); and Recognition had too little text beside its photograph, so it now lists the four honours
   (Employee of the Month, Stars of CST, the Annual Awards, Employee of the Year). */
#benefits .ds-grid .ds-block > .ds-h4{font-family:var(--ds-font-accent,var(--ds-font-display));font-style:italic;font-weight:400;
  font-size:clamp(28px,2.4vw,38px);line-height:1.1;letter-spacing:-.01em;color:var(--cst-gold,#B8923A);margin:0 0 12px;text-wrap:balance}
#recognition .ds-stack{margin:clamp(20px,2.4vw,30px) 0 clamp(20px,2.4vw,28px)}

/* ==== CAREERS: HOW TO APPLY AS A PROCESS (30 Nov 2026) ====
   Owner: "this section will be much better to look like a process." Three steps left to right on one gold line, each
   with its number in a ring: what we look for, what you will need, what happens next. Under them, the one button and
   the email route as a quiet line. Phones: the steps stack down a gold line on the left. */
.ap-flow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,3.4vw,56px);position:relative}
.ap-flow::before{content:"";position:absolute;left:calc(100% / 6);right:calc(100% / 6);top:27px;height:1px;background:var(--cst-gold,#C9A227);opacity:.6}
.ap-flow__step{position:relative;text-align:center}
.ap-flow__n{position:relative;z-index:1;display:grid;place-items:center;width:56px;height:56px;margin:0 auto clamp(18px,2vw,24px);
  border-radius:50%;border:1px solid var(--cst-gold,#C9A227);background:var(--ds-ground-paper,#FDFBF7);
  font-family:var(--ds-font-display);font-size:20px;color:var(--ds-ink,#0A2342)}
.ap-flow__step .ds-h4{margin:0 0 8px}
.ap-flow__step .ds-body{margin:0 auto;max-width:26em}
.ap-flow__go{margin-top:clamp(32px,4vw,52px);text-align:center}
.ap-flow__mail{margin:16px 0 0;font-family:var(--ds-font-text);font-size:15px;color:var(--ds-ink-2)}
.ap-flow__mail-t{font-weight:600;color:var(--ds-ink,#0A2342)}
.ap-flow__mail a{color:var(--ds-ink,#0A2342)}
@media (max-width:760px){
  .ap-flow{grid-template-columns:minmax(0,1fr);gap:26px}
  .ap-flow::before{left:27px;right:auto;top:28px;bottom:28px;width:1px;height:auto}
  .ap-flow__step{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:18px;text-align:left}
  .ap-flow__n{grid-row:1 / span 2;margin:0}
  .ap-flow__step .ds-body{margin:0;max-width:none}
}

/* ==== PEOPLE PHOTOS FRAMED ON THE FACE (30 Nov 2026) ====
   Owner (Safari, Employee Recognition, Stars of CST): "cropped wrong". Since am1 a photo keeps its card's full width;
   on a laptop the card is then wider than the screen-height limit allows for a 4:5 portrait, and the photo, centred,
   lost the tops of heads. Every person photo is now framed near the top, so the face stays whole. */
.ds-person:not(.ds-reel__stage > .ds-person) > .ds-person__photo img{object-position:50% 14%}

/* pb1 (1 Dec 2026) · owner: the home page's "One graduation, three diplomas" band has the Our Promise gradient; the bands of the same layout on other pages (Student Life "Start a club, in three steps" .sl-steps, Careers "Your income is tax-free" .cr-tax) were navy and now carry the same gradient. */

/* dv1 (1 Dec 2026) · division pages, The CST Difference (#program): the four headings take the Languages section's "Hello" style (.ds-greet) without the 01 / numbers; they are phrases, so they may wrap */
#program .ds-block > .ds-greet{white-space:normal;font-size:var(--greet-fs);line-height:1.08;text-wrap:balance}

/* ce1 (1 Dec 2026) · Academic Calendar, "Events this month" panel on the Our Promise gradient (owner) */
.ds-cal .cal-events{border:0;color:rgba(255,255,255,.88);
  background:radial-gradient(60% 70% at 30% 45%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),linear-gradient(125deg,#05265B 0%,#0E3C89 34%,#2E3A86 55%,#6E2A6A 78%,#CF1837 100%)}
.ds-cal .cal-events__title{color:#E9D49A;border-bottom-color:rgba(255,255,255,.22)}
.ds-cal .cal-events__item{border-bottom-color:rgba(255,255,255,.16)}
.ds-cal .cal-events__date{color:#E9D49A}
.ds-cal .cal-events__label{color:#fff}
.ds-cal .cal-events__item--empty{color:rgba(255,255,255,.8)}

/* cj1 (1 Dec 2026) · Calendar: no separate "Jump to month" row (owner). The month name is the control: an arrow
   beside it, and a click anywhere on it opens the list of months (the native select lies over the title, so phones
   get their own picker); the label stays for screen readers. */
.ds-cal .cal-title-block{position:relative;justify-self:center}
.ds-cal .cal-title{display:inline-flex;align-items:center;gap:clamp(12px,1.2vw,18px);margin:0;cursor:pointer}
.ds-cal .cal-title::after{content:"";flex:none;width:12px;height:12px;margin-top:-6px;border-right:2px solid var(--ds-accent,#C8102E);border-bottom:2px solid var(--ds-accent,#C8102E);
  transform:rotate(45deg);transition:transform .25s ease}
.ds-cal .cal-title-block:hover .cal-title::after{transform:rotate(45deg) translate(2px,2px)}
.ds-cal .cal-jump{position:absolute;inset:0;display:block;margin:0}
.ds-cal .cal-jump__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ds-cal .cal-jump__select{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;font-size:16px;-webkit-appearance:none;appearance:none}
.ds-cal .cal-title-block:has(.cal-jump__select:focus-visible) .cal-title{outline:2px solid var(--ds-gold,#C9A227);outline-offset:6px;border-radius:6px}

/* cs2 (2026-12-01): Calendar year-at-a-glance, Semester headings in the Hello style but scaled down */
#key-dates .ds-greet{font-size:var(--greet-fs);line-height:1.1;margin-bottom:.35em;white-space:normal}

/* gs1 (1 Dec 2026) · ONE SIZE FOR EVERY "HELLO" HEADING. Owner: the gold italic subheadings (Languages "Hello", Mission and Vision,
   division CST Difference, campus, faculty, calendar semesters, student support, competitions, Why CST) all take one size. */
:root{--greet-fs:clamp(26px,2vw,32px)}
.ds-greet{display:block;font-family:var(--ds-font-display);font-style:italic;font-weight:400;font-size:var(--greet-fs);line-height:1.1;
  letter-spacing:-.01em;color:var(--cst-gold,#B8923A);margin:0 0 14px;white-space:normal;text-wrap:balance}
main .ds-block > .ds-greet{white-space:normal;line-height:1.1}

/* sg1 (1 Dec 2026) · a link inside a band reads in white, underlined (Student Support, safeguarding policy email) */
.ds-band__list .ds-h5 a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.5)}
.ds-band__list .ds-h5 a:hover{text-decoration-color:currentColor}

/* cu1 (1 Dec 2026) · "Coming up" dates (Events, and the same section on News): the day numbers take the Languages "Hello" style, one size (--greet-fs) */
[data-upcoming] .ds-date__n{font-family:"Playfair Display","Times New Roman",serif;font-style:italic;font-weight:400;font-size:var(--greet-fs,clamp(26px,2vw,32px));
  line-height:1.1;letter-spacing:-.01em;color:var(--cst-gold,#B8923A);margin-bottom:10px}

/* ps1 (1 Dec 2026) · OUR PROMISE AS A SEAL. Owner chose design B: a round stamp, "Our Promise" in italic at the centre,
   OUR PROMISE · CANADIAN SCHOOL OF TASHKENT round a gold ring, the red dot below (keys pr_seal_*, EN+RU). */
html body .ds-promise__mark.ds-promise__mark--seal{width:clamp(176px,14vw,216px);height:auto;overflow:visible}
html body .ds-promise__mark--seal text{text-transform:none;letter-spacing:0;font-weight:400}
html[lang="ru"] .ds-promise__mark--seal .ds-seal__a,html[lang="ru"] .ds-promise__mark--seal .ds-seal__b{font-size:27px}
html[lang="ru"] .ds-promise__mark--seal .ds-seal__ring{font-size:10.5px}

/* vu2 (1 Dec 2026) · Visit us card photos that are portraits keep the face in the frame (Achievements card: awards/soty) */
.nxt__img[src*="awards/soty"]{object-position:50% 16%}
.nxt__img[src*="news-academic-year-opening"]{object-position:50% 22%}
.nxt__img[src*="prospectus/cover"]{object-position:50% 9%}
.nxt__img[src*="stage-aw-teaching"]{object-position:50% 28%}

/* COOKIE NOTICE (ck1, Dec 2026): a small card at the bottom left, clear of the quick-action tabs on the right. */
.cookie{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:95;max-width:440px;
  padding:20px 22px;background:var(--cst-ivory);color:var(--cst-navy);border:1px solid rgba(10,35,66,.12);border-radius:14px;
  box-shadow:0 18px 48px rgba(10,35,66,.18);font-family:var(--font-body);opacity:0;transform:translateY(12px);
  transition:opacity .45s var(--ease),transform .6s var(--ease)}
.cookie.is-in{opacity:1;transform:none}
.cookie__t{margin:0 0 14px;font-size:14px;line-height:1.5}
.cookie__more{color:var(--cst-navy);text-decoration:underline;text-underline-offset:3px}
.cookie__more:hover{color:var(--cst-red)}
.cookie__acts{display:flex;gap:10px}
.cookie__btn{min-height:40px;padding:0 20px;font-size:14px}
@media (max-width:760px){.cookie{left:12px;right:12px;max-width:none;bottom:calc(84px + env(safe-area-inset-bottom))}
  .cookie__acts{flex-direction:row}.cookie__btn{flex:1}}
@media (prefers-reduced-motion:reduce){.cookie{transition:opacity .2s linear;transform:none}}
/* =====================================================================
   MOBILE POLISH (mp1, Dec 2026)
   1. Phone menu: the Our Promise gradient in place of flat navy; tighter rows; sub-pages as compact left-aligned rows.
   2. Phone footer: the Website links are a column like the others, with their heading; social icons and the language
      switch share one row at the same height; the copyright is one small line beneath, level with the floating + button.
   3. Phones: a stand-alone "Read more >>>" link (a.ds-link) becomes an outline button.
   ===================================================================== */
@media (max-width:1080px){
  html body:is(.ds,.dsc) .site-header .site-nav{
    background:radial-gradient(80% 45% at 15% 20%,rgba(20,70,160,.55) 0%,rgba(20,70,160,0) 70%),
      linear-gradient(165deg,#05265B 0%,#0E3C89 30%,#2E3A86 55%,#5E2A6C 80%,#9C1E45 100%)!important;
    padding-top:84px!important}
  html body:is(.ds,.dsc) .site-nav .site-nav__group,html body:is(.ds,.dsc) .site-nav > a{border-bottom-color:rgba(245,240,230,.14)!important}
  html body:is(.ds,.dsc) .site-nav .site-nav__trigger,html body:is(.ds,.dsc) .site-header .site-nav > a,
  html body:is(.ds,.dsc) .site-header.site-header--scrolled .site-nav > a{min-height:56px!important;font-size:clamp(24px,6.6vw,28px)!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm{padding:2px 4px 14px!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm .mm__grid{display:flex!important;flex-direction:column!important;gap:0!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm a.mm__card{display:flex!important;flex-direction:row!important;align-items:baseline!important;justify-content:flex-start!important;
    align-items:flex-start!important;gap:12px!important;min-height:0!important;height:auto!important;padding:9px 0!important;margin:0!important;text-align:left!important;background:none!important;border:0!important;box-shadow:none!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm a.mm__card::before{content:""!important;display:block!important;flex:0 0 14px!important;height:1px!important;align-self:flex-start!important;
    background:rgba(201,162,39,.75)!important;position:static!important;transform:none!important;margin-top:10px!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm .mm6__tx{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm .mm__t{font-size:16px!important;line-height:1.3!important;letter-spacing:0!important;text-align:left!important;color:rgba(250,248,244,.94)!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm .mm__d{display:block!important;margin:0!important;font-family:var(--ds-font-ui)!important;font-size:12.5px!important;line-height:1.35!important;
    letter-spacing:0!important;text-transform:none!important;text-align:left!important;color:rgba(245,240,230,.58)!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm :is(.mm__ic,.mm6__gr,.mm6__ar,.mm6__h,.mm6__spot,.mm6__strip,.mm6__q){display:none!important}
  html body:is(.ds,.dsc) .site-header .site-nav .site-nav__panel.mm a.mm__card:is(:hover,:active) .mm__t{color:#fff!important}
  html body:is(.ds,.dsc) .site-nav .site-nav__foot{padding-top:24px}
}
@media (max-width:760px){
  html body:is(.ds,.dsc) .close{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}
  html body:is(.ds,.dsc) .close .foot__top{grid-template-areas:"fam staff" "find legal"!important}
  html body:is(.ds,.dsc) .close .foot__legalcol{display:block!important;grid-area:legal!important}
  html body:is(.ds,.dsc) .close .foot__legalcol .foot__k{display:block!important}
  html body:is(.ds,.dsc) .close .foot__legalcol .foot__list{flex-direction:column!important;flex-wrap:nowrap!important;gap:8px!important}
  html body:is(.ds,.dsc) .close .foot__legalcol .foot__list a{opacity:1!important}
  html body:is(.ds,.dsc) .close .foot__base{display:grid!important;grid-template-areas:none!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:18px 12px;padding:22px 0 16px!important}
  html body:is(.ds,.dsc) .close .foot__soc{order:1;grid-column:1;grid-row:1;width:auto!important;max-width:100%;justify-self:start;justify-content:flex-start!important;align-items:center!important;gap:6px!important;height:40px!important;padding:0 8px!important;box-sizing:border-box!important}
  html body:is(.ds,.dsc) .close .foot__soc a{width:32px!important;height:32px!important;display:inline-flex;align-items:center;justify-content:center}
  html body:is(.ds,.dsc) .close .foot__lang{height:40px!important;box-sizing:border-box!important}
  html body:is(.ds,.dsc) .close .foot__lang{order:2;grid-column:2;grid-row:1;justify-self:end!important;margin:0!important}
  html body:is(.ds,.dsc) .close .foot__copy{order:3;grid-column:1 / span 2!important;grid-row:2!important;display:block!important;width:auto!important;max-width:none!important;justify-self:stretch!important;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left!important;margin:0!important;padding:16px 60px 16px 0!important;
    font-size:10px!important;line-height:20px!important;letter-spacing:0!important;white-space:nowrap}
  html body:is(.ds,.dsc) .close .foot__copy .foot__c{margin-right:4px!important}
  html body:is(.ds,.dsc) .close .foot__copy .foot__c{display:inline!important;font-size:inherit!important}
  /* stand-alone "Discover our school >>>" style links become outline buttons */
  html body:is(.ds,.dsc) main a.ds-link:not(.h7__link):not(.ds-form__more):not(.mm6__go){display:flex!important;align-items:center;justify-content:center;gap:10px;
    width:100%!important;min-height:52px;padding:0 22px!important;margin-top:24px;border:1px solid currentColor;border-radius:999px;
    letter-spacing:.16em!important;text-decoration:none}
  html body:is(.ds,.dsc) main a.ds-link:not(.h7__link):not(.ds-form__more):not(.mm6__go):is(:hover,:focus-visible){letter-spacing:.16em!important}
}
@media (max-width:380px){html body:is(.ds,.dsc) .close .foot__copy{font-size:9.5px!important;padding-right:52px!important}}
@media (max-width:760px){
  /* phones: the logo starts at its scrolled size instead of shrinking on scroll */
  body:is(.ds,.dsc) .site-header{--tab-logo:48px}
  /* footer: two columns per row (For Families | News and Events, Contact | Website), smaller type, tighter spacing */
  html body:is(.ds,.dsc) .close .foot__top{grid-template-areas:"fam staff" "find legal"!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:24px 14px!important}
  html body:is(.ds,.dsc) .close .foot__k{margin:0 0 18px!important;font-size:10px!important}
  html body:is(.ds,.dsc) .close .foot__list{gap:8px!important}
  html body:is(.ds,.dsc) .close .foot__list li{font-size:11px!important;line-height:1.4!important}
  html body:is(.ds,.dsc) .close :is(.foot__list a,.foot__find .foot__tel){font-size:11px!important;line-height:1.4!important}
  html body:is(.ds,.dsc) .close .foot__find{gap:8px!important}
  html body:is(.ds,.dsc) .close .foot__find .foot__k{margin-bottom:2px!important}
  html body:is(.ds,.dsc) .close .foot__base{margin-top:22px!important;padding-top:18px!important}
}
@media (max-width:760px){
  /* phones (mp2): a split's photo follows its text instead of opening the section, uses the full width
     and is cropped landscape (4:3), so no tall portrait photo lands straight under a hero */
  .ds-split > .ds-split__media{order:2;max-width:none!important;width:100%}
  .ds-split > .ds-split__media .ds-img:not(.ds-img--video){--ratio:4 / 3;width:100%;max-width:none;margin:0}
}
@media (max-width:760px){
  /* phones (mp3): the Visit Us cards are thin strips (about 4:1), so each photo is placed on its subject's faces */
  .nxt__img[src*="about-hero"]{object-position:50% 15%}
  .nxt__img[src*="academics-hero"]{object-position:50% 50%}
  .nxt__img[src*="admissions-hero"]{object-position:50% 40%}
  .nxt__img[src*="student-life-sports"]{object-position:50% 30%}
  .nxt__img[src*="lp-hero"]{object-position:50% 55%}
  .nxt__img[src*="home-hero-family"]{object-position:50% 60%}
  .nxt__img[src*="dining-hero"]{object-position:50% 12%}
  .nxt__img[src*="faculty-hero"]{object-position:50% 62%}
  .nxt__img[src*="inside-science-lab"]{object-position:50% 30%}
  .nxt__img[src*="news-academic-year-opening"]{object-position:50% 18%}
  .nxt__img[src*="careers-hero"]{object-position:50% 15%}
  .nxt__img[src*="student-support-hero"]{object-position:50% 22%}
  .nxt__img[src*="awards/soty"]{object-position:50% 22%}
  .nxt__img[src*="celebration/hero"]{object-position:50% 50%}
  .nxt__img[src*="alumni-hero"]{object-position:50% 50%}
  .nxt__img[src*="apply-admission-hero"]{object-position:50% 25%}
  .nxt__img[src*="open-house-quote"]{object-position:50% 45%}
  .nxt__img[src*="faq-hero"]{object-position:50% 30%}
  .nxt__img[src*="prospectus/cover"]{object-position:50% 12%}
  .nxt__img[src*="calendar-hero"]{object-position:50% 25%}
  .nxt__img[src*="contact-hero"]{object-position:50% 50%}
  .nxt__img[src*="stage-aw-teaching"]{object-position:50% 25%}
  .nxt__img[src*="parent-portal-hero"]{object-position:50% 50%}
  .nxt__img[src*="home-journey-hs-3"]{object-position:50% 40%}
  .nxt__img[src*="up-hero"]{object-position:50% 40%}
  .nxt__img[src*="academics-stage-ms"]{object-position:50% 60%}
}

/* HOMEPAGE TEXT (hm4, Dec 2026): pieces added with RR's final homepage content */
.ds-band .ds-band__kick{margin:0 0 12px}
.ds-band .ds-band__p{align-self:center;margin:0;max-width:62ch;font-size:clamp(15px,1.2vw,17px);line-height:1.6;color:rgba(250,248,244,.86)}
.ds-body--strong{font-weight:600;color:var(--cst-navy,#0A2342)}
.cnd__s--2{margin-top:12px}
.news-strip__more,.adm-path__btns{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:36px}
.voices__title{margin:10px 0 0;font-family:var(--ds-font-display,'Playfair Display',serif);font-weight:400;font-size:clamp(28px,3vw,42px);line-height:1.15;color:#fff}
.voices__title em{color:var(--ds-accent,#C8102E)}
.voices__sub{margin:12px 0 0;max-width:60ch;font-size:15px;line-height:1.6;color:rgba(250,248,244,.72)}

/* ABOUT TEXT (ab9, Dec 2026) */
.ab9-lead__p{max-width:68ch;margin:14px auto 0;text-align:center}
.ab9-lead__more{display:flex;justify-content:center;margin-top:32px}
.ab9-lic__tag{display:block;margin:6px 0 12px}
.ab9-prom .ds-title{max-width:22ch;margin-left:auto;margin-right:auto}

/* ACADEMICS TEXT (ac9, Dec 2026): bold lead line inside the cards, second intro paragraph */
.ds-block .ds-body > strong:first-child,.ds-card .ds-body > strong:first-child{display:block;margin-bottom:4px;font-weight:600;color:var(--t1,inherit)}
.ac9-intro{max-width:68ch;margin:12px auto 0}

/* LOWER PRIMARY TEXT (lp9, Dec 2026) */
.lp9-int{margin-top:12px}
.lp9-close{margin-top:28px;font-style:normal}
/* STUDENT SUPPORT TEXT (ss12, Dec 2026) */
.ss12-close{text-align:center;margin-left:auto;margin-right:auto;max-width:44ch}
/* ACHIEVEMENTS TEXT (ac12, Dec 2026) */
#student-of-year [data-i18n="sr_soty_body"]{margin-bottom:28px}
/* APPLY TEXT (af12, Dec 2026) */
.ap12-intro{margin:-4px 0 18px;color:var(--t2,inherit)}
/* OUR TEAM TEXT (ft12, Dec 2026) */
.fr12-join{grid-column:1 / -1;width:100%;max-width:none;text-align:center;margin:40px auto 0}
