:root {
  --ink: #162033;
  --muted: #4a5568; /* Updated from #5f6f86 for better contrast - 7.5:1 ratio */
  --line: #dbe7f0;
  --paper: #ffffff;
  --mist: #f4f9fb;
  --aqua: #1ab7b5;
  --blue: #276ef1;
  --green: #52b788;
  --coral: #ff6b5f;
  --gold: #f5b841;
  --purple: #7c5cff;
  --shadow: 0 20px 55px rgba(22, 32, 51, 0.12);
  --radius: 8px;
  --focus-ring: 3px solid #276ef1;
  --focus-offset: 2px;
}

/* ===== ADA COMPLIANCE STYLES ===== */

/* Skip to main content link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 24px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 16px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Enhanced focus indicators for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  transition: outline-offset 0.15s ease;
}

/* Visible focus for keyboard users, hidden for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure focus is visible on buttons */
.button:focus-visible,
.admin-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Enhanced focus for cards */
.research-card:focus-within,
.news-card:focus-within,
.person-card:focus-within,
.publication-feature:focus-within,
.impact-card:focus-within,
.impact-feature:focus-within {
  box-shadow: 0 0 0 3px rgba(39, 110, 241, 0.25), var(--shadow);
  transform: translateY(-2px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Screen reader only text */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus within for complex components */
.nav-links a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Enhanced focus for footer links */
.footer-icon-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Enhanced focus for text links */
a.text-link:focus-visible,
.pub-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Back to top button focus */
.back-to-top:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  transform: scale(1.1);
}

/* Improve button contrast and focus */
.button {
  position: relative;
}

.button:focus-visible::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 3px solid var(--blue);
  border-radius: inherit;
  pointer-events: none;
}

/* Ensure sufficient color contrast for muted text */
.eyebrow,
small {
  color: #3d4f63; /* Improved from #475569 - ensures 7:1 contrast on white */
}

/* Improved link underlines for visibility */
a.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Carousel keyboard navigation support */
.carousel-btn:focus-visible,
.news-carousel-btn:focus-visible,
.carousel-dot:focus-visible,
.news-dot:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Tab panel focus management */
.member-toggle-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.carousel-track,
.news-carousel-track {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .skip-link {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --muted: #374151;
    --line: #94a3b8;
  }
  
  .button {
    border: 2px solid currentColor;
  }
}

/* ===== END ADA COMPLIANCE STYLES ===== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.55;
  font-size: 15px;
  /* Footer always at bottom, even on short-content pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

.home-page main > section:not(.hero) {
  display: none;
}

.subpage .page-title {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 64px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(219, 231, 240, 0.8);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 218px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.brand:active {
  transform: scale(0.97);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--blue), var(--aqua) 52%, var(--green));
  box-shadow: 0 8px 18px rgba(39, 110, 241, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #4a5568; /* Updated for better contrast - matches --muted */
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  overflow: hidden;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #314057;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--aqua), var(--purple));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
  background: rgba(39, 110, 241, 0.08);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(0.7);
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: #174aa9;
  background: linear-gradient(135deg, rgba(39, 110, 241, 0.12), rgba(26, 183, 181, 0.14));
  box-shadow: 0 4px 12px rgba(39, 110, 241, 0.1);
}

.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a:active {
  transform: scale(0.95);
}

/* Click Ripple Effect */
.nav-click-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 183, 181, 0.4), rgba(39, 110, 241, 0.2) 60%, transparent 80%);
  transform: scale(0);
  animation: navRippleAnim 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes navRippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Target Section Highlight Flash */
@keyframes sectionTargetPulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 183, 181, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(26, 183, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 183, 181, 0); }
}

.target-glow-highlight {
  animation: sectionTargetPulse 1.2s ease-out;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(26, 183, 181, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 107, 95, 0.15), transparent 26%),
    linear-gradient(135deg, #f8fdff 0%, #eff9f8 42%, #fff7ed 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(39, 110, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 110, 241, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: start;
  gap: 48px;
  justify-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #0a4a48; /* Updated from #0d5c5a for better contrast - 8.5:1 ratio */
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.22;
}

.hero-copy p,
.section-heading p,
.two-col p,
.contact-intro p,
.contact-grid p {
  color: #4a5568; /* Updated for better contrast */
  font-size: 18px;
}

.hero-body {
  color: #2d3e54 !important; /* Updated from #3a4e66 for 8:1 contrast */
  font-size: 14px !important;
  line-height: 1.75;
  max-width: 680px;
}

