/* AVANT public site.
   One stylesheet, no framework. A parent opens this on a phone between other
   things, so it has to paint at once and read without pinching. */

:root {
  --ink: #14213d;
  --ink-soft: #4a5568;
  --gold: #f0a81d;
  --gold-hover: #d8930c;
  --gold-dark: #8f6210;
  --go: #15803d;
  --go-hover: #126934;
  --paper: #ffffff;
  --paper-alt: #f6f4ef;
  --line: #e2ded4;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

/* An author rule that sets `display` beats the browser's own
   `[hidden] { display: none }`, whatever the specificity - so a .session-years
   laid out with flex, or an .enrol-form laid out with grid, stays on screen
   after JavaScript hides it. Everything on this site that is shown and hidden
   from script relies on the attribute, so it is settled once here. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--gold-dark); }

/* --- icons ---------------------------------------------------------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 30px; height: 30px; color: var(--gold-dark); margin-bottom: 12px; display: block; }
.icon-xl { width: 44px; height: 44px; color: var(--gold-dark); margin-bottom: 14px; display: block; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* --- header --------------------------------------------------------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.nav-home {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
}
.nav-home:hover { background: var(--paper-alt); color: var(--gold-dark); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--gold-dark); }
/* The portal button is navy, so it needs its white text back: `.nav a` is the
   more specific rule and was painting the label the same colour as the button
   it sits on. */
.nav a.btn-portal, .nav a.btn-portal:hover { color: #fff; }

/* --- buttons -------------------------------------------------------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 0.97rem; line-height: 1.2;
  border: 2px solid transparent;
  /* This class was written for <a>, which gets a hand cursor for free. A
     <button> does not, and "Pay $750 now" is a button - so on a desktop the
     one control the whole site exists to get pressed looked like plain text
     under the pointer. Found by hovering it, not by reading this file. */
  cursor: pointer;
  /* And a <button> inherits neither the page font nor the text alignment,
     which is why the pay button needs both stated here rather than being
     patched per-button later. */
  font-family: inherit; text-align: center;
}
.btn[disabled] { cursor: not-allowed; }
.btn-primary { background: var(--gold); color: #1a1205; }
.btn-primary:hover { background: var(--gold-hover); color: #1a1205; }
.btn-trial { background: var(--gold); color: #1a1205; padding: 10px 18px; }
.btn-trial:hover { background: var(--gold-hover); color: #1a1205; }
.nav a.btn-trial, .nav a.btn-trial:hover { color: #1a1205; }
/* The first thing the front page asks of a parent is to look, not to write,
   so the classes button is filled and the enquiry sits beside it in gold.
   Green at this depth, not a brighter one: it carries white text at 5:1, and
   a pale green would need dark text and then read as a second gold. */
.btn-go { background: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-hover); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-portal { background: var(--ink); color: #fff; padding: 10px 18px; }
.btn-portal:hover { background: #0c1730; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* --- hero ----------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, #14213d 0%, #1f3160 60%, #2a3f73 100%);
  color: #fff; padding: 72px 0 64px;
  position: relative; overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 2; }

/* Footage sits over the gradient and under a veil. The gradient is the
   design, not a fallback: with no video, a slow connection or reduced motion
   asked for, the hero is exactly what it was, so nothing here is ever a
   blank navy box waiting on a download. */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; border: 0;
}
/* Angled rather than flat, and heaviest on the left, because that is the
   side the words are on. It has to hold white text at 4.5:1 over whatever
   the camera happened to be pointing at - including a bright sky. */
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(20, 33, 61, 0.94) 0%, rgba(20, 33, 61, 0.86) 42%,
      rgba(20, 33, 61, 0.62) 100%);
}
/* Asked for less movement: no footage, and no veil either - the veil only
   exists to hold text over a picture, so leaving it behind would darken the
   gradient for the one visitor who opted out of the effect. */
@media (prefers-reduced-motion: reduce) {
  .hero-video, .hero-veil { display: none; }
}
/* The mark carries its own white panel; that panel is part of the logo, not a
   background, so it needs nothing behind it. An added plate with padding was
   what made it read as a sticker. */
.hero-logo {
  display: block; width: 280px; max-width: 74%; height: auto;
  margin: 0 0 26px;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(1.9rem, 5vw, 3rem);
  /* 22ch, not 18: the longer headline broke to four lines at 18 and left
     the hero taller than the fold on a laptop. */
  line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch;
}
.hero .lede { color: #d9dff0; font-size: 1.12rem; max-width: 58ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* --- bands ---------------------------------------------------------- */
.band { padding: 56px 0; }
.band-alt { background: var(--paper-alt); }
.band h2 {
  margin: 0 0 8px; font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  letter-spacing: -0.015em;
}
.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 62ch; }
.note { color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }
/* The one instruction on the page, and the only thing standing between a
   parent and the basket: nothing on this site told them a card is a
   control at all. Red because it is the single thing here that is not
   information - everything else on the page describes a class, and this
   says what to do with one. It is the only red on the site, which is both
   what makes it work and the reason there should not be a second. */
.basket-hint {
  margin: 14px 0 0; display: inline-block; max-width: 62ch;
  padding: 11px 16px;
  background: #fdf3f2; border: 2px solid #c0392b; border-radius: 9px;
  color: #8c2a1f; font-weight: 700; font-size: 0.97rem; line-height: 1.4;
}
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

.cards {
  display: grid; gap: 18px; margin: 26px 0 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px;
}
.band-alt .card { background: #fff; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card-years {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gold-dark); margin: 0 0 8px !important;
}

/* The last cell of the course grid: same column width as a card, but only as
   tall as it needs to be, so it reads as the end of the row rather than a
   sixth course. */
.card-tile {
  align-self: start;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding-right: 56px;
  background: var(--gold); border-color: var(--gold);
  color: #1a1205; font-weight: 800; text-decoration: none;
  padding: 20px 22px;
}
.card-tile:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #1a1205; }
.band-alt .card-tile { background: var(--gold); }
.card-tile-arrow { font-size: 1.2rem; line-height: 1; }
.card-link h3 a { color: inherit; text-decoration: none; }
.card-link h3 a:hover { color: var(--gold-dark); text-decoration: underline; }
.price-inline { margin: 0 0 8px !important; }

.crumb { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 18px; }
.crumb a { text-decoration: none; font-weight: 600; }
.crumb span { margin: 0 6px; }
.prose { max-width: 66ch; }
.prose p { font-size: 1.06rem; margin: 0 0 18px; }
/* The privacy page is the only prose on the site with headings and lists in
   it, so they are settled here rather than left to the browser - a default
   h2 at 1.5em directly under a 1.06rem paragraph reads as a new page
   starting rather than a new question being answered. */
.prose h2 { font-size: 1.14rem; margin: 30px 0 10px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { font-size: 1.06rem; margin: 0 0 7px; }
.prose .note { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Said at the Pay button, so it is quieter than the sentence about Stripe
   above it - a parent should be able to read past it, and a notice in the
   same weight as the instructions would read as a warning. */
.pay-privacy { font-size: 0.86rem; color: var(--ink-soft); }

/* A plotted curve across the foot of the page: the axis dashed behind it,
   the curve drawn over, and a point marked at each turning point. It tiles
   horizontally rather than stretching, so the wavelength is the same on a
   phone as on a desktop - a sine squashed to fit the viewport would read as
   a decoration that had gone wrong rather than a curve.

   Purely decorative, so it is a background rather than an element: nothing
   in the page outline, nothing for a screen reader to announce, and nothing
   for a parent to try to press. */
.cta-band {
  background: var(--ink); color: #fff; text-align: center;
  position: relative; overflow: hidden; padding-bottom: 104px;
}
.cta-band .lede { color: #d9dff0; margin: 0 auto 24px; }
.cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px;
  height: 78px; pointer-events: none;
  background: repeat-x left bottom / 240px 78px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 78' fill='none'%3E%3Cpath d='M0 39H240' stroke='%23f0a81d' stroke-opacity='.20' stroke-width='1.5' stroke-dasharray='6 7'/%3E%3Cpath d='M0 39C30 9 90 9 120 39S210 69 240 39' stroke='%23f0a81d' stroke-opacity='.72' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='60' cy='16.5' r='3.2' fill='%23f0a81d' fill-opacity='.85'/%3E%3Ccircle cx='180' cy='61.5' r='3.2' fill='%23f0a81d' fill-opacity='.85'/%3E%3C/svg%3E");
}


/* --- courses -------------------------------------------------------- */
/* The head is a heading and two controls, not a section of its own.
   52px above it and 8px below made it sit high and then fall straight
   into the first band with nothing between. */
.page-head { padding: 36px 0 28px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4.5vw, 2.5rem); letter-spacing: -0.02em; }
.price { margin: 0 0 0 auto; font-weight: 800; color: var(--ink); }
.course-sub {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-soft); margin: 18px 0 8px;
}
.ticks { margin: 0 0 4px; padding-left: 0; list-style: none; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--gold-dark); font-weight: 800;
}

/* --- reviews -------------------------------------------------------- */
/* `align-items: start` so a two-line note stays two lines deep instead
   of being stretched to its tallest neighbour, and a little more room
   than a grid of cards needs because each note is rotated and the
   corners swing out past the box. */
.quotes {
  display: grid; gap: 26px 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  margin-bottom: 34px; padding-top: 6px;
}
/* Notes pinned to a board, not cards in a grid.
 *
 * These are the only words on the site that are not the school's own, so
 * they should not be set in the school's own furniture. Paper colours, a
 * strip of tape, and a degree or two of rotation read as something a
 * parent wrote and somebody kept - which is what they are.
 *
 * The rotation is per-note and small. Much past two degrees and the text
 * starts to look like a mistake rather than a note; alternating the
 * direction stops three in a row leaning the same way and looking like a
 * broken grid. `align-items: start` on the row keeps a short note short
 * instead of stretching it to match its tallest neighbour. */
.quote {
  margin: 0; padding: 30px 24px 22px;
  background: #fffdf3;
  border: 0; border-radius: 2px;
  position: relative;
  transform: rotate(-1.1deg);
  box-shadow:
    0 1px 2px rgba(20, 33, 61, 0.10),
    0 10px 22px rgba(20, 33, 61, 0.11);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.quote:nth-child(2n) { background: #f4f9f5; transform: rotate(1.3deg); }
.quote:nth-child(3n) { background: #f3f7fd; transform: rotate(-0.5deg); }
.quote:nth-child(5n) { background: #fdf4f3; transform: rotate(0.8deg); }
/* The tape. Deliberately not centred on every note - a strip stuck by
   hand does not land in the same place twice. */
.quote::before {
  content: '';
  position: absolute; top: -9px; left: 50%;
  width: 92px; height: 21px; margin-left: -46px;
  background: rgba(240, 168, 29, 0.38);
  border-left: 1px solid rgba(240, 168, 29, 0.5);
  border-right: 1px solid rgba(240, 168, 29, 0.5);
  transform: rotate(-2.4deg);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.12);
}
.quote:nth-child(2n)::before { margin-left: -70px; transform: rotate(3.2deg); }
.quote:nth-child(3n)::before { margin-left: -20px; transform: rotate(-1.4deg); }
/* Picking one up straightens it. */
.quote:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    0 2px 3px rgba(20, 33, 61, 0.10),
    0 16px 32px rgba(20, 33, 61, 0.17);
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .quote, .quote:hover { transition: none; }
}
.quote blockquote { margin: 0 0 12px; }
.quote blockquote p { margin: 0; font-size: 1.04rem; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { font-weight: 700; font-size: 0.92rem; }
.quote-ctx { font-weight: 500; color: var(--ink-soft); }

/* --- advantage and course-card buttons ------------------------------- */
.card-cta { margin-top: 14px !important; }

/* --- contact -------------------------------------------------------- */
/* The contact page is the one place on this site with a frosted-glass
 * treatment, in the Apple manner: translucent panels over a tinted scene,
 * a hairline of light along the top edge, and a wide soft shadow.
 *
 * The thing that makes or breaks it: `backdrop-filter` blurs WHAT IS BEHIND
 * the element, so over a flat white page it blurs white and you get nothing
 * but a tint. The scene below exists to give it something to blur - two
 * out-of-focus washes of the brand gold and ink, far enough apart that the
 * panels sit over the gradient between them rather than over a bright spot.
 *
 * Scoped to .contact-scene throughout, because glass costs a compositor
 * layer and a blur pass per painted frame; it is worth it on one page a
 * parent reads once, and not on the timetable they scroll. */
/* The scene is painted once, on the body, and not per section.
 *
 * It was two gradients on the two <section>s to begin with, and the seam
 * between them was plainly visible: each restarted the gradient at its own
 * top, so the page darkened, jumped back to light, and darkened again. The
 * blobs were pseudo-elements inside the band, which clipped them against its
 * top edge and drew a bright horizontal cut across the page.
 *
 * Fixed, so it does not scroll with the content and has no edge to clip
 * against - and behind everything at z-index -1, which is why the panels can
 * blur it. */
body[data-page="contact"] { background: #f8f6f0; }
body[data-page="contact"]::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58rem 40rem at 6% 16%, rgba(240, 168, 29, 0.32), rgba(240, 168, 29, 0) 62%),
    radial-gradient(52rem 44rem at 96% 92%, rgba(20, 33, 61, 0.14), rgba(20, 33, 61, 0) 64%),
    linear-gradient(165deg, #fdfaf3 0%, #f6f3ec 55%, #f1efe8 100%);
}
.contact-scene { position: relative; }

/* The gap between the lede and the form was about 100px, from three
   separate sources stacking: the page head's own 28px bottom padding, the
   band's 56px top padding, and the ~18px bottom margin a <p> carries by
   default. None of them is wrong on a page of cards - this is one panel
   directly under one sentence, and the three together read as a hole.
   Closed to about 36px, which still separates the two without the form
   falling off the bottom of a laptop screen. */
.contact-scene.page-head { padding-bottom: 4px; }
.contact-scene.page-head .lede { margin-bottom: 0; }
.contact-band { padding-top: 32px; padding-bottom: 64px; }

/* Opaque first. Every rule that depends on the blur lives in the @supports
 * below, so a browser without it gets a clean solid card rather than a
 * washed-out one - which is what a plain rgba() panel degrades into. */
.contact-scene .glass {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 40px -26px rgba(20, 33, 61, 0.3);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contact-scene .glass {
    background: rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: blur(24px) saturate(1.7);
    backdrop-filter: blur(24px) saturate(1.7);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 1px 2px rgba(20, 33, 61, 0.06),
      0 22px 48px -28px rgba(20, 33, 61, 0.34);
  }
}
/* Somebody who has asked their OS to cut transparency has asked for this
 * page too, and the tinted scene goes with it. */
@media (prefers-reduced-transparency: reduce) {
  body[data-page="contact"] { background: var(--paper); }
  body[data-page="contact"]::before { display: none; }
  .contact-scene .glass {
    background: var(--paper-alt); border-color: var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: none;
  }
}

.form-wrap {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}

/* --- the form ---
 * Spacing, deliberately, on three steps rather than one 16px gap for
 * everything: 7px between a label and its own box, 18px between one field
 * and the next, and 26px before the button. The old single gap made the
 * label-to-input distance and the field-to-field distance identical, so the
 * eye had nothing to group by and six fields read as twelve loose rows. */
.enquiry { display: grid; gap: 18px; max-width: 34rem; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.005em; }
.field .opt { font-weight: 500; color: var(--ink-soft); }
/* Phone and the year of school are both short answers, so they share a row
 * on anything wide enough - which pulls the message box up the page and
 * keeps the whole form inside one screen on a laptop. */
.field-pair { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit; color: inherit; padding: 12px 14px;
  border: 1px solid rgba(20, 33, 61, 0.16); border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  width: 100%; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.enquiry textarea { resize: vertical; min-height: 7.5rem; }
.enquiry input:hover, .enquiry select:hover, .enquiry textarea:hover {
  border-color: rgba(20, 33, 61, 0.28);
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus {
  outline: 2px solid var(--gold-dark); outline-offset: 1px;
  border-color: var(--gold-dark); background: var(--paper);
}
.enquiry button {
  justify-self: start; cursor: pointer; border: 0;
  margin-top: 8px; border-radius: 999px;
  box-shadow: 0 10px 22px -14px rgba(143, 98, 16, 0.7);
}
.form-note { margin: 0; font-size: 0.88rem; }

/* --- reach us directly ---
 * Was five bare <p> lines where only the shape of the text told you which
 * was a phone number and which was a postcode. Now each is an icon, the
 * word for what it is, and the value - which is also what makes it tappable
 * with confidence on a phone. */
.contact-direct { padding: 26px 24px; }
.contact-direct h2 {
  margin: 0 0 18px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
}
.cd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cd-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 10px 10px 8px; margin: 0 -6px; border-radius: 14px;
}
/* A hover that lifts the row out of the glass rather than colouring it. */
.cd-item:hover { background: rgba(255, 255, 255, 0.55); }
.cd-ico {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  color: var(--gold-dark);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 168, 29, 0.18));
  border: 1px solid rgba(240, 168, 29, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cd-body { display: grid; gap: 1px; min-width: 0; }
.cd-label {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-soft);
}
/* overflow-wrap, because a long enquiry address is one unbreakable word and
 * this is the narrow column of the two. */
.cd-value { font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
a.cd-value { text-decoration: none; }
a.cd-value:hover { text-decoration: underline; }

/* `center`, because this row stopped being two buttons.
 *
 * It holds a button and the Google card now, and the card is the taller
 * of the two - so the flex default of `stretch` was pulling the button
 * to the card's height and giving a 12px button a 60px box. The card
 * also carries a 16px top margin of its own, from sitting under a
 * paragraph on the front page, which pushed it out of line here. */
.review-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0;
}
.review-actions .grev { margin-top: 0; }
/* The Google card to the left edge, the enquiry button to the right one.
   `space-between` does that with two children and nothing else, and once the
   row wraps on a phone each lands on its own line at the left, which is where
   a stacked row belongs. */
.review-actions-split { justify-content: space-between; }

/* --- footer --------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 10px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-foot p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 860px) {
  .form-wrap { grid-template-columns: 1fr; gap: 24px; }
  /* The form is full width once stacked, so the aside stops being a
     narrow column and the form stops needing a reading measure. */
  .enquiry { max-width: none; }
}

/* Two half-width boxes on a phone are too narrow to type a number into,
   so the pair stacks before the layout does. */
@media (max-width: 520px) {
  .field-pair { grid-template-columns: 1fr; }
  .contact-scene .glass { padding: 20px 18px; border-radius: 16px; }
}

@media (max-width: 760px) {
  .nav-home span { display: none; }
  .nav-home { padding: 8px; }
}

@media (max-width: 560px) {
  /* 10px 0 here was shorthand, so it replaced the 0 20px that .wrap sets
     and not just the vertical half of it. The logo and nav went flush to
     the screen edge on a phone while every heading below them kept the
     20px gutter - the header looked shoved left against its own page. The
     gutter is named again rather than left to be inherited, because that
     is what the shorthand takes away. */
  .head-row { flex-wrap: wrap; gap: 8px; padding: 10px 20px; }
  .nav { gap: 10px; flex-wrap: wrap; }
  .nav a { font-size: 0.88rem; }
  .nav a:not(.btn) { font-size: 0.88rem; }
  .btn-trial, .btn-portal { padding: 8px 14px; font-size: 0.85rem; }
  .hero-logo { width: 220px; }
  .hero { padding: 52px 0 46px; }
  .band { padding: 42px 0; }
}

/* Only ever on a local preview build. */
.preview-flag {
  margin: 0; padding: 8px 16px; text-align: center;
  background: #8b1a1a; color: #fff; font-size: 0.82rem; font-weight: 700;
}

/* --- what it covers, folded away ------------------------------------ */
/* A native disclosure: it opens with JavaScript off, it is operable from the
   keyboard without any help from us, and a search engine still reads the
   contents while it is shut. */
.covers { margin: 14px 0 0; border-top: 1px solid var(--line); }
.covers > summary {
  cursor: pointer; list-style: none; padding: 12px 0;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-soft); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.covers > summary::-webkit-details-marker { display: none; }
.covers > summary::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.15s ease;
}
.covers[open] > summary::before { transform: rotate(45deg); }
.covers > summary:hover { color: var(--gold-dark); }
.covers > summary:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.covers .ticks { padding-bottom: 6px; }

/* --- the year filter ------------------------------------------------- */
/* This is the first thing a parent should do on the page and it used to look
   like the last: a 0.92rem label and a row of pale outlines, set below the
   heading in the same white as everything else, reading as decoration rather
   than as a question. A parent who walked past it got every year's classes at
   once and had to read the year range on each tile.

   So it is a panel now - its own gold-washed card with a heading-sized ask
   and the consequence spelled out beside it. The chips are the same shape as
   before but large enough to be the obvious thing to press. */
/* The filter is a control, not a feature.
 *
 * It had a 2px gold border, a gradient, 16px corners and 18px of inside
 * padding - the heaviest box on the page, directly under a red one, and
 * between them they pushed the first class 476px down. Two outlined
 * blocks stacked also make a parent read twice before reaching anything
 * they came for.
 *
 * One of them has to be the quiet one, and it is this: the hint is a
 * sentence that is only read once, while the chips are furniture that
 * stays. A single hairline and a flat tint keep it legible without
 * competing. */
/* One vertical scale, not three ad-hoc gaps: 8px inside a group, 18px
   between groups. The panel used to mix 8, 10 and 16 with no rule behind
   which was which, so nothing on it grouped by eye. 22px above it, because
   it sits under the red basket hint and 16px had the two boxes touching. */
.year-filter {
  display: grid; gap: 18px;
  margin: 22px 0 0; padding: 16px 20px;
  background: #fdf7ea;
  border: 1px solid #e8d6a8; border-radius: 12px;
}
.filter-group { display: grid; gap: 8px; }
/* Every row is a label and its chips, on one 132px label column, so every
   chip in the panel starts on the same vertical line - the reset included.
   The resets were at the far right of their band for a while, which put the
   two loudest things on the panel (navy on cream, and pressed by default)
   in a corner 1100px from the words naming them, with the options they
   reset trailing off to the left. */
/* The rule and the air are what stop the subjects reading as a third kind
   of year - the thing being stacked under the years, on its own, did not. */
.filter-group-subject { border-top: 1px solid #e8d6a8; padding-top: 18px; }

/* The six subject names across one line: 910px of the 1167px the panel
   has at a laptop width, so they sit on one row and wrap to two when the
   window is narrower. */
.subj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* A subject name never breaks across two lines. "Textual Analysis & Essay
   Writing" wrapped in the middle and centred itself, which made it twice as
   tall as the chips beside it for no reason a reader could see. */
.subj-chip { white-space: nowrap; }
/* A row is its school's name and that school's years. The label is a
   fixed width so the two rows of chips start on the same vertical line
   - ragged starts would read as two unrelated lists rather than two
   halves of one question. */
/* Top-aligned, not centred. The subject row wraps to two lines of chips
   at most widths, and centring put SUBJECT in the gap between them. The
   label's 10px of padding is what puts it back on the middle of the FIRST
   line of chips - which on a one-line row is exactly where centring had
   it, so the three year rows are unchanged. */
.year-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.year-row-label {
  padding-top: 10px;
  /* Wide enough for "PRIMARY SCHOOL" on one line. At 108px it broke
     after "PRIMARY", which made that row two lines deep and the two
     rows different heights for no reason a reader could see. */
  flex: none; width: 132px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft); line-height: 1.3;
}

.year-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.year-chip {
  font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid #e8d6a8; border-radius: 999px; padding: 6px 14px;
  transition: border-color .12s ease, background-color .12s ease;
}
.year-chip:hover { border-color: var(--ink); }
/* The chosen year is navy on white-gold, which is the strongest contrast on
   the panel - a parent glancing back has to see which one is on without
   reading the row. */
.year-chip[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 2px 0 var(--gold-dark);
}
.year-chip:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
@media (max-width: 560px) {
  .year-filter { padding: 14px 15px; }
  .year-chip { padding: 8px 15px; font-size: 0.9rem; }
}

/* Choosing a year changes what every tile on the page means, so the banner
   that says which year is on has to carry that weight. As a grey strip of
   small print it was the quietest thing on screen while being the most
   consequential; now the year is set at heading size against the gold, and
   the way back out is a button rather than an underlined word. */
.year-note {
  background: linear-gradient(180deg, #fdf3dd, #fbeac4);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid #e8d49a;
}
.year-note-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 18px; padding: 16px 20px;
}
.year-note-text { margin: 0; }
.year-note-year {
  font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
}
/* On its own line under the year, led by a live dot: the year says what you
   are looking at, the line under it says how much of it there is. */
.year-note-year { display: block; }
.year-note-rest {
  display: flex; align-items: center; gap: 7px; margin-top: 2px;
  font-size: 1rem; font-weight: 700; color: var(--ink-soft);
}
.year-note-rest::before {
  content: ""; width: 9px; height: 9px; flex: none;
  border-radius: 50%; background: #2fd45f;
  box-shadow: 0 0 0 3px rgba(47, 212, 95, 0.28);
}
.year-note-clear {
  font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--gold-dark); border-radius: 999px;
  padding: 8px 16px; text-decoration: none;
}
.year-note-clear:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.year-note-clear:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

/* --- the timetable --------------------------------------------------- */
/* --- the week ------------------------------------------------------- */
.week { display: grid; gap: 26px; }
.band .day-head {
  margin: 0 0 12px; font-size: 1.3rem; font-weight: 800;
  letter-spacing: 0;
  padding-bottom: 7px; border-bottom: 2px solid var(--line);
}
/* The band's own name. `.band h2` gives it the size; it only needs room
   underneath, because what follows is a heading too and 8px would read as
   one heading wrapped onto two lines. */
.week-head { margin-bottom: 24px; }
.week-none { color: var(--ink-soft); margin: 0; }
/* Three to a row. A subject with nine class times across its year groups was
   nine full-width rows deep before this, and a parent comparing a Saturday
   against a Thursday could not see both at once - which is the whole job of
   this part of the page. */
.sessions, .oneoffs {
  list-style: none; margin: 0; padding: 0;
  /* Roomier than it was. The tick hangs off the top-right corner of a
     chosen card, so a tight 12px gutter put it almost against the card
     next door; and a row of tiles this dense was hard to scan even
     before anything hung off them. */
  display: grid; gap: 20px 18px;
  /* Each tile is its own height.
   *
   * A grid row stretches its items to the tallest, and the note sits
   * inside the <li> under the card - so a card with no note stretched to
   * cover the space its neighbours were using for theirs. Three programs
   * in a row, two with a note: the third card came out 142px against
   * their 102 and looked like a mistake, which it was.
   *
   * The cards do not go ragged for it. They were only ever the same
   * height because the row forced them to be; their content is the same
   * shape, so they come out level on their own - measured at 102 across
   * the programs and 127 across a Tuesday of six classes. */
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Wider cards, still three across.
   Inside a fixed column those two are the same wish pulling opposite ways:
   the only way to widen a card within 1080px is to fit fewer of them, and
   three to a row is the point - a parent comparing a Saturday against a
   Thursday has to see both at once. So the column widens instead.

   It is done by moving the measure for the whole page rather than for the
   timetable alone: a wider block of cards under a heading still set to 1080
   starts further left than the heading does, and a page where the day names
   do not line up with the title above them reads as broken, not as roomy.
   Every .wrap takes its width from this one variable, the header's included,
   so they all move together and nothing comes unaligned. */
body[data-page="courses"] { --wrap: 1240px; }

/* The tile is the control, not a row with a button on the end: a bigger
   target, and nothing on it that looks pressable except the thing that is. */
.session { display: grid; }
.session-pick {
  display: grid; gap: 2px; width: 100%; height: 100%;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  align-content: start;
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  box-shadow: var(--tile-lift);
  transition: border-color 0.12s ease, background 0.12s ease,
              box-shadow 0.12s ease, transform 0.12s ease;
}
/* Depth, as a card sitting on the page rather than a panel drawn on it: a
   solid edge in the subject's own colour with a soft cast under it. The two
   shadows do different jobs - the solid one is the thickness of the card and
   must stay crisp, the soft one is the light and must not. Hovering lifts
   the card and lengthens both, which is what reads as rising rather than
   growing.

   Defined as a variable because the picked state redefines it in green and
   would otherwise have to restate the whole stack. */
.session { --tile-edge: color-mix(in srgb, var(--sub, var(--line)) 42%, transparent); }
.session-pick {
  --tile-lift: 0 3px 0 var(--tile-edge), 0 4px 10px rgba(20, 33, 61, 0.10);
}
.session-pick:hover {
  border-color: var(--ink); background: #fff;
  transform: translateY(-2px);
  --tile-lift: 0 5px 0 var(--tile-edge), 0 10px 18px rgba(20, 33, 61, 0.16);
}
/* Pressed, it sits down on its own edge. */
.session-pick:active {
  transform: translateY(1px);
  --tile-lift: 0 1px 0 var(--tile-edge), 0 2px 5px rgba(20, 33, 61, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .session-pick { transition: none; }
  .session-pick:hover, .session-pick:active { transform: none; }
}
.session-pick:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.session.is-picked .session-pick {
  border-color: var(--go); border-width: 2px; padding: 11px 13px;
  background: #f1f8f3;
}

/* The tick.
 *
 * A green border and a pale green wash were the whole signal before, and
 * on a page of twenty-three cards in three columns they were far too
 * quiet - a parent scrolling for their child's year could not see what
 * was already in the basket without stopping to compare shades. This is
 * meant to carry from the far side of the page.
 *
 * It hangs off the top-right corner, mostly outside the card. Breaking
 * its own edge is what makes it read as pinned to the tile rather than
 * drawn inside it, and the white ring keeps it legible where it crosses
 * the border. The mark is an inline SVG rather than a character, so it
 * is the same tick on every machine and stays sharp at any size.
 *
 * It hangs off the <li>, not off the button inside it, and that is the
 * whole reason it holds still. The button lifts two pixels under the
 * cursor; anything parented to it lifts as well, so the tick used to
 * twitch every time the pointer crossed a card. The <li> does not move,
 * so neither does the tick - the card can lift out from under it. */
.session { position: relative; }
.session.is-picked::after {
  content: '';
  position: absolute; z-index: 3;
  top: -13px; right: -13px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.6l5.4 5.4L20 7'/%3E%3C/svg%3E") center / 21px 21px no-repeat;
  box-shadow: 0 0 0 3px var(--paper), 0 6px 16px rgba(21, 128, 61, 0.35);
  pointer-events: none;
}
.session.is-picked { --tile-edge: color-mix(in srgb, var(--go) 36%, transparent); }
/* The subject leads now. On a page grouped by day it is the thing that
   differs between two tiles in the same row; the time comes second because
   the day heading has already answered most of the question. */
.session-subject {
  font-weight: 800; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em;
}
/* The time is the second thing a parent is reading the tile for - which
   night, and whether it clashes with the other child's - and it was set in
   the same soft grey as the year range below it, a size down from the title
   and the same weight as the small print. It carries its own weight now:
   full ink, a notch bolder, and lining tabular figures so the times in a row
   of cards line up with each other instead of drifting by the width of a 1. */
.session-when {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.session-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.82rem; color: var(--ink-soft); }
/* The year, in front of the subject. Full ink against the subject colour
   the name is set in, so the eye lands on it first, and the separator is
   decorative - a screen reader hears "Y4 Thinking Skills", which is what
   the two words are. */
.session-yr { color: var(--ink); font-weight: 900; }
.session-yr::after {
  content: " · "; color: var(--ink-soft); font-weight: 700;
}
/* How many are in the class, led by a head-and-shoulders silhouette. The
   icon is a mask rather than a character or an image tag, so one rule sets
   the shape and the colour follows the subject the tile belongs to. */
.session-roll {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.session-roll::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background-color: var(--sub, var(--ink-soft)); opacity: 0.85;
  -webkit-mask: var(--head-mask); mask: var(--head-mask);
}
/* How much of the class is left, as a word rather than a sum.
 *
 * "6 of 8 enrolled" asks a parent to do arithmetic on a phone while deciding
 * between four Tuesdays. These two say the thing the arithmetic was for.
 *
 * Deliberately not red. A full class is not an error or a warning - it is
 * the school's own evidence that the classes fill, and the page it sits on
 * is selling that. Ink on a tinted ground reads as a label; red reads as
 * something having gone wrong. */
.session-fill {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.02em; white-space: nowrap;
}
.session-fill-full {
  background: #efe7d7; color: var(--gold-dark); border: 1px solid #e0cfa8;
}
.session-fill-near {
  background: #fdf7ea; color: var(--gold-dark); border: 1px solid #ecdcb4;
}
/* A full class cannot be picked, and has to look as though it cannot before
   the parent finds out by pressing it. Faded rather than greyed out: the
   class and its time still have to be readable, because a parent reading the
   timetable to see whether Tuesday works still needs to know this class is
   on Tuesday. Only the invitation to press is withdrawn. */
.session-is-full { opacity: 0.62; }
.session-is-full .session-pick { cursor: not-allowed; }
.session-is-full .session-pick:hover { background: none; }
/* The label itself keeps its full strength - it is the one thing on a faded
   card that should not be faded, since it is the reason for the fading. */
.session-is-full .session-fill-full { opacity: 1; }
.session-state { font-size: 0.84rem; font-weight: 800; color: var(--go); }
/* Hidden, not removed. `display: none` took the line out of the card, so
   a card grew 102px -> 127px the moment it was picked and every row below
   it moved down the page - the same complaint as the basket reflowing the
   page, in miniature, and on the very card being clicked. Reserving the
   line means picking a class changes the card's colour and its tick and
   nothing else. The empty span still carries the ::before tick, so the
   space held is exactly the space filled. */
.session-state:empty { visibility: hidden; }
.session-state::before { content: "\2713  "; }

/* While a tile is asking which year, it takes the whole row so the chips sit
   on one line rather than wrapping inside a third of a card. */
.session.is-asking { grid-column: 1 / -1; }
.session-warn { margin: 2px 0 0; font-size: 0.87rem; color: #8a3c0b; font-weight: 600; }
/* Anything true of one class and not of the others: a different room, a
   week it does not run, what to bring. It sits under the card rather
   than inside it, joined by the spine on the left, so the card stays one
   clean control and the note reads as an annotation on it - which is
   what it is. Quiet by default, because most cards will never carry one
   and a page of twenty-three shouting footnotes helps nobody. */
/* Online reads as a place, because it is one: the campus line says
   "Online" where another class says "Eastwood Campus". It is tinted so
   the one that is not a room is still quick to pick out of a column of
   them, but it is the same line in the same place - not a second badge
   making the same point twice. */
.session-campus.is-online { color: #1a5aa0; font-weight: 800; }

.session-note {
  margin: 6px 0 0 2px; padding: 7px 11px;
  border-left: 3px solid var(--line);
  font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft);
}
.session.is-picked .session-note { border-left-color: var(--go); }
.oneoff .session-note { border-left-color: var(--sub, var(--line)); }
.session-years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.session-years-label { font-size: 0.87rem; font-weight: 700; }
.session-year {
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px;
}
.session-year:hover { border-color: var(--go); color: var(--go); }
.times-note { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }

/* --- the basket ------------------------------------------------------ */
/* Fixed rather than sticky: a parent comparing a Year 5 time at the bottom of
   the page against one at the top should not lose the running total on the
   way. The page gains padding so the basket never covers the last card.

   Two shapes, one markup. Wide enough and it is a rail down the right-hand
   side, itemised, because a parent who has pressed eight tiles cannot tell
   from a single total which eight. Narrow and there is no room for a column
   beside the page, so it becomes a bar across the foot and the list is capped
   and scrolls. The rail is the default below, and the bar is the override:
   the narrow case is the one with the constraint, so it is the one that
   states its rules. */
.cart-bar {
  position: fixed; z-index: 20;
  background: var(--ink); color: #fff;
  box-shadow: 0 -6px 20px rgba(20, 33, 61, 0.22);
  left: 0; right: 0; bottom: 0;
}
.cart-bar-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 12px; padding: 12px 20px;
  max-width: var(--wrap); margin: 0 auto;
}
.cart-h {
  margin: 0; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); font-weight: 700;
}
.cart-bar-text { margin: 0; font-weight: 700; }
.cart-bar .btn { margin: 0; }

/* The itemised list. Each row is name and time, its own price, and its own
   way out - removing from here un-presses the tile it came from. */
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cart-year {
  font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gold); font-weight: 800; padding: 12px 0 2px;
}
/* A row per class, led by its subject's colour.
   Four Thinking Skills lines in a row are four identical blocks of text
   without it; with it a parent reads the basket the way they read the
   timetable, by the same key they have already learnt. The divider is a
   real rule rather than spacing, because at a glance a list of pairs of
   lines is ambiguous about which time belongs to which subject. */
.cart-item {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center; gap: 4px 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-dot {
  width: 10px; height: 10px; border-radius: 50%; align-self: center;
  background: var(--sub-dot, #fff);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.cart-item-main { display: grid; gap: 2px; min-width: 0; }
.cart-item-main b { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.cart-item-yr { font-weight: 800; }
.cart-item-yr::after { content: " · "; color: rgba(255, 255, 255, 0.6); }
.cart-item-when {
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums lining-nums;
}
.cart-item-price {
  font-size: 0.95rem; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
/* A 28px square: the × is small, the thing you press is not. */
.cart-item-rm {
  width: 30px; height: 30px; padding: 0; align-self: center;
  border: 0; border-radius: 7px; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  font-size: 1rem; line-height: 1;
}
.cart-item-rm:hover { background: rgba(255, 255, 255, 0.22); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0; padding-top: 14px; border-top: 2px solid rgba(255, 255, 255, 0.32);
  font-weight: 800; font-size: 1.08rem;
}
.cart-total-n { color: var(--gold); white-space: nowrap; }
.cart-go { text-align: center; }

body.has-basket { padding-bottom: 84px; }

/* Wide: a column of its own, and the page shifts left by exactly its width
   so the two never overlap. Below this the sums do not work - 1080px of page
   plus 300px of rail plus its gutters is what 1440 buys. */
@media (min-width: 1440px) {
  .cart-bar {
    left: auto; right: 20px; bottom: auto; top: 89px;
    width: 360px; border-radius: 14px;
    /* The panel itself does not scroll; the list inside it does. When the
       whole panel scrolled, a basket of seven classes made it 790px tall
       against an available 790px, and "Review and enrol" - the only thing
       on the page that takes a payment - sat just past the bottom edge.
       Nothing said it was there. Holding the frame still and letting only
       the list move keeps the total and the button on screen at any
       number of classes. */
    max-height: calc(100vh - 110px); overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 33, 61, 0.28);
  }
  .cart-bar-row {
    /* Every one of these resets a value from the base rule, which is a
       horizontal bar: wrap, centre, space-between. The desktop rule used
       to be `display: grid`, which ignored all three. Turning it into a
       flex column without clearing them let the children wrap into a
       second column against a constrained height - the basket rendered
       as a tall empty box with the classes stacked down the far edge. */
    display: flex; flex-direction: column; flex-wrap: nowrap;
    align-items: stretch; justify-content: flex-start;
    gap: 14px; padding: 20px 22px;
    max-height: calc(100vh - 110px);
  }
  .cart-bar .btn { width: 100%; }
  /* The fold, which used to be a phone-only thing. On a wide screen the
     toggle was visually hidden and left in the accessibility tree purely
     so a class going into the basket was still announced; the list below
     it was always open, and the page was reflowed to make room. Now that
     nothing is reserved, the press that opens the list is the press that
     puts it over the cards, and the same press puts it away. */
  .cart-toggle {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; width: 100%; min-width: 0;
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    color: inherit; font: inherit; text-align: left;
  }
  .cart-toggle-mark {
    flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-135deg) translate(-2px, -2px); opacity: 0.8;
  }
  .cart-bar.is-open .cart-toggle-mark { transform: rotate(45deg) translate(-1px, -1px); }
  /* The summary line is for the shut state only.
   Open, it repeated the list directly under it - the count, the year
   groups and the total, all of which the panel then prints again in
   more detail an inch below. Shut, it is the only thing saying what is
   in the basket, so it stays there. */
.cart-bar.is-open .cart-bar-text { display: none; }
.cart-items { display: none; }
  /* `min-height: 0` on both is what actually lets the list shrink: a flex
     item's default minimum is its content, so without it the list refuses
     to be shorter than its classes and pushes the button out again. */
  .cart-bar.is-open .cart-items {
    display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
  }
  .cart-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .cart-total { flex: none; }
  /* The page does not move when the basket fills.
   *
   * It used to. The content column gave up 420px of padding on the right
   * and the class grid dropped from three columns to two, so picking a
   * class re-laid the page underneath the hand that picked it: every card
   * changed width, every row below it moved, and the page grew 309px
   * taller. The thing a parent was reading jumped as they chose.
   *
   * Nothing is reserved now. The rail was already `position: fixed`, so
   * it costs no layout at all - it floats over the page, and the page is
   * laid out exactly as it is with an empty basket.
   *
   * What that does mean is that an open rail covers the right-hand column
   * of cards, which is why the fold below is no longer hidden on wide
   * screens: the basket opens on a press and closes again, rather than
   * holding a strip of the page open for as long as there is anything in
   * it. It is an overlay, so it behaves like one.
   */
  body.has-basket { padding-bottom: 0; }
}

/* Narrow: across the foot, and folded shut. Four classes listed in full came
   to 419px of an 844px phone - half the screen the parent is choosing from,
   taken up by a record of what they have already chosen. So the bar states
   the count and the total, and opens on a press. */
@media (max-width: 1439px) {
  .cart-h { display: none; }
  /* Narrower rows on a phone, but the colour key stays - it is the thing
     that makes a folded-open basket scannable at all. */
  .cart-item { padding: 10px 0; gap: 3px 10px; }
  .cart-toggle {
    order: 1; flex: 1 1 200px; display: flex; align-items: center; gap: 10px;
    justify-content: space-between; min-width: 0;
    background: none; border: 0; padding: 4px 0; margin: 0; cursor: pointer;
    color: inherit; font: inherit; text-align: left;
  }
  .cart-toggle-mark {
    flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: rotate(-135deg) translate(-2px, -2px);
    opacity: 0.8;
  }
  .cart-bar.is-open .cart-toggle-mark { transform: rotate(45deg) translate(-1px, -1px); }
  .cart-items { order: 3; width: 100%; display: none; }
  .cart-bar.is-open .cart-items { display: block; }
  .cart-list { max-height: 33vh; overflow-y: auto; }
  .cart-total { margin-top: 10px; }
  .cart-go { order: 2; }
}

/* --- the score on the two test cards --------------------------------- */
/* The number carries the card, so it is set at the size of a headline and
   not of body text: a parent scanning the front page should be able to read
   it without stopping. */
/* The label sits against the top of the number, not on its baseline. On a
   baseline a two-line label hangs below the digits and drags the eye down;
   from the top it reads as a caption on them. */
.score { margin: 0 0 4px; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.score-n {
  font-size: 2.3rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; color: var(--gold-dark);
}
.score-lab { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.3; padding-top: 2px; }
.score-ask { margin: 0 0 14px; font-weight: 700; }

/* --- programs bought once, not by the term --------------------------- */
.band-oneoff { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.oneoff-lede { margin: -6px 0 18px; color: var(--ink-soft); max-width: 60ch; }
/* The tile reuses .session-pick, so it already has the lift, the chosen
   state and the keyboard behaviour a class tile has.

   It is sized by the same grid as the weekly classes rather than one of its
   own. On `auto-fit` a single program stretched to the full width of the
   page, which made the one thing that is not a weekly class look like the
   most important thing on it - and two programs each took half. Sharing the
   class grid means a program is a card the same size as a class at every
   width, including the breakpoints further down this file, because they are
   the same rules rather than a copy of them. */
.oneoff .session-pick { height: 100%; align-content: start; }
/* Breathing room under the name, for a program with no hours - its dates
   line sits directly below the title where a class has its time, and 4px
   there reads as crowded. */
.oneoff .session-term { margin-top: 10px; }
/* But a program that DOES state its hours is laid out exactly like a class
   - name, time, then the small line - so it takes the class's spacing too.
   Written as an adjacent-sibling rule rather than a second class on the
   element, so the two cases cannot disagree: the gap follows from whether
   there is a time above it, which is the thing it is spacing away from.

   6px rather than the 4px a class sets, and the 2px is not a fudge. A class
   card carries an empty .session-meta row between its time and this line -
   the slot the enrolment count goes in - and the grid's 2px gap around that
   row is real space. A program has no roll to show and so no such row, so
   the 2px is added here instead. Measured, not guessed: the small line now
   sits 8px below the time on both kinds of card. */
.oneoff .session-when + .session-term { margin-top: 6px; }
.oneoff-price { font-weight: 800; color: var(--ink); }
.oneoff.is-picked .oneoff-price { color: inherit; }

/* Its own group in the basket, marked off from the children's. */
.enrol-group.is-oneoff { border-left: 4px solid #166534; }

/* --- the enrolment basket -------------------------------------------- */
/* One column. The enquiry form that used to sit on the right has gone -
   everything it asked for is asked on the checkout itself now, before the
   Pay button will go. A single column is also the shape a checkout wants:
   one thing to read, top to bottom, ending in the button. */
.enrol-wrap {
  display: grid; gap: 28px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.enrol-app { display: grid; gap: 20px; }
.enrol-group { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.enrol-group-head {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.enrol-group-head h2 { margin: 0; font-size: 1.15rem; }
.enrol-name { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; }
.enrol-name input {
  font: inherit; font-weight: 400; padding: 7px 11px; width: 11rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: inherit;
}
.enrol-name input:focus { outline: 2px solid var(--gold-dark); outline-offset: 1px; }
.enrol-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* Each class is its own block now, not a row separated from the next by a
   hairline. A parent checking a $2,250 basket before paying is counting
   lines, and three rows of similar text with one-pixel rules between them
   are easy to miscount - the more so now that every line carries a name
   field of its own and is twice as tall as it was. */
.enrol-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-dark);
  border-radius: 10px;
}
/* Green, like the other button on this site that means "yes, do it", and
   last in the row so the eye reaches the price before the thing that spends
   it. A class with no payment link simply leaves this column empty. */
.enrol-pay { white-space: nowrap; }
.enrol-line-main { display: grid; gap: 2px; }
.enrol-line-when { font-size: 0.9rem; color: var(--ink-soft); }
.enrol-line-price { font-weight: 700; white-space: nowrap; }
.enrol-remove {
  font: inherit; font-size: 0.87rem; cursor: pointer; background: none;
  border: 0; padding: 4px; color: var(--ink-soft); text-decoration: underline;
}
.enrol-remove:hover { color: #9b2c2c; }
.enrol-subtotal { margin: 14px 0 0; text-align: right; font-size: 0.92rem; color: var(--ink-soft); }
.enrol-total {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin: 0; padding: 16px 22px;
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 14px;
  font-size: 1.05rem;
}
.enrol-empty { display: grid; gap: 14px; justify-items: start; }
/* Smaller throughout, not just narrower: a column half the width with the
   same type in it reads as a cramped version of the same thing rather than
   a secondary one. */
.enrol-form { max-width: none; font-size: 0.93rem; }
.enrol-form h2 { margin: 0; font-size: 1rem; }
.enrol-form label > span { font-size: 0.85rem; }
.enrol-form input, .enrol-form textarea { padding: 8px 10px; font-size: 0.93rem; }
.enrol-form textarea { min-height: 76px; }
.enrol-form .btn { padding: 10px 18px; font-size: 0.92rem; }
.enrol-form p { font-size: 0.86rem; }
.enrol-sent { color: var(--go); font-weight: 700; }

@media (max-width: 860px) {
  .enrol-wrap { grid-template-columns: minmax(0, 1fr); }
  .sessions, .oneoffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  /* Two to a row on a phone. One would be as tall as the old list; three
     leaves about 100px a tile, which "10:30am - 12:00pm" does not fit in. */
  .sessions, .oneoffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }

  /* The chips become one row that scrolls.
   *
   * Eight of them wrap to three rows at 375px, which with the heading
   * and the hint above put 427px of page before the first class - half
   * the screen on the phone most of these parents are holding. One row
   * that slides is 50px, and the chip cut off at the right edge is what
   * says it slides.
   *
   * The label moves above them rather than sitting alongside, because
   * inline it was taking a third of the width the chips need. */
  .year-filter { padding: 12px 12px; gap: 14px; }
  /* The label goes above its chips rather than beside them: 108px of it
     against 375px of screen left the chips a third of the row. */
  /* Two named rows cost more height than one unnamed one, and a phone
     has the least to spare - so what can be taken back, is. */
  .filter-group { gap: 6px; }
  .year-row { display: block; }
  .year-row-label {
    display: block; width: auto; padding-top: 0;
    margin-bottom: 4px; font-size: 0.72rem;
  }
  .filter-group-subject { padding-top: 14px; }
  .year-chip { padding: 5px 12px; }
  .year-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* The row is padded out to the card's edge so a chip scrolled to the
       end is not sitting hard against the border. */
    margin: 0 -12px; padding: 0 12px 2px;
  }
  .year-chips::-webkit-scrollbar { display: none; }
  .year-chip { flex: none; }
  /* The years scroll sideways because "Year 1" to "Year 12" are twelve
     identical short chips and the next one is always half in view, which
     is its own invitation to push. The subjects never did that - they are
     a column of whole names - so nothing here touches them. */
  .session-pick { padding: 10px 11px; }
  /* The tick comes down with everything else here, and has to.
   *
   * At the full size it hung 22px outside a card whose own left margin
   * is 20px, so on a 375px screen its left edge landed at -2 and it was
   * shaved by the window. And this rule's padding is what the card
   * actually uses at this width, so the 25px reserved for the tick in
   * the rule above was being thrown away and the disc sat on top of the
   * subject. Both are fixed by the three numbers below rather than by
   * another breakpoint. */
  .session.is-picked .session-pick { padding: 9px 10px; }
  /* Smaller, and tucked further in. Two cards to a row on a phone leaves
     about 10px of margin at the window edge, and a disc hanging 13px off
     the right-hand card would be shaved by it. */
  .session.is-picked::after {
    width: 28px; height: 28px; top: -9px; right: -7px;
    background-size: 16px 16px;
    box-shadow: 0 0 0 2px var(--paper), 0 4px 10px rgba(21, 128, 61, 0.35);
  }
  .session-when { font-size: 0.9rem; }
  .session-when b { display: block; margin-right: 0; }
  .enrol-line { grid-template-columns: minmax(0, 1fr) auto; }
  .enrol-remove { grid-column: 2; }
  .enrol-pay { grid-column: 1 / -1; text-align: center; }
  .cart-bar-row { padding: 10px 20px; }
  .cart-bar-text { font-size: 0.92rem; }
  .cart-toggle { flex-basis: 100%; }
  .cart-bar .btn { width: 100%; text-align: center; }
  .cart-list { max-height: 30vh; }
  body.has-basket { padding-bottom: 124px; }
}
.enrol-line-warn { font-size: 0.87rem; color: #8a3c0b; font-weight: 600; }

/* --- who each class is for ------------------------------------------- */
.enrol-who { display: grid; gap: 3px; margin-top: 8px; max-width: 20rem; }
.enrol-who-lab { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.enrol-who-input {
  font: inherit; font-size: 0.95rem; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: inherit;
}
.enrol-who-input:focus { outline: 2px solid var(--gold-dark); outline-offset: 1px; }
/* Wrong, not merely empty - see gate() in cart.js. A field nobody has
   typed in yet is not a mistake and is not marked as one. */
.enrol-who-input.is-wrong { border-color: #c0392b; background: #fdf4f3; }

/* Every field carrying one of these must be filled before the Pay button
   will go. Red rather than the page's gold, because gold here reads as
   decoration - this is the one mark on the checkout that means "you cannot
   continue without this". */
.req { color: #c0392b; font-weight: 700; margin-left: 3px; }

/* --- your details, on the checkout ----------------------------------- */
/* The block that replaced the enquiry form. It sits between the total and
   the Pay button because that is the order the parent is working in: what
   it costs, who you are, pay. */
.enrol-you {
  display: grid; gap: 14px;
  padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
}
.enrol-you h2 { margin: 0; font-size: 1.05rem; }
.enrol-you-field { display: grid; gap: 4px; }
.enrol-you-lab { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.enrol-you-input {
  font: inherit; font-size: 0.98rem; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: inherit; width: 100%;
}
.enrol-you-input:focus { outline: 2px solid var(--gold-dark); outline-offset: 1px; }
.enrol-you-input.is-wrong { border-color: #c0392b; background: #fdf4f3; }

/* One column, full width.
 *
 * Two columns were tried and dropped: with the email spanning both rows,
 * auto-placement left the second column empty beside the name and the
 * phone, so the three fields came out at two different widths for no
 * reason a reader could see. A checkout is a single column of things to
 * fill in, in order, ending in the button. */

/* When no class in the basket can be paid for. */
.pay-ask { margin: 0 0 6px; font-weight: 700; }

/* The state of the checkout, in its own box above the button.
 *
 * Two states, never absent. Red and a warning mark while something is
 * missing; green and a tick once nothing is. A box that only appears when
 * something is wrong leaves the parent who has done everything right with
 * nothing to confirm it. */
.pay-gate {
  margin: 10px 0 0; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600; line-height: 1.4;
}
.pay-gate-mark { font-size: 1.05rem; line-height: 1.25; flex: none; }
.pay-gate.is-missing { color: #8a2121; background: #fdf4f3; border-color: #c0392b; }
.pay-gate.is-ready { color: #14603a; background: #f1faf4; border-color: #15803d; }

/* not-allowed while a name is missing; progress only while the payment is
   actually in flight, which is what aria-busy marks. */
.pay-now[disabled] { opacity: 0.65; cursor: not-allowed; }
.pay-now[aria-busy="true"] { cursor: progress; }

/* --- the band behind the two tests ----------------------------------- */
/* The illustration carries the band; the words sit in the pale upper half
   of it and the hills stay at the bottom where they were drawn. A minimum
   height keeps the climb and the flag in frame on a wide screen, where
   `cover` would otherwise crop the picture down to a strip of sky. */
/* Always the full width of the artwork, never `cover`. Cover had to scale a
   1920px-wide picture up past its own size to fill a 460px-tall band, which
   enlarged everything and pushed the ends off both edges. At 100% the hills
   sit along the bottom at their drawn proportions and the whole climb is in
   frame at every width. */
/* Sized by its height, not by the band's width.
 *
 * The artwork is 1920x640 - three times as wide as it is tall - so at
 * `100% auto` it rendered 427px tall on a 1280px screen while only 190px of
 * padding sat below the cards. The top two-fifths of it, which is where the
 * climb ends and the flag is, was behind the cards. Making the band wider
 * made it worse, because the width drove the height.
 *
 * Fixing the height instead decouples it: the image is always 240px tall,
 * the padding is always a little more than that, and the whole journey
 * including the flag sits in the strip below the cards at every width.
 */
/* The sky above the artwork, matched to the artwork's own top edge.
 *
 * The band used to paint one flat colour above the picture, on the belief -
 * written down in the comment below - that the flat colour was "the
 * illustration's own top pixel, so the join does not show". It is the top
 * pixel. It is not the top row. Sampled across the artwork's first row:
 *
 *     left edge  #d1d8e5      40%  #f1eff2      80%  #f0edf3
 *          10%   #d5d9e9      50%  #f4eff3      90%  #f1eef4
 *          20%   #eaeaf3      60%  #f4eff3     right #efeef3
 *          30%   #ecebf2      70%  #f3f0f3
 *
 * So the flat #efedf2 matched the right-hand two thirds almost exactly and
 * missed the left-hand corner by about thirty points of blue - which drew a
 * hard horizontal line across the left of the band where the colour met the
 * picture. Invisible on the side you happen to look at, obvious on the
 * other.
 *
 * A gradient with the same stops meets the artwork at its own colour the
 * whole way across. It is laid under the picture rather than over it, and
 * both are sized to the full width, so the two line up at every window size
 * with no join to see.
 */
.band-journey {
  position: relative;
  /* The picture is allowed to be wider than the window now, so the band
     has to be the thing that crops it. Without this it hangs a horizontal
     scrollbar on every page of the site. */
  overflow: hidden;
  /* The picture is cropped to the drawing, and that is what makes this
   * section short.
   *
   * A note here used to say no crop could fix the height, because the
   * flag is near the top and the path's low point near the bottom so
   * there was nothing to trim at either end. That was right about the
   * ends and wrong about the whole: the gold runs from row 162 to row
   * 577 of 640, so a quarter of the artwork is empty sky above the flag
   * and a tenth is plain wave below the path, and neither is carrying
   * anything.
   *
   * Cropped to rows 150-590 the artwork is 4.35:1 rather than 3:1,
   * which is a quarter off its height at any width it is drawn at.
   * That is where this section's height went: 631px to about 360px.
   *
   * One rule at every width now. There used to be a media query at
   * 1400px with a quite different arrangement below it, because an
   * uncropped 3:1 picture could only get its flag past the right-hand
   * card by being wider than the window, and there is no room for that
   * beside a 1040px wrap on a 1300px screen. The crop retires the
   * problem: the flag is at the top of the picture now, so it clears
   * the cards by being above them rather than beside them, and it does
   * that at any width. The two arrangements also met at a 250px step in
   * height at exactly 1400px, which goes with them.
   *
   * 40px rather than the 56 every other band uses: the picture's top is
   * open sky, so this band arrives with space above its heading that
   * the others have to leave for themselves.
   */
  padding-top: 40px;
  /* The band must never be shorter than the picture or its top is cut,
     and the flag is 2.7% from that top. So: the picture's own height,
     less the heading and cards standing over it, with a floor for the
     narrow end where the content is the taller of the two. 23vw is a
     share of the window including its scrollbar, about 15px more than
     the width the picture is drawn in - slack, not a correction. */
  padding-bottom: max(28px, calc(23vw - 310px));
  /* Sampled from the artwork's row 150, which is the picture's top edge
     now that it is cropped there, so the two meet at the same colour and
     need no fade between them. Re-sampled rather than reused: row 150 is
     up to 33 of 255 away from row 0, which the old stops came from, and
     that is a line you can see. */
  background-image: linear-gradient(to right,
      #f1f0f5 0%, #f1eef4 10%, #f5eff4 20%, #f8f1f4 30%, #f8f1f4 40%,
      #f9f2f5 50%, #f8f1f4 60%, #f8f1f4 70%, #f8f1f1 80%, #fdf8f1 90%,
      #f5f0f2 100%);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 100%;
  background-color: #f6f1f4;
}

/* The picture, as a strip across the bottom of the band.
 *
 * It is its own box rather than a second background layer because its
 * height has to be the strip's, not the band's - `background-size` is
 * measured against the whole padding box, so a band-level layer cannot be
 * told to be 232px tall and keep its proportions.
 *
 * The box keeps the artwork's 3:1 so nothing is cropped inside it.
 *
 * Every edge of it needs softening. The artwork ends in dark blue waves,
 * and a hard vertical edge of those against the pale band reads as a
 * dropped-in box - plainly visible at both sides on the first attempt.
 * The top edge is sky, which is subtler but no better: on a wide screen
 * the picture reaches up past the cards and its top edge crosses open
 * band on either side of them, where it drew a faint line the width of
 * the page. Both are masked, and the picture sits in the band rather
 * than on it.
 */
.band-journey::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* The box is the picture, not the band.
   *
   * It was `inset: auto 0 0 0` - the full width of the band - with the
   * image centred inside it at `auto 100%`. The mask below then faded the
   * outer fifth of the *box*, which at 1440 was empty band on both sides
   * of a 696px picture, so it fell entirely outside the artwork and the
   * two hard edges stayed exactly as they were. A mask can only soften an
   * edge it actually covers.
   *
   * The box is the crop's shape, 1920x441, not the artwork's own
   * 1920x640, and it is the band's full width - so the picture can
   * never be the thing that causes a horizontal scrollbar.
   *
   * The box reaches up past the band's padding and in behind the heading
   * and the cards. That is the point of it, and it is why .wrap carries
   * a z-index: the picture is behind the words, not over them.
   */
  width: auto;
  height: auto;
  aspect-ratio: 1920 / 441;
  background-image: url("/assets/journey.webp");
  background-repeat: no-repeat;
  /* `auto`, not a second 100%: the artwork keeps its own 3:1 against the
     box's width and so overflows the shorter box, which is what gives
     the position below something to work within. A second 100% would
     squash the drawing by a quarter instead of cropping it.
     The 75.377% is not a guess - with the image taller than the box a
     percentage position is a share of the overflow, and
     0.078125/0.1036458 is the share that puts row 150 on the top edge. */
  background-size: 100% auto;
  background-position: center 75.377%;
  /* Not symmetric, because the two sides are not alike. The flag is
   * drawn at 89.2%-92.0% across, so the right holds full strength to
   * 93% and falls away over the last 7%. The left fade is 8% rather
   * than the 18% it was: the path's own left end is at 11% across, and
   * an 18% fade had started to eat it once the picture reached the
   * window's edge.
   *
   * No top fade any more. There was one, over the top quarter, and it
   * worked by spending itself on sky - sky this crop has removed. The
   * join is the gradient behind instead, sampled from the same row the
   * crop starts at. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 8%, #000 93%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 8%, #000 93%, transparent 100%);
  pointer-events: none;
}

/* The words and cards sit over the strip, not under it. */
.band-journey > .wrap { position: relative; z-index: 1; }

/* Narrow screens get the picture as a strip along the bottom rather than as
   a fill. `cover` on an image three times wider than it is tall has to zoom
   about four hundred per cent to fill a phone, which throws the flag and
   most of the climb off both edges and leaves a thick yellow bar across the
   middle. Sized to the width instead, the whole journey stays in frame, and
   the sky above it is the gradient described at the top of the rule, which
   meets the artwork at its own colour across the whole width. */
/* The full-width sizing above covers every width, so the phone override
   that used to live here has gone - it was what put the side gaps there. */

/* When a class runs and where, under its time on the card.
   Separated by middots rather than stacked: three short facts on one line
   read as one fact about the class, three lines read as a list to work
   through. */
.session-term {
  display: block; margin-top: 4px;
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.35;
}
.session-term > span + span::before {
  content: "·"; margin: 0 6px; opacity: 0.6;
}
.session-campus { font-weight: 700; }
.session.is-picked .session-term { color: inherit; opacity: 0.85; }

/* Only ever rendered into the editing build, so it never reaches a
   visitor. Marked loudly so nobody editing mistakes it for the live page. */
.ed-only { border-top: 3px dashed #c0392b; }
.ed-only-note {
  max-width: var(--wrap); margin: 0 auto 18px; padding: 10px 20px;
  font-weight: 700; color: #8a2121;
}

/* --- the subject reference list -------------------------------------- */
/* Below the week, because by the time a parent is reading what Thinking
   Skills covers they have already seen whether it fits their Tuesday. Shut
   by default: five open descriptions is the wall of scrolling the week view
   exists to remove, and a search engine reads them shut. */
.band-soft { background: var(--paper-alt); border-top: 1px solid var(--line); }
.subjects-head { margin: 0 0 16px; font-size: 1.25rem; }
.subject-list { display: grid; gap: 8px; }
.subject {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.subject > summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
}
.subject > summary::-webkit-details-marker { display: none; }
.subject > summary::before {
  content: ""; width: 7px; height: 7px; flex: none; align-self: center;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(-45deg); transition: transform 0.15s ease;
}
.subject[open] > summary::before { transform: rotate(45deg); }
.subject > summary:hover { color: var(--gold-dark); }
.subject > summary:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: -2px; }
.subject-name { font-weight: 800; font-size: 1.02rem; }
.subject-years {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold-dark);
}
.subject-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.subject-body { padding: 0 18px 16px; }
.subject-summary { margin-top: 0; color: var(--ink-soft); max-width: 70ch; }
.subject-body .ticks { margin-bottom: 0; }
.subject-body .times-note { margin-top: 12px; }

@media (max-width: 560px) {
  .subject > summary { padding: 12px 14px; }
  .subject-price { margin-left: 0; }
  .subject-body { padding: 0 14px 14px; }
}
/* The year chips are part of choosing, so the first day should follow them
   closely rather than across a band's worth of empty page. */
/* The two bands read as one rhythm now. 30px here was set when the
   chips sat directly above this band and the first day should have
   followed them closely; the one-off programs have been between them
   since, so the short gap just made the page look like it had lost a
   step. */
.band-week { padding-top: 48px; }

/* --- the hero gallery ------------------------------------------------ */
/* Photographs standing in for the film, under the same veil. One is in the
   markup and already showing; the others arrive after the page has loaded
   and cross-fade over it, so with JavaScript off, on a metered connection,
   or for a visitor who asked for less movement, the hero is a single still
   photograph rather than a blank navy box. */
.hero-shots { position: absolute; inset: 0; z-index: 0; }
.hero-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-shot.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-shot { transition: none; }
}


/* --- the heading mark ------------------------------------------------ */
/* Three strokes struck off the corner of the last word, fanning outward -
   the comic-book way of saying "this bit". Attached to the word rather than
   the heading so a line break can never leave the marks stranded on a line
   of their own, and so they pivot on that word's corner at any heading size.

   A mask rather than a coloured image: the shape comes from the SVG and the
   colour from one line here, so changing it changes it everywhere. */
:root {
  --pop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cg stroke='%23000' stroke-width='3.2' stroke-linecap='round' fill='none'%3E%3Cpath d='M3 13L5 5'/%3E%3Cpath d='M8 15L13 8'/%3E%3Cpath d='M11 19L18 16'/%3E%3C/g%3E%3C/svg%3E");
}
.pop {
  position: relative;
  display: inline-block;
  /* The strokes sit outside the word, so the box has to allow for them or
     a heading at the right-hand edge of its column would clip them. */
  margin-right: 0.66em;
}
.pop::after {
  content: "";
  position: absolute;
  /* Level with the word rather than hovering over it. A single offset has to
     serve "us", "teach" and "prep." alike - lowercase, ascender and
     descender - so it is pitched against the heading's cap height, which is
     the one thing all three share. */
  right: -0.7em;
  top: 0.08em;
  width: 0.78em;
  height: 0.82em;
  background-color: var(--gold);
  -webkit-mask: var(--pop) no-repeat center / contain;
  mask: var(--pop) no-repeat center / contain;
}

/* --- the six reasons, as chapters ------------------------------------ */
/* A card grid said six things at once and none of them loudly. These read
   top to bottom instead, each with room to show its evidence, strung on the
   same gold line that climbs through the band above - so six separate
   claims read as one ascent rather than a menu. */
.chapters {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  display: grid; gap: 56px;
}
/* The spine. Faded at both ends so it arrives and leaves rather than being
   chopped off by the band edge. */
.chapters::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; margin-left: -1.5px; border-radius: 2px;
  background: linear-gradient(180deg,
    transparent 0, var(--gold) 5%, var(--gold) 95%, transparent 100%);
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.6rem minmax(0, 1fr);
  align-items: center;
}
.chapter-say { grid-column: 1; grid-row: 1; text-align: right; }
.chapter-no { grid-column: 2; grid-row: 1; }
.chapter-show { grid-column: 3; grid-row: 1; }
/* Alternating, so the eye crosses the line at every step instead of running
   down one side of it. */
.chapter:nth-child(even) .chapter-say { grid-column: 3; text-align: left; }
.chapter:nth-child(even) .chapter-show { grid-column: 1; }

.chapter-no {
  margin: 0; justify-self: center; position: relative; z-index: 1;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em;
  color: var(--ink); background: var(--paper);
  border: 3px solid var(--gold);
}
.chapter-say h3 { margin: 0 0 8px; font-size: 1.22rem; }
.chapter-say h3 a { color: inherit; text-decoration: none; }
.chapter-say h3 a:hover { color: var(--gold-dark); text-decoration: underline; }
.chapter-say p { color: var(--ink-soft); margin: 0 0 12px; }
.chapter-say .icon-lg { margin-left: auto; }
.chapter:nth-child(even) .chapter-say .icon-lg { margin-left: 0; }
.chapter-cta { margin: 0 !important; font-weight: 700; font-size: 0.93rem; }
.chapter-cta a { text-decoration: none; }
.chapter-cta a:hover { text-decoration: underline; }
/* A reason with nothing to show yet keeps its side rather than sprawling
   across the line, so the rhythm survives the gaps. */
.chapter.is-bare .chapter-show { display: none; }

/* --- what each chapter shows ----------------------------------------- */
/* 01 the teachers */
/* A staff wall, not four cards. The card chrome was carrying nothing - with
   no name under a portrait it was a box around a photograph - and the four
   photographs were taken in four different places, so a square full-bleed
   crop put a garden next to three different bookshelves and the eye went to
   the backgrounds instead of the faces.

   A circle fixes both. It crops to the head, so most of whichever room the
   photograph was taken in falls outside it, and the ring is the same on all
   four, so the set reads as one wall however the photographs were taken. */
.faces {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}
.face { display: grid; gap: 2px; justify-items: center; }
.face img, .face-blank {
  /* `height: auto` is load-bearing: the img carries height="160" so the
     browser can hold the space before the file lands, and with both
     dimensions given aspect-ratio is ignored - which drew ellipses. */
  width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; margin-bottom: 10px; display: block;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold), 0 6px 16px rgba(20, 33, 61, 0.14);
}
.face-blank { background: linear-gradient(140deg, var(--paper-alt), #e7e3d9); }

/* --- a teacher's record, on demand ---------------------------------- */
/* The photographs are the claim; the record behind one is the evidence,
   and it is only wanted for the teacher being looked at. It opens under
   the row rather than inside a cell: a panel in a 150px column would set
   the type at a width nothing can be read at, and would push that one
   column down and leave the row ragged. */
/* No cursor and no arrow: the card opens on hover, so there is nothing
   here to press. The ring on the photograph is the whole affordance. */
.face-pick {
  display: grid; justify-items: center; gap: 2px;
  width: 100%; text-align: center;
}
.face-pick img { transition: box-shadow 0.15s ease; }
.face-has-more:hover .face-pick img {
  box-shadow: 0 0 0 2px var(--gold-dark), 0 8px 20px rgba(20, 33, 61, 0.2);
}

/* A business card, hanging off the photograph it belongs to.
 *
 * Hover opens it on a desktop, because that is the fastest way to read
 * four of them - you sweep the row. But hover alone would make the
 * records unreachable on a phone and for a keyboard, which is most of
 * this site's traffic and all of its screen-reader traffic, so the
 * click that was built first still works and still drives
 * aria-expanded. The CSS opens on `:hover`, on `:focus-within`, and on
 * the class the script sets; any one of the three is enough.
 *
 * `.faces` cannot hide its overflow or the card would be clipped by the
 * row, and the face that owns an open card is lifted above its
 * neighbours so the card is not drawn under the next photograph. */
.face { position: relative; }
.face-panel {
  position: absolute; z-index: 20;
  top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: max(240px, 100%); min-width: 240px;
  text-align: left;
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(20, 33, 61, 0.22);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
/* The little notch, so the card reads as belonging to the face above it
   rather than floating under the row. */
.face-panel::before {
  content: ''; position: absolute; bottom: 100%; left: 50%;
  margin-left: -7px; border: 7px solid transparent;
  border-bottom-color: var(--gold); border-top: 0;
}
.face-has-more:hover .face-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.face-has-more:hover, .face-has-more:focus-within { z-index: 21; }
/* Where there is no hover there is no way in, so on a touch screen the
   cards simply sit open under their faces. The records are the evidence
   for the claim beside them; they should never be unreachable, and with
   nothing to press there is no second way to get at them. */
@media (hover: none) {
  .face-panel {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; width: auto; min-width: 0; margin-top: 10px;
  }
  .face-panel::before { display: none; }
}
.face-panel-who { margin: 0 0 2px; font-weight: 800; font-size: 1rem; }
.face-panel-role {
  margin: 0 0 9px; font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-dark);
}
.face-wins { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.face-wins li {
  font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45;
  padding-left: 17px; position: relative;
}
.face-wins li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
/* An empty field has to be clickable, or the one screen built for
   filling these in is the one screen that cannot - and it has to say
   what it is, because thirty-eight identical dashed boxes tell you
   where you may type and nothing about what belongs there. The hint is
   a pseudo-element, so it is never part of the value: clicking in and
   typing replaces nothing. */
.ed-empty { display: block; min-width: 90px; min-height: 1.1em; }
.ed-empty::before {
  content: attr(data-hint);
  color: var(--ink-soft); opacity: 0.6; font-style: italic;
}
.ed-empty:focus::before { content: ''; }
@media (max-width: 620px) { .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.face-name { font-weight: 800; font-size: 0.97rem; }
.face-role { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-dark); font-weight: 700; }
.face-note { font-size: 0.88rem; color: var(--ink-soft); }

/* 02 the question, set as a page rather than a card. The square corners,
   the generous margin and the rule under the heading are what a classbook
   looks like; a parent recognises the thing their child brings home before
   they have read a word of it. Set as live text, not a screenshot, so it
   stays sharp, reads on a phone, and cannot fall out of step with the
   stylesheet the way a picture of text does. */
.paper {
  margin: 0 0 20px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 3px; padding: 26px 28px 24px;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px rgba(20, 33, 61, 0.07);
}
.paper-tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--ink-soft);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink);
}
/* Arial MT Pro, as asked for, with Arial behind it.
   *
   * Worth knowing: Arial MT Pro is a licensed desktop font, not a webfont,
   * and nothing here serves it. A visitor sees it only if it happens to be
   * installed on their own machine, which for a parent on a phone it will
   * not be - they get Arial, which is metrically the same design. If the
   * school licenses the web version, drop the .woff2 beside the stylesheet
   * and add an @font-face above this rule; nothing else needs to change.
   *
   * It is set on the question only, deliberately. The question is a
   * photograph of what a student actually meets, and a workbook is not set
   * in the voice of a marketing page. */
.paper, .paper-stem, .paper-lines li, .paper-ask {
  font-family: 'Arial MT Pro', 'ArialMT', Arial, Helvetica, sans-serif;
}

.paper-stem { margin: 0; font-size: 1.02rem; font-weight: 600; display: block; }

/* --- the question, folded ------------------------------------------- */
.paper-fold { margin: 0; }
.paper-sum {
  cursor: pointer; list-style: none; display: grid; gap: 8px;
}
/* Safari puts its own triangle here and ignores list-style. */
.paper-sum::-webkit-details-marker { display: none; }
.paper-sum:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

/* Five lines closed, and the fifth fades out rather than stopping.
   A hard cut at a clamp reads as the end of the text; a fade reads as
   text carrying on past the edge, which is what it is, and is what gives
   the arrow below something to mean. The mask is on the closed state
   only, so an opened question is never dimmed. */
.paper-fold:not([open]) .paper-stem {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* The first clue, showing under the opening line so that what is on
   screen reads as part of a longer question rather than a short complete
   one. Two lines of it, and the second fades out.
 *
 * The fade is here and not on the stem above. A fade over text that is
 * not actually truncated does not suggest more text - it dims the only
 * line there is, and the real stem is one line. This is the element that
 * is genuinely cut off, so this is the one that should look cut off.
 *
 * The clue is not repeated in the body below; it lives here and simply
 * loses its clamp and fade when the fold opens. Nothing is read twice. */
.paper-peek {
  color: var(--ink-soft); font-size: 0.97rem; line-height: 1.5;
}
.paper-fold:not([open]) .paper-peek {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 38%, transparent 97%);
}
.paper-more {
  font-size: 0.84rem; font-weight: 700; color: var(--gold-dark);
  font-family: inherit;
}
/* Down, not right: the rest of the question is below this line, not on
   another page. The arrow turns when it opens, so the control shows
   which way it will move and not only what it does. */
.paper-more { display: flex; align-items: center; gap: 7px; }
.paper-more::before { content: 'Show the whole question'; }
.paper-more::after {
  content: ''; width: 8px; height: 8px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.paper-fold[open] .paper-more::before { content: 'Hide the question'; }
.paper-fold[open] .paper-more::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.paper-sum:hover .paper-more { text-decoration: underline; }
.paper-rest { margin-top: 14px; }
.paper-fig { display: block; width: 100%; height: auto; margin: 0 0 14px; }
.paper-rest .paper-ask { margin-top: 0; }
/* The clues are a list in the book and a list here: each one is a separate
   constraint, and running them into a paragraph is what makes this kind of
   question feel harder than it is. */
.paper-lines { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 5px; }
.paper-lines li { font-size: 0.97rem; color: var(--ink-soft); }
.paper-ask { margin: 0; font-size: 1.02rem; font-weight: 700; }
.paper-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }

/* The pages themselves. A rendered question proves the questions are ours;
   a picture of the book proves the book is. Side by side at three to a row,
   then one per row once there is no longer width to read them at. */
.sheets { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet { margin: 0; }
.sheet img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.08);
}
/* A page is about 120px wide in this row, which is enough to see that a
   real book exists and nowhere near enough to read it. Hovering lifts one
   out and enlarges it.
 *
 * The image is already a 900px file sized down by CSS, so scaling it back
 * up is drawn from the original pixels and stays sharp. No second
 * element, no second request.
 *
 * Desktop only, and deliberately. `hover: hover` keeps it away from
 * touch, where there is no hover to use it with and a transformed element
 * can be left stuck open. The width floor keeps it away from the narrow
 * end, where an enlarged page would reach past the window and hang a
 * horizontal scrollbar on the site. `focus-within` gives a keyboard the
 * same view a mouse gets. */
@media (hover: hover) and (min-width: 960px) {
  /* The frame is pointed at; the picture inside it grows.
   *
   * It used to be one element doing both, and that is unusable with
   * three in a row. An enlarged picture is 2.45 times its own width, so
   * it covers its neighbours - and because it was also the hover target,
   * it kept the hover while covering them. The middle page could not be
   * reached at all: to get to it the pointer had to cross the enlarged
   * picture on either side, which simply stayed enlarged. The outer two
   * leaned inwards as well, so the middle was buried from both sides at
   * once.
   *
   * Two changes fix it. The transform moves to the image, so the frame
   * keeps its own 153px of layout and stays exactly where the pointer
   * expects it. And the image is `pointer-events: none`, so the big
   * version is a picture and not a target - the pointer falls through it
   * to whichever frame is actually underneath. Crossing an enlarged page
   * now hands the hover to its neighbour the moment the pointer is over
   * that neighbour's real position.
   *
   * The leaning origins go with it. They existed to keep an enlarged
   * outer page inside the row; now that nothing is being blocked, each
   * grows from its own centre, which is both symmetrical and half as far
   * over its neighbour in either direction. */
  .sheet, .tally-pic { position: relative; }
  .sheet img, .tally-pic img {
    transition: transform 0.18s ease, filter 0.18s ease;
    pointer-events: none;
  }
  .sheet:hover, .sheet:focus-within,
  .tally-pic:hover, .tally-pic:focus-within { z-index: 30; }
  .sheet:hover img, .sheet:focus-within img {
    transform: scale(2.45);
    filter: drop-shadow(0 18px 40px rgba(20, 33, 61, 0.3));
  }
  /* The results photographs start wider than a booklet page does, so the
     same scale would put them past the window. They are photographs
     rather than pages of text, besides - they have to be recognisable,
     not readable. */
  .tally-pic:hover img, .tally-pic:focus-within img {
    transform: scale(1.9);
    filter: drop-shadow(0 18px 40px rgba(20, 33, 61, 0.3));
  }
}

.sheets-note {
  grid-column: 1 / -1; margin: 2px 0 0;
  font-size: 0.86rem; color: var(--ink-soft);
}
@media (max-width: 700px) { .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 03 the platform */
.screens { display: grid; gap: 12px; }
.screen { margin: 0; }
.screen img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08); }
.screen figcaption { font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; }

/* 04 the record */
.tally { display: grid; gap: 16px; }
.figures { margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.figures div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.figures dt { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--gold-dark); }
.figures dd { margin: 6px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.tally-pics { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
/* The year cards are posters with their own margins and their own
   proportions; cropping them to a tidy rectangle would cut the figures off.
   Shown whole, three across. */
.tally-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tally-pic { display: block; min-width: 0; }
.tally-pics img { width: 100%; height: auto; border-radius: 8px; display: block; box-shadow: 0 6px 18px rgba(20, 33, 61, 0.12); }

/* 06 the room */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 12px; }
.shot figcaption { font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; }

/* Only ever drawn by `--preview`: the shape of what is still missing, so it
   can be looked at before it exists. The real build omits it entirely. */
.hole {
  margin: 0; border: 2px dashed var(--line); border-radius: 12px;
  padding: 22px; color: var(--ink-soft); font-size: 0.92rem;
  display: grid; gap: 8px; justify-items: start; background: rgba(255, 255, 255, 0.45);
}
.hole span { font-size: 0.68rem; letter-spacing: 0.1em; font-weight: 800; color: var(--gold-dark); }

@media (max-width: 860px) {
  /* One column, spine down the left: the alternation has nothing to
     alternate across once the page is one column wide. */
  .chapters { gap: 40px; }
  .chapters::before { left: 1.45rem; }
  .chapter { grid-template-columns: 2.9rem minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .chapter-say,
  .chapter:nth-child(even) .chapter-say { grid-column: 2; grid-row: 1; text-align: left; }
  .chapter-show,
  .chapter:nth-child(even) .chapter-show { grid-column: 2; grid-row: 2; margin-top: 16px; }
  .chapter-no { grid-column: 1; grid-row: 1; justify-self: start; }
  .chapter-say .icon-lg,
  .chapter:nth-child(even) .chapter-say .icon-lg { margin-left: 0; }
}
@media (max-width: 480px) {
  .faces { grid-template-columns: minmax(0, 1fr); }
}

/* --- a question's table ---------------------------------------------- */
.paper-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 0.86rem; }
.paper-table th {
  background: var(--ink); color: #fff; font-weight: 700; padding: 5px 4px;
  text-align: center; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: none;
}
.paper-table td {
  border: 1px solid var(--line); padding: 6px 4px; text-align: center;
  color: var(--gold-dark); font-weight: 800;
}
.paper-table tbody tr:nth-child(even) td { background: var(--paper-alt); }

/* --- an invitation to use the thing ---------------------------------- */
.tryit { display: grid; gap: 14px; }
.tryit-lead { margin: 0; color: var(--ink-soft); }
/* Spaced further apart and set larger: these two are the only things on the
   front page that put a parent inside the thing being sold, and at 10px
   apart they read as one control with a seam down it. */
.tryit-acts { margin: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* The two demo buttons sit on a solid edge thrown down and to the right, so
   they read as keys to press rather than links to click, and they lift off
   that edge on hover: the shadow shortens by exactly as much as the button
   moves, which is what keeps the light source still. Transform and shadow
   only - nothing here changes layout, so a lifted button cannot nudge the
   one beside it. The gap above is 10px and the deepest shadow is 6px, so
   the two can never touch. */
.tryit-acts .btn {
  margin: 0;
  font-size: 1.06rem;
  /* Room on the right for the grip, so a long label cannot run into it. */
  padding: 14px 38px 14px 26px;
  box-shadow: 4px 4px 0 var(--gold-dark);
  transition: transform .14s ease, box-shadow .14s ease;
  position: relative;
}

/* Three diagonal strokes cut into the bottom-right corner, the mark a window
   carries where it can be dragged. On a button that already stands on a
   solid edge it says the same thing twice in two languages: this one is a
   key, and it is meant to be pressed.

   Drawn with a repeating gradient rather than three elements or an image: it
   is one declaration, it inherits the button's own colour, it costs no
   request, and there is nothing in the DOM for a screen reader to read out -
   which matters, because it means nothing to anyone who cannot see it. */
.tryit-acts .btn::after {
  content: "";
  position: absolute; right: 7px; bottom: 7px;
  width: 15px; height: 15px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold-dark) 0 2px,
    transparent 2px 5px
  );
  /* Square off the gradient into a corner wedge, so the strokes shorten
     towards the inside the way a real grip does. */
  -webkit-mask-image: linear-gradient(-45deg, #000 0 52%, transparent 52% 100%);
  mask-image: linear-gradient(-45deg, #000 0 52%, transparent 52% 100%);
  opacity: 0.75;
  transition: opacity .14s ease;
  pointer-events: none;
}
/* Lifted, the grip firms up with the rest of the button. */
.tryit-acts .btn:hover::after,
.tryit-acts .btn:focus-visible::after { opacity: 1; }
.tryit-acts .btn:hover,
.tryit-acts .btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gold-dark);
}
/* Pressed: all the way down onto its own shadow. */
.tryit-acts .btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--gold-dark);
}
/* A parent who has asked not to be moved still gets the depth, just not the
   travel. */
@media (prefers-reduced-motion: reduce) {
  .tryit-acts .btn, .tryit-acts .btn::after { transition: none; }
  /* The gap is 20px and the deepest shadow 6px, so a lifted button still
     cannot reach the one beside it. */
  .tryit-acts .btn:hover,
  .tryit-acts .btn:focus-visible,
  .tryit-acts .btn:active { transform: none; }
}

/* --- the video, as a still until somebody asks for it ---------------- */
.vid { display: grid; gap: 8px; }
.vid-play {
  position: relative; display: block; width: 100%; padding: 0; cursor: pointer;
  border: 0; border-radius: 12px; overflow: hidden; background: var(--ink);
  line-height: 0;
}
.vid-play img { width: 100%; height: auto; display: block; }
.vid-play:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* A rounded-triangle play button, drawn rather than loaded. */
.vid-mark {
  position: absolute; left: 50%; top: 50%; width: 66px; height: 66px;
  margin: -33px 0 0 -33px; border-radius: 50%;
  background: rgba(20, 33, 61, 0.82);
  transition: background 0.15s ease, transform 0.15s ease;
}
.vid-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  margin: -11px 0 0 -6px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.vid-play:hover .vid-mark { background: var(--gold); transform: scale(1.06); }
.vid-play:hover .vid-mark::after { border-left-color: #1a1205; }
.vid-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; display: block; }
.vid-cap { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 560px) {
  .tally-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vid-mark { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
}

/* ------------------------------------------------- one colour per subject
   A parent scanning Tuesday should be able to tell Reading from Maths before
   reading either word. The colour is a second, faster channel for the thing
   the label already says - never the only one - so the page still works for
   a colour-blind parent, in print, and read aloud.

   It is carried on a left spine and a wash rather than a filled tile: at
   three tiles to a row, five saturated blocks side by side fight each other
   and fight the green "picked" state, which has to stay the loudest thing
   on the page because it is the one that means something changed. */
/* Three values per subject, not two, because they sit on three backgrounds.
   --sub is the spine and the title on a white tile; --sub-wash is the tint
   behind it; --sub-dot is the same hue lifted until it reads on navy. The
   wash cannot do that job - at 4% saturation every subject is white on a
   dark panel, which is a colour key that identifies nothing. */
.sub-red    { --sub: #b23a2d; --sub-wash: #fdf1ef; --sub-dot: #f4796a; }
.sub-blue   { --sub: #1a5aa0; --sub-wash: #eef4fb; --sub-dot: #5aa9ec; }
.sub-purple { --sub: #653a9c; --sub-wash: #f4f0fa; --sub-dot: #b18af0; }
.sub-orange { --sub: #c06a12; --sub-wash: #fdf4e8; --sub-dot: #f5a742; }
.sub-cream  { --sub: #9c8e6c; --sub-wash: #faf7ef; --sub-dot: #ddcfa6; }
/* Light yellow, which is really two decisions.
 *
 * The wash is the one that shows: #fdf8d4 is a plain light yellow and is
 * what makes the card read as yellow across a page of twenty-five.
 *
 * --sub cannot follow it there. It is not a label, it is the subject
 * name and the card's left spine, so it has to carry text - and an
 * actual yellow on white is about 1.5:1, which is unreadable. #8a7400 is
 * 5.2:1 and clears AA for body text while still being the same hue.
 *
 * Nudged to 60 degrees rather than towards orange on purpose. Writing is
 * #c06a12 and the site's own gold-dark is #8f6210, so a yellow sitting
 * between them would have been a third brownish-gold beside two others.
 *
 * It is not the existing `cream` either: cream is #9c8e6c on #faf7ef, a
 * warm grey that reads as paper rather than as a colour. This is meant
 * to be picked out. */
.sub-yellow { --sub: #8a7400; --sub-wash: #fdf8d4; --sub-dot: #f3d534; }
/* One-off programs. Deliberately not one of the subject colours: in the
   basket it marks a line that is not a weekly class, and borrowing Thinking
   Skills' purple would say it was one.

   Green, and a deep one. The shade matters because this page already speaks
   green: a tile in the basket gets a green border, a green tick and a pale
   green wash. So the one-off green is darker than that one and its wash is
   barely tinted, leaving the chosen state the brighter of the two. */
.sub-oneoff { --sub: #166534; --sub-wash: #f4faf5; --sub-dot: #4ade80; }

.session-pick { border-left: 4px solid var(--sub, var(--line)); background: var(--sub-wash, var(--paper-alt)); }
.session-subject { color: var(--sub, inherit); }
.session-pick:hover { background: #fff; border-color: var(--ink); border-left-color: var(--sub, var(--ink)); }

/* Picked beats subject. The green border, the tick and the pale green wash
   say "this is in your basket"; the subject colour keeps only its spine, so
   the tile is still identifiable without competing with the state. */
.session.is-picked .session-pick {
  background: #f1f8f3;
  border-left: 4px solid var(--sub, var(--go));
}

/* The same key, carried down to the subject list, so the two halves of the
   page are read as one thing rather than two. */
.subject { border-left: 4px solid var(--sub, var(--line)); }
.subject > summary { padding-left: 14px; }
.subject-name { color: var(--sub, inherit); }

/* A year with nothing on it is not a dead end. */
.week-none {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  color: var(--ink-soft); margin: 0;
}
.week-none-ask { font-weight: 700; }

/* ------------------------------------------------ the Google rating badge
   The one claim on this page a parent can check against a source that is not
   us, so it is given the weight of a thing you press rather than a line of
   small print. The stars are drawn here, not loaded from Google: an image
   served from Google's servers would tell Google who was reading this page
   before the parent had chosen to go there. */
.grev {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-top: 16px; padding: 14px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  text-decoration: none; color: inherit;
  box-shadow:
    0 1px 0 #e4ddcd, 0 2px 0 #dbd3c0, 0 3px 0 #d2c9b3, 0 4px 0 #c9bfa6,
    0 8px 18px rgba(20, 33, 61, 0.16);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.grev:hover {
  border-color: var(--ink); transform: translateY(-2px);
  box-shadow:
    0 1px 0 #e4ddcd, 0 2px 0 #dbd3c0, 0 3px 0 #d2c9b3, 0 4px 0 #c9bfa6,
    0 5px 0 #c0b599, 0 6px 0 #b7ac8d, 0 14px 26px rgba(20, 33, 61, 0.22);
}
.grev:active { transform: translateY(1px); box-shadow: 0 1px 0 #e4ddcd, 0 2px 0 #dbd3c0, 0 4px 10px rgba(20, 33, 61, 0.18); }
/* Google's mark at the size it is meant to be read at. It leads the badge
   because it is the only part a parent recognises before reading anything:
   it says whose score this is, which is the whole value of showing it. */
.grev-mark { width: 30px; height: 30px; flex: none; display: block; }
.grev-score { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.grev-count { font-size: 0.88rem; color: var(--ink-soft); }
.grev-go { font-size: 0.88rem; font-weight: 700; color: var(--gold-dark); }

/* Five outlined stars with a gold overlay clipped to the score, so 4.6 of 5
   is six tenths of the fifth star rather than a rounded five. */
.stars {
  position: relative; display: inline-block;
  width: 86px; height: 16px; flex: none;
  background: currentColor; color: #cfc8b6;
  -webkit-mask: var(--star-mask); mask: var(--star-mask);
}
.stars-on {
  position: absolute; inset: 0; display: block;
  background: var(--gold);
}
:root {
  --star-mask: repeat-x left center/17.2px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.6 6.3 6.8.5-5.2 4.4 1.6 6.6L10 14.2 4.2 17.8l1.6-6.6L.6 6.8l6.8-.5z' fill='%23000'/%3E%3C/svg%3E");
}

/* ------------------------------------- a clock on the all-courses tile
   The tile leads to the timetable, so it carries a clock: a parent looking
   for "when does it run" has something to aim at before reading the words.

   Drawn in the deep gold, not the flat gold, because the tile is already
   gold - a gold outline on a gold fill is an invisible outline. Mask plus
   background-color rather than an inline SVG, so the shape and the colour
   stay separate and the colour can follow the tile on hover. It is
   decorative and announced nowhere: the label already says class times. */
/* The decal hangs off the corner rather than sitting inside it - a sticker
   stuck to the tile, not an icon printed on it. That means `overflow` has to
   stay visible, and the padding that was only there to make room for it
   inside can go. */
.card-tile { position: relative; overflow: visible; }
.card-tile::after {
  content: ""; position: absolute; right: -16px; bottom: -16px;
  width: 46px; height: 46px; pointer-events: none;
  border-radius: 50%; background: var(--paper);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 3px 10px rgba(20, 33, 61, 0.18);
  transition: transform 0.12s ease;
}
/* The glyph sits on that chip. Half the decal falls on the gold tile and
   half on the page behind it, so neither gold nor cream can be trusted as a
   background - the chip carries its own, and the glyph is drawn in the deep
   gold against it. */
.card-tile::before {
  content: ""; position: absolute; right: -4px; bottom: -4px;
  width: 24px; height: 24px; z-index: 1; pointer-events: none;
  background-color: var(--gold-dark);
  -webkit-mask: var(--cal-mask); mask: var(--cal-mask);
  transition: transform 0.12s ease;
}
.card-tile:hover::after, .card-tile:hover::before { transform: translate(-2px, -2px); }
:root {
  --cal-mask: center/contain no-repeat url("/assets/ui/calendar.png");
  --head-mask: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='12' cy='7.2' r='4.2'/%3E%3Cpath d='M12 13.1c-4.3 0-7.8 2.6-7.8 5.8 0 .6.5 1.1 1.1 1.1h13.4c.6 0 1.1-.5 1.1-1.1 0-3.2-3.5-5.8-7.8-5.8z'/%3E%3C/svg%3E");
}

/* --- room for the curve at the foot of the page ----------------------- */
/* Deliberately last in the file: the responsive `.band` rule above sets
   `padding` as a shorthand, which resets the bottom padding this needs. */
.cta-band { padding-bottom: 104px; }
@media (max-width: 560px) {
  .cta-band { padding-bottom: 88px; }
  .cta-band::after { height: 58px; background-size: 170px 58px; bottom: 12px; }
}

/* --- paying for the basket ------------------------------------------- */
/* Green, like every other "yes, do it" on this site, and full width because
   it is the one thing on the page a parent has come to press. The enquiry
   form stays below it: paying is the quick path, not the only one. */
.pay { display: grid; gap: 8px; margin-top: 4px; }
.pay-now { width: 100%; text-align: center; font-size: 1.05rem; padding: 15px 22px; }
/* superseded above: not-allowed while a name is missing, progress only
   while the payment is in flight. */
.pay-note { margin: 0; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }
/* A failed payment must not be a dead end, so this says what happened, says
   nothing was charged, and points at the form that still works. */
.pay-error {
  margin: 0; padding: 12px 14px; border-radius: 10px;
  background: #fdf1ef; border: 2px solid #b23a2d; color: #7a2419;
  font-weight: 600; font-size: 0.92rem;
}

/* --- the receipt on the thank-you page -------------------------------- */
/* Deliberately plain and high contrast: this is the screen a parent is being
   asked to photograph, and a photograph of it has to be readable. */
/* The tick is a mask so the green circle behind it carries the colour. */
:root { --tick-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 5.7a1 1 0 0 1 0 1.4l-9.9 9.9a1 1 0 0 1-1.4 0l-5-5a1 1 0 1 1 1.4-1.4l4.3 4.3 9.2-9.2a1 1 0 0 1 1.4 0z' fill='%23000'/%3E%3C/svg%3E") center / 68% no-repeat; }
.thanks-head { color: var(--go); }
.thanks-snap { margin: 10px 0 0; font-size: 1.02rem; }
.receipt {
  border: 2px solid var(--line); border-radius: 14px;
  padding: 22px 24px; background: var(--paper); max-width: 620px;
}
.receipt-wait { margin: 0; color: var(--ink-soft); }
.receipt-title {
  margin: 0 0 14px; font-size: 1.3rem; color: var(--go);
  display: flex; align-items: center; gap: 9px;
}
.receipt-title::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--go);
  -webkit-mask: var(--tick-mask); mask: var(--tick-mask);
}
.receipt-pending { margin: -6px 0 14px; color: #8a3c0b; font-weight: 600; }
.receipt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.receipt-line {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.receipt-line-amount { font-weight: 700; white-space: nowrap; }
/* Sits between the classes and the total, continuing the same row of
   figures rather than announcing itself: it is a correction to the sum
   above it, not a feature of the receipt. Green because it is money the
   parent did not spend. */
.receipt-discount {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  margin: 0; color: var(--go); font-weight: 700;
}
.receipt-total {
  display: flex; justify-content: space-between; gap: 14px;
  margin: 14px 0 0; padding-top: 12px;
  border-top: 2px solid var(--ink); font-size: 1.1rem; font-weight: 800;
}
.receipt-sub { margin: 18px 0 6px; font-size: 0.82rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft); }
.receipt-who { margin: 0; padding-left: 18px; }
.receipt-meta {
  display: grid; gap: 2px; margin: 16px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--ink-soft);
}
.receipt-help { margin: 18px 0 0; color: var(--ink-soft); }
.receipt-back { margin: 18px 0 0; }
@media (max-width: 560px) {
  .receipt { padding: 16px 16px; }
  .receipt-line { flex-wrap: wrap; gap: 2px; }
}


/* === the trial quiz ================================================== */
/* A full-screen exam over the page, laid out the way the real thing is
   laid out in CleverSpace: navy bar across the top with the clock and the
   question counter, passage down the left, options down the right.
   The point is rehearsal, so the shape has to be the shape they will sit.

   Everything here is prefixed `qz-` and nothing outside this block uses
   it, so the quiz cannot reach into the rest of the site and the rest of
   the site cannot reach into the quiz. */
.qz {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* The page behind must not scroll under the exam. */
body.qz-on { overflow: hidden; }

.qz-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* --- the bar -------------------------------------------------------- */
.qz-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 16px;
  background: var(--ink); color: #fff;
  position: relative; z-index: 2;
}
.qz-bar-left { display: flex; align-items: center; gap: 14px; min-width: 150px; }
.qz-bar-right { min-width: 150px; text-align: right; font-weight: 800; letter-spacing: 0.08em; font-size: 0.8rem; opacity: 0.75; }
.qz-x {
  width: 34px; height: 34px; flex: none;
  background: rgba(255,255,255,0.12); color: #fff;
  border: 0; border-radius: 7px; cursor: pointer;
  font-size: 1.5rem; line-height: 1; font-family: inherit;
}
.qz-x:hover { background: rgba(255,255,255,0.22); }
/* Tabular figures so the clock does not jitter as the digits change. */
.qz-clock {
  font-weight: 800; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.12);
}
.qz-clock.is-low { background: #c0392b; color: #fff; }

.qz-bar-mid { position: relative; }
.qz-pill {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink);
  border: 0; border-radius: 7px; padding: 7px 14px;
  font: inherit; font-weight: 700; font-size: 0.93rem; cursor: pointer;
}
.qz-pill-icon {
  width: 14px; height: 10px; flex: none;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  position: relative;
}
.qz-pill-icon::after {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 100%; border-top: 2px solid var(--ink);
}

/* --- the question list ---------------------------------------------- */
.qz-nav {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(430px, 92vw); background: #fff; color: var(--ink);
  border-radius: 10px; box-shadow: 0 18px 50px rgba(20,33,61,0.4);
  overflow: hidden; z-index: 5;
}
.qz-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.qz-nav-head h2 { margin: 0; font-size: 1rem; }
.qz-nav-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; font-family: inherit; }
.qz-nav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 8px; padding: 16px; max-height: 50vh; overflow-y: auto;
}
.qz-dot {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.qz-dot.is-done { background: var(--ink); border-color: var(--ink); color: #fff; }
.qz-dot.is-flag { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.qz-dot.is-at { outline: 3px solid var(--gold); outline-offset: 2px; }
.qz-dot-mini { width: 14px; height: 14px; pointer-events: none; }
.qz-nav-key {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-soft);
}
.qz-key { display: flex; align-items: center; gap: 6px; }

/* --- the two columns ------------------------------------------------ */
.qz-body { flex: 1 1 auto; min-height: 0; display: flex; }
/* Three fifths and two fifths, as in the app. The passage is the thing
   being read; the options are the thing being chosen between, and they
   are short. */
.qz-read {
  flex: 3 1 0; min-width: 0; overflow-y: auto;
  padding: 32px 36px; border-right: 1px solid var(--line);
  background: var(--paper);
}
.qz-read-h { margin: 0 0 16px; font-size: 1.25rem; }
.qz-read p { margin: 0 0 14px; line-height: 1.65; font-size: 0.99rem; }
.qz-ask-side {
  flex: 2 1 0; min-width: 0; overflow-y: auto;
  padding: 28px 28px; background: var(--paper-alt);
  display: flex; flex-direction: column;
}
.qz-q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qz-q-no { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.qz-flag {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; color: var(--ink-soft);
}
.qz-flag[aria-pressed="true"] { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.qz-stem { margin: 0 0 18px; font-size: 1.06rem; font-weight: 700; line-height: 1.45; }

.qz-opts { display: grid; gap: 10px; }
.qz-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  text-align: left; background: #fff; border: 2px solid var(--line);
  border-radius: 10px; padding: 13px 15px;
  font: inherit; font-size: 0.97rem; line-height: 1.45; color: inherit; cursor: pointer;
}
.qz-opt:hover { border-color: var(--gold); }
.qz-opt.is-on { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.qz-opt-k {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper-alt); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.qz-opt.is-on .qz-opt-k { background: var(--ink); border-color: var(--ink); color: #fff; }

.qz-feet { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; }
.qz-btn {
  flex: 1 1 0; padding: 12px 18px; border-radius: 8px;
  font: inherit; font-weight: 700; cursor: pointer; border: 2px solid transparent;
}
.qz-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qz-go { background: var(--gold); color: #1a1205; }
.qz-go:hover:not(:disabled) { background: var(--gold-hover); }
.qz-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.qz-ghost:hover:not(:disabled) { border-color: var(--ink); }
.qz-danger { background: #c0392b; color: #fff; }

/* --- the confirm ---------------------------------------------------- */
.qz-ask {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(20,33,61,0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.qz-ask-box {
  background: #fff; border-radius: 12px; padding: 24px 26px;
  width: min(420px, 100%); box-shadow: 0 20px 60px rgba(20,33,61,0.4);
}
.qz-ask-box h2 { margin: 0 0 8px; font-size: 1.15rem; }
.qz-ask-box p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.5; }
.qz-ask-feet { display: flex; gap: 10px; }
/* The start gate uses the same box as the confirmations, over the empty
   exam rather than over a question - so it gets a plain backdrop instead
   of a dimmed one, there being nothing underneath worth seeing yet. */
/* In the flow rather than over everything. `.qz-ask` is `inset: 0` so a
   confirmation can cover the question behind it; the gate has nothing to
   cover and was hiding its own title bar, leaving a dialog floating on a
   blank page with no way out but Cancel. */
.qz-ask-flat {
  position: relative; inset: auto; flex: 1 1 auto; min-height: 0;
  background: var(--paper-alt); align-items: flex-start;
  padding-top: 9vh; overflow-y: auto;
}
.qz-ask-flat .qz-ask-box { width: min(480px, 100%); }
.qz-field { display: block; margin: 0 0 4px; }
.qz-field-l {
  display: block; margin-bottom: 6px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink-soft);
}
.qz-input {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 11px 13px; border-radius: 8px;
  border: 2px solid var(--line); background: #fff; color: inherit;
}
.qz-input:focus { outline: 0; border-color: var(--ink); }
.qz-field-err { margin: 8px 0 0; color: #c0392b; font-weight: 700; font-size: 0.88rem; }
.qz-ask-flat .qz-ask-feet { margin-top: 18px; }
.qz-score-who {
  margin: 0 0 6px; font-weight: 700; color: var(--ink-soft);
  font-size: 0.9rem; letter-spacing: 0.03em;
}

/* --- the report ----------------------------------------------------- */
.qz-report { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 32px 24px 40px; }
.qz-report > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.qz-ranout { background: #fdf3f2; border: 2px solid #c0392b; color: #8c2a1f; border-radius: 9px; padding: 11px 16px; font-weight: 700; }
.qz-score { text-align: center; padding: 18px 0 26px; }
.qz-score-n { margin: 0; font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.qz-score-l { margin: 8px 0 0; font-weight: 700; }
.qz-score-t { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
/* `auto` on the sides, not 0: the shorthand here was overriding the
   centring that .qz-report gives every child, so the two headings sat
   against the window edge while everything under them was centred. */
.qz-sub { margin: 26px auto 12px; font-size: 1.05rem; }
.qz-types { display: grid; gap: 10px; }
.qz-type { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 12px; align-items: center; font-size: 0.9rem; }
.qz-type-bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qz-type-fill { display: block; height: 100%; background: var(--gold); }
.qz-type-v { font-weight: 800; font-variant-numeric: tabular-nums; }
.qz-marks { display: grid; gap: 7px; }
.qz-mark {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 0.9rem;
}
.qz-mark-n { font-weight: 800; }
.qz-mark-t { color: var(--ink-soft); }
.qz-mark-s { font-weight: 700; font-size: 0.82rem; }
.qz-mark.is-ok { border-left: 4px solid #1f8a4c; }
.qz-mark.is-ok .qz-mark-s { color: #1f8a4c; }
.qz-mark.is-no { border-left: 4px solid #c0392b; }
.qz-mark.is-no .qz-mark-s { color: #c0392b; }
.qz-report-feet { display: flex; gap: 10px; margin-top: 28px; }

/* --- on a phone ----------------------------------------------------- */
/* The two columns become one. A passage and its options side by side in
   375px would be two unreadable columns, so the passage sits above the
   question and both scroll together. */
@media (max-width: 860px) {
  .qz-body { flex-direction: column; overflow-y: auto; }
  .qz-read, .qz-ask-side { flex: none; overflow: visible; }
  .qz-read { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 18px; }
  .qz-ask-side { padding: 20px 18px 28px; }
  .qz-bar-right { display: none; }
  .qz-bar-left { min-width: 0; }
}

/* A pin through the corner of the two demo tests. They are the only
   buttons on the page that open something rather than go somewhere, and
   they are the step the whole section is pointing at, so they are
   marked.
 *
 * In the corner rather than inline. Sitting in the text it read as a
 * bullet - part of the label - and pushed the words off centre. Pushed
 * through the top-left corner it reads as something holding the button
 * down, which is the thing a pin actually does, and the label is left
 * alone.
 *
 * The square corner of the teardrop is its bottom-right, so the point
 * aims into the button it is pinning rather than away from it.
 *
 * Drawn rather than an image on purpose: it is the same two colours at
 * any size on any screen, costs no request, and recolours with the rest
 * of the site if the red ever moves. A PNG would need a second file, a
 * retina copy, and would still be the wrong red the day the palette
 * changes. */
.btn-pin { position: relative; overflow: visible; }
.btn-pin::before {
  content: ''; position: absolute; z-index: 2;
  top: -8px; left: -8px;
  width: 20px; height: 20px;
  background: #c0392b;
  border-radius: 50% 50% 0 50%;
  box-shadow: 0 2px 5px rgba(20, 33, 61, 0.35);
}
/* The head of the pin, so it reads as a pin and not as a dot. */
.btn-pin::after {
  content: ''; position: absolute; z-index: 3;
  top: -2px; left: -2px;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

/* The hint on the courses page leads with a lightbulb. This one IS an
   emoji, deliberately: it is decoration beside text that already says the
   whole thing, so a platform drawing it differently costs nothing, and
   `aria-hidden` keeps it out of the screen reader's way. */
.basket-hint::before { content: '\01F4A1'; margin-right: 9px; }


/* === the staff panel ================================================= */
/* Not a marketing page. It is a table somebody scans while on the phone to
   a parent, so it is denser than the rest of the site and plainer: no
   lifts, no shadows, nothing that moves. The same tokens, because it is
   still the same school and a second palette would be a second thing to
   maintain. */
.ad { display: grid; gap: 14px; }

.ad-gate {
  max-width: 420px; padding: 26px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper-alt);
}
.ad-gate h2 { margin: 0 0 8px; font-size: 1.2rem; }
.ad-gate p { margin: 0 0 16px; color: var(--ink-soft); }

.ad-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.ad-tabs { display: flex; gap: 6px; }
.ad-tab {
  font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
}
.ad-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Which half of Stripe is being shown.
   Sits with the tabs rather than over by the sign-out, because it changes
   what the table means rather than who is looking at it. Test is a loud
   yellow on purpose: rehearsal data and the day's takings must never be
   mistaken for one another, and the cost of telling them apart should be
   noticing a colour rather than reading a number. */
.ad-mode {
  font: inherit; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: #eaf4ec; color: var(--go); border: 1px solid #bcdcc4;
}
.ad-mode.is-test { background: #fdf1cf; color: var(--gold-dark); border-color: #e8cf8e; }
.ad-mode:hover { filter: brightness(0.97); }

/* Pushes the identity and the way out to the far end, away from the tabs -
   signing out is not a thing to click by accident while changing view. */
/* Which build is in the browser, small and grey. It is for the one
   conversation that starts "has it deployed yet". */
.ad-build { font-size: 0.72rem; color: var(--ink-soft); opacity: 0.7; letter-spacing: 0.02em; }
/* A failure, shown rather than swallowed. The detail is monospaced because
   it is meant to be read out or copied, not admired. */
.ad-fault {
  display: block; margin-top: 8px; padding: 8px 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.74rem;
  white-space: pre-wrap; word-break: break-word;
  background: #fff4f4; border: 1px solid #f0c9c9; border-radius: 8px;
}
.ad-who { margin-left: auto; font-size: 0.88rem; color: var(--ink-soft); }
.ad-ghost {
  font: inherit; font-size: 0.88rem; cursor: pointer; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink-soft);
}

.ad-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ad-q { flex: 1 1 260px; min-width: 0; }

/* Said above the table rather than under it, because the thing it warns
   about - a refunded payment still reading as paid - is misread at a
   glance, and a note below the fold is a note nobody saw. */
.ad-caveat {
  margin: 0; padding: 10px 14px; font-size: 0.85rem; line-height: 1.5;
  color: #7a5a00; background: #fdf7ea; border: 1px solid #e8d6a8;
  border-radius: 10px;
}

.ad-body { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ad-table th {
  text-align: left; font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 800;
  padding: 0 14px 8px 0; white-space: nowrap;
  border-bottom: 2px solid var(--line);
}
.ad-table td {
  padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
/* A phone number that has wrapped cannot be read back down a phone line. */
.ad-table td:nth-child(-n+4) { white-space: nowrap; }
.ad-table tbody tr:hover { background: var(--paper-alt); }
.ad-stripe { font-size: 0.82rem; white-space: nowrap; }

.ad-count { margin: 10px 0 0; font-size: 0.84rem; color: var(--ink-soft); }
.ad-empty { margin: 24px 0; color: var(--ink-soft); }
.ad-error {
  margin: 16px 0 0; padding: 10px 14px; border-radius: 10px;
  background: #fdeaea; border: 1px solid #f0b4b4; color: #8f1d1d;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .ad-who { margin-left: 0; width: 100%; }
  .ad-table { font-size: 0.84rem; }
}
