/* Frontend design 0.4: solid colors, readable typography and responsive layouts. */
body.mathcourse-site{--mc-navy:#19263d;--mc-blue:#3546b5;--mc-blue-soft:#eef0fb;--mc-bg:#f7f8fc;--mc-muted:#657187;--mc-line:#e0e5ed;background:#f7f8fc;color:#19263d;font-size:15px;line-height:1.7}
body.mathcourse-site .mc-container{width:min(1180px,calc(100% - 48px));margin-inline:auto}
body.mathcourse-site :is(a,button,input,select,textarea):focus-visible{outline:3px solid #8797ed;outline-offset:3px}
.mc-skip-link{position:fixed;top:-100px;left:16px;z-index:10000;padding:10px 18px;background:#fff;color:#19263d!important;border-radius:6px}.mc-skip-link:focus{top:10px}
body.mathcourse-site .mc-site-header,body.home.mathcourse-site .mc-site-header{display:block!important;background:#19263d!important;border:0!important;backdrop-filter:none;top:0;z-index:60;box-shadow:none}
body.admin-bar.mathcourse-site .mc-site-header{top:32px}
body.mathcourse-site .mc-site-header__inner{min-height:70px;gap:32px;position:relative}
body.mathcourse-site .mc-brand,body.mathcourse-site .mc-brand__text{color:#fff!important}.mc-site-header .mc-brand__text small{color:#bdc7db!important}.mc-site-header .mc-brand__mark:before,.mc-site-header .mc-brand__mark:after{border-color:#bdc7ed!important;background:transparent!important}.mc-site-header .mc-brand__mark i{background:#8e9eea!important}
body.mathcourse-site .mc-site-nav{gap:8px}.mathcourse-site .mc-site-nav a{color:#d8e0ee!important;border-radius:6px;padding:8px 16px!important;line-height:1.6;font-size:14px}.mathcourse-site .mc-site-nav a.is-active,.mathcourse-site .mc-site-nav a:hover{background:#3546b5;color:#fff!important}.mathcourse-site .mc-site-nav a:after{display:none!important}
body.mathcourse-site .mc-header-login,body.mathcourse-site .mc-user-pill{min-height:40px;background:#fff!important;color:#19263d!important;border:0;border-radius:6px;padding:8px 14px;font-size:12px;white-space:nowrap}
body.mathcourse-site .mc-user-pill span:first-of-type{max-width:110px;overflow:hidden;text-overflow:ellipsis}.mathcourse-site .mc-mobile-menu{border:1px solid #ffffff40;background:transparent;min-width:44px;min-height:44px;color:#fff;border-radius:6px;cursor:pointer}.mathcourse-site .mc-mobile-menu span{background:#fff!important}
body.mathcourse-site .mc-site-footer,body.home.mathcourse-site .mc-site-footer{display:block!important;background:#f0f2f8!important;color:#657187;border-top:1px solid #e0e5ed!important;margin-top:64px}.mathcourse-site .mc-site-footer__top{min-height:84px;gap:24px;flex-wrap:wrap;padding-block:20px}.mathcourse-site .mc-footer-brand{color:#19263d!important}.mathcourse-site .mc-footer-brand small{color:#657187!important}.mathcourse-site .mc-footer-nav{gap:20px;flex-wrap:wrap}.mathcourse-site .mc-footer-nav a,.mathcourse-site .mc-footer-slogan{color:#657187!important;font-size:12px}.mathcourse-site .mc-site-footer__bottom{border-color:#e0e5ed!important;padding:14px 0;color:#657187;font-size:12px}.mathcourse-site .mc-footer-slogan{display:none}
.mc-front *{box-sizing:border-box}.mc-front h1,.mc-front h2,.mc-front h3{color:#19263d;line-height:1.35}.mc-front p{color:#657187}.mc-front h1{font-size:clamp(32px,4.5vw,54px);letter-spacing:-1.5px;margin:20px 0}.mc-front h2{font-size:24px;margin:0}.mc-front h3{font-size:21px;margin:0}.mc-front-kicker{display:inline-block;padding:4px 10px;border-radius:4px;background:#dfebdf;color:#355940;font-size:12px;letter-spacing:1px;font-weight:600}
.mc-front-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:60px;align-items:center;padding-block:72px 56px}.mc-front-hero-copy>p{font-size:16px;max-width:430px;line-height:1.9}.mc-front-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.mc-front-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:46px;padding:10px 22px;background:#3546b5;border:1px solid #3546b5;border-radius:6px;color:#fff!important;font-size:14px;font-weight:600;text-decoration:none}.mc-front-button:hover{background:#29399f}.mc-front-button.is-secondary{background:#fff;color:#19263d!important;border-color:#c9d0df}
.mc-front-math{height:340px;position:relative;isolation:isolate}.mc-math-tile{position:absolute;border-radius:10px;color:#fff;box-shadow:none}.mc-math-tile.is-equation{background:#4658ae;top:0;left:6%;width:62%;height:125px;display:grid;place-items:center;font-family:Georgia,serif;font-size:30px;z-index:3}.mc-math-tile.is-geometry{background:#67856c;left:0;bottom:0;width:55%;height:195px;z-index:4;padding:14px}.mc-math-tile.is-function{background:#19263d;right:0;top:64px;width:62%;height:240px;padding:20px 8px 12px 32px;z-index:2}.mc-math-tile svg{width:100%;height:100%}.mc-math-tile text{fill:currentColor;font:italic 16px Georgia,serif}
.mc-front-categories{display:grid;grid-template-columns:1fr 1fr;gap:20px}.mc-front-categories>a{display:flex;align-items:center;gap:20px;padding:22px 24px;background:#e5eee6;border-radius:8px}.mc-front-categories>a:nth-child(2){background:#e7ebf8}.mc-front-categories h2{font-size:21px;margin:0 0 5px}.mc-front-categories p{font-size:13px;line-height:1.6;margin:0}.mc-front-categories b{margin-left:auto;font-size:21px}.mc-front-symbol{font-size:32px;color:#405c48;flex-shrink:0}
.mc-front-section{padding-top:42px}.mc-front-section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.mc-front-section-head h2{font-size:23px}.mc-front-section-head a{font-size:13px;color:#3546b5!important}.mc-front-section-head small{font-size:14px;color:#657187}
.mc-front-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.mc-front-course{--course-color:#4354a4;min-width:0;border-radius:9px;overflow:hidden;background:#fff;border:1px solid #dfe4ed;transition:box-shadow .15s}.mc-front-course.is-sage{--course-color:#57775f}.mc-front-course.is-sand{--course-color:#80683f}.mc-front-course.is-slate{--course-color:#4b6281}.mc-front-course:hover{box-shadow:0 6px 20px #19263d10}.mc-front-course-cover{display:flex;position:relative;min-height:174px;flex-direction:column;justify-content:center;padding:24px;background:var(--course-color);color:#fff!important;gap:14px}.mc-front-course-cover>span{align-self:flex-start;background:#ffffffeb;color:#19263d;border-radius:4px;padding:2px 8px;font-size:11px;font-weight:600}.mc-front-course-cover h3{color:#fff;font-size:23px;line-height:1.5;font-weight:650;overflow-wrap:anywhere;margin:0;padding-right:10px}.mc-front-course-cover>b{position:absolute;right:18px;bottom:12px;color:#ffffffa0;font-size:20px}.mc-front-course-body{padding:14px 20px}.mc-front-meta{font-size:12px;color:#657187}.mc-front-course-link{display:flex;justify-content:space-between;align-items:center;min-height:40px;color:#3546b5!important;font-size:13px;font-weight:600}.mc-front-empty{grid-column:1/-1;padding:40px 24px;background:#fff;border:1px dashed #cdd5e1;border-radius:8px;text-align:center;color:#657187}.mc-front-empty h2{font-size:22px}.mc-front-empty p{margin-bottom:20px}
.mc-front-about{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding-top:64px;padding-bottom:16px}.mc-front-about h2{margin-top:16px}.mc-front-about p{font-size:14px}.mc-front-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mc-front-principles>div{display:flex;flex-direction:column;border-top:2px solid #d6dced;padding-top:14px;gap:7px}.mc-front-principles b{color:#3546b5;font-size:12px}.mc-front-principles strong{font-size:16px}.mc-front-principles span{color:#657187;font-size:12px}
body.mathcourse-site .mc-course-center{padding:40px 0 12px}.mathcourse-site .mc-course-center__hero{background:transparent!important;background-image:none!important;color:#19263d;padding:0!important;min-height:0!important;border-radius:0;box-shadow:none!important;margin-bottom:28px}.mathcourse-site .mc-course-center__hero:before,.mathcourse-site .mc-course-center__hero:after,.mathcourse-site .mc-course-center__mark{display:none!important}.mathcourse-site .mc-course-center__hero h1{font-size:32px!important;color:#19263d!important}.mathcourse-site .mc-course-center__hero p{color:#657187!important;font-size:14px!important}.mathcourse-site .mc-course-center__workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px}.mathcourse-site .mc-course-center__sidebar{background:#eef1f7;border:0;box-shadow:none;border-radius:8px;padding:16px;height:max-content;position:sticky;top:90px}.mathcourse-site .mc-course-center__side-title{font-size:12px;color:#657187;margin-bottom:8px}.mathcourse-site .mc-course-center__side-nav,.mathcourse-site .mc-course-center__grade-nav{display:grid;gap:5px}.mathcourse-site .mc-course-center__sidebar a{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:5px;font-size:13px;min-height:42px}.mathcourse-site .mc-course-center__sidebar a.is-active{background:#dce2fa!important;color:#293b9c!important}.mathcourse-site .mc-course-center__sidebar a b{margin-left:auto}.mathcourse-site .mc-course-center__side-divider{height:1px;background:#dce1eb;margin:16px 0}.mathcourse-site .mc-course-center__library{min-width:0}.mathcourse-site .mc-course-center__section-title{margin-bottom:16px}.mathcourse-site .mc-course-center__section-title>div{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}.mathcourse-site .mc-course-center__section-title span{font-size:21px}.mathcourse-site .mc-course-center__section-title small{color:#657187;font-size:12px}.mc-course-center .mc-front-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.mc-front-pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.mc-front-pagination .page-numbers{display:grid;place-items:center;min-width:40px;min-height:40px;border:1px solid #dfe4ed;background:#fff;border-radius:5px}.mc-front-pagination .current{background:#3546b5;color:#fff}
.mc-front-learning{padding-top:36px}.mc-front-page-head h1{font-size:32px;letter-spacing:-.5px;margin:14px 0 8px}.mc-front-page-head p{font-size:14px;margin:0 0 26px}.mc-front-continue{display:flex;align-items:center;gap:22px;background:#fff;border:1px solid #dce2ee;border-radius:9px;padding:24px}.mc-front-continue-mark{display:grid;place-items:center;flex-shrink:0;width:90px;height:90px;background:#4354a4;border-radius:6px;color:#fff;font:44px Georgia,serif}.mc-front-continue h2{font-size:22px;margin:5px 0}.mc-front-continue p{font-size:13px;margin:0}.mc-front-continue>.mc-front-button{margin-left:auto}.mc-front-progress-label{display:flex;justify-content:space-between;font-size:12px;color:#657187;gap:10px}.mc-front-progress{height:6px;background:#e8ecf6;border-radius:6px;margin:9px 0;overflow:hidden}.mc-front-progress>span{display:block;height:100%;background:#3546b5;border-radius:6px}
/* Existing player controls, video and directory behavior are deliberately retained. */
body.mathcourse-site .mc-course-player__topbar{border-color:#e0e5ed}.mathcourse-site .mc-course-player__item.is-active,.mathcourse-site .mc-course-player__mobile-item.is-active{background:#eef0fb!important;color:#3546b5!important}.mathcourse-site .mc-course-player__topic-toggle:focus-visible,.mathcourse-site .mc-course-player__mobile-topic-toggle:focus-visible{outline:2px solid #8797ed;outline-offset:-3px}.mathcourse-site .mc-course-player__main,.mathcourse-site .mc-course-player__sidebar{min-width:0}.mathcourse-site .mc-course-player__video{max-width:100%}
@media(max-width:1000px){.mc-front-hero{gap:30px;padding-top:50px}.mc-front-math{height:300px}.mc-front-course-grid{gap:16px}.mc-front-about{grid-template-columns:1fr;gap:24px}.mc-front-continue h2{font-size:19px}}
@media(max-width:782px){body.admin-bar.mathcourse-site .mc-site-header{top:46px}.mc-front-hero{grid-template-columns:1fr;gap:32px;padding-block:36px}.mc-front-hero h1 br{display:none}.mc-front-hero h1{max-width:550px;font-size:38px}.mc-front-math{width:min(420px,100%);height:260px;margin:auto}.mc-math-tile.is-equation{height:95px;font-size:25px}.mc-math-tile.is-geometry{height:155px}.mc-math-tile.is-function{height:190px;top:54px}.mc-front-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-front-categories{gap:12px}.mc-front-categories>a{padding:18px 16px;gap:12px}.mc-front-symbol{display:none}.mc-front-categories h2{font-size:18px}.mathcourse-site .mc-course-center__workspace{grid-template-columns:1fr;gap:20px}.mathcourse-site .mc-course-center__sidebar{position:static;padding:10px;background:transparent}.mathcourse-site .mc-course-center__side-title,.mathcourse-site .mc-course-center__side-divider{display:none}.mathcourse-site .mc-course-center__side-nav,.mathcourse-site .mc-course-center__grade-nav{display:flex;overflow-x:auto;gap:8px;white-space:nowrap;scrollbar-width:thin;max-width:100%;padding:3px 0 8px}.mathcourse-site .mc-course-center__sidebar a{flex-shrink:0;background:#fff;border:1px solid #dfe4ed;min-height:44px}.mathcourse-site .mc-course-center__sidebar a>b,.mathcourse-site .mc-course-center__sidebar a>i{display:none}.mc-front-continue{gap:14px;padding:18px;flex-wrap:wrap}.mc-front-continue>.mc-front-button{margin-left:0}.mc-front-continue-mark{width:64px;height:64px;font-size:32px}}
@media(max-width:700px){body.mathcourse-site .mc-container{width:calc(100% - 32px)}body.mathcourse-site .mc-site-header__inner{min-height:64px;gap:10px;flex-wrap:wrap}body.mathcourse-site .mc-brand__text{font-size:15px}body.mathcourse-site .mc-brand__text small{display:none}body.mathcourse-site .mc-brand__mark{width:30px;flex-basis:30px}.mathcourse-site .mc-mobile-menu{display:flex!important;order:3;margin-left:0}.mathcourse-site .mc-header-actions{margin-left:auto}.mathcourse-site .mc-header-login,.mathcourse-site .mc-user-pill{font-size:11px;padding:6px 9px;min-height:40px}.mathcourse-site .mc-user-pill b,.mathcourse-site .mc-user-pill span:first-of-type,.mathcourse-site .mc-user-pill i{display:none}body.mathcourse-site .mc-site-nav{position:static!important;order:4;width:100%;display:none!important;flex-direction:column;align-items:stretch;margin:0;padding:0 0 12px;border:0;background:#19263d!important;box-shadow:none}body.mathcourse-site .mc-site-nav.is-open{display:flex!important}.mathcourse-site .mc-site-nav a{min-height:44px;display:flex;align-items:center}.mathcourse-site .mc-site-footer__top{flex-direction:column;align-items:flex-start;gap:18px}.mathcourse-site .mc-footer-nav{margin-left:0;gap:16px}.mc-front-hero h1{font-size:34px}.mc-front-hero-copy>p{font-size:14px}.mc-front-categories{grid-template-columns:1fr}.mc-front-course-grid,.mc-course-center .mc-front-course-grid{grid-template-columns:1fr}.mc-front-course-cover{min-height:140px;padding:20px}.mc-front-course-cover h3{font-size:23px}.mc-front-course-body{padding:10px 18px}.mc-front-course-link{min-height:44px}.mc-front-section{padding-top:30px}.mc-front-section-head h2{font-size:21px}.mc-front-section-head{gap:12px}.mc-front-about{padding-top:40px}.mc-front-about h2{font-size:22px}.mc-front-principles{gap:12px}.mc-front-principles strong{font-size:14px}.mc-front-principles span{font-size:11px}.mc-front-page-head h1{font-size:26px}.mc-front-continue>.mc-front-button{width:100%}.mc-front-continue>div:nth-child(2){flex:1;min-width:0}.mathcourse-site .mc-course-center{padding-top:24px}.mathcourse-site .mc-course-center__hero h1{font-size:28px!important}.mathcourse-site .mc-course-center__hero{margin-bottom:12px}.mathcourse-site .mc-course-player__navigation{gap:8px}.mathcourse-site .mc-course-player__nav-button{min-width:0}.mathcourse-site .mc-course-player__lesson-head h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.mc-front *{transition:none!important}}

/* Keep navigation readable across legacy header styles and visited links. */
body.mathcourse-site .mc-site-header .mc-site-nav a{background:#19263d!important;color:#fff!important;opacity:1!important;font-weight:600}
body.mathcourse-site .mc-site-header .mc-site-nav a:is(:hover,:focus-visible,.is-active){background:#3546b5!important;color:#fff!important}
body.mathcourse-site .mc-site-header .mc-site-nav a:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.mathcourse-site .mc-site-header :is(.mc-header-login,.mc-user-pill),body.mathcourse-site .mc-site-header .mc-user-pill *{color:#19263d!important}

/* Bright classroom palette; video surface remains unchanged. */
body.mathcourse-site{--mc-blue:#1762d4;--mc-blue-soft:#eaf3ff;--mc-bg:#fffdf8;background:#fffdf8}
body.mathcourse-site .mc-site-header,body.home.mathcourse-site .mc-site-header{background:#fff!important;border-bottom:1px solid #e3e9f1!important}
body.mathcourse-site .mc-brand,body.mathcourse-site .mc-brand__text{color:#19263d!important}
body.mathcourse-site .mc-site-header .mc-brand__text small{color:#58667b!important}
body.mathcourse-site .mc-site-header .mc-site-nav{background:#fff!important}
body.mathcourse-site .mc-site-header .mc-site-nav a{background:#fff!important;color:#24364d!important}
body.mathcourse-site .mc-site-header .mc-site-nav a:is(:hover,:focus-visible,.is-active){background:#eaf3ff!important;color:#155abd!important}
body.mathcourse-site .mc-site-header .mc-site-nav a:focus-visible{outline-color:#1762d4}
body.mathcourse-site .mc-site-header .mc-header-login{background:#1762d4!important;color:#fff!important}
body.mathcourse-site .mc-site-header .mc-user-pill{background:#eaf3ff!important}
body.mathcourse-site .mc-mobile-menu{border-color:#d4deeb;color:#24364d;background:#f3f7ff}
body.mathcourse-site .mc-mobile-menu span{background:#24364d!important}
.mc-front-button{background:#1762d4;border-color:#1762d4}.mc-front-button:hover{background:#1254ba}
.mc-front-button.is-secondary:hover{background:#eaf3ff}
.mc-front-kicker{background:#fff0cf;color:#775016}
.mc-math-tile.is-equation{background:#2877de}.mc-math-tile.is-geometry{background:#25856b}.mc-math-tile.is-function{background:#d87528}
.mc-front-categories>a{background:#e3f4eb}.mc-front-categories>a:nth-child(2){background:#fff0da}
body.mathcourse-site .mc-site-footer,body.home.mathcourse-site .mc-site-footer{background:#f0f5fb!important}
