/* =========================================================
   Pastel Researcher — stylish edition
   Lilac · Sage Mint · Sky · Butter on a soft cream canvas.
   No pink. Refined typography, clean lines, subtle motifs.
   ========================================================= */

:root {
  /* Palette ------------------------------------------------ */
  --lilac:        #e4ddff;
  --lilac-deep:   #b8a8f0;
  --lilac-ink:    #5a4ab2;

  --sage:         #d8ecdb;
  --sage-deep:    #a7d4ad;
  --sage-ink:     #466b4d;

  --sky:          #d8e6f7;
  --sky-deep:     #a8c2e8;
  --sky-ink:      #3f5a82;

  --butter:       #fff1c4;
  --butter-deep:  #ffd97a;
  --butter-ink:   #8a6a18;

  --cream:        #faf6ee;
  --paper:        #fbfaf5;
  --line:         #ece6d8;

  --ink:          #2c2a3a;
  --ink-soft:     #5a586d;
  --muted:        #8a899e;

  --shadow:       0 14px 40px rgba(72, 60, 110, 0.10);
  --shadow-soft:  0 4px 14px rgba(72, 60, 110, 0.08);

  --radius:       18px;
  --radius-sm:    10px;
  --radius-lg:    24px;

  --max-w:        1120px;

  /* Typography --------------------------------------------- */
  --font-display: "Plus Jakarta Sans", "Hiragino Sans", "Yu Gothic",
                  system-ui, -apple-system, sans-serif;
  --font-sans:    "Inter", "Hiragino Sans", "Yu Gothic", system-ui,
                  -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--lilac-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--ink); }

/* Headings: Plus Jakarta Sans — friendly, clean, very readable */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.4rem); font-weight: 700; margin: 0 0 0.4em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 0.6em; line-height: 1.25; }
h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

p  { margin: 0 0 1em; color: var(--ink-soft); }

/* ---------- Background motifs ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.blob-1 { width: 520px; height: 520px; top: -140px; left: -120px; background: var(--lilac); }
.blob-2 { width: 560px; height: 560px; top: 28%; right: -200px; background: var(--sky); }
.blob-3 { width: 480px; height: 480px; bottom: -180px; left: 32%; background: var(--sage); }

/* Subtle grain texture for the "stylish editorial" feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image: radial-gradient(rgba(60, 50, 90, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  margin: 18px auto 0;
  max-width: var(--max-w);
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac-deep), var(--sky-deep));
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0;
}
.brand-name {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--cream); }
.site-nav a.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Layout ---------- */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { margin: 60px auto; }

.section-header { margin-bottom: 24px; }
.section-header.center { text-align: center; }

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 6px auto 0;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 36px;
}
.hero-text .hello {
  color: var(--lilac-ink);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--lilac-ink);
}
.tagline {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  margin: 4px 0 18px;
}
.hero-desc {
  color: var(--ink-soft);
  max-width: 520px;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Hero side card */
.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--lilac), transparent 40%, var(--sage) 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 220deg, var(--lilac), var(--sky), var(--sage), var(--butter), var(--lilac));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.9), var(--shadow-soft);
}
.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-meta li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-meta li:last-child { border-bottom: none; }
.hero-meta .label {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--lilac-ink);
}

/* ---------- About cards ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 4px;
  background: var(--lilac-deep);
  border-radius: 0 0 4px 4px;
}
.card:nth-child(2)::before { background: var(--sage-deep); }
.card:nth-child(3)::before { background: var(--sky-deep);  }

.card h3 {
  color: var(--ink);
  margin-bottom: 10px;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 0 0;
  font-size: 0.9rem;
  max-height: 260px;          /* ~3 items, then scroll */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--lilac-deep) transparent;
}
.news-list::-webkit-scrollbar       { width: 6px; }
.news-list::-webkit-scrollbar-track { background: var(--cream); border-radius: 999px; }
.news-list::-webkit-scrollbar-thumb { background: var(--lilac-deep); border-radius: 999px; }
.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.5;
}
.news-list li:last-child { border-bottom: none; }
.news-list .news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.news-list .news-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.news-list .news-text em {
  color: var(--ink);
  font-style: italic;
}

