/* css styles */

/* Remove borders from links in the about section */
.about-link {
    border: none !important;
    text-decoration: none !important; /* Optional: remove underline too */
    padding: 0 0px !important;
    font-size: 1.2em !important;
}

/* Optional: Remove border on hover/focus */
.about-link:hover {
    border: none !important;
}

span.__dimensions_badge_embed__, div.altmetric-embed {
  display: inline-flex;
  vertical-align: middle;
}


.inline {
  display: inline-block;
}

/* Publication list (research.qmd) */
.pub-entry {
  margin-bottom: 1.5rem;
}

.pub-citation {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.pub-links .btn {
  font-size: 0.8rem;
  padding: 0.2rem 0.85rem;
}

.pub-links .btn i {
  margin-right: 0.2rem;
}

.pub-links .btn[aria-expanded="true"] .bi-chevron-down {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform 0.15s ease-in-out;
}

.pub-links .btn .bi-chevron-down {
  display: inline-block;
  transition: transform 0.15s ease-in-out;
}

.pub-abstract {
  margin-top: 0.6rem;
}

.pub-abstract .card-body {
  background-color: #f8f9fa;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pub-box {
  margin-top: 0.5rem;
}

.pub-box .pub-links {
  margin-bottom: 0;
}

.pub-metrics {
  align-items: center;
  row-gap: 0.5rem;
}

.pub-metric-widget {
  vertical-align: middle;
}

/* Quarto's #quarto-margin-sidebar (the "On this page" TOC) is a tall
   position:sticky box sized to the full viewport height for its own
   scroll-tracking behavior, but only its <nav> child actually has visible
   content - the rest of that box is empty/transparent. It sits in the
   same grid column as, and paints over, any .column-margin content placed
   below it (like the Categories list here), so clicks there were landing
   on the sidebar's empty space instead of on our buttons - raising our own
   z-index didn't help since the two aren't sibling stacking contexts.
   Fix: make the sidebar box itself click-through, and only re-enable
   pointer events on its actual nav content. */
#quarto-margin-sidebar {
  pointer-events: none;
}

#quarto-margin-sidebar > * {
  pointer-events: auto;
}

.pub-filter-bar {
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.pub-filter-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.pub-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-filter-list li {
  margin-bottom: 0.3rem;
}

.pub-filter-btn {
  border: none;
  background: none;
  padding: 0;
  color: #495057;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  line-height: 1.4;
}

.pub-filter-btn:hover {
  color: var(--bs-primary, #18bc9c);
  text-decoration: underline;
}

.pub-filter-btn.active {
  color: var(--bs-primary, #18bc9c);
  font-weight: 600;
}

.pub-filter-count {
  color: #adb5bd;
  font-size: 0.85em;
}

@media (prefers-color-scheme: dark) {
  .pub-filter-heading {
    color: #999;
  }
  .pub-filter-btn {
    color: #ccc;
  }
  .pub-filter-count {
    color: #777;
  }
}

/* Google Scholar has no embeddable widget of its own, so this mimics the
   look of the Altmetric/Dimensions badges next to it: same two-part
   shape (colored logo block + light label block), same ~88x22px size. */
.pub-scholar-badge {
  display: inline-flex;
  align-items: stretch;
  height: 22px;
  border-radius: 3px;
  overflow: hidden;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 22px;
  text-decoration: none;
  border: 1px solid #d2d2d2;
}

.pub-scholar-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  background-color: #4285f4;
  color: #fff;
}

.pub-scholar-badge-icon img {
  display: block;
}

.pub-scholar-badge-label {
  padding: 0 8px;
  background-color: #f4f4f4;
  color: #333;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.pub-scholar-badge:hover {
  text-decoration: none;
}

.pub-scholar-badge:hover .pub-scholar-badge-label {
  background-color: #e8e8e8;
}

@media (prefers-color-scheme: dark) {
  .pub-scholar-badge {
    border-color: #444;
  }
  .pub-scholar-badge-label {
    background-color: #2a2a2a;
    color: #ddd;
  }
  .pub-scholar-badge:hover .pub-scholar-badge-label {
    background-color: #333;
  }
}

@media (prefers-color-scheme: dark) {
  .pub-abstract .card-body {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* CU Boulder logo used as an about-page link icon (matches the size/
   baseline of the Bootstrap-icon glyphs used by the other about links) */
.about-link-cu-logo {
  height: 1em;
  width: 1em;
  object-fit: contain;
  vertical-align: -0.125em;
  /* desaturate the gold/black mark so it reads as the same grey as the
     Bootstrap-icon glyphs used by the other about-page links */
  filter: grayscale(1) opacity(0.75);
}

.about-link:hover .about-link-cu-logo {
  filter: grayscale(1) opacity(1);
}