@font-face {
  font-family: "Erewhon";
  src: url("/fonts/Erewhon-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Erewhon";
  src: url("/fonts/Erewhon-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Erewhon";
  src: url("/fonts/Erewhon-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
/* British Somali Medical Association: site styles */

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #002248;          /* the logo's navy */
  --navy-deep: #00172f;
  --navy-deeper: #000d1c;
  --navy-soft: #1d3a66;
  --ink: #0d1b2e;
  --muted: #47566b;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c6d8;
  --ground: #ffffff;
  --pale: #d9e2ed;            /* owner: the light blue, darker */
  --rule: #d5dde8;
  --rule-navy: rgba(255, 255, 255, 0.18);
  --gold: #f2b230;
  --gold-hover: #ffc24d;
  --link: #0b4f9c;
  --focus: #f2b230;

  /* As on uva.nl: Utopia (here Erewhon, its open-licence version) for headings and reading text,
     Source Sans for the interface */
  --font-head: "Erewhon", "Utopia", Georgia, serif;
  --font-serif: "Erewhon", "Utopia", Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 3rem + 4vw, 7rem);

  --wrap: 1200px;
  --header-size: 6.5rem;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Navy body, light page: iPhone Safari colours the strip behind the clock from the body background */
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--navy); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-4); font-weight: 800; }
h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
}
.skip:focus { top: 0.5rem; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  --btn-border: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--gold-hover); --btn-border: var(--gold-hover); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform 200ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; --btn-border: var(--navy); }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,0.75); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-border: #fff; }
.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; --btn-border: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-soft); --btn-border: var(--navy-soft); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 200ms var(--ease-out); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header and navigation ----------
   As on the previous site: the header sits over the hero photograph (or the navy page head),
   white links and the white logo; it turns solid navy once the page scrolls. */

.header {
  position: fixed;   /* floats over the first band, so shrinking on scroll never moves the page */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.header.is-stuck { background: var(--navy-deep); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6); }
.header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-size);
  transition: min-height 250ms var(--ease-out);
}
/* Scrolled: half the height, no logo (owner, 2026-10-24) */
.header.is-stuck .wrap { min-height: calc(var(--header-size) / 2); }
.header.is-stuck .brand { display: none; }
/* Phones and tablets: with the logo gone, Donate / Join move right, beside the menu button */
@media (max-width: 1080px) { .header.is-stuck .header__actions { margin-left: auto; } .header.is-stuck .menu-toggle { margin-left: 0; } }
/* Homepage: a larger logo while the header sits over the hero */
.is-home .header:not(.is-stuck) .brand img { width: 128px; height: 128px; }
.is-home .header:not(.is-stuck) .wrap { min-height: 9.5rem; }
@media (max-width: 480px) { .is-home .header:not(.is-stuck) .brand img { width: 92px; height: 92px; } .is-home .header:not(.is-stuck) .wrap { min-height: 7rem; } }
.hero .wrap { padding-top: calc(9.5rem + var(--space-4)); }
.page-head .wrap { padding-top: calc(var(--header-size) + var(--space-4)); }
.page-head--photo .wrap { padding-top: calc(var(--header-size) + var(--space-5)); }
.brand { display: block; flex: none; }
.brand img { width: 84px; height: 84px; }
/* Homepage: on load the logo's text ring turns into place while the tree grows up from the staff, then all stays still
   (owner, 2026-10-25). One image split by round masks: the ring is the outer 30 % of the radius (the img), the centre is
   a copy in ::after. Reduced motion keeps the plain logo. */