.hero-copy > p:not(.hero-body) {
  max-width: 690px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  box-shadow: 0 15px 32px rgba(39, 110, 241, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
  box-shadow: 0 12px 25px rgba(22, 32, 51, 0.06);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-metrics div {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(22, 32, 51, 0.06);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 18px;
}

.hero-metrics span {
  color: #4a5568; /* Updated for better contrast */
  font-size: 13px;
  font-weight: 600;
}

.hero-copy {
  justify-self: start;
  align-self: start;
}

.hero-visual {
  position: relative;
  min-height: auto;
  width: 100%;
  justify-self: end;
}

.hero-visual > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  width: min(200px, 46%);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(22, 32, 51, 0.16);
  backdrop-filter: blur(14px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card small {
  color: #4a5568; /* Updated for consistency */
}

.card-a {
  left: -24px;
  bottom: 52px;
}

.card-b {
  right: -18px;
  top: 58px;
}

.chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  margin-bottom: 12px;
  border-radius: 99px;
  padding: 5px 10px;
  color: #0f2837; /* Updated from #143042 for better contrast on chips */
  font-size: 12px;
  font-weight: 800;
}

.chip.teal { background: rgba(26, 183, 181, 0.18); color: #084846; } /* Updated from #09615f for better contrast */
.chip.coral { background: rgba(255, 107, 95, 0.18); color: #8b2820; } /* Updated from #9b3028 for better contrast */
.chip.mint { background: rgba(82, 183, 136, 0.18); color: #1a5a3c; } /* Updated from #236a4a for better contrast */
.chip.blue { background: rgba(39, 110, 241, 0.14); color: #0f3d8f; } /* Updated from #174aa9 for better contrast */
.chip.purple { background: rgba(124, 92, 255, 0.14); color: #3a2685; } /* Updated from #4733a5 for better contrast */

.two-col,
.contact-grid,
.culture-grid {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-section {
  background: white;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 16px;
  align-items: stretch;
}

.panel-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.focus-list {
  display: grid;
  gap: 12px;
}

.focus-list span {
  display: flex;
  align-items: center;
  min-height: auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #0f2837; /* Updated from #173345 for better contrast - 11:1 ratio */
  font-weight: 800;
  background: #eef9f7;
  border: 1px solid #d4efea;
}

.focus-list span:nth-child(2) {
  background: #eef4ff;
  border-color: #d6e3ff;
}

.focus-list span:nth-child(3) {
  background: #fff5ee;
  border-color: #ffe1cf;
}

.focus-list span:nth-child(4) {
  background: #f6f1ff;
  border-color: #e4d8ff;
}

.research-section,
.team-section {
  background: var(--mist);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.split-heading p {
  max-width: 430px;
  margin-bottom: 18px;
  color: #4a5568; /* Updated for better contrast */
}

.research-grid,
.news-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.interest-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #cfe9ee;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 248, 0.94)),
    url("images/interest-bg.jpg") center/cover;
  background-blend-mode: screen;
  box-shadow: 0 14px 32px rgba(22, 32, 51, 0.08);
}

.interest-panel p {
  color: #344557; /* Updated from #43546a for 8:1 contrast */
}

.interest-highlights {
  display: grid;
  gap: 12px;
}

.interest-highlights div {
  padding: 18px;
  border: 1px solid rgba(39, 110, 241, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.interest-highlights strong,
.interest-highlights span {
  display: block;
}

.interest-highlights strong {
  color: #0a615e; /* Updated from #0c827f for better contrast */
  font-size: 17px;
}

.interest-highlights span {
  color: #4a5568; /* Updated for consistency */
  font-size: 14px;
}

.research-card,
.news-card,
.person-card,
.publication-feature,
.publication-list article,
.contact-info-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 15px 35px rgba(22, 32, 51, 0.07);
}

.research-card {
  overflow: hidden;
}

.research-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.research-card div {
  padding: 24px;
}

.research-card p,
.news-card p,
.person-card span,
.publication-list span,
.publication-feature p {
  color: #4a5568; /* Updated for consistency */
}

.publications-section {
  background:
    linear-gradient(120deg, rgba(39, 110, 241, 0.08), rgba(26, 183, 181, 0.08)),
    white;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-link img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
}

.publication-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.publication-feature {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 251, 0.92)),
    url("images/publication-bg.jpg") center/cover;
  background-blend-mode: screen;
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-list article {
  padding: 22px;
  border-left: 5px solid var(--aqua);
}

.publication-list article:nth-child(2) {
  border-left-color: var(--coral);
}

.publication-list article:nth-child(3) {
  border-left-color: var(--purple);
}

.publication-list strong,
.publication-list span {
  display: block;
}

.publication-list span {
  margin-top: 6px;
  color: #4a5568; /* Updated for consistency */
  font-size: 13px;
  font-weight: 600;
}

.publication-list p {
  margin: 10px 0 0;
  color: #4a5568; /* Updated for consistency */
  font-size: 14px;
  line-height: 1.55;
}

.publication-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ── Full publications page ── */
.publications-page .publications-full-section {
  min-height: calc(100vh - 180px);
}

.pub-page-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
}

.pub-page-intro {
  max-width: 620px;
  margin-bottom: 0;
  color: #4a5568; /* Updated for consistency */
  font-size: 15px;
}

.pub-page-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.pub-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: end;
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(22, 32, 51, 0.06);
}

.pub-search-wrap input {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: white;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pub-search-wrap input:focus {
  outline: none;
  border-color: rgba(39, 110, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(39, 110, 241, 0.12);
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.pub-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.pub-filter-label {
  color: #4a5568; /* Updated for consistency */
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pub-filters select {
  min-height: 42px;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.pub-count {
  margin: 0 0 16px;
  color: #4a5568; /* Updated for consistency */
  font-size: 13px;
  font-weight: 700;
}

.pub-list {
  display: grid;
  gap: 14px;
}

.pub-item {
  padding: 22px 22px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 28px rgba(22, 32, 51, 0.06);
  border-left: 5px solid var(--aqua);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pub-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(22, 32, 51, 0.1);
}

.pub-item.accent-aqua { border-left-color: var(--aqua); }
.pub-item.accent-blue { border-left-color: var(--blue); }
.pub-item.accent-purple { border-left-color: var(--purple); }
.pub-item.accent-coral { border-left-color: var(--coral); }
.pub-item.accent-green { border-left-color: var(--green); }

.pub-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pub-year {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(39, 110, 241, 0.1), rgba(26, 183, 181, 0.12));
  color: #0a4a48; /* Updated from #0d5c5a for better contrast */
  font-size: 12px;
  font-weight: 800;
}

.pub-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--mist);
  color: #4a5568; /* Updated for consistency */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-citation {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(39, 110, 241, 0.25);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  background: rgba(39, 110, 241, 0.06);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pub-link:hover {
  background: rgba(39, 110, 241, 0.12);
  border-color: rgba(39, 110, 241, 0.45);
  transform: translateY(-1px);
}

.pub-empty {
  margin: 24px 0 0;
  padding: 32px;
  text-align: center;
  color: #4a5568; /* Updated for consistency */
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .pub-page-actions {
    align-items: flex-start;
    margin-top: 20px;
  }

  .pub-filters select {
    min-width: 120px;
  }
}

.news-section {
  background: white;
}

.news-card,
.impact-card {
  padding: 24px;
}

.news-card time {
  display: inline-flex;
  margin-bottom: 16px;
  color: #0a615e; /* Updated from #0c827f for better contrast */
  font-size: 13px;
  font-weight: 800;
}

.impact-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(26, 183, 181, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(245, 184, 65, 0.13), transparent 26%),
    white;
}

.impact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.impact-feature,
.impact-card,
.mentorship-cards article,
.past-members article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 15px 35px rgba(22, 32, 51, 0.07);
}

.impact-feature {
  grid-row: span 2;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 248, 0.94)),
    url("images/impact-bg.jpg") center/cover;
  background-blend-mode: screen;
}

.impact-feature p,
.impact-card p,
.mentorship-grid p,
.mentorship-cards span,
.past-members span {
  color: #4a5568; /* Updated for consistency */
}

.mentorship-section {
  color: white;
  background:
    linear-gradient(135deg, rgba(19, 32, 51, 0.94), rgba(28, 119, 116, 0.9)),
    url("images/mentorship-bg.jpg") center/cover;
}

.mentorship-section .eyebrow,
.mentorship-grid p {
  color: rgba(255, 255, 255, 0.92); /* Updated from 0.82 for better contrast - 5.1:1 */
}

.mentorship-section .eyebrow::before {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.mentorship-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 46px;
}

.mentorship-cards {
  display: grid;
  gap: 14px;
}

.mentorship-cards article {
  padding: 22px;
  color: var(--ink);
}

.mentorship-cards strong,
.mentorship-cards span,
.past-members strong,
.past-members span {
  display: block;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-group-title {
  margin: 8px 0 18px;
  color: #0a615e; /* Updated from #0c827f for better contrast */
  font-size: 24px;
}

.past-title {
  margin-top: 36px;
}

.past-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.past-members article {
  padding: 20px;
  border-left: 5px solid var(--gold);
}

.past-members article:nth-child(2) {
  border-left-color: var(--aqua);
}

.past-members article:nth-child(3) {
  border-left-color: var(--purple);
}

.person-card {
  padding: 24px;
}

.person-card.lead {
  background: linear-gradient(180deg, white, #eef9f7);
  border-color: #caece6;
}

.avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: white;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
}

.gradient-one { background: linear-gradient(135deg, var(--green), var(--gold)); }
.gradient-two { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.gradient-three { background: linear-gradient(135deg, var(--coral), var(--gold)); }

.avatar-photo {
  width: 112px;
  height: 112px;
  margin-bottom: 18px;
  border: 4px solid white;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 14px 28px rgba(22, 32, 51, 0.16);
}

.person-card p {
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.culture-section {
  color: white;
  background:
    linear-gradient(135deg, rgba(14, 42, 60, 0.94), rgba(13, 112, 111, 0.9)),
    url("images/culture-bg.jpg") center/cover;
}

.culture-section .eyebrow,
.culture-section .culture-items span {
  color: rgba(255, 255, 255, 0.90); /* Updated from 0.78 for better contrast - 4.8:1 */
}

.culture-section .eyebrow::before {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.culture-items {
  display: grid;
  gap: 14px;
}

.culture-items div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.culture-items strong,
.culture-items span {
  display: block;
}

.contact-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 184, 65, 0.16), transparent 30%),
    var(--paper);
}

.contact-intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: start;
  gap: 42px;
}

.contact-info-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  height: 100%;
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 12px 26px rgba(39, 110, 241, 0.22);
}

.contact-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.contact-icon svg circle {
  fill: currentColor;
  stroke: none;
}

.contact-item:nth-child(2) .contact-icon {
  background: linear-gradient(135deg, var(--aqua), var(--green));
}

.contact-item:nth-child(3) .contact-icon {
  background: linear-gradient(135deg, var(--purple), var(--coral));
}

.contact-item:nth-child(4) .contact-icon {
  background: linear-gradient(135deg, var(--gold), var(--coral));
}

.contact-item h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.contact-item p {
  margin-bottom: 0;
  color: #1f3347; /* Updated from #263954 for better contrast - 9:1 ratio */
  font-size: 15px;
  line-height: 1.55;
}

.contact-item a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  align-self: stretch;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #1f3347; /* Updated from #314057 for better contrast */
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--aqua);
  outline: 3px solid rgba(26, 183, 181, 0.16);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.form-status.success {
  color: #147a50;
}

.form-status.error {
  color: #b3352d;
}

.site-footer {
  padding: 34px 0;
  color: white;
  background: #132033;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p {
  max-width: 640px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85); /* Updated from 0.72 for better contrast - 4.8:1 */
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.92); /* Updated from 0.8 for better contrast */
  font-weight: 700;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  color: #132033;
  font-size: 14px;
  font-weight: 900;
  background: transparent;
  box-shadow: none;
}

