/* Shared school indexes. Action and feedback palettes are independent. */
.course-home .course-hero-overview{grid-template-columns:minmax(0,1fr) 280px;gap:50px}
.course-home{--wine:#d72f38;--wine-light:#ff6b64;--school-gold:#d4ad70}
.course-home :is(.course-hero,.m2-hero) h1 em{color:var(--wine-light)}
.course-home .btn:not(.secondary):not(.quiet){background:var(--wine);border-color:var(--wine);box-shadow:0 5px 22px #d72f3826}
.course-home .btn:not(.secondary):not(.quiet):hover{background:#be202d;border-color:#f35a60;box-shadow:0 7px 27px #d72f383d}
.course-home .eyebrow{color:var(--wine-light)}
.course-home :is(.course-hero,.m2-hero)>div>p{color:#bec7d3}
.course-home :is(.course-hero-tags,.course-module-progress p,.course-section-intro>p,.m2-how p){color:#b4bfcd}
.course-home .course-module-progress strong{color:#ffaaa0}
.course-home .course-progress-track>span{background:linear-gradient(90deg,#ce2934,#ff7464)}
.course-home .course-module-progress>small{color:#a7b3c3}
.m2-module-nav{gap:12px;margin-block:22px 38px;align-items:stretch}
.m2-module-nav.wrap{margin-inline:auto}
.m2-module-nav a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:14px 21px;border:1px solid #55505b;border-radius:9px;background:linear-gradient(135deg,#1c2029,#13171e);color:#d1d7e0;font-size:13px;font-weight:550;line-height:1.55;box-shadow:0 5px 15px #0002;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.m2-module-nav a:is(:hover,:focus-visible){border-color:#f06463;color:#fff4ef;background:#302027;box-shadow:0 5px 20px #d72f381a}
.m2-module-nav a:focus-visible{outline:2px solid #ff9b8f;outline-offset:4px}
.m2-module-nav [aria-current=page]{background:linear-gradient(125deg,#a3202d,#58202a);border-color:#f26367;color:#fff1eb;box-shadow:0 5px 22px #d72f382b,inset 0 1px #ffbdab24}
.m2-module-nav a :is(strong,span){min-width:0}
.m2-module-nav a strong{font-size:inherit;font-weight:650}
.m2-module-nav a small{display:block;font-size:11px;line-height:1.5;color:#b9c0cc}
.m2-module-nav [aria-current=page] small{color:#f6c0bc}
.course-home-unified .course-curriculum{display:block;padding:37px 0 0}
.course-home-unified .course-section-intro{max-width:800px;margin-bottom:30px}
.course-home-unified .course-section-intro h2{font-size:29px;max-width:none;margin:14px 0}
.course-home-unified .course-section-intro>p{max-width:700px;margin-bottom:0}
.course-home-unified .course-editorial-badge{margin-top:19px;border-color:#745a35;color:#dfbd85;background:#b8914610}
.course-home-unified .course-chapter+.course-chapter{margin-top:0}
.course-home .m2-chapter{position:relative;isolation:isolate;min-width:0;background:linear-gradient(145deg,#1b222c,#151921);border-color:#46505f;box-shadow:0 9px 28px #0002;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.course-home .m2-chapter>header{position:relative;overflow:hidden;min-height:101px;background:radial-gradient(ellipse at 0 0,#ab283941,transparent 76%),linear-gradient(110deg,#2b1f25,#1c212a);border-bottom-color:#514149}
.course-home .m2-chapter>header:before{content:'';position:absolute;inset:0 15% auto 0;height:1px;background:linear-gradient(90deg,#edba7b9c,#e7435059,transparent);pointer-events:none}
.course-home .m2-chapter>header>span{color:var(--wine-light);font-weight:500;text-shadow:0 0 25px #e2424733}
.course-home .m2-chapter header :is(h2,h3){font-size:22px;font-weight:550;line-height:1.35;margin:6px 0 0;color:#f1ebe6;letter-spacing:-.025em}
.course-home .m2-chapter header small{color:#c5a29e}
.course-home .m2-chapter .course-lesson-link{position:relative;line-height:1.65;border-bottom-color:#353e4b;padding:19px 22px;gap:16px;transition:background .2s ease}
.course-home .m2-chapter .course-lesson-link>span:nth-child(2){flex:1;min-width:0}
.course-home .m2-chapter .course-lesson-link strong{color:#e3e7ed;font-size:14px;line-height:1.55}
.course-home .m2-chapter .course-lesson-link small{color:#a8b5c7;font-size:10px;line-height:1.7;margin-top:6px}
.course-home .m2-chapter .course-lesson-number{color:#f28b83;font-size:12px;min-width:22px}
.course-home .m2-chapter .course-lesson-indicator{color:#d7b887;border-color:#776345;background:#d6ae6d09;transition:transform .2s ease,background .2s ease}
.course-home .m2-chapter .course-lesson-indicator.is-done{color:#a3d7b8;border-color:#59775e;background:#55765b22}
.course-home .m2-chapter .course-lesson-link:hover,.course-home .m2-chapter .course-lesson-link:focus-visible{background:#df36430d}
.course-home .m2-chapter .course-lesson-link:hover .course-lesson-indicator{transform:translateX(2px);background:#d6ae6d17}
.course-home :is(.m2-chapter,.m2-module-card):after{content:'';position:absolute;inset:-40% -65%;z-index:2;pointer-events:none;opacity:0;transform:translateX(-85%) rotate(-15deg);background:linear-gradient(90deg,transparent 42%,#efd09a03 45%,#efd09a12 50%,#efd09a03 55%,transparent 58%)}
.course-home .m2-module-card{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 0 0,#9e68322e,transparent 80%),linear-gradient(145deg,#302420,#191e28);border-color:#a37d49;box-shadow:0 12px 35px #0003}
.course-home .m2-module-card>strong{text-shadow:0 0 30px #ddad6b1c}
@media(hover:hover){.course-home .m2-chapter:hover,.course-home .m2-chapter:focus-within{transform:translateY(-2px);border-color:#b57c65;box-shadow:0 12px 30px #0004,0 0 22px #c8423020}.course-home :is(.m2-chapter,.m2-module-card):hover:after,.course-home :is(.m2-chapter,.m2-module-card):focus-within:after{animation:school-card-sheen 1.1s ease-out}}
@keyframes school-card-sheen{0%{opacity:0;transform:translateX(-65%) rotate(-15deg)}15%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateX(65%) rotate(-15deg)}}
@media(max-width:1000px){.course-home .m2-chapter header :is(h2,h3){font-size:19px}.course-home .m2-chapter>header{min-height:99px}}
@media(max-width:600px){.course-home-unified .course-section-intro h2{font-size:27px}.course-home .m2-chapter .course-lesson-link{padding:17px 15px;gap:11px}.course-home .m2-chapter .course-lesson-link strong{font-size:13px}.course-home .m2-chapter>header{min-height:90px}}
@media(prefers-reduced-motion:reduce){.course-home .m2-chapter,.course-home .course-lesson-link,.course-home .course-lesson-indicator{transition:none!important;transform:none!important}.course-home :is(.m2-chapter,.m2-module-card):after{animation:none!important;display:none}}
@media(max-width:1000px){.course-home .course-hero-overview{grid-template-columns:minmax(0,1fr) 235px;gap:30px}}
@media(max-width:780px){.course-home .course-hero-overview{grid-template-columns:minmax(0,1fr) 220px;gap:22px}}
@media(max-width:600px){.course-home .course-hero-overview{grid-template-columns:1fr;gap:27px}.course-home .course-hero-overview .m2-module-card{max-width:none;width:100%}}
@media(max-width:600px){.m2-module-nav{gap:9px;margin-block:18px 28px}.m2-module-nav a{flex:1 1 160px;min-height:54px;padding:12px 15px;font-size:12px;text-align:center}.m2-module-nav a small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.m2-module-nav a{transition:none}}
