.bio-visual {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #d1dce0;
  border-radius: 14px;
  background: #f8fafc;
  color: #243d49;
}
.bio-vector-scroll,
.bio-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.bio-vector-scroll svg {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 750px;
  height: auto;
  margin: auto;
}
.bio-svg-label {
  font: 16px var(--font-sans);
  fill: #294853;
}
.bio-scientific-asset {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 900px;
  height: auto;
  margin: auto;
}
.bio-axis-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.bio-visual figcaption {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #48626e;
}
.bio-visual table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
  background: white;
}
.bio-visual th,
.bio-visual td {
  padding: 12px;
  text-align: left;
  border: 1px solid #cbd9e0;
  vertical-align: top;
}
.bio-visual th {
  background: #eeedf6;
  color: #524479;
}
.bio-visual caption {
  text-align: left;
  padding: 0 0 12px;
  font-size: 14px;
}
.bio-punnett {
  max-width: 620px;
  margin: auto;
}
.bio-punnett td {
  font-size: 24px;
  font-weight: 750;
  text-align: center;
}
.bio-punnett h4 {
  font-size: 20px;
}
.bio-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
  font-size: 14px;
}
.bio-graph-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.bio-graph-legend i {
  width: 18px;
  height: 5px;
  display: inline-block;
}
.bio-data-details {
  margin: 15px 0;
  font-size: 14px;
}
.bio-data-details table {
  margin: 10px 0 18px;
}
.bio-flow {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 10px;
}
.bio-flow li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #d4cfdf;
  border-radius: 10px;
  background: white;
}
.bio-flow li > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee9f7;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 750;
}
.bio-flow p {
  margin: 0;
  font-size: 16px;
}
.bio-flow b {
  grid-column: 1/-1;
  text-align: center;
  color: #6651a0;
}
.bio-topic-art {
  background: var(--bio-art-surface);
  width: 100%;
  aspect-ratio: 8 / 5;
  height: auto;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.bio-topic-art .bio-visual {
  margin: 0;
  padding: 12px;
  border: 0;
  background: transparent;
  display: grid;
  height: 100%;
  box-sizing: border-box;
  grid-auto-rows: minmax(0, 1fr);
}
.bio-topic-art .bio-vector-scroll {
  min-height: 0;
  overflow: visible;
}
.bio-topic-art .bio-vector-scroll svg {
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: contain;
}
.bio-topic-art .anatomy-thumbnail {
  height: 100%;
  min-height: 0;
}
.bio-topic-art .anatomy-thumbnail svg {
  height: calc(100% - 28px);
}
.bio-topic-art.bio-reference-cover {
  display: flex;
  flex-direction: column;
  padding: 14px 18px 10px;
  box-sizing: border-box;
  background: #fff;
}
.bio-reference-cover > img,
.bio-reference-cover > svg {
  width: 100%;
  height: 0;
  flex: 1 1 0;
  min-height: 0;
  object-fit: contain;
}
.bio-reference-cover > span {
  font:
    11px/1.4 Arial,
    sans-serif;
  color: #526975;
  text-align: center;
  margin-top: 8px;
}
.bio-supporting-model {
  border: 1px solid #cddce3;
  border-radius: 12px;
  padding: 16px;
  margin-block: 16px;
  min-width: 0;
}
.bio-supporting-model > summary {
  cursor: pointer;
  font-weight: 700;
  color: #365366;
  min-height: 44px;
}
.bio-topic-art figcaption {
  display: none;
}
.bio-topic-art .bio-flow {
  gap: 5px;
}
.bio-topic-art .bio-flow li {
  padding: 7px 12px;
  font-size: 14px;
}
.bio-topic-art .bio-flow b {
  display: none;
}
.bio-topic-art .bio-punnett h4,
.bio-topic-art .bio-punnett p,
.bio-topic-art .bio-punnett caption {
  display: none;
}
.bio-topic-art .bio-punnett th,
.bio-topic-art .bio-punnett td {
  padding: 7px;
  font-size: 16px;
}
.bio-page {
  --learning-chem: var(--learning-bio);
}
.bio-topic-folder > summary > .bio-topic-art {
  grid-column: 1/-1;
}
.bio-page :focus-visible {
  outline: 3px solid #b17923;
  outline-offset: 4px;
}
.bio-page .bio-primary {
  background: var(--learning-bio);
}
.bio-page .bio-topic-folder {
  border-color: var(--bio-card-border);
}
.bio-memory-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.bio-memory-panel {
  min-width: 0;
  border: 1px solid #d1c9e0;
  border-radius: 12px;
  background: white;
  padding: 18px;
}
.bio-memory-panel h3 {
  margin: 0 0 14px;
  font-size: 19px;
  color: #574183;
}
.bio-memory-panel ol,
.bio-memory-panel ul {
  padding-left: 22px;
}
.bio-memory-panel li {
  margin: 12px 0;
}
.bio-memory-panel .bio-visual {
  margin: 0;
  padding: 8px;
}
.bio-memory-panel .bio-vector-scroll svg {
  min-width: 0;
}
.bio-memory-trap {
  border-left: 4px solid #b5883e;
  padding: 12px 16px;
  background: #fff7e9;
  border-radius: 6px;
}
.bio-teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bio-teacher-grid > article {
  padding: 20px;
  border: 1px solid var(--bio-card-border);
  border-radius: 14px;
  background: white;
}
.bio-teacher-grid > article h3 {
  font-size: 19px;
}
.bio-teacher-grid > article progress {
  width: 100%;
  accent-color: var(--learning-bio);
}
.bio-attempt-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.bio-attempt-table > button {
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid #d3dce0;
  border-radius: 10px;
  background: white;
  padding: 16px;
  color: var(--navy);
  font: 16px var(--font-sans);
}
.bio-review-form textarea {
  width: 100%;
}
@media (max-width: 700px) {
  .bio-memory-layout,
  .bio-teacher-grid {
    grid-template-columns: 1fr;
  }
  .bio-visual {
    padding: 12px;
  }
}
@media print {
  .bio-vector-scroll {
    overflow: visible;
  }
  .bio-vector-scroll svg {
    min-width: 0;
    max-width: 100%;
  }
  .bio-visual {
    break-inside: avoid;
  }
  .bio-memory-layout {
    display: block;
  }
  .bio-memory-panel {
    margin: 12px 0;
    break-inside: avoid;
  }
}
@media print {
  .bio-scientific-asset {
    min-width: 0;
    max-width: 100%;
  }
}
.bio-labelled-anatomy {
  margin: 1rem auto;
  max-width: 44rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #d1dfe6;
  background: #fff;
  border-radius: 1rem;
}
.bio-labelled-anatomy > svg {
  display: block;
  width: 100%;
  max-height: 620px;
  overflow: hidden;
  margin: auto;
}
.bio-labelled-anatomy figcaption {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #294958;
  margin-top: 1rem;
}
.bio-labelled-anatomy .bio-art-credit {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #536b77;
}
.bio-cover-credits {
  max-width: 70rem;
  margin: 1.25rem auto;
  padding: 1rem;
  color: #526b78;
  font-size: 0.8rem;
  line-height: 1.6;
}
.bio-cover-credits summary {
  cursor: pointer;
}
.bio-cover-credits li + li {
  margin-top: 0.65rem;
}
.bio-cover-credits a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
