section.band > .bio-section-wrap {
  display: block;
}
section.bio-report-section:has(.bio-section:not([open])) {
  padding-block: 20px;
}
.bio-section summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 2px 29px 4px 0;
}
.bio-section summary::-webkit-details-marker {
  display: none;
}
.bio-section summary::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: 7px;
  top: 12px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bio-section[open] summary::after {
  transform: rotate(225deg);
}
.bio-section summary:hover h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bio-section > .boxes {
  margin-top: 16px;
}
@supports selector(details::details-content) {
  @media screen and (min-width: 901px) {
    .bio-section[open] {
      display: grid;
      grid-template-columns: 180px minmax(0, 1fr);
      gap: 28px;
      align-items: start;
    }
    .bio-section[open] > .boxes {
      margin-top: 0;
    }
    .bio-section[open] summary {
      padding-right: 0;
    }
    .bio-section[open] summary::after {
      left: 26px;
      right: auto;
      top: 12px;
    }
  }
}
.bio-report [id^="problem-"],
.bio-report [id^="bio-ref-"],
.bio-demo {
  scroll-margin-top: 68px;
}
.bio-demo {
  margin: 0;
  width: min(100%, 760px);
}
.bio-demo video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--penn-blue);
}
.bio-demo figcaption {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.875rem;
}
.bio-decisions {
  display: grid;
  gap: 16px;
}
@media print {
  .bio-section summary::after,
  .bio-demo {
    display: none;
  }
  .bio-section summary {
    display: block;
    break-after: avoid;
  }
  .bio-section summary .num {
    display: block;
  }
  .bio-section > .boxes {
    margin-top: 4px;
  }
  .bio-report .box {
    display: block;
  }
  .bio-report .box > * + * {
    margin-top: 8px;
  }
  .bio-report .details,
  .bio-report .bio-decisions {
    display: block;
  }
  .bio-report .details > div + div,
  .bio-decisions > div + div {
    margin-top: 10px;
  }
  .bio-report .box p,
  .bio-report .reading-list,
  .bio-report .details,
  .bio-report .compare ol {
    font-size: 10.5pt;
    line-height: 1.45;
  }
  .bio-report .story-steps li {
    break-inside: avoid;
  }
}

.bio-workspace-views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bio-workspace-views figure {
  margin: 0;
  break-inside: avoid;
}
.bio-workspace-views img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.bio-workspace-views figcaption {
  padding-top: 8px;
}
@media (max-width: 600px) {
  .bio-workspace-views {
    grid-template-columns: 1fr;
  }
}

/* Report figures keep labels as selectable text and stack in reading order. */
.bio-build-phase {
  border-top: 1px solid var(--line);
  padding-block: 1.1rem;
}
.bio-build-phase .bio-version {
  color: var(--navy);
  font-weight: 650;
  margin-bottom: 0.25rem;
}
.bio-build-phase figure {
  margin: 1rem 0 0;
  max-width: min(100%, 38rem);
}
.bio-build-phase img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.bio-build-phase figcaption,
.bio-cross figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.45;
}
.bio-cross {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
  margin: 1rem 0;
  align-items: center;
}
.bio-cross > div:first-child {
  border: 1px solid var(--line);
  padding: 1rem;
}
.bio-cross-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  font-variant-numeric: tabular-nums;
}
.bio-cross-bar {
  height: 0.95rem;
  border-left: 1px solid var(--line);
  background: var(--penn-blue);
  width: var(--bar);
}
.bio-cross-bar.recombined {
  background: repeating-linear-gradient(135deg, #7996aa 0 3px, #d4e4f2 3px 6px);
  outline: 1px solid #617b8d;
  outline-offset: -1px;
}
.bio-cross figcaption {
  grid-column: 1 / -1;
}
@media (max-width: 680px) {
  .bio-cross {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}
@media print {
  .bio-build-phase figure,
  .bio-cross {
    break-inside: avoid;
  }
  .bio-build-phase img {
    width: auto;
    max-width: 100%;
    max-height: 5.7cm;
  }
  .bio-build-phase {
    padding-block: 0.5rem;
  }
  .bio-build-phase:has(figure) {
    break-inside: avoid;
  }
  .bio-cross-bar {
    print-color-adjust: exact;
  }
}
.bio-water {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 1rem;
  margin: 1.25rem 0 0.25rem;
}
.bio-water legend {
  font-weight: 650;
  color: var(--navy);
  padding: 0 0.3em;
}
.bio-water input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--navy);
  vertical-align: middle;
}
.bio-water-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}
.bio-water label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-block: 0.6rem;
  cursor: pointer;
}
.bio-water-state {
  display: none;
}
.bio-water:has(#bio-water-first:checked) .water-first,
.bio-water:has(#bio-water-second:checked) .water-second {
  display: block;
}
.bio-vessel {
  margin-top: 0.5em;
  max-width: 34rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eaf2f8;
  border: 1px solid #8498ad;
}
.bio-chamber {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  padding: 0.85rem 0.2rem;
}
.bio-chamber + .bio-chamber {
  border-left: 2px dashed var(--navy);
}
.bio-solute {
  width: 4.5rem;
  height: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 0.38rem;
}
.bio-solute i {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--navy);
  border-radius: 50%;
}
.bio-water .bio-water-key {
  margin: 0.35rem 0 0.8rem;
  color: var(--muted);
}
@media print {
  .bio-water label,
  .bio-water input {
    display: none;
  }
  .bio-water .bio-water-state {
    display: block;
    break-inside: avoid;
  }
  .bio-vessel {
    print-color-adjust: exact;
  }
}