.footer-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.footer-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--line);
    background: white;
    border-radius: var(--radius);
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    z-index: 100;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 14px;
    justify-content: flex-start;
  }

  .hero-grid,
  .two-col,
  .interest-panel,
  .publication-layout,
  .impact-layout,
  .contact-grid,
  .culture-grid,
  .mentorship-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 36px 0;
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 340px;
    height: 340px;
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

  .focus-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-grid,
  .news-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-feature {
    grid-row: auto;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .section-pad {
    padding: 48px 0;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(26px, 7vw, 42px);
  }

  h2 {
    font-size: clamp(22px, 5vw, 32px);
  }

  h3 {
    font-size: 18px;
  }

  .hero-copy > p,
  .section-heading p {
    font-size: 15px;
  }

  .hero-metrics,
  .research-grid,
  .news-grid,
  .team-grid,
  .focus-list,
  .past-members {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 240px;
    height: 240px;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .contact-item {
    grid-template-columns: 1fr;
  }

  .split-heading {
    display: block;
  }

  .split-heading .button {
    margin-top: 16px;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
  }

  .footer-icon-link span:last-child {
    font-size: 13px;
  }

  .publication-links {
    justify-content: flex-start;
  }

  /* Members grids */
  .members-grid {
    grid-template-columns: 1fr;
  }

  .past-members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* PI card */
  .pi-card {
    padding: 28px 20px;
  }

  /* Pub toolbar */
  .pub-toolbar {
    grid-template-columns: 1fr;
  }

  .pub-page-actions {
    align-items: flex-start;
    margin-top: 20px;
  }

  /* Interest panel stacks nicely */
  .interest-panel {
    padding: 20px;
  }

  /* Carousel nav buttons smaller on mobile */
  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  /* Toggle bar wraps */
  .member-toggle-bar {
    gap: 10px;
  }

  .member-toggle-btn {
    padding: 0 18px;
    font-size: 13px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .past-members-grid {
    grid-template-columns: 1fr;
  }

  .hero-body-showcase {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

/* ── Admin shield button ── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  margin-left: 4px;
}

.admin-btn svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.admin-btn:hover,
.admin-btn:focus-visible {
  color: var(--blue);
  border-color: rgba(39, 110, 241, 0.4);
  background: #eef6ff;
  box-shadow: 0 4px 12px rgba(39, 110, 241, 0.15);
  outline: none;
}

/* ── Admin edit toolbar ── */
#admin-toolbar {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #132033;
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.4);
  white-space: nowrap;
}

#admin-toolbar.active {
  display: flex;
}

.atb-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.12);
  margin-right: 2px;
}

