/* ─── Typography & Body ─────────────────────────────────────────── */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}

/* ─── Research-program accent colors ────────────────────────────── */
:root {
  --accent-hierarchy: #b5822e;
  --accent-disease: #2a7f7a;
}

.lead-in {
  font-weight: 700;
}

.lead-in.hierarchy {
  color: var(--accent-hierarchy);
}

.lead-in.disease {
  color: var(--accent-disease);
}

/* ─── At a Glance block ──────────────────────────────────────────── */
.at-a-glance {
  margin-top: 1.5rem;
  text-align: left;
}

.glance-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
}

.glance-line {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.4rem 0;
}

.glance-line.hierarchy {
  color: var(--accent-hierarchy);
}

.glance-line.disease {
  color: var(--accent-disease);
}

.glance-line.pedagogy {
  color: #444;
}

/* ─── Navbar ────────────────────────────────────────────────────── */
.navbar {
  border-bottom: 1px solid #e8e8e8;
  padding: 1rem 1.5rem;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: #222 !important;
}

.navbar-nav .nav-link {
  color: #444 !important;
  font-size: 0.95rem;
  padding: 0 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #000 !important;
}

/* ─── About / Home page (trestles template) ─────────────────────── */
#quarto-content .about-entity .about-image {
  border-radius: 6px;
  max-width: 100%;
  object-fit: cover;
}

.about-entity .about-links {
  margin-top: 1rem;
}

.about-link {
  border: 1px solid #ccc;
  color: #333 !important;
  border-radius: 4px;
  font-size: 0.875rem;
}

.about-link:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

/* ─── Research page two-column layout ───────────────────────────── */
.research-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 4rem;
  align-items: start;
}

@media (min-width: 768px) {
  .research-column + .research-column {
    border-left: 1px solid #d8d8d8;
    padding-left: 2.5rem;
  }
}

.research-column {
  border-top: 3px solid transparent;
  padding-top: 1.25rem;
}

.research-column.hierarchy {
  border-top-color: var(--accent-hierarchy);
}

.research-column.disease {
  border-top-color: var(--accent-disease);
}

.research-column.hierarchy h2 {
  color: var(--accent-hierarchy);
}

.research-column.disease h2 {
  color: var(--accent-disease);
}

.research-column.hierarchy details summary::before {
  color: var(--accent-hierarchy);
}

.research-column.disease details summary::before {
  color: var(--accent-disease);
}

/* ─── Teaching page layout ───────────────────────────────────────── */
.teaching-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.5rem;
  align-items: start;
}

.teaching-photo-col img {
  width: 100%;
  border-radius: 6px;
  display: block;
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 767px) {
  .teaching-layout {
    grid-template-columns: 1fr;
  }

  .teaching-photo-col {
    max-width: 350px;
  }
}

/* ─── Research page banners ─────────────────────────────────────── */
.research-banner {
  width: 100%;
  max-width: 420px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 1rem;
}

/* ─── Publication lists ─────────────────────────────────────────── */
.quarto-title-block {
  margin-bottom: 1.5rem;
}

p + p {
  margin-top: 0.25rem;
}

/* ─── General link colors ────────────────────────────────────────── */
a {
  color: #2780e3;
}

a:hover {
  color: #1a5fad;
}

/* ─── Horizontal rules ──────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 2rem 0;
}

/* ─── Collapsible publication sections ──────────────────────────── */
details {
  margin: 1.5rem 0;
  border-top: 1px solid #e8e8e8;
  padding-top: 0.75rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "▸";
  display: inline-block;
  width: 1em;
  transition: transform 0.15s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary ~ * {
  margin-top: 1rem;
}

/* ─── Publication entries with Altmetric badges ─────────────────── */
.pub-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pub-entry .pub-citation {
  flex: 1;
}

.pub-entry .altmetric-embed {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.nav-footer {
  border-top: 1px solid #e8e8e8;
  font-size: 0.8rem;
  color: #888;
}
