/* ESD Fellowship Hub — V1 (2026)
   Identity: the old logo's cyan (#00B8CC) and lime (#BCD652) on the ROEYA family ink,
   set in Archivo (ROEYA family font) with an expanded display width.
   Signature: the "scope view" circle with ESD marking dots (home hero only). */

:root {
  --ink: #17224A;
  --navy: #233A7D;
  --sky: #1E9DD9;
  --cyan: #00B8CC;
  --teal: #00707F;
  --teal-strong: #005A66;
  --lime: #BCD652;
  --muted: #56627F;
  --line: #DFE6F0;
  --mist: #F2F6FA;
  --white: #FFFFFF;
  --on-ink: #C9D3E6;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --radius-s: 8px;
  --radius-m: 14px;
  --section: clamp(56px, 4rem + 4vw, 120px);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: normal;
  overflow-wrap: break-word;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

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

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-stretch: 125%; font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.75rem); line-height: 1.0; letter-spacing: -0.025em; }
h2 { font-stretch: 118%; font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.875rem); }
h3 { font-stretch: 108%; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.lead { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); font-stretch: 108%;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-strong); color: var(--white); text-decoration: none; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #cfe27a; color: var(--ink); text-decoration: none; }
.btn--on-ink { border-color: var(--on-ink); color: var(--white); }
.btn--on-ink:hover { background: var(--white); color: var(--ink); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink);
  font: 600 0.9375rem/1 var(--font); cursor: pointer;
}
.nav-toggle .bars { width: 16px; height: 10px; position: relative; border-block: 2px solid currentColor; }
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.96875rem;
}
.site-nav a:hover { background: var(--mist); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--mist); color: var(--teal-strong); font-weight: 600; }
.site-nav .nav-apply a { background: var(--teal); color: var(--white); padding-inline: 18px; margin-left: 6px; }
.site-nav .nav-apply a:hover, .site-nav .nav-apply a[aria-current="page"] { background: var(--teal-strong); color: var(--white); box-shadow: none; }

@media (max-width: 1023px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(23, 34, 74, 0.35);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 2px; }
  .js .site-nav a { border-radius: var(--radius-s); padding: 12px 14px; font-size: 1.0625rem; width: 100%; }
  .js .site-nav .nav-apply a { margin: 8px 0 0; justify-content: center; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
}

/* ---------- home hero ---------- */
.hero { padding-block: clamp(36px, 2rem + 4vw, 96px) clamp(48px, 3rem + 4vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.hero h1 { max-width: 11ch; }
.hero .h1-sub { margin: 14px 0 0; font-stretch: 112%; font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem); letter-spacing: -0.01em; line-height: 1.2; color: var(--teal); }
.hero .lead { margin-top: 24px; }
.edition {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-size: 0.9375rem; color: var(--muted);
}
.edition b { font-weight: 600; color: var(--ink); }
.edition::before { content: ""; width: 6px; height: 22px; background: var(--lime); border-radius: 3px; }

.scope { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1; }
.scope__photo {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 10px var(--mist), 0 30px 60px -30px rgba(23, 34, 74, 0.55);
}
.scope__photo img { width: 100%; height: 100%; object-fit: cover; }
.scope__photo::after { /* endoscopic vignette */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(23, 34, 74, 0.45) 100%);
}
.scope__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scope__ring .mark { fill: var(--cyan); }
.scope__ring .mark--lime { fill: var(--lime); }
.scope__ring .cut { fill: none; stroke: var(--teal); stroke-width: 0.5; stroke-linecap: round; stroke-dasharray: 280; stroke-dashoffset: 0; }
.scope__seal {
  position: absolute; left: -2%; bottom: 0%; width: 34%; aspect-ratio: 1;
  background: var(--white); border-radius: 50%; padding: 4%;
  box-shadow: 0 12px 30px -12px rgba(23, 34, 74, 0.4);
  display: grid; place-items: center;
}
.scope__seal img { width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .scope__ring .mark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: mark-in 0.32s cubic-bezier(.2, .8, .3, 1.4) forwards; animation-delay: calc(200ms + var(--i) * 42ms); }
  .scope__ring .cut { stroke-dashoffset: 280; animation: cut-in 1.4s cubic-bezier(.6, 0, .2, 1) 1.45s forwards; }
}
@keyframes mark-in { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes cut-in { to { stroke-dashoffset: 0; } }

/* ---------- partner strip ---------- */
.partner-strip { border-block: 1px solid var(--line); background: var(--white); }
.partner-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-block: 22px; }
.partner-strip p { margin: 0; color: var(--muted); font-size: 0.9375rem; flex: 1 1 100%; }
@media (min-width: 900px) { .partner-strip p { flex: 0 0 auto; } }
.partner-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.partner-strip a { display: block; border-radius: var(--radius-s); }
.partner-strip img { height: 64px; width: auto; }
.partner-strip .logo-erbe img { height: 30px; }

