/* Shared site shell. Top captions have no marker; nested triggers have one chevron. */
:root {--ttm-rail-height:56px;--site-surface-shadow:0 5px 18px #20385c0a;}
html {scroll-padding-top:calc(var(--ttm-rail-height) + 15px);}
body > header.ttm-mast {
  --menu-motion:150ms;position:sticky;inset:0 0 auto;z-index:1100;width:100%;max-width:none;
  padding:0;margin:0;border:0;border-radius:0;backdrop-filter:none;color:#fff;
  background:linear-gradient(105deg,#2563eb,#2055c5);box-shadow:0 1px 0 #1548b2,0 3px 12px #1a325f12;
  text-align:left;font:500 1rem/1.4 Arial,Helvetica,sans-serif;
}
.ttm-mast,.ttm-mast * {box-sizing:border-box;}
.ttm-mast .mast-bar {position:relative;display:flex;align-items:stretch;justify-content:space-between;gap:0;
  width:100%;height:var(--ttm-rail-height);min-height:0;max-width:none;margin:0;padding:0;border:0;background:none;box-shadow:none;}
.ttm-mast .mast-brand,.ttm-mast .mast-mobile,.ttm-mast .mast-group > summary {
  display:flex;align-items:center;justify-content:center;align-self:stretch;color:#fff;
  background:transparent;border:0;border-radius:0;margin:0;text-decoration:none;box-shadow:none;letter-spacing:normal;white-space:nowrap;
}
.ttm-mast .mast-brand {padding:0 clamp(12px,2.5vw,44px);font-size:clamp(1.1rem,1rem + .35vw,1.35rem);font-weight:750;letter-spacing:-.035em;}
.ttm-mast .mast-links {display:flex;align-items:stretch;gap:0;height:100%;margin:0;padding:0;}
.ttm-mast details {position:relative;display:block;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;}
.ttm-mast details > summary {list-style:none;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;}
.ttm-mast details > summary::-webkit-details-marker {display:none;}
.ttm-mast details > summary::marker {content:"";}
.ttm-mast details > summary::before,.ttm-mast details > summary::after {content:none!important;display:none!important;}
.ttm-mast .mast-group > summary {height:100%;min-height:44px;padding:0 clamp(15px,1.65vw,30px);font-size:.95rem;line-height:1.2;font-weight:650;}
.ttm-mast .mast-group[data-current-section] > summary {background:#1d54c9;box-shadow:inset 0 -2px #a9c9ff;}
.ttm-mast :is(.mast-brand,.mast-mobile):hover,.ttm-mast .mast-group > summary:hover,.ttm-mast .mast-group[open]:not([data-leaving]) > summary {background:#194dbd;color:#fff;}
.ttm-mast :is(.mast-brand,.mast-mobile,.mast-group > summary):focus-visible {outline:2px solid white;outline-offset:-5px;}
.ttm-mast .mast-panel {display:block;position:absolute;inset:100% auto auto 0;z-index:3;
  padding:6px;margin:0;width:max-content;min-width:12rem;max-width:calc(100vw - 16px);max-height:calc(100dvh - var(--ttm-rail-height) - 8px);
  background:#fff;color:#20344d;border:1px solid #c8d8eb;border-radius:0 0 12px 12px;box-shadow:0 12px 28px #15315424,0 2px 6px #15315412;
  text-align:left;overscroll-behavior:contain;scrollbar-width:thin;}
.ttm-mast details:not([open]) > .mast-panel {display:none;}
.ttm-mast .mast-group:is([data-menu="revision"],[data-menu="gcse"],[data-menu="a-level"],[data-menu="other"]) > .mast-panel {min-width:12rem;}
.ttm-mast .mast-group:last-child > .mast-panel {left:auto;right:0;}
.ttm-mast .mast-branch > .mast-panel {inset:0 100% auto auto;min-width:0;border-radius:10px;}
.ttm-mast[data-ready] .mast-panel {position:fixed;overflow:auto;}
.ttm-mast .mast-link,.ttm-mast .mast-branch > summary,.ttm-mast .mast-pending {
  display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:42px;margin:0;padding:9px 12px;
  border:0;border-radius:7px;background:transparent;color:#23364d;box-shadow:none;text-align:left;text-decoration:none;
  font:550 .925rem/1.4 Arial,Helvetica,sans-serif;letter-spacing:normal;white-space:normal;}
.ttm-mast .mast-link:is(:hover,:focus-visible),.ttm-mast .mast-branch > summary:is(:hover,:focus-visible),
.ttm-mast .mast-branch[open]:not([data-leaving]) > summary {background:#eaf2ff;color:#1e4fae;}
.ttm-mast .mast-panel :is(a,summary):focus-visible {outline:2px solid #2358c0;outline-offset:-2px;}
.ttm-mast .mast-link[aria-current="page"] {background:#edf4ff;color:#1e4fae;font-weight:700;}
.ttm-mast .mast-chevron {display:block;flex:none;width:8px;height:8px;margin:0 3px 0 0;border:solid currentColor;border-width:1.7px 1.7px 0 0;transform:rotate(45deg);transition:transform var(--menu-motion) ease;}
.ttm-mast .mast-branch[data-opens-left] > summary .mast-chevron {transform:rotate(-135deg);}
.ttm-mast .mast-pending {color:#55687c;cursor:default;}
.ttm-mast .mast-pending small {flex:none;border:1px solid #d8e2ef;border-radius:5px;padding:2px 6px;background:#f3f6fa;color:#4b5e74;font:600 .68rem/1.25 Arial,sans-serif;white-space:nowrap;}
.ttm-mast .mast-mobile {display:none;gap:8px;min-width:76px;padding:0 16px;font:650 .92rem/1 Arial,sans-serif;cursor:pointer;}
.ttm-mast .mast-bars {display:grid;gap:3px;margin:0;padding:0;border:0;background:none;}
.ttm-mast .mast-bars i {display:block;width:16px;height:2px;border-radius:2px;background:currentColor;}
.ttm-mast [hidden] {display:none!important;}
.ttm-mast[data-layout="mobile"] .mast-mobile {display:flex;}
.ttm-mast[data-layout="mobile"] .mast-links {position:absolute;inset:100% 0 auto auto;display:block;overflow:auto;overscroll-behavior:contain;
 width:min(23rem,100%);height:auto;max-height:calc(100dvh - var(--ttm-rail-height));color:white;background:#2057c8;border:1px solid #1b49aa;border-top:0;border-radius:0 0 0 13px;box-shadow:0 12px 20px #15315423;}
.ttm-mast[data-layout="mobile"] .mast-group + .mast-group {border-top:1px solid #ffffff2b;}
.ttm-mast[data-layout="mobile"] .mast-group > summary {width:100%;min-height:46px;justify-content:flex-start;padding:12px 18px;}
.ttm-mast[data-layout="mobile"] .mast-group[data-current-section] > summary {box-shadow:inset 3px 0 #bbd5ff;}
.ttm-mast[data-layout="mobile"] .mast-panel {position:static;width:100%;min-width:0;max-width:100%;max-height:none;padding:6px 10px;overflow:visible;
  background:#f4f8ff;border:0;border-radius:0;box-shadow:none;}
.ttm-mast[data-layout="mobile"] .mast-branch > .mast-panel {margin:0 0 6px;padding:4px 8px;border-left:2px solid #b2cdf3;background:white;border-radius:4px;}
.ttm-mast[data-layout="mobile"] .mast-branch > summary .mast-chevron {transform:rotate(135deg);}
.ttm-mast[data-layout="mobile"] .mast-branch[open]:not([data-leaving]) > summary .mast-chevron {transform:rotate(-45deg);}
@media(max-width:52em) {
  :root {--ttm-rail-height:52px;}
  /* Without scripting, all five native menus are usable in normal flow. */
  .ttm-mast:not([data-ready]) {position:relative;}
  .ttm-mast:not([data-ready]) .mast-bar,.ttm-mast:not([data-ready]) .mast-links {height:auto;flex-wrap:wrap;}
  .ttm-mast:not([data-ready]) .mast-brand {min-height:44px;}
  .ttm-mast:not([data-ready]) .mast-links {width:100%;}
  .ttm-mast:not([data-ready]) .mast-panel {position:static;max-height:none;min-width:0;}
}
@media(prefers-reduced-motion:reduce) {.ttm-mast {--menu-motion:0ms!important;}.ttm-mast * {transition:none!important;}}
@media(forced-colors:active) {
 .ttm-mast .mast-bar,.ttm-mast .mast-panel {border:1px solid CanvasText;}
 .ttm-mast :is(a,summary,button):focus-visible {outline:2px solid Highlight;}
 .ttm-mast .mast-group[data-current-section] > summary {text-decoration:underline;}
}
@media print {body > header.ttm-mast {display:none!important;}}
/* The same reading scale, subtle rim and quiet secondary controls as SkillMap. */
main :is(.practice-directory.hero-card,.revision-course,.focus-intro,.practice-mock-guide) {
  box-shadow:var(--site-surface-shadow);
}
main :is(.practice-intro,.revision-intro) h1,
main > .hero h1 { font-size:clamp(1.85rem,1.4rem + 1.4vw,2.625rem); line-height:1.18; letter-spacing:-.025em; text-wrap:balance; }
main :is(.practice-intro,.revision-intro) > p { max-width:85ch; line-height:1.6; }
main :is(.course-back,.course-back a) { font-size:.875rem; }
main :is(.topic-directory-toolbar,.course-actions,.hero-buttons,.quick-links) { gap:15px; }
main :is(.topic-search-box,.search-box) {
  border:1px solid var(--course-line,#c7d5e6); border-radius:10px;
  background:linear-gradient(145deg,#fff,#f8faff); box-shadow:inset 0 1px 0 #fff,0 2px 5px #1c34520d;
}
main :is(.topic-search-box,.search-box):focus-within { border-color:var(--course-accent,#2563eb); outline:2px solid var(--course-line,#bfdbfe); outline-offset:2px; }
main :is(.topic-search-box,.search-box) input { min-height:44px; font-size:1rem; }
main :is(.topic-directory-tools,.search-field) > label { font-size:.9rem; font-weight:700; }
main .topic-directory-toolbar { align-items:end; }
main .course-actions { align-items:center; }
main :is(.course-topic-button,.course-revision-button,.resource-pending,.quiz-pending) {
  box-sizing:border-box; min-height:44px; display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:8px; font-size:.9rem; line-height:1.4; font-weight:600;
}
main .course-topic-button:not(:disabled) {
  background:linear-gradient(152deg,var(--course-accent,#2563eb),var(--course-strong,#1d4ed8));
  box-shadow:inset 0 1px 0 #ffffff66,inset 0 -2px 1px #12346926,0 3px 8px #1e4ba61a;
}
main .course-revision-button {
  background:linear-gradient(145deg,#fff,var(--course-pale,#eff6ff));
  box-shadow:inset 0 1px 0 #fff,0 2px 4px #2039540d;
}
main :is(.course-topic-button,.course-revision-button):hover { transform:none; filter:brightness(1.025); box-shadow:0 0 0 2px var(--course-line,#bfdbfe),0 3px 10px #1c345217; }
main :is(.course-topic-button,.course-revision-button):focus-visible { outline:2px solid var(--course-strong,#1d4ed8); outline-offset:3px; }
main :is(.resource-pending,.quiz-pending) { box-shadow:none; }
.topic-directory-layout .topic-grid { gap:15px; }
.topic-directory-layout .topic-card { border-radius:16px; box-shadow:var(--site-surface-shadow); padding:24px; }
.topic-directory-layout .topic-card h3 { font-size:1.12rem; line-height:1.35; margin-bottom:10px; }
.topic-directory-layout .topic-card p { font-size:.95rem; line-height:1.6; }
.topic-directory-layout .strand-title { font-weight:700; line-height:1.2; }
.topic-directory-layout .strand-description { line-height:1.5; margin-top:8px; }
.focus-courses .subject-card { border-radius:16px; box-shadow:var(--site-surface-shadow); }
.focus-courses .subject-card h2 { font-size:1.25rem; }
.focus-resources .card,main:is(.gcse-pathways,.resource-pathways) #pathways .card { border-radius:18px; box-shadow:var(--site-surface-shadow); }
.focus-resources .small-links { gap:8px; }
.focus-resources .small-links a { display:flex; align-items:center; min-height:44px; padding:8px 10px; border-radius:8px; background:var(--course-pale,#eff6ff); color:var(--course-strong,#1d4ed8); text-decoration:none; }
.focus-resources .small-links a:hover { box-shadow:inset 0 0 0 1px var(--course-line,#bfdbfe); }
body footer.site-footer { background:transparent; padding:0 0 20px; margin-top:30px; }
body footer.site-footer .footer-inner {
  box-sizing:border-box; padding:20px 24px; border:1px solid #cfdeef; border-radius:18px;
  background:linear-gradient(116deg,#fff,#eef6ff); box-shadow:var(--site-surface-shadow);
}
body footer.site-footer .footer-inner > p { color:#4a5f78; }
body footer.site-footer .site-footer-links a { color:#2758b7; }
@media(max-width:650px) {
 .topic-directory-layout .topic-card { padding:20px; }
 body footer.site-footer .footer-inner { padding:18px; }
 main :is(.practice-intro,.revision-intro) h1 { overflow-wrap:anywhere; }
}
/* Use the home page's frame and reading scale around existing tools.
   Maths, print layouts, revision pop-outs and graph coordinates keep their own sizing. */
@media screen {
 body[data-page-family] {--frame-pad:clamp(20px,2.6vw,42px);--frame-ink:#0f172a;--page-rim:var(--course-line,#bfdbfe);
  --page-tint:var(--course-pale,#eff6ff);--page-wash:var(--course-wash,#dbeafe);--page-accent:var(--course-accent,#2563eb);
  --page-gradient:linear-gradient(115deg,#fff 12%,var(--page-tint) 76%,var(--page-wash));
  --page-radius:22px;--flow-gap:15px;background-color:#f5f7fb;}
 body[data-page-family="home"] .focus-intro {border:1px solid #bfdbfe;}
 body[data-page-family] main > .hero {background:none;border:0;box-shadow:none;}
 body[data-page-family]:is([data-page-family="pathways"],[data-page-family="revision-hub"],[data-page-family="information"]) main > .hero {
  padding:clamp(15px,2vw,30px) 0 0;}
 body[data-page-family] main > .hero > .container:not(:has(> .hero-card)),
 body[data-page-family] main > .hero > .container > .hero-card,
 body[data-page-family] main :is(.practice-directory.hero-card,.player-intro,.sim-hero,.practice-course-frame,.contact-page.hero-card),
 body[data-page-family="papers"] main .container > .practice-intro,
 body[data-page-family="practice"] main > .container > .sim-hero,
 body[data-page-family="revision-directory"] main .revision-course,
 body[data-page-family="information"] main .about-section,
 body[data-page-family="questions"] main.page > section.hero,
 body[data-page-family] .quiz-pending-page .quiz-pending-card,
 body[data-page-family="revision-entry"] main.card-entry-panel,
 body[data-page-family="status"] > main {
  box-sizing:border-box;border:1px solid var(--page-rim);border-radius:var(--page-radius);background:var(--page-gradient);box-shadow:var(--site-surface-shadow);}
 body[data-page-family] main > .hero > .container:not(:has(> .hero-card)),
 body[data-page-family] main > .hero > .container > .hero-card,
 body[data-page-family="papers"] main .container > .practice-intro,body[data-page-family] .quiz-pending-card,
 body[data-page-family="questions"] main.page > section.hero {padding:var(--frame-pad);}
 body[data-page-family] main > .hero > .container:not(:has(> .hero-card)) {text-align:left;}
 body[data-page-family] main > .hero > .container:not(:has(> .hero-card)) > :is(h1,p) {margin-inline:0;}
 body[data-page-family] main > .hero > .container:not(:has(> .hero-card)) > p {max-width:75ch;margin-top:.65rem;line-height:1.6;}
 body[data-page-family] main > .hero > .container:not(:has(> .hero-card)) > .hero-buttons {
   justify-content:flex-start;gap:15px;margin-top:15px;}
 /* Course overviews place actions alongside the overview when there is room. */
 @media(min-width:60em) {
  body[data-page-family="pathways"] main > .hero > .container:has(> .hero-buttons) {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.46fr);align-items:center;column-gap:clamp(25px,5vw,75px);}
  body[data-page-family="pathways"] main > .hero > .container > :is(h1,p) {grid-column:1;}
  body[data-page-family="pathways"] main > .hero > .container > .hero-buttons {
    grid-column:2;grid-row:1 / span 2;justify-content:flex-end;align-content:center;flex-wrap:wrap;margin:0;}
 }
 body[data-page-family] :is(.focus-home,.course-hub-main,.resource-pathways,.gcse-pathways,.topic-directory-layout,.practice-main,.sim-main)
  :is(.grid,.quick-links,.hero-buttons,.course-actions,.course-choices,.strand-list,.practice-course-grid) {gap:15px;}
 body[data-page-family] main #pathways .card,body[data-page-family="revision-hub"] .course-choice,
 body[data-page-family="practice"] .test-card,body[data-page-family="papers"] main :is(.practice-course,.practice-product) {
   border:1px solid var(--course-line,#c9d9ee);border-inline-start:4px solid var(--course-accent,#2563eb);
   border-radius:16px;background:linear-gradient(115deg,#fff 38%,var(--course-pale,#eff6ff));box-shadow:var(--site-surface-shadow);}
 body[data-page-family="papers"] main .practice-unavailable {border-inline-start-color:var(--course-ring,#93b8ed);}
 body[data-page-family] main :is(.practice-intro,.revision-intro,.hero,.player-intro,.sim-hero,.contact-page,.about-section) h1 {
   color:var(--frame-ink);letter-spacing:-.035em;line-height:1.15;text-wrap:balance;}
 body[data-page-family] main .course-topic-button:not(:disabled) {background:var(--course-button,#2563eb);color:var(--course-button-ink,#fff);}
 body[data-page-family] main .course-topic-button:not(:disabled):hover {background:var(--course-button-hover,#1d4ed8);}
 body[data-page-family] main .course-revision-button {border:1px solid var(--course-line,#bfdbfe);background:var(--course-wash,#dbeafe);color:var(--course-strong,#1d4ed8);}
 body[data-page-family] main .course-revision-button:hover {background:var(--course-pale,#eff6ff);}
 body[data-page-family] main :is(.course-actions,.quick-links,.hero-buttons)>:is(a,button):focus-visible,
 body[data-page-family] main :is(.course-choice,.test-card,.practice-product) a:focus-visible {
  outline:2px solid var(--course-strong,#1d4ed8);outline-offset:3px;}
 body[data-page-family] main .course-topic-button[data-course="ib"],body[data-course="ib"] main .course-topic-button {--course-button:#ba460c;--course-button-hover:#983809;--course-button-ink:white;}
 body[data-page-family] main .course-topic-button[data-course="ap"],body[data-course="ap"] main .course-topic-button {--course-button-ink:#422800;}
 body[data-page-family="topics"] .topic-directory-layout .topic-card,
 body[data-page-family="topics"] .topic-directory-appearance .topic-card {
  border:1px solid var(--directory-line,var(--page-rim));border-radius:16px;background:#fff;box-shadow:var(--site-surface-shadow);}
 body[data-page-family="topics"] .topic-directory-layout .topic-card:focus-within,
 body[data-page-family="topics"] .topic-directory-appearance .topic-card:focus-within {border-color:var(--page-accent);}
 body[data-page-family="topic-outline"] main :is(.ib-section-intro,.ib-gdc-focus),
 body[data-page-family="questions"] main :is(.solution-shell,.question-shell),
 body[data-page-family="practice"] main .sim-panel {border-color:var(--page-rim);border-radius:18px;box-shadow:var(--site-surface-shadow);}
 body[data-page-family="revision-hub"] .revision-hub-search,body[data-page-family="revision-directory"] .directory-shell {
  border-color:var(--page-rim);border-radius:18px;}
 body[data-page-family="revision-sheet"] main .revision-card-wrap {padding-block:clamp(15px,1.6vw,26px);}
 body[data-page-family="revision-sheet"] main .revision-paper {border-color:var(--page-rim);box-shadow:0 6px 20px #20385c0d;}
 body[data-page-family="information"] main :is(.about-box,.contact-form) {border-color:var(--page-rim);}
 body[data-page-family="status"] {display:block;padding:0;}
 body[data-page-family="status"] > main {width:min(680px,calc(100% - 30px));margin:clamp(30px,8vh,95px) auto;text-align:left;padding:var(--frame-pad);}
 body[data-page-family="archive"] .courses-grid-section {width:var(--site-page-width);margin-inline:auto;}
 @media(max-width:650px) {
  body[data-page-family] {--page-radius:17px;--frame-pad:20px;}
  body[data-page-family] main .topic-directory-toolbar .course-actions {width:100%;display:grid;grid-template-columns:1fr;}
  body[data-page-family] main .topic-directory-toolbar .course-actions > * {width:100%;}
  body[data-page-family] main :is(.hero-buttons,.course-actions,.quick-links) > * {max-width:100%;}
 }
}
@media(prefers-reduced-motion:reduce) {main :is(.course-topic-button,.course-revision-button) {animation:none!important;transition:none!important;}}
/* On the course landings the home link reads as a breadcrumb; the right-hand
   actions lead further into that course. The original links retain DOM order. */
@media screen {
 body[data-page-family="pathways"] main > .hero > .container:has(> .hero-buttons > a[href="index.html"]) {
  display:grid;grid-template-columns:minmax(0,1fr);align-items:start;row-gap:12px;}
 body[data-page-family="pathways"] main > .hero > .container > .hero-buttons {display:contents;}
 body[data-page-family="pathways"] main > .hero > .container > h1 {grid-column:1;grid-row:2;margin:0;}
 body[data-page-family="pathways"] main > .hero > .container > p {grid-column:1;grid-row:3;margin:0;}
 body[data-page-family="pathways"] main > .hero .hero-buttons > a[href="index.html"] {
  grid-column:1;grid-row:1;justify-self:start;min-height:0;min-width:0;width:fit-content;
  padding:3px 0;margin:0;border:0;background:none;color:var(--course-strong,#1d4ed8);
  box-shadow:none;font-size:.9rem;line-height:1.45;font-weight:650;transform:none;}
 body[data-page-family="pathways"] main > .hero .hero-buttons > a[href="index.html"]::before {content:"←";margin-right:.4em;}
 body[data-page-family="pathways"] main > .hero .hero-buttons > a[href="index.html"]:hover {text-decoration:underline;text-underline-offset:.2em;}
 body[data-page-family="pathways"] main > .hero .hero-buttons > :not([href="index.html"]) {justify-self:start;width:fit-content;margin:0;}
}
@media screen and (min-width:60em) {
 body[data-page-family="pathways"] main > .hero > .container:has(> .hero-buttons > a[href="index.html"]) {
  grid-template-columns:minmax(0,1fr) minmax(12rem,.38fr);column-gap:clamp(25px,5vw,75px);}
 body[data-page-family="pathways"] main > .hero .hero-buttons > a:not([href="index.html"]) {grid-column:2;grid-row:2;align-self:center;}
 body[data-page-family="pathways"] main > .hero .hero-buttons > .quiz-pending {grid-column:2;grid-row:3;}
}
/* V179: the same header edge, popup controls and navy footer across course pages. */
@media screen {
 body > header.ttm-mast {box-sizing:border-box;border-bottom:1px solid #1b4db2;box-shadow:0 3px 12px #1a325f12;}
 .ttm-mast .mast-bar {height:calc(var(--ttm-rail-height) - 1px);}
 .ttm-mast .mast-item {display:flex;align-items:stretch;position:relative;min-width:0;margin:0;padding:0;}
 .ttm-mast .mast-item > .mast-group {position:static;}
 .ttm-mast .mast-overview {align-self:stretch;display:flex;align-items:center;justify-content:center;
  padding:0 clamp(15px,1.65vw,30px);min-height:44px;margin:0;border:0;border-radius:0;box-shadow:none;
  color:white;background:transparent;text-decoration:none;white-space:nowrap;font:650 .95rem/1.2 Arial,Helvetica,sans-serif;}
 .ttm-mast .mast-item[data-current-section] > .mast-overview {background:#1d54c9;box-shadow:inset 0 -2px #a9c9ff;}
 .ttm-mast .mast-item > .mast-overview:is(:hover,:focus-visible),.ttm-mast .mast-item[data-panel-open] > .mast-overview {color:#fff;background:#194dbd;text-decoration:none;}
 .ttm-mast .mast-overview:focus-visible,.ttm-mast .mast-group > summary.mast-options:focus-visible {outline:2px solid #fff;outline-offset:-4px;}
 .ttm-mast .mast-item > .mast-group > summary.mast-options {font-size:.84rem;padding:0 8px;min-width:44px;justify-content:center;}
 .ttm-mast .mast-options span {display:inline-flex;align-items:center;justify-content:center;padding:3px 7px;border:1px solid #ffffff75;border-radius:6px;font:inherit;}
 /* Keyboard users can open from an overview with Down/Up or tab to Links.
    On a touchscreen both destinations have separate, full-size tap targets. */
}
@media screen and (hover:hover) and (pointer:fine) and (not (any-pointer:coarse)) {
 .ttm-mast[data-layout="desktop"] .mast-item > .mast-group > summary.mast-options:not(:focus-visible) {
  position:absolute;clip-path:inset(50%);overflow:hidden;width:1px;min-width:0;height:1px;min-height:0;padding:0;margin:0;white-space:nowrap;}
 .ttm-mast[data-layout="desktop"] .mast-item > .mast-group > summary.mast-options:focus-visible {
  position:absolute;z-index:2;inset:0;width:100%;height:100%;margin:0;color:white;background:#194dbd;}
}
@media screen {
 .ttm-mast:not([data-ready]) .mast-item > .mast-group > .mast-panel {inset-block-start:calc(100% + 1px);}
 .ttm-mast[data-layout="mobile"] .mast-links {top:calc(100% + 1px);}
 .ttm-mast[data-layout="mobile"] .mast-item {display:block;position:relative;}
 .ttm-mast[data-layout="mobile"] .mast-links > * + * {border-top:1px solid #ffffff2b;}
 .ttm-mast[data-layout="mobile"] .mast-item > .mast-overview {position:absolute;z-index:1;inset:0 5rem auto 0;min-height:46px;justify-content:flex-start;padding:8px 18px;}
 .ttm-mast[data-layout="mobile"] .mast-item[data-current-section] > .mast-overview {box-shadow:inset 3px 0 #bbd5ff;}
 .ttm-mast[data-layout="mobile"] .mast-item > .mast-group > summary.mast-options {width:5rem;height:46px;min-height:46px;padding:0 10px;margin:0 0 0 auto;box-shadow:none;}
 .ttm-mast[data-layout="mobile"] .mast-item > .mast-group {width:100%;}
 .ttm-mast[data-layout="mobile"] .mast-item > .mast-group > .mast-panel {position:static;}
 /* Use the original navy for the whole band, including the area behind the links. */
 body[data-page-family] > footer.site-footer {position:static;box-sizing:border-box;width:100%;max-width:none;
  padding:0 0 env(safe-area-inset-bottom,0px);margin:30px 0 0;border:0;border-radius:0;
  color:#e5e7eb;background:#0f172a;box-shadow:none;}
 body[data-page-family] > footer.site-footer .footer-inner {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  box-sizing:border-box;width:var(--site-page-width,95%);max-width:none;gap:4px 20px;margin:0 auto;padding:14px 0;
  border:0;border-radius:0;background:transparent;box-shadow:none;}
 body[data-page-family] > footer.site-footer .footer-inner > p {margin:0;color:#cbd5e1;font:400 .95rem/1.5 Arial,Helvetica,sans-serif;}
 body[data-page-family] > footer.site-footer .site-footer-links {display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:0;padding:0;background:transparent;}
 body[data-page-family] > footer.site-footer .site-footer-links a {display:inline-flex;align-items:center;min-height:44px;padding:0 2px;color:#e2e8f0;background:none;text-decoration:underline;text-underline-offset:.2em;}
 body[data-page-family] > footer.site-footer .site-footer-links a:is(:hover,:focus-visible) {color:white;}
 body[data-page-family] > footer.site-footer .site-footer-links a:focus-visible {outline:2px solid #93c5fd;outline-offset:2px;border-radius:3px;}
 /* These panels live outside <main>; the advert can be carried onto another course. */
 #revision-welcome.revision-welcome {--pop-ink:var(--course-strong,#1d4ed8);--pop-soft:var(--course-pale,#eff6ff);
  --pop-wash:var(--course-wash,#dbeafe);--pop-line:var(--course-line,#bfdbfe);
  width:min(690px,calc(100% - 30px));max-height:calc(100dvh - 30px);padding:35px 28px 26px;overscroll-behavior:contain;
  border:1px solid var(--pop-line);border-radius:18px;background:linear-gradient(115deg,#fff 44%,var(--pop-soft));color:#0f172a;
  box-shadow:0 20px 66px #1023413d;}
 #revision-welcome.revision-welcome[open] {gap:20px;animation-duration:150ms;}
 #revision-welcome .revision-welcome-copy {padding-right:8px;}
 #revision-welcome .revision-welcome-action {gap:12px;align-items:flex-start;}
 #revision-welcome .revision-welcome-action p {text-align:left;}
 #gcse-practice-promo.practice-promo {--pop-ink:#1d4ed8;--pop-soft:#eff6ff;--pop-wash:#dbeafe;--pop-line:#bfdbfe;
  gap:15px;padding:20px;border:1px solid var(--pop-line);border-radius:18px;background:linear-gradient(115deg,#fff 34%,var(--pop-soft));color:#0f172a;
  box-shadow:0 10px 32px #10234126;animation-duration:150ms;}
 #gcse-practice-promo .practice-promo-copy h2 {padding-right:32px;}
 #revision-welcome .revision-welcome-link,#gcse-practice-promo .practice-promo-link {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;
  margin:0;padding:10px 16px;border:1px solid var(--pop-line);border-radius:8px;text-align:center;text-decoration:none;
  font:650 .96rem/1.35 Arial,Helvetica,sans-serif;white-space:normal;cursor:pointer;
  transition:background-color 150ms ease,box-shadow 150ms ease,border-color 150ms ease;}
 #revision-welcome .revision-welcome-link {background:var(--pop-wash);color:var(--pop-ink);box-shadow:inset 0 1px #fff,0 2px 4px #2039540d;}
 #revision-welcome .revision-welcome-link:hover {background:var(--pop-soft);box-shadow:0 0 0 2px var(--pop-line);}
 #gcse-practice-promo .practice-promo-link {width:100%;background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:inset 0 1px #ffffff55,0 3px 8px #1e4ba61a;}
 #gcse-practice-promo .practice-promo-link:hover {background:#1d4ed8;border-color:#1d4ed8;box-shadow:0 0 0 2px #bfdbfe;}
 #revision-welcome .revision-welcome-close,#gcse-practice-promo .practice-promo-close {
  box-sizing:border-box;display:grid;place-items:center;position:absolute;right:6px;top:6px;
  width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--pop-ink);cursor:pointer;isolation:isolate;}
 #revision-welcome .revision-welcome-close::before,#gcse-practice-promo .practice-promo-close::before {
  content:"";position:absolute;z-index:-1;inset:5px;border:1px solid var(--pop-line);border-radius:50%;background:var(--pop-soft);transition:background-color 150ms ease;}
 #revision-welcome .revision-welcome-close:hover::before,#gcse-practice-promo .practice-promo-close:hover::before {background:var(--pop-wash);}
 #revision-welcome .revision-welcome-close svg,#gcse-practice-promo .practice-promo-close svg {display:block;width:17px;height:17px;margin:0;}
 #revision-welcome :is(a,button):focus-visible,#gcse-practice-promo :is(a,button):focus-visible {outline:2px solid var(--pop-ink);outline-offset:2px;}
 #revision-welcome .revision-welcome-link:active,#gcse-practice-promo .practice-promo-link:active {box-shadow:inset 0 1px 3px #17233933;}
 html[data-ttm-edge-ready] {overscroll-behavior-y:none;}
}
@media screen and (max-width:40em) {
 #revision-welcome.revision-welcome {padding:34px 18px 20px;}
 #revision-welcome.revision-welcome[open] {gap:12px;}
 #revision-welcome .revision-welcome-preview {width:min(160px,42vw);}
 #revision-welcome .revision-welcome-copy {padding:0;}
 #revision-welcome .revision-welcome-action {align-items:center;}
 #revision-welcome .revision-welcome-action p {text-align:center;}
 #gcse-practice-promo.practice-promo {grid-template-columns:minmax(96px,33%) minmax(0,1fr);padding:15px;gap:12px;}
 #gcse-practice-promo .practice-promo-link {padding:8px 5px;font-size:.89rem;}
}
@media (prefers-reduced-motion:reduce) {
 #revision-welcome.revision-welcome[open],#gcse-practice-promo.practice-promo {animation:none!important;}
 #revision-welcome :is(a,button),#gcse-practice-promo :is(a,button),#revision-welcome button::before,#gcse-practice-promo button::before {transition:none!important;}
}
@media (forced-colors:active) {
 .ttm-mast .mast-overview:focus-visible,#revision-welcome :focus-visible,#gcse-practice-promo :focus-visible {outline-color:Highlight;}
 #revision-welcome .revision-welcome-close::before,#gcse-practice-promo .practice-promo-close::before {border-color:ButtonText;}
 body[data-page-family] > footer.site-footer {border-top:1px solid CanvasText;}
}
