/* ── Links: override flatly's teal with a quieter blue ─────────────── */
a { color: #2b6cb0; }
a:hover { color: #2c5282; text-decoration: underline; }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar { border-bottom: 1px solid #e2e8f0; }
.navbar-brand { font-weight: 700; letter-spacing: 0.02em; }

/* ── Page title block: hide auto-generated title on home page ────────── */
#title-block-header { display: none; }

/* ── Section headings ────────────────────────────────────────────────── */
h2.anchored, h2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #718096;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.35rem;
  margin-top: 2.4rem;
  margin-bottom: 1.1rem;
}

/* Home page: name heading is larger */
.profile-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a202c;
  margin-top: 0;
  margin-bottom: 0.2rem;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

/* ── Profile layout ──────────────────────────────────────────────────── */
.profile-header {
  display: flex;
  gap: 2.8rem;
  align-items: flex-start;
  margin-top: 1.8rem;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 175px;
  flex-shrink: 0;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .profile-header { flex-direction: column; gap: 1.4rem; }
  .profile-photo { width: 140px; }
}

/* ── Contact block ───────────────────────────────────────────────────── */
.contact-block {
  font-size: 0.9rem;
  color: #4a5568;
  margin-top: 1.1rem;
  line-height: 1.7;
}

/* ── Button links (CV, Google Scholar) ──────────────────────────────── */
.btn-outline-secondary {
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  margin-right: 0.4rem;
  margin-top: 0.8rem;
  border-radius: 3px;
  color: #4a5568;
  border-color: #cbd5e0;
}
.btn-outline-secondary:hover {
  background-color: #edf2f7;
  color: #2d3748;
  border-color: #a0aec0;
}

/* ── Publication list: hanging indent ───────────────────────────────── */
.paper-list p {
  padding-left: 2em;
  text-indent: -2em;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Title links: subtle persistent underline */
.paper-list a {
  color: #2b6cb0;
  text-decoration: none;
  border-bottom: 1px solid #bee3f8;
  background: none;
  padding: 0;
  margin: 0;
  font-size: inherit;
  white-space: normal;
}
.paper-list a:hover {
  border-bottom-color: #2b6cb0;
  text-decoration: none;
}

/* Badge links: [PDF], [Preprint], [Download], etc. — applies site-wide */
a.paper-badge {
  font-size: 0.78rem;
  background: #edf2f7;
  color: #2b6cb0;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  border-bottom: none;
  white-space: nowrap;
}
a.paper-badge:hover {
  background: #bee3f8;
}

/* ── Teaching page ───────────────────────────────────────────────────── */
.course-list li {
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.page-footer {
  font-size: 0.82rem;
  color: #a0aec0;
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
