/* Level "l1" figures (group G2). Every rule is scoped to #l1. */
/* On wide screens the idea diagram sits beside the text, so the activity stays near the top. */
@media (min-width: 900px) {
  #l1 .idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
  #l1 .idea > h3, #l1 .idea > .brief { grid-column: 1; }
  #l1 .idea > .fig { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; }
}
#l1 .l1-fig-idea { max-width: 34rem; }
#l1 .l1-fig-board, #l1 .l1-fig-bowl { max-width: 36rem; }
#l1 .l1-fig-centre { max-width: 36rem; }
#l1 .l1-fig-centre .fig-row { margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
#l1 .dg .halo { stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
#l1 .l1-fig-centre .fig-row svg.dg { max-width: 18rem; margin-inline: auto; }
/* the slide map: a faint orange dot follows the average pull from t = 0 to the bottom, every few seconds.
   figs.css stops animations for readers who prefer reduced motion; the dot then stays hidden (opacity 0). */
#l1 .dg .l1-glide { opacity: 0; animation: l1-glide 5s ease-in-out infinite; }
@keyframes l1-glide {
  0%, 12% { transform: translate(0, 0); opacity: 0; }
  20% { transform: translate(0, 0); opacity: 0.85; }
  70% { transform: translate(178px, -84px); opacity: 0.85; }
  84%, 100% { transform: translate(178px, -84px); opacity: 0; }
}
