/* ==========================================================
   Anand Lab website — shared styles for every page
   Colours: change them here and every page updates.
   ========================================================== */
:root {
  --navy: #002147;
  --navy-deep: #00172F;
  --navy-mid: #0E2B50;
  --gold: #E0B83A;        /* on navy backgrounds */
  --gold-text: #8A6A0E;   /* gold for text on white (passes contrast) */
  --gold-line: #C9A227;
  --ink: #0B1B33;
  --body: #3E4C61;
  --muted: #5A6880;
  --line: #D6DEE8;
  --tint: #F4F6F9;
  --chip: #EEF2F7;
  --on-navy: #D9E1EC;
  --on-navy-muted: #B9C6D8;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--navy); text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: var(--navy); padding: 8px 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.section.tint { background: var(--tint); border-top: 1px solid #E1E7EE; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; }
h2.title { margin: 0 0 24px; font-size: clamp(28px, 3.6vw, 40px); }
.lead { font-size: 17px; color: var(--body); }
.link-strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; background: var(--gold); color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { background: #EBC75A; color: var(--navy); }
.head-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.head-row h2.title { margin: 0; }

/* ---------- Header & navigation ---------- */
.site-header { background: var(--navy); color: #fff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; text-decoration: none; }
.brand-mark { width: 10px; height: 10px; background: var(--gold); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.brand-inst { font-size: 13px; color: var(--on-navy-muted); padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); }
.brand:hover { color: #fff; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.nav ul a { display: inline-block; padding: 10px 0 8px; color: var(--on-navy); text-decoration: none; border-bottom: 2px solid transparent; }
.nav ul a:hover { color: #fff; }
.nav ul a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.nav ul a.nav-join { color: var(--gold); }

.page-intro { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 72px); }
.page-intro .eyebrow { color: var(--gold); }
.page-intro h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.06; color: #fff; max-width: 820px; }
.page-intro p { margin: 22px 0 0; max-width: 720px; font-size: clamp(17px, 1.8vw, 19px); color: var(--on-navy); }
.page-intro a { color: var(--gold); }

/* ---------- Slideshow (home) ---------- */
.slider-section { background: var(--navy-deep); padding-top: 24px; }
.hero { position: relative; width: 75%; margin: 0 auto; }
.slider { position: relative; width: 100%; aspect-ratio: 2340 / 800; min-height: 345px; max-height: 495px; overflow: hidden; background: var(--navy-mid); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-panel-wrap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.hero-panel { max-width: 405px; background: rgba(0,33,71,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-top: 3px solid var(--gold); padding: clamp(18px, 2.25vw, 30px); }
.hero-panel .eyebrow { color: var(--gold); font-size: 11px; margin-bottom: 9px; }
.hero-panel h1 { margin: 0; color: #fff; font-size: clamp(28px, 3.75vw, 45px); line-height: 1.04; }
.hero-panel .tagline { margin: 14px 0 0; font-size: clamp(14px, 1.2vw, 15px); line-height: 1.5; color: #E6ECF4; }
.hero-panel .pi { margin: 14px 0 0; font-size: 13px; color: var(--on-navy-muted); }
.hero-panel .pi strong { color: #fff; }
/* Panel shows on the first image only (laptops/desktops); fades out on the others */
.hero-panel-wrap { transition: opacity .7s ease; }
@media (min-width: 721px) {
  .hero:not(.on-first) .hero-panel-wrap { opacity: 0; pointer-events: none; }
  body.le-on .hero .hero-panel-wrap { opacity: 1; pointer-events: auto; } /* always visible while editing */
}
@media (prefers-reduced-motion: reduce) { .hero-panel-wrap { transition: none; } }
.slider-bar { width: 75%; margin: 0 auto; padding-left: 0; padding-right: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.slider-caption { margin: 0; font-size: 14px; color: var(--on-navy-muted); flex: 1 1 320px; min-width: 0; }
.slider-controls { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.icon-btn.boxed { margin-left: 8px; border: 1px solid rgba(255,255,255,.3); }
.dot { width: 28px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.dot span { width: 20px; height: 3px; background: #4E6E99; display: block; }
.dot[aria-current="true"] span { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 720px) {
  .slider-section { padding-top: 0; }
  .hero, .slider-bar { width: 100%; }
  .slider-bar { padding-left: var(--gutter); padding-right: var(--gutter); }
  .slider { aspect-ratio: 3 / 2; min-height: 0; }
  .hero-panel-wrap { position: static; transform: none; padding: 0; }
  .hero-panel-wrap .wrap { padding: 0; }
  .hero-panel { max-width: none; }
}

/* ---------- Home sections ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.theme-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.theme-links li { border-bottom: 1px solid var(--line); }
.theme-links a { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 4px 16px; padding: 22px 0; text-decoration: none; color: var(--ink); }
.theme-links .num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--gold-text); padding-top: 4px; }
.theme-links .t { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.theme-links .d { display: block; font-size: 15px; color: var(--body); }
.theme-links a:hover .t { text-decoration: underline; text-decoration-color: var(--gold-line); }

.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-grid li { border-top: 3px solid var(--navy); padding-top: 20px; }
.news-date { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.news-grid h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
.news-grid p { margin: 0; font-size: 15px; color: var(--body); }

.band { background: var(--navy); color: #fff; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band h2 { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 3vw, 34px); }
.band p { margin: 0; font-size: 17px; color: var(--on-navy); }

.funders h2 { margin: 0 0 28px; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.funder-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.funder-grid li { height: 80px; display: flex; align-items: center; justify-content: center; border: 1px dashed #B9C6D8; font-size: 12px; color: var(--muted); text-align: center; padding: 8px 12px; }
.funder-grid img { max-height: 56px; width: auto; }

/* ---------- Publications ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub-list li { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 6px 24px; padding: 26px 0; border-bottom: 1px solid #E6EBF1; }
.pub-list li[hidden] { display: none; }
.pub-year { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gold-text); line-height: 1.3; }
.pub-list h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; }
.pub-list h3 a { text-decoration: none; color: var(--navy); }
.pub-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold-line); }
.pub-authors { margin: 0 0 4px; font-size: 15px; color: var(--body); }
.pub-meta { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pub-meta em { color: var(--ink); }
.pub-meta a { overflow-wrap: anywhere; }
.pub-controls { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.search { display: flex; flex-direction: column; gap: 6px; flex: 1 1 280px; max-width: 380px; }
.search label { font-size: 13px; font-weight: 600; color: var(--body); }
.search input { min-height: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); border: 1px solid #8796AB; background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 500; background: #fff; color: var(--navy); border: 1px solid #B9C6D8; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.pub-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 8px 0; }
.pub-status p { margin: 0; font-size: 14px; color: var(--muted); }
.sort-btn { min-height: 44px; padding: 0 4px; font: inherit; font-size: 14px; font-weight: 600; background: none; border: none; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.empty { padding: 32px 0; font-size: 15px; color: var(--muted); }

/* ---------- Research ---------- */
.theme { border-bottom: 1px solid #E1E7EE; }
.theme .wrap { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.theme-text { flex: 999 1 520px; min-width: 0; }
.theme-fig { flex: 1 1 340px; min-width: 0; margin: 0; }
.theme-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--chip); }
.theme-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.theme-kicker { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.theme-kicker .num { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--gold-text); }
.theme-kicker .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.theme h2 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 38px); }
.theme p { margin: 0 0 16px; font-size: 17px; color: var(--body); }
.tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 500; color: var(--navy); background: var(--chip); padding: 4px 10px; }
details.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .less { display: none; }
details.more[open] summary .less { display: inline; }
details.more[open] summary .more-label { display: none; }
.approach-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.approach-grid li { border-top: 2px solid var(--navy); padding-top: 16px; }
.approach-grid h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 17px; }
.approach-grid p { margin: 0; font-size: 15px; color: var(--body); }

/* ---------- People ---------- */
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px 24px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #DCE3EC; margin-bottom: 16px; border-bottom: 3px solid var(--gold-line); }
.person h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 18px; line-height: 1.3; }
.person .role { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); }
.person .focus { margin: 0; font-size: 15px; color: var(--body); line-height: 1.5; }
.person a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.alumni { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.alumni li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.alumni strong { color: var(--navy); }
.alumni .r { color: var(--muted); }
.alumni .now { color: var(--body); font-size: 15px; }

/* ---------- Join us ---------- */
.positions { list-style: none; margin: 0 0 48px; padding: 0; border-top: 1px solid var(--line); }
.positions li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.positions .p-title { display: block; font-weight: 600; color: var(--navy); font-size: 17px; }
.positions .p-desc { display: block; font-size: 15px; color: var(--body); }
.positions .p-date { font-size: 14px; font-weight: 600; color: var(--gold-text); }
.contact-card { background: var(--navy); color: #fff; padding: 36px 32px; border-top: 3px solid var(--gold); align-self: flex-start; }
.contact-card h2 { margin: 0 0 24px; color: #fff; font-size: 24px; }
.contact-card dl { margin: 0 0 32px; display: flex; flex-direction: column; gap: 20px; font-size: 15px; }
.contact-card dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 4px; }
.contact-card dd { margin: 0; line-height: 1.6; }
.contact-card a { color: var(--gold); }
.contact-card a.btn { color: var(--navy); }
.map { margin-top: 64px; }
.map iframe { width: 100%; height: 340px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 48px 0 40px; border-top: 3px solid var(--gold-line); }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; justify-content: space-between; }
.footer-logo { width: 220px; height: 56px; border: 1px dashed #5A6E8C; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-logo img { max-height: 56px; width: auto; }
.site-footer p { margin: 0; font-size: 14px; line-height: 1.6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 14px; }
.site-footer ul a { color: #fff; display: inline-block; padding: 12px 0; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* logos, once added, need no placeholder frame */
.footer-logo:has(img), .funder-grid li:has(img) { border: 0; }

/* ---------- People page: culture, lead card, past members, students ---------- */
.culture-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.culture-grid > div { flex: 1 1 420px; min-width: 0; }
.culture-text { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--navy); }
.culture-photo { flex: 1 1 380px; min-width: 0; margin: 0; }
.culture-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.section-sub { margin: -12px 0 28px; font-size: 16px; color: var(--muted); }

.lead-card { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.lead-card img { flex: 0 0 auto; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: #DCE3EC; }
.lead-card > div { flex: 1 1 360px; min-width: 0; }
.lead-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); }
.lead-card .role { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); }
.lead-card .focus { margin: 12px 0 0; font-size: 17px; color: var(--body); max-width: 640px; }
.pron { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.profile-links { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.profile-links a { display: inline-flex; align-items: center; min-height: 36px; }

.past-list { list-style: none; margin: 0; padding: 0; columns: 2 340px; column-gap: 48px; border-top: 1px solid var(--line); }
.past-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--body); }
.past-list a { font-weight: 600; color: var(--navy); text-decoration: none; }
.past-list a:hover { text-decoration: underline; text-decoration-color: var(--gold-line); }

.student-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 48px; border-top: 1px solid var(--line); padding-top: 20px; }
.student-groups h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.student-groups p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--body); }

/* ---------- New three-column footer ---------- */
.footer-new { padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 48px; align-items: start; }
.footer-new .footer-name { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.footer-new p { margin: 0 0 14px; }
.footer-new p a { color: #fff; }
.footer-h { margin: 0 0 14px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-new ul.social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-new ul.social a { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(224,184,58,.6); color: #fff; text-decoration: none; transition: background .2s, color .2s; }
.footer-new ul.social a:hover { background: var(--gold); color: var(--navy); }
.mono { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.mono-serif { font-family: var(--serif); font-size: 21px; }
.footer-new ul.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-new ul.footer-links a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: none; }
.footer-new ul.footer-links a:hover { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold); }
.footer-new .footer-bottom { margin-top: 40px; }

/* People: small round photos, two members per row */
.people-grid.people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.person { display: flex; gap: 20px; align-items: flex-start; }
.person img { flex: 0 0 auto; width: 96px; height: 96px; aspect-ratio: auto; border-radius: 50%; object-fit: cover; margin: 0; border: 0; background: #DCE3EC; }
.person > div { min-width: 0; }
@media (max-width: 720px) { .people-grid.people-grid { grid-template-columns: 1fr; } .lead-card img { width: 112px; height: 112px; } }
.past-list strong { color: var(--navy); }

/* Footer logos */
.footer-new ul.social { gap: 20px; align-items: center; }
.footer-new ul.social a { width: auto; height: 44px; min-width: 44px; border: 0; padding: 0; background: none; }
.footer-new ul.social a:hover { background: none; opacity: .8; }
.footer-new ul.social img { height: 26px; width: auto; display: block; }
.logo-fallback { display: none; font-size: 14px; font-weight: 500; color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.no-logo img { display: none !important; }
.no-logo .logo-fallback { display: inline; }

/* People: each team member in a card with rounded corners */
.lead-card, .person { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.lead-card { margin-bottom: 24px; }
.people-grid.people-grid { gap: 24px; }

/* Gold line along the top of the lab head's card */
.lead-card { border-top: 5px solid var(--gold-line); }

/* Footer logos: spacing between them (make the number smaller to bring them closer) */
.footer-new ul.social { gap: 10px; }
.footer-new ul.social a { min-width: 0; }

/* Home page title panel: 10% larger */
.hero-panel { max-width: 446px; padding: clamp(20px, 2.5vw, 33px); }
.hero-panel .eyebrow { font-size: 12px; margin-bottom: 10px; }
.hero-panel h1 { font-size: clamp(31px, 4.1vw, 50px); }
.hero-panel .tagline { margin-top: 15px; font-size: clamp(15px, 1.3vw, 16.5px); }
.hero-panel .pi { margin-top: 15px; font-size: 14px; }

/* Publications: numbered list, with the year after the journal */
.pub-list > li { grid-template-columns: 40px minmax(0, 1fr); }
#pub-list { counter-reset: pub; }
#pub-list > li { counter-increment: pub; }
#pub-list > li::before { content: counter(pub) "."; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold-text); line-height: 1.35; }
.pub-list:not(#pub-list) > li { grid-template-columns: minmax(0, 1fr); }
.pub-meta .pub-year { font-family: inherit; font-size: inherit; font-weight: 400; color: var(--ink); line-height: inherit; }

/* Publications: "Full text" link with a gold arrow (opens in a new tab) */
.pub-meta a.pub-full { font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.pub-meta a.pub-full::after { content: "\2197" / ""; display: inline-block; margin-left: 4px; color: #A8841A; font-weight: 700; transition: transform .15s; }
.pub-meta a.pub-full:hover { text-decoration: underline; text-decoration-color: var(--gold-line); }
.pub-meta a.pub-full:hover::after { transform: translate(2px, -2px); }

/* Slideshow: 2.5:1 shape on laptops and larger screens (phones keep their own shape) */
@media (min-width: 721px) {
  .slider { aspect-ratio: 5 / 2; max-height: 600px; }
}

/* Lab logo in the menu and footer */
.brand-logo-full { height: 50px; width: auto; display: block; }
.footer-logo-full { height: 56px; width: auto; display: block; margin-bottom: 12px; }
@media (max-width: 720px) { .brand-logo-full { height: 36px; } }

/* Small arrow on links that open in a new tab */
a.ext::after { content: "\2197" / " (opens in a new tab)"; display: inline-block; margin-left: 3px; font-size: 0.85em; font-weight: 700; color: #A8841A; }
.page-intro a.ext::after, .site-footer a.ext::after { color: var(--gold); }

/* Name link in the home page panel */
.hero-panel .pi a { color: #fff; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.hero-panel .pi a:hover { color: var(--gold); }
.hero-panel a.ext::after { color: var(--gold); }

/* Join us: keep the date / status on the right, even with longer descriptions */
.positions li > span:first-child { flex: 1 1 320px; min-width: 0; }
.positions .p-date { flex: 0 0 auto; white-space: nowrap; }