/* ── Typography & colour palette ─────────────────────────────────── */
:root {
  --accent: #2c5f8a;
  --accent-light: #e8f0f8;
  --text-muted: #6c757d;
  --border: #dee2e6;
}

body {
  font-family: "Source Serif 4", Georgia, serif;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.navbar {
  border-bottom: 2px solid var(--accent);
}

.navbar-brand {
  font-weight: 700;
  color: var(--accent) !important;
}

/* ── Section headings ─────────────────────────────────────────────── */
h2.section-heading {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ── Publication / entry cards ────────────────────────────────────── */
.pub-entry {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-entry:last-child {
  border-bottom: none;
}

.pub-links a {
  font-size: 0.85rem;
  margin-right: 0.6rem;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.pub-links a:hover {
  background-color: var(--accent);
  color: white;
}

/* ── Abstract toggle ──────────────────────────────────────────────── */
details summary {
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.25rem;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

details .abstract-text {
  font-size: 0.9rem;
  background: var(--accent-light);
  padding: 0.75rem;
  border-radius: 4px;
}

/* ── Homepage profile ─────────────────────────────────────────────── */
.profile-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.profile-block img {
  width: 180px;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-item {
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--border);
  font-size: 0.95rem;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-width: 90px;
  display: inline-block;
}

/* ── CV page ──────────────────────────────────────────────────────── */
.cv-section h3 {
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
  margin-top: 1.5rem;
}

.cv-entry {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
}

.cv-entry-year {
  min-width: 80px;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}
