/* GENERATED by site/tools/sync_notation_css.py from src/notation.py.
 * Do not edit: run that script. It is generated because the printed sets and
 * the website are two renderers of the same markup, and a fraction without its
 * stylesheet prints as "52" where the answer is 5/2 -- a different number, in
 * an answer choice, with the markup entirely correct.
 */
/* A not-equal sign that needs no font: an equals sign with a rule across
   it. See NE_HTML above for why the @font-face trick cannot reach a
   student's device. `text-indent: 0` for the usual reason -- gen.py hangs a
   choice's letter with a negative indent and an inline-block inherits it. */
.ne { position: relative; display: inline-block; text-indent: 0; }
.ne::after { content: ''; position: absolute; left: 50%; top: 50%;
             width: 0.78em; border-top: 0.075em solid currentColor;
             transform: translate(-50%, -50%) rotate(-62deg); }
.frac { display: inline-block; vertical-align: -0.42em; text-align: center;
        font-size: 0.86em; margin: 0 0.12em; text-indent: 0; }
.frac .num { display: block; padding: 0 0.22em; line-height: 1.16;
             border-bottom: 0.7pt solid #000; }
.frac .den { display: block; padding: 0 0.22em; line-height: 1.18; }
/* text-indent: 0 is not cosmetic. gen.py hangs a choice's letter with
   `text-indent: -22pt` on the <li>, and an inline-block is a block
   container, so it INHERITS that indent and drags the radicand 22pt left
   over whatever precedes it. A choice reading (√x³)(∛(x-1)) printed as
   "(x3 )(x - )". .frac and .seg already carry this guard for the same
   reason; .rad did not, so every radical inside a choice was smeared in
   every subject until it was found by looking at a rendered page. */
/* THE SIGN STRETCHES. It is an SVG path, not the glyph U+221A, because a
   glyph is a fixed height and a radicand is a growing box. With the glyph, a
   radical over a built-up fraction set as a small sign beside the fraction
   with the vinculum floating over the numerator alone -- twelve items shipped
   that way -- and a radical inside a radical stacked into an unreadable
   double rule, which is why the house style banned nesting. As a flex item
   under `align-items: stretch` the sign takes whatever height the radicand
   needs. Chrome does the sizing; no JavaScript, no measurement, no depth
   parameter. Verified against the old construction side by side at body size
   and at 8.5pt: radical over a fraction, double and triple nesting, index,
   bare radicand, full stop after.

   The radicand is FIRST in source and the sign is pulled in front with
   `order: -1`: an inline-flex box takes its baseline from its first flex
   item, and with the SVG first Chrome synthesises one from the SVG's bottom
   margin edge and every radical rides high above the line.

   `text-indent: 0` stays, for the reason above it: gen.py hangs a choice's
   letter with -22pt and a block container inherits it. */
/* A PARENTHESIS PAIR ROUND A RADICAL OR A STACKED FRACTION (big_parens).
   Plain parens span the x-height only, so a bracket round a radical sits
   below its own vinculum and reads as not enclosing what it encloses.
   scaleY stretches the GLYPH while the layout box stays one line tall, which
   is why the exponent needs lifting separately -- left alone it lands level
   with the MIDDLE of the bracket, beside a fraction bar, and reads as part of
   the fraction.
   Two heights, because the contents differ: a stacked fraction is two lines
   tall and a radical is barely more than one. And the FRACTION itself is set
   smaller inside the group, so the bracket clears it rather than merely
   matching it -- the teacher's call, and it is what makes the pair read as a
   bracket rather than as two tall strokes. All four numbers were set by eye
   over two rounds of renders at body size and 8.5pt. */
.bp { display: inline-block; transform-origin: center; font-weight: 400;
      padding: 0 0.05em; text-indent: 0; }
.bpg.r .bp { transform: scaleY(1.45); }
.bpg.f .bp { transform: scaleY(2.1); }
/* THE EXPONENT IS LIFTED TO THE TOP OF ITS OWN BRACKET, so the lift follows
   the bracket's height and there are two of them. scaleY stretches the GLYPH
   while the layout box stays one line tall, so an exponent left alone lands
   level with the MIDDLE of the bracket -- beside a fraction bar, where it
   reads as part of the fraction. */
.bpg + sup { font-size: 0.58em; }
.bpg.r + sup { vertical-align: 1.35em; }
.bpg.f + sup { vertical-align: 1.75em; }
/* THE STACKED FRACTION IS SET SMALLER INSIDE ITS BRACKETS, so the bracket
   CLEARS it rather than merely matching it -- the teacher's call, and it is
   what makes the pair read as a bracket rather than as two tall strokes.
   SIZE ONLY. A version that also scaled the bar into `em` and opened the
   leading was rendered against this one and rejected: the fraction's own
   proportions are right as they are, and the thing that was actually missing
   was bracket HEIGHT, not internal air. So the fix is one line here and one
   number above -- which is why the bracket round a fraction is 2.1 where the
   one round a radical is 1.45. (2.1 is also the MCQ writer's own number for
   a fraction, arrived at independently here.) */
.bpg.f .frac { font-size: 0.80em; }

/* THE DRAWN RADICAL (see _rad_svg). `vertical-align: -0.22em` is the source
   renderer's number and holds for the same reason: the box bottom stays 22
   units below the baseline whatever the height, because the baseline inside
   the SVG does not move when headroom is added for an exponent.
   The spans are kept for the tools and hidden from the page -- `display: none`
   rather than a clipped abspos box, because an absolutely positioned
   fragment is exactly what painted a stray index into a footer twice. */
.rad.drawn { display: inline-block; vertical-align: -0.22em; text-indent: 0;
             white-space: nowrap; margin-left: 0.07em; }
.rad.drawn > .radart { display: block; }
.rad.drawn > .radcd, .rad.drawn > .radidx { display: none; }
.radart text { font-family: "Noto Serif", serif; font-style: normal; }

.rad { display: inline-grid; grid-template-columns: auto auto;
       grid-template-rows: auto; align-items: stretch; white-space: nowrap;
       text-indent: 0; }
/* `stroke-width` in em, NOT user units: `vector-effect: non-scaling-stroke`
   holds the stroke constant in DEVICE space, so a plain number stays the same
   absolute weight at 8.5pt as at 19pt and the signs turn into blobs in the key
   table. An em resolves against the inherited font-size and scales. The
   vinculum below carries the same value so bar and sign match weight.
   `preserveAspectRatio="none"` lets the sign stretch anisotropically; the
   non-scaling stroke stops that stretch fattening the diagonals. */
/* 0.70em, WIDENED FROM 0.50 ON 2026-10-12. This sign stretches with
   `preserveAspectRatio="none"`, so as the radicand grows taller the V grows
   NARROWER in proportion -- over a built-up fraction it became a thin sliver
   with a tiny check, visibly lankier than the drawn radical beside it on the
   same line. Width is the only lever: the taller it has to stretch, the more
   width it needs to keep the angle. The drawn construct has no such problem,
   because it scales uniformly. */
.rad > .radsign { grid-row: 1; grid-column: 1; order: -1; width: 0.70em;
                  height: 100%; display: block; overflow: visible; }
.rad > .radsign path { fill: none; stroke: currentColor; stroke-width: 0.052em;
                       vector-effect: non-scaling-stroke;
                       stroke-linejoin: miter; stroke-linecap: butt; }
/* `line-height: 1` is still load-bearing: without it the radicand box carries
   the font's full leading above the glyph and the vinculum floats detached,
   reading as a stray macron -- and at 8.5pt in the tightly led key table it
   lands on the line ABOVE and paints through its words. */
.rad > .radcd { grid-row: 1; grid-column: 2; display: block; line-height: 1;
                text-indent: 0; border-top: 0.052em solid currentColor;
                padding: 0.12em 0.16em 0 0.06em; margin-left: -0.02em; }
/* THE INDEX IS IN FLOW, IN THE SIGN'S OWN GRID CELL -- and getting there
   took two goes, because the first thing anyone tries is the thing that
   does not work.
   It used to be `position: absolute`, which was right about the problem
   (as an ordinary flex item it joined the cross-size calculation, dragged
   the whole construct down and landed the "3" on the baseline to the left
   of the sign) and wrong about the cost: Chrome paints an absolutely
   positioned box at its PRE-PUSH position when `page-break-inside: avoid`
   moves its ancestor to the next page, so bank_n_rn item 55's "4" stayed
   behind as a speck in p19's footer while the radical itself printed on
   p20. No content was lost and nothing but keybreaks.py could see it --
   which is the real cost, because it held that gate at exit 1 for days and
   taught writers to skip it. `break-inside: avoid` on `.rad` was tried
   first and does nothing: the enclosing `.item` already carries it.
   The cure is a GRID. A grid item is placed by `grid-row`/`grid-column`
   rather than by source order, so the index can sit in the sign's cell --
   where it belongs typographically -- while staying in normal flow and
   fragmenting with everything else. `align-self: start` keeps it off the
   cross-size calculation that dragged the flex version down, and the cell
   is 0.50em wide against the index's ~0.3em, so an index never widens the
   construct.
   WHAT MUST NOT CHANGE IS SOURCE ORDER. A grid container takes its
   baseline from the first item of the first row in order-modified document
   order that HAS one; the SVG sign has none, so the baseline falls through
   to `.radcd`, which is what puts a radical on the line. Moving the index
   ahead of the radicand in the markup was tried and is exactly the old
   drag bug in new clothes -- the index's baseline becomes the construct's
   and `2&pi;&radic;(L/g) and more words` sets with the words above the
   radical. Markup is therefore UNCHANGED by this fix, which is also why
   gen._unrad, notation._say and calcflags' radidx regex all still work.
   The padding is reserved only when there is an index.
   THE PLACEMENT ITSELF WAS SET BY THE TEACHER'S EYE, 2026-10-12, and the
   first grid version failed it. `align-self: start` alone puts the index's
   TOP level with the vinculum, which reads as tucked INTO the construct
   rather than as an index above the crook -- and in `bank_n_rn` 55 choice C,
   `5 <4th root of x>`, the 4 then sits level with the 5 and the pair can be
   read as "54". Four placements were rendered side by side at 11pt and 8.5pt
   against that exact adjacency case before choosing: the index is raised
   0.38em so it clears the crook, and the leftward pull was REDUCED from
   0.30em to 0.26em, because pulling it further left is what walks it into
   the character before it. Raising it is what separates it; pulling it left
   is what caused the complaint. */
/* MATCHED TO THE DRAWN RADICAL'S INDEX, 2026-10-12. Two constructs live in
   this file -- the drawn one (_rad_svg) for a plain radicand and this
   stretching one for a fraction or a nested radical -- and a page can carry
   both in one line, so their indices have to look like one typeface. Set
   beside the drawn reference, 0.60em was visibly the larger of the two; 0.42
   matches its weight. What CANNOT be matched is the tuck: the drawn index
   sits INSIDE the crook because it is drawn into the sign's own coordinates,
   where this one can only sit beside a separately stretched path. */
/* LEVEL WITH THE NUMERATOR, which is the teacher's prescription and the fix
   for the one case this construct is actually used in.
   `align-self: start` pinned the index to the TOP of the construct. On a
   short radicand that is the crook and it looks right; on a TALL one -- and
   this construct only ever handles tall ones, since a plain radicand is
   drawn -- the top is two lines up and the index strands itself far above the
   crook, which is what made a cube root of a fraction look wrong.
   `center` is level with the fraction BAR and is height-independent, so
   nudging up half a line from there lands on the NUMERATOR whatever the
   radicand is. That is where a textbook puts it, and it needs no knowledge of
   how tall the stack happens to be. */
.rad > .radidx { grid-row: 1; grid-column: 1; align-self: center;
                 justify-self: start; margin-top: 0;
                 margin-bottom: 0.58em; margin-left: 0.58em;
                 font-size: 0.42em; line-height: 1; }
/* THE RAISE IS PAID FOR WITH PADDING, NOT TAKEN WITH OVERFLOW. Raising the
   index by a negative margin alone puts it OUTSIDE the construct's box, and
   an overflowing box at a page boundary paints into the previous page's
   footer -- which is bank_n_rn p19's stray "4" again, the very speck the grid
   rewrite was done to kill. keybreaks.py caught it within a minute of the
   change. Reserving the band as padding-top keeps the index inside the border
   box, so the construct simply grows 0.38em taller when it carries an index
   and nothing can be left behind. */
/* No left padding: the index now sits OVER the sign rather than beside it,
   so it costs the construct no width. */
.rad.hasidx { padding-left: 0; }
/* A BUILT-UP FRACTION UNDER A VINCULUM is set slightly smaller, for the same
   reason it is inside a tall bracket: it is the thing forcing the stretch, so
   taking a little height out of it is what lets the sign keep its shape. */
.rad > .radcd .frac { font-size: 0.84em; }
/* A NESTED RADICAL SITS ON THE OUTER ONE'S CHECK, which is the teacher's
   criterion and the right one: what the eye reads is the BOTTOM VERTEX of
   each V, not the radicands' baselines.
   Measured in Chrome rather than guessed. Each sign's vertex is a known point
   in its own viewBox -- 82 of 104 for the drawn construct, 96 of 100 for the
   stretched one -- so both can be put in page coordinates and compared. The
   inner vertex sat **0.29em above** the outer's, and identically so (11.59px
   at 40px type) for a nested square root and for a cube root of a root, which
   is what makes a constant correction right: the offset comes from the two
   constructs' fixed proportions, not from the content.
   The correction is NOT simply that 0.29em, because dropping the inner makes
   the outer's radicand taller, which moves the outer's own vertex down with
   it -- a feedback loop, so the offset was swept rather than solved. The gap
   CONVERGES: -0.51em leaves 6.3px, -0.70em leaves 3.3, -0.85em leaves 2.3,
   and -1.00em and -1.15em leave 2.2 -- past about -0.85 the outer grows 1:1
   with the drop and nothing further is bought. 2.3px at 40px type is half a
   pixel at body size.
   It is NOT shrunk: the teacher's instruction is that the outer should simply
   be bigger, and an inner radical set smaller than its own radicand reads as
   a different size of mathematics. */
/* NOTHING HERE COMPENSATES FOR A NESTED RADICAL ANY MORE, because nothing
   needs to: a radical inside a radical is now the SAME construct as the one
   around it (see _undraw). Two rounds of compensation were measured and
   thrown away first, and both are worth knowing about because each looked
   reasonable:
     * sinking the inner converges -- 6.3px at -0.51em, 2.3 at -0.85, and
       nothing past that, because beyond a point the outer grows 1:1 with the
       drop -- but by -0.85em the `1 +` beside the radical is left floating
       above it, which is worse than the fault being fixed;
     * shortening the outer sign is linear, about 1.5px per 0.10em, and would
       need 0.70em, by which point the sign no longer covers its radicand.
   Both were attempts to reconcile two constructs with different proportions.
   Making them one construct is the actual fix -- and the proof is that ONE
   number then satisfies both criteria at once, which no compensation could.
   Swept and measured at 40px type: at -0.17em the two vertices sit 0.15px
   apart AND the inner radicand sits 0.28px off the text beside it. Both are
   rounding error. At 0 they are 2.8px and 3.0px; at -0.24em the construct
   starts sinking below its neighbours.
   WHY 0.17em: `.radcd` carries `padding-top: 0.12em` and a 0.052em rule, and
   an inline-grid takes its baseline from that padded box -- so the whole
   construct rides up by about the padding plus the border to put its
   radicand on the line. The correction is that sum, which is why it is a
   constant and not a function of the content. */
.rad > .radcd .rad { vertical-align: -0.17em; }
sup.pw { font-size: 0.74em; }
/* A BUILT-UP FRACTION IN AN EXPONENT, MEASURED AGAINST TDOE'S OWN TYPESETTING.
   Both numbers here come from glyph boxes pulled out of released item
   TN246034 (A2.N.RN.A.2, 2018-19) with `pdftotext -bbox`, compared against the
   same measurement of our own page:

                       exponent / base    denominator's bottom
                           height         above the baseline
     TDOE                    0.672          0.40 x base height
     ours, before            0.703          0.16 x base height

   The size was close. The LIFT was not: our fraction hung more than twice as
   low, dropping the denominator almost onto the baseline, so a rational
   exponent read as though it were sitting on the line rather than above it.
   The teacher spotted it by eye before anything measured it.

   0.74 x 0.908 = 0.672 matches the size exactly. The lift was found by sweeping
   vertical-align and re-measuring the rendered PDF each time, because the
   relationship is not one a stylesheet makes obvious:

     -0.38em (before)  0.16      0.05em  0.361      0.18em  0.425
     -0.14em           0.268     0.15em  0.361      0.22em  0.445
                                 0.17em  0.40  <-- TDOE

   Rendered and looked at afterwards, which is the test that actually counts:
   a number can land on target and still read badly. */
sup.pw .frac { font-size: 0.908em; vertical-align: 0.17em; }
/* A RATIONAL EXPONENT INSIDE A FRACTION -- three rules stacking.
   `1/x^(3/2)` set as 1, the main bar, then the exponent's 3 directly beneath
   that bar with its OWN bar under it and a small x tucked at the lower left:
   a reader sees a continued fraction 1/(3/2) with a stray x, and `x^(1/4) /
   x^(5/4)` put three bars in one vertical stack. The cause is the tight
   leading .num/.den carry -- 1.16 and 1.18, right for a digit and far too
   little for a two-story exponent -- against sup.pw's 0.17em raise, which
   together push the exponent up into the bar above and leave the base
   stranded below it.
   So the cell that CONTAINS such a power gets room, and the exponent gives
   back most of its raise. :has() scopes this to the ~26 placements that need
   it; the other 264 fractions in the bank are untouched, and a browser
   without :has() simply renders what it rendered before.
   26 placements across 14 items, all in bank_n_rn -- 5 stems, NINE ANSWER
   CHOICES, 8 solution steps and 4 alternative-route steps. The choices are
   why this is a notation fix and not a rewording: a student comparing choice
   C with choice D was reading two stacks. Found by the reader who went
   through all 615 primary solution steps.
   THE OBVIOUS ALTERNATIVE WAS TRIED AND IS WRONG, and it is written down
   here because it is what anyone meets this defect will think of first:
   slash the exponent when it sits inside a fraction, so x^(2/3) sets on one
   line. It reads well at 28px. At the 19px a student actually reads, the
   solidus VANISHES: bank_n_rn 3's choices C and D rendered as "x23" and
   "x32". That is rendering rule 5 exactly, and it is worse than the defect
   it would fix -- a cramped stack is hard to read, a missing slash is a
   DIFFERENT NUMBER in an answer choice. Rendered side by side before this
   was chosen. The released pages set the built-up form too. */
.frac .num:has(sup.pw .frac),
.frac .den:has(sup.pw .frac) { line-height: 2.1; }
.frac sup.pw .frac { vertical-align: 0.02em; }
.sys { display: inline-flex; align-items: center; vertical-align: middle;
       text-indent: 0; }
.sys .sysbrace { font-size: 2.5em; line-height: 0.86; font-weight: 300;
                 margin-right: 0.12em; }
.sys .sysrows { display: inline-flex; flex-direction: column; }
.sys .sysrow { display: block; line-height: 1.4; }
.mat { display: inline-flex; align-items: stretch; vertical-align: middle;
       text-indent: 0; margin: 0 0.15em; }
.mat .matg { display: grid; padding: 0.22em 0.4em; }
.mat .matc { padding: 0.09em 0.42em; text-align: center; }
.mat .mataug { border-left: 0.7pt solid #000; }
/* Borders, not bracket glyphs: a glyph is sized by the font and would stand
   a fixed height beside a grid of any number of rows. */
.mat .matlb, .mat .matrb { width: 0.3em;
                           border-top: 0.8pt solid #000;
                           border-bottom: 0.8pt solid #000; }
.mat .matlb { border-left: 0.8pt solid #000; }
.mat .matrb { border-right: 0.8pt solid #000; }
/* `line-height: 1` is load-bearing here for exactly the reason it is on
   `.rad > .radcd` (rendering rule 1), and it was missing for a long time.
   Under `line-height: normal` an inline-block's content box reaches the
   font's full ASCENT -- about 1.07em in Noto Serif against a cap height of
   about 0.71em -- so the `border-top` painted roughly a third of an em above
   the capitals and read as a bar floating free of its letters. The
   `top: 0.12em` that arrived with this construct was a compensation for that
   gap, and it moved the WRONG box: it pushed the whole inline-block down, so
   the letters sat below the surrounding baseline while the bar stayed
   detached. Both halves were visible at 300 dpi in every one of the 100+
   uses across all three subjects, including the shipped
   out/geometry-subpart3-set.pdf.
   `line-height: 1` pulls the box top to about 0.89em above the baseline --
   roughly 0.17em of air over the capitals, which is the gap the released
   pages set -- and the `top` offset then has nothing to do and is gone.
   Five alternatives were rendered side by side at 11pt and 8.5pt before this
   one was chosen: padding-top of 0.04em and 0.08em both push the bar back up
   toward the old detached look, and line-heights of 0.9 and 0.82 crowd it
   onto the capitals.
   `position: relative` STAYS with no offset: a bare inline-block silently
   drops its border in headless Chrome without it. */
.seg { display: inline-block; position: relative; line-height: 1;
       text-indent: 0; white-space: nowrap; padding: 0 0.04em;
       border-top: 0.9pt solid #000; }

/* READ MATH IN WORDS -- the student-page toggle.
 *
 * Switches every construct from its built-up form to the very words its
 * aria-label already carries, through `content: attr(aria-label)`. No second
 * copy of the mathematics exists anywhere: one string, read by assistive
 * technology and printed here, so the two cannot disagree. That is the point
 * as much as the feature is -- it makes the label auditable by eye, which is
 * the only way anyone without a screen reader will ever check it.
 *
 * Children are hidden rather than the element replaced, so a nested construct
 * collapses into its ancestor's single label instead of printing twice. */
body.mathwords [role="math"] {
  /* `font-size: 0`, NOT `display: none` on the children. A sup's exponent is
     a bare TEXT node with no element around it, so hiding element children
     left the digit standing and "x squared" printed as "x2 squared" -- found
     by rendering the toggle and reading it, not by any checker. Zeroing the
     type collapses text nodes and elements alike. */
  font-size: 0; display: inline; white-space: normal;
  border: 0; padding: 0; position: static; vertical-align: baseline; }
body.mathwords [role="math"] > * { display: none; }
body.mathwords [role="math"]::after {
  /* 1rem rather than 1em: the construct's own type is now 0, and several of
     these sit inside a .num or a sup that was already reduced, so an em would
     compound to nothing. rem tracks the student's text-size control, which
     scales the root. */
  content: attr(aria-label); font-size: 1rem; font-style: normal;
  vertical-align: baseline; }
/* A SUP NEEDS THE SPACE PUT BACK. It attaches straight to its base with no
   whitespace between them, and `font-size: 0` collapses what little there
   is, so "x" followed by a sup named "squared" set as "xsquared". Every
   other construct is preceded by ordinary prose carrying its own space.
   Found by rendering the toggle twice: the first fix cured "x2 squared" and
   introduced this. */
body.mathwords sup.pw::after { content: " " attr(aria-label); }

table.data { border-collapse: collapse; margin: .5rem 0 .5rem .8rem; }
table.data td, table.data th { border: 1px solid currentColor; padding: .2rem .6rem;
                               text-align: center; }
table.data th { font-weight: 600; }
