/* PATH in Cancer Lab — site styles
   Palette: cool clinical navy. Type: Arial throughout. */

:root {
  --paper: #fafbfd;
  --surface: #ffffff;
  --ink: #172b3d;
  --ink-soft: #34495e;
  --slate: #526579;
  --navy: #2e6da4;
  --navy-deep: #1f4e79;
  --navy-tint: #e7f0f8;
  --navy-tint-2: #d4e4f4;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --logo-font: Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: Arial, Helvetica, sans-serif;

  /* Type scale: h1 uses --step-4 (once per page), h2 uses --step-3
     (section headings), h3 uses --step-1 (card/subsection titles) —
     kept consistent across every page. Hierarchy below the heading
     level is carried by font-weight (600/500/400), not by shrinking
     size or fading to gray. */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.45rem + 1.25vw, 2.25rem);
  --step-4: clamp(2.45rem, 2rem + 2.2vw, 3.35rem);

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 16px; --sp-4: 24px;
  --sp-5: 40px; --sp-6: 64px; --sp-7: 96px; --sp-8: 140px;

  --wrap: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); margin: 0; font-size: var(--step-4); }
h2 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); margin: 0; font-size: var(--step-3); }
h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); margin: 0; font-size: var(--step-1); }

p { margin: 0; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); }

img, svg { display: block; max-width: 100%; }

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

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.65; font-weight: 400; }
.muted { color: var(--slate); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: var(--sp-2) var(--sp-3);
  border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- wordmark (inline SVG, currentColor) ---------- */
.wordmark { height: 50px; width: auto; color: var(--ink); }
.wordmark .lg-route { stroke: var(--navy); }
.wordmark .lg-node { fill: var(--navy); }
.wordmark text, .wordmark rect { fill: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 253, .98);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
.brand-full { font-family: var(--font-body); font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink-soft);
  border-left: 1px solid var(--line-strong); padding-left: 14px; max-width: 28ch; }
@media (max-width: 1024px) { .brand-full { display: none; } }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14px; font-weight: 650; color: var(--ink-soft); text-decoration: none;
  padding: var(--sp-1) 0; position: relative;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--navy);
}
.nav-cta {
  font-family: var(--font-body); font-weight: 650; border: 0; border-radius: 0;
  padding: var(--sp-1) 0; color: var(--navy) !important; background: transparent;
  white-space: nowrap; transition: color .2s var(--ease);
}
.nav-cta::before { content: "↗"; margin-right: 5px; }
.nav-cta:hover { background: transparent; color: var(--navy-deep) !important; }

/* ---------- nav: Resources dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop > a::after { content: "▾"; font-size: 10px; margin-left: 4px; opacity: .7; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; margin-top: 10px; min-width: 240px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0;
  padding: var(--sp-2); box-shadow: 0 12px 22px -20px rgba(20,33,46,.38);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
}
.nav-drop-menu a {
  display: block; padding: 10px 12px; border-radius: 0; font-size: var(--step--1);
  color: var(--ink-soft);
}
.nav-drop-menu a:hover { background: var(--navy-tint); color: var(--navy); }
.nav-drop-menu .soon { display: block; padding: 4px 12px 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--slate); }
@media (max-width: 680px) {
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 var(--sp-2) var(--sp-3); margin-top: 4px; }
  .nav-drop > a::after { display: none; }
}

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: var(--sp-7) 0 var(--sp-6); position: relative; overflow: hidden; }

.hero h1 { max-width: 22ch; }
.hero h1 em { font-style: italic; color: var(--navy); }
.hero .lede { margin-top: var(--sp-3); max-width: none; }

/* ---------- generic section ---------- */
.section { padding: var(--sp-7) 0; }
.section-head { max-width: 66ch; margin-bottom: var(--sp-6); }

.section-head p { margin-top: var(--sp-3); color: var(--ink-soft); }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: var(--sp-4); }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5); transition: border-color .2s var(--ease);
}
.card:hover { border-color: var(--navy); }

.card h3 { font-size: var(--step-2); margin-top: var(--sp-3); }
.card p { margin-top: var(--sp-3); color: var(--ink-soft); font-size: var(--step-0); }

