/* Rajagopalan Lab — design system
   Deep cardiovascular blue, a single crimson accent, generous white space.
   Class names used by assets/js/site.js are preserved; see "rendered by site.js" blocks. */

/* Elements with the HTML `hidden` attribute must stay hidden even when a class sets display. */
[hidden] { display: none !important; }

:root {
  --navy: #0a1a33;
  --ink: #111c2d;
  --ink-soft: #3a475c;
  --muted: #667387;
  --primary: #0b3a6e;
  --primary-deep: #072748;
  --accent: #c8102e;
  --accent-deep: #a00d25;
  --accent-light: #ff8d9c;
  --sky: #9cc3f0;
  --tint: #edf3fb;
  --grey: #f5f7fa;
  --white: #ffffff;
  --line: #e1e6ee;
  --shadow: 0 24px 60px rgba(10, 26, 51, 0.16);
  --shadow-sm: 0 8px 28px rgba(10, 26, 51, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --header-h: 88px;
  --serif: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.skip-link {
  position: fixed; z-index: 1000; left: 16px; top: 12px;
  transform: translateY(-160%);
  background: var(--navy); color: white;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Layout */
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 48px), 820px); margin: 0 auto; }
.section { padding: 110px 0; }
.section-sm { padding: 80px 0; }
.section-tint, .section-sand { background: var(--grey); }
.section-dark { background: var(--navy); color: var(--white); }

/* Type */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-soft); max-width: 720px; }
.section-dark .lede { color: #c5d0e0; }
.kicker { color: var(--primary); font-weight: 700; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-dark .eyebrow { color: var(--accent-light); }

.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 820px; }
.section-head p { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head-row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 650; text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.section-dark .btn-secondary, .hero .btn-secondary, .cta-box .btn-secondary { color: white; border-color: rgba(255,255,255,.7); }
.section-dark .btn-secondary:hover, .hero .btn-secondary:hover, .cta-box .btn-secondary:hover { background: white; color: var(--navy); border-color: white; }
.btn-small { min-height: 44px; padding: 10px 22px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--primary); color: white;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.brand-copy strong { display: block; line-height: 1.15; font-size: 1.2rem; }
.brand-copy span { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 1.02rem; font-weight: 550;
  text-decoration: none; color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover { color: var(--primary); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-cta { margin-left: 10px; background: var(--accent) !important; color: white !important; padding-inline: 24px !important; }
.nav-cta:hover { background: var(--accent-deep) !important; }
.nav-cta::after { display: none; }
.menu-toggle { display: none; border: 0; background: transparent; width: 48px; height: 48px; border-radius: 50%; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 26px; height: 2px; margin: 6px auto; background: var(--ink); transition: .2s ease;
}

/* Home hero: full-bleed photo with a deep blue wash */
.hero {
  position: relative;
  min-height: min(calc(100vh - var(--header-h)), 820px);
  display: flex; align-items: center;
  padding: 100px 0;
  color: white;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,20,42,.92) 0%, rgba(7,20,42,.78) 42%, rgba(7,20,42,.25) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 660px; }
.hero .eyebrow { color: var(--accent-light); }
.hero h1 { color: white; font-size: clamp(3.6rem, 8.5vw, 7.5rem); line-height: 1; letter-spacing: -.035em; }
.hero .lede { margin-top: 26px; color: rgba(255,255,255,.9); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; }

/* Institutional affiliation strip (restored from v4) */
.trust-strip { padding: 24px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 24px; }
.trust-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.affiliation { padding-left: 22px; border-left: 3px solid var(--primary); }
.affiliation strong { display: block; font-size: .92rem; color: var(--primary-deep); }
.affiliation span { display: block; color: var(--muted); font-size: .78rem; }

/* Inner page hero */
.page-hero { padding: 96px 0 72px; background: var(--grey); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); max-width: 900px; color: var(--primary-deep); }
.page-hero .lede { margin-top: 22px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; color: var(--muted); font-size: .85rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--accent); }

/* Research program tiles (homepage, dark section) */
.section-programs {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.28), transparent 42%),
    radial-gradient(circle at 92% 100%, rgba(200,16,46,.22), transparent 40%),
    var(--navy);
}
.section-programs h2 { color: white; }
.section-title { font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -.035em; }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.program {
  --c1: #60a5fa; --c2: #2563eb;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  color: white; text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.program-env { --c1: #5eead4; --c2: #0d9488; }
.program-geo { --c1: #7cb8ff; --c2: #2563eb; }
.program-climate { --c1: #fcd34d; --c2: #f97316; }
.program-omics { --c1: #fda4af; --c2: #e11d48; }
.program::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.program::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--c2) 35%, transparent), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.program > * { position: relative; z-index: 1; }
.program:hover, .program:focus-visible {
  transform: translateY(-10px);
  background: rgba(255,255,255,.07);
  border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c2) 70%, transparent);
}
.program:hover::after, .program:focus-visible::after { opacity: 1; }
.program-num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1;
  color: rgba(255,255,255,.08);
  transition: color .35s ease;
}
.program:hover .program-num { color: color-mix(in srgb, var(--c1) 35%, transparent); }
.program-icon {
  width: 60px; height: 60px; margin-bottom: 22px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: white;
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--c2) 80%, transparent);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.program:hover .program-icon { transform: scale(1.08) rotate(-4deg); }
.program-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.program h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.12; margin-bottom: 12px; color: white; }
.program p { color: #e4eaf3; font-size: 1.15rem; font-weight: 450; line-height: 1.5; margin-bottom: 20px; }
.program .more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c1); font-weight: 700; font-size: 1.02rem;
}
.program .more::after { content: "→"; transition: transform .25s ease; }
.program:hover .more::after { transform: translateX(6px); }

