@charset "UTF-8";

body { font-family: "Noto Sans", sans-serif; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.title { font-family: 'Google Sans', 'Noto Sans', sans-serif; font-weight: 700; }

/* ── Navigation ──────────────────────────────────── */
/* Sticky, not fixed: the bar keeps its place in flow, so no spacer is needed.
   Below the teaser lightbox (z-index 1000) so an open teaser still covers it. */
.site-nav { position: sticky; top: 0; z-index: 20; padding: 1em 0; background: #fff; border-bottom: 1px solid #eee; }
.site-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6em 2em; margin: 0; padding: 0; }
.site-nav .nav-link { color: #888; text-decoration: none; font-size: 1.05em; font-family: 'Source Sans 3', 'Google Sans', sans-serif; }
.site-nav .nav-link:hover { color: #222; }
.site-nav .nav-link.active { color: #111; font-weight: 700; }

/* Anything an in-page link targets must clear the sticky bar. */
:target, .publication-block, h2[id] { scroll-margin-top: 4.5rem; }

@media (max-width: 768px) {
  .site-nav { padding: 0.7em 0; }
  .site-nav ul { gap: 0.4em 1.1em; }
  .site-nav .nav-link { font-size: 0.95em; }
}

/* ── Hero ────────────────────────────────────────── */
.portrait { border-radius: 50%; overflow: hidden; aspect-ratio: 1 / 1; background: #eee; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-links { margin-top: 1.2em; }

/* ── Experience / Projects / Awards entries ──────── */
.experience-list { margin-bottom: 1.5em; }
.experience-entry { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; padding: 0.9em 0; border-bottom: 1px solid #f0f0f0; }
.experience-entry:last-child { border-bottom: none; }
.experience-entry .experience-main { flex: 1; }
.experience-entry .experience-main .experience-title { font-weight: 600; color: #171717; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em; }
.experience-entry .experience-main .experience-desc { color: #555; font-size: 0.9em; margin-top: 0.25em; line-height: 1.6; }
.experience-entry .experience-main .experience-desc a { color: #555; text-decoration: none; }
.experience-entry .experience-main .experience-desc a:hover { color: #111; text-decoration: underline; }
.experience-entry .experience-date { flex-shrink: 0; text-align: right; color: #666; font-size: 0.88em; min-width: 180px; }
.experience-entry .experience-date em { color: #888; }
.experience-entry .project-links { margin-top: 0.6em !important; }

.project-mark { font-size: 1.05em; letter-spacing: 0.01em; }
.project-tagline { font-weight: 400; color: #555; }

@media (max-width: 768px) {
  .experience-entry { flex-direction: column; gap: 0.2em; }
  .experience-entry .experience-date { text-align: left; min-width: unset; }
}

/* ── Project cards ───────────────────────────────── */
/* Projects get a card; the awards list below keeps the plain ruled rows, so
   every rule here is scoped to .project-card. */
.project-list { display: flex; flex-direction: column; gap: 1.1em; }

.experience-entry.project-card {
  position: relative;
  overflow: hidden;
  padding: 1.3em 1.5em;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: linear-gradient(158deg, #ffffff 0%, #fbfcfe 52%, #f1f5fa 100%);
  box-shadow: 0 1px 2px rgba(20, 38, 66, 0.05), 0 10px 26px -16px rgba(20, 38, 66, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* The gloss, in two parts: a sheen falling down the upper half of the card, and
   a bright hairline along the very top edge where the light would catch. */
.project-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.project-card::after {
  content: ""; position: absolute; left: 1.4em; right: 1.4em; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}
.project-card > * { position: relative; }

/* Block, not flex: the period floats out of the text flow so a long line runs to
   the card's right edge instead of stopping short at a fixed date column. The
   card's overflow already gives it a block formatting context to contain it. */
.experience-entry.project-card { display: block; }
.project-card .experience-date { float: right; min-width: 0; margin: 0 0 0.35em 1.4em; }

.experience-entry.project-card:hover {
  transform: translateY(-2px);
  border-color: #cfd9e6;
  box-shadow: 0 2px 4px rgba(20, 38, 66, 0.06), 0 18px 36px -18px rgba(20, 38, 66, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .experience-entry.project-card { transition: none; }
  .experience-entry.project-card:hover { transform: none; }
}

/* Description bullets. Bulma's reset strips list markers, so the dot is drawn
   here — the same one the news timeline uses. */
.project-points { margin: 0.45em 0 0 0 !important; padding: 0; list-style: none; }
.project-points li { position: relative; padding-left: 0.95em; margin-bottom: 0.3em; }
.project-points li:last-child { margin-bottom: 0; }
.project-points li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 4px; height: 4px; border-radius: 50%; background: #aab4c2;
}

/* The role I held, set apart from the organisation that follows it. */
.role-pill {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0.14em 0.8em;
  border: 1px solid #2c8c8c;
  border-radius: 999px;
  background: #ecf7f7;
  color: #12605f;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.015em;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .experience-entry.project-card { padding: 1.1em 1.15em; }
  /* Too narrow to share a line with the title — let it sit above instead. */
  .project-card .experience-date { float: none; margin: 0 0 0.5em 0; text-align: left; }
}

/* ── Publications ────────────────────────────────── */
.year-header { margin-top: 1.5em; color: #444; border-bottom: 1px solid #eee; padding-bottom: 0.25em; }

.award-badge { display: inline-block; padding: 0.15em 0.6em; margin-right: 0.5em; border-radius: 999px; font-size: 0.75em; font-weight: 600; color: #2b2b2b; background: #fff; border: 1px solid #E0B000; letter-spacing: 0.02em; vertical-align: middle; }
.award-badge::before { content: "\1F3C6\00A0"; }

.venue-badge { display: inline-block; padding: 0.15em 0.6em; margin-right: 0.5em; border-radius: 999px; font-size: 0.75em; font-weight: 600; color: #2b2b2b; background: #fff; border: 1px solid #ccc; letter-spacing: 0.02em; vertical-align: middle; }
.venue-badge.venue-acl { border-color: #B31B1B; }
.venue-badge.venue-emnlp { border-color: #2E5C8A; }
.venue-badge.venue-naacl { border-color: #4C7A8A; }
.venue-badge.venue-coling { border-color: #6B8E23; }
.venue-badge.venue-lreccoling { border-color: #6B8E23; }
.venue-badge.venue-icdm { border-color: #8A6D3B; }
.venue-badge.venue-arxiv { border-color: #b71c1c; }
.venue-badge.venue-preprint { border-color: #999; }

.publication-block .publication-title { width: fit-content; margin: 0 !important; font-weight: 600; font-size: 110% !important; color: #000; }
.publication-block .publication-venue { color: #555; width: fit-content; margin-top: 0.4em; }
.publication-block .publication-authors { font-size: 90%; margin-top: 0.35em; }
.publication-block .publication-authors .author-me { color: #000; font-weight: 600; text-decoration: underline; }
.publication-block .publication-image { position: relative; border-radius: 4px; width: 100%; overflow: hidden; font-size: 0; cursor: zoom-in; border: 1px solid #eee; background: #fff; }
.publication-block .publication-image img { width: 100%; display: block; }
.publication-block .teaser-zoom-hint { position: absolute; bottom: 6px; right: 6px; z-index: 3; width: 1.6em; height: 1.6em; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.8rem; pointer-events: none; }
.publication-block .publication-links { margin: 0 !important; margin-top: 0.6em !important; }
.publication-block:target { animation: highlight-fade 2s ease; }

/* ── Teaser lightbox ─────────────────────────────── */
.teaser-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
.teaser-modal.is-open { display: flex; }
.teaser-modal-bg { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.86); cursor: zoom-out; }
.teaser-modal-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; animation: teaser-pop-in 0.18s ease-out; }
.teaser-modal-content img { display: block; max-width: 90vw; max-height: 88vh; width: auto; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.teaser-modal-close { position: fixed; top: 18px; right: 24px; z-index: 2; border: none; background: transparent; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; opacity: 0.85; transition: opacity 0.15s ease; }
.teaser-modal-close:hover { opacity: 1; }

@keyframes teaser-pop-in { 0% { opacity: 0; transform: scale(0.96); } 100% { opacity: 1; transform: scale(1); } }
@keyframes highlight-fade { 0% { background-color: #fff3cd; } 100% { background-color: transparent; } }

/* ── News ────────────────────────────────────────── */
#news-list { list-style: none; margin-left: 0; }
#news-list .news-item { position: relative; padding: 0.6em 0 0.6em 1.5em; border-left: 2px solid #e0e0e0; margin-bottom: 0.25em; }
#news-list .news-item::before { content: ''; position: absolute; left: -5px; top: 0.85em; width: 8px; height: 8px; background-color: #4a4a4a; border-radius: 50%; }
#news-list .news-item b { color: #4a4a4a; }
#news-list .news-item.is-hidden-news { display: none; }
#news-list.show-all .news-item.is-hidden-news { display: block; }

#toggle-news-btn { display: flex; align-items: center; justify-content: center; gap: 0.4em; margin: 1.2em auto 0 auto; border: none; background: transparent; padding: 0.5em 1em; font-size: 0.9em; color: #4a4a4a; cursor: pointer; transition: all 0.25s ease; }
#toggle-news-btn:hover { color: #333333; }
#toggle-news-btn .icon { transition: transform 0.3s ease; font-size: 0.8em; }
#toggle-news-btn.expanded .icon { transform: rotate(180deg); }
#toggle-news-btn span:last-child { border-bottom: 1px dashed currentColor; }

/* ── Footer ──────────────────────────────────────── */
.footer .footer-links a { font-size: 25px; color: #000; }
