/* ==========================================================================
   MedLink Pathways: styles.css
   One stylesheet for the whole site. Mobile first, from 375px.
   Breakpoints: 640px, 960px, 1200px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --teal: #0B7A80;
  --teal-dark: #08646A;
  --deep-blue: #1C3F7A;
  --deep-blue-dark: #142E5A;
  --accent: #D63A5F;
  --accent-dark: #B92C4E;
  --text: #1B2430;
  --muted: #5B6675;
  --surface: #F2F7F8;
  --border: #E3E8EC;
  --placeholder: #D9DEE3;
  --white: #FFFFFF;

  /* Supporting colors */
  --teal-tint: rgba(11, 122, 128, 0.08);
  --white-tint: rgba(255, 255, 255, 0.14);
  --white-line: rgba(255, 255, 255, 0.55);
  --chip-on-photo: rgba(255, 255, 255, 0.92);
  --overlay: rgba(0, 0, 0, 0.4);
  --scrim: rgba(0, 0, 0, 0.3);
  --scrim-strong: rgba(0, 0, 0, 0.45);
  --shadow: rgba(16, 24, 40, 0.1);
  --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --lightbox-bg: rgba(12, 18, 28, 0.94);
  --footer-text: rgba(255, 255, 255, 0.88);
  --footer-line: rgba(255, 255, 255, 0.22);
  --placeholder-text-bg: #FFF6D6;
  --placeholder-text-line: #9A7700;
  --error: #B42318;

  /* Type */
  --font-sans: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Type scale: mobile values (under 640px) */
  --fs-h1: 34px;
  --lh-h1: 42px;
  --fs-h2: 28px;
  --lh-h2: 36px;
  --fs-h3: 20px;
  --lh-h3: 28px;
  --fs-body: 16px;
  --lh-body: 26px;
  --fs-caption: 14px;
  --lh-caption: 20px;
  --fs-stat: 40px;
  --lh-stat: 48px;
  --fs-stat-sm: 32px;
  --lh-stat-sm: 40px;
  --fs-button: 16px;
  --lh-button: 24px;
  --fs-lead: 20px;
  --lh-lead: 30px;
  --fs-nav: 15px;
  --fs-small: 13px;

  /* Spacing: 8px scale */
  --space-half: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-12: 96px;

  /* Layout */
  --container: 1200px;
  --measure: 720px;
  --page-pad: 16px;
  --gutter: 24px;
  --gutter-tight: 16px;
  --section-pad: 64px;
  --block-gap: 64px;
  --header-h: 64px;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-pill: 999px;

  /* Sizes */
  --button-h: 48px;
  --icon: 24px;
  --icon-lg: 32px;
  --avatar: 96px;

  /* Motion */
  --dur: 180ms;
  --dur-reveal: 400ms;
  --ease: ease;
}

@media (min-width: 640px) {
  :root {
    --fs-h1: 48px;
    --lh-h1: 56px;
    --fs-h2: 36px;
    --lh-h2: 44px;
    --fs-h3: 24px;
    --lh-h3: 32px;
    --fs-body: 18px;
    --lh-body: 28px;
    --fs-stat: 56px;
    --lh-stat: 60px;
    --fs-stat-sm: 40px;
    --lh-stat-sm: 48px;
    --page-pad: 24px;
    --section-pad: 96px;
    --block-gap: 96px;
  }
}

@media (min-width: 960px) {
  :root {
    --header-h: 72px;
  }
}

@media (min-width: 1200px) {
  :root {
    --fs-nav: 16px;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll lock for the mobile menu and lightbox. Only on html, so the sticky header keeps working. */
html.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-2);
  color: var(--deep-blue);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
}

h2,
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
}

h3,
h4,
.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
}

p,
ul,
ol,
dl,
blockquote,
figure {
  margin: 0 0 var(--space-2);
}

:where(h1, h2, h3, h4, p, ul, ol, dl, blockquote, figure):last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-dark);
}

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

.on-dark :focus-visible {
  outline-color: var(--white);
}

[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

button {
  font-family: inherit;
}

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

.icon {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--page-pad));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.measure {
  max-width: var(--measure);
}

.measure-center {
  max-width: var(--measure);
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.section {
  padding-block: var(--section-pad);
}

.section--surface {
  background: var(--surface);
}

.section--tight-top {
  padding-top: 0;
}

.section-title {
  margin-bottom: var(--space-5);
}

.section-title--center {
  text-align: center;
}

.section-intro {
  max-width: var(--measure);
  margin-bottom: var(--space-5);
}

.prose {
  max-width: var(--measure);
}

.prose p + p {
  margin-top: var(--space-2);
}

.stack > * + * {
  margin-top: var(--block-gap);
}

/* 12-column grid. Children span the full row on mobile. */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.grid-12 > * {
  grid-column: 1 / -1;
}

/* Two-column split: text and media. DOM order sets the mobile order. */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4) var(--gutter);
  align-items: center;
}

.split > * {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 960px) {
  .split > .split__text {
    grid-column: 1 / span 5;
    grid-row: 1;
  }

  .split > .split__media {
    grid-column: 7 / span 6;
    grid-row: 1;
  }

  .split--flip > .split__media {
    grid-column: 1 / span 6;
  }

  .split--flip > .split__text {
    grid-column: 8 / span 5;
  }

  .split--even > .split__text {
    grid-column: 1 / span 6;
  }

  .split--even > .split__media {
    grid-column: 7 / span 6;
  }
}

/* Card grids (built on the same 12-column rhythm) */
.grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid > * {
  min-width: 0;
}

.grid--tiles,
.grid--stats,
.grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter-tight);
}

.grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter-tight);
}

.grid--5 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter-tight);
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--cards-3,
  .grid--stats-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid--tiles,
  .grid--stats,
  .grid--4,
  .grid--5,
  .grid--6 {
    gap: var(--gutter);
  }
}

@media (min-width: 960px) {
  .grid--3,
  .grid--tiles-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--tiles,
  .grid--stats,
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .grid--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Fade up on first scroll into view (main.js adds .is-visible) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Anchor targets clear the sticky header */
[id] {
  scroll-margin-top: var(--header-h);
}

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--button-h);
  padding: 0 var(--space-3);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-button);
  line-height: var(--lh-button);
  font-weight: var(--fw-semibold);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.on-dark .btn:focus-visible {
  outline-color: var(--white);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn--secondary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn--tertiary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn--tertiary:hover {
  background: var(--teal-tint);
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.btn--outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white-tint);
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.actions--center {
  justify-content: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. Placeholders
   -------------------------------------------------------------------------- */

/* Photo slot. Swap .photo-slot__box for <img> to add a real photo. */
.photo-slot {
  position: relative;
  margin: 0;
}

.photo-slot__box,
.photo-slot > img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius);
}

