/* Walkthrough navigation: pill bar on top, Next button at the bottom. */
.step-nav {
  margin: 0 0 2.5em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid #dde3e6;
}
.step-nav.no-rule {
  border-bottom: none;
  padding-bottom: 0;
}
/* pandoc wraps the row contents in a <p>, so that is the flex container. */
.step-nav p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.step-nav .step-label {
  font-weight: 600;
  color: #6b7b85;
  margin-right: 4px;
}
.step-nav a,
.step-nav .current {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  border: 1px solid #c8dde5;
}
.step-nav a {
  background-color: #e4f0f4;
  color: #1f6f8b !important;
}
.step-nav a:hover,
.step-nav a:focus {
  background-color: #d3e7ee;
  color: #17566b !important;
}
.step-nav .current {
  background-color: #1f6f8b;
  color: #ffffff;
  border-color: #1f6f8b;
}
.next-step {
  text-align: right;
  margin: 2.5em 0 1em;
}
.next-step a {
  display: inline-block;
  background-color: #1f6f8b;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none !important;
}
.next-step a:hover,
.next-step a:focus {
  background-color: #17566b;
}

/* NMNH Hydra tips. Smithsonian palette: blue #009CDE, yellow #FFCD00, black #101820 */
.alert-hydra {
  background-color: #E7F6FC;
  border: 0;
  border-left: 5px solid #101820;
  color: #101820;
}
.alert-hydra .hydra-tag {
  display: inline-block;
  background-color: #FFCD00;
  color: #101820;
  font-size: 0.75em;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 10px;
  margin-right: 6px;
  vertical-align: 2px;
}

/* Tables: the theme's cell padding makes rows very tall. */
main table {
  font-size: 0.9rem;
}
main table td,
main table th {
  padding: 0.4rem 0.6rem !important;
}
@media (max-width: 576px) {
  main table {
    font-size: 0.8rem;
  }
  main table td,
  main table th {
    padding: 0.3rem 0.4rem !important;
  }
}

/* Navbar: keep items on one line, and let every menu entry show. */
.navbar .nav-link {
  white-space: nowrap;
}
.navbar button.nav-link {
  text-transform: uppercase;
  font-size: inherit;
  letter-spacing: inherit;
}
.navbar .dropdown-menu {
  max-height: calc(100vh - 120px);
}

/* Logo: smaller on inner pages so it clears the header rule. */
img.logo {
  width: 72px;
}
.template-home img.logo {
  width: 110px;
}
.page-header {
  min-height: 96px;
}
.template-home .page-header {
  min-height: 130px;
}

/* Screenshots: one frame for all, and captions set apart from body text. */
main img:not(.logo) {
  border: 1px solid #dde3e6;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
main img.plain,
main a > img[src*="shields.io"] {
  border: 0;
  box-shadow: none;
}
p.caption {
  font-size: 0.85rem;
  font-style: italic;
  color: #6b7b85;
  text-align: center;
  margin-top: 0.3rem;
}

/* Compact icon table for sample states (same style as MitoPilot). */
.state-icon {
  color: #1f6f8b;
  width: 1.3em;
  text-align: center;
  margin-right: 2px;
}
main table.state-table {
  width: auto;
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.3;
  margin: 0.75rem 0 1.25rem;
}
main table.state-table > :not(caption) > * > * {
  padding: 2px 18px 2px 0 !important;
  border-bottom-width: 0;
  box-shadow: none;
  vertical-align: baseline;
  background: none;
}
main table.state-table > thead > tr > th {
  font-weight: 600;
  padding-bottom: 4px !important;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
