/* =========================
   Base / Reset
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Clip the off-canvas mobile drawer so it can't be revealed by
     swiping/scrolling horizontally. Applied on the root so it does
     not break the sticky navbar. */
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #212529;
  background-color: #fafbfc;
  background-image: radial-gradient(1200px 400px at 100% -10%, rgba(181, 9, 172, 0.06), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* Korean: weight 300 renders far too thin for Hangul, so bump the
   base weight and use a proper Korean font stack. */
html[lang="ko"] body {
  font-weight: 400;
  font-family: 'Roboto', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
  color: #b509ac;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #8a0683;
  text-decoration: none;
}

/* =========================
   Navbar
   ========================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #212529;
}

.nav-brand:hover {
  color: #b509ac;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 4px 2px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #212529;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #b509ac;
}

/* Right cluster: nav links + theme toggle + (mobile) hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #212529;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* =========================
   Main Container
   ========================= */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* =========================
   Profile Header
   ========================= */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: 'Roboto Slab', serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #212529;
}

.profile-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 6px;
}

.profile-address {
  color: #6c757d;
  font-size: 1rem;
}

.profile-image {
  flex-shrink: 0;
}

.profile-image img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
  outline: 1px solid #ececf1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-image img:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(181, 9, 172, 0.18);
}

/* =========================
   Bio
   ========================= */
.bio {
  margin-bottom: 50px;
}

.bio p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #212529;
  line-height: 1.75;
}

/* Social icons */
.socials {
  list-style: none;
  display: flex;
  gap: 18px;
  margin-top: 16px;
  justify-content: flex-start;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 1.15rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: #ffffff;
  background: #b509ac;
  border-color: #b509ac;
  transform: translateY(-2px);
}

/* =========================
   Section headings
   ========================= */
section h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eceef1;
  color: #212529;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, #b509ac, #e879f5);
  border-radius: 2px;
}

/* =========================
   News
   ========================= */
.news {
  margin-bottom: 50px;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.news-table tr {
  border-bottom: 1px solid #f1f3f5;
  transition: background 0.15s ease;
}

.news-table tr:last-child {
  border-bottom: none;
}

.news-table tr:hover {
  background: rgba(181, 9, 172, 0.04);
}

.news-date {
  width: 110px;
  padding: 10px 12px 10px 14px;
  color: #b509ac;
  font-weight: 500;
  vertical-align: top;
  white-space: nowrap;
}

.news-item {
  padding: 12px 14px 12px 0;
  color: #212529;
  vertical-align: top;
}

/* =========================
   Publications
   ========================= */
.publications {
  margin-bottom: 50px;
}

.pub-note {
  font-size: 0.85rem;
  color: #6c757d;
  margin: -6px 0 18px;
}

/* Sub-tabs */
.pub-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 60px;
  z-index: 5;
  padding: 10px 0;
  margin-bottom: 8px;
  background: rgba(250, 251, 252, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.pub-subnav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6c757d;
  background: #ffffff;
  border: 1px solid #e3e5e9;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.pub-subnav a:hover {
  color: #b509ac;
  border-color: #d8a8e6;
}

.pub-subnav a.active {
  color: #ffffff;
  background: #b509ac;
  border-color: #b509ac;
}

.pub-theme {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto Slab', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b509ac;
  background: rgba(181, 9, 172, 0.08);
  border: 1px solid rgba(181, 9, 172, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 36px 0 18px;
  scroll-margin-top: 130px;
}

.pub-theme:first-of-type {
  margin-top: 12px;
}

/* Featured "Selected Publications" heading — filled accent + star */
.pub-theme.featured {
  color: #ffffff;
  background: #b509ac;
  border-color: #b509ac;
}

.pub-theme.featured::before {
  content: "\2605";
  font-size: 0.9em;
  line-height: 1;
}

.pub-item {
  display: flex;
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #ececf1;
  border-left: 3px solid transparent;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pub-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #ececf1;
  border-left-color: #b509ac;
}

.pub-img {
  flex-shrink: 0;
  width: 130px;
}

.pub-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.pub-details {
  flex: 1;
}

.pub-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #212529;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 4px;
}

.pub-authors strong {
  color: #212529;
  font-weight: 500;
}

.pub-venue {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 8px;
}

/* Publication type badge */
.pub-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid transparent;
  white-space: nowrap;
}

.type-conference {
  color: #1d4ed8;
  background: #e8effe;
  border-color: #c7d8fb;
}

.type-workshop {
  color: #7c3aed;
  background: #f1eafe;
  border-color: #ddccfb;
}

.type-journal {
  color: #047857;
  background: #e3f6ee;
  border-color: #bfe9d6;
}

.type-review {
  color: #b45309;
  background: #fdf2e1;
  border-color: #f6dfba;
}

