/* St Benedict's Sixth Form: site stylesheet. Tokens in DESIGN.md. */

:root {
  --ink: #0A1240;
  --ink-2: #16205A;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --sky: #DCEAF7;
  --sky-2: #C4DAF0;
  --rose: #B3122E;
  --rose-2: #8E0E25;
  --gold: #C9A227;
  --gold-2: #E3C765;
  --muted: #5B6478;
  --line: #D5DBE6;
  --ok: #1E7D4F;
  --warn: #B3122E;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -16px rgba(10, 18, 64, .25);
  --section: clamp(64px, 8vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 16px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: clamp(21px, 2vw, 24px); }
h4 { font-size: 19px; font-family: var(--sans); font-weight: 600; }
.display { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.two-col { align-items: start; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 12px; margin-top: 2em; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-white { background: var(--white); }
.section-sky { background: var(--sky); }
.section-ink { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .muted { color: var(--sky-2); }
.section-ink a { color: var(--white); }
.section-tight { padding-block: calc(var(--section) * .6); }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 56ch; color: var(--muted); }
.section-ink .section-head p { color: var(--sky-2); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rose-watermark { position: absolute; right: -6%; bottom: -18%; width: 52vw; max-width: 720px; opacity: .07; color: var(--white); pointer-events: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-rose { background: var(--rose); color: var(--white); }
.btn-rose:hover { background: var(--rose-2); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.section-ink .btn-ghost, .hero .btn-ghost, .page-head.ink .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.section-ink .btn-ghost:hover, .hero .btn-ghost:hover, .page-head.ink .btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: background .25s var(--ease), border-color .25s var(--ease); }
.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: var(--white); }
.page-home .site-header.is-solid { background: var(--white); border-color: var(--line); color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-crest { width: 44px; height: 44px; border-radius: 50%; background: var(--white); padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: 12.5px; letter-spacing: .02em; opacity: .8; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; }
.site-nav ul a { text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-color: var(--gold); }
.nav-actions { display: flex; gap: 10px; }
.page-home .site-header:not(.is-solid) .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.25) contrast(1.06); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,18,64,.9) 0%, rgba(10,18,64,.5) 38%, rgba(10,18,64,.06) 72%, rgba(10,18,64,.28) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 7vh, 88px); padding-top: 140px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { color: var(--white); margin: 0 0 20px; max-width: 24ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) span { animation-delay: .24s; }
.hero .lead { color: var(--sky); max-width: 52ch; opacity: 0; animation: fade .8s .5s var(--ease) forwards; }
.hero .cta-row { opacity: 0; animation: fade .8s .7s var(--ease) forwards; }
.hero-rule { width: 72px; height: 3px; background: var(--gold); margin-bottom: 22px; transform-origin: left; transform: scaleX(0); animation: grow .7s .2s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }

/* Next-date ticket */
.ticket { background: var(--gold); color: var(--ink); border-radius: var(--radius); padding: 20px 22px; width: min(320px, 100%); box-shadow: var(--shadow); text-decoration: none; display: block; opacity: 0; animation: fade .8s .9s var(--ease) forwards; position: relative; }
.ticket-kicker { font-size: 13px; font-weight: 600; margin: 0 0 6px; opacity: .8; }
.ticket-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin: 0 0 10px; font-weight: 500; }
.ticket-date { margin: 0; font-weight: 600; font-size: 15px; }
.ticket-count { margin: 0; font-size: 13px; opacity: .85; }
.ticket-count strong { font-size: 15px; }
.ticket.is-provisional .ticket-date::after { content: " (provisional)"; font-weight: 400; opacity: .75; }
.ticket:hover { background: var(--gold-2); }

/* Ofsted quote banner (home page): a frosted, see-through band across the foot of the hero, over the video. */
.page-home .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
.page-home .hero-inner { padding-top: 100px; padding-bottom: clamp(22px, 3.4vh, 44px); }
.quote-banner { position: relative; z-index: 1; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-top: 1px solid rgba(255,255,255,.38); box-shadow: 0 -18px 40px rgba(10,18,64,.18); color: var(--white); }
.quote-banner::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--gold); }
.quote-banner-inner { margin-top: 0; margin-bottom: 0; padding-top: clamp(16px, 2.6vh, 30px); padding-bottom: clamp(18px, 2.8vh, 32px); display: grid; gap: clamp(4px, .8vw, 10px); }
.quote-banner blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 4.3vw, 56px); line-height: 1.08; letter-spacing: -.01em; color: var(--white); text-wrap: balance; text-shadow: 0 2px 18px rgba(10,18,64,.45); }
.quote-banner figcaption { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--sky); }
@media (min-width: 900px) {
  /* attribution sits to the right of the quotes so the whole band fits on the first screen of a laptop */
  .quote-banner-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: end; }
  .quote-banner blockquote { grid-column: 1; }
  .quote-banner figcaption { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 8px; font-size: 18px; }
}

