/* Cabin and Gelasio, SIL Open Font License, self-hosted. */
@font-face { font-family: 'Cabin Variable'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/cabin-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cabin Variable'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/cabin-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Gelasio Variable'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/gelasio-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Gelasio Variable'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/gelasio-latin-wght-italic.woff2') format('woff2'); }
/*
 * site.css
 * The University's stylesheet: tokens, the page shell (utility bar,
 * masthead, navigation band, breadcrumbs, footer), interior layout with
 * the section menu, and components (key facts, accordions, notices,
 * tables, news lists, drawings). Fonts are prepended by the build.
 *
 * Created: 2026-11-04
 * Last modified: 2026-11-04
 */

:root {
  --white: #ffffff;
  --ink: #1b1e24;
  --ink-soft: #4b515c;
  --blue: #13294b;
  --blue-deep: #0c1b33;
  --link: #1d4f91;
  --stone: #eceae4;
  --stone-deep: #d6d3ca;
  --ochre: #b98a30;
  --ochre-deep: #7a5614;
  --river: #3d6f78;
  --alert: #a3321f;
  --focus: #f3c43f;
  --sans: 'Cabin Variable', 'Cabin', 'Gill Sans', 'Segoe UI', sans-serif;
  --serif: 'Gelasio Variable', 'Gelasio', Georgia, serif;
  --wrap: 1240px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; color: var(--blue); }

a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid transparent;
  background-color: var(--focus);
  color: var(--ink);
  box-shadow: 0 -2px var(--focus), 0 4px var(--ink);
  text-decoration: none;
}
input:focus-visible { box-shadow: 0 0 0 3px var(--focus), 0 0 0 5px var(--ink); background-color: var(--white); }
main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); margin: 0 0 0.6em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--focus); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Utility bar and masthead ---------- */

.utility { background: var(--stone); font-size: 0.875rem; }
.utility .wrap { display: flex; justify-content: flex-end; }
.utility__links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 7px 0; list-style: none; }
.utility__links a { color: var(--ink); text-decoration: none; }
.utility__links a:hover { text-decoration: underline; }

.masthead { border-bottom: 3px solid var(--ochre); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--blue); text-decoration: none; }
.brand:hover { color: var(--blue); }
.brand__arms { width: 50px; height: auto; flex: none; }
.brand__wordmark { display: flex; flex-direction: column; font-family: var(--serif); text-transform: uppercase; line-height: 1; }
.brand__name { font-size: 1.95rem; letter-spacing: 0.16em; font-weight: 500; }
.brand__sub { font-size: 0.93rem; letter-spacing: 0.43em; margin-top: 6px; }
.brand__founded { display: flex; flex-direction: column; margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--stone-deep); font-family: var(--serif); color: var(--ochre-deep); line-height: 1.05; }
.brand__founded span:first-child { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.brand__founded span:last-child { font-size: 1.5rem; }
.masthead__search { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--stone-deep); color: var(--ink); text-decoration: none; font-weight: 600; }
.masthead__search:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Navigation band ---------- */

