/* Hide the package logo on article pages; keep it on home and reference. */
.template-article img.logo {
  display: none;
}

/* Bootstrap styles the <figcaption> element, but pandoc emits a div/p with a
   class instead. Markup differs by pandoc version, so cover both. */
.float > .figcaption,
.figure > .caption {
  font-size: 0.875em;
  font-style: italic;
  color: var(--bs-secondary-color, #6c757d);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Compact taxonomic scope table on the home page (32 rows).
   Selector shape mirrors Bootstrap's `.table > :not(caption) > * > *` so the
   cell padding override actually wins. */
table.clade-table {
  font-size: 0.94rem;
  line-height: 1.25;
  width: auto;
  max-width: 100%;
  margin: 0.75rem 0 1.25rem;
  display: block;
  overflow-x: auto;
}
table.clade-table > :not(caption) > * > * {
  padding: 1px 12px 1px 0;
  border-bottom-width: 0;
  box-shadow: none;
  white-space: nowrap;
  vertical-align: baseline;
  background: none;
}
table.clade-table > thead > tr > th {
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
table.clade-table p {
  margin: 0;
}
table.clade-table code {
  font-size: 0.95em;
  padding: 0;
  background: none;
}
