/* =========================================================
   Kerckhoffs Ltd — site styles
   Brand colours sampled from the Kerckhoffs logo files:
   navy #332F60, red #E12629.
   One stylesheet for every page. No build step.
   ========================================================= */

:root {
  /* Brand */
  --navy: #332F60;
  --navy-deep: #26234A;
  --red: #E12629;          /* logo red: buttons, bars, decoration */
  --red-ink: #C41E24;      /* darker red for small text (5.6:1 on base) */
  --red-on-navy: #FF8A8E;  /* red accent text on navy (5.4:1) */

  /* Neutrals: warm, light, calm */
  --base: #FAF9F7;
  --surface: #FFFFFF;
  --tint: #F2F0F7;         /* very light lavender band */
  --sand: #F4EFE8;         /* warm band */
  --ink: #1F1C3A;
  --muted: #55526E;        /* 6.6:1 on base */
  --line: #E4E1EC;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C9C6E0;

  /* Type */
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --text: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 28, 58, .06), 0 8px 24px rgba(31, 28, 58, .06);
  --header-h: 72px;
}

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

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
abbr[title] { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--tint { background: var(--tint); }
.section--sand { background: var(--sand); }
.section--white { background: var(--surface); }
.section + .section--white, .section--white + .section { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gap-lg { gap: 40px; }
}
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .split--reverse > :first-child { order: 2; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--top { align-items: start; }
}
.measure { max-width: 68ch; }
.center { text-align: center; }
.center .measure { margin-left: auto; margin-right: auto; }

/* ---------- Type pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--text); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-ink); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.center .eyebrow { justify-content: center; }
.on-navy .eyebrow { color: var(--red-on-navy); }
.lead { font-size: clamp(1.15rem, 2vw, 1.32rem); line-height: 1.55; color: var(--muted); }
.on-navy .lead { color: var(--on-navy-muted); }
.small { font-size: .92rem; }
.muted { color: var(--muted); }
.title-bar { position: relative; padding-bottom: 18px; margin-bottom: 22px; }
.title-bar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--red); border-radius: 2px; }
.center .title-bar::after { left: 50%; transform: translateX(-50%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #B81C22; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.on-navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-navy .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }
.arrow-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: "→"; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(3px); }
.ext::after { content: " ↗"; font-size: .85em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, .94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { height: 46px; width: auto; border-radius: 4px; display: block; }
@media (max-width: 400px) { .brand img { height: 38px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: .06em; }
.brand-tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  font: 700 .95rem var(--text); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a, .subnav-btn {
  display: block; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: 10px 12px; border-radius: var(--radius-sm); background: none; border: 0; font-family: var(--text); cursor: pointer; text-align: left; width: 100%;
}
.site-nav a:hover, .subnav-btn:hover { color: var(--red-ink); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.site-nav .nav-cta a { background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 18px; text-align: center; }
.site-nav .nav-cta a:hover { background: var(--red); color: #fff; }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: none; background: var(--red); }

/* Mobile menu (open state) */
.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--base); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  box-shadow: 0 12px 24px rgba(31, 28, 58, .08);
}
.nav-open .site-nav > ul > li { border-bottom: 1px solid var(--line); }
.nav-open .site-nav > ul > li.nav-cta { border: 0; margin-top: 14px; }
.subnav { padding-left: 12px; }
.subnav-btn { display: none; }
.subnav-label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 2px; font-weight: 700; }
.site-header { position: sticky; }
.site-header .wrap { position: relative; }