.primary-nav { background: var(--blue); color: var(--white); }
.primary-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a { display: block; padding: 14px 18px 12px; color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.primary-nav__list li:first-child a { padding-left: 0; }
.primary-nav__list a:hover { border-bottom-color: rgba(255, 255, 255, 0.6); }
.primary-nav__list a.is-current { border-bottom-color: var(--ochre); }
.primary-nav a:focus-visible { color: var(--ink); }
.primary-nav__fold { display: none; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { font-size: 0.875rem; border-bottom: 1px solid var(--stone-deep); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; row-gap: 4px; margin: 0; padding: 8px 0; list-style: none; }
.breadcrumbs a, .breadcrumbs span { display: inline-block; padding: 3px 0; line-height: 1.4; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 10px 0 8px; border-top: 1.5px solid var(--ink-soft); border-right: 1.5px solid var(--ink-soft); transform: rotate(45deg); }
.breadcrumbs a { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* ---------- Interior pages ---------- */

.interior { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 56px; }
.interior--with-aside { grid-template-columns: 260px minmax(0, 1fr) 260px; }
.interior__main { min-width: 0; }

.page-title { margin-bottom: 28px; }
.page-title h1 { max-width: 22em; }
.page-title h1::after { content: ''; display: block; width: 64px; height: 4px; margin-top: 18px; background: var(--ochre); }
.page-title__kicker { margin: 0 0 8px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.page-title__lead { max-width: 38em; margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); }

.section-nav { font-size: 0.9375rem; }
.section-nav__fold { display: none; }
.section-nav__heading { margin: 0; padding: 0 0 10px; border-bottom: 3px solid var(--blue); font-weight: 700; font-size: 1.0625rem; }
.section-nav__heading a { color: var(--ink); text-decoration: none; }
.section-nav ul { margin: 0; padding: 0; list-style: none; }
.section-nav li a { display: block; padding: 9px 0 9px 0; border-bottom: 1px solid var(--stone-deep); color: var(--ink); text-decoration: none; }
.section-nav li a:hover { color: var(--link); text-decoration: underline; }
.section-nav li ul a { padding-left: 16px; font-size: 0.875rem; }
.section-nav li ul ul a { padding-left: 32px; }
.section-nav li.is-current > a { font-weight: 700; color: var(--blue); box-shadow: inset 4px 0 0 var(--ochre); padding-left: 12px; }
.section-nav li ul li.is-current > a { padding-left: 28px; }

.prose { max-width: 46rem; }
.prose > h2 { margin-top: 1.6em; font-size: 1.625rem; }
.prose > h3 { margin-top: 1.4em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 4px solid var(--stone-deep); font-family: var(--serif); font-size: 1.2rem; }
.plain-list { list-style: none; padding-left: 0 !important; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--stone-deep); }

.interior__aside { font-size: 0.9375rem; }
.aside-box { padding: 18px 20px; background: var(--stone); margin-bottom: 20px; }
.aside-box h2 { font-size: 1.0625rem; margin-bottom: 10px; }
.aside-box p:last-child, .aside-box ul:last-child { margin-bottom: 0; }
.aside-box ul { padding-left: 1.1em; margin: 0; }

/* ---------- Components ---------- */

.key-facts { background: var(--stone); padding: 20px 24px 8px; margin: 0 0 32px; }
.key-facts__heading { font-size: 1.0625rem; margin-bottom: 12px; }
.key-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 28px; margin: 0; }
.key-facts dl > div { padding: 10px 0 12px; border-top: 1px solid var(--stone-deep); }
.key-facts dt { font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.key-facts dd { margin: 2px 0 0; font-size: 1.0625rem; }

.accordion { border-top: 1px solid var(--stone-deep); margin: 0 0 1.5em; }
.accordion__item { border-bottom: 1px solid var(--stone-deep); }
.accordion__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 4px; cursor: pointer; font-weight: 700; font-size: 1.0625rem; list-style: none; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translate(-2px, -2px); }
.accordion__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.accordion__body { padding: 0 4px 16px; }
.accordion__body ul { padding-left: 1.2em; }

.notice { margin: 0 0 1.5em; padding: 14px 18px; border-left: 5px solid var(--blue); background: var(--stone); }
.notice--alert { border-left-color: var(--alert); }
.notice__title { margin: 0 0 4px; font-weight: 700; }
.notice p:last-child { margin-bottom: 0; }

.document-list { list-style: none; margin: 0 0 1.5em; padding: 0; border-top: 1px solid var(--stone-deep); }
.document-list li { padding: 10px 0; border-bottom: 1px solid var(--stone-deep); }
.document-list__meta { display: block; font-size: 0.875rem; color: var(--ink-soft); }

.related { margin-top: 2.5em; padding-top: 16px; border-top: 3px solid var(--blue); }
.related__heading { font-size: 1.125rem; }
.related ul { margin: 0; padding-left: 1.1em; }
.external-note { font-size: 0.8125rem; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums lining-nums; }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--stone-deep); }
thead th { border-bottom: 2px solid var(--ink); font-size: 0.875rem; }
tbody th { font-weight: 600; }
.num { text-align: right; }
.table-note { font-size: 0.8125rem; color: var(--ink-soft); margin: 8px 0 0; }

