/* =====================================================================
   Colchester Tutors: shared stylesheet for every page.
   Colours and fonts are set once in :root below.
   ===================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/literata.woff2") format("woff2");
}
@font-face {
  font-family: "Literata"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("fonts/literata-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/public-sans.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper:       #FAFAF7;
  --chalk:       #ECEEE8;
  --ink:         #15243B;
  --ink-soft:    #4A5B75;
  --claret:      #8E2C3E;
  --claret-deep: #74232F;
  --claret-dim:  rgba(142, 44, 62, 0.08);
  --correct:     #2E7D4F;
  --correct-dim: rgba(46, 125, 79, 0.10);
  --brass:       #B08A3E;   /* rules, ticks and decoration */
  --brass-text:  #7E6126;   /* brass dark enough to read as small text */
  --brass-light: #D2AE63;   /* brass on the dark navy bands */
  --rule:        rgba(21, 36, 59, 0.14);
  --rule-soft:   rgba(21, 36, 59, 0.08);

  --display: "Literata", Georgia, "Times New Roman", serif;
  --body: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1120px;
  --gutter: 24px;
  --r: 4px;
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--claret); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--claret); outline-offset: 3px; border-radius: 2px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1rem 0; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--claret); margin: 0 0 16px 0;
}
.eyebrow--brass { color: var(--brass-text); }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 58ch; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--chalk); padding: 1px 5px; border-radius: 3px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.nowrap { white-space: nowrap; }
.maths { font-family: var(--display); }
.maths i { font-style: italic; }
.bits { font-family: var(--mono); font-size: 0.98rem; letter-spacing: 0.06em; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.masthead__inner { display: flex; align-items: center; gap: 14px; min-height: var(--head-h); padding-top: 10px; padding-bottom: 10px; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); margin-right: auto; }
.wordmark:hover { text-decoration: none; }
.wordmark__mark {
  flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r); background: #fff;
}
.wordmark__mark img { width: 28px; height: auto; }
.wordmark__name { font-family: var(--display); font-size: 1.14rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.wordmark__name span {
  display: block; font-family: var(--body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--brass-text); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--claret); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--claret); }

.nav-toggle {
  display: none; align-items: center; gap: 8px; background: transparent; cursor: pointer;
  border: 1px solid var(--rule); border-radius: var(--r); padding: 9px 12px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
}
.nav-toggle__bars { width: 16px; height: 12px; position: relative; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }

.cta-short { display: none; }