/* News card: full width row under Who I am / Research focus */
.news-card {
  grid-column: 1 / -1;
  padding: 26px 30px;
}
.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.news-card .news-list {
  max-height: 300px;
  font-size: 0.95rem;
}
.news-card .news-list li {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
}
.news-card .news-list .news-meta {
  margin-bottom: 0;
}
.news-card .news-list .news-date {
  font-size: 0.8rem;
}
.news-card .news-list .news-text {
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .news-card { padding: 22px 20px; }
  .news-card .news-list li { display: block; }
  .news-card .news-list .news-meta { margin-bottom: 4px; }
}
.news-date {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--lilac-ink);
}

/* ---------- Research ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.research-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.research-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.research-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--lilac);
}
.research-card:nth-child(2) .research-icon { background: var(--sage); }
.research-card:nth-child(3) .research-icon { background: var(--sky);  }

.research-card h3 { margin-bottom: 8px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.contact-link:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  transform: translateY(-2px);
}
/* Email card is non-interactive */
.contact-link.contact-static {
  cursor: default;
}
.contact-link.contact-static:hover {
  background: var(--cream);
  border-color: transparent;
  transform: none;
}

.contact-text { min-width: 0; }
.contact-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.contact-text small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  word-break: break-all;
}
.contact-text .contact-addr {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-size: 0.8rem;
  color: var(--ink);
  margin-top: 2px;
}
.contact-text .contact-note {
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--lilac-ink);
  letter-spacing: 0.01em;
}

/* Icon container — white with subtle ring; lets brand-coloured SVGs show */
.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
}
.contact-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
/* Outline icons (mail, lab) — tint to match section accent */
.contact-icon-mail { color: var(--lilac-ink); background: var(--lilac); border-color: transparent; }
.contact-icon-lab  { color: var(--sage-ink);  background: var(--sage);  border-color: transparent; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  text-align: center;
  padding: 60px 0 24px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--lilac-ink);
}
.inline-link {
  font-weight: 500;
  margin-left: 4px;
  border-bottom: 1px solid var(--lilac-deep);
}

/* ---------- Publications ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip:hover { background: var(--cream); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.year-heading {
  margin: 32px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--lilac-ink);
  padding: 0;
  background: none;
}
.year-heading::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--lilac-deep);
}

/* Compact publication card — Title / Authors / Journal+Year / Link */
.pub {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 8px 0;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.15s ease;
}
.pub:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--lilac);
}

.pub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.pub-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}
.pub-badge.publications { background: var(--lilac);  color: var(--lilac-ink); }
.pub-badge.preprints    { background: var(--butter); color: var(--butter-ink); }
.pub-badge.others       { background: var(--sky);    color: var(--sky-ink); }

.pub-role {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}
.pub-role.role-first     { background: var(--sage);  color: var(--sage-ink); }
.pub-role.role-corr      { background: var(--butter); color: var(--butter-ink); }
.pub-role.role-coauthor  { background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }

.pub-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 4px 0 4px;
  color: var(--ink);
}
.pub-title sub, .pub-title sup { font-size: 0.7em; }

.pub-authors {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 4px;
  word-break: normal;
}
.pub-authors strong {
  color: var(--lilac-ink);
  font-weight: 700;
}

