/******************************************************************************/
/*                                                                            */
/*  deck-runtime.css -- Presentation deck runtime, structural layer           */
/*                                                                            */
/*  This is the LAYOUT axis: where things sit. It knows nothing about fonts,   */
/*  colours or logos -- those come from an identity (CI) stylesheet, which     */
/*  supplies the --skin-* custom properties consumed here.                      */
/*                                                                            */
/*  Every visual value below is either structural (positions, proportions)     */
/*  or a var(--skin-*) reference. Adding an institution must never require       */
/*  editing this file.                                                        */
/*                                                                            */
/******************************************************************************/

/* -------------------------------------------------------------------------- */
/* Fallbacks. An identity stylesheet overrides these; the deck must still      */
/* render if none is loaded.                                                   */
/* -------------------------------------------------------------------------- */

:root {
  --skin-font-prose:   'Helvetica Neue', Helvetica, Arial, sans-serif;
  --skin-font-mono:    Consolas, 'Courier New', monospace;
  --skin-accent:       #00529B;
  --skin-fg:           #1a1a1a;
  --skin-bg:           #ffffff;
  --skin-muted:        #767676;
  --skin-rule:         var(--skin-accent);
  --skin-output-bg:    #e8e8e8;
  --skin-file-bg:      rgba(255, 204, 51, 0.25);   /* ```output {.file} (v219) */
  --skin-file-name:    #8c8c8c;
  --skin-title-weight: 700;
  /* Code inside text, relative to the text around it (v221): 1 is the same */
  /* size. A wide mono face such as IBM Plex Mono looks bigger than the     */
  /* prose at the same size; its skin can take it down (0.9).               */
  --skin-inline-mono-scale: 1;

  /* Code size is DERIVED from prose size, not an independent absolute. There is
     one source of truth for text size -- --skin-body-size -- and code keeps a
     declared PROPORTION to it via --skin-code-ratio, so the two never drift out
     of relation: raise the prose and the code follows. The default ratio is a
     harmonious 0.7 (code noticeably smaller than prose but clearly of the same
     type family). A skin is free to override the ratio -- Rony's ODP set code
     deliberately small (10pt against 21pt prose, ~0.47), so his skin declares
     --skin-code-ratio: 0.47 and recovers that look WITHIN the proportion model,
     rather than pinning an absolute --skin-code-size that would sever the
     relation. A per-slide :::code-font-size still overrides the result with an
     absolute when a single slide needs it. */
  --skin-code-ratio: 0.7;
  --skin-code-size:  calc(var(--skin-body-size, 34px) * var(--skin-code-ratio));

  /* Deck geometry. 16:9, matching the slides class page size.               */
  --deck-w: 1280;
  --deck-h: 720;
}

/* -------------------------------------------------------------------------- */
/* Stage. The deck is a fixed-size canvas scaled to the viewport, so that a    */
/* slide is laid out once at a known size and then fitted to whatever screen   */
/* it is shown on. This is what makes build-time code fitting (see the         */
/* architecture note, section 5) meaningful: the layout width is known.        */
/* -------------------------------------------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  /* On a touch screen a tap steps the deck, and two quick taps are two steps */
  /* -- not a double-tap zoom (v232, iPhone and iPad). Pinch still zooms.     */
  touch-action: manipulation;
}

/* Without JavaScript no slide is ever made current, and the stage is an empty */
/* rectangle. That is what an iPhone or an iPad shows when the deck is opened  */
/* from Mail or from Files: their preview draws the page with scripts off      */
/* (v232; Rony saw exactly that). The <noscript> in the template says so.      */
#noscript {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  font: 18px/1.45 system-ui, -apple-system, sans-serif;
}
#noscript div { max-width: 34em; }
#noscript b { font-size: 1.25em; }

#stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--deck-w) * 1px);
  height: calc(var(--deck-h) * 1px);
  transform: translate(-50%, -50%) scale(var(--deck-scale, 1));
  transform-origin: center center;
  background: var(--skin-bg);
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Slides. One slide occupies the whole stage; only the current one shows.     */
/* -------------------------------------------------------------------------- */

.slide {
  position: absolute;
  inset: 0;
  display: none;
  /* Content inset is GEOMETRY, so it belongs to the skin/master, not to this
     shared runtime. The runtime only supplies fallbacks; a skin sets its own
     --skin-pad-top / --skin-pad-x to control how much air the content gets
     above and at the sides. The footer band stays --skin-footer-height as
     before. This is what lets a deck tighten its margins without editing the
     runtime. */
  padding:
    var(--skin-pad-top, 42px)
    var(--skin-pad-x, 56px)
    var(--skin-footer-height, 64px)
    var(--skin-pad-x, 56px);
  box-sizing: border-box;
  font-family: var(--skin-font-prose);
  color: var(--skin-fg);
  /* The slide's own size shrinks with the slide (fitSlide, runtime.js): text
     that takes no size of its own -- a paragraph outside .body, a list in a
     flow= block -- inherits it. The title and the kicker do not: they are the
     master's, and are sized from the base, not from this. */
  --slide-font-size: 26px;
  font-size: calc(var(--slide-font-size) * var(--contents-scale, 1));
  line-height: 1.3;
  text-align: left;
  hyphens: manual;                 /* never auto-hyphenate on slides         */
}

.slide.current { display: block; }

