/* =========================================================
   Hyunchul Park — personal site
   Traditional academic style (à la Jon Barron / al-folio)
   No gradients, no cards, no chips. Just text.
   ========================================================= */

/* ---------- Topnav extra controls (theme toggle) ---------- */
.nav-controls {
  display: inline-flex;
  gap: 8px;
  margin-left: 14px;
  align-items: center;
}
.nav-btn {
  background: transparent;
  border: 1px solid #d4dbe6;
  color: #555;
  font: inherit;
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.3;
}
.nav-btn:hover { background: #f4f8fc; color: #004EA2; border-color: #004EA2; }
.nav-btn .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; fill: currentColor; }
.nav-btn .icon-sun { display: none; }
html.dark .nav-btn .icon-sun { display: inline-block; }
html.dark .nav-btn .icon-moon { display: none; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Click-to-copy email. It is a real mailto link so it stays reachable by
   keyboard and assistive tech; the script intercepts the click to copy. */
.copy-email,
.copy-email:link,
.copy-email:visited {
  cursor: pointer;
  color: inherit;
  border-bottom: 1px dotted #aaa;
  transition: color .15s, border-color .15s;
}
.copy-email:hover {
  color: #004EA2;
  border-bottom-color: #004EA2;
  text-decoration: none;
}
.copy-email.copied { color: #0d9488; border-bottom-color: #0d9488; }

/* Auto-loaded news preview placeholder */
#news-preview:empty::before {
  content: "Loading recent news…";
  display: block;
  color: #999;
  font-size: .9rem;
  padding: 8px 0;
}

/* Last updated badge */
.last-updated {
  margin-top: 6px;
  font-size: .78rem;
  color: #aaa;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR",
               "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

a {
  color: #004EA2;
  text-decoration: none;
}
a:hover { text-decoration: underline; color: #003478; }
a:visited { color: #004EA2; }

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

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: #111;
  margin: 0 0 .5em;
}
h1 { font-size: 1.7rem; font-weight: 700; }
h2 {
  font-size: 1.15rem;
  margin: 2.2em 0 .8em;
  padding-bottom: .25em;
  border-bottom: 2px solid #004EA2;
  letter-spacing: .01em;
}
h3 { font-size: 1rem; margin: 1.4em 0 .4em; color: #004EA2; }

p { margin: 0 0 .9em; }

ul, ol { margin: 0 0 .9em; padding-left: 1.4em; }
li { margin: .15em 0; }

hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 2em 0;
}

em { color: #444; }

/* ---------- Layout ---------- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top nav ---------- */
.topnav {
  padding: 18px 0 0;
  font-size: .95rem;
}
.topnav .nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  justify-content: flex-end;
}
.topnav a {
  color: #444;
  padding: 2px 0;
}
.topnav a:hover { color: #004EA2; text-decoration: underline; }
.topnav a.active { color: #111; font-weight: 600; }

/* ---------- Header (photo + bio) ---------- */
.profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  margin: 28px 0 8px;
}
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #e8eff8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #004EA2;
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { margin: 0 0 .3em; }
.profile-affil { color: #555; margin: 0 0 .8em; font-size: 1rem; }
.profile-affil a { color: #004EA2; }
.profile-bio { font-size: 1rem; color: #333; }
.profile-bio p:last-child { margin-bottom: 0; }
.profile-links {
  margin-top: .8em;
  font-size: .95rem;
  color: #555;
}
.profile-links a { margin-right: 14px; }
.profile-links a:last-child { margin-right: 0; }

/* Icon link buttons (used in profile-links) */
.icon-links {
  display: inline-flex;
  gap: 8px;
  margin-left: 12px;
  vertical-align: middle;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d4dbe6;
  border-radius: 50%;
  color: #555;
  background: #fff;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.icon-link:hover,
.icon-link:focus-visible {
  background: #004EA2;
  color: #fff;
  border-color: #004EA2;
  text-decoration: none;
  transform: translateY(-1px);
}
.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
.icon-link:visited { color: #555; }
.icon-link:visited:hover { color: #fff; }

@media (max-width: 600px) {
  .profile { grid-template-columns: 1fr; gap: 16px; }
  .profile-photo { width: 140px; height: 140px; }
}

/* ---------- Main content blocks ---------- */
main > h1 { margin-top: 28px; }

main { padding-bottom: 60px; }

.section { margin-top: 8px; }

.note { color: #666; font-size: .92rem; }
.muted { color: #888; }
.footnote {
  color: #777;
  font-size: .88rem;
  font-style: italic;
  margin-top: .4em;
}

/* ---------- News list (simple, dated) ---------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .97rem;
}
.news-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.news-list li:last-child { border-bottom: none; }
.news-list .news-date {
  color: #777;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news-list .news-text { color: #333; }
.news-list .news-text a { color: #004EA2; }

@media (max-width: 600px) {
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .news-list .news-date { font-size: .88rem; }
}

/* ---------- Carousel (multi-image news entry) ---------- */
.carousel {
  position: relative;
  margin: 10px 0 4px;
  max-width: 540px;
  user-select: none;
}
.carousel-stage {
  position: relative;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.carousel-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .25s ease;
}
.carousel-stage img.active { opacity: 1; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .9);
  border: 1px solid #ddd;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font: 600 18px/1 system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity .15s, background .15s;
}
.carousel-btn:hover { background: #fff; }
.carousel:hover .carousel-btn,
.carousel:focus-within .carousel-btn { opacity: 1; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:focus-visible { opacity: 1; outline: 2px solid #004EA2; outline-offset: 2px; }

.carousel-counter {
  font-size: .82rem;
  color: #888;
  margin-top: 6px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .carousel-btn { opacity: 1; } /* always show on touch devices */
}

/* ---------- Publications ---------- */
.pub {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  margin: 14px 0 18px;
  padding-left: 14px;
  border-left: 3px solid #d4dbe6;
  align-items: start;
}
.pub-fig {
  width: 130px;
  height: 95px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: .72rem;
  color: #999;
  text-align: center;
  padding: 4px;
  font-style: italic;
}
.pub-fig img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s; }

/* Larger figure variant for a specific publication */
.pub.fig-lg { grid-template-columns: 220px 1fr; }
.pub.fig-lg .pub-fig { width: 220px; height: 160px; }

/* Zoom the image inside the holder (holder size unchanged) */
.pub.fig-zoom .pub-fig img { transform: scale(1.35); }
.pub-body { min-width: 0; }
@media (max-width: 600px) {
  /* .pub.fig-lg is more specific than .pub, so it needs its own reset here
     or the 220px figure column survives and crushes the text beside it. */
  .pub,
  .pub.fig-lg { grid-template-columns: 1fr; }
  .pub-fig,
  .pub.fig-lg .pub-fig { width: 100%; }
  .pub-fig { height: 120px; }
  .pub.fig-lg .pub-fig { height: 180px; }
}

/* ---------- Per-theme concept figure ---------- */
.theme-fig {
  margin: 14px auto 22px;
  max-width: 560px;
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.theme-fig img,
.theme-fig .fig-placeholder {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
}
.theme-fig .fig-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-style: italic;
  font-size: .9rem;
}
.theme-fig figcaption {
  padding: 10px 14px;
  font-size: .85rem;
  color: #666;
  font-style: italic;
  border-top: 1px solid #ececec;
  background: #fff;
}

.pub-title { font-weight: 600; color: #111; margin: 0 0 .2em; }
.pub-authors { color: #444; font-size: .95rem; margin: 0 0 .15em; }
.pub-authors .me { font-weight: 700; }
.pub-venue { color: #666; font-size: .92rem; font-style: italic; margin: 0 0 .25em; }
.pub-links { font-size: .9rem; }
.pub-links a {
  margin-right: 12px;
  color: #004EA2;
}

/* ---------- CV-style entry list ---------- */
.entries {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .97rem;
}
.entries > li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 6px 0;
}
.entries .e-date {
  color: #777;
  font-variant-numeric: tabular-nums;
}
.entries .e-title { color: #222; }
.entries .e-meta { color: #666; font-size: .92rem; }

@media (max-width: 600px) {
  .entries > li { grid-template-columns: 1fr; gap: 2px; }
  .entries .e-date { font-size: .88rem; }
}

/* ---------- Research interest blocks (homepage) ---------- */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0 4px;
}
.interest-card {
  border: 1px solid #ececec;
  border-left: 3px solid #004EA2;
  padding: 14px 16px;
  border-radius: 0 4px 4px 0;
  background: #fff;
}
.interest-card h3 {
  font-size: .98rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #004EA2;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
}
.interest-card p {
  font-size: .9rem;
  color: #555;
  margin: 0;
  line-height: 1.45;
}

/* When .interest-card is itself a link (overview cards) */
a.interest-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-left-color .15s, background .15s;
}
a.interest-card:hover {
  border-left-color: #003478;
  background: #f4f8fc;
  text-decoration: none;
}
a.interest-card:hover h3 { text-decoration: underline; }
a.interest-card h3 { color: #004EA2; }

/* ---- Per-topic colors (AV = blue, Humanoid = indigo, Human = teal) ---- */
/* AV: KAIST blue */
.interest-card.t-av { border-left-color: #004EA2; }
.interest-card.t-av h3 { color: #004EA2; }
a.interest-card.t-av:hover { border-left-color: #003478; background: #f4f8fc; }

/* Humanoid: indigo */
.interest-card.t-humanoid { border-left-color: #6b46c1; }
.interest-card.t-humanoid h3 { color: #6b46c1; }
a.interest-card.t-humanoid:hover { border-left-color: #553c9a; background: #f5f1fb; }

/* Human factors: teal */
.interest-card.t-human { border-left-color: #0d9488; }
.interest-card.t-human h3 { color: #0d9488; }
a.interest-card.t-human:hover { border-left-color: #0f766e; background: #ecfdf6; }

/* ---------- Research topic wrapper (colored card per theme) ---------- */
.topic {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid #ccc;
  border-radius: 0 6px 6px 0;
  background: #fafbfd;
}
.topic > h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.topic > h3 { margin-top: 1.6em; }
.topic.t-av {
  border-left-color: #004EA2;
  background: #f5f9fd;
}
.topic.t-av > h2 { color: #004EA2; }
.topic.t-humanoid {
  border-left-color: #6b46c1;
  background: #f7f4fc;
}
.topic.t-humanoid > h2 { color: #6b46c1; }
.topic.t-human {
  border-left-color: #0d9488;
  background: #f0faf8;
}
.topic.t-human > h2 { color: #0d9488; }

/* Diagrams inside topic cards: lighten the box bg so it sits on the tint */

@media (max-width: 600px) {
  .topic { padding: 18px 18px; }
}

/* ---------- Academic journey (horizontal milestone timeline) ---------- */
.journey {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin: 26px 0 32px;
  padding: 24px 18px 14px;
  border: 1px solid #ececec;
  border-radius: 4px;
  background: #fafbfd;
}
.journey::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 36px;
  height: 2px;
  background: #d4dbe6;
  z-index: 0;
}
.journey-item {
  position: relative;
  text-align: center;
  z-index: 1;
}
.journey-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #004EA2;
  margin: 0 auto 10px;
  border: 3px solid #fafbfd;
  box-shadow: 0 0 0 1px #004EA2;
}
.journey-date {
  font-size: .78rem;
  color: #666;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.journey-label {
  font-size: .82rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .journey {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 14px;
    padding: 18px;
  }
  .journey::before {
    left: 28px; right: auto; top: 32px;
    width: 2px; height: calc(100% - 50px);
  }
  .journey-item { text-align: left; padding-left: 30px; }
  .journey-dot { position: absolute; left: 14px; top: 2px; margin: 0; }
}

/* ---------- Project cards ---------- */
.project-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #fff;
  margin: 18px 0;
  transition: border-color .15s, box-shadow .15s;
  align-items: start;
}
.project-card:hover {
  border-color: #d4dbe6;
  box-shadow: 0 2px 12px rgba(0, 78, 162, .06);
}
.project-card-thumb {
  width: 100px;
  height: 100px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: .85rem;
  color: #555;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 0;
  text-align: center;
  line-height: 1.2;
}
.project-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* Per-logo balance: MOLIT (wide) larger, NRF (square) smaller */
.project-card-thumb img[src*="molit"] { transform: scale(1.08); }
.project-card-thumb img[src*="nrf"]   { transform: scale(0.8); }
.project-card-body { display: flex; flex-direction: column; min-width: 0; }
.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #111;
  line-height: 1.3;
}
.project-card .project-meta {
  font-size: .85rem;
  color: #666;
  margin: 0 0 10px;
}
.project-card > .project-card-body > p {
  margin: 0 0 10px;
  font-size: .92rem;
  line-height: 1.55;
  color: #444;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.project-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: .74rem;
  background: #eef3fa;
  color: #004EA2;
  border-radius: 999px;
  font-weight: 500;
}
.project-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: .72rem;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 8px;
  vertical-align: 1px;
}
.project-badge.lab {
  background: #eef3fa;
  color: #004EA2;
}
.project-badge.personal {
  background: #fff4e8;
  color: #c25b00;
}
.project-card .footnote { margin-top: 8px; }

@media (max-width: 600px) {
  .project-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------- News page: year nav + two-column layout ---------- */
.year-nav {
  margin: 18px 0 6px;
  padding: 10px 0;
  font-size: .95rem;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}
.year-nav a {
  color: #444;
  padding: 2px 6px;
  border-radius: 3px;
}
.year-nav a:hover { background: #f0f4fa; color: #004EA2; text-decoration: none; }

/* Slightly wider container on the news page to fit 2 columns */
.news-page .container { max-width: 1000px; }

/* News list in 2 columns (card-style cells) */
.news-list--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  font-size: .96rem;
}
.news-list--cols li {
  display: block;
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 14px 16px;
  background: #fff;
  scroll-margin-top: 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* Highlight the entry a home-page "Recent news" link points to. */
.news-list--cols li:target {
  border-color: #004EA2;
  box-shadow: 0 0 0 2px rgba(0, 78, 162, .15);
}
.news-list--cols .news-date {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}
.news-list--cols .news-text { display: block; color: #333; }

/* Separate first <strong> (entry title) from the body paragraph.
   min-height reserves space for 2 lines so 1-line and 2-line titles
   place their carousels at the same vertical position across columns. */
.news-list--cols .news-text > strong:first-child {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ececec;
  min-height: calc(1.3em * 2 + 4px);
}

.news-list--cols .carousel { max-width: 100%; }

@media (max-width: 720px) {
  .news-list--cols { grid-template-columns: 1fr; }
}

/* Anchor offset so sticky-ish nav doesn't cover the heading when jumping */
.news-page h2[id] { scroll-margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
  font-size: .85rem;
  color: #888;
  text-align: center;
}
.site-footer a { color: #888; }
.site-footer a:hover { color: #004EA2; }

/* ---------- Print (PDF) ---------- */
@media print {
  /* Printing the CV page is now the only way to get a PDF of it,
     so drop the site chrome from the printed page. */
  .topnav { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  /* show link targets after text on print */
  a[href^="http"]::after {
    content: " [" attr(href) "]";
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }
  /* but not the profile / footer chrome */
  .profile-links a::after,
  .site-footer a::after { content: ""; }
  h2 {
    border-bottom: 1px solid #888;
    page-break-after: avoid;
  }
  .entries > li,
  ol > li,
  ul.news-list li {
    page-break-inside: avoid;
  }
  img { max-width: 100%; }
}

/* ---------- Dark mode (html.dark override) ---------- */
html.dark { color-scheme: dark; }
html.dark body { background: #0d1117; color: #c9d1d9; }
html.dark a, html.dark a:visited { color: #58a6ff; }
html.dark a:hover { color: #79b8ff; }
html.dark h1, html.dark h2, html.dark h3, html.dark h4 { color: #e6edf3; }
html.dark h2 { border-bottom-color: #58a6ff; }
html.dark h3 { color: #58a6ff; }
html.dark em { color: #a6b3c2; }
html.dark hr { border-top-color: #30363d; }
html.dark .topnav a { color: #c9d1d9; }
html.dark .topnav a:hover, html.dark .topnav a.active { color: #58a6ff; }
html.dark .nav-btn { border-color: #30363d; color: #c9d1d9; }
html.dark .nav-btn:hover { background: #161b22; color: #58a6ff; border-color: #58a6ff; }
html.dark .profile-photo { background: #161b22; color: #58a6ff; }
html.dark .profile-affil, html.dark .profile-bio { color: #c9d1d9; }
html.dark .profile-affil a, html.dark .profile-bio a { color: #58a6ff; }
html.dark .profile-links { color: #8b949e; }
html.dark .icon-link { border-color: #30363d; color: #c9d1d9; background: #161b22; }
html.dark .icon-link:hover { background: #58a6ff; color: #0d1117; border-color: #58a6ff; }
html.dark .icon-link:visited { color: #c9d1d9; }
html.dark .copy-email,
html.dark .copy-email:link,
html.dark .copy-email:visited { color: inherit; border-bottom-color: #6e7681; }
html.dark .copy-email:hover { color: #58a6ff; border-bottom-color: #58a6ff; }
html.dark .copy-email.copied { color: #5eead4; border-bottom-color: #5eead4; }

html.dark .interest-card { background: #161b22; border-color: #30363d; border-left-color: #58a6ff; }
html.dark a.interest-card:hover { background: #1a232e; border-left-color: #79b8ff; }
html.dark .interest-card h3 { color: #58a6ff; }
html.dark .interest-card p { color: #8b949e; }
html.dark .interest-card.t-av { border-left-color: #58a6ff; }
html.dark .interest-card.t-av h3 { color: #58a6ff; }
html.dark a.interest-card.t-av:hover { background: #14263d; border-left-color: #79b8ff; }
html.dark .interest-card.t-humanoid { border-left-color: #a78bfa; }
html.dark .interest-card.t-humanoid h3 { color: #a78bfa; }
html.dark a.interest-card.t-humanoid:hover { background: #1f1838; border-left-color: #c4b5fd; }
html.dark .interest-card.t-human { border-left-color: #5eead4; }
html.dark .interest-card.t-human h3 { color: #5eead4; }
html.dark a.interest-card.t-human:hover { background: #103530; border-left-color: #99f6e4; }

html.dark .topic { background: #161b22; }
html.dark .topic > h2 { color: #e6edf3; }
html.dark .topic.t-av { background: #0c1929; border-left-color: #58a6ff; }
html.dark .topic.t-av > h2 { color: #58a6ff; }
html.dark .topic.t-humanoid { background: #1a1530; border-left-color: #a78bfa; }
html.dark .topic.t-humanoid > h2 { color: #a78bfa; }
html.dark .topic.t-human { background: #0c2625; border-left-color: #5eead4; }
html.dark .topic.t-human > h2 { color: #5eead4; }

html.dark .pub { border-left-color: #30363d; }
html.dark .pub-fig { background: #fff; border-color: #30363d; color: #6e7681; }
html.dark .pub-title { color: #e6edf3; }
html.dark .pub-authors { color: #c9d1d9; }
html.dark .pub-venue { color: #8b949e; }
html.dark .pub-links a { color: #58a6ff; }

html.dark .theme-fig { background: #fff; border-color: #30363d; }
html.dark .theme-fig figcaption { background: #161b22; border-top-color: #30363d; color: #8b949e; }
html.dark .theme-fig .fig-placeholder { color: #6e7681; }

html.dark .news-date { color: #8b949e; }
html.dark .news-list li { border-bottom-color: #21262d; }
html.dark .news-list .news-text { color: #c9d1d9; }
html.dark .news-list--cols li { background: #161b22; border-color: #30363d; }
html.dark .news-list--cols li:target { border-color: #58a6ff; box-shadow: 0 0 0 2px rgba(88, 166, 255, .2); }
html.dark .news-list--cols .news-text > strong:first-child { color: #e6edf3; border-bottom-color: #30363d; }
html.dark .year-nav { border-top-color: #30363d; border-bottom-color: #30363d; }
html.dark .year-nav a { color: #c9d1d9; }
html.dark .year-nav a:hover { background: #14263d; color: #58a6ff; }
html.dark .carousel-stage { border-color: #30363d; background: #0d1117; }
html.dark .carousel-btn { background: rgba(22,27,34,.9); border-color: #30363d; color: #c9d1d9; }
html.dark .carousel-btn:hover { background: #161b22; }
html.dark .carousel-counter { color: #6e7681; }

html.dark .entries > li { border-color: #30363d; }
html.dark .entries .e-date { color: #8b949e; }
html.dark .entries .e-title { color: #e6edf3; }
html.dark .entries .e-meta { color: #8b949e; }

html.dark .site-footer { color: #6e7681; border-top-color: #30363d; }
html.dark .last-updated { color: #6e7681; }
html.dark .note { color: #8b949e; }
html.dark .muted { color: #6e7681; }
html.dark .footnote { color: #6e7681; }
html.dark hr { border-color: #30363d; }

html.dark .project-card { background: #161b22; border-color: #30363d; }
html.dark .project-card:hover { border-color: #58a6ff; box-shadow: 0 2px 12px rgba(88,166,255,.1); }
html.dark .project-card h3 { color: #e6edf3; }
html.dark .project-card .project-meta { color: #8b949e; }
html.dark .project-card > .project-card-body > p { color: #c9d1d9; }
html.dark .project-tag { background: #14263d; color: #58a6ff; }
html.dark .project-badge.lab { background: #14263d; color: #58a6ff; }
html.dark .project-badge.personal { background: #2a1a0e; color: #f4a261; }
html.dark .project-card-thumb { background: #fff; border-color: #30363d; }

html.dark .journey { background: #161b22; border-color: #30363d; }
html.dark .journey::before { background: #30363d; }
html.dark .journey-dot { background: #58a6ff; border-color: #161b22; box-shadow: 0 0 0 1px #58a6ff; }
html.dark .journey-date { color: #8b949e; }
html.dark .journey-label { color: #c9d1d9; }

