/* ============================================================================
   TopMark Tutors, redesign draft, second pass.

   The page ORDER is still the thing Contour gets right and most tutoring sites
   get wrong: proof before prose, named results near the top, the offer itemised,
   one repeated call to action, and a form that asks one thing at a time.

   Everything you can SEE is now TopMark's own, so the two do not read alike:
     Contour              TopMark
     cream page           white page, cool grey bands
     electric lime        amber #EDA421, straight off the logo
     bright blue #007AFF  navy #182C4D, straight off the logo
     full pill buttons    12px squircles
     highlight block      a gold marker underline, like a marked page
     organic blobs        cards with one squared corner, like a dog-eared page
     centred nav capsule  nav left-aligned off the wordmark
   ========================================================================= */

:root {
  /* straight off topmark-logo.png */
  --navy:       #182C4D;
  --navy-700:   #11213B;
  --navy-900:   #0B1526;
  --gold:       #EDA421;
  --gold-600:   #D18F15;   /* graphics only, fails contrast as text */
  --gold-text:  #97650C;   /* same hue, dark enough for small type */
  --gold-100:   #FDF3DE;

  /* surfaces */
  --page:       #FFFFFF;
  --band:       #F2F4F8;
  --band-warm:  #FBF7EF;
  --ink:        #141A24;
  --ink-soft:   #5B6474;
  --line:       #E2E6EE;

  --ok:         #1B7F5E;

  /* shape: squared off, not pill shaped */
  --r-btn:  12px;
  --r-card: 16px;
  --r-page: 16px 16px 16px 0;   /* the dog-ear: one corner stays square */
  --shadow: 0 14px 40px rgba(24,44,77,.10);
  --shadow-sm: 0 4px 14px rgba(24,44,77,.07);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* the header is sticky, so anything jumped to lands underneath it unless the
   target reserves the space. matters more now that the Tutoring menu links
   straight at individual programme cards. */
:target, [id] { scroll-margin-top: 86px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 740px; }

/* ----------------------------------------------------------------- type */
h1, h2, h3, h4 { margin: 0; letter-spacing: -.022em; line-height: 1.06; font-weight: 800; }
.display { font-size: clamp(38px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -.032em; }
.h-section { font-size: clamp(29px, 3.8vw, 48px); line-height: 1.06; }
.h-card { font-size: 20px; line-height: 1.25; letter-spacing: -.012em; }

.lead { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--ink-soft); line-height: 1.58; margin: 20px 0 0; }
.muted { color: var(--ink-soft); }
p { margin: 14px 0 0; }

/* the marked word: a gold stroke drawn under it, the way someone underlines a
   word by hand. It sits below the descender line rather than through it, and
   stays behind the type, so a g or a y crosses it without being cut. */
.mark {
  position: relative;
  display: inline-block;
  color: var(--navy);
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute; left: -.05em; right: -.05em; bottom: -.17em;
  height: .22em;
  background: url("data:image/svg+xml,<svg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20400%2018%22%20preserveAspectRatio=%22none%22><path%20d=%22M5%2011.2C44%206.6%2092%206.2%20150%207.4%20208%208.6%20254%2010.6%20302%208.6%20340%207%20370%208.4%20395%2012.4%22%20fill=%22none%22%20stroke=%22%23EDA421%22%20stroke-width=%227.2%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/></svg>") center / 100% 100% no-repeat;
  z-index: -1;
}
.band-navy .mark { color: #fff; }
.band-navy .mark::after { opacity: .95; }

/* a small gold tick, the house motif, used on eyebrows and lists */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 15px; height: 9px; flex: 0 0 auto;
  border-left: 2.6px solid var(--gold); border-bottom: 2.6px solid var(--gold);
  transform: rotate(-45deg) translate(1px, -2px);
}
.eyebrow--light { color: rgba(255,255,255,.72); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-btn); border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: 650; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-accent  { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-accent:hover { background: var(--gold-600); border-color: var(--gold-600); transform: translateY(-1px); }
.btn-navy    { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-outline { background: var(--page); color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn-on-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }

/* ----------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 30px; padding: 13px 28px;
           max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
         font-weight: 800; letter-spacing: -.02em; font-size: 19.5px; color: var(--navy); }
.brand img { width: 40px; height: 40px; }
.brand i { font-style: normal; color: var(--ink-soft); font-weight: 650; }

/* left aligned, no capsule */
.main-nav { display: flex; gap: 2px; margin-right: auto; }
.main-nav a {
  padding: 9px 14px; border-radius: 9px; text-decoration: none;
  font-size: 15.5px; font-weight: 550; color: var(--ink-soft); position: relative;
}
.main-nav a:hover { color: var(--navy); background: var(--band); }
.main-nav a.on { color: var(--navy); font-weight: 700; }
.main-nav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2.5px; border-radius: 2px; background: var(--gold);
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-actions .btn { padding: 10px 19px; font-size: 15px; }
.head-link { text-decoration: none; font-size: 15.5px; font-weight: 550; color: var(--ink-soft); padding: 8px 4px; }
.head-link:hover { color: var(--navy); }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line);
          background: #fff; border-radius: 11px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--navy); margin: 3.5px auto; border-radius: 2px; }

/* --------------------------------------------------------------- sections */
section { padding: clamp(58px, 7.2vw, 104px) 0; }
.band-grey { background: var(--band); }
.band-warm { background: var(--band-warm); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy .lead, .band-navy .muted { color: rgba(255,255,255,.76); }

/* the announcement is a line in the flow, not a strip across the top */
.notice {
  display: inline-flex; align-items: flex-start; gap: 10px;
  background: var(--gold-100); color: var(--navy);
  border: 1.5px solid rgba(237,164,33,.45);
  padding: 8px 16px; border-radius: 10px;
  font-size: 14.5px; font-weight: 650; text-decoration: none;
}
.notice::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex: 0 0 auto; margin-top: .56em;
}
.notice:hover { border-color: var(--gold); background: #fff; }

/* ------------------------------------------------------------------- hero */
.hero { padding-top: clamp(34px, 4.2vw, 62px); }
.hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 52px; align-items: center; }
.hero .display { margin-top: 24px; }

/* photographs sit in page-shaped frames: three rounded corners, one square */
.shot-stack { position: relative; min-height: 430px; }
.shot {
  position: absolute; overflow: hidden;
  border-radius: var(--r-page); box-shadow: var(--shadow);
  background: var(--band) linear-gradient(100deg,
    rgba(255,255,255,0) 20%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 80%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.shot:has(img.ready), .prod-img:has(img.ready), .faces .face-img:has(img.ready)
  { animation: none; background: var(--band); }
@keyframes shimmer { from { background-position: 180% 0 } to { background-position: -80% 0 } }
/* only hide a photo behind its placeholder when there is a script to reveal
   it again. without one the images simply show, which is the whole point of
   putting the flag in the head rather than at the end of the body. */
.js .shot img, .js .prod-img img, .js .mosaic img, .js .faces img {
  opacity: 0; transition: opacity .32s ease;
}
.js .shot img.ready, .js .prod-img img.ready, .js .mosaic img.ready,
.js .faces img.ready { opacity: 1; }
.shot:not(:has(img)), .prod-img:not(:has(img)) { animation: none; }
html:not(.js) .shot, html:not(.js) .prod-img { animation: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ face anchors
   Every portrait is taller than the boxes it sits in, so object-fit: cover
   has to throw away part of the height. Left at the default centre it threw
   away the top, which is where the faces are. These values were measured from
   each photograph: ahmed's face centres 41% across and 41% down his frame,
   ali's 51% and 39%, haseef's 49% and 25%. Keying off the filename means any
   new crop anywhere on the site inherits the right framing instead of
   quietly cutting someone's head off again. */
img[src*="ahmed-aly"]   { object-position: 41% 35%; }
img[src*="ali-alebadi"] { object-position: 51% 33%; }
img[src*="haseef"]      { object-position: 49%  8%; }
/* document covers are read top down, so never centre them */
img[src*="res-topmark"] { object-position: 50% 0%; }
.shot-a { inset: 0 30% 18% 0; }
.shot-b { inset: 22% 0 0 42%; border-radius: 16px 16px 0 16px; }
/* a single portrait, for pages about one person */
.shot-solo { min-height: 470px; }
.shot-one { inset: 0 14% 10% 6%; }
.shot-badge {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--gold); color: var(--navy-900);
  border-radius: 14px 14px 14px 0; padding: 14px 18px;
  font-weight: 800; font-size: 15px; line-height: 1.2; box-shadow: var(--shadow-sm);
}
.shot-badge small { display: block; font-weight: 600; font-size: 12.5px; opacity: .78; margin-top: 2px; }

/* ------------------------------------------------------------- stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
         background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card);
         overflow: hidden; }
.stat { background: var(--page); padding: 30px 24px; text-align: center; }
.band-navy .stats { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.16); }
.band-navy .stat { background: var(--navy); }
.stat-n { font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em;
          line-height: 1; color: var(--navy); }
.band-navy .stat-n { color: var(--gold); }
.stat-l { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.42; }
.band-navy .stat-l { color: rgba(255,255,255,.7); }

/* ---------------------------------------------------------- result cards */
/* one grid, one card, seventeen students. a card with no subject grades is
   simply shorter, which is information, not a different species of thing. */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
           margin-top: 34px;
  /* every card the same size. align-items: start used to size each one to its
     own content, so a card carrying two subject grades stood 127px tall next
     to one with only a school at 91px, and the grid read as three different
     kinds of thing. 1fr rows take their height from the tallest card in the
     whole grid, so the only difference left is what is written inside. */
  grid-auto-rows: 1fr; align-items: stretch; }
.results[data-collapsed="yes"] .result[data-extra] { display: none; }

/* the revealed cards ease in rather than snapping into place, so the button
   reads as having done something */
.result[data-extra] { animation: cardIn .34s cubic-bezier(.2,.7,.3,1) both; }
.results[data-collapsed="yes"] .result[data-extra] { animation: none; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}
.result[data-extra]:nth-of-type(9)  { animation-delay: .02s }
.result[data-extra]:nth-of-type(10) { animation-delay: .05s }
.result[data-extra]:nth-of-type(11) { animation-delay: .08s }
.result[data-extra]:nth-of-type(12) { animation-delay: .11s }
.result[data-extra]:nth-of-type(13) { animation-delay: .14s }
.result[data-extra]:nth-of-type(14) { animation-delay: .17s }
.result[data-extra]:nth-of-type(15) { animation-delay: .20s }
.result[data-extra]:nth-of-type(16) { animation-delay: .23s }
.result[data-extra]:nth-of-type(17) { animation-delay: .26s }
.result {
  background: #fff; color: var(--ink); border-radius: var(--r-page);
  padding: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.result b { font-size: 16px; font-weight: 700; color: var(--navy); }
.result small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }
.result .score { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.025em; }
.chip {
  display: inline-block; background: var(--gold); color: var(--navy-900);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; margin-left: 7px; vertical-align: 2px;
}

/* the subject tally, so the numbers read as a cohort rather than a shortlist */
.grades { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.grade {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 9px 15px; font-size: 14.5px; color: rgba(255,255,255,.8);
}
.grade b { color: var(--gold); font-weight: 800; font-size: 16px; }

/* The button only exists once the script has run. Without JavaScript every
   student is already on the page, so a button that collapses them would be a
   control that does nothing. */
.results-toggle { display: none; margin-top: 24px; }
.js .results-toggle { display: inline-flex; }
.results-toggle .count { opacity: .72; font-weight: 600; }

.results-note { font-size: 13.5px; color: rgba(255,255,255,.58); margin-top: 20px;
                max-width: 76ch; line-height: 1.5; }

/* --------------------------------------------------------- product cards */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.prod {
  background: var(--page); border: 1.5px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.prod:hover { border-color: var(--navy); }
.prod.static:hover { border-color: var(--line); }
.prod.static .stat-n { color: var(--gold-text); }
.prod-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--navy) linear-gradient(100deg,
    rgba(255,255,255,0) 20%, rgba(255,255,255,.14) 50%, rgba(255,255,255,0) 80%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-kind {
  position: absolute; left: 14px; top: 14px;
  background: var(--gold); color: var(--navy-900); border-radius: 7px;
  padding: 5px 11px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}
.prod-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { color: var(--navy); }
.prod-body p { font-size: 15px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.prod-body .btn { margin-top: 20px; align-self: flex-start; }
.prod-list { list-style: none; margin: 14px 0 0; padding: 0; }
.prod-list li { position: relative; padding-left: 24px; font-size: 14.5px;
                color: var(--ink-soft); margin-bottom: 7px; line-height: 1.45; }
.prod-list li::before {
  content: ""; position: absolute; left: 2px; top: .44em; width: 11px; height: 6px;
  border-left: 2.2px solid var(--gold); border-bottom: 2.2px solid var(--gold);
  transform: rotate(-45deg);
}

/* --------------------------------------------------- proof + photo mosaic */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* grid items default to min-width:auto, so a wide child (a form, a table of
   subject pickers) can push its whole column past the container and drag the
   text column with it. this is the standard remedy and it costs nothing. */
.proof-grid > *, .hero-grid > *, .two-cols > *, .form-layout > * { min-width: 0; }
.proof-list { list-style: none; padding: 0; margin: 24px 0 0; }
.proof-list li { position: relative; padding-left: 32px; margin-bottom: 13px;
                 font-size: 16px; line-height: 1.5; }
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 17px; height: 9px;
  border-left: 2.8px solid var(--gold); border-bottom: 2.8px solid var(--gold);
  transform: rotate(-45deg);
}
/* ------------------------------------------------------------------ faces
   Three people, three numbers, each caption under its own face. This replaces
   a 2x2 mosaic whose gold tile read "3210 Haseef's UCAT" while sitting
   directly beside Ali's photograph, so the page appeared to claim Ali had
   sat a UCAT he has never published a score for. Captions that belong to a
   person now live underneath that person. */
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.faces figure { margin: 0; }
.faces .face-img { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r-page);
                   background: var(--band); box-shadow: var(--shadow-sm); }
.faces img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faces figcaption { margin-top: 11px; text-align: center; }
.faces .face-name { display: block; font-weight: 800; font-size: 15px; color: var(--ink); }
.faces .face-n { display: block; font-weight: 800; font-size: 19px; letter-spacing: -.02em;
                 color: var(--gold-text); margin-top: 3px; }
.faces .face-w { display: block; font-size: 12.5px; font-weight: 600;
                 color: var(--ink-soft); margin-top: 1px; }
@media (max-width: 560px) {
  .faces { gap: 9px }
  .faces .face-name { font-size: 13.5px }
  .faces .face-n { font-size: 16px }
  .faces .face-w { font-size: 11.5px }
}

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic > * { border-radius: var(--r-page); overflow: hidden; aspect-ratio: 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.tile {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 20px; text-align: center;
  font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.02em;
}
.tile small { display: block; font-weight: 600; font-size: 13px; margin-top: 7px;
              letter-spacing: 0; opacity: .82; }
.tile-navy { background: var(--navy); color: #fff; }
/* a navy tile sitting on a navy band vanishes, and the text reads as floating
   on the background rather than as a tile. give it a lighter face there. */
.band-navy .tile-navy { background: rgba(255,255,255,.10);
                        border: 1px solid rgba(255,255,255,.17); }
.tile-gold { background: var(--gold); color: var(--navy-900); }
.tile-grey { background: var(--band); color: var(--navy); }

/* ------------------------------------------------------------ quote cards */
.quotes { columns: 3; column-gap: 18px; margin-top: 42px; }
.quote {
  break-inside: avoid; margin: 0 0 18px; padding: 26px 26px 24px;
  border-radius: var(--r-page); background: var(--page);
  border: 1.5px solid var(--line);
}
.quote::before {
  content: "\201C"; display: block; font-size: 46px; line-height: .6;
  color: var(--gold); font-weight: 800; margin-bottom: 10px;
}
.quote p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.quote .who { margin-top: 18px; font-size: 14px; line-height: 1.35; color: var(--ink-soft);
              display: flex; align-items: center; gap: 12px; }
.quote .who b { display: block; font-weight: 700; color: var(--ink); }
.quote .score-chip {
  margin-left: auto; flex: 0 0 auto; background: var(--band); color: var(--navy);
  border-radius: 9px; padding: 7px 11px; text-align: center;
  font-size: 11.5px; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
.q-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.q-navy .who { color: rgba(255,255,255,.74); }
.q-navy .who b { color: #fff; }
.q-navy .score-chip { background: rgba(255,255,255,.16); color: #fff; }
.q-warm { background: var(--band-warm); border-color: #EFE4CE; }
.q-warm .score-chip { background: #fff; }

/* ------------------------------------------------------------ offer rows */
.offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 42px; }
.offer-row {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
  background: var(--page); border: 1.5px solid var(--line); border-radius: var(--r-card);
}
.offer-row .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--gold-100);
  display: grid; place-items: center; margin-top: 2px;
}
.offer-row .tick::before {
  content: ""; width: 11px; height: 6px;
  border-left: 2.4px solid var(--gold-text); border-bottom: 2.4px solid var(--gold-text);
  transform: rotate(-45deg) translate(1px, -1px);
}
.offer-row h3 { font-size: 17.5px; color: var(--navy); }
.offer-row p { margin: 5px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.offer-row .price-tag {
  margin-left: auto; font-size: 14px; font-weight: 700; color: var(--navy);
  background: var(--band); padding: 6px 12px; border-radius: 8px; white-space: nowrap;
}

/* ------------------------------------------------------------- price cards */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px;
          align-items: stretch; }
.price {
  background: var(--page); border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 28px; display: flex; flex-direction: column; position: relative;
}
.price.feature { background: var(--navy); color: #fff; border-color: var(--navy); }
.price.feature p, .price.feature .amt sub { color: rgba(255,255,255,.76); }
.price .tag { font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
              text-transform: uppercase; color: var(--ink-soft); }
.price.feature .tag { color: var(--gold); }
.price .amt { font-size: 42px; font-weight: 800; letter-spacing: -.035em; margin: 14px 0 0;
              line-height: 1; color: var(--navy); }
.price.feature .amt { color: #fff; }
.price .amt sub { font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
                  vertical-align: 2px; letter-spacing: 0; margin-left: 4px; }
.price p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.price .btn { margin-top: 20px; width: 100%; }
.price .ribbon, .pick .ribbon {
  position: absolute; top: -11px; left: 28px; background: var(--gold); color: var(--navy-900);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 6px;
}

/* -------------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-size: 17.5px; font-weight: 650; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 25px;
  width: 10px; height: 10px; border-right: 2.4px solid var(--gold);
  border-bottom: 2.4px solid var(--gold); transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; max-width: 70ch; }

/* ----------------------------------------------------------------- closer */
.closer { text-align: center; }
.closer .btn-row { justify-content: center; }

/* ----------------------------------------------------------------- footer */
.site-foot { background: var(--navy-900); color: rgba(255,255,255,.68); padding: 66px 0 32px; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-top > * { min-width: 0; }
.site-foot a { overflow-wrap: anywhere; }
.site-foot h4 { color: #fff; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
                margin-bottom: 14px; font-weight: 700; }
.site-foot a { color: rgba(255,255,255,.68); text-decoration: none; display: block;
               padding: 5px 0; font-size: 15px; }
.site-foot a:hover { color: var(--gold); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800;
              font-size: 19px; margin-bottom: 14px; }
.foot-brand img { width: 40px; height: 40px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
               display: flex; justify-content: space-between; gap: 18px; font-size: 14px; flex-wrap: wrap; }

/* =================================================== the multi-step form */
.step {
  background: var(--page); border: 1.5px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; margin-bottom: 12px;
}
.step[data-open="yes"] { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.step-head {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 20px;
  background: var(--page); color: var(--navy); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16.5px; text-align: left;
}
.step[data-open="yes"] .step-head { background: var(--navy); color: #fff; }
.step-head .n {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--band); color: var(--navy); font-size: 13px; font-weight: 800; flex: 0 0 auto;
}
.step[data-open="yes"] .step-head .n { background: rgba(255,255,255,.2); color: #fff; }
.step[data-done="yes"] .step-head .n { background: var(--gold); color: var(--navy-900); }
.step-state {
  margin-left: auto; font-size: 12.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-soft);
}
.step[data-open="yes"] .step-state { color: rgba(255,255,255,.66); }
.step[data-done="yes"] .step-state { color: var(--ok); }
.step[data-done="yes"][data-open="yes"] .step-state { color: var(--gold); }
.step-body { padding: 24px 20px 26px; display: none; }
.step[data-open="yes"] .step-body { display: block; }
.step-q { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: var(--navy); }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 22px 20px; cursor: pointer; background: var(--page);
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--navy); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.choice .sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 7px; line-height: 1.42; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--band); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.field { margin-bottom: 17px; }
.field > label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 7px; color: var(--navy); }
.field .req { color: var(--gold-text); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--page); color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(24,44,77,.14);
}
.field small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.seg { display: flex; gap: 10px; }
.seg label {
  flex: 1; position: relative; text-align: center; padding: 13px;
  border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer;
  font-size: 15px; font-weight: 650; background: var(--page); color: var(--ink-soft);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.pickers { display: grid; gap: 10px; }
.picker {
  display: flex; gap: 13px; align-items: flex-start; padding: 16px 17px;
  border: 1.5px solid var(--line); border-radius: var(--r-card); cursor: pointer; background: var(--page);
}
.picker:hover { border-color: var(--navy); }
.picker:has(input:checked) { border-color: var(--navy); background: var(--band); }
.picker:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.picker input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--navy); flex: 0 0 auto; }
.picker b { display: block; font-size: 15.5px; color: var(--navy); }
.picker small { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; }

/* The consent tick is a legal agreement, not one of the choices above it, so
   it deliberately sheds the card: a plain square box and a sentence, separated
   from the pickers by a rule. Dressing a required legal tick up to look like an
   optional choice is how people tick it without reading it. */
.consent {
  display: flex; align-items: flex-start; gap: 13px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 21px; height: 21px; margin: 2px 0 0;
  border: 1.6px solid var(--ink-soft); border-radius: 3px;
  background: var(--page); cursor: pointer; position: relative;
  transition: background .12s ease, border-color .12s ease;
}
.consent:hover input { border-color: var(--navy); }
.consent input:checked { background: var(--navy); border-color: var(--navy); }
.consent input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2.5px;
  width: 6px; height: 11px; border: solid #fff;
  border-width: 0 2.2px 2.2px 0; transform: rotate(42deg);
}
.consent input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent a { color: var(--navy); font-weight: 600; text-decoration: underline;
             text-underline-offset: 2px; }

.step-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 650; }
.form-status.err { color: #B3261E; }
.form-status.ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-layout { display: grid; grid-template-columns: 1fr 292px; gap: 32px; align-items: start; }
.rail { position: sticky; top: 92px; background: var(--band); border: 1.5px solid var(--line);
        border-radius: var(--r-card); padding: 22px; }
.rail h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
           color: var(--ink-soft); margin-bottom: 14px; font-weight: 700; }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; }
.rail .dot { width: 21px; height: 21px; border-radius: 7px; border: 1.6px solid var(--line);
             background: #fff; flex: 0 0 auto; display: grid; place-items: center;
             font-size: 11px; font-weight: 800; color: var(--ink-soft); margin-top: 1px; }
.rail li.done .dot { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.rail li.done span { color: var(--navy); font-weight: 650; }
.rail span { color: var(--ink-soft); }

/* ------------------------------------------------ draft-only theme toggle */
.draft-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  background: var(--navy-900); color: #fff; border-radius: 12px;
  padding: 8px 9px 8px 15px; display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; box-shadow: 0 14px 34px rgba(0,0,0,.3);
}
.draft-bar button {
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 8px; padding: 7px 12px; background: rgba(255,255,255,.14); color: #fff;
}
.draft-bar button.on { background: var(--gold); color: var(--navy-900); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  /* the burger used to reveal only Login and Book a free class, because the
     whole nav was display:none and never came back. a phone therefore could
     not reach Tutoring, Free Resources or Results at all. letting the header
     row wrap means both can drop underneath as full width rows. */
  .head-in { flex-wrap: wrap; row-gap: 0; }
  .main-nav, .head-actions { display: none; }
  .burger { display: block; margin-left: auto; }

  .site-head.nav-open .main-nav,
  .site-head.nav-open .head-actions {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 4px; order: 3;
  }
  .site-head.nav-open .main-nav {
    margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  }
  .site-head.nav-open .main-nav > a { padding: 12px 10px; font-size: 16.5px; }
  .site-head.nav-open .head-actions { padding: 12px 0 6px; }
  .site-head.nav-open .head-actions .btn { text-align: center; }

  /* in a burger menu a hover menu is no use, so the three services are
     simply listed, indented under the heading they belong to */
  .nav-item { width: 100%; }
  .nav-trigger { width: 100%; justify-content: flex-start; padding: 12px 10px;
                 font-size: 16.5px; }
  .nav-trigger .chev { display: none; }
  /* width:auto matters. the desktop panel is a fixed 420px, which is wider
     than a phone and pushed the whole page sideways once the burger opened. */
  .nav-menu { position: static; display: block; opacity: 1; visibility: visible;
              transform: none; padding: 0; pointer-events: auto;
              width: auto; max-width: 100%; top: auto; }
  .nav-menu-in { border: 0; box-shadow: none; padding: 0 0 6px 10px;
                 width: auto; background: none; }
  /* in a burger menu the three products are a plain indented list: no images,
     no descriptions, nothing to scroll past to reach the next heading */
  .nav-menu-label, .nav-menu-foot, .np-img, .nav-prod small, .np-more { display: none; }
  .nav-prods { display: block; }
  .nav-prod { padding: 9px 10px; border-left: 2px solid var(--line);
              border-radius: 0; }
  .nav-prod b { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
  .hero-grid, .proof-grid, .form-layout { grid-template-columns: 1fr; gap: 38px; }
  .rail { position: static; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .quotes { columns: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .prod-grid, .prices { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .shot-stack { min-height: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .head-in { padding: 11px 18px; gap: 14px; }
  .results { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .choices, .two-up { grid-template-columns: 1fr; }
  .seg { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .offer-row { flex-wrap: wrap; }
  .offer-row .price-tag { margin-left: 42px; }
  .shot-stack { min-height: 290px; }
  .shot-badge { padding: 11px 14px; font-size: 14px; }
}


/* ==========================================================================
   V54  free resources page
   ========================================================================== */

/* hero: copy on the left, a fan of three real covers on the right. the covers
   are 480x679 documents, so they are framed top down, never centred. */
.res-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
/* ------------------------------------------------------------------- fan
   Five covers in an arc. Each card carries its index as --i, and every
   position below is derived from it, so the fan is one idea rather than five
   hand-placed boxes. Hovering the fan opens the spread a little; hovering one
   card straightens it, lifts it and brings it to the front. The cards are
   4/5, deliberately shorter than a page, because a full A4 crop stood far too
   tall next to the copy. */
.fan {
  position: relative; height: 430px; perspective: 1200px;
  /* width: 100% is load bearing. as a grid item, auto inline margins stop
     the default stretch, and since every card inside is absolutely
     positioned the content width is zero, so the fan collapsed to nothing. */
  width: 100%; max-width: 560px; margin-inline: auto;
}
.fan-card {
  position: absolute; left: 50%; top: 10px;
  width: 29%; aspect-ratio: 4/5; padding: 0; border: 0; cursor: pointer;
  border-radius: 13px; overflow: hidden; background: var(--page);
  box-shadow: 0 10px 30px rgba(24,44,77,.17);
  outline: 1px solid rgba(24,44,77,.10); outline-offset: -1px;
  /* the step is a percentage of the card, not pixels, so the whole fan
     scales with its column. with a 38% card and a 30% step the five cards
     span 29% x (1 + 4 x 0.33) = 67% of the fan at rest and 94% fully opened,
     which leaves room for the rotation and the hover scale. */
  --spread: 33%;               /* horizontal step, of one card's width */
  --tilt: 6deg;                /* rotation step between cards */
  --lift: 11px;                /* how much the outer cards drop */
  transform:
    translateX(calc(-50% + (var(--i) - 2) * var(--spread)))
    translateY(calc(abs(var(--i) - 2) * var(--lift)))
    rotate(calc((var(--i) - 2) * var(--tilt)));
  transform-origin: 50% 110%;
  transition: transform .34s cubic-bezier(.22,.8,.3,1), box-shadow .24s ease;
  /* stack left to right, so every card keeps its right edge exposed and can
     actually be pointed at. with the middle card on top, as it was, the two
     outer cards were covered at their centres and could not be hovered. */
  z-index: calc(var(--i) + 1);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
                display: block; }
/* opening the spread on hover is what makes it feel like a hand of cards */
/* opening wide enough that more than half of every card is exposed is the
   difference between a fan you can point at and one where only the top card
   is reachable. the tilt eases off at the same time so the rotated corners
   do not reach the edge of the box. */
.fan:hover .fan-card, .fan:focus-within .fan-card { --spread: 56%; --tilt: 4deg; }
.fan-card:hover, .fan-card:focus-visible {
  transform:
    translateX(calc(-50% + (var(--i) - 2) * var(--spread)))
    translateY(-16px) rotate(0deg) scale(1.07);
  box-shadow: 0 22px 54px rgba(24,44,77,.30);
  z-index: 9;
}
.fan-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .fan-card { transition: none; }
}

/* the library, grouped so twenty-three files read as four shelves */
.res-group { margin-top: 62px; }
.res-group:first-child { margin-top: 0; }
.res-group-head { max-width: 620px; margin-bottom: 26px; }
.h-sub { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.12; }
.res-group-head .muted { font-size: 15.5px; margin-top: 9px; line-height: 1.5; }

.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.res-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-page);
  background: var(--page);
}
.res-card:hover { border-color: var(--navy); }

.res-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--band); }
.res-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-kind {
  position: absolute; left: 12px; top: 12px;
  background: var(--gold); color: var(--navy-900); border-radius: 7px;
  padding: 4px 10px; font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}
.res-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.res-body h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.012em; }
.res-meta { font-size: 12.5px; font-weight: 650; color: var(--gold-text);
            margin-top: 8px; letter-spacing: .01em; }
.res-body p:not(.res-meta) { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-top: 10px; }
.res-get { margin-top: auto; align-self: flex-start; margin-top: 18px; }

/* the one form, sitting on the navy band as a white card */
.res-form { background: var(--page); color: var(--ink);
            border-radius: var(--r-page); padding: 30px 30px 32px; box-shadow: var(--shadow); }
.res-form .step-q { margin-top: 0; }
.res-form .choices-2 { grid-template-columns: 1fr 1fr; }
.res-form .choice .big { font-size: 20px; }
.res-form .field select { width: 100%; }
.res-form .form-note { margin-bottom: 20px; }

@media (max-width: 1080px) {
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  .res-hero { grid-template-columns: 1fr; gap: 34px; }
  .res-stack { min-height: 330px; max-width: 460px; }
}
@media (max-width: 760px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* a fan needs room to open. on a phone it becomes a row that scrolls,
     which keeps all five reachable and keeps the rotation off the edge. */
  .fan { position: static; height: auto; max-width: none;
         display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px;
         scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .fan-card { position: static; flex: 0 0 44%; width: auto; transform: none;
              scroll-snap-align: start; }
  .fan:hover .fan-card, .fan:focus-within .fan-card { --spread: 0%; --tilt: 0deg; }
  .fan-card:hover, .fan-card:focus-visible { transform: translateY(-5px) scale(1.02); }
  .res-form { padding: 24px 20px 26px; }
  .res-group { margin-top: 46px; }
}
@media (max-width: 430px) {
  .res-grid { grid-template-columns: 1fr; }
  .fan-card { flex-basis: 58%; }
  .res-body h3 { font-size: 16px; }
}


/* ===================== V55  first page preview and clickable covers ====== */

/* the cover is a button, so it has to be reset to look like the div it was */
.res-cover { display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
             font: inherit; color: inherit; text-align: left; }
.res-cover img { transition: transform .3s cubic-bezier(.22,.8,.3,1); }
.res-card:hover .res-cover img { transform: scale(1.045); }
.res-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

.res-peek-hint {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(11,21,38,.88); color: #fff; border-radius: 8px;
  padding: 7px 11px; font-size: 12.5px; font-weight: 700; text-align: center;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.res-card:hover .res-peek-hint, .res-cover:focus-visible .res-peek-hint {
  opacity: 1; transform: none;
}

/* ------------------------------------------------------------- the dialog */
.peek {
  border: 0; padding: 0; width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); border-radius: var(--r-page);
  background: var(--page); color: var(--ink); box-shadow: 0 30px 90px rgba(11,21,38,.45);
  overflow: hidden;
}
.peek::backdrop { background: rgba(11,21,38,.66); backdrop-filter: blur(2px); }
.peek[open] { display: flex; flex-direction: column; }
.peek-head { display: flex; align-items: flex-start; gap: 16px;
             padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.peek-head .h-sub { font-size: 19px; line-height: 1.22; }
.peek-head .res-meta { margin-top: 5px; }
.peek-x { margin-left: auto; flex: 0 0 auto; width: 34px; height: 34px; border: 0;
          border-radius: 9px; background: var(--band); color: var(--ink);
          font-size: 22px; line-height: 1; cursor: pointer; }
.peek-x:hover { background: var(--line); }
/* the whole first page should be visible without scrolling wherever it fits,
   so the image is contained in the space left over rather than set to the
   full width and clipped by the footer. */
.peek-page { flex: 1 1 auto; min-height: 0; overflow: auto; background: var(--band);
             padding: 16px; display: flex; align-items: center; justify-content: center; }
/* max-height in percent would have to resolve against a flex-sized parent
   that is itself sized by this image, which is circular, so the browser
   ignores it and the page overflows. A viewport-relative cap has no such
   cycle: 300px is the header, the footer and the padding around it. */
.peek-page img { display: block; max-width: 100%;
                 max-height: max(220px, calc(100vh - 300px));
                 width: auto; height: auto; border-radius: 6px;
                 background: #fff; box-shadow: var(--shadow-sm); }
.peek-foot { display: flex; align-items: center; justify-content: space-between;
             gap: 14px; flex-wrap: wrap; padding: 15px 22px 18px;
             border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .peek-foot { flex-direction: column; align-items: stretch; }
  .peek-foot .btn { width: 100%; text-align: center; }
}


/* A fan only works where there is a pointer to open it with. On a touch
   screen nothing ever hovers, so the cards never separate and only the top
   one can be tapped. Any touch device therefore gets the same scrolling row
   the phone layout uses, whatever its width. */
@media (hover: none) {
  .fan { position: static; height: auto; max-width: none;
         display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px;
         scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .fan-card { position: static; flex: 0 0 42%; width: auto; transform: none;
              scroll-snap-align: start; }
  .fan:hover .fan-card, .fan:focus-within .fan-card { --spread: 0%; --tilt: 0deg; }
  .fan-card:hover, .fan-card:focus-visible { transform: translateY(-5px) scale(1.02); }
}


/* ==================== V56  the Tutoring menu ============================= */

/* static, deliberately: the panel is 940px wide and is positioned against
   the sticky header instead of against the word "Tutoring", so it centres on
   the page and cannot hang off the left edge. */
.nav-item { position: static; display: flex; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 550; color: var(--ink-soft);
  border-radius: 9px; text-decoration: none;
}
.nav-trigger:hover,
.nav-item.is-open .nav-trigger { color: var(--navy); background: var(--band); }
.nav-trigger .chev { transition: transform .2s ease; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-item.is-on .nav-trigger { color: var(--navy); font-weight: 700; }
.nav-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.nav-menu {
  /* anchored to the header, not to the word, so the panel can be wide enough
     for three products without hanging off the left of the nav. */
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-6px);
  z-index: 60;
  width: min(940px, calc(100vw - 32px));
  opacity: 0; visibility: hidden;
  pointer-events: none;

  /* The bridge. The visible panel sits 9px below the header, but the box that
     listens for the pointer starts 14px higher, flush with the bottom of the
     word Tutoring, because 14px was the measured dead band between the two.
     The gap you can see is unchanged: the box moved up and the padding grew
     by the same amount, so the panel has not moved a pixel. */
  top: calc(100% - 14px);
  padding-top: 23px;          /* 14 bridge + the 9 the panel sits down by */

  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* No :hover rule here on purpose. Aiming at the third product card, the
   pointer leaves the word Tutoring and clips the next nav link for a single
   frame on its way down. Hover can only be in one place, so pure CSS closed
   the menu mid journey however wide the bridge was made. Script now holds the
   state open through a short grace period, which re-entering cancels, and
   that is what Webflow does for the menu this was modelled on. */
.nav-item:focus-within .nav-menu,
.nav-item.is-open .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu-in {
  background: var(--page); border: 1px solid var(--line);
  border-radius: var(--r-page); box-shadow: var(--shadow); padding: 9px;
}
/* a label and a rule above the products, the way Contour's Products panel
   is laid out, so the panel reads as a section of the site rather than a
   list of links */
.nav-menu-label {
  margin: 4px 6px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.nav-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nav-prod {
  display: block; padding: 10px; border-radius: 13px; text-decoration: none;
  color: var(--ink);
}
.nav-prod:hover, .nav-prod:focus-visible { background: var(--band); }
.nav-prod:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.nav-prod.is-here { background: var(--band-warm); }
.np-img {
  display: block; position: relative; aspect-ratio: 16/10; overflow: hidden;
  border-radius: 10px; background: var(--navy); margin-bottom: 12px;
}
.np-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-tag {
  position: absolute; left: 9px; top: 9px;
  background: var(--gold); color: var(--navy-900); border-radius: 6px;
  padding: 3px 9px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}
.nav-prod b { display: block; font-size: 15.5px; color: var(--navy); letter-spacing: -.01em; }
.nav-prod small { display: block; font-size: 13px; line-height: 1.45;
                  color: var(--ink-soft); margin-top: 5px; }
.np-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  font-size: 13px; font-weight: 700; color: var(--navy);
}
.np-more svg { transition: transform .18s ease; }
.nav-prod:hover .np-more svg { transform: translateX(3px); }
.nav-menu-foot {
  margin: 12px 6px 2px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
}
.nav-menu-foot a { color: var(--navy); font-weight: 700; text-decoration: none;
                   padding: 0; display: inline; }
.nav-menu-foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .nav-menu, .nav-trigger .chev { transition: none; }
}


/* ===================== V57  SACE course page helpers ===================== */

/* two equal columns for the lecture and workshop explanation */
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 38px; }
@media (max-width: 860px) { .two-cols { grid-template-columns: 1fr; } }

/* the subject pickers are one word each, so they want a tighter grid than
   the booking form's two column version */
.pickers-tight { grid-template-columns: repeat(4, 1fr); gap: 9px; }
.pickers-tight .picker { padding: 13px 12px; text-align: center; }
.pickers-tight .picker span { display: block; }
.pickers-tight .picker b { font-size: 14px; }
@media (max-width: 760px) { .pickers-tight { grid-template-columns: repeat(2, 1fr); } }


/* ===================== V58  the portal page ============================= */

/* a plain browser frame round each capture, so a screenshot reads as a
   product shot rather than as an image that happens to be on the page */
.shotframe {
  margin: 0; border-radius: 12px; overflow: hidden; background: var(--page);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.sf-bar {
  display: flex; align-items: center; gap: 7px; padding: 9px 13px;
  background: var(--band); border-bottom: 1px solid var(--line);
}
.sf-dot { width: 9px; height: 9px; border-radius: 50%; background: #CFD6E2; flex: 0 0 auto; }
.sf-url {
  margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--page); border-radius: 6px; padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shotframe img { display: block; width: 100%; height: auto; }
.shotframe figcaption {
  padding: 12px 15px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.band-navy .shotframe { border-color: rgba(255,255,255,.14); }
.band-navy .shotframe figcaption { color: var(--ink-soft); background: var(--page); }

/* the hero capture sits slightly raised and clipped at the bottom, the way a
   product shot usually does, so the page does not open with a full rectangle */
.hero-shot { margin-top: 44px; max-width: 1040px; }
.shotframe.lift { box-shadow: 0 30px 70px rgba(24,44,77,.20); }

/* alternating rows: capture one side, explanation the other */
.shotrow {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px;
  align-items: center; margin-top: 46px;
}
.shotrow.flip .shotframe { order: 2; }
.shotcopy .eyebrow { margin-bottom: 12px; }
.shotcopy .muted { font-size: 15.5px; line-height: 1.55; margin-top: 10px; }

@media (max-width: 960px) {
  .shotrow { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .shotrow.flip .shotframe { order: 0; }
  .hero-shot { margin-top: 32px; }
}
@media (max-width: 520px) {
  .sf-url { font-size: 10.5px; }
}


/* ---------------------------------------------- the portal note on a course
   page. A short aside, not a section: copy on the left, one capture on the
   right, sitting inside the band it belongs to rather than starting a new one. */
.portal-note {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  margin-top: 30px; padding-top: 34px; border-top: 1px solid var(--line);
}
.portal-note > * { min-width: 0; }
.portal-note .muted { font-size: 15.5px; line-height: 1.55; margin-top: 10px; }
.portal-note .btn { margin-top: 20px; }
.band-navy .portal-note { border-top-color: rgba(255,255,255,.16); }
@media (max-width: 880px) {
  .portal-note { grid-template-columns: 1fr; gap: 22px; }
}


/* ------------------------------------------------------------ subject grid
   Ten subjects, each with a line icon in the house gold. Tiles rather than
   chips so the icon has somewhere to sit, and so the two-word names do not
   wrap into a ragged row of different-width pills. */
.subjects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 30px;
            /* equal rows, so the one two-line name does not make its whole row
               taller than the other */
            grid-auto-rows: 1fr; }
.subject {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 16px 17px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--page);
  transition: border-color .18s ease, transform .18s ease;
}
.subject:hover { border-color: var(--navy); }
.subj-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--gold-100); color: var(--gold-text); flex: 0 0 auto;
}
.subj-name { font-size: 14.5px; font-weight: 650; color: var(--navy); line-height: 1.3; }
.band-navy .subject { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.band-navy .subj-name { color: #fff; }
.band-navy .subj-icon { background: rgba(237,164,33,.18); color: var(--gold); }

@media (max-width: 1080px) { .subjects { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .subjects { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  {
  .subjects { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .subject { padding: 14px 13px; gap: 10px; }
  .subj-icon { width: 34px; height: 34px; border-radius: 9px; }
  .subj-name { font-size: 13.5px; }
}


/* ===================== V59  contact page ================================ */

/* three ways to get in touch, as cards rather than a list, because the whole
   point of the page is that none of them is more correct than the others */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
        grid-auto-rows: 1fr; }
.way {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px;
  border: 1.5px solid var(--line); border-radius: var(--r-page);
  background: var(--page); text-decoration: none; color: var(--ink);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.way:hover { border-color: var(--navy); }
.way:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.way.is-feature { background: var(--band-warm); border-color: rgba(237,164,33,.5); }
.way-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-100); color: var(--gold-text); margin-bottom: 4px;
}
.way-k { font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
         text-transform: uppercase; color: var(--ink-soft); }
.way b { font-size: 19px; font-weight: 800; letter-spacing: -.018em; color: var(--navy);
         line-height: 1.25; word-break: break-word; }
.way small { font-size: 14px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.way .np-more { margin-top: 6px; }
.way:hover .np-more svg { transform: translateX(3px); }

/* the Calendly frame. A fixed height rather than an aspect ratio, because the
   calendar's own layout is tall and narrow on a phone and wide and short on a
   desktop, and an aspect ratio gets one of those badly wrong. */
.cal-box {
  margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-page);
  overflow: hidden; background: var(--page); box-shadow: var(--shadow-sm);
}
.cal-box iframe { display: block; width: 100%; height: 720px; border: 0; }

@media (max-width: 920px) {
  .ways { grid-template-columns: 1fr; }
  .way { padding: 22px 20px; }
  .cal-box iframe { height: 1000px; }
}
@media (max-width: 480px) {
  .way b { font-size: 17px; }
  .cal-box iframe { height: 1080px; }
}


/* ===================== V60  the one enquiry form ======================== */

/* three across where the old form had two */
.choices-3 { grid-template-columns: repeat(3, 1fr); }
/* script sets data-cols to however many options are actually showing, so the
   two remaining cards fill the row instead of leaving the third track empty */
.choices[data-cols="1"] { grid-template-columns: 1fr; }
.choices[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.choices[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.choices-3 .choice { padding: 18px 16px; }
.choices-3 .choice .big { font-size: 18px; }
.choices > * { min-width: 0; }
@media (max-width: 720px) {
  .choices-3,
  .choices[data-cols="2"],
  .choices[data-cols="3"] { grid-template-columns: 1fr; }
}

/* subject list. The version this replaces was a four column grid whose
   minimum content width exceeded the form card, so the boxes broke out of it
   by 73px at around 1100px. Two columns, one on a phone, and min-width: 0 so
   a long subject name shrinks instead of pushing. */
.pickers-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pickers-2 > * { min-width: 0; }
.picker-slim { padding: 13px 15px; align-items: center; }
.picker-slim b { font-size: 14.5px; }
.picker-slim span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 620px) { .pickers-2 { grid-template-columns: 1fr; } }

/* the UCAT class columns, selectable, with the best value flag */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
         grid-auto-rows: 1fr; margin-top: 18px; }
.picks > * { min-width: 0; }
.pick {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 22px 18px 20px; cursor: pointer; background: var(--page);
  transition: border-color .15s ease, background .15s ease;
}
.pick:hover { border-color: var(--navy); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { border-color: var(--navy); background: var(--band); }
.pick:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick .tag { font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
             text-transform: uppercase; color: var(--ink-soft); }
.pick .amt { font-size: 32px; font-weight: 800; letter-spacing: -.035em;
             line-height: 1.05; color: var(--navy); margin-top: 6px; }
.pick .amt sub { font-size: 13px; font-weight: 600; color: var(--ink-soft);
                 vertical-align: 2px; letter-spacing: 0; margin-left: 3px; }
.pick-p { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 8px; }
.pick.is-feature { border-color: var(--gold); background: var(--band-warm); }
.pick.is-feature:has(input:checked) { border-color: var(--navy); }
/* centred over the top edge, the way the brief's screenshot showed it */
.pick .ribbon { top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 760px) {
  .picks { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .pick { padding: 18px 16px; }
  .pick .ribbon { left: 50%; }
}

/* student and parent side by side. Either will do, both is fine, and the rule
   is enforced in script because required on six inputs would demand all six. */
.who-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.who-cols > * { min-width: 0; }
.who-col {
  border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 16px 16px 4px; margin: 0; background: var(--page);
}
.who-col legend {
  padding: 0 8px; margin-left: -4px; font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.who-col.is-filled { border-color: var(--navy); background: var(--band); }
.who-col.is-filled legend { color: var(--navy); }
@media (max-width: 620px) { .who-cols { grid-template-columns: 1fr; } }

.enq textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 11px 13px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--page); resize: vertical;
}
.enq textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }


/* ===================== V61  one hover for every box ===================== */
/*
   Asked for: expand a little, raise a little, colours a shade more saturated,
   text a hair bolder. One rule for all of it, rather than a different lift on
   each component, which is how the old .prod, .res-card, .subject and .way
   hovers had drifted to three different distances.

   The weight is a hairline text-shadow, not a heavier font. Bumping
   font-weight re-flows the text, so the card visibly jiggles as the letters
   re-space, and Inter has no stop between 650 and 700 subtle enough to read
   as "very slightly". A 0.3px shadow in the text's own colour thickens the
   strokes without moving anything.

   The saturation is a filter so it catches the photographs, the gold chips
   and the coloured grades inside the box, not only the text.
*/
.result, .prod, .price, .choice, .picker, .pick, .subject, .way,
.res-card, .nav-prod, .quote, .tile, .faces figure {
  transition: transform .2s cubic-bezier(.2,.7,.3,1),
              box-shadow .2s ease,
              filter .2s ease,
              border-color .16s ease,
              background .16s ease;
}
.result:hover, .prod:hover, .price:hover, .choice:hover, .picker:hover,
.pick:hover, .subject:hover, .way:hover, .res-card:hover, .nav-prod:hover,
.quote:hover, .tile:hover, .faces figure:hover {
  transform: translateY(-3px) scale(1.012);
  filter: saturate(1.09);
  text-shadow: 0 0 .3px currentColor;
  box-shadow: 0 14px 34px rgba(24,44,77,.14);
  z-index: 2;
}
/* these two sit on navy, where a navy-tinted shadow does nothing */
.band-navy .result:hover, .band-navy .tile:hover, .band-navy .quote:hover {
  box-shadow: 0 16px 38px rgba(5,12,24,.4);
}
/* a static card is a panel, not something to point at */
.prod.static:hover { transform: none; filter: none; text-shadow: none; box-shadow: none; }

/* the result cards and mosaic tiles sit in tight grids, so they need a
   stacking context to lift above their neighbours rather than under them */
.results, .mosaic, .prod-grid, .quotes, .subjects, .ways, .res-grid, .picks { isolation: isolate; }

@media (prefers-reduced-motion: reduce) {
  .result, .prod, .price, .choice, .picker, .pick, .subject, .way,
  .res-card, .nav-prod, .quote, .tile, .faces figure { transition: none; }
  .result:hover, .prod:hover, .price:hover, .choice:hover, .picker:hover,
  .pick:hover, .subject:hover, .way:hover, .res-card:hover, .nav-prod:hover,
  .quote:hover, .tile:hover, .faces figure:hover { transform: none; }
}

/* ------------------------------------------------------------------ V62
   Who is filling the form in.

   The boxes are .choice, so the hover treatment comes from the shared rule
   above and not from here. Only the size changes: two wide boxes with the
   24px display type of step 1 would shout louder than the question does. */
.who-pick { margin-bottom: 22px; }
.who-pick .choice { padding: 16px; }
.who-pick .choice .big { font-size: 18px; }

/* the column belonging to whoever is filling it in, and the other one */
.who-col.is-yours { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.who-col.is-yours legend { color: var(--navy); }
.who-col.is-yours legend::after { content: " \00B7 you"; }
.who-col.is-other legend::after { content: " \00B7 optional"; font-weight: 600; }

/* ------------------------------------------------------------------ V63
   The resource gate.

   A dialog over a darkened page. ::backdrop does the darkening, so there is
   no second element to keep in sync, and <dialog> brings Escape, the focus
   trap and inertness for everything behind it. */
.gate {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: none; border-radius: var(--r-card);
  padding: 30px 30px 26px;
  background: var(--page); color: var(--ink);
  box-shadow: 0 40px 90px rgba(10,20,40,.34);
  /* no position here: a modal dialog is centred by the browser's own
     position: fixed and auto margins, and overriding that drops the panel
     into the normal flow, where it hangs off the top of the window. The
     close button still anchors to it, because a fixed element is a
     containing block. */
}
.gate::backdrop { background: rgba(10,18,34,.62); }
.gate .gate-x { position: absolute; top: 12px; right: 12px; }
.gate .h-sub { margin-top: 4px; }
.gate-sub { margin-top: 8px; font-size: 15px; }
.gate .step-q { margin-top: 20px; }
.gate .two-up { margin-top: 14px; }
.gate .field { margin-top: 14px; }
/* the age box is type=number, which the field rule above does not cover, so
   without this it renders at the browser's default two character width */
.field input[type=number] {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  background: var(--page); border: 1.5px solid var(--line); border-radius: 11px;
}
.field input[type=number]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy);
}
.pseudo-label {
  display: block; font-size: 14px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.choice-sm { padding: 12px 14px; text-align: center; }
.choice-sm .big { font-size: 16px; }
.yesno { max-width: 280px; }

/* the words the button agrees to, directly above the button, at a size
   somebody can actually read */
.gate-consent {
  margin-top: 18px; padding: 14px 16px;
  background: var(--band); border: 1px solid var(--line); border-radius: 12px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
}
.gate-consent a { color: var(--navy); font-weight: 700; }
.gate .step-foot { margin-top: 16px; }
.consent-opt { margin-top: 12px; }

@media (max-width: 560px) {
  .gate { padding: 24px 18px 20px; width: calc(100vw - 16px); }
}

/* what a returning visitor sees instead of the form */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  z-index: 90; max-width: min(520px, calc(100vw - 32px));
  background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  box-shadow: 0 18px 40px rgba(10,20,40,.3);
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.toast.is-up { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* the card someone was looking for when they followed an old PDF link */
.res-card.is-sought {
  box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(24,44,77,.18);
  transition: box-shadow .3s ease;
}

/* ------------------------------------------------------------------ V64
   The line under the submit button.

   It carries what the first tick box used to carry. A notice is something
   you have to be given, not something you can usefully be made to tick, so
   it sits where the person is already looking when they decide to press:
   directly under the button, in the same column, quiet but not hidden.
   Small print that is genuinely small reads as something to skip, so this
   is 14px rather than 12px, and the button's own name is bold inside it so
   the sentence is obviously about the thing they are about to do. */
.consent-line {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
.consent-line a { color: inherit; text-decoration: underline; padding: 0; display: inline; }
.consent-line a:hover { color: var(--navy); }
.band-navy .consent-line { color: rgba(255,255,255,.72); }
.band-navy .consent-line a:hover { color: #fff; }

/* A submit button carrying a sentence rather than a verb ("Agree and set up
   my account") is wider than a 320px phone, and nowrap pushed the page
   sideways. Below 400px the submit button is allowed to wrap and to fill the
   column, which is what a primary action should do on a phone anyway. */
@media (max-width: 400px) {
  .step-foot .btn[type="submit"] {
    white-space: normal;
    width: 100%;
    text-align: center;
  }
}

/* `.consent { display: flex }` was beating the hidden attribute, so the
   account-holder question sat there from the start instead of appearing
   with the marketing box it belongs to. An attribute selector is more
   specific than the class, so this wins without !important. */
.consent[hidden] { display: none; }

/* ------------------------------------------------------------------ V65
   The 2027 timetable. */
.tt { margin-top: 26px; max-width: 1020px; margin-inline: auto; }

.tt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* the Year 11 / Year 12 / UCAT filter */
.tt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-chip {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.tt-chip:hover { border-color: var(--navy); }
.tt-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tt-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
html:not(.js) .tt-filters { display: none; }

/* the state picker */
.tt-zone { min-width: 268px; }
.tt-zone label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.tt-select {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--page);
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23182C4D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.tt-select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tt-zone-note {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* a day */
.tt-day { padding-top: 26px; }
.tt-day[hidden] { display: none; }
.tt-dayname {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.tt-list { list-style: none; margin: 0; padding: 0; }

/* a class */
.tt-row {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 20px;
  padding: 13px 2px;
  border-top: 1px solid var(--line);
}
.tt-row[hidden] { display: none; }
.tt-row:first-child { border-top: 0; }

.tt-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tt-what b { font-size: 17px; font-weight: 700; color: var(--ink); }
.tt-what small {
  display: inline-block;
  margin-left: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink-soft);
  background: var(--band);
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: 2px;
}
.tt-row[data-track="ucat"] .tt-what small { background: var(--gold-100); color: var(--gold-text); }
.tt-who { font-size: 15px; color: var(--ink-soft); text-align: right; }

@media (max-width: 760px) {
  .tt-controls { display: block; padding-bottom: 18px; }
  .tt-filters { margin-bottom: 18px; }
  .tt-zone { min-width: 0; }
  /* The tutor goes under the subject rather than off to the right: a name
     right-aligned against a long subject on a narrow screen leaves a gutter
     of nothing in the middle and reads as two unrelated columns. */
  .tt-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 14px 2px;
  }
  .tt-who { text-align: left; }
  .tt-time { font-size: 15px; }
}

/* ------------------------------------------------------------------ V66
   Two UCAT options instead of three.

   Both grids were repeat(3, 1fr). Dropping a card from a three column grid
   leaves a hole rather than a pair, so these make the pair a pair. The
   pricing grid is also capped: two cards across the full 1240px would be
   about 612px each, and a price card that wide stops reading as a card. */
.picks-2 { grid-template-columns: repeat(2, 1fr); }
.prices-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
/* These sit after the site's own breakpoints, so they have to repeat them or
   they win at every width and push the page sideways on a phone. .prices
   collapses at 1080px and .picks at 760px; the two-up versions follow. */
@media (max-width: 1080px) {
  .prices-2 { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 760px) {
  .picks-2 { grid-template-columns: 1fr; }
}
