@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mukta-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/mukta-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/mukta-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/mukta-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/mukta-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-500-700-latin.woff2") format("woff2");
}

/* ============================================================
   Endovascular & Operative Neurovascular Surgery Group
   Reference-aligned theme: UCSF photo hero + Mayo editorial depth
   Palette: institutional navy + medical blue, white-dominant
   Type: Source Serif 4 (titles) + Mukta (UI/body) — Mukta is a free Foco-alike
   ============================================================ */

:root {
  --navy: #183e75;        /* (24,62,117) */
  --navy-dark: #102a52;   /* darker shade derived from palette navy */
  --blue: #0069b4;        /* (0,105,180) */
  --blue-dark: #004994;   /* (0,73,148) */
  --blue-mid: #007cc1;    /* (0,124,193) */
  --teal: #009edf;        /* (0,158,223) — bright accent */
  --ink: #18222c;
  --slate: #51606e;
  --slate-light: #657482;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-band: #eef2f6;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(24,62,117,0.08);
  --shadow-lg: 0 20px 48px rgba(24,62,117,0.16);
  --maxw: 1200px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Mukta", "Segoe UI", Helvetica, Arial, system-ui, sans-serif;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0; }
h2, h3 { font-family: var(--serif); font-weight: 600; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; color: var(--slate); }
a { color: var(--blue-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
.hero-bg[data-responsive-image] { background-image: var(--desktop-image); }
/* Hero image URLs live here (not in inline styles): relative url() inside a
   custom property resolves differently across engines when defined in a style
   attribute, but is unambiguous when defined in this stylesheet. */
.hero-bg--home { --desktop-image: url('../images/landing-hero.webp'); --mobile-image: url('../images/landing-hero-mobile.webp'); }
.hero-bg--team-banner { --desktop-image: url('../images/home-hero-or.webp'); --mobile-image: url('../images/home-hero-or-mobile.webp'); }
.hero-bg--conditions-banner { --desktop-image: url('../images/conditions-surgery-banner.webp'); --mobile-image: url('../images/conditions-surgery-banner-mobile.webp'); }
.hero-bg--brain-aneurysm-banner { --desktop-image: url('../images/aneurysm-banner.webp'); --mobile-image: url('../images/aneurysm-banner-mobile.webp'); }
.hero-bg--cavernous-banner { --desktop-image: url('../images/cavernous-malformation-banner.webp'); --mobile-image: url('../images/cavernous-malformation-banner-mobile.webp'); }
.hero-bg--research-banner { --desktop-image: url('../images/research-team-banner.webp'); --mobile-image: url('../images/research-team-banner-mobile.webp'); }
.hero-bg--recovery-support-banner { --desktop-image: url('../images/recovery-support-banner.webp'); --mobile-image: url('../images/recovery-support-banner.webp'); }
.hero-bg.hero-bg--home { background-image: url('../images/landing-hero.webp'); }
.hero-bg.hero-bg--team-banner { background-image: url('../images/home-hero-or.webp'); }
.hero-bg.hero-bg--conditions-banner { background-image: url('../images/conditions-surgery-banner.webp'); }
.hero-bg.hero-bg--brain-aneurysm-banner { background-image: url('../images/aneurysm-banner.webp'); }
.hero-bg.hero-bg--cavernous-banner { background-image: url('../images/cavernous-malformation-banner.webp'); }
.hero-bg.hero-bg--research-banner { background-image: url('../images/research-team-banner.webp'); }
.hero-bg.hero-bg--recovery-support-banner { background-image: url('../images/recovery-support-banner.webp'); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: 1400px; }
.topbar .container, .site-header .container { max-width: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 0.9rem;
}
.lead { font-size: 1.14rem; color: var(--slate); max-width: 680px; line-height: 1.62; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-dark); color: #aebfce; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 1rem 2rem; padding: 9px 28px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #5cc3ef; }
.topbar .label { color: #8da1b5; }
.topbar .topbar-right { display: flex; gap: 2rem; flex-wrap: wrap; }
.topbar .teaching { color: #cdd9e6; font-weight: 600; letter-spacing: 0.02em; }
.topbar .teaching strong { color: #fff; font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-header .container { display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; align-items: center; padding: 14px 28px; gap: 1.4rem; }
.brand-mark { justify-self: start; display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: 52px; flex-shrink: 0; display: block; }
.brand-name { justify-self: center; min-width: 0; text-align: center; display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--navy); line-height: 1.12; }
.brand-name:hover { color: var(--navy); }
.brand-icon { height: 44px; width: auto; flex-shrink: 0; display: block; }
.brand-text { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.brand-name strong { font-family: var(--sans); font-size: 1.5rem; font-weight: 700; letter-spacing: 0; color: var(--navy); }
.brand-name span { font-size: 0.76rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; margin-top: 4px; }
.brand-name .brand-short { display: none !important; }

.nav { justify-self: end; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.92rem; padding: 10px 12px; border-radius: var(--radius); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--blue-dark); }
.nav a.active { color: var(--blue-dark); }
.nav a.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; background: var(--blue); }

/* Desktop: equal side columns so the brand block is truly page-centered.
   Gated to >=1780px: the added Newsletter item makes the nav wider, so the
   centering threshold preserves clearance. Below this the nav is
   too wide to center the brand without overlap, so it falls back to the packed
   grid. Mobile/tablet layout (<=1240px) is unaffected. */
@media (min-width: 1780px) {
  .site-header .container { grid-template-columns: 1fr auto 1fr; }
  .site-header .brand-mark, .site-header .nav { min-width: 0; }
}
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); color: var(--navy); font-size: 1.3rem; border-radius: var(--radius); padding: 4px 11px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--navy); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--navy); }
.btn-large { font-size: 1.08rem; padding: 16px 32px; }