.button { display: inline-block; padding: 11px 20px; background: var(--blue); color: var(--white); font-weight: 700; text-decoration: none; border: 2px solid var(--blue); }
.button:hover { background: var(--blue-deep); color: var(--white); }
.text-link-arrow { font-weight: 700; }
.text-link-arrow::after { content: ' \2192'; }

.small-print { font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- News ---------- */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone-deep); }
.news-list__item { padding: 16px 0 18px; border-bottom: 1px solid var(--stone-deep); }
.news-list__meta { margin: 0 0 4px; font-size: 0.875rem; color: var(--ink-soft); }
.news-list__category { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--stone-deep); font-weight: 600; color: var(--ink); }
.news-list__title { margin: 0 0 6px; font-size: 1.25rem; }
.news-list__title a { color: var(--ink); text-decoration: none; }
.news-list__title a:hover { color: var(--link); text-decoration: underline; }
.news-list__standfirst { margin: 0; color: var(--ink-soft); max-width: 44em; }

.news-filter { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 0.9375rem; }

.article { max-width: 46rem; }
.article__meta { margin: -8px 0 24px; font-size: 0.9375rem; color: var(--ink-soft); }
.article__meta strong { color: var(--ink); }
.article__body { font-family: var(--serif); font-size: 1.125rem; line-height: 1.65; }
.article__body ul { font-family: var(--sans); font-size: 1rem; }
.article__plate { margin: 0 0 28px; border: 1px solid var(--stone-deep); padding: 16px; background: var(--white); }
.article__plate svg, .lead-story figure svg { display: block; width: 100%; height: 280px; }
.article__plate figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-soft); }
.news-contact { margin-top: 1.6em; font-family: var(--sans); font-size: 0.9375rem; color: var(--ink-soft); }

.news-list--compact { border-top: 0; }
.news-list--compact .news-list__item { padding: 10px 0 12px; }
.news-list--compact .news-list__title { font-size: 1rem; margin: 0; }
.news-list--compact .news-list__category { display: none; }
.article__pager { margin-top: 2em; padding-top: 12px; border-top: 1px solid var(--stone-deep); font-size: 0.9375rem; }
.article__pager p { margin: 0 0 6px; }
.events-note { margin-top: 12px; }

/* ---------- Drawings ---------- */

.engraving { display: block; width: 100%; height: auto; }
.figure { margin: 0 0 24px; }
.figure figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Home page ---------- */

.home-intro { padding: 40px 0 8px; }
.home-intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.home-statement { font-size: 3rem; line-height: 1.08; letter-spacing: -0.02em; margin: 0; max-width: 14em; }
.home-intro__text { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55; margin: 0 0 6px; }
.home-intro__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-weight: 700; }
.home-panorama { margin: 28px 0 0; }
@media (max-width: 860px) { .home-panorama svg { height: 210px; } }
.home-panorama figcaption { padding: 8px 0 0; font-size: 0.8125rem; color: var(--ink-soft); border-top: 1px solid var(--stone-deep); }

.home-routes { background: var(--stone); padding: 32px 0; margin-top: 28px; }
.home-routes__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.home-routes h2 { font-size: 1.5rem; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.route-list li { border-top: 1px solid var(--stone-deep); }
.route-list a { display: block; padding: 12px 0; font-weight: 700; font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.route-list a span { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--ink-soft); }
.route-list a:hover { color: var(--link); }
.route-list a:hover span { color: var(--ink-soft); }
.subject-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.subject-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--stone-deep); background: var(--white); color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.subject-links a:hover { border-color: var(--blue); }

.home-news { padding: 44px 0 20px; }
.home-news__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 3px solid var(--blue); margin-bottom: 0; padding-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 1.625rem; }
.section-heading a { font-weight: 700; font-size: 0.9375rem; }
.lead-story { padding-top: 18px; }
.lead-story figure { margin: 0 0 14px; border: 1px solid var(--stone-deep); padding: 12px; }
.lead-story h3 { font-size: 1.625rem; margin-bottom: 8px; }
.lead-story h3 a { color: var(--ink); text-decoration: none; }
.lead-story h3 a:hover { color: var(--link); text-decoration: underline; }
.lead-story p { font-family: var(--serif); font-size: 1.0625rem; }

