/* =============================================================
   Deasy Laboratory for Computational Medical Physics and Mathematical Oncology — stylesheet
   Built on the MSK Predictive Informatics component system.
   Re-brand the whole site by editing the tokens in :root.
   Identity: indigo primary + cyan accent (distinct from the
   SPI navy+teal, same family).
   ============================================================= */

:root {
  /* token NAMES kept from the SPI system so components need no edits;
     VALUES shifted to an indigo/cyan identity for the Deasy Lab. */
  --blue-900: #1a1650;   /* darkest — hero/footer base */
  --blue-800: #272264;
  --blue-700: #3730a3;   /* primary (indigo-800) */
  --blue-600: #4338ca;
  --blue-500: #6366f1;
  --accent:   #06b6d4;   /* cyan-500 */
  --accent-600: #0891b2;

  --ink:    #14152b;
  --body:   #3d4358;
  --muted:  #6b7186;
  --line:   #e6e7f2;
  --bg:     #ffffff;
  --tint:   #f4f5fc;
  --tint-2: #ecebfb;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26,22,80,.06), 0 2px 8px rgba(26,22,80,.05);
  --shadow:    0 6px 24px rgba(26,22,80,.10);
  --shadow-lg: 0 18px 50px rgba(26,22,80,.18);

  --container: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-700), var(--accent));
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 16px; color: var(--ink); }
.brand__text small { font-size: 10.5px; line-height: 1.2; white-space: nowrap; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.brand__logo { height: 46px; width: auto; display: block; }
.footer__logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 10px 13px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.footer__logo img { height: 92px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  color: var(--body); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav__links a:hover { background: var(--tint-2); color: var(--blue-700); text-decoration: none; }
.nav__links a.is-active { color: var(--blue-700); font-weight: 600; background: var(--tint-2); }
.nav__cta { background: var(--blue-700) !important; color: #fff !important; font-weight: 600; }
.nav__cta:hover { background: var(--blue-800) !important; }
.nav__cta.is-active { color:#fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.nav__mobile a { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.nav__mobile a:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .12s ease, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-800); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); background: var(--tint); }
.btn--ondark { background: rgba(255,255,255,.10); color:#fff; border-color: rgba(255,255,255,.28); }
.btn--ondark:hover { background: rgba(255,255,255,.18); }

/* ---------- hero (split: text + media) ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue-900); color: #fff; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(6,182,212,.28), transparent 60%),
    radial-gradient(900px 520px at 8% 115%, rgba(99,102,241,.45), transparent 55%),
    linear-gradient(160deg, #1a1650 0%, #272264 55%, #1a1650 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.20) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
          mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.hero__inner { position: relative; padding: 84px 24px 76px; }
.hero--split .hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--accent-600); margin-bottom: 14px; }
.hero .eyebrow { color: #7fe9f2; }
.hero__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.03; color: #fff; letter-spacing: -.01em; }
.hero__title .grad { background: linear-gradient(100deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Long lab name (Oct 2026): a lighter lead-in line, then the name as a three-line gradient stack.
   4.25vw tracks the hero text column so the longest line ("Mathematical Oncology") never wraps. */
.hero__title--long { font-size: clamp(28px, 4.25vw, 48px); line-height: 1.08; }
.hero__title--long .hero__title-pre { display: block; font-size: .66em; font-weight: 500; color: #e2e5fb; letter-spacing: 0; line-height: 1.15; margin-bottom: .32em; }
.hero__title--long .grad { display: block; }
.hero__lead { margin-top: 22px; max-width: 620px; font-size: 19px; color: #d9dcf2; }
.hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 760px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; }
.stat__num { display: block; font-family: var(--font-serif); font-size: 38px; font-weight: 600; color: #fff; line-height: 1; }
.stat__label { font-size: 13px; color: #b7bfe0; letter-spacing: .02em; }

/* video card in hero */
.hero__media { position: relative; }
.videocard {
  background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.5);
}
.videocard video, .videocard img { width: 100%; border-radius: 10px; display: block; background: #f3f3f3; }
.videocard__cap { padding: 12px 8px 6px; }
.videocard__cap strong { display:block; font-size: 13.5px; color: var(--ink); }
.videocard__cap span { font-size: 12.5px; color: var(--muted); }
.videocard__cap a { font-size: 12.5px; }

/* ---------- interior page hero ---------- */
.pagehero { position: relative; overflow: hidden; background: var(--blue-900); color:#fff; }
.pagehero .hero__bg { position:absolute; inset:0; }
.pagehero__inner { position: relative; padding: 66px 24px 56px; max-width: 820px; }
.pagehero h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); color:#fff; letter-spacing: -.01em; }
.pagehero p { margin-top: 16px; font-size: 18.5px; color:#d9dcf2; }

/* ---------- sections ---------- */
.section { padding: 82px 0; }
.section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 56px 0; }
.section__head { max-width: 780px; margin-bottom: 42px; }
.section__head h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.01em; }
.section__lead { margin-top: 14px; font-size: 18px; color: var(--body); }
.section__lead em { color: var(--muted); font-style: italic; }
.section__more { margin-top: 30px; }

/* ---------- prose ---------- */
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; font-size: 17.5px; color: var(--body); }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose a { font-weight: 500; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4d3f5; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--tint-2); color: var(--blue-700); font-size: 20px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--body); font-size: 15.5px; }

/* ---------- research programs (numbered) ---------- */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.program {
  position: relative; background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
  overflow:hidden;
}
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color:#d4d3f5; }
.program__num { font-family: var(--font-serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--tint-2);
  position:absolute; top: 18px; right: 22px; }
.program[data-accent] .program__num { color: var(--tint-2); }
.program__kicker { text-transform: uppercase; letter-spacing:.08em; font-size: 11.5px; font-weight:700; color: var(--accent-600); }
.program h3 { font-size: 21px; margin: 8px 0 6px; max-width: 90%; }
.program__tag { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 12px; }
.program p { font-size: 15.5px; color: var(--body); }
.program__tools { margin-top: 14px; display:flex; flex-wrap:wrap; gap:7px; }
.tooltag { font-size:12px; font-weight:600; color: var(--blue-700); background: var(--tint-2); padding: 4px 10px; border-radius:999px; }

/* ---------- featured blocks ---------- */
.feature { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:center; }
.feature + .feature { margin-top: 40px; }
.feature__media {
  border-radius: var(--radius); background: linear-gradient(150deg, var(--blue-700), var(--accent));
  min-height: 260px; box-shadow: var(--shadow); display:grid; place-items:center; color:#fff; padding: 28px; text-align:center;
  background-size: cover; background-position:center;
}
.feature__media .feature__glyph { font-family: var(--font-serif); font-size: 26px; font-weight:600; line-height:1.25; }
.feature__badge { display:inline-block; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color: var(--accent-600); background: rgba(6,182,212,.10); padding:4px 11px; border-radius:999px; margin-bottom:12px; }
.feature h3 { font-family: var(--font-serif); font-weight:600; font-size: 26px; margin-bottom: 12px; letter-spacing:-.01em; }
.feature p { font-size: 16.5px; color: var(--body); margin-bottom: 14px; }
.feature .ref { font-size: 14px; color: var(--muted); }
.feature--flip .feature__media { order: 2; }

/* ---------- highlights ---------- */
.highlight { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.highlight__tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-600); background: rgba(6,182,212,.10); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.highlight h3 { font-size: 18px; margin-bottom: 8px; }
.highlight p { font-size: 15.5px; }
.highlight__venue { display:block; margin-top:10px; font-size:13.5px; color:var(--muted); font-style:italic; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; margin-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue-500), var(--accent)); }
.tl { position: relative; padding: 0 0 30px 38px; }
.tl:last-child { padding-bottom: 0; }
.tl__dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-600); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-600); }
.tl[data-type="software"] .tl__dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl[data-type="grant"] .tl__dot { background: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }
.tl[data-type="talk"] .tl__dot { background: #8b5cf6; box-shadow: 0 0 0 2px #8b5cf6; }
.tl__date { font-weight: 700; color: var(--ink); font-size: 14px; margin-right: 10px; }
.tl__kind { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.tl__body h3 { font-size: 18px; margin: 6px 0 4px; }
.tl__body p { font-size: 15px; color: var(--body); }

/* ---------- publications ---------- */
.pub-controls { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.search { position: relative; display: flex; align-items: center; }
.search__icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; font: inherit; font-size: 16.5px; color: var(--ink);
  padding: 15px 44px 15px 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--tint);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.search__clear { position: absolute; right: 12px; border: 0; background: #e2e2f0; color: var(--ink); width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.search__clear:hover { background: #cfcfe6; }

.pub-controls__row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.select { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.select select { font: inherit; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; min-width: 150px; }
.select select:focus { outline: none; border-color: var(--blue-500); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; color: var(--blue-700); background: #fff; border: 1.5px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--blue-500); background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

.pub-meta { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 16px; font-size: 14.5px; color: var(--muted); }
.linkbtn { border: 0; background: none; color: var(--blue-600); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

.pub-list { display: grid; gap: 16px; }
.paper {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
}
.paper:hover { box-shadow: var(--shadow); border-color: #d4d3f5; }
.paper__top { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; }
.paper__year { flex-shrink: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--blue-700); }
.paper__title { font-size: 19.5px; line-height: 1.25; margin-bottom: 6px; }
.paper__title a { color: var(--ink); text-decoration: none; }
.paper__title a:hover { color: var(--blue-700); text-decoration: underline; }
.paper__authors { font-size: 15px; color: var(--body); }
.paper__venue { font-size: 14.5px; color: var(--muted); font-style: italic; margin-top: 2px; }
.paper__badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.badge { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--tint-2); color: var(--blue-700); }
.badge--type { background: #eeeef6; color: var(--ink); }
.badge--sample { background: #fef3c7; color: #92660a; }

.paper__summary {
  margin-top: 16px; background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 16px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease, margin .3s ease; opacity: .0;
}
.paper.open .paper__summary { max-height: 600px; padding: 16px; opacity: 1; }
.paper__summary h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-600); margin-bottom: 6px; }
.paper__summary p { font-size: 15.5px; color: var(--body); }

.paper__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--blue-700); transition: .15s; }
.pill:hover { border-color: var(--blue-500); background: var(--tint); text-decoration: none; }
.pill--download { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.pill--download:hover { background: var(--blue-800); color: #fff; }
.pill--toggle { margin-left: auto; }
.pill svg { width: 16px; height: 16px; }

.pub-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.pub-empty p { margin-bottom: 16px; font-size: 17px; }

/* ---------- tools ---------- */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.tool h3 { font-size: 20px; margin-bottom: 8px; }
.tool p { font-size: 15.5px; }
.tool__meta { display: flex; gap: 8px; margin: 14px 0; flex-wrap:wrap; }
.tool__meta span { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--tint-2); padding: 4px 10px; border-radius: 999px; }
.linkout { font-weight: 600; font-size: 15px; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.people--lead { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
.person { text-align: center; }
.person__avatar {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius); margin-bottom: 14px;
  background: linear-gradient(150deg, var(--blue-600), var(--accent));
  display: grid; place-items: center; position: relative; box-shadow: var(--shadow-sm);
  background-size: cover; background-position: center;
}
.person__avatar::after { content: attr(data-initials); color: #fff; font-family: var(--font-serif); font-size: 34px; font-weight: 600; }
.person__avatar[style*="--img"]::after { content: ""; }
.person figcaption strong { display: block; font-size: 16.5px; color: var(--ink); }
.person figcaption span { font-size: 14px; color: var(--muted); }
.person figcaption em { display:block; font-size:12.5px; color: var(--muted); font-style:italic; margin-top:2px; }

/* ---------- team group photo ---------- */
.teamphoto { margin: 0; }
.teamphoto img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.teamphoto figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.teamphoto figcaption span { color: var(--muted); font-weight: 400; font-style: italic; }

/* ---------- team photo name labels ---------- */
.teamphoto__frame { position: relative; container-type: inline-size; }
.teamphoto__labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.teamphoto__label {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.94); color: var(--ink); border: 1px solid rgba(255,255,255,.9);
  border-radius: 7px; padding: 4px 9px; box-shadow: 0 2px 8px rgba(15,23,42,.28);
  font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; backdrop-filter: blur(2px);
}
.teamphoto__label strong { display: block; font-weight: 600; }
.teamphoto__label span { display: block; font-size: .85em; color: var(--muted); }
@container (min-width: 0px) { .teamphoto__label { font-size: clamp(8.5px, 1.15cqw, 13px); padding: .3em .7em; border-radius: .55em; } }
.teamphoto .teamphoto__cap { margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 400; line-height: 1.5; }
@media (max-width: 640px) {
  .teamphoto__labels { display: none; }
}
@media (min-width: 641px) {
  .teamphoto__cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .teamphoto { position: relative; }
}


/* ---------- grants ---------- */
.grants { display: grid; gap: 14px; }
.grant { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm); }
.grant__years { flex-shrink: 0; font-family: var(--font-serif); font-weight: 600; color: var(--blue-700); font-size: 16px; min-width: 110px; }
.grant h3 { font-size: 17px; margin-bottom: 4px; }
.grant p { font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { position:relative; overflow:hidden; background: var(--blue-900); color:#fff; border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow); }
.cta .hero__bg { position:absolute; inset:0; }
.cta__inner { position:relative; max-width: 760px; }
.cta h2 { font-family: var(--font-serif); font-weight:600; color:#fff; font-size: clamp(24px,3.2vw,32px); }
.cta p { margin-top: 12px; color:#d9dcf2; font-size: 17px; }
.cta .hero__actions { margin-top: 24px; }

/* ---------- editor note (placeholder flag) ---------- */
.note { border:1px dashed #c9b48a; background:#fffbef; color:#7a5c17; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 13.5px; margin-top: 16px; }
.note strong { color:#7a5c17; }

/* ---------- footer ---------- */
.footer { background: var(--blue-900); color: #cdcfe8; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 56px 24px 36px; }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; max-width: 540px; }
.footer__brand strong { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; }
.footer__brand p { font-size: 14.5px; line-height: 1.6; }
.footer__links h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer__links p { font-size: 15px; margin-bottom: 6px; }
.footer a { color: #8ad9ff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bar .container { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; font-size: 13.5px; color: #9fa3c8; }

/* ---------- PI titles ---------- */
.pi { margin: -10px 0 26px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm); max-width: 760px; }
.pi__titles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.pi__titles li { font-size: 15.5px; color: var(--ink); font-weight: 500; padding-left: 16px; position: relative; }
.pi__titles li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pi__contact { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.pi__contact a { font-weight: 600; }

/* ---------- tools for cancer research ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.toolcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s; }
.toolcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4d3f5; }
.toolcard__media { display: block; aspect-ratio: 16 / 10; background: var(--blue-900); }
.toolcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toolcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.toolcard h3 { font-size: 20px; }
.toolcard p { font-size: 15px; color: var(--body); }
.toolcard p.ref { font-size: 13px; color: var(--muted); }
.toolcard code { font-size: 13px; background: var(--tint-2); padding: 1px 6px; border-radius: 6px; color: var(--blue-700); }
.toolcard .tool__meta { margin: 2px 0 0; }
.toolcard__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; }
.toolcard__badge { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #92660a; background: #fef3c7; padding: 4px 10px; border-radius: 999px; }
.toolcard--featured { grid-column: 1 / -1; flex-direction: row; border-color: #c7d2fe; box-shadow: var(--shadow); }
.toolcard--featured .toolcard__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 300px; }
.toolcard--featured .toolcard__media img { object-fit: contain; }
.toolcard--featured .toolcard__body { padding: 30px 34px; justify-content: center; }
.toolcard--featured h3 { font-family: var(--font-serif); font-weight: 600; font-size: 30px; letter-spacing: -.01em; }
.toolcard--featured p { font-size: 16.5px; }
.toolcard .note { font-size: 13.5px; padding: 10px 12px; }

/* ---------- ROBIN talks ---------- */
.talks__head { margin: 40px 0 16px; max-width: 820px; }
.talks__head h3 { font-size: 22px; margin-bottom: 8px; }
.talks__head p { font-size: 15.5px; color: var(--body); }
.talks { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.talks summary { display: flex; align-items: center; gap: 16px; padding: 16px 22px; cursor: pointer; list-style: none; }
.talks summary::-webkit-details-marker { display: none; }
.talks summary::before { content: "▸"; color: var(--blue-600); font-size: 14px; transition: transform .2s; }
.talks[open] summary::before { transform: rotate(90deg); }
.talks__year { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--blue-700); }
.talks__n { font-size: 13px; color: var(--muted); }
.talks__link { margin-left: auto; font-size: 14px; font-weight: 600; }
.talklist { list-style: none; padding: 0 22px 12px; margin: 0; }
.talklist li { display: grid; grid-template-columns: 70px 200px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.talk__date { color: var(--muted); font-weight: 600; }
.talk__who { color: var(--ink); font-weight: 600; }
.talk__title { color: var(--body); }

/* ---------- funding & disclosure ---------- */
.grants__group { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-600); margin: 26px 0 12px; }
.grants__group:first-of-type { margin-top: 0; }
.grant h3 .grant__status { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #eeeef6; padding: 2px 8px; border-radius: 999px; }
.grant h3 .grant__status--active { color: #065f46; background: #d1fae5; }
.grants__note { margin-top: 22px; font-size: 14.5px; color: var(--muted); max-width: 820px; }
.disclosure { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-600); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm); max-width: 820px; }
.disclosure h3 { font-size: 16px; margin-bottom: 8px; }
.disclosure p { font-size: 15.5px; color: var(--body); }
.disclosure__date { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.disclosure .linkout { display: inline-block; margin-top: 10px; }
.section__more .btn + .btn { margin-left: 10px; }

/* ---------- mentee news ---------- */
  .pagehero .pagehero__preamble { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: #fff; margin-top: 18px; max-width: 760px; }
  .pagehero .pagehero__byline { margin-top: 8px; font-size: 15px; color: #b7bfe0; letter-spacing: .02em; }
  .pagehero .pagehero__sub { margin-top: 18px; font-size: 16.5px; color: #d9dcf2; max-width: 720px; }
.news-list { display: grid; gap: 16px; }
.news { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm); transition: .2s; }
.news:hover { box-shadow: var(--shadow); border-color: #d4d3f5; border-left-color: var(--accent); }
.news--paper { border-left-color: var(--blue-600); }
.news--media { border-left-color: var(--accent); }
.news--award { border-left-color: #f59e0b; }
.news__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.news__type { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue-700); background: var(--tint-2); padding: 4px 10px; border-radius: 999px; }
.news--media .news__type { color: var(--accent-600); background: rgba(6,182,212,.10); }
.news--award .news__type { color: #92660a; background: #fef3c7; }
.news__date { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.news__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; margin-bottom: 6px; }
.news__who strong { color: var(--ink); font-size: 16px; }
.news__inst { color: var(--muted); }
.news__verify { font-size: 11px; padding: 2px 8px; }
.news__title { font-size: 19.5px; line-height: 1.28; margin-bottom: 6px; }
.news__title a { color: var(--ink); }
.news__title a:hover { color: var(--blue-700); }
.news__meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.news__summary { font-size: 15.5px; color: var(--body); }
.news__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.news__figs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.news__fig { margin: 0; flex: 1 1 240px; max-width: 420px; }
.news__fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.news__fig a:hover img { box-shadow: var(--shadow-sm); }
.news__fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.news--compact .news__figs { margin-top: 10px; }
.news--compact .news__fig { flex: 0 1 200px; }
.news__source { font-size: 12.5px; color: var(--muted); }
.news__updated { color: var(--muted); }
.news__how { margin-top: 34px; font-size: 14.5px; color: var(--muted); max-width: 820px; }
.news__how strong { color: var(--ink); }
/* compact teaser cards on the home page */
.cards .news--compact { padding: 20px 22px; }
.news--compact .news__title { font-size: 17px; }
.news--compact .news__summary { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news--compact .news__meta, .news--compact .news__source, .news--compact .news__actions .pill + .pill { display: none; }
.news--compact .news__actions { margin-top: 12px; }
.news--compact .pill { padding: 7px 13px; font-size: 13px; }
/* mentee directory */
.dir__group { font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-600); margin: 30px 0 12px; }
.dir__group:first-child { margin-top: 0; }
.dir { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.dir__row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px 24px; padding: 14px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.dir__row:last-child { border-bottom: 0; }
.dir__name { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; }
.dir__name--link { color: var(--blue-700); cursor: pointer; }
.dir__name--link:hover { text-decoration: underline; }
.dir__then { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.dir__now { font-size: 14.5px; color: var(--body); }
.dir__unknown { color: var(--muted); font-style: italic; }
.dir__src { font-size: 12px; color: var(--muted); margin-left: 6px; }
.dir__now .badge { font-size: 11px; padding: 2px 8px; vertical-align: middle; }
/* home-page banner */
.newsbanner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(100deg, var(--tint-2), rgba(6,182,212,.10)); border: 1px solid #d4d3f5; border-radius: var(--radius); padding: 22px 28px; margin-bottom: 34px; }
.newsbanner__text { display: flex; align-items: center; gap: 16px; }
.newsbanner__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(6,182,212,.18); flex-shrink: 0; }
.newsbanner strong { color: var(--ink); font-size: 17px; display: block; }
.newsbanner span.sub { color: var(--muted); font-size: 14.5px; }

/* ---------- news hub (home: Lab News beside Mentee News) ---------- */
.newshub { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 20px 28px; align-items: start; }
.newscol { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; row-gap: 20px; }
.newsbanner--col { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 0; }
.newsbanner--col .newsbanner__text { align-items: flex-start; }
.newsbanner--col .newsbanner__dot { margin-top: 6px; }
.newscol--lab .newsbanner { background: linear-gradient(100deg, var(--tint-2), rgba(55,48,163,.10)); border-color: #c7c5f0; }
.newscol--lab .newsbanner__dot { background: var(--blue-600); box-shadow: 0 0 0 5px rgba(55,48,163,.16); }
.newscol--mentee .newsbanner { background: linear-gradient(100deg, rgba(6,182,212,.08), rgba(6,182,212,.16)); border-color: #b9e8f0; }
.cards--stack { grid-template-columns: 1fr; gap: 16px; }

/* ---------- lab news: people line + member strip ---------- */
.news__who--lab { gap: 6px 8px; font-size: 14.5px; }
.news__wholabel { color: var(--muted); font-weight: 500; }
.news__person { display: inline-flex; align-items: baseline; gap: 6px; }
.news__person strong { font-size: 15px; }
.news__person--pi strong { color: var(--blue-700); }
.news__role { color: var(--muted); font-size: 13px; }
.news__sep { color: #c4c2e8; }
.news--compact .news__who--lab { font-size: 13.5px; }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.member { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); font: inherit; color: inherit; cursor: pointer; transition: .2s; }
.member:hover { border-color: #c7c5f0; box-shadow: var(--shadow); }
.member.is-active { border-color: var(--blue-600); background: var(--tint-2); }
.member--none { cursor: default; opacity: .75; }
.member--none:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }
.member--pi { border-left: 4px solid var(--blue-600); }
.member__name { font-weight: 600; color: var(--ink); }
.member__role { font-size: 13.5px; color: var(--muted); }
.member__count { font-size: 12.5px; font-weight: 600; color: var(--blue-700); background: var(--tint-2); padding: 3px 9px; border-radius: 999px; margin-top: 4px; }
.member--none .member__count { color: var(--muted); background: #f1f1f6; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { max-width: 520px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .newshub { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .toolcard--featured { flex-direction: column; }
  .toolcard--featured .toolcard__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .programs { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .people--lead { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature--flip .feature__media { order: 0; }
}
/* Header with the long lab name: subtitle hidden and links tightened between 841 and 1045 px;
   hamburger menu from 840 px (the link row no longer fits beside the brand below that). */
@media (max-width: 1045px) {
  .brand__text small { display: none; }
  .nav__links { gap: 4px; }
  .nav__links a { font-size: 14px; padding: 8px 9px; }
}
@media (max-width: 840px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile:not([hidden]) { display: flex; }
  .brand__text small { display: block; }
}
@media (max-width: 400px) {
  .brand__text small { font-size: 9.5px; letter-spacing: .03em; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand__logo { height: 38px; }
  .footer__logo img { height: 68px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile:not([hidden]) { display: flex; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 60px 24px 52px; }
  .cards--2, .cards--3, .tools, .members { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .paper__top { flex-direction: column-reverse; align-items: flex-start; }
  .pill--toggle { margin-left: 0; }
  .grant { flex-direction: column; gap: 6px; }
  .pi__titles { grid-template-columns: 1fr; }
  .talklist li { grid-template-columns: 1fr; gap: 2px; }
  .talks summary { flex-wrap: wrap; }
  .dir__row { grid-template-columns: 1fr; gap: 4px; }
  .news { padding: 18px 18px 18px 20px; }
  .cta { padding: 32px 24px; }
  .footer__bar .container { flex-direction: column; gap: 8px; }
}

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