/* ==========================================================================
   MedSpeak — design system
   Editorial, print-inspired. Palette "Option A": deep teal · ocean teal ·
   seafoam · pale mint · warm white, with a warm paper neutral.
   Type: Brygada 1918 (headings) + Golos Text (text).
   ========================================================================== */

:root {
  --teal-900: #0e3b42;
  --teal: #145a64;
  --ocean: #1f7478; /* text-safe ocean teal (≥4.5:1 on all light backgrounds) */
  --seafoam: #a8dad5;
  --mint: #eff8f6;
  --paper: #faf8f3;
  --sand: #efe9dd;
  --white: #ffffff;
  --ink: #13282b;
  --ink-2: #3f5457;
  --ink-3: #5a6c6e;
  --rule: #d9d3c5;
  --rule-2: #c6bfae;
  --coral: #b4513a;

  --serif: "Brygada 1918", "Brygada Fallback", "Noto Serif Bengali", "Noto Serif Devanagari", "Noto Naskh Arabic", Georgia, serif;
  --sans: "Golos Text", "Golos Fallback", "Noto Sans Bengali", "Noto Sans Devanagari", "Noto Naskh Arabic", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ur"] body { line-height: 1.9; }
html[lang="ur"] { --serif: "Noto Naskh Arabic", "Brygada 1918", serif; --sans: "Noto Naskh Arabic", "Golos Text", sans-serif; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--seafoam); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.utility :focus-visible, .footer :focus-visible, .section--teal :focus-visible { outline-color: var(--seafoam); }

/* card pattern: the heading's button stretches over the whole card */
.vcard, .doc-card, .guide { position: relative; }
.stretch { font: inherit; color: inherit; text-align: inherit; line-height: inherit; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:focus-visible { outline: none; }
.vcard:has(.stretch:focus-visible), .doc-card:has(.stretch:focus-visible), .guide:has(.stretch:focus-visible) { outline: 3px solid var(--ocean); outline-offset: 6px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--sand { background: var(--sand); }
.section--mint { background: var(--mint); }
.section--teal { background: var(--teal); color: #fff; }
.section--rule { border-top: 1px solid var(--rule); }

.kicker { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocean); }
.section--teal .kicker { color: var(--seafoam); }
html[lang="bn"] .kicker, html[lang="hi"] .kicker, html[lang="ur"] .kicker { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.display { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 600; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.accent { color: var(--accent, var(--ocean)); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 40rem; }
.section--teal .lead { color: rgba(255, 255, 255, 0.82); }
.muted { color: var(--ink-3); }

.head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 3rem; }
.head--row > div { display: grid; gap: 1rem; max-width: 44rem; }
@media (max-width: 760px) { .head--row { grid-template-columns: 1fr; } }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: var(--radius); background: var(--teal); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--teal); transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); }
.btn svg { width: 1.1rem; height: 1.1rem; }
html[dir="rtl"] .btn svg, html[dir="rtl"] .more svg { transform: scaleX(-1); }
.btn--outline { background: transparent; color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal); border-color: #fff; }
.btn--light:hover { background: var(--mint); border-color: var(--mint); }
.btn--sm { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }

.more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.more:hover { text-decoration-thickness: 2px; }
.more svg { width: 1rem; height: 1rem; }
.section--teal .more { color: #fff; }

.tag { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 2px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; background: var(--mint); color: var(--teal); }
.tag--planned { background: #f6ecd6; color: #7a5410; }
.tag--production { background: #e3edf6; color: #1f4a73; }
.tag--published { background: var(--mint); color: var(--teal); }
.tag--sample { background: var(--white); color: var(--ink-2); border: 1px solid var(--rule-2); }

/* ---------- utility bar + header ---------- */
.utility { background: var(--teal-900); color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.5rem; }
.utility__note { display: flex; align-items: center; gap: 0.5rem; }
.utility__note svg { width: 1rem; height: 1rem; color: #f0a48f; flex: none; }
.langs { display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; list-style: none; margin: 0; padding: 0; }
.langs button { color: rgba(255, 255, 255, 0.8); padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.langs button:hover { color: #fff; }
.langs button[aria-pressed="true"] { color: #fff; font-weight: 600; border-color: var(--seafoam); }
.lang-select { display: none; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius); padding: 0.2rem 0.5rem; font-size: 0.85rem; }
.lang-select option { color: var(--ink); }
@media (max-width: 900px) {
  .langs { display: none; }
  .lang-select { display: block; }
  .utility__note span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
}

.header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--rule); }
.header .container { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-inline-end: auto; }
.brand__mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.brand__name span { color: var(--ocean); }
.brand__text { display: grid; gap: 0.2rem; }
.brand__tag { font-family: var(--serif); font-style: italic; font-size: 0.8rem; line-height: 1; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 1021px) { .brand__tag { display: none; } } /* room for the menu */
.nav { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 1.5rem 0 1.35rem; font-weight: 500; font-size: 0.98rem; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); border-color: var(--teal); }
.burger { display: none; align-items: center; gap: 0.6rem; font-weight: 600; padding: 0.5rem 0; }
.burger i { position: relative; width: 1.2rem; height: 2px; background: currentColor; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.burger i::before { top: -6px; } .burger i::after { top: 6px; }
.menu-open .burger i { background: transparent; }
.menu-open .burger i::before { top: 0; transform: rotate(45deg); }
.menu-open .burger i::after { top: 0; transform: rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--rule); background: var(--white); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem var(--gutter) 1.5rem; }
.mobile-nav a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--ocean); }
.menu-open .mobile-nav { display: block; }
@media (max-width: 1020px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 28% center; border-radius: var(--radius); }
figcaption { margin-top: 0.75rem; font-size: 0.82rem; color: var(--ink-3); padding-inline-start: 0.75rem; border-inline-start: 2px solid var(--seafoam); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.facts > div { padding: 1.4rem 1.5rem 0 0; display: grid; gap: 0.25rem; align-content: start; }
.facts > div + div { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--rule); }
.facts strong { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 1; color: var(--teal); }
.facts span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero figure img { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1rem; } }

/* ---------- language band ---------- */
.lang-band { background: var(--white); border-block: 1px solid var(--rule); }
.lang-band .container { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding-block: 1.5rem; }
.lang-band__list { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 0; }
.lang-band__list button { width: 100%; padding: 0.5rem 1rem; text-align: center; border-inline-start: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; color: var(--ink); }
.lang-band__list button:hover { color: var(--ocean); }
.lang-band__list button small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--ink-3); font-weight: 400; margin-top: 0.15rem; }
@media (max-width: 860px) { .lang-band .container { grid-template-columns: 1fr; gap: 0.75rem; } .lang-band__list { grid-template-columns: repeat(3, 1fr); row-gap: 0.75rem; } .lang-band__list li:nth-child(3n + 1) button { border-inline-start: 0; } }

