/* Scoped styles for overview.qmd: the family panels and the sorting flowchart.
   Loaded from that page's own `css:` frontmatter, so nothing here reaches any
   other page. Kept out of resources/scss/main.scss and scss/global.scss on
   purpose -- those are site-wide and theme-level. */

/* Description on the left, panel on the right; one column on phones. */
.family-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 1.25rem 1.75rem;
  align-items: start;
  margin: 1.1rem 0 1.4rem;
}

.family-row > .family-text > :first-child { margin-top: 0; }
.family-row > .family-text > :last-child  { margin-bottom: 0; }

.family-fig figure,
.family-tree figure { margin: 0; }

.family-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* The flowchart is a standalone figure, narrower than the body text. */
.family-tree {
  max-width: 720px;
  margin: 1.2rem 0 1.4rem;
}

.fig-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #6c757d;
}

.fig-note code { font-size: 0.95em; }

@media (max-width: 767.98px) {
  .family-row { grid-template-columns: minmax(0, 1fr); }
  .family-tree { max-width: 100%; margin-left: 0; margin-right: 0; }
}
