/* Faint topographic contour lines behind every page */
body {
  background-color: #ffffff;
  background-image: url("assets/topo.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Mostly opaque panel behind page content so the contours don't compete with text */
main.content,
.quarto-about-trestles {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(40, 60, 90, 0.08);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
/* Home page: the profile layout already has its own panel */
.quarto-about-trestles main.content {
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  main.content,
  .quarto-about-trestles { padding: 1rem 1.1rem; }
}

/* Dark mode: lighter contour lines on a deep slate background, dark panels */
body.quarto-dark {
  background-color: #141c26;
  background-image: url("assets/topo-dark.svg");
}
body.quarto-dark main.content,
body.quarto-dark .quarto-about-trestles {
  background-color: rgba(24, 33, 45, 0.92);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
body.quarto-dark .quarto-about-trestles main.content {
  background: none;
  box-shadow: none;
}

/* Home page: CV button, research-interest tags and education under the profile photo */
.profile-extras { margin-top: 1.5rem; text-align: center; }
.profile-extras h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(74, 107, 143, 0.25);
}
.profile-extras .cv-btn {
  background: #dce7f3;
  color: #24496f;
  border: 1px solid rgba(74, 107, 143, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  font-weight: 600;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.profile-extras .cv-btn:hover,
.profile-extras .cv-btn:focus-visible {
  background: #c9daec;
  color: #1b3a5a;
  transform: translateY(-1px);
}
.interest-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.interest-tags span {
  background: #e7eef6;
  color: #2c4a6b;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.9rem;
}
.edu-list { list-style: none; padding: 0; margin: 0; text-align: left; display: inline-block; }
.edu-list li { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.95rem; line-height: 1.35; }
.edu-list i { color: #4a6b8f; font-size: 1.1rem; }
body.quarto-dark .interest-tags span { background: rgba(140, 188, 240, 0.14); color: #cfe0f3; }
body.quarto-dark .profile-extras .cv-btn {
  background: rgba(140, 188, 240, 0.18);
  color: #e3eefa;
  border-color: rgba(140, 188, 240, 0.35);
}
body.quarto-dark .profile-extras .cv-btn:hover,
body.quarto-dark .profile-extras .cv-btn:focus-visible { background: rgba(140, 188, 240, 0.28); color: #fff; }
body.quarto-dark .edu-list i { color: #8cbcf0; }
body.quarto-dark .profile-extras h3 { border-bottom-color: rgba(140, 188, 240, 0.2); }
