/* Level "why" figures (group G1). Every rule is scoped to #why. */
#why svg.dg.t16 { font-size: 16px; }
#why .dg .halo { stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
/* Introduction: two small scan panels (framed like the game's own plots) and the real map. */
#why .why-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; margin-top: 14px; align-items: start; max-width: 62rem; }
#why .why-overview > .fig { margin: 0; }
#why .why-overview svg.dg { background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; }
@media (max-width: 760px) {
  #why .why-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #why .why-overview > .fig:last-child { grid-column: 1 / -1; }
}
/* History cards: one diagram each, under the card title. */
#why .card .why-cardfig { width: 100%; max-width: 30rem; margin: 2px auto 4px; }
#why .card .why-cardfig.why-icp { max-width: 46rem; }
#why .why-icp .fig-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin: 0; }
#why .why-icp .fig-row svg.dg { background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; }
/* When the three ICP rounds cannot sit in one row, show two, with the settled round centred under them (not stretched alone). */
#why .why-icp { container-type: inline-size; }
@container (min-width: 364px) and (max-width: 551.98px) {
  #why .why-icp .fig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #why .why-icp .fig-row svg.dg:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