/* ---------- topic index ---------- */
.topic-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.topic-index a { display: grid; grid-template-columns: 2.75rem 1fr auto; gap: 0.25rem 1rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; height: 100%; }
.topic-index svg { width: 2rem; height: 2rem; color: var(--ocean); grid-row: span 2; margin-top: 0.2rem; }
.topic-index h3 { font-size: 1.3rem; }
.topic-index p { grid-column: 2; color: var(--ink-2); font-size: 0.95rem; }
.topic-index .count { grid-row: 1; grid-column: 3; font-size: 0.85rem; color: var(--ink-3); white-space: nowrap; padding-top: 0.3rem; }
.topic-index a:hover h3 { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 760px) { .topic-index { grid-template-columns: 1fr; } }

/* ---------- feature blocks ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.feature { display: grid; gap: 1rem; align-content: start; text-decoration: none; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.feature p { color: var(--ink-2); }
.feature:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- first-aid guides ---------- */
.guides { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.guide { display: grid; gap: 0.6rem; align-content: start; text-align: start; width: 100%; }
.guide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.guide__num { font-size: 0.8rem; font-weight: 600; color: var(--ocean); }
.guide h3 { font-size: 1.15rem; }
.guide p { font-size: 0.9rem; color: var(--ink-2); }
.guide:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 1020px) { .guides { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .guides { grid-template-columns: 1fr 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { padding: 1.5rem 1.5rem 0 0; border-top: 2px solid var(--teal); display: grid; gap: 0.6rem; align-content: start; }
.steps li + li { padding-inline-start: 1.5rem; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--ocean); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; } .steps li + li { padding-inline-start: 0; } .steps li:nth-child(even) { padding-inline-start: 1.5rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(even) { padding-inline-start: 0; } }

.access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--rule-2); }
.access > div { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; align-content: start; }
.access svg { width: 1.6rem; height: 1.6rem; color: var(--teal); grid-row: span 2; }
.access h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.access p { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 760px) { .access { grid-template-columns: 1fr; } }