@media (prefers-reduced-motion: no-preference) {
  .is-home .brand { position: relative; }
  .is-home .brand img { -webkit-mask: radial-gradient(circle closest-side, transparent 70%, #000 70.6%);
    mask: radial-gradient(circle closest-side, transparent 70%, #000 70.6%); }
  .is-home .brand::after { content: ""; position: absolute; inset: 0; background: url(/img/logo-white.png) center / contain no-repeat;
    -webkit-mask: radial-gradient(circle closest-side, #000 70.6%, transparent 71.2%); mask: radial-gradient(circle closest-side, #000 70.6%, transparent 71.2%); }
  /* first visit only (owner, 2026-10-25): html.first-visit comes from the head script; site.js drops it once played or the header sticks */
  .first-visit .is-home .brand img { animation: brand-ring 1400ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both; }
  .first-visit .is-home .brand::after { animation: brand-grow 1200ms cubic-bezier(0.22, 1, 0.36, 1) 700ms both; }
}
@keyframes brand-ring { from { transform: rotate(-150deg); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(0); opacity: 1; } }
@keyframes brand-grow { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item { position: relative; }
.nav__top {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.6rem 0.75rem;
  background: none;
  border: 0;
  font: 600 1.0625rem/1 var(--font-head);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 3px;
}
.nav__top svg { width: 0.75em; height: 0.75em; transition: transform 200ms var(--ease-out); }
.nav__top:hover, .nav__item.is-open > .nav__top { background: rgba(255, 255, 255, 0.12); }
.nav__top[aria-current="page"], .nav__item.is-current > .nav__top { box-shadow: inset 0 -3px 0 var(--gold); }
.nav__item.is-open > .nav__top svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 17rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  box-shadow: 0 18px 40px -18px rgba(0, 34, 72, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.nav__item.is-open > .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
.nav__menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 2px;
  line-height: 1.3;
}
.nav__menu a span { display: block; font-size: var(--step--1); color: var(--muted); }
.nav__menu a strong { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.nav__menu a:hover { background: var(--pale); }
.nav__menu a[aria-current="page"] strong { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }

.header__actions { display: flex; gap: 0.6rem; flex: none; }
@media (min-width: 1081px) { .header__actions { margin-left: clamp(0.5rem, 5vw - 2.5rem, 3.5rem); } }   /* owner, 2026-10-25: Donate / Join set further apart from the menu */

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  font: 700 1rem/1 var(--font-head);
  color: #fff;
  cursor: pointer;
}
.menu-toggle svg { width: 1.2em; height: 1.2em; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h, 6.5rem) 0 0 0;
    margin: 0;
    background: var(--navy-deep);
    overflow-y: auto;
    padding: var(--space-2) var(--gutter) var(--space-5);
    border-top: 1px solid var(--rule-navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--rule-navy); }
  .nav__menu a { color: #fff; }
  .nav__menu a strong { color: #fff; }
  .nav__menu a span { color: var(--on-navy-muted); }
  .nav__menu a:hover { background: rgba(255, 255, 255, 0.08); }
  .nav__mobile-actions .btn--outline { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.75); }
  .nav__top { width: 100%; justify-content: space-between; padding: 1.1rem 0; font-size: 1.1875rem; }
  .nav__top:hover, .nav__item.is-open > .nav__top { background: none; }
  .nav__top[aria-current="page"], .nav__item.is-current > .nav__top { box-shadow: none; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
  .nav__menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.75rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__item.is-open > .nav__menu { display: block; }
  .nav__menu a { padding: 0.6rem 0; }
  .nav__mobile-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
}
@media (min-width: 1081px) { .nav__mobile-actions { display: none; } }
@media (max-width: 480px) {
  .header .wrap { gap: 0.6rem; }
  .header__actions { gap: 0.4rem; }
  .header__actions .btn { padding-inline: 0.7rem; min-height: 2.5rem; font-size: 0.875rem; }
  .brand img { width: 64px; height: 64px; }
  .menu-toggle { padding: 0.5rem; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
main { display: block; background: var(--ground); }
body.nav-open { overflow: hidden; }
body.nav-open .header { background: var(--navy-deep); }
@media (max-width: 480px) { :root { --header-size: 5.25rem; } }

/* ---------- Hero: full-width photographs under a navy scrim ---------- */

.hero { position: relative; background: var(--navy); color: #fff; isolation: isolate; }
.hero__photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero__photo .frame { position: relative; height: 100%; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* Soft-edge sweep: each photo is revealed by a wide feathered mask moving from right to left */
.hero__slides img { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 42%, #000 58%); mask-image: linear-gradient(90deg, transparent 42%, #000 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0; mask-position: 0% 0; }
.hero__slides img:first-child { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.hero__progress { position: absolute; right: var(--gutter); bottom: var(--space-4); display: flex; gap: 0.5rem; z-index: 1; }
.hero__progress span { display: block; width: 2.75rem; height: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hero__progress span::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
@media (max-width: 700px) { .hero__progress { display: none; } }
.hero__photo .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;   /* above the sliding photographs */
  background:
    linear-gradient(90deg, rgba(0, 23, 47, 0.92) 0%, rgba(0, 23, 47, 0.78) 38%, rgba(0, 23, 47, 0.12) 75%),
    linear-gradient(0deg, rgba(0, 23, 47, 0.55) 0%, rgba(0, 23, 47, 0) 45%);
}
.hero .wrap {
  min-height: max(640px, min(100svh, 1040px));   /* owner: taller hero */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-5);
}
.hero h1 { color: #fff; max-width: 13ch; }
.hero h1::before { content: ""; display: block; width: 5rem; height: 4px; margin-bottom: var(--space-3); background: var(--gold); }
/* "British Somali" on a white highlight (owner, 2026-10-25) */
.hero__mark { background: #fff; color: var(--navy); padding: 0 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* The g of "Uniting" dips into the highlight on the next line: the part over the white is painted navy, above it (owner,
   2026-10-25). An inline background spans the same content area as the highlight's, which starts one line-height (1.08em)
   lower, so the colour change sits exactly on the highlight's top edge. */
.hero__g { position: relative; z-index: 1; color: transparent; background: linear-gradient(#fff 1.08em, var(--navy) 1.08em);
  -webkit-background-clip: text; background-clip: text; }
/* First visit only (site.js adds .is-first): a light sweep crosses the highlight once, after the logo (owner, 2026-10-25) */
.hero__mark { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .hero__mark.is-first::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
    background: linear-gradient(105deg, transparent 35%, rgba(242, 178, 48, 0.55) 50%, transparent 65%) no-repeat;
    background-size: 300% 100%; animation: mark-sweep 1500ms cubic-bezier(0.45, 0, 0.25, 1) 1200ms both; }
}
@keyframes mark-sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.hero__lead { max-width: 34rem; margin-top: var(--space-3); font-size: var(--step-1); line-height: 1.5; color: #e3e9f2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); }
.hero .btn--outline { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.75); }
.hero .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-border: #fff; }
@media (max-width: 700px) {
  .hero__photo .frame::after { background: linear-gradient(0deg, rgba(0, 23, 47, 0.95) 0%, rgba(0, 23, 47, 0.85) 50%, rgba(0, 23, 47, 0.25) 100%); }
  .hero .wrap { min-height: max(560px, min(100svh, 860px)); }
}

.page-head { position: relative; background: var(--navy); color: #fff; isolation: isolate; }
.page-head .wrap { padding-bottom: var(--space-5); }
.page-head h1 { color: #fff; font-size: var(--step-5); max-width: 22ch; }
.page-head__lead { max-width: 50rem; margin-top: var(--space-2); font-size: var(--step-1); color: #e3e9f2; line-height: 1.5; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
.page-head .btn--outline { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.75); }
.page-head .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-border: #fff; }
.page-head__photo { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-head__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 23, 47, 0.94) 0%, rgba(0, 23, 47, 0.82) 45%, rgba(0, 23, 47, 0.3) 100%);
}
.page-head--photo .wrap { padding-bottom: var(--space-5); min-height: min(34rem, 72svh); display: flex; flex-direction: column; justify-content: flex-end; }
.crumbs { margin: 0 0 var(--space-2); padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; font-size: var(--step--1); color: var(--on-navy-muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.4em; opacity: 0.6; }
.crumbs a { color: var(--on-navy-muted); }
.crumbs a:hover { color: #fff; }

/* Figures and the member quote sit on navy bands */
.band-facts { background: var(--navy); }
.band-facts .facts { border: 0; }
.band-facts .facts li { color: var(--on-navy-muted); }
.band-facts .facts li + li { border-left-color: var(--rule-navy); }
.band-facts .facts b { color: var(--gold); }
.band-facts .facts b { font-size: var(--step-4); line-height: 1; margin-bottom: 0.4rem; }   /* larger figures (owner, 2026-10-25) */   /* homepage gold, kept sparse: these figures and the bar over the hero title */
@media (max-width: 860px) { .band-facts .facts li:nth-child(n+3) { border-top-color: var(--rule-navy); } }
.band-quote { background: var(--navy-deep); }

/* ---------- Sections ---------- */

.section { padding-block: var(--space-6); }
.section--pale { background: var(--pale); }
.section--navy { background: var(--navy-deep); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: #fff; }
.section--tight { padding-block: var(--space-5); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}
.section-head h2 { max-width: 34ch; font-size: var(--step-3); }
.section-head h2.h2--one-line { max-width: none; }   /* owner, 2026-10-25: the London and UK map titles on one line */
.section-head p { max-width: 58rem; color: var(--muted); margin-top: var(--space-2); font-size: var(--step-1); line-height: 1.5; }
.section--navy .section-head p { color: var(--on-navy-muted); }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }

/* Prose */
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-3); margin: var(--space-5) 0 var(--space-2); }
.prose h3 { margin: var(--space-4) 0 var(--space-1); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--navy); }
.prose strong { color: var(--navy); }

/* Two-column: text and photo */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;   /* mock (owner, 2026-10-25): media and text share a top edge, never centred */
}
.split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--top { align-items: start; }
.split--media-wide { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.split h2 { margin-bottom: var(--space-3); }
.split .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
@media (max-width: 860px) {
  .split, .split--wide-text, .split--media-wide { grid-template-columns: 1fr; gap: var(--space-4); }
  .split--media-first .split__media { order: -1; }
}

/* ---------- Audience routes ---------- */

.routes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 3px solid var(--navy);
}
.route {
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.route + .route { padding-left: var(--space-3); border-left: 1px solid var(--rule); }
.route h3 { font-size: var(--step-1); }
.route h3 a { color: inherit; text-decoration: none; }
.route h3 a::after { content: ""; position: absolute; inset: 0; }
.route p { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.route .link-arrow { margin-top: auto; font-size: var(--step--1); }
.route:hover h3 a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.route:hover .link-arrow svg { transform: translateX(3px); }
@media (max-width: 1080px) {
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route, .route + .route { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .route:nth-child(even) { padding-left: var(--space-3); border-left: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .routes { grid-template-columns: 1fr; }
  .route:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Facts line ---------- */

.facts {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.45;
}
.facts li + li { padding-left: var(--space-3); border-left: 1px solid var(--rule); }
.facts b {
  display: block;
  font-family: var(--font-head);
  font-size: var(--step-3);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  font-variant-numeric: lining-nums;
}
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- Events ---------- */

.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.event {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}
.event--poster { grid-template-columns: 15rem 6rem minmax(0, 1fr) auto; column-gap: var(--space-5); align-items: center; }
.event__poster { display: block; box-shadow: 0 12px 28px -14px rgba(0, 34, 72, 0.55); transition: transform 200ms var(--ease-out); }
.event__poster:hover { transform: translateY(-3px); }
.event__poster img { width: 100%; height: auto; }
.event__price { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .event--poster { grid-template-columns: 9rem 4.25rem minmax(0, 1fr); column-gap: var(--space-3); }
  .event--poster .btn { grid-column: 3; }
}
.event__date {
  display: grid;
  justify-items: center;
  padding: 0.6rem 0.4rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  line-height: 1;
  text-align: center;
}
.event__date .d { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.event__date .m { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; color: var(--gold); }
.event__date .y { font-size: 0.75rem; color: var(--on-navy-muted); margin-top: 0.2rem; }
.event h3 { font-size: var(--step-3); }
.event--poster p { margin-top: 0.6rem; }
.event p { color: var(--muted); margin-top: 0.3rem; }
.event__when { font-weight: 600; color: var(--ink); }
.events-empty { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.events-empty[hidden] { display: none; }
@media (max-width: 640px) {
  .event { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .event .btn { grid-column: 2; justify-self: start; }
  .event__date .d { font-size: 1.6rem; }
}

/* ---------- Programme list ---------- */

.programmes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.programme {
  position: relative;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}
.programme__for { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.programme :is(h3, h4) { font-size: var(--step-2); }
.programme :is(h3, h4) a { color: inherit; text-decoration: none; }
.programme :is(h3, h4) a::after { content: ""; position: absolute; inset: 0; }
.programme p { color: var(--muted); margin-top: 0.35rem; max-width: 52rem; }
.programme__since { font-size: var(--step--1); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.programme svg { width: 1.25rem; height: 1.25rem; color: var(--navy); transition: transform 200ms var(--ease-out); }
.programme:hover :is(h3, h4) a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.programme:hover .programme__end svg { transform: translateX(4px); }
.programme__end { display: flex; align-items: center; gap: var(--space-3); }
@media (max-width: 760px) {
  .programme { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem var(--space-2); }
  .programme > div { grid-column: 1 / -1; grid-row: 1; }
  .programme__for { grid-column: 1; grid-row: 2; }
  .programme__end { grid-column: 2; grid-row: 2; gap: var(--space-2); }
}

/* ---------- Photo band ---------- */

.photo-band {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
}
.photo-band figure { margin: 0; position: relative; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figure:first-child { grid-row: span 2; }
.photo-band figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.photo-band figure:not(:first-child) img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .photo-band figure:first-child img { aspect-ratio: 16 / 10; }
}

.photo-band--captioned figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.55rem;
  background: rgba(0, 23, 47, 0.82);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}


/* Homepage conference block: the photographs fill the section's height */
.split--media-wide { align-items: stretch; }
.photo-band--home { height: 100%; min-height: 36rem; grid-template-rows: 1fr 1fr; grid-template-columns: 44fr 28fr 28fr; }
.photo-band--home figure:not(:first-child) img { aspect-ratio: auto; }
.photo-band--home img { height: 100%; }
.split--media-wide > div:last-child { align-self: center; padding-block: var(--space-4); }
@media (max-width: 860px) {
  .photo-band--home { min-height: 0; height: auto; grid-template-rows: auto; }
  .photo-band--home figure:not(:first-child) img { aspect-ratio: 4 / 3; }
}

/* ---------- Membership ---------- */

.tiers { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy); }
.tier {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr) 11rem;
  gap: var(--space-2) var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}
.tier__price { text-align: right; }
.tier h3 { font-size: var(--step-2); }
.tier p { color: var(--muted); }
.tier__price { font-family: var(--font-head); font-weight: 800; font-size: var(--step-3); color: var(--navy); letter-spacing: -0.02em; white-space: nowrap; }
.tier__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); letter-spacing: 0; }
@media (max-width: 960px) { .tier { grid-template-columns: minmax(0, 1fr) auto; } .tier p { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Member quotes: a slow, continuous horizontal scroll ---------- */

.quotes-title { text-align: center; font-size: var(--step-3); margin-bottom: var(--space-4); }
.band-quote .quotes-title { color: #fff; }
.quotes-title em { font-style: normal; color: var(--gold); }
.quotes {
  --quote-gap: clamp(3rem, 2rem + 4vw, 7rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.quotes__track, .quotes__copy ul {
  display: flex;
  gap: var(--quote-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.quotes__track { width: max-content; }
.quotes__copy { display: flex; }
.quote-card {
  width: min(26rem, 78vw);
  flex: none;
  padding: var(--space-2) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.quote-card blockquote p::before { content: "“"; color: var(--gold); }
.quote-card blockquote p::after { content: "”"; color: var(--gold); }
.quote-card__who { margin: 0; font-size: var(--step--1); color: var(--on-navy-muted); }
.quote-card__who strong { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .quotes__track { animation: quotes-drift 70s linear infinite; }
  .quotes:hover .quotes__track, .quotes:focus-within .quotes__track { animation-play-state: paused; }
}
/* One full list width per cycle: the copy then sits exactly where the original began */
/* Fewer than three real quotes: no scroll, centred */
.quotes--still { -webkit-mask-image: none; mask-image: none; }
.quotes--still .quotes__track { width: auto; justify-content: center; animation: none; }
@keyframes quotes-drift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--quote-gap) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .quotes { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .quotes__copy { display: none; }
}

/* ---------- Partners: original colours, centred, matched optical size ---------- */

.partners-title { font-size: var(--step-1); text-align: center; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-bottom: var(--space-4); }
.partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* equal cells: every row the same length (10 logos = 5 x 2) */
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  gap: var(--space-3) var(--space-4);
}
.partners li { display: flex; align-items: center; justify-content: center; min-height: 96px; }
.partners a { display: flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: 4px; transition: transform 200ms var(--ease-out); }
.partners a:hover { transform: translateY(-2px); }
.partners img { height: var(--h, 48px); width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 860px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; } }
/* Owner, 2026-10-25: ESMC first and two rows tall on the left, the other eight in a 4 x 2 grid beside it;
   on narrow screens ESMC takes the whole top row. */
@media (min-width: 861px) {
  .partners { grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr)); }
  .partners__big { grid-column: 1; grid-row: 1 / span 2; }
}
@media (max-width: 860px) {
  .partners__big { grid-column: 1 / -1; }
  .partners__big img { height: calc(var(--h) * 0.62); }
}

@media (max-width: 560px) {
  .partners { gap: var(--space-2); }
  .partners li { min-height: 72px; }
  .partners img { height: calc(var(--h, 48px) * 0.62); }
}

/* ---------- Support band ---------- */

.support {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-navy);
}
.support > div { padding: var(--space-4) var(--space-4) 0 0; }
.support > div + div { padding-left: var(--space-4); border-left: 1px solid var(--rule-navy); }
.support h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.support p { color: var(--on-navy-muted); margin-bottom: var(--space-3); }
@media (max-width: 860px) {
  .support { grid-template-columns: 1fr; }
  .support > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-navy); margin-top: var(--space-4); }
}

.support--light { border-top: 3px solid var(--navy); }
.support--light > div + div { border-left-color: var(--rule); }
.support--light p { color: var(--muted); }
/* Homepage support band: light, compact */
.section--support { padding-block: var(--space-5); }
.section--support .section-head { margin-bottom: var(--space-3); }
.section--support .support > div { padding-top: var(--space-3); }
.section--support .support p { margin-bottom: var(--space-2); }
@media (max-width: 860px) { .support--light > div + div { border-top-color: var(--rule); } }

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.5rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--rule); }
.timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(7.5rem - 6px);
  top: 0.45rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy);
}
.timeline time { font-family: var(--font-head); font-weight: 800; color: var(--navy); padding-right: var(--space-2); text-align: right; line-height: 1.3; }
.timeline time span { display: block; font-weight: 600; font-size: var(--step--1); color: var(--muted); }
.timeline p { max-width: 52rem; padding-left: var(--space-2); }
.timeline strong { font-weight: 700; color: var(--navy); }
@media (max-width: 600px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; padding-left: 2rem; }
  .timeline li::before { left: 0; }
  .timeline time { text-align: left; }
  .timeline p { padding-left: 0; }
}

/* ---------- Committee ---------- */

.committee {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.committee li { padding: var(--space-2) var(--space-2) var(--space-2) 0; border-bottom: 1px solid var(--rule); }
.committee strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: var(--step-1); line-height: 1.25; }
.committee span { color: var(--muted); font-size: var(--step--1); }
details.past { border-top: 1px solid var(--rule); }
details.past:last-of-type { border-bottom: 1px solid var(--rule); }
details.past summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--navy);
}
details.past summary::-webkit-details-marker { display: none; }
details.past summary svg { width: 1.25rem; height: 1.25rem; transition: transform 200ms var(--ease-out); }
details.past[open] summary svg { transform: rotate(45deg); }
details.past .committee { border-top: 0; margin-bottom: var(--space-3); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1.25rem; height: 1.25rem; flex: none; transition: transform 200ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--space-3); max-width: 44rem; color: var(--ink); }

/* ---------- Forms ---------- */

.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; }
.field .hint { font-size: var(--step--1); color: var(--muted); margin-top: -0.2rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #9aa8bb;
  border-radius: 3px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 178, 48, 0.55); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.5rem 1rem; margin-top: 0.4rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-family: var(--font-body); font-weight: 400; color: var(--ink); cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--navy); flex: none; }
.form__status { padding: var(--space-2) var(--space-3); border-radius: 3px; font-weight: 600; }
.form__status[hidden] { display: none; }
.form__status--ok { background: #e3f2e8; color: #14532d; }
.form__status--error { background: #fbe9e7; color: #8a1c13; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Contact aside ---------- */

.contact-aside { border-top: 3px solid var(--navy); padding-top: var(--space-3); }
@media (min-width: 861px) { .contact-aside { position: sticky; top: 8rem; } }
.contact-aside h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.contact-aside > div + div { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--rule); }

/* ---------- Map embeds ---------- */

.embed { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--pale); border: 1px solid var(--rule); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Callout row (volunteer / sponsor blocks on inner pages) ---------- */

.callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--navy); }
.callouts > div { padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.callouts > div + div { padding-left: var(--space-4); border-left: 1px solid var(--rule); }
.callouts h2 { font-size: var(--step-3); margin-bottom: var(--space-2); }
.callouts p { color: var(--muted); }
.callouts .btn, .callouts .link-arrow { margin-top: var(--space-3); }
@media (max-width: 860px) {
  .callouts { grid-template-columns: 1fr; }
  .callouts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Key points list on programme pages */
.points { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.points li { padding: var(--space-2) 0 var(--space-2) 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.points li svg { position: absolute; left: 0; top: 1.15rem; width: 1.15rem; height: 1.15rem; color: var(--navy); }
.points strong { color: var(--navy); font-family: var(--font-head); }

/* ---------- Mental health: urgent help and maps ---------- */

.urgent { border-top: 3px solid var(--navy); padding-top: var(--space-3); }
.urgent h2 { font-size: var(--step-3); margin-bottom: var(--space-3); }
.urgent__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.urgent__list li { padding: var(--space-2) var(--space-3) var(--space-2) 0; }
.urgent__list li + li { padding-left: var(--space-3); border-left: 1px solid var(--rule); }
.urgent__list strong { display: block; font-family: var(--font-head); font-size: var(--step-2); color: var(--navy); line-height: 1.15; margin-bottom: 0.35rem; }
.urgent__list span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) {
  .urgent__list { grid-template-columns: 1fr 1fr; }
  .urgent__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .urgent__list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.interp { display: flex; gap: 0.6rem; align-items: flex-start; max-width: none; margin: 0 0 var(--space-3); padding: 0.8rem 1rem; background: #fff; border-left: 0; border-top: 3px solid var(--gold); }
.interp svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.2rem; color: var(--navy); }
.interp strong { color: var(--navy); }

/* Service maps: filters and search, map with a scrolling list beside it */
.smap { --map-h: min(46rem, 78vh); }
.smap__tools { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.smap__find { display: flex; align-items: center; gap: 0.6rem; }
.smap__find label { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.smap__search { width: 18rem; max-width: 60vw; min-height: 2.75rem; padding: 0.55rem 0.8rem; border: 1.5px solid #9aa8bb; border-radius: 3px; font: inherit; background: #fff; color: var(--ink); }
.smap__search:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 178, 48, 0.55); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  --chip: var(--navy);
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.25rem; padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--rule); border-radius: 999px; background: #fff;
  font: 600 0.9375rem/1 var(--font-body); color: var(--ink); cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.chip[data-area]:not([data-area=""])::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--chip); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"]::before { box-shadow: 0 0 0 2px #fff; }
.smap__body { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); border: 1px solid var(--rule); background: #fff; }
.smap__map { height: var(--map-h); background: var(--pale); }
.smap__side { display: flex; flex-direction: column; height: var(--map-h); border-left: 1px solid var(--rule); }
.smap__count { margin: 0; padding: 0.7rem 1rem; font-size: var(--step--1); color: var(--muted); border-bottom: 1px solid var(--rule); }
.smap__count span { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.smap__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.svc { --dot: var(--navy); position: relative; display: grid; gap: 0.2rem; padding: 0.8rem 1rem 0.8rem 2.1rem; border-bottom: 1px solid var(--rule); font-size: var(--step--1); line-height: 1.4; }
.svc::before { content: ""; position: absolute; left: 0.95rem; top: 1.15rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot); }
.svc[hidden] { display: none; }
.svc.is-active { background: var(--pale); }
.svc__name { all: unset; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy); line-height: 1.25; }
.svc__name:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.svc__name:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.svc__area { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.svc__addr { color: var(--ink); }
.svc__ref { color: var(--muted); }
.svc__lang { color: var(--navy); font-weight: 700; }
.svc__desc { color: var(--ink); }
.svc__ref b { color: var(--ink); font-weight: 600; }
.svc__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.15rem; }
.svc__tel, .svc__web { color: var(--link); font-weight: 600; }
.svc-pop { font: 0.9375rem/1.45 var(--font-body); color: var(--ink); display: grid; gap: 0.25rem; }
.svc-pop strong { font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.svc-pop .svc__area { display: none; }
.smap .leaflet-container { font: inherit; }
/* quieter basemap so the service dots carry the colour */
.smap .leaflet-tile-pane { filter: grayscale(0.85) contrast(0.92) brightness(1.04); }
.smap .leaflet-popup-content-wrapper { border-radius: 4px; box-shadow: 0 10px 30px -12px rgba(0, 34, 72, 0.45); }
@media (max-width: 860px) {
  .smap { --map-h: 30rem; }
  .smap__body { grid-template-columns: 1fr; }
  .smap__side { height: auto; max-height: 28rem; border-left: 0; border-top: 1px solid var(--rule); }
  .smap__search { width: 100%; max-width: none; }
  .smap__find { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */

.footer { background: var(--navy-deeper); color: var(--on-navy-muted); font-size: var(--step--1); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__brand img { width: 96px; height: 96px; }
.footer__brand p { margin-top: var(--space-2); max-width: 20rem; text-wrap: balance; }
.footer h2 { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: var(--space-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__social { display: flex; justify-content: center; gap: 0.75rem; margin-top: var(--space-3); }
.footer__social a {
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--rule-navy);
  border-radius: 50%;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.footer__social a:hover { background: #fff; border-color: #fff; }
.footer__social a:hover svg { color: var(--navy); }
.footer__social svg { width: 1.1rem; height: 1.1rem; color: #fff; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--rule-navy);
}
.footer__base p { margin: 0; }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Motion: content rises into place as it enters the viewport ----------
   Movement only, never opacity: if an animation is paused or never runs,
   everything is still readable. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(22px); }
  .js .reveal.is-in { transform: none; transition: transform 900ms var(--ease-out); }
  .js .hero h1, .js .hero__lead, .js .hero__actions, .js .page-head h1 {
    animation: rise 900ms var(--ease-out) both;
  }
  .js .hero__lead { animation-delay: 80ms; }
  .js .hero__actions { animation-delay: 160ms; }
  .hero__slides img { animation: hero-wipe 28s infinite; }
  .hero__progress span::after { animation: hero-progress 28s linear infinite; }
  .hero__slides img:nth-child(1), .hero__progress span:nth-child(1)::after { animation-delay: -2s; }
  .hero__slides img:nth-child(2), .hero__progress span:nth-child(2)::after { animation-delay: 5s; }
  .hero__slides img:nth-child(3), .hero__progress span:nth-child(3)::after { animation-delay: 12s; }
  .hero__slides img:nth-child(4), .hero__progress span:nth-child(4)::after { animation-delay: 19s; }
  /* the gold bar over the title grows through each photo and shortens as the next one wipes in (7 s per slide) */
}
@keyframes rise { from { transform: translateY(20px); } to { transform: none; } }
/* Hero slides: each photograph sweeps in from the right behind a soft edge, over the previous one; it then sits underneath while the next one wipes over it.
   Four slides, 7 s each. No fill mode: before its first turn a slide keeps its resting
   style (only the first is visible). */
@keyframes hero-wipe {
  0% { -webkit-mask-position: 0% 0; mask-position: 0% 0; z-index: 3; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  7.1% { -webkit-mask-position: 100% 0; mask-position: 100% 0; z-index: 3; }
  25% { z-index: 3; }
  25.1% { z-index: 2; }
  50% { z-index: 2; }
  50.1% { z-index: 1; }
  75% { z-index: 1; }
  75.1% { z-index: 0; }
  100% { -webkit-mask-position: 100% 0; mask-position: 100% 0; z-index: 0; }
}
@keyframes hero-progress {
  0% { transform: scaleX(0); }
  25% { transform: scaleX(1); }
  25.1%, 100% { transform: scaleX(0); }
}

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; }


/* ---------- Typography after uva.nl: serif headings and reading text, sans interface ---------- */

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.005em; }
h1 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
.lead, .hero__lead, .page-head__lead, .section-head p, .prose p, .prose li, .split p, .callouts p, .support p, .quote-card blockquote p {
  font-family: var(--font-serif);
}
.hero__lead, .page-head__lead, .lead { font-size: 1.3125rem; line-height: 1.55; }
.quote-card blockquote p { font-weight: 400; font-style: italic; font-size: 1.375rem; letter-spacing: 0; }
.facts b, .tier__price, .event__date .d { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0; }
/* interface in Source Sans */
.btn, .link-arrow, .nav__top, .nav__menu a strong, .menu-toggle, .crumbs, .chip, .smap, .smap__find label,
.field label, .field legend, .event__date .m, .event__date .y, .footer, .footer h2, .partners-title,
.programme__for, .programme__since, .svc__name, .svc-pop strong, .urgent__list strong, .timeline time span {
  font-family: var(--font-ui);
}
.btn { font-weight: 700; letter-spacing: 0.01em; }
.nav__top { font-weight: 600; font-size: 1.0625rem; }

/* ---------- Resource libraries (/health-awareness, /archive) ---------- */

.lib__tools { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule); }
.lib__find { display: flex; align-items: center; gap: 0.6rem; }
.lib__find label, .lib__label { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.lib__group { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.lib__count { margin: 0 0 var(--space-2); font-size: var(--step--1); color: var(--muted); }
.lib__count span { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.lib__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: var(--space-4) var(--space-3); }
.lib__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lib__empty { padding: var(--space-4) 0; color: var(--muted); }
.link-button { border: 0; padding: 0; background: none; font: inherit; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

.rcard { position: relative; display: flex; flex-direction: column; gap: 0.9rem; }
.rcard[hidden] { display: none; }
.rcard__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-deep); }
.rcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.rcard__thumb--doc { background: var(--pale); display: flex; justify-content: center; padding-top: 7%; }
.rcard__thumb--doc img { width: auto; height: 118%; max-width: 86%; object-fit: cover; object-position: top; box-shadow: 0 1px 2px rgba(0, 34, 72, 0.18), 0 10px 26px rgba(0, 34, 72, 0.18); }
.rcard__play { position: absolute; left: 50%; top: 50%; width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 34, 72, 0.82); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); transition: background-color 200ms var(--ease-out); }
.rcard__play svg { width: 1.45rem; height: 1.45rem; margin-left: 3px; }
.rcard--link:hover .rcard__thumb--doc img { transform: translateY(-5px); }
.rcard--link:hover .rcard__play { background: var(--gold); color: var(--navy); }
.rcard__body { display: grid; gap: 0.4rem; }
.rcard__meta { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.rcard__title { font-size: var(--step-1); line-height: 1.25; }
.rcard__title a { color: var(--ink); text-decoration: none; }
.rcard__title a::after { content: ""; position: absolute; inset: 0; }
.rcard--link:hover .rcard__title a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.rcard__title a:focus-visible { outline: none; }
.rcard__title a:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 4px; }
.rcard__summary { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.rcard__extra { margin: 0.15rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; font-size: 0.8125rem; }
.rcard__lang { padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--pale); color: var(--navy); font-weight: 700; }
.rcard__source { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted); font-weight: 600; }
.rcard__source svg { width: 0.95em; height: 0.95em; }

/* Video player dialog */
.player { width: min(64rem, calc(100vw - 2rem)); padding: 0; border: 0; background: var(--navy-deeper); color: #fff; }
.player::backdrop { background: rgba(0, 18, 40, 0.82); }
.player__bar { display: flex; align-items: center; gap: var(--space-2); padding: 0.6rem 0.6rem 0.6rem 1rem; }
.player__title { flex: 1; margin: 0; font-weight: 600; font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__yt { color: #fff; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.player__close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: #fff; cursor: pointer; }
.player__close svg { width: 1.4rem; height: 1.4rem; }

/* Resources hub */
.rhub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.rhub__item { position: relative; display: flex; flex-direction: column; background: #fff; border-top: 3px solid var(--navy); }
.rhub__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rhub__body { display: grid; gap: 0.5rem; padding: var(--space-3) var(--space-3) var(--space-3) 0; }
.rhub__item h2 { font-size: var(--step-3); }
.rhub__item h2 a { color: inherit; text-decoration: none; }
.rhub__item h2 a::after { content: ""; position: absolute; inset: 0; }
.rhub__item p { color: var(--muted); }
.rhub__item .link-arrow { margin-top: 0.3rem; }
.rhub__item:hover h2 a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.rhub__item:hover .link-arrow svg { transform: translateX(3px); }
.rhub__yt { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--navy); color: #fff; }
.rhub__yt svg { width: 5rem; height: 5rem; }

@media (max-width: 960px) {
  .rhub, .lib__grid--three { grid-template-columns: 1fr; }
  .rhub__item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-3); border-top-width: 1px; border-top-color: var(--rule); padding-top: var(--space-3); }
  .rhub__item img, .rhub__yt { height: 100%; aspect-ratio: auto; }
  .rhub__body { padding: 0; }
}
@media (max-width: 560px) {
  .rhub__item { grid-template-columns: 1fr; gap: var(--space-2); }
  .rhub__item img, .rhub__yt { aspect-ratio: 16 / 9; }
  .lib__group { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rcard__thumb img { transition: none; }
}
/* Series recordings share one YouTube thumbnail; the label names the session on the picture */
.rcard__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.9rem 0.65rem; background: linear-gradient(to top, rgba(0, 18, 40, 0.92), rgba(0, 18, 40, 0)); color: #fff; font: 700 1.0625rem/1.2 var(--font-head); }
@media (max-width: 560px) {
  /* Phones: thumbnail beside the text, so a long archive stays scannable */
  .lib__grid { gap: var(--space-3); }
  .rcard { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
  .rcard__thumb { aspect-ratio: 4 / 3; }
  .rcard__play { width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem; }
  .rcard__play svg { width: 1.05rem; height: 1.05rem; }
  .rcard__label { padding: 1rem 0.5rem 0.4rem; font-size: 0.8125rem; }
  .rcard__title { font-size: var(--step-0); }
  .rcard__summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.875rem; }
}
/* Event posters (from Instagram) are shown whole, not cropped like a document page */
.rcard__thumb--poster { padding: 5% 0; align-items: center; }
.rcard__thumb--poster img { height: 100%; max-width: 92%; object-fit: contain; }

/* ---------- News (stories from the BSMA Instagram) ---------- */
.rcard__thumb--news { aspect-ratio: 1 / 1; background: var(--pale); }
.rcard__thumb--news img { object-fit: cover; object-position: 50% 30%; }
.page-head--story h1 { font-size: var(--step-4); max-width: 26ch; }
.story__date { margin: 0 0 var(--space-1); color: var(--gold); font-weight: 700; font-family: var(--font-ui); letter-spacing: 0.02em; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-4) var(--space-5); align-items: start; }
.story__aside { align-self: stretch; }   /* as tall as the text, so the sticky photo stops before the gallery */
.story__lead { margin: 0; position: sticky; top: calc(var(--header-size) * 0.6); }
.story__lead img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: var(--pale); }
.story__text { font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.6; max-width: 38rem; }
.story__text p { margin: 0 0 1.1em; }
.story__video { font-family: var(--font-ui); font-size: var(--step-0); }
.story__logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); }
.story__logos img { height: 3.5rem; width: auto; }
.story__links { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 0.5rem; font-family: var(--font-ui); font-size: var(--step-0); }
.story__subhead { margin: var(--space-3) 0 var(--space-2); font-size: var(--step-2); }
.story__programme { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); font-size: var(--step-0); border-top: 1px solid var(--rule); }
.story__programme li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.15rem var(--space-2); padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.story__when { grid-row: span 2; font-weight: 700; color: var(--navy, var(--ink)); }
.story__what { font-weight: 600; color: var(--ink); }
.story__who { color: var(--muted); }
@media (max-width: 30rem) { .story__programme li { grid-template-columns: 1fr; } .story__when { grid-row: auto; } }
.story__credit { margin-top: 0.4rem; font-family: var(--font-ui); font-size: 0.8125rem; color: var(--muted); }
.story__gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--space-2); }
.story__gallery figure { margin: 0; }
.story__gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.story__gallery .story__wide { grid-column: 1 / -1; }
.story__gallery .story__wide img { aspect-ratio: auto; object-fit: contain; }
.story__nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.story__nav a { display: grid; gap: 0.3rem; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.story__nav a span { font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.story__nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.story__nav-newer { text-align: right; grid-column: 2; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__lead { position: static; }
}
.lib__more { display: flex; margin: var(--space-5) auto 0; }
.lib__more[hidden] { display: none; }
.page-head__lead a { color: #fff; text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
/* Homepage events: a compact band, half the height of a normal section (owner, 2026-10-24) */
.section--events { padding-block: calc(var(--space-6) / 2); }
.section--events .section-head { margin-bottom: var(--space-2); }
.section--events .event { padding: var(--space-2) 0; }
.section--events .event--poster { grid-template-columns: 9rem 5rem minmax(0, 1fr) auto; column-gap: var(--space-4); }
.section--events .event h3 { font-size: var(--step-2); }
@media (max-width: 640px) {
  /* Phones: poster beside the details; the date box goes, since the date is in the text */
  .event--poster, .section--events .event--poster { grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: var(--space-3); align-items: start; }
  .event--poster .event__poster { grid-row: span 2; }
  .event--poster .event__date { display: none; }
  .event--poster .btn { grid-column: 2; justify-self: start; }
}
/* What we do: an icon per programme, by who it is for */
.programme__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--pale); color: var(--navy); }
.programme__icon svg { width: 1.35rem; height: 1.35rem; }

/* PDF viewer: the document fills the screen */
.player--pdf { width: calc(100vw - 2rem); height: calc(100vh - 2rem); max-width: none; max-height: none; display: none; flex-direction: column; }
.player--pdf[open] { display: flex; }
.player__pdf { flex: 1; width: 100%; border: 0; background: #525659; }

/* What we do (homepage): three groups with divider headings; each programme shows its icon on its own */
.programme-group + .programme-group { margin-top: var(--space-4); }
.programme-group__title { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); font-family: var(--font-ui); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.programme-group__title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.programme-group .programmes { border-top: 0; }
.programme-group .programme { grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; }
.programme-group .programme:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .programme-group .programme { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .programme-group .programme > div { grid-column: 2; grid-row: 1; }
  .programme-group .programme__icon { grid-column: 1; grid-row: 1; align-self: start; }
  .programme-group .programme__end { grid-column: 3; grid-row: 1; }
}

/* Mock-up (owner, 2026-10-25): What we do in two columns, Students beside Members, rows aligned across
   the columns (subgrid); Community, a single programme, runs under both. One column on phones. */
@media (min-width: 900px) {
  .programme-groups { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-5); row-gap: 0; }
  .programme-group + .programme-group { margin-top: 0; }
  .programme-group:nth-child(-n+2) { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .programme-group:nth-child(-n+2) .programmes { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .programme-group:nth-child(-n+2) .programme:last-child { border-bottom: 1px solid var(--rule); }
  .programme-group:nth-child(n+3) { grid-column: 1 / -1; margin-top: var(--space-4); }
}

/* Homepage News: sideways-scrolling row, three cards in view on desktop */
.news-rail__head { display: flex; align-items: center; gap: 0.6rem; }
.news-rail__head .link-arrow { margin-right: var(--space-2); }
.rail-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--navy); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.rail-btn svg { width: 1.1rem; height: 1.1rem; }
.rail-btn--prev svg { transform: scaleX(-1); }
.rail-btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.news-rail__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-3)) / 3); gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.news-rail__list::-webkit-scrollbar { display: none; }   /* scrolls by swipe, trackpad and the arrows; no visible bar */
.news-rail__list > li { scroll-snap-align: start; }
.news-rail__list:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 860px) { .news-rail__list { grid-auto-columns: calc((100% - var(--space-3)) / 2); } }
@media (max-width: 560px) {
  .news-rail__list { grid-auto-columns: 80%; }
  .news-rail .rcard { display: flex; flex-direction: column; }
  .news-rail .rcard__thumb { aspect-ratio: 1 / 1; }
  .news-rail__head .link-arrow { margin-right: auto; }
}

/* Photos in a page's side column (and under text) */
.aside-photo { margin: var(--space-4) 0 0; }
.aside-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }   /* landscape, so a sticky side column stays shorter than the screen */
.aside-photo + .aside-photo { margin-top: var(--space-3); }
.aside-photo figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }

/* Scholars: where they got offers (UK outline from tools/make_uk_map.py, pins placed in % of the image) */
.dest { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.dest__map { position: relative; margin: 0; }
.dest__map img { display: block; width: 100%; height: auto; }
.dest__pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 0.4rem;
  transform: translate(calc(var(--d) / -2), -50%); font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 700;
  color: var(--navy); white-space: nowrap; }
.dest__pin i { flex: none; width: var(--d); height: var(--d); border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px var(--ground); }
.dest__pin--left { flex-direction: row-reverse; transform: translate(calc(-100% + var(--d) / 2), -50%); }
.dest__pin--above, .dest__pin--below { flex-direction: column; transform: translate(-50%, calc(-100% + var(--d) / 2)); gap: 0.2rem; }
.dest__pin--above { flex-direction: column-reverse; }
.dest__pin--below { transform: translate(-50%, calc(var(--d) / -2)); }
.dest__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-top: 1px solid var(--rule); font-family: var(--font-ui); }
.dest__list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.dest__list b { font-family: var(--font-head); font-size: var(--step-2); color: var(--navy); font-variant-numeric: lining-nums; }
.dest__note { margin: 0.75rem 0 var(--space-3); font-size: var(--step--1); color: var(--muted); }
@media (max-width: 860px) {
  .dest { grid-template-columns: 1fr; gap: var(--space-4); }
  .dest__map { width: min(100%, 22rem); margin-inline: auto; }
}
.notfound-photo { margin: 0; }
.notfound-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Header mock-up (owner, 2026-10-25): inner pages ----------
   A thin solid header, a page menu for the section beneath it, then the title on a shorter photo band
   and the lead below it on white, as the UvA library (variant A, owner's choice). */

.is-inner { --inner-head: 4.75rem; }
.is-inner .header { background: var(--navy-deep); }
.is-inner .header .wrap { min-height: var(--inner-head); }
.is-inner .header .brand img { width: 58px; height: 58px; }
.is-inner .header.is-stuck .wrap { min-height: 3.5rem; }
.is-inner main { padding-top: var(--inner-head); }
.is-inner .page-head .wrap, .is-inner .page-head--photo .wrap { padding-top: var(--space-5); }
.is-inner .story__lead { top: 5rem; }

.subnav { background: #fff; border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; align-items: stretch; gap: var(--space-4); min-height: 3.25rem; }
.subnav__title {
  display: flex; align-items: center; margin: 0; padding-right: var(--space-4);
  border-right: 1px solid var(--rule);
  font: 700 1.125rem/1 var(--font-head); color: var(--navy); white-space: nowrap;
}
/* the section's name on the light blue of the homepage bands (owner, 2026-10-25) */
.subnav__title { background: #b9cadf; padding-inline: var(--space-3); border-right: 0; }   /* a shade darker than --pale (owner, 2026-10-25) */
.subnav__title a { color: inherit; text-decoration: none; }
.subnav__list:empty { display: none; }
.subnav__list:empty + *, .subnav__title:has(+ .subnav__list:empty) { border-right: 0; }
.subnav__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.3em; }
.subnav__list { display: flex; gap: var(--space-3); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  display: flex; align-items: center; gap: 0.35em; height: 100%; padding: 0.2rem 0 0;
  border-bottom: 3px solid transparent;
  font: 600 1rem/1.2 var(--font-head); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.subnav__list a svg { width: 0.85em; height: 0.85em; color: var(--muted); }
.subnav__list a:hover { color: var(--navy); border-bottom-color: var(--rule); }
.subnav__list a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
@media (max-width: 700px) {
  .subnav .wrap { flex-direction: column; gap: 0; padding-inline: 0; }
  .subnav__title { padding: 0.7rem var(--gutter); font-size: 1rem; }
  .subnav__list { margin-top: 0.15rem; }
  .subnav__list { position: relative; padding-inline: var(--gutter); gap: var(--space-3); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .subnav__list a { padding: 0.5rem 0 0.6rem; font-size: 0.9375rem; }
}

.ph {
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) min(var(--wrap), 100% - 2 * var(--gutter)) minmax(var(--gutter), 1fr);
  background: #fff;
}
.ph > * { grid-column: 2; min-width: 0; }
.ph__photo { grid-column: 1 / -1; margin: 0; position: relative; overflow: hidden; background: var(--navy); }
.ph__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph h1 { margin: 0; font-size: var(--step-5); max-width: 22ch; }
.ph__lead { margin: 0; max-width: 50rem; font-size: 1.3125rem; line-height: 1.55; color: var(--ink); }
.ph__lead a { color: var(--navy); text-decoration-color: var(--gold); }
.ph__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.ph { grid-template-rows: minmax(clamp(9rem, 18vw, 15rem), 1fr) auto auto var(--space-4) auto; padding-bottom: var(--space-2); }
.ph__photo { grid-row: 1 / 5; }
.ph__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 23, 47, 0.78) 0%, rgba(0, 23, 47, 0.45) 50%, rgba(0, 23, 47, 0.05) 100%), linear-gradient(0deg, rgba(0, 23, 47, 0.5) 0%, rgba(0, 23, 47, 0) 55%); }
.ph__head { grid-row: 2; position: relative; z-index: 1; padding-left: var(--space-3); border-left: 3px solid var(--gold); }
.ph h1 { color: #fff; }
.ph__actions { grid-row: 3; position: relative; z-index: 1; margin-top: var(--space-3); padding-left: calc(var(--space-3) + 3px); }
.ph__actions .btn--outline { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.8); }
.ph__actions .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-border: #fff; }
.ph__lead { grid-row: 5; padding-top: var(--space-4); }