/* Event banner (home page, under the hero; populated from dates.json by site.js) */
.event-banner { display: block; background: var(--sky); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.event-banner[hidden] { display: none; }
.event-banner-inner { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: center; gap: 24px 64px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.event-banner-kicker { font-size: 13px; font-weight: 600; margin: 0 0 4px; color: var(--muted); }
.event-banner-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; margin: 0 0 6px; font-weight: 500; }
.event-banner-detail { margin: 0; font-size: 15px; max-width: 68ch; }
.event-banner:hover .btn-rose { background: var(--rose-2); }

/* Results day photos */
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.photo-strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 900px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .photo-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Strands triptych */
.strands { text-align: center; }
.strands-intro { max-width: 60ch; margin: 0 auto 48px; color: var(--sky-2); }
.strand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.strand { padding: 40px 28px; border-left: 1px solid rgba(255,255,255,.18); }
.strand:first-child { border-left: 0; }
.strand-latin { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.6vw, 44px); color: var(--gold-2); margin: 0 0 6px; }
.strand-english { font-weight: 600; margin: 0 0 12px; color: var(--white); }
.strand p { color: var(--sky-2); font-size: 15.5px; margin: 0; max-width: 34ch; margin-inline: auto; }

/* Course cards */
.filter-bar { position: sticky; top: 76px; z-index: 20; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; box-shadow: var(--shadow); margin-bottom: 32px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--paper); }
.search input { border: 0; background: transparent; flex: 1; font: inherit; min-width: 0; }
.search input:focus { outline: none; }
.search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .15s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-count { color: var(--muted); font-size: 14.5px; margin-left: auto; }
.course-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-height: 190px; position: relative; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.course-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.course-card h3 { font-size: 22px; margin: 0; }
.course-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.course-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.course-type { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--ink); width: max-content; }
.course-type.type-applied { background: #EEF5E6; color: #2A5A1E; }
.course-type.type-level2 { background: #F6EBD8; color: #6B4A0E; }
.course-type.type-additional { background: #EFE9F7; color: #4A2E7A; }
.course-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.course-card-mini { min-height: 0; padding: 16px 18px; gap: 8px; }
.course-card-mini strong { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--white); border-radius: var(--radius); border: 1px dashed var(--line); }
.course-card.is-hidden { display: none; }

/* Course page */
.course-hero { background: var(--white); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.course-hero h1 { margin: 10px 0 6px; }
.course-board { color: var(--muted); margin-bottom: 14px; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 56px; }
.course-main h2 { margin-top: 1.4em; }
.course-main h2:first-child { margin-top: 0; }
.course-main > p { max-width: 70ch; margin-bottom: 1em; }
.course-main > .tick-list { max-width: 70ch; margin-bottom: 1.2em; }
.aside-sheet { background: var(--white); border: 1px solid var(--line); }
.aside-sheet .btn { width: 100%; }
.sheet-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 28px; align-items: start; }
.sheet-cols h3 { font-size: 20px; margin-bottom: 12px; }
.tick-list, .plain-list, .entry-list { list-style: none; }
.tick-list li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.entry-box { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--rose); border-radius: var(--radius); padding: 24px; }
.entry-box h2 { font-size: 24px; }
.entry-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.entry-list li:last-of-type { border-bottom: 0; }
.entry-list small { color: var(--muted); font-size: 13.5px; }
.entry-programme { color: var(--muted); font-size: 14.5px; }
.entry-box .btn { margin-top: 16px; width: 100%; }
.aside-block { margin-top: 24px; padding: 24px; background: var(--sky); border-radius: var(--radius); }
.aside-block h3 { font-size: 20px; }
.aside-block .btn { margin-top: 8px; }

/* Checker */
.checker { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 48px; align-items: start; }
.grade-rows { display: grid; gap: 8px; }
.grade-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 8px 8px 16px; }
.grade-row.is-core { border-left: 4px solid var(--gold); }
.grade-row label { font-weight: 500; }
.grade-row small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
select, input[type="text"], input[type="email"], input[type="tel"], textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%; }
select:focus, input:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--sky); }
.grade-row select { padding: 8px 10px; }
.checker-more { margin-top: 12px; }
details.more-subjects summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more-subjects summary::before { content: "+"; font-size: 20px; line-height: 1; color: var(--rose); }
details.more-subjects[open] summary::before { content: "−"; }
details.more-subjects .grade-rows { margin-top: 8px; }
.result-panel { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.result-panel h2 { font-size: 26px; margin-bottom: 4px; }
.aps { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 18px; }
.aps strong { font-family: var(--serif); font-size: 48px; line-height: 1; font-weight: 500; }
.aps span { color: var(--muted); font-size: 14.5px; }
.programme-list { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.programme-list li { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.programme-list li.ok { border-color: #BFE3CF; background: #F0FAF4; }
.programme-list li.no { color: var(--muted); }
.programme-list li .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--line); }
.programme-list li.ok .dot { background: var(--ok); }
.course-status { display: grid; gap: 6px; }
.course-status a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 15px; border: 1px solid transparent; }
.course-status a:hover { border-color: var(--line); background: var(--paper); }
.course-status .pill { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: #E4F4EA; color: var(--ok); }
.pill-near { background: #FBF1D6; color: #7A5A0A; }
.pill-no { background: #F4E4E7; color: var(--rose-2); }
.pill-unknown { background: var(--paper); color: var(--muted); }
.status-group h3 { font-size: 16px; font-family: var(--sans); font-weight: 600; margin: 16px 0 8px; color: var(--muted); }
.result-empty { color: var(--muted); }
.reason { font-size: 13px; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }
.timeline li.is-next::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(201,162,39,.25); }
.timeline li.is-past { opacity: .55; }
.timeline li.is-past::before { border-color: var(--line); }
.timeline-date { font-weight: 600; font-size: 14.5px; color: var(--muted); margin: 0 0 4px; }
.timeline h3 { margin: 0 0 4px; font-size: 22px; }
.timeline p { margin: 0 0 8px; max-width: 60ch; }
.timeline-actions { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14.5px; }
.tag-provisional { display: inline-block; font-size: 12px; font-weight: 600; background: var(--sky); color: var(--ink); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Results */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 64px; align-items: center; gap: 14px; font-size: 15px; }
.bar-track { height: 14px; background: var(--sky); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink); border-radius: 999px; width: 0; transition: width 1s var(--ease); }
.bar-value { font-family: var(--serif); font-size: 22px; text-align: right; }
.section-ink .bar-track { background: rgba(255,255,255,.12); }
.section-ink .bar-fill { background: var(--gold); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat strong { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 500; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; }
.rank-list { list-style: none; counter-reset: rank; columns: 2; column-gap: 40px; }
.rank-list li { counter-increment: rank; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px solid var(--line); break-inside: avoid; }
.rank-list li::before { content: counter(rank); position: absolute; left: 0; top: 8px; font-family: var(--serif); font-size: 22px; color: var(--gold); }
.section-ink .rank-list li { border-color: rgba(255,255,255,.15); }

/* Team, quotes */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img, .person .person-placeholder { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: var(--sky); }
.person .person-placeholder { display: grid; place-items: center; font-family: var(--serif); font-size: 48px; color: var(--ink); }
.person-body { padding: 18px 20px 20px; }
.person-body h3 { font-size: 21px; margin: 0 0 2px; }
.person-body .role { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.person-body p { font-size: 15px; margin: 0 0 10px; }
.person-body a { font-size: 14px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.quote figcaption { font-size: 14.5px; color: var(--muted); }
.quote.is-placeholder { border-style: dashed; }
.quote.is-placeholder::after { content: "Placeholder. Replace with real student voice."; display: block; margin-top: 12px; font-size: 12.5px; color: var(--rose); font-weight: 600; }

/* Director welcome */
.welcome { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 56px; align-items: center; }
.welcome img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.welcome blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; }
.welcome cite { font-style: normal; font-weight: 600; display: block; }
.welcome cite span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* Home: pathways */
.pathways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pathway { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.pathway h3 { margin: 0; }
.pathway p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.pathway span { font-weight: 600; border-bottom: 1.5px solid var(--gold); width: max-content; padding-bottom: 2px; }
.pathway:hover { border-color: var(--ink); }

/* Feature band (video / image + text) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); position: relative; }
.feature-media video, .feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .media-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(10,18,64,.85); color: var(--white); font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.feature.reverse .feature-media { order: 2; }

.placeholder-media { background: var(--ink); display: grid; place-items: center; color: var(--white); position: relative; }
.placeholder-media img { width: 60%; height: auto; opacity: .12; color: var(--white); }
.placeholder-media p { position: absolute; inset: auto 20px 20px; margin: 0; font-size: 14px; color: var(--sky-2); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-success { background: #F0FAF4; border: 1px solid #BFE3CF; border-radius: var(--radius); padding: 24px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 5px; }

/* Quiz */
.quiz { max-width: 720px; }
.quiz-progress { height: 6px; background: var(--sky); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.quiz-progress span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .4s var(--ease); }
.quiz-q h2 { font-size: clamp(26px, 3vw, 34px); }
.quiz-options { display: grid; gap: 10px; list-style: none; margin-top: 20px; }
.quiz-options button { text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; cursor: pointer; font-size: 16.5px; transition: border-color .15s var(--ease), background .15s; }
.quiz-options button:hover { border-color: var(--ink); background: var(--paper); }
.quiz-result { background: var(--white); border-radius: var(--radius); padding: 32px; border-left: 5px solid var(--gold); }
.quiz-result h2 { margin-top: 0; }

/* Accordion */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--rose); flex: none; }
.accordion details[open] summary::after { content: "−"; }
.accordion .accordion-body { padding: 0 0 20px; max-width: 68ch; }

/* Doc list */
.doc-list { list-style: none; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; text-decoration: none; font-weight: 500; }
.doc-list a:hover { border-color: var(--ink); }
.doc-list a::before { content: "PDF"; font-size: 11px; font-weight: 700; background: var(--sky); padding: 3px 7px; border-radius: 4px; }

/* Page header (content pages) */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head h1 { margin: 0 0 12px; }
.page-head .lead { margin: 0; color: var(--muted); }
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, max-content)); gap: 14px 40px; margin: 6px 0 20px; }
.event-facts dt { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--gold-2); margin: 0 0 2px; }
.event-facts dd { margin: 0; font-size: 18px; color: var(--white); }
.page-head.ink { background: var(--ink); color: var(--paper); border: 0; position: relative; overflow: hidden; }
.page-head.ink h1 { color: var(--white); }
.page-head.ink .lead { color: var(--sky-2); }

