/* Small refinements that are simpler as plain CSS than as SCSS overrides. */

/* Quarto's listing grid: let our own card styles win over the Bootstrap card. */
.quarto-listing-container-grid .card {
  border-width: 1px;
}

.quarto-listing-container-grid .card-img-top {
  display: none;
}

/* The dark-mode toggle sits a little tight against the icon links. */
.quarto-color-scheme-toggle {
  margin-left: 0.25rem;
}

/* Search overlay: match the site's type. */
.aa-DetachedSearchButtonPlaceholder,
.aa-Input {
  font-size: 0.88rem;
}

/* Long kallisto / DESeq2 console output should scroll, never break the layout. */
pre {
  max-width: 100%;
}

/* Anchor links: only reveal on hover, and keep them off the print copy. */
.anchorjs-link {
  opacity: 0;
  transition: opacity 0.14s ease;
}

h2:hover .anchorjs-link,
h3:hover .anchorjs-link,
h4:hover .anchorjs-link {
  opacity: 0.5;
}

@media print {
  .navbar,
  .nav-footer,
  #TOC,
  .anchorjs-link {
    display: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #666;
  }
}