.photo-slot > img {
  height: auto;
  object-fit: cover;
}

.photo-slot__box {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-half);
  padding: 12px;
  overflow: hidden;
  text-align: center;
  background: var(--placeholder);
  border: 1px dashed var(--muted);
  color: var(--text);
}

.photo-slot__label {
  max-width: 34ch;
  font-size: clamp(11px, 4.6cqi, 15px);
  line-height: 1.35;
  font-weight: var(--fw-semibold);
}

.photo-slot__meta {
  font-family: var(--font-mono);
  font-size: clamp(10px, 3.8cqi, 13px);
  line-height: 1.3;
  color: var(--deep-blue);
}

@container (max-width: 150px) {
  .photo-slot__meta {
    display: none;
  }
}

.photo-slot__caption {
  margin-top: var(--space-1);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

/* Photo behind hero text, with the 40% dark overlay */
.photo-slot--bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.photo-slot--bg .photo-slot__box,
.photo-slot--bg > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.photo-slot--bg .photo-slot__box {
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--space-2);
}

.photo-slot--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.photo-slot--bg .photo-slot__label,
.photo-slot--bg .photo-slot__meta {
  position: relative;
  z-index: 1;
  max-width: min(340px, 80%);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--chip-on-photo);
  font-size: 13px;
  text-align: right;
}

.photo-slot--bg .photo-slot__meta {
  display: block;
  font-size: 12px;
}

/* Round avatar, 96px */
.photo-slot--avatar {
  width: var(--avatar);
  margin-inline: auto;
}

.photo-slot--avatar .photo-slot__box,
.photo-slot--avatar > img {
  border-radius: 50%;
  padding: 8px;
}

.photo-slot--avatar > img {
  padding: 0;
}

/* Fixed-width slot (PromptPay QR) */
.photo-slot--200 {
  width: 200px;
  max-width: 100%;
}

/* Photos at the top of a card sit flush with the card edge */
.person-card > .photo-slot .photo-slot__box,
.person-card > .photo-slot > img,
.project-card > .photo-slot .photo-slot__box,
.project-card > .photo-slot > img {
  border-width: 0 0 1px;
  border-radius: 0;
}

/* Side-by-side photo pair */
.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter-tight);
}

/* Text placeholders */
.placeholder-text {
  padding: 0 4px;
  border-bottom: 1px dashed var(--placeholder-text-line);
  border-radius: 2px;
  background: var(--placeholder-text-bg);
  color: var(--text);
}

.placeholder-block {
  display: block;
}

.placeholder-lines {
  display: block;
  margin-top: 0.5em;
}

.placeholder-lines > span {
  display: block;
  height: 0.6em;
  margin-bottom: 0.5em;
  border-radius: 4px;
  background: var(--placeholder);
}

.placeholder-lines > span:last-child {
  margin-bottom: 0;
}

.text-center .placeholder-lines > span {
  margin-inline: auto;
}

/* Logo placeholder tile (partners, competitions) */
.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 100%;
  min-height: 112px;
  padding: var(--space-2) 12px;
  border-radius: var(--radius);
  background: var(--placeholder);
  color: var(--text);
  font-size: var(--fs-caption);
  line-height: 18px;
  font-weight: var(--fw-semibold);
  text-align: center;
  text-decoration: none;
  transition: filter var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.logo-tile__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
}

.logo-tile__name {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.logo-tile__name .placeholder-text {
  padding: 0;
}

a.logo-tile:hover {
  color: var(--text);
  background: var(--surface);
}

.logo-tile--mono {
  filter: grayscale(1);
}

.logo-tile--mono:hover,
.logo-tile--mono:focus-visible {
  filter: none;
}

/* --------------------------------------------------------------------------
   6. Components
   -------------------------------------------------------------------------- */

/* Card */
.card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card__body {
  padding: var(--space-3);
}

/* Fact chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--deep-blue);
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
}

.section--surface .chip,
.closing-band .chip {
  background: var(--white);
}

.text-center .chips {
  justify-content: center;
}

/* Hospital tags with year beneath */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-half);
}

.tag-list__year {
  padding-left: 12px;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

/* Badge with medal icon */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 12px 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--deep-blue);
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
}

.badge .icon {
  color: var(--teal);
}

/* Stat block */
.stat {
  text-align: center;
}

.stat__figure {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-stat);
  line-height: var(--lh-stat);
  font-weight: var(--fw-bold);
  color: var(--deep-blue);
  letter-spacing: -0.01em;
}

/* A placeholder label inside a stat figure stands in for a short number */
.stat__figure .placeholder-text {
  font-size: 0.6em;
  line-height: 1.4;
}

.stat__label {
  max-width: 30ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.stat--sm .stat__figure {
  font-size: var(--fs-stat-sm);
  line-height: var(--lh-stat-sm);
}

.stat--left {
  text-align: left;
}

.stat--left .stat__label {
  margin: 0;
}

.stat-band__more {
  margin-top: var(--space-5);
  text-align: center;
}

.stat-divider {
  height: 1px;
  margin: var(--space-6) 0;
  border: 0;
  background: var(--border);
}

/* Program tile: the whole card is a link */
.program-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: var(--space-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.program-tile:hover {
  border-color: var(--teal);
  color: var(--text);
}

.program-tile__icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  color: var(--teal);
}

.program-tile__title {
  margin: 0;
  color: var(--deep-blue);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.program-tile__line {
  margin: 0;
  flex-grow: 1;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.program-tile__more {
  color: var(--teal);
  transition: transform var(--dur) var(--ease);
}

.program-tile:hover .program-tile__more {
  transform: translateX(4px);
}

@media (min-width: 640px) {
  .program-tile {
    padding: var(--space-3);
  }
}

/* Page hero: H1 over a photo slot */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}

.hero--page {
  height: 50vh;
  min-height: 360px;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-5);
}

.hero__title {
  max-width: 20ch;
  margin: 0;
  color: var(--white);
  text-shadow: var(--text-shadow);
}

.hero--page .photo-slot--bg .photo-slot__box {
  align-items: flex-end;
  justify-content: flex-start;
}

/* Bottom scrim under the page title so it stays readable over any photo */
.hero--page .photo-slot--bg::after {
  background:
    linear-gradient(to top, var(--scrim-strong) 0, rgba(0, 0, 0, 0) 60%),
    var(--overlay);
}

/* Homepage hero: full viewport height, sits under the transparent header */
.hero--home {
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  margin-top: calc(-1 * var(--header-h));
  align-items: center;
}

.hero--home .hero__content {
  padding-top: calc(var(--header-h) + var(--space-5));
  padding-bottom: var(--space-12);
}

.hero--home .hero__title {
  max-width: 18ch;
}

.hero--home .photo-slot--bg .photo-slot__box {
  justify-content: flex-end;
}

/* Extra scrim behind the header and the text column so white text stays readable */
.hero--home .photo-slot--bg::after {
  background:
    linear-gradient(to bottom, var(--scrim) 0, rgba(0, 0, 0, 0) 160px),
    linear-gradient(var(--scrim), var(--scrim)),
    var(--overlay);
}

@media (min-width: 960px) {
  .hero--home .photo-slot--bg::after {
    background:
      linear-gradient(to bottom, var(--scrim) 0, rgba(0, 0, 0, 0) 160px),
      linear-gradient(to right, var(--scrim) 0, var(--scrim) 45%, rgba(0, 0, 0, 0) 80%),
      var(--overlay);
  }
}

.hero__lead {
  max-width: 40ch;
  margin: var(--space-2) 0 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--white);
  text-shadow: var(--text-shadow);
}

