/* The blog post stylesheet, loaded after site.css via a page's `stylesheet: /assets/css/post.css` front matter (like cv.css).
   Extracted verbatim from the post's own <style> block; it only adds fonts, lengths and the one chart colour, taking paper/ink/Tiffany from the site tokens. */
/* ==========================================================================
   Blog post. Loaded after site.css, so it only adds: fonts, lengths and colours come from the site tokens (paper / ink /
   Tiffany / one vermilion; Newsreader for the text, Inter for labels; hairline rules). The text column is wider than the site's measure: see Layout. The one colour defined here
   is --viz-center, the charts' Tiffany mark: the site's link hue, stepped so that it passes as a mark on the paper.
   Inside the Jekyll site this block becomes assets/css/post.css, loaded through the front matter's `stylesheet:` like cv.css.
   ========================================================================== */

/* ---------- Layout. The text is one block of its own: a single column, centred under the header, with the title at its head. What accompanies
   it hangs outside the block, set small in Inter: the contents list in the margin to its left, the notes in the margin to its right. A margin
   is used only where the window has room for it beside the full column. The page asks the post's own box, as a query container and in rem,
   so a reader's enlarged text counts as much as a narrow window: under 72rem the contents list goes (the headings do its work), under 78rem
   the notes are set in the column, under the sentences they belong to. A browser without container queries shows the one column. ---------- */
.post { --measure: 44rem;   /* a post's text column, a step wider than the site's 38rem measure. Everything inside the post that reads --measure follows it, site.css's own p { max-width } included */
        --post-gap: 2.5rem;   /* between the text and either margin */
        --post-rail: calc((100cqw - var(--measure)) / 2 - var(--post-gap));   /* the width of either margin, for what hangs in it (100cqw is the width of the post's box) */
        container: post / inline-size; }
@media screen and (min-width: 1100px) { .post { margin-inline: calc((100% - min(82rem, 100vw - 3rem)) / 2); } }   /* the post's box: the text, two gaps and up to 16.5rem of margin on either side. Wider than the shell and centred on it, as the Misc photo rows are. Only its negative margins widen it, and it is given no width of its own: where a query container's width is a length, Safari with the page zoomed in or out reads the rem in the queries below times the zoom, so the contents list and the notes never moved out when zoomed in, and moved out into too little room when zoomed out */
.post-head, .post-main { max-width: var(--measure); margin-inline: auto; }
.post-main { position: relative; }   /* the text's box and, before it in the source so that the keyboard reaches it first, the contents list, which is placed against this box */
.post-body { padding-top: 2.25rem; }
.post-toc { display: none; }
@container post (min-width: 72rem) {   /* 72rem: the column, two gaps, and 11.5rem on either side, which the contents list needs */
  .post-toc { display: block; position: absolute; top: 0; bottom: -5rem; right: calc(100% + var(--post-gap)); width: min(13rem, var(--post-rail)); padding-top: 2.186rem; }   /* a box in the left margin, as tall as the text, in which the list is pinned; its first entry sits on the baseline of the text's first line. It runs on through the footer's 5rem of air: in a window between about 470 and 550px tall the end of the page would otherwise push the list up (a shorter one still does at its very end, and under about 450px the first entries go under the header) */
  .post-toc ol { position: sticky; top: 5.5rem; }   /* pinned under the header (≈ 4rem) while the text scrolls */
}

/* ---------- Page head, in the text column: the title, the standfirst in italic, one quiet meta line ---------- */
.post-head { padding-top: 3.25rem; }
.post-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.25rem); }   /* the size of the site's other page titles (.page-head h1) */
.post-head__dek { margin-top: .9rem; font-size: 1.25rem; line-height: 1.4; font-style: italic; color: var(--ink-2); }
.post-head__meta { margin-top: 1.1rem; }

/* contents, in the left margin: quiet until read; the section being read is in ink and carries the nav's Tiffany bar */
.post-toc ol { margin: 0; padding: 0; list-style: none; }
.post-toc a { display: block; padding: .3rem 0 .3rem .85rem; border-left: 1.5px solid transparent; font: 400 .8125rem/1.4 var(--font-sans); letter-spacing: .005em; color: var(--ink-3); text-decoration: none; text-wrap: balance; transition: color .15s ease, border-color .15s ease; }   /* balanced, like the headings the entries repeat: no first line ends on “a” */
.post-toc a:hover { color: var(--accent-hover); }
.post-toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--accent); }
@media screen { .post-toc ol { top: calc(5.5rem - 6px); max-height: calc(100vh - 5.5rem + 6px); overflow-y: auto; margin: -6px -6px 0; padding: 6px; scroll-padding-block: 6px; } }   /* a list taller than the window scrolls, whether a short window or a reader's enlarged text makes it so (its height follows the rem, so no window height in px can say when). 6px of padding all round, taken back by the margin and the offset, keep the focus rings whole and the entries where they were; the script at the end keeps the entry being read in sight */
/* like site.css [id]: a link, summary or sideways-scrolling box reached with the keyboard is scrolled clear of the pinned header (the chart has its own margin, on .viz-wrap) */
.post :is(a, summary, [tabindex]) { scroll-margin-top: 5.5rem; }

