/* Grey canvas, softly tinted hero band, overlapping white cards, blue accent. */
:root {
  --accent: #2a56c6;
  --accent-ink: #1f3f8f;
  --accent-soft: #edf1fb;
  --accent-rgb: 42, 86, 198;
  --bar: #9a9a9a; /* light Google Scholar grey */
  --bar-hover: #555555;
  --bg: #eceef2;
  --surface: #ffffff;
  --soft: #f5f6f8;
  --text: #161b24;
  --muted: #5e6776;
  --line: #e1e4ea;
  --link: var(--accent);
  --head: "Manrope", Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { font-family: var(--head); margin: 0; line-height: 1.2; letter-spacing: -.015em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* Hero band */
.hero {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(var(--accent-rgb), .12), transparent 65%),
    radial-gradient(700px 360px at 0% 100%, rgba(var(--accent-rgb), .06), transparent 70%),
    linear-gradient(180deg, #f7f8fa, #e9ecf1);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding-bottom: 96px;
}
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { font: 800 17px var(--head); color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.nav a:hover { color: var(--accent-ink); background: var(--accent-soft); text-decoration: none; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

.hero-inner { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding-top: 56px; }
.portrait { width: 176px; height: 176px; border-radius: 24px; object-fit: cover; object-position: 50% 22%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 32px rgba(16,24,40,.14); }
.eyebrow-light { margin: 0 0 8px; font: 700 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; color: var(--text); }
.affil { margin: 12px 0 0; color: var(--muted); }
.hero .actions { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn.soft:hover { background: #e2e8f7; }
.hero .btn.light { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .btn.light:hover { background: var(--accent-ink); border-color: var(--accent-ink); }


/* Content */
.content { margin-top: -64px; display: grid; gap: 24px; padding-bottom: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px 34px; }
.card h2 { font-size: 22px; font-weight: 800; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-head::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--accent); }
.eyebrow { font: 700 11.5px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }

/* New publication */
.highlight { position: relative; overflow: hidden; }
.highlight::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--accent-soft); z-index: 0; }
.highlight > * { position: relative; z-index: 1; }
.highlight-tag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { background: var(--accent-soft); color: var(--accent-ink); font: 700 11px var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.highlight h2 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; color: #2b3442; }
.highlight-body { margin-top: 14px; max-width: 74ch; }
.highlight-body p { margin: 0 0 12px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.highlight .why { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 12px 16px; }
.highlight-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.highlight-foot p { margin: 0; }
.orig { font-size: 12.5px; line-height: 1.55; }
.orig span { display: block; }
.orig .orig-label { font: 600 11px var(--body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.highlight-foot .actions { margin-top: 14px; }

/* About */
.about-text { max-width: 86ch; font-size: 16px; line-height: 1.7; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.about-text p { margin: 0 0 12px; }
.about-text p:last-child { margin-bottom: 0; }
.lede { font-size: 17.5px; line-height: 1.65; margin: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }

/* Research impact: Scholar-style table + journal-style chart */
.impact .card-head { flex-wrap: wrap; margin-bottom: 4px; }
.head-note { margin: 0 0 0 auto; }
.impact-grid { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; }
.impact-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.impact-table th, .impact-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.impact-table thead th { font: 600 12px var(--body); color: var(--muted); text-align: right; letter-spacing: .02em; border-bottom: 1.5px solid var(--text); padding-top: 0; }
.impact-table tbody th { text-align: left; font-weight: 500; color: var(--muted); }
.impact-table td { text-align: right; font: 500 15.5px var(--body); color: var(--text); }
.impact-table td[data-m] { font-weight: 600; }
.pub-total { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.chart-card { margin: 0; min-width: 0; }
.chart-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-title { font: 500 13px var(--body); color: var(--muted); }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--bar); background: repeating-linear-gradient(45deg, var(--bar) 0 1.5px, #fff 1.5px 4px); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #e6e9ef; stroke-width: 1; stroke-dasharray: 2 3; }
.chart .baseline { stroke: #9aa3b2; stroke-width: 1; }
.chart .ylab { fill: var(--muted); font: 500 11px var(--body); font-variant-numeric: tabular-nums; }
.chart .axis { fill: var(--muted); font: 500 11.5px var(--body); }
.chart .bar { fill: var(--bar); transition: fill .15s; pointer-events: none; } /* let the hover area underneath receive the mouse */
.chart .bar-hit { fill: transparent; outline: none; cursor: default; }
.chart .bar-hit:hover + .bar, .chart .bar-hit:focus + .bar { fill: var(--bar-hover); }
.chart .val { fill: var(--text); font: 700 11.5px var(--body); font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; transition: opacity .15s; }
.chart .bar-hit:hover ~ .val, .chart .bar-hit:focus ~ .val { opacity: 1; }
.chart .partial .bar { fill: url(#cites-hatch); stroke: var(--bar); stroke-width: 1; }
.chart .partial .bar-hit:hover + .bar { fill: url(#cites-hatch); stroke: var(--bar-hover); }
.chart .proj { fill: rgba(154, 154, 154, .1); stroke: var(--bar-hover); stroke-width: 1.2; stroke-dasharray: 4 3; pointer-events: none; }
.chart .proj-val { fill: var(--muted); font: 600 11.5px var(--body); font-variant-numeric: tabular-nums; pointer-events: none; }
.swatch-proj { background: none; border: 1.5px dashed var(--bar-hover); margin-left: 10px; }
.chart .hatch-bg { fill: #fff; }
.chart .hatch-line { stroke: var(--bar); stroke-width: 2; }

/* Publications */
.subhead { font: 700 11.5px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.featured { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.featured li { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.featured li:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(16,24,40,.08); }
.featured a { font-weight: 500; font-size: 15px; color: #2b3442; line-height: 1.45; }
.featured .venue { color: var(--muted); font-size: 13px; }
.pub-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; color: var(--text); font: 14.5px var(--body); padding: 10px 0; outline: none; min-width: 0; }
.search:focus-within { border-color: var(--accent); background: var(--surface); }
select { background: var(--soft); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font: 14.5px var(--body); }
.pubs { list-style: none; padding: 0; margin: 20px 0 0; }
.pub { display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; padding: 12px 0; }
.pub-title { font: 500 15px/1.5 var(--body); color: #2b3442; background: none; border: 0; margin: 0; text-align: left; cursor: pointer; width: 100%; }
.pub-title:hover, .pub-title[aria-expanded="true"] { color: var(--accent); }
.pub-title::after { content: "+"; display: inline-block; margin-left: 8px; text-indent: 0; color: var(--muted); font-weight: 400; transition: transform .15s; }
.pub-title[aria-expanded="true"]::after { content: "\2212"; color: var(--accent); }
.pub-detail { grid-column: 1 / -1; margin: 8px 0 6px 46px; padding: 14px 18px; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; max-width: 78ch; }
.pub-summary { margin: 0 0 8px; font-size: 14.5px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.pub-why { margin: 0 0 12px; font-size: 14px; color: var(--muted); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.pub-why strong { color: var(--text); }
.pub-detail .actions { margin: 0; }
.pub-detail .btn { padding: 7px 14px; font-size: 13px; }
/* Hanging indent: the number sits on the title's baseline, wrapped lines align with the title text. */
.pub-title { padding-left: 46px; text-indent: -46px; }
.pub-num { display: inline-block; width: 34px; margin-right: 12px; text-indent: 0; text-align: right; color: #9aa3b2; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pub-meta { padding-left: 46px; }
.pub-meta { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.pub-meta b { color: var(--text); font-weight: 600; }
.pub-cites { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-variant-numeric: tabular-nums; }
.pub-cites a, .pub-cites span { display: inline-block; min-width: 56px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; text-align: center; }
.pub-cites { display: flex; flex-direction: column; align-items: center; width: 84px; }
.pub-cites small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.pub-cites .top-note { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.pub-info { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.pub-info p { margin: 8px 0 0; }
.pub-legend { display: inline-flex; align-items: center; gap: 6px; }
.legend-pill { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; line-height: 1; }
.more { margin-top: 16px; }

/* Timelines and lists */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--line); margin-left: 5px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.t-year { display: inline-block; font: 800 12px var(--head); color: var(--accent-ink); letter-spacing: .03em; }
.timeline p { margin: 2px 0 0; }
.timeline h4 { font: 500 15px var(--body); color: #2b3442; letter-spacing: 0; margin-top: 2px; }
.timeline.wide p { color: var(--muted); font-size: 14.5px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.plain-list li:first-child { padding-top: 0; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list a { font-weight: 500; font-size: 15px; color: #2b3442; }
.plain-list a:hover { color: var(--accent); }
.plain-list span { color: var(--muted); font-size: 13px; }

/* Teaching */
.teaching-intro { margin: 0 0 18px; max-width: 75ch; color: var(--muted); }
.courses { display: grid; gap: 10px; }
.course { border: 1px solid var(--line); border-radius: 14px; }
.course[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.course summary { cursor: pointer; padding: 14px 18px; font: 500 15px var(--body); color: #2b3442; list-style: none; display: flex; align-items: center; gap: 12px; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { content: "+"; margin-left: auto; font-weight: 500; color: var(--accent); font-size: 20px; }
.course[open] summary::after { content: "−"; }
.code { font: 700 11.5px var(--body); letter-spacing: .04em; background: var(--accent-soft); color: var(--accent-ink); padding: 3px 9px; border-radius: 999px; }
.course-body { padding: 0 18px 16px; }
.course-body h5 { margin: 8px 0 6px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.course-body ul { margin: 0 0 8px; padding-left: 18px; columns: 2 240px; column-gap: 32px; }
.course-body li { margin-bottom: 4px; break-inside: avoid; }

/* Contact */
.contact-card { background: linear-gradient(135deg, var(--surface) 40%, var(--accent-soft)); }
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.big-link { font: 800 24px var(--head); color: var(--accent-ink); }
address { font-style: normal; color: var(--muted); margin-top: 10px; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links a { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-weight: 600; color: var(--text); }
.link-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.links a:hover { color: var(--accent); }
.links a::after { content: "↗"; margin-left: auto; color: var(--muted); }

.footer { padding: 0 0 40px; color: var(--muted); font-size: 13px; text-align: center; }
.footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .contact { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
  .portrait { width: 120px; height: 120px; border-radius: 20px; }
}
@media (max-width: 560px) {
  .pub-detail { order: 4; margin-left: 0; padding: 12px 14px; }
  .wrap { padding: 0 16px; }
  .hero { padding-bottom: 80px; }
  .head-note { margin-left: 0; flex-basis: 100%; }
  .content { gap: 16px; }
  .card { padding: 22px 18px; border-radius: 16px; }
  .lede { font-size: 16.5px; }
  .pub { grid-template-columns: 1fr; }
  .pub-cites { grid-row: auto; grid-column: 1; text-align: left; order: 3; padding-left: 46px; }
  .pub-meta { order: 2; }
  .pub-cites { flex-direction: row; justify-content: flex-start; width: auto; }
  .pub-cites small { display: inline; margin: 0 0 0 6px; }
  .search { flex-basis: 100%; }
  select { flex: 1; }
}

/* Institution logos in the contact card (greyed out to match the page) */
.inst-logos img { display: block; width: auto; filter: brightness(0) opacity(.55); }
.inst-logos a { display: block; transition: opacity .15s; }
.inst-logos a:hover { opacity: .7; }
.logos-contact { display: flex; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.logos-contact .usp { height: 44px; }
