:root{--theme-bg:#faf9f3;--theme-surface:#fff;--theme-soft:#edf1e6;--theme-border:#dce3d9;--theme-accent:#285d49;--theme-action:#285d49;--theme-text:#193735;--theme-muted:#64746e;--theme-gold:#f3ca4f}
html[data-theme="light"][data-dark-color="ocean"]{--theme-bg:#f5f9fc;--theme-surface:#fff;--theme-soft:#e8f2f8;--theme-border:#cddfe9;--theme-accent:#215f7d;--theme-action:#215f7d;--theme-text:#193746;--theme-muted:#526c7b}
html[data-theme="light"][data-dark-color="violet"]{--theme-bg:#faf7fd;--theme-surface:#fff;--theme-soft:#f0eaf7;--theme-border:#ddd1e9;--theme-accent:#67458b;--theme-action:#67458b;--theme-text:#342a43;--theme-muted:#73647f}
html[data-theme="light"][data-dark-color="amber"]{--theme-bg:#fcf9f2;--theme-surface:#fff;--theme-soft:#f6eddb;--theme-border:#e7d9bd;--theme-accent:#795820;--theme-action:#795820;--theme-text:#403321;--theme-muted:#7c6b50}
html[data-theme="dark"]{--theme-bg:#101c1a;--theme-surface:#1b2c28;--theme-soft:#24372e;--theme-border:#344741;--theme-accent:#8ac9a8;--theme-action:#347a5c;--theme-text:#e8f0ec;--theme-muted:#b2c2bb}
html[data-theme="dark"][data-dark-color="ocean"]{--theme-bg:#101b29;--theme-surface:#192b3e;--theme-soft:#20394e;--theme-border:#385369;--theme-accent:#94d4f5;--theme-action:#245879;--theme-text:#e9f3fa;--theme-muted:#b7cbdc}
html[data-theme="dark"][data-dark-color="violet"]{--theme-bg:#1b1729;--theme-surface:#2a243c;--theme-soft:#362d4b;--theme-border:#514564;--theme-accent:#d1b8fa;--theme-action:#624388;--theme-text:#f2ecfa;--theme-muted:#cbbfdb}
html[data-theme="dark"][data-dark-color="amber"]{--theme-bg:#211b14;--theme-surface:#30281e;--theme-soft:#403426;--theme-border:#5b4c38;--theme-accent:#f1ce8e;--theme-action:#76572a;--theme-text:#f7f0e4;--theme-muted:#d4c7b1}
html[data-theme][data-dark-color]{--cream:var(--theme-bg);--surface:var(--theme-surface);--soft:var(--theme-soft);--line:var(--theme-border);--green:var(--theme-accent);--ink:var(--theme-text);--muted:var(--theme-muted);--gold:var(--theme-gold);color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
body{background:var(--cream);color:var(--ink)}
html[data-theme] .button.gold{color:#193735}
.academy-icon{display:block;width:20px;height:20px;flex-shrink:0}.forward-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:6px}.forward-icon .academy-icon{width:17px;height:17px}.quiet-link,.sidebar-bottom a{display:inline-flex;align-items:center;gap:3px}
.academy-theme-controls{display:flex;gap:8px;align-items:center;flex-shrink:0}.academy-theme-button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);cursor:pointer}.academy-theme-panel{position:fixed;z-index:2000;background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:16px;border-radius:16px;width:min(270px,calc(100vw - 24px));box-shadow:0 12px 35px #0002}.academy-theme-panel>strong{display:block;margin-bottom:12px;font-size:14px}.academy-theme-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.academy-theme-options button{padding:10px 8px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);display:flex;align-items:center;gap:7px;font-size:13px}.academy-theme-options button:before{content:'';width:14px;height:14px;border-radius:50%;background:#8ac9a8;flex-shrink:0}.academy-theme-options [data-color="ocean"]:before{background:#94d4f5}.academy-theme-options [data-color="violet"]:before{background:#d1b8fa}.academy-theme-options [data-color="amber"]:before{background:#f1ce8e}.academy-theme-options [aria-pressed="true"]{background:var(--soft);border-color:var(--green);outline:1px solid var(--green)}
.login-tabs.has-sliding-tabs,[data-flow-tabs].has-sliding-tabs{position:relative;isolation:isolate;overflow:hidden;display:flex;padding:4px;background:var(--soft);border-radius:12px}.has-sliding-tabs button{position:relative;z-index:1;width:50%;background:transparent!important;box-shadow:none!important}.tab-selection{position:absolute;z-index:0;inset:4px auto 4px 4px;width:calc((100% - 8px)/2);border-radius:8px;background:var(--surface);box-shadow:0 2px 6px #00000008;transition:transform 420ms cubic-bezier(.22,1,.36,1);pointer-events:none}
.sidebar nav.has-moving-selection{position:relative;isolation:isolate}.nav-active-indicator{position:absolute;left:0;top:0;z-index:0;border-radius:10px;background:var(--theme-action);pointer-events:none}.sidebar nav.has-moving-selection a{position:relative;z-index:1}.sidebar nav.has-moving-selection a[aria-current],.sidebar nav.has-moving-selection a:first-child:not([aria-current]){background:transparent}.sidebar nav.has-moving-selection a[aria-current]{color:#fff}.sidebar{background:var(--soft)}
.dialog-close{display:grid;place-items:center;padding:0!important;line-height:1!important;flex:0 0 38px;min-height:38px}.dialog-top .dialog-close{margin:0!important;width:38px!important}.remember-choice{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:20px 0;font-size:13px;font-weight:400}.remember-choice input{width:19px;height:19px;min-height:19px;margin:1px 0;flex:0 0 19px}.remember-choice span{display:grid;gap:4px}.remember-choice small{font-size:11px;color:var(--muted)}
html[data-theme] :is(.billing-total,.receipt-paper){background:var(--surface);color:var(--ink);border-color:var(--line)}html[data-theme] .receipt-page{background:var(--cream)}html[data-theme] .receipt-classes :is(th,td){border-color:var(--line)}html[data-theme] .receipt-classes th{background:var(--soft);color:var(--ink)}html[data-theme="dark"] .feature-band{background:var(--theme-action)}html[data-theme="dark"] .feature-band p{color:var(--theme-text)}html[data-theme="dark"] .notice.error,html[data-theme="dark"] .form-error{color:#ffb6a9}html[data-theme="dark"] .empty{background:var(--surface)}html[data-theme="dark"] .brand img{background:#fff;border-radius:9px;padding:3px}
.has-button-ripple{position:relative;overflow:hidden;isolation:isolate}.button-ripple{position:absolute;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;z-index:3;transform:scale(0);animation:academy-ripple 650ms ease-out forwards}@keyframes academy-ripple{0%{opacity:.17;transform:scale(0)}100%{opacity:0;transform:scale(1)}}
.header .header-account.academy-login-link{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:112px;min-height:46px;padding:10px 18px;border:1px solid var(--green);border-radius:999px;background:transparent;color:var(--green);box-shadow:none;transition:color .4s,border-color .4s}.header .header-account.academy-login-link:before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--theme-action);transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.22,1,.36,1)}.header .header-account.academy-login-link:hover{color:#fff;border-color:var(--theme-action);text-decoration:none}.header .header-account.academy-login-link:hover:before{transform:scaleX(1)}.header-account .forward-icon{margin:0}.header-account .academy-icon{transition:transform .35s}.header-account:hover .academy-icon{transform:translateX(3px)}
html[data-theme="light"][data-dark-color] :is(.teacher-search,.teacher-shortlist,.curricula-card,.guide-preview,.contact,.ribbon,.enrol-form){background:var(--soft);border-color:var(--line);color:var(--ink)}
.flow-header,.flow-main{max-width:1100px;margin:auto;padding:24px}.flow-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.flow-main{padding-bottom:60px}.flow-intro{max-width:700px;margin:24px 0}.flow-tabs{max-width:460px;margin:28px 0}.flow-tabs button{border:0;border-radius:9px;padding:12px;color:var(--ink);cursor:pointer}.flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;counter-reset:step;padding:0;list-style:none}.flow-steps li{position:relative;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:24px;counter-increment:step}.flow-steps li:before{content:counter(step,decimal-leading-zero);display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--soft);color:var(--green);font-weight:700;font-size:13px;margin-bottom:20px}.flow-steps p{color:var(--muted);font-size:14px}.flow-note{background:var(--soft);border-radius:16px;padding:20px;margin:24px 0}
@media(max-width:760px){.sidebar nav.has-moving-selection{position:fixed}.sidebar .nav-active-indicator{background:var(--soft);border-radius:12px}.sidebar nav.has-moving-selection a[aria-current]{color:var(--green)}.sidebar{background:var(--cream)}.workspace-header .academy-theme-controls{grid-column:1/-1;justify-content:flex-end}.workspace-header{flex-wrap:wrap}.login-header{flex-wrap:wrap;gap:14px}.login-header>.quiet-link{margin-left:auto}.login-header .academy-theme-controls{margin-left:auto}.flow-steps{grid-template-columns:1fr}.flow-header,.flow-main{padding:20px}.receipt-toolbar{flex-wrap:wrap}.receipt-toolbar .academy-theme-controls{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.tab-selection,.nav-active-indicator,.header-account:before,.header-account .academy-icon{transition:none!important}.button-ripple{display:none}}
@media print{.academy-theme-controls,.academy-theme-panel,.button-ripple{display:none!important}html[data-theme][data-dark-color]{--cream:#fff;--surface:#fff;--ink:#193735;--muted:#64746e;--soft:#edf1e6;--line:#dce3d9;--green:#285d49;color-scheme:light}}

/* Reuse the website's transparent logo silhouette in each dark palette. */
.portal-brand-mark{display:none}
html[data-theme="dark"] .portal-brand-mark{display:block;flex:0 0 58px;width:58px;height:58px;background:var(--theme-accent);mask:url('/logo-mark.webp') center/contain no-repeat;-webkit-mask:url('/logo-mark.webp') center/contain no-repeat}
html[data-theme="dark"] .brand:has(.portal-brand-mark)>img{display:none}
#teachers .search-label{max-width:none;width:100%}
html{background:var(--cream)}
@media(prefers-reduced-motion:no-preference){
 @view-transition{navigation:auto}
 ::view-transition-old(root){animation:academy-page-out 150ms ease-out both}
 ::view-transition-new(root){animation:academy-page-in 400ms cubic-bezier(.22,1,.36,1) both}
 @keyframes academy-page-out{to{opacity:0}}
 @keyframes academy-page-in{from{opacity:.3}to{opacity:1}}
}
@media(max-width:760px){
 html[data-theme="dark"] .portal-brand-mark{width:44px;height:44px;flex-basis:44px}
 .app-shell .workspace-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding-block:16px;margin-bottom:20px}
 .app-shell .workspace-header .eyebrow{grid-column:1;grid-row:1;max-width:none}
 .app-shell .workspace-header .account-pill{grid-column:2;grid-row:1;max-width:190px;justify-self:end}
 .app-shell .workspace-header>.portal-switch{grid-column:1;grid-row:2;margin:0}
 .app-shell .workspace-header .academy-theme-controls{grid-column:2;grid-row:2;justify-self:end}
 .login-story{text-align:center}
 .login-card>h2,.login-card>.eyebrow,#login-description{text-align:center}
 .provider-buttons button{position:relative;justify-content:center;text-align:center;padding:12px 44px;gap:0}
 .provider-buttons .provider-mark{position:absolute;left:16px;top:50%;transform:translateY(-50%)}
 .provider-buttons button>span:last-child{margin-left:0}
 #email-access{justify-content:center;gap:0}

 .ava-mobile-dock{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none;transform:translateZ(0)}
 .sidebar nav{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* One theme control design across website, portal and phone layouts. */
html[data-theme] :is(.header .header-actions .theme-toggle,.theme-colors-toggle,.academy-theme-button){box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;max-height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);line-height:1;appearance:none;-webkit-appearance:none;box-shadow:none;vertical-align:middle}
html[data-theme] :is(.theme-toggle,.theme-colors-toggle,.academy-theme-button) svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-theme] :is(.theme-toggle,.theme-colors-toggle,.academy-theme-button):hover{background:var(--soft);transform:none}
html[data-theme] :is(.theme-toggle,.theme-colors-toggle,.academy-theme-button):focus-visible{outline:2px solid var(--green);outline-offset:3px}
html[data-theme] .theme-colors-toggle[hidden]{display:none}
#themeIcon{display:grid;place-items:center;width:20px;height:20px}

/* Keep select chevrons singular even when an earlier theme uses background shorthand. */
html[data-theme] select:not([multiple]):not([size]),html[data-theme] .comparison-selectors select{
 -webkit-appearance:none;appearance:none;background-image:url('../images/select-chevron.svg');
 background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;padding-right:42px;
}
html[data-theme="dark"] select:not([multiple]):not([size]),html[data-theme="dark"] .comparison-selectors select{background-image:url('../images/select-chevron-light.svg')}
html[data-theme="dark"] #comparison-clear{color:var(--theme-accent);opacity:1}
html[data-theme="dark"] #comparison-clear:disabled{color:var(--muted);opacity:.75}
html[data-theme="dark"] .hero .button.gold{background:var(--gold,#f1cb46);color:#172521;border-color:transparent}
html[data-theme="dark"] .ava-orb svg{color:#30250f}
html[data-theme="dark"] .ava-mobile-dock .ava-orb svg{color:var(--theme-accent)}
.journey-motion-stage,.journey-scroll-stage{background:var(--cream)}

@media(max-width:650px){
 .header .header-account.academy-login-link{display:none}
 .header #main-navigation .nav-account-links{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
}
/* Match the invitation and plan surfaces to the selected light palette. */
html[data-theme="light"][data-dark-color] :is(#parent-student-guide, .planner-summary) {
  background: var(--theme-soft);
  color: var(--theme-text);
  border-color: var(--theme-border);
}
html[data-theme="light"][data-dark-color] .planner-summary :is(.summary-lead, dt, .planner-note) {
  color: var(--theme-muted);
}
html[data-theme="light"][data-dark-color] .planner-summary :is(.eyebrow, a, .planner-summary-bottom > span) {
  color: var(--theme-accent);
}
html[data-theme="light"][data-dark-color] .planner-summary-bottom {
  border-color: var(--theme-border);
}

.journey + .discover {
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  body .planner-page .planner-after {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
}
