/* SolutionTee Edu Academy — page composition
   =========================================================================
   How the big blocks of a page are put together: the hero, the section
   rhythm, the named blocks that only appear once or twice.

   glass.css is the MATERIAL layer — what a surface is made of. This is
   the ARRANGEMENT layer — where the surfaces go. Anything here that
   invents a colour, a radius or a shadow instead of reading a token is a
   bug, not a shortcut.

   Loaded after glass.css, so it wins where a name overlaps with the
   pre-rebuild pages.css. It replaces that file block by block; when the
   last block has moved across, pages.css goes.
   ====================================================================== */


/* ==========================================================================
   HERO
   ==========================================================================
   Two columns on desktop — the argument on the left, the face on the
   right — and one column, argument first, on anything narrower. The
   portrait is not decoration: it is a Nigerian sixteen-year-old looking
   back at the visitor, and on a page selling examination coaching that is
   the single most persuasive object available.

   min-block-size is NOT 100vh. A full-viewport hero pushes the prices
   below the fold, and the prices are the reason people are here. It is
   sized to leave the examination strip just visible at the bottom of a
   laptop screen, which is the cue that there is more.
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(var(--space-8), 7vw, var(--space-10)) var(--space-7);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(var(--space-7), 5vw, var(--space-9));
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The figure only exists when an image has been set, so the two-column
     rule is scoped to the case where there is a second column to make.
     :has() is progressive — without it the layout is one column, which is
     the mobile layout and is never broken.

     The columns are weighted toward the argument now that the photograph
     is landscape. A 3:2 image in an equal column is much shorter than the
     text beside it, which leaves a hole under it; giving the text more
     width shortens the text column and the two come closer to matching. */
  .hero__inner:has(.hero__figure) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

/* ---- Orbs --------------------------------------------------------------
   Sized in vmax so they scale with the viewport rather than sitting as
   three fixed circles that look correct at exactly one width. */
.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__orb {
  inline-size: 38vmax;
  block-size: 38vmax;
}

.hero__orb--a {
  inset-block-start: -14vmax;
  inset-inline-start: -10vmax;
  opacity: 0.42;
}

.hero__orb--b {
  inset-block-start: -8vmax;
  inset-inline-end: -8vmax;
  inline-size: 26vmax;
  block-size: 26vmax;
  opacity: 0.20;
}

.hero__orb--c {
  inset-block-end: -22vmax;
  inset-inline-start: 28%;
  inline-size: 44vmax;
  block-size: 44vmax;
  opacity: 0.38;
}

/* ---- Kicker ------------------------------------------------------------ */
.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-block-end: var(--space-5);
  font-size: var(--step--2);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero__kicker-rule {
  inline-size: 28px;
  block-size: 1px;
  background: var(--edge-strong);
}

/* ---- Title -------------------------------------------------------------
   --step-5, not --step-6. The larger step is for a full-width hero; in a
   split hero it wraps a 30-character headline four ways inside a 620px
   column and the composition falls apart.

   Tracking is tightened hard: at this size Plus Jakarta Sans's default
   spacing reads as gappy, and the -0.035em is what makes it look drawn
   rather than typed.

   No max-inline-size in ch. A ch unit is the width of "0" IN THE CURRENT
   FONT AT THE CURRENT SIZE, so 14ch on a 6rem display face is ~890px —
   it reads like a sensible measure and behaves like none at all. The
   grid column is what constrains this headline; balance picks the
   breaks. */
.hero__title {
  margin-block-end: var(--space-5);
  font-size: var(--step-5);
  font-weight: var(--weight-bold);
  line-height: 0.98;
  letter-spacing: var(--tracking-hero);
  text-wrap: balance;
  color: var(--ink);
}

/* A hero with no portrait has the whole container and can carry the
   larger step without wrapping badly. */
.hero__inner:not(:has(.hero__figure)) .hero__title {
  font-size: var(--step-6);
  max-inline-size: 18ch;
}

/* 44ch, not 48ch. The measure that reads well for body copy is too wide
   for a lede: the line is physically longer at this size, so the same
   character count is a longer journey back to the left margin. */
.hero__intro {
  max-inline-size: 44ch;
  margin-block-end: var(--space-4);
  font-size: var(--step-1);
  line-height: var(--lh-lede);
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---- The scope line ----------------------------------------------------
   Which examinations, and where. This was the second sentence of the
   lede, which made that paragraph six lines of grey and buried a list
   inside prose — the exam names are the thing a visitor is scanning for,
   and scanning is exactly what a paragraph prevents.

   Set apart and a step down, it does the opposite: the lede stays three
   lines and the names are the first thing found. */
.hero__meta {
  max-inline-size: 46ch;
  margin-block-end: var(--space-6);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-end: var(--space-7);
}

/* ---- Proof -------------------------------------------------------------
   Three facts across a divided row. The dividers are inline-start borders
   on every item but the first, which is the only way to get an n-1 rule
   count without a wrapper per gap. */
/* A GRID, NOT A WRAPPING FLEX ROW.

   The dividers are inline-start borders on every item but the first,
   which is the only way to get n-1 rules out of n items. That trick
   breaks the moment the row wraps: the item that starts the second line
   is not the first child, so it keeps its border and draws a stray
   vertical rule hanging off the left margin with nothing before it.

   Three fixed columns cannot wrap, so the rule count stays right at
   every width. Below 560px the whole thing stacks and the borders come
   off properly. */
.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--edge);
}

.hero__proof-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  min-inline-size: 0;
}

.hero__proof-item + .hero__proof-item {
  padding-inline-start: var(--space-5);
  border-inline-start: 1px solid var(--edge);
}

.hero__proof-value {
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  color: var(--ink-accent);
  line-height: 1;
}

.hero__proof-label {
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-faint);
}

@media (max-width: 560px) {
  .hero__proof {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .hero__proof-item {
    inline-size: 100%;
  }

  /* Vertical rules make no sense once the items are stacked. */
  .hero__proof-item + .hero__proof-item {
    padding-inline-start: 0;
    border-inline-start: none;
  }
}

/* ---- Figure ------------------------------------------------------------
   The portrait sits in a glass frame with a lit edge. The frame is what
   stops a rectangular photograph on a dark page reading as a hole punched
   through the layout. */
.hero__figure {
  position: relative;
  min-inline-size: 0;
}

.hero__frame {
  position: relative;
  padding: var(--space-2);
  border-radius: var(--r-6);
  overflow: hidden;
}

.hero__frame .media,
.hero__frame img {
  border-radius: var(--r-5);
}

/* A gradient veil across the foot of the portrait, so the image resolves
   into the page instead of stopping at a hard edge. */
.hero__frame::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  block-size: 38%;
  background: linear-gradient(180deg,
              transparent 0%,
              color-mix(in srgb, var(--canvas) 62%, transparent) 100%);
  border-end-start-radius: inherit;
  border-end-end-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1023px) {
  .hero__figure {
    max-inline-size: 420px;
  }
}


