/* ═══════════════════════════════════════════
   DESIGN TOKENS — Light professional theme
   Warm white base, slate text, teal/indigo accents
═══════════════════════════════════════════ */
:root {
  --bg:         #f8f9fb;
  --bg-alt:     #f0f2f7;
  --surface:    #ffffff;
  --border:     #e2e6ef;
  --text:       #1a2236;
  --text-muted: #5a6a88;
  --text-light: #8494b0;

  --teal:       #0d9488;
  --teal-light: #e6f7f6;
  --blue:       #2563eb;
  --blue-light: #eff4fe;
  --orange:     #d97706;
  --orange-light:#fef3e2;
  --purple:     #7c3aed;
  --purple-light:#f3f0ff;
  --green:      #16a34a;
  --green-light:#f0fdf4;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       8px;
  --shadow:       0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 2rem; }

/* ═══════ NAV ═══════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,249,251,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 2rem;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--text); letter-spacing: -0.01em;
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text); }

.coming-soon-note {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  padding: 3rem 0;
}

/* ═══════ HERO ═══════ */
.hero {
  padding: 5rem 0 4rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.hero-photo {
  width: 240px; height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.1;
  color: var(--text); margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.hero-tagline {
  font-size: 0.9rem; color: var(--text-muted);
  margin-bottom: 1.5rem; font-weight: 500;
}
.hero-bio {
  font-size: 0.97rem; color: #374560;
  line-height: 1.85; max-width: 680px; margin-bottom: 0.9rem;
}
.hero-bio em { color: var(--teal); font-style: normal; font-weight: 500; }
.hero-bio strong { color: var(--text); font-weight: 600; }

.hero-bio-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  margin-top: 0.25rem;
}

.focus-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.focus-list li { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: baseline; gap: 0.6rem; }

.tag {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px; padding: 0.15rem 0.5rem; white-space: nowrap; flex-shrink: 0;
}
.tag-teal   { background: var(--teal-light);   color: var(--teal); }
.tag-blue   { background: var(--blue-light);   color: var(--blue); }
.tag-orange { background: var(--orange-light); color: var(--orange); }
.tag-purple { background: var(--purple-light); color: var(--purple); }

.hero-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  padding: 0.55rem 1.25rem; border-radius: var(--radius); cursor: pointer;
  transition: all 0.15s; border: none; display: inline-block;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0a7a70; color: #fff; }
.btn-outline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }

/* ═══════ SECTIONS ═══════ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 0.75rem;
  border-bottom: 2px solid var(--border); padding-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 700; color: var(--text); letter-spacing: -0.02em;
}
.scholar-badge {
  font-size: 0.8rem; font-weight: 600; color: var(--teal);
  background: var(--teal-light); padding: 0.3rem 0.8rem;
  border-radius: 20px; white-space: nowrap;
}
.scholar-badge:hover { color: var(--blue); background: var(--blue-light); }

/* ═══════ PUBLICATION GROUPS ═══════ */
.pub-group { margin-bottom: 3rem; }
.pub-group-label {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 4px;
  display: inline-block; margin-bottom: 1.25rem;
}
.label-teal   { background: var(--teal-light);   color: var(--teal);   border-left: 3px solid var(--teal); }
.label-blue   { background: var(--blue-light);   color: var(--blue);   border-left: 3px solid var(--blue); }
.label-orange { background: var(--orange-light); color: var(--orange); border-left: 3px solid var(--orange); }
.label-green  { background: var(--green-light);  color: var(--green);  border-left: 3px solid var(--green); }
.label-purple { background: var(--purple-light); color: var(--purple); border-left: 3px solid var(--purple); }