.hero__actions {
  margin-top: var(--space-4);
}

/* Page header without photo */
.page-header {
  padding-block: var(--space-8);
  background: var(--surface);
}

.page-header h1 {
  margin: 0;
}

.page-header__intro {
  max-width: var(--measure);
  margin: var(--space-2) 0 0;
}

/* Closing band */
.closing-band {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.closing-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.closing-band__more {
  margin-top: var(--space-8);
  text-align: left;
}

.closing-band__title {
  margin-bottom: var(--space-4);
  text-align: center;
}

/* Founder quote block */
.founder-quote__inner {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}

.founder-quote__text {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--deep-blue);
}

.founder-quote__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-4);
}

.founder-quote__person .photo-slot {
  margin-bottom: var(--space-1);
}

.founder-quote__name {
  font-weight: var(--fw-bold);
  color: var(--text);
}

.founder-quote__title {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

.founder-quote .actions {
  justify-content: center;
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
}

.skip-link {
  position: absolute;
  top: -200px;
  left: var(--space-2);
  z-index: 200;
  padding: 12px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--deep-blue);
  font-weight: var(--fw-semibold);
  box-shadow: 0 2px 12px var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: relative;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  border-radius: var(--radius-xs);
}

.site-header__logo img {
  width: auto;
  height: 40px;
}

.site-header__donate {
  flex-shrink: 0;
  padding-inline: 20px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

.site-nav,
.site-header__lang {
  display: none;
}


@media (min-width: 960px) {
  .site-header__inner {
    gap: var(--space-2);
  }

  .site-nav {
    display: block;
    align-self: stretch;
  }

  .site-header__lang {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .site-header__donate {
    padding-inline: var(--space-3);
  }

  .site-header__logo img {
    height: 48px;
  }
}


/* Transparent state over the homepage hero */
.site-header.is-transparent {
  border-bottom-color: transparent;
  background: transparent;
  color: var(--white);
}

.site-header.is-transparent .site-header__logo img {
  filter: brightness(0) invert(1);
}

.site-header.is-transparent :focus-visible {
  outline-color: var(--white);
}

.site-header.is-transparent .site-nav__dropdown :focus-visible {
  outline-color: var(--teal);
}

/* Desktop nav */
.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__trigger,
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  font-size: var(--fs-nav);
  line-height: 24px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-nav__trigger:hover,
.site-nav__link:hover {
  background: var(--surface);
  color: var(--teal-dark);
}

.site-header.is-transparent .site-nav__trigger:hover,
.site-header.is-transparent .site-nav__link:hover {
  background: var(--white-tint);
  color: var(--white);
}

.site-nav__trigger.is-current,
.site-nav__link[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-header.is-transparent .site-nav__trigger.is-current,
.site-header.is-transparent .site-nav__link[aria-current="page"] {
  color: var(--white);
}

.site-nav__chevron {
  transition: transform var(--dur) var(--ease);
}

.site-nav__item.is-open .site-nav__chevron {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .site-nav__trigger,
  .site-nav__link {
    padding-inline: 12px;
  }
}

/* Dropdown panel */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: -8px;
  z-index: 10;
  min-width: 264px;
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 12px 32px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.site-nav__item.is-open > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}

.site-nav__menu,
.site-nav__menu-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-nav__menu a:hover {
  background: var(--surface);
  color: var(--teal-dark);
}

.site-nav__menu a[aria-current="page"] {
  background: var(--surface);
  color: var(--teal);
  font-weight: var(--fw-semibold);
}

.site-nav__menu-sub {
  margin: 0 0 var(--space-half) 20px;
  padding-left: var(--space-1);
  border-left: 2px solid var(--border);
}

.site-nav__menu .site-nav__menu-sub a {
  padding-block: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.site-nav__menu .site-nav__menu-sub a:hover,
.site-nav__menu .site-nav__menu-sub a[aria-current="page"] {
  color: var(--teal-dark);
}

/* TH / EN switch */
.lang-switch {
  position: relative;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.lang-switch__btn {
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  font-size: var(--fs-small);
  line-height: 1;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--deep-blue);
  color: var(--white);
  cursor: default;
}

.lang-switch__btn[aria-disabled="true"] {
  color: var(--muted);
  cursor: not-allowed;
}

.site-header.is-transparent .lang-switch {
  border-color: var(--white-line);
}

.site-header.is-transparent .lang-switch__btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--deep-blue);
}

.site-header.is-transparent .lang-switch__btn[aria-disabled="true"] {
  color: var(--white);
  opacity: 0.75;
}

.lang-switch__tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: var(--text);
  color: var(--white);
  font-size: var(--fs-small);
  line-height: 18px;
  font-weight: var(--fw-regular);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.lang-switch__btn[aria-disabled="true"]:hover + .lang-switch__tip,
.lang-switch__btn[aria-disabled="true"]:focus-visible + .lang-switch__tip,
.lang-switch__btn.show-tip + .lang-switch__tip {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease), visibility 0s;
}

/* Mobile menu (under 960px) */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-1) var(--page-pad) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

@media (min-width: 960px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__list,
.mobile-menu__sub,
.mobile-menu__sub-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__group-btn,
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: var(--space-2) 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--deep-blue);
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--fw-semibold);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-menu__link[aria-current="page"] {
  color: var(--teal);
}