/* ==========================================================================
   EXAMINATION STRIP
   ==========================================================================
   Wayfinding that looks like a control panel: a numbered, divided row of
   the five examinations. The numbers are there because they turn a list
   of links into an index — it reads as a complete set rather than as
   however many buttons fitted.
   ========================================================================== */

.examstrip {
  position: relative;
  z-index: 2;
  margin-block-start: clamp(var(--space-7), 5vw, var(--space-9));
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  box-shadow: var(--glow-inset);
}

.examstrip__list {
  display: flex;
  align-items: stretch;
}

.examstrip__list > li {
  flex: 1 0 auto;
  min-inline-size: 0;
}

.examstrip__list > li + li {
  border-inline-start: 1px solid var(--edge);
}

.examstrip__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  block-size: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

.examstrip__link:hover {
  background: var(--glass-2);
  color: var(--ink);
}

.examstrip__index {
  font-size: var(--step--2);
  color: var(--ink-accent);
  opacity: 0.75;
}

/* The first and last cells inherit the container's corners, or the hover
   ground paints square into a rounded box. */
.examstrip__list > li:first-child .examstrip__link {
  border-start-start-radius: var(--r-4);
  border-end-start-radius: var(--r-4);
}

.examstrip__list > li:last-child .examstrip__link {
  border-start-end-radius: var(--r-4);
  border-end-end-radius: var(--r-4);
}


/* ==========================================================================
   SECTION HEAD
   ==========================================================================
   The eyebrow / heading / intro trio that opens most sections.
   ========================================================================== */

.section-head {
  max-inline-size: var(--measure);
  margin-block-end: clamp(var(--space-6), 4vw, var(--space-8));
}

.section-head__title {
  font-size: var(--step-3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-heading);
  color: var(--ink);
}

.section-head__intro {
  margin-block-start: var(--space-4);
  font-size: var(--step-1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
  text-wrap: pretty;
}


/* ==========================================================================
   SECTION GROUNDS
   ==========================================================================
   .section--surface used to be a light grey band. On the dark canvas a
   "lighter" band is a glass sheet instead, which is the same idea in the
   new material.
   ========================================================================== */

.section--surface {
  position: relative;
  background: var(--canvas-alt);
}

.section--surface::before,
.section--surface::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 1px;
  background: var(--grad-rule);
  pointer-events: none;
}

.section--surface::before { inset-block-start: 0; }
.section--surface::after { inset-block-end: 0; }

.section--dark {
  position: relative;
  background: var(--band);
}


/* ==========================================================================
   PLANS — the pricing cards
   ==========================================================================
   The money section, and the one a visitor scrolled here for. Three
   decisions carry it:

   1. The price is the largest thing on the card, in the display face with
      tabular figures, in gold. A price set at body size in a list of
      features is a price the page is embarrassed by.
   2. The instalment line sits directly under it, because the real
      objection is rarely the total — it is having to pay it at once.
   3. Every card is equal. No "most popular" flag: nothing in this system
      knows which class sells best, and a badge invented to make one card
      look chosen is a small lie on the one screen that has to be
      trustworthy.

   auto-fit with a 19rem floor: two up on a laptop, one up on a phone, and
   three only where there is genuinely room. A third card squeezed to
   15rem turns the price into two lines.
   ========================================================================== */

.plans {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--r-5);
  transition: border-color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}

@media (hover: hover) {
  /* The price card does not lift. It is a card you READ before you press
     anything, and a card that jumps under the pointer while you are
     comparing two numbers is actively unhelpful. */
  .plan:hover {
    background: var(--glass-2);
    border-color: var(--edge-bright);
    box-shadow: var(--shadow-2);
  }
}

.plan__head {
  display: grid;
  gap: var(--space-2);
}

.plan__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  color: var(--ink);
}

.plan__summary {
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

/* ---- The price ---------------------------------------------------------
   Separated from the head by a rule that fades at both ends, so the
   number reads as its own statement rather than as the third line of a
   description. */
.plan__money {
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--edge);
}

.plan__price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  color: var(--ink-accent);
}

.plan__terms {
  margin-block-start: var(--space-1);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.plan__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: 0;
}

/* The old rule drew a gold dot before every fact and indented it, which
   is right for a bulleted list and wrong for a chip — the dot ends up
   floating inside the pill. The chip IS the bullet now. */
.plan__facts li {
  padding-inline-start: 0;
}

.plan__facts li::before {
  content: none;
}

/* WHEN THE CLASS MEETS.

   Its own row rather than a chip. `.chip` sets `white-space: nowrap`,
   which is correct for "Online" and wrong for "Tuesdays and Thursdays,
   5pm" — the pill could not wrap, so the text ran out of the card.

   It is also the most useful line on the card: "when does it actually
   meet" is the question a parent asks first, and burying it in a row of
   tags alongside the mode was answering it in the wrong typeface. */
.plan__when {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink);
  text-wrap: pretty;
}

.plan__when-icon {
  flex: none;
  inline-size: 1.05em;
  block-size: 1.05em;
  margin-block-start: 0.15em;
  color: var(--ink-accent);
}


/* The CTA is pushed to the foot of the card so buttons line up across a
   row whose cards have different amounts of text. Without this, a card
   with no summary puts its button three lines higher than its neighbour
   and the row reads as broken. */
.plan__cta {
  margin-block-start: auto;
  padding-block-start: var(--space-2);
}


/* ==========================================================================
   INDEX — the directory row
   ==========================================================================
   The single most reused block on the public site: programmes, learning
   modes, admission routes, updates and intents all render as one of
   these. Restyling it here is what carries the new material into every
   one of those sections at once, which is the whole reason it stayed one
   component through the rebuild.

   It was a bare list separated by hairlines — correct for a newspaper,
   and on the dark canvas it read as text floating in a void with nothing
   holding it. It is now a single glass panel with divided rows: the panel
   gives the group an edge, and the rows stay rows.
   ========================================================================== */

