/* Parametric Equations: page layout. No colours here: every colour is the course palette's (../lib/lesson-colors.css),
   through the macros in katex-macros.json: \tc t (pink), \xc x (blue), \yc y (green), \pth the path and a point some t
   reaches (orange), \pB particle B (violet). The meanings are planning/colour.md's. */

/* one chain, two breaks: the wide one on a wide screen, the stacked one on a phone, so nothing scrolls sideways */
:root[data-alive-ui] body main.col .pq-n{display:none}
@media (max-width:640px){
  :root[data-alive-ui] body main.col .pq-w{display:none}
  :root[data-alive-ui] body main.col .pq-n{display:block}
}

/* a figure beside its rows: the rows keep the width their maths needs (never wrapped inside a step) and the figure takes the
   rest, which is its own size or within a few percent of it (the shared .9fr/1.1fr split drew the wider figures here at
   about 80%, and their labels with them) */
:root[data-alive-ui] body main.col .look-pair.pq-pair{grid-template-columns:minmax(0,1fr) max-content;column-gap:24px}
:root[data-alive-ui] body main.col .look-pair.pq-pair.pq-rows-first{grid-template-columns:max-content minmax(0,1fr)}
:root[data-alive-ui] body main.col .look-pair.pq-pair>.look-rows .math-chain{justify-content:center}
@media (max-width:640px){
  :root[data-alive-ui] body main.col .look-pair.pq-pair,
  :root[data-alive-ui] body main.col .look-pair.pq-pair.pq-rows-first{grid-template-columns:1fr}
}
/* a step that starts a new group of rows (the result after its steps) sits a little apart, by space, not a rule */
:root[data-alive-ui] body main.col :is(.look-card,.look-rows) .row.pq-gap{margin-top:20px}

/* the tables of t and the points it gives: centred in their card, at the cards' maths size */
:root[data-alive-ui] body main.col .pq-table .math-chain{justify-content:center}

/* practice: answers that are a pair or an interval read as one line, the boxes as wide as a number needs */
:root[data-alive-ui] body main.col .prob .answer-fields.pq-fields{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
:root[data-alive-ui] body main.col .prob .answer-fields.pq-fields+.answer-fields.pq-fields{margin-top:8px}
:root[data-alive-ui] body main.col .prob .answer-fields.pq-fields input{width:170px}
:root[data-alive-ui] body main.col .prob .answer-fields.pq-fields input.pq-short{width:74px}
@media (max-width:640px){
  :root[data-alive-ui] body main.col .prob .answer-fields.pq-fields input{width:150px}
  :root[data-alive-ui] body main.col .prob .answer-fields.pq-fields input.pq-short{width:64px}
}
/* a given graph in a problem: at its own size, centred, no card of its own inside the problem's card */
:root[data-alive-ui] body main.col .prob figure.lean-given{margin:14px 0 6px 44px}
:root[data-alive-ui] body main.col .prob figure.lean-given>svg:not(.katex svg){width:auto;max-width:100%;height:auto;display:block;margin:0 auto}
@media (max-width:640px){
  :root[data-alive-ui] body main.col .prob figure.lean-given{margin-left:0}
}
/* a pair "( , )" or an interval "≤ x ≤" is one unit: it wraps whole, never between its boxes */
:root[data-alive-ui] body main.col .prob .answer-fields.pq-fields .pq-g{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin-right:14px}
:root[data-alive-ui] body main.col .prob .answer-fields.pq-fields label{display:inline-flex;align-items:center;gap:8px;font-size:inherit;margin-right:14px}
/* an answer's maths label at the size of the maths around it (a label's own smaller type set "t =" and "y² =" small beside
   full-size "(a) y =" on the same page) */
:root[data-alive-ui] body main.col .prob .answer-fields label{font-size:inherit}
:root[data-alive-ui] body main.col .prob .answer-fields label .katex{font-size:1.21em}