/* ---------- split blocks ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--media-right .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius-m); width: 100%; }
.split h2 { margin-bottom: 20px; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .section-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }

/* lists with marking dots */
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dots li { position: relative; padding-left: 30px; }
.dots li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 184, 204, 0.16);
}
.dots--tight { gap: 8px; }

/* ---------- modules ---------- */
.modules { display: grid; gap: clamp(36px, 4vw, 44px); }
@media (min-width: 760px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.module { display: grid; align-content: start; gap: 14px; }
.module img { aspect-ratio: 2 / 1.15; object-fit: cover; border-radius: var(--radius-m); width: 100%; }
.module h3 a { color: var(--ink); text-decoration: none; }
.module h3 a:hover { color: var(--teal); text-decoration: underline; }
.module p { color: var(--muted); margin: 0; }
.module .more { font-weight: 600; font-size: 0.96875rem; }

/* facts (definition pairs) */
.facts { display: grid; gap: 1px; margin: 32px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { background: var(--white); padding: 18px 20px; }
.section--mist .facts div { background: var(--mist); }
.facts dt { font-weight: 600; font-stretch: 108%; }
.facts dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- phase path (dark) ---------- */
.band-ink { background: var(--ink); color: var(--white); }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink p, .band-ink li { color: var(--on-ink); }
.band-ink a:not(.btn) { color: var(--lime); }
.band-ink :focus-visible { outline-color: var(--lime); }
.band-ink .section-head p { color: var(--on-ink); }

.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: phase; position: relative; }
.path li { position: relative; padding: 0 0 32px 64px; counter-increment: phase; }
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: counter(phase); position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 2px solid var(--cyan); color: var(--white);
  font-weight: 700; font-stretch: 112%; font-size: 1.0625rem; z-index: 1;
}
.path li::after { content: ""; position: absolute; left: 21px; top: 40px; bottom: 0; border-left: 2px dashed rgba(0, 184, 204, 0.55); }
.path li:last-child::after { display: none; }
.path li:last-child::before { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.path h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.path p { margin: 0; font-size: 1rem; }
@media (min-width: 1000px) {
  .path { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .path li { padding: 64px 0 0 0; }
  .path li::after { left: 46px; right: -28px; top: 21px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(0, 184, 204, 0.55); }
}

/* ---------- people ---------- */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .people--six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1000px) { .people--five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; } }
.person { position: relative; display: grid; align-content: start; gap: 4px; }
.person img { aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--radius-m); width: 100%; background: var(--mist); margin-bottom: 10px; }
.person__name { font-size: 1.0625rem; font-stretch: 104%; line-height: 1.25; letter-spacing: -0.005em; }
.person__name a { color: var(--ink); text-decoration: none; }
.person__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-m); }
.person:hover .person__name a { color: var(--teal); text-decoration: underline; }
.person:focus-within { outline: 3px solid var(--sky); outline-offset: 6px; border-radius: var(--radius-m); }
.person__name a:focus-visible { outline: none; }
.person .role { font-size: 0.875rem; color: var(--muted); line-height: 1.4; margin: 0; }
.person .where { font-size: 0.875rem; line-height: 1.4; margin: 2px 0 0; color: var(--ink); }
.person .country { display: inline-block; margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--teal); }
.person[hidden] { display: none; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; border: 0; }
.filter legend { font-weight: 600; margin-bottom: 10px; padding: 0; width: 100%; }
.filter button {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); font: 500 0.9375rem/1 var(--font); cursor: pointer;
}
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-status { margin: 0 0 24px; color: var(--muted); font-size: 0.9375rem; }
.no-js .filter, .no-js .filter-status { display: none; }

