/* Derivatives of Polar Curves: page layout. No colours here: every colour is the course palette's (../lib/lesson-colors.css),
   through the macros in katex-macros.json: \rr r (pink), \drr dr/dθ (blue), \tng the tangent line and its slope (green),
   \away (orange) and \tow (violet) for the verdict in section 5 (planning/colour.md). */

/* space between the groups of one card: a setup and its result, a derivative and where it is 0 */
:root[data-alive-ui] body main.col .look-card .row.pd-gap,
:root[data-alive-ui] body main.col .look-rows .pd-gap{margin-top:20px}
:root[data-alive-ui] body main.col .look-card .row.pd-lead{margin-top:26px}

/* a quiet head over a group of rows (horizontal / vertical tangents, the two tangent lines): readable, in ink */
:root[data-alive-ui] body main.col .pd-head{font:500 16px/1.35 var(--lf-label);color:var(--ink);margin:0 0 6px}
:root[data-alive-ui] body main.col .look-case .look-q.pd-head{margin-bottom:10px}
:root[data-alive-ui] body main.col .look-rows .math-chain{justify-content:flex-start}

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

/* Key concepts: rows on the quiet sheet; the tangent tests with their word beside them */
:root[data-alive-ui] body main.col .look-kgrid .look-krows .row+.row{margin-top:10px}
:root[data-alive-ui] body main.col .look-kgrid .pd-krow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
:root[data-alive-ui] body main.col .look-kgrid .pd-kh{font:500 15px/1.3 var(--lf-label);color:var(--ink);min-width:86px}

/* practice 4: the candidate points as a grid of checkboxes */
:root[data-alive-ui] body main.col .prob .choices.pd-points{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:0 10px}
:root[data-alive-ui] body main.col .prob .choices.pd-points label{width:auto}

/* the rule's head sits over its two cases */
:root[data-alive-ui] body main.col .pd-head.pd-over{margin:24px 0 0}
:root[data-alive-ui] body main.col .look-compare.pd-under{margin-top:10px}