.type-arxiv {
  color: #b31b1b;
  background: #fbe9e9;
  border-color: #f3c9c9;
}

.pub-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-link {
  font-size: 0.8rem;
  padding: 3px 10px;
  border: 1px solid #b509ac;
  border-radius: 3px;
  color: #b509ac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.pub-link:hover {
  background: #b509ac;
  color: #fff;
}

/* =========================
   Research question highlight
   ========================= */
.research-question {
  border-left: 4px solid #b509ac;
  background: linear-gradient(90deg, rgba(181, 9, 172, 0.06), rgba(181, 9, 172, 0));
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: #212529;
  margin: 8px 0 22px;
}

/* =========================
   Theme toggle button
   ========================= */
.theme-toggle {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-toggle:hover {
  color: #b509ac;
}

/* =========================
   Language toggle (KR / EN)
   ========================= */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #e3e5e9;
  border-radius: 999px;
  background: #ffffff;
  color: #6c757d;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lang-toggle:hover {
  color: #b509ac;
  border-color: #d8a8e6;
}

/* =========================
   News toggle button
   ========================= */
/* Recent News heading row: title on the left, toggle on the right */
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eceef1;
  position: relative;
}

.news-head h2 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-head h2::after {
  display: none;
}

.news-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, #b509ac, #e879f5);
  border-radius: 2px;
}

.news-toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid #d8a8e6;
  border-radius: 999px;
  color: #b509ac;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.news-toggle:hover {
  background: #b509ac;
  color: #fff;
  border-color: #b509ac;
}

/* =========================
   Projects
   ========================= */
.projects {
  margin-bottom: 50px;
}

.project-item {
  padding: 18px 22px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #ececf1;
  border-left: 3px solid #b509ac;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.project-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #212529;
}

.project-desc {
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.7;
}

.pub-title {
  transition: color 0.15s ease;
}

.pub-item:hover .pub-title {
  color: #b509ac;
}

/* =========================
   E-AI Project page (magazine / editorial)
   ========================= */

/* Masthead */
.ef-mast {
  text-align: center;
  padding: 18px 0 36px;
  border-bottom: 3px double #d9c4e1;
  margin-bottom: 48px;
}

.ef-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b509ac;
  margin-bottom: 22px;
}

.ef-headline {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 22px;
}

.ef-standfirst {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  color: #4b5159;
  max-width: 620px;
  margin: 0 auto 20px;
}

.ef-byline {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9098a1;
}

/* Lede / vision */
.ef-lede {
  max-width: 700px;
  margin: 0 auto 60px;
}

.ef-lede p {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.14rem;
  line-height: 1.9;
  color: #2b2f36;
  margin-bottom: 22px;
}

.ef-dropcap::first-letter {
  float: left;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 0.78;
  padding: 6px 14px 0 0;
  color: #b509ac;
}

.ef-pullquote {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.34;
  color: #1a1a1a;
  text-align: center;
  max-width: 760px;
  margin: 46px auto 6px;
  padding: 30px 10px;
  border-top: 1px solid #e6e8eb;
  border-bottom: 1px solid #e6e8eb;
}

.ef-pullquote::before { content: '\201C'; color: #b509ac; }
.ef-pullquote::after  { content: '\201D'; color: #b509ac; }

/* Section label (thin rules + centered caps) */
.ef-sectionlabel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 14px;
}

.ef-sectionlabel::before,
.ef-sectionlabel::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e3e5e9;
}

.ef-sectionlabel span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b509ac;
}

.ef-sectionintro {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  text-align: center;
  color: #6c757d;
  max-width: 640px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* Feature spreads (alternating) */
/* Sub-theme track header (editorial section break) */
.ef-track {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 46px 0 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
}

.ef-track-no {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #b509ac;
  letter-spacing: 0.05em;
}

.ef-track-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.ef-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 40px 0;
}

.ef-feature-media {
  background: #ffffff;
  border: 1px solid #ececf1;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}

.ef-feature-media img {
  display: block;
  width: 100%;
  height: auto;
}

.ef-feature.reverse .ef-feature-media {
  order: 2;
}

.ef-feature-no {
  font-family: 'Roboto Slab', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #edcef1;
  margin-bottom: 6px;
}

.ef-feature-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.22;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.ef-feature-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #3b4047;
  margin-bottom: 18px;
}

.ef-feature-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b509ac;
}

.ef-feature-link:hover {
  color: #8a0683;
}

/* Cite / BibTeX */
.ef-cite {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 3px double #d9c4e1;
}

.ef-bib {
  margin-bottom: 18px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfafc;
}

.ef-bib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f3eef6;
  border-bottom: 1px solid #e9e1ee;
}

.ef-bib-head span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a3a86;
}

