/* Act 12 · sums and products. The four "add in pairs" cards: the result is one line of maths, so it takes the
   card's full width (no label column), and on phones the cards sit two by two to keep the section near one screen. */
#s-derive .xs-spec dl > div { grid-template-columns: 1fr; }
#s-derive .xs-spec dt { display: none; }
@media (max-width: 719px) {
  #s-derive .xs-specs.compact { grid-template-columns: 1fr 1fr; gap: 8px; }
  #s-derive .xs-specs.compact .xs-spec-sym { font-size: 1.6rem; }
  #s-derive .xs-spec dl > div { font-size: 14px; }
}
/* the proof's equation is four terms with fractions: a touch smaller so the two lines stay short */
#s-proof .mx-eq { font-size: clamp(1.2rem, 5.4vw, 2.4rem); }
@media (min-width: 720px) { #s-derive .xs-specs { grid-template-columns: repeat(2, 1fr); } }
/* the beats product is two long factors: on phones each takes the full width, its label under it */
@media (max-width: 899px) {
  #b-beats .xs-term { grid-template-columns: 1fr; gap: 6px; }
  #b-beats .xs-term > .xs-tlab { padding: 0 0 0 14px; }
  #b-beats .xs-eqrow { font-size: clamp(1.25rem, 5.6vw, 1.8rem); }
}