.mobile-menu__group-btn .icon {
  transition: transform var(--dur) var(--ease);
}

.mobile-menu__group-btn[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.mobile-menu__panel {
  padding: var(--space-1) 0 var(--space-2);
  border-bottom: 1px solid var(--border);
}

.mobile-menu__sub a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 24px;
  text-decoration: none;
}

.mobile-menu__sub a[aria-current="page"] {
  color: var(--teal);
  font-weight: var(--fw-semibold);
}

.mobile-menu__sub-sub {
  margin: 0 0 var(--space-1) 4px;
  padding-left: var(--space-2);
  border-left: 2px solid var(--border);
}

.mobile-menu__sub .mobile-menu__sub-sub a {
  padding-block: 8px;
  font-size: 16px;
  color: var(--muted);
}

.mobile-menu__footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.mobile-menu__footer .lang-switch {
  display: inline-flex;
}

.mobile-menu__footer-label {
  font-size: var(--fs-caption);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: var(--space-8);
  background: var(--deep-blue);
  color: var(--footer-text);
  font-size: 16px;
  line-height: 24px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--gutter);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer__logo {
  display: inline-flex;
}

.site-footer__logo img {
  width: auto;
  height: 56px;
  filter: brightness(0) invert(1);
}

.site-footer__tagline {
  max-width: 320px;
  margin-top: var(--space-2);
}

.site-footer__heading {
  margin: 0 0 var(--space-2);
  color: var(--white);
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--fw-bold);
}

.site-footer__links,
.site-footer__contact,
.site-footer__social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links {
  display: grid;
  gap: 10px;
}

.site-footer__contact {
  display: grid;
  gap: 12px;
}

.site-footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease);
}

.site-footer__social a:hover {
  background: var(--white-tint);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-7);
  padding-block: var(--space-3);
  border-top: 1px solid var(--footer-line);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}

.site-footer__bottom p {
  margin: 0;
}

/* Social icon links (also used on Get Involved) */
.social-links {
  display: flex;
  gap: 12px;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  transition: border-color var(--dur) var(--ease);
}

.social-links a:hover {
  border-color: var(--teal);
}

/* --------------------------------------------------------------------------
   9. Homepage
   -------------------------------------------------------------------------- */
.program-block .split__text h3 {
  margin-bottom: 12px;
}

.mini-projects {
  gap: var(--gutter-tight);
}

.mini-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  height: 100%;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease);
}

.mini-project:hover {
  border-color: var(--teal);
  color: var(--text);
}

.mini-project__name {
  margin: 0;
}