/* ---------- media + text ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.split__copy { display: grid; gap: 1.25rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.story__belief { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--teal); padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--coral); }
#story .split__copy > p:not(.story__belief) { color: var(--ink-2); max-width: 40rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-2); margin-top: 0.5rem; }
.stats div { padding: 1rem 1rem 0 0; display: grid; gap: 0.2rem; align-content: start; }
.stats strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--teal); line-height: 1; }
.stats span { font-size: 0.88rem; color: var(--ink-2); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem; }
@media (max-width: 1020px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.vcard { display: grid; gap: 0.7rem; align-content: start; width: 100%; text-align: start; }
.vcard__thumb { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.vcard__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vcard__thumb--portrait img { object-position: center 22%; }
.vcard__play { position: absolute; inset-inline-start: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem 0.3rem 0.5rem; background: var(--white); color: var(--ink); font-size: 0.8rem; font-weight: 600; border-radius: 2px; }
.vcard__play svg { width: 0.85rem; height: 0.85rem; color: var(--teal); }
.vcard__top { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: var(--ink-3); }
.vcard h3 { font-size: 1.2rem; line-height: 1.2; }
.vcard p { font-size: 0.93rem; color: var(--ink-2); }
.vcard__meta { font-size: 0.82rem; color: var(--ink-3); }
.vcard:hover h3 { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.doc-card { display: grid; gap: 0.55rem; align-content: start; width: 100%; text-align: start; }
.doc-card img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 18%; border-radius: var(--radius); background: var(--sand); margin-bottom: 0.3rem; }
.doc-card__spec { font-size: 0.85rem; font-weight: 600; color: var(--ocean); }
.doc-card h3 { font-size: 1.3rem; }
.doc-card__meta { font-size: 0.88rem; color: var(--ink-3); }
.doc-card__langs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.doc-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---------- join ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.way { display: grid; gap: 0.9rem; align-content: start; padding-top: 1.25rem; border-top: 4px solid var(--teal); }
.way:nth-child(2) { border-color: var(--ocean); }
.way:nth-child(3) { border-color: var(--seafoam); }
.way h3 { font-size: 1.45rem; }
.way p { color: var(--ink-2); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* ---------- banner ---------- */
.banner .container { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.banner .h2 { max-width: 22ch; }
@media (max-width: 760px) { .banner .container { grid-template-columns: 1fr; } }

/* ---------- inner page header ---------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); background: var(--white); }
.page-head .container { display: grid; gap: 1rem; }
.page-head .lead { max-width: 44rem; }
.crumbs { font-size: 0.85rem; color: var(--ink-3); display: flex; gap: 0.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- filters ---------- */
.filters { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.filters--3 { grid-template-columns: 1.5fr 1fr 1fr; }
.ctl { display: grid; gap: 0.35rem; }
.ctl > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.ctl input, .ctl select, .field input, .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--white); font-size: 0.97rem;
}
.ctl input:focus, .ctl select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 141, 145, 0.18); }
@media (max-width: 900px) { .filters, .filters--3 { grid-template-columns: 1fr 1fr; } .filters .ctl:first-child { grid-column: 1 / -1; } }