/* focus-area card node accent */
.focus .card { position: relative; padding-left: calc(var(--sp-5) + 6px); }
.focus .card::before {
  content: ""; position: absolute; left: 0; top: var(--sp-5); bottom: var(--sp-5); width: 3px;
  background: var(--navy); border-radius: 3px; opacity: .85;
}

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.person {
  display: flex; gap: var(--sp-4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-4);
}
.person .avatar {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 10px; background: var(--navy-tint);
  display: grid; place-items: center; color: var(--navy); font-family: var(--font-body); font-weight: 600;
  font-size: 1.4rem; letter-spacing: .04em; overflow: hidden;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-weight: 600; font-size: var(--step-1); letter-spacing: 0; }
.person .role { font-weight: 500; font-size: var(--step--1); color: var(--navy); margin-top: 2px; }
.person p { margin-top: var(--sp-2); color: var(--ink-soft); font-size: var(--step--1); line-height: 1.55; }
.person .links { margin-top: var(--sp-2); display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.person .links a { font-size: var(--step--1); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cdd9e5; padding: var(--sp-7) 0 var(--sp-5); }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark .lg-route, .site-footer .wordmark .lg-node { stroke: #7fb2e0; fill: #7fb2e0; }
.site-footer .wordmark .lg-node { stroke: none; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); }
.footer-top h4 { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: #7fb2e0; margin: 0 0 var(--sp-3); font-weight: 500; }
.footer-top p, .footer-top a { color: #cdd9e5; font-size: var(--step--1); text-decoration: none; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-tag { margin-top: var(--sp-3); max-width: 40ch; color: #9fb3c6; font-size: var(--step--1); }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--step--1); color: #8ea3b6; }

/* ---------- focus states ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-header .wrap { height: 70px; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--sp-3);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .28s var(--ease), visibility 0s linear .28s;
    box-shadow: 0 20px 40px -24px rgba(20,33,46,.4); }
  .nav[data-open="true"] { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .nav a { padding: var(--sp-3); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-cta { text-align: center; margin-top: var(--sp-2); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }

   .grid-3, .people{ grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .person { flex-direction: column; }
}

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

  .carousel-track { transition: none !important; }
}

/* ---------- team roster ---------- */
.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.member { display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; }

/* ---------- lab updates: carousel + news ---------- */

.carousel { position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink); }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s var(--ease); }
.slide { flex: 0 0 100%; margin: 0; position: relative; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px;
  font-family: var(--font-mono); font-size: var(--step--1); color: #fff;
  background: linear-gradient(transparent, rgba(10,18,26,.82)); }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  background: rgba(23,43,61,.8); color: #fff; cursor: pointer; display: grid; place-items: center;
  font-size: 20px; line-height: 1; transition: background .2s var(--ease); }
.carousel-prev { left: 12px; } .carousel-next { right: 12px; }
.carousel-prev:hover, .carousel-next:hover { background: var(--navy); border-color: var(--navy); }
.carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45);
  cursor: pointer; padding: 0; transition: width .2s var(--ease), background .2s var(--ease); }