.mini-project__line {
  margin: 0;
  flex-grow: 1;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

.logo-strip {
  display: flex;
  gap: var(--gutter-tight);
  margin: 0;
  padding: 0 0 var(--space-1);
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.logo-strip > li {
  flex: 0 0 152px;
  scroll-snap-align: start;
}

@media (min-width: 1200px) {
  .logo-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
}

.partners-strip__title {
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   10. People
   -------------------------------------------------------------------------- */
.person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.person-card__name {
  margin: 0 0 4px;
}

.person-card__role {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  color: var(--teal);
}

.person-card__meta {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.person-card__bio {
  margin-top: var(--space-2);
  font-size: 16px;
  line-height: 26px;
}

.person-card__quote {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-2);
  border-left: 3px solid var(--teal);
  font-style: italic;
}

.member {
  margin: 0;
}

.member__name {
  margin: var(--space-1) 0 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-semibold);
  text-align: center;
}

.compact-card {
  height: 100%;
  padding: 20px;
}

.compact-card__name {
  margin: 0 0 4px;
  font-weight: var(--fw-bold);
  color: var(--deep-blue);
}

.compact-card__meta {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

.logo-group + .logo-group {
  margin-top: var(--space-6);
}

.logo-group__title {
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   11. Program pages
   -------------------------------------------------------------------------- */
.activities {
  margin-top: var(--space-8);
}

.activity {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border);
}

.activity:last-child {
  padding-bottom: 0;
}

.activity__title {
  margin-bottom: 12px;
}

.activity--text-only .activity__text {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}

.activity--text-only .actions {
  justify-content: center;
}

/* Project cards (Research & Innovation) */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card .card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-grow: 1;
}

.photo-slot--contain > img {
  object-fit: contain;
  background: #FAFBFC;
}

.project-card {
  position: relative;
}

.project-card__name {
  margin: 0;
}

/* Whole card is clickable when the project has its own website */
.project-card__link {
  color: inherit;
  text-decoration: none;
}

.project-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  text-decoration: underline;
}

.project-card:has(.project-card__link):hover {
  box-shadow: 0 6px 20px var(--shadow);
}

.project-card__line {
  margin: 0;
  flex-grow: 1;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.project-card__credit {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

.project-card .btn {
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   12. Project pages
   -------------------------------------------------------------------------- */
.project-hero {
  padding-block: var(--space-6) var(--space-8);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--teal);
}

.project-hero h1 {
  margin-bottom: var(--space-1);
}

.project-hero__formal {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.tagline {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  color: var(--teal);
}

.project-hero__line {
  margin: 0;
  color: var(--muted);
}

.project-hero__origin {
  max-width: var(--measure);
  margin: var(--space-6) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-style: italic;
  color: var(--muted);
}

.problem {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.problem__text {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.problem__stat {
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

@media (min-width: 960px) {
  .problem {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-8);
  }
}

/* How It Works: numbered steps joined by arrows */
.steps {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-1) var(--space-2);
  align-items: start;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 18px;
  font-weight: var(--fw-bold);
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.step__icon {
  color: var(--teal);
}

.step__text {
  margin: 0;
}

.step__note {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

/* Arrow connector between steps: points down on mobile, right on desktop */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(100% + 12px);
  left: 12px;
  width: 24px;
  height: 24px;
  background-color: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 960px) {
  .steps {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: var(--space-8);
  }

  .step {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .step__body {
    padding-top: 0;
  }

  .step:not(:last-child)::after {
    top: 12px;
    left: calc(100% + 20px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  }
}

/* Feature cards */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-3);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
}

.section--surface .feature-card__icon {
  background: var(--surface);
}

.feature-card__text {
  margin: 0;
}

/* Status list */
.status-list {
  display: grid;
  gap: 12px;
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-list .icon {
  margin-top: 2px;
  color: var(--teal);
}

/* Award cards */
.award-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: var(--space-3);
}

.award-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--placeholder);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  text-align: center;
}

.award-card__title {
  margin: var(--space-1) 0 0;
}

.award-card__competition {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.award-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: auto 0 0;
  padding-top: var(--space-1);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}

.award-card__year {
  color: var(--muted);
}

.patents {
  margin-top: var(--space-8);
}

/* Awards: shorter list under the cards */
.awards-more,
.awards-album {
  margin-top: var(--space-8);
}

.awards-more ul {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.awards-more li {
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.awards-more li:first-child {
  border-top: 1px solid var(--border);
}

.awards-more__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Impact
   -------------------------------------------------------------------------- */
.map-layout {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 960px) {
  .map-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-8);
  }
}

.map {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-inline: auto;
}

.map__land {
  fill: var(--white);
  stroke: var(--teal);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.map__inset {
  fill: var(--white);
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.map__country-label {
  fill: var(--muted);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

.map__pin {
  fill: var(--teal);
  stroke: var(--white);
  stroke-width: 3;
}

.map__pin-ring {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  opacity: 0.45;
}

.map__name {
  fill: var(--deep-blue);
  font-size: 16px;
  font-weight: var(--fw-bold);
}

.map__caption {
  fill: var(--muted);
  font-size: 13px;
}

/* White halo keeps pin labels readable where they cross the outline */
.map__name,
.map__caption,
.map__country-label {
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-legend {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-legend li {
  display: flex;
  gap: 12px;
}

.map-legend .icon {
  color: var(--teal);
}

.map-legend__name {
  display: block;
  font-weight: var(--fw-bold);
  color: var(--deep-blue);
}

.map-legend__caption {
  display: block;
  color: var(--muted);
}

.fund-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
}

.table-wrap {
  margin-top: var(--space-4);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 24px;
}

.table th,
.table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table thead th {
  background: var(--surface);
  color: var(--deep-blue);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-left: var(--space-6);
}

.timeline__item + .timeline__item {
  margin-top: var(--space-6);
}

.timeline__dot {
  position: absolute;
  top: 36px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--white);
}

.timeline__card {
  padding: var(--space-3);
}

.timeline__card--next {
  border: 2px dashed var(--muted);
  background: var(--surface);
}

.timeline__year {
  margin: 0 0 4px;
}

.timeline__eyebrow {
  display: block;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  color: var(--teal);
  letter-spacing: 0;
}

.timeline__year-num {
  display: block;
  font-size: var(--fs-stat);
  line-height: var(--lh-stat);
  font-weight: var(--fw-bold);
  color: var(--deep-blue);
}

.timeline__title {
  margin-bottom: 12px;
}

.timeline__list {
  margin: 0 0 var(--space-3);
  padding-left: 20px;
}

.timeline__list li + li {
  margin-top: var(--space-1);
}

@media (min-width: 960px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-1px);
  }

  .timeline__item {
    width: 50%;
    padding-left: 0;
    padding-right: var(--space-6);
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: var(--space-6);
  }

  .timeline__dot {
    left: auto;
    right: -8px;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    right: auto;
    left: -8px;
  }
}

/* --------------------------------------------------------------------------
   15. Gallery and lightbox
   -------------------------------------------------------------------------- */
.filters {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}

.filter-group__label {
  min-width: 72px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--muted);
}

.pill {
  min-height: 44px;
  padding: 10px var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pill:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.pill[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.pill[aria-pressed="true"]:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.gallery-status {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-caption);
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.photo-slot__open {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--deep-blue);
  cursor: zoom-in;
  transition: background-color var(--dur) var(--ease);
}

.photo-slot__open:hover {
  background: var(--teal-tint);
}

.photo-slot__open-icon {
  display: inline-flex;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--chip-on-photo);
}

.gallery-empty {
  margin-top: var(--space-3);
  color: var(--muted);
}

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--lightbox-bg);
  color: var(--white);
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  height: 100%;
  padding: 72px var(--space-2) var(--space-3);
}

.lightbox__figure {
  width: min(1000px, 100%, calc(68vh * var(--ratio, 4 / 3)));
  margin: 0;
}

.lightbox__media .photo-slot__box,
.lightbox__media img {
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius);
  object-fit: cover;
}

.lightbox__caption {
  margin-top: 12px;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--white);
  text-align: center;
}

.lightbox__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--white-line);
  border-radius: 50%;
  background: var(--white-tint);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
}

.lightbox__counter {
  min-width: 72px;
  margin: 0;
  font-size: var(--fs-caption);
  text-align: center;
}

@media (min-width: 960px) {
  .lightbox__stage {
    padding: var(--space-8) var(--space-12);
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox__btn--prev {
    left: var(--space-4);
  }

  .lightbox__btn--next {
    right: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   16. Get Involved, forms, and Donate
   -------------------------------------------------------------------------- */
.involve-block {
  max-width: var(--measure);
}

.contact-layout {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-5);
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--space-8);
  }
}

.form {
  display: grid;
  gap: 20px;
}

.form__note {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.field__hint {
  font-weight: var(--fw-regular);
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: var(--button-h);
  padding: 11px 14px;
  border: 1px solid var(--muted);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  color: var(--error);
}

.form__actions {
  margin-top: 4px;
}

.form-success {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
}

.form-success p {
  margin: 0;
  font-weight: var(--fw-semibold);
  color: var(--deep-blue);
}

.contact-details {
  align-self: start;
  padding: var(--space-3);
}

.contact-details__list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details__list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-details__list .icon {
  color: var(--teal);
}

.give-card {
  height: 100%;
  padding: var(--space-3);
}

.give-card h3 {
  margin-bottom: var(--space-3);
}

.bank-details {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.bank-details dt {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

.bank-details dd {
  margin: 2px 0 0;
  font-weight: var(--fw-semibold);
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.copy-status {
  font-size: var(--fs-caption);
  color: var(--teal);
}

.gift-card {
  height: 100%;
  padding: var(--space-3);
  text-align: center;
}

.gift-card__amount {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-stat-sm);
  line-height: var(--lh-stat-sm);
  font-weight: var(--fw-bold);
  color: var(--deep-blue);
}

/* --------------------------------------------------------------------------
   17. Our Story
   -------------------------------------------------------------------------- */
.mission-statement {
  max-width: 26ch;
  margin: 0 auto;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  color: var(--teal);
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   18. Real photos, people, and logos
   -------------------------------------------------------------------------- */

/* Hero photos: --focus on the figure sets which part stays in view when cropped */
.photo-slot--bg > img {
  object-position: var(--focus, 50% 50%);
}

.photo-slot--round .photo-slot__box,
.photo-slot--round > img {
  border-radius: 50%;
}

/* Row of three photos */
.photo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter-tight);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .photo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
  }
}

/* Quotes */
.founder-quote__text,
.founder-feature__quote {
  quotes: "\201C" "\201D";
}

.founder-quote__text p::before,
.founder-feature__quote p::before {
  content: open-quote;
}

.founder-quote__text p::after,
.founder-feature__quote p::after {
  content: close-quote;
}

/* Founders: featured president card */
.founder-feature {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--gutter);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.founder-feature .photo-slot {
  width: 160px;
  margin-inline: auto;
}

.founder-feature__name {
  margin: 0 0 4px;
}

.founder-feature .person-card__role {
  margin-bottom: 0;
}

.founder-feature__quote {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--teal);
}