.tabs { display: flex; flex-wrap: wrap; gap: 0 1.75rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.tabs button { padding: 0.75rem 0; margin-bottom: -1px; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; }
.tabs button span { font-weight: 400; margin-inline-start: 0.3rem; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--teal); border-color: var(--teal); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; font-size: 0.92rem; color: var(--ink-3); }
.results-bar button { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.empty { grid-column: 1 / -1; padding: 3rem 0; color: var(--ink-3); border-top: 1px solid var(--rule); }
.notice { display: flex; gap: 0.8rem; padding: 1rem 1.2rem; background: var(--mint); border-inline-start: 4px solid var(--ocean); font-size: 0.93rem; color: var(--ink-2); }
.notice svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--teal); margin-top: 0.15rem; }
.notice--warn { background: #fbf0ec; border-color: var(--coral); }
.notice--warn svg { color: var(--coral); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 1rem; }
.modal.is-open { display: grid; }
.modal__scrim { position: absolute; inset: 0; background: rgba(14, 33, 36, 0.6); }
.modal__panel { position: relative; width: min(100%, 56rem); max-height: calc(100dvh - 2rem); overflow: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.modal__close { position: absolute; top: 0.75rem; inset-inline-end: 0.75rem; z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; background: var(--white); border-radius: 50%; }
.modal__close svg { width: 1.2rem; height: 1.2rem; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--teal-900); overflow: hidden; }
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__overlay { position: absolute; inset: 0; background: rgba(14, 59, 66, 0.62); display: grid; place-content: center; justify-items: center; gap: 0.6rem; padding: 1.5rem; text-align: center; color: #fff; }
.player__overlay h4 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.player__overlay p { color: rgba(255, 255, 255, 0.85); max-width: 26rem; font-size: 0.95rem; }
.modal__body { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; align-content: start; }
.modal__body h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; padding-block: 1rem; border-block: 1px solid var(--rule); margin: 0; }
.kv dt { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0.15rem 0 0; font-weight: 600; }
.profile { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.profile > img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; background: var(--sand); }
.profile__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.profile__list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); text-align: start; font-weight: 600; }
.profile__list button:hover span:first-child { color: var(--teal); text-decoration: underline; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile > img { aspect-ratio: 1; height: auto; } }
body.modal-open { overflow: hidden; }

/* ---------- about / partners ---------- */

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.col { display: grid; gap: 0.7rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--rule-2); }
.col svg { width: 1.8rem; height: 1.8rem; color: var(--ocean); }
.col h3 { font-size: 1.25rem; }
.col p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .cols4 { grid-template-columns: 1fr 1fr; } .cols3 { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 560px) { .cols4 { grid-template-columns: 1fr; } }

.refs { margin-top: 2.5rem; font-size: 0.93rem; color: var(--ink-2); }
.refs strong { color: var(--ink); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.member { display: grid; gap: 0.4rem; align-content: start; }
.avatar { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--seafoam); color: var(--teal-900); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.member h3 { font-size: 1.15rem; }
.member small { color: var(--ocean); font-weight: 600; }
.member p { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }

.country-table { width: 100%; border-collapse: collapse; }
.country-table th { text-align: start; font-size: 0.8rem; font-weight: 600; color: var(--ink-3); padding: 0 1rem 0.75rem 0; border-bottom: 2px solid var(--ink); }
.country-table td { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; color: var(--ink-2); font-size: 0.95rem; }
.country-table td:first-child { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 700px) {
  .country-table thead { display: none; }
  .country-table tr { display: grid; gap: 0.3rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-2); }
  .country-table td { padding: 0; border: 0; }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.7rem; color: var(--ink-2); }
.checklist svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--ocean); margin-top: 0.2rem; }