.index {
  position: relative;
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  box-shadow: var(--glow-inset);
  overflow: hidden;
}

.index::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 1px;
  background: var(--grad-hairline);
  pointer-events: none;
  z-index: 1;
}

.index__row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-block-end: none;
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--dur-base) var(--ease-out);
}

/* Dividers BETWEEN rows, never above the first or below the last — a
   panel whose first child carries a top border shows two lines at the
   top, which is the commonest way a divided list looks unfinished. */
.index__row + .index__row {
  border-block-start: 1px solid var(--edge);
}

.index__row:hover {
  background: var(--glass-2);
}

/* The gold marker that says which row the pointer is on. It replaces the
   padding shift the old rows used: moving the text was legible as a
   response, but it reflowed the row, and a directory that twitches under
   the cursor is harder to read down. */
.index__row::before {
  content: "";
  position: absolute;
  inset-block: 18%;
  inset-inline-start: 0;
  inline-size: 3px;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-spring);
}

.index__row:hover::before,
.index__row:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.index__num {
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-label);
  color: var(--ink-accent);
  opacity: 0.7;
  min-inline-size: 2.5ch;
}

.index__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  color: var(--ink);
}

.index__detail {
  display: block;
  margin-block-start: var(--space-2);
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
  max-inline-size: 60ch;
}

/* The mode tags under a programme. Chips, not comma-separated text: they
   are a specification of how the class is delivered, and a reader scans
   three chips faster than they parse one run-on line of them. */
.index__modes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
}

/* A paper that is private to one class says which class, in the accent,
   because that is the reason this person can see it at all. Gold on a
   glass chip, not a padlock: nothing here is locked to the reader. */
.index__mode--mark {
  border-color: color-mix(in oklab, var(--ink-accent) 40%, transparent);
  color: var(--ink-accent);
}

.index__mode {
  display: inline-flex;
  align-items: center;
  padding: 0.22em 0.62em;
  background: var(--glass-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  font-size: var(--step--2);
  font-weight: var(--weight-semibold);
  color: var(--ink-faint);
}

.index__arrow {
  flex: none;
  color: var(--ink-faint);
  transition: transform var(--dur-base) var(--ease-spring),
              color var(--dur-base) var(--ease-out);
}

.index__row:hover .index__arrow {
  transform: translateX(4px);
  color: var(--ink-accent);
}

@media (max-width: 560px) {
  .index__row {
    padding-inline: var(--space-5);
    gap: var(--space-4);
  }

  .index__name { font-size: var(--step-1); }
}


/* ==========================================================================
   INTENT — "pick the sentence that sounds like your situation"
   ==========================================================================
   Students do not arrive thinking in product categories; they arrive with
   a sentence. This is those sentences, and it is deliberately not a grid
   of seven identical cards — a card grid makes them look like products,
   and the whole point is that they are the visitor's own words.

   It keeps its editorial shape and takes the glass panel that the rest of
   the site's lists now sit in, so it belongs to the same page without
   becoming a card grid.
   ========================================================================== */

.intent {
  position: relative;
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  box-shadow: var(--glow-inset);
  overflow: hidden;
}

.intent::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 1px;
  background: var(--grad-hairline);
  pointer-events: none;
  z-index: 1;
}

.intent > li + li {
  border-block-start: 1px solid var(--edge);
}

.intent__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-block-end: none;
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--dur-base) var(--ease-out);
}

.intent__row:hover {
  background: var(--glass-2);
}

.intent__row::before {
  content: "";
  position: absolute;
  inset-block: 18%;
  inset-inline-start: 0;
  inline-size: 3px;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-spring);
}

.intent__row:hover::before,
.intent__row:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.intent__phrase {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}

.intent__row:hover .intent__phrase {
  color: var(--ink-accent);
}

.intent__answer {
  grid-column: 1;
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

.intent__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  flex: none;
  color: var(--ink-faint);
  transition: transform var(--dur-base) var(--ease-spring),
              color var(--dur-base) var(--ease-out);
}

.intent__row:hover .intent__arrow {
  transform: translateX(4px);
  color: var(--ink-accent);
}

@media (max-width: 560px) {
  .intent__row { padding-inline: var(--space-5); }
  .intent__phrase { font-size: var(--step-1); }
}


/* ==========================================================================
   DEFLIST
   ========================================================================== */

.deflist {
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  overflow: hidden;
}

.deflist__row {
  display: grid;
  gap: var(--space-1) var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-block-end: none;
}

.deflist__row + .deflist__row {
  border-block-start: 1px solid var(--edge);
}

.deflist__label {
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.deflist__value {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  /* The TERM is the fixed column and the definition takes the rest.
     The obvious way round — `minmax(0, 1fr) auto` — gives the definition
     an auto track sized to its content, and a long definition then
     squeezes the term toward zero. "Subjects" came out as one letter per
     line. A definition list is a fixed gutter and a flexible body, and
     it is the body that must absorb the width. */
  .deflist__row {
    grid-template-columns: minmax(7rem, 13rem) minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-5);
  }
}

.deflist__value {
  line-height: var(--lh-snug);
  overflow-wrap: anywhere;
}