.ef-copy {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b509ac;
  background: #ffffff;
  border: 1px solid #d8a8e6;
  border-radius: 999px;
  padding: 3px 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ef-copy:hover {
  background: #b509ac;
  color: #ffffff;
}

.ef-bib pre {
  margin: 0;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #2f3338;
  overflow-x: auto;
  white-space: pre;
}

@media (max-width: 768px) {
  .ef-headline {
    font-size: 2.2rem;
  }

  .ef-standfirst {
    font-size: 1.1rem;
  }

  .ef-pullquote {
    font-size: 1.3rem;
  }

  .ef-feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ef-feature.reverse .ef-feature-media {
    order: 0;
  }
}

/* =========================
   Footer
   ========================= */
.site-footer {
  border-top: 1px solid #e9ecef;
  padding: 24px;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }

  .profile-name {
    font-size: 2.25rem;
  }

  .profile-image img {
    width: 180px;
    height: 180px;
  }

  .socials {
    justify-content: center;
  }

  .nav-brand {
    font-size: 1rem;
  }

  /* Show hamburger; collapse nav links into a slide-in drawer */
  .nav-hamburger {
    display: inline-flex;
    align-items: center;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    max-width: 82vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #ffffff;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.14);
    padding: 76px 24px 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    z-index: 1200;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links #lang-toggle {
    margin-top: 12px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .pub-item {
    flex-direction: column;
  }

  .pub-img {
    width: 100%;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .news-date {
    width: 90px;
    font-size: 0.85rem;
  }
}

/* =========================
   Dark mode
   ========================= */
body,
.navbar,
.profile-name,
.profile-subtitle,
.profile-address,
.bio p,
section h2,
.news-item,
.news-date,
.project-title,
.project-desc,
.nav-brand,
.nav-links a,
.theme-toggle,
.site-footer {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] body {
  background-color: #121417;
  color: #e6e8eb;
}

[data-theme="dark"] .navbar {
  background-color: rgba(18, 20, 23, 0.95);
  border-bottom-color: #2a2e33;
}

[data-theme="dark"] .nav-hamburger {
  color: #e6e8eb;
}

@media (max-width: 768px) {
  [data-theme="dark"] .nav-links {
    background: #1a1d21;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.55);
  }
}

[data-theme="dark"] .nav-brand,
[data-theme="dark"] .profile-name,
[data-theme="dark"] .bio p,
[data-theme="dark"] section h2,
[data-theme="dark"] .news-item {
  color: #e6e8eb;
}

[data-theme="dark"] section h2 {
  border-bottom-color: #2a2e33;
}

[data-theme="dark"] .nav-links a {
  color: #9aa0a6;
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .nav-brand:hover {
  color: #e6e8eb;
}

[data-theme="dark"] .profile-subtitle,
[data-theme="dark"] .profile-address,
[data-theme="dark"] .news-date,
[data-theme="dark"] .socials a,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .site-footer {
  color: #9aa0a6;
}

[data-theme="dark"] .project-desc {
  color: #b5bbc2;
}

[data-theme="dark"] .news-table tr {
  border-bottom-color: #2a2e33;
}

[data-theme="dark"] .pub-item {
  border-bottom-color: #2a2e33;
}

[data-theme="dark"] .pub-img img {
  border-color: #2a2e33;
}

[data-theme="dark"] .pub-authors {
  color: #b5bbc2;
}

[data-theme="dark"] .pub-authors strong,
[data-theme="dark"] .pub-title {
  color: #e6e8eb;
}

[data-theme="dark"] .pub-venue {
  color: #9aa0a6;
}

[data-theme="dark"] .site-footer {
  border-top-color: #2a2e33;
}

[data-theme="dark"] .profile-image img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Accent links stay readable on dark background */
[data-theme="dark"] a {
  color: #e879f5;
}

[data-theme="dark"] a:hover {
  color: #f0abfc;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .socials a:hover {
  color: #e879f5;
}

[data-theme="dark"] .research-question {
  color: #e6e8eb;
  background: linear-gradient(90deg, rgba(232, 121, 245, 0.1), rgba(232, 121, 245, 0));
  border-left-color: #e879f5;
}

[data-theme="dark"] .pub-theme {
  color: #e879f5;
  background: rgba(232, 121, 245, 0.1);
  border-color: rgba(232, 121, 245, 0.25);
}

[data-theme="dark"] .pub-theme.featured {
  color: #121417;
  background: #e879f5;
  border-color: #e879f5;
}

[data-theme="dark"] .pub-note {
  color: #9aa0a6;
}

[data-theme="dark"] .lang-toggle {
  background: #1a1d21;
  border-color: #2a2e33;
  color: #9aa0a6;
}

[data-theme="dark"] .lang-toggle:hover {
  color: #e879f5;
  border-color: #6b3a7a;
}

[data-theme="dark"] .type-conference {
  color: #93b4fb;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
}

[data-theme="dark"] .type-workshop {
  color: #c4a6f9;
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .type-journal {
  color: #6ee7b7;
  background: rgba(4, 120, 87, 0.18);
  border-color: rgba(4, 120, 87, 0.4);
}

[data-theme="dark"] .type-review {
  color: #fbbf24;
  background: rgba(180, 83, 9, 0.18);
  border-color: rgba(180, 83, 9, 0.4);
}

[data-theme="dark"] .type-arxiv {
  color: #f59b9b;
  background: rgba(179, 27, 27, 0.2);
  border-color: rgba(179, 27, 27, 0.45);
}

[data-theme="dark"] .pub-subnav {
  background: rgba(18, 20, 23, 0.9);
}

[data-theme="dark"] .pub-subnav a {
  background: #1a1d21;
  border-color: #2a2e33;
  color: #9aa0a6;
}

[data-theme="dark"] .pub-subnav a:hover {
  color: #e879f5;
  border-color: #6b3a7a;
}

[data-theme="dark"] .pub-subnav a.active {
  color: #121417;
  background: #e879f5;
  border-color: #e879f5;
}

[data-theme="dark"] .pub-item,
[data-theme="dark"] .project-item {
  background: #1a1d21;
  border-color: #2a2e33;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-item {
  border-left-color: #e879f5;
}

[data-theme="dark"] .pub-item:hover,
[data-theme="dark"] .project-item:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .pub-item:hover {
  border-left-color: #e879f5;
}

[data-theme="dark"] .pub-item:hover .pub-title {
  color: #e879f5;
}

[data-theme="dark"] .project-title {
  color: #e6e8eb;
}

[data-theme="dark"] .socials a {
  background: #1a1d21;
  border-color: #2a2e33;
  color: #9aa0a6;
}

[data-theme="dark"] .socials a:hover {
  background: #e879f5;
  border-color: #e879f5;
  color: #121417;
}

[data-theme="dark"] .profile-image img {
  border-color: #1a1d21;
  outline-color: #2a2e33;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .news-date {
  color: #e879f5;
}

[data-theme="dark"] .news-table tr:hover {
  background: rgba(232, 121, 245, 0.06);
}

[data-theme="dark"] section h2::after {
  background: linear-gradient(90deg, #b509ac, #e879f5);
}

[data-theme="dark"] .news-head {
  border-bottom-color: #2a2e33;
}

[data-theme="dark"] .news-toggle {
  border-color: #6b3a7a;
  color: #e879f5;
}

[data-theme="dark"] .news-toggle:hover {
  background: #e879f5;
  color: #121417;
  border-color: #e879f5;
}

/* E-AI page (magazine) — dark */
[data-theme="dark"] .ef-mast,
[data-theme="dark"] .ef-cite {
  border-color: #4a3552;
}

[data-theme="dark"] .ef-headline,
[data-theme="dark"] .ef-feature-title,
[data-theme="dark"] .ef-pullquote {
  color: #f1f3f5;
}

[data-theme="dark"] .ef-standfirst {
  color: #aeb4bb;
}

[data-theme="dark"] .ef-byline {
  color: #7c828b;
}

[data-theme="dark"] .ef-lede p,
[data-theme="dark"] .ef-feature-desc {
  color: #c4cad1;
}

[data-theme="dark"] .ef-pullquote {
  border-top-color: #2a2e33;
  border-bottom-color: #2a2e33;
}

[data-theme="dark"] .ef-sectionlabel::before,
[data-theme="dark"] .ef-sectionlabel::after {
  background: #2a2e33;
}

[data-theme="dark"] .ef-sectionintro {
  color: #9aa0a6;
}

[data-theme="dark"] .ef-track {
  border-bottom-color: #e6e8eb;
}

[data-theme="dark"] .ef-track-name {
  color: #f1f3f5;
}

[data-theme="dark"] .ef-feature-no {
  color: #4a2f52;
}

/* Keep figures on a light surface so the white-background charts stay legible */
[data-theme="dark"] .ef-feature-media {
  background: #eef0f3;
  border-color: #2a2e33;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .ef-bib {
  background: #15171a;
  border-color: #2a2e33;
}

[data-theme="dark"] .ef-bib-head {
  background: #221a27;
  border-bottom-color: #34273b;
}

[data-theme="dark"] .ef-bib-head span {
  color: #d7a9e2;
}

[data-theme="dark"] .ef-copy {
  background: #1a1d21;
  border-color: #6b3a7a;
  color: #e879f5;
}

[data-theme="dark"] .ef-copy:hover {
  background: #e879f5;
  color: #121417;
}

[data-theme="dark"] .ef-bib pre {
  color: #c4cad1;
}

[data-theme="dark"] body {
  background-image: radial-gradient(1200px 400px at 100% -10%, rgba(232, 121, 245, 0.08), transparent 60%);
}