/* ---------- forms ---------- */
.apply { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.apply__side { position: sticky; top: 6rem; border-top: 2px solid var(--ink); }
.apply-tab { width: 100%; display: grid; gap: 0.25rem; padding-block: 1.1rem; padding-inline: 1rem 0; text-align: start; border-bottom: 1px solid var(--rule); border-inline-start: 4px solid transparent; }
.apply-tab strong { font-family: var(--serif); font-size: 1.2rem; }
.apply-tab small { font-size: 0.88rem; color: var(--ink-3); }
.apply-tab:hover strong { color: var(--teal); }
.apply-tab[aria-selected="true"] { border-inline-start-color: var(--teal); background: var(--white); }
.apply-tab[aria-selected="true"] strong { color: var(--teal); }
.form-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form-head { display: grid; gap: 0.5rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.form-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 0.9rem; font-weight: 600; padding: 0; }
.field .req { color: var(--coral); margin-inline-start: 0.15rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--ink-3); }
.field .err { display: none; font-size: 0.82rem; color: var(--coral); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--coral); }
.field.is-invalid .err { display: block; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.2rem; }
.checks label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 400; font-size: 0.95rem; cursor: pointer; }
.checks input, .consent input { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--teal); margin: 0; flex: none; }
.field .consent { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--ink-2); }
.consent input { margin-top: 0.25rem; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.form-foot small { color: var(--ink-3); max-width: 22rem; }
.form-success { display: none; gap: 1rem; justify-items: start; padding-block: 1rem; }
.form-success > svg { width: 2.5rem; height: 2.5rem; color: var(--ocean); }
.form-card.is-done form, .form-card.is-done .form-head { display: none; }
.form-card.is-done .form-success { display: grid; }
@media (max-width: 960px) { .apply { grid-template-columns: 1fr; } .apply__side { position: static; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--teal-900); color: rgba(255, 255, 255, 0.8); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: 0.95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer .brand__name { color: #fff; }
.footer .brand__name span { color: var(--seafoam); }
.footer__tag { margin-top: 1rem; font-family: var(--serif); font-size: 1.3rem; color: var(--seafoam); }
.footer__slogan { margin-top: 0.5rem; max-width: 22rem; color: rgba(255, 255, 255, 0.75); }
.footer__h { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: #fff; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__disclaimer { display: flex; gap: 0.8rem; padding-block: 1.75rem; font-size: 0.88rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer__disclaimer svg { width: 1.2rem; height: 1.2rem; flex: none; color: #f0a48f; margin-top: 0.15rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Motion (js/motion.js adds .motion to <html> unless reduced motion is on)
   ========================================================================== */
:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); }

/* page-to-page cross-fade (browsers with cross-document View Transitions) */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 0.35s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 0.55s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* scroll reveals */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out) var(--d, 0ms), transform 1.1s var(--ease-out) var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* images open like a curtain */
/* the clip sits on the image: a clipped observed element would never count as visible */
.motion [data-wipe] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease-in-out), transform 1.8s var(--ease-out); }
.motion [data-wipe].is-in img { clip-path: inset(0 0 0 0); transform: none; }
.hero figure, .split figure { overflow: hidden; border-radius: var(--radius); }
/* gentle parallax: the image drifts inside its frame (set by js/motion.js) */
.motion .hero figure img, .motion .split figure img { scale: 1.08; translate: 0 var(--py, 0px); transition-property: clip-path, transform; }

/* rules draw themselves */
.motion [data-draw] { position: relative; }
.motion .topic-index[data-draw], .motion .facts[data-draw] { border-top-color: transparent; }
.motion .topic-index[data-draw]::before, .motion .facts[data-draw]::before {
  content: ""; position: absolute; inset-inline: 0; top: -2px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-in-out);
}
.motion .facts[data-draw]::before { top: -1px; height: 1px; background: var(--rule); }
html[dir="rtl"].motion [data-draw]::before { transform-origin: right; }
.motion [data-draw].is-in::before { transform: scaleX(1); }
.motion .steps[data-draw] li, .motion .ways[data-draw] .way { border-top-color: transparent; position: relative; }
.motion .steps[data-draw] li::after, .motion .ways[data-draw] .way::after {
  content: ""; position: absolute; inset-inline: 0; top: -2px; height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-in-out);
}
.motion .ways[data-draw] .way::after { top: -4px; height: 4px; }
.motion .ways[data-draw] .way:nth-child(2)::after { background: var(--ocean); }
.motion .ways[data-draw] .way:nth-child(3)::after { background: var(--seafoam); }
.motion .steps[data-draw] li:nth-child(2)::after, .motion .ways[data-draw] .way:nth-child(2)::after { transition-delay: 0.2s; }
.motion .steps[data-draw] li:nth-child(3)::after, .motion .ways[data-draw] .way:nth-child(3)::after { transition-delay: 0.4s; }
.motion .steps[data-draw] li:nth-child(4)::after { transition-delay: 0.6s; }
html[dir="rtl"].motion .steps li::after, html[dir="rtl"].motion .way::after { transform-origin: right; }
.motion .steps[data-draw].is-in li::after, .motion .ways[data-draw].is-in .way::after { transform: scaleX(1); }