.home-pair { padding: 32px 0 48px; }
.home-pair__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.feature { padding-top: 18px; }
.feature__item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--stone-deep); }
.feature__item:last-child { border-bottom: 0; }
.feature__item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.feature__item p { margin-bottom: 8px; }
.feature__plate { border: 1px solid var(--stone-deep); padding: 8px; align-self: start; }

.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--stone-deep); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border: 1px solid var(--blue); color: var(--blue); line-height: 1; }
.event-date__day { font-size: 1.5rem; font-weight: 700; }
.event-date__month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.event-list h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.event-list p { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }

.figures-band { border-top: 1px solid var(--stone-deep); border-bottom: 1px solid var(--stone-deep); }
.figures { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.figures > div { padding: 20px 20px 20px 0; border-right: 1px solid var(--stone-deep); }
.figures > div + div { padding-left: 20px; }
.figures > div:last-child { border-right: 0; }
.figures dt { font-size: 0.875rem; color: var(--ink-soft); }
.figures dd { margin: 0; font-size: 1.75rem; font-weight: 700; color: var(--blue); order: -1; }
.figures div { display: flex; flex-direction: column; }

/* ---------- Section landing banner ---------- */

.landing-banner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: end; margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--stone-deep); }
.landing-banner__drawing { margin: 0; }
.landing-banner__drawing figcaption { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 6px; }
.landing-banner__intro { font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }

.people-list { list-style: none; margin: 0 0 1.5em; padding: 0 !important; border-top: 1px solid var(--stone-deep); columns: 2; column-gap: 32px; }
.people-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--stone-deep); margin: 0 !important; }
.people-list strong { display: block; }
.people-list span { font-size: 0.9375rem; color: var(--ink-soft); }

.course-apply { border: 2px solid var(--blue); padding: 18px 20px; margin: 0 0 20px; }
.course-apply h2 { font-size: 1.0625rem; margin-bottom: 8px; }
.course-apply p { font-size: 0.9375rem; }
.course-apply p:last-child { margin-bottom: 0; }

/* ---------- Interior components added for the full site ---------- */

