/* Sterling Student Unified Crystal v1.0.79
   Supplemental visual layer, not a replacement for course, note or exam layouts.
   Scoped to authenticated students; retains 1.0.64 dashboard order and 1.0.77 voice controls.
*/
:root{--sc79-ink:#12376d;--sc79-muted:#526b8c;--sc79-blue:#1565d8;--sc79-violet:#7045d9;--sc79-teal:#0c977f;--sc79-gold:#e4a62e;--sc79-line:#cfe0f5;--sc79-ring:#1277db}
.portal-body.is-authenticated {color:var(--sc79-ink)}
.portal-body.is-authenticated:not(.sc-screen-dashboard){background:radial-gradient(ellipse 1100px 460px at 10% -80px,#eaf6ff 0%,transparent 75%),radial-gradient(ellipse 800px 440px at 95% 130px,#f0eaff 0%,transparent 72%),#f6f9ff}
.portal-body.is-authenticated .top-shell{border-bottom:1px solid #dbe8fb;box-shadow:0 6px 22px rgba(15,61,132,.08)}
.portal-body.is-authenticated .brand-lockup{border-radius:14px;text-decoration:none}
.portal-body.is-authenticated .desktop-nav a{border-radius:12px;transition:background .16s ease,box-shadow .16s ease,color .16s ease}
.portal-body.is-authenticated .desktop-nav a:hover{background:#edf3ff;color:#1757b1}
.portal-body.is-authenticated .desktop-nav a.active{color:#174ba8;background:linear-gradient(115deg,#eaf3ff,#f0eaff);box-shadow:inset 0 0 0 1px #d4e3ff}
.portal-body.is-authenticated .student-account-trigger{border-color:#cddff6;box-shadow:0 6px 18px rgba(29,70,139,.09)}
.portal-body.is-authenticated .student-account-trigger:hover{border-color:#93baf0}
.portal-body.is-authenticated .student-account-dropdown{border-color:#d7e4f5;box-shadow:0 18px 42px rgba(19,53,109,.19)}
.portal-body.is-authenticated .student-account-dropdown a:focus-visible{background:#eaf3ff}
.portal-body.is-authenticated .flash,.portal-body.is-authenticated .alert{box-shadow:0 8px 24px rgba(25,68,135,.07)}
/* Accessible keyboard actions; keep gradients on existing status/CTA components. */
.portal-body.is-authenticated :is(a,button,input,select,textarea,[role="button"]):focus-visible{outline:3px solid var(--sc79-ring);outline-offset:3px}
.portal-body.is-authenticated :is(input,select,textarea){accent-color:var(--sc79-blue)}
.portal-body.is-authenticated :is(input,select,textarea):disabled{opacity:.64;cursor:not-allowed}
.portal-body.is-authenticated :is(button,.btn,[role="button"]):disabled{cursor:not-allowed;opacity:.6;transform:none}
/* Harmonise non-dashboard pages while avoiding note-text rendering overrides. */
.portal-body.is-authenticated:not(.sc-screen-dashboard) .page{min-width:0}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .page > .section{border-color:#dbe8f7;box-shadow:0 12px 32px rgba(24,70,146,.07)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .page > .section:nth-of-type(4n+1){border-top:3px solid #2b76df}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .page > .section:nth-of-type(4n+2){border-top:3px solid #8757df}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .page > .section:nth-of-type(4n+3){border-top:3px solid #13a88b}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .page > .section:nth-of-type(4n){border-top:3px solid #e1aa42}
.portal-body.is-authenticated:not(.sc-screen-dashboard) :is(.subject-card,.lesson-card,.chapter-link,.tp-test-card,.question,.result-card,.info-row,.rh-item,.offer-card){min-width:0;overflow-wrap:anywhere}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .subject-card:nth-child(6n+1){background:linear-gradient(160deg,#e8f4ff,#fff 80%)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .subject-card:nth-child(6n+2){background:linear-gradient(160deg,#f2e9ff,#fff 80%)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .subject-card:nth-child(6n+3){background:linear-gradient(160deg,#e4fbf3,#fff 80%)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .subject-card:nth-child(6n+4){background:linear-gradient(160deg,#fff0d9,#fff 80%)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .subject-card:nth-child(6n+5){background:linear-gradient(160deg,#ffecf3,#fff 80%)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .subject-card:nth-child(6n){background:linear-gradient(160deg,#e6f8fc,#fff 80%)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .subject-card{border-radius:20px;border-color:#d4e3f6;box-shadow:0 9px 23px rgba(20,57,122,.07)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) .chapter-link{border-radius:15px;border-color:#d6e5f7}
.portal-body.is-authenticated:not(.sc-screen-dashboard) :is(.subject-card,.chapter-link,.lesson-card,.tp-test-card):focus-within{box-shadow:0 0 0 3px rgba(21,101,216,.13),0 9px 24px rgba(20,57,122,.07)}
.portal-body.is-authenticated:not(.sc-screen-dashboard) :is(.btn.primary,button.primary){background:linear-gradient(115deg,#1265d4,#5642cb);color:#fff;border-color:transparent;box-shadow:0 7px 17px rgba(43,91,194,.14)}
/* A compact notice is dismissible without touching server flash/OTP verification state. */
.portal-body.is-authenticated .flash.sc79-dismissible{position:relative;padding-right:54px}
.sc79-flash-close{position:absolute;top:50%;right:9px;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;border:1px solid #bfd2ed;border-radius:10px;background:rgba(255,255,255,.85);color:#17437f;font-size:20px;cursor:pointer}
.sc79-flash-close:hover{background:#fff;border-color:#7ea9df}
.sc-skip-to-content{position:fixed;z-index:100000;top:8px;left:10px;transform:translateY(-180%);background:#0c3a83;color:#fff!important;border:2px solid white;padding:12px 17px;border-radius:11px;box-shadow:0 12px 30px #15366755;font-weight:800;text-decoration:none}
.sc-skip-to-content:focus{transform:translateY(0)}
/* Mobile: comfortable input tap size; preserve reader's custom five-button flow. */
@media(max-width:700px){
 .portal-body.is-authenticated:not(.sc-screen-lesson) :is(input,select,textarea){max-width:100%;min-width:0;font-size:16px}
 .portal-body.is-authenticated:not(.sc-screen-lesson) .page{padding-bottom:max(110px,calc(94px + env(safe-area-inset-bottom)))!important}
 .portal-body.is-authenticated .student-account-dropdown{max-width:calc(100vw - 28px)}
 .portal-body.is-authenticated:not(.sc-screen-dashboard) .page > .section{border-radius:18px}
 .portal-body.is-authenticated .mobile-nav a{line-height:1.2;overflow-wrap:normal}
 .portal-body.is-authenticated .mobile-nav a:focus-visible{outline-offset:-2px}
}
@media(max-width:359px){
 .portal-body.is-authenticated .mobile-nav a small{font-size:8px!important}
 .portal-body.is-authenticated .brand-lockup strong{font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){
 .portal-body.is-authenticated *, .portal-body.is-authenticated *::before,.portal-body.is-authenticated *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
@media print{.sc-skip-to-content,.sc79-flash-close{display:none!important}}