/* Contact strip */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-top: 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky); border: 0; width: 100%; }

/* Footer */
.site-footer { background: var(--ink); color: var(--sky-2); position: relative; overflow: hidden; padding: 72px 0 32px; margin-top: 0; }
.footer-rose { position: absolute; right: -80px; top: -60px; width: 420px; opacity: .06; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 56px; position: relative; }
.footer-brand img { border-radius: 50%; background: var(--white); padding: 4px; margin-bottom: 16px; }
.footer-motto { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: 26px; margin: 0 0 12px; }
.footer-brand p { font-size: 15px; }
.footer-brand a { color: var(--white); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-social:hover { text-decoration: underline; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-nav h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--white); margin: 0 0 12px; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; }
.footer-nav a { color: var(--sky-2); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(220,234,247,.6); position: relative; }

/* Responsive */
@media (max-width: 1024px) {
  .course-grid, .checker, .welcome, .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .result-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 0; font-size: 17px; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }
  .page-home .site-header:not(.is-solid) .site-nav .btn-ghost { color: var(--ink); border-color: var(--ink); }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .ticket { width: 100%; }
  .event-banner-inner { grid-template-columns: 1fr; gap: 16px; }
  .event-banner .btn { width: max-content; }
  .strand-grid { grid-template-columns: 1fr; }
  .strand { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .strand:first-child { border-top: 0; }
  .filter-bar { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .rank-list { columns: 1; }
  .footer-nav { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .grade-row { grid-template-columns: 1fr 96px; }
  .bar { grid-template-columns: 1fr 56px; }
  .bar-track { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line span, .hero .lead, .hero .cta-row, .ticket, .hero-rule { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* Internal notes: hidden on the public site, shown with ?notes=1 */
.note-internal, .quote.is-placeholder::after, .student.is-placeholder::after, .media-tag { display: none; }
html[data-notes] .note-internal { display: block; }
html[data-notes] .quote.is-placeholder::after, html[data-notes] .student.is-placeholder::after { display: block; }
html[data-notes] .media-tag { display: inline-block; }
.quote.is-placeholder { border-style: solid; }
html[data-notes] .quote.is-placeholder, html[data-notes] .student.is-placeholder { border-style: dashed; }

/* Super-curricular index */
.sc-group { font-size: 22px; margin: 32px 0 16px; }
.sc-group:first-child { margin-top: 0; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sc-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 168px; transition: transform .18s var(--ease), border-color .18s var(--ease); }
.sc-tile:hover { transform: translateY(-3px); border-color: var(--ink); }
.sc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.sc-icon svg { width: 26px; height: 26px; }
.sc-name { font-family: var(--serif); font-size: 21px; line-height: 1.15; font-weight: 500; }
.sc-tag { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.tint-gold .sc-icon, .tint-gold .hl-icon { background: #F7EBC4; color: #6B4F05; }
.tint-sky .sc-icon, .tint-sky .hl-icon { background: var(--sky); color: var(--ink); }
.tint-green .sc-icon, .tint-green .hl-icon { background: #E4F2E8; color: #1E5A38; }
.tint-amber .sc-icon, .tint-amber .hl-icon { background: #FBE8D2; color: #7A3F0A; }
.tint-purple .sc-icon, .tint-purple .hl-icon { background: #ECE5F7; color: #4A2E7A; }
.tint-rose .sc-icon, .tint-rose .hl-icon { background: #F8E1E5; color: var(--rose-2); }

/* Flipbook */
.flipbook { --page-w: 380px; --page-h: 520px; }
.fb-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.fb-title { font-family: var(--serif); font-size: 22px; }
.fb-count { color: var(--muted); font-size: 14.5px; margin-left: auto; }
.fb-stage { display: flex; align-items: center; justify-content: center; gap: 16px; perspective: 2400px; padding: 12px 0; }
.fb-book { position: relative; width: calc(var(--page-w) * 2); height: var(--page-h); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.flipbook.at-cover .fb-book { transform: translateX(calc(var(--page-w) * -.5)); }
.flipbook.at-end .fb-book { transform: translateX(calc(var(--page-w) * .5)); }
.fb-sheet { position: absolute; left: 50%; top: 0; width: var(--page-w); height: var(--page-h); transform-origin: left center; transform-style: preserve-3d; transition: transform .8s var(--ease); cursor: pointer; }
.fb-sheet.is-flipped { transform: rotateY(-180deg); }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 10px 30px -18px rgba(10,18,64,.35); }
.fb-front { border-radius: 0 10px 10px 0; }
.fb-back { transform: rotateY(180deg); border-radius: 10px 0 0 10px; }
.fb-front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: linear-gradient(to right, rgba(10,18,64,.12), transparent); pointer-events: none; }
.fb-back::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 22px; background: linear-gradient(to left, rgba(10,18,64,.12), transparent); pointer-events: none; }
.face-inner { padding: 34px 32px 30px; height: 100%; display: flex; flex-direction: column; }
.face-inner h3 { font-size: 26px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.face-inner ul { padding-left: 1.1em; margin: 0; }
.face-inner li { margin-bottom: 12px; font-size: 16.5px; line-height: 1.5; }
.folio { margin-top: auto; font-family: var(--serif); color: var(--muted); font-size: 13px; }
.face-cover { height: 100%; padding: 36px 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: var(--ink); color: var(--white); }
.face-cover .sc-icon { width: 56px; height: 56px; margin-bottom: auto; }
.face-cover .sc-icon svg { width: 32px; height: 32px; }
.face-cover h2 { color: var(--white); font-size: 32px; margin: 0; }
.face-cover p { color: var(--sky-2); margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; }
.face-cover small { color: var(--gold-2); font-size: 13px; }
.face-cover.face-back { align-items: center; justify-content: center; text-align: center; }
.face-cover.face-back img { width: 120px; opacity: .25; margin-bottom: 12px; }
.face-cover.face-back p { color: var(--gold-2); font-size: 26px; }
.fb-nav { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); cursor: pointer; display: grid; place-items: center; flex: none; }
.fb-nav svg { width: 22px; height: 22px; }
.fb-nav:disabled { opacity: .3; cursor: default; }
.fb-nav:not(:disabled):hover { background: var(--ink); color: var(--white); }
.fb-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 900px) {
  .flipbook { --page-w: min(46vw, 320px); --page-h: 460px; }
  .face-inner { padding: 22px 18px; }
  .face-inner li { font-size: 13.5px; }
  .face-inner h3 { font-size: 20px; }
  .face-cover h2 { font-size: 24px; }
}
@media (max-width: 560px) {
  .flipbook { --page-w: calc(100vw - 32px - 96px); --page-h: 440px; }
  .fb-book { width: var(--page-w); }
  .flipbook .fb-book, .flipbook.at-cover .fb-book, .flipbook.at-end .fb-book { transform: none; }
  .fb-sheet { left: 0; }
  .fb-sheet.is-flipped { display: none; }
  .fb-nav { width: 40px; height: 40px; }
}

/* Perks */
.perks { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.perks h2, .perks h3 { color: var(--white); }
.perks .section-head p { color: var(--sky-2); }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.perk { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.perk::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.22), transparent 70%); pointer-events: none; }
.perk-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.perk-icon svg { width: 26px; height: 26px; }
.perk h3 { font-size: 23px; margin: 4px 0 0; }
.perk p { margin: 0; color: var(--sky-2); font-size: 15.5px; flex: 1; }
.perk-price { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: 16px; }
.perk-price a { color: var(--gold-2); }

/* Results highlights (By the numbers) */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 40px; }
.hl { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: center; }
.hl-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; align-self: start; }
.hl-icon svg { width: 26px; height: 26px; }
.hl strong { font-family: var(--serif); font-size: clamp(34px, 3vw, 42px); line-height: 1; font-weight: 500; }
.hl-label { color: var(--muted); font-size: 15px; line-height: 1.4; }
.section-ink .hl-label { color: var(--sky-2); }

/* Partner logos */
.partners { background: var(--white); border-top: 1px solid var(--line); padding-block: 40px 44px; }
.partners-kicker { text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 0 0 22px; }
.partner-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 64px; }
.partner-list img { height: 64px; width: auto; }
.partner-list a { display: block; opacity: .9; transition: opacity .18s var(--ease); }
.partner-list a:hover { opacity: 1; }

/* Student voices */
.students { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.student { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.student-head { display: flex; gap: 14px; align-items: center; }
.student-photo, .student-initials { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.student-initials { background: var(--sky); color: var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; }
.student-name { font-weight: 600; margin: 0; }
.student-meta { color: var(--muted); font-size: 14px; margin: 0; }
.student blockquote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; flex: 1; }
.student-dest { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.student.is-placeholder::after { content: "Placeholder profile. Replace with a real student."; font-size: 12.5px; color: var(--rose); font-weight: 600; }

/* Videos */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.map-frame { aspect-ratio: 4 / 3; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 24px; }
.video-card h3 { font-size: 21px; margin: 14px 0 4px; }
.video-card p { color: var(--muted); font-size: 15px; margin: 0; }
.video-soon { display: grid; place-items: center; color: var(--sky-2); font-family: var(--serif); font-style: italic; font-size: 22px; background: var(--ink) url("../img/rose.svg") center / 60% no-repeat; }
.video-soon span { background: rgba(10,18,64,.7); padding: 6px 14px; border-radius: 999px; }

/* Prospectus booklet */
.pros-cover { background: var(--ink); }
.pros-cover img { width: 92px; height: 92px; border-radius: 50%; background: var(--white); padding: 4px; margin-bottom: auto; }
.face-inner p { font-size: 14.5px; line-height: 1.5; margin: 0 0 10px; }
.face-inner p em { color: var(--muted); }
.face-inner ul.cols { columns: 2; column-gap: 22px; padding-left: 1.1em; font-size: 13.5px; }
.face-inner ul.cols li { margin-bottom: 5px; break-inside: avoid; }
.face-inner ul.numbers { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.face-inner ul.numbers li { font-size: 12.5px; color: var(--muted); line-height: 1.3; margin: 0; }
.face-inner ul.numbers strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); font-weight: 500; line-height: 1.1; margin-bottom: 2px; }
@media (max-width: 900px) {
  .face-inner ul.cols { columns: 1; font-size: 12.5px; }
  .face-inner ul.cols li { margin-bottom: 3px; }
  .face-inner p { font-size: 12.5px; }
  .face-inner ul.numbers { gap: 8px 10px; }
  .face-inner ul.numbers strong { font-size: 20px; }
}

/* Header tools: calendar icon and student logins (22 Oct 2026) */
.nav-tools { display: flex; align-items: center; gap: 4px; }
.nav-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; list-style: none; color: inherit; transition: background .18s var(--ease); }
.nav-icon::-webkit-details-marker { display: none; }
.nav-icon svg { width: 22px; height: 22px; }
.nav-icon:hover, .nav-menu[open] > .nav-icon { background: var(--sky); color: var(--ink); }
.page-home .site-header:not(.is-solid) .nav-icon:hover { background: rgba(255,255,255,.18); color: var(--white); }
.nav-menu { position: relative; }
.nav-menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; z-index: 60; }
.nav-menu-head { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 12px 4px; }
.nav-menu-list a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-menu-list a:hover { background: var(--sky); }
.site-nav .nav-menu-list { display: block; min-width: 0; width: 280px; }
.nav-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.site-nav .nav-apps a { display: flex; border: 0; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; font-size: 13px; font-weight: 500; text-align: center; line-height: 1.25; }
.app-mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }
.app-mark svg { width: 30px; height: 30px; }

/* Strand icons */
.strand-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; border: 1px solid rgba(201,162,39,.5); color: var(--gold-2); }
.strand-icon svg { width: 30px; height: 30px; }

/* Perks: vendor marks */
.perk-icon.perk-brand { background: var(--white); }
.perk-icon.perk-brand svg { width: 28px; height: 28px; }

/* Results: the two national rankings share a row above the percentages */
.highlights-rank { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.highlights-rank .hl strong { color: var(--rose); }
.rank-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.rank-sub a { color: var(--ink); }

/* Open evening route and forms */
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .01em; margin: 0 0 10px; color: var(--gold-2); }
.route { padding-left: 0; list-style: none; counter-reset: step; margin: 20px 0; }
.route li { counter-increment: step; position: relative; padding: 0 0 18px 52px; font-size: 16px; }
.route li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--serif); font-size: 19px; display: grid; place-items: center; }
.route li::after { content: ""; position: absolute; left: 17px; top: 34px; bottom: -2px; width: 2px; background: var(--line); }
.route li:last-child::after { display: none; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; background: var(--white); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--ink); }
.section-sky .form-card { border-color: transparent; }
@media (max-width: 900px) {
  .nav-tools { order: -1; width: 100%; justify-content: flex-start; }
  .nav-menu-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 8px; width: auto; max-width: 320px; }
}