.atb-label svg {
  width: 14px;
  height: 14px;
  stroke: #1ab7b5;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.atb-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.16);
  color: white;
}

.atb-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.atb-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.atb-btn.save {
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(39,110,241,0.35);
}

.atb-btn.save:hover {
  background: linear-gradient(135deg, #1a5fdb, #14a09f);
}

.atb-btn.logout {
  background: rgba(255,107,95,0.15);
  color: #ff8a82;
  border-color: rgba(255,107,95,0.25);
}

.atb-btn.logout:hover {
  background: rgba(255,107,95,0.28);
  color: white;
}

.atb-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  margin: 0 2px;
}

.atb-saved-msg {
  font-size: 12px;
  font-weight: 700;
  color: #52b788;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.atb-saved-msg.show {
  opacity: 1;
}

/* ── Editable text highlight ── */
body.admin-edit-mode [contenteditable="true"] {
  outline: 2px dashed rgba(39, 110, 241, 0.4);
  outline-offset: 2px;
  border-radius: 3px;
  cursor: text;
  transition: outline-color 150ms ease, background 150ms ease;
}

body.admin-edit-mode [contenteditable="true"]:hover {
  outline-color: rgba(39, 110, 241, 0.75);
  background: rgba(39, 110, 241, 0.04);
}

body.admin-edit-mode [contenteditable="true"]:focus {
  outline: 2px solid var(--blue);
  background: rgba(39, 110, 241, 0.05);
}

/* ── Admin login page styles (used in admin.html) ── */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(39, 110, 241, 0.14), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(26, 183, 181, 0.12), transparent 36%),
    #f4f9fb;
}

.admin-login-card {
  width: min(420px, calc(100% - 32px));
  padding: 40px 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 28px 64px rgba(22, 32, 51, 0.13);
  text-align: center;
}

.admin-login-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  box-shadow: 0 12px 28px rgba(39, 110, 241, 0.28);
  color: white;
}

.admin-login-icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-login-card h1 {
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: 0;
  max-width: none;
}

.admin-login-card .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.admin-field {
  display: grid;
  gap: 6px;
  text-align: left;
  margin-bottom: 16px;
}

.admin-field label {
  font-size: 13px;
  font-weight: 700;
  color: #314057;
}

.admin-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color 150ms ease, outline 150ms ease;
}

.admin-field input:focus {
  border-color: var(--aqua);
  outline: 3px solid rgba(26, 183, 181, 0.16);
}

.admin-login-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(39, 110, 241, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(39, 110, 241, 0.34);
}

.admin-login-error {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 107, 95, 0.1);
  border: 1px solid rgba(255, 107, 95, 0.25);
  color: #b3352d;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-error.show {
  display: block;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

.admin-back-link:hover {
  color: var(--blue);
}

/* ── Admin toolbar save spinner ── */
@keyframes atb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════
   Versions toolbar button
══════════════════════════════════════════ */
.atb-btn.versions {
  background: rgba(124, 92, 255, 0.18);
  color: #c4b0ff;
  border-color: rgba(124, 92, 255, 0.28);
}

.atb-btn.versions:hover {
  background: rgba(124, 92, 255, 0.32);
  color: white;
}

/* ══════════════════════════════════════════
   Versions panel
══════════════════════════════════════════ */
#ver-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  z-index: 10000;
  background: #0f1c2e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.5);
  flex-direction: column;
  font-family: "Inter", Arial, sans-serif;
  overflow: hidden;
}

#ver-panel.open {
  display: flex;
}

/* header */
.ver-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ver-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ver-title svg {
  width: 16px;
  height: 16px;
  stroke: #7c5cff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ver-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  padding: 0;
}

.ver-close:hover {
  background: rgba(255, 107, 95, 0.2);
  color: #ff8a82;
  border-color: rgba(255, 107, 95, 0.3);
}

.ver-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* scrollable body */
.ver-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.ver-body::-webkit-scrollbar { width: 5px; }
.ver-body::-webkit-scrollbar-track { background: transparent; }
.ver-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }

/* loading state */
.ver-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 600;
}

