/* ---------- Colors & fonts (edit here to restyle the whole site) ---------- */
:root {
  --bg: #ffffff;
  --sidebar-bg: #f6f7f9;
  --text: #222831;
  --muted: #5f6b7a;
  --accent: #1f5f8b;        /* links, buttons */
  --accent-hover: #15435f;
  --rule: #e3e6ea;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------- Two-column layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--rule);
  padding: 48px 28px;
  text-align: center;
}
.photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.name {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 18px 0 6px;
}
.role, .affil { margin: 0; color: var(--muted); }
.affil { font-weight: 600; color: var(--text); margin-top: 4px; }

.cv-btn {
  display: inline-block;
  margin: 22px 0 14px;
  padding: 8px 22px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cv-btn:hover { background: var(--accent); color: #fff; text-decoration: none; }

.email { font-size: .9rem; color: var(--muted); margin: 0 0 16px; word-break: break-word; }

.icons { display: flex; justify-content: center; gap: 16px; }
.icons svg { width: 22px; height: 22px; fill: var(--muted); transition: fill .15s; }
.icons a:hover svg { fill: var(--accent); }

/* ---------- Main content ---------- */
.content {
  max-width: 860px;
  padding: 0 56px 48px;
}
.topnav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.topnav a { color: var(--text); }
.topnav a:hover { color: var(--accent); text-decoration: none; }

section { padding-top: 34px; scroll-margin-top: 60px; }
h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ---------- Paper entries ---------- */
.paper { margin-bottom: 26px; }
.paper p { margin: 0; }
.title { font-weight: 700; font-size: 1.05rem; }
.authors, .status { color: var(--muted); font-size: .95rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 14px;
  margin-top: 4px;
  font-size: .92rem;
}
.abs-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.abs-toggle::before { content: "\25B8\00a0"; }
.abs-toggle.open::before { content: "\25BE\00a0"; }
.abs-toggle:hover { color: var(--accent-hover); }
.abstract {
  margin: 8px 0 6px !important;
  padding: 12px 16px;
  background: var(--sidebar-bg);
  border-left: 3px solid var(--accent);
  font-size: .93rem;
  line-height: 1.55;
  text-align: justify;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .85rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 32px 16px;
  }
  .photo { width: 140px; height: 140px; }
  .content { padding: 0 16px 40px; }
  .topnav { gap: 4px 18px; font-size: .95rem; }
}

/* ---------- Notes (funding, presentations) & policy list ---------- */
.note { color: var(--muted); font-size: .85rem; margin-top: 4px !important; }
.policy { padding-left: 1.1em; margin: 0; }
.policy li { margin-bottom: 14px; font-size: .95rem; }
.award { display: block; color: var(--accent); font-size: .88rem; font-weight: 600; }