@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static !important; box-shadow: none !important; padding: 0 !important; background: none !important; border: 0 !important; max-height: none !important; overflow: visible !important; }
  .site-nav > ul { display: flex; align-items: center; gap: 2px; }
  .site-nav > ul > li { border: 0 !important; position: relative; }
  .site-nav > ul > li.nav-cta { margin: 0 0 0 10px !important; }
  .site-nav a, .subnav-btn { padding: 10px 11px; font-size: .95rem; white-space: nowrap; }
  .subnav-label { display: none; }
  .subnav-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; }
  .subnav-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
  .subnav-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
  .subnav-btn.is-current { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; color: var(--navy); }
  .subnav {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
  }
  .subnav.is-open { display: block; }
  .subnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .subnav small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; white-space: normal; }
}
@media (max-width: 1119px) {
  .subnav small { display: none; }
  /* Phones and tablets: sections open on tap (accordion) */
  .js .subnav-label { display: none; }
  .js .subnav-btn { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
  .js .subnav-btn::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
  .js .subnav-btn[aria-expanded="true"] { color: var(--navy); }
  .js .subnav-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
  .js .subnav-btn.is-current { box-shadow: inset 3px 0 0 var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .js .subnav { display: none; margin: 0 0 8px; padding: 2px 0 2px 14px; border-left: 2px solid var(--line); margin-left: 12px; }
  .js .subnav.is-open { display: block; }
  .js .subnav a { padding: 9px 12px; font-weight: 500; }
  .js .subnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); border-radius: 0; color: var(--navy); font-weight: 700; }
  .site-nav a, .site-nav .subnav-btn { min-height: 44px; }
}
@media (max-width: 1119px) and (prefers-reduced-motion: reduce) {
  .js .subnav-btn::after { transition: none; }
}
/* Without JS: show the full menu as a simple list so nothing is hidden */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; width: 100%; }
.no-js .site-header .wrap { flex-wrap: wrap; padding-bottom: 8px; }
.no-js .site-nav > ul { display: flex; flex-wrap: wrap; }
.no-js .subnav { display: contents; }
.no-js .subnav-label, .no-js .subnav-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 38, 41, .07), rgba(225, 38, 41, 0) 65%); pointer-events: none;
}
.hero h1 { max-width: 15ch; }
.hero h1 .accent { color: var(--red-ink); }
.hero .lead { max-width: 56ch; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.hero-media .tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 340px;
  background: rgba(255, 255, 255, .96); border-left: 4px solid var(--red); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .9rem; line-height: 1.45; box-shadow: var(--shadow); color: var(--ink);
}
.hero-media .tag strong { color: var(--navy); display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.hero-mark { position: absolute; right: -14px; top: -14px; width: 64px; height: 64px; border-radius: 10px; box-shadow: var(--shadow); }

/* Page hero (inner pages) */
.page-hero { padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 22ch; }
.page-hero .lead { max-width: 62ch; margin-bottom: 0; }
.page-hero::after {
  content: ""; position: absolute; right: var(--gutter); bottom: 0; width: 120px; height: 6px;
  background: linear-gradient(90deg, var(--navy) 0 60%, var(--red) 60% 100%);
}
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9A97B0; }
.breadcrumb a { color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .arrow-link { margin-top: auto; padding-top: 12px; }
.card--link { position: relative; }
.card--link:hover { box-shadow: var(--shadow); border-color: #CFCBE0; transform: translateY(-2px); }
.card--link h3 a { text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card--accent { border-top: 4px solid var(--red); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--tint); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 8px; }
.card-media { margin: -28px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media--logo { display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.card-media--logo img { width: auto; height: 78%; object-fit: contain; }

/* ---------- Stats / facts ---------- */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface); padding: 24px; }
.fact-num { font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: var(--navy); line-height: 1.1; display: block; }
.fact-label { color: var(--muted); font-size: .95rem; }

/* ---------- Navy band ---------- */
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h2, .on-navy h3 { color: #fff; }
.on-navy a { color: #fff; }
.on-navy a:hover { color: var(--red-on-navy); }
.band { position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  border: 40px solid rgba(255, 255, 255, .05); transform: rotate(45deg);
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li + li { margin-top: .7em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23C41E24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.on-navy .check-list li::before { background-color: rgba(255,255,255,.1); }

.def-list { display: grid; gap: 0; margin: 0; }
.def-list > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .def-list > div { grid-template-columns: 200px 1fr; gap: 20px; } }
.def-list dt { font-weight: 700; color: var(--navy); }
.def-list dd { margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-size: 1.6rem; color: var(--red-ink); font-weight: 600; margin-bottom: 6px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

/* Timeline (news) */
.year-group + .year-group { margin-top: 48px; }
.year-heading { font-family: var(--display); font-size: 1.6rem; color: var(--navy); display: flex; align-items: center; gap: 14px; }
.year-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.news-item { margin: 0; }
.news-item .card { padding: 24px 26px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.news-meta .outlet { font-weight: 700; color: var(--red-ink); letter-spacing: .04em; }
.news-item h3 { font-family: var(--text); font-weight: 700; font-size: 1.12rem; line-height: 1.35; color: var(--ink); }
.news-item h3 a { color: var(--navy); }
.news-item p { margin: 0; color: var(--muted); }

/* Pills / tags */
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.pills li { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: .88rem; font-weight: 600; }
.on-navy .pills li { background: rgba(255,255,255,.1); color: #fff; }

/* Quote / callout */
.callout { border-left: 4px solid var(--red); background: var(--surface); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow); }
.callout p:last-child { margin: 0; }
.callout--plain { box-shadow: none; border: 1px solid var(--line); border-left: 4px solid var(--red); }

/* Figures */
figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 4 / 3; }
.photo-stack { position: relative; padding: 0 0 40px 40px; }
.photo-stack img:first-child { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.photo-stack img + img { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); border: 6px solid var(--base); box-shadow: var(--shadow); }

/* Partner / funder strip */
.funders { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.funders li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.funders strong { display: block; font-family: var(--display); font-weight: 500; color: var(--navy); font-size: 1.1rem; letter-spacing: .02em; }
.funders span { font-size: .9rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
caption { text-align: left; padding: 16px 18px 0; font-weight: 700; color: var(--navy); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
tbody tr:last-child td { border-bottom: 0; }

/* Publications */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.pub-list .pub-title { font-weight: 700; color: var(--ink); display: block; }
.pub-list .pub-meta { color: var(--muted); font-size: .95rem; }
.pub-year { display: inline-block; min-width: 3.2em; font-family: var(--display); color: var(--red-ink); font-weight: 600; }

/* Founder profile */
.profile-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.profile-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 25%; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.profile-links li { margin: 0; }
.profile-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .95rem; }
.profile-links a:hover { border-color: var(--navy); }

/* Contact */
.contact-card address { font-style: normal; }
.contact-card .big { font-family: var(--display); font-size: 1.4rem; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 64px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-on-navy); text-decoration: underline; }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { width: 260px; max-width: 100%; margin-bottom: 18px; }
.site-footer h2 { font-family: var(--text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-on-navy); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }
.footer-stripe { height: 6px; background: linear-gradient(90deg, var(--navy) 0 70%, var(--red) 70% 100%); }

/* ---------- Misc ---------- */
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; }
.logo-tile img { max-height: 260px; width: auto; }
.divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }
.note { font-size: .9rem; color: var(--muted); }
.kbd-tip { font-size: .85rem; color: var(--muted); }
@media print {
  .site-header, .site-footer, .btn-row, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* Partners */
.card h2.h3 { font-size: 1.5rem; font-weight: 500; }
.partner-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .partner-grid { grid-template-columns: 220px 1fr; gap: 36px; } }
.partner-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; max-width: 260px; }
.partner-logo img { max-height: 150px; width: auto; }
.partner-logo--text { background: var(--tint); text-align: center; align-content: center; gap: 6px; }
.partner-logo--text span { font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--navy); letter-spacing: .02em; line-height: 1.1; }
.partner-logo--text small { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.pills a { text-decoration: none; }

/* Social links in footer */
.social { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.social li { margin: 0; }

/* Team page: a clear divider where each person's profile starts */
.section.person, .section + .section.person { border-top: 4px solid var(--navy); scroll-margin-top: calc(var(--header-h) - 4px); }
@media (min-width: 640px) { .def-list--compact > div { grid-template-columns: 72px 1fr; gap: 16px; } }