/* ---------- Prose ---------- */
.prose p { line-height: 1.65; }   /* in the markup, a dash is tied to the word before it (<span class="nowrap">word—</span>): a line may end with a dash, never begin with one (Safari did, at the full measure) */
.prose > * + *, .prose div.note-end > * + * { margin-top: 1em; }   /* (a <div class="note-end"> only groups paragraphs for their note: they keep the text's spacing) */
.prose h2 { margin-top: 3rem; padding-bottom: .65rem; border-bottom: 1px solid var(--rule); font-size: 1.5rem; line-height: 1.25; max-width: var(--measure); }
.prose h2 + * { margin-top: 1.25rem; }
/* a short bulleted list in the text. site.css sets no list style, so this one is spelled out: quiet markers, the text's own leading, a little air between items */
.prose ul.points { margin-bottom: 0; padding-left: 1.2rem; list-style: disc; max-width: var(--measure); }
.prose ul.points > li { padding-left: .2rem; line-height: 1.65; }
.prose ul.points > li + li { margin-top: .5em; }
.prose ul.points > li::marker { color: var(--ink-3); }
/* display equations: centred in the column; a line too wide for a phone scrolls sideways inside its own box */
.eq { margin: 1.5rem 0; padding: .3rem 0; max-width: var(--measure); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.eq .katex-display { margin: 0; }
.prose .katex { font-size: 1em; }   /* KaTeX's own 1.21em runs large beside Newsreader: at 1em its figures stand as tall as the text's */
.eq .katex { font-size: min(1.1em, 4.3vw); }   /* displayed lines a step larger; on phones under ~435px they step down together so the widest line still fits */
.eq .katex .fbox { border-color: var(--accent); border-radius: 3px; }   /* the one boxed result: a Tiffany hairline instead of an ink box */
.prose :not(.katex-display) > .katex, .pop .katex { white-space: nowrap; }   /* a formula in the text is never split after an operator */
@media (max-width: 339px) { .prose :not(.katex-display) > .katex { white-space: normal; } }   /* except where the longest one would stick out of the column */
/* A line must not begin with the full stop that follows a formula. KaTeX sets a formula as a row of boxes, and a browser may break a line after a box; so the last
   piece of a formula in the text is set inline instead, as text, which no browser parts from its punctuation (the pieces before it stay boxes: where a formula
   may break, it breaks between them). Safari still parts a formula that ends in a superscript from its semicolon: the script at the end ties the two in .math-keep. */
.prose :not(.katex-display) > .katex > .katex-html > .katex-base:last-child { display: inline; }
.math-keep { white-space: nowrap; }
/* Table 1 is the guideline, so it is set as a card to look things up in and not as a data table: a frame, a header band, roomier rows, each reward design
   named on one line with its examples under it, and the recommendation as a chip. Tiffany is the figures' colour for training without std, so it tints
   "Drop it" here as well. The chip's words carry the recommendation; the tint only repeats it. */
#tab-1 .table-wrap { border: 1px solid var(--rule); border-radius: var(--radius); }
#tab-1 table { font-size: .875rem; }
#tab-1 th, #tab-1 td { padding: .9rem 1.25rem .9rem 0; vertical-align: top; white-space: normal; }
#tab-1 th:first-child { padding-left: 1.15rem; }
#tab-1 th:last-child, #tab-1 td:last-child { padding-right: 1.15rem; }
#tab-1 thead th { padding-block: .6rem; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
#tab-1 tbody th { width: 47%; }
#tab-1 td:last-child { width: 25%; }
#tab-1 .guide__name { display: block; font-weight: 600; color: var(--ink); }
#tab-1 .guide__eg { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--ink-3); }
.verdict { display: inline-block; padding: .08rem .65rem; border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; color: var(--ink); white-space: nowrap; }   /* the one mark for a recommendation, in Table 1 and in the TL;DR */
.verdict--drop { background: color-mix(in srgb, var(--viz-center) 18%, transparent); border-color: color-mix(in srgb, var(--viz-center) 60%, transparent); }
#tab-1 .verdict + .guide__eg { margin-top: .35rem; }
/* the practical notes under Table 1: set as notes and not as text, in the captions' sans, with a keyword in the left column and the note beside it */
.prose .notes { margin: 1.7rem 0 0; max-width: var(--measure); font: 400 .875rem/1.55 var(--font-sans); letter-spacing: .005em; color: var(--ink-2); font-variant-numeric: lining-nums; }
.notes__title { margin: 0 0 .55rem; font-weight: 500; color: var(--ink-3); }
.prose .notes dl { margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.notes dl > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--hairline); }
.prose .notes dt { margin: 0; font-weight: 600; color: var(--ink); }
.prose .notes dd { margin: 0; padding: 0; text-wrap: pretty; }
.prose .notes .katex { font-size: 1.1em; }
.notes + p { margin-top: 1.6rem; }   /* the paragraph after the notes stands clear of their last hairline */
@media (max-width: 680px) { .notes dl > div { grid-template-columns: minmax(0, 1fr); row-gap: .2rem; } }
/* The TL;DR that opens the text and the Takeaway that closes it are one device: a Tiffany hairline frame, as round the one boxed formula, with its name sitting on the frame.
   The name follows the alignment of what is inside: on the left over the TL;DR's rows, in the middle over the Takeaway's one centred line. */