@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -20px rgba(21, 36, 59, .45);
    padding: 6px var(--gutter) 14px;
  }
  .nav.is-open { display: flex; }
  .nav a { display: block; padding: 13px 0; font-size: 1rem; border-bottom: 1px solid var(--rule-soft); }
  .nav li:last-child a { border-bottom: none; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--claret); }
}
@media (max-width: 520px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .masthead__inner { gap: 10px; }
  .wordmark { gap: 9px; }
  .wordmark__name { font-size: 1.04rem; }
  .wordmark__name span { display: none; }
  .wordmark__mark { width: 36px; height: 36px; }
  .wordmark__mark img { width: 25px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .nav-toggle { padding: 12px; }
}
@media (max-width: 400px) {
  .wordmark__name { white-space: normal; line-height: 1.08; }
}
@media (max-width: 350px) {
  :root { --gutter: 16px; }
  .hero h1 { font-size: 1.85rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-size: 0.95rem; font-weight: 600; line-height: 1.3; text-align: center;
  padding: 12px 22px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--solid { background: var(--claret); color: #fff; }
.btn--solid:hover { background: var(--claret-deep); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #0C1727; color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(21, 36, 59, .3); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghostlight { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghostlight:hover { border-color: #fff; color: #fff; }
.btn--wa { background: #fff; color: var(--ink); border-color: rgba(21, 36, 59, .3); }
.btn--wa:hover { border-color: #1DA851; color: var(--ink); }
.btn--wa svg { color: #1DA851; }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.arrow::after { content: "\2192"; font-family: var(--body); margin-left: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 60px; } .hero { padding: 68px 0 72px; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.05rem, 4.6vw, 2.95rem); }
.hero h1 em { font-style: normal; color: var(--claret); display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__points { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); max-width: 58ch; }
.hero__points li { position: relative; padding: 4px 0 4px 26px; font-size: 0.95rem; color: var(--ink-soft); }
.hero__points li strong { color: var(--ink); font-weight: 600; }
.hero__points li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg);
}

/* ---------- Paper card + tabs (year finder and specimen paper) ---------- */
.paper-card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(21,36,59,.04), 0 12px 32px -22px rgba(21,36,59,.35);
  overflow: hidden;
}
.paper-col { min-width: 0; }
.card-note { font-size: 0.83rem; color: var(--ink-soft); margin: 14px 2px 0; line-height: 1.5; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--rule); gap: 1px; border-bottom: 1px solid var(--rule); }
@media (min-width: 560px) { .tabs { grid-template-columns: repeat(4, 1fr); } }
.tab {
  appearance: none; border: 0; background: var(--chalk); cursor: pointer;
  font-family: var(--body); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
  padding: 13px 8px; line-height: 1.35; text-align: center;
  border-bottom: 2px solid transparent; transition: background-color .15s ease, color .15s ease;
}
.tab:hover { background: #F4F5F1; color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--claret); border-bottom-color: var(--claret); }
.tab small { display: block; font-size: 0.92em; font-weight: 600; letter-spacing: 0.04em; opacity: .85; text-transform: none; }
.tab:focus-visible { outline-offset: -3px; }

.card-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--paper);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.card-head b { color: var(--claret); }

/* Year finder */
.finder__ask { font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--rule); letter-spacing: -0.005em; }
.finder__panel { padding: 24px 22px 22px; }
.finder__panel:focus { outline: none; }
@media (min-width: 1000px) { .finder__body { min-height: 236px; } }
.finder__title { font-size: 1.35rem; margin-bottom: 10px; }
.finder__panel p { font-size: 0.94rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 16px 0 0; padding: 0; }
.chips li {
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 99px; padding: 4px 12px; background: var(--paper);
}
.chips--quiet li { color: var(--ink-soft); font-weight: 500; background: transparent; }
.finder__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.price__fig { display: block; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.price__fig small { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-left: 3px; letter-spacing: 0; }
.price__for { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

/* Specimen questions */
.qpanel:focus { outline: none; }
.qbody {
  padding: 24px 20px 22px;
  background-image:
    linear-gradient(rgba(21,36,59,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,36,59,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
@media (min-width: 1000px) { .qbody { min-height: 400px; } }
.q-prompt { font-family: var(--display); font-size: 1rem; font-weight: 600; margin: 0 0 16px; }
.q-stem {
  display: block; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--brass);
  border-radius: 3px; padding: 13px 16px; margin: 0 0 18px;
  font-family: var(--display); font-size: 1.02rem; font-weight: 600;
}
.fig-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fig-cell { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--rule); border-radius: 3px; display: grid; place-items: center; padding: 6px; }
.fig-cell svg { width: 100%; height: 100%; }
.fig-cell--q { border-style: dashed; border-color: rgba(176,138,62,.7); background: rgba(176,138,62,.07); }
.q-mark { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--brass); }
.fig-cell--q .fig-answer { display: none; }
.fig-cell--q.is-solved .q-mark { display: none; }
.fig-cell--q.is-solved .fig-answer { display: block; }
.fig-cell--q.is-solved { border-style: solid; border-color: var(--correct); background: var(--correct-dim); }

.opt-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 20px 0 9px; }
.opt-row { display: grid; gap: 8px; }
.opt-row--fig { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt-row--text { grid-template-columns: 1fr; }
@media (min-width: 460px) { .opt-row--text { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  cursor: pointer; font-family: var(--body); color: var(--ink); min-width: 0;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: var(--ink-soft); }
.opt[disabled] { cursor: default; }
.opt.is-wrong { border-color: rgba(21,36,59,.28); background: rgba(21,36,59,.04); opacity: .45; }
.opt.is-picked { border-color: var(--claret); background: var(--claret-dim); opacity: 1; }
.opt.is-right { border-color: var(--correct); background: var(--correct-dim); border-width: 2px; opacity: 1; }
.opt.is-picked::after, .opt.is-right::after { position: absolute; top: 5px; right: 7px; font-size: 0.82rem; font-weight: 700; line-height: 1; }
.opt.is-picked::after { content: "\2715"; color: var(--claret); }
.opt.is-right::after  { content: "\2713"; color: var(--correct); }
.opt--fig { aspect-ratio: 1 / 1; padding: 8px 8px 16px; }
.opt--fig svg { width: 100%; height: 100%; }
.opt--fig .opt__key { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-soft); }
.opt--fig.is-right .opt__key { color: var(--correct); }
.opt--fig.is-picked .opt__key { color: var(--claret); }
.opt--text { display: flex; align-items: center; gap: 11px; padding: 13px 15px; text-align: left; }
.opt--text .opt__key {
  flex: 0 0 auto; width: 21px; height: 21px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%; font-size: 0.66rem; font-weight: 700; color: var(--ink-soft);
}
.opt--text.is-right .opt__key { border-color: var(--correct); color: var(--correct); }
.opt--text.is-picked .opt__key { border-color: var(--claret); color: var(--claret); }
.opt__val { font-size: 1rem; font-weight: 600; }
.q-feedback { margin-top: 16px; min-height: 4.2em; font-size: 0.9rem; color: var(--ink-soft); border-left: 2px solid var(--rule); padding-left: 14px; }
.q-feedback strong { color: var(--ink); font-weight: 600; }
.q-feedback.is-answered { border-left-color: var(--correct); }
.q-msg { display: none; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.nudge { animation: nudge .28s ease; }

/* ---------- Credential strip ---------- */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--chalk); }
.strip__grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 820px) { .strip__grid { grid-template-columns: repeat(4, 1fr); margin: 0; } }
.strip__item { padding: 24px var(--gutter); border-right: 1px solid var(--rule); }
.strip__item:last-child { border-right: none; }
@media (min-width: 820px) { .strip__item:first-child { padding-left: 0; } }
@media (max-width: 819px) {
  .strip__item:nth-child(2n) { border-right: none; }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
.strip__num { font-family: var(--display); font-size: 1.55rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
.strip__num small { font-size: 0.95rem; color: var(--brass-text); }
.strip__text { font-size: 0.87rem; color: var(--ink-soft); margin: 7px 0 0; }

/* ---------- Bands ---------- */
.band { padding: 60px 0; scroll-margin-top: calc(var(--head-h) + 4px); }
@media (min-width: 820px) { .band { padding: 80px 0; } }
.band--chalk { background: var(--chalk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band--ink { background: var(--ink); color: #fff; }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--ink .lede, .band--ink .muted { color: rgba(255,255,255,.72); }
.band--ink .eyebrow { color: var(--brass-light); }
.band--ink :focus-visible { outline-color: #fff; }
.band__head { max-width: 62ch; margin-bottom: 40px; }
.band__head h2 { margin-bottom: 14px; }
.band__sub { margin-top: 64px; padding-top: 52px; border-top: 1px solid var(--rule); }
.band--ink .band__sub { border-top-color: rgba(255,255,255,.14); }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 920px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; } }
@media (min-width: 920px) { .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 920px) { .split--flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

/* ---------- Panels and tick lists ---------- */
.panel { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; }
.band--chalk .panel { background: var(--paper); }
.panel h3 { margin-bottom: 14px; }
.panel__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.panel__row:last-of-type { border-bottom: none; }
.panel__row span:first-child { color: var(--ink-soft); }
.panel__row span:last-child { font-weight: 600; text-align: right; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--correct); margin-right: 7px; vertical-align: 1px; }

.assure { margin: 0; padding: 0; list-style: none; }
.assure li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--rule-soft); position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.assure li:last-child { border-bottom: none; padding-bottom: 0; }
.assure li:first-child { padding-top: 4px; }
.assure li:first-child::before { top: 10px; }
.assure li strong { color: var(--ink); font-weight: 600; }
.assure li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 8px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg);
}
.band--ink .assure li { border-bottom-color: rgba(255,255,255,.14); color: rgba(255,255,255,.74); }
.band--ink .assure li strong { color: #fff; }
.band--ink .assure li::before { border-color: var(--brass-light); }

/* ---------- Tutors ---------- */
.avatar {
  flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
  width: 84px; height: 84px; border-radius: var(--r);
  background: var(--chalk); border: 1px solid var(--rule);
  font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--ink); letter-spacing: -0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 56px; height: 56px; font-size: 1.15rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; color: var(--correct);
  background: var(--correct-dim); border-radius: 99px; padding: 3px 10px 3px 8px;
}
.badge::before {
  content: ""; width: 9px; height: 5px; margin-top: -3px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.draft-tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--ink); border-radius: 3px; padding: 3px 8px;
}

/* Home page teaser */
.teaser { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .teaser { grid-template-columns: 1fr 1fr; } }
.teaser__card {
  display: flex; align-items: center; gap: 14px; height: 100%;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; color: var(--ink);
  transition: border-color .15s ease;
}
.teaser__card:hover { text-decoration: none; border-color: var(--ink-soft); }
.teaser__card.is-draft { border-style: dashed; }
.teaser__name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.teaser__meta { display: block; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }

/* Profiles page */
.every { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .every { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .every { grid-template-columns: repeat(4, 1fr); } }
.every__item { background: var(--paper); padding: 22px 24px; }
.every__item h3 { font-size: 1rem; margin-bottom: 6px; }
.every__item p { font-size: 0.9rem; color: var(--ink-soft); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.filters__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }
.filter {
  appearance: none; cursor: pointer; background: #fff; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 99px; padding: 6px 14px; font-size: 0.86rem; font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.filter:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.profiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 940px) { .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .profiles--single { grid-template-columns: minmax(0, 760px); } }
.profile {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 28px;
  box-shadow: 0 1px 2px rgba(21,36,59,.04);
}
.profile.is-draft { border-style: dashed; border-color: rgba(21,36,59,.4); }
.profile__draft { margin-bottom: 16px; }
.profile__head { display: flex; gap: 18px; align-items: flex-start; }
.profile__name { font-size: 1.4rem; }
.profile__role { font-size: 0.92rem; color: var(--ink-soft); margin: 4px 0 10px; }
.profile__bio { margin-top: 20px; }
.profile__bio p { font-size: 0.96rem; color: var(--ink-soft); }
.profile__facts { margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.profile__fact { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 520px) { .profile__fact { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; } }
.profile__fact dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brass-text); padding-top: 4px; }
.profile__fact dd { margin: 0; font-size: 0.93rem; }
.profile__fact dd ul { margin: 0; padding: 0; list-style: none; }
.profile__fact dd li + li { margin-top: 4px; }
.profile__fact dd b { font-weight: 600; }
.profile__cta { margin-top: auto; padding-top: 22px; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px dashed rgba(21,36,59,.4); border-radius: var(--r);
  padding: 14px 18px; margin: 0 0 24px; font-size: 0.9rem; color: var(--ink-soft);
}
.notice strong { color: var(--ink); }
.empty { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; color: var(--ink-soft); max-width: 720px; }

/* ---------- Stages (how lessons work) ---------- */
.stages { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 820px) { .stages { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.stage { padding-top: 20px; border-top: 2px solid rgba(255,255,255,.22); }
.stage__n { font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--brass-light); display: block; margin-bottom: 12px; }
.stage h3 { margin-bottom: 10px; }
.stage p { font-size: 0.94rem; color: rgba(255,255,255,.72); }

/* ---------- Subjects and fees ---------- */
.fees { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fees th {
  text-align: left; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.fees th:last-child { text-align: right; white-space: nowrap; }
.fees td { padding: 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fees td:last-child { text-align: right; white-space: nowrap; font-weight: 700; font-family: var(--display); font-size: 1.25rem; padding-left: 20px; }
.fees td:last-child small { font-family: var(--body); font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); }
.fees__years { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brass-text); display: block; margin-bottom: 3px; }
.fees__sub { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; font-weight: 400; max-width: 54ch; }

.subjects { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .subjects { grid-template-columns: 1fr 1fr; } }
.subject { background: var(--paper); padding: 30px 28px; }
.subject__tag { display: flex; justify-content: space-between; gap: 12px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 12px; }
.subject__tag span:last-child { color: var(--ink-soft); text-align: right; white-space: nowrap; }
.subject h3 { margin-bottom: 10px; }
.subject p { font-size: 0.94rem; color: var(--ink-soft); }
.subject__list { margin: 14px 0 0; padding: 0; list-style: none; }
.subject__list li { font-size: 0.88rem; color: var(--ink-soft); padding: 5px 0 5px 18px; position: relative; }
.subject__list li strong { color: var(--ink); font-weight: 600; }
.subject__list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--claret); opacity: .55; }
.disclaimer { font-size: 0.82rem; color: var(--ink-soft); margin-top: 18px; max-width: 74ch; }

/* ---------- Resources (library and guides) ---------- */
.value-stack { display: grid; gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .value-card--row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .value-card--media { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.value-card__body { padding: 30px 26px; display: flex; flex-direction: column; }
@media (min-width: 860px) { .value-card__body { padding: 36px 36px 34px; } }
.value-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); letter-spacing: -0.015em; }
.value-card__body > p { font-size: 0.95rem; color: var(--ink-soft); margin-top: 12px; }
.value-card__body > p.eyebrow { margin-top: 0; color: var(--brass-text); font-size: 0.72rem; }
.value-card__actions { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.value-card__img { background: var(--chalk); border-bottom: 1px solid var(--rule); min-height: 220px; }
@media (min-width: 860px) { .value-card__img { border-bottom: none; border-right: 1px solid var(--rule); } }
.value-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.value-card__side { background: var(--paper); border-top: 1px solid var(--rule); padding: 26px 26px 22px; }
@media (min-width: 860px) { .value-card__side { border-top: none; border-left: 1px solid var(--rule); padding: 32px 34px 26px; } }
.value-card__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.shelf { list-style: none; margin: 0; padding: 0; }
.shelf li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.93rem; }
.shelf li:last-child { border-bottom: none; }
.shelf li span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text); }
.price-row { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 22px 0 0; }
.price-row .price__fig { font-size: 1.6rem; }
.value-card__body > p.fineprint, .fineprint { font-size: 0.76rem; color: var(--ink-soft); margin-top: 16px; line-height: 1.5; }

/* ---------- Quotes (testimonials) ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.quote { margin: 0; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--brass); border-radius: var(--r); padding: 26px 26px 22px; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.5; }
.quote figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--brass-text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 38px 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.04rem; line-height: 1.35; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--body); font-size: 1.3rem; font-weight: 400; color: var(--claret); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--claret); }
.faq details p { padding: 0 0 20px; margin: 0; font-size: 0.95rem; color: var(--ink-soft); max-width: 62ch; }
.faq details p + p { margin-top: -8px; }

/* ---------- Enquiry ---------- */
.enquire { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
@media (min-width: 940px) { .enquire { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; } }
.enquire h2 { margin-bottom: 14px; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 44px; font-size: 0.95rem; color: var(--ink-soft); }
.steps li strong { display: block; color: var(--ink); font-weight: 600; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--brass); border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 0.88rem; color: var(--brass-text); background: var(--paper);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--rule); }

.form { padding: 26px 24px 24px; }
@media (min-width: 560px) { .form { padding: 30px 30px 28px; } }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: end; }
@media (min-width: 560px) { .form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; } .field--wide { grid-column: 1 / -1; } }
.field { min-width: 0; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-size: 1rem; line-height: 1.4; background: #fff; color: var(--ink);
  border: 1px solid rgba(21, 36, 59, .32); border-radius: var(--r); padding: 11px 12px;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--claret); outline-offset: 1px; border-color: var(--claret); }
