/* Approved student-zone direction: ivory, navy, gold; subject-first navigation. */
.sp-shell{--sp-ink:#123447;--sp-gold:#b28a50;--sp-muted:#7a8790;background:#f8f6f0;color:var(--sp-ink);padding:30px 0 42px;min-height:65vh}
.sp-wrap{width:calc(100% - 64px);max-width:1200px;margin:auto}
.sp-shell *{box-sizing:border-box}
.sp-kicker{font:750 11px/1.4 Inter,system-ui,sans-serif;letter-spacing:.14em;color:#a07b46;display:block}
.sp-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.sp-welcome h1{font:600 clamp(39px,5vw,65px)/1.12 Georgia,serif;letter-spacing:-.045em;margin:8px 0 6px;color:#103447}
.sp-welcome h1 em{font-style:normal;color:#b7935d}
.sp-welcome p{font:400 16px/1.55 Inter,system-ui,sans-serif;margin:0;color:var(--sp-muted)}
.sp-profile-shortcut{display:flex;align-items:center;justify-content:center;width:58px;height:58px;flex:none;border:1px solid #dbc8a7;border-radius:50%;background:#fffdf7}
.sp-profile-shortcut .bp-academic-emblem{width:53px;height:53px}
.sp-profile-shortcut>svg{width:27px;height:27px}
.sp-top-grid{display:grid;grid-template-columns:.85fr 1.7fr;gap:20px;margin-bottom:32px;align-items:stretch}
.sp-league{border-radius:12px;background:linear-gradient(115deg,#103144,#1b455a);border:1px solid #365b6c;color:#fff!important;padding:24px;display:grid;grid-template-columns:72px 1fr 15px;align-content:center;align-items:center;gap:16px;text-decoration:none;min-width:0}
.sp-trophy{width:70px;height:70px;border:1.5px solid #cfac70;border-radius:50%;color:#e8c484;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#416071,#102c3c);box-shadow:inset 0 0 0 4px #123346,inset 0 0 0 5px #b18d5180}
.sp-trophy svg{width:35px;height:35px;filter:drop-shadow(0 2px 3px #0004)}
.sp-league-place{min-width:0}
.sp-league-place>small{font:500 12px/1.4 Inter,system-ui,sans-serif;color:#d7e0e5}
.sp-league-place>strong{font:500 25px/1.15 Georgia,serif;display:block;margin-top:6px;overflow-wrap:break-word}
.sp-league-points{grid-column:2;display:flex;flex-direction:column;gap:5px;min-width:0}
.sp-league-points>strong{font:500 23px/1.2 Georgia,serif}
.sp-league-points small{font:400 13px Inter,system-ui,sans-serif}
.sp-league-points>span{font:400 10px/1.5 Inter,system-ui,sans-serif;color:#bacbd3}
.sp-chevron{grid-column:3;grid-row:1/3;font:300 30px Georgia,serif}
.sp-continue{position:relative;border:1px solid #c8a570;border-radius:12px;padding:24px 27px;min-height:230px;overflow:hidden;background:#f8f0df url('./assets/academy-continue-v1.webp') center right/cover no-repeat}
.sp-continue:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#faf7effa 0%,#faf7eff0 37%,#faf7ef77 61%,transparent 78%)}
.sp-continue-copy{position:relative;z-index:1;max-width:70%}
.sp-continue h2{font:600 29px/1.1 Georgia,serif;color:#173b4d;margin:8px 0;letter-spacing:-.025em;overflow-wrap:break-word}
.sp-continue p{font:400 13px/1.5 Inter,system-ui,sans-serif;color:#7c858a;margin:0 0 15px;max-width:330px}
.sp-track{display:flex;align-items:center;gap:10px;margin:14px 0 17px;color:#7c858a}
.sp-track small{font:400 11px/1.4 Inter,system-ui,sans-serif;white-space:nowrap}
.sp-track-line{width:120px;height:5px;background:#e8dfce;border-radius:9px;overflow:hidden}
.sp-track-line>i{height:100%;display:block;background:#af8551;border-radius:9px}
.sp-primary{display:inline-flex;align-items:center;gap:12px;font:650 13px/1 Inter,system-ui,sans-serif;color:#fff!important;background:#123e54;padding:14px 20px;border-radius:9px;text-decoration:none;min-height:44px}
.sp-primary svg{width:19px;height:19px}
.sp-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:0 0 16px}
.sp-section-heading h2{font:500 clamp(27px,3vw,39px)/1.16 Georgia,serif;letter-spacing:-.035em;margin:0;color:#123447}
.sp-section-heading>a{font:650 12px/1.5 Inter,system-ui,sans-serif;color:#a67b3e;white-space:nowrap}
.sp-search{display:flex;align-items:center;gap:12px;border:1px solid #d5d7d3;background:#fffdf9;border-radius:9px;padding:0 17px;height:49px;margin-bottom:12px;color:#88949c}
.sp-search svg{width:21px;height:21px;flex:none}
.sp-search input{font:400 14px/1.5 Inter,system-ui,sans-serif;width:100%;min-width:0;border:0!important;outline:0;background:transparent!important;padding:10px 0!important;color:#173b4d;box-shadow:none!important}
.sp-search:focus-within{outline:2px solid #b38e56;outline-offset:2px}
.sp-search input::placeholder{color:#8a949c}
.sp-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 11px}
.sp-filters button{border:1px solid #e2e0d8;background:#efede7;color:#77848b;border-radius:24px;padding:10px 19px;font:650 12px/1.3 Inter,system-ui,sans-serif;cursor:pointer;min-height:40px;white-space:nowrap}
.sp-filters button[aria-pressed=true]{background:#143c52;color:white;border-color:#143c52}
.sp-result-count{font:400 10px/1.5 Inter,system-ui,sans-serif;color:#8a9296;margin:10px 0 15px}
.sp-subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.sp-subject{background:#fffdfa;border:1px solid #e0ded6;border-radius:10px;position:relative;padding:19px 19px 18px 23px;min-width:0;display:grid;grid-template-columns:42px 1fr;gap:13px;overflow:hidden}
.sp-subject:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:#bd985c}
.sp-subject:nth-child(even):before{background:#14394d}
.sp-subject[hidden]{display:none!important}
.sp-subject-icon{background:#f7f2e8;border:1px solid #e5dfd0;color:#aa824d;width:42px;height:42px;border-radius:50%;display:grid;place-items:center}
.sp-subject-icon svg{width:25px;height:25px}
.sp-subject-content{min-width:0}
.sp-subject-title{display:flex;flex-direction:column;gap:7px;align-items:flex-start;margin-right:12px}
.sp-subject-title h3{font:600 22px/1.15 Georgia,serif;letter-spacing:-.025em;color:#16384c;margin:0}
.sp-subject-title h3>a{color:inherit;text-decoration:none}
.sp-subject-title>span{background:#f3ecdf;color:#a37a42;font:600 10px/1.4 Inter,system-ui,sans-serif;padding:3px 8px;border-radius:4px;white-space:nowrap}
.sp-subject-content>p{font:400 10px/1.5 Inter,system-ui,sans-serif;color:#89949a;margin:9px 0 11px}
.sp-modes{display:flex;gap:5px;flex-wrap:wrap}
.sp-modes>a,.sp-mode-unavailable{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 7px;border:1px solid #dadbd5;border-radius:7px;min-height:37px;font:500 10px/1.4 Inter,system-ui,sans-serif;color:#1d4157;background:#fffefa;text-decoration:none;flex:1}
.sp-modes svg{width:15px;height:15px;flex:none}
.sp-mode-unavailable{opacity:.4}
.sp-modes>a:hover,.sp-modes>a:focus-visible{border-color:#aa8653;background:#f7f0e3}
.sp-subject-arrow{position:absolute;right:13px;top:18px;font:300 26px Georgia,serif;color:#14394e;text-decoration:none}
.sp-show-all{display:flex;align-items:center;justify-content:center;gap:14px;padding:13px 22px;background:none;border:1px solid #d5c2a3;color:#9b753f;font:650 12px Inter,system-ui,sans-serif;border-radius:7px;margin:18px auto 0;cursor:pointer;min-height:44px}
.sp-show-all svg{width:18px;height:18px}
.sp-show-all[hidden],.sp-empty[hidden]{display:none}
.sp-empty{padding:25px;text-align:center;font:400 14px Inter,system-ui,sans-serif}
.sp-learning-flow{display:flex;align-items:center;justify-content:center;gap:19px;margin:25px 0 32px;color:#354f5e;font:500 12px Inter,system-ui,sans-serif}
.sp-learning-flow span{display:flex;gap:9px;align-items:center}
.sp-learning-flow b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#c3a06b;color:white;font-weight:500}
.sp-learning-flow>i{font-style:normal;color:#a6a8a1}
.sp-practice-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.sp-practice-art{border-radius:10px;overflow:hidden;position:relative;padding:28px;min-height:210px;display:flex;flex-direction:column;justify-content:center;text-decoration:none;background-repeat:no-repeat}
.sp-court{background-color:#12374a;background-image:linear-gradient(90deg,#0b2c3fe0,transparent),url('./assets/practice-scenes-v1.webp');background-size:cover,auto 300%;background-position:center,right top;color:#fff!important}
.sp-office{background-color:#e7d6b4;background-image:linear-gradient(90deg,#172c37d9,transparent),url('./assets/practice-scenes-v1.webp');background-size:cover,auto 320%;background-position:center,right 48.4848%;color:#fff!important}
.sp-practice-art h3{font:500 30px/1.15 Georgia,serif;margin:0 0 9px;color:inherit;letter-spacing:-.025em;max-width:75%}
.sp-practice-art p{font:400 13px/1.55 Inter,system-ui,sans-serif;color:#ffffffdc;margin:0;max-width:70%}
.sp-practice-art>span{position:absolute;right:20px;bottom:20px;border-radius:50%;width:42px;height:42px;background:#d5ad6d;display:grid;place-items:center;color:white}
.sp-practice-art>span svg{width:22px;height:22px}
.sp-bottom-links{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;margin:30px 0 15px}
.sp-bottom-links a{font:600 11px/1.5 Inter,system-ui,sans-serif;color:#997341}
.sp-fine{max-width:850px;text-align:center;margin:15px auto 0;font:400 10px/1.7 Inter,system-ui,sans-serif;color:#8b9294}
.sp-fine a{text-decoration:underline;color:inherit}
.sp-bottom-nav{display:none}
.sp-student-active .foot .foot-inner{display:none}
.sp-student-active .foot{padding:12px 0;background:#f8f6f0}
.sp-student-active .foot .copyright{border-top:1px solid #e3dfd4;padding-top:12px}
.sp-header-identity{margin-left:10px;display:none}
/* Faculty badge doubles as the student account menu. It never changes the
   selected school or profile data; it only opens navigation and sign-out. */
.sp-student-active .topbar{position:relative;z-index:60;overflow:visible}
.sp-student-active .sp-header-identity{display:flex;order:5;align-items:center;margin-left:12px;position:relative;z-index:65;flex:none}
.sp-account-menu{position:relative;line-height:1.2}
.sp-account-menu>summary{display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;cursor:pointer;border:1px solid transparent;border-radius:27px;min-width:52px;min-height:52px;padding:3px 6px;background:transparent;transition:background .15s,border-color .15s}
.sp-account-menu>summary::-webkit-details-marker{display:none}
.sp-account-menu>summary::marker{content:''}
.sp-account-menu>summary:hover,.sp-account-menu[open]>summary{border-color:#dcc69f;background:#f6f0e6}
.sp-account-menu>summary:focus-visible{outline:2px solid #a48655;outline-offset:2px}
.sp-account-trigger-badge{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:50%}
.sp-account-trigger-badge .bp-academic-emblem{width:43px;height:43px}
.sp-account-trigger-badge svg{width:24px;height:24px}
.sp-account-trigger-chevron{color:#ae8d59;font:700 14px/1 Inter,system-ui,sans-serif;transition:transform .2s}
.sp-account-menu[open] .sp-account-trigger-chevron{transform:rotate(180deg)}
.sp-account-dropdown{position:absolute;right:0;top:calc(100% + 10px);z-index:100;display:flex;flex-direction:column;width:264px;max-width:calc(100vw - 24px);padding:9px;background:#fffdf8;border:1px solid #e0d5bf;border-radius:13px;box-shadow:0 18px 45px #142f3c2e;color:#19394b}
.sp-account-dropdown .sp-account-heading{display:flex;flex-direction:column;gap:5px;padding:12px 13px 14px;border-bottom:1px solid #ece7dc;margin-bottom:6px}
.sp-account-heading small{color:#ae8952;font:750 9px/1.4 Inter,system-ui,sans-serif;letter-spacing:.13em}
.sp-account-heading strong{color:#173a4c;font:650 14px/1.2 Inter,system-ui,sans-serif}
.sp-account-dropdown>a,.sp-account-dropdown>button,.sp-account-disabled{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:11px 13px;border:0;border-radius:8px;background:transparent;color:#263f4c;font:600 13px/1.4 Inter,system-ui,sans-serif;text-align:left;text-decoration:none}
.sp-account-dropdown>a,.sp-account-dropdown>button{cursor:pointer}
.sp-account-dropdown>a:hover,.sp-account-dropdown>button:hover{background:#f1eee6}
.sp-account-dropdown svg{width:18px;height:18px;flex:none;stroke-width:1.7}
.sp-account-disabled{opacity:.53;cursor:default}
.sp-account-disabled small{font-size:10px;font-weight:500;padding-left:4px}
.sp-account-separator{height:1px;background:#e8e1d5;margin:8px 3px}
.sp-account-dropdown>.sp-account-signout{color:#994c43}
.sp-account-dropdown>.sp-account-signout:hover{background:#fff0eb;color:#84372f}
@media(max-width:760px){
 .sp-student-active .sp-header-identity{margin-left:auto}
 .sp-account-menu>summary{width:53px;height:53px;min-width:53px;min-height:53px;padding:3px;gap:0}
 .sp-account-trigger-badge,.sp-account-trigger-badge .bp-academic-emblem{width:43px;height:43px}
 .sp-account-trigger-chevron{position:absolute;right:0;bottom:2px;border-radius:50%;font-size:12px;background:#fffdf8;padding:1px 3px;box-shadow:0 1px 2px #0002}
 .sp-account-dropdown{right:0;top:calc(100% + 7px)}
}
@media(min-width:761px){.sp-top-grid .sp-continue{order:0}.sp-top-grid .sp-league{order:1}.sp-top-grid{grid-template-columns:1.65fr 1fr}.sp-subjects-full{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px) and (min-width:761px){.sp-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-top-grid{grid-template-columns:1.3fr 1fr}.sp-league{padding:19px;grid-template-columns:55px 1fr 10px;gap:12px}.sp-trophy{width:55px;height:55px}.sp-league-place>strong{font-size:22px}.sp-continue-copy{max-width:80%}}
@media(max-width:760px){
 .sp-student-active{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 .sp-student-active .topbar .navwrap{min-height:79px;padding:12px 18px;gap:10px}
 .sp-student-active .topbar .brand{max-width:calc(100% - 70px)}
 .sp-student-active .topbar .brand-full-logo{width:235px;max-width:100%;height:auto}
 .sp-student-active .topbar .menu-toggle{display:none}
 .sp-student-active .topbar .navigation{display:none}
 .sp-student-active .sp-header-identity{display:block;margin-left:auto}
 .sp-header-identity .sp-profile-shortcut{width:44px;height:44px}
 .sp-header-identity .bp-academic-emblem{width:41px;height:41px}
 .sp-shell{padding:21px 0 24px}
 .sp-wrap{width:calc(100% - 30px)}
 .sp-welcome{margin-bottom:17px;gap:10px}
 .sp-welcome>.sp-profile-shortcut{display:none}
 .sp-kicker{font-size:9px;letter-spacing:.12em}
 .sp-welcome h1{font-size:42px;margin:8px 0 5px}
 .sp-welcome p{font-size:13px}
 .sp-top-grid{display:flex;flex-direction:column;gap:10px;margin-bottom:23px}
 .sp-league{display:grid;grid-template-columns:49px minmax(0,1fr) minmax(90px,.8fr) 9px;gap:10px;padding:13px 12px;border-radius:10px;min-height:80px}
 .sp-trophy{width:48px;height:48px}
 .sp-trophy svg{width:26px;height:26px}
 .sp-league-place>small{font-size:10px}
 .sp-league-place>strong{font-size:19px;margin-top:4px;line-height:1.12}
 .sp-league-points{grid-column:3;gap:4px;border-left:1px solid #b2bfc65c;padding-left:12px;align-self:center}
 .sp-league-points>strong{font-size:19px;white-space:nowrap}
 .sp-league-points>strong small{font-size:11px}
 .sp-league-points>span{font-size:8px;line-height:1.4}
 .sp-chevron{grid-column:4;grid-row:1;font-size:25px}
 .sp-continue{min-height:160px;padding:16px 17px;border-radius:10px;background-size:cover}
 .sp-continue-copy{max-width:75%}
 .sp-continue h2{font-size:24px;margin:6px 0;line-height:1.1}
 .sp-continue p{font-size:11px;line-height:1.4;max-width:210px;margin-bottom:10px}
 .sp-track{margin:10px 0 12px;gap:7px}
 .sp-track-line{width:95px;height:4px}
 .sp-track small{font-size:9px}
 .sp-primary{padding:10px 14px;min-height:39px;font-size:11px;gap:8px;border-radius:8px}
 .sp-primary svg{width:15px;height:15px}
 .sp-section-heading{gap:8px;margin-bottom:13px;align-items:center}
 .sp-section-heading h2{font-size:29px;line-height:1.12;letter-spacing:-.04em}
 .sp-section-heading>a{font-size:9px;white-space:normal;text-align:right;max-width:85px;flex:none}
 .sp-search{height:43px;padding:0 12px;gap:8px;border-radius:8px;margin-bottom:9px}
 .sp-search svg{width:18px;height:18px}
 .sp-search input{font-size:12px}
 .sp-filters{gap:6px;flex-wrap:nowrap;overflow-x:auto;padding:1px 0 4px;scrollbar-width:none;margin-bottom:3px}
 .sp-filters::-webkit-scrollbar{display:none}
 .sp-filters button{font-size:10px;padding:8px 16px;min-height:34px;flex:none}
 .sp-result-count{font-size:8px;margin:6px 0 10px}
 .sp-subjects{grid-template-columns:1fr;gap:8px}
 .sp-subject{padding:12px 18px 12px 13px;grid-template-columns:39px 1fr;gap:10px;min-height:100px;border-radius:9px}
 .sp-subject-icon{width:39px;height:39px;margin-top:2px}
 .sp-subject-icon svg{width:23px;height:23px}
 .sp-subject-title{flex-direction:row;gap:6px;flex-wrap:wrap;align-items:center;margin-right:9px}
 .sp-subject-title h3{font-size:19px;line-height:1.12}
 .sp-subject-title>span{font-size:8px;padding:3px 6px}
 .sp-subject-content>p{font-size:9px;line-height:1.5;margin:6px 0 8px}
 .sp-modes{gap:5px;flex-wrap:nowrap}
 .sp-modes>a,.sp-mode-unavailable{font-size:9px;padding:6px 5px;gap:5px;min-height:33px;white-space:nowrap}
 .sp-modes svg{width:14px;height:14px}
 .sp-subject-arrow{right:9px;top:13px;font-size:23px}
 .sp-show-all{font-size:10px;min-height:38px;padding:9px 16px;margin-top:12px}
 .sp-learning-flow{gap:7px;justify-content:space-between;font-size:9px;margin:19px 0 23px}
 .sp-learning-flow span{gap:5px}
 .sp-learning-flow b{width:21px;height:21px;font-size:10px;flex:none}
 .sp-learning-flow>i{font-size:9px}
 .sp-practice-grid{gap:8px}
 .sp-practice-art{padding:15px 12px;min-height:140px;justify-content:flex-start;border-radius:9px}
 .sp-practice-art h3{font-size:22px;max-width:95%;margin-bottom:7px}
 .sp-practice-art p{font-size:10px;line-height:1.4;max-width:95%;text-shadow:0 1px 4px #0008}
 .sp-practice-art>span{width:28px;height:28px;bottom:10px;right:10px}
 .sp-practice-art>span svg{width:17px;height:17px}
 .sp-bottom-links{gap:12px;margin:23px 0 12px}
 .sp-bottom-links a{font-size:9px}
 .sp-fine{font-size:8px}
 .sp-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;background:#fffdf8f5;backdrop-filter:blur(15px);border-top:1px solid #ddd6c9;z-index:900;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -5px 20px #15334409}
 .sp-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#858d8e;font:500 9px/1.4 Inter,system-ui,sans-serif;min-height:45px;text-decoration:none;position:relative}
 .sp-bottom-nav svg{width:22px;height:22px}
 .sp-bottom-nav a[aria-current=page]{color:#153d51;font-weight:750}
 .sp-bottom-nav a[aria-current=page]:after{content:'';position:absolute;bottom:-3px;width:4px;height:4px;border-radius:50%;background:#b88b4a}
}
@media(max-width:370px){.sp-welcome h1{font-size:37px}.sp-section-heading h2{font-size:26px}.sp-subject{grid-template-columns:32px 1fr;gap:8px}.sp-subject-icon{width:32px;height:32px}.sp-subject-title h3{font-size:18px}.sp-modes>a{gap:3px;padding-inline:4px}.sp-modes svg{width:12px;height:12px}.sp-league{grid-template-columns:40px 1fr 85px 8px;gap:7px}.sp-trophy{width:39px;height:39px}.sp-league-place>strong{font-size:17px}.sp-league-points{padding-left:8px}.sp-league-points>strong{font-size:17px}}
@media(prefers-reduced-motion:no-preference){.sp-subject,.sp-primary,.sp-practice-art{transition:box-shadow .15s,transform .15s}.sp-subject:hover,.sp-practice-art:hover{box-shadow:0 7px 22px #13394b0c}.sp-primary:hover{transform:translateY(-1px)}}

/* Keep the approved faculty artwork separate from the menu indicator. */
.sp-account-menu>summary{box-sizing:border-box;min-width:66px;min-height:53px;width:auto;height:53px;padding:3px 0;gap:7px;border:0;border-radius:8px}
.sp-account-menu>summary:hover,.sp-account-menu[open]>summary{background:transparent;border-color:transparent}
.sp-account-menu .sp-account-trigger-badge{width:44px;height:44px;background:transparent;border:0;box-shadow:none}
.sp-account-menu .sp-account-trigger-badge .bp-academic-emblem{width:44px;height:44px;flex:none;mix-blend-mode:normal;filter:none}
.sp-account-menu .sp-account-trigger-chevron{position:static;display:block;width:12px;padding:0;background:none;box-shadow:none;border:0;font-size:16px;line-height:1;flex:none}
.sp-account-dropdown{box-sizing:border-box}
