/* Schaffa Foundation Academy: public website.
   Concept: "first light". Every page opens in the deep blue of a Sydney night, lit from below by the
   Foundation's gold, the first light it promises people. Electric sky blue marks the technology.
   Unbounded (wide, future-facing) for display, Public Sans for reading, JetBrains Mono for code and data.
   Boldness lives in two places: the self-typing Python console in the hero, and the live measurements strip.
   Content sections are light, calm and left-aligned so parents can read them easily. */
:root {
  color-scheme: light;
  --night: #031527;
  --night-2: #072742;
  --night-3: #0c3557;
  --blue: #004878;
  --sky: #5cc8ff;
  --sky-ink: #0a6fa8;
  --gold: #E3A857;
  --gold-ink: #8a5a14;
  --paper: #ffffff;
  --mist: #eef4f9;
  --ink: #0d1b2a;
  --muted: #4d5d70;
  --line: #d8e2ec;
  --line-dark: #1b4366;
  --on-dark: #dbe8f3;
  --on-dark-muted: #9fb8cd;
  --ok: #1f8a5b;
  --bad: #b3263e;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --sans: "Public Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 66ch;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .course-hero :focus-visible, .live :focus-visible, .band :focus-visible, .site-footer :focus-visible, .foundation-bar :focus-visible, .site-header :focus-visible, .model-section :focus-visible, .engine :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--night); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 1.2rem; max-width: 40ch; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.prose { max-width: var(--measure); display: grid; gap: 1rem; align-content: start; }
.prose h2 { margin-top: 1.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.mist { background: var(--mist); }
.section-head { display: grid; gap: .9rem; max-width: 62ch; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.after-steps { margin-top: 2.2rem; font-weight: 600; }
p.source.after-steps { font-weight: 400; }
.source { font-size: .82rem; color: var(--muted); }

/* Night surfaces share a fine star grid and a gold horizon */
.hero, .course-hero, .live, .model-section, .engine, .band { background-color: var(--night); color: var(--on-dark); }
.hero, .course-hero { position: relative; overflow: hidden; isolation: isolate;
  background-image: radial-gradient(circle at 1px 1px, rgba(92, 200, 255, .16) 1px, transparent 1.6px); background-size: 28px 28px; }
.hero::after, .course-hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 80%; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 118%, rgba(227, 168, 87, .55), rgba(227, 168, 87, .16) 45%, transparent 72%); }
.hero h1, .hero h2, .hero h3, .course-hero h1, .course-hero h2, .live h2, .model-section h2, .model-section h3, .engine h2, .engine h3, .band h2 { color: #fff; }
.hero a:not(.btn), .course-hero a:not(.btn), .engine a:not(.btn), .band a:not(.btn), .model-section a:not(.btn) { color: var(--sky); }
.course-hero .lede, .hero .lede { color: var(--on-dark); }

/* Foundation strip */
.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }
.foundation-bar { background: #020d19; color: var(--on-dark-muted); font-size: .82rem; }
.foundation-bar .wrap { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding-block: 7px; }
.foundation-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.foundation-bar a:hover { text-decoration: underline; }
.foundation-bar .links { display: flex; gap: 18px; }

/* Header: night, so every page opens in one continuous dark band */
.site-header { background: var(--night); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 14px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.wordmark img { flex: none; width: 46px; height: 46px; }
.wordmark span { display: grid; line-height: 1.05; }
.wordmark b { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--on-dark-muted); letter-spacing: .01em; }
.wordmark b.academy { font-family: var(--display); font-weight: 700; font-size: 1.32rem; color: #fff; letter-spacing: -.01em; }
.site-header { position: relative; z-index: 30; }
.site-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav-list { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--on-dark); font: 600 .95rem/1.6 var(--sans); padding: 6px 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; cursor: pointer; }
.nav-link:hover { color: #fff; border-bottom-color: var(--line-dark); }
.nav-link[aria-current="page"], .mega-trigger.current { color: #fff; border-bottom-color: var(--gold); }
.mega-trigger[aria-expanded="true"] { color: #fff; border-bottom-color: var(--sky); }
.mega-trigger, .js-only { display: none; }
.js .mega-trigger { display: inline-flex; }
.js .nav-fallback { display: none; }
.js .js-only { display: flex; }
.chev { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
[aria-expanded="true"] > .chev, details[open] > summary > .chev { transform: rotate(180deg); }
.site-nav .signin { color: var(--night); background: var(--sky); padding: 8px 14px; border-radius: 999px; border: 0; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav .signin:hover { color: var(--night); background: #8fdaff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--sans); padding: 16px 24px; border-radius: 10px; text-decoration: none; border: 2px solid var(--night); color: var(--night); background: transparent; cursor: pointer; }
.btn:hover { background: var(--mist); color: var(--night); }
.btn.primary { background: var(--night); color: #fff; }
.btn.primary:hover { background: var(--night-3); border-color: var(--night-3); color: #fff; }
.btn.gold, .hero .btn.primary, .course-hero .btn.primary, .thanks-dark .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn.gold:hover, .hero .btn.primary:hover, .course-hero .btn.primary:hover { background: #ecbb75; border-color: #ecbb75; color: var(--night); }
.hero .btn:not(.primary), .course-hero .btn:not(.primary), .band .btn:not(.gold) { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn:not(.primary):hover, .course-hero .btn:not(.primary):hover { background: rgba(255, 255, 255, .08); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.hero .small { color: var(--on-dark-muted); }

/* The console: real Python, typing itself on first view */
.tryit { background: rgba(3, 18, 34, .88); border: 1px solid var(--line-dark); border-radius: 18px; color: var(--on-dark); display: grid; box-shadow: 0 0 0 1px rgba(92, 200, 255, .08), 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(92, 200, 255, .35); overflow: hidden; }
.tryit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); background: rgba(12, 53, 87, .45); }
.tryit-head b { font-family: var(--mono); font-weight: 500; font-size: .9rem; color: #fff; }
.tryit-head span { font: 500 .78rem/1 var(--mono); color: var(--sky); display: inline-flex; align-items: center; gap: 8px; }
.tryit-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.tryit-body { display: grid; gap: 14px; padding: 18px; }
.tryit label { font-size: .86rem; color: var(--on-dark-muted); }
.tryit textarea { width: 100%; min-height: 128px; resize: vertical; background: #010a14; color: #fff; border: 1px solid var(--line-dark); border-radius: 10px; padding: 14px 16px; font: 1rem/1.65 var(--mono); font-variant-ligatures: none; tab-size: 4; caret-color: var(--gold); }
.tryit .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tryit .run { background: var(--gold); color: var(--night); border: 0; border-radius: 8px; font: 700 1rem/1 var(--sans); padding: 13px 24px; cursor: pointer; }
.tryit .run:disabled { opacity: .6; cursor: progress; }
.tryit .out { background: #010a14; border-radius: 10px; padding: 14px 16px; font: .95rem/1.6 var(--mono); min-height: 4.2em; white-space: pre-wrap; word-break: break-word; color: #b8f0c9; border: 1px solid #0f2c47; }
.tryit .out.idle { color: #6f8aa3; }
.tryit .out .err { color: #ff9aa8; }
.tryit .note { font-size: .84rem; color: var(--on-dark-muted); }
.ideas { display: flex; gap: 8px; flex-wrap: wrap; }
.ideas button { background: transparent; border: 1px solid var(--line-dark); color: var(--on-dark); border-radius: 999px; padding: 7px 12px; font: .8rem/1.2 var(--mono); cursor: pointer; }
.ideas button:hover { border-color: var(--sky); color: #fff; }

/* Live measurements: real numbers from the visitor's own browser */
.live { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: #020f1d; }
.live .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 0; }
.metric { display: grid; gap: 4px; padding: 26px 22px 26px 0; border-right: 1px solid var(--line-dark); align-content: start; }
.metric + .metric { padding-left: 22px; }
.metric b { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.05 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.metric b.on { color: var(--sky); }
.metric span { font-size: .84rem; color: var(--on-dark-muted); line-height: 1.35; }
.live-note { padding: 26px 0 26px 22px; font-size: .84rem; color: var(--on-dark-muted); display: grid; gap: .4rem; align-content: center; }
.live-note b { color: #fff; font-weight: 600; }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.door { padding: 26px 24px; display: grid; gap: .75rem; align-content: start; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.door::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--gold); }
.door:nth-child(2)::before { background: var(--sky-ink); }
.door:nth-child(3)::before { background: var(--blue); }
.door:nth-child(4)::before { background: var(--night); }
.door p { color: var(--muted); }
.door a { font-weight: 700; }
.section.doors-section { padding-top: clamp(48px, 6vw, 72px); }

/* The social enterprise ring */
.model-section { position: relative; overflow: hidden; }
.model-section .section-head p { color: var(--on-dark-muted); }
.model { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ring { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .track { fill: none; stroke: var(--line-dark); stroke-width: 2; }
.ring .arc { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 10; }
.ring .node { fill: var(--night-2); stroke: var(--sky); stroke-width: 2; }
.ring .node.gold { stroke: var(--gold); }
.ring .num { font: 700 22px var(--display); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.ring .lbl { font: 600 15px var(--sans); fill: var(--on-dark); text-anchor: middle; }
.ring .centre-big { font: 700 30px var(--display); fill: #fff; text-anchor: middle; }
.ring .centre-small { font: 500 15px var(--sans); fill: var(--on-dark-muted); text-anchor: middle; }
.ring .orbit { transform-origin: 230px 230px; animation: orbit 9s linear infinite; }
.ring .spark { fill: var(--gold); }
.ring .spark-glow { fill: var(--gold); opacity: .25; }
@keyframes orbit { to { transform: rotate(360deg); } }
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: loop; }
.loop li { counter-increment: loop; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: .35rem; }
.loop li::before { content: counter(loop); grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--sky); color: #fff; font: 700 1rem/1 var(--display); }
.loop li:nth-child(2)::before, .loop li:nth-child(3)::before { border-color: var(--gold); }
.loop h3 { color: #fff; align-self: center; }
.loop p { color: var(--on-dark-muted); }
.loop-note { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); color: var(--on-dark); max-width: 70ch; }

/* Need bars */
.need { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.bars { display: grid; gap: 20px; }
.bar { display: grid; gap: 7px; }
.bar .label { display: flex; justify-content: space-between; gap: 12px; font-size: .98rem; }
.bar .label b { font: 500 1rem var(--mono); color: var(--night); }
.bar .track { height: 12px; background: var(--paper); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky-ink)); border-radius: inherit; }
.bar.all .fill { background: #a9b9c8; }
.w545 { width: 54.5%; } .w452 { width: 45.2%; } .w409 { width: 40.9%; } .w206 { width: 20.6%; }
.section-head .callout-number { font: 700 clamp(2.6rem, 5.4vw, 3.8rem)/1 var(--display); color: var(--night); margin-top: .6rem; letter-spacing: -.03em; }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .7rem; align-content: start; padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.section:not(.mist) .steps li { background: var(--mist); }
.steps li::before { content: "Step " counter(step); font: 500 .82rem/1 var(--mono); color: var(--sky-ink); }
.steps li p { color: var(--muted); }

/* Engine room: HostSavers technology */
.engine { position: relative; overflow: hidden; background-image: linear-gradient(rgba(92, 200, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 200, 255, .05) 1px, transparent 1px); background-size: 44px 44px; }
.engine .section-head p { color: var(--on-dark-muted); }
.engine-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--night); padding: 22px; display: grid; gap: .45rem; align-content: start; }
.spec b { font: 500 1.9rem/1 var(--mono); color: var(--sky); }
.spec h3 { color: #fff; font-size: .98rem; }
.spec p { color: var(--on-dark-muted); font-size: .92rem; line-height: 1.5; }
.engine figure { margin: 0; }
.engine .frame { border-color: var(--line-dark); box-shadow: 0 0 0 1px rgba(92, 200, 255, .1), 0 40px 90px -40px rgba(0, 0, 0, .9); }
.engine figcaption { margin-top: 14px; font-size: .86rem; color: var(--on-dark-muted); }
.engine-credit { margin-top: 2.6rem; display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: baseline; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.engine-credit b { font-family: var(--display); font-weight: 600; color: #fff; }

/* Level path on the home page */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.path::before { content: ""; position: absolute; top: 31px; left: 32px; right: calc((100% - 54px) / 4 - 32px); height: 2px; background: var(--line); }
.stop { position: relative; display: grid; gap: .55rem; align-content: start; }
.stop .dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font: 700 .78rem/1.1 var(--display); color: var(--muted); position: relative; z-index: 1; text-align: center; }
.stop.open .dot { background: var(--night); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 6px rgba(227, 168, 87, .22); }
.stop h3 a { color: inherit; }
.stop p { color: var(--muted); font-size: .95rem; }

/* Courses list (courses page) */
.course-list { display: grid; gap: 12px; }
.course-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.course-row .ages { font: 700 1.1rem/1.15 var(--display); color: var(--night); }
.course-row .what { display: grid; gap: .3rem; }
.course-row .what p { color: var(--muted); }
.course-row.open { background: var(--night); border-color: var(--night); }
.course-row.open .ages, .course-row.open h3, .course-row.open h3 a { color: #fff; }
.course-row.open .what p { color: var(--on-dark-muted); }
.status { font: 500 .8rem/1 var(--mono); white-space: nowrap; color: var(--muted); }
.status.open { color: var(--ok); }
.course-row.open .status.open { color: var(--gold); }

/* Showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #12304a; box-shadow: 0 30px 70px -34px rgba(3, 21, 39, .6); background: #0d1322; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Promise list */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.promises + p { margin-top: 28px; }
.promises li { display: grid; gap: .3rem; align-content: start; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.section:not(.mist) .promises li { background: var(--mist); }
.promises b { color: var(--night); font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.promises span { color: var(--muted); font-size: .96rem; }
.promises.single { grid-template-columns: minmax(0, 1fr); }

/* Provider band */
.band { background-image: radial-gradient(ellipse at 100% 120%, rgba(227, 168, 87, .35), transparent 55%); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.band .section-head { margin-bottom: 0; }
.band p { color: var(--on-dark-muted); max-width: 56ch; }

/* Inner page heroes */
.course-hero { padding-block: clamp(52px, 7vw, 96px) clamp(60px, 8vw, 104px); }
.course-hero .wrap { display: grid; gap: 1.4rem; }
.course-hero .lede { max-width: 52ch; }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; padding: 12px 18px; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(7, 39, 66, .6); }
.facts b { font: 600 1.2rem/1.2 var(--display); color: #fff; }
.facts span { font-size: .82rem; color: var(--on-dark-muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.timeline .when { display: grid; align-content: start; }
.timeline .when b { font: 600 1.05rem/1.2 var(--display); color: var(--night); }
.timeline .when span { color: var(--muted); font: .8rem var(--mono); }
.timeline .now { background: var(--night); border-color: var(--night); }
.timeline .now .when b, .timeline .now h3 { color: #fff; }
.timeline .now .when span { color: var(--gold); }
.timeline .now p { color: var(--on-dark-muted); }
.timeline p { color: var(--muted); }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.week { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.week h3 { margin-bottom: .7rem; }
.week ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.week li span { display: block; color: var(--muted); font-size: .9rem; }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.outcomes li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
.outcomes code { font: 500 .86rem/1.5 var(--mono); color: var(--sky-ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* Stats, roles, technology, report */
.stat-pair { display: grid; gap: 22px; }
.stat { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stat b { font: 700 clamp(2.2rem, 4.6vw, 3.2rem)/1 var(--display); color: var(--night); letter-spacing: -.03em; }
.stat span { font-size: 1.05rem; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role { padding: clamp(22px, 3vw, 30px); display: grid; gap: .7rem; align-content: start; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.role p { color: var(--muted); }
.role .role-note { color: var(--gold-ink); font: 500 .82rem/1.4 var(--mono); }
.tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tech > div { display: grid; gap: .55rem; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.tech p { color: var(--muted); }
.report { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.report li { display: grid; gap: .5rem; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.report b { font-family: var(--display); font-size: 1.05rem; color: var(--night); font-weight: 600; }
.report span { color: var(--muted); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
form.enquiry { display: grid; gap: 18px; background: var(--mist); padding: clamp(22px, 3vw, 34px); border-radius: 18px; border: 1px solid var(--line); }
.section.mist form.enquiry { background: var(--paper); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .96rem; }
.field .hint { font-size: .86rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 1rem/1.4 var(--sans); padding: 13px 14px; border: 1.5px solid #c2cfdc; border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 1px; border-color: var(--night); }
.field .error { color: var(--bad); font-size: .88rem; font-weight: 600; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .95rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--night); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-left: 4px solid var(--bad); background: #fdf0f2; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.needs { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.needs li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.needs li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.needs b { color: var(--night); }
.thanks { max-width: 62ch; display: grid; gap: 1.2rem; padding-block: clamp(56px, 10vw, 120px); }
.signin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.signin-card h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.signin-head { display: grid; gap: 8px; }
.signin-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.signin-card h2 { font-size: 1.35rem; }
.signin-card.narrow { max-width: 460px; }
.check-line { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.check-line input { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: #020d19; color: var(--on-dark-muted); padding-block: 56px 36px; font-size: .94rem; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font: 700 .95rem/1.3 var(--sans); color: #fff; margin-bottom: .6rem; letter-spacing: 0; }
.site-footer .about h2 { font: 700 1.1rem/1.2 var(--display); }
.site-footer .about img { width: 56px; height: 56px; margin-bottom: 14px; }
.site-footer .about p + p { margin-top: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer .legal { grid-column: 1 / -1; display: grid; gap: .4rem; font-size: .84rem; max-width: 92ch; }
.site-footer .credit { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: .8rem/1.5 var(--mono); }

@media (max-width: 1000px) {
  .live .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 20px 16px 20px 0; }
  .metric + .metric { padding-left: 0; }
  .metric:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .live-note { grid-column: 1 / -1; padding: 18px 0 22px; }
}
@media (max-width: 900px) {
  .hero .wrap, .need, .showcase, .form-layout, .pair, .band .wrap, .model, .engine-grid, .signin-layout { grid-template-columns: minmax(0, 1fr); }
  .doors, .tech, .report, .weeks, .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path::before { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ring { max-width: 340px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .doors, .tech, .report, .weeks, .path, .roles, .two, .promises, .specs { grid-template-columns: minmax(0, 1fr); }
  .course-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .timeline li, .outcomes li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .wordmark b.academy { font-size: 1.15rem; }
  .site-nav, .nav-list { gap: 2px 16px; }
  .foundation-bar .links { gap: 14px; }
  .path .stop { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .path .stop .dot { grid-row: 1 / span 3; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.stack-lg { display: grid; gap: clamp(24px, 4vw, 40px); }

/* Who the place is for: children's fields hide when it's for an adult */
fieldset.who { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
fieldset.who legend { font-weight: 600; font-size: .96rem; margin-bottom: 6px; padding: 0; }
.choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border: 1.5px solid #c2cfdc; border-radius: 12px; background: #fff; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--night); }
.choice b { display: block; color: var(--night); }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
form.enquiry:has(#for-self:checked) .kids-only { display: none; }

/* Certificate check */
.cert-check { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--mist); }
.cert-check.ok { border-color: var(--ok); background: #eef8f2; }
.cert-check .check-line { font-weight: 700; font-size: 1.1rem; color: var(--night); }
.cert-check.ok .check-line::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 16px no-repeat; flex: none; }
.cert-check dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; }
.cert-check dt { color: var(--muted); }
.cert-check dd { margin: 0; font-weight: 600; }
.cert-check .mono { font-family: var(--mono); letter-spacing: .04em; }
@media (max-width: 520px) { fieldset.who { grid-template-columns: minmax(0, 1fr); } .cert-check dl { grid-template-columns: minmax(0, 1fr); } .cert-check dd { margin-bottom: 6px; } }

.self-only { display: none; }
form.enquiry:has(#for-self:checked) .self-only { display: inline; }

/* ---------- Courses: a colour for each course, grouped by who it's for ---------- */
.tone-teal   { --c: #16a37f; --c-tint: #e3f6ef; --c-ink: #0b6b52; }
.tone-orange { --c: #f07a2e; --c-tint: #fff0e4; --c-ink: #a3470c; }
.tone-violet { --c: #7c5cd8; --c-tint: #f0ebfd; --c-ink: #5136a8; }
.tone-blue   { --c: #3d6be0; --c-tint: #e8efff; --c-ink: #2449a8; }
.tone-rose   { --c: #d6467a; --c-tint: #fdeaf1; --c-ink: #a0244f; }
.tone-gold   { --c: #d99a2b; --c-tint: #fbf1dc; --c-ink: #7d5210; }
.course-group { padding-block: clamp(48px, 6vw, 80px); }
.group-head { display: grid; gap: .5rem; margin-bottom: 1.8rem; max-width: 62ch; }
.group-head h2 { font: 600 clamp(1.5rem, 3vw, 2rem)/1.15 var(--display); color: var(--night); letter-spacing: -.015em; }
.group-head p { color: var(--muted); font-size: 1.05rem; }
.course-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.course-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(3, 21, 39, .05); }
.course-card .card-shot { display: block; aspect-ratio: 16 / 10; background: var(--c-tint); overflow: hidden; border-bottom: 1px solid var(--line); }
.course-card .card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .3s ease; }
.course-card .card-shot:hover img { transform: scale(1.03); }
.course-card .card-body { display: grid; gap: .8rem; align-content: start; padding: 22px 22px 24px; grid-template-rows: auto auto 1fr auto auto; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-top .ages { font: 700 .85rem/1 var(--sans); color: var(--c-ink); background: var(--c-tint); padding: 7px 11px; border-radius: 999px; }
.card-top .state { font: 600 .82rem/1 var(--sans); color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.card-top .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.course-card.planned .state { color: var(--muted); }
.course-card h3 { font: 600 1.55rem/1.1 var(--display); letter-spacing: -.015em; color: var(--night); margin: 0; }
.course-card h3 a { color: inherit; text-decoration: none; }
.course-card h3 a:hover { color: var(--c-ink); }
.course-card .tagline { color: var(--ink); font-size: 1rem; line-height: 1.55; }
.card-facts { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-facts li { display: grid; gap: 2px; }
.card-facts b { color: var(--c-ink); font-size: 1rem; }
.card-facts span { color: var(--muted); font-size: .86rem; }
.card-link { justify-self: start; font-weight: 700; color: var(--c-ink); text-decoration: none; border-bottom: 2px solid var(--c); padding-bottom: 2px; }
.card-link:hover { color: var(--night); border-color: var(--night); }
.card-link.quiet { border-bottom-style: dashed; }
.course-card.planned { border-style: dashed; border-top-style: solid; background: linear-gradient(180deg, var(--c-tint), var(--paper) 140px); }
@media (max-width: 1000px) { .course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .course-cards { grid-template-columns: minmax(0, 1fr); } .course-card h3 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .course-card .card-shot img { transition: none; } }
/* Each course page wears its course's colour */
.course-page .course-hero { border-bottom: 6px solid var(--c); }
.course-page .timeline li { border-left: 4px solid var(--c); }
.course-page .timeline .now { background: var(--c-tint); border-color: var(--c); border-left-width: 4px; }
.course-page .timeline .now .when b, .course-page .timeline .now h3 { color: var(--night); }
.course-page .timeline .now .when span { color: var(--c-ink); font-weight: 600; }
.course-page .timeline .now p { color: var(--ink); }
.course-page .week { border-top: 4px solid var(--c); }
.course-page .outcomes code { color: var(--c-ink); background: var(--c-tint); }
.course-page .checklist li::before { background-color: var(--c); }
.course-page .outcomes code { padding: 2px 7px; border-radius: 6px; justify-self: start; }
.forgot { display: grid; gap: 6px; }
.forgot ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.tone-plum   { --c: #9b3fb5; --c-tint: #f6ebfa; --c-ink: #6e2385; }
.tone-eucalypt { --c: #4f8a3c; --c-tint: #ecf4e7; --c-ink: #2f5a22; }
.tone-sky   { --c: #1e9ad6; --c-tint: #e4f4fc; --c-ink: #0b5f8a; }
.tone-ocean { --c: #0e6f8f; --c-tint: #e1f1f6; --c-ink: #08465a; }
.tone-indigo { --c: #4f46c8; --c-tint: #ecebfb; --c-ink: #33298f; }
.tone-coral { --c: #e0603f; --c-tint: #fdece7; --c-ink: #9a3519; }
.tone-forest { --c: #2f7d4f; --c-tint: #e6f3eb; --c-ink: #1c5233; }
.tone-clay { --c: #b0643a; --c-tint: #f7ece5; --c-ink: #743c1c; }
.tone-navy  { --c: #1f4e79; --c-tint: #e6eef7; --c-ink: #163857; }
.tone-ruby  { --c: #b3263e; --c-tint: #fbe9ec; --c-ink: #7d1a2b; }
.course-notice { max-width: 62ch; margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .06); color: var(--on-dark); font-size: .92rem; border-radius: 0 8px 8px 0; }
/* Thai text: Public Sans has no Thai letters, so use the phone's own Thai font */
:lang(th), .th { font-family: "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Sukhumvit Set", Tahoma, sans-serif; }

/* ===== Enrolling and paying (v1.17) ===== */
.card-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: 0; }
.price-list span { display: grid; line-height: 1.3; }
.price-list small { color: var(--muted); font-size: .84rem; }
.price-list b { font: 600 1.05rem var(--mono); color: var(--night); white-space: nowrap; }
.notice-box { align-content: start; }
form.enquiry .kids-block, form.enquiry .me-block { display: grid; gap: 18px; }
form.enquiry .me-block { display: none; }
form.enquiry:has(#who-me:checked) .me-block { display: grid; }
form.enquiry:has(#who-me:checked) .kids-block { display: none; }
.kid-rows { border: 0; padding: 0; margin: 0; }
.kid-rows legend { font-weight: 600; font-size: .96rem; margin-bottom: 6px; padding: 0; }
.kid-rows legend .hint { display: block; }
.kid-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; margin-bottom: 10px; }
.kid-row input, .kid-row select { width: 100%; font: 1rem/1.4 var(--sans); padding: 12px 13px; border: 1.5px solid #c2cfdc; border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.choice input:disabled + span { opacity: .45; }

.checkout { max-width: 720px; display: grid; gap: 22px; }
.checkout-head { display: grid; gap: 8px; }
.checkout-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.checkout-card { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 18px 40px -28px rgba(3, 21, 39, .35); }
.order-lines { width: 100%; border-collapse: collapse; font-size: 1rem; }
.order-lines th, .order-lines td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-lines thead th { font-size: .8rem; color: var(--muted); font-weight: 600; padding-top: 0; }
.order-lines td small { display: block; color: var(--muted); font-size: .88rem; }
.order-lines .num { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 16px; }
.order-lines tr.disc td { color: var(--ok); font-size: .92rem; padding-top: 0; border-bottom-style: dashed; }
.order-lines tr.disc td:first-child { padding-left: 14px; }
.order-lines tfoot th, .order-lines tfoot td { border-bottom: 0; padding-top: 16px; font-size: 1.15rem; }
.order-lines tfoot th { font-family: var(--display); color: var(--night); }
.order-lines tfoot tr.gst td, .order-lines tfoot tr.disc td { font-size: .9rem; padding-top: 2px; color: var(--muted); }
.saved { color: var(--ok); font-weight: 600; }
.pay-form { display: grid; gap: 10px; }
.btn.pay { justify-self: stretch; font-size: 1.08rem; padding: 18px 24px; }
.flash-note { padding: 12px 16px; border-radius: 10px; background: var(--mist); font-weight: 600; }
.done-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat; }
.checkout .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.fees-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fees-table-wrap { display: grid; gap: 14px; }
.fees-table { width: 100%; border-collapse: collapse; font-size: .98rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fees-table th, .fees-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees-table thead th { background: var(--mist); font-size: .82rem; color: var(--muted); }
.fees-table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.fees-table a { color: var(--night); text-decoration: none; }
.fees-table a:hover { text-decoration: underline; }
.free-tag { display: block; color: var(--ok); font-size: .82rem; font-weight: 600; }
.fees-prose h2 { font-size: 1.3rem; margin-top: 1.6rem; }
.fees-prose h2:first-child { margin-top: 0; }
.fees-prose p { margin: .5rem 0; color: var(--ink); }
.fees-prose .needs { margin: .8rem 0; }

/* Receipt (prints on one page) */
.receipt-page { background: var(--mist); }
.receipt { max-width: 760px; margin: 32px auto; background: var(--paper); padding: clamp(22px, 4vw, 44px); border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 24px; }
.r-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid var(--night); padding-bottom: 18px; }
.r-brand { display: flex; gap: 12px; align-items: center; }
.r-brand span { display: grid; line-height: 1.25; }
.r-brand b { font: 700 1.1rem var(--display); color: var(--night); }
.r-brand small { color: var(--muted); font-size: .85rem; }
.r-title { display: grid; justify-items: end; gap: 4px; }
.r-title h1 { font-size: 1.7rem; }
.r-title .mono { font-family: var(--mono); color: var(--muted); }
.r-meta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr); gap: 16px; margin: 0; font-size: .92rem; }
.r-meta dt { font-size: .78rem; font-weight: 600; color: var(--muted); }
.r-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.r-actions { margin: 0; }
@media (max-width: 760px) {
  .fees-layout { grid-template-columns: minmax(0, 1fr); }
  .r-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-title { justify-items: start; }
  .kid-row { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 14px; }
  .card-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fees-table th:nth-child(2), .fees-table td:nth-child(2) { display: none; }
}
@media print {
  .receipt-page { background: #fff; }
  .receipt { margin: 0; border: 0; padding: 0; max-width: none; }
  .r-actions { display: none; }
}
.prose .price-list { padding: 0; gap: 0; }

/* Providers: every course, by category (v1.18) */
.lic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.lic-card { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--c, var(--night)); }
.section.mist .lic-card { background: var(--paper); }
.lic-card h3 { font: 700 1.3rem/1.2 var(--display); color: var(--night); }
.lic-card > p { color: var(--muted); }
.lic-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.lic-pick legend { font-weight: 600; font-size: .96rem; margin-bottom: 4px; padding: 0; }
.lic-pick legend .hint { display: block; }
.lic-pick .pick-group { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 8px 0 0; }
.lic-pick .check-line { align-items: start; }
.lic-pick .check-line input { margin-top: 3px; flex: none; }
.lic-pick .check-line .hint { font-size: .84rem; color: var(--muted); }

/* Getting started guides (v1.19) */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.guide-card { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--mist); text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--night); }
.guide-card h2 { font-size: 1.35rem; }
.guide-card p { color: var(--muted); }
.guide-card span { font-weight: 700; color: var(--night); border-bottom: 2px solid var(--gold); justify-self: start; }
.course-pick { display: flex; gap: 8px; align-items: center; }
.course-pick select { font: 1rem var(--sans); padding: 13px 12px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .5); background: var(--night-2); color: #fff; max-width: 60vw; }
.guide { max-width: 820px; display: grid; gap: 34px; }
.guide article { display: grid; gap: 12px; }
.guide article h2 { display: flex; gap: 14px; align-items: center; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.guide article h2 span { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: var(--gold); font: 700 1rem var(--mono); }
.guide article p { max-width: 68ch; }
.guide .needs { list-style: none; margin: 0; padding: 0; }
.steps-mini { margin: 0; padding-left: 1.3rem; display: grid; gap: 8px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .95rem; border: 1px solid var(--line); }
.guide-table th, .guide-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { background: var(--mist); font-size: .82rem; color: var(--muted); }
.guide-table a { color: var(--night); }
.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dos > div { padding: 18px 20px; border-radius: var(--radius); background: var(--mist); }
.dos > div:first-child { border-left: 4px solid var(--ok); }
.dos > div:last-child { border-left: 4px solid var(--gold); }
.dos h3 { font-size: 1.05rem; margin-bottom: 6px; }
.dos ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; }
.course-box { border: 2px solid var(--c, var(--night)); border-radius: 18px; padding: 22px 24px; display: grid; gap: 12px; }
.course-box h2 { font-size: 1.5rem; color: var(--c-ink, var(--night)); }
.course-box dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.course-box dt { font-size: .8rem; font-weight: 700; color: var(--muted); }
.course-box dd { margin: 2px 0 0; }
.guide-foot { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) {
  .dos, .course-box dl { grid-template-columns: minmax(0, 1fr); }
  .course-pick { flex-wrap: wrap; }
  .guide-table th:nth-child(2), .guide-table td:nth-child(2) { display: none; }
}
@media print {
  .site-header, .site-footer, .foundation-bar, .no-print { display: none !important; }
  .guide-hero { background: #fff !important; color: #000; padding: 0 0 12px; }
  .guide-hero h1 { color: #000 !important; font-size: 26pt; }
  .guide-hero .lede { color: #333; }
  .guide-body { padding: 0; }
  .guide { gap: 18px; }
  .guide article { break-inside: avoid; }
  .guide article h2 span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Courses by subject ---------- */
.course-jump { display: grid; gap: 10px; margin-top: 22px; }
.course-jump > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.course-jump > div > a { color: #fff; text-decoration: none; }
.course-jump span { display: flex; flex-wrap: wrap; gap: 8px; }
.course-jump span a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: var(--on-dark, #dfe8f2); text-decoration: none; font-size: .92rem; }
.course-jump span a:hover { border-color: var(--sky); color: #fff; }
.course-jump em { font-style: normal; opacity: .7; font-size: .82rem; }
.subject + .subject { margin-top: clamp(36px, 5vw, 56px); }
.subject-head { display: grid; gap: 4px; margin-bottom: 18px; max-width: 62ch; padding-left: 14px; border-left: 3px solid var(--sky-ink); }
.subject-head h3 { font: 600 1.3rem/1.2 var(--display); color: var(--night); margin: 0; }
.subject-head p { margin: 0; color: var(--muted); }
.lic-group .subject-head { margin-top: 28px; } .lic-group .subject-head:first-of-type { margin-top: 8px; }

/* Phones: account button + a Menu that folds the links away (details/summary, so no script) */
.mobile-bar { display: none; }
.site-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem/1 var(--sans); color: #fff; padding: 10px 14px; border: 1px solid var(--line-dark); border-radius: 999px; -webkit-user-select: none; user-select: none; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary::before { content: ""; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; box-sizing: border-box; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.site-menu[open] > summary { background: var(--night-3); }
.site-menu nav { display: grid; padding: 8px 0 4px; }
.site-menu nav > a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: 13px 2px; border-bottom: 1px solid var(--line-dark); }
.site-menu nav > a[aria-current="page"] { color: var(--gold); }
.menu-foundation { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 2px 6px; font-size: .9rem; }
.menu-foundation a { color: var(--on-dark-muted); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .mobile-bar { display: contents; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .wordmark { margin-right: auto; }
  .wordmark img { width: 40px; height: 40px; }
  .mobile-bar .signin { order: 1; color: var(--night); background: var(--sky); padding: 10px 14px; border-radius: 999px; font: 700 .95rem/1 var(--sans); text-decoration: none; }
  .site-menu { order: 2; }
  .site-menu > summary { width: 44px; height: 40px; padding: 0; justify-content: center; }
  .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .wrap { flex-wrap: nowrap; gap: 10px; }
  .wordmark { gap: 10px; min-width: 0; }
  .wordmark b { font-size: .8rem; }
  .mobile-bar .signin { padding: 10px 13px; white-space: nowrap; }
  /* The open menu drops down over the page, full width, from under the header */
  .site-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid var(--line-dark); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7);
    padding: 4px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); }
  .foundation-bar .links { display: none; }
}

/* iPhone and iPad (Safari) */
@media (hover: none) and (pointer: coarse) {
  /* Fields under 16 px make Safari zoom in when tapped, and the page stays zoomed */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: max(16px, 1em) !important; }
}
@supports (-webkit-touch-callout: none) {
  input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; min-height: 2.9em; }
  input::-webkit-date-and-time-value { text-align: left; }
}
.site-footer { padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 360px) {
  .wordmark img { width: 34px; height: 34px; }
  .wordmark b { font-size: .72rem; }
  .wordmark b.academy { font-size: 1rem; }
  .mobile-bar .signin { padding: 9px 11px; font-size: .88rem; }
}

/* Home school: year finder, subject coverage, NSW registration steps */
.hs-note { margin-top: 1.6rem; max-width: 70ch; }
.year-finder { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.year-tile { display: grid; gap: .55rem; align-content: start; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; transition: border-color .15s, transform .15s; }
.section:not(.mist) .year-tile { background: var(--mist); }
.year-tile:hover { border-color: var(--night); transform: translateY(-2px); color: var(--ink); }
.yt-stage { font: 500 .78rem/1 var(--mono); color: var(--sky-ink); }
.yt-year { font: 700 clamp(2rem, 3.6vw, 2.6rem)/1 var(--display); color: var(--night); letter-spacing: -.03em; }
.yt-year::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--gold); }
.yt-subjects { display: flex; flex-wrap: wrap; gap: 6px; }
.yt-subjects i { font-style: normal; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--c-tint, #e6eef7); color: var(--c-ink, var(--night)); }
.yt-meta { color: var(--muted); font-size: .92rem; }
.yt-go { font-weight: 700; color: var(--blue); }
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.state-cards { display: grid; gap: 14px; }
.state-card { display: grid; gap: .3rem; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--mist); text-decoration: none; color: var(--ink); }
.state-card b { font: 600 1.08rem/1.25 var(--display); color: var(--night); }
.state-card span { color: var(--muted); font-size: .96rem; }
a.state-card { border-color: var(--night); border-width: 2px; }
a.state-card:hover { background: var(--paper); color: var(--ink); }
.faq { display: grid; gap: 10px; max-width: 80ch; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--night); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.2rem/1 var(--mono); color: var(--sky-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq + .source { margin-top: 1.6rem; max-width: 80ch; }
.reg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: reg; }
.reg-steps li { counter-increment: reg; display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 22px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.reg-steps li::before { content: counter(reg); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font: 700 1.1rem/1 var(--display); }
.reg-steps b { font: 600 1.05rem/1.25 var(--display); color: var(--night); }
.reg-steps p { margin: .4rem 0 0; color: var(--muted); }
.reg-steps .rs-help { padding-left: 20px; border-left: 3px solid var(--gold); }
.reg-steps .rs-help b { font: 500 .78rem/1 var(--mono); color: var(--gold-ink); }
.kla-bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kla-band { padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.kla-band h3 { margin: 0 0 .6rem; font: 600 1.05rem/1.2 var(--display); color: var(--night); }
.kla-band ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.record-map { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.record-map li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.record-map li:first-child { border-top: 0; }
.record-map b { color: var(--night); }
.record-map span { color: var(--muted); }
.kla-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kla-map li { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr); gap: 8px 24px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--mist); border-left: 6px solid var(--line); }
.kla-map .kla-academy { border-left-color: var(--ok); }
.kla-map .kla-option { border-left-color: var(--sky-ink); }
.kla-map .kla-you { border-left-color: var(--gold); background: var(--paper); }
.kla-name { display: grid; gap: 6px; align-content: start; }
.kla-name b { font: 600 1.02rem/1.25 var(--display); color: var(--night); }
.kla-tag { justify-self: start; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e3f3ea; color: #145c3c; }
.kla-option .kla-tag { background: #e4f4fc; color: #0b5f8a; }
.kla-you .kla-tag { background: #fbf0df; color: var(--gold-ink); }
.kla-how p { margin: 0 0 .3rem; }
.kla-how .kla-idea { color: var(--muted); }
.year-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.year-strip a { padding: 10px 18px; border-radius: 999px; border: 2px solid var(--night); font-weight: 700; text-decoration: none; color: var(--night); background: var(--paper); }
.year-strip a[aria-current="page"] { background: var(--night); color: #fff; }
.hs-callout { background: var(--mist); border-bottom: 1px solid var(--line); }
.hs-callout .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 26px; }
.hs-callout p { margin: 0; max-width: 70ch; }
form.enquiry .year-block { display: grid; gap: 18px; }
.year-courses label { margin-top: 6px; }
.year-courses small { color: var(--muted); }
@media (max-width: 1000px) { .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .reg-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; }
  .reg-steps .rs-help { grid-column: 2; padding-left: 14px; }
  .kla-bands, .kla-map li, .record-map li { grid-template-columns: minmax(0, 1fr); }
  .record-map li { gap: 2px; }
}
@media (max-width: 560px) { .steps.steps-4 { grid-template-columns: minmax(0, 1fr); } .year-tile { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .year-tile { transition: none; } .year-tile:hover { transform: none; } }
.kla-map .kla-part { border-left-color: var(--sky-ink); }
.kla-part .kla-tag { background: #e3f3ea; color: #145c3c; }

/* Tutoring */
.tut-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tut-steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; padding: 22px 20px 20px; border-top: 4px solid var(--gold); background: var(--mist); border-radius: 0 0 var(--radius) var(--radius); }
.tut-steps li::before { content: counter(step); font: 700 1.6rem/1 var(--display); color: var(--night); }
.tut-steps b { color: var(--night); font-size: 1.05rem; }
.tut-steps span { color: var(--muted); font-size: .95rem; }
.tut-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.tut-prices { margin-bottom: 1rem; }
.tutor-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tutor-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tc-initial { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: var(--night); color: var(--gold); font: 700 1.7rem/1 var(--display); }
.tutor-card h3 { margin: 0 0 2px; font: 700 1.2rem/1.2 var(--display); color: var(--night); }
.tutor-card p { margin: 0 0 8px; font-size: .95rem; }
.tc-topics { color: var(--sky-ink); font-weight: 600; font-size: .88rem !important; }
.tc-check { color: var(--ok); font-weight: 600; font-size: .85rem !important; }
.tut-filter { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); margin-bottom: 28px; }
.tut-filter-row { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: end; }
.tut-filter-row .field { margin: 0; min-width: 0; }
.tut-filter-row select { min-width: 240px; max-width: 100%; }
.seg { display: inline-flex; border: 1.5px solid #c2cfdc; border-radius: 10px; overflow: hidden; background: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 16px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--night); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--sky-ink); outline-offset: -3px; }
.tut-pricing { margin: 0 0 18px; color: var(--muted); }
.slot-days { display: grid; gap: 22px; }
.slot-day h2 { font: 700 1.05rem/1.3 var(--display); color: var(--night); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.slot-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.slot { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid #c2cfdc; border-left: 4px solid var(--gold); border-radius: 10px; text-decoration: none; color: var(--night); background: #fff; }
.slot b { font: 600 1.05rem var(--mono); }
.slot span { font-size: .85rem; color: var(--muted); }
.slot:hover { border-color: var(--night); background: var(--mist); color: var(--night); }
.price-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.price-line b { font: 600 1.05rem var(--mono); color: var(--night); }
@media (max-width: 900px) {
  .tut-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tut-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tut-steps { grid-template-columns: minmax(0, 1fr); }
  .tut-filter-row select { min-width: 0; width: 100%; }
  .tut-filter-row .field { width: 100%; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
p.notice-box { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--mist); max-width: 70ch; }
.tut-cta { margin: 28px 0 0; }
.tut-filter fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tut-filter legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .96rem; }
@media (min-width: 1000px) { .slot-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; } }

/* English test preparation */
.et-choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.et-course { display: grid; gap: 12px; align-content: start; padding: 28px; border: 1px solid var(--line); border-top: 6px solid var(--c, var(--night)); border-radius: var(--radius); background: var(--paper); }
.et-target { font: 600 .82rem var(--mono); color: var(--c-ink, var(--muted)); }
.et-course h3 { margin: 0; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); }
.et-course h3 a { color: var(--night); text-decoration: none; }
.et-course p { margin: 0; color: var(--muted); }
.et-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.et-parts td:first-child { font: 600 1rem var(--mono); color: var(--night); width: 3.5em; }
.et-parts .et-sec td { background: var(--mist); color: var(--night); font-family: var(--sans); width: auto; }
.et-tutor { display: grid; gap: 14px; justify-items: start; padding: 22px 24px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.et-tutor p { margin: 0; }
@media (max-width: 860px) { .et-choose, .et-split { grid-template-columns: minmax(0, 1fr); } }
.et-family { margin-top: 36px; }
.et-family:first-of-type { margin-top: 0; }
.et-fam-head { display: grid; gap: 4px; margin-bottom: 16px; max-width: 70ch; }
.et-fam-head h3 { margin: 0; font: 700 1.35rem/1.2 var(--display); color: var(--night); }
.et-fam-head h3 span { display: block; font: 600 .95rem var(--sans); color: var(--muted); margin-top: 4px; }
.et-fam-head p { margin: 0; color: var(--muted); }
.et-tables { display: grid; gap: 28px; }
.et-tables caption { text-align: left; font-weight: 700; color: var(--night); padding-bottom: 8px; }
.et-parts td:first-child { white-space: nowrap; }

/* Homepage: IELTS and TOEIC preparation */
.tests-cta { background: var(--mist); border-block: 1px solid var(--line); padding-block: clamp(48px, 7vw, 84px); }
.tests-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center; }
.tests-copy h2 { margin: 0 0 1rem; }
.tests-copy p { color: var(--muted); margin: 0 0 1.4rem; max-width: 46ch; }
.tests-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.tests-actions a:not(.btn) { font-weight: 700; }
.tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.test { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 10px; }
.test h3 { margin: 0 0 .6rem; display: grid; gap: .2rem; }
.test-name { font: 700 clamp(2rem, 3.4vw, 2.6rem)/1 var(--display); letter-spacing: -.02em; color: var(--night); }
.test + .test .test-name { color: var(--blue); }
.test-sub { font: 600 .95rem/1.3 var(--sans); color: var(--muted); }
.test ul { list-style: none; margin: 0; padding: 0; }
.test li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.test li a { font-weight: 700; }
.test li b { font-variant-numeric: tabular-nums; }
.test li span { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 1000px) { .tests-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .tests { grid-template-columns: 1fr; } }
.reg { font-size: .45em; vertical-align: super; line-height: 0; letter-spacing: 0; margin-left: .04em; }

/* Main menu panels (wide screens): Home school, Courses and About. menu.js opens them; without it they're plain links. */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 31; color: var(--on-dark); background-color: var(--night-2);
  background-image: radial-gradient(circle at 1px 1px, rgba(92, 200, 255, .09) 1px, transparent 1.6px); background-size: 28px 28px;
  border-bottom: 1px solid var(--line-dark); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .75);
  max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); transition: clip-path .34s cubic-bezier(.2, .75, .2, 1); }
.mega.in { clip-path: inset(0 0 -80px 0); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--sky), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .75, .2, 1) .05s; }
.mega.in::before { transform: scaleX(1); }
.mega :focus-visible { outline-color: var(--gold); }
.site-header .mega-inner { display: block; padding-block: 30px 0; }
.mega a { color: #fff; }
.mega .mm-col, .mega .ms-years > li, .mega .ma-links > li, .mega .ms-intro, .mega .ma-engine, .mega .mm-preview { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.mega.in .mm-col, .mega.in .ms-years > li, .mega.in .ma-links > li, .mega.in .ms-intro, .mega.in .ma-engine, .mega.in .mm-preview { opacity: 1; transform: none; }
.mega.in :is(.mm-col, .ms-years > li, .ma-links > li):nth-child(1) { transition-delay: .06s; }
.mega.in :is(.mm-col, .ms-years > li, .ma-links > li):nth-child(2) { transition-delay: .1s; }
.mega.in :is(.mm-col, .ms-years > li, .ma-links > li):nth-child(3) { transition-delay: .14s; }
.mega.in :is(.mm-col, .ms-years > li, .ma-links > li):nth-child(4) { transition-delay: .18s; }
.mega.in :is(.mm-col, .ms-years > li, .ma-links > li):nth-child(n+5) { transition-delay: .22s; }
.mega.in .mm-preview, .mega.in .ma-engine { transition-delay: .2s; }
.mega-scrim { position: fixed; inset: 0; z-index: 20; background: rgba(3, 21, 39, .55); opacity: 0; transition: opacity .25s ease; }
.mega-scrim.in { opacity: 1; }

/* Courses: finder, columns, preview */
.mm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.mm-find { display: flex; align-items: center; gap: 10px; flex: 1 1 380px; max-width: 560px; padding: 0 14px; background: var(--night); border: 1px solid var(--line-dark); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.mm-find:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(92, 200, 255, .2); }
.mm-find input { flex: 1; min-width: 0; padding: 13px 0; background: transparent; border: 0; color: #fff; font: 500 1rem/1.2 var(--sans); outline: none; -webkit-appearance: none; appearance: none; }
.mm-find input::placeholder { color: var(--on-dark-muted); opacity: 1; }
.mm-find input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.find-icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; }
.mm-count { margin: 0; font: 500 .8rem/1.4 var(--mono); color: var(--on-dark-muted); }
.mm-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
.mm-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 28px; align-items: start; }
.mm-head { margin: 0 0 10px; font: 600 .98rem/1.25 var(--display); letter-spacing: -.01em; }
.mm-head a { text-decoration: none; }
.mm-head a:hover { text-decoration: underline; text-decoration-color: var(--sky); }
.mm-sub { margin: 14px 0 2px; font-size: .78rem; font-weight: 600; color: var(--on-dark-muted); }
.mm-set:first-of-type .mm-sub { margin-top: 0; }
.mm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mm-course { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 11px; padding: 7px 10px; margin-inline: -10px; border-radius: 10px; text-decoration: none; transition: background-color .12s; }
.mm-course:hover, .mm-course:focus-visible { background: rgba(255, 255, 255, .07); }
.mm-dot { width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--c, var(--sky)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--sky)) 28%, transparent); }
.mm-name { font-weight: 600; font-size: .94rem; line-height: 1.35; }
.mm-meta { grid-column: 2; font-size: .78rem; color: var(--on-dark-muted); line-height: 1.35; }
.mm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mm-chips a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; transition: border-color .12s, background-color .12s; }
.mm-chips a:hover { border-color: var(--sky); background: rgba(92, 200, 255, .1); }
.mm-note { margin: 12px 0 0; font-size: .8rem; line-height: 1.45; color: var(--on-dark-muted); }
.mm-preview { border-left: 1px solid var(--line-dark); padding-left: 30px; min-height: 290px; }
.pv-default { display: grid; gap: 8px; }
.pv-big { font: 700 4.4rem/.9 var(--display); letter-spacing: -.05em; color: #fff; }
.pv-big-label { font-weight: 600; color: #fff; max-width: 22ch; }
.pv-note { font-size: .85rem; line-height: 1.5; color: var(--on-dark-muted); max-width: 30ch; }
.pv-course { display: grid; gap: 8px; animation: pv-in .22s ease; }
@keyframes pv-in { from { opacity: .3; transform: translateY(4px); } }
.pv-img { display: block; position: relative; aspect-ratio: 32 / 23; border-radius: 12px; overflow: hidden; background: var(--night-3); border: 1px solid var(--line-dark); margin-bottom: 6px; }
.pv-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c, var(--sky)); }
.pv-title { font: 600 1.1rem/1.2 var(--display); color: #fff; }
.pv-tag { font-size: .88rem; line-height: 1.5; color: var(--on-dark); }
.pv-meta { font: 500 .78rem/1.4 var(--mono); color: var(--sky); }
.mm-empty { margin: 10px 0 0; color: var(--on-dark); }
.mm-empty a { color: var(--sky); }

/* Home school: years */
.site-header .mega-school, .site-header .mega-about { display: grid; gap: 0 40px; }
.mega-school { grid-template-columns: 290px minmax(0, 1fr); }
.mega-about { grid-template-columns: minmax(0, 1fr) 360px; }
.mega-school .mega-foot, .mega-about .mega-foot { grid-column: 1 / -1; }
.mm-lede { margin: 0 0 16px; font-size: .95rem; line-height: 1.55; color: var(--on-dark); }
.mm-lede b { display: block; margin-bottom: 8px; font: 600 1.3rem/1.15 var(--display); letter-spacing: -.02em; color: #fff; }
.mm-links { list-style: none; margin: 0; padding: 0; }
.mm-links a { display: block; padding: 9px 0; font-weight: 600; font-size: .94rem; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.mm-links a:hover { color: var(--sky); }
.ms-years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-content: start; }
.ms-year { display: grid; gap: 9px; align-content: start; height: 100%; box-sizing: border-box; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--night); border: 1px solid var(--line-dark); text-decoration: none; transition: border-color .15s, transform .15s; }
.ms-year:hover { border-color: var(--sky); transform: translateY(-2px); }
.ms-stage { font: 500 .74rem/1 var(--mono); color: var(--sky); }
.ms-num { font: 700 2.2rem/1 var(--display); letter-spacing: -.04em; color: #fff; }
.ms-subjects { display: flex; flex-wrap: wrap; gap: 5px; }
.ms-subjects span { padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #fff; background: color-mix(in srgb, var(--c) 24%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.ms-meta { font-size: .8rem; color: var(--on-dark-muted); }

/* About: pages and the live engine card */
.ma-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; align-content: start; }
.ma-links a { display: grid; gap: 2px; padding: 11px 12px; margin-inline: -12px; border-radius: 10px; text-decoration: none; transition: background-color .12s; }
.ma-links a:hover { background: rgba(255, 255, 255, .07); }
.ma-links a:hover b { color: var(--sky); }
.ma-links b { font-weight: 700; color: #fff; }
.ma-links span { font-size: .86rem; line-height: 1.4; color: var(--on-dark-muted); }
.ma-engine { padding: 20px 22px; border-radius: var(--radius); background: var(--night); border: 1px solid var(--line-dark); align-self: start; }
.ma-by { margin: 0 0 14px; font-size: .85rem; color: var(--on-dark-muted); }
.ma-by b { font-family: var(--display); font-weight: 600; color: #fff; }
.ma-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.ma-stats dt { font-size: .75rem; color: var(--on-dark-muted); }
.ma-stats dd { margin: 3px 0 0; font: 600 1.3rem/1.1 var(--mono); color: #fff; }
.ma-note { margin: 14px 0 0; font-size: .8rem; line-height: 1.5; color: var(--on-dark-muted); }
.mega .ma-note a { color: var(--sky); }

/* Panel footer: live status and onward links */
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 28px; padding: 15px 0 18px; border-top: 1px solid var(--line-dark); }
.mm-status { margin: 0; display: flex; align-items: center; gap: 9px; font: 500 .76rem/1.4 var(--mono); color: var(--on-dark-muted); }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
.mm-more { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mm-more a { font-weight: 600; font-size: .9rem; text-decoration-color: rgba(92, 200, 255, .55); }
.mm-more a:hover { color: var(--sky); }

@media (max-width: 1120px) { .mm-body { grid-template-columns: minmax(0, 1fr); } .mm-preview { display: none; } }
@media (max-width: 980px) {
  .mm-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .site-header .mega-school, .site-header .mega-about { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .mega::before, .mega *, .mega-scrim, .chev { transition: none !important; animation: none !important; }
  .mega.in { clip-path: none; }
}

/* Phone menu: sections and the course finder */
.site-menu .mm-find { margin: 10px 0 6px; max-width: none; }
.m-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #fff; font-weight: 600; font-size: 1.05rem; padding: 13px 2px; border-bottom: 1px solid var(--line-dark); }
.m-acc > summary::-webkit-details-marker { display: none; }
.m-acc > summary[aria-current="page"] { color: var(--gold); }
.m-acc[open] > summary { border-bottom-color: transparent; }
.m-acc .chev { width: 12px; height: 8px; color: var(--on-dark-muted); }
.m-acc[open] { padding-bottom: 10px; border-bottom: 1px solid var(--line-dark); }
.m-sub { margin: 10px 0 2px; font-size: .78rem; font-weight: 600; color: var(--on-dark-muted); }
.m-list, .m-years { list-style: none; margin: 0; padding: 0; }
.m-list a, .m-years a { display: flex; align-items: baseline; gap: 10px; padding: 9px 2px 9px 4px; color: #fff; text-decoration: none; font-weight: 500; }
.m-list .mm-dot { flex: none; align-self: center; margin: 0 2px 0 0; }
.m-years a { display: grid; gap: 1px; }
.m-years span { font-size: .8rem; color: var(--on-dark-muted); font-weight: 400; }
.m-more { display: inline-block; margin: 8px 18px 0 4px; color: var(--sky); font-weight: 600; font-size: .92rem; }
.site-menu .mm-empty { padding: 12px 2px; }
@media (max-width: 760px) {
  .site-menu nav { max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Getting started: PDF guides for home-schooling families */
.guide-pdfs { margin-top: clamp(36px, 5vw, 56px); max-width: 70ch; }
.guide-pdfs h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.guide-pdfs p { color: var(--muted); }
.guide-pdfs ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 10px; }
.guide-pdfs li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--mist); }
.guide-pdfs li a { font-weight: 700; }
.guide-pdfs li span { color: var(--muted); font-size: .9rem; }

/* ---------- v1.41: free places, the Foundation, paid work, honest AI, action bar ---------- */

/* Free place help under a price */
.fp-note { margin: 0; max-width: 62ch; font-size: .95rem; color: var(--muted); padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--mist); border-radius: 0 10px 10px 0; }
.fp-note b { color: var(--ink); }
.fp-note.on-dark { background: rgba(227, 168, 87, .1); color: var(--on-dark); }
.fp-note.on-dark b { color: #fff; }
.fp-note.on-dark a { color: var(--gold); }
.fp-link { font-weight: 600; white-space: nowrap; }
.test li .fp-link { display: block; margin-top: 4px; white-space: normal; font-size: .92rem; }
.card-facts .fp-link { white-space: normal; }

/* One line tying a fee to the Foundation's work */
.foundation-line { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; font-size: .95rem; color: var(--muted); max-width: 62ch; }
.foundation-line .fl-mark { flex: none; width: 10px; height: 10px; margin-top: .5em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(227, 168, 87, .22); }
.foundation-line.on-dark { color: var(--on-dark); }
.foundation-line.on-dark a { color: var(--gold); }
.band-foot { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 4px; }

/* The Foundation strip inside "Every licence does good three times over" */
.foundation-strip { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: linear-gradient(120deg, rgba(227, 168, 87, .16), rgba(227, 168, 87, .04) 60%); border: 1px solid rgba(227, 168, 87, .45); }
.fs-mark svg { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.fs-copy h3 { margin: 0 0 .4rem; font: 700 clamp(1.25rem, 2.2vw, 1.6rem)/1.2 var(--display); color: #fff; letter-spacing: -.01em; }
.fs-copy p { margin: 0; color: var(--on-dark); max-width: 64ch; }
.fs-copy a { color: var(--gold); }

/* Paid work, no CV */
.paid-work { background: var(--paper); }
.pw-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pw-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 18ch; }
.pw-lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin: 1rem 0 1.4rem; }
.pw-roles { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pw-roles li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.pw-roles b { font-weight: 700; }
.pw-roles span { font-size: .9rem; color: var(--muted); }
.pw-stories { display: grid; gap: 18px; }
.pw-story { margin: 0; position: relative; padding: 64px 30px 28px; border-radius: 20px; background: var(--night); color: var(--on-dark); overflow: hidden; }
.pw-story::before { content: "\201C"; position: absolute; top: -18px; left: 18px; font: 700 7.5rem/1 var(--display); color: var(--gold); opacity: .9; }
.pw-story blockquote { margin: 0 0 1.1rem; font: 600 clamp(1.15rem, 1.9vw, 1.4rem)/1.4 var(--sans); color: #fff; position: relative; }
.pw-story figcaption { display: grid; gap: 2px; }
.pw-story figcaption b { color: var(--gold); }
.pw-story figcaption span { color: var(--on-dark-muted); font-size: .95rem; }
.pw-soon { background: repeating-linear-gradient(135deg, var(--night), var(--night) 14px, var(--night-2) 14px, var(--night-2) 28px); border: 2px dashed rgba(227, 168, 87, .55); }
.pw-soon blockquote { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.pw-soon figcaption a { color: var(--gold); font-weight: 700; margin-top: .6rem; }

/* AI that's checked, never copied */
.ai-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ai-rules li { display: grid; gap: .6rem; align-content: start; padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.ai-rules p { color: var(--muted); margin: 0; }
.ai-rules h3 { margin: 0; }
.ai-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--night); }
.ai-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--sky); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-rules li:first-child .ai-ico svg path:last-child { stroke: var(--gold); }
.ai-note-band { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 4vw, 48px); }
.ai-note h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 1rem; }
.ai-note ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.ai-note li { padding-left: 16px; border-left: 3px solid var(--sky-ink); color: var(--muted); }
.ai-note li b { display: block; color: var(--ink); }

/* Action bar: top on wide screens, bottom on phones */
.action-bar { display: none; }
.js .action-bar { display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 40; background: rgba(3, 21, 39, .96); border-bottom: 1px solid var(--line-dark); box-shadow: 0 6px 24px rgba(3, 21, 39, .28); transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.js .action-bar.show { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.ab-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.ab-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: #fff; font: 700 .98rem/1.2 var(--display); }
.ab-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-brand img, .ab-brand .halo { flex: none; }
.ab-actions { display: flex; gap: 10px; flex: none; }
.ab-btn { display: inline-flex; align-items: center; justify-content: center; font: 700 .92rem/1 var(--sans); padding: 11px 16px; border-radius: 9px; text-decoration: none; color: #fff; border: 1.5px solid var(--line-dark); white-space: nowrap; }
.ab-btn:hover { border-color: var(--on-dark-muted); color: #fff; }
.ab-btn.primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.ab-btn.primary:hover { background: #ecbb75; border-color: #ecbb75; color: var(--night); }
.ab-btn:focus-visible, .ab-brand:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

@media (max-width: 1000px) {
  .ai-rules, .ai-note ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pw-grid { grid-template-columns: minmax(0, 1fr); }
  .foundation-strip { grid-template-columns: auto minmax(0, 1fr); }
  .foundation-strip .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .js .action-bar { top: auto; bottom: 0; border-bottom: 0; border-top: 1px solid var(--line-dark); box-shadow: 0 -6px 24px rgba(3, 21, 39, .28); transform: translateY(110%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ab-brand, .ab-btn.wide-only { display: none; }
  .ab-inner { padding-block: 10px; }
  .ab-actions { flex: 1; }
  .ab-btn { flex: 1; padding: 13px 10px; }
  body.ab-on { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .pw-roles { grid-template-columns: minmax(0, 1fr); }
  .foundation-strip { grid-template-columns: minmax(0, 1fr); }
  .fs-mark svg { width: 48px; height: 48px; }
}
@media print { .action-bar { display: none !important; } }

/* ---------- v1.42: the Academy in 30 seconds, FAQ, dashboard peek ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pillars-band { background: var(--night-2); border-top: 1px solid var(--line-dark); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pillars li { border-right: 1px solid var(--line-dark); }
.pillars li:last-child { border-right: 0; }
.pillars a { display: grid; grid-template-rows: 48px auto 1fr; gap: 6px; height: 100%; padding: 26px 22px 28px; color: var(--on-dark); text-decoration: none; transition: background .2s ease; }
.pillars li:first-child a { padding-left: 0; }
.pillars a:hover { background: rgba(92, 200, 255, .06); }
.pillars a:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.pl-big { font: 700 2.6rem/1 var(--display); color: var(--gold); letter-spacing: -.02em; align-self: end; }
.pl-icon { align-self: end; }
.pl-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pl-head { font: 700 1.08rem/1.25 var(--display); color: #fff; }
.pl-text { font-size: .93rem; color: var(--on-dark-muted); line-height: 1.45; }

.btn.big { padding: 16px 26px; font-size: 1.08rem; }
.pw-actions { align-items: center; gap: 14px 18px; }

.bars-key { margin: 6px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.bars-key b { font: 700 2rem/1 var(--display); color: var(--sky-ink); }
.chart-download { margin: 0; font-size: .92rem; }
.chart-download a { font-weight: 600; }

.dash-peek { background: var(--paper); border-color: var(--line); }
.dash-peek img { display: block; width: 100%; height: auto; }
.dash-peek figcaption { padding: 10px 16px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }

.faq-list, .faq-wrap > h2 { max-width: 900px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font: 600 1.06rem/1.35 var(--sans); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--sky-ink); border-bottom: 2.5px solid var(--sky-ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 14px; }
.faq-a { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }
.faq-a p { margin: 0 0 .7rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a b { color: var(--ink); }
.faq-home .section-head { margin-bottom: 1.4rem; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.faq-jump a { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-dark); color: #fff; text-decoration: none; font-weight: 600; }
.faq-jump a:hover { border-color: var(--sky); }

@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars li { border-bottom: 1px solid var(--line-dark); }
  .pillars li:nth-child(3) { border-right: 0; }
  .pillars li:nth-child(4) a { padding-left: 0; }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li, .pillars li:nth-child(3) { border-right: 1px solid var(--line-dark); }
  .pillars li:nth-child(even) { border-right: 0; }
  .pillars li a, .pillars li:nth-child(4) a { padding: 20px 14px 22px; }
  .pillars li:nth-child(odd) a { padding-left: 0; }
  .pillars li:first-child { grid-column: 1 / -1; border-right: 0; }
  .pillars li:first-child a { grid-template-rows: auto auto 1fr; }
  .pillars li:nth-child(odd):not(:first-child) a { padding-left: 14px; }
  .pillars li:nth-child(even) a { padding-left: 0; }
  .pillars li:nth-child(even) { border-right: 1px solid var(--line-dark); }
  .pillars li:nth-child(odd):not(:first-child) { border-right: 0; }
  .pl-big { font-size: 2.1rem; }
}

/* ---- Course catalogue: hero with search and audience tiles, a sticky finder bar, cards or a compact list ---- */
.cat-hero { padding-block: clamp(44px, 6vw, 76px) clamp(48px, 6vw, 80px); }
.cat-hero .wrap { gap: 1.2rem; }
.cat-eyebrow { margin: 0; font: 500 .82rem/1 var(--mono); color: var(--sky); }
.cat-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; max-width: 16ch; }
.cat-hero .lede { max-width: 64ch; }
.js .cat-search { display: flex; }
.cat-search { align-items: center; gap: 14px; max-width: 760px; margin-top: .4rem; padding: 0 18px; background: rgba(3, 21, 39, .82); border: 1.5px solid var(--line-dark); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.cat-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(92, 200, 255, .22); }
.cat-search svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; }
.cat-search input { flex: 1; min-width: 0; padding: 20px 0; background: transparent; border: 0; outline: none; color: #fff; font: 500 1.12rem/1.2 var(--sans); -webkit-appearance: none; appearance: none; }
.cat-search input::placeholder { color: var(--on-dark-muted); opacity: 1; }
.cat-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.cat-search kbd { flex: none; font: 500 .8rem/1 var(--mono); color: var(--on-dark-muted); border: 1px solid var(--line-dark); border-radius: 6px; padding: 6px 9px; }
.cat-search:focus-within kbd { visibility: hidden; }
.cat-stats { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.cat-stats li { display: flex; align-items: baseline; gap: 9px; }
.cat-stats b { font: 600 1.7rem/1 var(--display); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.cat-stats span { font: 500 .82rem/1 var(--mono); color: var(--on-dark-muted); }
.cat-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: .6rem; }
.cat-hero .cat-aud a.cat-aud-link { border-style: dashed; background: transparent; }
.cat-aud-link b::after { content: " \2192"; color: var(--sky); }
.cat-hero .cat-aud a { display: grid; gap: 7px; align-content: start; padding: 18px 20px 20px; border: 1.5px solid var(--line-dark); border-radius: 16px; background: rgba(7, 39, 66, .72); color: var(--on-dark); text-decoration: none; transition: border-color .15s, background-color .15s, transform .15s; }
.cat-aud b { font: 600 1.18rem/1.15 var(--display); letter-spacing: -.02em; color: #fff; }
.cat-aud span { font-size: .9rem; line-height: 1.45; color: var(--on-dark-muted); }
.cat-hero .cat-aud a:hover { border-color: var(--sky); transform: translateY(-2px); }
.cat-hero .cat-aud a.on { border-color: var(--gold); background: rgba(227, 168, 87, .16); }
.cat-aud a.on b { color: var(--gold); }

.js .cat-bar { display: block; }
.cat-bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.cat-bar.stuck { box-shadow: 0 14px 30px -18px rgba(3, 21, 39, .45); }
.cat-bar .wrap { display: grid; gap: 10px; padding-block: 14px; }
.cat-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; min-width: 0; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 .92rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: border-color .12s, background-color .12s, color .12s; }
.chip em { font: 500 .76rem/1 var(--mono); font-style: normal; color: var(--muted); }
.chip:hover { border-color: var(--night); }
.chip.on { background: var(--night); border-color: var(--night); color: #fff; }
.chip.on em { color: var(--sky); }
.chip.none { opacity: .45; }
.cat-seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.cat-seg button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 0; border-right: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 600 .88rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.cat-seg button:last-child { border-right: 0; }
.cat-seg button:hover { background: var(--mist); }
.cat-seg button.on { background: var(--night); color: #fff; }
.cat-seg svg { width: 14px; height: 14px; fill: currentColor; }
.cat-sort { display: inline-flex; align-items: center; gap: 8px; font: 600 .88rem/1 var(--sans); color: var(--muted); }
.cat-sort select { padding: 9px 30px 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 600 .88rem/1.1 var(--sans); cursor: pointer; }
.cat-count { margin: 0 0 0 auto; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; justify-content: flex-end; font: 500 .78rem/1.3 var(--mono); color: var(--muted); }
.cat-count b { font: 700 .95rem/1.2 var(--sans); color: var(--night); }
.cat-clear { padding: 7px 12px; border: 0; border-radius: 8px; background: var(--mist); color: var(--sky-ink); font: 700 .85rem/1 var(--sans); cursor: pointer; }
.cat-clear:hover { background: #dde9f3; }

#cat-results .section { padding-block: clamp(40px, 5.5vw, 68px); }
#cat-results .subject { margin-top: 0; }
#cat-results .subject:not([hidden]) ~ .subject { margin-top: clamp(32px, 4.5vw, 52px); }
#cat-results .group-head { margin-bottom: 1.5rem; }
#cat-results .course-card { transition: transform .18s ease, box-shadow .18s ease; }
#cat-results .course-card.open:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(3, 21, 39, .45); }
.cat-empty .wrap { display: grid; gap: 1rem; justify-items: start; max-width: 720px; }
.cat-empty h2 { font: 600 clamp(1.5rem, 3vw, 2rem)/1.15 var(--display); color: var(--night); letter-spacing: -.015em; }
.cat-empty-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: .4rem 0 0; }

/* Compact list: one row a course, for comparing weeks, lessons and price down the page */
.view-list .course-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.view-list .course-card { grid-template-rows: none; grid-template-columns: minmax(0, 2.3fr) 118px minmax(0, 2.4fr) auto; column-gap: 22px; align-items: center; padding: 14px 20px 14px 18px; border-top-width: 1px; border-left: 6px solid var(--c); border-radius: 12px; }
.view-list .course-card .card-shot { display: none; }
.view-list .course-card .card-body { display: contents; }
.view-list .course-card h3 { grid-column: 1; grid-row: 1; font-size: 1.08rem; line-height: 1.25; }
.view-list .course-card .tagline { grid-column: 1; grid-row: 2; font-size: .88rem; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.view-list .card-top { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 6px; justify-items: start; }
.view-list .card-top .ages { font-size: .78rem; padding: 6px 9px; }
.view-list .card-top .state { font-size: .76rem; }
.view-list .card-facts { grid-column: 3; grid-row: 1 / span 2; padding: 0; border-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.view-list .card-facts b { font-size: .94rem; }
.view-list .card-facts span { font-size: .78rem; line-height: 1.35; }
.view-list .course-card .card-link { grid-column: 4; grid-row: 1 / span 2; font-size: 0; }
.view-list .course-card .card-link::after { content: "View"; font-size: .9rem; }
.view-list .course-card.planned .card-link::after { content: "Register"; }

.cat-more { background: var(--mist); border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 72px); }
.cat-more h2 { font: 600 clamp(1.4rem, 2.6vw, 1.8rem)/1.15 var(--display); color: var(--night); letter-spacing: -.015em; margin-bottom: 1.4rem; }
.cat-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat-tile { display: grid; gap: 16px; align-content: space-between; justify-items: start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.cat-tile p { margin: 0; line-height: 1.55; }
.cat-tile p b { display: block; margin-bottom: 6px; font: 600 1.1rem/1.2 var(--display); color: var(--night); letter-spacing: -.01em; }

/* The way to the catalogue from the Courses menu */
.mm-all { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 10px; background: var(--gold); color: var(--night) !important; font: 700 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.mm-all:hover { background: #ecbb75; }
.mm-all svg { width: 16px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-all { display: block; margin: 12px 0 6px; padding: 13px 16px; border-radius: 10px; background: var(--gold); color: var(--night) !important; font-weight: 700; text-align: center; text-decoration: none; }

::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .75, .2, 1); }

@media (max-width: 1000px) {
  .view-list .course-card { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.5fr) auto; }
  .view-list .card-top { display: none; }
  .view-list .card-facts { grid-column: 2; }
  .view-list .course-card .card-link { grid-column: 3; }
  .cat-more-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cat-aud { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cat-hero .cat-aud a { padding: 14px 16px; }
  .cat-search kbd { display: none; }
  .cat-search input { font-size: 1rem; padding: 16px 0; }
  .cat-bar .wrap { padding-block: 10px; gap: 8px; }
  /* One row each, swiped sideways, so the bar stays short on a phone */
  .cat-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -20px; padding-inline: 20px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat-chips { flex-wrap: nowrap; }
  .cat-seg, .cat-sort { flex: none; }
  .cat-sort span { display: none; }
  .cat-count { margin-left: 4px; flex-wrap: nowrap; white-space: nowrap; }
  .view-list .course-card { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; column-gap: 12px; }
  .view-list .card-facts { grid-column: 1; grid-row: 3; grid-template-columns: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
  .view-list .card-facts span { display: none; }
  .view-list .course-card .card-link { grid-column: 2; grid-row: 1 / span 3; }
}
@media (prefers-reduced-motion: reduce) {
  #cat-results .course-card, .cat-hero .cat-aud a { transition: none; }
  #cat-results .course-card.open:hover, .cat-hero .cat-aud a:hover { transform: none; }
}
/* On wide screens the finder bar is what sticks on the catalogue page, so the quick-actions bar stays out of its way */
@media (min-width: 761px) { body:has(#cat-bar) .action-bar { display: none; } }

/* ---- Brand v1.57: the Foundation's mark in the Academy's learning halo ---- */
.halo { flex: none; display: block; }
.wordmark .halo { width: 56px; height: 56px; }
.site-footer .about .halo { width: 84px; height: 84px; margin-bottom: 14px; }
.card-title { display: flex; align-items: center; gap: 14px; }
.card-title .halo { width: 52px; height: 52px; }
.card-title h3 { min-width: 0; }
@media (max-width: 760px) { .wordmark .halo { width: 46px; height: 46px; } }
.course-title { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 24px); }
.course-title .halo { width: clamp(64px, 9vw, 96px); height: auto; }
.course-title h1 { margin: 0; min-width: 0; }

/* ---- Menu v1.58: Courses and About labels are links; the arrow beside them opens the panel ---- */
.nav-item.has-mega { display: inline-flex; align-items: center; gap: 2px; }
.mega-trigger { align-items: center; justify-content: center; width: 24px; height: 30px; padding: 0; margin: 0 -6px 0 0; background: none; border: 0; border-radius: 6px; color: var(--on-dark-muted, #9fb8cd); cursor: pointer; }
.mega-trigger:hover, .mega-trigger[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.mega-trigger:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.nav-item.open > .nav-link { color: #fff; border-bottom-color: var(--sky); }
.nav-item.open > .nav-link[aria-current="page"] { border-bottom-color: var(--gold); }
.mm-hs-links { margin-top: 10px; }

/* ---- v1.59: a licensed partner's own sign-in pages (white-label); colours come from /brand/{slug}.css ---- */
.partner-shell { background: #f4f6fa; }
.ps-head { background: var(--ps, #2F7FD8); color: var(--ps-on, #fff); }
.ps-head .wrap { display: flex; align-items: center; min-height: 84px; }
.ps-brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.ps-brand .halo { width: 52px; height: 52px; }
.ps-foot { padding: 28px 0 40px; color: #4d5d70; font-size: .95rem; }
.ps-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.partner-shell .btn.primary, .partner-shell button.btn:not(.ghost) { background: var(--ps, #2F7FD8); color: var(--ps-on, #fff); border-color: var(--ps, #2F7FD8); }

/* ---- v1.60 enquiry forms: steps, tiles, course chips, live summary ---- */
.lic-terms { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.lic-terms h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
form.enquiry.wizard { grid-template-columns: minmax(0, 1fr) 340px; gap: 0; padding: 0; overflow: hidden; background: #fff; border-color: var(--line); box-shadow: 0 30px 60px -40px rgba(3, 21, 39, .45); }
.wz-main { display: grid; gap: 22px; padding: clamp(22px, 3.4vw, 40px); align-content: start; }
.wz-main > p.alert { margin: 0; }
.wz-progress { list-style: none; margin: 0; padding: 0; gap: 8px; counter-reset: s; }
.wz-progress li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--mist); color: var(--muted); font-weight: 600; font-size: .92rem; }
.wz-progress b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); color: var(--night); font: 700 .9rem/1 var(--display); flex: none; }
.wz-progress li.on { background: var(--night); color: #fff; }
.wz-progress li.on b { background: var(--gold); border-color: var(--gold); }
.wz-progress li.done b { background: var(--sky); border-color: var(--sky); color: var(--night); }
.wz-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.wz-title { font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.15 var(--display); color: var(--night); letter-spacing: -.02em; padding: 0; margin-bottom: 4px; }
.wz-n { display: block; font: 600 .82rem/1.4 var(--sans); color: var(--sky-ink); letter-spacing: 0; margin-bottom: 6px; }
.js .wz-step + .wz-step { margin-top: 0; }
html:not(.js) .wz-step + .wz-step { padding-top: 26px; border-top: 1px solid var(--line); }
.field .label { font-weight: 600; font-size: .96rem; }
.field.half { max-width: calc(50% - 9px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: flex; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile span { flex: 1; display: flex; align-items: center; min-height: 54px; padding: 12px 14px 12px 42px; border: 1.5px solid #c2cfdc; border-radius: 12px; background: #fff; font-weight: 600; font-size: .95rem; line-height: 1.25; position: relative; transition: border-color .15s, background .15s; }
.tile span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid #9fb0c2; background: #fff; transition: border-width .12s; }
.tile:hover span { border-color: var(--night); }
.tile input:checked + span { border-color: var(--night); background: var(--mist); box-shadow: inset 0 0 0 1px var(--night); }
.tile input:checked + span::before { border: 5px solid var(--night); }
.tile input:focus-visible + span { outline: 3px solid var(--sky-ink); outline-offset: 2px; }
.cpick-bar { align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cpick-search { flex: 1; min-width: 220px; }
.cpick-search input { width: 100%; font: 1rem/1.4 var(--sans); padding: 12px 14px 12px 40px; border: 1.5px solid #c2cfdc; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234d5d70' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 14px 50%/18px no-repeat; }
.cpick-count { font: 600 .92rem var(--sans); color: var(--night); background: var(--mist); padding: 8px 14px; border-radius: 999px; }
.cpick { display: grid; gap: 18px; max-height: 560px; overflow: auto; padding: 4px 6px 4px 2px; margin: 0 -6px 0 -2px; overscroll-behavior: contain; }
html:not(.js) .cpick { max-height: none; }
.cpick-head { margin: 0 0 8px; font: 700 .8rem/1.3 var(--sans); color: var(--muted); }
.cpick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cchip { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.cchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cchip-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--cc); }
.cchip-text { display: grid; min-width: 0; flex: 1; }
.cchip-text b { font-size: .95rem; line-height: 1.25; color: var(--night); }
.cchip-text small { font-size: .82rem; color: var(--muted); }
.cchip-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; padding: 3px; fill: none; stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; border: 1.5px solid #c2cfdc; }
.cchip:hover { border-color: var(--cc); }
.cchip:has(input:checked) { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, #fff); box-shadow: inset 0 0 0 1px var(--cc); }
.cchip:has(input:checked) .cchip-dot { background: var(--cc); }
.cchip:has(input:checked) .cchip-tick { background: var(--night); border-color: var(--night); stroke: #fff; }
.cchip:has(input:focus-visible) { outline: 3px solid var(--sky-ink); outline-offset: 2px; }
.cpick-none { margin: 0; color: var(--muted); }
.wz-nav { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line); }
.wz-nav .btn { min-width: 132px; }
.js .wz-nav [hidden] { display: none; }
.wz-summary { flex-direction: column; gap: 14px; background: var(--night); color: var(--on-dark); padding: clamp(22px, 3vw, 32px); position: relative; }
.wz-summary::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold), var(--sky)); }
.wz-sum-kicker { margin: 0; font: 600 .82rem/1 var(--sans); color: var(--gold); }
.wz-sum-org { margin: 0; font: 600 1.35rem/1.2 var(--display); color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.wz-sum-org .muted { color: #6f89a3; }
.wz-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: .92rem; }
.wz-sum dt { color: #8fa9c2; }
.wz-sum dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.wz-sum-courses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wz-sum-courses li { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--night-3); color: #dbe8f3; }
.wz-sum-courses li.more { background: transparent; color: #8fa9c2; }
.wz-sum-foot { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: .84rem; color: #8fa9c2; }
@media (max-width: 960px) {
  form.enquiry.wizard { grid-template-columns: minmax(0, 1fr); }
  .wz-summary { border-radius: 0 0 var(--radius) var(--radius); }
  .wz-sum-foot { margin-top: 0; }
  .lic-terms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tiles, .tiles.four, .cpick-list { grid-template-columns: minmax(0, 1fr); }
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.half { max-width: none; }
  .wz-progress span { display: none; }
  .wz-progress li { justify-content: center; }
  .wz-nav .btn { flex: 1; min-width: 0; }
}

/* ---- v1.60 contact page ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-side { display: grid; gap: 14px; }
.cside { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff; display: grid; gap: 6px; }
.cside h3 { font-size: 1.1rem; }
.cside p { margin: 0; font-size: .95rem; color: var(--muted); }
.cside a.big { font: 600 1.05rem var(--sans); color: var(--night); overflow-wrap: anywhere; }
.cside.dark { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.cside.dark h3 { color: #fff; }
.cside.dark p { color: #b9cde0; }
.cside.dark a { color: var(--sky); }
.topic-notes p { margin: 0; padding: 12px 16px; border-left: 4px solid var(--sky-ink); background: var(--mist); border-radius: 0 10px 10px 0; font-size: .95rem; }
.foundation-bar .links a.academy-contact { color: var(--gold); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- v1.60 sent: the confirmation after any form ---- */
.sent-hero { background: var(--night); color: var(--on-dark); padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.sent-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(92, 200, 255, .14), transparent 65%); pointer-events: none; }
.sent-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.sent-halo { width: clamp(96px, 14vw, 150px); height: auto; }
.sent-halo path { stroke-opacity: .18; animation: segOn .5s ease forwards; }

.sent-halo path:nth-child(1) { animation-delay: .05s } .sent-halo path:nth-child(2) { animation-delay: .1s } .sent-halo path:nth-child(3) { animation-delay: .15s }
.sent-halo path:nth-child(4) { animation-delay: .2s } .sent-halo path:nth-child(5) { animation-delay: .25s } .sent-halo path:nth-child(6) { animation-delay: .3s }
.sent-halo path:nth-child(7) { animation-delay: .35s } .sent-halo path:nth-child(8) { animation-delay: .4s } .sent-halo path:nth-child(9) { animation-delay: .45s }
.sent-halo path:nth-child(10) { animation-delay: .5s } .sent-halo path:nth-child(11) { animation-delay: .55s } .sent-halo path:nth-child(12) { animation-delay: .6s }
@keyframes segOn { to { stroke-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sent-halo path { animation: none; stroke-opacity: 1; } }
.sent-ref { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--night-3); color: #dbe8f3; font: 600 .9rem var(--sans); }
.sent-ref b { font-family: var(--mono); color: var(--gold); letter-spacing: .04em; }
.sent-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.sent-hero .lede { color: #dbe8f3; margin-top: .8rem; max-width: 56ch; }
.sent-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.sent-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.sent-card h2 { font-size: 1.35rem; }
.sent-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.sent-dl dt { color: var(--muted); font-size: .92rem; }
.sent-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sent-msg { margin: 0; padding: 14px 16px; background: var(--mist); border-radius: 12px; font-size: .95rem; white-space: pre-line; max-height: 220px; overflow: auto; }
.sent-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
.sent-steps li { position: relative; padding: 0 0 22px 52px; counter-increment: st; }
.sent-steps li:last-child { padding-bottom: 0; }
.sent-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold); font: 700 .95rem/1 var(--display); }
.sent-steps li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.sent-steps li:last-child::after { display: none; }
.sent-steps b { display: block; color: var(--night); }
.sent-steps span { font-size: .95rem; color: var(--muted); }
.sent-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #f1f9ff; border: 1px solid #cfe9fb; font-size: .95rem; }
.sent-note svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--sky-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.sent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .sent-body { grid-template-columns: minmax(0, 1fr); } .sent-top { grid-template-columns: minmax(0, 1fr); } }
@media print { .site-header, .foundation-bar, .site-footer, .action-bar, .sent-actions { display: none !important; } .sent-hero { background: #fff; color: #000; } .sent-hero h1, .sent-hero .lede { color: #000; } }
.js .js-only[hidden] { display: none; }

/* Course chip colours, one per subject (the subject's halo colour; inline styles are blocked by the CSP) */
.cchip { --cc: #E3A857; }
.cc-tech { --cc: #5CC8FF; }
.cc-english { --cc: #E3A857; }
.cc-maths { --cc: #8B7CF6; }
.cc-science { --cc: #3DBE8B; }
.cc-hsie { --cc: #F08A4B; }
.cc-pdhpe { --cc: #F25F7A; }
.cc-uni { --cc: #4F7DF0; }
.cc-work { --cc: #C46FE0; }
.cc-community { --cc: #9CC54A; }

.wz-summary dd .wz-email { display: block; font-weight: 400; opacity: .75; overflow-wrap: anywhere; font-size: .9em; }

/* v1.61: PTE Academic beside IELTS and TOEIC® */
.et-aim { align-self: start; padding: 24px 28px; border-radius: var(--radius); background: var(--night); color: #fff; }
.et-aim h4 { margin: 0 0 12px; font: 700 1.1rem/1.2 var(--display); }
.et-aim dl { margin: 0; display: grid; gap: 12px; }
.et-aim dl div { display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr; gap: 14px; align-items: baseline; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.et-aim dt { font: 700 1.6rem/1 var(--display); color: var(--gold, #E3A857); }
.et-aim dl div:last-child { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.et-aim dl div:last-child dt { font-size: 1.15rem; line-height: 1.2; }
.et-aim dd { margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.et-aim .small { margin: 14px 0 0; color: rgba(255, 255, 255, .7); }
.test-wide { grid-column: 1 / -1; }

/* v1.62: a conversation with the Academy team, from the link in our emails */
.convo-wrap { display: grid; gap: 22px; max-width: 760px; }
.convo-flash { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--sky-ink); font-weight: 600; }
.convo { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.convo-msg { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; width: min(100%, 640px); }
.convo-msg.you { justify-self: end; border-bottom-right-radius: 4px; }
.convo-msg.team { border-left: 4px solid var(--gold); border-bottom-left-radius: 4px; }
.convo-msg p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.convo-head { display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 8px; }
.convo-head span { color: var(--muted); }
.convo-form { margin-top: 6px; }

/* v1.63: files the team sends with a reply */
.convo-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.convo-files li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.convo-files a { font-weight: 600; overflow-wrap: anywhere; }
.convo-files span { color: var(--muted); font-size: .88rem; }
