/* Surface Area of Revolution: page layout. No colours here: every colour is the course palette's (../lib/lesson-colors.css),
   through the macros in katex-macros.json (planning/colour.md): \wd pink the band's width ds and every root that measures
   it, \run blue the run dx and x-bounds, \rad green the radius and the circle it makes, \ax orange the axis turned about,
   \rise violet the rise dy and y-bounds. */

/* short givens on one line (a substitution and its bounds): each wraps whole */
:root[data-alive-ui] body main.col .sa-chips{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:6px 26px;margin:2px 0 14px}
:root[data-alive-ui] body main.col .sa-chips>span{white-space:nowrap}
:root[data-alive-ui] body main.col .sa-chips .katex{font-size:1.06em}
:root[data-alive-ui] body main.col .look-card>.sa-chips:last-child{margin-bottom:2px}

/* the formula a card arrives at sits a little apart from the rows that build it */
:root[data-alive-ui] body main.col .row.sa-formula{margin-top:20px}

/* a chain: two moves to a line on a wide screen, one on a phone */
:root[data-alive-ui] body main.col .sa-narrow{display:none}
@media (max-width:640px){
  :root[data-alive-ui] body main.col .sa-wide{display:none}
  :root[data-alive-ui] body main.col .sa-narrow{display:block}
}

/* a Key concepts row head with a variable in it ("In x"): the head is set in capitals, the variable must not be */
:root[data-alive-ui] body main.col .kc .kh .katex{text-transform:none}
:root[data-alive-ui] body main.col .look-krows.look-rows .row+.row{margin-top:10px}

/* volume over surface area: one grid for both rows, so V sits over S, the circle term over the circle term, dx over ds */
:root[data-alive-ui] body main.col .look-card.sa-vs{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:14px 20px}
:root[data-alive-ui] body main.col .sa-vs>.row{display:contents}
:root[data-alive-ui] body main.col .sa-vs .row-label{min-width:0;text-align:right}
:root[data-alive-ui] body main.col .sa-vs .math-chain{justify-content:flex-start}

/* a Key concepts row's head takes only the room its words need, so the formula beside it isn't squeezed */
:root[data-alive-ui] body main.col .look-kgrid .kc .kr{grid-template-columns:auto minmax(0,1fr);column-gap:16px}
:root[data-alive-ui] body main.col .look-krows>.sa-chips{margin:10px 0 0}