@media (min-width: 960px) {
  .founder-feature {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--space-5);
    padding: var(--space-5);
    text-align: left;
  }

  .founder-feature .photo-slot {
    width: 200px;
  }
}

.founders-grid .person-card__bio {
  margin-top: 0;
}

/* Long names must never push a card wider */
.person-card__name,
.founder-feature__name,
.team-card__name {
  overflow-wrap: break-word;
}

@media (min-width: 640px) and (max-width: 959px) {
  .founders-grid .person-card__name {
    font-size: 22px;
    line-height: 30px;
  }
}

/* Team: leadership cards */
@media (min-width: 960px) {
  .leader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.leader-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-3);
}

.leader-card .photo-slot {
  width: 80px;
  flex-shrink: 0;
}

.leader-card__body {
  min-width: 0;
}

.leader-card .person-card__role {
  margin-bottom: 0;
}

.leader-card .person-card__quote {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
}

@media (min-width: 640px) {
  .leader-card {
    gap: var(--space-3);
  }

  .leader-card .photo-slot {
    width: 120px;
  }
}

/* Team: how we are organized */
@media (min-width: 640px) {
  .org-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .org-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.org-step {
  height: 100%;
  padding: var(--space-3);
}

.org-step__verb {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
}

.org-step__title {
  margin: 0 0 var(--space-1);
}

.org-step__line {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.org-step__areas {
  margin: var(--space-2) 0 0;
  padding: var(--space-2) 0 0 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 24px;
}

/* Team: executive team cards. Photo beside the text on phones, above it from 640px. */
.team-grid {
  gap: var(--gutter-tight);
}

.team-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-2);
}

.team-card > .photo-slot {
  width: 88px;
  flex-shrink: 0;
}

.team-card > .photo-slot .photo-slot__box,
.team-card > .photo-slot > img {
  border-radius: var(--radius-sm);
}

.team-card__body {
  min-width: 0;
}

.team-card__name {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 26px;
}

.team-card__role {
  margin: 0 0 var(--space-1);
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  color: var(--teal);
}

.team-card__bio {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
  }

  .team-card {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .team-card > .photo-slot {
    width: 100%;
  }

  .team-card > .photo-slot .photo-slot__box,
  .team-card > .photo-slot > img {
    border-radius: 0;
  }

  .team-card__body {
    padding: 20px;
  }
}

@media (min-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Real logos */
.logo-tile--img {
  justify-content: flex-start;
  gap: 12px;
  padding: var(--space-2);
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color var(--dur) var(--ease);
}

a.logo-tile--img:hover {
  border-color: var(--teal);
  background: var(--white);
}

.logo-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
}

.logo-tile__logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.logo-tile__mark--img {
  overflow: hidden;
  background: var(--white);
}

.logo-tile__mark--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Award cards can show a photo in place of the competition logo */
.award-card > .photo-slot {
  width: 100%;
}

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

/* --------------------------------------------------------------------------
   20. Logo wall, member grid, team placeholders (October 2026)
   -------------------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter-tight);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
  }
}

@media (min-width: 960px) {
  .logo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .logo-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.logo-wall .logo-tile--img {
  justify-content: center;
  min-height: 150px;
}

.logo-wall .logo-tile__logo {
  height: 96px;
}

.logo-tile--img .logo-tile__name {
  font-size: 13px;
  line-height: 18px;
  color: var(--deep-blue);
}

/* Homepage strip: one scrolling row of every logo */
.partners-strip .logo-strip {
  display: flex;
  overflow-x: auto;
  padding-bottom: var(--space-1);
}

.partners-strip .logo-strip > li {
  flex: 0 0 160px;
}

.partners-strip .logo-tile--img {
  justify-content: center;
}

.member-grid {
  row-gap: var(--space-4);
}

.member__tag {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: var(--fw-semibold);
  color: var(--teal);
  text-align: center;
}

.team-card__fullname {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: var(--fw-regular);
}

/* Founders: centered cards with a large round portrait. */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter-tight);
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: var(--space-4) var(--space-3) var(--space-3);
  text-align: center;
  border-top: 4px solid var(--teal);
}

.founder-card > .photo-slot {
  width: 168px;
  max-width: 100%;
}

.founder-card > .photo-slot .photo-slot__box,
.founder-card > .photo-slot > img {
  border-radius: 50%;
}

.founder-card__name {
  margin: var(--space-2) 0 var(--space-1);
  font-size: 20px;
  line-height: 28px;
}

.founder-card__role {
  margin: 0 0 var(--space-2);
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--surface, #eef6f6);
  font-size: 13px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  color: var(--teal);
}

.founder-card__quote {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  font-style: italic;
}

@media (min-width: 600px) {
  .founder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
  }
}

@media (min-width: 1100px) {
  .founder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   18. Photo albums, filmstrip, and photo viewer
   Albums are mosaics sized by how big the event was:
   .album--xl (9 tiles), .album--lg (6 tiles), .album--md (3 tiles).
   Every photo in the album is in the markup; tiles past the visible count
   are hidden and open in the photo viewer (main.js, section 10).
   -------------------------------------------------------------------------- */
:root {
  --album-gap: 8px;
  --radius-lg: 16px;
}

@media (min-width: 640px) {
  :root {
    --album-gap: 12px;
  }
}

.album {
  container-type: inline-size;
  margin-top: var(--space-4);
}

.album__title {
  margin: 0 0 12px;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.album__grid {
  --cols: 2;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--album-gap)) / var(--cols) * 0.75);
  grid-auto-flow: dense;
  gap: var(--album-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.album__item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--placeholder);
}

.album__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Phones: the lead photo plus a few */
.album--xl .album__item:nth-child(n+8),
.album--lg .album__item:nth-child(n+6),
.album--md .album__item:nth-child(n+4) {
  display: none;
}

.album__open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.album__open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.album__open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 18, 28, 0.5), rgba(12, 18, 28, 0) 45%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