.dot[aria-current="true"] { background: #fff; width: 22px; border-radius: 999px; }
.carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-year-group { list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.news-year-group:last-child { margin-bottom: 0; }
.news-year-title { display: inline-block; margin: 0 0 var(--sp-3); padding-bottom: 6px; border-bottom: 2px solid var(--navy); color: var(--navy-deep); font-size: var(--step-2); }
.news-year-list { list-style: none; margin: 0; padding: 0; }
.social-feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.embedded-post { display: flex; flex-direction: column; min-height: 272px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.embedded-linkedin { border-top: 3px solid #0a66c2; }
.embedded-x { border-top: 3px solid var(--ink); }
.embedded-post-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 14px; }
.embedded-avatar { width: 40px; height: 40px; display: grid; place-items: center; background: var(--navy-tint); color: var(--navy); border-radius: 50%; font-size: 12px; font-weight: 700; }
.embedded-post-head strong, .embedded-post-head span { display: block; }
.embedded-post-head strong { color: var(--ink); font-size: var(--step--1); }
.embedded-post-head div span { margin-top: 1px; color: var(--slate); font-size: 12px; }
.platform-mark { margin-left: auto; color: #0a66c2; font-size: 22px; font-weight: 700; line-height: 1; }
.embedded-x .platform-mark { color: var(--ink); }
.embedded-post-body { flex: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 18px; }
.embedded-post-body p { color: var(--ink); font-size: var(--step-0); line-height: 1.55; }
.embedded-post-body span { display: block; margin-top: var(--sp-2); color: var(--slate); font-size: 12px; }
.embedded-post-foot { display: flex; align-items: center; gap: 16px; padding: 12px 18px; color: var(--slate); font-size: 12px; }
.embedded-post-foot a { margin-left: auto; color: var(--navy); font-weight: 650; text-decoration: none; }

@media (max-width: 680px) { .social-feed-grid { grid-template-columns: 1fr; } }
.news-item { padding: 16px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.news-source { font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy); background: transparent; border: 0; border-left: 2px solid var(--navy); border-radius: 0; padding: 0 0 0 8px; }
.news-source[data-platform="linkedin"] { color: var(--navy); background: transparent; border-color: var(--navy); }
.news-source[data-platform="x"] { color: var(--navy); background: transparent; border-color: var(--navy); }
.news-date { font-family: var(--font-mono); font-size: var(--step--1); color: var(--slate); }
.news-title { font-size: var(--step-0); color: var(--ink); text-decoration: none; line-height: 1.5; display: inline-block; }
a.news-title:hover { color: var(--navy-deep); text-decoration: underline; }
.news-more { margin-top: var(--sp-4); }

@media (max-width: 900px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .roster { grid-template-columns: 1fr; }
}

/* ---------- homepage: intro + spotlight ---------- */
.intro { padding: var(--sp-6) 0 var(--sp-4); }
.lead-sentence { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.25rem + .9vw, 1.9rem);
  line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); max-width: 76ch; margin: 0; }
.lead-sentence b { color: var(--navy); font-weight: 700; }

.spotlight { padding: var(--sp-3) 0 var(--sp-5); }
#approach { padding-top: var(--sp-4); }
.spotlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; }
.spotlight .carousel { grid-column: 1 / -1; }
.spotlight .slide img { aspect-ratio: 16 / 9; }
.pi-stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.spotlight .person { height: 100%; }
.spotlight .person > div:last-child { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.spotlight .person .links { margin-top: auto; padding-top: var(--sp-2); }

@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; }
  .pi-stack { grid-template-columns: 1fr; }

  .brand-full { display: none; }
}

/* ---------- flow: dots connected by a line, examples under each ---------- */
.flow { position: relative; margin-top: var(--sp-2); }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); position: relative; }
.flow-rail { position: absolute; top: 7px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-strong); }
.flow-step { position: relative; padding-top: 28px; }
.flow-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 14px; height: 14px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--navy); }
.flow-step h3 { text-align: center; font-family: var(--font-body); font-weight: 650; font-size: var(--step-1);
  letter-spacing: 0; margin: 0 0 var(--sp-2); }
.flow-step ul { list-style: none; margin: 0; padding: 0; }
.flow-step li { font-size: var(--step--1); color: var(--ink-soft); padding: 7px 2px; border-top: 1px solid var(--line);
  text-align: center; line-height: 1.45; }
.flow-step li:first-child { border-top: 0; }

#approach .section-head { max-width: 100%; }
#approach .section-head p { max-width: none; }

