
/* Academic masthead, photograph-led spreads and consistent interior pages. */
:root {
  --academy: #182d46;
  --academy-deep: #102238;
  --academy-gold: #dbb573;
  --academy-line: #ded6c7;
  --canvas: #f7f4ed;
  --surface: #fffdf8;
  --body-ink: #25364a;
  --secondary-ink: #536071;
  --wine: #a31837;
  --wine-dark: #84122c;
  --action: linear-gradient(125deg,#b42042,var(--wine-dark));
  --midnight: linear-gradient(110deg,var(--academy-deep),#2b4563);
  --pearl: linear-gradient(145deg,#fff,var(--surface) 72%,#f7f3ea);
  --rim: var(--academy-line);
  --panel-shadow: inset 0 1px #ffffffc9,0 9px 26px -20px #13263f70;
  --card-radius: 16px;
  --control-radius: 10px;
  --reading-width: min(1160px,calc(100% - 40px));
  --site-type: "Nirmala UI","Noto Sans Bengali",system-ui,sans-serif;
}
body:has(.wrap.nav),body.console {
  --red:var(--wine); --red-dark:var(--wine-dark); --line:var(--rim);
  --ink:var(--body-ink); --muted:var(--secondary-ink);
  background:var(--canvas); color:var(--ink); font-family:var(--site-type);
}
@media (max-width:680px) { :root {--reading-width:min(560px,calc(100% - 30px))} }
.centre-bar {background:var(--academy-deep);color:#f3f5fa;font-size:13px}
.centre-bar .wrap,.guide-rail {display:flex;align-items:center;justify-content:space-between;gap:14px}
.centre-bar .wrap {min-height:34px}.centre-bar a {color:white;text-decoration:none}
header:has(.wrap.nav){background:#fff;border-bottom:1px solid var(--academy-line);box-shadow:none}
.wrap.nav{min-height:72px}.nav .brandname{color:var(--academy);max-width:210px}
@media (min-width:901px) {
  .nav .links {
    display:grid; grid-template-columns:repeat(4,auto); gap:5px;
    padding:4px; border:1px solid #d3c9b8; border-radius:14px;
    background:linear-gradient(140deg,#e9e6df,#f5f2eb);
    box-shadow:inset 0 1px 2px #17283d12;
  }
  .nav .links a {
    min-height:42px; padding:6px clamp(9px,1vw,17px);
    white-space:nowrap; font-size:14px; font-weight:700;
    border:1px solid #ded8cb; border-radius:10px;
    background:linear-gradient(#fffefa,#f8f5ee); color:#23354a;
    box-shadow:0 2px 4px #17283d0e;
  }
}
.nav .links a:is(:hover,:focus-visible) {background:#fff0d7;color:#452f19;border-color:#cba573}
.nav .links a[aria-current=page] {
  color:#fff9ec; background:linear-gradient(125deg,#273f5c,#15263d);
  border-color:#263c56; box-shadow:inset 0 -3px #dfb679;
}
@media (max-width:900px) {
  .nav .links.open {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .nav .links a {justify-content:center;border:1px solid #ddd4c6;background-color:#fffaf2}
}
.home-page main>.hero{padding:0;background:var(--academy);position:relative;overflow:hidden}
.home-page .hero .hero-grid{width:100%;max-width:none;margin:0;grid-template-columns:1fr;isolation:isolate;border-radius:0;background:var(--academy);min-height:clamp(410px,39vw,600px);box-shadow:none}
.home-page .hero-grid>div:first-child{width:min(1160px,calc(100% - 40px));margin:auto;padding:44px 0 74px;pointer-events:none}
.home-page .hero .actions a{pointer-events:auto}
.home-page .hero .hero-art{position:absolute;inset:0;width:100%;height:100%;margin:0;z-index:0}
.home-page .hero .photo-frame,.home-page .hero .photo-frame img{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;margin:0;border-radius:0}
.home-page .hero .photo-frame img{object-fit:cover;object-position:55% 40%;opacity:0;transition:opacity .85s ease}
.home-page .photo-frame>img:first-child:not([aria-hidden=true]),.home-page .hero .photo-frame img.is-active{opacity:1}
.home-page .hero .hero-art:after{background:linear-gradient(90deg,#101c33fa 2%,#162640e8 28%,#162640b0 46%,#16264028 70%,#14244016),linear-gradient(0deg,#101e3455,transparent 35%)}
.home-page .hero-grid h1{max-width:18ch;font-size:clamp(38px,4.5vw,68px);font-weight:700}
.home-page .hero-grid h1 em{color:#fff2d7}.home-page .hero .eyebrow{color:#ffe1a7}
.home-page .hero .lead{max-width:min(42ch,49vw);color:#f2f4f7}
.home-page .hero .actions .btn:not(.light){background:#b51a38;color:white;border-color:#d85a70}
.home-page .hero .actions .light{background:#14244080;border-color:#fff9}
#slide-controls{position:absolute;z-index:3;right:max(18px,calc((100% - 1160px)/2));bottom:49px;display:flex;align-items:center;gap:4px;color:white;background:#142440de;border:1px solid #ffffff66;border-radius:9px;padding:3px 7px}
#slide-controls[hidden]{display:none}#slide-controls button{width:35px;height:35px;background:transparent;color:white;border:0;cursor:pointer;font-size:19px}#slide-controls output{font-variant-numeric:tabular-nums}
.guide-rail{position:relative;z-index:2;margin:-26px auto 0;padding:0 14px;display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:white;border-top:3px solid var(--academy-gold);box-shadow:0 9px 24px #15263e1c}
.guide-rail a{display:flex;justify-content:space-between;align-items:center;padding:18px 16px;color:var(--academy);font-weight:700;border-right:1px solid #ebe8e5;text-decoration:none}
.guide-rail a:last-child{border:0}.guide-rail a:hover{background:#f6f1ed;color:var(--red)}
.home-page #care-guide{background:#faf9f7;padding-top:32px}
.home-page .care-feature,.home-page .directory-card{border-radius:6px}
.home-page main>.directory {background:var(--academy);color:white}
.home-page .directory-card{border:0;border-top:3px solid var(--academy-gold);background:#fff}
.home-page .directory-card h3{background:#f7f5f2;color:var(--academy)}
body:has(.wrap.nav) footer{background:var(--academy-deep)}
main>.trail+section{background:#faf9f7;padding-top:8px}
main>.trail{color:#6a5863}
main>.trail+section .section-head,#services .section-head{
  position:relative;isolation:isolate;overflow:hidden;text-align:left;display:block;
  max-width:none;margin:0 0 20px;padding:clamp(19px,2.5vw,34px);
  border:0;border-left:4px solid var(--academy-gold);border-radius:4px;
  background:linear-gradient(90deg,#14243cf7 15%,#192c48e8 56%,#192c4896),var(--chapter-photo,url("images/gallery-services-intro.jpg")) center 42%/cover;color:white
}
main>.trail+section .section-head .eyebrow{justify-content:flex-start;color:#ffdda4;margin:0 0 5px}
main>.trail+section .section-head .page-title{color:white;max-width:35ch;font-size:clamp(27px,3vw,42px);margin:0}
main>.trail+section .section-head p,#services .section-head p{color:#f2f4f9;border:0;max-width:70ch;margin:6px 0 0;padding:0;line-height:1.6}
#fees,#steps,#hours,#contact{--chapter-photo:url("images/royal-banner.jpg")}
#gallery,#stories,#impact{--chapter-photo:url("images/gallery-speech-learning.jpg")}
#therapy-details,#trust-reasons{--chapter-photo:url("images/service-02-occupational.jpg")}
#services .service-card,main :is(.gallery-card,.fee-card,.hours-card,.map-copy,.map-frame,.step,.stat,.info-card,.contact-form,.contact-info,.therapy-choice,.faq-list details){border-radius:6px}
#services .service-card h3{border-radius:4px;background:#172a45;color:white;margin:-10px 12px 0;border:0}
main .gallery-card figcaption,main .hours-card h3{background:var(--academy);color:white;padding:10px 14px}
#about .about-copy{background:var(--academy);padding:clamp(22px,3vw,46px);color:white;border-left:4px solid var(--academy-gold)}
#about .about-copy :is(h1,h2,p,li){color:#f5f6fa}#about .about-copy .eyebrow{color:#ffdda4}#about .about-copy .check{color:var(--academy)}
.console header,.console :is(.bar,.topline){background:var(--academy);color:white}
.console header :is(strong,.brand,a,.brand small){color:#fff!important}
.console :is(.metric,.metrics article){border-top-color:#d5ad70}
@media(max-width:760px){.home-page .hero-grid>div:first-child{padding:36px 0 94px;width:calc(100% - 32px)}.home-page .hero .hero-grid{min-height:400px}.home-page .hero .lead{max-width:33ch}.home-page .hero .hero-art:after{background:linear-gradient(90deg,#12213beb,#12213ba8 68%,#14244066)}.home-page .hero .photo-frame img{object-position:63% center}#slide-controls{bottom:29px}.guide-rail{grid-template-columns:1fr 1fr;margin-top:-12px;padding:0 5px}.guide-rail a{padding:11px 9px;font-size:14px}.centre-bar .wrap{font-size:12px}.care-grid{gap:10px}}
@media(prefers-reduced-motion:reduce){.home-page .hero .photo-frame img{transition:none}}

/* School identity and navigation masthead */
header:has(.wrap.nav) {
  padding: 7px 0;
  background: linear-gradient(105deg, #dfe5ec, #f4f1eb 70%, #e5e8ed);
  border-bottom: 1px solid #c4ced9;
}
header .wrap.nav {
  min-height: 76px;
  padding: 5px 8px 5px 5px;
  border: 1px solid #cbd2db;
  border-radius: 17px;
  background: linear-gradient(110deg, #e7ebf0, #fffcf7 53%, #f7f4ef);
  box-shadow: inset 0 1px 0 white, 0 4px 13px #13264112;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px 8px 12px;
  border: 1px solid #30425d;
  border-radius: 12px;
  background: linear-gradient(115deg, #101f36, #243b59);
  box-shadow: inset 3px 0 #dcad6a;
}
.nav .brand .logo {
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  padding: 2px;
  background: #fff;
  border: 2px solid #eabc79;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ffffff19;
}
.nav .brand .brandname {
  max-width: 255px;
  font: 800 clamp(19px, 1.65vw, 24px)/1.09 "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
.nav .brand .brandname small {
  margin-top: 4px;
  color: #f7d9a8;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .03em;
}
@media (max-width: 900px) {
  header .wrap.nav { min-height: 60px; gap: 8px; }
  .nav .brand { padding: 7px 14px 7px 10px; gap: 10px; }
  .nav .brand .logo { width: 48px; height: 48px; }
  .nav .brand .brandname { max-width: 225px; font-size: 19px; }
  .nav .menu { flex-shrink: 0; margin-right: 3px; }
}
@media (max-width: 420px) {
  header:has(.wrap.nav) { padding: 4px 0; }
  header .wrap.nav { width: calc(100% - 12px); }
  .nav .brand .brandname { font-size: 17px; }
  .nav .brand .logo { width: 43px; height: 43px; }
}

.home-page #home.hero {
  isolation:isolate;
  background:var(--academy-deep);
}
.home-page #home.hero::before {
  content:"";
  position:absolute;
  inset:-4px;
  z-index:-1;
  pointer-events:none;
  filter:blur(2px);
  background:linear-gradient(90deg,rgba(18,30,52,.94),rgba(23,37,60,.76) 48%,rgba(28,34,49,.4)),var(--hero-photo,url("images/service-05-dance-music.jpg")) center 53%/cover;
}
.home-page #home .hero-grid {
  width:min(1160px,calc(100% - 40px)); margin:auto; padding:clamp(28px,4vw,58px) 0 62px;
  min-height:0; display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;gap:clamp(24px,5vw,72px); background:none;overflow:visible;
}
.home-page #home .hero-grid>div:first-child {width:100%;margin:0;padding:0}
.home-page #home .hero-art {
  position:relative;inset:auto;z-index:1;width:100%;height:auto;align-self:center;display:block;
  padding:8px;border:1px solid #ffffff85;border-radius:22px;background:#fffaf5ed;
  box-shadow:0 22px 55px #111b2d50;color:#192941;overflow:hidden;
}
.home-page #home .hero-art::after {content:none}
.home-page #home .hero-art[hidden] {display:none}
.home-page #home .hero-grid.without-gallery {grid-template-columns:1fr}
.home-page #home .photo-frame {
  position:relative;inset:auto;width:100%;height:auto;aspect-ratio:4 / 3;
  border-radius:15px;overflow:hidden;background:#16243a;
}
.home-page #home .photo-frame img {
  position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;
}
.home-page #home .frame-footer {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 7px 5px}
#slide-caption {margin:0;min-height:3.1em;overflow-wrap:anywhere;font-size:15px;line-height:1.55;color:#263549}
#home #slide-controls {position:static;flex:none;gap:0;padding:2px;background:#1f3049;border-radius:9px}
#home #slide-controls button {width:30px;height:32px}
#home #slide-controls output {padding:0 3px}
@media(max-width:760px){
 .home-page #home .hero-grid {grid-template-columns:minmax(0,1fr);width:calc(100% - 32px);gap:22px;padding:26px 0 38px}
 .home-page #home .hero .lead,.home-page #home .lead{max-width:100%}
 .home-page #home .frame-footer{grid-template-columns:minmax(0,1fr);gap:4px} #home #slide-controls{justify-self:end}
}


/* Homepage information directory */
.home-page main > .directory {
  padding-block: clamp(32px, 4vw, 60px);
  background: radial-gradient(ellipse at 88% 0%, #304662, transparent 57%), #162740;
}
.home-page .directory-groups { gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.home-page .directory .directory-card {
  padding: 6px 6px 10px;
  border: 1px solid #ffffff48;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff24, #ffffff09);
  box-shadow: inset 0 1px #ffffff38, 0 16px 35px -24px #030b1e;
}
.home-page .directory-card:nth-child(1) { --cover: url("images/service-03-special-education.jpg"); }
.home-page .directory-card:nth-child(2) { --cover: url("images/gallery-services-intro.jpg"); }
.home-page .directory-card:nth-child(3) { --cover: url("images/therapy-session.jpg"); }
.home-page .directory .directory-card h3 {
  margin: 0 0 6px;
  padding: 16px 18px;
  min-height: clamp(90px, 9vw, 126px);
  align-items: end;
  overflow: hidden;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(0deg, #101e35ef, #15243e35 90%), var(--cover) center 37% / cover;
  color: white;
  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.35;
}
.home-page .directory .tile {
  margin: 0 6px;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #ffffff23;
  border-radius: 0;
  color: #f3f5fa;
  background: transparent;
  transition: background .18s ease;
}
.home-page .directory .tile:last-child { border-bottom-color: transparent; }
.home-page .directory .tile span {
  width: 30px; height: 30px;
  background: #ffffff0c; color: #ffe0a9; border: 1px solid #e8bd764f;
}
.home-page .directory .tile:is(:hover, :focus-visible) {
  background: #ffffff17; color: white; border-radius: 8px;
}
.home-page .directory .tile:is(:hover, :focus-visible) span {background: #f4d39e; color: #17273e;}
@media (max-width: 800px) {
  .home-page .directory-groups {grid-template-columns: 1fr;}
  .home-page .directory .directory-card h3 {min-height: 94px;}
}
@media (prefers-reduced-motion: reduce) {
  .home-page .directory .tile {transition: none;}
}

/* Native banner lettering. The subtitle remains live text at every width. */
.nav .brand:has(.school-wordmark) {
  padding: 6px 17px 6px 10px;
  gap: 12px;
  background: linear-gradient(100deg,#f8f4e9,#fffefa 55%,#f9f6ec);
  border: 1px solid #d8cfb9;
  box-shadow: inset 3px 0 #08706e, 0 2px 6px #132c3810;
}
.nav .brand .school-wordmark {
  width: clamp(220px,21vw,292px);
  max-width: 100%;
  min-width: 0;
  color: #003b4b;
}
.school-title {
  display: block;
  position: relative;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
}
.school-title:not(.custom-title) {
  aspect-ratio: 490 / 82;
  font-size: 0;
  background: url("images/royal-banner.jpg") 19.66% 33.64% / 220.408% 491.46% no-repeat;
  mix-blend-mode: multiply;
  clip-path: polygon(0 0,100% 0,100% 85%,20% 85%,18% 100%,0 100%);
}
.nav .brand .school-wordmark small {
  margin: 0;
  color: #174650;
  font: 700 clamp(12px,1vw,15px)/1.25 "Trebuchet MS",system-ui,sans-serif;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
}
.nav .brand:has(.school-wordmark) .logo {
  border-color:#cfa64e;
  box-shadow:0 0 0 2px #fff,0 0 0 3px #d8cdaf;
}
@media(max-width:520px){
  .nav .brand:has(.school-wordmark){gap:8px;padding:6px 8px}
  .nav .brand .school-wordmark{width:min(49vw,225px)}
  .nav .brand .school-wordmark small{font-size:12px}
}


/* Shared reading surfaces for the centre's information pages. */
body:has(.wrap.nav) {
  --sheet: var(--pearl);
  --edge: var(--rim);
  --card-depth: var(--panel-shadow);
}
.home-page .directory-card {display:flex;flex-direction:column}
.home-page .directory .tile {flex:1 0 auto}
.home-page .directory .directory-card h3 {flex:none}
main :is(.fee-card,.step,.stat,.info-card,.hours-card,.map-copy,.map-card,.therapy-choice,.therapy-detail,.faq-list details,.contact-form) {
  border:1px solid var(--edge);border-radius:16px;background:var(--sheet);box-shadow:var(--card-depth);
}
main :is(.fee-card,.info-card,.hours-card,.map-copy,.map-card,.step,.stat) {
  padding:clamp(18px,2vw,28px);
}
main .fee-card h3,main .hours-card h3,main .info-card h3 {
  margin:0 0 10px;padding:0 0 12px;background:none;color:var(--academy);border-bottom:2px solid #e4c690;
}
main .fee-line,main .hours-row {min-height:44px;align-items:center;border-color:#e4e1db}
main .fee-line .price {color:#8b223d;font-variant-numeric:tabular-nums}
main .fee-line .old-price {color:#655b60}
main .step-num {background:var(--academy);color:#ffe2ab;border-radius:50%}
main .stat {text-align:left;border-top:3px solid #cba35f}
main .stat strong {color:var(--academy);font-variant-numeric:tabular-nums}
main .check-list li,main .needs-list li {color:#38465a}
#about .about-photo,#about .about-copy {border-radius:16px;overflow:hidden}
#about .about-copy .check {color:#fff}
#about .about-copy .check span {color:#ffda91}
#about .about-copy .btn {background:#fff3df;color:#23334a;border-color:#fff3df}
main .therapy-choice {border-left:4px solid #b08c56}
main .therapy-choice strong {color:var(--academy)}
main .therapy-choice:is(:hover,:focus-visible) {border-color:#98683b;background:#fff7e9}
main .therapy-detail.active {padding:clamp(18px,3vw,32px)}
main .faq-list details {padding:0 18px}
main .faq-list summary {padding:15px 4px;cursor:pointer;color:var(--academy);font-weight:700}
main .faq-list details[open] {border-color:#b6a382}
main .faq-list details[open] p {padding-bottom:14px}
#stories .story-links {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px}
#stories .story-links .btn {justify-content:flex-start;min-height:60px}
#contact .contact-info {color:white;border:0}
#contact .contact-info .info-icon {background:#ffffff16;color:#ffe2ab}
#contact .field :is(input,select,textarea),#callbackForm input:not([type=checkbox]) {border:1px solid #bfc6ce;border-radius:9px;background:white;color:var(--body-ink)}
#callbackForm:not([hidden]) {display:grid;gap:12px;max-width:740px;margin:20px auto;padding:24px}
#callbackForm input:not([type=checkbox]) {display:block;width:100%;padding:10px}
body:has(.wrap.nav) footer {border-top:1px solid #ffffff25}
.footer-links a {display:inline-flex;align-items:center;min-height:32px}
.console :is(th,legend) {color:var(--academy)}
.console tbody tr:nth-child(even) {background:#f6f7f8}
.console .callback-panel li {padding:8px 0;border-bottom:1px solid var(--rim)}
.console :is(#editor,.callback-panel) {scroll-margin-top:24px}
.console #editor :is(select,textarea,input[type=file]) {background:white;color:var(--body-ink)}
.console :is(a,button,select,input,textarea):focus-visible,
body:has(.wrap.nav) :is(a,button,select,input,textarea,summary):focus-visible {outline:3px solid #c48432;outline-offset:3px}

.home-page #guide-rail {gap:4px;padding:5px;border:1px solid #69768a;border-radius:14px;background:var(--midnight);box-shadow:var(--panel-shadow)}
.home-page #guide-rail a {padding:12px 16px;min-height:46px;border:0;border-radius:9px;color:#fff8e9;background:#ffffff08}
.home-page #guide-rail a span {color:var(--academy-gold)}
.home-page #guide-rail a:is(:hover,:focus-visible) {background:#ffffff19}
.home-page #care-guide {padding-block:clamp(26px,3vw,44px) clamp(32px,4vw,58px);background:var(--canvas)}
#care-guide .care-heading {margin-bottom:18px}
#care-guide h2 {color:var(--academy);border-inline-start:4px solid var(--academy-gold);padding-inline-start:14px}
#care-guide .care-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.8vw,22px)}
#care-guide .care-feature {display:flex;flex-direction:column;min-height:0;padding:5px}
#care-guide .care-feature::before {content:none}
#care-guide .care-photo {position:static;z-index:auto;display:block;width:100%;height:auto;aspect-ratio:1.9;object-fit:cover;border-radius:12px 12px 0 0}
#care-guide .care-caption {flex:1}
#care-guide .care-caption h3 {font-size:inherit;line-height:1.45}
#care-guide .care-caption span {flex:none;width:32px;height:32px;border-color:#e6c79688;color:#ffe6b8}
#care-guide .care-feature:is(:hover,:focus-visible) .care-caption span {background:#f4d39e;color:var(--academy)}
@media(max-width:680px) {
  .home-page .directory .tile {flex:none}
  .console :is(.panel,.reports article,.callback-panel) {min-width:0;overflow-wrap:anywhere}
  .footer-links {gap:4px 14px}
  .home-page #guide-rail a {padding:9px 11px}
  #care-guide .care-heading {align-items:flex-start;flex-wrap:wrap}
  #care-guide .care-heading a {font-size:14px}
  #care-guide .care-grid {grid-template-columns:1fr}
  #care-guide .care-feature {display:grid;grid-template-columns:34% 1fr}
  #care-guide .care-photo {height:100%;min-height:92px;aspect-ratio:auto;border-radius:12px 0 0 12px}
}

/* Keep the chapter photograph full width and align the text with the masthead. */
main:has(> .trail) {background:var(--academy-deep)}
main > .trail + section {padding-block:0 clamp(40px,5vw,72px);background:var(--canvas)}
main > section > .wrap:has(> .section-head) {
  display:grid;grid-template-columns:minmax(0,1fr) var(--reading-width) minmax(0,1fr);
  width:100%;max-width:none;margin:0;
}
main > section > .wrap:has(> .section-head) > * {grid-column:2;min-width:0}
main > .trail + section .wrap > .section-head,#services .wrap > .section-head {
  grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) var(--reading-width) minmax(0,1fr);
  gap:0;text-align:start;align-content:center;
  padding:clamp(22px,3vw,42px) 0 clamp(27px,3.5vw,48px);
  margin:0 0 clamp(20px,2.6vw,36px);border:0;border-bottom:2px solid var(--academy-gold);
  border-radius:0;box-shadow:none;
  background:linear-gradient(90deg,#102238 12%,#172f49f2 45%,#172f49a3 76%,#172f4975),
    var(--chapter-photo,url("images/therapy-session.jpg")) center 43%/cover;
}
main > .trail + section .section-head > *,#services .section-head > * {grid-column:2}
main > .trail + section .section-head .page-title,#about .about-copy .page-title {
  color:#fff7e9;max-width:29ch;font-size:clamp(30px,3.5vw,50px);line-height:1.28;font-weight:700;
}
main > .trail + section .section-head p {color:#edf2f6;max-width:64ch;margin:10px 0 0}
#services {--chapter-photo:url("images/service-03-special-education.jpg")}
#fees,#steps,#hours,#contact {--chapter-photo:url("images/therapy-session.jpg")}
#location,#impact,#stories {--chapter-photo:url("images/service-05-dance-music.jpg")}

#about .about-grid {gap:0;align-items:stretch;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);overflow:hidden;background:var(--academy);box-shadow:var(--panel-shadow)}
#about .about-photo {min-height:0;border-radius:0;box-shadow:none}
#about .about-photo img {object-position:center}
#about .about-badge {inset:auto 16px 16px;width:fit-content;max-width:calc(100% - 32px);background:#12253ee8;color:white;border:1px solid #ffffff59}
#about .about-copy {padding:clamp(22px,3vw,40px);border:0;border-radius:0;background:var(--midnight)}
#about .about-copy p {font-size:16px;line-height:1.72;color:#edf1f5}
#about .checks {gap:7px;margin:18px 0}
#about .check {padding:7px 9px;border-radius:8px;border:1px solid #ffffff24;background:#ffffff09}
#fees .fee-grid {align-items:stretch;gap:18px}
#fees .fee-card {padding:clamp(17px,2vw,26px);border:1px solid var(--rim);background:var(--pearl);box-shadow:var(--panel-shadow)}
#fees .fee-card h3 {margin:0;padding:0 0 15px;border-color:var(--academy-gold);color:var(--academy)}
#fees .fee-line {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:13px 0}
#fees .price {white-space:normal;text-align:right;font-size:clamp(17px,1.5vw,22px)}
#fees .old-price {display:block;font-size:13px;color:#d3dae3;font-weight:500}
#fees .discount {display:block;width:fit-content;margin:5px 0 0 auto;padding:2px 8px;color:#4e3416;background:#ffe6b7}
#services .service-card, #care-guide .care-feature, main .gallery-card {
  border:1px solid var(--rim);border-radius:var(--card-radius);
  background:var(--pearl);box-shadow:var(--panel-shadow);
}
#services .service-card {padding:5px 5px 16px}
#services .service-thumb {display:block;aspect-ratio:1.9;margin:0;border-radius:12px 12px 0 0}
#services .service-card h3, #care-guide .care-caption, main .gallery-card figcaption {
  align-self:stretch;max-width:none;margin:0;padding:12px 15px;
  border:0;border-top:2px solid var(--academy-gold);border-radius:0 0 10px 10px;
  background:var(--midnight);color:#fffaf1;box-shadow:none;backdrop-filter:none;
  font-size:clamp(18px,1.5vw,22px);line-height:1.45;
}
main .gallery-card {padding:5px;display:flex;flex-direction:column}
main .gallery-card img {width:100%;height:auto;aspect-ratio:1.9;object-fit:cover;border-radius:12px 12px 0 0}
main .gallery-card figcaption {flex:1}
#services .service-card p {margin:14px;color:var(--secondary-ink);line-height:1.7}
#services .text-link,#care-guide .care-heading a {
  border:1px solid var(--rim);border-radius:var(--control-radius);
  padding:8px 14px;background:var(--surface);color:var(--wine);font-weight:700;
}
#services .text-link {margin:0 14px}
#services .text-link:is(:hover,:focus-visible),#care-guide .care-heading a:hover {background:#f5ebd9}
@media(max-width:680px) {
  #care-guide .care-caption {border-top:0;border-inline-start:2px solid var(--academy-gold);border-radius:0 10px 10px 0}
}
main :is(.step,.stat,.hours-card,.info-card,.map-copy,.map-card,.gallery-card,.contact-form,.therapy-choice,.faq-list details),
.console :is(.panel,.metric,.metrics article,.reports article,.callback-panel,#editor) {
  background:var(--pearl);border-color:var(--rim);box-shadow:var(--panel-shadow)
}
main .gallery-card figcaption,#contact .contact-info,.console :is(.bar,.topline){background:var(--midnight)}
main .therapy-choice:is(:hover,:focus-visible),main .faq-list details[open]{border-color:#a78959}
@media(max-width:820px){
  #about .about-grid {grid-template-columns:1fr}
  #about .about-photo {height:clamp(210px,52vw,350px)}
  #fees .fee-grid {grid-template-columns:1fr}
}
@media(max-width:400px){#about .checks {grid-template-columns:1fr}}
@media (max-width: 680px) {
  body:has(.mobile-cta) .floating-wa { display:none; }
  body:has(.mobile-cta) { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  .mobile-cta { bottom:calc(8px + env(safe-area-inset-bottom)); }
  .mobile-cta .btn { min-height:44px; }
}
html { scroll-padding-top:112px; }
@media (max-width:680px) {html {scroll-padding-bottom:85px;}}
/* Keep the masthead aligned as the page below it changes. */
html:has(body > header .wrap.nav) {
  scrollbar-gutter: stable;
}

body:has(> header .wrap.nav) > main > .trail {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  margin-block: 0;
  margin-inline: max(20px, calc((100% - 1160px) / 2)) 0;
  padding: 0;
  color: #f3dfba;
}
@media (max-width: 680px) {
  body:has(> header .wrap.nav) > main > .trail {
    margin-inline-start: max(15px, calc((100% - 560px) / 2));
  }
}

@keyframes royal-arrive {
  from { opacity: .55; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition {pointer-events:none}

  body > header:has(.wrap.nav) { view-transition-name: school-header; }
  body > .centre-bar { view-transition-name: school-contact; }

  /* An entry motion also works when opening the HTML files locally. */
  body:has(> header .wrap.nav) > main {
    animation: royal-arrive 220ms cubic-bezier(.2,.7,.25,1);
  }
  html:active-view-transition body > main { animation-duration: 1ms; }
  html:has(body > header .wrap.nav)::view-transition-group(*) {
    animation-duration: 200ms;
    animation-timing-function: ease-out;
  }
  html:has(body > header .wrap.nav)::view-transition-new(root) {
    animation: royal-arrive 220ms cubic-bezier(.2,.7,.25,1);
  }

  :is(.nav .links a, .nav .menu, .btn, .guide-rail a, .directory .tile, .care-feature, .text-link) {
    transition: transform 130ms ease-out, scale 130ms ease-out, color 130ms, background-color 130ms, border-color 130ms, box-shadow 130ms;
  }
  :is(.nav .links a, .nav .menu, .btn, .guide-rail a, .directory .tile, .care-feature, .text-link):active {
    scale: .98;
  }
}

/* The scroll container already reserves space for the sticky header. */
#services .service-card { scroll-margin-top: 0; }

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .nav .links {
    opacity: 0;
    translate: 0 -5px;
    transition: opacity 150ms ease-out, translate 150ms ease-out, display 150ms allow-discrete;
  }
  .nav .links.open { opacity: 1; translate: 0 0; }
  .nav .links:not(.open) { pointer-events: none; }
  @starting-style {
    .nav .links.open { opacity: 0; translate: 0 -5px; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .therapy-detail.active { animation: royal-arrive 160ms ease-out; }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .faq-list details { interpolate-size: allow-keywords; }
    .faq-list details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 180ms ease-out, content-visibility 180ms allow-discrete;
    }
    .faq-list details[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(> header .wrap.nav) :is(.btn,.service-card):hover { transform: none; }
}

/* Shared public controls and information panels. */
body:has(.wrap.nav) :is(.btn:not(.light), .nav > .btn),
.home-page #home .actions .btn:not(.light) {
  color:#fff;background:var(--action);border:1px solid var(--wine-dark);
  border-radius:var(--control-radius);box-shadow:0 4px 12px -7px #70152c99;
}
body:has(.wrap.nav) .btn:not(.light):hover {background:var(--wine-dark)}
body:has(.wrap.nav) .btn.light {border-radius:var(--control-radius)}
#about .about-copy .btn {background:var(--surface);color:var(--academy);border-color:var(--rim)}
#about .about-grid {border-radius:0 0 var(--card-radius) var(--card-radius);border-top:2px solid var(--academy-gold)}
#about {background:linear-gradient(var(--academy-deep) 90px,var(--canvas) 90px)}
#contact .contact-info,#fees .fee-card,.home-page .directory .directory-card {border-radius:var(--card-radius)}
#contact .contact-form,main .map-frame,main .therapy-detail {
  border:1px solid var(--rim);border-radius:var(--card-radius);background:var(--pearl);box-shadow:var(--panel-shadow);
}
main .map-copy p,main .therapy-detail :is(p,li),.hours-grid .map-card p {color:var(--secondary-ink)}
main :is(.map-copy,.map-card,.contact-form,.therapy-detail,.step) h3 {color:var(--academy)}
main .map-card,main .contact-form {color:var(--body-ink)}
main :is(.hours-card,.info-card,.map-card,.map-copy) h3 {border-bottom:1px solid var(--rim);padding-bottom:12px}
body.console .console-nav {background:var(--pearl);border-color:var(--rim);box-shadow:var(--panel-shadow)}
body.console .console-nav a {color:var(--academy)}
body.console .console-nav a:is(:hover,:focus-visible) {background:#f0e7d7}
body.console > header {background:var(--midnight);border-bottom:2px solid var(--academy-gold)}
.console > header .console-heading {
  width:var(--reading-width);margin:auto;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.console > header {padding:0}
.console-header-brand {display:inline-flex;align-items:center;gap:12px;font-weight:750;line-height:1.25}
.console-header-brand img {width:42px;height:42px;border-radius:50%;background:white;border:2px solid var(--academy-gold)}
.console header .console-heading > a {font-weight:650;text-decoration:none;padding:7px 12px;border:1px solid #ffffff57;border-radius:var(--control-radius)}
body.console main {box-sizing:border-box;width:var(--reading-width);max-width:none;margin:0 auto;padding:24px 0 48px}
body.console :is(.label,.metric strong,.metrics article strong,.panel h2,.reports h2) {color:var(--academy)}
body.console :is(.bar,.topline) {background:var(--midnight);border-radius:var(--card-radius);border-inline-start:3px solid var(--academy-gold)}
body.console :is(.bar,.topline) :is(p,.muted) {color:#e4ebf2}
body.console :is(.metrics article,.metric,.login) {border-top:3px solid var(--academy-gold)}
body.console :is(.metric,.metrics article,.reports article,.panel,.callback-panel,#editor) {border-radius:var(--card-radius)}
body.console :is(.track,.note,#slide-manager) {background:#f6f0e5;border-color:var(--rim)}
body.console .fill {background:var(--midnight)}
body.console :is(button,#editor button,.callback-panel button) {background:var(--action);color:white;border-radius:var(--control-radius);font-family:inherit}
body.console button.secondary {color:var(--academy);background:var(--surface);border:1px solid var(--rim)}
body.console :is(label,select,input,textarea) {font-family:inherit}

/* The four masthead destinations share a single opening layout. */
.primary-page {
  --entry-photo:url("images/therapy-session.jpg");
  --entry-tint:linear-gradient(90deg,#102238fa 8%,#172f49ea 48%,#172f49a6 78%,#172f498c);
  --entry-gap:clamp(16px,2vw,24px);
}
main > .trail + .primary-page .wrap > .section-head {
  min-block-size:clamp(228px,18vw,270px);
  align-content:center;
  padding-block:24px;
  background:var(--entry-tint),var(--entry-photo) center 43%/cover;
}
main > .primary-page .section-head > .eyebrow {grid-row:1}
main > .primary-page .section-head > .page-title {grid-row:2}
main > .primary-page .section-head > p {grid-row:3}
:is(#services,#fees,#gallery,#about).primary-page .section-head .page-title {max-width:100%;margin:0;font-size:clamp(30px,3.5vw,50px);line-height:1.28;font-weight:700}
main > .trail + .primary-page .section-head p {
  width:min(100%,68ch);margin:8px 0 0;padding:0;border:0;
  font-size:16px;line-height:1.65;
}
#about.primary-page {background:var(--canvas)}
#about.primary-page .section-head {background:var(--academy-deep)}
#about .section-head .chapter-image,#about .section-head::before {
  position:absolute;inset:0;width:100%;height:100%;grid-area:auto;
}
#about .section-head .chapter-image {z-index:-2;object-fit:cover;object-position:center 43%}
#about .section-head::before {content:"";z-index:-1;background:var(--entry-tint)}
.primary-page :is(.cards,.gallery-grid,.fee-grid,.about-panels) {display:grid;gap:var(--entry-gap)}
#services.primary-page .cards,#gallery.primary-page .gallery-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
#fees.primary-page .fee-grid,.primary-page .about-panels {grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--entry-gap)}
#about .about-reading,#about .about-panels .checks,#fees.primary-page .fee-card {
  margin:0;min-width:0;padding:clamp(18px,2vw,26px);border:1px solid var(--rim);
  border-radius:var(--card-radius);background:var(--pearl);color:var(--body-ink);box-shadow:var(--panel-shadow);
}
#about .about-reading p {color:var(--body-ink);line-height:1.8;margin:0}
#about .about-reading p + p {margin-top:12px}
#about .about-panels .checks {align-content:center}
#about .about-panels .check {color:var(--body-ink);background:var(--canvas);border-color:var(--rim)}
#about .about-panels .check span {color:var(--wine)}
#fees.primary-page .fee-card h3 {
  margin:-12px -12px 8px;padding:12px 15px;color:#fffaf1;background:var(--midnight);
  border:0;border-bottom:2px solid var(--academy-gold);border-radius:10px;font-size:clamp(18px,1.5vw,22px);
}
#fees.primary-page .fee-line {border-color:var(--rim)}
#fees.primary-page .price {color:var(--wine)}
#fees.primary-page .old-price {color:var(--secondary-ink)}
@media(max-width:900px) {
  #services.primary-page .cards,#gallery.primary-page .gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px) {
  main > .trail + .primary-page .wrap > .section-head {min-block-size:242px}
  #services.primary-page .cards,#gallery.primary-page .gallery-grid,
  #fees.primary-page .fee-grid,.primary-page .about-panels {grid-template-columns:minmax(0,1fr)}
}

/* Keep contact actions in the reading flow and distinguish each mobile action. */
@media (min-width: 681px) {
  body:has(.wrap.nav) > .floating-wa {
    position:static;width:fit-content;max-width:calc(100% - 32px);
    margin:16px max(20px,calc((100% - 1160px)/2)) 24px auto;
    color:#f7fffa;background:#185d49;border-radius:var(--control-radius);
    padding:10px 18px;box-shadow:none;
  }
}
@media (max-width:680px) {
  body:has(.wrap.nav) .mobile-cta {background:#fffaf2f5;border-color:var(--rim);gap:6px}
  body:has(.wrap.nav) .mobile-cta .btn {font-size:14px;line-height:1.3;box-shadow:none}
  body:has(.wrap.nav) .mobile-cta .btn[href^="tel:"] {background:var(--surface);color:var(--academy);border-color:var(--rim)}
}
.nav .menu:focus-visible,.nav .links a:focus-visible {outline:3px solid #987128;outline-offset:2px}
#services .service-card {display:flex;flex-direction:column;align-items:stretch}
#services .service-card .text-link {align-self:flex-start;margin-top:auto}

/* Report hierarchy, compact section navigation and editor controls. */
body.console .console-nav {
  display:inline-grid;grid-template-columns:auto auto auto;gap:4px;
  padding:4px;background:#ebe6dc;box-shadow:inset 0 1px 2px #17283c0d;
}
body.console .console-nav a {
  display:grid;place-items:center;text-align:center;background:var(--pearl);
  border:1px solid var(--rim);line-height:1.35;
}
body.console #report .label {display:flex;align-items:center;gap:8px;color:#f3cf95;font-size:14px}
body.console #report .label::before {content:"";width:22px;height:2px;background:currentColor}
body.console .bar label {display:grid;gap:4px;color:#f7ebd7;font-size:14px}
body.console #period {color:var(--academy);border-color:#bfb49d}
body.console .metrics article {border-top:0;padding:18px 20px;color:var(--secondary-ink)}
body.console .metrics article strong {margin-top:5px;line-height:1.3}
body.console #editor fieldset {min-inline-size:0}
body.console #editor :is(select,input,iframe) {min-width:0;max-width:100%}
body.console #editor :is(#resetEdit,[data-remove]) {background:var(--surface);border:1px solid var(--rim);color:var(--academy)}
body.console #editor :is(#resetEdit,[data-remove]):hover {border-color:var(--wine);color:var(--wine)}
@media (max-width:520px) {
  body.console .console-header-brand {gap:8px;font-size:14px;max-width:19ch}
  body.console .console-header-brand img {width:34px;height:34px}
  body.console .console-heading > a {flex:none;white-space:nowrap;font-size:14px;padding:8px}
  body.console .console-nav {display:grid;width:100%;grid-template-columns:1fr 1.45fr 1fr}
  body.console .console-nav a {font-size:14px;min-height:44px;padding:5px 3px}
  body.console .bar label {display:flex;align-items:center;gap:12px}
  body.console .metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
  body.console .metrics article {padding:12px 14px}
  body.console .metrics article:last-child {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}
  body.console .metrics article:last-child strong {margin:0}
}
@media (max-width:420px) {
  .home-page #home .actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .home-page #home .actions .btn {min-width:0;min-height:46px;padding:10px 6px;text-align:center;justify-content:center;line-height:1.4}
}

#analytics-choice{position:fixed;z-index:200;bottom:18px;left:18px;max-width:360px;width:calc(100% - 36px);padding:18px;border:1px solid #cbb48b;border-radius:18px;background:#fffdf5f7;color:#17293f;box-shadow:0 15px 45px #10203530;backdrop-filter:blur(16px);font-size:14px;line-height:1.7}#analytics-choice p{margin:0 0 12px}#analytics-choice button{padding:8px 14px;margin-right:8px;border:1px solid #d8c8ac;border-radius:9px;background:#17293f;color:#fff;font:inherit;cursor:pointer}#analytics-choice button:last-child{background:#fffaf0;color:#17293f}.privacy-choice{font:inherit;border:0;color:inherit;background:none;padding:0;cursor:pointer;text-decoration:underline}
#callbackForm[hidden]{display:none!important}#callbackForm input[type=checkbox]{width:auto}#callbackForm .trap-field{position:absolute;left:-9999px;opacity:0}#callbackForm output{display:block;margin-top:12px}