/* Virtual tour */
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.tour-stage { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.tour-stage .pnlm-container { background: var(--ink); font-family: var(--sans); }
.tour-route { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tour-route[hidden] { display: none; }
.tour-route span { font-weight: 600; color: var(--muted); font-size: 14.5px; }
.tour-caption { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.tour-caption strong { color: var(--ink); }
.tour-side { position: sticky; top: 92px; }
.tour-side h2 { font-size: 24px; margin-bottom: 8px; }
.tour-group { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 6px; }
.tour-scenes { list-style: none; }
.tour-scenes button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 7px 10px; font: inherit; font-size: 15px; cursor: pointer; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tour-scenes button:hover { background: var(--white); }
.tour-scenes button.is-current { border-left-color: var(--gold); background: var(--white); font-weight: 600; }
@media (max-width: 900px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-side { position: static; }
  .tour-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
  .tour-scenes button { width: auto; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
  .tour-scenes button.is-current { border-color: var(--ink); background: var(--ink); color: var(--white); }
}

.tour-teaser { display: grid; place-items: center; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); text-decoration: none; }
.tour-teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .85; transition: transform .6s var(--ease); }
.tour-teaser:hover img { transform: scale(1.04); }
.tour-teaser .btn { position: relative; z-index: 1; }

/* Tour: small pulsing floor markers inside the panorama */
.pnlm-hotspot-base.tour-hs { width: 0; height: 0; background: none; cursor: pointer; overflow: visible; }
.tour-spot-dot { position: absolute; left: 0; top: 0; width: 34px; height: 16px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid var(--gold); box-shadow: 0 2px 8px rgba(10,18,64,.4); transition: transform .18s var(--ease), background .18s; }
.tour-spot-ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); animation: tour-ping 1.8s ease-out infinite; pointer-events: none; }
.tour-spot:hover .tour-spot-dot { transform: translate(-50%, -50%) scale(1.2); background: var(--gold); }
.tour-spot-back .tour-spot-dot { width: 24px; height: 11px; opacity: .65; }
.tour-spot-back .tour-spot-ring { display: none; }
@keyframes tour-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tour-spot-ring { animation: none; } }
.tour-stop { display: inline-block; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-right: 8px; }
ol.tour-scenes { list-style: none; counter-reset: stop; }
ol.tour-scenes li { counter-increment: stop; }
ol.tour-scenes button::before { content: counter(stop) ". "; color: var(--muted); }

