/* Force no extra space */
.quarto-title, .quarto-title-block, .quarto-title-meta {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.quarto-document {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove extra space between content and footer */
html, body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.quarto-page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove any extra spacing that might be causing scroll */
.quarto-about-trestles {
  margin-bottom: 0 !important;
}

footer {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

/* Ensure no extra space at bottom */
.main-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Make navbar smaller and fixed */
.navbar {
  background-color: #2c3e50 !important;
  padding: 0.3rem 1rem !important;
  min-height: 50px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1030 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Make navbar brand/text smaller */
.navbar .navbar-brand {
  font-size: 1.1rem !important;
  padding: 0.3rem 0 !important;
}

/* Make nav links smaller */
.navbar .nav-link {
  font-size: 1.2rem !important;
  padding: 0.3rem 0.8rem !important;
}

/* Add padding to body to account for fixed navbar */
body {
  padding-top: 20px !important;
}

/* Navbar toggler (hamburger menu on mobile) */
.navbar-toggler {
  padding: 0.2rem 0.5rem !important;
  font-size: 1rem !important;
}

/* ============================================================
   HOME PAGE - ABOUT SECTION
   ============================================================ */

/* Target the about container - use full width */
.quarto-about-trestles {
  display: flex !important;
  gap: 30px !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 20px !important;
}

/* Left column - image and links */
.quarto-about-trestles .about-entity {
  flex: 0 0 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: fit-content !important;
  align-self: flex-start !important;
  overflow: visible !important;
}

/* Right column - bio content - make it take ALL remaining space */
.quarto-about-trestles .about-contents {
  flex: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding-right: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Force ALL content in right column to use full width */
.quarto-about-trestles .about-contents * {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* But override for links container to keep it inline */
.quarto-about-trestles .about-contents .about-links,
.quarto-about-trestles .about-contents .about-links * {
  width: auto !important;
  max-width: 100% !important;
}

/* Increase font sizes to fill the space */
.quarto-about-trestles .about-contents {
  font-size: 1.8rem !important;
  line-height: 1.4 !important;
}

.quarto-about-trestles .about-contents p {
  font-size: 1.8rem !important;
  line-height: 1.4 !important;
  margin-bottom: 1rem !important;
}

.quarto-about-trestles .about-contents strong {
  font-size: 1.8rem !important;
}

.quarto-about-trestles .about-contents h2 {
  font-size: 1.7rem !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.8rem !important;
}

/* Keep image at its natural size, but fit in column */
.quarto-about-trestles .about-image {
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  display: block !important;
  margin-bottom: 5px !important;
  border-radius: 8% !important;
}

/* Make about section links larger with original colors */
.about-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.about-links .about-link {
  font-size: 1.2rem !important;
  padding: 0.1rem 0.2rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-decoration: none !important;
}

/* Make icons larger */
.about-links .about-link i {
  font-size: 1.4rem !important;
  width: 1.6rem !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

/* Link text - larger */
.about-links .about-link-text {
  white-space: nowrap !important;
  font-size: 1.15rem !important;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .quarto-about-trestles {
    flex-direction: column !important;
    gap: 30px !important;
    padding: 0 20px !important;
    min-height: auto !important;
  }
  
  .quarto-about-trestles .about-entity {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    text-align: center !important;
    min-width: unset !important;
  }
  
  .quarto-about-trestles .about-image {
    max-width: 180px !important;
    margin: 0 auto 15px !important;
  }
  
  .about-links .about-link {
    justify-content: center !important;
    padding: 0.4rem 1rem !important;
    font-size: 1.1rem !important;
  }
  
  .about-links .about-link-text {
    white-space: normal !important;
  }
  
  .quarto-about-trestles .about-contents {
    font-size: 1rem !important;
    padding-right: 0 !important;
    overflow-y: visible !important;
  }
  
  .quarto-about-trestles .about-contents p {
    font-size: 1rem !important;
  }
}

/* ============================================================
   PUBLICATIONS - STYLING
   ============================================================ */

.publications-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #0366d6;
}

.publications-header p {
  margin: 0;
  line-height: 1.6;
}

.publications-header a {
  color: #0366d6;
  text-decoration: none;
}

.publications-header a:hover {
  text-decoration: underline;
}

.publication-section {
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 1.8rem;
  border-bottom: 3px solid #0366d6;
  padding-bottom: 10px;
  color: #1a1a1a;
}

.pub-card {
  padding: 14px 0;
  margin: 6px 0;
  border-bottom: 1px solid #e8e8e8;
  transition: background-color 0.2s;
}

.pub-card:hover {
  background-color: #f8f9fa;
  padding-left: 10px;
  border-radius: 4px;
}

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

.pub-citation {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #222;
}

.pub-number {
  font-weight: 700;
  color: #0366d6;
  margin-right: 4px;
  font-size: 1.15rem;
}

.pub-citation em {
  font-style: italic;
}

.pub-citation a {
  text-decoration: none;
  color: #0366d6;
}

.pub-citation a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .pub-citation {
    font-size: 1rem;
  }
  
  .publication-section {
    font-size: 1.4rem;
  }
  
  .publications-header {
    padding: 12px 15px;
  }
}

/* Only on screens wider than 1400px */
@media (min-width: 1400px) {
  .quarto-about-trestles .about-entity {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }
  
  .quarto-about-trestles .about-image {
    max-width: 220px !important;
  }
}

/* ============================================================
   FIX: Remove scrollbar by hiding overflow on the page container
   ============================================================ */

.quarto-content {
  overflow: hidden !important;
  height: auto !important;
}