.prep{--prep-blue:var(--theme-primary,#0f766e);--prep-border:var(--theme-border,#dce6e5);--prep-muted:var(--theme-text,#64748b);--prep-surface:var(--theme-card-bg,#fff);--prep-ink:var(--theme-heading,#172b36);--prep-soft:color-mix(in srgb,var(--prep-blue) 7%,var(--prep-surface));max-width:1180px;margin:auto;padding:36px 24px 64px;color:var(--prep-ink)}.prep a{text-decoration:none}.prep-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;align-items:center;color:var(--prep-muted);font-size:14px;margin-bottom:24px}.prep-breadcrumb a{color:var(--prep-muted)}.prep-header{margin-bottom:28px}.prep h1{font-size:clamp(26px,2.7vw,32px);line-height:1.25;color:var(--prep-ink);margin:0 0 12px;font-weight:700;letter-spacing:-.6px}.prep-header>p,.prep-card p,.prep-muted{color:var(--prep-muted);line-height:1.65;margin:0}.prep h2{font-size:23px;color:var(--prep-ink);font-weight:650;margin:0 0 18px}.prep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.prep-card{display:flex;flex-direction:column;gap:12px;border:1px solid var(--prep-border);border-radius:18px;background:var(--prep-surface);padding:26px;color:var(--prep-ink);transition:border-color .15s,box-shadow .15s}.prep-card[href]:hover,.prep-card[href]:focus-visible{border-color:var(--prep-blue);box-shadow:0 5px 18px #25365b09;color:var(--prep-ink)}.prep-card h2,.prep-card h3{font-size:21px;margin:0;line-height:1.4}.prep-icon{font-size:32px;color:var(--prep-blue);line-height:1.3}.prep-green .prep-icon{color:#16a34a}.prep-purple .prep-icon{color:#9333ea}.prep-orange .prep-icon{color:#d97706}.prep-link{color:var(--prep-blue);font-weight:600}.prep-card>.prep-link,.prep-card>.prep-state{margin-top:auto;padding-top:2px}.prep-section{margin-top:32px;padding-top:28px;border-top:1px solid var(--prep-border)}.prep-classes{grid-template-columns:repeat(4,minmax(0,1fr))}.prep-class{align-items:center;text-align:center;padding:22px}.prep-class strong{font-size:34px;color:var(--prep-blue);font-weight:650}.prep-subjects{grid-template-columns:repeat(3,minmax(0,1fr))}.prep-subjects .prep-card{text-align:center;align-items:center;min-height:170px;justify-content:center}.prep-unavailable{background:#fafbfc}.prep-state{font-size:13px;color:var(--prep-muted)}.prep-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.prep-tabs a,.prep-tabs button,.prep-tabs span{border:1px solid var(--prep-border);border-radius:12px;padding:10px 17px;color:var(--prep-muted);background:var(--prep-surface);font-size:15px}.prep-tabs [aria-current=page]{background:var(--prep-blue);color:var(--theme-button-text,#fff);border-color:var(--prep-blue);font-weight:650}.prep-tabs button:disabled{color:#89909a;background:#fafbfc;cursor:not-allowed}.prep-tabs.prep-main-tabs{border-bottom:1px solid var(--prep-border);padding-bottom:20px}.prep-stats{display:flex;flex-wrap:wrap;gap:44px;margin:24px 0 28px}.prep-stats div{display:flex;flex-direction:column;gap:7px;min-width:115px}.prep-stats dt{color:var(--prep-muted);font-size:14px;font-weight:400}.prep-stats dd{font-size:28px;line-height:1.2;font-weight:650;margin:0;color:var(--prep-ink)}.prep-list{display:grid;gap:14px}.prep-chapter{border:1px solid var(--prep-border);border-radius:16px;padding:22px;background:var(--prep-surface)}.prep-chapter-heading{display:flex;align-items:flex-start;gap:16px}.prep-number{display:grid;place-items:center;min-width:43px;height:43px;border-radius:11px;background:#f2f4f7;font-weight:650;font-size:20px}.prep-chapter h2{font-size:21px;margin:0 0 7px;line-height:1.4}.prep-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px}.prep-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--prep-border);border-radius:9px;padding:9px 14px;color:var(--prep-ink);background:var(--prep-surface);font-weight:500}.prep-button:hover,.prep-button:focus-visible{border-color:var(--prep-blue);color:var(--prep-blue)}.prep-button-primary{background:var(--prep-blue);border-color:var(--prep-blue);color:var(--theme-button-text,#fff)}.prep-button-primary:hover{background:color-mix(in srgb,var(--prep-blue) 88%,#000);color:var(--theme-button-text,#fff)}.prep-tag{display:inline-block;border-radius:6px;background:#f2f5fa;color:var(--prep-muted);font-size:12px;padding:5px 9px;align-self:flex-start}.prep-empty{border:1px solid var(--prep-border);border-radius:16px;background:#fafbfc;padding:26px;line-height:1.7}.prep-revision{margin-bottom:18px;border:1px solid var(--prep-border);border-radius:16px;padding:22px;background:var(--prep-surface);scroll-margin-top:110px}.prep-revision summary{font-size:20px;font-weight:600;cursor:pointer}.prep-revision-body{padding-top:22px}.prep-revision dd{color:var(--prep-muted);line-height:1.65;margin-bottom:18px}.prep-revision p{line-height:1.7}.prep-revision math{max-width:100%;overflow-x:auto}.prep a:focus-visible,.prep button:focus-visible{outline:3px solid color-mix(in srgb,var(--prep-blue) 40%,transparent);outline-offset:3px}.prep-skip{position:absolute;left:-10000px}.prep-skip:focus{position:static}.prep-back{display:inline-block;margin-top:24px;color:var(--prep-blue)}@media(max-width:760px){.prep{padding:26px 18px 44px}.prep-subjects,.prep-classes{grid-template-columns:repeat(2,minmax(0,1fr))}.prep-card{padding:22px}.prep-stats{gap:24px}.prep-stats div{min-width:85px}}@media(max-width:480px){.prep-grid:not(.prep-classes):not(.prep-subjects){grid-template-columns:1fr}.prep-subjects{grid-template-columns:1fr}.prep h1{font-size:29px}.prep-card h2,.prep-card h3,.prep-chapter h2{font-size:19px}.prep-stats{gap:22px}.prep-stats dd{font-size:25px}.prep-tabs{gap:7px}.prep-tabs a,.prep-tabs button,.prep-tabs span{padding:9px 13px}.prep-chapter{padding:18px}.prep-actions .prep-state{width:100%}}
/* Keep the preparation page hierarchy above the shared compact-content defaults. */
main.prep .prep-header{--learning-heading-size:clamp(26px,2.7vw,32px)}
main.prep .prep-header h1{font-size:var(--learning-heading-size)!important;font-weight:700!important;line-height:1.25!important}

/* Subject workspace: use the same primary colour, surfaces and text as the site. */
.prep-subject-hero{padding:26px 28px;background:var(--prep-soft);border:1px solid var(--prep-border);border-radius:20px;margin-bottom:18px}.prep-subject-intro{display:flex;align-items:center;gap:20px}.prep-subject-icon{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:18px;background:var(--prep-surface);color:var(--prep-blue);font-size:31px;border:1px solid var(--prep-border)}.prep-eyebrow{display:block;color:var(--prep-blue);font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}.prep-subject-hero h1{margin-bottom:8px}.prep-subject-hero p{margin:0;color:var(--prep-muted);line-height:1.6}.prep-subject-hero+.prep-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 24px}.prep-subject-hero+.prep-stats>div{border:1px solid var(--prep-border);border-radius:14px;padding:17px 22px;background:var(--prep-surface)}.prep-stats dd{color:var(--prep-blue)}.prep-main-tabs{padding:6px!important;background:var(--prep-soft);border:1px solid var(--prep-border)!important;border-radius:14px;gap:6px}.prep-main-tabs a{flex:1;text-align:center;border-color:transparent;min-height:43px}.prep-main-tabs a:not([aria-current]){background:transparent}.prep-chapter{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;box-shadow:0 2px 7px #102b3004}.prep-chapter-heading{align-items:center}.prep-number{background:var(--prep-soft);color:var(--prep-blue);border:1px solid var(--prep-border)}.prep-chapter>.prep-actions{margin:0;justify-content:flex-end;flex-shrink:0}.prep-actions .prep-button{min-height:40px}.prep-tag{background:var(--prep-soft);color:var(--prep-blue);font-weight:600}.prep-quiz .cq-heading{border:1px solid var(--prep-border);border-radius:18px;padding:24px;background:var(--prep-soft)}.prep-quiz .ts-button-primary,.prep-quiz .cq-check{background:var(--prep-blue)!important;color:var(--theme-button-text,#fff)!important;border-color:var(--prep-blue)!important}.prep-quiz .cq-report,.prep-quiz .cq-question-card{border-color:var(--prep-border)}.prep-quiz .cq-question-header{background:var(--prep-soft)}.prep-quiz .cq-number{background:var(--prep-blue);color:var(--theme-button-text,#fff)}
@media(max-width:980px){.prep-chapter{align-items:flex-start;flex-direction:column;gap:16px}.prep-chapter>.prep-actions{justify-content:flex-start}}@media(max-width:600px){.prep-subject-hero{padding:20px}.prep-subject-intro{align-items:flex-start;gap:14px}.prep-subject-icon{flex-basis:44px;height:44px;font-size:23px;border-radius:12px}.prep-subject-hero+.prep-stats{gap:8px}.prep-subject-hero+.prep-stats>div{padding:13px 11px;min-width:0}.prep-stats dt{font-size:12px}.prep-stats dd{font-size:23px}.prep-main-tabs a{padding:10px 8px;font-size:13px}.prep-chapter{padding:18px}.prep-quiz .cq-heading{padding:18px}}
.prep-quiz{--learning-heading-size:clamp(24px,2.5vw,30px)}.prep-quiz .cq-heading h1{font-size:var(--learning-heading-size)!important;line-height:1.3!important}.prep-quiz .cq-heading .prep-tabs{margin-top:18px;margin-bottom:14px}.prep-quiz .cq-option:hover{border-color:var(--prep-blue)}

/* One mobile-first learning journey. The resource rail follows content on narrow screens. */
.prep-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.prep-main{min-width:0}.prep-sidebar{min-width:0;scroll-margin-top:100px}.prep-side-panel{padding:20px;border:1px solid var(--prep-border);border-radius:16px;background:var(--prep-surface);margin-bottom:18px}.prep-side-panel h2{font-size:18px;margin-bottom:16px}.prep-side-panel p{line-height:1.65}.prep-side-panel ul{list-style:none;margin:0;padding:0}.prep-side-panel li+li{border-top:1px solid var(--prep-border)}.prep-side-panel li>a{display:flex;align-items:flex-start;gap:11px;padding:14px 0;color:var(--prep-ink)}.prep-side-panel li>a>i{color:var(--prep-blue);font-size:20px;flex-shrink:0}.prep-side-panel li>a>span:first-of-type{flex:1;min-width:0}.prep-side-panel strong{font-size:14px;line-height:1.5;display:block;overflow-wrap:anywhere}.prep-side-panel small{display:block;font-size:12px;line-height:1.5;color:var(--prep-muted);margin-top:4px}.prep-side-tip{background:var(--prep-soft)}.prep-side-tip p{font-size:14px}.prep-mobile-resources{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-bottom:18px;color:var(--prep-blue);font-weight:600}.prep-practice-intro{padding:24px;border:1px solid var(--prep-border);border-radius:18px;background:var(--prep-soft)}.prep-practice-intro p{line-height:1.7;color:var(--prep-muted)}.prep-practice-intro .prep-icon{display:block;margin-bottom:16px}.prep-practice-progress{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:16px 0}.prep-practice-progress>span{font-size:13px;color:var(--prep-muted)}.prep-dynamic{max-width:900px}.prep-dynamic .cq-question-card{margin-bottom:20px}.prep-dynamic .cq-question-header{background:var(--prep-soft);gap:16px}.prep-dynamic .cq-number{background:var(--prep-blue);color:var(--theme-button-text,#fff);flex-shrink:0}.prep-dynamic form select{padding:12px;border:1px solid var(--prep-border);border-radius:10px;background:var(--prep-surface);color:var(--prep-ink)}.prep-dynamic [data-practice-start]{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:20px 0}.prep-dynamic [data-practice-next]{margin-top:20px}.prep-dynamic input{accent-color:var(--prep-blue)}.prep-topic-results{display:grid;gap:12px;margin:20px 0}.prep-topic-results article{padding:16px;border:1px solid var(--prep-border);border-radius:12px}.prep-topic-results h3{font-size:17px}.prep-history{padding-left:20px}.prep-history li{padding:8px 0}.prep-history a{color:var(--prep-blue)}
@media(min-width:1100px){.prep{max-width:1280px}.prep-shell{grid-template-columns:minmax(0,1fr) 300px;gap:28px}.prep-sidebar{align-self:start;position:sticky;top:110px}.prep-mobile-resources{display:none}.prep-shell .prep-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.prep-shell .prep-chapter{align-items:flex-start;flex-direction:column;gap:15px}.prep-shell .prep-chapter>.prep-actions{justify-content:flex-start}.prep-shell .prep-main-tabs a{flex:0 1 auto}}
@media(max-width:600px){main.prep{padding:20px 16px 36px}.prep-grid:not(.prep-classes){grid-template-columns:1fr}.prep-card{padding:20px;gap:9px;border-radius:14px}.prep-card .prep-icon{font-size:26px}.prep-card h2,.prep-card h3{font-size:18px}.prep-card p{font-size:14px}.prep-card>.prep-link{display:flex;align-items:center;min-height:38px}.prep-subjects .prep-card{min-height:100px;align-items:flex-start;text-align:left;position:relative;padding-left:70px;justify-content:center}.prep-subjects .prep-icon{position:absolute;left:22px;top:26px}.prep-subjects .prep-card h3{font-size:18px}.prep-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;margin:16px 0 22px}.prep-stats>div{min-width:0!important;padding:12px 10px;border:1px solid var(--prep-border);border-radius:12px}.prep-stats dt{font-size:11px}.prep-stats dd{font-size:23px}.prep-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}.prep-tabs a,.prep-tabs button{white-space:nowrap;flex-shrink:0;min-height:44px;display:inline-flex;align-items:center}.prep-tabs.prep-main-tabs{flex-wrap:wrap;overflow:visible}.prep-main-tabs a{flex:1 1 40%;justify-content:center}.prep-side-panel{padding:18px}.prep-practice-intro{padding:20px}.prep-dynamic .cq-question-body{padding:18px}.prep-dynamic [data-practice-start]>*{width:100%}.prep-dynamic .cq-option{font-size:16px;min-height:48px}}

.prep-card{--learning-heading-size:clamp(18px,1.8vw,21px)}.prep-side-panel{--learning-heading-size:18px}.prep-side-panel li>a:hover{color:var(--prep-blue)}.prep-dynamic .cq-options{margin-bottom:20px}.prep-dynamic [data-practice-report]{scroll-margin-top:110px}

/* Match the existing PYP page width, 360px resource rail and shared hero/sidebar templates. */
main.prep:not(.prep-dynamic):not(.prep-quiz){width:min(1320px,calc(100% - 28px));max-width:none;padding:clamp(24px,4vw,56px) 0 72px}.prep>.resource-header{margin-bottom:18px}.prep>.resource-header h1{font-size:clamp(1.8rem,4vw,2.75rem);line-height:1.12;letter-spacing:-.025em;margin:10px 0 14px;max-width:900px}.prep>.resource-header p{font-size:clamp(.98rem,1.7vw,1.08rem);line-height:1.65;max-width:850px;margin:0}.prep-shell .prep-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}.prep-shell .prep-stats>div{min-width:0;padding:16px;border:1px solid var(--prep-border);border-radius:12px}.prep-room-note{color:var(--prep-muted);line-height:1.65;margin:0 0 20px}.prep-mode-help{margin-top:16px}.prep-mode-help dl{margin:18px 0}.prep-mode-help dt{font-size:14px;color:var(--prep-ink);line-height:1.5;margin-top:16px}.prep-mode-help dd{font-size:13px;color:var(--prep-muted);line-height:1.65;margin:6px 0 0}.prep-mode-details{margin:22px 0}.prep-mode-details dt{color:var(--prep-ink);margin-top:16px}.prep-mode-details dd{color:var(--prep-muted);line-height:1.7;margin:5px 0 0}
@media(min-width:992px){.prep-shell{grid-template-columns:minmax(0,1fr) 360px;gap:22px}.prep-sidebar{align-self:start;position:sticky;top:92px}.prep-mobile-resources{display:none}.prep-shell .prep-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.prep-shell .prep-chapter{align-items:flex-start;flex-direction:column;gap:15px}.prep-shell .prep-chapter>.prep-actions{justify-content:flex-start}}
@media(max-width:991.98px){.prep-shell{grid-template-columns:minmax(0,1fr)}.prep-sidebar{position:static}}
@media(max-width:600px){.prep-shell .prep-stats{gap:8px}.prep-shell .prep-stats>div{padding:12px 10px}.prep>.resource-header{padding:24px}.prep-mode-help dt{font-size:14px}}

/* A persistent package-style learning room, with resources as secondary sections. */
.prep-room-header{padding:28px 0;--prep-muted:var(--theme-text,#64748b)}.prep-room-inner{width:min(1320px,calc(100% - 28px));margin:auto}.prep-room-header .prep-breadcrumb{color:var(--theme-text,#64748b);margin-bottom:22px}.prep-room-header .prep-breadcrumb a{color:var(--theme-primary,#0f766e);font-weight:600}.prep-room-copy{color:var(--theme-text,#64748b);line-height:1.65;margin:0 0 18px;max-width:850px}.prep-room-header .package-hero-title{margin-bottom:12px}.prep-room-header+main.prep:not(.prep-dynamic):not(.prep-quiz){padding-top:24px}.prep-room-tabs{flex-wrap:wrap;padding:6px;background:var(--prep-soft);border:1px solid var(--prep-border);border-radius:14px;gap:6px;scroll-margin-top:110px}.prep-room-tabs a{min-height:44px;display:inline-flex;align-items:center;padding:9px 13px;background:transparent;border-color:transparent}.prep-room-tabs [aria-current=page]{background:var(--prep-blue);border-color:var(--prep-blue)}.prep-section-heading{margin-bottom:22px}.prep-section-heading h2{margin-bottom:8px}.prep-section-heading p{margin:0;color:var(--prep-muted);line-height:1.65}
@media(max-width:767px){.prep-room-header{padding:22px 0}.prep-room-header .package-hero-grid{grid-template-columns:minmax(0,1fr);gap:16px}.prep-room-header .package-hero-cta{justify-self:start;min-width:0;white-space:normal}.prep-room-header .package-hero-meta>span{font-size:12px;padding:8px 10px}.prep-room-header .prep-breadcrumb{margin-bottom:18px}.prep-room-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.prep-room-tabs a{justify-content:center;white-space:normal;text-align:center;font-size:13px}}

/* Compact, clearly bounded resource choices; keep more space for the learning content. */
main.prep:not(.prep-dynamic):not(.prep-quiz),.prep-room-inner{width:min(1440px,calc(100% - 28px))}.prep-resource-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0!important;border:0!important;background:transparent!important;margin-bottom:24px;overflow:visible}.prep-resource-nav a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 12px;border:1px solid var(--prep-border);border-radius:10px;background:var(--prep-surface);color:var(--prep-ink);font-size:14px;font-weight:600;line-height:1.35;text-align:center;white-space:normal;box-shadow:0 1px 3px #102b3006}.prep-resource-nav a>i{flex-shrink:0;font-size:18px;color:var(--prep-blue)}.prep-resource-nav a:hover{background:var(--prep-soft);border-color:var(--prep-blue)}.prep-resource-nav a[aria-current=page]{background:var(--prep-blue);border-color:var(--prep-blue);color:var(--theme-button-text,#fff);box-shadow:0 3px 8px color-mix(in srgb,var(--prep-blue) 16%,transparent)}.prep-resource-nav a[aria-current=page]>i{color:inherit}.prep-resource-grid{gap:12px}.prep .prep-resource-card{display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:start;gap:14px;padding:18px;border-radius:14px;min-height:0;--learning-heading-size:17px}.prep-resource-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--prep-soft);color:var(--prep-blue);font-size:22px}.prep-resource-copy{min-width:0}.prep .prep-resource-card h3{font-size:17px;line-height:1.4;margin:0 0 6px}.prep .prep-resource-card p{font-size:13px;line-height:1.5;margin:0 0 9px}.prep-resource-meta{display:inline-flex;font-size:11px;font-weight:600;line-height:1.4;color:var(--prep-blue);padding:3px 7px;border-radius:6px;background:var(--prep-soft)}.prep-resource-arrow{align-self:center;color:var(--prep-blue);font-size:19px}.prep .prep-resource-card:hover{box-shadow:0 4px 12px #102b3009;transform:translateY(-1px)}
@media(min-width:992px){.prep-shell{grid-template-columns:minmax(0,1fr) clamp(360px,28%,400px);gap:22px}}
@media(max-width:767px){.prep-resource-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.prep-resource-nav a{font-size:13px;min-height:46px;justify-content:flex-start;text-align:left;padding:10px}.prep .prep-resource-card{grid-template-columns:36px minmax(0,1fr) 18px;gap:12px;padding:16px}.prep-resource-icon{width:36px;height:36px;font-size:20px}.prep-resource-grid{grid-template-columns:minmax(0,1fr)}.prep .prep-resource-card h3{font-size:16px}}

.prep .prep-assessment-card{padding:18px;gap:10px;border-radius:14px;--learning-heading-size:17px}.prep .prep-assessment-card h3{font-size:17px;line-height:1.4}.prep .prep-assessment-card p{font-size:13px;line-height:1.5}.prep-assessment-card .prep-actions{margin-top:6px}.prep-filter-tabs a{display:inline-flex;align-items:center;gap:7px;min-height:42px;border-radius:9px;font-size:13px;font-weight:600}.prep-filter-tabs a>i{font-size:17px}

@media(min-width:1200px){.prep-resource-nav[aria-label="Mathematics views"]{grid-template-columns:repeat(5,minmax(0,1fr))}}

.prep-resource-nav a>span{padding:0;border:0;border-radius:0;background:transparent;color:inherit;font-size:inherit;line-height:inherit;font-weight:inherit}

/* Keep selected labels legible when the global link hover colour is applied. */
.prep .prep-tabs a[aria-current="page"],.prep .prep-tabs a[aria-current="page"]:hover,.prep .prep-tabs a[aria-current="page"]:focus-visible,.prep .prep-tabs a[aria-current="page"]:active{background:var(--prep-blue);color:#fff;-webkit-text-fill-color:#fff;border-color:var(--prep-blue)}
.prep .prep-tabs a[aria-current="page"]>span,.prep .prep-tabs a[aria-current="page"]>i{color:#fff;-webkit-text-fill-color:#fff}
.prep .prep-tabs a:focus-visible{outline:3px solid var(--prep-blue);outline-offset:3px}
.prep-guest-progress{padding:14px 18px;margin:16px 0;border:1px solid #bddbd8;border-radius:12px;background:#eff8f7;color:#263c48;font-size:15px;line-height:1.6}
.prep-guest-progress a{color:#086f69;text-decoration:underline;font-weight:600}

.prep .prep-button-primary:hover,.prep .prep-button-primary:focus-visible{background:var(--prep-blue);color:#fff;-webkit-text-fill-color:#fff}.prep .prep-button-primary:hover *,.prep .prep-button-primary:focus-visible *{color:inherit;-webkit-text-fill-color:inherit}

/* The final resource follows the same grid flow as the other navigation buttons. */
.prep-resource-nav .prep-concepts-link{grid-column:auto;justify-self:stretch;width:auto;max-width:100%;white-space:nowrap}
.prep-resource-nav .prep-concepts-link>span{white-space:nowrap}
@media(min-width:1200px){.prep-resource-nav[aria-label="Mathematics views"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
.prep-inline-quiz{scroll-margin-top:110px;margin-bottom:24px;min-width:0}
.prep-inline-quiz[hidden],.prep-quiz-frame[hidden]{display:none!important}
.prep-inline-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.prep-inline-toolbar .prep-back{margin:0}
.prep-quiz-frame{display:block;width:100%;height:600px;border:0;background:transparent}

/* Tests use a question workspace and a report shown only after submission. */
.prep-test[hidden],.prep-test [hidden]{display:none!important}
.prep-test-header{padding:24px;border:1px solid var(--prep-border);border-radius:16px;background:var(--prep-soft);margin-bottom:24px}
.prep-test-header h1{margin:8px 0 12px}.prep-test-header p{margin:0;line-height:1.6}
.prep-test-facts{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:18px;font-size:14px;color:var(--prep-blue)}
.prep-test-facts span{display:inline-flex;gap:7px;align-items:center}
.prep-test-setup,.prep-test-status,.prep-test-report{padding:24px;border:1px solid var(--prep-border);border-radius:16px;background:var(--prep-surface)}
.prep-test-setup h2,.prep-test-status h2{font-size:20px;margin:0 0 14px}.prep-test-setup p{line-height:1.6}
.prep-test-setup form{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:22px 0}.prep-test-setup label{display:block;font-weight:600;margin-bottom:7px}.prep-test-setup select{min-width:180px;padding:11px 14px;border:1px solid var(--prep-border);border-radius:10px;background:var(--prep-surface);color:var(--prep-ink)}
.prep-test-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.prep-test-question{min-width:0;margin:0}.prep-test-question fieldset{min-width:0;padding:0;border:0}
.prep-test-question-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--prep-border);padding-top:20px;margin-top:24px}.prep-test-question-actions>span{font-size:13px;color:var(--prep-muted)}
.prep-test-status{padding:20px}.prep-test-status p{font-size:14px;line-height:1.65;color:var(--prep-muted)}.prep-test-status progress{display:block;width:100%;height:10px;margin:16px 0;accent-color:var(--prep-blue)}
.prep-test-report>header h2{margin:12px 0}.prep-test-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.prep-test-metrics>div{padding:20px;background:var(--prep-soft);border-radius:12px}.prep-test-metrics strong{display:block;color:var(--prep-blue);font-size:25px}.prep-test-metrics span{font-size:13px;color:var(--prep-muted)}
.prep-test-review-item{margin:12px 0;border:1px solid var(--prep-border);border-radius:12px}.prep-test-review-item summary{padding:16px;cursor:pointer;font-weight:600}.prep-test-review-item>div{padding:0 18px 18px;line-height:1.7}.prep-test-review-item h4{font-size:15px;margin:20px 0 8px}
@media(max-width:767px){.prep-test-layout{grid-template-columns:1fr;gap:16px}.prep-test-status{grid-row:1;padding:16px}.prep-test-status h2{font-size:17px}.prep-test-status p{margin:8px 0}.prep-test-header,.prep-test-setup,.prep-test-report{padding:18px}.prep-test-metrics{gap:8px}.prep-test-metrics>div{padding:13px 10px}.prep-test-metrics strong{font-size:21px}.prep-test-question-actions .prep-button{width:100%;justify-content:center}}

@media(min-width:1440px){.prep-resource-nav[aria-label="Mathematics views"]{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:419px){.prep-resource-nav .prep-concepts-link{grid-column:span 2;justify-self:start;width:max-content}}
.prep-assessment{min-width:0;scroll-margin-top:110px;font-size:16px;line-height:1.6}
.prep-assessment .prep-test-setup{padding:28px;box-shadow:0 4px 20px #102b3005}
.prep-assessment .prep-test-setup h2{margin:16px 0 12px;font-size:clamp(21px,2vw,26px)}
.prep-assessment .prep-test-setup>p{max-width:640px;color:var(--prep-muted)}
.prep-assessment-progress{padding:20px 22px;border:1px solid var(--prep-border);border-radius:14px;background:var(--prep-surface);margin-bottom:18px}
.prep-assessment-progress>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.prep-assessment-progress strong{font-size:16px}
.prep-assessment-progress progress,.prep-topic-card progress{display:block;width:100%;height:8px;accent-color:var(--prep-blue);border:0;border-radius:20px;overflow:hidden;margin:14px 0}
.prep-assessment-progress progress::-webkit-progress-bar,.prep-topic-card progress::-webkit-progress-bar{background:var(--prep-soft);border-radius:20px}.prep-assessment-progress progress::-webkit-progress-value,.prep-topic-card progress::-webkit-progress-value{background:var(--prep-blue);border-radius:20px}
.prep-assessment-progress p{font-size:13px;line-height:1.5;margin:0;color:var(--prep-muted)}
.prep-assessment .cq-number{background:var(--prep-blue);color:#fff}.prep-assessment .cq-question-header{background:var(--prep-soft);gap:14px}.prep-assessment .cq-question-body{padding:24px}.prep-assessment .cq-question-text{font-size:18px;line-height:1.75}
.prep-assessment .prep-test-report{padding:26px;box-shadow:0 4px 20px #102b3005}.prep-assessment .prep-test-report>h3{font-size:20px;margin:28px 0 14px}
.prep-report-hero{display:flex;align-items:center;gap:22px;padding-bottom:24px;border-bottom:1px solid var(--prep-border)}.prep-assessment .prep-report-hero h2{font-size:clamp(22px,2vw,28px);line-height:1.3;margin:10px 0}.prep-report-hero p{margin:0;color:var(--prep-muted);font-size:14px}
.prep-accuracy-ring{position:relative;flex-shrink:0;display:grid;place-content:center;text-align:center;gap:2px;width:112px;height:112px;border-radius:50%;background:conic-gradient(var(--prep-blue) var(--accuracy,0%),var(--prep-soft) 0)}.prep-accuracy-ring:before{content:"";position:absolute;inset:9px;background:var(--prep-surface);border-radius:50%}.prep-accuracy-ring strong,.prep-accuracy-ring span{position:relative;z-index:1}.prep-accuracy-ring strong{font-size:26px;line-height:1.2;color:var(--prep-blue)}.prep-accuracy-ring span{font-size:12px;color:var(--prep-muted)}
.prep-assessment .prep-test-metrics{margin:22px 0;gap:12px}.prep-assessment .prep-test-metrics>div{padding:17px;border:1px solid var(--prep-border);background:var(--prep-surface);min-width:0}.prep-test-metrics>div>i{display:block;color:var(--prep-blue);font-size:21px;margin-bottom:6px}.prep-assessment .prep-test-metrics strong{font-size:25px;line-height:1.4}.prep-assessment .prep-test-metrics span{display:block;margin-top:4px;line-height:1.5}
.prep-report-guidance{padding:20px;border-radius:12px;background:var(--prep-soft);border-left:3px solid var(--prep-blue)}.prep-report-guidance h3{font-size:18px;margin:0 0 10px;display:flex;gap:8px;align-items:center}.prep-report-guidance p{font-size:14px;margin:0 0 10px;color:var(--prep-muted)}.prep-report-guidance a{font-size:14px;font-weight:600;color:var(--prep-blue)}
.prep-assessment .prep-topic-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.prep-topic-card{min-width:0}.prep-topic-card>div{display:flex;justify-content:space-between;align-items:start;gap:12px}.prep-topic-card h4{font-size:16px;line-height:1.4;margin:0}.prep-topic-card strong{color:var(--prep-blue);font-size:15px;white-space:nowrap}.prep-topic-card p{font-size:13px;margin:0 0 6px}.prep-topic-card small{display:block;font-size:12px;line-height:1.5;color:var(--prep-muted)}
.prep-assessment .prep-test-review-item summary{font-size:14px;line-height:1.6}.prep-assessment .prep-test-review-item>div{padding:0 20px 20px;font-size:15px}.prep-assessment .prep-test-review-item h4{color:var(--prep-blue)}
.prep-assessment-help .prep-help-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--prep-soft);color:var(--prep-blue);font-size:24px;margin-bottom:14px}.prep-assessment-help .interest-sidebar-title{line-height:1.4}.prep-help-details{margin:18px 0 0}.prep-help-details dt{font-size:14px;font-weight:600;margin:18px 0 6px;line-height:1.5}.prep-help-details dd{font-size:14px;line-height:1.7;color:var(--prep-muted);margin:0}.prep-help-steps{padding-left:20px;margin:18px 0;font-size:14px;color:var(--prep-muted)}.prep-help-steps li{padding-left:4px;margin-bottom:12px;line-height:1.65}.prep-help-compare{background:var(--prep-soft)}.prep-assessment-help .prep-button{font-size:14px;width:100%;justify-content:space-between}.prep-assessment-help .prep-back{font-size:14px;line-height:1.5}
@media(max-width:767px){.prep-assessment .prep-test-setup,.prep-assessment .prep-test-report{padding:18px}.prep-assessment .cq-question-body{padding:18px}.prep-report-hero{gap:14px;align-items:flex-start}.prep-accuracy-ring{width:86px;height:86px}.prep-accuracy-ring:before{inset:7px}.prep-accuracy-ring strong{font-size:22px}.prep-assessment .prep-report-hero h2{font-size:21px}.prep-assessment .prep-test-metrics{gap:8px}.prep-assessment .prep-test-metrics>div{padding:12px 9px}.prep-assessment .prep-test-metrics strong{font-size:21px}.prep-assessment .prep-topic-results{grid-template-columns:1fr}.prep-assessment-progress{padding:16px}.prep-report-guidance{padding:16px}.prep-assessment .prep-test-metrics span{font-size:12px}}

.concept-story{padding:18px;border-radius:12px;background:var(--prep-soft,#eff8f7);border-left:3px solid var(--prep-blue,#0f766e);margin:16px 0 20px;line-height:1.8}.concept-story h4{color:var(--prep-blue,#0f766e)}.concept-check{padding:14px;border:1px solid var(--prep-border,#dce6e5);border-radius:10px;margin-top:18px}.concept-check summary{cursor:pointer;font-weight:600}.concept-check p{line-height:1.8;margin-top:12px}

/* Score meaning stays visible in the percentage as well as in its colour. */
.prep-assessment [data-score-band=low]{--score-color:#c62828}.prep-assessment [data-score-band=medium]{--score-color:#a96505}.prep-assessment [data-score-band=high]{--score-color:var(--prep-blue)}
.prep-assessment .prep-accuracy-ring{background:conic-gradient(var(--score-color,var(--prep-blue)) var(--accuracy,0%),var(--prep-soft) 0)}.prep-assessment .prep-accuracy-ring strong,.prep-assessment .prep-topic-card strong{color:var(--score-color,var(--prep-blue))}
.prep-assessment .prep-topic-card progress{accent-color:var(--score-color,var(--prep-blue))}.prep-assessment .prep-topic-card progress::-webkit-progress-value{background:var(--score-color,var(--prep-blue))}.prep-assessment .prep-topic-card progress::-moz-progress-bar{background:var(--score-color,var(--prep-blue));border-radius:20px}
.prep-sidebar.interest-sidebar-shell:has(.prep-assessment-help){display:grid;gap:18px;align-content:start;padding-bottom:16px}.prep-sidebar .interest-sidebar-panel.prep-assessment-help{padding:22px;border:1px solid var(--prep-border);border-radius:16px;margin:0;background:var(--prep-surface)}.prep-sidebar .prep-assessment-help.prep-help-compare{padding:22px;background:var(--prep-soft)}.prep-assessment-help .prep-back{display:inline-flex;margin-top:14px}.prep-assessment-help .interest-sidebar-title{margin-top:0}.prep-assessment-help .interest-sidebar-copy:last-child{margin-bottom:0}
.prep-guest-progress[hidden]{display:none!important}