/* Photo headers (24 Oct 2026): campus photos cut from the 360 shoot, ink wash on the reading side */
.page-head.has-photo, .course-hero.has-photo { position: relative; background-color: var(--ink); background-position: center; background-size: cover; background-repeat: no-repeat; color: var(--paper); border: 0; min-height: clamp(320px, 42vh, 440px); display: flex; align-items: flex-end; padding: 96px 0 52px; overflow: hidden; }
.page-head.has-photo::before, .course-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,64,.94) 0%, rgba(10,18,64,.82) 38%, rgba(10,18,64,.35) 72%, rgba(10,18,64,.15) 100%), linear-gradient(0deg, rgba(10,18,64,.55), rgba(10,18,64,0) 45%); }
.page-head.has-photo > .container, .course-hero.has-photo > .container { position: relative; z-index: 1; width: 100%; }
.page-head.has-photo .rose-watermark { display: none; }
.page-head.has-photo h1, .course-hero.has-photo h1 { color: var(--white); text-wrap: balance; max-width: 22ch; }
.page-head.has-photo .lead, .course-hero.has-photo .lead { color: var(--sky); max-width: 58ch; }
.course-hero.has-photo .breadcrumb, .course-hero.has-photo .breadcrumb a, .course-hero.has-photo .course-board { color: var(--sky-2); }
.course-hero.has-photo .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.course-hero.has-photo .btn-ghost:hover { background: var(--white); color: var(--ink); }
.course-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.course-icon-badge { width: 132px; height: 132px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: var(--shadow); }
.course-icon-badge .course-icon { width: 84px; height: 84px; }
.course-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.course-card-icon { width: 40px; height: 40px; flex: none; }
@media (max-width: 760px) {
  .page-head.has-photo, .course-hero.has-photo { min-height: 300px; padding: 80px 0 36px; }
  .page-head.has-photo::before, .course-hero.has-photo::before { background: linear-gradient(0deg, rgba(10,18,64,.95) 0%, rgba(10,18,64,.82) 55%, rgba(10,18,64,.5) 100%); }
  .course-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .course-icon-badge { order: -1; width: 84px; height: 84px; }
  .course-icon-badge .course-icon { width: 52px; height: 52px; }
}

