/* Master Brief, 2026-11-02: scope is Hero through resources and the floating CTA only. */
.master-hero{padding:0 0 24px;overflow:hidden}
.master-hero-inner{position:relative;padding-top:32px}
.master-hero-main{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:10px;min-height:420px}
.master-hero-copy{position:relative;z-index:1;padding:12px 0 26px}
.master-hero h1{font-size:clamp(35px,4.1vw,59px);line-height:1.35;letter-spacing:-.045em;margin:0 0 25px;font-weight:900;color:var(--deep)}
.master-hero h1 em{font-style:normal;color:var(--pink)}
.master-hero h1:after{content:'';display:block;height:5px;width:90%;margin-top:10px;background:var(--pink);border-radius:50%;transform:rotate(-2deg)}
.master-hero-sub{font-size:clamp(17px,1.7vw,23px);line-height:1.7;font-weight:800;color:var(--deep);margin:0 0 16px}
.master-hero-course{font-size:18px;line-height:1.6;color:var(--deep);font-weight:700;margin:0}
.master-hero-photo{align-self:stretch;min-height:440px;background-image:url('assets/hero-template.png');background-size:auto 100%;background-position:97% center;background-repeat:no-repeat;margin-right:-24px;mask-image:linear-gradient(to right,transparent,#000 8%,#000 95%,transparent),linear-gradient(to bottom,#000 94%,transparent);mask-composite:intersect}
.master-hero-action{display:flex;align-items:center;gap:18px;position:relative;z-index:2;margin-top:-28px;width:max-content;max-width:100%;margin-bottom:32px}
.master-hero-action .cta{font-size:21px;min-height:62px;padding:19px 32px}
.master-hero-action .mobile-free-burst{display:grid;width:83px;height:83px;flex:0 0 83px;font-size:25px}
.master-quick-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:790px}
.master-quick-cards article{display:flex;align-items:center;gap:13px;min-width:0;padding:13px 8px;border-radius:16px;background:#ffffff80}
.master-original-icon{width:44px;height:44px;flex-shrink:0;overflow:hidden;display:block}
.master-quick-cards p{font-size:15px;line-height:1.65;font-weight:700;color:var(--deep);margin:0}
.master-quick-cards p>span{display:block;white-space:nowrap}
.master-videos .section-heading h2{font-size:clamp(27px,3vw,40px)}
#videos.master-videos video{aspect-ratio:3/4;object-fit:contain}
.master-lesson-player{position:relative}
.lesson-play{position:absolute;inset:0;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:transparent;color:#fff;text-shadow:0 2px 7px #15203a70}
.lesson-play>span{display:grid;place-items:center;width:66px;height:66px;border:3px solid #fff;border-radius:50%;background:#ed0965db;font-size:26px;padding-left:4px;box-shadow:0 6px 22px #11254a30}
.lesson-play>b{font-size:16px;background:#0a1c50be;padding:7px 15px;border-radius:30px}
.lesson-play[hidden]{display:none}
.master-teacher-section{padding:25px 0 12px}
.master-teacher-section>.container{container-type:normal}
.master-teacher{display:block;padding:0 0 24px;text-align:center;max-width:900px;margin:auto}
.master-teacher-photo{display:block;object-fit:contain;object-position:center top;width:310px;height:300px;margin:0 auto -5px;mask-image:linear-gradient(#000 89%,transparent)}
.master-teacher h2{font-size:clamp(25px,3vw,38px);line-height:1.5;margin:14px 0 25px;font-weight:900;color:var(--deep)}
.master-credentials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;text-align:center}
.master-credentials article{background:#ffffffeb;border:1px solid var(--surface-border);border-radius:18px;padding:22px 10px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:11px}
.master-credentials strong{font-size:34px;line-height:1.15;color:var(--pink);font-weight:900}
.master-credentials span{font-size:16px;line-height:1.6;color:#435a7b}
.master-progress-case{margin-top:17px;background:#fce2efc9;border:1px solid #f6c9dd;border-radius:20px;text-align:left;padding:23px 28px}
.master-progress-case h3{font-size:29px;color:var(--pink);margin:0 0 10px;font-weight:900}
.master-progress-case p{font-size:19px;line-height:1.6;margin:0;font-weight:700}
.master-method .mobile-method{display:block;padding:32px 0}
.master-method h2{font-size:clamp(27px,3vw,38px);text-align:center;margin:0 0 6px;line-height:1.5;font-weight:900;color:var(--deep)}
.master-method-name{text-align:center;color:var(--pink);font-size:25px;line-height:1.5;font-weight:800;margin:0 0 26px}
.master-method-cards{display:grid;gap:15px;max-width:900px;margin:auto}
.master-method-cards article{display:grid;grid-template-columns:80px minmax(0,1fr);gap:18px;align-items:center;background:#fff;border:1px solid var(--surface-border);border-radius:22px;padding:25px 30px;text-align:left}
.master-method-mark{font-size:48px;font-weight:900;color:var(--pink);line-height:1;text-align:center}
.master-method-cards h3{font-size:27px;color:var(--pink);margin:0 0 7px;line-height:1.4}
.master-method-cards p{font-size:18px;line-height:1.6;margin:0;color:#435a7b}
/* One native horizontal track, keeping the original auto, arrow and pause controls. */
.master-reviews .carousel{max-width:960px;background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}
.master-reviews .review-stage{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#a6bedf transparent;touch-action:pan-x pan-y pinch-zoom;align-items:stretch;padding:0 0 13px}
.master-reviews .review-stage:after{content:'';flex:0 0 7%}
.master-reviews .review-stage .review-slide{display:flex;flex-direction:column;visibility:visible;flex:0 0 90%;scroll-snap-align:start;min-width:0;min-height:385px;padding:27px 30px;gap:0;animation:none;border:1px solid #cbddf3;border-radius:22px;background:#fff;align-items:stretch;text-align:left;grid-area:auto}
.master-reviews .review-stage .review-slide[aria-hidden=true]{pointer-events:none}
.master-review-index{font-size:12px;letter-spacing:.025em;color:#527199;margin:0 0 11px}
.master-reviews .review-slide h3{font-size:26px;color:var(--deep);margin:0 0 14px;line-height:1.4}
.master-reviews .review-slide blockquote{font-size:23px;font-weight:750;color:#203456;line-height:1.75;margin:0 0 18px;text-align:left}
.master-reviews .master-review-grade{font-size:28px;font-weight:900;color:var(--pink);line-height:1.45;margin:0 0 14px}
.master-review-name{font-size:14px;line-height:1.6;color:#4f6686;margin:0 0 20px}
.master-review-name b{color:var(--deep)}
.master-review-proof{padding:0;margin:auto 0 0;min-width:0}
.master-review-proof figcaption{font-size:11px;line-height:1.5;color:#69809e;margin:0 0 8px}
.master-review-proof img{display:block;width:100%;height:auto;max-height:135px;object-fit:contain;object-position:left;background:#f7f5ef;border-radius:8px}
.master-reviews .carousel-controls{background:#ffffffb3;border:1px solid #cbdcf2;border-radius:16px;margin-top:7px}
.master-reviews .carousel:focus-visible{outline:3px solid #5b70ff;outline-offset:5px}
.master-results .master-result-groups{display:grid;gap:20px}
.master-awards,.master-school-results,.master-spm-results{border:1px solid var(--surface-border);border-radius:24px;padding:25px;background:#ffffffd9}
.master-awards{background:#fce7f1}
.master-awards h3{color:var(--pink);font-size:27px;margin:0 0 12px}
.master-awards h4{font-size:21px;line-height:1.5;margin:0 0 8px}
.master-awards>p{font-size:15px;line-height:1.6;color:#526681;margin:0 0 20px}
.master-award-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:850px;margin:auto}
.master-award-pair figure{margin:0;background:#fff;border-radius:14px;padding:10px;min-width:0}
.master-award-pair button{display:block;width:100%;padding:0;background:none;border:0;border-radius:8px;overflow:hidden}
.master-award-pair img{display:block;width:100%;height:auto}
.master-award-pair figcaption{font-size:13px;font-weight:800;text-align:center;margin-top:9px;color:var(--deep)}
.master-awards>.master-award-title{font-size:11px;margin:18px 0 0;text-align:center}
.master-school-results h3,.master-spm-results>h3{font-size:25px;line-height:1.5;margin:0 0 8px;color:var(--deep)}
.master-school-results>p{color:#5e7390;font-size:15px;margin:0 0 20px}
.master-school-sheets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.master-school-sheets button{border:1px solid #efd7e2;padding:10px;border-radius:14px;background:#fff;text-align:left;min-width:0;display:flex;flex-direction:column;gap:10px}
.master-school-sheets span{font-size:14px;font-weight:800;color:var(--deep)}
.master-school-sheets img{display:block;width:100%;height:130px;object-fit:cover;object-position:top;border-radius:7px}
.master-school-sheets small{color:var(--pink);font-size:12px;line-height:1.5}
.master-spm-students{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.master-spm-students>article{padding:23px 13px 15px;background:#fff3f8;border:1px solid #f5d9e6;border-radius:18px;text-align:center;min-width:0;display:flex;flex-direction:column}
.master-spm-students h4{font-size:23px;color:var(--deep);line-height:1.35;margin:0 0 18px}
.master-spm-students p{font-size:23px;font-weight:700;line-height:1.55;margin:0 0 20px;color:#233e65}
.master-spm-students b{color:var(--pink);font-weight:900}
.master-spm-students figure{margin:auto 0 0;background:white;border-radius:9px;padding:8px;min-width:0}
.master-spm-students figcaption{font-size:11px;color:#71819a;margin:0 0 8px}
.master-spm-students button{display:block;border:0;background:none;padding:0;width:100%;min-height:44px}
.master-spm-students img{width:100%;height:auto;display:block}
.master-resources>.container{position:relative}
.master-anchor{position:absolute;top:0}
.master-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.master-resource-grid>article{padding:23px;background:#fff;border:1px solid var(--surface-border);border-radius:22px;min-width:0;display:flex;flex-direction:column}
.master-resource-grid h3{font-size:24px;line-height:1.45;color:var(--deep);margin:0 0 10px}
.master-resource-grid p{font-size:17px;line-height:1.65;color:#435a7b;margin:0 0 18px}
.master-resource-media{position:relative;display:flex;flex-direction:column;align-items:stretch;border:0;background:#fff1f7;border-radius:13px;overflow:hidden;width:100%;margin:auto 0 0;padding:0;text-align:center;min-width:0}
.master-resource-media>img{width:100%;height:235px;object-fit:contain;background:#fff7fa;display:block}
.master-resource-media>span{padding:12px 8px;min-height:44px;display:grid;place-content:center;font-size:15px;font-weight:700;color:#bd1459;border-top:1px solid #f4d2e3;line-height:1.5}
.master-support-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.master-support-cards article{background:#ffffffd9;border:1px solid var(--surface-border);border-radius:19px;padding:23px 12px;text-align:center;min-width:0}
.master-support-cards svg{width:60px;height:50px;margin:0 auto 12px}
.master-support-cards h3{font-size:19px;line-height:1.5;margin:0;color:var(--deep)}
.master-floating{font-size:13px;gap:6px;padding:12px 16px;min-height:48px;box-shadow:0 4px 0 #0e6538,0 7px 20px #123f3420}
.master-floating b{font-size:13px}
body:has(dialog[open]) .master-floating{visibility:hidden}
#quiz-dialog .anatomy-board>img{height:auto}
@media(max-width:760px){
 #quiz-dialog .anatomy-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 #quiz-dialog .anatomy-board{width:min(100%,240px);margin-inline:auto}
 .master-hero-inner{width:calc(100% - 32px);padding-top:10px}
 .master-hero-main{grid-template-columns:1.15fr .85fr;gap:0;min-height:0}
 .master-hero-copy{padding:17px 0 12px}
 .master-hero h1{font-size:clamp(25px,6.5vw,38px);line-height:1.4;margin:0 0 17px;position:relative;width:116%;text-wrap:balance}
 .master-hero h1:after{height:3px;margin-top:7px}
 .master-hero-sub{font-size:15px;line-height:1.75;position:relative;margin-bottom:12px;width:100%}
 .master-hero-course{font-size:12px;line-height:1.7;width:100%;position:relative}
 .master-hero-photo{height:auto;min-height:300px;margin-right:-16px;margin-left:-7px;background-position:76% center;background-size:auto 100%}
 .master-hero-action{width:100%;gap:9px;margin:9px 0 22px}
 .master-hero-action .cta{font-size:clamp(13px,3.65vw,17px);padding:17px 12px;min-height:54px;flex:1;gap:3px}
 .master-hero-action .mobile-free-burst{width:62px;height:62px;flex-basis:62px;font-size:21px}
 .master-quick-cards{gap:5px;width:100%;max-width:none}
 .master-quick-cards article{flex-direction:column;align-items:center;gap:7px;padding:10px 0;text-align:center;border-radius:12px}
 .master-quick-cards .master-original-icon{width:30px;height:30px}
 .master-quick-cards p{font-size:clamp(10.8px,3.3vw,15px);line-height:1.8;letter-spacing:-.025em}
 .master-teacher-section>.container{width:calc(100% - var(--phone-gutter)*2)}
 .master-teacher{padding:0 0 16px}
 .master-teacher-photo{width:250px;height:245px}
 .master-teacher h2{font-size:25px;line-height:1.5;margin:16px 0 21px}
 .master-credentials{gap:8px}
 .master-credentials article{border-radius:15px;padding:18px 6px;gap:10px}
 .master-credentials strong{font-size:29px}
 .master-credentials span{font-size:clamp(11px,3.05vw,15px);line-height:1.65}
 .master-progress-case{margin-top:12px;padding:19px 18px;border-radius:18px}
 .master-progress-case h3{font-size:26px;margin-bottom:7px}
 .master-progress-case p{font-size:17px;line-height:1.7}
 .master-method h2{font-size:25px}
 .master-method-name{font-size:23px;margin-bottom:22px}
 .master-method-cards article{grid-template-columns:52px minmax(0,1fr);gap:14px;padding:22px 17px;border-radius:20px}
 .master-method-mark{font-size:43px}
 .master-method-cards h3{font-size:25px;margin-bottom:5px}
 .master-method-cards p{font-size:15px;line-height:1.7}
 .master-reviews .review-stage{gap:12px;padding-bottom:13px}
 .master-reviews .review-stage .review-slide{flex-basis:91%;min-height:385px;padding:24px 20px;border-radius:20px}
 .master-reviews .review-stage:after{flex-basis:6%}
 .master-reviews .review-slide h3{font-size:24px;margin-bottom:14px}
 .master-reviews .review-slide blockquote{font-size:20px;line-height:1.75;margin-bottom:18px}
 .master-reviews .master-review-grade{font-size:24px}
 .master-review-name{font-size:13px;line-height:1.7;margin-bottom:18px}
 .master-review-proof img{max-height:115px}
 .master-review-proof figcaption{font-size:11px}
 .master-awards,.master-school-results,.master-spm-results{padding:17px 13px;border-radius:20px}
 .master-awards h3{font-size:25px}
 .master-awards h4{font-size:19px;line-height:1.6}
 .master-awards>p{font-size:13px}
 .master-award-pair{gap:8px}
 .master-award-pair figure{padding:6px;border-radius:10px}
 .master-award-pair figcaption{font-size:12px;margin-top:7px}
 .master-awards>.master-award-title{font-size:10px;margin-top:15px}
 .master-school-results h3,.master-spm-results>h3{font-size:23px}
 .master-school-results>p{font-size:14px}
 .master-school-sheets{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .master-school-sheets button{padding:9px;gap:8px}
 .master-school-sheets span{font-size:13px}
 .master-school-sheets img{height:125px;object-fit:cover}
 .master-school-sheets small{font-size:11px}
 .master-spm-students{gap:7px;margin-top:16px}
 .master-spm-students>article{padding:18px 5px 8px;border-radius:13px}
 .master-spm-students h4{font-size:clamp(13px,3.8vw,20px);margin-bottom:15px}
 .master-spm-students p{font-size:clamp(14px,4vw,20px);line-height:1.6;margin-bottom:15px}
 .master-spm-students figure{padding:5px 3px}
 .master-spm-students figcaption{font-size:9px;line-height:1.5;margin-bottom:4px}
 .master-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .master-resource-grid>article{padding:16px 11px 11px;border-radius:18px}
 .master-resource-grid h3{font-size:clamp(17px,4.4vw,22px);line-height:1.45;margin-bottom:10px;overflow-wrap:normal}
 .master-resource-grid p{font-size:14px;line-height:1.7;margin-bottom:14px}
 .master-resource-media{border-radius:10px}
 .master-resource-media>img{height:153px;object-fit:contain}
 .master-resource-media>span{font-size:12px;line-height:1.5;min-height:46px;padding:9px 5px}
 .master-support-cards{gap:8px;margin-top:12px}
 .master-support-cards article{padding:18px 5px 14px;border-radius:15px}
 .master-support-cards svg{width:45px;height:39px;margin-bottom:10px}
 .master-support-cards h3{font-size:clamp(12px,3.5vw,17px);line-height:1.6}
 .master-floating{right:10px;bottom:calc(11px + env(safe-area-inset-bottom,0px));padding:10px 13px;min-height:46px;font-size:12px;gap:4px}
 .master-floating b{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.master-reviews .review-stage{scroll-behavior:auto}}