.kicker .kicker__label, .tldr__label { position: absolute; top: 0; padding: 0 .45rem; background: var(--paper); font: 500 .8125rem/1 var(--font-sans); letter-spacing: .005em; color: var(--accent-meta); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* the TL;DR: two rows, each a rule in a sentence with its recommendation beside it as the chip of Table 1 */
.prose .tldr { position: relative; max-width: var(--measure); margin: .35rem 0 1.9rem; padding: .35rem 1.2rem .3rem; border: 1px solid var(--accent); border-radius: var(--radius); font: 400 .875rem/1.55 var(--font-sans); letter-spacing: .005em; color: var(--ink-2); }
.tldr__label { left: .75rem; transform: translateY(-50%); }   /* .75rem + its own padding: the name starts where the rows start */
.prose .tldr ul { margin: 0; padding: 0; list-style: none; }
.prose .tldr li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.75rem; align-items: center; margin: 0; padding: .8rem 0; }
.prose .tldr li + li { border-top: 1px solid var(--hairline); }
.tldr__text { text-wrap: pretty; }
.prose .tldr + p { margin-top: 0; }
@media (max-width: 680px) { .prose .tldr li { grid-template-columns: minmax(0, 1fr); row-gap: .55rem; justify-items: start; } }   /* on a phone the chip goes under its sentence */
/* the Takeaway: one centred line the full width of the column. Each sentence is kept whole, so a column too narrow for the line breaks it between the two.
   The text is the body's own size: a step larger and the line no longer fits the column. */
.prose .kicker { position: relative; max-width: var(--measure); margin-top: 2.2rem; padding: 1.4rem 1.1rem 1.3rem; border: 1px solid var(--accent); border-radius: var(--radius); text-align: center; color: var(--ink); }
.kicker > span { display: inline-block; text-wrap: balance; }   /* balance: on a phone a sentence that takes two lines breaks into two even ones */
.kicker .kicker__label { left: 50%; transform: translate(-50%, -50%); }
.kicker strong { font-weight: 600; }
/* the byline in the line under the title: the name a step darker than the date beside it */
.post-head__author { font-weight: 500; color: var(--ink-2); }
/* reference markers [1]: small Inter superscripts that do not open the line. They never go below .6875rem, 11.7px or 11px on phones (in a caption
   the em would compound), and each number takes a hit area wider than its glyph */
sup.cite { font: 500 .6875em/0 var(--font-sans); font-size: max(.6875em, .6875rem); vertical-align: .5em; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; color: var(--ink-3); margin-left: .1em; white-space: nowrap; }
sup.cite::before { content: "\2060"; }   /* a word joiner, no width: nowrap keeps the marker whole, this keeps it on the line of the word it follows (a line could begin with [5], and Chrome took word and marker for a last line of two words) */
sup.cite a { position: relative; color: var(--accent-meta); text-decoration: none; padding: .35em .3em; margin: 0 -.25em; }
sup.cite a:hover, sup.cite a:focus-visible { color: var(--accent-hover); text-decoration: underline; text-decoration-color: var(--accent-hover); }
@supports selector(:has(a)) {   /* the focus ring goes round the whole marker, brackets included, instead of crossing them */
  sup.cite a:focus-visible { outline: none; }
  sup.cite:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
  sup.cite:has(a ~ a) a:focus-visible { background: var(--accent-hover) content-box; color: var(--paper); }   /* a marker with two numbers: the one in focus is filled as well, so its two tab stops can be told apart */
}
/* a note's letter in the text: the same superscript without brackets, in the grey of the note's own label. Not a link: its note is beside it */
sup.note-ref { font: 500 .6875em/0 var(--font-sans); font-size: max(.6875em, .6875rem); vertical-align: .5em; letter-spacing: .01em; color: var(--ink-3); margin-left: .12em; }