/* Home: common room photos fading in turn (26 Oct 2026) */
.fade-slides img { position: absolute; inset: 0; opacity: 0; animation: slide-fade 18s infinite; }
.fade-slides img:nth-child(1) { animation-delay: -1.1s; }
.fade-slides img:nth-child(2) { animation-delay: 6s; }
.fade-slides img:nth-child(3) { animation-delay: 12s; }
@keyframes slide-fade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fade-slides img { animation: none; } .fade-slides img:not(:first-child) { display: none; } }

/* Prospectus flipbook (26 Oct 2026). Pages are images from tools/prospectus; StPageFlip turns them. */
.fb-section { background: radial-gradient(ellipse at 50% 40%, #EEF2F8 0%, #DCE3EE 70%); }
.fb { outline: none; }
.fb:fullscreen { background: #1B2142; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.fb:fullscreen .fb-jump, .fb:fullscreen .fb-hint { display: none; }
.fb:fullscreen .fb-stage { max-width: calc((100vh - 110px) * 1.414); }
.fb:fullscreen .fb-status, .fb:fullscreen .fb-tool { color: var(--white); }
.fb-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.fb-jump a { font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.fb-jump a:hover { border-color: var(--ink); }
.fb-stage { max-width: min(1120px, calc((100vh - 230px) * 1.414)); min-height: 300px; margin: 0 auto; transition: transform .6s var(--ease); }
.fb.at-cover .fb-stage { transform: translateX(-25%); }
.fb.at-back .fb-stage { transform: translateX(25%); }
.fb-pages { margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(10,18,64,.28)); }
.fb-page { background: #fff; overflow: hidden; }
.fb-page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; pointer-events: none; }
.fb-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto 0; max-width: 1120px; flex-wrap: wrap; }
.fb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.fb-btn svg { width: 20px; height: 20px; }
.fb-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.fb-btn:disabled { opacity: .3; cursor: default; }
.fb-status { margin: 0; min-width: 190px; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink); }
.fb-gap { width: 24px; }
.fb-tool { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; padding: 8px 6px; }
.fb-tool svg { width: 18px; height: 18px; }
.fb-tool:hover span { text-decoration: underline; }
.fb-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 900px) {
  .fb.at-cover .fb-stage, .fb.at-back .fb-stage { transform: none; }
  .fb-gap { display: none; }
  .fb-bar { gap: 10px; }
  .fb-jump { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px 4px; }
  .fb-jump a { white-space: nowrap; }
}