.pub-venue {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pub-venue em {
  font-style: italic;
  color: var(--ink);
}
.pub-year { color: var(--ink-soft); }

.pub-link {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 1px 9px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  vertical-align: 1px;
}
.pub-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- CV ---------- */
.cv-block { margin-bottom: 40px; }
.cv-block h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 0;
  background: none;
}
.cv-block h2::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  margin-left: 14px;
}
.timeline li {
  position: relative;
  padding: 6px 0 24px 28px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 1.5px solid var(--lilac-deep);
  border-radius: 50%;
}
.timeline li:nth-child(2)::before { border-color: var(--sage-deep); }
.timeline li:nth-child(3)::before { border-color: var(--sky-deep); }
.timeline .time {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lilac-ink);
  background: var(--cream);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.timeline h3 {
  margin: 4px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
}
.timeline p  { margin: 2px 0; color: var(--ink-soft); }
.muted       { color: var(--muted) !important; font-size: 0.9rem; }

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bullet-list li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px; height: 8px;
  background: var(--lilac-deep);
  border-radius: 50%;
}
.bullet-list li:nth-child(2n)::before { background: var(--sage-deep); }
.bullet-list li:nth-child(3n)::before { background: var(--sky-deep); }
.bullet-list li:last-child { border-bottom: none; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}
.skill-card h3 {
  color: var(--ink);
  margin-bottom: 6px;
}
.skill-card p { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 60px 24px 32px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
    gap: 32px;
  }
  .about-grid,
  .research-grid,
  .skills-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 12px 18px;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Collapsible (CV: more talks) ---------- */
.collapse {
  margin-top: 18px;
}
.collapse summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  user-select: none;
  transition: background 0.18s ease, border-color 0.18s ease;
  list-style: none;
}
.collapse summary::-webkit-details-marker { display: none; }
.collapse summary::after {
  content: "↓";
  font-weight: 700;
  transition: transform 0.2s ease;
}
.collapse summary:hover {
  background: var(--lilac);
  border-color: transparent;
}
.collapse[open] > summary {
  background: var(--lilac);
  border-color: transparent;
}
.collapse[open] > summary::after {
  transform: rotate(180deg);
}
.collapse-content {
  margin-top: 16px;
}

/* ---------- CV: small note under a section heading ---------- */
.cv-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: -8px 0 14px;
  letter-spacing: 0.01em;
}

/* ---------- CV: sub-section heading inside a cv-block ---------- */
.cv-subheading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--lilac-ink);
  margin: 4px 0 12px;
}

/* ---------- Home: News role chips ---------- */
.news-role {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: 1px;
}
.news-role.role-first     { background: var(--sage);   color: var(--sage-ink); }
.news-role.role-corr      { background: var(--butter); color: var(--butter-ink); }
.news-role.role-coauthor  { background: var(--cream);  color: var(--ink-soft); border: 1px solid var(--line); }
.news-role.role-note      { background: var(--sky);    color: var(--sky-ink); }

/* ---------- Publications: Featured (Highlighted) ---------- */
.featured-section {
  margin-top: 30px;
  margin-bottom: 48px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.featured-grid .pub {
  border: 1px solid var(--lilac);
  background: linear-gradient(160deg, #fff 0%, var(--paper) 100%);
  padding: 18px 20px;
  margin: 0;
  box-shadow: var(--shadow-soft);
}
.featured-grid .pub:hover {
  border-color: var(--lilac-deep);
}
.featured-grid .pub-title {
  font-size: 1.02rem;
}
.featured-grid .pub-venue {
  flex-wrap: wrap;
}

/* ---------- Publications: press release links ---------- */
.pub-press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
}
.pub-press-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 2px;
}
.press-link {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--butter-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.press-link:hover {
  background: var(--butter-deep);
  color: var(--ink);
}

/* ---------- Publications: TOC graphics ---------- */
.pub-body { min-width: 0; }
.pub:has(.pub-toc) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: center;
}
.pub-toc {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.pub-toc img {
  display: block;
  width: 100%;
  height: auto;
}
/* Selected papers: graphic below the text, full card width */
.featured-grid .pub:has(.pub-toc) { display: block; }
.featured-grid .pub-toc { margin-top: 14px; }
@media (max-width: 640px) {
  .pub:has(.pub-toc) { display: block; }
  .pub-toc { max-width: 300px; margin-top: 12px; }
}

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