/* ============================================================
   YOUR CUSTOM STYLES
   This file is yours. Edit anything. Add anything. Save and commit.
   Each rule is a normal CSS rule: a selector, then properties.
   Comments are between /* and */ /* (like this).
   ============================================================ */

/* Make the page title (your name on the homepage) lighter weight
   rather than the default bold. Delete this rule to keep it bold. */
.quarto-title h1.title {
  font-weight: 500;
}

/* Make the bio paragraphs slightly larger for readability. */
.quarto-about-trestles .about-entity p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Tighten spacing between the photo and the bio text on the homepage. */
.quarto-about-trestles {
  gap: 2rem;
}

/* ============================================================
   COMMON TWEAKS — uncomment any of these as needed
   ============================================================ */

/* Change the accent colour used for links throughout the site.
   Pick any hex code (https://htmlcolorcodes.com/) */
/*
a, .navbar a:hover, .nav-link.active {
  color: #1f5582 !important;
}
*/

/* Wider content area (default body-width is set in _quarto.yml; this is a finer override) */
/*
.content {
  max-width: 900px;
}
*/

/* Smaller navbar */
/*
.navbar {
  padding: 0.25rem 1rem;
}
*/

/* Hide the "Published" date that Quarto adds by default to pages */
/*
.quarto-title-meta {
  display: none;
}
*/

/* Homepage two-column layout */
.home-grid {
  margin-top: 2rem;
  gap: 2.5rem;
}

.home-portrait {
  width: 100%;
  max-width: 220px;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.home-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.home-subtitle a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.home-subtitle a:hover {
  border-bottom: 1px solid currentColor;
}

.navbar.navbar-expand-lg,
nav.navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

body {
  scroll-padding-top: 60px;
}

.publication-links {
  font-size: 0.9rem;
  color: #666;
}
.publication-links a {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

/* Abstract toggle */
details {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--bs-link-color);
  user-select: none;
  list-style: none;
  font-weight: 500;
}

details summary::before {
  content: "▶ ";
  font-size: 0.7rem;
  margin-right: 0.3rem;
}

details[open] summary::before {
  content: "▼ ";
}

details summary:hover {
  text-decoration: underline;
}

/* When opened, wrap the whole thing in the same box style as Upcoming/News */
details[open] {
  background-color: var(--bs-tertiary-bg);
  border-radius: 0.5rem;
  padding: 0.9rem 1.2rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.info-box {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.info-box h3,
.info-box p,
.info-box li,
.info-box a {
  color: inherit;
}

.info-box a {
  text-decoration: underline;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.pub-btn {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  margin-right: 0.25rem;
  font-size: 0.78rem;
  color: var(--bs-primary);
  background-color: rgba(13, 110, 253, 0.08);
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pub-btn:hover {
  background-color: var(--bs-primary);
  color: white;
  text-decoration: none;
}