/* Publication row — figure left, text right */
.pub-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.pub-row:hover { box-shadow: var(--shadow); border-color: #c8d4e8; }

/* Full-width single-column pub row */
.pub-row-full {
  grid-template-columns: 1fr;
}

/* Slim rows (2 columns of text, no figure) */
.pub-row-slim {
  grid-template-columns: 1fr 1fr;
}

.pub-figure {
  display: flex; align-items: flex-start;
}
.pub-figure img {
  width: 100%; border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 280px;
}

.pub-venue {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
/* Journal name in teal */
.pub-journal { color: var(--teal); font-weight: 600; }
/* Year / citations in muted */
.pub-meta-info { color: var(--text-light); }
/* DOI/link inline */
.pub-venue a { color: var(--blue); font-weight: 600; font-size: 0.78rem; }
.pub-venue a:hover { color: var(--teal); }

/* Author line */
.pub-authors {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 0.4rem; line-height: 1.6;
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.author-me {
  font-weight: 700; color: var(--teal);
  background: var(--teal-light);
  padding: 0.05rem 0.4rem; border-radius: 3px;
  font-size: 0.82rem;
}
.author-other { color: var(--text-muted); }

/* First-author badge — shown inline near authors */
.first-author-badge {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: #dcfce7; color: #15803d;
  border: 1px solid #86efac; border-radius: 4px;
  padding: 0.1rem 0.5rem; white-space: nowrap;
}
.coauthor-badge {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--blue-light); color: var(--blue);
  border: 1px solid #bfdbfe; border-radius: 4px;
  padding: 0.1rem 0.5rem; white-space: nowrap;
}

.pub-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.4; margin-bottom: 0.6rem;
}
.pub-desc {
  font-size: 0.9rem; color: #4a5a78; line-height: 1.8; margin-bottom: 0.5rem;
}
.pub-methods {
  font-size: 0.82rem; margin-bottom: 0.75rem; line-height: 1.6;
}
.pub-methods strong { color: var(--text-muted); font-weight: 600; }
.pub-methods span { color: var(--purple); font-weight: 500; }

.pub-links { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.25rem; }
.pub-links a {
  font-size: 0.78rem; font-weight: 600; color: var(--teal);
  background: var(--teal-light); padding: 0.2rem 0.6rem; border-radius: 4px;
}
.pub-links a:hover { color: var(--blue); background: var(--blue-light); }
.pub-role-badge {
  font-size: 0.72rem; color: var(--text-light);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.15rem 0.5rem; font-style: italic;
}
.mentorship-badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; background: #fef3c7; color: #b45309;
  border-radius: 4px; padding: 0.1rem 0.45rem; margin-left: 0.4rem;
  vertical-align: middle;
}

/* ═══════ CV ═══════ */
.cv-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem;
}
.cv-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.cv-block-wide { grid-column: 1 / -1; }
.cv-heading {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.cv-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.cv-list li { font-size: 0.925rem; }
.cv-list strong { color: var(--text); font-weight: 600; }
.cv-where { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.1rem; }
.cv-note  { display: block; font-size: 0.8rem; color: var(--text-light); font-style: italic; margin-top: 0.15rem; }

.skills-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-size: 0.78rem; font-weight: 500; padding: 0.25rem 0.7rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-muted);
}
.cv-download { text-align: center; padding-top: 0.5rem; }

/* ═══════ CONTACT ═══════ */
.contact-section { text-align: center; }
.contact-intro {
  font-size: 0.95rem; color: var(--text-muted); max-width: 520px;
  margin: 0 auto 2rem; line-height: 1.7;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; max-width: 780px; margin: 0 auto;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm); color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.contact-card:hover {
  box-shadow: var(--shadow); border-color: var(--teal);
  transform: translateY(-2px); color: var(--text);
}
.contact-label {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.contact-val { font-size: 0.82rem; color: var(--text-muted); }

/* ═══════ FOOTER ═══════ */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 1.5rem 0; text-align: center;
}
.footer p { font-size: 0.78rem; color: var(--text-light); }
.footer a { color: var(--text-light); }
.footer a:hover { color: var(--teal); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { width: 160px; height: 160px; }
  .pub-row { grid-template-columns: 1fr; }
  .pub-row-slim { grid-template-columns: 1fr; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-block-wide { grid-column: 1; }
  .cv-block-wide { grid-column: 1; }
}
@media (max-width: 580px) {
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 58px; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
  .section-header { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══ STRUCTURED SKILLS GRID ═══ */
.skills-grid-structured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.skill-group { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-group-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-size: 0.78rem; font-weight: 500; padding: 0.25rem 0.7rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-muted);
}

/* ═══ PUBLICATION TABS ═══ */
.pub-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2rem;
}
.pub-tab {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  padding: 0.45rem 1rem; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); transition: all 0.15s;
}
.pub-tab:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.pub-tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ═══ AUTHOR HIGHLIGHTING ═══ */
.pub-authors {
  font-size: 0.78rem; color: var(--text-light);
  margin-bottom: 0.5rem; line-height: 1.5;
}
.author-me {
  font-weight: 700; color: var(--teal);
  background: var(--teal-light);
  padding: 0.05rem 0.35rem; border-radius: 3px;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1; transform: none; transition: none;
  }
}

/* ═══════════════════════════════════════════
   CAREER TIMELINE
═══════════════════════════════════════════ */
.timeline-wrap {
  margin-bottom: 3rem;
}
.timeline {
  position: relative;
  padding: 0.5rem 0 0.5rem 0;
}
/* vertical centre line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--blue), var(--purple));
  transform: translateX(-50%);
  opacity: 0.25;
}

.tl-item {
  display: flex;
  width: 50%;
  padding: 0 2.5rem 1.75rem 0;
  position: relative;
  box-sizing: border-box;
}
/* odd items: left side */
.tl-item.reveal-left {
  align-self: flex-start;
  margin-left: 0;
  text-align: right;
  flex-direction: row-reverse;
}
/* even items: right side */
.tl-item.reveal-right {
  align-self: flex-start;
  margin-left: 50%;
  padding: 0 0 1.75rem 2.5rem;
  text-align: left;
}