/* Legacy cards (inner pages) */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 30px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.tag { display: inline-flex; border-radius: 999px; padding: 5px 12px; background: var(--tint); color: var(--primary); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Publications (rendered by site.js) */
.publication-list { display: grid; gap: 16px; }
.publication-card {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: start;
  padding: 28px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: white;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.publication-card:hover { border-color: transparent; box-shadow: var(--shadow-sm); }
.pub-year { color: var(--accent); font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1; padding-top: 4px; }
.pub-content h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.pub-content h3 a { text-decoration: none; }
.pub-content h3 a:hover { color: var(--primary); }
.pub-authors { margin-top: 10px; color: var(--ink-soft); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-meta { margin-top: 6px; color: var(--muted); font-size: .82rem; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pub-tag { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .72rem; font-weight: 650; }
.pub-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--primary); text-decoration: none; transition: background .2s ease, color .2s ease; }
.pub-arrow:hover { background: var(--primary); color: white; }
.publication-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.publication-load-more-wrap { display: grid; justify-items: center; gap: 10px; padding: 30px 18px 8px; }
.publication-load-more-wrap p { color: var(--muted); font-size: .85rem; }
.publication-load-more { min-width: 200px; }

/* Homepage "Recent work": dark band, compact cards that fit on one screen */
.section-pubs {
  background:
    radial-gradient(circle at 85% 0%, rgba(37,99,235,.22), transparent 45%),
    linear-gradient(180deg, #0d2342 0%, var(--navy) 100%);
  border-top: 1px solid rgba(255,255,255,.08);
}
.section-pubs h2 { color: white; }
.section-pubs .publication-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.section-pubs .publication-card {
  grid-template-columns: 1fr; gap: 10px;
  padding: 24px 24px 22px;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  border-top: 3px solid var(--accent);
}
.section-pubs .publication-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); border-top-color: var(--accent-light); box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); transform: translateY(-4px); }
.section-pubs .publication-card { transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.section-pubs .publication-card > * { min-width: 0; }
.section-pubs .pub-year { font-size: .85rem; font-family: var(--sans); font-weight: 700; letter-spacing: .12em; color: var(--accent-light); padding: 0; }
.section-pubs .pub-content h3 { font-size: 1.2rem; line-height: 1.3; color: white; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-pubs .pub-content h3 a:hover { color: var(--sky); }
.section-pubs .pub-authors { color: #aebbd0; font-size: .85rem; -webkit-line-clamp: 1; }
.section-pubs .pub-meta { color: var(--sky); font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-pubs .pub-tags, .section-pubs .pub-arrow { display: none; }
.section-pubs .loading, .section-pubs .publication-empty { color: #aebbd0; }

/* "Recent work": less dead space, compact cards in one row */
.section-programs { padding-bottom: 64px; }
.section-pubs { padding: 52px 0 56px; }
.section-pubs .section-head { margin-bottom: 22px; align-items: center; }
.section-pubs .section-title { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.section-pubs .publication-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.section-pubs .publication-card { gap: 6px; padding: 14px 16px 15px; border-top-width: 2px; border-radius: 12px; }
.section-pubs .publication-card:hover { transform: translateY(-2px); }
.section-pubs .pub-year { font-size: .7rem; letter-spacing: .1em; }
.section-pubs .pub-content h3 { font-size: .95rem; line-height: 1.3; -webkit-line-clamp: 3; }
.section-pubs .pub-authors { font-size: .74rem; margin-top: 6px; }
.section-pubs .pub-meta { font-size: .72rem; margin-top: 4px; }
@media (max-width: 1120px) { .section-pubs .publication-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .section-programs { padding-bottom: 48px; }
  .section-pubs { padding: 40px 0 44px; }
  .section-pubs .publication-list { grid-template-columns: 1fr; }
}

/* Search & filters */
.filter-panel {
  display: grid; grid-template-columns: 1.6fr .7fr .9fr; gap: 14px;
  margin: 34px 0 24px; padding: 20px;
  border-radius: var(--radius); background: var(--grey);
}
.field { display: grid; gap: 8px; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #cfd7e3; border-radius: var(--radius-sm);
  background: white; color: var(--ink); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,58,110,.12); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip { border: 1px solid var(--line); background: white; color: var(--ink-soft); border-radius: 999px; padding: 9px 16px; font-size: .9rem; font-weight: 600; transition: .2s ease; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: white; }
.results-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .88rem; }

/* News (cards also rendered by site.js) */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius);
  background: white; border: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.news-card time { color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.news-card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.35; margin: 14px 0 12px; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { color: var(--muted); font-size: .93rem; }
.news-card .source { margin-top: auto; padding-top: 10px; color: var(--primary); font-size: .82rem; font-weight: 650; }
.media-catalogue-card { min-height: 100%; }
.media-catalogue-card p { flex: 1; }
.news-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-type { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; color: var(--primary); background: var(--tint); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.media-members { margin-top: 12px; color: var(--ink); font-size: .85rem; font-weight: 650; }
.media-load-more-wrap { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 0 4px; }
.media-load-more-wrap p { margin: 0; color: var(--muted); font-size: .85rem; }
.media-empty { grid-column: 1 / -1; }

/* Homepage news with photos and logos */
.news-grid-media { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card-media { padding: 0; overflow: hidden; }
.news-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey); border-bottom: 1px solid var(--line); }
.news-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s ease; }
.news-card-media:hover .news-media img { transform: scale(1.04); }
.news-media-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 30px; background: white; text-decoration: none; }
.news-media-logo img { width: auto; height: auto; max-width: 78%; max-height: 82%; object-fit: contain; }
.news-media-caption { color: var(--primary-deep); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.news-media-logo:has(.news-media-caption) img { max-height: 64%; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.news-card-media h3 { font-size: 1.2rem; margin: 10px 0 10px; }
.news-card-media p { font-size: .9rem; line-height: 1.55; }

/* Home page "Latest from the lab": tighter spacing */
.section-news { padding: 64px 0 56px; }
.section-news .section-head { margin-bottom: 28px; }
.section-news .section-head .eyebrow { margin-bottom: 8px; }
.section-news .news-grid-media { gap: 18px; }
.section-news .news-media { aspect-ratio: 16 / 8; }
.section-news .news-media-logo { padding: 18px 24px; }
.section-news .news-body { padding: 16px 18px 18px; }
.section-news .news-card h3 { font-size: 1.08rem; line-height: 1.3; margin: 8px 0 6px; }
.section-news .news-card p { font-size: .86rem; line-height: 1.5; margin-bottom: 0; }
.section-news .news-card .source { padding-top: 12px; }
.section-news + .cta-section { padding-top: 0; }
@media (max-width: 760px) { .section-news { padding: 48px 0 40px; } .section-news .section-head { margin-bottom: 20px; } }
.section-news { padding: 40px 0 44px; }
.section-news .section-head { margin-bottom: 18px; align-items: center; }
.section-news .news-heading { margin: 0; font-family: var(--sans); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: .14em; line-height: 1; }
.section-news .news-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.section-news .news-grid-media { align-items: start; }
.section-news .news-media { aspect-ratio: 16 / 7; }
.section-news .news-body { padding: 14px 16px 16px; }
.section-news .news-card .source { margin-top: 0; padding-top: 10px; }
@media (max-width: 760px) { .section-news { padding: 32px 0 36px; } .section-news .section-head { margin-bottom: 14px; } }

/* Research page */
.research-block { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.research-block:last-child { border-bottom: 0; }
.research-index { color: var(--accent); font-weight: 800; letter-spacing: .14em; font-size: .85rem; }
.research-block h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--primary-deep); }
.research-copy > p { font-size: 1.08rem; color: var(--ink-soft); }
.research-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.detail-box { padding: 24px; border-radius: var(--radius-sm); background: var(--grey); }
.detail-box h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; color: var(--primary); }
.detail-box ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .95rem; }
.detail-box li + li { margin-top: 6px; }

/* Research page: compact, single-column program blocks */
.page-hero-compact { padding: 40px 0 32px; }
.page-hero-compact .breadcrumb { margin-bottom: 12px; }
.page-hero-compact .eyebrow { margin-bottom: 10px; }
.page-hero-compact h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: none; }
.page-hero-compact .lede { margin-top: 12px; max-width: none; font-size: 1.05rem; }
.research-programs { padding: 16px 0 24px; }
.research-programs .research-block { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
.research-programs .research-block h2 { margin-top: 0; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; }
.research-programs .research-copy > p { font-size: 1rem; line-height: 1.6; margin: 0; max-width: none; }
.research-programs .research-details { gap: 16px; margin-top: 16px; }
.research-programs .detail-box { padding: 16px 20px; }
.research-programs .detail-box h3 { margin-bottom: 8px; font-size: .76rem; }
.research-programs .detail-box ul { font-size: .9rem; line-height: 1.45; }
.research-programs .detail-box li + li { margin-top: 3px; }
.research-programs .research-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.research-programs .research-methods .method { padding: 16px 20px; border: 0; border-radius: var(--radius-sm); background: var(--grey); line-height: 1.45; }
.research-programs .research-methods .method strong { display: block; color: var(--primary-deep); font-size: .9rem; margin-bottom: 4px; }
.research-programs .research-methods .method span { display: block; color: var(--ink-soft); font-size: .9rem; }
.research-programs .research-cta { justify-content: flex-start; margin-top: 16px; }
@media (max-width: 1120px) { .research-programs .research-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .research-programs .research-methods { grid-template-columns: 1fr; } }
.research-programs .question-list strong { display: block; color: var(--primary-deep); font-size: .82rem; letter-spacing: .03em; }
.research-programs .question-list li + li { margin-top: 6px; }
@media (min-width: 1000px) { .research-programs .research-block h2 { white-space: nowrap; } }
.research-platform { padding: 48px 0 52px; }
.research-platform .section-head { max-width: none; grid-template-columns: auto 1fr; align-items: end; column-gap: 40px; margin-bottom: 24px; }
.research-platform .section-head .eyebrow { margin-bottom: 8px; }
.research-platform .section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.research-platform .section-head .lede { font-size: 1rem; max-width: 560px; }
.research-platform .method-grid { gap: 14px; }
.research-platform .method { padding: 18px 20px; }
.research-platform .method strong { font-size: .98rem; margin-bottom: 4px; }
.research-platform .method span { font-size: .88rem; line-height: 1.5; }
.research-platform { background: white; border-top: 1px solid var(--line); }
.research-platform .section-head h2 { color: var(--primary-deep); }
.research-platform .method { background: var(--grey); border: 0; border-radius: var(--radius-sm); }
.research-platform .method strong { color: var(--primary); }
.research-platform .method span { color: var(--ink-soft); }
/* Plain CTA row (no blue panel) */
.cta-plain { padding: 0 0 56px; }
.cta-plain .cta-box { background: none; color: inherit; border-radius: 0; padding: 28px 0 0; border-top: 1px solid var(--line); gap: 24px; }
.cta-plain .cta-box .eyebrow { color: var(--accent); margin-bottom: 8px; }
.cta-plain .cta-box h2 { color: var(--primary-deep); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-plain .cta-box .btn-secondary { color: var(--primary); border-color: var(--primary); }
.cta-plain .cta-box .btn-secondary:hover { background: var(--primary); color: white; }
.cta-plain .cta-box { grid-template-columns: 1fr auto; }
.cta-plain .cta-actions { flex-wrap: nowrap; }
.research-platform .method { line-height: 1.5; }
.research-platform .method span { display: block; }
@media (max-width: 760px) { .cta-plain .cta-box { grid-template-columns: 1fr; } .cta-plain .cta-actions { flex-wrap: wrap; } }
@media (max-width: 760px) { .cta-plain { padding-bottom: 40px; } .cta-plain .cta-actions { justify-content: flex-start; } }
@media (max-width: 760px) {
  .page-hero-compact { padding: 28px 0 24px; }
  .research-platform { padding: 36px 0 40px; }
  .research-platform .section-head { grid-template-columns: 1fr; }
  .research-programs .research-block { padding: 22px 0; }
}
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.method strong { display: block; color: var(--sky); margin-bottom: 8px; font-size: 1.05rem; }
.method span { color: #c5d0e0; font-size: .93rem; }

/* People (team cards rendered by site.js) */
.pi-feature { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.pi-photo { aspect-ratio: 4/4.7; object-fit: cover; width: 100%; border-radius: var(--radius); background: var(--tint); box-shadow: var(--shadow); }
.pi-copy h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); color: var(--primary-deep); }
.pi-role { margin: 16px 0 24px; color: var(--accent); font-weight: 700; }
.pi-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pi-links a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 650; text-decoration: none; color: var(--primary); }
.pi-links a:hover { border-color: var(--primary); background: var(--tint); }
.timeline { margin-top: 32px; border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline-row time { color: var(--accent); font-size: .85rem; font-weight: 650; }
.timeline-row strong { display: block; font-size: 1rem; }
.timeline-row span { display: block; color: var(--muted); font-size: .9rem; }
.team-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin: 36px 0 26px; }
.team-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person-card { border-radius: var(--radius); overflow: hidden; background: white; border: 1px solid var(--line); transition: box-shadow .22s ease, transform .22s ease; }
.person-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.person-photo, .person-placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; background: var(--tint); }
.person-placeholder { display: grid; place-items: center; font-family: var(--serif); color: var(--primary); font-size: 2.2rem; }
.person-body { padding: 20px; }
.person-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.person-role { color: var(--accent); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.person-affiliation { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.person-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.person-links a { color: var(--primary); font-size: .82rem; font-weight: 600; text-decoration: none; }
.person-links a:hover { text-decoration: underline; }
.team-section-title { margin: 56px 0 22px; display: flex; align-items: center; gap: 18px; }
.team-section-title::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.team-section-title h2 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); }
.loading { color: var(--muted); padding: 30px 0; }

/* Join / contact */
.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opportunity { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: white; }
.opportunity h3 { margin-bottom: 10px; color: var(--primary-deep); }
.opportunity p { color: var(--muted); font-size: .95rem; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.contact-card { padding: 28px; border-radius: var(--radius); background: var(--grey); margin-top: 20px; }
.contact-card strong { display: block; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: .95rem; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--primary); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.form-status { grid-column: 1 / -1; color: var(--primary); font-weight: 700; font-size: .9rem; min-height: 20px; }

/* Call to action */
.cta-section { padding: 0 0 110px; }
.cta-box {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  padding: 64px; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  color: white;
}
.cta-box .eyebrow { color: var(--accent-light); }
.cta-box h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.cta-box p { color: #c5d0e0; margin: 14px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

/* Footer */
.site-footer { padding: 72px 0 32px; background: var(--navy); color: white; }
.site-footer .brand-mark { background: white; color: var(--navy); }
.site-footer .brand-copy span { color: #93a2b8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 44px; }
.footer-brand p { color: #a9b6c8; font-size: .92rem; max-width: 340px; margin-top: 18px; }
.footer-col h3 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-light); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: #c3cedd; font-size: .93rem; text-decoration: none; margin: 9px 0; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8391a6; font-size: .82rem; }

/* Responsive */
@media (max-width: 1120px) {
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 24px 26px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 18px; font-size: 1.1rem; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--tint); }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .menu-toggle { display: block; }
  .program-grid, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .news-grid, .news-grid-media { grid-template-columns: repeat(2, 1fr); }
  .pi-feature { grid-template-columns: 300px 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 74px; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .affiliation { padding-left: 14px; }
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 76px 0; }
  .section-sm { padding: 60px 0; }
  .brand-mark { width: 42px; height: 42px; font-size: 1.05rem; }
  .brand-copy strong { font-size: 1.08rem; }
  .brand-copy span { display: none; }
  .hero { min-height: 0; padding: 88px 0 80px; }
  .hero::after { background: linear-gradient(180deg, rgba(7,20,42,.72) 0%, rgba(7,20,42,.9) 100%); }
  .section-head { margin-bottom: 36px; }
  .section-head-row { grid-template-columns: 1fr; }
  .program { padding: 26px 22px 24px; }
  .news-grid-media,
  .program-grid, .cards-4, .cards-3, .news-grid, .method-grid, .opportunity-grid { grid-template-columns: 1fr; }
  .publication-card { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .pub-arrow { display: none; }
  .filter-panel { grid-template-columns: 1fr; }
  .research-block, .pi-feature, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .research-details { grid-template-columns: 1fr; }
  .pi-photo { max-width: 420px; }
  .team-toolbar { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .cta-section { padding-bottom: 76px; }
  .cta-box { grid-template-columns: 1fr; padding: 40px 26px; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* People page: compact PI profile and single team grid */
.pi-section { padding: 36px 0 28px; }
.pi-section .pi-feature { grid-template-columns: 200px 1fr; gap: 36px; }
.pi-section .pi-photo { box-shadow: none; border-radius: var(--radius-sm); }
.pi-section .pi-copy .eyebrow { margin-bottom: 6px; }
.pi-section .pi-copy h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.pi-section .pi-role { margin: 6px 0 10px; font-size: .9rem; }
.pi-section .lede { font-size: 1rem; max-width: none; }
.pi-section .pi-links { margin-top: 12px; gap: 8px; }
.pi-section .pi-links a { padding: 6px 12px; font-size: .8rem; }
.pi-section .timeline { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.pi-section .timeline-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
.pi-section .timeline-row time { font-size: .76rem; }
.pi-section .timeline-row strong { font-size: .86rem; }
.pi-section .timeline-row span { font-size: .8rem; }
.team-section { padding: 8px 0 40px; }
.team-heading { font-size: clamp(1.4rem, 2.2vw, 1.85rem); color: var(--primary-deep); margin-bottom: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.team-grid-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.team-grid-compact .person-card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-sm); }
.team-grid-compact .person-card:hover { transform: translateY(-2px); }
.team-grid-compact .person-placeholder { font-size: 1.6rem; }
.team-grid-compact .person-body { padding: 10px 12px 12px; }
.team-grid-compact .person-body h3 { font-size: .9rem; line-height: 1.25; margin-bottom: 3px; }
.team-grid-compact .person-role { font-size: .66rem; letter-spacing: .04em; }
@media (max-width: 1120px) { .team-grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pi-section .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pi-section .pi-feature { grid-template-columns: 1fr; gap: 20px; }
  .pi-section .pi-photo { max-width: 200px; }
  .team-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pi-section .pi-photo { aspect-ratio: 1 / 1; object-position: center 30%; }
.pi-section .pi-copy h2 { margin-bottom: 8px; }
/* People page: tighter still */
.people-hero { padding: 24px 0 20px; }
.people-hero .breadcrumb { margin-bottom: 8px; }
.people-hero .eyebrow { margin-bottom: 6px; }
.people-hero h1 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.2; }
.people-hero .lede { margin-top: 8px; font-size: .95rem; }
.pi-section { padding: 22px 0 16px; }
.pi-section .pi-feature { grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.pi-section .lede { font-size: .95rem; line-height: 1.55; }
.pi-section .pi-links { margin-top: 10px; }
.team-section { padding: 0 0 24px; }
.team-heading { margin-bottom: 12px; padding-top: 16px; font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.team-grid-compact { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.team-grid-compact .person-body { padding: 8px 10px 10px; }
.team-grid-compact .person-body h3 { font-size: .8rem; }
.team-grid-compact .person-role { font-size: .6rem; }
.people-cta { padding-bottom: 32px; }
.people-cta .cta-box { padding-top: 18px; }
.people-cta .cta-box .eyebrow { margin-bottom: 4px; }
.people-cta .cta-box h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.people-cta .btn { min-height: 42px; padding: 9px 20px; font-size: .9rem; }
@media (max-width: 1120px) { .team-grid-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pi-section .pi-feature { grid-template-columns: 1fr; } .pi-section .pi-photo { max-width: 150px; } .team-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* People page: featured row (PI + faculty) above the team grid */
.team-section { padding-top: 20px; }
.team-heading { border-top: 0; padding-top: 0; }
.team-featured { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.person-card-featured { display: flex; flex-direction: column; border-radius: var(--radius-sm); }
.person-card-featured:hover { transform: none; }
.person-card-featured .person-body { padding: 12px 14px 14px; }
.person-card-featured h3 { font-size: 1rem; line-height: 1.25; margin-bottom: 3px; }
.person-card-featured h3 a { text-decoration: none; color: inherit; }
.person-card-featured h3 a:hover { color: var(--primary); }
.person-card-featured .person-role { font-size: .66rem; }
.person-summary { margin: 6px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.45; }
.person-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.person-pills a { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; font-weight: 650; text-decoration: none; color: var(--primary); }
.person-pills a:hover { border-color: var(--primary); background: var(--tint); }
@media (max-width: 1120px) { .team-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .team-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Featured people as stacked horizontal rows */
.team-featured { grid-template-columns: 1fr; gap: 0; margin-bottom: 22px; border-top: 1px solid var(--line); }
.person-card-featured { flex-direction: row; align-items: center; gap: 18px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.person-card-featured:hover { box-shadow: none; }
.person-card-featured .person-photo, .person-card-featured .person-placeholder { width: 84px; min-width: 84px; height: 84px; border-radius: var(--radius-sm); font-size: 1.4rem; }
.person-card-featured .person-body { padding: 0; }
.person-card-featured h3 { font-size: 1.05rem; display: inline; margin-right: 8px; }
.person-card-featured .person-role { display: inline; }
.person-card-featured .person-summary { margin-top: 3px; font-size: .88rem; }
.person-card-featured .person-pills { margin-top: 6px; }
@media (max-width: 1120px) { .team-featured { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .team-featured { grid-template-columns: 1fr; } .person-card-featured { align-items: flex-start; } .person-card-featured .person-photo, .person-card-featured .person-placeholder { width: 64px; min-width: 64px; height: 64px; } }
/* Research page: dimensional, offset boxes */
.research-programs .research-details { gap: 22px; }
.research-programs .detail-box,
.research-programs .research-methods .method {
  position: relative; background: #fff;
  border: 1px solid #d8e0ec; border-radius: 12px;
  box-shadow: 8px 8px 0 #d9e3f2, 0 1px 2px rgba(11,58,110,.06), 0 12px 26px -14px rgba(11,58,110,.38);
  transition: transform .2s ease, box-shadow .2s ease;
}
.research-programs .detail-box:hover,
.research-programs .research-methods .method:hover {
  transform: translate(-2px, -2px);
  box-shadow: 11px 11px 0 #c9d7ec, 0 2px 4px rgba(11,58,110,.08), 0 16px 30px -14px rgba(11,58,110,.4);
}
.research-programs .detail-box::before,
.research-programs .research-methods .method::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary);
}
.research-programs .detail-box:first-child::before { background: var(--accent); }
.research-programs .detail-box h3 { color: var(--accent); }
.research-programs .detail-box + .detail-box h3 { color: var(--primary); }
.research-programs .question-list { list-style: none; padding-left: 0; }
.research-programs .question-list strong { color: var(--primary-deep); font-size: .86rem; }
.research-programs .detail-box:first-child .question-list strong { color: var(--accent-deep, #9f0d26); }
.research-programs .research-block h2 { position: relative; padding-left: 16px; }
.research-programs .research-block h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 3px; background: linear-gradient(var(--accent), var(--primary)); }
.research-programs .research-methods .method strong { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .research-programs .detail-box, .research-programs .research-methods .method { transition: none; } }
/* Home hero: lighter overlay so the team is visible; text kept legible with a soft shadow */
.hero::after { background: linear-gradient(90deg, rgba(7,20,42,.66) 0%, rgba(7,20,42,.44) 45%, rgba(7,20,42,.05) 100%); }
.hero h1, .hero .lede { text-shadow: 0 2px 18px rgba(4,12,28,.55), 0 1px 3px rgba(4,12,28,.45); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(7,20,42,.45) 0%, rgba(7,20,42,.72) 100%); } }
/* Home hero layout: title top-left, text bottom-left, buttons bottom-right */
.hero { align-items: stretch; padding: 48px 0 44px; }
.hero .container { display: flex; }
.hero-copy { max-width: none; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 40px; }
.hero-copy h1 { grid-column: 1 / -1; grid-row: 1; }
.hero-copy .lede { grid-column: 1; grid-row: 3; align-self: end; max-width: 640px; margin: 0; }
.hero-copy .btn-row { grid-column: 2; grid-row: 3; align-self: end; margin: 0; flex-wrap: nowrap; }
@media (max-width: 760px) {
  .hero { padding: 32px 0; }
  .hero-copy { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; row-gap: 20px; }
  .hero-copy .lede { grid-row: 3; }
  .hero-copy .btn-row { grid-column: 1; grid-row: 4; flex-wrap: wrap; }
}
.hero::after { background:
  linear-gradient(180deg, rgba(7,20,42,.35) 0%, rgba(7,20,42,0) 28%, rgba(7,20,42,0) 55%, rgba(7,20,42,.62) 100%),
  linear-gradient(90deg, rgba(7,20,42,.45) 0%, rgba(7,20,42,.22) 50%, rgba(7,20,42,0) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(7,20,42,.45) 0%, rgba(7,20,42,.2) 40%, rgba(7,20,42,.75) 100%); } }
/* Research figures */
.research-figure { margin: 18px 0 4px; padding: 14px; background: #fff; border: 1px solid #d8e0ec; border-radius: 12px; box-shadow: 8px 8px 0 #d9e3f2, 0 12px 26px -14px rgba(11,58,110,.38); }
.research-figure img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.research-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.research-figure-side { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.research-figure-side img { max-height: 280px; }
.research-figure-side figcaption { margin-top: 0; font-size: .92rem; color: var(--ink-soft); }
.research-figure-side figcaption strong { display: block; color: var(--primary-deep); font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 760px) { .research-figure-side { grid-template-columns: 1fr; } }
/* Research: picture as background behind Themes / Methods */
.research-details.has-bg { position: relative; isolation: isolate; padding: 22px; margin-top: 18px; border-radius: 16px; overflow: visible; }
.research-details.has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px;
  background: var(--bg) center / contain no-repeat, #f7f9fc;
  opacity: .5;
}
.research-details.has-bg .detail-box { background: rgba(255,255,255,.80); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
#environmental-cardiology .research-details.has-bg::before { background-size: auto 115%; opacity: .55; }
#geospatial-ai .research-details.has-bg::before { background-size: 100% auto; opacity: .55; }
#environmental-cardiology .research-details.has-bg::before { background: url("../images/research/exposome-figure.jpg") center / contain no-repeat, #fbfcfe; opacity: .9; }
#geospatial-ai .research-details.has-bg::before { background: url("../images/research/geospatial-ai-figure.jpg") center / contain no-repeat, #fbfcfe; opacity: .9; }
.research-details.has-bg .detail-box { background: rgba(255,255,255,.68); backdrop-filter: blur(1.5px) saturate(1.1); -webkit-backdrop-filter: blur(1.5px) saturate(1.1); }
.research-details.has-bg .detail-box h3, .research-details.has-bg .question-list strong, .research-details.has-bg .question-list li { text-shadow: 0 0 6px rgba(255,255,255,.9); }
#planetary-health .research-details.has-bg::before { background: url("../images/research/planetary-greenness-map.jpg") center / cover no-repeat, #fbfcfe; opacity: .85; }
#geospatial-ai .research-details.has-bg::before { background: url("../images/research/geospatial-embeddings-mosaic.jpg") center / cover no-repeat, #fbfcfe; opacity: .85; }
#environmental-cardiology .research-details.has-bg::before {
  background: url("../images/research/exposome-figure.jpg") left 6% center / auto 96% no-repeat,
              url("../images/research/human-exposome-wheel.jpg") right 6% center / auto 100% no-repeat, #fbfcfe;
  opacity: .9; }
.research-credit { margin: 8px 0 0; font-size: .72rem; color: var(--muted); text-align: right; }
#mechanisms .research-details.has-bg::before { background: url("../images/research/multiomics-workflow.jpg") center / cover no-repeat, #fbfcfe; opacity: .85; }
/* Research: dark translucent boxes over background images */
.research-programs .research-details.has-bg .detail-box {
  background: rgba(8, 32, 78, .76);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(2px) saturate(1.15); -webkit-backdrop-filter: blur(2px) saturate(1.15);
  box-shadow: 8px 8px 0 rgba(9,28,58,.22), 0 14px 30px -14px rgba(4,12,28,.6);
}
.research-programs .research-details.has-bg .detail-box:hover { box-shadow: 11px 11px 0 rgba(9,28,58,.28), 0 18px 34px -14px rgba(4,12,28,.65); }
.research-programs .research-details.has-bg .detail-box h3,
.research-programs .research-details.has-bg .question-list strong,
.research-programs .research-details.has-bg .question-list li { text-shadow: none; }
.research-programs .research-details.has-bg .detail-box h3 { color: #9fc4ff; }
.research-programs .research-details.has-bg .detail-box:first-child h3 { color: #ff9aa9; }
.research-programs .research-details.has-bg .question-list li { color: rgba(255,255,255,.86); }
.research-programs .research-details.has-bg .question-list strong,
.research-programs .research-details.has-bg .detail-box:first-child .question-list strong { color: #fff; }
.research-programs .research-details.has-bg .detail-box::before { background: #6ea8ff; }
.research-programs .research-details.has-bg .detail-box:first-child::before { background: #ff5a72; }
#mechanisms .research-details.has-bg::before { background: url("../images/research/omics-heatmap.jpg") center / cover no-repeat, #fbfcfe; opacity: .9; }
#environmental-cardiology .research-details.has-bg::before {
  background: url("../images/research/exposome-human-figure.jpg") left 20% top 18% / auto 150% no-repeat,
              url("../images/research/human-exposome-wheel.jpg") right 6% center / auto 100% no-repeat, #fbfcfe;
  opacity: .9; }
#environmental-cardiology .research-details.has-bg::before {
  background: url("../images/research/exposome-human-figure.jpg") left 20% top 18% / auto 150% no-repeat,
              url("../images/research/exposome-wheel-hub.jpg") right 5% center / auto 108% no-repeat, #fbfcfe;
  opacity: .95; }
/* More see-through navy boxes; text kept legible with a subtle dark halo */
.research-programs .research-details.has-bg .detail-box { background: rgba(8, 32, 78, .58); backdrop-filter: blur(1.5px) saturate(1.2); -webkit-backdrop-filter: blur(1.5px) saturate(1.2); }
.research-programs .research-details.has-bg .question-list li,
.research-programs .research-details.has-bg .question-list strong,
.research-programs .research-details.has-bg .detail-box h3 { text-shadow: 0 1px 2px rgba(3,12,30,.85), 0 0 8px rgba(3,12,30,.55); }
.research-programs .research-details.has-bg .question-list li { color: rgba(255,255,255,.95); }
/* Research: magnify Themes / Methods boxes on hover or keyboard focus */
.research-programs .detail-box,
.research-programs .research-methods .method { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background-color .25s ease; transform-origin: center; will-change: transform; }
.research-programs .detail-box:hover,
.research-programs .detail-box:focus-within,
.research-programs .research-methods .method:hover { transform: scale(1.06); z-index: 3; }
.research-programs .research-details.has-bg .detail-box:hover { background: rgba(8, 32, 78, .78); }
.research-programs .research-details { position: relative; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .research-programs .detail-box:hover, .research-programs .research-methods .method:hover { transform: none; }
}
.research-programs .detail-box:hover,
.research-programs .detail-box:focus-within,
.research-programs .research-methods .method:hover { transform: scale(1.12); box-shadow: 0 24px 50px -18px rgba(4,12,28,.65); }
.research-programs .research-details.has-bg .detail-box:hover { background: rgba(8, 32, 78, .86); }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .research-programs .detail-box:hover, .research-programs .detail-box:focus-within, .research-programs .research-methods .method:hover { transform: none; }
}
/* News page: compact */
.news-catalogue-section { padding: 20px 0 28px; }
.news-catalogue-section .filter-panel { padding: 12px 16px; gap: 12px; margin-bottom: 10px; }
.news-catalogue-section .filter-chips { margin: 8px 0 6px; gap: 6px; }
.news-catalogue-section .filter-chip { padding: 5px 12px; font-size: .8rem; }
.news-catalogue-section .results-line { margin: 4px 0 10px; font-size: .78rem; }
.news-catalogue-section .media-catalogue { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.news-catalogue-section .news-card { padding: 14px 16px; border-radius: 12px; }
.news-catalogue-section .news-card h3 { font-size: 1rem; line-height: 1.3; margin: 6px 0 6px; }
.news-catalogue-section .news-card p { font-size: .82rem; line-height: 1.45; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-catalogue-section .news-card time { font-size: .7rem; }
.news-catalogue-section .news-card .source { padding-top: 6px; font-size: .76rem; }
.news-catalogue-section .news-card [class*="featuring"], .news-catalogue-section .news-card .media-people { font-size: .76rem; margin-top: 4px; }
.news-policy { padding: 24px 0 28px; }
.news-policy .eyebrow { margin-bottom: 6px; }
.news-policy h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.news-policy .lede { font-size: .92rem; margin-top: 6px; max-width: 900px; }
@media (max-width: 1120px) { .news-catalogue-section .media-catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .news-catalogue-section .media-catalogue { grid-template-columns: 1fr; } }
.news-catalogue-section .news-card p { padding: 0; margin: 0 0 8px; max-height: calc(1.45em * 4); }
.news-catalogue-section { padding-top: 14px; }
.team-grid-compact { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.team-grid-compact .person-body { padding: 7px 8px 9px; }
.team-grid-compact .person-body h3 { font-size: .74rem; }
.team-grid-compact .person-role { font-size: .56rem; letter-spacing: .03em; }
@media (max-width: 1120px) { .team-grid-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) { .team-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Publications page: compact */
.pubs-hero h1 sup { font-size: .55em; vertical-align: super; margin-left: 2px; }
.pubs-hero h1 sup a { color: var(--accent); text-decoration: none; }
.pubs-section { padding: 14px 0 24px; }
.pubs-section .filter-panel { padding: 12px 16px; gap: 12px; margin-bottom: 10px; }
.pubs-section .filter-chips { margin: 8px 0 6px; gap: 6px; }
.pubs-section .filter-chip { padding: 5px 12px; font-size: .8rem; }
.pubs-section .results-line { margin: 4px 0 8px; font-size: .78rem; }
.pubs-section .publication-list { gap: 6px; }
.pubs-section .publication-card { grid-template-columns: 56px 1fr auto; gap: 14px; padding: 10px 16px; border-radius: 10px; align-items: center; }
.pubs-section .pub-year { font-size: 1.05rem; padding-top: 0; }
.pubs-section .pub-content h3 { font-size: .95rem; line-height: 1.3; }
.pubs-section .pub-authors { margin-top: 3px; font-size: .78rem; -webkit-line-clamp: 1; }
.pubs-section .pub-meta { margin-top: 2px; font-size: .74rem; }
.pubs-section .pub-tags { margin-top: 5px; gap: 4px; }
.pubs-section .pub-tag { padding: 2px 8px; font-size: .64rem; }
.pubs-section .pub-arrow { width: 32px; height: 32px; }
.catalogue-note { margin: 14px 0 0; font-size: .74rem; line-height: 1.5; color: var(--muted); max-width: 960px; }
.pubs-updates { padding: 22px 0 26px; }
.pubs-updates .eyebrow { margin-bottom: 6px; }
.pubs-updates h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.pubs-updates .lede { font-size: .88rem; margin-top: 6px; max-width: 960px; }
.pubs-updates .check-list { margin-top: 10px; font-size: .84rem; columns: 2; column-gap: 32px; }
.pubs-updates .check-list li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 760px) { .pubs-updates .check-list { columns: 1; } .pubs-section .publication-card { grid-template-columns: 1fr; gap: 4px; } }
.pubs-section .filter-panel, .news-catalogue-section .filter-panel { margin-top: 0; }
.pubs-section .filter-panel input, .pubs-section .filter-panel select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.pubs-section .publication-card { padding: 9px 14px; }
.pubs-section .pub-tags { display: none; }
.footer-grid { grid-template-columns: 1.3fr .6fr 1.3fr .7fr; }
/* Locations (People page) */
.locations-section { padding: 4px 0 28px; }
.locations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.locations-grid .contact-card { margin-top: 0; padding: 16px 18px; border-radius: 12px; }
.locations-grid .contact-card strong { font-size: .95rem; }
.locations-grid .contact-card strong a { color: var(--primary-deep); font-size: inherit; }
.locations-grid .contact-card p { font-size: .86rem; line-height: 1.5; margin: 0; }
.contact-form-only { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 760px) { .locations-grid { grid-template-columns: 1fr; } }
.contact-section { padding: 24px 0 36px; }
.contact-form-only { max-width: none; }
.contact-section h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 14px; }
.contact-section .eyebrow { margin-bottom: 6px; }
.contact-section .contact-form { gap: 12px; }
.contact-section .contact-form textarea { min-height: 120px; }
/* Locations: navy cards, white text, icons, hover magnify */
.locations-grid .loc-card {
  position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start;
  background: linear-gradient(135deg, #0d3a75 0%, #08204e 100%); color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 8px 8px 0 #d9e3f2, 0 12px 26px -14px rgba(11,58,110,.45);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.locations-grid .loc-card > strong, .locations-grid .loc-card > p { grid-column: 2; }
.locations-grid .loc-card .loc-icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.locations-grid .loc-card .loc-icon svg { width: 24px; height: 24px; fill: none; stroke: #9fc4ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.locations-grid .loc-card strong, .locations-grid .loc-card strong a { color: #fff; }
.locations-grid .loc-card strong a:hover { color: #9fc4ff; }
.locations-grid .loc-card p { color: rgba(255,255,255,.85); }
.locations-grid .loc-card:hover, .locations-grid .loc-card:focus-within { transform: scale(1.08); z-index: 2; box-shadow: 0 24px 50px -18px rgba(4,12,28,.6); }
@media (hover: none), (prefers-reduced-motion: reduce) { .locations-grid .loc-card:hover, .locations-grid .loc-card:focus-within { transform: none; } }
.footer-grid { grid-template-columns: 1.3fr .6fr 1.4fr; }
.team-grid-compact { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.team-grid-compact .person-body h3 { font-size: .7rem; } .team-grid-compact .person-role { font-size: .52rem; }
@media (max-width: 1280px) { .team-grid-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); } .team-grid-compact .person-body h3 { font-size: .8rem; } .team-grid-compact .person-role { font-size: .6rem; } }
@media (max-width: 760px) { .team-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-grid-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.team-grid-compact .person-photo, .team-grid-compact .person-placeholder { aspect-ratio: 4 / 3; }
.team-grid-compact .person-body h3 { font-size: .84rem; } .team-grid-compact .person-role { font-size: .62rem; }
@media (max-width: 760px) { .team-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-grid-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .team-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================== Discussion ===================== */
.account-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--tint); font-size: .95rem; color: var(--ink-soft); }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.account-links a, .link-button { color: var(--primary); font-weight: 600; text-decoration: none; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link-button:hover, .account-links a:hover { text-decoration: underline; }
.account-links a.btn-primary { color: var(--white); }
.account-links a.btn-primary:hover { text-decoration: none; }
.link-button.danger, .btn.danger { color: var(--accent); }
.btn.danger { border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; }

.discussion-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.discussion-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; background: var(--white); }
.side-card h2, .side-card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.side-card p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 14px; }

.post-list { display: grid; gap: 22px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); box-shadow: var(--shadow-sm); }
.post-card.compact { padding: 20px 22px; box-shadow: none; }
.post-card.done { opacity: .55; }
.post-head { margin-bottom: 14px; }
.post-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; margin: 0 0 6px; color: var(--primary-deep); }
.post-card.compact .post-title { font-size: 1.15rem; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-meta { font-size: .88rem; color: var(--muted); }
.post-body { color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 12px; }
.post-body a { color: var(--primary); }
.post-gallery { display: grid; gap: 8px; margin: 16px 0 4px; grid-template-columns: repeat(2, 1fr); }
.post-gallery.count-1 { grid-template-columns: 1fr; }
.post-gallery img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.post-gallery.count-1 img { max-height: 560px; object-fit: contain; background: var(--grey); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; }
.share-row span { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.share-row a, .share-row .link-button { color: var(--primary); font-weight: 600; font-size: .88rem; }
.review-note { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--accent); background: #fff5f6; border-radius: 6px; font-size: .93rem; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.badge-pending { background: #fff4d6; color: #7a5300; }
.badge-approved { background: #e1f4e8; color: #19603a; }
.badge-rejected { background: #fde4e7; color: var(--accent-deep); }
.badge-admin { background: var(--primary); color: white; }

.notice { margin: 14px 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid var(--line); background: var(--grey); }
.notice-success { background: #e9f7ef; border-color: #b7e0c6; color: #17532f; }
.notice-error { background: #fdecee; border-color: #f4b6be; color: var(--accent-deep); }
.notice-warn { background: #fff8e6; border-color: #f1d78c; color: #6b4d00; }

.auth-card { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: white; box-shadow: var(--shadow-sm); }
.tab-row { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.stack-form { display: grid; gap: 16px; }
.stack-form textarea { min-height: 200px; resize: vertical; }
.privacy-box { font-size: .88rem; color: var(--ink-soft); background: var(--grey); border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.55; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check-line input { margin-top: 4px; }

.image-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.image-preview figure { position: relative; margin: 0; width: 110px; height: 110px; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.image-preview button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--navy); color: white; font-size: 1rem; line-height: 1; cursor: pointer; }
.platforms { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.platforms legend { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 6px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: inherit; }
.social-links a:hover { background: rgba(255,255,255,.12); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .social-links { margin-top: 22px; }
.share-kit { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.share-kit p { margin: 0 0 12px; font-size: .9rem; color: var(--ink-soft); }
.share-kit .btn-row { flex-wrap: wrap; }
.share-kit .notice { margin-top: 10px; }
.side-card .social-links { margin: 0 0 16px; }
.side-card .social-links a { border-color: var(--line); color: var(--navy); }
.side-card .social-links a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.substack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.substack-list a { font-weight: 600; color: var(--navy); }
.substack-list time { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.substack-list p { margin: 4px 0 0; font-size: .88rem; }

@media (max-width: 900px) {
  .discussion-layout { grid-template-columns: 1fr; }
  .discussion-side { position: static; }
}
@media (max-width: 760px) {
  .post-card { padding: 20px; }
  .auth-card { padding: 22px; }
  .admin-table thead { display: none; }
  .admin-table tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .admin-table td { border: 0; padding: 3px 0; }
}