/* hero: everything is visible at first paint; the photo settles and a
   hand-drawn underline writes itself under the accent words */
.hero h1 .accent { position: relative; display: inline-block; }
.scribble { position: absolute; inset-inline: -2%; bottom: -0.12em; width: 104%; height: 0.32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--seafoam); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html[dir="rtl"] .scribble { transform: scaleX(-1); }
.motion .scribble path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-in-out) 0.5s; }
.motion.hero-in .scribble path { stroke-dashoffset: 0; }
.motion .hero figure img { animation: settle 1.6s var(--ease-out) both; }
@keyframes settle { from { scale: 1.16; } to { scale: 1.08; } }

/* header slides away while reading, returns when scrolling up */
.header { transition: transform 0.45s var(--ease-in-out), box-shadow 0.3s; }
.header.is-hidden { transform: translateY(-100%); }
.header.is-stuck { box-shadow: 0 6px 24px -18px rgba(14, 59, 66, 0.5); }

/* hover: images lean in, arrows move */
.vcard__thumb img, .doc-card__img img, .guide__img img, .feature img { transition: transform 0.9s var(--ease-out); }
.vcard:hover .vcard__thumb img, .doc-card:hover .doc-card__img img, .guide:hover .guide__img img, .feature:hover img { transform: scale(1.04); }
.doc-card__img, .guide__img { overflow: hidden; border-radius: var(--radius); margin-bottom: 0.3rem; }
.doc-card__img img { margin-bottom: 0; }
.btn svg, .more svg { transition: transform 0.4s var(--ease-out); }
.btn:hover svg, .more:hover svg, .feature:hover .more svg { transform: translateX(4px); }
html[dir="rtl"] .btn:hover svg, html[dir="rtl"] .more:hover svg { transform: scaleX(-1) translateX(4px); }
.topic-index a { transition: background-color 0.4s var(--ease-out), padding 0.4s var(--ease-out); }
.topic-index svg { transition: transform 0.6s var(--ease-out); }
.topic-index a:hover svg { transform: scale(1.12) rotate(-6deg); }
.nav a { position: relative; }

/* greeting rotator in the language band */
.lang-band__intro { display: grid; gap: 0.2rem; }
.greet { height: 1.25em; overflow: hidden; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.25; color: var(--teal); }
.greet__track { display: block; transition: transform 0.9s var(--ease-in-out); }
.greet__track > span { display: block; height: 1.25em; white-space: nowrap; }
.greet__track > span[lang="bn"], .greet__track > span[lang="hi"] { font-family: "Noto Serif Bengali", "Noto Serif Devanagari", var(--serif); }
.greet__track > span[lang="ur"] { font-family: "Noto Naskh Arabic", serif; text-align: start; }