.ver-spinner {
  width: 18px;
  height: 18px;
  stroke: #7c5cff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: atb-spin 1s linear infinite;
  flex-shrink: 0;
}

/* empty / error states */
.ver-empty,
.ver-error {
  padding: 24px 20px;
  font-size: 13px;
  line-height: 1.6;
}

.ver-empty { color: rgba(255, 255, 255, 0.4); }
.ver-error { color: #ff8a82; }

/* version row */
.ver-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 150ms ease;
}

.ver-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ver-item.ver-latest {
  background: rgba(124, 92, 255, 0.1);
  border-left: 3px solid #7c5cff;
  padding-left: 17px;
}

.ver-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ver-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(124, 92, 255, 0.25);
  color: #c4b0ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ver-ts {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ver-sha {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-family: "Courier New", monospace;
  font-weight: 600;
}

/* restore button */
.ver-restore-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(39, 110, 241, 0.35);
  background: rgba(39, 110, 241, 0.12);
  color: #7aacff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
  font-family: "Inter", Arial, sans-serif;
}

.ver-restore-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ver-restore-btn:hover:not([disabled]) {
  background: rgba(39, 110, 241, 0.28);
  color: white;
  border-color: rgba(39, 110, 241, 0.6);
}

.ver-restore-disabled,
.ver-restore-btn[disabled] {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  cursor: default !important;
}

/* ── Confirm restore screen ── */
.ver-confirm {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.ver-confirm-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(39, 110, 241, 0.15);
  margin-bottom: 6px;
}

.ver-confirm-icon svg {
  width: 24px;
  height: 24px;
  stroke: #7aacff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ver-confirm-title {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.ver-confirm-ts {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.ver-confirm-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.65;
  margin: 4px 0 8px;
}

.ver-confirm-note strong {
  color: rgba(255, 255, 255, 0.7);
}

.ver-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ver-btn-cancel {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  transition: background 150ms ease;
}

.ver-btn-cancel:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.ver-btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #276ef1, #1ab7b5);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(39, 110, 241, 0.35);
  transition: opacity 150ms ease;
}

.ver-btn-confirm:hover:not([disabled]) { opacity: 0.88; }
.ver-btn-confirm[disabled] { opacity: 0.4; cursor: wait; }
.ver-btn-cancel[disabled]  { opacity: 0.4; cursor: wait; }

.ver-btn-confirm svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ver-confirm-status {
  min-height: 18px;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

/* ══════════════════════════════════════════
   Unsaved Changes Modal
══════════════════════════════════════════ */
#unsaved-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 16, 28, 0.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Inter", Arial, sans-serif;
}

#unsaved-modal.open {
  display: flex;
}

.unsaved-card {
  width: min(460px, 100%);
  background: #0f1c2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  padding: 32px 28px 24px;
  text-align: center;
  animation: unsaved-in 200ms ease;
}

@keyframes unsaved-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.unsaved-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(245, 184, 65, 0.15);
  border: 1px solid rgba(245, 184, 65, 0.25);
}

.unsaved-icon svg {
  width: 24px;
  height: 24px;
  stroke: #f5b841;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unsaved-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  max-width: none;
  line-height: 1.2;
}

.unsaved-msg {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.unsaved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.unsaved-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  transition: opacity 150ms ease, background 150ms ease;
  border: 1px solid transparent;
}

.unsaved-btn:disabled {
  opacity: 0.4;
  cursor: wait;
}

/* Cancel */
.unsaved-btn.cancel {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}
.unsaved-btn.cancel:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* Don't Save & Exit */
.unsaved-btn.discard {
  background: rgba(255, 107, 95, 0.12);
  color: #ff8a82;
  border-color: rgba(255, 107, 95, 0.25);
}
.unsaved-btn.discard:hover:not(:disabled) {
  background: rgba(255, 107, 95, 0.25);
  color: white;
}

/* Save & Exit */
.unsaved-btn.save-exit {
  background: linear-gradient(135deg, #276ef1, #1ab7b5);
  color: white;
  box-shadow: 0 6px 18px rgba(39, 110, 241, 0.35);
}
.unsaved-btn.save-exit:hover:not(:disabled) {
  opacity: 0.88;
}

.unsaved-btn.save-exit svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unsaved-status {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Version number ── */
.ver-item-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.ver-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.22);
  color: #c4b0ff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.ver-latest .ver-num {
  background: rgba(124, 92, 255, 0.4);
  color: white;
}

/* ══════════════════════════════════════════
   Visual Enhancements & Micro-Interactions
══════════════════════════════════════════ */

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Enhanced Hero Visuals */
.hero-visual img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-visual:hover img {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(39, 110, 241, 0.22);
}

/* Floating Card Pulse & Float Animation */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-card.card-a {
  animation: floatSoft 4s ease-in-out infinite;
}

.floating-card.card-b {
  animation: floatSoft 4.5s ease-in-out 1s infinite;
}

/* Card Glows & Dynamic Hover Effects */
.research-card,
.news-card,
.person-card,
.impact-card,
.interest-panel {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.research-card:hover,
.news-card:hover,
.person-card:hover,
.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(26, 183, 181, 0.16);
  border-color: rgba(26, 183, 181, 0.4);
}

/* Gradient Text Effect for Main Highlight Headings */
.gradient-heading {
  color: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: white;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(39, 110, 241, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(39, 110, 241, 0.45);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
}

/* Pulse highlight on Chip tags */
.chip {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.chip:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* ══════════════════════════════════════════
   Hero Body Visual Showcase Grid & Cards
══════════════════════════════════════════ */
.hero-body-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 26px;
  max-width: 760px;
}

.showcase-card {
  position: relative;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 231, 240, 0.9);
  box-shadow: 0 10px 25px rgba(22, 32, 51, 0.05);
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(39, 110, 241, 0.12);
  border-color: rgba(39, 110, 241, 0.35);
  background: white;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #1a2a3a;
}