/* ---------- Full-bleed photo hero (UCSF-style) ---------- */
.hero {
  position: relative;
  min-height: 433px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: var(--hero-size, cover);
  background-position: var(--hero-position, center);
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,42,82,0.94) 0%, rgba(16,42,82,0.82) 38%, rgba(16,42,82,0.45) 70%, rgba(16,42,82,0.25) 100%);
}
.hero .container { position: relative; padding-top: 66px; padding-bottom: 66px; }
.hero-content { max-width: 640px; }
.hero .eyebrow { color: #5cc3ef; letter-spacing: 0.18em; }
.hero h1 { color: #fff; font-family: var(--sans); font-weight: 800; font-size: 3.2rem; line-height: 1.08; letter-spacing: 0; margin-bottom: 18px; }
.hero p { color: #d7e3ef; font-size: 1.2rem; max-width: 540px; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-affil { position: absolute; right: 32px; bottom: 28px; height: 58px; width: auto; z-index: 3; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6)); }

/* ---------- Affiliation band (Harvard / BIDMC co-branding) ---------- */
.affil-band { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.affil-band.on-soft { background: var(--bg-soft); }
.affil-band .affil-eyebrow { text-align: center; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem; font-weight: 700; color: var(--blue); margin: 0 0 8px; }
.affil-band .affil-tag { text-align: center; font-family: var(--serif); color: var(--navy); font-weight: 600; font-size: 1.45rem; margin: 0 0 20px; letter-spacing: 0; }
.affil-logos { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 0; }
.affil-logo { display: flex; align-items: center; justify-content: center; padding: 6px 40px; min-height: 60px; }
.affil-logo + .affil-logo { border-left: 1px solid var(--line); }
.affil-logo img { height: 44px; width: 200px; object-fit: contain; object-position: center; }
.affil-logo .wordmark { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.18; font-family: var(--serif); color: var(--navy); }
.affil-logo .wordmark strong { font-weight: 700; font-size: 1.06rem; }
.affil-logo .wordmark small { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-top: 3px; font-weight: 600; }

/* Legacy trust bar (kept for compatibility) */
.trust-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-bar .container { display: flex; align-items: center; justify-content: center; gap: 14px 34px; flex-wrap: wrap; padding: 20px 28px; }
.trust-bar .label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--slate-light); }
.trust-bar .aff { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.trust-bar .dot { color: var(--blue); }

/* ---------- Sections ---------- */
section { padding: 49px 0; }
.app-section-compact { padding-top: 31px; }
.app-section-compact + section { padding-top: 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cbd9e7; }
.section-head { max-width: 720px; margin: 0 0 32px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- Editorial split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media figure { position: relative; margin: 0; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.split-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 20px 14px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(to top, rgba(16,42,82,0.85), rgba(16,42,82,0));
}
.split-body h2 { margin-bottom: 16px; }
.split-list { list-style: none; padding: 0; margin: 18px 0 0; }
.split-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink); }
.split-list + .btn { margin-top: 22px; }
.split-list + .split-actions { margin-top: 22px; }
.split-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.split-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  background: var(--blue); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat;
}

/* ---------- Newsletter promo ---------- */
/* ---------- Approach editorial panel ---------- */
.approach-section { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approach-layout { display: grid; grid-template-columns: 0.65fr 1.75fr; gap: 44px; align-items: start; }
.approach-intro { max-width: 320px; }
.approach-intro h2 { margin-bottom: 16px; }
.approach-links .eyebrow { margin-bottom: 14px; }
.approach-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(24,62,117,0.09);
}
.approach-item { padding: 28px 26px 30px; min-height: 220px; }
a.approach-item { color: inherit; text-decoration: none; transition: background .15s ease, color .15s ease; }
a.approach-item:hover { background: var(--bg-soft); color: inherit; }
a.approach-item:hover h3 { color: var(--blue-dark); }
.approach-item + .approach-item { border-left: 1px solid var(--line); }
.approach-item h3 { font-size: 1.28rem; margin-bottom: 12px; }
.approach-item p { margin: 0; font-size: 0.98rem; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { width: 46px; height: 46px; border-radius: var(--radius); background: var(--bg-band); color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- People (physicians / fellows) ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a.person { color: inherit; text-decoration: none; cursor: pointer; }
a.person:hover h3 { color: var(--blue-dark); }
.person-photo {
  aspect-ratio: 1/1; background: var(--bg-band); position: relative;
  display: grid; place-items: center;
  background-size: cover; background-position: center top;
}
.person-photo .ph {
  display: grid; place-items: center; gap: 8px; color: var(--slate-light); text-align: center;
}
.person-photo .ph svg { width: 46px; height: 46px; opacity: 0.5; }
.person-photo .ph span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person-body { padding: 19px 22px 22px; border-top: 3px solid var(--blue); }
.person-body h3 { margin-bottom: 3px; font-size: 1.18rem; }
.person-role { color: var(--blue-dark); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.person-body p { font-size: 0.94rem; margin-bottom: 0; }
.person-details { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); display: grid; gap: 15px; }
.person-details h4 { margin: 0 0 8px; color: var(--blue-dark); font-family: var(--sans); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.person-details ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.person-details li { color: var(--slate); font-size: 0.86rem; line-height: 1.35; }
.person-details p { color: var(--slate); font-size: 0.86rem; line-height: 1.35; }

/* Detailed attending profiles (UCSF-style full-width rows) */
.people-grid--detailed { grid-template-columns: 1fr; gap: 22px; }
.people-grid--detailed .person { display: grid; grid-template-columns: 280px 1fr; scroll-margin-top: 120px; }
.people-grid--detailed .person:hover { transform: none; box-shadow: var(--shadow-lg); }
.people-grid--detailed .person-photo { aspect-ratio: auto; height: 100%; min-height: 300px; }
.people-grid--detailed .person-body { border-top: none; border-left: 3px solid var(--blue); padding: 26px 32px 28px; }
.people-grid--detailed .person-body h3 { font-size: 1.5rem; }
.people-grid--detailed .person-details { display: block; columns: 2; column-gap: 36px; }
.people-grid--detailed .person-details > div { break-inside: avoid; margin-bottom: 18px; }

.fellow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fellow { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; }
.fellow .initials { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; position: relative; overflow: hidden; }
.fellow .initials img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fellow strong { display: block; color: var(--navy); font-size: 1rem; }
.fellow span { font-size: 0.85rem; color: var(--slate); }

/* Larger fellow cards (team page only, via .fellow-grid--lg) — ~15% bump */
.fellow-grid--lg { gap: 22px; }
.fellow-grid--lg .fellow { padding: 20px 22px; gap: 18px; }
.fellow-grid--lg .initials { width: 74px; height: 74px; font-size: 1.38rem; }
.fellow-grid--lg strong { font-size: 1.32rem; }
.fellow-grid--lg span { font-size: 1.12rem; }

/* APP cards — identical to fellows except name font reduced to fit credentials on one line */
.fellow-grid--app .fellow strong { font-size: 0.82rem; }
.fellow-grid--lg.fellow-grid--app .fellow strong { font-size: 1.05rem; }

/* Past Fellows grid — one wider column so each alum reads as a single row when space allows */
.past-fellows-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 1100px; margin: 26px auto 0; }
.past-fellow { padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.5; }
.past-fellow > strong { display: block; color: var(--navy); font-size: 1rem; margin: 0; }
.past-fellow-affiliation { color: var(--navy); font-weight: 700; }
.past-fellow span { display: block; font-size: 0.9rem; color: var(--slate); line-height: 1.35; }
.past-fellows-grid--names {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  max-width: 1180px;
}
.past-fellows-grid--names .past-fellow { padding: 10px 12px; }
.past-fellows-grid--names .past-fellow > strong { font-size: 0.95rem; }
.past-fellow .past-fellow-position {
  margin-top: 4px;
  color: var(--slate);
  font-size: 0.78rem;
}
.past-fellow .past-fellow-date {
  margin-top: 2px;
  color: var(--slate-light);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 400;
}

/* ---------- Director spotlight ---------- */
.director { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 38px; align-items: center; }
.director-photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-band); aspect-ratio: 4/5; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.director-photo .ph { display: grid; place-items: center; gap: 10px; color: var(--slate-light); }
.director-photo .ph svg { width: 64px; height: 64px; opacity: 0.5; }
.director-photo .ph span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.director-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cred-row { display: flex; gap: 30px; flex-wrap: wrap; margin: 18px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred { }
.cred .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--blue-dark); line-height: 1; }
.cred .lbl { font-size: 0.85rem; color: var(--slate); margin-top: 4px; }

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: #fff; padding: 46px 0; }
.stats .grid-3 { gap: 0; }
.stat { text-align: center; padding: 12px 16px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: rgba(255,255,255,0.15); }
.stat .num { font-family: var(--serif); font-size: 2.9rem; font-weight: 700; color: #fff; line-height: 1; }
.stat .label { color: #aebfce; font-size: 0.95rem; margin-top: 10px; }

/* ---------- Conditions list ---------- */
.cond-list { columns: 2; column-gap: 40px; list-style: none; padding: 0; }
.cond-list li { margin-bottom: 12px; break-inside: avoid; color: var(--ink); padding-left: 24px; position: relative; }
.cond-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

.condition-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.condition-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px 24px;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.condition-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,105,180,0.32); }
.condition-card .eyebrow { margin-bottom: 10px; font-size: 0.68rem; }
.condition-card h3 { margin-bottom: 10px; }
.condition-card p { margin-bottom: 16px; font-size: 0.96rem; }
.condition-card .learn-more { margin-top: auto; color: var(--blue-dark); font-weight: 700; font-size: 0.88rem; }
.condition-card:hover .learn-more { color: var(--blue); }
.condition-card--feature { grid-column: 1 / -1; padding: 32px 34px; }
.condition-card--feature h3 { font-size: 1.55rem; }
.condition-card--feature p { max-width: 760px; font-size: 1.04rem; }

.care-note {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px;
  box-shadow: 0 18px 44px rgba(24,62,117,0.08);
}
.care-note h2 { margin-bottom: 12px; }
.care-note ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.care-note li { color: var(--ink); padding-left: 28px; position: relative; }
.care-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 17px;
  height: 17px;
  background: var(--blue);
  -webkit-mask: var(--check) center/contain no-repeat;
  mask: var(--check) center/contain no-repeat;
}