/* -------------------------------------------------------------------------- */
/* Margin boxes -- the Paged-Media model.                                     */
/*                                                                            */
/* Every slide carries a header region and a footer region, each three boxes  */
/* (left / center / right). The build fills them from the skin's              */
/* --skin-{header,footer}-{left,center,right} templates, the deck's           */
/* header:/footer: front-matter, and per-slide :::header-left ... zones; the  */
/* runtime substitutes {page}/{pages}. This runtime owns only the PLACEMENT:  */
/* the two bands pinned to the top and bottom edges, three columns each, so a */
/* master never re-invents corner coordinates. A master may still restyle     */
/* (colour, hide a box, nudge) -- but the geometry lives here, once.          */
/*                                                                            */
/* The bands sit ON the padding the .slide already reserves: the footer band  */
/* is --skin-footer-height (as before), the header band --skin-header-height  */
/* (default 0, so a deck with no header loses no content room and old decks   */
/* are unchanged). They are position:absolute chrome, OUT of the flow, so     */
/* fitHeight ignores them (it skips absolutely-positioned children).          */
.slide .margin {
  position: absolute;
  left:  var(--skin-pad-x, 56px);
  right: var(--skin-pad-x, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* left | center | right */
  align-items: center;
  column-gap: 1em;
  pointer-events: none;
  font-size: var(--skin-margin-size, 15px);
  color: var(--skin-footer-muted, #808080);
  font-family: var(--skin-font-prose, sans-serif);
}
.slide .margin.header {
  top: 0;
  /* (v309) the master's, so its editor can size it (Rony, 15/10: "one cannot */
  /* change its size"); the skin's, as before, when the master says nothing.   */
  height: var(--master-header-height, var(--skin-header-height, 0px));
}
.slide .margin.footer {
  bottom: 0;
  height: var(--skin-footer-height, 64px);
}
/* An empty header band paints nothing and takes no room; only when a deck    */
/* declares --skin-header-height does the header become a visible band.       */
.slide .margin.header:empty { display: none; }
.slide .m-left   { justify-self: start;  text-align: left;   }
.slide .m-center { justify-self: center; text-align: center; }
.slide .m-right  { justify-self: end;    text-align: right;  }
/* A box with no text draws nothing (the grid column just stays empty). */
.slide .m-left:empty, .slide .m-center:empty, .slide .m-right:empty { visibility: hidden; }

/* Default page transition: NONE (a cut). An unmarked slide simply appears --   */
/* how long a slide takes to arrive is a separate decision from how long a      */
/* fragment takes to appear, and our house default is Rony's: no page           */
/* transition, a full second on elements. A deck that wants a default fade sets  */
/* --skin-anim-duration-page and marks slides anim="fade" (or its identity     */
/* seeds a fade), so nothing is lost -- the floor is just honest now: no rule    */
/* here means no animation, rather than a fade with a hidden duration.          */

@media (prefers-reduced-motion: reduce) {
  .slide.current { animation: none; }
}

/* -------------------------------------------------------------------------- */
/* Semantic roles.                                                            */
/*                                                                            */
/* Content declares WHAT IT IS; this file decides WHERE IT GOES. The set is    */
/* deliberately small: the mechanism is general, its population is not.        */
/* -------------------------------------------------------------------------- */

/* kicker -- the small line above the title ("Basics", "History")             */
.kicker {
  font-size: calc(var(--slide-font-size, 26px) * 0.72);
  color: var(--skin-fg);
  margin: 0 0 2px 0;
  font-weight: 400;
}

/* On a slide, the kicker is placed, not flowed. In the flow it sat ABOVE the
   title band and pushed the band down by its own height, so a slide with a
   kicker had its title, its rule and all its content lower than the slide
   before it -- a jump on every change of slide. Taken out of the flow it
   costs nothing: each master says where it goes (usually the upper part of
   its title band); this is only the fallback. */
.slide > .kicker {
  position: absolute;
  top: var(--skin-kicker-top, 14px);
  left: var(--skin-pad-x, 56px);
  right: var(--skin-pad-x, 56px);
  margin: 0;
  z-index: 3;
}

/* title -- the slide heading                                                 */
.title {
  font-size: calc(var(--slide-font-size, 26px) * 1.30);
  font-weight: var(--skin-title-weight);
  color: var(--skin-fg);
  margin: 0 0 0.34em 0;
  padding-bottom: 0.20em;
  border-bottom: 3px solid var(--skin-rule);
}

/* body -- ordinary prose and lists                                           */
/* Prose base size. The body's level-1 text takes --skin-body-size (Rony's
   outline level 1 is 21pt ≈ 34px, larger than the slide's own 26px base). The
   per-level cascade below scales down from THIS size. A skin with no prose can
   omit it; then the body falls back to the slide's inherited size. */
.body { margin: 0.5em 0; font-size: calc(var(--skin-body-size, 1em) * var(--contents-scale, 1)); }

/* The .body owns the separation from its neighbours (its own 0.5em margin). Its
   first and last children must not ADD their own edge margins on top -- a lead
   <p> carries ~1em and a lead <ul> ~0.3em, which stack onto the body's margin
   and open a gap that is pure waste: doubled separation where one is meant. It
   goes unnoticed on a roomy slide but, when rows above have filled the stage,
   the extra top margin is what pushes trailing prose down over the footer. So
   we zero the inner edge margins; the rhythm BETWEEN a body's blocks is
   untouched, only the boundary the body already accounts for. (Same principle
   as the row's `> * > :first-child { margin-top:0 }`, applied to the body.) */
.body > :first-child { margin-top: 0; }
.body > :last-child  { margin-bottom: 0; }

.body ul { margin: 0.3em 0; padding-left: 1.1em; }
.body li { margin: 0.28em 0; }
/* An item with a listing, or with a second paragraph, makes its whole list
   "loose": Pandoc puts every item's text in a <p>, and the browser's 1em
   above and below it spread the list to twice its height -- the slide then
   had to shrink (Rony, 04-Oct, 030 #11-#13). The item's <p> spaces like the
   item itself: its margin collapses into the li's 0.28em. */
.body li > p { margin: 0.25em 0; }

/* Outline font-size cascade: each nesting level is smaller than its parent,   */
/* matching the LibreOffice Impress decks these slides are imported from. In    */
/* those .odp the outline style declares a size PER LEVEL (level 1 the body     */
/* size, then stepping down), so a deep bullet reads smaller than a shallow      */
/* one. Reproducing that here keeps a generated deck visually close to the       */
/* author's original instead of rendering every level at one flat size.          */
/*                                                                            */
/* Ratios are the corpus medians of level(n+1)/level(n) across all 38 decks    */
/* (191 outline styles, all monotone non-increasing): 0.82, 0.89, 0.88. They    */
/* are between-level ratios, NOT absolute: nested `em` compounds down the tree,  */
/* so the effective size vs. level 1 lands at 1.00 / 0.82 / 0.73 / 0.64 -- the  */
/* dominant (22,18,16,14)pt cascade and its rescaled siblings (32,28,24,20 ...). */
/* Applied on the child ul so each level scales relative to the level above; a   */
/* floor at level 4 stops the shrink where the corpus does (level 4+ is flat).   */
/* A numbered list is a level like any other: `ol` counts as `ul` does (Rony, */
/* 28-Sep: a `1.` list under a bullet kept the level-1 size).                  */
.body :is(ul, ol) :is(ul, ol)                         { font-size: 0.82em; }
.body :is(ul, ol) :is(ul, ol) :is(ul, ol)             { font-size: 0.89em; }
.body :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) { font-size: 0.88em; }   /* level 4; deeper stays at this size */

/* -------------------------------------------------------------------------- */
/* Two-dimensional layout -- a 12-unit grid (Bootstrap-shaped, no responsive).  */
/*                                                                            */
/* A LAYOUT (not identity) choice, so it lives in the runtime. A :::row lays   */
/* its :::col-N children side by side; :::col-N takes N/12 of the row's width. */
/* Because a slide is a FIXED canvas, there are no breakpoints and no wrap:    */
/* a column's share is absolute. Columns that don't sum to 12 simply leave     */
/* space to the right; columns that exceed 12 overflow the canvas -- both are   */
/* the author's call, not the grid's to police. The grid is a width system.    */
/*                                                                            */
/* Nothing in the pipeline interprets these: Pandoc renders `::: row` and      */
/* `::: col-6` as nested <div class="row"> / <div class="col-6">, and the      */
/* highlighter runs inside a column exactly as it does at slide level. This    */
/* replaces the old fixed `two-col` slide-mode: same gap/alignment/min-width   */
/* decisions, but a local container instead of a whole-slide mode, N columns   */
/* instead of two, and a 12-share split instead of a forced 50/50.            */
/* -------------------------------------------------------------------------- */

.slide .row {
  display: flex;
  gap: var(--row-gap, 40px);
  align-items: flex-start;   /* prose + code align at the top, not stretched */
}
/* Share via flex-GROW on a zero basis, NOT flex-basis percentages. A percentage
   basis measures N/12 of the row's FULL width and ignores the gap, so two col-6
   ask for 50%+50%=100% AND a 40px gap on top -> the pair overflows by one gap
   and the last column pushes past the right margin (the bug that made the right
   margin look narrow). With basis:0 and grow:N, flexbox subtracts the gap(s)
   from the row first and then splits the REMAINING space in the ratio of the
   grows -- so any number of columns, any gap, always fits the row exactly.
   col-N is thus "N parts of 12 of the space left after gutters", which is what
   symmetric margins require. */
.slide .col-1,  .slide .col-2,  .slide .col-3,  .slide .col-4,
.slide .col-5,  .slide .col-6,  .slide .col-7,  .slide .col-8,
.slide .col-9,  .slide .col-10, .slide .col-11, .slide .col-12 {
  flex-basis: 0;
  min-width: 0;              /* a code panel shrinks instead of overflowing */
}
.slide .col-1  { flex-grow: 1;  }
.slide .col-2  { flex-grow: 2;  }
.slide .col-3  { flex-grow: 3;  }
.slide .col-4  { flex-grow: 4;  }
.slide .col-5  { flex-grow: 5;  }
.slide .col-6  { flex-grow: 6;  }
.slide .col-7  { flex-grow: 7;  }
.slide .col-8  { flex-grow: 8;  }
.slide .col-9  { flex-grow: 9;  }
.slide .col-10 { flex-grow: 10; }
.slide .col-11 { flex-grow: 11; }
.slide .col-12 { flex-grow: 12; }

/* Align the TOP of each column's content. align-items:flex-start lines up the
   column boxes, but the first child inside each still carries its own top
   margin, and those differ by kind: a prose <p> inherits .body's 0.5em (~26px
   at body size) while a .code box carries only ~6px -- so text starting a
   column sits ~19px lower than code starting the sibling column, and two
   side-by-side blocks visibly misalign at the top. The first child has no
   previous sibling to separate from, so its top margin serves no purpose here:
   zero it. Scoped to a column's direct first child, so the normal vertical
   rhythm between stacked blocks outside a row is untouched. */
.slide .row > * > :first-child { margin-top: 0; }
/* ...and through a step: a listing that comes later is the column's
   div.fragment, and its own .code kept its top margin inside it, so it
   started 6px under the listing beside it that is there from the start
   (Rony, 04-Oct, 030 #28: cmd1.rex and cmd2.rex). */
.slide .row > * > div:first-child > :first-child { margin-top: 0; }
/* ...and through two wrappers: a step around an anchor (::: {#id}, the end of
   an arrow) around a file box. figure.listing keeps its 0.5em top margin
   there, and the file box started 6.5px under the box beside it (Rony,
   04-Oct 21:49, 030 #8 and #15-17). */
.slide .row > * > div:first-child > div:first-child > :first-child {
  margin-top: 0;
}

/* The same at the BOTTOM, for the same reason and one more. A column is a flex
   item, so its content's margins cannot collapse through it: the last
   paragraph's 1em stayed inside the row, and then the next block's own top
   margin was added on top -- a row followed by a paragraph sat 2em above it,
   and two rows of one-line text were a whole paragraph apart (Rony's slide of
   operators, one row per line, "unexplainably" loose). Zero it, and put the
   space between rows where it can be seen and changed: on the row. */
.slide .row > * > :last-child { margin-bottom: 0; }
.slide .row + .row {
  margin-top: calc(var(--skin-body-size, 1em) * var(--contents-scale, 1));
}
/* ::: {.row .tight} sits right under the row before it: rows used as the
   lines of a small table, not as paragraphs. */
.slide .row + .row.tight { margin-top: 0; }

/* ::: {.row .ruled}: a line down the middle of each gap between columns, as
   in a two-column comparison (Rony's "ooRexx vs. VBScript", 29-Sep). Drawn by
   each column after the first, from its top to its bottom, so it is there
   from the start even when everything in the columns comes in steps. Ruled
   rows one under the other join into ONE line: the rule of a ruled row that
   follows another reaches up through the space between them. For that, the
   columns of the rows must line up (the same col-N), which is the point of
   writing a comparison as one row per topic. */
.slide .row.ruled { align-items: stretch; }   /* the line as tall as the row */
.slide .row.ruled > * + * { position: relative; }
.slide .row.ruled > * + *::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--row-gap, 40px) / -2 - var(--skin-column-rule-width, 2px) / 2);
  border-left: var(--skin-column-rule-width, 2px) solid
               var(--skin-column-rule, var(--skin-fg, #1a1a1a));
}
/* A spare column ('> columns 2 2 4' with two written) is room, not a column:
   no rule beside it. */
.slide .row.ruled > .spare::before { content: none; }
.slide .row.ruled + .row.ruled > * + *::before {
  top: calc(-1 * var(--skin-body-size, 1em) * var(--contents-scale, 1));
}
.slide .row.ruled + .row.ruled.tight > * + *::before { top: 0; }

/* Contents scale -- one knob to shrink a whole block's text at once. A chunk
   of content that fits but runs a little tall can be dialled down with a single
   number instead of re-picking the code/body font-size zones by hand and
   keeping them in proportion. The author writes ::: {.contents scale=0.85} and
   every text size inside drops to 85%, code and prose together, each shrinking
   from its OWN base so their relative proportion is preserved.

   `contents` is the generic scalable group; `row` is a `contents` that also
   lays its children out in columns, so it shares the very same knob -- one
   scaling mechanism, not two.

   Nesting MULTIPLIES, but the multiplication is done in the GENERATOR, not
   here: a 0.9 inside a 0.8 is emitted as a resolved --contents-scale:0.72 on
   the inner group. CSS custom properties cannot multiply an inherited value by
   a local one without self-reference (which the spec forbids), so the build
   keeps a stack of scales and writes each group's product outright. The author
   still just writes scale=0.9; the composition is ours to compute. That is why
   this stylesheet is flat: every group already carries its final factor.

   We scale where the size is CONSUMED (font-size on the blocks), never by
   redefining --skin-*-size in terms of themselves. The outline's per-level
   cascade (0.82em...) rides on the already-scaled .body; unitless line-heights
   follow the font down on their own. TITLE and footer are OUT of scope: they
   are chrome placed by the master, not content the author flowed. */
/* The scale in force defaults to 1 at the slide root and INHERITS from there:
   a group without its own scale must keep whatever an ancestor group set, not
   reset to 1. So the default lives on .slide, and a group only ever carries a
   --contents-scale when the generator wrote one (i.e. it had scale=). A nested
   row inside a scaled contents thus inherits the parent's factor; the generator
   already folded any nesting into the numbers it emits. */
.slide { --contents-scale: 1; }
.slide .contents .body,       .slide .row .body,
.slide .contents > p,         .slide .row > p,
.slide .row .col-1  > p, .slide .row .col-2  > p, .slide .row .col-3  > p,
.slide .row .col-4  > p, .slide .row .col-5  > p, .slide .row .col-6  > p,
.slide .row .col-7  > p, .slide .row .col-8  > p, .slide .row .col-9  > p,
.slide .row .col-10 > p, .slide .row .col-11 > p, .slide .row .col-12 > p,
.slide .contents [class*="col-"] > ul,
.slide .row [class*="col-"] > ul,
.slide .contents > ul, .slide .contents > ol,
/* A .fragment is a reveal wrapper, transparent to size: it sets opacity and
   transform, never font-size (anim.css). So a size-consuming block wrapped in
   one -- the overwhelmingly common case, since incremental slides put nearly
   every block in its own :::fragment -- must still take the scale. The child
   combinators above stop at the fragment and the scale is silently lost; these
   rows let the same consumers be reached through exactly one interposed
   .fragment. We interpose ONE level (not a descendant `.fragment ul`) so the
   per-level `em` cascade still rides on the block where the size is set, never
   double-applied to a nested list that already inherits it. `.body` above is
   already a descendant match, so it needs no fragment variant; a bare `- list`
   in a .plain fragment lands as `.fragment > ul` with no .body, which is why
   the ul/ol and .code/.output consumers below each gain a `.fragment >` twin. */
.slide .contents > .fragment > p,
.slide .contents > .fragment > ul, .slide .contents > .fragment > ol,
.slide .row > .fragment > p,
.slide .row [class*="col-"] > .fragment > ul,
/* ...and a paragraph or numbered list revealed inside a column: without
   these a "... cut ..." line under a listing in a column kept the full body
   size while the listing beside it shrank (Rony's ODP 240, "Bootstrapping"). */
.slide .row [class*="col-"] > .fragment > p,
.slide .row [class*="col-"] > .fragment > ol,
/* ...and a list flowed into columns (flow=): it sits in its own div.flow, so
   none of the rows above reached it and a scale=0.6 shrank the sentence over
   the BIF list but not the list (Rony's ODP 020, "All Functions of REXX"). */
.slide .contents .flow > ul, .slide .contents .flow > ol,
.slide .row .flow > ul,      .slide .row .flow > ol {
  font-size: calc(var(--skin-body-size, 1em) * var(--contents-scale));
}
.slide .contents .code > pre, .slide .row .code > pre,
.slide .contents div.sourceCode > pre, .slide .row div.sourceCode > pre,
.slide .contents pre.output, .slide .row pre.output {
  font-size: calc(var(--skin-code-size) * var(--contents-scale));
}

/* Anything placed DIRECTLY inside a :::row that is not a column is an          */
/* authoring error. A bare paragraph or block becomes an unsized flex item     */
/* whose width silently depends on its content -- never what the author meant.  */
/* This is a product aimed at real authors, so we make the mistake LOUD rather */
/* than paper over it with a "helpful" default: a visible complaint in the     */
/* render beats a silent mislayout the author discovers in the room. The list  */
/* of valid children is the closed col-1..col-12 vocabulary, matched exactly   */
/* (an explicit whitelist, not a `[class*="col-"]` substring test, so a future */
/* unrelated class containing "col-" is never flagged by accident).            */
.slide .row > :not(.col-1):not(.col-2):not(.col-3):not(.col-4):not(.col-5):not(.col-6):not(.col-7):not(.col-8):not(.col-9):not(.col-10):not(.col-11):not(.col-12) {
  outline: 3px dashed #c9211e;
  outline-offset: 4px;
}
.slide .row > :not(.col-1):not(.col-2):not(.col-3):not(.col-4):not(.col-5):not(.col-6):not(.col-7):not(.col-8):not(.col-9):not(.col-10):not(.col-11):not(.col-12)::before {
  content: "\26A0 not in a :::col-N";
  display: block;
  font: 600 14px var(--skin-font-prose, sans-serif);
  color: #c9211e;
}

/* label -- a short caption introducing a block ("Output:")                   */
.label {
  font-size: 0.78em;
  font-weight: 600;
  margin: 0.7em 0 0.28em 0;
}

/* -------------------------------------------------------------------------- */
/* Pictures in layers -- a background, and a stack.                           */
/*                                                                            */
/* Two zones, both plain Pandoc divs, both about pictures that share a place: */
/*                                                                            */
/*   ::: background   pictures behind the whole slide. Everything else -- the */
/*                    title, the prose, the master's bands and chrome -- sits */
/*                    on top of them.                                         */
/*   ::: layers       pictures stacked in ONE spot of the content, the first  */
/*                    giving the size and each later one drawn over it. This  */
/*                    is how a diagram is built up a part at a time: cut it   */
/*                    into transparent PNGs of the same size, and mark every  */
/*                    layer after the first as a .fragment.                   */
/*                                                                            */
/* A picture inside either zone is still a picture: {.fragment} reveals it,   */
/* data-anim animates it, and it arrives in DOCUMENT order with the rest of   */
/* the slide's fragments. That is why the zone stays where the author wrote   */
/* it instead of being moved to the top of the slide: moving it would move    */
/* its steps. A background placed after the first bullet builds after it.    */
/*                                                                            */
/* The slide is its own stacking context (isolation), so the background's    */
/* negative z-index puts it behind the slide's content but never behind the   */
/* slide itself -- it cannot fall through to the stage or to other slides.    */
/* -------------------------------------------------------------------------- */

.slide { isolation: isolate; }

.slide .background {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.slide .background > * { margin: 0; }
.slide .background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;               /* fill the slide; crop rather than squash */
}

.slide .layers {
  position: relative;
  display: inline-block;           /* as wide as the first picture, no wider */
}
.slide .layers > * { margin: 0; }
.slide .layers > :not(:first-child) {
  position: absolute;
  inset: 0;
}
.slide .layers img {
  display: block;
  max-width: 100%;
}
/* offset="dx dy" (TranslateOffset): a cascade. The pictures share ONE grid
   cell, each pushed right and down by k times the offset, k = its place after
   the first. A grid cell grows to hold everything in it, margins included, so
   the block is as big as the whole cascade and stays in flow: no absolute
   positioning, nothing under it is overlapped. Later pictures paint over
   earlier ones, in the order written. Past the 12th, k stays 11. */
.slide .layers.offset { display: inline-grid; }
.slide .layers.offset > * {
  grid-area: 1 / 1;
  position: static;
  justify-self: start;
  align-self: start;
  margin: calc(var(--k, 0) * var(--layers-dy, 0px)) 0 0
          calc(var(--k, 0) * var(--layers-dx, 0px));
}
.slide .layers.offset > :nth-child(2)  { --k: 1; }
.slide .layers.offset > :nth-child(3)  { --k: 2; }
.slide .layers.offset > :nth-child(4)  { --k: 3; }
.slide .layers.offset > :nth-child(5)  { --k: 4; }
.slide .layers.offset > :nth-child(6)  { --k: 5; }
.slide .layers.offset > :nth-child(7)  { --k: 6; }
.slide .layers.offset > :nth-child(8)  { --k: 7; }
.slide .layers.offset > :nth-child(9)  { --k: 8; }
.slide .layers.offset > :nth-child(10) { --k: 9; }
.slide .layers.offset > :nth-child(11) { --k: 10; }
.slide .layers.offset > :nth-child(n+12) { --k: 11; }
/* cols=1:5 on the wrapper: the columns are given shares of the table, so the
   table itself has to have a width to share out -- that of its holder. */
.slide table.cols { width: 100%; }

/* flow=N: a list flowed into N columns (TranslateFlow). Column by column by
   default -- CSS columns, which balance the heights, 67 items in five going
   14-14-14-14-11 -- and row by row with fill=rows, a grid. An item is never
   split across two columns, and a nested list stays with its item. The list
   is found where the build leaves it: right in the :::, or in its .body. */
.slide .flow > ul, .slide .flow > ol,
.slide .flow > .body > ul, .slide .flow > .body > ol {
  columns: var(--flow);
  column-gap: 1.5em;
}
.slide .flow li { break-inside: avoid; }
/* An item's space above and below collapse into one in a column, but not at
   the top of one -- where the first column kept it and the others lost it,
   so the columns did not line up -- and not in a grid, where rows came out
   further apart than in columns. Space below only: the same gap between
   items as before, and the tops of the columns level. */
.slide .flow > ul > li, .slide .flow > ol > li,
.slide .flow > .body > ul > li, .slide .flow > .body > ol > li { margin-top: 0; }
.slide .flow-rows > ul, .slide .flow-rows > ol,
.slide .flow-rows > .body > ul, .slide .flow-rows > .body > ol {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(var(--flow), minmax(0, 1fr));
}

/* -------------------------------------------------------------------------- */
/* Tables.                                                                    */
/*                                                                            */
/* A Markdown table used to reach the slide with no rule of its own: no lines, */
/* no air, the cells run together. This is the plain reading of a table on a  */
/* slide -- a thin grid, a firmer line under the header, room in each cell --  */
/* and a master may restyle any of it. `::: {.plain}` around a table (or      */
/* `::: {.incremental .plain}`) drops the grid, for tables that are really    */
/* two aligned columns. Wrapped in `::: incremental`, a table is revealed one */
/* row at a time.                                                             */
/* -------------------------------------------------------------------------- */

.slide table {
  /* Separate borders, drawn by the cells themselves: a row revealed later is
     then invisible WITH its lines. In the collapsed model the table paints
     the grid, and the hidden rows showed as an empty grid waiting below. */
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.4em 0;
  font-size: calc(var(--skin-body-size, 1em) * 0.9 * var(--contents-scale, 1));
  /* As wide as its contents, never wider than its holder. Pandoc used to hand
     a table with one long source row a <colgroup> of percentage widths, which
     stretched it to the full width of the slide (or column) while a short
     table beside it stayed tight; md2slides now keeps Pandoc from doing that
     (--columns), so every table sizes to its cells. The cap is for a table
     that really is too wide: it wraps its cells instead of leaving the canvas. */
  max-width: 100%;
}
.slide th,
.slide td {
  padding: 0.22em 0.7em;
  border-right:  1px solid var(--skin-table-rule, color-mix(in srgb, var(--skin-fg) 28%, transparent));
  border-bottom: 1px solid var(--skin-table-rule, color-mix(in srgb, var(--skin-fg) 28%, transparent));
  text-align: left;
  vertical-align: top;
}
.slide tr > :first-child {
  border-left: 1px solid var(--skin-table-rule, color-mix(in srgb, var(--skin-fg) 28%, transparent));
}
.slide table > :first-child > tr:first-child > *,
.slide table > colgroup + * > tr:first-child > * {
  border-top: 1px solid var(--skin-table-rule, color-mix(in srgb, var(--skin-fg) 28%, transparent));
}
/* The header row stands on a tint of the skin's accent (Rony, 26-Sep: take
   it from the skin's palette). A skin that wants another colour says so with
   --skin-table-head-bg (and --skin-table-head-fg for the text on it). A .plain
   table is the table without its decoration, so its header has no background
   either -- unless the skin gives one on purpose, --skin-plain-table-head-bg. */
.slide thead th {
  font-weight: 700;
  border-bottom: 2px solid var(--skin-rule, currentColor);
  background: var(--skin-table-head-bg,
                  color-mix(in srgb, var(--skin-accent) 12%, var(--skin-bg)));
  color: var(--skin-table-head-fg, inherit);
}
.slide .plain thead th {
  background: var(--skin-plain-table-head-bg, transparent);
}
.slide .plain th,
.slide .plain td,
.slide .plain tr > :first-child,
.slide .plain table > :first-child > tr:first-child > *,
.slide .plain table > colgroup + * > tr:first-child > * {
  border: 0;
  padding-left: 0;
  padding-right: 1.4em;
}

/* The fourth level of bullets, and deeper: an en dash. The browser's markers
   are disc, circle, square, and square again from there on, so the fourth
   level looked like the third (Rony, 04-Oct 21:49, 030 #9). .plain and .tree
   below still win: they are more specific. */
.slide ul ul ul ul { list-style-type: "\2013\00a0"; }

/* .plain on a LIST: no bullets. The same word as on a table (no grid): the
   thing without its decoration. Rony asked for it as "noBullet", the way a
   presentation program offers it per paragraph. Only the marker goes; the
   text stays where it was, so a .plain item lines up with the text of its
   bulleted neighbours, and indent= still moves the whole thing in. Nested
   lists inside lose their markers too: plain is plain all the way down. */
.slide .plain ul,
.slide .plain ol { list-style: none; }
/* ...and on ONE item, `- [text]{.plain}`: that bullet only (Rony, 27-Sep: a
   line of code among the items). A list nested in it keeps its markers: it
   is the item's ::marker that goes, not its list-style, which is inherited
   and would take the nested items' markers too. */
.slide li.plain::marker { content: ""; }

/* ::: {.plain .tight} -- or .tight on any table's wrapper: the rows sit close,
   like the lines of a list. The air between rows is the cells' vertical
   padding (0.22em each way, so ~0.45em a row); .tight takes it away and
   leaves the line-height to keep the rows apart. Same word as on a .row,
   same meaning: "right under the one before". */
.slide .tight th,
.slide .tight td {
  padding-top: 0;
  padding-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Code and output.                                                           */
/*                                                                            */
/* Two different registers: program text (highlighted) and program output      */
/* (not highlighted -- it is not code). Both monospaced, both never wrapped.  */
/* -------------------------------------------------------------------------- */

/*                                                                            */
/* Code arrives wrapped in the highlighter's own container --                  */
/* div.highlight-rexx-<style> -- with a <pre> inside. That container is what   */
/* the style chooser relabels, so the deck must style around it rather than    */
/* replace it.                                                                */
/*                                                                            */

.code, pre.output {
  margin: 0.25em 0;
  box-sizing: border-box;
  line-height: 1.35;
  tab-size: 4;
  width: 100%;                     /* default: full content width. A deck that
                                      wants Rony's centred, narrower box sets
                                      its own width/margin in the skin/master. */
}

.code > pre, pre.output {
  font-family: var(--skin-font-mono);
  margin: 0;
  padding: 6px 18px;               /* 6px top and bottom: it was 14px, more   */
                                   /* air than Rony's boxes have, and every    */
                                   /* box made its slide shrink (04-Oct).      */
  white-space: pre;                /* NEVER wrap: a broken statement may be  */
  overflow: visible;               /* a syntax error                          */
  border: none;
  border-radius: 0;
}

.output { background: var(--skin-output-bg); }

/* An output MENTION -- `3 4`{.output} in a sentence or a table cell -- is a  */
/* <code class="output"> in running text, not the <pre> of an output block.   */
/* The block rules above (padding, width, margins, the code size) are the     */
/* <pre>'s alone: on the mention they made it taller than its line, and in a  */
/* table every row painted its background over the bottom of the row above    */
/* (Rony's "Execution, 1", 24-Sep). The mention is text, like a Rexx mention: */
/* the size and the line of what surrounds it, the output's font and colour. */
/* Every <code> takes the deck's mono face -- a Rexx mention, a plain code  */
/* span, an output mention -- as `font-mono:` promises (readme). They used   */
/* to get the browser's generic monospace, so in a Code/Output table the two */
/* columns were set in two different faces.                                  */
.slide code { font-family: var(--skin-font-mono); }

/* A Rexx mention on no ground (rexxpub: mentions: background: none; Rony,  */
/* 26/10/2026): in the colours of the style, without the ground of code. The */
/* same rule as the pages' (css/tables.css); md2slides marks the mentions.   */
span.rx-bare > code {
  background-color: transparent !important;
  padding: 0 !important;
}

/* The ground and the frame of a block (v359; Rony, 01/11/2026): background=, */
/* border=, border-width=, border-color= on the fence, or rexxpub: blocks: in */
/* the YAML. md2slides puts rx-dress on the block itself -- div.code (Rexx)   */
/* or a <pre>, also the <pre> of a listing Pandoc highlights, which is the    */
/* one that steps (v362) -- with --rx-dress-bg and --rx-dress-border; the     */
/* pages wrap it instead (css/tables.css), with the same names. A listing     */
/* Pandoc highlights gets the room of the others.                            */
.rx-dress-bg, .rx-dress-bg > pre, .rx-dress-bg > pre > code,
pre.rx-dress-bg > code {
  background-color: var(--rx-dress-bg) !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.rx-dress-border {
  border: var(--rx-dress-border) !important;
}
.rx-dress-border > pre {
  border: none !important;
}
pre.rx-dress:not(.output) {
  padding: 6px 18px;
}
/* Pandoc keeps the line numbers of a .numberLines listing in the margin of   */
/* its <pre> (margin-left: 3em, and a grey rule as its left border). Dressed  */
/* on the <pre> (v362), the gutter comes inside the box, so that the ground   */
/* and the frame hold the numbers, as they did on the div: the margin becomes */
/* room, and the rule is drawn where it was.                                  */
/* (v384; Rony, 05-Nov: "1|0" at scale=0.68) The rule goes by the numbers,    */
/* not by the code. Pandoc sets the numbers in em (left: -4em, -1em, 4em     */
/* wide), so they end 1em - 4px before the code, while the gap before the    */
/* code is 18px. At the skin's code size the two were alike; at a smaller    */
/* one (scale=, or a slide the runtime shrank) the numbers ran under a rule  */
/* still 18px from the code. Now it is 2px after them: 1em - 6px before the  */
/* code, which is where it was at 23.8px.                                    */
div.sourceCode > pre.numberSource.rx-dress {
  margin-left: 0;
  border-left: none;
  padding-left: calc(3em + 1px + 18px);
  background-image: linear-gradient(#aaaaaa, #aaaaaa);
  background-size: 1px 100%;
  background-position: calc(2em + 1px + 24px) 0;
  background-repeat: no-repeat;
}
div.sourceCode > pre.numberSource.rx-dress-border {
  padding-left: calc(3em + 18px);   /* the frame's own side is the 1px */
  background-position: calc(2em + 24px) 0;
}

/* Code in text is the size of the text around it, times the skin's        */
/* --skin-inline-mono-scale (Rony, 27-Sep: IBM Plex Mono at the prose's size */
/* looks larger than the prose). Only code in text: the <code> of a block  */
/* is the child of its <pre>, and a block has its own --skin-code-size.     */
.slide :not(pre) > code {
  font-size: calc(var(--skin-inline-mono-scale, 1) * 1em);
}

/* -------------------------------------------------------------------------- */
/* Visible blanks in an output block.                                          */
/*                                                                             */
/* A Rexx listing gets this rule from its palette, which is inlined with the    */
/* deck; an output block is not inside a .highlight-rexx-<style> and would be   */
/* missed by it, so the same mark is declared here, unscoped. Same class, same  */
/* drawing: one span per blank, its box drawn as inset shadows on an ::after,  */
/* from the bottom of the inline box so no font's metrics can push it out.      */
/* -------------------------------------------------------------------------- */

.rx-blank-mark {
  position: relative;
}
.rx-blank-mark::after {
  /* The box hangs from the BOTTOM of the inline box -- the descent line --
     and never from a measured baseline: how tall that box is depends on the
     font in use (1.31em in one, 1.18em in another), and an em-based offset
     that fits one font puts the mark outside the box in the next. Anchored
     at bottom: 0, it sits right whatever the listing is set in. */
  content: "";
  position: absolute;
  left: 12%;
  right: 13%;
  bottom: 0;
  height: .3em;
  /* Shadows, not borders: Chromium draws a border of less than 1px as 1px,
     as thick as the letters (Rony, 20/10). .045em is half a stem. The
     ticks' shadows go up as well as sideways: with no rise, the top of
     each shadow's hole ran along the top of the box, and the PDF drew
     that seam as a hairline that closed the box (Rony, 20/10). */
  box-shadow: inset 0 -.045em 0 var(--rx-blank-ink, currentColor),
              inset .045em -.045em 0 var(--rx-blank-ink, currentColor),
              inset -.045em -.045em 0 var(--rx-blank-ink, currentColor);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  pointer-events: none;
}

/* A tab in an output block: the arrow into the tab stop, --->|, as in the
   palettes' rule for a Rexx listing. */
.rx-tab-mark {
  background-image:
    linear-gradient(var(--rx-blank-ink, currentColor), var(--rx-blank-ink, currentColor)),
    linear-gradient(to top right, transparent 42%, var(--rx-blank-ink, currentColor) 42%, var(--rx-blank-ink, currentColor) 58%, transparent 58%),
    linear-gradient(to bottom right, transparent 42%, var(--rx-blank-ink, currentColor) 42%, var(--rx-blank-ink, currentColor) 58%, transparent 58%),
    linear-gradient(var(--rx-blank-ink, currentColor), var(--rx-blank-ink, currentColor));
  background-size: calc(100% - .45ch) .07em, .28em .2em, .28em .2em, .07em .5em;
  background-position: left .1ch bottom .25em, right .3ch bottom .285em,
                       right .3ch bottom .085em, right .2ch bottom .03em;
  background-repeat: no-repeat;
}

/* -------------------------------------------------------------------------- */
/* Key caps.                                                                   */
/*                                                                             */
/* A pressed key is not text, and a transcript that shows one as text leaves    */
/* the room guessing whether the command was sent. Two places produce these:    */
/* [Enter]{.key} in prose, and <Enter> inside a ~~~output {.keys} block.        */
/*                                                                             */
/* Everything is in em, so a cap rides whatever type it sits in -- prose at     */
/* body size, a transcript at code size, and both again inside a :::contents    */
/* that scales them. A cap in a <pre> must not change the line's height        */
/* either, or one key in a transcript would push its line apart from the rest:  */
/* hence padding on the sides only, and a border that does not add to it.       */
/* -------------------------------------------------------------------------- */

.key {
  font-family: var(--skin-font-mono);
  font-size: 0.82em;
  line-height: 1;
  padding: 0.04em 0.42em;
  border: 1px solid var(--skin-key-border, currentColor);
  border-radius: 0.35em;
  box-shadow: 0 0.08em 0 var(--skin-key-border, currentColor);
  background: var(--skin-key-bg, transparent);
  color: inherit;
  white-space: nowrap;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Inside a transcript the cap sits on the output's own ground, so it needs a
   little air from the characters either side and none above: a <pre> line box
   is the font's, and a taller inline would open the whole line. */
.output .key, .code .key {
  margin: 0 0.15em;
  vertical-align: baseline;
}

/* An output block numbered by Pandoc (~~~output {.numberLines}) carries the
   .output class on the <pre> ITSELF, and Pandoc gives that same <pre> a
   margin-left:3em for its line-number gutter (pre.numberSource). The rule
   above sets width:100% on .output; with box-sizing:border-box that resolves
   to the FULL width of the wrapping div.sourceCode -- and then the 3em gutter
   margin pushes the <pre> 3em PAST the wrapper's right edge. Pandoc's own
   div.sourceCode{overflow:auto} then shows a horizontal scrollbar for content
   that in fact fits: a spurious bar under a one-line output.

   The <pre> must not claim the full width AND a gutter margin at once. Letting
   width fall back to auto makes the <pre> shrink by exactly its own margin, so
   its right edge lands back on the wrapper's -- no overflow, no bar, gutter
   intact. This mirrors how our own numbered blocks work: there the width lives
   on the .rx-blockwrap wrapper and the <pre> never fixes it. Keyed on numberSource,
   the class Pandoc adds only when the block is numbered, so a plain unnumbered
   output (no gutter, no margin) keeps the full-width rule and is untouched. */
pre.output.numberSource { width: auto; }

/*                                                                            */
/* Label-to-block adjacency. A loose <p> that introduces a block ("Output:")  */
/* belongs tight against it, as in the source deck. The browser default gives  */
/* a bare <p> 1em top+bottom, opening a gap far larger than the block's own     */
/* 0.25em -- above AND below the label (the label "Output:" sits between the   */
/* code block above and the output block below, so both its margins show).     */
/* Keyed on ADJACENCY, not on "is a loose p": a <p> immediately followed by a  */
/* code/output block gets BOTH margins tightened to 0.25em. Both matter -- the  */
/* top margin closes the gap above the label (margin collapse against the      */
/* preceding block takes the LARGER of the two, so the block's own margin can't */
/* fix it; the label's own top margin must come down). CSS has no "preceded-by" */
/* selector, but :has(+ ...) reaches this <p> from the block that FOLLOWS it,   */
/* which is exactly the label. Chromium/paged.js render this deck, so :has is   */
/* available.                                                                  */
p:has(+ .code), p:has(+ pre.output) { margin: 0.25em 0; }
/* The same label in a list item, and before a listing Pandoc highlights:   */
/* there the block comes in the item's fragment div (`- text` then a fenced  */
/* block under it), or as div.sourceCode (```bash). The <p> kept the        */
/* browser's 1em and div.sourceCode Pandoc's 1em, so every listing in a list  */
/* had a full line of air above and below it (Rony, 04-Oct, 030 #11).        */
p:has(+ div.sourceCode),
p:has(+ .fragment > :is(.code, pre.output, div.sourceCode):first-child) {
  margin: 0.25em 0;
}
.slide div.sourceCode { margin: 0.25em 0; }

/* Code size is a FIXED value the skin declares (--skin-code-size), not a  */
/* per-block size computed to fill a box. There is deliberately no fallback:  */
/* a skin that shows code declares the size; a skin with no code needs      */
/* none. (Per-slide override: --skin-code-size can be set on the section.)   */
/* ...times --contents-scale, which is 1 unless the runtime shrank a slide   */
/* that does not fit (fitSlide, runtime.js), or a group carries scale=.      */
.code > pre, pre.output { font-size: calc(var(--skin-code-size) * var(--contents-scale, 1)); }
/* Code that Pandoc highlights (```java, ```xml...) comes as div.sourceCode, */
/* not .code: the same size as a Rexx listing (it was the text's size).     */
div.sourceCode > pre { font-size: calc(var(--skin-code-size) * var(--contents-scale, 1)); }

/* A listing with no language -- a fence with nothing after the backticks, */
/* for a fragment no highlighter parses (a command line, a "...cut..." in  */
/* the middle of a program) -- is a bare <pre><code> from Pandoc: no class, */
/* no wrapper. It is still code: the deck's mono face at the code size, and */
/* inside .contents/.row it scales with --contents-scale like the others.   */
/* Without this it took the browser's monospace at the text's size and did */
/* not scale, so a long one ran off the slide at any scale=.                 */
.slide :not(.code) > pre:not([class]) {
  font-family: var(--skin-font-mono);
  font-size: calc(var(--skin-code-size) * var(--contents-scale, 1));
  line-height: 1.35;
  tab-size: 4;
  white-space: pre;
}
.slide .contents :not(.code) > pre:not([class]),
.slide .row :not(.code) > pre:not([class]) {
  font-size: calc(var(--skin-code-size) * var(--contents-scale));
}

/* -------------------------------------------------------------------------- */
/* Fragments -- stepped reveal.                                               */
/*                                                                            */
/* Sequential semantics: a fragment appears on the next click. Order is        */
/* document order; no explicit indices. The fragment styling and its per-       */
/* effect transitions live in the animation catalogue stylesheet, so that the   */
/* full set of reveal effects is defined in one place.                         */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* Arrows -- []{.arrow from=a to=b}.                                          */
/*                                                                            */
/* The carrier is the arrow (runtime.js, "Arrows"): it stays where the author */
/* wrote it, so it steps and animates as any fragment does, but it takes no   */
/* room -- absolute, no size, pinned to its containing block's corner (the   */
/* slide, unless a positioned box sits between) -- and its SVG, as big as the */
/* slide, is shifted back by the runtime so that it draws in slide pixels.    */
/* Above the content, and never in the way of a click.                       */
/*                                                                            */
/* A skin sets the look: --skin-arrow-color (default: the accent),            */
/* --skin-arrow-width (the stroke; the head grows with it) and                */
/* --skin-arrow-gap (how far short of each box an arrow stops). One arrow     */
/* can say color= and width= for itself; the runtime puts them on the         */
/* carrier as --arrow-color and --arrow-width (v227).                         */
/* -------------------------------------------------------------------------- */
.arrow {
  --arrow-color: var(--skin-arrow-color, var(--skin-accent));
  --arrow-width: var(--skin-arrow-width, 3px);
  --arrow-gap:   var(--skin-arrow-gap, 4px);
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
  pointer-events: none;
}
.arrow-svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.arrow-shaft {
  fill: none;
  stroke: var(--arrow-color);
  stroke-width: var(--arrow-width);
}
.arrow-head {
  fill: var(--arrow-color);
  stroke: none;
}
/* label="text" (v227): centred on the middle of the arrow, in the arrow's   */
/* colour, on a halo of the slide's ground (a box the runtime measures) so   */
/* the line stops around it. --skin-arrow-label-size (default: three         */
/* quarters of the body text) and --skin-arrow-label-halo (default:          */
/* --skin-bg).                                                               */
.arrow-label {
  fill: var(--arrow-color);
  font-size: var(--skin-arrow-label-size, calc(var(--skin-body-size, 28px) * 0.75));
  text-anchor: middle;
  dominant-baseline: central;
}
.arrow-label-halo {
  fill: var(--skin-arrow-label-halo, var(--skin-bg));
  stroke: none;
}
/* Two arrow spans on consecutive lines are one paragraph: keep it out of the */
/* flow too, or it leaves a blank line where it was written.                 */
.arrow-holder { margin: 0; height: 0; overflow: visible; }

/* -------------------------------------------------------------------------- */
/* Pins -- pin= on a picture or a block (v229). runtime.js places it: out of  */
/* the flow, over the slide, with its corner on the corner of its target.     */
/* Above the content, under the arrows that may point at it (drawn later in   */
/* the page); offset= arrives as its margins.                                 */
/* -------------------------------------------------------------------------- */
.slide .pinned {
  position: absolute;
  z-index: 2;
  margin: 0;
  max-width: none;
}
.slide p.pinned { line-height: 0; }
.slide div.pinned > :first-child { margin-top: 0; }
.slide div.pinned > :last-child { margin-bottom: 0; }
.slide p.pinned > img, .slide figure.pinned > img { display: block; max-width: 100%; }
/* A picture pinned over the slide lets it show through, as every other      */
/* ground md2slides lays over it (Rony, 07-Oct 23:47, 240 #33: "the graphics */
/* does not allow the background (text) shine through"): see-through:        */
/* pictures:, or --skin-picture-opacity, .85; 1 = solid. A filter and not    */
/* opacity, which the steps use; on the picture, not on its holder.          */
.slide .pinned img {
  filter: opacity(var(--skin-picture-opacity, .85));
}

/* -------------------------------------------------------------------------- */
/* Callouts -- ::: {.callout to=...} (v230). A pinned block whose box and    */
/* tail runtime.js draws as one SVG path under its text: the box itself      */
/* paints nothing. The skin: --skin-callout-bg (the accent, faint),          */
/* --skin-callout-border (the accent) and --skin-callout-border-width (2px), */
/* --skin-callout-size (the text: .65 of the body), --skin-callout-width     */
/* (the widest a callout grows: 50% of the slide), --skin-callout-radius,   */
/* --skin-callout-opacity (how much the ground hides what it covers: .85,   */
/* so the slide shows through a little -- Rony, 04-Oct; 1 = solid).         */
/* -------------------------------------------------------------------------- */
.slide .callout {
  --callout-radius: var(--skin-callout-radius, .6em);
  z-index: 3;
  isolation: isolate;
  box-sizing: border-box;
  max-width: var(--skin-callout-width, 50%);
  padding: .35em .8em;
  font-size: calc(var(--skin-body-size, 28px) * var(--skin-callout-size, .65) * var(--contents-scale, 1));
  line-height: 1.25;
  text-align: center;
  color: var(--skin-callout-fg, var(--skin-fg));
}
.slide .callout p { margin: .3em 0; }
.callout-shape {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.callout-shape path {
  fill: var(--skin-callout-bg, color-mix(in srgb, var(--skin-accent) 12%, var(--skin-bg)));
  fill-opacity: var(--skin-callout-opacity, .85);
  stroke: var(--skin-callout-border, var(--skin-accent));
  stroke-width: var(--skin-callout-border-width, 2px);
  stroke-linejoin: round;
}

/* A callout joined by a straight line (head= or line=, v250): the line   */
/* and its heads in the balloon's border colour, as thick as an arrow     */
/* (--skin-callout-line-width, else --skin-arrow-width, 3px).             */
.slide .callout {
  --callout-line-width: var(--skin-callout-line-width, var(--skin-arrow-width, 3px));
}
.callout-shape path.callout-line {
  fill: none;
  stroke: var(--skin-callout-border, var(--skin-accent));
  stroke-width: var(--callout-line-width);
}
.callout-shape path.callout-head {
  fill: var(--skin-callout-border, var(--skin-accent));
  fill-opacity: 1;
  stroke: none;
}

/* shape=arrow: a thick arrow, text inside, in the skin's --skin-callout-    */
/* arrow-bg (the accent) and --skin-callout-arrow-fg (the ground).           */
.slide .callout-arrow {
  padding: .25em .6em;
  font-weight: 700;
  white-space: nowrap;
  color: var(--skin-callout-arrow-fg, var(--skin-bg));
  transform-origin: 50% 50%;
}
.slide .callout-arrow .callout-shape path {
  fill: var(--skin-callout-arrow-bg, var(--skin-accent));
  stroke: none;
}

/* -------------------------------------------------------------------------- */
/* Trees -- ::: {.tree layout=down|columns} around a nested list (v228).      */
/*                                                                            */
/* runtime.js wraps each item's text in a span.tree-node and draws the lines  */
/* (see "Trees" there); the layout is all here. A node is a box of its own:   */
/* the skin draws it with --skin-tree-node-border (default: the accent),      */
/* --skin-tree-node-border-width (2px), --skin-tree-node-radius (.35em),      */
/* --skin-tree-node-bg (the slide's ground), --skin-tree-node-fg and         */
/* --skin-tree-node-padding (.12em .5em) and --skin-tree-node-width (the     */
/* least width of a node: 0 for layout=down, 5.5em for layout=columns, whose */
/* nodes are all one width, as in Rony's class trees). The                   */
/* lines: --skin-tree-line (default: the text colour) and                     */
/* --skin-tree-line-width (2px). Room: --skin-tree-gap-x (between nodes side */
/* by side), --skin-tree-gap-y (between a node and its children) and          */
/* --skin-tree-indent (one step of layout=columns).                           */
/* -------------------------------------------------------------------------- */
.tree {
  --tree-node-border: var(--skin-tree-node-border, var(--skin-accent));
  --tree-line: var(--skin-tree-line, var(--skin-fg));
  --tree-line-width: var(--skin-tree-line-width, 2px);
  --tree-gap-x: var(--skin-tree-gap-x, .6em);
  --tree-gap-y: var(--skin-tree-gap-y, 1.1em);
  --tree-indent: var(--skin-tree-indent, 1.4em);
  --tree-row: var(--skin-tree-row, .35em);
}
/* One size for every node, whatever its depth: a tree is not an outline, */
/* so the outline's smaller levels (.body ul ul) do not apply.            */
.slide .tree {
  font-size: calc(var(--skin-body-size, 1em) * var(--contents-scale, 1));
}
.slide .tree ul, .slide .tree ol {
  font-size: inherit;
  list-style: none;
  margin: 0;
  padding: 0;
}
.slide .tree li {
  margin: 0;
  padding: 0;
}
.slide .tree li::marker { content: ""; }
.tree-node {
  /* The node's ground, a little see-through, as every ground md2slides    */
  /* draws (Rony, 07-Oct): --skin-tree-node-opacity, .85; 1 = solid.       */
  --tree-node-ground: color-mix(in srgb, var(--skin-tree-node-bg, var(--skin-bg))
                      calc(var(--skin-tree-node-opacity, .85) * 100%), transparent);
  display: inline-block;
  position: relative;               /* above the lines of the items after it */
  z-index: 1;
  box-sizing: border-box;
  padding: var(--skin-tree-node-padding, .12em .5em);
  border: var(--skin-tree-node-border-width, 2px) solid var(--tree-node-border);
  border-radius: var(--skin-tree-node-radius, .35em);
  background-color: var(--tree-node-ground);
  color: var(--skin-tree-node-fg, inherit);
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  min-width: var(--skin-tree-node-width, 0);
}
/* A mark on a node keeps the node's corners (spot-mark-first/-last round */
/* a text's ends by .2em), except a ring, which is a pill.                 */
.tree .tree-node.spot-mark { border-radius: var(--skin-tree-node-radius, .35em); }
.tree .tree-node.spot-mark[data-spot-style="ring"] { border-radius: 999px; }
/* A marked node keeps its ground (a mark clears its own), and its wash is */
/* the pen laid over that ground.                                          */
.slide .tree .tree-node.spot-mark {
  padding: var(--skin-tree-node-padding, .12em .5em);
  background-color: var(--tree-node-ground);
  border-color: var(--tree-node-border);  /* a lit mark clears its left edge */
}
.slide .tree .tree-node.spot-mark.spot-on:not([data-spot-style]),
.slide .tree .tree-node.spot-mark.spot-on[data-spot-style="wash"] {
  background-image: linear-gradient(var(--spot-ink), var(--spot-ink));
}
/* A frame round a node follows the node's corners: a ring of the ground, */
/* then the pen's (a text's frame is pieced together from offset shadows, */
/* which a rounded box shows at its corners).                             */
.slide .tree .tree-node.spot-mark[data-spot-style="box"].spot-on,
.slide .tree .tree-node.spot-mark[data-spot-style="ring"].spot-on {
  box-shadow: 0 0 0 var(--skin-tree-mark-gap, 2px) var(--skin-bg),
              0 0 0 calc(var(--skin-tree-mark-gap, 2px) + var(--spot-frame)) var(--spot-line);
}
@media print {
  .slide .tree .tree-node.spot-mark[data-spot-style="box"]:not([data-spot-cleared]),
  .slide .tree .tree-node.spot-mark[data-spot-style="ring"]:not([data-spot-cleared]) {
    box-shadow: 0 0 0 var(--skin-tree-mark-gap, 2px) var(--skin-bg),
                0 0 0 calc(var(--skin-tree-mark-gap, 2px) + var(--spot-frame)) var(--spot-line);
  }
  .slide .tree .tree-node.spot-mark[data-spot-cleared] {
    background-color: var(--tree-node-ground) !important;
    border-color: var(--tree-node-border) !important;
  }
  .slide .tree .tree-node.spot-mark:not([data-spot-cleared]):not([data-spot-style]),
  .slide .tree .tree-node.spot-mark:not([data-spot-cleared])[data-spot-style="wash"] {
    background-image: linear-gradient(var(--spot-ink), var(--spot-ink));
  }
}

/* layout=down: each item a column, its node over its children's row. */
.slide .tree-down ul, .slide .tree-down ol {
  display: flex;
  justify-content: safe center;     /* too wide: it runs off on the right only */
  align-items: flex-start;
  gap: var(--tree-gap-x);
}
.slide .tree-down li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide .tree-down li > ul, .slide .tree-down li > ol { margin-top: var(--tree-gap-y); }

/* layout=columns (Rony's 050 #29): the root centred on top; its children */
/* in flow=N columns, each column with its bus on its left (the item's     */
/* padding makes room for it); every deeper list hangs from the middle of  */
/* its parent, one step to the right. Nodes are one width.                 */
/* The columns are div.tree-col, made by runtime.js (by .break, or shared */
/* out); flow= makes the ::: a .flow, whose multi-column rule is undone.   */
.tree-columns { --tree-node-width: var(--skin-tree-node-width, 5.5em); }
.tree-columns .tree-node { min-width: var(--tree-node-width); }
.slide .tree-columns .tree-top > li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide .tree-columns .tree-cols {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  margin-top: calc(var(--tree-gap-y) - var(--tree-row));
}
.slide .tree.flow > ul, .slide .tree.flow > ol { columns: auto; }
.slide .tree-columns .tree-col { flex: 1 1 0; min-width: 0; }
.slide .tree-columns .tree-col > li { padding-left: var(--tree-indent); }
.slide .tree-columns li li { padding-top: var(--tree-row); }
.slide .tree-columns li li > ul, .slide .tree-columns li li > ol {
  margin-left: calc(var(--tree-node-width) / 2 + var(--tree-indent) * .6);
}
/* .under (v244): straight under its parent, not one step in. */
.slide .tree-columns li.tree-under {
  margin-left: calc(var(--tree-node-width) / -2 - var(--tree-indent) * .6);
}

/* layout=folders (v378; Rony, 02-Nov: "a compact tree like a file         */
/* manager's"): one node per line, indented by its level, rows as close as */
/* a list's; no boxes -- a node is its name --, thin lines from a trunk    */
/* under the start of its parent's name. Its own values: the step in,      */
/* --skin-tree-folder-indent (1.4em); the room between lines,              */
/* --skin-tree-folder-row (.1em); the lines, --skin-tree-folder-line-width */
/* (1.5px); where the trunk stands under a name, --skin-tree-folder-trunk  */
/* (.55, of the font size: under the middle of an icon).                   */
.tree-folders {
  --tree-node-border: transparent;
  --tree-line-width: var(--skin-tree-folder-line-width, 1.5px);
  --tree-folder-indent: var(--skin-tree-folder-indent, 1.4em);
  --tree-folder-row: var(--skin-tree-folder-row, .1em);
  --tree-folder-trunk: var(--skin-tree-folder-trunk, .55);
}
.slide .tree-folders { text-align: left; }
.slide .tree-folders ul, .slide .tree-folders ol { display: block; }
.slide .tree-folders li { display: block; }
.slide .tree-folders li li { padding-top: var(--tree-folder-row); }
.slide .tree-folders li > ul, .slide .tree-folders li > ol { margin-left: var(--tree-folder-indent); }
.tree-folders .tree-node {
  --tree-node-ground: transparent;
  padding: 0 .15em;
  border-width: 0;
  text-align: left;
  min-width: 0;
}
.slide .tree-folders .tree-node.spot-mark { padding: 0 .15em; }
/* In columns (v403; Rony, 15-Nov: the folder tree "for class hierarchies",  */
/* his 051 #3): the root's children in flow=N columns, or from each .break,  */
/* side by side at their own width, --skin-tree-folder-gap (2em) apart, a   */
/* little below the root, for the rail that joins their trunks to its own.  */
.slide .tree-folders .tree-cols {
  display: flex;
  align-items: flex-start;
  gap: var(--skin-tree-folder-gap, 2em);
  margin-top: calc(var(--tree-folder-row) + .45em);
}
.slide .tree-folders .tree-col { display: block; min-width: 0; }
/* A name in a hatched region keeps the ground of a node under it, as a box */
/* does in the other layouts (see-through as theirs, Rony 07-Oct): the     */
/* strokes go round it, not through it.                                    */
.slide .tree-folders .tree-node.spot-in-hatch {
  --tree-node-ground: color-mix(in srgb, var(--skin-tree-node-bg, var(--skin-bg))
                      calc(var(--skin-tree-node-opacity, .85) * 100%), transparent);
}
/* icons (v378): a folder or a page before the name, in the accent. A     */
/* mask, so it takes the colour of the skin (and a mark's ink over it).   */
.tree-folders.icons .tree-folder::before,
.tree-folders.icons .tree-file::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: .9em;
  margin-right: .3em;
  vertical-align: -.08em;
  background-color: var(--skin-tree-icon, var(--skin-accent));
  -webkit-mask: var(--tree-icon) no-repeat center / contain;
          mask: var(--tree-icon) no-repeat center / contain;
}
.tree-folders.icons .tree-folder {
  --tree-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M1 2.5C1 1.7 1.7 1 2.5 1h4.6l2 2h8.4c.8 0 1.5.7 1.5 1.5v9c0 .8-.7 1.5-1.5 1.5h-15C1.7 15 1 14.3 1 13.5z'/%3E%3C/svg%3E");
}
.tree-folders.icons .tree-file {
  --tree-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 0h7v5h5v11H3zM11.2 0L15 3.8h-3.8z'/%3E%3C/svg%3E");
}

/* A note on a node (v378): [the document root]{.note}, lighter and       */
/* smaller. --skin-tree-note-fg (the text, at 60 %), --skin-tree-note-size */
/* (.8em), --skin-tree-note-gap (in layout=folders, the room between the  */
/* longest line and the column of notes: 1.2, in em).                      */
.tree {
  --tree-note-gap: var(--skin-tree-note-gap, 1.2);
}
.tree-note {
  color: var(--skin-tree-note-fg, color-mix(in srgb, currentColor 60%, transparent));
  font-size: var(--skin-tree-note-size, .8em);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.tree-folders .tree-note, .tree-columns .tree-note { margin-left: .6em; }
.slide .tree-down .tree-note { display: block; margin-top: .15em; line-height: 1.15; text-align: center; }

/* The line to a node: a carrier in its item, out of the flow, with an SVG */
/* as big as the slide that runtime.js shifts to the slide's corner.      */
.tree-edge {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.tree-edge-svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.tree-edge-svg path {
  fill: none;
  stroke: var(--tree-line);
  stroke-width: var(--tree-line-width);
}

/* -------------------------------------------------------------------------- */
/* A drawing (v244): ::: {.drawing ratio=3.1 width=80%}, and in it blocks     */
/* placed with at="x,y,w,h" (per cent of the drawing, or of the placed block  */
/* they are in). Rony's Impress drawings -- boxes with text, connectors,      */
/* arrows -- as md2slides: the text stays text, each piece can be a step,    */
/* and arrows join the pieces by their ids. The drawing keeps its shape      */
/* (ratio=), and shrinks with the slide as text does.                         */
/* -------------------------------------------------------------------------- */
.slide .drawing {
  position: relative;
  width: calc(var(--drawing-width, 100%) * var(--contents-scale, 1));
  margin: .3em auto;
  /* Its own type scale: a drawing is laid out to the slide (its boxes are  */
  /* shares of it), so its text is too -- 16px on the 1280px stage, em from */
  /* there -- whatever the skin's body size, and shrinks with the slide.    */
  --drawing-base: calc(16px * var(--contents-scale, 1));
  font-size: var(--drawing-base);
  /* its blocks' z-indexes are its own (v289): one sent to the back with a  */
  /* negative one stays over the slide, under the other blocks              */
  isolation: isolate;
}
/* size= on the drawing (v273): the text of every block placed in it, times */
/* the drawing's own -- absolute, so that a box in a group of the drawing    */
/* has it too, and not the group's times it. A block's own size wins.       */
.slide .drawing.sized .at { font-size: calc(var(--drawing-base) * var(--drawing-size, 1)); }
/* Its blocks and its arrows are stacked in the order they are written, as  */
/* shapes are in Impress (v273, Rony 12-Oct): the arrows of a drawing do   */
/* not go over everything (.arrow, z-index: 2) but where they are written.  */
/* A block that must go elsewhere says z-index in its style=.               */
.slide .drawing .arrow { z-index: auto; }
.slide .drawing .at {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.15;
  overflow: visible;
}
.slide .drawing .at > p { margin: 0; }
.slide .drawing .at > p:only-child:has(> img:only-child) {
  display: flex; justify-content: center; align-items: center; width: 100%; height: 100%;
}
.slide .drawing .at img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
/* .cut: a piece cut out of a render (a shape md2slides cannot draw): its  */
/* white ground lets what is under it show, as in Impress.                 */
.slide .drawing .cut { mix-blend-mode: multiply; }
.slide .drawing .at.left  { align-items: flex-start; text-align: left; }
.slide .drawing .at.right { align-items: flex-end;   text-align: right; }
.slide .drawing .at.top    { justify-content: flex-start; }
.slide .drawing .at.bottom { justify-content: flex-end; }
/* .box: a framed block, as a tree's node is framed. A drawing gives its own */
/* colours in style= when Impress had them (--skin-box-bg for the ground).  */
/* The ground is a little see-through, so what is under it shows (Rony,    */
/* 07-Oct: "all backgrounds that you create ... 15%", as the callouts and   */
/* the cover's art): --skin-box-opacity, .85; 1 = solid. Only the ground:   */
/* the text and the frame stay as they are.                                 */
.slide .box {
  --box-ground: color-mix(in srgb, var(--skin-box-bg, transparent)
                calc(var(--skin-box-opacity, .85) * 100%), transparent);
  border: var(--skin-box-border-width, 2px) solid
          var(--drawing-border, var(--skin-box-border, var(--skin-accent)));
  border-radius: var(--skin-box-radius, .3em);
  background: var(--box-ground);
  padding: .1em .3em;
}
.slide .box.square { border-radius: 0; }
.slide .box.round  { border-radius: 50%; }
.slide .box.dashed { border-style: dashed; }
.slide .box.dotted { border-style: dotted; }
.slide .box.bare   { border-color: transparent; }
/* A block arrow, the text inside: .box with the arrow's way. Drawn by its */
/* outline, so it has no frame, only its ground. */
.slide .box.arrow-right, .slide .box.arrow-left,
.slide .box.arrow-up, .slide .box.arrow-down {
  --box-ground: color-mix(in srgb, var(--skin-box-bg, var(--skin-accent))
                calc(var(--skin-box-opacity, .85) * 100%), transparent);
  border: 0;
  border-radius: 0;
  background: var(--box-ground);
  color: var(--skin-bg, #fff);
}
.slide .box.arrow-right { clip-path: polygon(0 22%, 72% 22%, 72% 0, 100% 50%, 72% 100%, 72% 78%, 0 78%); padding-right: 1.2em; }
.slide .box.arrow-left  { clip-path: polygon(100% 22%, 28% 22%, 28% 0, 0 50%, 28% 100%, 28% 78%, 100% 78%); padding-left: 1.2em; }
.slide .box.arrow-down  { clip-path: polygon(22% 0, 78% 0, 78% 72%, 100% 72%, 50% 100%, 0 72%, 22% 72%); }
.slide .box.arrow-up    { clip-path: polygon(22% 100%, 78% 100%, 78% 28%, 100% 28%, 50% 0, 0 28%, 22% 28%); }

/* -------------------------------------------------------------------------- */
/* Furniture: the parts supplied by the identity rather than by the slide.     */
/* -------------------------------------------------------------------------- */

/* No footer concept lives here any more. The runtime does not place a footer,
   name its slots, or paint the author's ":::footer" zone: WHERE anything sits
   at the bottom of a slide is the master's CSS to decide. The runtime's only
   contribution to the bottom of the slide is DATA -- data-page / data-total and
   the --page / --total custom properties, written by numberSlides() -- plus the
   reserved band height (--skin-footer-height) that fitHeight reads so the body
   never climbs into that space. The ".footer" class still arrives on the
   author's zone (Pandoc emits <div class="footer">), but it is unstyled here;
   the master positions it. */

/* Title slides carry no rule under the heading. Whether they show a page       */
/* number is the master's CSS to decide now (e.g. hide on .title-slide); the    */
/* runtime writes data-page on every slide regardless.                          */
.slide.title-slide .title { border-bottom: none; }

/* A cover's art (v244): what else a cover shows -- in Rony's decks, the
   arrow of topics under the title -- goes in ::: cover-art, and the master
   says where on its cover there is room for it: a box, given by
   --master-cover-art-top, -left, -width and -height. The art is fitted into
   the box whole, centred, never enlarged past its own size. Rony, 06-Oct
   (preview 9): "please keep the graphics in the appropriate position it
   was found on the title page"; JMB: each skin places it, since each
   designs its own cover. Out of the flow, so it does not move the title
   and the fit of the slide does not count it. */
.slide .cover-art {
  position: absolute;
  left: var(--master-cover-art-left, var(--skin-pad-x, 64px));
  top: var(--master-cover-art-top, 420px);
  width: var(--master-cover-art-width, calc(100% - 2 * var(--skin-pad-x, 64px)));
  height: var(--master-cover-art-height, 240px);
  /* A little see-through, so that the cover's ground shows (Rony, 06-Oct, */
  /* preview 10: "10%? 20%?"): it sits better on a photo or a colour.      */
  opacity: var(--skin-cover-art-opacity, .85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.slide .cover-art > p, .slide .cover-art > figure {
  margin: 0;
  display: flex;
  justify-content: center;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.slide .cover-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Progress: a thin accent bar. Cheap orientation for the audience.           */
/* -------------------------------------------------------------------------- */

#progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--skin-accent);
  transition: width 200ms ease-out;
}

/* -------------------------------------------------------------------------- */
/* Diagnose (d). Author-only deck-health mode. Everything here paints ONLY     */
/* under body.diagnose, so a deck at rest -- and every projected deck -- shows */
/* none of it. The mode is ephemeral (runtime.js), and @media print drops it   */
/* below, so it can never reach a handout or a projector by accident.          */
/* -------------------------------------------------------------------------- */

/* d over a picture (v231): the place under the pointer, and the region a   */
/* drag draws, as they are written in the deck (runtime.js, "Places").       */
#place-tip {
  position: fixed;
  z-index: 10000;
  display: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: #222;
  color: #fff;
  font: 13px/1.3 ui-monospace, monospace;
  pointer-events: none;
}
#place-box {
  position: fixed;
  z-index: 9999;
  display: none;
  border: 2px dashed #e60;
  pointer-events: none;
}
body.diagnose .slide.current img { cursor: crosshair; }
@media print { #place-tip, #place-box { display: none !important; } }

/* In-situ mark: a slide that overflows gets a red band drawn across the very  */
/* bottom of its footer zone, so when you navigate to it in diagnose you see   */
/* exactly where content is spilling. --skin-footer-height is the band the     */
/* content is not meant to enter; the mark sits on that line.                  */
body.diagnose .slide[data-diag] {
  outline: 2px solid rgba(200, 30, 30, 0.55);
  outline-offset: -2px;
}
body.diagnose .slide[data-diag]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--skin-footer-height, 64px);
  background: repeating-linear-gradient(
    -45deg,
    rgba(200, 30, 30, 0.10),
    rgba(200, 30, 30, 0.10) 8px,
    rgba(200, 30, 30, 0.18) 8px,
    rgba(200, 30, 30, 0.18) 16px);
  border-top: 2px solid rgba(200, 30, 30, 0.55);
  pointer-events: none;
}
body.diagnose .slide[data-diag="overflow-slide"]::after {
  /* Worse than touching the footer: content past the slide edge. Deeper red. */
  background: repeating-linear-gradient(
    -45deg,
    rgba(200, 30, 30, 0.16),
    rgba(200, 30, 30, 0.16) 8px,
    rgba(200, 30, 30, 0.28) 8px,
    rgba(200, 30, 30, 0.28) 16px);
}

/* HUD. Fixed to the viewport (not the scaled stage), so it stays put and      */
/* legible whatever the deck scale. Collapsible: open, it lists every finding; */
/* collapsed, it is a small badge you keep on screen while you navigate to the */
/* slides it named.                                                            */
#diag-hud {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  width: 360px;
  max-height: 60vh;
  flex-direction: column;
  font: 13px/1.4 var(--skin-font-prose, sans-serif);
  color: #fff;
  background: #2a2a33;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
#diag-hud.open { display: flex; }

.dg-bar {
  cursor: move;                    /* (v309) the list moves by its bar */
  touch-action: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #34343f;
}
.dg-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.dg-count {
  font-weight: 700;
  white-space: nowrap;
}
#diag-hud.clean .dg-count { color: #7dd08a; }
#diag-hud:not(.clean) .dg-count { color: #ff9a9a; }
.dg-title { flex: 1; opacity: 0.85; }
.dg-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.dg-close:hover { opacity: 1; }

.dg-list { overflow-y: auto; }
#diag-hud.collapsed .dg-list,
#diag-hud.collapsed .dg-title { display: none; }
.dg-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dg-row:hover { background: rgba(255, 255, 255, 0.08); }
.dg-slide {
  font-weight: 700;
  min-width: 1.5em;
  text-align: right;
  color: #ff9a9a;
}
.dg-label { opacity: 0.9; }
/* Build warnings are sentences, not labels: smaller, so a few fit at once. */
.dg-build .dg-label { font-size: 12px; }
.dg-row[data-i="-1"] { cursor: default; }
.dg-empty { padding: 12px; opacity: 0.7; }

/* -------------------------------------------------------------------------- */
/* Reader controls. Highlight style is the reader's choice and stays live;     */
/* institutional identity is not offered here -- it is fixed at build time.    */
/*                                                                            */
/* The bar is furniture, and furniture takes the identity's colours like       */
/* everything else. It used to be #ddd on #222: values picked by eye against   */
/* one white deck. That is how Till came to report a white bar on a white      */
/* ground -- nothing here consulted the identity, so any deck with another     */
/* background lost its controls. Deriving them means every identity, present   */
/* and future, gets a legible bar without having to say anything.              */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* Print. The screen layout is a single scaled #stage centred in the viewport  */
/* with only the current slide shown; that is exactly wrong on paper. Printing  */
/* is "export the whole deck", one slide per sheet, so this block dismantles    */
/* the screen scaffolding and lays every slide out in the normal flow instead.  */
/* Reported by Rony (15/08): browser print came out black title/footer, body    */
/* centred, split across two pages -- all three are symptoms of the screen      */
/* scaffolding leaking into print, addressed below.                             */
/* -------------------------------------------------------------------------- */

@media print {

  /* Every slide keeps its skin background and ink on paper. Without this the   */
  /* browser drops backgrounds by default, so the skin ground vanishes and any  */
  /* ink that assumed it (title, footer) reads as black on white.                */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Drop the black viewport ground and the screen clipping. The page itself is  */
  /* the ground now; each slide paints its own skin background.                 */
  html, body {
    height: auto;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: visible;
  }

  /* Un-scale and un-centre the stage: static flow, natural height, no transform.*/
  /* The stage stops being a fixed-size scaled box and becomes a plain container  */
  /* whose slides stack down the page.                                           */
  #stage {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    transform: none;
    overflow: visible;
    background: none;
  }

  /* Show ALL slides, not just .current, and give each its own sheet.           */
  /*                                                                          */
  /* On paper a slide keeps EXACTLY its screen geometry, the deck's 1280x720   */
  /* px canvas, and the sheet (@page below) is that same size. It used to be   */
  /* 100% x 100vh, which is whatever the browser takes a page to be -- and     */
  /* Firefox takes 100vh from its WINDOW, not the sheet. So there every slide  */
  /* was taller than its page and broke across two (62 pages for 31 slides),  */
  /* the title slide lost its lower half, the footer landed wherever the vh   */
  /* put it, and on an A4 sheet the text re-flowed to a width it was never    */
  /* laid out for. At a fixed size the page is a picture of the screen: the   */
  /* same line breaks, the same footer, one slide per sheet. On a different   */
  /* paper the browser scales it whole ("Fit to page width" in Firefox,       */
  /* "Fit to printable area" in Chrome), and that is all it has to do.        */
  .slide {
    display: block !important;
    position: relative;
    inset: auto;
    width:  calc(var(--deck-w) * 1px);
    height: calc(var(--deck-h) * 1px);
    margin: 0;
    background: var(--skin-bg);
    break-inside: avoid;
    break-before: page;        /* each slide starts a fresh page */
    page-break-inside: avoid;  /* the same, for engines that still read the  */
    page-break-before: always; /* CSS 2 names                                 */
    animation: none !important;
    overflow: hidden;
  }

  /* The first slide must not force a leading blank page before it. Anchoring the */
  /* break BEFORE every slide (not after) is what makes the count exact -- a      */
  /* trailing break-after on the last slide would emit a blank final page, and a  */
  /* break-after between siblings can collapse; break-before does neither.        */
  .slide:first-of-type { break-before: auto; page-break-before: auto; }

  /* Footer and logo are part of the slide and print with it; their absolute     */
  /* positioning is now relative to the static slide box, which is what we want. */

  /* Screen-only furniture never reaches paper. The diagnose HUD and its       */
  /* in-situ marks are author tools, never handout content: even if the deck   */
  /* is printed with diagnose still on, paper comes out clean.                 */
  #progress,
  #jump-overlay,
  #style-overlay,
  #diag-hud { display: none !important; }
  body.diagnose .slide[data-diag] { outline: none !important; }
  body.diagnose .slide[data-diag]::after { display: none !important; }

  /* Size the sheet to the deck's own 16:9 geometry (13.333in x 7.5in, i.e.      */
  /* 1280x720 at 96dpi) with zero margin, so each slide maps to exactly one page */
  /* at the authored aspect ratio -- no letterboxing, no slide bleeding onto the */
  /* next sheet. Derived from --deck-w/--deck-h; if the deck geometry changes,    */
  /* this stays a plain 16:9 sheet, which is the right default for slides.        */
  @page {
    size: 1280px 720px;        /* = 13.333in x 7.5in, the canvas exactly     */
    margin: 0;
  }
}


/* A prose mention keeps its blanks. `saY    "x"` is meant to show four blanks
   -- that is often the whole point of writing it -- but inline text collapses
   runs of blanks to one unless told otherwise. pre-wrap keeps every blank and
   still lets a long mention wrap at the end of a line. A fenced block needs
   no rule: its code sits inside a <pre>. */
span[class^="highlight-rexx-"] > code {
  white-space: pre-wrap;
}

/* -------------------------------------------------------------------------- */
/* Captions (v214). A code block with caption= becomes a listing figure with  */
/* a figcaption (md2slides, Captions). Only listings are styled here: a       */
/* picture's figure and caption (Pandoc's) look as they always did, so decks  */
/* with pictures do not change. The selectors are the article pipelines'      */
/* (css/print/rexxpub-base.css), and as plain as theirs on purpose: the       */
/* options of rexxpub: listings: and figures: arrive as CSS with those same   */
/* selectors, after this sheet, and must win.                                 */
/* -------------------------------------------------------------------------- */

figure.listing { margin: 0.5em 0; text-align: left; }
figure.listing figcaption {
  font-size: 0.75em;
  opacity: 0.85;
  text-align: left;
  margin: 0 0 0.3em 0;
}
figure.listing > div + figcaption { margin: 0.3em 0 0 0; }
.figure-number { font-weight: bold; }

/* -------------------------------------------------------------------------- */
/* File boxes (v219). ```output {.file caption="myinput.txt:"} is data kept   */
/* in a file (Rony's slides, 27-Sep): a translucent yellow box with the file  */
/* name inside it, on top, in italics and grey. With a caption the box is the */
/* figure (Captions moves the id, the step and the timing up to it); with     */
/* none it is the pre. The two colours are the skin's to change               */
/* (--skin-file-bg, --skin-file-name); the rest is the same in every skin, so */
/* a file reads as a file wherever it is shown. The selectors are one class   */
/* stronger than the listings: options' so the name stays inside the box.     */
/* -------------------------------------------------------------------------- */

pre.output.file { background: var(--skin-file-bg); }
figure.listing.file {
  background: var(--skin-file-bg);
  box-sizing: border-box;
  margin: 0.25em 0;
  padding: 6px 18px;
}
figure.listing.file > pre.output,
figure.listing.file > .code > pre {
  background: transparent;
  padding: 0;
}
figure.listing.file > .code { margin: 0; background: transparent; }
figure.listing.file > figcaption {
  font-family: var(--skin-font-mono);
  font-size: calc(var(--skin-code-size) * var(--contents-scale, 1));
  font-style: italic;
  line-height: 1.35;
  color: var(--skin-file-name);
  opacity: 1;
  white-space: pre;
  margin: 0;
}
.slide .contents figure.listing.file > figcaption,
.slide .row figure.listing.file > figcaption {
  font-size: calc(var(--skin-code-size) * var(--contents-scale));
}

/* -------------------------------------------------------------------------- */
/* The presenter's notes (v267, Rony 11-Oct). `::: notes` (`> notes` before a */
/* block) is for the presenter, never for the room: it is not on the slide.  */
/* The presenter's window (key n) shows a slide's notes, and with            */
/* `print-notes: yes` printing puts them on a page of their own just after   */
/* their slide (runtime.js makes those pages before printing, and takes them */
/* away after). A notes page is a .slide, so it is one sheet like any other. */
/* -------------------------------------------------------------------------- */
.slide .notes { display: none !important; }
.slide.notes-page { display: none; }
@media print {
  .slide.notes-page {
    background: #fff;
    color: #000;
    padding: 56px 80px;
    box-sizing: border-box;
    font-family: var(--skin-font-prose, sans-serif);
    font-size: 26px;
    line-height: 1.35;
  }
  .slide.notes-page .np-head {
    font-size: 18px;
    color: #555;
    border-bottom: 1px solid #aaa;
    padding-bottom: .4em;
    margin-bottom: 1em;
  }
  .slide.notes-page p { margin: 0 0 .6em; }
}

/* Footnotes (v376). `footnotes: slide`, the default: a slide's notes are a  */
/* div.footnotes after its content, in the flow (so a slide that does not    */
/* fit is shrunk with them), smaller than the body and under a short rule;   */
/* the runtime (footnotesDown) pushes it to the foot of the slide when there */
/* is room. `footnotes: end`: a last slide, "Notes", with every note at body */
/* size. The mark in the text is a plain <sup>: there is no link to follow.  */
/* -------------------------------------------------------------------------- */
.slide > .footnotes {
  margin-top: .8em;
  font-size: calc(var(--skin-body-size, 28px) * var(--skin-footnote-size, .6) * var(--contents-scale, 1));
  line-height: 1.3;
}
.slide > .footnotes::before {
  content: "";
  display: block;
  width: 25%;
  border-top: 1px solid currentColor;
  opacity: .5;
  margin-bottom: .4em;
}
.slide > .footnotes ol { margin: 0; padding-left: 1.6em; }
.slide > .footnotes li > p { margin: 0; }
.slide .footnotes-list li > p { margin: 0 0 .4em; }
.slide sup.footnote-ref { line-height: 0; }
/* A note whose mark is in a step still to come waits for it (footnotesSync). */
.slide > .footnotes .fn-later, .slide > .footnotes.fn-later { visibility: hidden; }

/* The presenter's window (v279): a deck opened as its mirror (runtime.js,  */
/* ?md2slides-mirror) with no slide to show -- the one after the last --    */
/* shows nothing.                                                           */
html.mirror-none #stage { visibility: hidden; }

/* -------------------------------------------------------------------------- */
/* A picture behind the slides, and a veil over it (v282; background:, veil:, */
/* background-fit:, md2slides.rex Backgrounds). The picture is a background   */
/* zone like the author's; the veil, its ::after, a colour-mix() of the       */
/* colour and transparent that md2slides writes as --veil. On paper as on     */
/* the screen.                                                                */
/* -------------------------------------------------------------------------- */
.slide .background.contain img { object-fit: contain; }
.slide .background[style*="--veil"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--veil);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