@media (max-width: 820px) {
  .flow-rail { display: none; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-step { padding-top: 24px; }
}
@media (max-width: 460px) { .flow-steps { grid-template-columns: 1fr; } }

/* ---------- tags (publications, projects) — one accent family (navy),
   distinguished by shade + a short text prefix, not by rainbow hues. ---- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-body); font-weight: 650; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; border-radius: 0;
  padding: 0 0 0 8px; border: 0; border-left: 2px solid var(--navy); white-space: nowrap; }
.tag-theme, .tag-data, .tag-method { background: transparent; color: var(--navy); border-color: var(--navy); }

/* ---------- publications ---------- */

.paper { padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.paper:first-child { border-top: 0; }
.paper h3 { font-weight: 600; font-size: var(--step-1); letter-spacing: 0; line-height: 1.4; }
.paper h3 a { color: var(--ink); text-decoration: none; }
.paper h3 a:hover { color: var(--navy); text-decoration: underline; }
.paper-meta { font-size: var(--step--1); color: var(--ink-soft); margin: 6px 0 10px; }
.paper-venue { font-weight: 500; color: var(--ink); }

/* ---------- projects ---------- */
.project { padding-left: calc(var(--sp-5) + 6px); position: relative; }
.project::before { content: ""; position: absolute; left: 0; top: var(--sp-5); bottom: var(--sp-5); width: 3px;
  background: var(--navy); border-radius: 3px; }
.project .tags { margin-bottom: var(--sp-3); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-5); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact-list li:first-child { border-top: 0; }
.contact-list .k { font-weight: 600; font-size: var(--step--1); letter-spacing: .02em;
  color: var(--navy); flex: 0 0 92px; }
.contact-list .v { color: var(--ink); }
.contact-list .v a { color: var(--navy); }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- more tag categories (kept in the same navy accent family) --- */
.tag-outcome, .tag-exposure, .tag-pi, .tag-status { background: transparent; color: var(--navy); border-color: var(--navy); }

/* ---------- publications: year groups + filters ---------- */
#paper-filters { margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 170px; }
.filter-label { font-size: var(--step--1); color: var(--slate); }
.filter-select {
  font-family: var(--font-body); font-size: var(--step--1); color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23526579' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 9px 34px 9px 12px; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  transition: border-color .15s var(--ease);
}
.filter-select:hover { border-color: var(--navy); }
.filter-select:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pub-year { margin-bottom: var(--sp-6); }
.pub-year-title { font-size: var(--step-2); color: var(--navy-deep); border-bottom: 2px solid var(--navy);
  display: inline-block; padding-bottom: 4px; margin-bottom: var(--sp-2); }
.publication-pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.pub-page-btn { font: inherit; font-weight: 600; color: var(--navy); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.pub-page-btn:hover:not(:disabled) { border-color: var(--navy); }
.pub-page-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pub-page-btn:disabled { cursor: not-allowed; color: var(--slate); opacity: .58; }
.pub-page-status { color: var(--slate); font-size: var(--step--1); text-align: center; }
@media (max-width: 520px) { .publication-pagination { flex-wrap: wrap; justify-content: center; } .pub-page-status { order: -1; width: 100%; } }

/* Clear-filters button sits on the filter row */
.filter-check { align-self: flex-end; display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: var(--step--1); color: var(--ink); cursor: pointer; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.filter-reset { align-self: flex-end; font-family: var(--font-body); font-size: var(--step--1); font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; line-height: 18px; cursor: pointer;
  transition: border-color .15s var(--ease); }
.filter-reset:hover { border-color: var(--navy); }
.filter-reset:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.filter-reset[hidden] { display: none; }

/* ---------- grants ---------- */
#grants { display: flex; flex-direction: column; gap: var(--sp-4); }
.grant-section { display: flex; flex-direction: column; gap: var(--sp-4); }
.grant-section + .grant-section { margin-top: var(--sp-5); }
.grant-section-title { font-size: var(--step-2); color: var(--navy-deep); border-bottom: 2px solid var(--navy);
  display: inline-block; align-self: flex-start; padding-bottom: 4px; margin-bottom: var(--sp-1); }
.grant-section-completed .grant-section-title { color: var(--slate); border-color: var(--line-strong); }
.grant-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: var(--sp-2); }
.grant-funder { font-weight: 600; font-size: var(--step--1); color: var(--navy-deep); }
.grant-year { font-size: var(--step--1); color: var(--slate); }
.project h3 { margin-top: 4px; }
.project > p { margin-top: var(--sp-3); }
.project .tags { margin-top: var(--sp-3); }

/* ---------- contact: PI statement ---------- */
.statement { border-left: 3px solid var(--navy); padding-left: var(--sp-4); margin: 0 0 var(--sp-6); }
.contact-statement { margin: var(--sp-5) 0 0; }
.statement p { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.statement p + p { margin-top: var(--sp-3); }
.statement cite { display: block; margin-top: var(--sp-3); font-style: normal; font-size: var(--step--1);
  color: var(--slate); }

.opportunity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); max-width: 980px; }
.opportunity { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.opportunity > span { display: block; color: var(--navy); font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; }
.opportunity h3 { margin-top: var(--sp-2); }
.opportunity p { margin-top: var(--sp-2); color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 600px) { .opportunity-grid { grid-template-columns: 1fr; } }

/* CTA never shows a current-page marker */
.nav-cta::after { display: none !important; }

.social-feed-grid + .news-list { margin-top: var(--sp-4); }