/* ---------- Figures ---------- */
.fig { margin: 2.1rem 0; max-width: var(--measure); }
.fig figcaption { margin-top: .8rem; font: 400 .8125rem/1.55 var(--font-sans); letter-spacing: .005em; color: var(--ink-2); font-variant-numeric: lining-nums; text-wrap: pretty; }
.fig figcaption .katex { font-size: 1.05em; }
.fig figcaption > a { color: var(--accent-meta); }   /* a link in a caption's own text is 13px Inter: the site's deeper step for small links, as in .meta a */
.fig figcaption > a:hover { color: var(--accent-hover); }
.fig__num { font-weight: 600; color: var(--ink); }

/* An image file (.fig__media > img). A plot drawn in dark ink on white follows the theme without a second file: in light mode it is
   multiplied onto the page, so its white becomes the paper; in dark mode it is inverted (hue-rotate turns the hues back, so blue
   stays blue) and screened onto the dark paper, so its ink turns light and its white disappears. An image that must keep its own
   colours (a photograph, a screenshot) takes .fig__media--plate instead: untouched in light mode, on a dimmed light plate in dark
   mode, like the publication cards (--media-matte, --figure-filter in site.css). */
:root { --fig-blend: multiply; --fig-filter: none; --plate-matte: var(--paper); --plate-filter: none; }
:root[data-theme="dark"] { --fig-blend: screen; --fig-filter: invert(1) hue-rotate(180deg); --plate-matte: var(--media-matte); --plate-filter: var(--figure-filter); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fig-blend: screen; --fig-filter: invert(1) hue-rotate(180deg); --plate-matte: var(--media-matte); --plate-filter: var(--figure-filter); } }
.fig__media { border-radius: var(--radius); background: var(--paper); isolation: isolate; overflow: hidden; }
.fig__media img { width: 100%; height: auto; mix-blend-mode: var(--fig-blend); filter: var(--fig-filter); }
.fig__media--plate { background: var(--plate-matte); }
.fig__media--plate img { mix-blend-mode: normal; filter: var(--plate-filter); }
.fig__zoom { display: block; cursor: zoom-in; }   /* links the image file itself, for a closer look on a phone */

/* Figures drawn on the page (inline SVG, .viz). Two series run through the post and keep their colours everywhere: centred / no-std
   in Tiffany, standardized in the seal's vermilion (--seal itself, so it follows the site in every theme and in print). The Tiffany
   mark sits one step off the link colour so that both pass the palette checks as marks in both themes (chroma, lightness band,
   ≥ 3:1 on the paper, colour-blind separation); labels stay in ink and never wear a series colour. Drawing classes: .wash + .edge
   (a tinted area and its 2px data edge), .line, .dot (filled, paper ring), .ring (hollow), .axis / .grid (hairlines), .guide, .ref,
   .ghost; text is Inter 11.5 units on a paper halo. */
