/* Level l8 figures: on wide screens the idea diagram sits beside the text, so the activity stays near the top. */
@media (min-width: 900px) {
  #l8 .idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
  #l8 .idea > h3, #l8 .idea > .brief { grid-column: 1; }
  #l8 .idea > .fig { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; }
}
#l8 .idea svg.dg { font-size: 16px; }
#l8 details.math svg.dg { font-size: 16px; }
#l8 details.math .fig-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
#l8 details.math .caption + p { margin-top: 12px; }
#l8 .fig figcaption b.src { color: var(--source); } #l8 .fig figcaption b.tgt { color: var(--target); } #l8 .fig figcaption b.good { color: var(--good); } #l8 .fig figcaption b.bad { color: var(--bad); }
