/* Design tokens */
:root {
  --accent:    #4a7c59;
  --accent-lt: #e8f0eb;
  --accent-dk: #355c40;
  --bg:        #f4f4f4;
  --text:      #555;
  --text-dark: #333;
  --muted:     #888;
  --surface:   #ffffff;
  --radius:    4px;
}

::selection {
  background: var(--accent-lt);
  color: var(--text-dark);
}

/* Accent-coloured pill buttons (CTA links on home page) */
.btn-accent {
  display: inline-block;
  padding: 0.45em 1.1em;
  border: 1.5px solid var(--accent);
  border-radius: 2em;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  margin: 0.25rem 0.35rem 0.25rem 0;
}
.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent);
  color: #fff;
  outline: none;
}

/* Navbar: smooth background transition instead of abrupt JS swap */
.navbar,
.navbar-t {
  transition: background-color 0.3s ease;
}

/* Profile photo: circular with sage border */
.profile-photo {
  border-radius: 50%;
  border: 3px solid var(--accent-lt);
  display: block;
  max-width: 220px;
  width: 100%;
}

/* Two-column intro grid (home page) */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 60em) {
  .intro-grid {
    grid-template-columns: 1fr auto;
  }
}

/* Publication list components */
.pub-year {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--accent-lt);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e8e8e8;
  line-height: 1.5;
}
.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  display: block;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 0.2rem;
  transition: color 0.15s;
}
.pub-title:hover {
  color: var(--accent);
}

.pub-authors {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.pub-journal {
  font-style: italic;
}

.pub-badge {
  display: inline-block;
  padding: 0.1em 0.55em;
  border: 1px solid currentColor;
  border-radius: 2em;
  color: var(--accent);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.pub-badge:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pub-loading {
  color: var(--muted);
  font-style: italic;
  padding: 1rem 0;
}

.pub-fallback {
  padding: 1rem 0;
}

/* Accent section headings (research page) */
.accent-heading {
  color: var(--accent);
}

/* Latest publications strip on home page */
#latest-pubs {
  margin-top: 2rem;
}
#latest-pubs h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
