/* L'Hopital's Rule: page layout. No colours here: every colour is the course palette's (../lib/lesson-colors.css),
   through the macros in katex-macros.json:
     \tp  pink    the top of a fraction the rule is used on, and everything it becomes
     \bt  blue    the bottom, the same way
     \rn  orange  the run x (and x − a) that cancels, section 1 only
     \pa  green   the first part of a form that isn't a fraction yet (the x factor, the exponent, the first term)
     \pb  violet  the second part (the other factor, the base and ln(base), the second term)
   A form is written under the step it describes (\uf{form}{step}) in its parts' colours (\fzz, \fii, \fpm for the
   fraction forms), set at text size so it reads as a form and never as small print. */

/* a card's name (the rule, the growth rates, the base-e rewrite): a quiet heading in the card, in ink. Not the base
   style's uppercase label head, which would turn "base e" into "BASE E". */
:root[data-alive-ui] body main.col .look-card>.lh-cap{font:500 17px/1.3 'STIX Two Text',Georgia,serif;color:var(--ink);text-align:center;margin:0 0 4px}
/* the conditions under a rule sit close under it: they're part of the same statement */
:root[data-alive-ui] body main.col .look-card .row.lh-cond{margin-top:2px}
/* a chain's parts sit on one baseline: centred, a short left side ("x ln x =") sank beside a tall fraction with its
   form written under it, and the "=" no longer lined up with it */
:root[data-alive-ui] body main.col .math-chain{align-items:baseline}
/* a captioned card is one statement: its rows centre under the caption */
:root[data-alive-ui] body main.col .look-card:has(>.lh-cap) .math-chain{justify-content:center}
:root[data-alive-ui] body main.col .look-card:has(>.lh-cap) .row{text-align:center}
/* both figures here are drawn 360 px wide with 16 px labels: beside their rows they keep their own width, and the rows
   take what's left (the shared .9fr/1.1fr split drew them at 73%) */
@media (min-width:641px){
  :root[data-alive-ui] body main.col .look-pair{grid-template-columns:auto minmax(0,1fr)}
}
/* Key concepts rows here have no label head, so the row is all maths (the shared row keeps a 120 px label column);
   the first row's top rule only drew a line under the sheet's edge */
:root[data-alive-ui] body main.col .look-kgrid .kr:not(:has(.kh)){grid-template-columns:minmax(0,1fr)}
:root[data-alive-ui] body main.col .look-krows .kr:first-child{border-top:0}
/* a form in a heading stays whole: "∞ − ∞" broke after its minus on a phone */
:root[data-alive-ui] body main.col .sec h2 .katex{white-space:nowrap}
