/* Notebook page: jump buttons, section heads, link buttons and PDF viewers.
   Prefix nb-. Mirrors the Human Practices look (kickers, pill buttons,
   accordion) without loading its stylesheet. */

.nb-poc1  { --nb-accent: var(--pipe-blue-deep); --nb-soft: var(--pipe-blue-soft); }
.nb-poc2  { --nb-accent: var(--gate-green-deep); --nb-soft: var(--gate-green-soft); }
.nb-yeast { --nb-accent: var(--rna-amber-deep); --nb-soft: var(--rna-amber-soft); }

.nb-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.nb-jump .pill-btn,
.nb-links__btn {
  --pill-accent: var(--nb-accent);
  --pill-soft: var(--nb-soft);
}

.nb-jump .pill-btn {
  white-space: normal;
}

.nb-jump .pill-btn::after,
.nb-links__btn::after {
  content: "\2192";
  font-family: var(--font-mono);
  font-weight: 700;
}

.nb-jump .pill-btn::after {
  content: "\2193";
}

/* Section head: mono kicker above the heading, in the case-line colour. */
.nb-sec-head h2 {
  margin-top: 0;
}

.nb-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nb-accent);
  margin-bottom: 0.35rem;
}

/* Link rows: label, pill button, then the short explanation. */
.nb-links {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.nb-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.6rem;
}

.nb-links__label {
  flex: 0 0 5.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nb-accent);
}

.nb-links__btn {
  max-width: 100%;
  white-space: normal;
}

.nb-links__note {
  flex: 1 1 14rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Viewer: the site accordion, body reduced to the frame. */
.nb-viewer {
  margin: 0 0 2rem;
}

.nb-viewer .accordion-body {
  padding: 0;
  overflow: hidden;
}

.nb-viewer-frame iframe {
  display: block;
  width: 100%;
  height: clamp(520px, 80vh, 1000px);
  border: 0;
}

@media (max-width: 575.98px) {
  .nb-links__label {
    flex-basis: 100%;
  }

  .nb-viewer-frame iframe {
    height: 70vh;
    min-height: 420px;
  }
}