.figure--narrow { max-width: 420px; }
.figure--narrow svg { display: block; }
.role-line { margin: -6px 0 8px; font-weight: 600; color: var(--ink-soft); }
.minutes-meta { color: var(--ink-soft); }
.minutes { margin: 1.5em 0; border-top: 1px solid var(--stone-deep); }
.minutes > div { padding: 12px 0; border-bottom: 1px solid var(--stone-deep); }
.minutes dt { font-weight: 700; }
.minutes dd { margin: 4px 0 0; }
.minutes__number { display: inline-block; min-width: 3.2em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.timeline { margin: 1em 0 1.5em; border-left: 3px solid var(--stone-deep); }
.timeline > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 8px 0 8px 16px; }
.timeline dt { font-weight: 700; color: var(--blue); }
.timeline dd { margin: 0; }
.charter { font-family: var(--serif); font-size: 1.0625rem; background: var(--stone); padding: 20px 24px !important; border-left-color: var(--ochre) !important; }
.charter p:last-child { margin-bottom: 0; }
.book-list { list-style: none; margin: 0; padding: 0 !important; }
.book { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--stone-deep); margin: 0 !important; }
.book__cover svg { display: block; width: 120px; height: auto; border: 1px solid var(--stone-deep); }
.book__title { font-size: 1.375rem; margin: 0 0 4px !important; }
.book__title span { display: block; font-size: 1rem; font-weight: 400; font-family: var(--serif); font-style: italic; margin-top: 2px; }
.book__author { margin: 0 0 4px; font-weight: 600; }
.book__meta { margin: 0 0 8px; font-size: 0.875rem; color: var(--ink-soft); }
.review-current { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.review-current__cover svg { display: block; width: 200px; height: auto; }
.review-current h2 { margin-top: 0 !important; }
.map-key { columns: 2; column-gap: 32px; padding-left: 1.6em !important; }
.map-key li { break-inside: avoid; }
.map, .plan, .diagram, .chart, .figure-drawing { display: block; width: 100%; height: auto; }
.vacancy-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--stone-deep); }
.vacancy-list li { padding: 14px 0; border-bottom: 1px solid var(--stone-deep); margin: 0 !important; }
.vacancy-list h3 { margin: 0 0 4px !important; font-size: 1.125rem; }
.vacancy-list p { margin: 0 0 4px; }
.event-entries { list-style: none; padding: 0 !important; border-top: 1px solid var(--stone-deep); }
.event-entry { padding: 14px 0; border-bottom: 1px solid var(--stone-deep); margin: 0 !important; }
.event-entry h3 { margin: 4px 0 2px !important; font-size: 1.1875rem; }
.event-entry p { margin: 0 0 4px; }
.search-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.search-form input { width: 100%; max-width: 520px; padding: 10px 12px; font: inherit; border: 2px solid var(--ink); }
.search-results { list-style: none; padding: 0 !important; border-top: 1px solid var(--stone-deep); }
.search-results li { padding: 10px 0; border-bottom: 1px solid var(--stone-deep); margin: 0 !important; }
.search-results li span { display: block; font-size: 0.875rem; color: var(--ink-soft); }
.paper-change { display: block; padding: 6px 10px; margin: 4px 0; }
.paper-change--old { text-decoration: line-through; color: var(--ink-soft); background: #f6eeee; }
.paper-change--new { background: #eef3ea; }

/* ---------- Committee Papers Service ---------- */

.cps { background: #fbfbfa; }
.cps-header { background: var(--white); border-top: 6px solid var(--blue); border-bottom: 1px solid var(--stone-deep); }
.cps-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.cps-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.cps-brand__arms { width: 28px; height: auto; }
.cps-brand__name { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.cps-brand__service { display: block; font-weight: 700; }
.cps-user { font-size: 0.875rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cps-main { padding-top: 28px; padding-bottom: 48px; max-width: 900px; }
.cps-main h1 { font-size: 1.75rem; }
.cps-signin { max-width: 440px; }
.cps-form label { display: block; font-weight: 700; margin: 14px 0 4px; }
.cps-form input { width: 100%; padding: 9px 10px; font: inherit; border: 2px solid var(--ink); background: var(--white); }
.cps-button { padding: 9px 18px; font: inherit; font-weight: 700; color: var(--white); background: var(--blue); border: 2px solid var(--blue); cursor: pointer; margin-top: 14px; margin-right: 10px; }
.cps-button:disabled { opacity: 0.7; cursor: progress; }
.cps-button--quiet { margin: 0; padding: 4px 10px; color: var(--blue); background: var(--white); }
.cps-error { color: var(--alert); font-weight: 600; margin-top: 12px; }
.cps-intro { color: var(--ink-soft); }
.cps-group { margin-top: 24px; }
.cps-group h2 { font-size: 1.125rem; padding-bottom: 6px; border-bottom: 2px solid var(--blue); }
.cps-list { list-style: none; margin: 0; padding: 0; }
.cps-list li { padding: 10px 0; border-bottom: 1px solid var(--stone-deep); }
.cps-list__meta { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.cps-back { font-size: 0.875rem; }
.cps-restricted { display: inline-block; padding: 4px 10px; background: var(--alert); color: var(--white); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cps-paper h1 { font-family: var(--sans); }
.cps-paper__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; margin: 0 0 20px; padding: 12px 16px; background: var(--white); border: 1px solid var(--stone-deep); font-size: 0.875rem; }
.cps-paper__meta div { padding: 4px 0; }
.cps-paper__meta dt { font-weight: 700; color: var(--ink-soft); }
.cps-paper__meta dd { margin: 0; }
.cps-paper__body { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6; background: var(--white); border: 1px solid var(--stone-deep); padding: 20px 24px; }
.cps-locked h1 { margin-bottom: 12px; }
.cps-footer { border-top: 1px solid var(--stone-deep); font-size: 0.8125rem; color: var(--ink-soft); }
.cps-footer p { padding: 14px 0; margin: 0; }

@media (max-width: 860px) {
  .book { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .book__cover svg { width: 84px; }
  .review-current { grid-template-columns: minmax(0, 1fr); }
  .review-current__cover svg { width: 160px; }
  .map-key { columns: 1; }
  .timeline > div { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .cps-paper__body { padding: 14px 16px; }
}

/* ---------- Page foot and footer ---------- */

.page-foot { padding-bottom: 20px; }
.page-foot p { margin: 0; padding-top: 12px; border-top: 1px solid var(--stone-deep); font-size: 0.8125rem; color: var(--ink-soft); }

.site-footer { background: var(--blue-deep); color: #dfe3ea; font-size: 0.9375rem; margin-top: 8px; }
.site-footer a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.site-footer a:hover { color: #ffffff; text-decoration-color: #ffffff; }
.site-footer a:focus-visible { color: var(--ink); }
.site-footer h2 { color: #ffffff; font-size: 1rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.site-footer__columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__address p { margin-bottom: 12px; }
.site-footer__legal { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.8125rem; }
.site-footer__small-print { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 !important; }
.site-footer__copyright { margin: 0; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
  .interior--with-aside { grid-template-columns: 240px minmax(0, 1fr); }
  .interior--with-aside .interior__aside { grid-column: 2; }
  .site-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { border-right: 0; }
  .figures > div:nth-child(4) { padding-left: 0; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  h1 { font-size: 2rem; }
  .utility { display: none; }
  .masthead__inner { padding-top: 12px; padding-bottom: 12px; }
  .brand { gap: 10px; }
  .brand__arms { width: 38px; }
  .brand__name { font-size: 1.45rem; letter-spacing: 0.13em; }
  .brand__sub { font-size: 0.72rem; letter-spacing: 0.38em; margin-top: 4px; }
  .brand__founded { display: none; }
  .masthead__search { padding: 8px; }
  .masthead__search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .primary-nav__list { display: none; }
  .primary-nav__fold { display: block; }
  .primary-nav__fold summary { padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
  .primary-nav__fold summary::-webkit-details-marker { display: none; }
  .primary-nav__fold summary::before { content: ''; box-sizing: border-box; width: 18px; height: 14px; padding: 4px 0; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: currentColor; background-clip: content-box; }
  .primary-nav__fold ul { list-style: none; margin: 0; padding: 0 0 12px; }
  .primary-nav__fold a { display: block; padding: 10px 0; color: var(--white); text-decoration: none; border-top: 1px solid rgba(255, 255, 255, 0.2); font-weight: 600; }
  .primary-nav__minor a { font-weight: 400; font-size: 0.9375rem; }
  .interior, .interior--with-aside { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 20px; }
  .interior--with-aside .interior__aside { grid-column: auto; margin-top: 24px; }
  .interior__nav { order: 0; margin-bottom: 20px; }
  .section-nav__full { display: none; }
  .section-nav__fold { display: block; border: 1px solid var(--stone-deep); }
  .section-nav__fold summary { padding: 12px 14px; font-weight: 700; cursor: pointer; }
  .section-nav__fold > *:not(summary) { margin: 0 14px; }
  .section-nav__fold ul { padding-bottom: 8px; }
  .page-title__lead { font-size: 1.125rem; }
  .home-statement { font-size: 2.125rem; }
  .home-intro { padding-top: 24px; }
  .home-intro__grid, .home-routes__grid, .home-news__grid, .home-pair__grid, .landing-banner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .route-list { grid-template-columns: minmax(0, 1fr); }
  .feature__item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature__plate { max-width: 240px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div, .figures > div + div { padding: 14px 12px 14px 0; border-right: 0; border-bottom: 1px solid var(--stone-deep); }
  .people-list { columns: 1; }
  .site-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .site-footer__address { grid-column: 1 / -1; }
}

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

@media print {
  .utility, .primary-nav, .section-nav, .site-footer, .skip-link, .masthead__search { display: none; }
  .interior, .interior--with-aside { display: block; }
  a { color: inherit; }
}
