/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   CSS CUSTOM PROPERTIES — DARK (default) / LIGHT
   ============================================================ */
:root {
  --bg:           #0f1117;
  --bg-card:      #1a1d27;
  --text:         #e8eaf0;
  --text-muted:   #8b8fa8;
  --accent:       #7c9ef5;
  --border:       #2a2d3d;
  --bg-rgb:       15, 17, 23;

  --nav-height:   64px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --trans:        0.2s ease;
}

[data-theme="light"] {
  --bg:           #f8f9fc;
  --bg-card:      #ffffff;
  --text:         #1a1d27;
  --text-muted:   #5a5e7a;
  --accent:       #3a5bd9;
  --border:       #e0e3ef;
  --bg-rgb:       248, 249, 252;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   GLOBAL
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  transition: background var(--trans), color var(--trans);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--trans);
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  line-height: 1.3;
}

ul { list-style: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans), border-color var(--trans);
}

.navbar.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(var(--bg-rgb), 0.88);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

/* Logo */
.nav-logo {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
  transition: color var(--trans);
}
.nav-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Nav link list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  position: relative;
  transition: color var(--trans), background var(--trans);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(124, 158, 245, 0.08);
  text-decoration: none;
}
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--trans), border-color var(--trans), color var(--trans);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

/* Moon/Sun visibility */
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MAIN & CONTAINER
   ============================================================ */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   TAB SECTIONS
   ============================================================ */
.tab-section {
  display: none;
}
.tab-section.active {
  display: block;
  animation: tabFadeIn 0.3s ease forwards;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  padding-top: 2rem;
  margin-bottom: 0.25rem;
}

.subsection-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   ABOUT TAB
   ============================================================ */
.about-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding-top: 2.5rem;
}

/* Left column */
.about-photo-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 220px;
}

.profile-photo-wrap {
  width: 220px;
  flex-shrink: 0;
}

.profile-photo {
  width: 220px;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow);
}

.profile-initials {
  width: 220px;
  height: 260px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* Social links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
  white-space: nowrap;
  overflow: hidden;
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.social-btn svg { flex-shrink: 0; }
.social-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-btn {
  background: rgba(124, 158, 245, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
[data-theme="light"] .cv-btn {
  background: rgba(58, 91, 217, 0.08);
}
.cv-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Right column */
.about-bio-col {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

.name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.bio p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.bio-bullets {
  list-style: disc;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bio-bullets li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* Awards */
.awards-section { margin-top: 0; }

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.awards-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.award-emoji {
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* ============================================================
   PUBLICATIONS TAB
   ============================================================ */
.equal-contrib-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.pub-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: box-shadow var(--trans), border-color var(--trans);
}
.pub-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(124, 158, 245, 0.25);
}

.pub-cover-wrap {
  flex-shrink: 0;
  padding-top: 24px; /* space for venue badge */
  width: 180px;
  height: 120px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: visible; /* clips badge to rounded corners */
}

.pub-cover {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--border);
}

.pub-cover-fallback {
  width: 180px;
  height: 120px;
  border-radius: var(--radius-sm);
  background: rgba(124, 158, 245, 0.1);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}
[data-theme="light"] .pub-cover-fallback {
  background: rgba(58, 91, 217, 0.07);
}

.pub-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}
.pub-title a {
  color: var(--text);
}
.pub-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.pub-authors {
  font-size: 0.845rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.55rem;
}

.pub-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.venue-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  background: rgba(124, 158, 245, 0.12);
  color: var(--accent);
  border: 1px solid rgba(124, 158, 245, 0.25);
  letter-spacing: 0.02em;
}
[data-theme="light"] .venue-badge {
  background: rgba(58, 91, 217, 0.08);
  border-color: rgba(58, 91, 217, 0.2);
}

.pub-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Abstract toggle button */
.abstract-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.abstract-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.toggle-arrow {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.22s ease;
  line-height: 1;
}
.abstract-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

/* Link buttons */
.link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: none;
  text-decoration: none;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.link-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.link-btn.disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}
.link-btn.small {
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
}