:root { --viz-center: #0A9D98; --viz-std: var(--seal); }
:root[data-theme="dark"] { --viz-center: #30A5A0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --viz-center: #30A5A0; } }
.viz { width: 100%; height: auto; overflow: visible; }
.viz text { font-family: var(--font-sans); font-size: 11.5px; fill: var(--ink-2); font-variant-numeric: lining-nums; letter-spacing: .005em;
  paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }   /* the halo: a gridline never runs through a label */
.viz .t-strong { font-weight: 600; fill: var(--ink); }
.viz .t-label { font-weight: 500; }
.viz .t-muted { fill: var(--ink-3); }
.viz .t-plain { stroke: none; }   /* lettering that sits on a wash keeps no halo */
.viz .axis { fill: none; stroke: var(--rule); stroke-width: 1; }
.viz .grid { fill: none; stroke: var(--hairline); stroke-width: 1; }
.viz .guide { stroke: var(--ink-3); stroke-width: 1; }
.viz .guide--std { stroke: var(--viz-std); }
.viz .ref { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 1 4; stroke-linecap: round; }   /* a dotted reference level, not a series */
.viz .wash { stroke: none; fill-opacity: .16; }
.viz .edge { fill: none; stroke-width: 2; }
.viz .ghost { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 3 3; }   /* what is not there: an outline, never a fill (ink-3: it carries meaning, so it clears 3:1) */
.viz .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz .line--hypo { stroke-dasharray: 2 5; }   /* dotted: a counterfactual, not something that was run */
.viz .dot { stroke: var(--paper); stroke-width: 4; paint-order: stroke; }   /* a 2px paper ring outside the mark keeps it legible where it sits on a line; no-std end marks are diamonds, so the two runs differ in shape as well as colour */
.viz .ring, .viz-key .ring { fill: var(--paper); stroke-width: 2; }   /* hollow: what was observed; the filled dot is what was stated */
.viz .ring--over { fill: none; }   /* a ring that touches a disc is drawn over it, unfilled, so both marks stay whole */
.viz .wash--center, .viz .dot--center { fill: var(--viz-center); }  .viz .edge--center, .viz .line--center, .viz .ring--center { stroke: var(--viz-center); }
.viz .wash--std, .viz .dot--std { fill: var(--viz-std); }           .viz .edge--std, .viz .line--std, .viz .ring--std { stroke: var(--viz-std); }
/* the legend above a drawing: a line key or a marker key beside each name; a name that wraps keeps its key on the first line */
.viz-legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0 0 .7rem; padding: 0; list-style: none; font: 400 .8125rem/1.4 var(--font-sans); letter-spacing: .005em; color: var(--ink-2); }
.viz-legend li { display: flex; align-items: flex-start; font-variation-settings: normal; }   /* Inter inside li: the text cut, as in .meta and .label */
.viz-legend .key-line { flex: none; margin-top: .68em; }
.viz-legend .viz-key { flex: none; margin-top: .22em; }
.key-line { display: inline-block; width: 1.1rem; height: 0; margin-right: .45rem; border-top: 2px solid; border-radius: 1px; vertical-align: .3em; }
.key-line--center { border-color: var(--viz-center); }  .key-line--std { border-color: var(--viz-std); }
.key-line--hypo { border-top-style: dotted; }
.key-line--ref { border-top: 1.5px dotted var(--ink-3); }
.viz-key { display: inline-block; width: .75rem; height: .75rem; margin-right: .45rem; vertical-align: -.08em; overflow: visible; }
.viz-key--line { width: 1.5rem; }   /* a stretch of the line with its end mark on it */
.viz .ring--ink, .viz-key .ring--ink { stroke: var(--ink-2); }  .viz-key .dot--ink { fill: var(--ink-2); }  .viz-key .dot--std { fill: var(--viz-std); }
.viz-legend--under { margin: .6rem 0 0; }
/* small multiples: two panels side by side, each with a title (and a colour key where the panel is one series) and a one-line reading */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.panels:not(.panels--stack) { align-items: end; }   /* side by side: the two charts stay level when one title takes a second line */
.prose .panel p { max-width: none; line-height: 1.4; font-family: var(--font-sans); font-size: .8125rem; letter-spacing: .005em; font-variation-settings: normal; }
.panel__title { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .7rem; font-weight: 600; color: var(--ink); }
.panel__key { flex: none; width: .625rem; height: .625rem; border-radius: 2px; }
.panel__key--center { background: var(--viz-center); }  .panel__key--std { background: var(--viz-std); }
.panel__note { margin-top: .5rem; color: var(--ink-2); text-align: center; }
.panels--stack .viz + .viz { margin-top: .9rem; }   /* a column of small charts that share the x axis lettered under the last one */
/* a chart beside its table of values. 1.275 to 1: the share of the column that sets the chart's lettering at the size of the other figures' (it is drawn 330 units wide, their panels 300). The table keeps at least its own width, so in a tight column the chart gives way */
.split { display: grid; grid-template-columns: minmax(0, 1.275fr) minmax(min-content, 1fr); gap: 1.25rem 2.25rem; align-items: center; }
/* the crosshair and its readout: values lead, the series name follows. Pointer: move or tap. Keyboard and assistive technology: a native
   range input, hidden to the eye, whose value text carries the readout. The readout keeps one place, the empty stretch between the two
   curves at the right, so it never covers a mark; the table beside the chart lists six of the group sizes it can show. */
.viz-wrap { position: relative; border-radius: var(--radius); touch-action: pan-y pinch-zoom; scroll-margin: 5.5rem 0 1rem; }
.viz-wrap .viz { pointer-events: none; }   /* no native <title> tooltip on top of the readout */
.viz-range { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.viz-wrap:has(.viz-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.viz .cross { visibility: hidden; }
.viz-wrap.is-reading .cross { visibility: visible; }
.viz-wrap.is-reading .t-label { visibility: hidden; }   /* while the readout names the series, their labels on the plot step aside */
.viz-tip { position: absolute; z-index: 2; right: calc(9.1% + .25rem); top: 26%; pointer-events: none; white-space: nowrap; padding: .45rem .65rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); font: 400 .75rem/1.6 var(--font-sans); letter-spacing: .005em; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.viz-tip[hidden] { display: none; }
.viz-tip strong { font-weight: 600; color: var(--ink); }
.viz-tip__head { color: var(--ink-3); }
.viz-tip .key-line { width: .8rem; margin-right: .4rem; }
@media (max-width: 360px) { .viz-tip { font-size: .6875rem; line-height: 1.45; padding: .3rem .5rem; } }   /* on the narrowest phones the readout shrinks rather than cover a mark */

/* the numbers behind a figure, folded at the end of its caption (the type is reset to the body's so the fold keeps its own rhythm) */
.fig__data { margin-top: .55rem; font: 400 1.0625rem/1.6 var(--font-serif); letter-spacing: 0; }
.fig__data > summary { display: inline-block; padding-right: calc(.8em + .3rem); list-style: none; cursor: pointer; font: 500 .8125rem/1.5 var(--font-sans); color: var(--accent-meta); border-radius: 3px; }
.fig__data > summary::-webkit-details-marker { display: none; }
.fig__data > summary:hover { color: var(--accent-hover); }
.fig__data > summary svg { display: inline-block; margin: 0 calc(-.8em - .3rem) 0 .3rem; vertical-align: -.06em; width: .8em; height: .8em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.fig__data[open] > summary svg { transform: rotate(180deg); }
.fig__data .table-wrap { margin-top: .6rem; }

/* tables: Inter, a rule under the head and hairlines between rows. A table too wide for a phone scrolls sideways inside its box. A box
   that really scrolls is marked by the script at the end ([tabindex]), and only then shows a soft edge on whichever side has more to
   see: the two paper-coloured gradients scroll with the table and cover the two rule-coloured ones at either end (those stop 1px short at top and bottom, so a cover always hides them whole). */
.table-wrap { position: relative; max-width: var(--measure); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap[tabindex] { background: linear-gradient(to right, var(--paper) 40%, transparent), linear-gradient(to left, var(--paper) 40%, transparent) 100% 0, linear-gradient(to right, var(--rule), transparent) 0 1px, linear-gradient(to left, var(--rule), transparent) 100% 1px;
  background-repeat: no-repeat; background-size: 2.5rem 100%, 2.5rem 100%, .75rem calc(100% - 2px), .75rem calc(100% - 2px); background-attachment: local, local, scroll, scroll; }
@media screen { .table-wrap.is-tight > table { min-width: calc(100% + 2.5rem); } }   /* a table cut by less than those 2.5rem of paper would show no edge at all: the script at the end sets it that much wider, so the edge shows */
.table-wrap:focus-visible, .eq:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }   /* a box that scrolls sideways is a tab stop (script at the end) */
.prose table { width: 100%; border-collapse: collapse; font: 400 .8125rem/1.45 var(--font-sans); font-variant-numeric: lining-nums; letter-spacing: .005em; color: var(--ink-2); }
.prose td { font-variant-numeric: tabular-nums lining-nums; }   /* tabular figures in the number cells only: in running labels they pull "Top-1" apart */
.prose th, .prose td { padding: .5rem 1rem .5rem 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--hairline); }
.prose thead th { vertical-align: bottom; font-weight: 500; color: var(--ink-3); border-bottom-color: var(--rule); }
.prose thead tr:first-child th[colspan] { border-bottom-color: var(--hairline); }   /* a group head over two columns: a hairline, the rule stays under the second row */
.prose tbody th { font-weight: 400; white-space: normal; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose th:last-child, .prose td:last-child { padding-right: 0; }
#toy-table th:last-child { padding-right: 2px; }   /* room for KaTeX's 2px spacer, which otherwise makes the table 2px wider than the column */
#fig-3 thead th:first-child { white-space: normal; }  #fig-3 tbody th { white-space: nowrap; }   /* on a phone the long column head takes two lines, the row labels stay whole, and the table fits */
.prose .num { text-align: right; }
.prose td strong { font-weight: 600; color: var(--ink); }
.prose table .katex { font-size: 1.15em; }

/* ---------- Margin matter: each note beside the sentence it belongs to. In the source a note
   follows its letter, inside the paragraph, so it is read where it applies. Where the post's box has room for it (78rem, below) it floats out of the column into the right
   margin, level with that line (two notes close together stack, they never overlap), or is set against the end of its section where it would
   otherwise run past it (.note-end below); where the margin has no room for it, it is set in the column on a hairline. Put a
   note at the end of a sentence, or it will part the sentence on a narrow screen. ---------- */
.sidenote { font: 400 .8125rem/1.55 var(--font-sans); font-variation-settings: normal; letter-spacing: .005em; font-style: normal; color: var(--ink-2); text-align: left; }
.sidenote { display: block; margin: .9rem 0 .15rem; padding-left: .9rem; border-left: 2px solid var(--rule); overflow-wrap: break-word; }   /* break-word: where KaTeX cannot be loaded a formula is one long word of TeX, and it breaks rather than run out of the note */
.sidenote__label { display: block; margin: 0 0 .3rem; line-height: 1.4; }
.prose .sidenote .katex { font-size: 1.05em; }   /* a step up from the text's 1em, as in the captions (beside Inter the figures would look small); at this size the longest formula of the notes still fits their width */
.sidenote:target { background: var(--notice-bg); box-shadow: 0 0 0 .45rem var(--notice-bg); border-radius: 2px; }   /* where a cross-reference lands, as for a reference */
.sidenote:target .sidenote__label, .sidenote:target sup.cite { color: var(--ink-2); }  .sidenote:target sup a { color: var(--ink); }   /* on the tint its label and markers darken, as an entry's key and links do (sup a, not sup.cite a: the filled number of a two-number marker in focus keeps its paper colour) */
@container post (min-width: 78rem) {   /* 78rem: the column, two gaps, and 14.5rem on either side, the least a note needs (its longest formula fits) */
  .sidenote { float: right; clear: right; width: var(--post-rail); margin: .295rem calc(-1 * (var(--post-rail) + var(--post-gap))) 1rem var(--post-gap); padding: 0; border: 0; }
  /* A long note near the end of a section would hang on beside the next heading. Such a note is set against the passage that closes the section instead: the class
     .note-end goes on the box it should end with (the last paragraph, or a <div> round the last few), and the note's last line then sits on that box's last line.
     Such a note is placed, not floated: it does not stack, so keep the class for a note with no other note near it. */
  .note-end { position: relative; }
  .note-end .sidenote { float: none; position: absolute; left: calc(100% + var(--post-gap)); bottom: .32rem; margin: 0; text-wrap: wrap; }   /* text-wrap: Safari's pretty (inherited from p) sets a narrow note a line longer */
  /* A formula in a margin note is one box, with the punctuation tied to it. It stays whole while it fits the note; where it cannot (a reader's own text spacing, a minimum font size) it breaks
     inside that box, after an operator, instead of running out of the window. */
  .sidenote .math-keep, .sidenote :not(.math-keep) > .katex { display: inline-block; max-width: 100%; }
  .sidenote .math-keep, .prose .sidenote .katex { white-space: normal; }
}

/* ---------- References: quiet, one step down, keys in a narrow left column ---------- */
.endmatter { margin-top: 3.5rem; }
.prose .endmatter h2 { padding-bottom: .5rem; font-size: 1.25rem; color: var(--ink-2); }   /* the weight of the site's year headings, on phones too */
.prose .entries { margin: .6rem 0 0; padding: 0; list-style: none; }
.entries > li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding: .55rem 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-2); border-radius: 2px; }
.entry__key { font: 400 .8125rem/1.8 var(--font-sans); font-variant-numeric: tabular-nums lining-nums; color: var(--ink-3); }
.entry__title { font-weight: 500; }
/* where a marker lands: the entry is washed with the notice tint, and its key and links darken so they keep their contrast on it */
.entries > li:target { background: var(--notice-bg); box-shadow: 0 0 0 .45rem var(--notice-bg); }
.entries > li:target .entry__key { color: var(--ink-2); }
.entries > li:target a { color: var(--ink); }
.entries > li:target a:hover { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--accent-hover); }
/* how to cite: one panel that holds its own name (the heading, set as a small label), a line of invitation, and the BibTeX entry in a well a shade deeper,
   with an icon button at the well's corner that copies it */
.endmatter.cite-this { margin-top: 3rem; padding: 1rem 1.1rem 1.1rem; background: var(--surface); border-radius: 10px; }
.prose .cite-this h2 { max-width: none; margin: 0; padding: 0; border: 0; font: 500 .75rem/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.prose .cite-this h2 + * { margin-top: .4rem; }
.prose .cite-this__intro { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.prose .bibtex { position: relative; margin: .75rem 0 0; background: var(--sunken); border-radius: 7px; }
.bibtex pre { margin: 0; padding: .85rem 1rem .9rem; overflow-x: auto; -webkit-overflow-scrolling: touch; font: 400 .78rem/1.6 var(--font-mono); }   /* the size and leading are set on the pre: its own strut, not the text's, spaces the lines */
.prose .bibtex pre code { font: inherit; color: var(--ink); background: none; padding: 0; border-radius: 0; white-space: pre; tab-size: 2; }
.bibtex__copy { position: absolute; top: .55rem; right: .55rem; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; appearance: none; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--sunken); color: var(--ink-3); cursor: pointer; transition: color .15s ease, border-color .15s ease; }   /* its own ground, so an entry scrolled sideways passes under it */
.bibtex__copy:hover { color: var(--ink); border-color: var(--ink-3); }
.bibtex__copy[data-copied] { color: var(--accent); border-color: var(--accent); }
.bibtex__ic { width: .95rem; height: .95rem; }
.bibtex__ic--done { display: none; }
.bibtex__copy[data-copied] .bibtex__ic--copy { display: none; }
.bibtex__copy[data-copied] .bibtex__ic--done { display: block; }
/* the reference a marker points at (or the note a cross-reference names), shown beside it on hover or keyboard focus (fine pointers only).
   It is a visual preview: the link still jumps to the entry, so the card stays out of the accessibility tree. It sits under the pinned header (z-index 20), on the
   surface tint with a hairline edge like the site's other frames; ::before bridges the gap to the marker for a slow pointer. */
.pop { position: absolute; z-index: 15; width: max-content; max-width: min(27rem, calc(100vw - 1.5rem)); padding: .75rem .95rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); font-size: .875rem; line-height: 1.5; font-variation-settings: "opsz" 24; color: var(--ink-2); }
.pop[hidden] { display: none; }
.pop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.pop--below::before { top: auto; bottom: 100%; }
.pop .label { display: block; margin-bottom: .25rem; }
.pop .katex { font-size: 1.05em; }
.pop sup.cite a { color: var(--accent-hover); }   /* on the surface tint the marker colour falls to 4.2:1; the hover step keeps it at 4.5:1 */

/* ---------- Forced colours (Windows contrast themes): the keys keep the colours of the marks they name; the current section keeps a mark ---------- */
@media (forced-colors: active) {
  .key-line, .panel__key { forced-color-adjust: none; }
  .post-toc a { border-left-color: Canvas; }
  .post-toc a[aria-current="true"] { border-left-color: Highlight; font-weight: 600; }
  .sidenote:target, .entries > li:target { outline: 2px solid Highlight; outline-offset: .35rem; }   /* the notice tint is not painted here: an outline marks where a link has landed */
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 680px) {
  .post-head { padding-top: 2.25rem; }
  .post-head__dek { font-size: 1.125rem; }
  .prose h2 { margin-top: 2.5rem; font-size: 1.375rem; }
  .fig { margin: 1.75rem 0; }
  .panels { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }   /* the panels stack… */
  .split { grid-template-columns: minmax(0, 1fr); }
  .panels, .split { max-width: 24.5rem; }   /* …and stop at 24.5rem, so from a large phone to a small tablet the chart lettering stays near the caption's size */
  .split .table-wrap { width: 100%; max-width: 17rem; margin-inline: auto; }
  .prose th, .prose td { padding-right: .6rem; }
  /* Table 1 on a phone: three columns leave a few words to a line, so each row is stacked as one block: the reward design, what std normalization does to it
     (the column head is repeated in front, from data-label), then the recommendation. The roles in the markup keep it a table for a screen reader. */
  #tab-1 table, #tab-1 tbody, #tab-1 tbody tr, #tab-1 tbody th, #tab-1 tbody td { display: block; }
  #tab-1 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #tab-1 tbody tr { padding: .95rem 1rem 1rem; border-bottom: 1px solid var(--hairline); }  #tab-1 tbody tr:last-child { border-bottom: 0; }
  #tab-1 tbody th:first-child, #tab-1 tbody td, #tab-1 tbody td:last-child { width: auto; padding: 0; border: 0; }
  #tab-1 tbody td { margin-top: .5rem; }  #tab-1 tbody td[data-label]::before { content: attr(data-label) " "; }
  #tab-1 tbody td:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; margin-top: .65rem; }  #tab-1 .verdict + .guide__eg { margin-top: 0; }
}
@media (max-width: 560px) { .post :is(a, summary, [tabindex]), .viz-wrap { scroll-margin-top: 7rem; } }   /* two header rows, as in site.css */

/* ---------- Print ---------- */
@media print {
  .pop, .viz-tip, .viz-range, .fig__data > summary svg { display: none !important; }
  .viz-wrap.is-reading .cross { visibility: hidden; }  .viz-wrap.is-reading .t-label { visibility: visible; }  .viz-wrap:has(.viz-range:focus-visible) { outline: none; }   /* a readout left showing (a tap, the mouse at rest, keyboard focus) does not print: the chart prints at rest */
  details.fig__data::details-content { content-visibility: visible; }   /* the folded tables print unfolded (the script at the end does the same where this is not supported) */
  .fig, .eq, .prose table, .entries > li, .sidenote, .kicker { break-inside: avoid; }   /* .kicker: Firefox keeps no widows or orphans, and would part the closing line over two sheets */
  .split { grid-template-columns: minmax(0, 21rem) minmax(min-content, 1fr); }  .table-wrap { overflow: visible; }   /* nothing scrolls on paper: beside its chart the table keeps its own width and the chart gives way; a table wider than a narrow sheet's column runs into the margin instead of being cut */
  @supports (-moz-appearance: none) {   /* Firefox only: it ignores break-after: avoid (site.css, h2), so a heading could be the last line of a page. There the heading claims
                                           room under itself and moves to the next page with its text (6rem), or with its whole first entry, which is never split (7rem: reference [1] takes three lines on A4 and Letter, and its lower edge then lies 6.62rem under the heading's text) */
    .prose h2 { break-inside: avoid; }
    .prose h2::after { content: ""; display: block; height: 6rem; margin-bottom: -6rem; }
    .prose .endmatter h2::after { height: 7rem; margin-bottom: -7rem; }
  }
  .table-wrap[tabindex] { background: none; }
  .fig__media img { mix-blend-mode: normal; filter: none; }
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) { --viz-center: #0A9D98; }   /* site.css prints with its light tokens: the figures do the same */
}