.badge-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  color: white;
}

.pillar-teal { border-top: 4px solid var(--aqua); }
.pillar-teal .badge-num { background: linear-gradient(135deg, var(--aqua), var(--green)); }

.pillar-coral { border-top: 4px solid var(--coral); }
.pillar-coral .badge-num { background: linear-gradient(135deg, var(--coral), var(--gold)); }

.pillar-blue { border-top: 4px solid var(--blue); }
.pillar-blue .badge-num { background: linear-gradient(135deg, var(--blue), var(--aqua)); }

.pillar-purple { border-top: 4px solid var(--purple); }
.pillar-purple .badge-num { background: linear-gradient(135deg, var(--purple), var(--coral)); }

.showcase-card p {
  color: #3b4e65;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-body-showcase {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
/* ══════════════════════════════════════════
   Jump-Pop Panel Click Animation
══════════════════════════════════════════ */
@keyframes jumpPopIn {
  0% {
    opacity: 0;
    transform: translateY(45px) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.03);
  }
  75% {
    transform: translateY(4px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-jump-pop {
  animation: jumpPopIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ══════════════════════════════════════════
   Scroll Down Floating Hero Button
══════════════════════════════════════════ */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-down-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: white;
  box-shadow: 0 10px 25px rgba(39, 110, 241, 0.35);
  margin-top: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: bounceDown 2.2s infinite ease-in-out;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.scroll-down-btn:hover {
  transform: translateY(4px) scale(1.1);
  box-shadow: 0 15px 35px rgba(39, 110, 241, 0.5);
  animation-play-state: paused;
}

.scroll-down-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
}

/* ══════════════════════════════════════════
   Publications admin — + Add card
══════════════════════════════════════════ */
.pub-add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  margin-bottom: 14px;
  border: 2px dashed rgba(39, 110, 241, 0.35);
  border-radius: 12px;
  background: rgba(39, 110, 241, 0.03);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
  outline: none;
}

.pub-add-card:hover,
.pub-add-card:focus {
  border-color: var(--blue);
  background: rgba(39, 110, 241, 0.07);
}

.pub-add-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}

.pub-add-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(39, 110, 241, 0.12);
  flex-shrink: 0;
}

.pub-add-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ══════════════════════════════════════════
   Publications admin — editable link button indicator
══════════════════════════════════════════ */
.pub-admin-mode .pub-link-editable {
  position: relative;
  cursor: pointer;
  outline: 1px dashed rgba(39, 110, 241, 0.5);
  outline-offset: 2px;
}

.pub-admin-mode .pub-link-editable::after {
  content: "✎";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 8px;
  line-height: 1;
}

.pub-admin-mode .pub-link-editable:hover {
  outline-color: var(--blue);
  background: rgba(39, 110, 241, 0.1);
}

/* ══════════════════════════════════════════
   Publications admin — link edit popover
══════════════════════════════════════════ */
#pub-link-popover {
  display: none;
  position: absolute;
  z-index: 99998;
  width: 300px;
  background: #0f1c2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  font-family: "Inter", Arial, sans-serif;
  overflow: hidden;
}

#pub-link-popover.open {
  display: block;
}

.plp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.plp-title {
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.plp-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}

.plp-close svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.plp-close:hover { background: rgba(255,107,95,0.2); color: #ff8a82; }

.plp-body {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.plp-label {
  display: grid;
  gap: 5px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 700;
}

.plp-label input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: inherit;
  font-size: 13px;
}

.plp-label input:focus {
  border-color: var(--aqua);
  outline: 2px solid rgba(26,183,181,0.18);
}

.plp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.plp-btn-remove {
  font-size: 12px;
  font-weight: 700;
  color: #ff8a82;
  background: rgba(255,107,95,0.1);
  border: 1px solid rgba(255,107,95,0.2);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 150ms;
}

.plp-btn-remove:hover { background: rgba(255,107,95,0.22); }

.plp-btn-save {
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(39,110,241,0.3);
  transition: opacity 150ms;
}

.plp-btn-save:hover { opacity: 0.88; }

/* ══════════════════════════════════════════
   Publications admin — delete button on card
══════════════════════════════════════════ */
.pub-admin-mode .pub-item {
  position: relative;
}

.pub-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,107,95,0.25);
  background: rgba(255,107,95,0.08);
  color: #ff8a82;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, background 150ms ease;
  padding: 0;
}

.pub-item:hover .pub-delete-btn {
  opacity: 1;
}

.pub-delete-btn:hover {
  background: rgba(255,107,95,0.22);
}

.pub-delete-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════════════════
   Publications admin toolbar (reuse #admin-toolbar styles)
══════════════════════════════════════════ */
#pub-admin-toolbar {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #132033;
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.4);
  white-space: nowrap;
  font-family: "Inter", Arial, sans-serif;
}

#pub-admin-toolbar.active {
  display: flex;
}

/* ── Publications admin — editable text highlight (matches home page) ── */
body.pub-admin-mode [contenteditable="true"] {
  outline: 2px dashed rgba(39, 110, 241, 0.4);
  outline-offset: 2px;
  border-radius: 3px;
  cursor: text;
  transition: outline-color 150ms ease, background 150ms ease;
}

body.pub-admin-mode [contenteditable="true"]:hover {
  outline-color: rgba(39, 110, 241, 0.75);
  background: rgba(39, 110, 241, 0.04);
}

body.pub-admin-mode [contenteditable="true"]:focus {
  outline: 2px solid var(--blue);
  background: rgba(39, 110, 241, 0.05);
}

/* ══════════════════════════════════════════
   Add Publication Modal
══════════════════════════════════════════ */
#pub-add-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(10, 16, 28, 0.65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Inter", Arial, sans-serif;
}

#pub-add-modal.open {
  display: flex;
}