/* ==========================================================================
   SECTION HEAD — split variant, and the link that goes with it
   ==========================================================================
   Heading on the left, one link on the right. The link sits on the
   BASELINE of the heading rather than the top of the block, which is the
   difference between "these belong together" and "somebody floated a
   link into the corner".
   ========================================================================== */

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  max-inline-size: none;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  /* 44px, not the 39px the padding alone produced. This is a standalone
     navigation control, not a link inside a sentence, so it is held to
     the full target minimum. */
  min-block-size: 44px;
  padding: var(--space-2) var(--space-4);
  background: var(--glass-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.action:hover {
  background: var(--glass-3);
  border-color: var(--edge-strong);
  color: var(--ink);
}

.action__arrow {
  transition: transform var(--dur-base) var(--ease-spring);
}

.action:hover .action__arrow {
  transform: translateX(3px);
}


/* ==========================================================================
   PAGE HERO
   ==========================================================================
   Every interior page's opening: breadcrumbs, title, lede. It takes the
   calm aurora rather than the full one — the landing page's hero is a
   pitch, and a programme page's is a heading.
   ========================================================================== */

.section--flush-top {
  position: relative;
  background: var(--aurora-calm), var(--canvas);
}

.hero__title--page {
  font-size: var(--step-4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  color: var(--ink);
  text-wrap: balance;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--2);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.crumbs__list a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.crumbs__list a:hover {
  color: var(--ink-accent);
}

/* A chevron rather than a slash. A slash at this size is one pixel and
   reads as a rendering artefact on a dark ground. */
.crumbs__list li + li::before {
  content: "›";
  margin-inline-end: var(--space-2);
  color: var(--ink-ghost);
  font-size: 1.15em;
  line-height: 1;
}

.crumbs__list li[aria-current],
.crumbs__list li:last-child {
  color: var(--ink-muted);
}


/* ==========================================================================
   PROGRAMME PAGE
   ========================================================================== */

.prog__title {
  margin-block-start: var(--space-4);
  font-size: var(--step-4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  color: var(--ink);
}

/* The one-sentence definition under the title: what this examination
   actually is. Set at lede size on a gold rule, because on a page about
   JAMB the visitor who does not already know what JAMB is is exactly
   the one who needs this line. */
.prog__definition {
  margin-block-start: var(--space-5);
  padding-inline-start: var(--space-5);
  border-inline-start: 2px solid var(--edge-gold);
  font-size: var(--step-1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
  max-inline-size: var(--measure);
}

.prog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-6);
}

.prog__full {
  max-inline-size: var(--measure);
}


/* ==========================================================================
   DETAIL LIST — a numbered sequence
   ==========================================================================
   Used for "what you get" and "how it works". The counter is the point:
   it says this is a complete, ordered set rather than however many
   bullets fitted.
   ========================================================================== */

.detail-list {
  counter-reset: detail;
}

.detail-list__item {
  counter-increment: detail;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-block-end: 1px solid var(--edge);
  font-size: var(--step-1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

.detail-list__item:last-child {
  border-block-end: none;
}

.detail-list__item::before {
  content: counter(detail, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-label);
  color: var(--ink-accent);
  opacity: 0.7;
  padding-block-start: 0.55em;
}


/* ==========================================================================
   META AND CATEGORY
   ========================================================================== */

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.category {
  display: inline-flex;
  align-items: center;
  padding: 0.24em 0.7em;
  background: var(--warning-bg);
  border: 1px solid var(--edge-gold);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-accent);
  text-decoration: none;
}


/* ==========================================================================
   ACADEMY — modules and lessons
   ========================================================================== */

.module {
  position: relative;
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  overflow: hidden;
}

.module + .module { margin-block-start: var(--space-5); }

.module__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-block-end: 1px solid var(--edge);
}

.module__num {
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-label);
  color: var(--ink-accent);
  opacity: 0.7;
  flex: none;
}

.module__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}

.module__summary {
  margin-block-start: var(--space-2);
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

.lessons { display: grid; }

.lesson-row + .lesson-row {
  border-block-start: 1px solid var(--edge);
}

.lesson-row__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.lesson-row__link:hover { background: var(--glass-2); }

.lesson-row__title {
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.lesson-row__meta {
  display: block;
  margin-block-start: 2px;
  font-size: var(--step--2);
  color: var(--ink-faint);
}

/* Done and locked. Both carry a glyph as well as a colour, because a
   student scanning a long curriculum for where they stopped is doing it
   at a glance. */
.lesson-row__done,
.lesson-row__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 24px;
  block-size: 24px;
  flex: none;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
}

.lesson-row__done {
  background: var(--success-bg);
  border: 1px solid var(--success-edge);
  color: var(--success);
}

.lesson-row__lock {
  background: var(--glass-2);
  border: 1px solid var(--edge);
  color: var(--ink-faint);
}

.lesson-row__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  background: var(--glass-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  font-size: var(--step--2);
  font-weight: var(--weight-semibold);
  color: var(--ink-faint);
}

/* ---- A lesson being read ---------------------------------------------- */
.lesson__title {
  font-size: var(--step-3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-heading);
  color: var(--ink);
}

.lesson__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-block-start: var(--space-3);
  font-size: var(--step--2);
  color: var(--ink-faint);
}

.lesson__body {
  max-inline-size: var(--measure);
  margin-block-start: var(--space-6);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  color: var(--ink-muted);
}

.lesson__foot,
.lesson__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-start: var(--space-7);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--edge);
}

.lesson__next {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  color: var(--ink-muted);
}


/* ==========================================================================
   MESSAGES
   ==========================================================================
   Not a chat app. These are slow, threaded conversations between a
   student and a tutor or the office — minutes or days apart, not
   seconds. So it is a list of posts with room to read, not a column of
   bubbles: bubbles imply an immediacy this product does not offer and
   would be a promise the staffing cannot keep.
   ========================================================================== */

.thread {
  display: grid;
  gap: var(--space-4);
}

.thread__title {
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}

/* A CONVERSATION, NOT A LIST OF POSTS.

   These were full-width blocks with a name on top of every one, which is
   the right shape for a forum and the wrong one for a thread between two
   people: at that width the eye has no way to tell who is speaking
   without reading, and a two-word reply occupies the same rectangle as a
   paragraph.

   Bubbles instead, capped at a readable measure, pushed to opposite
   sides. That is the arrangement every messaging app converged on
   because it works: side carries the speaker, so the name only has to
   appear when it changes. */
.msg {
  display: grid;
  gap: var(--space-1);
  justify-self: start;
  max-inline-size: min(78%, 40rem);
  padding: var(--space-4) var(--space-5);
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  /* The one squared corner points at whoever is speaking. */
  border-end-start-radius: var(--r-1);
}

.msg--mine {
  justify-self: end;
  background: var(--warning-bg);
  border-color: var(--edge-gold);
  border-end-start-radius: var(--r-4);
  border-end-end-radius: var(--r-1);
}

/* A run of messages from the same person needs the name once, not on
   every bubble. */
.msg--mine + .msg--mine .msg__author,
.msg:not(.msg--mine) + .msg:not(.msg--mine) .msg__author {
  display: none;
}

/* Sent, but not yet acknowledged. Faded rather than spinning: the
   message is READABLE and provisional, which is exactly its state, and a
   spinner on every bubble would make a fast connection look busy. */
.msg--pending {
  opacity: 0.55;
}

/* It did not go. Marked on the bubble itself rather than as a banner,
   because the failure belongs to that one message and everything above
   it in the thread is fine. */
