/* Level l9 figures (group G5). Every rule is scoped to #l9.
   On wide screens the two real-data sliders sit beside the idea text, so the activity stays near the top. */
#l9 .idea .fig-row { max-width: 40rem; margin: 12px 0 0; }
@media (min-width: 900px) {
  #l9 .idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(36rem, 48%)); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
  #l9 .idea > h3, #l9 .idea > .brief { grid-column: 1; }
  #l9 .idea > .fig-row { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#l9 .explain .fig-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin: 10px 0 12px; }
#l9 .explain .fig { margin: 10px 0 12px; }
#l9 .explain .fig-row > .fig { margin: 0; }
#l9 details.math .fig-row { max-width: 36rem; margin: 6px 0 14px; }
#l9 .dg .halo { stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
#l9 .dg .mth { font-family: "Times New Roman", Times, serif; font-style: italic; }