/* ---------- apply band ---------- */
.apply { position: relative; background: var(--mist); overflow: hidden; border-top: 1px solid var(--line); }
.apply__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 78% 40%; }
.apply__body { padding-block: 40px var(--section); }
@media (min-width: 960px) {
  .apply { min-height: 560px; display: flex; align-items: center; }
  .apply__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 70% 30%; }
  .apply::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(242, 246, 250, 0.98) 0%, rgba(242, 246, 250, 0.94) 42%, rgba(242, 246, 250, 0) 66%); }
  .apply__body { position: relative; z-index: 2; padding-block: var(--section); }
  .apply__body > * { max-width: 560px; }
}
.countries { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 10px; }
.countries li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; font-weight: 500; }
.countries img { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(23, 34, 74, 0.12); }
.note { font-size: 0.9375rem; color: var(--muted); }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(28px, 2rem + 3vw, 80px); display: grid; gap: 28px; align-items: center; }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); }
.page-head .lead { margin-top: 18px; }
.page-head--media .wrap { padding-bottom: 0; }
@media (min-width: 960px) {
  .page-head--media .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding-bottom: clamp(28px, 2rem + 3vw, 80px); }
}
.page-head__img img { border-radius: var(--radius-m) var(--radius-m) 0 0; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 100% 50%; }
@media (min-width: 960px) { .page-head__img img { border-radius: var(--radius-m); } }
.crumbs { margin: 0 0 16px; font-size: 0.9375rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); margin: 0 0 18px; }
.prose h2:not(:first-child) { margin-top: clamp(40px, 5vw, 64px); }
.prose h3 { margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose .dots { margin-bottom: 1.4em; }
.letter { border-left: 4px solid var(--lime); padding: 4px 0 4px 22px; }

/* ---------- program timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: ph; }
.timeline > li { position: relative; padding: 0 0 clamp(36px, 4vw, 56px) clamp(60px, 7vw, 92px); counter-increment: ph; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: counter(ph); position: absolute; left: 0; top: -6px;
  width: clamp(44px, 5vw, 60px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--cyan); color: var(--ink);
  font-weight: 700; font-stretch: 115%; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
}
.timeline > li::after { content: ""; position: absolute; left: calc(clamp(44px, 5vw, 60px) / 2 - 1px); top: clamp(44px, 5vw, 60px); bottom: 0; border-left: 2px dashed var(--cyan); }
.timeline > li:last-child::after { display: none; }
.timeline > li:last-child::before { background: var(--lime); border-color: var(--lime); }
.timeline h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); margin-bottom: 12px; }
.timeline .phase-body { max-width: 66ch; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: st; display: grid; gap: 10px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; }
.steps li::before { content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: 0.875rem; font-weight: 700; }

.goals { columns: 1; column-gap: 48px; }
@media (min-width: 900px) { .goals { columns: 2; } }
.goals li { break-inside: avoid; margin-bottom: 14px; }

/* ---------- person detail ---------- */
.profile { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 820px) { .profile { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.profile__photo img { width: 100%; max-width: 480px; border-radius: var(--radius-m); aspect-ratio: 6 / 5; object-fit: cover; }
.profile__photo--portrait img { aspect-ratio: 4 / 5; max-width: 360px; }
.profile h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.profile .titles { margin: 16px 0 0; font-size: 1.1875rem; line-height: 1.45; }
.profile .titles span { display: block; }
.profile dl { margin: 28px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.profile dl div { background: var(--white); padding: 14px 18px; display: grid; gap: 2px; }
@media (min-width: 560px) { .profile dl div { grid-template-columns: 9.5rem 1fr; gap: 16px; } }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; font-weight: 500; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; flex-direction: column; text-decoration: none; padding: 6px 2px; }
.pager a span { font-size: 0.875rem; color: var(--muted); }
.pager a b { font-weight: 600; color: var(--ink); }
.pager a:hover b { color: var(--teal); text-decoration: underline; }
.pager .next { text-align: right; margin-left: auto; }

/* ---------- partners page ---------- */
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .partner-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partner-list li { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; display: grid; gap: 14px; align-content: start; }
.partner-list .logo { height: 150px; display: grid; place-items: center; background: var(--mist); border-radius: var(--radius-s); }
.partner-list .logo img { max-height: 120px; width: auto; max-width: 80%; }
.partner-list h2 { font-size: 1.375rem; font-stretch: 108%; }
.partner-list p { margin: 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.contact-card h2, .contact-card h3 { font-size: 1.125rem; font-stretch: 106%; color: var(--muted); font-weight: 600; }
.contact-card a.big, .contact-card .big { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-card a.big:hover { color: var(--teal); text-decoration: underline; }
.contact-card p { margin: 0; color: var(--muted); }

.howto { list-style: none; margin: 0; padding: 0; counter-reset: h; display: grid; gap: 16px; }
.howto > li { counter-increment: h; position: relative; padding: 20px 20px 20px 72px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
.howto > li::before { content: counter(h); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 700; }
.howto h3 { margin-bottom: 6px; font-size: 1.1875rem; }
@media (max-width: 599px) {
  .howto > li { padding: 18px 18px 20px; }
  .howto > li::before { left: 18px; top: 16px; }
  .howto h3 { min-height: 36px; display: flex; align-items: center; padding-left: 50px; margin-bottom: 10px; }
}
.howto p { margin: 0; color: var(--muted); }
.howto .btn-row { margin-top: 14px; }

.callout { border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--lime); padding: 20px 22px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

/* module page */
.module-page img.wide { width: 100%; border-radius: var(--radius-m); aspect-ratio: 1280 / 622; object-fit: cover; margin-bottom: clamp(28px, 4vw, 48px); }
.resource { margin-top: 28px; padding: 18px 20px; background: var(--mist); border-radius: var(--radius-m); }
.resource p { margin: 0; }
.resource a { overflow-wrap: anywhere; }
.other-modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .other-modules { grid-template-columns: 1fr 1fr; } }
.other-modules a { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.other-modules a:hover { border-color: var(--teal); }
.other-modules a:hover b { text-decoration: underline; color: var(--teal); }
.other-modules img { border-radius: var(--radius-s); aspect-ratio: 2 / 1.2; object-fit: cover; width: 112px; }
.other-modules span { font-size: 0.875rem; color: var(--muted); display: block; }

.module-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.module-links li { display: flex; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); font-size: 0.96875rem; }
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { color: var(--lime); text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: var(--lime); }
.footer-main { display: grid; gap: 36px; padding-block: clamp(48px, 6vw, 80px) 40px; }
@media (min-width: 760px) { .footer-main { grid-template-columns: 1.3fr 0.8fr 1.2fr; gap: 48px; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 40ch; }
.site-footer h2 { font-size: 1rem; font-stretch: 108%; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-contact address { font-style: normal; display: grid; gap: 10px; }
.footer-contact address p { margin: 0; }
.family { border-top: 1px solid rgba(201, 211, 230, 0.2); padding-block: 26px; }
.family h2 { margin-bottom: 12px; }
.family ul { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.family li a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(201, 211, 230, 0.32); text-decoration: none; font-size: 0.9375rem;
}
.family li a:hover { border-color: var(--lime); color: var(--lime); }
.family li a[aria-current] { border-color: var(--cyan); color: var(--cyan); }
.footer-base { border-top: 1px solid rgba(201, 211, 230, 0.2); padding-block: 20px 28px; font-size: 0.875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-base p { margin: 0; max-width: none; }

@media print {
  .site-header, .nav-toggle, .family, .apply__img { display: none !important; }
  body { font-size: 11pt; }
}