@media (hover: hover) {
  .album__open:hover img {
    transform: scale(1.05);
  }

  .album__open:hover::after {
    opacity: 1;
  }
}

.album__open:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Photo count on the lead tile */
.album__count {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(12, 18, 28, 0.62);
  color: var(--white);
  font-size: var(--fs-small);
  line-height: 20px;
  font-weight: var(--fw-semibold);
}

/* "+12" over the last visible tile (set by main.js) */
.album__item[data-more]::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 18, 28, 0.58);
  color: var(--white);
  font-size: clamp(22px, 4cqi, 36px);
  font-weight: var(--fw-bold);
  pointer-events: none;
}

.album__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-3);
  margin-top: 12px;
}

.album__caption {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

.album__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  cursor: pointer;
}

.album__all:hover {
  color: var(--deep-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .album__item {
    border-radius: var(--radius-lg);
  }

  .album--xl .album__grid,
  .album--lg .album__grid {
    --cols: 4;
  }

  .album--md .album__grid {
    --cols: 3;
  }

  .album--xl .album__item:nth-child(n),
  .album--lg .album__item:nth-child(n) {
    display: block;
  }

  .album--xl .album__item:nth-child(n+10),
  .album--lg .album__item:nth-child(n+7) {
    display: none;
  }

  /* md with only two photos: tall photo plus a wide one, same height */
  .album--md .album__item:first-child:nth-last-child(2) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .album--md .album__item:last-child:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* xl: 4 x 4 bento */
  .album--xl .album__item:nth-child(2),
  .album--xl .album__item:nth-child(7),
  .album--xl .album__item:nth-child(9) {
    grid-column: span 2;
  }

  .album--xl .album__item:nth-child(5) {
    grid-row: span 2;
  }

  /* lg: 4 x 3 */
  .album--lg .album__item:nth-child(2),
  .album--lg .album__item:nth-child(5),
  .album--lg .album__item:nth-child(6) {
    grid-column: span 2;
  }
}

/* xl rows a little shorter on wide screens so the mosaic fits a screen */
@media (min-width: 1200px) {
  .album--xl .album__grid {
    grid-auto-rows: calc((100cqi - 3 * var(--album-gap)) / 4 * 0.66);
  }
}

/* Program pages: activity text above its photo album */
.activity--album .activity__head {
  display: grid;
  gap: 0 var(--gutter);
}

.activity__kicker {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-small);
  line-height: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.activity--album .activity__head p + p {
  margin-top: var(--space-2);
}

.activity--album .album + .album {
  margin-top: var(--space-6);
}

.activity--xl .activity__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

@media (min-width: 960px) {
  .activity--album .activity__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .activity--album .activity__head > * {
    grid-column: 6 / -1;
  }

  .activity--album .activity__head > .activity__lead {
    grid-column: 1 / span 4;
    grid-row: 1 / span 8;
  }

  .activity--album .activity__head .chips {
    margin-top: var(--space-2);
  }
}

/* Smaller events: text and a 3-photo mosaic side by side */
@media (min-width: 960px) {
  .activity--md {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gutter);
    align-items: center;
  }

  .activity--md .activity__head {
    display: block;
    grid-column: 1 / span 5;
  }

  .activity--md .album {
    grid-column: 7 / span 6;
    grid-row: 1;
    margin-top: 0;
  }

  .activity--md.activity--flip .activity__head {
    grid-column: 8 / span 5;
  }

  .activity--md.activity--flip .album {
    grid-column: 1 / span 6;
  }
}

/* Two albums side by side (Research, Awards) */
.album-duo {
  display: grid;
  gap: var(--space-6) var(--gutter);
}

.album-duo--next {
  margin-top: var(--space-6);
}

.album-duo__title {
  margin: 0;
}

.album-duo__meta {
  margin: 4px 0 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.album-duo .album {
  margin-top: var(--space-2);
}

@media (min-width: 960px) {
  .album-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Timeline cards: the album sits where the single photo was */
.timeline__card .album {
  margin-top: var(--space-3);
}

/* Gallery: one cover per album */
.album-covers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: dense;
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .album-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .album-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .album-covers > li:first-child,
  .album-covers > li:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.album--cover {
  height: 100%;
  margin: 0;
}

.album--cover .album__grid {
  --cols: 1;
  height: 100%;
  grid-auto-rows: auto;
}

.album--cover .album__item:first-child {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
}

@media (min-width: 960px) {
  .album-covers > li:first-child .album__item:first-child,
  .album-covers > li:nth-child(6) .album__item:first-child {
    aspect-ratio: auto;
    height: 100%;
  }
}

.album--cover .album__item:nth-child(n+2) {
  display: none;
}

.album--cover .album__open::after {
  opacity: 1;
  background: linear-gradient(to top, rgba(12, 18, 28, 0.8), rgba(12, 18, 28, 0) 60%);
}

.album__cover-label {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: var(--space-3);
  color: var(--white);
  text-align: left;
}

.album__cover-title {
  display: block;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-bold);
  text-shadow: var(--text-shadow);
}

.album__cover-meta {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--footer-text);
}

/* Filmstrip: a slow, endless row of photos */
.filmstrip {
  padding-block: var(--section-pad);
  overflow: hidden;
}

.filmstrip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
}

.filmstrip__head h2 {
  margin: 0;
}

.filmstrip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.filmstrip__track {
  display: flex;
  align-items: center;
  gap: var(--album-gap);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filmstrip__item {
  flex: none;
  height: 170px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--placeholder);
}

.filmstrip__item:nth-child(4n+2) {
  height: 210px;
}

.filmstrip__item img {
  display: block;
  width: auto;
  height: 100%;
}

@media (min-width: 640px) {
  .filmstrip__item {
    height: 240px;
  }

  .filmstrip__item:nth-child(4n+2) {
    height: 300px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .filmstrip__track {
    animation: filmstrip-scroll 110s linear infinite;
  }

  .filmstrip__viewport:hover .filmstrip__track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filmstrip__viewport {
    overflow-x: auto;
  }

  .filmstrip__item[aria-hidden="true"] {
    display: none;
  }
}

@keyframes filmstrip-scroll {
  to {
    transform: translateX(calc(-50% - var(--album-gap) / 2));
  }
}

/* Photo viewer (built by main.js) */
.pv {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080c14;
  color: var(--white);
}

.pv::backdrop {
  background: transparent;
}

.pv__layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  height: 100%;
}

.pv__top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px var(--space-2);
}

.pv__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pv__counter {
  margin: 0;
  font-size: var(--fs-caption);
  color: var(--footer-text);
  font-variant-numeric: tabular-nums;
}

