@media (min-width: 992px) {
.about-bio,
.mobile-sidebar-news {
  display: none;
}
/* Floating pill navbar core */
#quarto-header {
  background: transparent;
  border: 0;
  display: flex;
  justify-content: center;
  padding-top: .5rem;
  z-index: 1100;
}

#quarto-header .navbar {
  display: inline-flex;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: .5rem 1.5rem;  /* balanced padding for pill edges */
}

/* Remove margin from brand, use padding inside the link group */
#quarto-header .navbar-brand {
  margin: 0; /* no extra space on left edge */
}

/* Add space between title and links inside the nav area */
#quarto-header .navbar-collapse {
  padding-left: 3rem; /* controls gap between title and first link */
}

/* Style individual nav links */
#quarto-header .nav-link {
  border-radius: 9999px;
  padding: .5rem .5rem;
  margin: 0 .2rem;
  transition: background-color .2s ease;
}

#quarto-header .nav-link:hover {
  background-color: rgba(0,0,0,.06);
}

/* Prevent content overlap */
body.nav-fixed {
  padding-top: 4.5rem;
}

main.content {
  scroll-margin-top: 6rem;
}
}

.ref-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5em;   /* vertical spacing between items */
  line-height: 1.55;
}

.ref-num {
  min-width: 2.5em;       /* reserve space for number column */
  text-align: right;
  /* font-weight: 600; */
  margin-right: 1em;
  flex-shrink: 0;
}


.teach-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

.teach-term {
  min-width: 6em;          /* space for the [Term] label */
  text-align: right;
  font-weight: 600;
  margin-right: 1em;
  flex-shrink: 0;
}

/* ===== Mobile: inline, wrapping links like text ===== */
@media (max-width: 991.98px) {

  /* Keep the collapse panel simple */
  #quarto-header .navbar-collapse {
    position: static;
    background: transparent;
    padding: 0.25rem 0;
    box-shadow: none;
    display: block !important;          /* not a flex overlay */
  }

  /* Make the nav list behave like a paragraph */
  #quarto-header .navbar-nav {
    display: block;                      /* normal flow container */
    padding: 0;
    margin: 0;
  }

  /* Each item sits inline so they wrap naturally */
  #quarto-header .navbar-nav .nav-item {
    display: inline;                     /* inline elements wrap */
  }

  /* Links look like text tokens with spaces between them */
  #quarto-header .navbar-nav .nav-link {
    display: inline;                     /* inline, not block */
    padding: 0;                          /* remove block padding */
    margin-right: 0.9rem;                /* space between words */
    line-height: 1.6;                    /* comfortable baseline */
    border-radius: 0;
    background: transparent;
    white-space: normal;                 /* allow wrapping */
  }

  /* No extra space after the last item */
  #quarto-header .navbar-nav .nav-item:last-child .nav-link {
    margin-right: 0;
  }
}

/* ===== Mobile-only styling for About + News ===== */

@media (max-width: 992px) {
  /* About bio block */
  .about-bio {
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .about-bio .about-photo {
    width: 250px;
    /* border-radius: 50%; */
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .about-bio .about-research {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-top: 0.5rem;
  }

  .about-bio .about-previous {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-top: 0.75rem;
  }

  /* Sidebar news block */
  .mobile-sidebar-news {
    font-size: 0.9em;
    margin-top: 1.5rem;
  }

  .mobile-sidebar-news__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .mobile-sidebar-news__list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.5rem 0;
  }

  .mobile-sidebar-news__item {
    margin-bottom: 0.5rem;
  }

  .mobile-sidebar-news__date {
    font-weight: 600;
    margin-right: 0.25rem;
    color: #444;
  }

  .mobile-sidebar-news__links {
    font-size: 0.85em;
    color: #555;
  }

  .mobile-sidebar-news__more {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.9em;
  }
}

/* Tiny, sidebar-friendly styles */
.sidebar-news{font-size:.85rem;line-height:1.25;margin:.75rem 0}
.sidebar-news__title{font-size:1rem;margin:0 0 .5rem}
.sidebar-news__list{margin:0;padding-left:1rem;list-style:disc}
.sidebar-news__item{margin:0 0 .35rem}
.sidebar-news__date{font-weight:600;margin-right:.35rem;white-space:nowrap}
.sidebar-news__links{white-space:nowrap}
.sidebar-news__extra{display:block;margin-left:1.35rem}
.sidebar-news__more{display:inline-block;margin-top:.25rem;font-size:.85em}

/* If the sidebar is tight, uncomment: */
/* .sidebar-news{max-height:12rem; overflow:auto} */

/* If you want no bullets, swap the list style: */
/* .sidebar-news__list{list-style:none;padding-left:0} */

.sidebar .quarto-listing-category-title::after {
  content: "blog topics";
}
.sidebar .quarto-listing-category-title {
  visibility: hidden;
  position: relative;
}
.sidebar .quarto-listing-category-title::after {
  visibility: visible;
  position: absolute;
  left: 0;
}