.pub-modal-card {
  width: min(680px, 100%);
  max-height: 90vh;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(22, 32, 51, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pub-modal-in 200ms ease;
}

@keyframes pub-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ── Modal header — looks like a pub card meta row ── */
.pub-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: linear-gradient(135deg, #f8fdff, #eff9f8);
}

.pub-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-modal-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--aqua), var(--blue));
}

.pub-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms, color 150ms;
  padding: 0;
  flex-shrink: 0;
}

.pub-modal-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.pub-modal-close:hover {
  background: rgba(255, 107, 95, 0.1);
  color: var(--coral);
  border-color: rgba(255, 107, 95, 0.3);
}

/* ── Modal body ── */
.pub-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  gap: 14px;
}

.pub-modal-body::-webkit-scrollbar { width: 5px; }
.pub-modal-body::-webkit-scrollbar-track { background: transparent; }
.pub-modal-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

/* ── Fields ── */
.pub-field {
  display: grid;
  gap: 5px;
}

.pub-field label {
  font-size: 12px;
  font-weight: 700;
  color: #314057;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pub-field input,
.pub-field textarea,
.pub-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color 150ms, outline 150ms;
  resize: vertical;
}

.pub-field input:focus,
.pub-field textarea:focus,
.pub-field select:focus {
  border-color: var(--aqua);
  outline: 3px solid rgba(26, 183, 181, 0.15);
}

.pub-field textarea {
  min-height: 90px;
  line-height: 1.6;
}

.pub-field-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.pub-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Links section divider ── */
.pub-field-section {
  font-size: 12px;
  font-weight: 800;
  color: #0c827f;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 -4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-field-section .pub-field-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

/* Required asterisk */
.req {
  color: var(--coral);
  font-weight: 900;
}

/* ── Modal footer ── */
.pub-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: #f8fbff;
}

.pub-modal-error {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  margin: 0;
  min-height: 18px;
}

.pub-modal-cancel {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  transition: background 150ms, color 150ms;
}

.pub-modal-cancel:hover {
  background: #f4f9fb;
  color: var(--ink);
}

.pub-modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(39, 110, 241, 0.28);
  transition: opacity 150ms, transform 150ms;
}

.pub-modal-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.pub-modal-submit svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (max-width: 680px) {
  .pub-field-row {
    grid-template-columns: 1fr;
  }

  .pub-modal-card {
    max-height: 95vh;
  }
}

/* ── Publications admin — edit button ── */
.pub-edit-btn {
  position: absolute;
  top: 12px;
  right: 46px; /* sits left of the delete button */
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(39, 110, 241, 0.25);
  background: rgba(39, 110, 241, 0.08);
  color: var(--blue);
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, background 150ms ease;
  padding: 0;
}

.pub-item:hover .pub-edit-btn {
  opacity: 1;
}

.pub-edit-btn:hover {
  background: rgba(39, 110, 241, 0.2);
}

.pub-edit-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════════════════
   Lab Members Page — PI, Toggle, Member Cards
══════════════════════════════════════════ */

/* PI centered block */
.pi-center {
  display: flex;
  justify-content: center;
  margin-bottom: 52px;
}

.pi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 100%;
  padding: 36px 40px 32px;
  background: linear-gradient(160deg, #ffffff, #eef9f7);
  border: 1px solid #caece6;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(22, 32, 51, 0.1);
}

.pi-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid white;
  box-shadow: 0 14px 32px rgba(22, 32, 51, 0.18);
  margin-bottom: 20px;
}

.pi-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}

.pi-role {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(39, 110, 241, 0.1), rgba(26, 183, 181, 0.14));
  color: #0d5c5a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.pi-bio {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Toggle bar */
.member-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.member-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: 99px;
  border: 2px solid var(--line);
  background: white;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(22, 32, 51, 0.06);
}

.member-toggle-btn:hover {
  border-color: rgba(26, 183, 181, 0.45);
  color: #0c827f;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 183, 181, 0.14);
}

.member-toggle-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  border-color: transparent;
  color: white;
  box-shadow: 0 12px 30px rgba(39, 110, 241, 0.28);
  transform: translateY(-2px);
}

.toggle-count {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  flex-shrink: 0;
}

.member-toggle-btn:not(.active) .toggle-count {
  background: var(--mist);
  color: var(--muted);
}

/* Panel visibility */
.member-panel {
  animation: panel-fade-in 0.35s ease both;
}

.member-panel.hidden {
  display: none;
}

@keyframes panel-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Current members grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 30px rgba(22, 32, 51, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 183, 181, 0.14);
  border-color: rgba(26, 183, 181, 0.35);
}