.tl-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px currentColor;
  flex-shrink: 0;
  position: absolute;
  top: 4px;
  z-index: 1;
}
.tl-item.reveal-left .tl-dot  { right: -6.5px; }
.tl-item.reveal-right .tl-dot { left: -6.5px; }

.dot-navy   { background: #1a2236; color: #1a2236; }
.dot-teal   { background: var(--teal); color: var(--teal); }
.dot-blue   { background: var(--blue); color: var(--blue); }
.dot-orange { background: var(--orange); color: var(--orange); }
.dot-purple { background: var(--purple); color: var(--purple); }

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}
.tl-item.reveal-left .tl-content  { margin-right: 0.75rem; }
.tl-item.reveal-right .tl-content { margin-left: 0.75rem; }

.tl-year {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-light);
}
.tl-content strong {
  font-family: var(--font-display); font-size: 0.88rem;
  font-weight: 600; color: var(--text); line-height: 1.3;
}
.tl-org {
  font-size: 0.78rem; color: var(--text-muted);
}
.tl-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: 4px;
  padding: 0.15rem 0.5rem; align-self: flex-start;
  margin-top: 0.15rem;
}
/* reuse existing tag colours */
.tl-item.reveal-left .tl-tag { align-self: flex-end; }

/* ── Responsive: stack timeline on mobile ── */
@media (max-width: 760px) {
  .timeline::before { left: 16px; }
  .tl-item.reveal-left,
  .tl-item.reveal-right {
    width: 100%; margin-left: 0;
    padding: 0 0 1.5rem 3rem;
    text-align: left;
    flex-direction: row;
  }
  .tl-item.reveal-left .tl-dot,
  .tl-item.reveal-right .tl-dot { left: 10px; right: auto; }
  .tl-item.reveal-left .tl-content,
  .tl-item.reveal-right .tl-content { margin-left: 0.5rem; margin-right: 0; }
  .tl-item.reveal-left .tl-tag { align-self: flex-start; }
  .tl-content { max-width: 100%; }
}

/* ═══ FEATURED (FIRST-AUTHOR) PUB CARDS ═══ */
.featured-pub {
  border-left: 3px solid var(--teal);
  background: linear-gradient(to right, rgba(13,148,136,0.03) 0%, var(--surface) 60%);
}
.featured-pub:hover {
  border-left-color: var(--teal);
  border-color: var(--teal);
}

/* CV request note */
.cv-request-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
}
.cv-request-note a { color: var(--teal); font-weight: 500; }


/* ═══ HERO SIDEBAR (Jiaxin Pei style) ═══ */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}
.hero-photo {
  width: 190px; height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-sidebar-info {
  width: 100%;
  text-align: center;
}
.hero-name-side {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.hero-role-side {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  padding: 0 0.25rem;
}
.sidebar-links li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.si-icon {
  font-size: 0.85rem;
  color: var(--teal);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--teal); }
.sidebar-nationality {
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  text-align: center;
}
.sidebar-nationality strong {
  font-weight: 700;
  color: var(--text);
}
.sidebar-cv-note {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
}

/* Remove old hero-name from text col (now in sidebar) */
.hero-name { display: none; }
.hero-tagline { display: none; }
.hero-links { display: none; }

/* Responsive sidebar */
@media (max-width: 860px) {
  .hero-sidebar {
    flex-direction: row;
    align-items: flex-start;
    position: static;
    gap: 1.5rem;
  }
  .hero-sidebar-info { text-align: left; }
  .hero-photo { width: 110px; height: 110px; }
  .sidebar-links { gap: 0.4rem; }
}
@media (max-width: 580px) {
  .hero-sidebar {
    flex-direction: column;
    align-items: center;
  }
  .hero-sidebar-info { text-align: center; }
  .sidebar-links { align-items: center; }
}

/* ═══ BIO TRAIL BULLETS ═══ */
.bio-trail {
  list-style: none;
  margin: 1rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0;
}
.bio-trail li {
  font-size: 0.92rem;
  color: #374560;
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
}
.bio-trail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.bio-trail li strong {
  color: var(--text);
  font-weight: 600;
}

/* ═══ SIDEBAR SVG ICONS — brand colors ═══ */
.si-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex-shrink: 0;
}
.si-icon svg { display: block; }

.si-email   { color: #6b7280; }   /* neutral grey */
.si-scholar { color: #4285F4; }   /* Google blue */
.si-github  { color: #24292e; }   /* GitHub black */
.si-linkedin{ color: #0A66C2; }   /* LinkedIn blue */


/* ═══ BIO TRAIL DATE BADGE ═══ */
.bio-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 4px;
  padding: 0.05rem 0.45rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}