.pv__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--space-2);
  touch-action: pan-y;
}

.pv__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  transition: opacity 200ms var(--ease);
}

.pv__img.is-loading {
  opacity: 0.4;
}

.pv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--white-line);
  border-radius: 50%;
  background: var(--white-tint);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.pv__btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.pv__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.pv__nav--prev {
  left: var(--space-1);
}

.pv__nav--next {
  right: var(--space-1);
}

.pv__caption {
  margin: 0;
  padding: 12px var(--space-2) 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  text-align: center;
  color: var(--footer-text);
}

.pv__thumbs {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 12px var(--space-2) var(--space-2);
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.pv__thumb {
  flex: none;
  width: 72px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  background: var(--deep-blue-dark);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.pv__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv__thumb:hover {
  opacity: 0.9;
}

.pv__thumb[aria-current="true"] {
  border-color: var(--white);
  opacity: 1;
}

@media (min-width: 960px) {
  .pv__stage {
    padding: 0 var(--space-12);
  }

  .pv__nav--prev {
    left: var(--space-4);
  }

  .pv__nav--next {
    right: var(--space-4);
  }

  .pv__top {
    padding: var(--space-2) var(--space-4);
  }

  .pv__thumb {
    width: 88px;
    height: 64px;
  }

  .pv__thumbs {
    justify-content: safe center;
  }
}

/* Patents page */
.patent-ids {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.patent-ids li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-4);
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.patent-ids li:first-child {
  border-top: 1px solid var(--border);
}

.patent-ids__name {
  min-width: 120px;
  font-weight: var(--fw-bold);
}

.patent-docs__title {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .doc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .doc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.doc-thumb {
  display: block;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(12, 18, 28, 0.12);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.doc-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.doc-thumb:hover,
.doc-thumb:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(12, 18, 28, 0.2);
}

/* Team: the President stands alone above the executive grid, in a soft feature panel */
.exec-lead {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: var(--space-5) var(--space-3);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--white) 0%, var(--surface) 100%);
  box-shadow: 0 10px 30px -18px var(--shadow);
  color: var(--text);
  text-align: center;
}

/* Soft rings behind the portrait */
.exec-lead::before,
.exec-lead::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.exec-lead::before {
  width: 420px;
  height: 420px;
  top: -190px;
  left: 50%;
  margin-left: -210px;
  background: radial-gradient(circle, var(--teal-tint), rgba(11, 122, 128, 0) 70%);
}

.exec-lead::after {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -120px;
  border: 1px solid var(--teal-tint);
}

.exec-lead__photo {
  width: 168px;
  padding: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--border), 0 8px 20px -8px var(--shadow);
}

.exec-lead__body {
  max-width: 560px;
}

.exec-lead__role {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: var(--fs-small);
  line-height: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exec-lead__name {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  color: var(--deep-blue);
  overflow-wrap: break-word;
}

.exec-lead__quote {
  position: relative;
  margin: var(--space-2) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

.exec-lead__quote p {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-style: italic;
  color: var(--muted);
}

.exec-lead__quote p::before {
  content: "\201C";
}

.exec-lead__quote p::after {
  content: "\201D";
}

@media (min-width: 720px) {
  .exec-lead {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
    text-align: left;
  }

  .exec-lead::before {
    top: 50%;
    left: -60px;
    margin: -210px 0 0;
  }

  .exec-lead__photo {
    width: 200px;
  }

  .exec-lead__name {
    font-size: 34px;
    line-height: 42px;
  }
}

/* Press feature: a news article about MedLink, with photo, source and link */
.press {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.press:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px var(--shadow);
}

.press__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.press__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-half) 12px;
  border-radius: var(--radius-pill);
  background: var(--chip-on-photo);
  color: var(--deep-blue);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.press__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
}

.press__source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) 12px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}

.press__outlet {
  color: var(--teal-dark);
  font-weight: var(--fw-bold);
}

.press__source > * + *::before {
  content: "\2022";
  margin-right: 12px;
  color: var(--border);
}

.press__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.press__title a {
  color: var(--text);
  text-decoration: none;
}

.press__title a:hover {
  color: var(--teal-dark);
}

.press__summary {
  margin: 0;
  padding-left: var(--space-2);
  border-left: 3px solid var(--teal);
  color: var(--muted);
}

.press__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.press__facts li {
  padding: var(--space-half) 12px;
  border-radius: var(--radius-pill);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.press__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--space-1);
}

@media (min-width: 768px) {
  .press {
    grid-template-columns: 5fr 7fr;
  }

  .press__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .press__body {
    padding: var(--space-4) var(--space-5);
  }

  .press__title {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .press,
  .press:hover {
    transition: none;
    transform: none;
  }
}

/* Our Impact, MamaCare Ghana: impact figures under the Beyond Thailand split */
.beyond-stats {
  margin-top: var(--space-6);
}

.beyond-stats__note {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  text-align: center;
}

/* Quote cards: short testimonials side by side */
.quote-grid {
  display: grid;
  gap: var(--gutter-tight);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
  }
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  margin: 0;
  padding: var(--space-4) var(--space-3) var(--space-3);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px var(--shadow);
}

.quote-card__text {
  position: relative;
  margin: 0;
  padding-left: var(--space-5);
}

.quote-card__text::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: 0;
  color: var(--teal);
  font-size: 56px;
  line-height: 1;
  font-weight: var(--fw-bold);
}

.quote-card__text p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 28px;
}

.quote-card__person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-left: var(--space-5);
}

.quote-card__name {
  color: var(--deep-blue);
  font-weight: var(--fw-bold);
}

.quote-card__role {
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}

/* Document cards: a PDF's first page with a title and link */
.mamacare-docs__title {
  margin-top: var(--space-8);
}

.doc-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter-tight);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .doc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
  }
}

@media (min-width: 1100px) {
  .doc-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.doc-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

@media (min-width: 1100px) {
  .doc-card {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-2) var(--space-2) var(--space-3);
  }
}

.doc-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.doc-card__kicker {
  margin: 0;
  color: var(--teal-dark);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
}

.doc-card__text {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}

.doc-card .text-link {
  margin-top: var(--space-half);
}

/* In a document card, show the top of each page in a 4:3 frame so portrait and landscape covers line up */
.doc-card .doc-thumb {
  aspect-ratio: 4 / 3;
}

.doc-card .doc-thumb canvas {
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 1100px) {
  .doc-card {
    grid-template-rows: auto 1fr;
    align-items: stretch;
  }

  .doc-card .text-link {
    margin-top: auto;
    padding-top: var(--space-1);
  }
}