.member-avatar {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.member-info h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.member-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* Past members note */
.past-panel-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

/* Past members grid */
.past-members-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.past-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 20px rgba(22, 32, 51, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.past-member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(245, 184, 65, 0.18);
}

.past-member-card:nth-child(3n+2) { border-left-color: var(--aqua); }
.past-member-card:nth-child(3n+3) { border-left-color: var(--purple); }

.past-member-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.past-member-card:nth-child(3n+2) .past-member-avatar {
  background: linear-gradient(135deg, var(--aqua), var(--green));
}

.past-member-card:nth-child(3n+3) .past-member-avatar {
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.past-member-card span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 980px) {
  .past-members-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .members-grid {
    grid-template-columns: 1fr;
  }

  .past-members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pi-card {
    padding: 28px 24px;
  }

  .member-toggle-btn {
    padding: 0 20px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .past-members-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   Impact page — single centered full-width PI panel
══════════════════════════════════════════ */
.impact-single {
  display: flex;
  justify-content: center;
}

.impact-single .impact-feature {
  max-width: 820px;
  width: 100%;
  grid-row: auto;
}

/* ══════════════════════════════════════════
   Research cards — scientific figure images shown in full
══════════════════════════════════════════ */
.research-card img[src*="data-visualization"],
.research-card img[src*="genomics-lab"] {
  object-fit: contain;
  background: #f4f9fb;
  padding: 10px;
}

/* ══════════════════════════════════════════
   Mentorship page — image carousel
══════════════════════════════════════════ */
.mentorship-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1c1b;
  align-self: stretch;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.carousel-track {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 360px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  padding-bottom: 2px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .mentorship-carousel,
  .carousel-track {
    min-height: 260px;
  }
}

/* ══════════════════════════════════════════
   Contact page — centered card (no form)
══════════════════════════════════════════ */
.contact-card-center {
  display: flex;
  justify-content: center;
}

.contact-card-center .contact-info-card {
  max-width: 540px;
  width: 100%;
  height: auto;
}

/* ══════════════════════════════════════════
   News page — article card layout
══════════════════════════════════════════ */
.news-feed {
  display: grid;
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.news-article-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 48px rgba(22, 32, 51, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(22, 32, 51, 0.13);
}

.news-article-img {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #0d1c1b;
}

.news-article-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.news-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(19, 32, 51, 0.72);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.news-article-body {
  padding: 32px 36px 36px;
}

.news-article-body h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--ink);
}

.news-article-body p {
  color: #3a4e66;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Poster bullet list */
.news-poster-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 20px 22px;
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 4px solid var(--aqua);
}

.news-poster-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
}

.poster-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
}

.poster-dot.teal  { background: var(--aqua); }
.poster-dot.coral { background: var(--coral); }

.news-photo-caption {
  font-size: 13px !important;
  color: var(--muted) !important;
  font-style: italic;
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  .news-article-body {
    padding: 22px 20px 26px;
  }

  .news-article-img img {
    height: 260px;
  }
}

/* ══════════════════════════════════════════
   News page — horizontal sliding carousel
══════════════════════════════════════════ */
.news-carousel-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.news-carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.news-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.news-slide {
  flex: 0 0 100%;
  width: 100%;
  /* override the hover lift so the track doesn't jump */
  transition: box-shadow 0.3s ease;
}

.news-slide:hover {
  transform: none;
}

/* Prev / Next buttons */
.news-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 32, 51, 0.55);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-carousel-btn:hover {
  background: rgba(19, 32, 51, 0.85);
  transform: translateY(-50%) scale(1.1);
}

.news-prev { left: -20px; }
.news-next { right: -20px; }

/* Dot indicators */
.news-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.news-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.news-dot.active {
  background: var(--aqua);
  transform: scale(1.35);
}

/* Award highlight */
.news-award-highlight {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245,184,65,0.14), rgba(255,107,95,0.1));
  border: 1px solid rgba(245,184,65,0.35);
  font-size: 15px !important;
  color: var(--ink) !important;
}

/* Gold dot for Srusthi */
.poster-dot.gold { background: var(--gold); }

@media (max-width: 680px) {
  .news-prev { left: 4px; }
  .news-next { right: 4px; }

  .news-carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}


/* ===== ABOUT PAGE HERO LAYOUT ===== */

.about-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 60vh;
}

.about-content {
  max-width: 520px;
}

.about-large-title {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 24px 0 32px 0;
  letter-spacing: -0.02em;
}

.about-intro-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}

.about-visual-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-protein-image {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-protein-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-focus-tags {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.focus-tag {
  background: var(--paper);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  border-left: 4px solid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.focus-tag:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.focus-tag-teal {
  border-left-color: var(--aqua);
}

.focus-tag-blue {
  border-left-color: var(--blue);
}

.focus-tag-coral {
  border-left-color: var(--coral);
}

.focus-tag-purple {
  border-left-color: var(--purple);
}

/* Mobile responsiveness for about hero */
@media (max-width: 980px) {
  .about-hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-focus-tags {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 24px;
  }
  
  .about-content {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .about-large-title {
    font-size: 36px;
  }
  
  .about-focus-tags {
    gap: 12px;
  }
  
  .focus-tag {
    font-size: 13px;
    padding: 10px 16px;
  }
}


/* ===== HOME PAGE CONTENT LAYOUT ===== */

.home-hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 85vh;
  padding: 80px 0;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.home-hero-content {
  padding-top: 20px;
}

.home-hero-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin: 20px 0 40px 0;
  letter-spacing: -0.01em;
}

.home-research-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.home-card-teal {
  border-left-color: var(--aqua);
}

.home-card-coral {
  border-left-color: var(--coral);
}

.home-card-blue {
  border-left-color: var(--blue);
}

.home-card-purple {
  border-left-color: var(--purple);
}

.home-card-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.home-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--mist);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.home-badge-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.home-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.home-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.home-visual-main {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  background: #000;
}

.home-visual-main img {
  width: 100%;
  height: auto;
  display: block;
}

.home-floating-cards {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 100px;
  z-index: 2;
}

.home-float-card {
  background: var(--paper);
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px;
  max-width: 240px;
}

.home-float-top {
  margin-top: -60px;
}

.home-float-bottom {
  margin-bottom: -60px;
}

.home-float-badge {
  display: inline-block;
  background: var(--coral);
  color: var(--paper);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.home-float-badge-teal {
  background: var(--aqua);
}

.home-float-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.home-float-card small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Responsive home page */
@media (max-width: 980px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .home-floating-cards {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
  }
  
  .home-float-top,
  .home-float-bottom {
    margin: 0;
  }
  
  .home-visual-main {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .home-hero-section {
    padding: 48px 0;
  }
  
  .home-hero-title {
    font-size: 28px;
  }
  
  .home-card {
    padding: 20px;
  }
  
  .home-badge-label {
    font-size: 14px;
  }
  
  .home-floating-cards {
    flex-direction: column;
    gap: 16px;
  }
  
  .home-float-card {
    max-width: 100%;
  }
}
