/* Personal style layer on top of Minimal Light:
   deep teal + warm orange, serif headings, polished news / publication details. */
:root {
  --accent: #0b5d6b;         /* deep teal: nav, tags, date pills, conference badges */
  --accent-soft: #e7f1f2;    /* light teal fills */
  --link: #137a8a;
  --warm: #e07a2e;           /* orange: heading underline, avatar ring, journal badges */
  --ink: #1f2733;            /* headings and titles */
  --text: #4a525e;
  --panel: #f6f9f9;          /* news box / publication hover */
  --btn-border: #c9dfe2;
  --pin-text: #9a4a12;
  --pin-bg: #fff4ea;
  --highlight: #ffe9d6;     /* marker under the recruiting sentence */
  --ring-gap: #ffffff;
  --shadow: rgba(11, 93, 107, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5ec4cf;
    --accent-soft: rgba(94, 196, 207, 0.14);
    --link: #6fd0da;
    --warm: #f0995a;
    --ink: #e8eaf0;
    --text: #c9ccd4;
    --panel: #272938;
    --btn-border: #355a60;
    --pin-text: #f3b07c;
    --pin-bg: rgba(240, 153, 90, 0.12);
    --highlight: rgba(240, 153, 90, 0.18);
    --ring-gap: #20212b;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

body { color: var(--text); }
a { color: var(--link); }
a:hover { color: var(--warm); }

/* Top nav: pill links */
.site-nav { box-shadow: 0 1px 0 var(--shadow); }
.site-nav-name { font-family: 'Source Serif 4', serif; color: var(--accent) !important; font-size: 1.2rem; }
.site-nav-links { gap: 4px 6px; }
.site-nav-links a {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 1.02rem;
  color: var(--accent) !important; padding: 5px 12px; border-radius: 999px; transition: background .2s;
}
.site-nav-links a:hover { background: var(--accent-soft); }

/* Section headings with a short orange underline */
h2 {
  font-family: 'Source Serif 4', serif; font-weight: 600; color: var(--ink) !important;
  font-size: 1.6rem; position: relative; padding-bottom: 10px; margin-bottom: 18px !important;
}
h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 3px; border-radius: 2px; background: var(--warm);
}
#publications { margin-bottom: 18px !important; }

/* Sidebar */
header h1 { font-family: 'Source Serif 4', serif; color: var(--ink) !important; font-weight: 700; }
header .image.avatar img {
  padding: 0; margin: 20px 0 6px; width: 62%;
  box-shadow: 0 0 0 4px var(--ring-gap), 0 0 0 6px var(--warm), 0 10px 24px rgba(0, 0, 0, .12);
}
header position { color: var(--accent); font-weight: 600; }
.research-tags { margin: 14px 0 8px; }
.research-tags span {
  display: inline-block; margin: 3px 2px; padding: 3px 10px; border-radius: 999px;
  font: 500 0.72rem 'Inter', sans-serif; color: var(--accent); background: var(--accent-soft);
}
.social-icons a { color: var(--accent) !important; }
.social-icons a:hover { background: var(--accent-soft) !important; color: var(--warm) !important; }

/* News */
.news-pinned { color: var(--pin-text); background: var(--pin-bg); border-left-color: var(--warm); border-radius: 8px; }
.news-pinned strong { color: var(--pin-text); }
.news-scroll { border: 0; background: var(--panel); border-radius: 12px; padding: 12px 16px 12px 0; }
.news-scroll li { margin-bottom: 4px; }
.news-scroll li > strong:first-child {
  display: inline-block; font: 600 0.72rem 'Inter', sans-serif; letter-spacing: .02em;
  color: #fff; background: #0b5d6b; border-radius: 4px; padding: 1px 7px; margin-right: 4px;
  vertical-align: 1px;
}

/* Publications: hover-lift rows, pill buttons, conference vs journal badge colors */
.publications ol.bibliography li .pub-row { padding: 14px 10px; border-radius: 14px; transition: all .2s ease; }
.publications ol.bibliography li .pub-row:hover {
  background: var(--panel); box-shadow: 0 8px 24px var(--shadow); transform: translateY(-2px);
}
.publications ol.bibliography li .teaser { box-shadow: 0 4px 14px rgba(0, 0, 0, .14); border-radius: 10px; }
.publications ol.bibliography li .title a { color: var(--ink); font-family: 'Source Serif 4', serif; }
.publications ol.bibliography li .title a:hover { color: var(--accent); }
.badge-conf { background-color: #0b5d6b !important; }
.badge-journal { background-color: #e07a2e !important; }
.publications ol.bibliography li .links a.btn {
  font-family: 'Inter', sans-serif; font-size: 11px !important; font-weight: 500;
  color: var(--accent) !important; border: 1px solid var(--btn-border) !important; border-radius: 999px;
  padding: 2px 11px !important; transition: all .15s;
}
.publications ol.bibliography li .links a.btn:hover {
  background: var(--accent); color: #fff !important; border-color: var(--accent) !important;
}

/* Recruiting sentence in the Research paragraph: marker-style highlight */
.recruit-highlight {
  color: var(--pin-text);
  font-weight: 600;
  background: linear-gradient(transparent 55%, var(--highlight) 55%);
  padding: 0 2px;
}

/* Services: three compact lines with bold labels */
ul.service-list { margin: 0 0 28px; }
ul.service-list li { margin-bottom: 6px; line-height: 1.6; }
ul.service-list li strong { color: var(--ink); }
