/* Evaluating Limits Using Derivatives: this page's layout. It defines no colours. The meanings (planning/colour.md) take the
   course palette's classes (lib/lesson-colors.css, through alive/lesson-look.css) by the macros in katex-macros.json:
     \fpt  lc-pink   the fixed point: a, the number subtracted as f(a), and (a, f(a));
     \chg  lc-blue   the change in the input as one quantity: h, 2h, 4h, x − a;
     \fcn  lc-green  the function: its name f, the first term as f at the moving input, and its curve.
   \ov{P}{Q} sets P at the width of Q (centred), so a definition and the given limit under it line up piece over piece:
   f(a + h) over sin(π/6 + h), f(a) over the 1/2. Every rule is scoped :root[data-alive-ui] body main.col, because the
   sheet styles outrank a plain page selector. */

/* a definition written above the given limit: the two rows close together, so the pieces read as a column */
:root[data-alive-ui] body main.col .lu-tpl .row+.row{margin-top:2px}
:root[data-alive-ui] body main.col .lu-tpl .row.lu-then{margin-top:18px}
:root[data-alive-ui] body main.col .look-pair .lu-tpl{align-self:center}

/* the definition's two forms, each with its run named beside it */
:root[data-alive-ui] body main.col .lu-def .row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px}
:root[data-alive-ui] body main.col .lu-def .row-label{min-width:96px;font:500 15px/1.4 var(--lf-label)}
:root[data-alive-ui] body main.col .lu-def .row-label .katex{font-size:1.05em}

/* a worked chain: one aligned chain on a wide screen, one "=" to a line on a phone, so nothing scrolls sideways */
:root[data-alive-ui] body main.col .lu-narrow{display:none}
@media (max-width:640px){
  :root[data-alive-ui] body main.col .lu-wide{display:none}
  :root[data-alive-ui] body main.col .lu-narrow{display:block}
  :root[data-alive-ui] body main.col .lu-def .row-label{min-width:0}
}

/* the written solutions' step titles, set as small headings over their rows */
:root[data-alive-ui] body main.col .sol .ln .step{display:block;font:500 17px/1.4 'STIX Two Text',Georgia,serif;letter-spacing:0;text-transform:none;margin:0 0 2px}
:root[data-alive-ui] body main.col .sol .ln+.ln{margin-top:14px}