/* Pages without a photograph (News, stories): the same white title block */
.is-inner .page-head:not(.page-head--photo) { background: #fff; color: var(--ink); }
.is-inner .page-head:not(.page-head--photo) h1 { color: var(--navy); }
.is-inner .page-head:not(.page-head--photo) .page-head__lead { color: var(--ink); }
.is-inner .page-head:not(.page-head--photo) .page-head__lead a { color: var(--navy); }
.is-inner .page-head .crumbs { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .ph h1 { animation: rise 900ms var(--ease-out) both; }
}


/* ---------- Mock-up (owner, 2026-10-25): media in line ----------
   One caption style everywhere; pairs of media share top and bottom edges; side-column photos sit at the top
   of the column, level with the text beside them; a photo beside a list fills the column's height. */
:where(main figure) > figcaption { margin-top: 0.6rem; font-family: var(--font-ui); font-size: var(--step--1); line-height: 1.45; color: var(--muted); }

.media-pair { margin-top: var(--space-5); gap: var(--space-4); }
.section-head + .media-pair { margin-top: 0; }
.media-pair--wide .split__media img { aspect-ratio: 16 / 9; }

.contact-aside:has(> .aside-photo:first-child) { border-top: 0; padding-top: 0; }
.contact-aside > .aside-photo:first-child { margin: 0 0 var(--space-3); }
.contact-aside > .aside-photo:first-child + div { border-top: 3px solid var(--navy); padding-top: var(--space-3); }

.split--fill { align-items: stretch; }
.split__media--fill { display: flex; flex-direction: column; }
.split__media--fill img { flex: 1 1 0; min-height: 18rem; height: auto; aspect-ratio: auto; }
@media (max-width: 860px) {
  .split__media--fill img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* Members area link in the header: on phones it takes Donate's place (Donate stays in the menu) */
@media (max-width: 480px) { .header__actions [data-member-link] ~ .btn--light { display: none; } }