.msg--failed {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.msg--failed .msg__at {
  color: var(--danger);
  font-weight: var(--weight-semibold);
}

/* A system note is neither side's. */
.msg--system {
  justify-self: center;
  max-inline-size: 34rem;
  padding-block: var(--space-2);
  background: none;
  border: none;
  border-radius: 0;
  text-align: center;
}

.msg--system .msg__body {
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.msg__author {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.msg__at {
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.msg__body {
  font-size: var(--step-0);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.composer {
  display: grid;
  gap: var(--space-3);
  margin-block-start: var(--space-5);
  padding: var(--space-5);
  background: var(--glass-2);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r-4);
}

.composer__input {
  inline-size: 100%;
  min-block-size: 6rem;
  padding: 0.7em 0.9em;
  background: var(--panel-sunken);
  border: 1px solid var(--edge-control);
  border-radius: var(--r-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: max(16px, var(--step-0));
  line-height: var(--lh-body);
  resize: vertical;
}

.composer__input:focus-visible {
  outline: none;
  border-color: var(--focus);
  background: var(--panel);
  box-shadow: var(--ring-soft);
}


/* ==========================================================================
   STEPS LIST — the public-side "what to do now"
   ========================================================================== */

.steps-list {
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  overflow: hidden;
}

.steps-list__item + .steps-list__item {
  border-block-start: 1px solid var(--edge);
}

.steps-list__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.steps-list__link:hover { background: var(--glass-2); }

.steps-list__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.steps-list__detail {
  display: block;
  margin-block-start: 2px;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.steps-list__item.is-urgent .steps-list__label {
  color: var(--ink-accent);
}

.steps-list__arrow {
  flex: none;
  color: var(--ink-faint);
  transition: transform var(--dur-base) var(--ease-spring);
}

.steps-list__link:hover .steps-list__arrow {
  transform: translateX(3px);
}


/* ==========================================================================
   COMMUNITY FEED
   ==========================================================================
   Posts as panels, because each one is a separate thing somebody wrote
   and the boxes are what separate them. Pinned posts carry the gold edge
   so the difference survives a quick scroll — and the word "Pinned" in
   the footer carries it for anyone the colour does not reach.

   white-space: pre-wrap throughout: people write posts with line breaks
   and collapsing them silently rewrites what they said.
   ========================================================================== */

.posts,
.replies {
  margin-block-start: var(--space-5);
}

.feed-post {
  position: relative;
  margin-block-end: var(--space-4);
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  box-shadow: var(--glow-inset);
  overflow: hidden;
}

.feed-post__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

.feed-post__who {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.feed-post__when {
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.feed-post__title {
  padding-inline: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}

.feed-post__body {
  padding: var(--space-3) var(--space-5) var(--space-4);
  font-size: var(--step--1);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feed-post__foot {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-5);
  border-block-start: 1px solid var(--edge);
  font-size: var(--step--2);
  color: var(--ink-faint);
}

.feed-post__foot a {
  color: var(--ink-accent);
}

.feed-post--pinned {
  background: var(--warning-bg);
  border-color: var(--edge-gold);
  border-inline-start: 3px solid var(--accent);
}

.feed-comment {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-block-start: 1px solid var(--edge);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.feed-comment__body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post__actions {
  padding-block-end: var(--space-5);
  border-block-end: 1px solid var(--edge);
}

.thread__replies-title {
  margin-block-start: var(--space-7);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  color: var(--ink);
}


/* ==========================================================================
   A RESERVED IMAGE SLOT
   ==========================================================================
   Where a picture has been planned but not supplied. It reserves the
   space so the page does not move when one arrives, and says plainly
   that nothing is missing — an empty grey rectangle reads as a broken
   image, which is a different and worse message.

   The landing page is the deliberate exception: there the headline takes
   the width instead, because the one screen that has to make somebody
   stay cannot afford to look unfinished.
   ========================================================================== */

.media__await-label {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.media__await-note {
  position: relative;
  margin-block-start: var(--space-2);
  max-inline-size: 34ch;
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

/* The row component's text column. Without min-inline-size: 0 a long
   unbroken title stretches the grid track and pushes the arrow off the
   end of the row. */
.index__body {
  min-inline-size: 0;
}


/* ==========================================================================
   PROGRAMMES INDEX
   ==========================================================================
   Full-width rows rather than a card grid: each programme gets room for
   a real definition, which is what makes the page useful to a parent who
   does not already know what NECO is.
   ========================================================================== */

.prog-row {
  padding-block: var(--space-7);
  border-block-start: 1px solid var(--edge);
}

.prog-row:last-child {
  border-block-end: 1px solid var(--edge);
}

.prog-row__num {
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-label);
  color: var(--ink-accent);
  opacity: 0.7;
}

.prog-row__name {
  margin-block-start: var(--space-3);
  font-size: var(--step-3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

.prog-row__full {
  margin-block-start: var(--space-2);
  max-inline-size: 28ch;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.prog-row__definition {
  max-inline-size: var(--measure);
  font-size: var(--step-1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

.prog-row__facts,
.prog-row__link {
  margin-block-start: var(--space-5);
}


/* ==========================================================================
   LEARNING MODES
   ==========================================================================
   Three prose blocks separated by rules. Not cards: the comparison is
   easier to read when nothing boxes each option off from the others, and
   a parent choosing between online and physical is comparing, not
   browsing.
   ========================================================================== */

.mode {
  padding-block: var(--space-6);
  border-block-start: 1px solid var(--edge);
}

.mode:first-child {
  padding-block-start: var(--space-2);
  border-block-start: none;
}

.mode__name {
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}

.mode__summary {
  margin-block-start: var(--space-3);
  max-inline-size: var(--measure);
  color: var(--ink-muted);
}

.mode__facts {
  display: grid;
  gap: var(--space-1) var(--space-4);
  margin-block: var(--space-4) 0;
}

@media (min-width: 560px) {
  .mode__facts {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  }
}

.mode__facts dt {
  padding-block-start: 0.35em;
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mode__facts dd {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.mode__link,
.modes__cta {
  margin-block-start: var(--space-5);
}


/* ==========================================================================
   COMPARISON TABLE
   ==========================================================================
   Scrolls inside .scroll-x on narrow screens. Column headings stay
   readable because the first column is a row header, not a spacer.
   ========================================================================== */

.compare {
  min-inline-size: 720px;
  border-block-start: 1px solid var(--edge);
}

.compare--narrow {
  min-inline-size: 520px;
}

.compare th,
.compare td {
  padding: var(--space-5) var(--space-5) var(--space-5) 0;
  border-block-end: 1px solid var(--edge);
  vertical-align: top;
  text-align: start;
}

.compare thead th {
  padding-block: var(--space-4);
}

.compare tbody th {
  inline-size: 18%;
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.compare td {
  inline-size: 27%;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.compare__mode {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
  text-decoration: none;
}

.compare__mode:hover {
  color: var(--ink-accent);
}


/* ==========================================================================
   ADMISSION ROUTES
   ========================================================================== */

.routes {
  border-block-start: 1px solid var(--edge);
}

/* A grid rather than a block, so the arrow can sit at the end of the row
   on its own baseline. It was `display: block` with no affordance at all
   — a list of links that did not look like links until hovered, which on
   the one section where somebody is choosing where to apply is the wrong
   place to be subtle. */
.routes__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--space-4);
  min-block-size: 44px;
  padding-block: var(--space-4);
  padding-inline-end: var(--space-2);
  border-block-end: 1px solid var(--edge);
  text-decoration: none;
  color: var(--ink);
  transition: padding-inline var(--dur-fast) var(--ease-out);
}

.routes__row:hover {
  padding-inline-start: var(--space-2);
  padding-inline-end: 0;
}

.routes__arrow {
  grid-row: 1 / 3;
  grid-column: 2;
  inline-size: 1.1em;
  block-size: 1.1em;
  color: var(--ink-faint);
  transition: transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.routes__row:hover .routes__arrow {
  transform: translateX(3px);
  color: var(--ink-accent);
}

.routes__name {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.routes__note {
  display: block;
  margin-block-start: var(--space-1);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.routes__row:hover .routes__name {
  color: var(--ink-accent);
}


/* ==========================================================================
   STEPS — the homepage's ordered process
   ==========================================================================
   A sequence on one rule. The number is the graphic; nothing else is
   needed to read it as an ordered process.

   NOT to be confused with .todo, the dashboard's "what to do now" list.
   That one used to be called .steps too, and the collision meant the
   dashboard inherited this four-column grid and collapsed each item to
   one character per line. Two different things may not share a name.
   ========================================================================== */

.steps {
  display: grid;
  gap: var(--space-6);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--edge);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--space-6);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-label);
  color: var(--ink-accent);
  opacity: 0.7;
}

.steps__title {
  margin-block-start: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}

.steps__text {
  margin-block-start: var(--space-2);
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}


/* ==========================================================================
   CBT INDEX · CLOSE · ERROR PAGES
   ========================================================================== */

.cbt__facts,
.cbt__actions {
  margin-block-start: var(--space-6);
}

@media (min-width: 1024px) {
  /* The screenshot holds the top edge rather than centring against a
     much taller column of text. */
  .cbt__figure {
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--space-6));
  }
}

.close__title {
  max-inline-size: 20ch;
  font-size: var(--step-3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

.close__text {
  margin-block-start: var(--space-4);
  max-inline-size: var(--measure);
  color: var(--ink-muted);
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-5);
}

.errorpage {
  padding-block: clamp(var(--space-8), 10vw, var(--space-10));
}

.errorpage__code {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-accent);
}

.errorpage__title {
  margin-block-start: var(--space-4);
  max-inline-size: 18ch;
  font-size: var(--step-4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  color: var(--ink);
}

.errorpage__text {
  margin-block-start: var(--space-5);
  max-inline-size: var(--measure);
  color: var(--ink-muted);
}

.errorpage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-6);
}


/* ==========================================================================
   ODDS
   ========================================================================== */

/* .hero__lead carried `order: 1` out of the pre-rebuild stylesheet,
   where the lead and the figure were in the opposite source order. In
   the rebuilt hero the lead is already first in the markup, so the rule
   reversed the whole composition — portrait on the left, argument on the
   right — which is the wrong way round for a page that has to make its
   case before it shows a face. Source order is the order now. */

/* The intent section's heading column follows you down its list, so the
   question stays on screen while you read the answers. */
.intent__head {
  margin-block-end: var(--space-6);
}

@media (min-width: 1024px) {
  .intent__head {
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--space-6));
    margin-block-end: 0;
  }
}

/* A small status pip used inline in prose. */
.dot {
  display: inline-block;
  inline-size: 8px;
  block-size: 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
}

/* An enrolment row is a statement of fact, not a link. */
.enrol-row {
  cursor: default;
}

.enrol-row:hover {
  background: transparent;
}

.enrol-row__action {
  align-self: center;
  flex-shrink: 0;
}


/* ==========================================================================
   SIGNED-IN PAGES THAT USE THE PUBLIC SHELL
   ==========================================================================
   The parent's view and the message thread are signed-in pages, but they
   extend layouts/base.html rather than layouts/app.html — so app.css is
   never loaded for them and these rules live here, in the shared stack,
   where they actually apply.

   That split is worth knowing about: the dashboard rail links to
   Messages and Community, and those pages render in the public shell, so
   the rail is not present on them. Unifying that means re-parenting
   several templates onto the app layout, which is a change worth making
   deliberately rather than as a side effect of moving stylesheets
   around.
   ========================================================================== */

/* ==========================================================================
   A PARENT'S VIEW
   ==========================================================================
   One block per child. Space separates them, not boxes: a guardian with
   three children is reading a list, and three bordered cards would make
   it look like a comparison between them.
   ========================================================================== */

.child {
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--edge);
}

.child:first-of-type {
  margin-block-start: var(--space-6);
}

.child__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.child__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}

.child__balance {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--ink-accent);
}

.child__balance--clear {
  color: var(--success);
}

.child__block {
  margin-block-start: var(--space-6);
}

.child__block-title {
  margin-block-end: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.child__list {
  border-block-start: 1px solid var(--edge);
}

.child__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
  border-block-end: 1px solid var(--edge);
}

.child__row-name {
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.child__row-meta {
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.child__links {
  display: grid;
  gap: var(--space-3);
}

.child__links li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.child__when,
.child__none {
  font-size: var(--step--1);
  color: var(--ink-muted);
}


/* ==========================================================================
   A CONVERSATION
   ==========================================================================
   A fixed-height scroller with the composer pinned to its foot, so the
   box you type into does not walk down the page as the thread grows.

   The class names are the ones thread.js already builds when a message
   arrives from the poll. Renaming them here would leave every polled
   message unstyled — a defect visible only to somebody who left a thread
   open, which is the hardest kind to notice and the easiest to ship.
   ========================================================================== */

.chat {
  display: flex;
  flex-direction: column;
  block-size: min(620px, 70dvh);
  margin-block-start: var(--space-6);
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  overflow: hidden;
}

.chat .composer {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3);
  background: var(--panel);
  border: none;
  border-block-start: 1px solid var(--edge);
  border-radius: 0;
  justify-items: stretch;
}

.chat .composer__input {
  flex: 1;
  inline-size: auto;
  min-block-size: 46px;
  max-block-size: 140px;
}


/* ==========================================================================
   TESTIMONIALS
   ==========================================================================
   Quotes as panels in an auto-fitting grid. No portraits: a stock
   photograph beside a real quote makes the quote look stock too, and
   photographs of actual students are a consent question nobody has
   answered yet.

   The attribution is the component. A quote without a name is copy; the
   name, the role and — where the student wrote it themselves — the
   provenance are what make it evidence.
   ========================================================================== */

.quotes {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-6);
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  box-shadow: var(--glow-inset);
}

/* An opening quotation mark, drawn large and faint. It is decorative and
   aria-hidden by being a pseudo-element, so a screen reader hears the
   words and not a punctuation mark. */
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: var(--weight-bold);
  line-height: 0.6;
  color: var(--ink-accent);
  opacity: 0.45;
}

.quote__body {
  flex: 1;
  margin: 0;
  font-size: var(--step-0);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  text-wrap: pretty;
}

.quote__by {
  display: grid;
  gap: 2px;
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--edge);
}

.quote__name {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.quote__role {
  font-size: var(--step--2);
  color: var(--ink-faint);
}

/* Said plainly rather than hinted at with an icon. "A student wrote
   this" and "we typed this up from a phone call" are different kinds of
   evidence, and the reader is entitled to know which one they have. */
.quote__source {
  margin-block-start: var(--space-2);
  font-size: var(--step--2);
  font-weight: var(--weight-semibold);
  color: var(--ink-accent);
}


/* ==========================================================================
   FAQ
   ==========================================================================
   Native <details>/<summary>. It opens with JavaScript off, it is in the
   accessibility tree correctly with no aria- bookkeeping, and the
   browser's own find-in-page can reach an answer inside a closed panel.
   A hand-built accordion gets none of those free and most get all three
   wrong.
   ========================================================================== */

.faq {
  background: var(--glass-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  overflow: hidden;
}

.faq__item + .faq__item {
  border-block-start: 1px solid var(--edge);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-block-size: 56px;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}

/* Safari draws its own disclosure triangle and ignores list-style. */
.faq__q::-webkit-details-marker { display: none; }

.faq__q:hover { background: var(--glass-2); }

.faq__q:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

.faq__chevron {
  flex: none;
  color: var(--ink-faint);
  transition: transform var(--dur-base) var(--ease-out);
}

.faq__item[open] .faq__q { color: var(--ink-accent); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }

.faq__a {
  padding: 0 var(--space-5) var(--space-5);
  max-inline-size: 62ch;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.faq__a > :first-child { margin-block-start: 0; }


/* ==========================================================================
   GALLERY
   ==========================================================================
   The "Inside SolutionTee" strip: photographs of the actual room.

   A SCROLL-SNAP STRIP, NOT A CAROUSEL. It swipes on a phone, scrolls
   with a trackpad, tabs with a keyboard and needs no JavaScript at all.
   An auto-advancing carousel would take the photograph away from whoever
   was looking at it, which is the one thing a gallery must not do.

   It bleeds past the container on purpose. A gallery that stops at the
   text margin reads as a widget; one that runs off the edge reads as a
   window, and the cut-off frame is what tells a reader there is more.
   ========================================================================== */

.gallery {
  margin-block-start: clamp(var(--space-6), 4vw, var(--space-8));
  /* The snap axis. `mandatory` would fight a trackpad's inertia on a
     wide strip, so this is the proximity variant: it tidies up where the
     scroll lands without taking the scroll over. */
  scroll-snap-type: x proximity;
  /* Room for the focus ring on the first and last frames, which a
     scroll container otherwise clips. */
  padding-block: var(--space-1);
}

.gallery__list {
  display: flex;
  gap: var(--space-4);
  /* The gutter is padding on the scroller rather than a margin on the
     first item, so the scroll START aligns with the container's text
     edge instead of an item overhanging it. */
  padding-inline: var(--gutter);
}

.gallery__item {
  flex: 0 0 auto;
  /* 76vw on a phone: wide enough to read, narrow enough that the next
     frame is visibly there. */
  inline-size: min(76vw, 22rem);
  scroll-snap-align: start;
}

@media (min-width: 64rem) {
  .gallery__item { inline-size: 26rem; }
}

.gallery__frame {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  background: var(--panel-sunken);
}

/* The image scales a little on hover — the whole frame, not the border,
   so nothing shifts in the layout. Under reduced motion it does nothing,
   and it is skipped on touch where :hover sticks after a tap. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery__frame img {
    transition: transform 520ms var(--ease-out);
  }
  .gallery__frame:hover img {
    transform: scale(1.03);
  }
}


/* ==========================================================================
   REASONS
   ==========================================================================
   The "why families choose SolutionTee" strip.

   A grid of text, not a row of cards. Each item is a fact about how the
   centre runs, and putting four facts in four boxes makes them look like
   a pricing table — the border does no work that the heading weight and
   the gap are not already doing.

   Auto-fit rather than a fixed column count, because this list is
   editable from the console: three items should fill the row and five
   should wrap without anybody having to think about it.
   ========================================================================== */

.reasons {
  display: grid;
  gap: clamp(var(--space-5), 3vw, var(--space-7));
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.reason {
  padding-block-start: var(--space-4);
  /* One hairline per item, at the top, so the set reads as a list rather
     than as four separate objects. */
  border-block-start: 2px solid var(--edge-control);
  max-inline-size: 32ch;
}

.reason__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  color: var(--ink);
}

.reason__text {
  margin-block-start: var(--space-2);
  font-size: var(--step--1);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  text-wrap: pretty;
}


/* ==========================================================================
   FOOTER: FIND US
   ==========================================================================
   The centre's own details. A real <address>, which is what the element
   is for, with each line a block so a street address reads as a street
   address rather than as a run-on sentence.

   `white-space: pre-line` on the address lines so the newlines somebody
   typed in the console survive. The alternative is splitting on newline
   in the template and rendering a list, which turns a two-line address
   into markup that fights a three-line one.
   ========================================================================== */

.footer__find {
  margin-block-start: clamp(var(--space-6), 4vw, var(--space-8));
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--edge);
}

.footer__address {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  margin-block-start: var(--space-3);
  font-style: normal;
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

.footer__lines { white-space: pre-line; }

.footer__address a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--edge-control);
  text-underline-offset: 0.18em;
}

.footer__address a:hover {
  color: var(--action);
  text-decoration-color: currentColor;
}

.footer__hours { color: var(--ink-faint); }


/* ==========================================================================
   THE SITE NOTICE BAND
   ==========================================================================
   One band, at the very top, above the header. Not a popup: a modal that
   interrupts somebody reading about fees to tell them about a deadline
   buys attention by taking it.

   THREE WEIGHTS, and they are genuinely different rather than three
   shades of the same. Calling everything urgent is how a reader learns
   to skip the band entirely, so "something to know" is deliberately
   quiet — a tinted strip and nothing more.

   Each level sets its own ink rather than inheriting, because the closed
   band paints a dark ground and the page's --ink is near-black in the
   light theme. That is the exact failure that put black text on navy on
   the landing page; the lifted-ink rule covers `.section--dark`, and
   this is the same problem one band along.
   ========================================================================== */

.band {
  position: relative;
  z-index: 1;
  border-block-end: 1px solid var(--edge);
  background: var(--canvas-alt);
  font-size: var(--step--1);
  line-height: var(--lh-snug);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.band__text {
  margin: 0;
  min-inline-size: 0;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.band__title {
  color: var(--ink);
  font-weight: var(--weight-semibold);
}

.band__body { margin-inline-start: var(--space-2); }

.band__link {
  flex: none;
  font-weight: var(--weight-semibold);
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.band__link:hover { color: var(--ink); }


/* ---- Time-limited: the accent edge, and nothing louder -------------- */
.band--urgent {
  background: var(--warning-bg);
  border-block-end-color: color-mix(in oklab, var(--warning) 40%,
                                    transparent);
}

.band--urgent .band__title { color: var(--ink); }


/* ---- Closed: a dark ground ------------------------------------------
   Painted with --band, the same navy .section--dark uses, and LISTED IN
   THE LIFTED-INK RULE in tokens.css rather than re-declaring ink here.

   Re-declaring it by hand would have worked today and drifted tomorrow:
   the lifted scale was measured against that navy, and a second copy is
   a second thing to update when it moves. It is also exactly the bug
   that put near-black text on navy across the landing page — a dark
   ground that was not in the lifted list. */
.band--closed {
  background: var(--band);
  border-block-end-color: transparent;
}

.band--closed .band__text { color: var(--ink-muted); }
.band--closed .band__title { color: var(--ink); }


/* ==========================================================================
   ADMISSION
   ==========================================================================
   The two columns had no vertical gap, so on a narrow screen the routes
   list began immediately under the paragraph above it and the section
   read as one long column of text.
   ========================================================================== */

.admission {
  row-gap: clamp(var(--space-7), 6vw, var(--space-9));
}

.admission__label {
  margin-block-end: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}


/* A picture in the notice band.

   Small and fixed: this strip sits above everything a visitor came to
   read, and an image that grows with its source would push the whole
   page down by however much somebody happened to upload. 72×48 is
   enough to be a photograph and not enough to be a banner of its own. */
.band__image {
  flex: none;
  inline-size: 72px;
  block-size: 48px;
  object-fit: cover;
  border-radius: var(--r-1);
  align-self: center;
}

/* CMS typography presets. These are deliberately finite classes rather
   than administrator-authored CSS: the hero remains responsive and a
   saved setting cannot escape into arbitrary page styling. */
.hero--font-display .hero__title { font-family: var(--font-display); }
.hero--font-body .hero__title {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
}
.hero--font-serif .hero__title {
  font-family: Georgia, "Times New Roman", serif;
}
.hero--size-compact .hero__title {
  font-size: clamp(2.25rem, 5vw, 4.25rem) !important;
}
.hero--size-standard .hero__title {
  font-size: clamp(2.75rem, 6vw, 5.75rem) !important;
}
.hero--size-large .hero__title {
  font-size: clamp(3.1rem, 7vw, 6.75rem) !important;
}
.hero--size-maximum .hero__title {
  font-size: clamp(3.4rem, 8vw, 7.75rem) !important;
}
.hero--weight-medium .hero__title { font-weight: var(--weight-medium); }
.hero--weight-bold .hero__title { font-weight: var(--weight-bold); }
.hero--style-normal .hero__title { font-style: normal; }
.hero--style-italic .hero__title { font-style: italic; }

/* Public class detail --------------------------------------------------- */
.class-hero { padding-block: clamp(var(--space-8), 10vw, 8rem); }
.class-hero__grid {
  display: grid;
  gap: clamp(var(--space-7), 7vw, 6rem);
  align-items: center;
}
.class-hero__title {
  max-width: 14ch;
  margin-block-start: var(--space-3);
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.055em;
}
.class-hero__summary {
  max-width: 56ch;
  margin-block-start: var(--space-5);
  font-size: var(--step-1);
  color: var(--ink-muted);
}
.class-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-block-start: var(--space-7);
  padding: 0;
  list-style: none;
}
.class-hero__facts li { display: grid; gap: .25rem; }
.class-hero__facts span,
.class-checkout__label { color: var(--ink-faint); font-size: var(--step--2); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.class-checkout { padding: clamp(var(--space-5), 5vw, var(--space-7)); border-radius: var(--r-3); }
.class-checkout__price { margin-block: var(--space-2); font: var(--weight-bold) var(--step-4)/1 var(--font-display); }
.class-checkout__note,
.class-checkout__deadline,
.class-checkout__signin { margin-block-start: var(--space-4); color: var(--ink-muted); }
.class-checkout .btn { margin-block-start: var(--space-5); }
.class-body { display: grid; gap: var(--space-7); }
.class-steps { display: grid; gap: var(--space-4); }
.class-steps article { padding: var(--space-5); border-block-start: 1px solid var(--edge); }
.class-steps article > span { color: var(--brand); font: var(--weight-bold) var(--step--2)/1 var(--font-display); }
.class-steps h3 { margin-block-start: var(--space-4); font-size: var(--step-1); }
.class-steps p { margin-block-start: var(--space-2); color: var(--ink-muted); }
.payment-choice__custom { display: grid; align-items: center; grid-template-columns: auto auto minmax(9rem, 1fr); }
@media (min-width: 56rem) {
  .class-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(20rem, .6fr); }
  .class-body { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .class-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 40rem) {
  /* On a phone the band is already two lines; a thumbnail beside them
     leaves the text too narrow to read. */
  .band__image { display: none; }
}