/* Collapsible abstract */
.abstract {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}
.abstract.open {
  max-height: 300px;
}
.abstract p {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0.75rem 0.85rem;
  margin-top: 0.6rem;
  background: rgba(124, 158, 245, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
[data-theme="light"] .abstract p {
  background: rgba(58, 91, 217, 0.04);
}

/* ============================================================
   TEACHING TAB
   ============================================================ */
.teaching-roles {
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.course-projects {}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.85rem;
  transition: box-shadow var(--trans);
}
.role-card:hover { box-shadow: var(--shadow); }

.role-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.45rem;
}

.role-title {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
}
.role-place {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
.role-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}
.role-course {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.role-desc {
  font-size: 0.845rem;
  color: var(--text-muted);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: box-shadow var(--trans);
}
.project-card:hover { box-shadow: var(--shadow); }

.project-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.project-course {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}
.project-term {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.project-desc {
  font-size: 0.845rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.15rem;
}

.project-actions {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

/* ============================================================
   MISC TAB
   ============================================================ */
.misc-section {
  padding-top: 2rem;
  margin-bottom: 0.5rem;
}
.misc-section:first-child { padding-top: 2rem; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -1.45rem;
  top: 0.38rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  z-index: 1;
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}
.timeline-role {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.timeline-advisor {
  font-size: 0.845rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.timeline-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.timeline-details li {
  font-size: 0.845rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.timeline-details li::before {
  content: '↳';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Skills */
.skills-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.skill-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.skill-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 130px;
  flex-shrink: 0;
  padding-top: 0.2rem;
  letter-spacing: 0.01em;
}

.skill-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color var(--trans), color var(--trans);
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Service list */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.service-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}
.service-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  top: 0.1rem;
}

/* Interests */
.interests {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.interest-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  transition: border-color var(--trans), color var(--trans);
}
.interest-pill:hover {
  border-color: var(--accent);
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Nav dropdown */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 199;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }

  .nav-link {
    display: block;
    padding: 0.65rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-links li:last-child .nav-link { border-bottom: none; }
  .nav-link.active::after { display: none; }

  /* About */
  .about-container {
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 1.75rem;
  }

  .about-photo-col {
    width: 100%;
    align-items: center;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 0.4rem;
  }
  .social-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
  }
  .social-btn span { font-size: 0.68rem; }

  .name { font-size: 1.65rem; }

  /* Publications */
  .pub-card {
    flex-direction: column;
    gap: 1rem;
  }
  .pub-cover-wrap { width: 100%; height: 180px; }
  .pub-cover { width: 100%; height: 180px; }
  .pub-cover-fallback { width: 100%; height: 180px; }

  /* Teaching */
  .projects-grid { grid-template-columns: 1fr; }

  .role-period { margin-left: 0; width: 100%; }

  /* Misc */
  .skill-row { flex-direction: column; gap: 0.4rem; }
  .skill-label { min-width: 0; }
}

/* ============================================================
   MISC TAB — personal sections
   ============================================================ */
.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-style: italic;
}

/* Meme grid */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.meme-card {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.meme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.meme-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: default;
  transition: border-color var(--trans);
}
.meme-placeholder:hover {
  border-color: var(--accent);
}

.meme-plus {
  font-size: 1.5rem;
  color: var(--border);
  line-height: 1;
  transition: color var(--trans);
}
.meme-placeholder:hover .meme-plus {
  color: var(--accent);
}

.meme-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Walk card */
.walk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.walk-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* Sister's painted portrait */
.sis-portrait-wrap {
  display: inline-block;
}
.sis-portrait {
  width: 200px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.sis-portrait-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.walk-btn {
  align-self: flex-start;
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(124, 158, 245, 0.08);
  font-weight: 500;
}
[data-theme="light"] .walk-btn {
  background: rgba(58, 91, 217, 0.06);
}
.walk-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 768px) {
  .meme-grid { grid-template-columns: repeat(2, 1fr); }
  .walk-card { max-width: 100%; }
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0 0;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-item:last-child { border-bottom: none; }

.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.05rem;
}

.news-content {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}
.news-content a {
  color: var(--accent);
}

/* ============================================================
   VENUE BADGE OVERLAY ON PUBLICATION COVER
   ============================================================ */
.venue-cover-badge {
  /* Full-width strip pinned to the top of the cover image */
  position: absolute;
  top: 5px; /* small offset from top edge for better visibility on rounded corners */
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  background: rgba(77, 77, 254, 0.677);
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  line-height: 1.4;
  /* no border-radius needed — parent overflow:hidden handles it */
}

/* ── Customisation guide ──────────────────────────────────────
   background  → change rgba(0,0,0,0.68) — lower alpha = more transparent
   color       → change #ffffff to any hex/var, e.g. var(--accent)
   font-size   → 0.6rem is compact; try 0.65rem–0.7rem for bigger text
   padding     → increase vertical padding (first value) for a taller bar
   letter-spacing → 0.1em gives a spread look; 0 for tighter
   text-transform → remove "uppercase" for mixed-case venue names
   ───────────────────────────────────────────────────────────── */

/* Video covers share the same sizing as image covers */
.pub-cover-video {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--border);
}

/* ============================================================
   AWARDS TAB
   ============================================================ */
.awards-full-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.award-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--bg-card);
  transition: background var(--trans);
}
.award-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.award-row:last-child  { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.award-row:hover       { background: color-mix(in srgb, var(--accent) 4%, var(--bg-card)); }

.award-emoji-lg {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.award-detail {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex: 1;
  flex-wrap: wrap;
}

.award-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.award-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ============================================================
   RESPONSIVE (continued)
   ============================================================ */
@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .pub-cover-video { width: 100%; height: 180px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .main      { padding: 0 1rem 4rem; }
}

/* ============================================================
   SPLIT EXPERIENCE TIMELINE (CV tab)
   ============================================================ */
.exp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  padding-top: 2rem;
  position: relative;
}

.exp-split::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.exp-col-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .exp-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .exp-split::after { display: none; }
  .exp-col + .exp-col { padding-top: 2rem; }
}

/* ============================================================
   NAME LEGAL LINE
   ============================================================ */
.name-legal {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.15rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   PUBLICATION YEAR GROUPS
   ============================================================ */
.pub-year-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1.5rem;
  align-items: start;
  margin-bottom: 1rem;
}

.pub-list {
  min-width: 0;
}

.pub-year-label {
  font-family: 'Lora', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.18;
  padding-top: 1.5rem;
  user-select: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pub-year-group {
    grid-template-columns: 1fr;
  }
  .pub-year-label {
    display: none;
  }
}

/* ============================================================
   FRIENDS SECTION
   ============================================================ */
.friends-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.9rem;
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  padding-left: 0;
}

.friend-item {
  font-size: 0.92rem;
  color: var(--text);
}
