/* ================================================================
   HAIR Group — Style C: Clinical White
   Palette: white · slate · blue-green · warm gold
   Typography: Fraunces (display) + Inter (body)
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --bg:           #ffffff;
  --bg-alt:       #f7f9fb;
  --bg-dark:      #1e2d3d;
  --bg-dark2:     #16222f;
  --slate:        #1e2d3d;
  --slate-mid:    #3a5068;
  --slate-light:  #e8ecf0;
  --blue:         #2e8fa0;
  --blue-mid:     #237384;
  --blue-light:   #e8f5f8;
  --blue-lighter: #f0f9fb;
  --gold:         #d4902a;
  --gold-light:   #fdf3e3;
  --text:         #2a2a2a;
  --text-muted:   #6b7f8e;
  --text-light:   #9aadb8;
  --white:        #ffffff;
  --border:       #e4eaee;
  --border-mid:   #cdd6dc;
  --card-shadow:  0 1px 6px rgba(30,45,61,0.06);
  --card-shadow-hover: 0 6px 24px rgba(30,45,61,0.12);
  --radius:       8px;
  --radius-lg:    12px;
  --nav-h:        64px;
  --transition:   0.2s ease;
  --max-w:        1140px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--slate);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.9rem;  font-weight: 600; }
p  { color: var(--text-muted); text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; }

/* ── Layout ── */
.container      { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container--wide{ max-width: 1360px;       margin: 0 auto; padding: 0 32px; }
section         { padding: 80px 0; }
section.alt     { background: var(--bg-alt); }
section.dark    { background: var(--bg-dark); }
section.dark h2,
section.dark h3 { color: var(--white); }
section.dark p  { color: rgba(255,255,255,0.68); }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: 0 2px 16px rgba(30,45,61,0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo-mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--slate);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 14px; color: var(--slate); flex-shrink: 0;
}
.nav-logo-text .name {
  font-family: 'Fraunces', serif; font-size: 0.9rem;
  font-weight: 700; color: var(--slate); line-height: 1.1;
}
.nav-logo-text .dept {
  font-size: 0.67rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  padding: 6px 13px; border-radius: 5px;
  font-size: 0.87rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover  { color: var(--slate); background: var(--bg-alt); }
.nav-links a.active { color: var(--slate); font-weight: 600; }
.nav-cta {
  background: var(--slate) !important;
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--slate-mid) !important; }
.page-body { padding-top: var(--nav-h); }

/* ── Page hero (non-homepage) ── */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
  background: var(--bg-alt);
}
.page-hero h1   { margin-bottom: 14px; }
.page-hero .lead{ color: var(--text-muted); font-size: 1.05rem; max-width: 540px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 7px;
  font-size: 0.88rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer;
}
.btn-primary { background: var(--slate); color: var(--white); }
.btn-primary:hover { background: var(--slate-mid); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--slate); border: 1.5px solid var(--border-mid); }
.btn-secondary:hover { border-color: var(--slate); background: var(--bg-alt); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-mid); transform: translateY(-1px); }
.btn-sm { padding: 6px 15px; font-size: 0.81rem; }

