:root {
  --navy: #062f4f;
  --navy-2: #0d4168;
  --gold: #e6d58f;
  --gold-2: #c9aa4a;
  --ink: #172638;
  --muted: #4e6074;
  --line: #dae3eb;
  --wash: #f3f6fa;
  --brand: Georgia, "Times New Roman", serif;
  --sans: Aptos, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--wash);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--navy-2); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2175aa; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--gold); border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
.site-header { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 25px 16px 20px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { padding: 0 4px 21px; border-bottom: 1px solid var(--line); }
.brand-home { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand img { flex: none; border: 1px solid #d9c674; border-radius: 10px; object-fit: cover; }
.brand strong { display: block; font: bold 1.03rem/1.15 var(--brand); }
.brand small, .sidebar-footer small { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.nav-label { margin: 24px 11px 7px; color: var(--muted); font-size: .69rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
nav a { display: flex; gap: 11px; align-items: center; min-height: 43px; margin-bottom: 3px; padding: 8px 11px; color: #35465a; font-size: .91rem; font-weight: 700; border-radius: 8px; text-decoration: none; }
nav a:hover { background: var(--wash); }
nav a[aria-current] { color: var(--navy); background: #fff4c7; box-shadow: inset 3px 0 0 var(--gold-2); }
svg { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 4px 0; border-top: 1px solid var(--line); color: var(--navy); font-size: .85rem; font-weight: 700; }
.sidebar-footer small { font-weight: 500; }
.menu-button { display: none; }
.page { max-width: 1410px; margin-inline: auto; padding: 0 clamp(21px, 4vw, 62px); }
.badge { padding: 4px 11px; border-radius: 100px; border: 1px solid #ccdce7; color: var(--navy); background: #fff; font-size: .77rem; font-weight: 800; white-space: nowrap; }
.hero { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 330px; padding: clamp(27px, 4.2vw, 56px); border-radius: 18px; color: #fff; background: #082f4d; overflow: hidden; box-shadow: 0 16px 38px #062f4f20; }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, #062a46 3%, #062a46eb 31%, #062a4690 70%, #062a4638), url("assets/repton-dubai-campus.jpg") center 46% / cover; }
.hero-content { max-width: 640px; }
.eyebrow { display: flex; gap: 8px; align-items: center; margin: 0 0 9px; font-size: .73rem; line-height: 1.4; font-weight: 850; letter-spacing: .105em; text-transform: uppercase; color: var(--navy-2); }
.eyebrow span { display: inline-block; width: 16px; height: 2px; background: var(--gold-2); }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow span { width: 25px; background: var(--gold); }
h1, h2 { color: var(--navy); font-family: var(--brand); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
h1 { margin: 0; color: #fff; font-size: clamp(2.48rem, 5.4vw, 5rem); }
.hero-content > p:not(.eyebrow) { max-width: 470px; margin: 15px 0 24px; color: #f5f7fb; font-size: clamp(1rem, 1.65vw, 1.2rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; width: fit-content; padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; font-size: .9rem; text-decoration: none; }
.button-gold { background: var(--gold); color: #072c49; }
.button-gold:hover { background: #f3e4aa; }
.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: var(--navy-2); }
.button svg, .source svg, .extension a svg, .page-footer svg { width: 16px; height: 16px; }
.section { margin-top: 43px; scroll-margin-top: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(1.85rem, 3.3vw, 2.65rem); }
.section-heading > p:last-child:not(.eyebrow) { max-width: 730px; margin: 8px 0 0; color: var(--muted); }
.scream-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 19px; }
.scream-tabs button { display: flex; min-height: 99px; flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); text-align: left; font-size: .83rem; font-weight: 800; line-height: 1.24; }
.scream-tabs button:hover { border-color: #7190aa; }
.scream-tabs button[aria-selected="true"] { background: #fff8de; border-color: #ba9c45; box-shadow: inset 0 -3px 0 var(--gold-2); }
.letter { display: grid; width: 34px; height: 34px; place-items: center; background: #eaf1f6; border-radius: 7px; font: bold 1.26rem/1 var(--brand); }
[aria-selected="true"] .letter { color: #fff; background: var(--navy); }
.concept-panels { margin-top: 12px; }
h3 { margin: 0; color: var(--navy); line-height: 1.26; }
.lab h3 { font-size: 1.28rem; }
.extension p { margin: 8px 0 0; color: var(--muted); }
.study-reminder { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 0; color: var(--muted); font-size: .88rem; }
.study-reminder svg { margin-top: 2px; width: 17px; height: 17px; color: var(--navy-2); }
.lab, .extension-grid { display: grid; gap: 13px; margin-top: 18px; }
.lab { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.lab-study, .lab-check, .extension { padding: clamp(16px, 2.5vw, 25px); border: 1px solid var(--line); background: #fff; border-radius: 13px; }
.lab-study > p { margin: 8px 0 16px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
caption { padding: 0 0 5px; text-align: left; font-weight: 750; color: var(--navy); }
thead { background: #eaf1f6; }
th, td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--navy); }
.lab-check fieldset { padding: 0; border: 0; margin: 0 0 12px; min-width: 0; }
.lab-check legend { margin-bottom: 8px; padding: 0; color: var(--navy); font-weight: 800; }
.lab-check label { display: flex; gap: 9px; align-items: start; padding: 8px 0; line-height: 1.4; cursor: pointer; }
.lab-check input { margin: 4px 0 0; accent-color: var(--navy); }
.feedback { margin: 13px 0 0; padding: 8px 12px; border-radius: 6px; color: #704609; background: #fff3d5; }
.feedback[data-correct="true"] { color: #125837; background: #e7f4ed; }
.model-answer { margin-top: 12px; padding: 12px 16px; background: #edf3f8; border: 1px solid #d6e3ed; border-radius: 9px; color: var(--navy); }
.model-answer summary { cursor: pointer; font-weight: 750; }
.model-answer p { margin: 10px 0 0; color: var(--muted); }
.extension-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.extension { display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 20px; }
.extension:target { border-color: #b39641; box-shadow: 0 0 0 2px #e6d58f66; }
.topic-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 11px; border-radius: 9px; color: var(--navy); background: #edf3f8; }
.extension p { margin-bottom: 14px; }
.extension a, .source, .page-footer a { font-weight: 750; text-underline-offset: .22em; }
.extension a { margin-top: auto; font-size: .9rem; }
.course { padding: clamp(18px, 3vw, 31px); border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.assessment-list { margin: 17px 0 0; }
.assessment-list div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.assessment-list dt { color: var(--navy); font-weight: 800; }
.assessment-list dd { margin: 0; color: var(--muted); }
.course-note { color: var(--muted); }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; padding: 23px 0; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-height: 680px) { .sidebar-footer { margin-top: 20px; } }
@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 216px minmax(0, 1fr); }
  .site-header { padding-inline: 12px; }
  .scream-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scream-tabs button { min-height: 76px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .site-header { z-index: 5; height: auto; max-height: 78dvh; padding: 9px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { display: flex; justify-content: space-between; align-items: center; padding: 0; border: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand small { font-size: .76rem; }
  .menu-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; min-height: 41px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); font-weight: 750; }
  .site-header nav:not(.is-open), .sidebar-footer { display: none; }
  .site-header nav { margin-top: 8px; border-top: 1px solid var(--line); }
  .nav-label { margin-top: 12px; }
  .page { padding-inline: 16px; }
  .hero { min-height: 278px; border-radius: 14px; }
  .hero::before { background-position: center, 58% center; }
  .section, .extension, #dashboard { scroll-margin-top: 74px; }
  .section { margin-top: 33px; }
}
@media (max-width: 560px) {
  .lab, .extension-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .scream-tabs { gap: 7px; }
  .scream-tabs button { min-height: 89px; font-size: .78rem; padding: 8px; }
  .assessment-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Match the GCSE template's sidebar, starter, campus hero and launcher. */
.app-shell { grid-template-columns: 276px minmax(0, 1fr); }
.site-header { padding: 20px 14px 16px; }
.page { max-width: none; min-height: 100vh; padding-inline: 20px; }
.view.section { max-width: 1170px; margin: 32px auto 0; }
.course-nav { margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--line); }
.course-nav summary { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 8px; background: #edf3f8; color: var(--navy); cursor: pointer; font-weight: 800; font-size: .9rem; }
.course-nav summary svg:last-child { margin-left: auto; width: 15px; height: 15px; }
.course-nav[open] summary svg:last-child { transform: rotate(180deg); }
.course-nav a { margin-top: 4px; padding-left: 20px; }
.course-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-inline: -20px; padding: 18px clamp(20px, 4vw, 39px); background: #f3eac2; border-bottom: 1px solid #d7c582; color: var(--navy); }
.course-banner .eyebrow { margin-bottom: 3px; color: #5e5026; }
.banner-title { margin: 0; font-size: clamp(1.06rem, 2.2vw, 1.42rem); font-weight: 800; line-height: 1.24; }
.banner-right { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; font-size: .88rem; font-weight: 750; }
.banner-right .badge { border-color: #d7c582; background: #fffcf1; }
.starter { max-width: 1270px; margin: 20px auto; padding: clamp(17px, 3vw, 26px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 22px #062f4f0a; }
.starter h2 { margin: 0; font-family: var(--sans); font-size: clamp(1.6rem, 3vw, 2.12rem); }
.starter > p:not(.eyebrow) { margin: 8px 0 15px; color: var(--muted); }
.starter-question { padding: clamp(14px, 2.3vw, 21px); border: 1px solid var(--line); border-radius: 12px; }
.starter-question .badge { display: inline-block; margin-bottom: 10px; border-color: transparent; background: var(--navy); color: #fff; }
.starter-question h3 { max-width: 970px; font-size: clamp(1.08rem, 2.2vw, 1.48rem); }
.starter-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 9px; margin-top: 13px; }
.starter-actions details { flex: 0 0 auto; max-width: 100%; }
.starter-actions details[open] { flex-basis: 100%; }
.starter-actions summary { width: fit-content; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #edf3f8; color: var(--navy); cursor: pointer; font-size: .9rem; font-weight: 800; }
.starter-actions details p { max-width: 780px; margin: 8px 0 0; color: var(--muted); }
.home-view .hero { min-height: 275px; margin-inline: -20px; padding: clamp(23px, 4vw, 44px); border-radius: 0; box-shadow: none; }
.home-view .hero-content > p:not(.eyebrow) { margin-bottom: 0; }
.launch-grid, .home-topics { display: grid; gap: 12px; max-width: 1270px; margin: 16px auto 0; }
.launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.launch-primary { position: relative; display: flex; flex-direction: column; padding: 21px 42px 21px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); text-decoration: none; }
.launch-primary:first-child { border-color: #d9c674; background: #fff9e4; }
.launch-primary strong { margin-bottom: 5px; font-size: 1.32rem; color: var(--navy); }
.launch-primary svg { position: absolute; top: 22px; right: 17px; color: var(--navy); }
.launch-primary:hover, .home-topics a:hover { border-color: #7190aa; }
.home-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-topics a { align-items: flex-start; margin: 0; padding: 13px; border: 1px solid var(--line); background: #fff; }
.home-topics a small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; font-weight: 500; line-height: 1.3; }
.module-tools { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.module-tools h3 { font-size: 1.36rem; }
.module-tools > p, .responses { color: var(--muted); }
.next-link { margin-top: 18px; }
#extensions .extension-grid { grid-template-columns: minmax(0, 1fr); max-width: 740px; }
.chart figure { margin: 9px 0 0; }
.chart figcaption { margin-bottom: 5px; font-weight: 750; }
.chart figure div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2rem; gap: 7px; align-items: center; font-size: .82rem; }
.chart meter { width: 100%; height: 16px; }
.chart meter::-webkit-meter-optimum-value { background: var(--navy-2); }
.reading-list { padding-left: 23px; }
.reading-list li { margin-bottom: 8px; }
@media (max-width: 1040px) { .app-shell { grid-template-columns: 232px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .site-header { padding: 9px 16px; }
  .page { padding-inline: 15px; }
  .course-banner, .home-view .hero { margin-inline: -15px; }
  .home-view .hero { min-height: 225px; }
  .view.section { margin-top: 23px; }
}
@media (max-width: 510px) { .launch-grid, .home-topics { grid-template-columns: minmax(0, 1fr); } }

.bank-search { margin-top: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bank-search label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .9rem; font-weight: 800; }
.bank-search input { width: 100%; max-width: 550px; min-height: 43px; padding: 7px 11px; border: 1px solid #99abbc; border-radius: 7px; color: var(--ink); background: #fff; }
.bank-results-status { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.bank-results-status:empty { margin: 0; }
.bank-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.bank-results a { display: block; height: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); color: var(--navy); font-size: .9rem; font-weight: 750; text-underline-offset: .18em; }
.bank-results small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.bank { padding: clamp(16px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.bank-header { margin-bottom: 16px; }
.bank-header h3 { font: bold clamp(1.48rem, 3vw, 2rem)/1.15 var(--brand); }
.bank-header > p:last-child { margin: 7px 0 0; color: var(--muted); }
.bank-index { margin-bottom: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.bank-index p { margin: 0 0 6px; color: var(--navy); font-size: .82rem; font-weight: 800; }
.bank-index ul { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; padding: 0; list-style: none; }
.bank-index a { display: block; min-height: 0; margin: 0; padding: 5px 4px; border-radius: 4px; color: var(--navy-2); font-size: .82rem; text-decoration: underline; text-underline-offset: .2em; }
.bank-entry { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 14px; }
.bank-entry h4 { margin: 0 0 6px; color: var(--navy); font-size: 1.06rem; line-height: 1.3; }
.bank-entry p { margin: 0; color: var(--muted); }
.bank-entry a { text-underline-offset: .17em; }
.bank-entry dl, .bank-entry ul { margin: 0; color: var(--muted); }
.bank-entry ul { padding-left: 20px; }
.bank-entry ul + p { margin-top: 8px; }
.bank-entry dt { margin-top: 7px; color: var(--ink); font-weight: 750; }
.bank-entry dd { margin: 1px 0 0; }
.bank-example { margin: 4px 0; padding: 12px 13px; border: 0; border-left: 3px solid var(--gold-2); border-radius: 4px 8px 8px 4px; background: #fff9e6; }
.bank-sources { margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.bank-sources p:not(.eyebrow) { margin: 0 0 5px; }
.bank-sources a { font-weight: 750; text-underline-offset: .17em; }
@media (min-width: 1080px) {
  .bank-layout { display: grid; grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 2.4vw, 30px); }
  .bank-index { position: sticky; top: 16px; margin: 0; }
  .bank-index ul { display: grid; gap: 1px; }
}
@media (max-width: 760px) { .bank-entry { scroll-margin-top: 72px; } }
@media (max-width: 510px) { .bank-results { grid-template-columns: minmax(0, 1fr); } }

.bank-depth-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .87rem; font-weight: 750; text-underline-offset: .19em; }
.bank-depth-link svg { width: 15px; height: 15px; }
.bank-depth { margin-top: 27px; scroll-margin-top: 18px; }
.bank-depth-title { margin: 0; padding: 11px 13px; border: 1px solid #cddde9; border-radius: 7px; background: #edf4f9; color: var(--navy); font-size: 1.14rem; }
.bank-entry-detail { padding-block: 19px; }
.bank-entry-detail:first-of-type { border-top: 0; }
.bank-entry-detail h5 { margin: 0 0 9px; color: var(--navy); font-size: 1.06rem; line-height: 1.3; }
.bank-entry-detail p + p, .bank-entry-detail p + dl, .bank-entry-detail dl + p,
.bank-entry-detail p + ul, .bank-entry-detail ul + p, .bank-entry-detail p + ol,
.bank-entry-detail ol + p { margin-top: 9px; }
.bank-entry-detail ol { margin: 0; padding-left: 24px; color: var(--muted); }
.bank-entry-detail li + li { margin-top: 4px; }
.bank-entry-detail .entry-reference { margin: 12px 0 0; padding-top: 7px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .82rem; }
.bank-depth-index { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.bank-depth-index summary { cursor: pointer; color: var(--navy); font-size: .82rem; font-weight: 800; }
.bank-depth-index ul { margin-top: 6px; }
.bank-table { max-width: 100%; margin-bottom: 11px; overflow-x: auto; }
.bank-table table { min-width: 420px; }
.bank-table caption { font-size: .85rem; }
@media (min-width: 1080px) {
  .bank-index { max-height: calc(100dvh - 32px); overflow-y: auto; }
}
@media (max-width: 760px) {
  .bank-depth { scroll-margin-top: 72px; }
}