/* Launch QA pass, 30 Oct 2026 */
.form-error { background: #FFF4F2; border: 1px solid #E7B8B0; border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; font-size: 15px; }
.form-error p { margin: 0 0 6px; }
.form-error p:last-child { margin: 0; }
p.form-error { display: none; }
p.form-error:target { display: block; }
.req { color: var(--muted); font-weight: 400; font-size: 13.5px; white-space: nowrap; }
.hint a { color: inherit; }
.apply-status { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; font-size: 15.5px; max-width: 60ch; }
.apply-status a { color: var(--white); }
[id] { scroll-margin-top: 92px; }
.type-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 24px; margin: 20px 0 0; font-size: 14.5px; }
.type-key div { display: flex; gap: 8px; }
.type-key dt { font-weight: 600; white-space: nowrap; }
.type-key dd { margin: 0; color: var(--muted); }
/* over a photo: light text, kept to the dark left-hand side of the picture */
.page-head.has-photo .type-key { max-width: 800px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); font-size: 15.5px; }
.page-head.has-photo .type-key dt { color: var(--white); }
.page-head.has-photo .type-key dd { color: var(--sky); }
.chip-clear { border-style: dashed; }
.course-status a > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.course-why { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.course-status .pill, .course-type, .tag-provisional { font-size: 13px; }
.programme-list .reason { font-size: 13.5px; }
.aps span small { display: block; font-size: 12.5px; }
.checker-see { display: none; }
.checker-summary { display: none; }
@media (max-width: 1024px) {
  .checker-see { display: inline-flex; }
  .checker-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: 0; z-index: 30; background: var(--ink); color: var(--white); padding: 12px var(--gutter); margin: 0 calc(-1 * var(--gutter)); font-size: 15px; }
  .checker-summary[hidden] { display: none; }
  .checker-summary a { color: var(--gold-2); font-weight: 600; white-space: nowrap; }
}
.timeline-actions a { display: inline-block; padding: 8px 0; }
.footer-nav a { display: inline-block; padding: 4px 0; }
.quiz-prev { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.glossary dt { font-weight: 600; margin-top: 18px; }
.glossary dd { margin: 4px 0 0; color: var(--muted); }
.fb-plain img { width: 100%; height: auto; display: block; margin: 0 auto 12px; box-shadow: var(--shadow); }
.fb-reader { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--white); display: flex; flex-direction: column; }
.fb-reader[hidden] { display: none; }
.fb-reader-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-weight: 500; }
.fb-reader-bar .fb-btn { border-color: var(--white); background: transparent; color: var(--white); }
.fb-reader-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.fb-reader-scroll img { display: block; width: 200vw; max-width: 1270px; height: auto; margin: 0 auto; }
@media (max-width: 860px) {
  .site-nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  [data-fb-full] { display: none; }
  .fb-jump { flex-wrap: wrap; overflow: visible; margin: 0 0 20px; padding: 0; }
  .fb:fullscreen .fb-stage { max-width: min(100vw - 24px, calc((100vh - 110px) * .707)); }
  .tour-stage { aspect-ratio: 4 / 3; }
  .tour-stage .pnlm-controls .pnlm-control { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .grade-row { grid-template-columns: 1fr 112px; }
  .hero h1 .line, .hero h1 .line span { display: inline; }
  .hero h1 .line span { animation: none; transform: none; }
}
