/* Accessible neutral surfaces and restrained controls, reusing the existing Aurora assets. */
:root{--qc-ink:#173b59;--qc-muted:#53677d;--qc-surface:#fff;--qc-line:#d4e0eb;--qc-primary:#1765c1}
html body .ja31-enrollment-dropdown{background:#fff!important;color:#173b59!important;-webkit-text-fill-color:#173b59!important;border-color:#cbdbe8!important;max-width:calc(100vw - var(--ja-rail-width,0px) - 24px);box-shadow:0 12px 35px #142c4a21!important}
html body .ja31-enrollment-dropdown :is(h3,h4,b,strong){color:#173b59!important;-webkit-text-fill-color:#173b59!important}
html body .ja31-enrollment-dropdown h3{font-size:16px!important;line-height:1.5!important}
html body .ja31-enrollment-dropdown :is(p,small){color:#53677d!important;-webkit-text-fill-color:#53677d!important;font-size:12px!important;line-height:1.6!important}
html body .ja31-history-row{background:#fff!important;border-color:#d4e0eb!important}.ja31-history-row>span{background:#e8f5ee!important;color:#17683f!important;-webkit-text-fill-color:#17683f!important;font-size:11px!important}
html body :is(.ja31-enrollment-tools,.ja31-reg-topline) summary{background:#fff!important;color:#224b6b!important;-webkit-text-fill-color:#224b6b!important;border-color:#cbdbe8!important}
html body :is(.ja38-inbox-stream,.ja38-message,.ja-portal-dialog article){overflow-wrap:anywhere}
html body :is(.ja37-note,.ja38-muted,.ja38-note){color:#53677d!important;-webkit-text-fill-color:#53677d!important}
html body :is(button,a,input,select,textarea):focus-visible{outline:3px solid #438eda!important;outline-offset:3px}
html body button:disabled{cursor:not-allowed}html body button[aria-busy=true]{cursor:progress}
html[data-ja-theme=dark] body .ja31-enrollment-dropdown{background:#15263b!important;border-color:#38506c!important;color:#e4edf7!important;-webkit-text-fill-color:#e4edf7!important}
html[data-ja-theme=dark] body .ja31-enrollment-dropdown :is(h3,h4,b,strong){color:#f0f6fc!important;-webkit-text-fill-color:#f0f6fc!important}
html[data-ja-theme=dark] body .ja31-enrollment-dropdown :is(p,small){color:#b9cbdf!important;-webkit-text-fill-color:#b9cbdf!important}
html[data-ja-theme=dark] body .ja31-history-row{background:#192f46!important;border-color:#38506c!important}
html[data-ja-theme=dark] body :is(.ja37-note,.ja38-muted,.ja38-note){color:#bbcee1!important;-webkit-text-fill-color:#bbcee1!important}
/* Mobile sidebar can give the entire viewport back to content. */
#jaRailMinimize,#jaLearningFloat{display:none}
@media(max-width:700px){
 #jaRailMinimize{display:grid;place-items:center;width:32px;height:32px;margin:7px auto 0;background:#fff1f1;color:#b42332;border:1px solid #e6a6ad;border-radius:9px;box-shadow:none;font:700 23px/1 system-ui}
 body.ja-shell.ja-rail-minimized{--ja-rail-width:0px;padding-left:0!important}
 body.ja-rail-minimized #jaSiteRail{display:none!important}
 body.ja-rail-minimized #jaLearningFloat{position:fixed;left:10px;bottom:max(12px,env(safe-area-inset-bottom));z-index:311;display:grid;place-items:center;width:44px;height:44px;border:1px solid #c6d9eb;border-radius:14px;background:#f8fbff;color:#205780;box-shadow:0 4px 16px #123d5c26;padding:10px}
 #jaLearningFloat svg{width:24px;height:24px}
 html body .ja31-enrollment-dropdown{position:fixed!important;left:calc(var(--ja-rail-width,52px) + 12px)!important;right:12px!important;width:auto!important;max-height:65dvh;overflow:auto}
}
html body #jaHomePage .ja31-enrollment-dropdown :is(h3,h4,b,strong){color:#173b59!important;-webkit-text-fill-color:#173b59!important}
html body #jaHomePage .ja31-enrollment-dropdown :is(p,small){color:#53677d!important;-webkit-text-fill-color:#53677d!important}
html[data-ja-theme=dark] body #jaHomePage .ja31-enrollment-dropdown :is(h3,h4,b,strong){color:#f0f6fc!important;-webkit-text-fill-color:#f0f6fc!important}
html[data-ja-theme=dark] body #jaHomePage .ja31-enrollment-dropdown :is(p,small){color:#b9cbdf!important;-webkit-text-fill-color:#b9cbdf!important}
@media(max-width:700px){html body #jaHomePage .ja31-enrollment-dropdown{left:calc(var(--ja-rail-width,52px) + 12px)!important;right:12px!important;width:auto!important;max-width:calc(100vw - var(--ja-rail-width,52px) - 24px)!important}html body #jaHomePage .ja31-history{max-height:none!important;overflow:visible!important}}
/* Essential class information must stay readable rather than shrinking to decorative microtype. */
html body .ja31-class-card :is(p,.ja31-class-facts,.ja30-class-period){font-size:12px!important;line-height:1.6!important}
html body .ja31-class-card .ja31-class-cta{font-size:12px!important;line-height:1.4!important;min-height:40px;display:flex;align-items:center}
@media(max-width:700px){html body .ja31-class-card{padding:15px 12px!important}html body .ja31-class-card h3{font-size:18px!important;line-height:1.4!important}}
html body #jaClassCards .ja30-class-card p,html body #jaClassCards .ja30-class-meta{font-size:12px!important;line-height:1.6!important}
html body #jaClassCards .ja30-class-link{font-size:12px!important;line-height:1.5!important;min-height:40px;display:flex;align-items:center;gap:8px}
html body #jaClassCards .ja30-open-label{font-size:11px!important;line-height:1.5!important}
html body #jaClassCards .ja30-class-card h3{font-size:18px!important;line-height:1.35!important}
html body #jaClassCards .ja30-class-price strong{font-size:17px!important;line-height:1.3!important}
/* Plain, readable annual learning periods on a neutral surface. */
:root{--ja-safe-top:env(safe-area-inset-top,0px);--ja-safe-bottom:env(safe-area-inset-bottom,0px)}
html body #jaHomePage .ja47-timeline{background:#fff!important;color:#173b59!important;-webkit-text-fill-color:#173b59!important;padding:4px!important;border:0!important;border-radius:12px;box-shadow:none!important}
html body #jaHomePage .ja47-timeline h3{font-size:18px!important;line-height:1.5!important;margin:0 0 5px!important;color:#173b59!important;-webkit-text-fill-color:#173b59!important}
html body #jaHomePage .ja47-timeline>p{color:#53677d!important;-webkit-text-fill-color:#53677d!important;margin:0 0 15px!important;font-size:13px!important}
html body #jaHomePage .ja47-period{display:flex;flex-direction:column;gap:5px;padding:15px 16px!important;border:1px solid #d4e0eb!important;border-radius:11px;background:#f5f8fc!important;margin-top:10px}
html body #jaHomePage .ja47-period b{color:#173b59!important;-webkit-text-fill-color:#173b59!important;font:700 14px/1.5 var(--font),sans-serif!important}
html body #jaHomePage .ja47-period>span{color:#1c598a!important;-webkit-text-fill-color:#1c598a!important;font:750 19px/1.5 var(--font),sans-serif!important;letter-spacing:0!important;background:none!important}
html body #jaHomePage .ja47-period small{color:#53677d!important;-webkit-text-fill-color:#53677d!important;font-size:12px!important}
@media(max-width:700px){body.ja-rail-minimized #jaLearningFloat{width:68px;height:78px;left:9px;bottom:max(10px,env(safe-area-inset-bottom));padding:0;border:0;border-radius:0;background:none;box-shadow:none;touch-action:manipulation;user-select:none;-webkit-user-drag:none}#jaLearningFloat img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;animation:ja-learning-float 4s ease-in-out infinite;filter:drop-shadow(0 4px 5px #12385b33)}}
@keyframes ja-learning-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){#jaLearningFloat img{animation:none!important}}
/* Compact, independent testimonial panel and viewport-contained enrollment dropdowns. */
html body .ja-promo-row>.ja-banner-panel{height:var(--ja30-hero-height,480px)!important;max-height:520px!important;min-height:0!important;align-self:start!important}
html body .ja-promo-row>.ja-banner-panel .ja30-video-card{height:var(--ja30-card-height,380px)!important;max-height:100%!important}
html body .ja31-enrollment-dropdown{position:fixed!important;z-index:800!important;box-sizing:border-box;overscroll-behavior:contain;transform:none!important;inset-inline-end:auto}
html body .ja31-enrollment-dropdown .ja31-history{max-height:none!important;overflow:visible!important}
html body #jaHomePage .ja47-period dl{margin:4px 0 0;display:grid;gap:8px}
html body #jaHomePage .ja47-period dl>div{display:grid;grid-template-columns:115px minmax(0,1fr);gap:10px;align-items:baseline}
html body #jaHomePage .ja47-period dt{font-size:12px;color:#53677d!important;-webkit-text-fill-color:#53677d!important}
html body #jaHomePage .ja47-period dd{margin:0;font-size:14px;font-weight:700;color:#173b59!important;-webkit-text-fill-color:#173b59!important}
@media(max-width:700px){html body #jaHomePage .ja47-period dl>div{grid-template-columns:1fr;gap:1px}html body .ja-promo-row>.ja-banner-panel{max-height:420px!important}}
/* Match the whole left stack to the existing video height; never grow the video to fit registration. */
@media(min-width:1001px){
 html body .ja30-left-stack{height:var(--ja30-hero-height,520px)!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important;align-content:start}
 html body .ja30-left-stack>.hn-enhanced{min-height:0!important;display:flex!important;flex-direction:column!important;height:100%!important}
 html body .hn-enhanced>.ja32-enrollment-head{min-height:28px!important;height:28px!important;max-height:28px!important;flex-wrap:nowrap!important;margin-bottom:8px!important;gap:7px!important;flex:none}
 html body .hn-enhanced>.ja32-enrollment-head h2{font-size:11px!important;margin:0!important;white-space:nowrap}
 html body .hn-enhanced .ja31-enrollment-tools{gap:6px!important;flex-wrap:nowrap!important}
 html body .hn-enhanced .ja31-enrollment-tools summary{font-size:11px!important;line-height:1.3!important;padding:6px 9px!important;min-height:28px!important;border-radius:9px!important}
 html body .hn-enhanced #jaClassCards{flex:1;min-height:0!important;box-sizing:border-box;padding:13px!important;gap:12px!important;align-items:stretch}
 html body #jaClassCards .ja30-class-card{padding:12px 14px!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:0!important}
 html body #jaClassCards .ja30-class-top{margin:0 0 6px!important}
 html body #jaClassCards .ja30-class-level{height:30px!important;width:30px!important;font-size:15px!important}
 html body #jaClassCards .ja30-class-card h3{margin:3px 0 5px!important;font-size:18px!important}
 html body #jaClassCards .ja30-class-card p{margin:0 0 7px!important;font-size:11px!important;line-height:1.5!important}
 html body #jaClassCards .ja30-open-label{font-size:10px!important;line-height:1.4!important;margin:0 0 6px!important}
 html body #jaClassCards .ja30-class-price{font-size:20px!important;line-height:1.3!important;margin:0 0 6px!important}
 html body #jaClassCards .ja30-class-price strong{font-size:20px!important}
 html body #jaClassCards .ja30-class-meta{font-size:11px!important;line-height:1.5!important;margin:0 0 6px!important}
 html body #jaClassCards .ja30-class-link{margin-top:auto!important;padding-top:8px!important;min-height:32px!important;font-size:11px!important;line-height:1.4!important}
 html body #jaClassCards .ja30-class-card.n2 .ja30-class-link{padding-right:42px!important}
}
html body .ja30-video-grid[hidden]{display:none!important}
html body .ja-banner-controls :is(#jaBannerPrev,#jaBannerNext,#jaBannerPause){display:grid!important;place-items:center;width:32px;height:32px;min-width:32px;padding:0!important;border:1px solid #c9dce8!important;border-radius:50%!important;background:#fff!important;color:#285576!important;box-shadow:0 2px 6px #183b5910;transition:background .15s,color .15s}
html body .ja-banner-controls :is(#jaBannerPrev,#jaBannerNext,#jaBannerPause):hover{background:#e8f4fc!important;color:#085a88!important}
html body .ja-banner-controls button svg{display:block;pointer-events:none}
html body .ja-banner-controls button:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
/* Derive video proportions from each visible slide, avoiding legacy shared-height recalculation. */
html body #jaBannerStage .ja30-video-grid{grid-template-columns:repeat(var(--video-count,3),minmax(0,1fr))!important;width:100%!important;gap:10px!important;align-items:center!important}
html body .ja-promo-row>.ja-banner-panel #jaBannerStage .ja30-video-card{width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:9/16!important;max-height:100%!important;align-self:center!important;justify-self:stretch!important}

/* Preserve the orientation event while marking the start of Season 7. */
@media(max-width:650px){
 body .ja-season-calendar .ja-calendar-header{flex-direction:column!important;align-items:stretch!important;gap:5px!important}
 body .ja-season-calendar .ja-calendar-controls{display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:4px!important;width:100%!important;margin:0!important}
 body .ja-season-calendar #jaCalendarToday{grid-column:1/-1;justify-self:end}
 body .ja-season-calendar #jaCalendarPrev{grid-column:1}
 body .ja-season-calendar #jaCalendarNext{grid-column:3}
 body .ja-season-calendar :is(#jaCalendarPrev,#jaCalendarNext){position:static!important;width:32px!important;height:32px!important;min-width:0!important;margin:0!important;padding:0!important;transform:none!important}
 body .ja-season-calendar #jaCalendarMonth{grid-column:2;position:static!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;transform:none!important;text-align:center;white-space:nowrap;font-size:clamp(12px,4vw,16px)!important;line-height:1.3!important}
 body .ja-season-calendar .ja-day{min-width:0;gap:1px!important;font-size:12px!important}
 body .ja-season-calendar .ja-day>span:first-child{font-size:12px!important;line-height:1.2}
 body .ja-season-calendar .ja-day-stamps i{font-size:8px!important;line-height:1.15;padding:1px 3px!important}
}