/* ---------- Clinical detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.detail-sidebar { position: sticky; top: 112px; display: grid; gap: 15px; }
.detail-nav, .detail-contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.detail-nav h2, .detail-contact h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-bottom: 12px;
}
.detail-nav ul, .detail-contact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.detail-nav a {
  display: block;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.detail-nav a:hover {
  color: var(--blue-dark);
  background: var(--bg-soft);
}
.detail-nav a[aria-current="page"] {
  color: var(--blue-dark);
  background: #eef5fb;
  border-color: #c9d8e6;
  box-shadow: inset 3px 0 0 var(--blue);
}
.detail-contact li, .detail-contact p { color: var(--slate); font-size: 0.9rem; margin-bottom: 0; }
.detail-content { min-width: 0; }
.detail-intro {
  border-left: 4px solid var(--blue);
  background: var(--bg-soft);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.detail-intro p { font-size: 1.08rem; margin-bottom: 0; color: var(--ink); }
.recognition-callout {
  margin: 14px 0 20px;
  padding: 10px 0 10px 24px;
  background: #fff;
  border-left: 3px solid var(--blue);
}
.recognition-callout .eyebrow {
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 6px;
}
.recognition-callout h2 {
  margin-bottom: 8px;
  font-size: 1.38rem;
  color: var(--navy);
}
.recognition-callout p { margin-bottom: 0; color: var(--slate); font-size: 1rem; }
.recognition-callout a { color: var(--blue-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.recognition-callout a:hover { color: var(--blue); }
.detail-section { padding: 24px 0; border-top: 1px solid var(--line); }
.detail-section:first-child { border-top: 0; padding-top: 0; }
.detail-section h2 { margin-bottom: 13px; }
.detail-section h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--navy);
  margin: 19px 0 7px;
}
.detail-section ul { margin: 10px 0 0; padding-left: 22px; color: var(--slate); }
.detail-section li { margin-bottom: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 16px; }
.detail-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.detail-tile h3 { margin-top: 0; }
.detail-tile p, .detail-tile li { font-size: 0.94rem; }
.detail-tile p:last-child { margin-bottom: 0; }
.resource-list { display: grid; gap: 12px; margin-top: 15px; }
.resource-list a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 15px 18px;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.resource-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--blue-dark); }
.resource-list strong { display: block; color: var(--navy); margin-bottom: 3px; }
.resource-list span { display: block; color: var(--slate); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-box { border-left: 3px solid var(--blue); background: var(--bg-soft); padding: 17px 22px; margin-bottom: 15px; }
.contact-box h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); margin-bottom: 8px; font-family: var(--sans); font-weight: 700; }
.contact-box .big { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.contact-box .big a { color: var(--navy); }
.contact-box .big a:hover { color: var(--blue-dark); }
.contact-box .muted { font-size: 0.9rem; color: var(--slate); }

/* Emergency banner */
.emergency-banner { background: #fff4f3; border-top: 3px solid #c0392b; border-bottom: 1px solid #f0c9c4; }
.emergency-banner .container { padding-top: 16px; padding-bottom: 16px; }
.emergency-banner p { margin: 0; color: #7a241a; font-size: 0.95rem; line-height: 1.5; }
.emergency-banner strong { color: #c0392b; }
.emergency-banner a { color: #c0392b; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Location map + directions */
.map-wrap { position: relative; width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 22px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.directions h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); margin-bottom: 8px; font-family: var(--sans); font-weight: 700; }
.directions p { margin: 0 0 6px; color: var(--slate); font-size: 0.95rem; }
.directions a { font-weight: 600; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 19px; font-family: var(--sans); font-weight: 700; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue-dark); }
.faq .faq-body { padding: 0 19px 15px; }
.faq .faq-body p { margin: 0; color: var(--slate); line-height: 1.6; }

/* ---------- Research ---------- */
.research-page .page-banner + section { padding-top: 42px; padding-bottom: 42px; }
.research-page .page-banner + section .section-head.center { max-width: 1120px; }
.research-profile-intro { display: grid; grid-template-columns: minmax(820px, 1fr) 300px; gap: 18px; align-items: center; max-width: 1160px; margin: 0 auto; }
.research-profile-copy { text-align: center; }
.research-profile-copy h2 { margin-bottom: 20px; }
.section-head.center .research-profile-intro .lead { margin: 0 auto; max-width: 570px; transform: none; text-align: center; }
.research-profile-intro .research-org-mark { margin: 0; justify-content: center; transform: translateX(-34px); }
.research-profile-intro .research-org-mark img { width: min(330px, 100%); opacity: 0.9; }
.research-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 22px; }
.metrics-note { text-align: center; margin-top: 13px; font-size: 0.82rem; color: var(--slate); font-style: italic; }
.research-org-mark { display: flex; justify-content: center; margin: 26px auto 0; }
.research-org-mark img { display: block; width: min(280px, 58vw); height: auto; opacity: 0.88; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.metric-card .num { font-family: var(--serif); color: var(--navy); font-size: 2.25rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.metric-card .label { color: var(--slate); font-size: 0.9rem; font-weight: 600; }
.research-focus { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: start; }
.research-sidebar { display: grid; gap: 18px; position: sticky; top: 110px; }
.research-panel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.research-panel h2 { color: #fff; }
.research-panel p { color: #d7e3ef; }
.research-panel .eyebrow { color: #5cc3ef; }
.topic-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.topic-list li { color: #fff; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 10px; font-weight: 600; }
.research-team-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; box-shadow: var(--shadow); }
.research-team-panel h2 { font-size: 1.55rem; margin-bottom: 16px; }
.research-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.research-member { min-width: 0; }
.research-member img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); background: var(--bg-band); margin-bottom: 8px; }
.research-member strong { display: block; color: var(--navy); font-size: 0.86rem; line-height: 1.2; }
.research-member span { display: block; color: var(--slate); font-size: 0.74rem; line-height: 1.25; margin-top: 2px; }
.research-member-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 6px;
  border-radius: 3px;
  color: #0a66c2;
  background: #e8f0fb;
  transition: color .18s ease, background-color .18s ease;
}
.research-member-link svg { width: 13px; height: 13px; fill: currentColor; }
.research-member-link:hover { background: #cfe0f7; }
.research-member-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.publication-list { display: grid; gap: 13px; }
.publication { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; transition: transform .18s ease, box-shadow .18s ease; }
.publication:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.publication-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; color: var(--slate-light); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.publication-meta .year { color: var(--blue-dark); }
.publication h3 { font-family: var(--sans); color: var(--ink); font-size: 1.08rem; line-height: 1.35; margin-bottom: 8px; }
.publication h3 a { color: inherit; text-decoration: none; }
.publication h3 a:hover { color: var(--blue-dark); text-decoration: underline; }
.publication p { margin-bottom: 0; font-size: 0.95rem; }
.publication a { overflow-wrap: anywhere; }
.publication-list + .publication-list-action { margin-top: 24px; }
.publication-list-action { display: flex; justify-content: flex-start; }
.research-note { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; background: var(--bg-soft); color: var(--slate); font-size: 0.94rem; }

/* ---------- Publication archive ---------- */
.publication-archive { background: #fff; }
.publication-archive__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.publication-archive__intro > div:first-child { max-width: 760px; }
.publication-archive__intro p:last-child { margin-bottom: 0; }
.publication-archive__count {
  min-width: 150px;
  padding-left: 24px;
  border-left: 3px solid var(--blue);
}
.publication-archive__count strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 0.95;
}
.publication-archive__count span {
  display: block;
  margin-top: 7px;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.publication-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.55fr) minmax(140px, 0.3fr);
  gap: 14px;
  margin: 26px 0 12px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.publication-tools label { display: grid; gap: 6px; }
.publication-tools label > span {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.publication-tools input,
.publication-tools select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c8d3de;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.publication-tools input:focus,
.publication-tools select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,105,180,0.14);
}
.publication-archive-list { border-top: 1px solid var(--line); }
.publication-archive-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 26px;
  padding: 25px 4px;
  border-bottom: 1px solid var(--line);
}
.publication-archive-item[hidden] { display: none; }
.publication-archive-item__date {
  padding-top: 2px;
  color: var(--navy);
}
.publication-archive-item__date span {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
}
.publication-archive-item__date small {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid #c8d7e5;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.publication-archive-item__meta {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-bottom: 7px;
  color: var(--slate-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.publication-archive-item h2 {
  max-width: 940px;
  margin: 0;
  font-family: var(--sans);
  font-size: 1.16rem;
  line-height: 1.38;
}
.publication-archive-item h2 a { color: var(--ink); text-decoration: none; }
.publication-archive-item h2 a:hover { color: var(--blue-dark); text-decoration: underline; }
.publication-archive-item__links { display: flex; gap: 16px; margin-top: 10px; }
.publication-archive-item__links a { font-size: 0.85rem; font-weight: 700; }
.publication-empty {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--slate);
}
.publication-more {
  display: grid;
  gap: 34px;
}
.publication-more__intro { max-width: 700px; }
.publication-more p:last-child { margin-bottom: 0; }
.publication-more__faculty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.publication-more__person {
  min-width: 0;
  padding: 26px 28px;
}
.publication-more__person:first-child { padding-left: 0; }
.publication-more__person:last-child { padding-right: 0; }
.publication-more__person + .publication-more__person { border-left: 1px solid var(--line); }
.publication-more__person h3 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}
.publication-more__links { display: flex; gap: 8px; flex-wrap: wrap; }
.publication-more__links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; font-weight: 600; font-family: var(--sans);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 99px;
  padding: 5px 14px;
  transition: background .15s ease, color .15s ease;
}
.publication-more__links a:hover { background: var(--navy); color: #fff; }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* Research page: reduce vertical whitespace by roughly 15-20% page-wide. */
.research-page .callout { padding: 45px 40px; }

.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 46px 40px; text-align: center; }
.callout h2 { color: #fff; }
.callout p { color: #cbd9e7; }
.callout .hero-actions { justify-content: center; }

/* ---------- Form ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: 0.9rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 0.97rem; color: var(--ink); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,105,180,0.16); }

/* ---------- Page banner ---------- */
.page-banner { position: relative; min-height: var(--banner-height, auto); color: #fff; padding: 62px 0; background: var(--navy); overflow: hidden; --banner-overlay-opacity: 0.89; }
.page-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: var(--banner-size, cover);
  background-position: var(--banner-position, center);
}
.page-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,42,82,0.93), rgba(16,42,82,0.72));
  opacity: var(--banner-overlay-opacity, 1);
}
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-family: var(--sans); font-weight: 800; font-size: 2.7rem; margin-bottom: 12px; }
.page-banner p { color: #d7e3ef; margin: 0; font-size: 1.12rem; max-width: 640px; }
.page-banner p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.page-banner p a:hover { color: #d7e3ef; }
.breadcrumb { font-size: 0.82rem; color: #5cc3ef; margin-bottom: 14px; letter-spacing: 0.04em; }
.breadcrumb a { color: #d7e3ef; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb, .page-banner h1 { overflow-wrap: anywhere; }

/* Conditions pages keep a compact density consistent with the rest of the site. */
.conditions-page .page-banner,
.condition-detail-page .page-banner { padding: 60px 0; }
.conditions-page section,
.condition-detail-page section { padding: 48px 0; }
.conditions-page .hero-actions { margin-top: 22px; }
.conditions-page .clinical-trials-cta {
  min-height: 56px;
  padding: 17px 32px;
  box-shadow: 0 14px 30px rgba(0, 73, 148, 0.24);
}
.conditions-page .section-head { margin-bottom: 30px; }
.conditions-page .cond-list { column-gap: 38px; }
.conditions-page .cond-list li {
  margin-bottom: 12px;
  padding-left: 24px;
}
.conditions-page .condition-hub { gap: 20px; }
.conditions-page .condition-card { padding: 24px 22px; }
.conditions-page .condition-card .eyebrow { margin-bottom: 10px; }
.conditions-page .condition-card h3 { margin-bottom: 9px; }
.conditions-page .condition-card p { margin-bottom: 15px; }
.conditions-page .condition-card--feature { padding: 28px 32px; }
.conditions-page .condition-card--feature p { max-width: none; }
.conditions-page .care-note {
  gap: 32px;
  padding: 28px;
}
.conditions-page .care-note ul { gap: 10px; }
.conditions-page .faq details { margin-bottom: 10px; }
.conditions-page .faq summary {
  padding: 15px 19px;
  gap: 14px;
}
.conditions-page .faq .faq-body { padding: 0 19px 15px; }
.conditions-page .callout { padding: 42px 36px; }
.condition-detail-page .detail-layout { gap: 48px; }
.condition-detail-page .detail-sidebar { gap: 15px; }
.condition-detail-page .detail-nav,
.condition-detail-page .detail-contact { padding: 18px; }
.condition-detail-page .detail-nav h2,
.condition-detail-page .detail-contact h2 { margin-bottom: 12px; }
.condition-detail-page .detail-nav ul,
.condition-detail-page .detail-contact ul { gap: 7px; }
.condition-detail-page .detail-nav a { padding: 9px 10px; }
.condition-detail-page .detail-intro {
  padding: 24px 27px;
  margin-bottom: 27px;
}
.condition-detail-page .recognition-callout { margin: 12px 0 17px; }
.condition-detail-page .detail-section { padding: 23px 0; }
.condition-detail-page .detail-section h2 { margin-bottom: 13px; }
.condition-detail-page .detail-section h3 { margin: 18px 0 7px; }
.condition-detail-page .detail-section ul { margin-top: 10px; }
.condition-detail-page .detail-section li { margin-bottom: 7px; }
.condition-detail-page .detail-grid {
  gap: 15px;
  margin-top: 17px;
}
.condition-detail-page .detail-tile { padding: 18px; }
/* Editorial / medical-journal figure treatment (aneurysm, moyamoya, cavernous).
   Flat, no cards — a hairline rule introduces the imagery, figures sit clean. */
.condition-detail-page .condition-imaging {
  margin: 30px 0 6px;
  padding: 22px 0 0;
  border-top: 1px solid #dbe3ec;
}
.condition-detail-page .condition-imaging--compact {
  margin-top: 24px;
}
.condition-detail-page .condition-imaging__head {
  max-width: 780px;
  margin-bottom: 20px;
}
.condition-detail-page .condition-imaging__head .eyebrow {
  margin-bottom: 5px;
  color: var(--blue-dark);
}
.condition-detail-page .condition-imaging__head h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
}
.condition-detail-page .condition-imaging__head p:last-child {
  margin-bottom: 0;
  color: var(--slate);
}
.condition-detail-page .condition-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 30px 28px;
  margin: 0;
}
.condition-detail-page .condition-media-grid--single {
  grid-template-columns: 1fr;
}
.condition-detail-page .condition-media-grid--stacked {
  grid-template-columns: 1fr;
  gap: 32px;
}
.condition-detail-page .condition-media-grid--balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Columns proportional to image aspect ratios (179:100 ≈ 1.79:1 landscape + square)
   so both figures reach the same rendered height with no forced clipping. */
.condition-detail-page .condition-media-grid--angio-pair {
  grid-template-columns: 179fr 100fr;
}
.condition-detail-page .condition-figure {
  margin: 0;
}
.condition-detail-page .condition-figure__image {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.condition-detail-page .condition-figure__image--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
}
.condition-detail-page .condition-figure__image--triptych {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
}
.condition-detail-page .condition-figure__panel {
  display: grid;
  gap: 8px;
}
.condition-detail-page .condition-figure__panel img {
  width: auto;
  max-width: 100%;
  max-height: 430px;
  margin: 0 auto;
  border: 1px solid #dbe3ec;
}
.condition-detail-page .condition-figure__panel span {
  color: var(--slate-light);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.condition-detail-page .condition-figure img {
  display: block;
  width: 100%;
  height: auto;
}
/* Square clip stays modestly sized and left-aligned — never blown up full width */
.condition-detail-page .condition-figure--square {
  max-width: 380px;
}
.condition-detail-page .condition-figure--square img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
/* Square clip with its caption set beside it, so a square image doesn't leave a
   wide empty column. Caption sits to the right, divided by a vertical rule. */
.condition-detail-page .condition-imaging__lead {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--slate);
}
.condition-detail-page .condition-figure--aside {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(240px, 1fr);
  align-items: center;
  gap: 26px;
}
.condition-detail-page .condition-figure--aside .condition-figure__image img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.condition-detail-page .condition-figure.condition-figure--aside figcaption {
  margin: 0;
  padding: 2px 0 2px 20px;
  border-top: 0;
  border-left: 2px solid var(--navy);
}
@media (max-width: 720px) {
  .condition-detail-page .condition-figure--aside {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 380px;
  }
  .condition-detail-page .condition-figure.condition-figure--aside figcaption {
    margin: 12px 0 0;
    padding: 11px 0 0;
    border-top: 2px solid var(--navy);
    border-left: 0;
  }
}
.condition-detail-page .condition-figure--wide img {
  object-fit: contain;
}
.condition-detail-page .condition-figure--paired {
  max-width: 860px;
}
.condition-detail-page .condition-figure--intracranial-stent .condition-figure__panel img {
  width: 100%;
  height: clamp(260px, 25vw, 350px);
  max-height: none;
  object-fit: cover;
  object-position: center top;
}
.condition-detail-page .condition-figure--triptych {
  max-width: 960px;
}
.condition-detail-page .condition-figure--full {
  max-width: 620px;
  margin: 0 auto;
}
.condition-detail-page .condition-figure--full img {
  max-height: 520px;
  object-fit: contain;
}
.condition-detail-page .condition-figure--portrait .condition-figure__image {
  max-height: 440px;
}
.condition-detail-page .condition-figure--portrait img {
  max-height: 440px;
  object-fit: contain;
}
.condition-detail-page .condition-figure figcaption {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 11px 0 0;
  border-top: 2px solid var(--navy);
  color: var(--slate-light);
  font-size: 0.84rem;
  line-height: 1.42;
}
.condition-detail-page .condition-figure figcaption strong {
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.25;
}
.condition-detail-page .condition-figure__label {
  color: var(--blue-dark);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .condition-detail-page .condition-figure__image--pair,
  .condition-detail-page .condition-figure__image--triptych {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.condition-detail-page .newsletter-empty { padding: 30px 32px; }

/* ---------- Newsletter page ---------- */
.newsletter-feature { background: #fff; }
.newsletter-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.newsletter-intro h2 { font-size: 2.4rem; margin-bottom: 9px; }
.newsletter-intro .lead { margin-bottom: 0; }
.newsletter-viewer-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.newsletter-reader {
  overflow: hidden;
  background: #2c333a;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(16,42,82,0.18);
}
.newsletter-reader__bar {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: var(--navy-dark);
  color: #d7e3ef;
  font-size: 0.84rem;
}
.newsletter-reader__bar strong { color: #fff; }
.newsletter-reader iframe {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  min-height: 620px;
  border: 0;
  background: #52585e;
}
.newsletter-reader__fallback {
  display: none;
  padding: 16px 18px;
  text-align: center;
  background: #fff;
}
.newsletter-reader__fallback p { margin-bottom: 4px; }
.newsletter-reader__fallback a { font-weight: 700; text-decoration: underline; }
.newsletter-archive__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.65fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 18px;
}
.newsletter-archive__head h2 { margin-bottom: 10px; }
.newsletter-archive__head p:last-child { max-width: 660px; margin-bottom: 0; }
.newsletter-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}
.newsletter-tools label { display: grid; gap: 5px; }
.newsletter-tools label span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.newsletter-tools input,
.newsletter-tools select {
  width: 100%;
  height: 46px;
  padding: 9px 12px;
  border: 1px solid #cbd4dd;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.newsletter-tools input:focus,
.newsletter-tools select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,105,180,0.14);
}
.newsletter-results {
  margin: 0 0 16px;
  color: var(--slate-light);
  font-size: 0.88rem;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.newsletter-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe2e8;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(24,62,117,0.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.newsletter-card:hover,
.newsletter-card:focus-within {
  transform: translateY(-4px);
  border-color: #b5c8da;
  box-shadow: 0 16px 34px rgba(24,62,117,0.14);
}
.newsletter-card.is-current { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,105,180,0.12), 0 16px 34px rgba(24,62,117,0.13); }
.newsletter-card[hidden] { display: none; }
.newsletter-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.772;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #dfe5ea;
  cursor: pointer;
}
.newsletter-card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .25s ease; }
.newsletter-card__cover span {
  position: absolute;
  inset: auto 14px 14px;
  padding: 9px 12px;
  border-radius: 4px;
  background: rgba(16,42,82,0.94);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.newsletter-card:hover .newsletter-card__cover img,
.newsletter-card:focus-within .newsletter-card__cover img { transform: scale(1.018); }
.newsletter-card:hover .newsletter-card__cover span,
.newsletter-card:focus-within .newsletter-card__cover span { opacity: 1; transform: translateY(0); }
.newsletter-card__cover:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.newsletter-card__body {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 17px 16px 18px;
}
.newsletter-card__year { display: block; color: var(--blue-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.newsletter-card h3 { margin: 2px 0 1px; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.newsletter-card p { margin: 0; color: var(--slate-light); font-size: 0.8rem; }
.newsletter-card__body > a { flex-shrink: 0; font-size: 0.82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.newsletter-empty-state {
  margin-top: 20px;
  padding: 40px 24px;
  border: 1px dashed #b8c5d0;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.newsletter-empty-state h3 { margin-bottom: 5px; }
.newsletter-empty-state p { margin-bottom: 0; }

/* ---------- Clinical trials page ---------- */
.trials-intro {
  max-width: 780px;
  margin-bottom: 28px;
}
.trials-intro h2 { margin-bottom: 14px; }
.trials-intro p:last-child { margin-bottom: 0; }
.trials-list { display: grid; gap: 20px; }
.trial-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
.trial-card__id {
  margin-bottom: 9px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trial-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}
.trial-card__meta {
  display: flex;
  gap: 8px 18px;
  align-items: center;
  flex-wrap: wrap;
  margin: -2px 0 13px;
  color: var(--slate-light);
  font-size: 0.84rem;
}
.trial-card__meta span { font-weight: 600; }
.trial-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
}
.trial-status--enrolling {
  color: #17633c;
  background: #e7f5ed;
  border-color: #b7dfc8;
}
.trial-status--pending {
  color: #805716;
  background: #fff5da;
  border-color: #ead49d;
}
.trial-status--followup {
  color: var(--blue-dark);
  background: #e9f1fa;
  border-color: #bed2e8;
}
.trial-status--unconfirmed {
  color: var(--slate);
  background: #f1f3f5;
  border-color: #d7dce1;
}
.trial-card__body > p:last-child { margin-bottom: 0; }
.trial-card__action { min-width: 210px; text-align: center; }
.trial-card__action .btn { width: 100%; justify-content: center; }
.trial-card__action p {
  margin: 9px 0 0;
  color: var(--slate-light);
  font-size: 0.78rem;
}
.trials-note {
  margin: 16px 0 0;
  color: var(--slate-light);
  font-size: 0.84rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #a3b6c9; padding: 42px 0 24px; font-size: 0.92rem; }
/* One-row footer: brand + affiliation banner stacked on the left, Quick Links +
   Contact grouped on the right. The grid shrink-wraps its columns and centers
   the compact group. The affiliation logo row lives inside .footer-grid
   (4th child) so there is no divider/second row — see the page footers. */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) max-content max-content;
  grid-template-areas:
    "brand  links contact"
    "banner links contact";
  column-gap: 34px; row-gap: 18px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
  align-items: start;
  justify-content: center;
}
.footer-grid > div:nth-child(1) { grid-area: brand; max-width: 380px; }
.footer-grid > div:nth-child(2) { grid-area: links; }
.footer-grid > div:nth-child(3) { grid-area: contact; }
.footer-grid > .footer-affil { grid-area: banner; }
.footer-grid > div:nth-child(1) p { margin-bottom: 0; color: #a3b6c9; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-logo { width: 42px; height: 42px; background: transparent; border-radius: 0; padding: 0; object-fit: contain; border: 0; }
.footer-brand strong { font-family: var(--sans); color: #fff; font-size: 1.05rem; font-weight: 700; }
.site-footer h3 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; font-family: var(--sans); font-weight: 600; }
.site-footer a { color: #a3b6c9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-affil { display: flex; align-items: center; gap: 15px; padding: 0; max-width: 460px; width: fit-content; box-sizing: border-box; }
.footer-affil-logo { display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; background: transparent; border: 0; border-radius: 0; padding: 0; }
.footer-affil-logo--hms { width: 174px; background: #fff; padding: 5px 8px; border-radius: 5px; }
.footer-affil-logo--bidmc { width: 195px; }
.footer-affil-logo--bai { height: 63px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: #91a4b7; }

/* ---------- Responsive ---------- */
.hero--home { min-height: var(--hero-height, 503px); }
.hero--home .hero-overlay { opacity: var(--hero-overlay-opacity, 0.9); }

@media (max-width: 1240px) {
  h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 420px; }
  .hero--home { min-height: var(--hero-mobile-height, 280px); }
  .hero--home .hero-overlay { opacity: var(--hero-mobile-overlay-opacity, 0.77); }
  .hero-overlay { background: linear-gradient(90deg, rgba(16,42,82,0.93), rgba(16,42,82,0.7)); }
  .hero-bg[data-responsive-image] { background-image: var(--mobile-image); }
  .hero-bg.hero-bg--home { background-image: url('../images/landing-hero-mobile.webp'); }
  .hero-bg.hero-bg--team-banner { background-image: url('../images/home-hero-or-mobile.webp'); }
  .hero-bg.hero-bg--conditions-banner { background-image: url('../images/conditions-surgery-banner-mobile.webp'); }
  .hero-bg.hero-bg--brain-aneurysm-banner { background-image: url('../images/aneurysm-banner-mobile.webp'); }
  .hero-bg.hero-bg--cavernous-banner { background-image: url('../images/cavernous-malformation-banner-mobile.webp'); }
  .hero-bg.hero-bg--research-banner { background-image: url('../images/research-team-banner-mobile.webp'); }
  .hero-bg.hero-bg--recovery-support-banner { background-image: url('../images/recovery-support-banner.webp'); }
  .hero-affil { height: 34px; right: 18px; bottom: 16px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 28px 20px; gap: 2px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .split, .director, .grid-3, .grid-2, .people-grid, .fellow-grid, .contact-grid, .research-focus, .research-metrics, .approach-layout, .approach-panel, .past-fellows-grid { grid-template-columns: 1fr; gap: 22px; }
  .past-fellows-grid--names { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
  .condition-hub, .care-note, .detail-layout, .detail-grid, .trial-card { grid-template-columns: 1fr; }
  .condition-detail-page .condition-media-grid { grid-template-columns: 1fr; }
  .condition-card--feature { grid-column: auto; padding: 26px 24px; }
  .condition-card--feature h3 { font-size: 1.25rem; }
  .condition-card--feature p { max-width: none; font-size: 0.96rem; }
  .detail-sidebar { position: static; order: 2; }
  .detail-content { order: 1; }
  .approach-intro { max-width: 720px; }
  .approach-panel { gap: 0; }
  .approach-item { min-height: 0; }
  .approach-item + .approach-item { border-left: none; border-top: 1px solid var(--line); }
  .research-sidebar { position: static; }
  .research-team-grid { grid-template-columns: repeat(3, 1fr); }
  .split.reverse .split-media { order: 0; }
  .director-photo { max-width: 340px; }
  .stats .grid-3 { grid-template-columns: repeat(3,1fr); }
  .stat .num { font-size: 2rem; }
  .cond-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; grid-template-areas: none; gap: 30px; }
  .footer-grid > div:nth-child(1),
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3),
  .footer-grid > .footer-affil { grid-area: auto; }
  .footer-affil { gap: 12px; max-width: 100%; width: 100%; flex-wrap: nowrap; padding: 0; }
  .footer-affil-logo--hms { width: 125px; }
  .footer-affil-logo--bidmc { width: 140px; }
  .footer-affil-logo--bai { height: 45px; }
  .site-header .container { grid-template-columns: auto minmax(0, 1fr) auto; position: relative; gap: 8px; padding: 12px 18px; }
  .brand-logo { height: 32px; }
  .brand-icon { height: 30px; }
  .brand-name { overflow: hidden; gap: 8px; }
  .brand-name strong { max-width: 100%; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-name span { font-size: 0.6rem; letter-spacing: 0.14em; margin-top: 2px; }
  .nav-toggle { width: 40px; height: 36px; padding: 0; display: grid; place-items: center; }
  .callout { padding: 34px 22px; }
  .care-note { padding: 24px 22px; }
  .detail-intro { padding: 22px; }
  .newsletter-archive__head { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trial-card { gap: 24px; padding: 26px 22px; }
  .trial-card__action { min-width: 0; text-align: left; }
  .trial-card__action .btn { width: auto; }
  .trial-card__action p { text-align: left; }
  .publication-archive__intro,
  .publication-more { grid-template-columns: 1fr; gap: 24px; }
  .publication-archive__count { width: fit-content; }
  .publication-tools { grid-template-columns: 1fr 1fr; }
  .publication-tools label:first-child { grid-column: 1 / -1; }
  .affil-band .affil-tag { font-size: 1.18rem; }
  .affil-logo { padding: 12px 22px; }
  .affil-logo + .affil-logo { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 1180px) {
  .research-profile-intro { grid-template-columns: 1fr; gap: 18px; max-width: 720px; }
  .research-profile-intro .research-org-mark { transform: none; }
  .research-profile-intro .research-org-mark img { width: min(320px, 70vw); }
}

@media (max-width: 640px) and (hover: none) and (pointer: coarse) {
  .site-header .container { grid-template-columns: auto 1fr auto auto; justify-content: stretch; column-gap: 12px; }
  .brand-name { display: flex; grid-column: 3; justify-self: end; overflow: visible; }
  .nav-toggle { grid-column: 4; }
  .brand-name strong, .brand-name span:not(.brand-short) { display: none; }
  .brand-name .brand-short {
    display: block !important;
    font-family: var(--sans);
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 0;
  }
  .topbar .container { justify-content: flex-start; padding: 9px 18px; }
  .topbar .topbar-right { gap: 0.5rem 1.2rem; }
  .container { padding: 0 22px; }
  .research-team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bg {
    background-size: var(--hero-mobile-size, var(--hero-size, cover));
    background-position: var(--hero-mobile-position, var(--hero-position, center));
  }
  .page-banner .hero-bg {
    background-size: var(--banner-mobile-size, var(--banner-size, cover));
    background-position: var(--banner-mobile-position, var(--banner-position, center));
  }
  .page-banner { min-height: var(--banner-mobile-height, var(--banner-height, auto)); }
  .hero-bg.hero-bg--home {
    background-size: var(--hero-mobile-size, cover) !important;
    background-position: var(--hero-mobile-position, center) !important;
  }
  .hero .container { padding-top: 58px; padding-bottom: 58px; }
  .hero-content, .hero p { max-width: 100%; }
  .hero .eyebrow { font-size: 0.68rem; letter-spacing: 0.14em; overflow-wrap: anywhere; }
  .hero h1 { max-width: 100%; font-size: 2rem; overflow-wrap: break-word; }
}

@media (max-width: 640px) {
  .page-banner--cavernous .hero-bg {
    background-size: var(--banner-mobile-size, var(--banner-size, cover));
    background-position: var(--banner-mobile-position, var(--banner-position, center));
  }
  .page-banner--cavernous { min-height: var(--banner-mobile-height, var(--banner-height, auto)); }
  .topbar .container { justify-content: flex-start; padding: 8px 18px; }
  .topbar .topbar-right { flex-direction: column; align-items: flex-start; gap: 2px; }
  .brand-name { justify-self: end; overflow: visible; }
  .brand-text { display: none; }
  .brand-name .brand-short { display: none !important; }
  .topbar a, .page-banner p, .page-banner p a, .contact-box .muted {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .past-fellows-grid--names { grid-template-columns: 1fr; }
  .newsletter-feature .container,
  .newsletter-intro,
  .newsletter-reader { min-width: 0; max-width: 100%; }
  .newsletter-intro { align-items: stretch; flex-direction: column; gap: 20px; }
  .newsletter-intro h2 { font-size: 2rem; }
  .newsletter-viewer-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .newsletter-viewer-actions .btn { width: 100%; min-width: 0; justify-content: center; padding-left: 16px; padding-right: 16px; }
  .newsletter-reader__bar { align-items: flex-start; flex-direction: column; gap: 2px; }
  .newsletter-reader iframe { width: 100%; max-width: 100%; height: 68vh; min-height: 480px; }
  .newsletter-reader__fallback { display: block; }
  .newsletter-tools { grid-template-columns: 1fr; }
  .newsletter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .newsletter-card__body { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px; }
  .newsletter-card__cover span { opacity: 1; transform: none; inset: auto 10px 10px; padding: 7px 9px; font-size: 0.78rem; }
  .publication-tools { grid-template-columns: 1fr; }
  .publication-tools label:first-child { grid-column: auto; }
  .publication-archive-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .publication-archive-item__date { display: flex; align-items: center; gap: 10px; }
  .publication-archive-item__date small { margin-top: 0; }
  .publication-more__faculty { grid-template-columns: 1fr; }
  .publication-more__person,
  .publication-more__person:first-child,
  .publication-more__person:last-child { padding: 22px 0; }
  .publication-more__person + .publication-more__person { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .page-banner h1 { max-width: 100%; font-size: 2rem; word-break: break-word; }
  .newsletter-grid { grid-template-columns: 1fr; max-width: 330px; margin: 0 auto; }
}

/* Stack detailed attending profiles on narrow screens (photo on top) */
@media (max-width: 760px) {
  .research-profile-intro { grid-template-columns: 1fr; gap: 16px; max-width: 620px; }
  .research-profile-intro .lead { transform: none; }
  .research-profile-intro .research-org-mark { justify-content: center; }
  .research-profile-intro .research-org-mark img { width: min(240px, 68vw); }
  .people-grid--detailed .person { grid-template-columns: 1fr; }
  .people-grid--detailed .person-photo { min-height: 0; aspect-ratio: 1/1; }
  .people-grid--detailed .person-body { border-left: none; border-top: 3px solid var(--blue); padding: 26px 24px 28px; }
  .people-grid--detailed .person-details { columns: 1; }
}
