/* Shared Institute theme. Page structure, learning states and security controls stay page-owned. */
:root{--ink:#061846;--blue:#0677ff;--cyan:#00d5f2;--pale:#f0f8ff;--line:#cfe4f4;--shadow:0 12px 36px #062f6612;--institute-night:#041638;--institute-sky:#03306f}
body.institute-theme{background:linear-gradient(160deg,#f6fcff,#eaf5ff 65%,#f3fbff);color:var(--ink)}
.institute-theme :is(.site-header,.account-header,.dashboard-header,.lesson-header,.play-header){background:#fffffff5;border-bottom:1px solid var(--line);box-shadow:0 2px 16px #062c6c0d}
.institute-theme .button{border-radius:30px}
.institute-theme .primary{background:linear-gradient(110deg,#00c8ef,#0867ff 80%);color:#fff;box-shadow:0 6px 18px #008cff30}
.institute-theme .light{background:#eff8ff;border:1px solid #c9e3f4;color:#075abe}
.institute-theme :is(.panel,.play-panel,.mode-panel,.cap-mode,.filters,.course-card,.achievement-card,.verification-result){border-color:var(--line);box-shadow:var(--shadow);border-radius:18px}
.institute-theme :is(.panel,.play-panel,.course-card,.achievement-card){background:#fff;border-top:3px solid #00b8d6}
.institute-theme :is(.panel,.play-panel,.course-card,.achievement-card) h2,.institute-theme :is(.panel,.play-panel,.course-card,.achievement-card) h3{color:#07366c}
.institute-theme :is(input,textarea,select):not([type=checkbox]):not([type=radio]){border-color:#b9d7eb}
.institute-theme :is(input,textarea,select):focus-visible{outline:3px solid #008cff;outline-offset:3px}
.institute-theme :is(.hero-chips,.hero-tags) span{color:#d9f8ff;border:1px solid #6cdbff55;background:#05214766;border-radius:25px;padding:8px 12px}
.institute-theme :is(.dashboard-sidebar,.lesson-sidebar){background:linear-gradient(160deg,#041638,#03306f)}
.institute-theme :is(.dashboard-sidebar,.lesson-sidebar) .active{background:linear-gradient(110deg,#00bfe9,#0867ff)}
.institute-theme :is(.achievement-summary,.certificate-status,.admin-welcome){background:linear-gradient(110deg,#041638,#03306f);color:#fff}
.institute-theme .achievement-card .achievement-icon{background:linear-gradient(135deg,#00c8ef,#0867ff)}
.institute-theme .achievement-card.earned{background:linear-gradient(145deg,#fff,#e5fbff);border-color:#00a9ce}
.institute-theme :is(.play-footer,footer){background:#edf7ff;border-top:1px solid var(--line)}
/* The same cropped hero photograph used by the approved homepage. */
.institute-theme :is(.library-hero,.play-hero){position:relative;isolation:isolate;display:flex;align-items:center;min-height:365px;background:#041638;overflow:hidden}
.institute-theme :is(.library-hero,.play-hero)>.theme-hero-photo+div{position:relative;z-index:2;width:54%;max-width:680px}
.theme-hero-photo{position:absolute;z-index:-2;inset:0 0 0 auto;width:65%;height:100%;overflow:hidden;pointer-events:none}
.theme-hero-photo img{position:absolute;right:0;top:-30.137%;height:280.548%;width:auto;max-width:none}
.theme-hero-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#041638 0,#0416389c 25%,#04163800 65%)}
.institute-theme :is(.library-hero,.play-hero) h1{color:white}
.institute-theme :is(.library-hero,.play-hero) h1 span{color:var(--cyan)}
.institute-theme :is(.library-orbit,.play-hero>.play-picture,.assessment-symbol){display:none}
.institute-theme .lesson-heading{position:relative;isolation:isolate;overflow:hidden;background:#041638;color:white;padding:30px;border-radius:20px;min-height:235px;align-items:center}
.institute-theme .lesson-heading>div:not(.theme-hero-photo){position:relative;z-index:2}
.institute-theme .lesson-heading .theme-hero-photo{width:65%;opacity:.55}
.institute-theme .lesson-heading p:not(.eyebrow){color:#e0efff;max-width:550px}
.institute-theme .lesson-heading .eyebrow{color:#80edff}
.institute-theme .lesson-pagination{flex-shrink:0;max-width:240px}
.institute-theme .dashboard-welcome{background:#041638}
.institute-theme .dashboard-hero-picture{width:55%;opacity:.8}
.institute-theme .dashboard-hero-picture img{height:280.548%;top:-30.137%;right:0;width:auto;max-width:none}
.institute-theme .dashboard-hero-picture:after{background:linear-gradient(90deg,#041638,transparent 75%)}
.institute-theme .account-story{background:linear-gradient(150deg,#041638,#03306f)}
.institute-theme .account-story h1 span{color:var(--cyan)}
.institute-theme .auth-tabs{background:#041638;padding:6px}
.institute-theme .auth-tabs button{color:#d4efff}
.institute-theme .auth-tabs button.selected{background:linear-gradient(110deg,#00bce7,#0867ff);color:white}
@media(max-width:850px){
 .institute-theme :is(.library-hero,.play-hero){display:block;padding:34px 24px 0;min-height:0}
 .institute-theme :is(.library-hero,.play-hero)>.theme-hero-photo+div{width:100%;max-width:none}
 .institute-theme :is(.library-hero,.play-hero)>.theme-hero-photo{position:relative;z-index:0;width:calc(100% + 48px);height:auto;aspect-ratio:896/365;margin:24px -24px 0}
 .institute-theme :is(.library-hero,.play-hero)>.theme-hero-photo:after{background:linear-gradient(180deg,#041638,transparent 30%)}
 .institute-theme .lesson-heading{display:block;padding:25px}
 .institute-theme .lesson-pagination{max-width:none;margin-top:22px}
}
@media(max-width:600px){
 .institute-theme .lesson-heading{padding:23px 18px}
 .institute-theme .lesson-heading .theme-hero-photo{width:100%;opacity:.35}
 .institute-theme .dashboard-hero-picture{width:70%;opacity:.3}
}
@media print{body.institute-theme{background:white}.institute-theme .certificate-sheet{box-shadow:none}}
.institute-theme .dashboard-hero-picture{width:38%}
.institute-theme .lesson-pagination>span{color:#d7f2ff}
@media(max-width:600px){.institute-theme .dashboard-hero-picture{width:45%}}
@media(max-width:850px){
 .institute-theme :is(.library-hero,.play-hero){display:flex;flex-direction:column;align-items:stretch}
 .institute-theme :is(.library-hero,.play-hero)>.theme-hero-photo{order:2;flex-shrink:0}
 .institute-theme :is(.library-hero,.play-hero)>.theme-hero-photo+div{order:1}
}

/* Approved brain logo, with a still equivalent for reduced motion and print. */
.institute-theme header .brand{aspect-ratio:1082/364;animation:none;background:white}
.institute-theme header .brand :is(.brand-static,.brand-motion),.footer-brand :is(.brand-static,.brand-motion){position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:contain;left:0;top:0}
.institute-theme header .brand .brand-motion,.footer-brand .brand-motion{display:none;pointer-events:none}
.footer-brand{display:block;position:relative;width:260px;max-width:100%;aspect-ratio:1082/364}
.certificate-brand .certificate-logo{display:block;position:static;width:360px;max-width:100%;height:auto;object-fit:contain}
@media(prefers-reduced-motion:no-preference){.institute-theme header .brand .brand-motion,.footer-brand .brand-motion{display:block}.institute-theme header .brand .brand-static,.footer-brand .brand-static{visibility:hidden}}
@media print{.institute-theme header .brand .brand-motion,.footer-brand .brand-motion{display:none!important}.institute-theme header .brand .brand-static,.footer-brand .brand-static{visibility:visible!important}}

.audio-welcome{margin:18px 0;max-width:530px}.welcome-listen{border:1px solid #60e6ff;border-radius:24px;background:#06204ad9;color:white;padding:10px 18px;font-weight:700;cursor:pointer}.audio-welcome audio{display:block;width:100%;margin-top:12px}.audio-welcome audio[hidden]{display:none}.welcome-transcript{color:#e0f6ff;margin-top:10px;font-size:13px}.welcome-transcript summary{cursor:pointer}.welcome-transcript>div{padding:14px;margin-top:8px;border:1px solid #6cdbff55;border-radius:14px;background:#041638e8}.welcome-audio-note{color:#b9dced;font-size:11px;margin:8px 0}.audio-welcome #welcome-audio-status{font-size:13px;color:#d9f8ff}.audio-welcome #welcome-audio-status:empty{display:none}