/* offline notice */
.offline-note { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 60; max-width: 28rem; margin-inline: auto; padding: 0.8rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 0.92rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.is-offline .offline-note { transform: none; }

/* reserve room for lists the scripts fill in, so the page below does not jump */
#results:empty, #p-results:empty { min-height: 140vh; }
#topic-index:empty { min-height: 34rem; }
#guides:empty { min-height: 18rem; }
#doc-preview:empty, #team-grid:empty { min-height: 30rem; }
#apply-tabs:empty { min-height: 16rem; }
#apply-form:empty { min-height: 60rem; }

/* emergency numbers */
.utility__em { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; margin-inline-start: 0.6rem; white-space: nowrap; }
@media (max-width: 900px) { .utility__note .utility__text { display: none; } .utility__em { margin-inline-start: 0; } }
.em .kicker { display: inline-flex; align-items: center; gap: 0.4rem; }
.em .kicker svg { width: 1rem; height: 1rem; }
.em__list { list-style: none; margin: 0.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.em__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.em__country { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.em__numbers { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.em__call { display: inline-grid; justify-items: center; min-width: 5.5rem; padding: 0.45rem 0.8rem; border-radius: var(--radius); background: #fbf0ec; color: var(--coral); text-decoration: none; border: 1px solid rgba(180, 81, 58, 0.25); transition: background-color 0.2s; }
.em__call:hover { background: #f7e1d9; }
.em__call strong { font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.em__call small { font-size: 0.72rem; font-weight: 600; color: var(--ink-2); }

/* stroke F.A.S.T. */
.fast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.18); border-block: 1px solid rgba(255, 255, 255, 0.18); }
.fast li { list-style: none; background: var(--teal); padding: 1.75rem 1.5rem 1.75rem 0; display: grid; gap: 0.6rem; align-content: start; }
.fast li + li { padding-inline-start: 1.5rem; }
.fast { padding: 0; margin: 0; }
.fast__ico { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: var(--seafoam); }
.fast__ico svg { width: 1.9rem; height: 1.9rem; }
.fast li:last-child .fast__ico { background: var(--coral); color: #fff; }
.fast h3 { font-size: 1.5rem; color: #fff; }
.fast p { color: rgba(255, 255, 255, 0.85); font-size: 0.97rem; }
.fast-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 2rem; }
@media (max-width: 900px) { .fast { grid-template-columns: 1fr 1fr; } .fast li:nth-child(odd) { padding-inline-start: 0; } .fast li:nth-child(even) { padding-inline-start: 1.5rem; } }
@media (max-width: 520px) { .fast { grid-template-columns: 1fr; } .fast li, .fast li + li { padding-inline-start: 0; } }
.motion .fast[data-draw] .fast__ico { transform: scale(0.6); opacity: 0; transition: transform 0.8s var(--ease-out), opacity 0.6s var(--ease-out); }
.motion .fast[data-draw].is-in .fast__ico { transform: none; opacity: 1; }
.motion .fast[data-draw] li:nth-child(2) .fast__ico { transition-delay: 0.15s; }
.motion .fast[data-draw] li:nth-child(3) .fast__ico { transition-delay: 0.3s; }
.motion .fast[data-draw] li:nth-child(4) .fast__ico { transition-delay: 0.45s; }
.motion .fast[data-draw].is-in li:last-child .fast__ico { animation: pulse 2s var(--ease-out) 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(180, 81, 58, 0.55); } 70% { box-shadow: 0 0 0 14px rgba(180, 81, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 81, 58, 0); } }

/* admin-managed content: placeholders, people, partner logos */
.vcard__blank { display: grid; place-items: center; aspect-ratio: 3 / 2; color: var(--teal); background: var(--mint); }
.vcard__blank svg { width: 2.5rem; height: 2.5rem; }
.initials { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 4.4; background: var(--mint); color: var(--teal); font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 600; border-radius: var(--radius); }
.initials--big { aspect-ratio: auto; min-height: 100%; border-radius: 0; }
.member__photo { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; background: var(--sand); }
.member a.more { font-size: 0.9rem; margin-top: 0.3rem; }
.board-group + .board-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.board-group h2 { margin-bottom: 1.75rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.person { display: grid; gap: 0.45rem; align-content: start; }
.person img, .person .initials { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--sand); margin-bottom: 0.4rem; }
.person .initials { width: 5.5rem; font-size: 1.9rem; display: grid; place-items: center; }
.people:has(img) .initials { width: 100%; font-size: clamp(2.5rem, 6vw, 4rem); } /* next to photos, keep the row even */
#board-empty[hidden] { display: none; }
.person h3 { font-size: 1.3rem; }
.person .role { color: var(--ocean); font-weight: 600; font-size: 0.92rem; }
.person p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.logos li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.logos img { max-height: 4.5rem; width: auto; object-fit: contain; }
.logos a, .logos span { display: grid; place-items: center; width: 100%; height: 100%; text-align: center; font-family: var(--serif); font-weight: 600; text-decoration: none; }
.footer__social a { color: #fff; }