/* ── Tags ── */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.74rem; font-weight: 500;
  background: var(--blue-light); color: var(--blue-mid);
}
.tag-muted { background: var(--bg-alt); color: var(--text-muted); }
.tag-gold  { background: var(--gold-light); color: #9a6010; }
.tag-slate { background: var(--slate-light); color: var(--slate-mid); }
.tag-active{ background: oklch(93% 0.06 150); color: oklch(35% 0.1 150); }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.card-body { padding: 28px; }

/* ── Section headers ── */
.section-label {
  display: block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.section-header { margin-bottom: 48px; }
.section-header p { max-width: 560px; margin-top: 12px; font-size: 1.02rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 12px auto 0; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Image placeholder ── */
.img-placeholder {
  background: repeating-linear-gradient(
    45deg, var(--bg-alt) 0px, var(--bg-alt) 9px,
    var(--border) 9px, var(--border) 10px
  );
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 0.72rem; font-family: monospace;
  text-align: center; padding: 12px; line-height: 2;
}

/* ── Filter / search bar ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.search-input {
  flex: 1; min-width: 200px; max-width: 380px;
  padding: 9px 15px; border-radius: 7px;
  border: 1.5px solid var(--border);
  font-family: inherit; font-size: 0.88rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition);
}
.search-input:focus { outline: none; border-color: var(--blue); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 14px; border-radius: 20px; font-size: 0.79rem;
  font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); color: var(--text-muted);
  background: var(--white); transition: all var(--transition);
}
.chip:hover, .chip.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.chip.active { font-weight: 600; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(22,34,47,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 620px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.16);
  transform: translateY(16px); transition: transform 0.22s;
}
.modal-overlay.open .modal { transform: translateY(0); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Level badges ── */
.level-bsc { background: oklch(92% 0.05 240); color: oklch(38% 0.1 240); }
.level-msc { background: oklch(92% 0.06 160); color: oklch(33% 0.1 160); }
.level-phd { background: var(--gold-light); color: #9a6010; }
.level-muted { background: var(--bg-alt); color: var(--text-muted); }
.level-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.73rem; font-weight: 600;
}

/* ── Tab bar ── */
.tab-bar {
  display: flex; border-bottom: 1.5px solid var(--border);
  margin-bottom: 40px; overflow-x: auto; gap: 0;
}
.tab-btn {
  padding: 12px 24px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1.5px; white-space: nowrap;
  transition: all var(--transition); background: none; border-top: none; border-left: none; border-right: none;
}
.tab-btn:hover { color: var(--slate); }
.tab-btn.active { color: var(--slate); border-bottom-color: var(--slate); font-weight: 600; }

/* ── Stats tile ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-tile { background: var(--white); padding: 28px 24px; }
.stat-tile.dark { background: var(--slate); }
.stat-value { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 700; color: var(--slate); line-height: 1; }
.stat-tile.dark .stat-value { color: var(--white); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.stat-tile.dark .stat-label { color: rgba(255,255,255,0.55); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark2); color: rgba(255,255,255,0.6);
  padding: 60px 0 32px; font-size: 0.86rem;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand .name {
  font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--white); margin-bottom: 10px;
}
.footer-brand p { font-size: 0.83rem; line-height: 1.75; }
.footer-col h5 {
  color: var(--white); margin-bottom: 16px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ── Utility ── */
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.83rem; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px;  } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px;  } .mb-16 { margin-bottom: 16px; }
.flex  { display: flex; } .flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

/* ── Shared utilities ── */
.tag-row   { display: flex; gap: 6px; flex-wrap: wrap; }
.no-results { padding: 48px 0; text-align: center; color: var(--text-muted); }
.modal-divider { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.person-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.person-link {
  padding: 7px 14px; border-radius: 6px; font-size: 0.8rem;
  border: 1px solid var(--border); color: var(--slate-mid);
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  transition: all var(--transition);
}
.person-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ── Shared news / activity item row ── */
.ni-row { display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--border); align-items:flex-start; }
.ni-row:last-child { border-bottom:none; }
.ni-badge { flex-shrink:0; font-size:0.67rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:3px 8px; border-radius:4px; margin-top:3px; white-space:nowrap; }
.nitype-news    { background:#dbeafe; color:#1e40af; }
.nitype-blog    { background:#dcfce7; color:#166534; }
.nitype-talk    { background:#fef3c7; color:#92400e; }
.nitype-podcast { background:#f3e8ff; color:#6b21a8; }
.ni-body { flex:1; min-width:0; }
.ni-title { font-family:'Fraunces',serif; font-size:0.97rem; font-weight:700; color:var(--slate); line-height:1.35; margin-bottom:4px; }
.ni-title a { color:inherit; text-decoration:none; }
.ni-title a:hover { color:var(--blue); }
.ni-meta { font-size:0.79rem; color:var(--text-muted); margin-bottom:3px; }
.ni-excerpt { font-size:0.84rem; color:var(--text); line-height:1.55; margin-top:4px; }
.ni-slides-btn { margin-top:8px; font-size:0.8rem; padding:4px 12px; border:1px solid #d1d5db; border-radius:4px; background:#f9fafb; color:var(--slate); cursor:pointer; }
.ni-slides-btn:hover { background:#f3f4f6; }
.ni-audio { display:block; margin-top:8px; width:100%; max-width:480px; }
.ni-slides-panel { display:none; margin-top:8px; }
.ni-slides-frame { width:100%; height:480px; border:1px solid #e5e7eb; border-radius:6px; }

/* ── Loading spinner ── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 0; color: var(--text-light); font-size: 0.9rem; gap: 10px;
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--blue);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Publication Browser (shared) ── */
.pub-stats {
  display: flex;
  gap: 1px; background: var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px;
}
.pub-stat { flex: 1; background: var(--white); padding: 22px 20px; }
.pub-stat:first-child { background: var(--slate); }
.pub-stat-val { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; color: var(--slate); line-height: 1; }
.pub-stat:first-child .pub-stat-val { color: var(--white); }
.pub-stat-val .denom { opacity: 0.45; font-size: 1.3rem; font-weight: 600; margin-left: 3px; }
.pub-stat-lbl { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.pub-stat:first-child .pub-stat-lbl { color: rgba(255,255,255,0.5); }

.year-dist {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 22px;
}
.year-dist-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.year-dist-title { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); font-weight: 600; }
.chart-toggle { display: flex; gap: 4px; }
.chart-toggle-btn {
  padding: 3px 10px; border-radius: 5px; font-size: 0.72rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--white);
  cursor: pointer; transition: all var(--transition);
}
.chart-toggle-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.year-range-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 22px; margin-bottom: 22px;
}
.year-range-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.year-range-label-val { font-family: 'Fraunces', serif; font-weight: 700; font-size: 0.9rem; color: var(--slate); }
.year-range-track { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: 10px 0; }
.year-range-fill { position: absolute; height: 100%; background: var(--blue); border-radius: 2px; pointer-events: none; }
.year-range-track input[type=range] {
  position: absolute; width: 100%; height: 4px; top: 0; left: 0; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.year-range-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.25); pointer-events: all; cursor: pointer;
}
.year-range-track input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25); pointer-events: all; cursor: pointer; border: none;
}
.year-range-ticks { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; font-family: 'Fraunces', serif; font-weight: 600; }

.year-chart { display: flex; align-items: stretch; gap: 3px; height: 180px; overflow-x: auto; }
.year-bar-col { flex: 1; min-width: 22px; display: flex; flex-direction: column; }
.year-bar-stack { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.year-bar-val { text-align: center; font-size: 0.62rem; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-bottom: 2px; min-height: 11px; }
.year-bar-fill { background: var(--blue); border-radius: 3px 3px 0 0; width: 100%; transition: height var(--transition); }
.year-bar-col:hover .year-bar-fill:not(.year-bar-fill--stacked) { background: var(--blue-mid); }
.year-bar-fill--stacked { background: none; display: flex; flex-direction: column; overflow: hidden; }
.year-bar-curr { background: var(--blue); width: 100%; }
.year-bar-prev { background: rgba(46,143,160,0.28); width: 100%; }
.year-bar-col:hover .year-bar-curr { background: var(--blue-mid); }
.year-bar-col:hover .year-bar-prev { background: rgba(46,143,160,0.44); }
.year-bar-label { font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-top: 5px; font-family: 'Fraunces', serif; font-weight: 600; }

.year-heading {
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--slate); margin: 32px 0 4px;
  display: flex; align-items: center; gap: 14px;
}
.year-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pub-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.pub-row:hover { background: var(--bg-alt); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 8px; }
.pub-year-lbl { font-family: 'Fraunces', serif; font-size: 0.9rem; font-weight: 700; color: var(--blue-mid); text-align: right; padding-top: 2px; }
.pub-title-link { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; color: var(--slate); line-height: 1.35; display: block; margin-bottom: 5px; transition: color var(--transition); }
.pub-title-link:hover { color: var(--blue); }
.pub-authors { font-size: 0.81rem; color: var(--text-muted); margin-bottom: 4px; }
.pub-venue   { font-size: 0.79rem; font-style: italic; color: var(--text-light); margin-bottom: 6px; }
.pub-summary { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 8px; }
.pub-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.pub-action {
  padding: 4px 11px; border-radius: 5px; font-size: 0.74rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: all var(--transition); display: inline-flex; align-items: center; gap: 4px;
  background: none; cursor: pointer;
}
.pub-action:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.pub-action-success { border-color: var(--blue) !important; color: var(--blue) !important; background: var(--blue-light) !important; }
.pub-preprint-lbl { font-size: 0.62rem; font-family: monospace; color: var(--text-light); }
.pub-tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
.pub-author-hl { color: var(--slate); font-weight: 700; }
.page-ellipsis { cursor: default; border-color: transparent; pointer-events: none; }

.pure-notice {
  background: var(--blue-lighter); border: 1px solid rgba(46,143,160,0.2);
  border-radius: var(--radius); padding: 13px 18px;
  font-size: 0.84rem; color: var(--blue-mid);
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 28px 0 8px; flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--white); color: var(--slate-mid);
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.page-btn.active { background: var(--slate); color: white; border-color: var(--slate); }
.page-btn:disabled { opacity: 0.35; cursor: default; }
.page-info { font-size: 0.78rem; color: var(--text-muted); }
.pub-paging-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 4px 0 24px; }

@media (max-width: 600px) { .pub-stats { flex-wrap: wrap; } .pub-stat { flex: 1 1 45%; } }

/* ── Project cards (shared: projects.html + research.html) ── */
.proj-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
  transition: all var(--transition); display: flex; flex-direction: column;
  overflow: hidden;
}
.proj-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.proj-card.is-featured { border-color: var(--gold); }
.proj-logo {
  height: 80px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 12px 24px;
}
.proj-logo img { max-height: 52px; max-width: 100%; object-fit: contain; }
.proj-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.proj-theme-link {
  font-size: 0.72rem; font-weight: 600; color: var(--blue); text-decoration: none;
  background: rgba(45,140,160,0.08); padding: 3px 10px; border-radius: 20px;
  transition: background var(--transition);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
}
.proj-theme-link:hover { background: rgba(45,140,160,0.16); }
.proj-badges { display: flex; gap: 6px; flex-shrink: 0; }
.proj-acronym { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; color: var(--slate); margin-bottom: 2px; }
.proj-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.proj-desc { font-size: 0.84rem; line-height: 1.75; color: var(--text); margin-bottom: 16px; flex: 1; }
.proj-footer { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.proj-team { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-member {
  font-size: 0.76rem; padding: 3px 10px; border-radius: 20px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--slate); transition: all var(--transition); text-decoration: none;
}
a.proj-member:hover { border-color: var(--blue); color: var(--blue); background: rgba(45,140,160,0.06); }
.proj-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.proj-url {
  font-size: 0.78rem; font-weight: 500; color: var(--blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; transition: color var(--transition);
}
.proj-url:hover { color: var(--slate); }

/* ── Research theme content panels ── */
.theme-proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 36px; }
.theme-content-label {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-muted); font-weight: 600; margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.theme-content-link { font-size: 0.76rem; font-weight: 500; color: var(--blue); text-decoration: none; text-transform: none; letter-spacing: 0; }
.theme-content-link:hover { color: var(--slate); }
.theme-pub-row { padding: 11px 0; border-top: 1px solid var(--border); }
.theme-pub-title { font-size: 0.86rem; font-weight: 500; color: var(--slate); text-decoration: none; display: block; margin-bottom: 3px; line-height: 1.45; }
.theme-pub-title:hover { color: var(--blue); }
.theme-pub-meta { font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 860px) { .theme-proj-grid { grid-template-columns: 1fr; } }
