/* R.G. Menzies Scholarship to Harvard */
:root {
  --crimson: #a51c30;
  --crimson-dark: #861527;
  --header: #7c1c2a;
  --hero: #1e1e1e;
  --ink: #161616;
  --muted: #555b61;
  --rule: #d9d7d2;
  --mist: #f3f3f1;
  --slate: #8996a0;
  --charcoal: #5e5e5e;
  --footer-text: #d9d9d6;
  --deep: #1d1f21;
  --serif: 'EB Garamond', 'EB Garamond fallback', Garamond, 'Times New Roman', serif;
  --sans: 'Nunito Sans', 'Nunito Sans fallback', 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
  --wrap: 1085px;
  --narrow: 680px;
  --gutter: 24px;
}

/* Self-hosted fonts: README "Fonts". */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/eb-garamond-97ad513c29.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2264-2265; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/eb-garamond-97ad513c29.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2264-2265; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/nunito-sans-3e2f7c3c89.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2264-2265; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/nunito-sans-3e2f7c3c89.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2264-2265; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/nunito-sans-3e2f7c3c89.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2264-2265; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-sans-3e2f7c3c89.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2264-2265; }
/* Size-matched fallbacks until the fonts load (no layout shift): README "Fonts". */
@font-face { font-family: 'Nunito Sans fallback'; font-weight: 100 600; src: local('AvenirNext-Regular'), local('Avenir Next'), local('ArialMT'), local('Arial'); size-adjust: 99%; }
@font-face { font-family: 'Nunito Sans fallback'; font-weight: 601 1000; src: local('AvenirNext-Bold'), local('Avenir Next Bold'), local('Arial-BoldMT'), local('Arial Bold'); size-adjust: 96.5%; }
@font-face { font-family: 'EB Garamond fallback'; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times'), local('Times-Roman'); size-adjust: 94%; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
abbr[title] { text-decoration: underline dotted color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: 0.18em; }
.prose a, .hr-note a, .form-note a, .footer-orgs a { color: var(--crimson); }
.prose a:hover, .hr-note a:hover { color: var(--crimson-dark); }
img, video { max-width: 100%; }
strong { font-weight: 700; }
h1, h2, h3, legend { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: 16px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 8px; left: 8px; z-index: 50;
  background: #fff; color: var(--ink); padding: 8px 12px;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
@media (min-width: 961px) {
  .wrap.narrow:not(:has(> h2 ~ h2)) {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 5vw, 72px); align-items: start;
  }
  .wrap.narrow:not(:has(> h2 ~ h2)) > * { grid-column: 2; }
  .wrap.narrow:not(:has(> h2 ~ h2)) > h2:first-child {
    grid-column: 1; grid-row: 1 / span 12; margin: 0;
    position: sticky; top: 28px;
  }
}

/* ---------- Header ---------- */
.site-header { background: var(--header); color: #fff; }
.header-util {
  display: flex; justify-content: flex-end; align-items: center; gap: 16px;
  min-height: 34px; padding-top: 2px;
  font-size: 14px;
}
.header-util a { text-decoration: none; opacity: 0.9; }
/* At least 32px tall so the sign-in / sign-out links are easy to tap (WCAG 2.5.8 asks for 24). */
.header-util a, .header-util .link-button { display: inline-flex; align-items: center; min-height: 32px; }
.header-util a:hover, .header-util a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.header-util form { margin: 0; }
.header-inner {
  min-height: 94px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 38px; line-height: 1.15; font-weight: 400;
  text-decoration: none; letter-spacing: -0.005em;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 16px; text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.75); }
.site-nav .nav-cta a {
  display: inline-block; padding: 8px 18px; margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] { background: #fff; color: var(--header); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 620px at 88% 12%, rgba(165, 28, 48, 0.16), transparent 62%),
    var(--hero);
  min-height: 620px;
  padding: 104px 0 112px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.08; pointer-events: none;
}
.hero.has-video { background: var(--hero); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start; column-gap: 72px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: 48px; line-height: 1.3;
}
.hero h1 span { display: block; }
.hero h1::after { content: ''; display: block; width: 56px; height: 2px; margin-top: 26px; background: #c4283f; }
.hero-copy { max-width: 600px; }
.hero-copy p { margin: 0 0 1.2em; font-size: 18px; line-height: 1.6; font-weight: 300; }
.hero-copy a:not(.btn) { color: #fff; }
.hero-copy .btn-row { margin-top: 1.6em; }
.hero-short { min-height: 0; padding: 72px 0 80px; }

/* Pause/play for the background video (WCAG 2.2.2). Bottom-right, inside the hero's bottom padding so it never
   covers text; 44px target; white on a dark disc (well above 3:1 against the hero). Hidden until site.js runs. */
.hero-pause {
  position: absolute; right: 12px; bottom: 4px; z-index: 2;
  width: 44px; height: 44px; padding: 0; margin: 0;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 50%; cursor: pointer;
}
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: rgba(0, 0, 0, 0.85); }
.hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-pause-icon { position: relative; display: block; width: 14px; height: 16px; }
.hero-pause-icon::before, .hero-pause-icon::after {
  content: ''; position: absolute; top: 0; width: 4px; height: 16px; background: currentColor;
}
.hero-pause-icon::before { left: 1px; }
.hero-pause-icon::after { right: 1px; }
.hero-pause.is-paused .hero-pause-icon::before {
  left: 2px; width: 0; height: 0; background: none;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor;
}
.hero-pause.is-paused .hero-pause-icon::after { display: none; }
/* Without JavaScript, browsers that ignore <source media> would still loop the video for reduced-motion visitors:
   hide it there unless the visitor has pressed Play (site.js adds .motion-allowed). */
@media (prefers-reduced-motion: reduce) {
  .hero:not(.motion-allowed) .hero-video { display: none; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); }
.btn-secondary { background: transparent; border-color: var(--crimson); color: var(--crimson); }
.btn-secondary:hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn.on-dark.btn-primary { background: #fff; border-color: #fff; color: var(--hero); }
.btn.on-dark.btn-primary:hover { background: transparent; color: #fff; }
.btn.on-dark.btn-secondary { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn.on-dark.btn-secondary:hover { background: #fff; color: var(--hero); }

/* ---------- Content bands ---------- */
.band { padding: 64px 0 72px; }
.bg-white { background: #fff; }
.bg-mist { background: var(--mist); }
.bg-white + .bg-white { padding-top: 8px; }

.band h2 {
  margin: 0 0 20px;
  font-family: var(--serif); font-weight: 400;
  font-size: 38px; line-height: 1.15; color: var(--crimson);
}
.band h2.ink { color: var(--ink); }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 72px; row-gap: 48px;
}

.narrow .prose { max-width: 37em; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose h3.sub {
  margin: 1.6em 0 0.25em; font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1.4;
}
.prose h3.sub.crimson { color: var(--crimson); }
.prose h3.sub + p { margin-top: 0; }
.bullets { margin: 0 0 1.15em; padding-left: 1.3em; }
.bullets li { margin: 0 0 0.45em; }
.bullets li::marker { color: var(--crimson); }

.box { padding: 36px 40px; border-left: 3px solid var(--crimson); }
.box > p:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.box-slate { background: #26313b; color: #eef1f4; }
.box-slate a { color: #fff; }
.box-charcoal { background: var(--deep); color: #f1f1ef; }
.box-charcoal a { color: #fff; }

/* ---------- Stats ---------- */
.stats {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stat { padding: 26px 20px 24px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.stat dd { order: -1; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font-family: var(--serif); font-size: 42px; line-height: 1.05; color: var(--crimson); }
.stat dt { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 24px;
  padding: 16px 0; border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.tl-year { font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--crimson); }
.timeline p { margin: 0; }

/* ---------- Facts (Apply) ---------- */
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact { background: #fff; padding: 22px 24px 24px; border: 1px solid var(--rule); border-top: 3px solid var(--crimson); }
.fact dt { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 6px 0 0; }
.fact-value { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.fact-note { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Steps (Apply) ---------- */
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 60px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--crimson); color: #fff; font-weight: 700; font-size: 17px;
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 19.5px; top: 46px; bottom: 6px; width: 1px; background: var(--rule);
}
.steps h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; }

/* ---------- Honour roll ---------- */
.honour-band h2, .honour-band .hr-intro { max-width: var(--narrow); }
.hr-intro { margin: 0 0 18px; color: var(--muted); }
.hr-search { max-width: 420px; }
.hr-search[hidden], .hr-empty[hidden] { display: none; }
.hr-search input { -webkit-appearance: none; appearance: none; }
.hr-empty { margin: 0 0 26px; padding: 16px 18px; background: #fff; border-left: 3px solid var(--crimson); }
.hr-empty .link-button { color: var(--crimson); font-weight: 700; min-height: 32px; }
.hr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.hr-filters[hidden] { display: none; }
.chip {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink);
}
.chip span { font-weight: 400; color: var(--muted); margin-left: 2px; }
.chip:hover { border-color: var(--crimson); }
.chip[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.8); }
.hr-decade { margin: 0 0 26px; }
.hr-decade[hidden] { display: none; }
.hr-decade h3 {
  margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--crimson);
  font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--crimson);
}
.hr-decade ul { list-style: none; margin: 0; padding: 0; }
.hr-decade li {
  display: grid; grid-template-columns: 56px minmax(0, 15em) minmax(0, 1fr); column-gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--rule); line-height: 1.45;
}
.hr-decade li[hidden] { display: none; }
.hr-year { color: var(--muted); font-variant-numeric: tabular-nums; }
.hr-name { font-weight: 700; }
.hr-degree { color: var(--muted); }
.hr-none .hr-name { font-weight: 400; font-style: italic; color: var(--muted); }
.hr-flag { color: var(--crimson); font-weight: 700; margin-left: 2px; }
.hr-note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }

/* Honour Roll views (?school=) and "The roll at a glance" (src/pages/honour-glance.tsx) */
.hr-filtered { margin: 0 0 22px; padding: 12px 16px; background: #fff; border-left: 3px solid var(--crimson); }
.hr-filtered[hidden] { display: none; }
.hr-filtered a { color: var(--crimson); font-weight: 700; display: inline-block; padding: 4px 0; }
.hr-filters, .hr-search { scroll-margin-top: 16px; }
.hr-glance { max-width: 900px; margin: 0 0 30px; padding: 20px 22px 18px; background: #fff; border: 1px solid var(--rule); }
.hr-glance-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.hr-glance-text { margin: 0 0 4px; }
.hr-glance-more { margin-top: 10px; }
.hr-glance-more summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; color: var(--crimson); list-style: none;
}
.hr-glance-more summary::-webkit-details-marker { display: none; }
.hr-glance-more summary::before {
  content: ''; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.hr-glance-more[open] summary::before { margin-top: 3px; transform: rotate(-135deg); }
.hr-glance-more .hr-note { margin-top: 10px; }
.glance-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 6px; align-items: start; }
@media (min-width: 760px) { .glance-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; } }
.glance-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.glance-table caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
.glance-table th, .glance-table td { text-align: left; vertical-align: middle; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); }
.glance-table thead th { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.glance-table tbody th { font-weight: 400; }
.glance-table tbody th a { color: var(--crimson); display: inline-block; padding: 3px 0; }
.glance-table .glance-num { width: 42%; padding-right: 0; }
.glance-cell { display: flex; align-items: center; gap: 10px; }
.glance-n { flex: none; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.glance-bar { flex: 1 1 auto; height: 8px; position: relative; }
.glance-bar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w, 0) * 1%); background: var(--crimson); border-radius: 0 2px 2px 0; }
.gw-0 { --w: 0; }
.gw-1 { --w: 5; }
.gw-2 { --w: 10; }
.gw-3 { --w: 15; }
.gw-4 { --w: 20; }
.gw-5 { --w: 25; }
.gw-6 { --w: 30; }
.gw-7 { --w: 35; }
.gw-8 { --w: 40; }
.gw-9 { --w: 45; }
.gw-10 { --w: 50; }
.gw-11 { --w: 55; }
.gw-12 { --w: 60; }
.gw-13 { --w: 65; }
.gw-14 { --w: 70; }
.gw-15 { --w: 75; }
.gw-16 { --w: 80; }
.gw-17 { --w: 85; }
.gw-18 { --w: 90; }
.gw-19 { --w: 95; }
.gw-20 { --w: 100; }
@media (forced-colors: active) { .glance-bar::before { background: CanvasText; forced-color-adjust: none; } }
@media print { .hr-glance-more > :not(summary) { display: block; } }

/* ---------- Contact form ---------- */
.enquiry { max-width: 640px; }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 12px; border: 1px solid #a9adb1; border-radius: 2px; background: #fff;
}
/* Safari draws native selects at its own small height; draw ours like the text inputs, with a chevron. */
.field select {
  -webkit-appearance: none; appearance: none; min-height: 48px; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 14px 9px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--crimson); outline: 2px solid rgba(165, 28, 48, 0.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--crimson); }
.field-error { display: block; margin-top: 6px; color: var(--crimson); font-size: 14.5px; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14.5px; color: var(--muted); }
.notice { max-width: 640px; padding: 18px 22px; margin: 0 0 24px; border-left: 4px solid; }
.notice h3 { margin: 0 0 6px; font-size: 18px; }
.notice p { margin: 0; }
.notice-ok { background: #eef5ef; border-color: #2f6b3a; }
.notice-ok a { color: #2f6b3a; }
.notice-error { background: #fbeef0; border-color: var(--crimson); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--footer-text); padding: 52px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 18px; }
.footer-brand { font-family: var(--serif); font-size: 24px; text-decoration: none; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 15px; text-decoration-color: rgba(255, 255, 255, 0.35); transition: text-decoration-color 0.2s; }
.footer-links a:hover { text-decoration-color: #fff; }
.footer-orgs { margin: 0 0 14px; font-size: 15px; }
.footer-orgs a { color: #fff; }
.footer-legal { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; line-height: 1.6; color: #a9a9a5; max-width: 980px; }

/* ---------- Admin ---------- */
.admin main { padding: 40px var(--gutter); }
.admin h1 { font-family: var(--serif); font-weight: 400; color: var(--crimson); }
.admin h1 span { color: var(--muted); font-size: 0.6em; }
.table-scroll { overflow-x: auto; }
.admin table { border-collapse: collapse; width: 100%; font-size: 15px; }
.admin th, .admin td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.admin td.msg { white-space: pre-wrap; max-width: 520px; }
.admin button { font: inherit; font-size: 14px; cursor: pointer; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .brand { font-size: 30px; }
  .site-nav ul { gap: 18px; }
  .hero h1 { font-size: 42px; }
  .hero-grid, .split { column-gap: 48px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .header-inner { min-height: 76px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 0 12px; }
  .brand { font-size: 26px; flex: 1 1 0; min-width: 0; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; color: #fff; cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; position: relative;
    transition: transform 0.2s;
  }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 10px; }
  .site-nav li { border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .site-nav a { display: block; padding: 13px 0; font-size: 17px; border-bottom: 0; }
  .site-nav .nav-cta { border-top: 0; padding-top: 10px; }
  .site-nav .nav-cta a { margin-left: 0; text-align: center; padding: 12px 18px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand { font-size: 22px; }
  .hero { min-height: 0; padding: 52px 0 60px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .hero h1 { font-size: 36px; line-height: 1.2; }
  .hero-copy p { font-size: 17px; }
  .hero-short { padding: 44px 0 52px; }
  .band { padding: 44px 0 52px; }
  .band h2 { font-size: 31px; }
  .split { row-gap: 44px; }
  .box { padding: 24px 22px 26px; }
  .box > p:first-child { font-size: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 14px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .stat dd { font-size: 32px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
  .tl-year { font-size: 24px; }
  .hr-decade li { grid-template-columns: 48px minmax(0, 1fr); row-gap: 2px; }
  .hr-degree { grid-column: 2; font-size: 15px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Shared bits for the scholar network ---------- */
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.flash { background: #eef5ef; color: #1f4a28; font-size: 15px; padding: 10px 0; border-bottom: 1px solid #cfe2d2; }
.notice-info { background: #eef2f6; border-color: var(--slate); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.band h2.h3 { font-family: var(--sans); font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.spaced { margin-top: 40px !important; }
.back { margin-top: 32px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.field-hint { display: block; margin: -2px 0 6px; font-size: 14px; color: var(--muted); }
.field .label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--crimson); flex: none; }
.check label { font-weight: 700; font-size: 15px; }
.check .field-hint { font-weight: 400; margin: 2px 0 0; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14.5px; cursor: pointer; background: #fff; }
.chip-check input { accent-color: var(--crimson); }
.field .chip-check { display: inline-flex; margin: 0; font-weight: 400; font-size: 14.5px; }
.field .chip-check input { width: 16px; height: 16px; padding: 0; margin: 0; border: 0; flex: none; }
.chip-check:has(input:checked) { border-color: var(--crimson); background: #fbeef0; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--serif); font-size: 26px; color: var(--crimson); padding: 0; margin-bottom: 12px; }
.form-card { background: #fff; border: 1px solid var(--rule); padding: 28px 28px 30px; max-width: 560px; }
.form-card.wide { max-width: none; }
.form-card.danger { border-color: #e6b8bf; }
.form-links { margin: 16px 0 0; font-size: 15px; }
.form-links a, .form-card a, .aside-card a:not(.btn), .notice a, .dash-card a:not(.btn), .profile a, .back a, .small a, .post-list a, .news-cards a, .faq a, .people a, .admin-main a:not(.btn) { color: var(--crimson); }
.aside-card { margin-top: 28px; max-width: 560px; padding: 24px 28px; background: var(--mist); }
.aside-card p { margin: 0 0 16px; }
.stack { display: grid; gap: 24px; }
.btn-danger { background: #8a1324; border-color: #8a1324; color: #fff; }
.btn-danger:hover { background: #6d0f1c; }
.hero-short h1 span:only-child { white-space: normal; }

/* Members navigation */
.members-nav { background: var(--mist); border-bottom: 1px solid var(--rule); }
.members-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.members-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.members-nav a { display: inline-block; padding: 14px 0 12px; text-decoration: none; font-weight: 700; font-size: 15px; border-bottom: 2px solid transparent; }
.members-nav a[aria-current="page"], .members-nav a:hover { border-bottom-color: var(--crimson); color: var(--crimson); }
.members-nav form { margin: 0; font-size: 15px; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dash-card { border: 1px solid var(--rule); padding: 26px 28px 28px; }
.dash-card p { margin: 0 0 14px; }
.meter { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; margin: 4px 0 14px; }
.meter span { display: block; height: 100%; background: var(--crimson); }
.meter-0 span { width: 0; } .meter-20 span { width: 20%; } .meter-40 span { width: 40%; } .meter-60 span { width: 60%; } .meter-80 span { width: 80%; } .meter-100 span { width: 100%; }
.status-list { list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; }
.status-list li { padding: 4px 0; }
.mini-list { list-style: none; padding: 0; margin: 0 0 20px; }
.mini-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.4; }

/* Avatars (initials) */
.avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--header); color: #fff; font-family: var(--serif); letter-spacing: 0.02em; }
.avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.avatar-md { width: 56px; height: 56px; font-size: 22px; }
.avatar-lg { width: 96px; height: 96px; font-size: 38px; }

/* Directory */
.filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 0 16px; align-items: end; padding: 20px 22px 6px; background: var(--mist); margin-bottom: 20px; }
.filters .field { margin-bottom: 14px; }
.filters .check { grid-column: span 2; margin-bottom: 14px; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.filter-actions a { color: var(--crimson); }
.result-count { color: var(--muted); margin: 0 0 16px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.person-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--rule); background: #fff; }
.person-card h3 { margin: 0 0 2px; font-size: 18px; }
.person-card h3 a { text-decoration: none; color: var(--ink); }
.person-card h3 a:hover { color: var(--crimson); text-decoration: underline; }
.person-card p { margin: 0 0 4px; font-size: 15px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mist); font-size: 13px; color: var(--ink); }
.tag-strong { background: #fbeef0; color: var(--crimson-dark); font-weight: 700; }

/* Profile */
.profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; }
.profile-head h2 { margin: 0 0 4px; }
.profile-head .lead { margin: 0; font-size: 18px; }
.profile-head p { margin: 2px 0 0; }
.profile-facts { margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.profile-facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.profile-facts dd { margin: 2px 0 0; }
.profile-links { font-weight: 700; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--crimson); }
.faq details[open] summary::after { content: '−'; }
.faq .prose { padding: 0 0 18px; }

/* Scholar network band */
.band-network { background: var(--header); color: #fff; padding: 64px 0; }
.network-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; row-gap: 20px; }
.band-network h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; color: #fff; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #f0c9cf; }
.band-network .prose p { font-size: 17.5px; }
.band-network .btn-row { margin-top: 22px; }

/* News */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more-link { color: var(--crimson); font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.news-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-cards li { border-top: 3px solid var(--crimson); padding-top: 14px; }
.news-cards h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.news-cards h3 a { color: var(--ink); text-decoration: none; }
.news-cards h3 a:hover { color: var(--crimson); text-decoration: underline; }
.news-cards p { margin: 0 0 8px; font-size: 15.5px; }
.post-meta { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; letter-spacing: 0.02em; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.post-list li:first-child { padding-top: 0; }
.post-list :is(h2, h3) { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.post-list :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.post-list :is(h2, h3) a:hover { color: var(--crimson); text-decoration: underline; }
.post-list p { margin: 0; }

/* Admin console */
.admin-bar { background: var(--header); color: #fff; }
.admin-bar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; min-height: 60px; }
.admin-brand { font-family: var(--serif); font-size: 20px; color: #fff; text-decoration: none; }
.admin-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.admin-bar a { color: #fff; text-decoration: none; font-size: 15px; }
.admin-bar a[aria-current="page"] { text-decoration: underline; }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-main h1 { font-family: var(--serif); font-weight: 400; color: var(--crimson); font-size: 36px; margin: 0 0 20px; }
.admin-stats { margin-bottom: 28px; }
.admin-links li { margin-bottom: 8px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-filter input, .admin-filter select, .inline-form input { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid #a9adb1; }
.admin td.actions { white-space: nowrap; }
.admin td.actions form { display: inline-block; margin: 2px 6px 2px 0; }
.inline-form { display: flex !important; gap: 6px; }
.inline-form input { width: 220px; }
.admin button:not(.btn) { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--charcoal); background: #fff; cursor: pointer; border-radius: 2px; }
.admin button:not(.btn):hover { background: var(--ink); color: #fff; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.pill-ok { background: #e3f0e6; color: #22572d; }
.pill-info { background: #e8eef5; color: #2b4a6b; }
.pill-warn { background: #fbeef0; color: var(--crimson-dark); }
.verify-form { display: grid; gap: 6px; max-width: 360px; white-space: normal; }
.verify-form input[type=email] { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #a9adb1; }
.check-inline { display: flex; gap: 6px; align-items: flex-start; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #a9adb1; }
.message-preview { white-space: pre-wrap; background: var(--mist); padding: 16px; font-family: inherit; font-size: 15px; }
.preview { border: 1px dashed var(--rule); padding: 20px; }

@media (max-width: 960px) {
  .header-util { min-height: 30px; padding-top: 4px; font-size: 13.5px; }
}
@media (max-width: 760px) {
  .dash-grid, .people, .news-cards, .network-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .filters .check { grid-column: auto; }
  .form-card { padding: 20px 18px 22px; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .band-network h2 { font-size: 32px; }
  .members-nav ul { gap: 0 18px; }
  .inline-form { flex-wrap: wrap; }
}

@media print {
  .site-header, .hero-video, .hero-pause, .menu-toggle, .hr-filters, .btn-row, .enquiry { display: none !important; }
  .hero { min-height: 0; padding: 24px 0; color: #000; background: none; }
}

/* Harvard schools and degrees (/apply/harvard-schools) */
.fact-note a { color: var(--crimson); }
.schools-intro { max-width: var(--narrow); margin: 0 0 22px; color: var(--muted); }
.schools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.school { background: #fff; border-top: 3px solid var(--crimson); padding: 20px 24px 22px; min-width: 0; }
.school h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.school-count { margin: 0 0 12px; font-weight: 700; }
.school-facts { margin: 0 0 12px; font-size: 15.5px; }
.school-facts div { margin: 0 0 4px; }
.school-facts dt { display: inline; font-weight: 700; color: var(--muted); }
.school-facts dt::after { content: ': '; }
.school-facts dd { display: inline; margin: 0; }
.school p { margin: 0 0 12px; overflow-wrap: anywhere; }
.school-links { list-style: none; margin: 0; padding: 0; }
.school-links li { margin: 0; }
.school-links a { display: inline-block; padding: 10px 0; color: var(--crimson); }
.school-links a:hover { color: var(--crimson-dark); }
@media (max-width: 760px) {
  .schools { grid-template-columns: minmax(0, 1fr); }
  .school { padding: 18px 18px 20px; }
}

/* ---------- Application checklist (/apply/checklist) ---------- */
/* Drawn boxes beside each item, for print and without JavaScript; site.js adds real checkboxes (see "Checklist ticks"). */
.box-checklist { padding: 0; border-left: 0; }
.box-checklist > p:first-child { font-family: inherit; font-size: inherit; line-height: inherit; }
.box-checklist .bullets { list-style: none; padding-left: 0; margin-top: 18px; }
.box-checklist .bullets li { position: relative; padding: 14px 0 14px 38px; margin: 0; border-top: 1px solid var(--rule); }
.box-checklist .bullets li:last-child { border-bottom: 1px solid var(--rule); }
.box-checklist .bullets li::before {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 20px; height: 20px; border: 2px solid var(--crimson); border-radius: 3px; background: #fff;
}

@media print {
  .skip, .site-footer, .hero-video, .hero .btn-row, .band .btn-row { display: none !important; }
  .hero, .hero.has-video { min-height: 0; padding: 0 0 12px; background: none; color: #000; }
  .hero h1 { font-size: 30px; color: #000; }
  .hero-copy p { font-size: 14px; }
  .hero a:not(.btn) { color: #000; }
  .band { padding: 14px 0; background: none; }
  .band h2 { font-size: 24px; margin-bottom: 8px; break-after: avoid; }
  .fact { background: none; border: 1px solid var(--rule); padding: 10px 12px; break-inside: avoid; }
  .box-checklist .bullets li, .steps li { break-inside: avoid; }
  .faq details::details-content { content-visibility: visible; display: block; } /* answers print even when closed, where supported */
  .faq summary::after { display: none; }
  .prose a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
}

/* ---------- Eligibility check (/apply/eligibility) ---------- */
.notice-info { background: var(--mist); border-color: var(--slate); }
.bg-mist .notice-info { background: #fff; }
.notice-info a, .elig-errors a { color: var(--crimson); }
.elig-errors ul { margin: 10px 0 0; padding-left: 1.2em; }
.elig-errors li { margin: 4px 0; }
.elig-form { max-width: none; margin-top: 8px; }
.elig-q { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.elig-q legend { padding: 0; margin-bottom: 10px; font-family: var(--sans); color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.4; }
.elig-num { color: var(--crimson); }
.elig-q .field-error { margin: 0 0 10px; }
.elig-options { display: grid; gap: 8px; }
.elig-option { margin: 0; padding: 0 14px; gap: 12px; border: 1px solid var(--rule); border-radius: 2px; background: #fff; }
.elig-option input { margin-top: 15px; }
.elig-option label { flex: 1; padding: 12px 0; font-weight: 400; line-height: 1.45; cursor: pointer; }
.elig-option:has(input:checked) { border-color: var(--crimson); box-shadow: inset 3px 0 0 var(--crimson); }
.elig-q.has-error .elig-option { border-color: var(--crimson); }
.elig-summary { padding: 20px 22px; margin: 0 0 20px; border-left: 4px solid; }
.elig-summary p { margin: 0; }
.elig-summary .elig-summary-head { margin-bottom: 6px; font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.elig-summary.elig-meets { background: #eef5ef; border-color: #2f6b3a; }
.elig-summary.elig-check { background: #fbf5e8; border-color: #8a5a00; }
.elig-summary.elig-not { background: #fbeef0; border-color: var(--crimson); }
.elig-results { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--rule); }
.elig-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.elig-results h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.elig-badge { margin: 0; justify-self: end; align-self: start; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.elig-meets .elig-badge { background: #eef5ef; color: #2f6b3a; }
.elig-check .elig-badge { background: #fbf5e8; color: #7a4f00; }
.elig-not .elig-badge { background: #fbeef0; color: var(--crimson-dark); }
.elig-reason { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15.5px; }
.elig-next { margin: 32px 0 6px; font-size: 19px; }
.elig-share { margin-top: 24px; }
@media (max-width: 520px) {
  .elig-results li { grid-template-columns: minmax(0, 1fr); }
  .elig-badge { justify-self: start; }
  .elig-summary .elig-summary-head { font-size: 21px; }
}

/* Menzies and other scholarships (/apply/other-scholarships) */
.rule-quote { margin: 0 0 28px; padding: 24px 28px; background: var(--mist); border-left: 3px solid var(--crimson); }
.rule-quote blockquote { margin: 0; }
.rule-quote blockquote p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.rule-quote figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.rule-quote figcaption a { display: inline-block; padding: 6px 0; }
.rule-quote figcaption a, .awards-table a, .award-card a { color: var(--crimson); }
.awards-checked { max-width: var(--narrow); margin: 0 0 22px; color: var(--muted); }
.awards-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.5; }
.awards-table th, .awards-table td { text-align: left; vertical-align: top; padding: 14px 14px; border-bottom: 1px solid var(--rule); }
.awards-table thead th { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid var(--crimson); }
.awards-table tbody th { width: 21%; font-weight: 400; }
.awards-table tbody th a { display: inline-block; padding: 6px 0; }
.award-name { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.award-by { display: block; margin: 4px 0 6px; color: var(--muted); font-size: 14px; }
.award-cards { display: none; list-style: none; margin: 0; padding: 0; }
.award-card { background: #fff; border-top: 3px solid var(--crimson); padding: 18px 18px 20px; margin: 0 0 16px; }
.award-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.award-card dl { margin: 0; font-size: 15.5px; }
.award-card dl div { margin: 0 0 10px; }
.award-card dt { font-weight: 700; color: var(--muted); }
.award-card dd { margin: 0; }
.award-link { margin: 4px 0 0; }
.award-link a { display: inline-block; padding: 10px 0; }
@media (max-width: 900px) {
  .awards-table-wrap { display: none; }
  .award-cards { display: block; }
}
@media (max-width: 760px) {
  .rule-quote { padding: 18px 18px; }
  .rule-quote blockquote p { font-size: 19px; }
}

/* ---------- Application round: banner, home strip, key dates (src/pages/round.tsx) ---------- */
.round-band { padding: 40px 0 48px; }
@media (max-width: 760px) { .round-band { padding: 28px 0 36px; } }
.round-banner { max-width: 760px; padding: 20px 24px 22px; background: var(--mist); border-left: 4px solid var(--slate); }
.round-open .round-banner { border-color: #2f6b3a; background: #eef5ef; }
.round-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.band .round-lead { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; line-height: 1.25; color: var(--ink); }
.round-banner p { margin: 0; }
.round-banner .btn-row { margin-top: 16px; }
.round-closes strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.round-more { margin-top: 10px !important; }
.round-more a, .round-strip a, .key-dates a { color: var(--crimson); }
.round-strip { background: var(--mist); border-bottom: 1px solid var(--rule); }
.round-strip p { margin: 0; padding: 14px 0; font-size: 15.5px; line-height: 1.55; }
.round-strip.round-open { background: #eef5ef; }
.kd-intro { margin: 0 0 20px; }
.kd-round h3 { margin: 0 0 8px; font-size: 18px; }
.kd-past { font-weight: 400; color: var(--muted); }
.kd-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--rule); }
.kd-list li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.kd-when { font-variant-numeric: tabular-nums; color: var(--crimson); font-weight: 700; }
.kd-none { color: var(--muted); font-weight: 400; font-style: italic; }
.kd-note { grid-column: 2; font-size: 15px; color: var(--muted); }
.kd-ics { margin: 0 0 8px; }
@media (max-width: 520px) {
  .kd-list li { grid-template-columns: minmax(0, 1fr); }
  .kd-note { grid-column: 1; }
  .band .round-lead { font-size: 23px; }
}
/* Eligibility QA (2026-10-21): the summary verdict is a heading. */
.elig-summary h3.elig-summary-head { margin: 0 0 6px; font-weight: 400; }

/* ---------- Applicant guides (src/pages/guides.tsx) ---------- */
.guide-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.guide-card { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--crimson); padding: 16px 18px 14px; }
.guide-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.guide-card h3 a { color: var(--crimson); text-decoration: none; }
.guide-card h3 a::after { content: ''; position: absolute; inset: 0; }
.guide-card:hover { border-color: var(--crimson); }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:has(a:focus-visible) { outline: 2px solid var(--crimson); outline-offset: 3px; }
.guide-card p { margin: 0 0 8px; font-size: 15.5px; }
.guide-card .guide-for { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.guide-file { font-weight: 400; color: var(--muted); }
.guide-nav { background: var(--mist); border-bottom: 1px solid var(--rule); }
.guide-nav ul { list-style: none; margin: 0; padding: 0; }
/* Wide screens: the guides as chips, wrapping. */
.guide-nav .guide-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.guide-chips li { flex: none; padding: 3px 2px; }
.guide-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.guide-chips a:hover { border-color: var(--crimson); }
.guide-chips a:focus-visible { outline-offset: 1px; }
.guide-chips a[aria-current="page"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
/* Narrow screens (the header menu's breakpoint): one closed disclosure naming the current guide instead of a sideways
   scroller (WCAG 1.4.10; S6 accessibility audit). Native <details>, so no JavaScript and no layout shift. */
.guide-menu { display: none; }
@media (max-width: 960px) {
  .guide-nav .guide-chips { display: none; }
  .guide-menu { display: block; }
}
.guide-menu summary {
  display: block; min-height: 48px; padding: 12px 28px 10px 0; position: relative; line-height: 1.45;
  list-style: none; cursor: pointer; font-size: 15px; color: var(--ink);
}
.guide-menu summary::-webkit-details-marker { display: none; }
.guide-menu summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--crimson); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.guide-menu[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.guide-menu summary:focus-visible { outline-offset: 2px; }
.guide-menu-label { font-weight: 700; white-space: nowrap; }
.guide-menu-current { color: var(--muted); }
.guide-menu ul { padding: 0 0 10px; }
.guide-menu li { border-top: 1px solid var(--rule); }
.guide-menu a { display: flex; align-items: center; min-height: 44px; padding: 6px 0 6px 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.guide-menu a:hover { text-decoration: underline; }
.guide-menu a[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--crimson); }
@media (forced-colors: active) { .guide-menu a[aria-current="page"] { border-left: 3px solid CanvasText; } }
.guide-next { padding: 28px 0 36px; border-top: 1px solid var(--rule); }
.guide-next a { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; min-height: 44px; padding: 8px 0; color: var(--crimson); font-size: 19px; font-weight: 700; text-decoration: none; }
.guide-next a:hover { text-decoration: underline; }
.guide-next-label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media print { .guide-nav, .guide-next { display: none; } }

/* ---------- Site search (/search, the /apply guides header, the 404 page; src/pages/search.tsx) ---------- */
.site-search { max-width: 560px; margin: 0 0 20px; }
.site-search label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.site-search .field-hint { margin: -2px 0 8px; }
.site-search .field-error { margin: 0 0 8px; }
.site-search-row { display: flex; gap: 8px; }
.site-search input {
  flex: 1; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 12px; border: 1px solid #a9adb1; border-radius: 2px; background: #fff;
}
.site-search input:focus { border-color: var(--crimson); outline: 2px solid rgba(165, 28, 48, 0.25); outline-offset: 0; }
.site-search input[aria-invalid="true"] { border-color: var(--crimson); }
.site-search .btn { flex: none; min-height: 48px; }
.guides-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 32px; margin-bottom: 8px; }
.guides-head h2 { margin-bottom: 20px; }
.guides-head .site-search { flex: 0 1 420px; }
.nf-search { max-width: 560px; }
/* 404: the search continues the suggestions, in their column on wide screens. */
.nf-suggest { padding-bottom: 28px; }
@media (min-width: 961px) { .nf-suggest + .band .nf-search { margin-left: calc((100% - clamp(48px, 5vw, 72px)) * 5 / 12 + clamp(48px, 5vw, 72px)); } }
.search-count { font-weight: 700; margin: 8px 0 16px; }
.search-hits { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--rule); }
.search-hit { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.search-hit h3 { margin: 0 0 2px; font-size: 18px; line-height: 1.35; }
.search-hit h3 a { color: var(--crimson); }
.search-where { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.search-snippet { margin: 0; font-size: 15.5px; color: var(--ink); }
.search-snippet mark { background: #f6e3b4; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-scholars { margin: 0 0 20px; }
.search-scholars a, .search-suggest a { color: var(--crimson); }
.search-suggest h3 { margin: 24px 0 8px; font-size: 17px; }
@media (max-width: 380px) {
  .site-search-row { flex-wrap: wrap; }
  .site-search .btn { width: 100%; }
}

/* ---------- Home: "Thinking of applying?" (src/pages/home-applicants.tsx) ---------- */
.applicant-band { background: #fff; border-bottom: 1px solid var(--rule); padding: 36px 0 40px; }
.applicant-band h2 { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--crimson); }
.applicant-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.applicant-links a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 44px; padding: 16px 18px 14px;
  border: 1px solid var(--rule); border-top: 3px solid var(--crimson); background: #fff; color: var(--ink); text-decoration: none;
}
.applicant-links a:hover { border-color: var(--crimson); }
.applicant-links a:hover .al-title { text-decoration: underline; text-underline-offset: 0.18em; }
.al-q { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.al-title { font-size: 17px; font-weight: 700; color: var(--crimson); line-height: 1.3; }
.al-text { font-size: 14.5px; line-height: 1.45; color: var(--ink); margin-top: 2px; }
@media (max-width: 960px) { .applicant-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: two by two, question and title only (the summaries are on the pages themselves). */
@media (max-width: 559px) {
  .applicant-band { padding: 20px 0 22px; }
  .applicant-band h2 { font-size: 24px; margin-bottom: 12px; }
  .applicant-links { gap: 8px; }
  .applicant-links a { padding: 10px 12px 11px; }
  .al-title { font-size: 15.5px; }
  .al-text { display: none; }
}
@media print { .applicant-band { display: none; } }

/* ---------- /apply/planning: Harvard deadlines against today (src/pages/planning.tsx) ---------- */
.deadlines .deadline-passed { color: var(--muted); }
.deadlines .deadline-passed::marker { color: var(--rule); }
.deadline-tag {
  display: inline-block; padding: 0 7px; border-radius: 3px; background: var(--crimson); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.6; vertical-align: 1px;
}
.deadline-closed { color: var(--muted); font-size: 15px; border-left: 3px solid var(--rule); padding-left: 10px; }
@media (forced-colors: active) { .deadline-tag { border: 1px solid CanvasText; } }
/* ---------- Checklist ticks (site.js, /apply/checklist) ---------- */
/* With JavaScript each item has a real checkbox: a 44px target drawing the same 20px box, ticked when checked. */
.box-checklist .bullets li.has-tick { padding-left: 52px; }
.box-checklist .bullets li.has-tick::before { display: none; }
.box-checklist .tick {
  -webkit-appearance: none; appearance: none; position: absolute; left: -12px; top: 5px; width: 44px; height: 44px; margin: 0;
  border: 0; border-radius: 6px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='3' fill='%23fff' stroke='%23a51c30' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 22px 22px;
}
.box-checklist .tick:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='3' fill='%23a51c30' stroke='%23a51c30' stroke-width='2'/%3E%3Cpath d='M5.5 11.5l3.8 3.8 7.2-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.box-checklist .tick:hover { background-color: rgba(165, 28, 48, 0.08); }
.box-checklist .tick:focus-visible { outline: 2px solid var(--crimson); outline-offset: -2px; }
.box-checklist li.has-tick label { cursor: pointer; }
.box-checklist li.is-ticked .tick-text { color: var(--muted); }
.tick-bar { margin: 18px 0 0; padding: 12px 16px 14px; background: var(--mist); border-left: 3px solid var(--crimson); }
.bg-mist .tick-bar { background: #fff; }
.tick-progress { margin: 0; font-weight: 700; }
.tick-progress:focus { outline: none; }
.tick-note { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.tick-actions { margin-top: 10px; }
.tick-actions .btn { min-height: 44px; }
.tick-actions [hidden] { display: none; }
.tick-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tick-ask { font-weight: 700; }
@media (forced-colors: active) {
  .box-checklist .tick { appearance: auto; -webkit-appearance: checkbox; width: 22px; height: 22px; left: 0; top: 16px; }
}
/* Print: the drawn boxes, ticked where ticked (borders print without background printing). */
@media print {
  .tick-bar, .box-checklist .tick { display: none !important; }
  .box-checklist .bullets li.has-tick { padding-left: 38px; }
  .box-checklist .bullets li.has-tick::before { display: block; }
  .box-checklist .bullets li.is-ticked::after {
    content: ''; position: absolute; left: 7px; top: 19px; width: 6px; height: 11px;
    border: solid #000; border-width: 0 3px 3px 0; transform: rotate(45deg);
  }
  .box-checklist li.is-ticked .tick-text { color: #000; }
}

/* ---------- Breadcrumb trail (deeper pages without the guide navigation; src/pages/breadcrumbs.tsx) ---------- */
.breadcrumbs { background: var(--mist); border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
/* The separator is decoration: the alt text after the slash keeps screen readers from reading it out. */
.breadcrumbs li + li::before { content: '/'; content: '/' / ''; padding: 0 6px; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--crimson); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.breadcrumbs a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 700; }
@media print { .breadcrumbs { display: none; } }
/* Honour Roll decade filter (?decade=, src/pages/blocks.tsx HonourRoll): a GET form without the script, in place with it */
.hr-decades { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 24px; }
.hr-filters:not([hidden]) + .hr-decades { margin-top: -12px; }
.hr-decades label { font-weight: 700; font-size: 15px; }
.hr-decades select {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 16px; color: var(--ink);
  min-height: 44px; padding: 8px 40px 8px 12px; border: 1px solid #a9adb1; border-radius: 2px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 14px 9px;
}
.hr-decades select:focus { border-color: var(--crimson); outline: 2px solid rgba(165, 28, 48, 0.25); outline-offset: 0; }
.hr-decade-go { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 0 18px; border: 0; border-radius: 2px; background: var(--crimson); color: #fff; cursor: pointer; }
.hr-decade-go[hidden] { display: none; }
.hr-count { color: var(--muted); font-size: 14.5px; }
.hr-empty-view { margin: 0 0 26px; padding: 16px 18px; background: #fff; border-left: 3px solid var(--crimson); }
.hr-empty-view[hidden] { display: none; }
.hr-empty-view a { color: var(--crimson); font-weight: 700; display: inline-block; padding: 4px 0; }
.hr-decades { scroll-margin-top: 16px; }
@media print { .hr-decades { display: none !important; } }

/* ---------- Printable views (src/pages/print.tsx): eligibility results, Key Dates, planning deadlines ---------- */
.print-row { margin: 0 0 18px; }
.print-row[hidden], .print-stamp { display: none; }
@media print {
  .print-row, .breadcrumbs, .site-search, .elig-answers, .elig-share, .kd-ics, .round-banner .btn-row { display: none !important; }
  body { font-size: 12pt; }
  /* Verdicts and statuses in words, outlined, legible in black and white. */
  .elig-summary { border: 2px solid #000 !important; background: none !important; color: #000; break-inside: avoid; }
  .elig-results li { break-inside: avoid; }
  .elig-badge { background: none !important; color: #000 !important; border: 1.5px solid #000; }
  .elig-note { background: none; border: 1px solid #000; }
  .kd-list li, .school { break-inside: avoid; }
  .kd-when { color: #000; }
  .kd-note, .kd-past, .deadlines .deadline-passed { color: #333; }
  .schools { display: block; }
  .school { border: 0; border-top: 1px solid #000; padding: 10px 0 6px; }
  .school-links a { padding: 0; }
  .deadline-tag { background: none; color: #000; border: 1px solid #000; }
  .print-stamp { display: block; margin-top: 18px; padding-top: 8px; border-top: 1px solid #000; font-size: 10pt; color: #000; word-break: break-all; }
  .print-stamp:empty::before { content: "Printed from " attr(data-url); }
  /* The Key Dates "Print" button (site.js sets the class while printing): that section and the Printed from line only. */
  /* A "print this part" button (site.js): keep the part, the elements around it and everything in it; hide the rest. */
  .print-only-section main :not(:has(.print-target)):not(.print-target):not(.print-target *) { display: none !important; }
  .print-only-section .site-header, .print-only-section .site-footer { display: none !important; }
  .print-only-section main .band:has(.print-target) { padding: 0; }
  .print-only-section .cmp-table-wrap { overflow: visible; }
}

/* ---------- Honour Roll chart: years of Menzies Scholars (src/pages/roll-chart.tsx) ---------- */
.roll-chart { margin: 0 0 30px; padding: 20px 22px 16px; background: #fff; border: 1px solid var(--rule); }
.rc-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.rc-summary { margin: 0 0 10px; font-size: 15.5px; }
.rc-intro { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.rc-readout { margin: 0 0 6px; min-height: 1.5em; font-size: 14.5px; font-weight: 700; }
.rc-legend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.rc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rc-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.rc-sw.rc-none { width: auto; height: auto; font-weight: 700; color: var(--muted); }
/* School colours: each at least 3:1 against white; segments are also split by white lines, and the table and the
   year labels give every number in words. */
.rc-hls { fill: #a51c30; background: #a51c30; }
.rc-hbs { fill: #1f4e79; background: #1f4e79; }
.rc-hks { fill: #2e7d6b; background: #2e7d6b; }
.rc-hsph { fill: #b35c00; background: #b35c00; }
.rc-gsas { fill: #6a3d9a; background: #6a3d9a; }
.rc-hgse { fill: #4d6b1f; background: #4d6b1f; }
.rc-gsd { fill: #8a4b2b; background: #8a4b2b; }
.rc-seas { fill: #2f6fae; background: #2f6fae; }
.rc-hms { fill: #555b61; background: #555b61; }
.rc-seg { stroke: #fff; stroke-width: 1.2; }
.rc-grid line { stroke: var(--rule); stroke-width: 1; }
.rc-grid text, .rc-label { fill: var(--muted); font-size: 13px; font-family: var(--sans); }
.rc-x { fill: var(--muted); font-size: 15px; font-weight: 700; font-family: var(--sans); }
.rc-hint { display: none; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.rc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rc-scroll + .rc-scroll { margin-top: 6px; }
.rc-plot { position: relative; min-width: 760px; } /* 30 columns of at least 24px */
.rc-svg { display: block; width: 100%; height: auto; }
/* One link per year over its column, lined up with the plot's margins in the SVG (left 4%, right 1%, bottom 1/8). */
.rc-hits { list-style: none; margin: 0; padding: 0; position: absolute; left: 4%; right: 1%; top: 0; bottom: 12.5%; display: flex; }
.rc-hits li { flex: 1 1 0; position: relative; min-width: 0; }
.rc-hits a, .rc-gap { display: block; height: 100%; border-radius: 2px; }
.rc-hits a:hover { background: rgba(165, 28, 48, 0.08); }
.rc-hits a:focus-visible { outline: 2px solid var(--crimson); outline-offset: 0; background: rgba(165, 28, 48, 0.08); }
.rc-tip {
  display: none; position: absolute; top: 2px; z-index: 2; width: max-content; max-width: 15em; padding: 4px 8px;
  background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.35; border-radius: 3px; pointer-events: none;
}
.rc-tip-l { left: 0; }
.rc-tip-r { right: 0; }
.rc-hits a:hover .rc-tip, .rc-hits a:focus-visible .rc-tip, .rc-gap:hover .rc-tip { display: block; }
.rc-table { margin-top: 10px; }
.rc-table summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--crimson); }
.rc-table table { font-size: 14.5px; }
/* Narrow screens: the panels scroll sideways in their own boxes; the year label shows above them (site.js). */
@media (max-width: 900px) {
  .rc-hint { display: block; }
  .rc-tip { display: none !important; }
}
@media (min-width: 901px) { .rc-readout { display: none; } }
@media (max-width: 700px) { .roll-chart { padding: 16px 14px 12px; } }
@media (forced-colors: active) {
  .rc-seg { fill: CanvasText; stroke: Canvas; }
  .rc-sw { forced-color-adjust: none; }
  .rc-grid text, .rc-label, .rc-x { fill: CanvasText; }
  .rc-tip { border: 1px solid CanvasText; }
}
@media print {
  .rc-hits, .rc-hint { display: none; }
  .rc-plot { min-width: 0; }
  .rc-readout, .rc-intro { display: none; }
  .rc-table > :not(summary) { display: block; }
  .rc-sw, .rc-seg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- Application planner (/apply/planner, src/pages/planner.tsx) ---------- */
.planner-form { max-width: 560px; }
.planner-intake { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.planner-intake legend { padding: 0; margin-bottom: 6px; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); }
.plan-for { font-size: 18px; margin: 0 0 16px; }
.plan-warning { background: #fbf5e8; border-color: #8a5a00; max-width: none; }
.plan-warning a, .plan-main .plan-source a, .plan-phase a, .plan-actions a { color: var(--crimson); }
.plan-notes { margin: 0 0 20px; }
.plan-main h3 { margin: 28px 0 10px; font-size: 19px; }
.plan-phase h4 { margin: 16px 0 6px; font-size: 16px; }
.plan-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plan-item { display: grid; grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.plan-when { font-weight: 700; color: var(--crimson); font-variant-numeric: tabular-nums; }
.plan-time { font-weight: 400; color: var(--muted); font-size: 14.5px; }
.plan-none { color: var(--muted); font-style: italic; font-weight: 400; }
.plan-body p { margin: 0; }
.plan-title { line-height: 1.45; }
.plan-badge { display: inline-block; margin: 2px 6px 0 0; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--mist); color: var(--muted); }
.plan-next .plan-badge:first-of-type { background: var(--crimson); color: #fff; }
.plan-badge-usual { background: #fbf5e8; color: #7a4f00; }
.plan-passed .plan-when, .plan-passed .plan-title strong { color: var(--muted); }
.plan-passed .plan-title strong { text-decoration: line-through; text-decoration-color: rgba(85, 91, 97, 0.5); }
.plan-detail { margin-top: 4px !important; font-size: 15px; color: var(--ink); }
.plan-source { margin-top: 4px !important; font-size: 14px; color: var(--muted); }
.plan-actions { margin: 16px 0 0; }
.plan-keep { margin-top: 24px; }
@media (max-width: 560px) {
  .plan-item { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .no-print-band, .guide-nav, .guide-next, .site-footer, .plan-actions, .plan-band .btn-row, .plan-keep { display: none !important; }
  .plan-list { border-top: 1px solid #000; }
  .plan-item { border-bottom: 1px solid #999; }
  .plan-passed .plan-title strong { color: #333; }
  .plan-band { padding: 0; }
  .plan-item { break-inside: avoid; }
  .plan-main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; word-break: break-all; }
  .plan-badge { border: 1px solid #999; background: none !important; color: #000 !important; }
}
/* ---------- Events (src/pages/news.tsx, src/pages/events.tsx): details block, upcoming list, home "next event" ---------- */
.event-details { margin: 4px 0 28px; padding: 18px 20px; border-left: 4px solid var(--crimson); background: var(--mist); }
.event-details dl { margin: 0; display: grid; gap: 12px; }
.event-details dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 12px; }
.event-details dt { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
.event-details dd { margin: 0; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.event-details .event-past { margin: 0 0 12px; }
.event-details .event-cal { margin: 16px 0 0; }
.event-details .event-cal .btn { min-height: 44px; }
.upcoming-events { margin: 0 0 36px; padding-bottom: 8px; border-bottom: 3px solid var(--crimson); }
.upcoming-events > h2, .news-all { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.upcoming-events .post-list li:last-child { border-bottom: 0; }
.next-event { margin: 4px 0 24px; padding: 14px 18px; background: var(--mist); border-left: 4px solid var(--crimson); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.next-event-label { font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.next-event a { color: var(--crimson); }
.next-event > a:first-of-type { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.next-event-when { flex-basis: 100%; font-size: 15.5px; }
.next-event-more { font-size: 15px; display: inline-block; padding: 10px 0; }
@media (max-width: 520px) {
  .event-details { padding: 14px 16px; }
  .event-details dl > div { grid-template-columns: minmax(0, 1fr); }
  .event-details .event-cal .btn { width: 100%; }
}
.event-fields { margin: 8px 0 24px; padding: 16px 18px 4px; border: 1px solid var(--rule); }
.event-fields[hidden] { display: none; }
.event-fields legend { padding: 0 6px; font-weight: 700; font-size: 16px; }
.event-fields .notice { margin: 0 0 14px; }
/* ---------- Other scholarships: compare two or three, "Can I hold the Menzies with…?" (src/pages/awards.tsx) ---------- */
.cmp-form { max-width: var(--narrow); margin: 0 0 24px; padding: 20px 22px; background: #fff; border-top: 3px solid var(--crimson); }
.cmp-form fieldset { margin: 0 0 12px; }
.cmp-form legend { font-size: 22px; margin-bottom: 6px; }
.cmp-form .field-hint { display: block; margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.cmp-form .field-error { margin: 0 0 10px; }
.cmp-options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
.cmp-options .check { margin: 0; padding: 8px 0; min-height: 44px; }
.cmp-options .check label { cursor: pointer; }
.cmp-options .check input { width: 22px; height: 22px; margin-top: 1px; }
.cmp-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.cmp-clear { color: var(--crimson); display: inline-block; padding: 10px 0; }
.cmp-view { margin: 0 0 32px; }
.cmp-view:focus { outline: none; }
.cmp-view:empty { display: none; }
.cmp-view h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.cmp-view .notice { max-width: var(--narrow); }
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.5; table-layout: fixed; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.cmp-table thead th { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; border-bottom: 3px solid var(--crimson); }
.cmp-table tbody th { width: 17%; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cmp-table a, .cmp-cards a, .hold a { color: var(--crimson); }
.cmp-table td a { display: inline-block; padding: 4px 0; }
.cmp-cards { display: none; list-style: none; margin: 0; padding: 0; }
.cmp-cards h4 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.cmp-cards dd a { display: inline-block; padding: 6px 0; }
.cmp-checked { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.hold { margin-top: 36px; max-width: 860px; }
.hold > h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.hold-intro { margin: 0 0 18px; color: var(--muted); }
.hold-list { list-style: none; margin: 0; padding: 0; }
.hold-item { background: #fff; padding: 18px 20px; margin: 0 0 14px; border-left: 3px solid var(--rule); }
.hold-item h4 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.hold-item p { margin: 0 0 8px; }
.hold-verdict { font-weight: 700; }
.hold-item:has(.hold-no) { border-left-color: var(--crimson); }
.hold-quotes summary { cursor: pointer; display: inline-block; padding: 10px 0; color: var(--crimson); font-weight: 700; }
.hold-quotes .rule-quote { margin: 8px 0 12px; padding: 14px 16px; }
.hold-quotes .rule-quote blockquote p { font-size: 17px; }
@media (max-width: 640px) {
  .cmp-table-wrap { display: none; }
  .cmp-cards { display: block; }
  .cmp-form { padding: 16px; }
  .hold-item { padding: 16px; }
}
@media print { .cmp-form { display: none; } .hold-quotes > :not(summary) { display: block; } }
.hold-other { padding: 4px 0 0; }
.hold-other h4 { margin: 8px 0 8px; font-size: 18px; }
.hold-other .rule-quote blockquote p { font-size: 17px; }
/* ---------- Offline reading (src/lib/offline.ts, site.js) ---------- */
.saved-copy { background: #fff6e0; color: #4a3500; font-size: 15px; padding: 10px 0; border-bottom: 1px solid #e8d49a; }
.offline-list { padding-left: 1.2em; }
.offline-list li { margin: 0; }
.offline-list a { display: inline-block; min-height: 44px; padding: 10px 0; }
/* ---------- Admin insights (src/pages/admin-insights.tsx): visitor numbers, no style attributes ---------- */
.insights-intro { max-width: 760px; }
.insights-range ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.insights-range a { display: inline-block; padding: 10px 16px; border: 1px solid var(--charcoal); text-decoration: none; min-height: 44px; box-sizing: border-box; }
.insights-range a[aria-current="page"] { background: var(--crimson); border-color: var(--crimson); color: #fff; font-weight: 700; }
.insights-section { margin-top: 36px; }
.insights-section h2, .admin-main section > h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 14px; }
.insights-stats { margin-bottom: 18px; }
.insights-chart { margin: 0 0 12px; }
.insights-spark { display: block; width: 100%; height: 140px; background: #fff; border: 1px solid var(--rule); }
.spark-base { stroke: var(--rule); stroke-width: 1; }
.spark-area { fill: var(--crimson); fill-opacity: 0.12; }
.spark-line { fill: none; stroke: var(--crimson); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-hit { fill: transparent; }
.spark-hit:hover { fill: var(--ink); fill-opacity: 0.06; }
.insights-chart figcaption { margin-top: 6px; }
.insights-details { margin: 0 0 8px; }
.insights-details summary { cursor: pointer; color: var(--crimson); padding: 8px 0; }
.insights-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 860px) { .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; } }
.insights-block h3 { font-size: 16px; margin: 0 0 8px; }
.insights-table { margin-bottom: 4px; }
.insights-label { overflow-wrap: anywhere; }
.insights-label code { font-size: 14px; }
.insights-weekly tfoot th, .insights-weekly tfoot td { font-weight: 700; border-bottom: 0; }
.insights-setup { margin: 20px 0 36px; }
.insights-setup h2 { margin-top: 0; }
.insights-setup ol { padding-left: 22px; }
.insights-setup li { margin-bottom: 8px; }
.insights-setup code, .insights-intro code { overflow-wrap: anywhere; }
.insights-failed { margin: 0 0 12px; }
.insights-week { white-space: nowrap; }
/* Scholar spotlights (/recipients/spotlights) */
.spotlights { list-style: none; margin: 0; padding: 0; }
.spotlight { border-top: 3px solid var(--crimson); padding: 22px 0 26px; }
.spotlight + .spotlight { margin-top: 10px; }
.spotlight h2 { margin: 0 0 4px; }
.spotlight p { margin: 0 0 12px; overflow-wrap: anywhere; }
.spotlight-meta { font-weight: 700; color: var(--muted); }
.spotlight-sources { font-size: 15px; color: var(--muted); }
.spotlight-sources a, .spotlight-roll a { color: var(--crimson); }
.spotlight-roll a { display: inline-block; padding: 8px 0; }
/* ---------- Instant search (site.js over form.site-search) ---------- */
/* The list sits in the flow under the box, so it never covers what you are typing. */
.ss-list { position: relative; list-style: none; margin: 6px 0 0; padding: 0; background: #fff; border: 1px solid #a9adb1; border-radius: 2px; max-height: 70vh; overflow-y: auto; }
.ss-list[hidden] { display: none; }
.ss-list li { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 9px 12px; border-top: 1px solid var(--rule); cursor: pointer; }
.ss-list li:first-child { border-top: 0; }
.ss-list li[aria-selected="true"] { background: #fbeef0; box-shadow: inset 3px 0 0 var(--crimson); }
.ss-list li:hover { background: var(--mist); }
.ss-title { font-weight: 700; color: var(--crimson); }
.ss-section { font-size: 14px; color: var(--muted); }
.ss-snippet { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.ss-snippet mark { background: #fff3b0; color: inherit; }
.ss-all { justify-content: center; font-weight: 700; color: var(--ink); }
@media (forced-colors: active) { .ss-list li[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; } }
@media print { .ss-list { display: none; } }

/* "Skip the chart" on /recipients: hidden until focused, then shown in place (S5 QA). */
.skip-chart:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-chart:focus { display: inline-block; margin: 0 0 12px; padding: 10px 14px; min-height: 44px; background: #fff; color: var(--crimson); font-weight: 700; border: 2px solid var(--crimson); }
.roll-start:focus { outline: none; }

/* ---------- Checkbox and radio targets on the planner and award comparison: at least 24px (WCAG 2.5.8) ---------- */
.planner-form input[type="radio"], .planner-form input[type="checkbox"], .cmp-form input[type="checkbox"] {
  width: 24px; height: 24px; min-width: 24px; margin: 0; accent-color: var(--crimson); flex: none;
}

/* ---------- Honour Roll pages by year and school (src/pages/roll-pages.tsx), and their links on the roll ---------- */
a.hr-year { color: var(--muted); text-decoration-color: rgba(85, 91, 97, 0.4); min-height: 24px; display: inline-flex; align-items: center; }
a.hr-year:hover { color: var(--crimson); }
.glance-page { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin-left: 6px; color: var(--crimson); text-decoration: none; }
.glance-page:hover { color: var(--crimson-dark); }
.roll-page a { color: var(--crimson); }
.roll-list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--rule); }
.roll-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.roll-name { font-weight: 700; }
.roll-degree { color: var(--muted); }
.roll-count { margin: 0 0 14px; }
.roll-years { list-style: none; margin: 0 0 16px; padding: 0; }
.roll-years > li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 0 16px; align-items: start; }
.roll-years .roll-list { margin: 0; border-top: 0; }
.roll-years .roll-list li { padding: 10px 0; border-bottom: 0; }
.roll-years .roll-list li + li { border-top: 1px solid var(--rule); }
.roll-years { border-bottom: 1px solid var(--rule); }
.roll-year { display: inline-block; padding: 10px 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.roll-years > li + li .roll-list { border-top: 0; }
.roll-years > li { border-top: 1px solid var(--rule); }
.roll-links { margin: 20px 0 0; padding-left: 1.2em; }
.roll-links li { margin: 4px 0; }
.roll-pager ul { list-style: none; margin: 28px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.roll-pager li:last-child { text-align: right; }
.roll-pager a { display: inline-block; min-height: 44px; padding: 10px 0; font-weight: 700; text-decoration: none; }
.roll-pager a:hover { text-decoration: underline; }
@media (max-width: 420px) {
  .roll-pager ul { grid-template-columns: 1fr 1fr; }
  .roll-pager li:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* Windows contrast themes repaint background colours as Canvas, which erased the menu and pause icons' bars. */
@media (forced-colors: active) {
  .menu-icon, .menu-icon::before, .menu-icon::after,
  .hero-pause-icon::before, .hero-pause-icon::after { forced-color-adjust: none; background: ButtonText; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle { border: 1px solid ButtonText; }
  .hero-pause.is-paused .hero-pause-icon::before { background: none; border-left-color: ButtonText; }
}

/* Referee brief (/apply/referees/brief): fit one A4 page when printed. */
@media print {
  [id^="brief-"].band { padding: 6px 0; }
  [id^="brief-"] h2 { font-size: 20px; margin: 0 0 4px; }
  [id^="brief-"] .prose { font-size: 13px; line-height: 1.45; }
  [id^="brief-"] .prose p, [id^="brief-"] .bullets li { margin-bottom: 6px; }
}
/* ---------- "Add to Google Calendar / Outlook" beside .ics links (src/pages/cal-links.tsx) ---------- */
.cal-alt { font-size: 14.5px; }
.cal-alt a { color: var(--crimson); }
.kd-cal-alt { margin: -6px 0 16px; font-size: 14.5px; }
.kd-cal-alt p { margin: 0 0 4px; }
.kd-cal-alt ul { list-style: none; margin: 0; padding: 0; }
.kd-cal-alt li { padding: 3px 0; }
.plan-cal { margin-top: 4px !important; }
.event-cal .cal-alt { display: inline-block; margin-top: 8px; }
@media print { .cal-alt, .kd-cal-alt, .plan-cal { display: none !important; } }
.plan-from { margin: 0 0 16px; padding: 10px 14px; background: #eef5ef; border-left: 3px solid #2f6b3a; }
.elig-plan a { font-weight: 700; }
/* ---------- Spotlights: filter by Harvard school (src/pages/spotlights.tsx), links that work without JS ---------- */
.chip-links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
a.chip { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--ink); }
a.chip[aria-current="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
a.chip[aria-current="true"] span { color: #fff; }
.spotlight-count { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.spotlight-empty { margin: 0 0 24px; padding: 16px 18px; background: var(--mist); border-left: 3px solid var(--crimson); }
.spotlight-empty a { color: var(--crimson); }
/* ---------- Home: "Now" band (src/pages/home-highlights.tsx), in place of the round strip ---------- */
.now-band { background: var(--mist); border-bottom: 1px solid var(--rule); padding: 26px 0 28px; }
.now-band.round-open { background: #eef5ef; }
.now-h { margin: 0 0 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.now-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; }
.now-card { min-width: 0; font-size: 15px; line-height: 1.5; }
.now-card h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--crimson); }
.now-card p { margin: 0 0 4px; }
.now-card a { color: var(--crimson); }
.now-meta { color: var(--muted); font-size: 14px; }
.now-text { color: var(--ink); }
.now-more { display: inline-block; padding: 4px 0; font-weight: 700; }
/* Phones: the cards stacked as compact rows (heading, one short line, link), the round status cut to its lead sentence
   and link, the spotlight to its name; the full text is on the linked pages. No sideways scroller: that was a second
   scroll direction at 320px and at 400% zoom (WCAG 1.4.10; S7 accessibility check). */
@media (max-width: 559px) {
  .now-band { padding: 12px 0 14px; }
  .now-h { margin-bottom: 6px; }
  .now-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .now-card { padding: 7px 12px 8px; background: #fff; border: 1px solid var(--rule); border-radius: 3px; font-size: 14.5px; line-height: 1.4; }
  /* Run-in headings: each card's heading starts its first line, and the Honour Roll link follows its sentence. */
  .now-card h3 { display: inline; margin: 0 6px 0 0; font-size: 14px; }
  .now-card h3 + p { display: inline; }
  .now-card p { margin: 0; }
  .now-card .now-text + .now-more { display: inline; margin-left: 4px; padding: 0; }
  .now-band.round-open .now-card { background: #fff; }
  .now-round-explain, .now-sp-text { display: none; }
}
@media print { .now-band { background: none; } }
/* ---------- S6 accessibility audit fixes (research/s6-a11y-audit.md) ---------- */
/* Keyboard focus on form controls: the 25% crimson halo above is about 1.3:1 on white, and radios and checkboxes have
   no border to turn crimson, so the eligibility answers had almost no focus indicator. A solid crimson ring when
   focus comes from the keyboard (WCAG 2.4.7, 1.4.11); Highlight in forced colours, where the border change is lost. */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.site-search input:focus-visible, .hr-decades select:focus-visible { outline: 2px solid var(--crimson); outline-offset: 0; }
.field input[type="radio"]:focus-visible, .field input[type="checkbox"]:focus-visible { outline-offset: 2px; }
@media (forced-colors: active) {
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
  .site-search input:focus-visible, .hr-decades select:focus-visible { outline-color: Highlight; }
}
/* Forced colours drop the planner's badge backgrounds ("Next", "Coming up", "Usual pattern…"), which then ran into the
   heading beside them: outline them, as .deadline-tag does. */
@media (forced-colors: active) { .plan-badge { border: 1px solid CanvasText; } }
/* Reduced motion: the menu icon's bars rotate into a cross; switch instead (the colour fades elsewhere stay). */
@media (prefers-reduced-motion: reduce) { .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; } }

/* ---------- Search result type labels (src/pages/search.tsx, instant search in site.js) ---------- */
.search-type { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ss-type { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* School pages: scholars by decade (school-trends.tsx) */
.sd-chart{margin:0 0 24px;padding:14px 16px 10px;border:1px solid var(--rule);background:#fff}
.sd-title{margin:0;font-size:16px}
.sd-summary{margin:0 0 6px;font-size:15px;color:var(--muted)}
.sd-svg{display:block;width:100%;max-width:420px;height:auto;aspect-ratio:360/150}
.sd-axis{stroke:var(--rule)}
.sd-n,.sd-label{font:700 16px var(--sans);fill:var(--ink)}
.sd-label{font-weight:400;font-size:14px;fill:var(--muted)}
@media (forced-colors:active){.sd-bar,.sd-n,.sd-label{fill:CanvasText}.sd-axis{stroke:CanvasText}}
@media print{.sd-bar{print-color-adjust:exact}.sd-table>:not(summary){display:block}}
/* Forced colours (S7 accessibility check): selected and current chips were marked only by a filled background, which
   contrast themes drop, so they looked like every other chip: the Honour Roll filter (aria-pressed), the spotlights
   filter and the guide chips (aria-current), the admin insights range and the header's Apply button on /apply. Show
   them in the system's selected colours. */
@media (forced-colors: active) {
  .chip[aria-pressed="true"], a.chip[aria-current="true"], .guide-chips a[aria-current="page"],
  .insights-range a[aria-current="page"], .site-nav .nav-cta a[aria-current="page"] {
    forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText;
  }
  .chip[aria-pressed="true"] span, a.chip[aria-current="true"] span { color: HighlightText; }
  /* The header links' transparent underlines are all drawn in contrast themes; the current section's is thicker. */
  .site-nav a[aria-current="page"] { border-bottom-width: 3px; }
}