.field [aria-invalid="true"] { border-color: var(--claret); background: var(--claret-dim); }
.field__error { display: block; font-size: 0.82rem; color: var(--claret); margin-top: 5px; font-weight: 600; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.form__actions .btn { flex: 1 1 200px; }
.form__note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
.direct { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--ink-soft); }
.direct__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.direct a { font-weight: 600; }
.linkbtn { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--claret); font-weight: 600; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

.quicklinks { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (min-width: 700px) { .quicklinks { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (min-width: 700px) { .quicklinks--two { grid-template-columns: 1fr 1fr; } }
.quicklink { background: var(--paper); padding: 20px 24px; display: flex; align-items: center; gap: 16px; color: var(--ink); }
.quicklink:hover { background: #fff; text-decoration: none; }
.quicklink strong { display: block; font-family: var(--display); font-size: 1.02rem; }
.quicklink span.small { color: var(--ink-soft); display: block; line-height: 1.4; margin-top: 2px; }
.quicklink__arrow { margin-left: auto; color: var(--claret); font-size: 1.2rem; }

/* ---------- Sub-page heads ---------- */
.pagehead { padding: 48px 0 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) { .pagehead { padding: 64px 0 52px; } }
.pagehead h1 { font-size: clamp(1.95rem, 4.2vw, 2.8rem); margin-bottom: 16px; }
.crumb { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 18px; }
.crumb a { color: var(--ink-soft); }

/* ---------- Revision library ---------- */
.search { position: relative; max-width: 460px; margin-bottom: 24px; }
.search input { width: 100%; font-size: 1rem; background: #fff; border: 1px solid rgba(21,36,59,.32); border-radius: var(--r); padding: 12px 14px; }
.search input:focus { outline: 2px solid var(--claret); outline-offset: 1px; border-color: var(--claret); }
.lib { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.lib > summary, .lib__topic > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; }
.lib > summary::-webkit-details-marker, .lib__topic > summary::-webkit-details-marker { display: none; }
.lib > summary { padding: 18px 22px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.lib > summary:hover, .lib__topic > summary:hover { color: var(--claret); }
.lib__count { margin-left: auto; font-family: var(--body); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.lib summary::after { content: "+"; font-family: var(--body); font-size: 1.3rem; font-weight: 400; color: var(--claret); line-height: 1; width: 14px; text-align: center; }
.lib details[open] > summary::after, .lib[open] > summary::after { content: "\2013"; }
.lib__topic { border-top: 1px solid var(--rule); background: var(--paper); }
.lib__topic > summary { padding: 14px 22px 14px 34px; font-weight: 600; font-size: 0.96rem; }
.lib__files { list-style: none; margin: 0; padding: 0; background: #fff; border-top: 1px solid var(--rule-soft); }
.lib__file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 22px 12px 34px; border-bottom: 1px solid var(--rule-soft); font-size: 0.93rem; }
.lib__file:last-child { border-bottom: none; }
.lib__actions { display: flex; gap: 8px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--ink); border: 1px solid rgba(21,36,59,.3); border-radius: var(--r); padding: 6px 12px; background: #fff; }
.pill-btn:hover { border-color: var(--ink); text-decoration: none; }
.pill-btn--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-btn--solid:hover { background: #0C1727; color: #fff; }

/* ---------- Availability calendar ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 0.88rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--rule); background: #fff; }
.swatch--free { background: var(--correct-dim); border-color: var(--correct); }

.cal { display: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (min-width: 780px) { .cal { display: grid; grid-template-columns: 62px repeat(7, minmax(0, 1fr)); } }
.cal__dayname { height: 46px; display: grid; place-items: center; background: var(--chalk); border-bottom: 1px solid var(--rule); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.cal__day { border-left: 1px solid var(--rule); min-width: 0; }
.cal__track { position: relative; margin: 14px 0; background-image: linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px); background-repeat: repeat-y; }
.cal__axis .cal__track { background: none; }
.cal__time { position: absolute; right: 10px; transform: translateY(-50%); font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); }
.cal__slot {
  position: absolute; left: 5px; right: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--correct-dim); border: 1px solid var(--correct); border-radius: 3px;
  color: #1E5C39; font-size: 0.76rem; font-weight: 600; line-height: 1.25; text-align: center; overflow: hidden;
  transition: background-color .15s ease, color .15s ease;
}
.cal__slot:hover { background: var(--correct); color: #fff; text-decoration: none; }
.cal__slot small { font-size: 0.68rem; font-weight: 500; }

.cal-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); }
@media (min-width: 780px) { .cal-list { display: none; } }
.cal-list__day { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); }
.cal-list__day:last-child { border-bottom: none; }
.cal-list__name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 9px; }
.cal-list__slots { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-chip { display: inline-block; background: var(--correct-dim); border: 1px solid var(--correct); border-radius: 3px; color: #1E5C39; font-size: 0.9rem; font-weight: 600; padding: 7px 12px; }
.cal-chip:hover { background: var(--correct); color: #fff; text-decoration: none; }
.cal-list__none { font-size: 0.9rem; color: var(--ink-soft); padding-top: 7px; }

/* ---------- Closing call to action ---------- */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.closing h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin-bottom: 8px; }
.closing p { color: rgba(255,255,255,.72); max-width: 52ch; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 44px 0 36px; font-size: 0.9rem; color: var(--ink-soft); }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.foot h2 { font-family: var(--body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--claret); }
.foot__brand { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.foot__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
