/* Slide components for the KAUST STAT Workshop 2026 deck, layered on the kaust-revealjs
   theme. The theme's root font is 36px on a 1250 x 760 slide. Text inherits the theme's
   sizes; only display numerals are set larger, in px. Colours are from the KAUST palette. */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600&family=Fira+Code:wght@400;500&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --tur: #00A6AA; --turdk: #004C59; --turlt: #E6F6F6;
  --org: #F18F00; --orgdk: #804900; --orglt: #FFF4E0;
  --mer: #b10f2e; --merlt: #FBF3F4;
  --blu: #5284C4; --pur: #9C6FAE; --purdk: #6D2463;
  --grn: #adbf04; --grndk: #595403; --yel: #F0B500;
  --ink: #131516; --ink2: #27343B; --mute: #73797C;
  --paper: #F5F6F3; --taupe: #80715D; --line: #E1E4E5;
}

/* Paragraphs inside components should not inherit the theme's large paragraph spacing */
.reveal :is(.stat-tile, .card, .chip, .band, .hl-card, .insight, .hire-card, .lede,
            .rule-quote, .hex-row, .arrow) p {
  margin: 0;
  padding: 0;
  font-size: 100%;
}

/* ---- Text helpers ------------------------------------------------------------- */
.reveal h3.sub-h3 { margin-top: -.15em; margin-bottom: .35em; }
.reveal .overline {
  display: block; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c, var(--mute));
}
.reveal .cap { display: block; line-height: 1.3; color: var(--mute); margin-top: .2em; }
.reveal .cap.inline { display: inline; }
.reveal .lede { line-height: 1.35; font-weight: 350; color: var(--ink2); }
.reveal .lede ul { font-size: 100%; }
.reveal .lede li { margin-bottom: .25em; }
.reveal .mute { color: var(--mute); }
.reveal .rule-quote {
  border-left: 4px solid var(--tur); padding: .1em .5em; line-height: 1.35;
  font-style: italic; font-weight: 300; color: var(--ink2); margin-top: .4em;
}
.reveal .hero-num { font-size: 79px; font-weight: 300; color: var(--tur); line-height: 1.05; letter-spacing: -.01em; }

/* ---- Big-number tiles --------------------------------------------------------- */
.reveal .stat-tile { border-left: 6px solid var(--c, var(--tur)); padding: .08em 0 .08em .45em; margin: 0 0 .3em; }
.reveal .stat-tile .num {
  display: block; font-size: 52px; font-weight: 600; line-height: 1.05;
  letter-spacing: -.01em; color: var(--c, var(--tur));
}
.reveal .stat-tile.sm .num { font-size: 34px; }
.reveal .stat-tile.xl .num { font-size: 62px; }
.reveal .stat-tile.xl { margin-bottom: .55em; }
.reveal .stat-tile .lab { display: block; line-height: 1.3; color: var(--ink2); margin-top: .1em; }
.reveal .tile-row { display: flex; gap: 14px; }
.reveal .tile-row > .stat-tile { flex: 1; }

/* ---- Pills -------------------------------------------------------------------- */
.reveal .pill {
  display: inline-block; border-radius: 999px; padding: .05em .6em;
  font-weight: 600; line-height: 1.5; color: #fff; background: var(--c, var(--tur));
  vertical-align: middle; white-space: nowrap; margin: 0 .12em; font-style: normal;
}
.reveal .pill.pill-lg { vertical-align: .9em; }
.reveal .pill.fr { float: right; margin: 0 0 .2em .4em; }
.reveal .pill.org { --c: var(--org); }
.reveal .pill.wp1 { --c: var(--pur); }
.reveal .pill.wp2 { --c: var(--tur); }
.reveal .pill.wp3 { --c: var(--grn); }
.reveal .pill.wp4 { --c: var(--org); }

/* ---- Bands -------------------------------------------------------------------- */
.reveal .band {
  background: var(--c, var(--tur)); color: #fff; border-radius: 8px; padding: .3em .7em;
  line-height: 1.3; margin-top: .45em;
}
.reveal .band.dark { --c: var(--turdk); }
.reveal .band.dark strong { color: var(--yel); }
.reveal .band.mer { --c: var(--mer); }
.reveal .band.grey { background: #EDEEEA; color: var(--ink); }

/* ---- Grids and cards ---------------------------------------------------------- */
.reveal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reveal .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reveal .card {
  background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c, var(--tur));
  border-radius: 8px; padding: .35em .55em; line-height: 1.35;
}
.reveal .card .ttl { display: block; font-weight: 700; font-size: 1.12em; color: var(--cdk, var(--c)); margin-bottom: .2em; }
.reveal .card .tags { display: block; font-style: italic; color: var(--mute); margin-top: .25em; }

/* ---- Pipeline strip ----------------------------------------------------------- */
.reveal .pipe { display: flex; align-items: stretch; gap: 8px; margin-top: .2em; }
.reveal .pipe .chip {
  flex: 1; background: var(--paper); border-top: 6px solid var(--c); border-radius: 10px;
  padding: .3em .5em;
}
.reveal .pipe .chip .hd { display: block; font-weight: 700; line-height: 1.2; color: var(--ink); }
.reveal .pipe .chip .sb { display: block; line-height: 1.3; color: var(--mute); margin-top: .3em; }
.reveal .pipe .arrow { align-self: center; color: var(--mute); }

/* ---- Newspaper headline cards (Arabic, typeset rather than screenshotted) --------- */
.reveal .hl-card {
  background: #fff; border: 1px solid var(--line); border-right: 5px solid var(--mer);
  border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .07); padding: .25em .6em; margin: .35em 0;
}
.reveal .hl-card .ar {
  display: block; direction: rtl; text-align: right;
  font-family: 'Neo Sans Arabic', 'Noto Sans Arabic', sans-serif;
  line-height: 1.45; color: var(--ink);
}
.reveal .hl-card .src {
  display: block; direction: rtl; text-align: right;
  font-family: 'Neo Sans Arabic', 'Noto Sans Arabic', sans-serif; color: var(--mute);
}
.reveal .hl-card .gloss { display: block; direction: ltr; text-align: left; font-style: italic; color: var(--mute); }

/* ---- CRG identity line, insight box, NEW badge ----------------------------------- */
.reveal .id-title { display: block; font-style: italic; color: var(--turdk); margin-bottom: .35em; line-height: 1.3; }
.reveal .id-line { display: block; margin: .3em 0 .2em; }
.reveal .insight {
  border-left: 6px solid var(--tur); background: var(--turlt); border-radius: 6px;
  padding: .3em .6em; line-height: 1.35; margin-top: .5em;
}
.reveal .new-badge {
  display: inline-block; background: var(--org); color: #fff; font-size: .7em; font-weight: 700;
  letter-spacing: .08em; border-radius: 4px; padding: .04em .4em; margin-left: .3em;
  vertical-align: middle; font-style: normal;
}

/* ---- Backup: the width correction ---------------------------------------------- */
.reveal .lemmas { margin-top: .35em; }
.reveal .lemmas .card { min-height: 8.6em; }
.reveal .band.ablation { margin-top: .4em; }
.reveal .bar { display: inline-block; height: .7em; border-radius: 3px; vertical-align: middle; background: var(--c); }

/* ---- Code card and product tiles ------------------------------------------------ */
.reveal .code-card {
  background: #2E3440; color: #ECEFF4; font-family: 'JetBrains Mono', 'Fira Code', monospace; border-radius: 4px;
  padding: .4em .7em; line-height: 1.6; white-space: pre;
}
.reveal .code-card .cm { color: #8FA0B8; }
.reveal .code-card .a { color: var(--org); font-weight: 600; }
.reveal .product { gap: 10px 16px; margin-top: .6em; }
.reveal .hex-row { margin-top: .4em; }
.reveal .hex-row p { display: flex; align-items: center; gap: .6em; }
.reveal .hex-row .url { color: var(--turdk); font-weight: 600; }
.reveal .card.loco { padding: .45em .65em; }
.reveal .card.loco p { margin: .3em 0; }
.reveal .card.loco .tile-row { margin-top: .4em; }


/* ---- Hiring card and QR -------------------------------------------------------- */
.reveal .hire-card { background: var(--org); color: #fff; border-radius: 12px; padding: .5em .7em; line-height: 1.35; }
.reveal .hire-card p { margin: 0 0 .55em 0; }
.reveal .hire-card .big { display: block; font-size: 36px; font-weight: 700; margin-bottom: .1em; }
.reveal .qr { display: inline-block; background: #fff; border-radius: 8px; padding: 6px; line-height: 0; vertical-align: middle; margin-right: .4em; }
.reveal .qr img { margin: 0 !important; }

/* ---- Thanks slide -------------------------------------------------------------- */
.reveal .thanks-tag { display: block; font-size: 34px; font-weight: 700; color: #fff; margin: .2em 0 .3em; }
.reveal .thanks-links { display: block; color: #fff; }
.reveal .thanks-arxiv { display: block; color: #fff; margin: .3em 0 .6em; }
.reveal .thanks-ack { display: block; color: #fff; opacity: .9; margin-top: .5em; }
.reveal .thanks-slide code { background: rgba(255, 255, 255, .85); }

/* ---- Deck-wide overrides of the theme -------------------------------------------- */

/* Source notes (::: aside): small, grey, pinned to the bottom edge */
.reveal aside:not(.notes) {
  font-size: .62em; line-height: 1.3; color: var(--mute);
  bottom: 4px !important; width: 1080px;
}
.reveal aside:not(.notes) p { margin: 0; padding: 0; font-size: 100%; }

/* Keep slide titles clear of the KAUST logo (top right) */
.reveal section.slide > h2 { padding-right: 72px; }

/* The theme pulls paragraphs in columns up by 1em; that makes captions collide here */
.reveal .column > p { margin-bottom: .15em !important; margin-top: .15em; }

/* Lists are inline-block in reveal.js, so they shrink to their widest line and a
   display equation inside a bullet is centred on that line. Make them span the
   container, so equations centre on the column. */
.reveal .slides ul, .reveal .slides ol { display: block; }
/* Display maths in a bullet sits close to its text */
.reveal li .math.display { margin: 0; }
.reveal li mjx-container[display="true"] { margin: .25em 0 !important; }

/* Code: no ligatures (keep <- as typed) */
.reveal .code-card, .reveal code { font-variant-ligatures: none; }

/* "Real data add structure": one-line panel headers with a pill */
.reveal .wall .ph { display: block; line-height: 1.35; color: var(--ink2); margin: .2em 0 .15em; }
.reveal .wall .ph .pill { margin-left: 0; margin-right: .35em; }
.reveal .wall img { margin: 0 !important; }

/* "Shipped": fill the column */
.reveal .product .stat-tile .num { font-size: 40px; }
.reveal .hex-row img { height: 130px !important; }

/* References slide */
.reveal .slide.smaller #refs, .reveal #refs { line-height: 1.35; }
.reveal #refs .csl-entry { margin-bottom: .45em; }

/* ---- Review fixes (Oct 2026) ------------------------------------------------------ */

/* Lining (not old-style) figures everywhere: "USD 900K" must not read as "9ooK" */
.reveal .slides { font-variant-numeric: lining-nums; }

/* One title size for every content slide */
.reveal section.slide > h2 { line-height: 1.15; }

/* Hook: caption sits under its image; translations readable; Arabic dates isolated */
.reveal .semi-fade-out > p { margin: 0 0 .3em; padding: 0; }
.reveal .semi-fade-out img { display: block; }
.reveal .hl-card .gloss { color: var(--ink2); }
.reveal .block { display: block; }

/* "Real data add structure": panel headers sit tight to their charts */
.reveal .wall p { margin: 0 !important; padding: 0 !important; }
.reveal .wall .ph { margin: .3em 0 .15em; font-size: .7em; }
/* Pill in its own column, centred against the header text however many lines it wraps to */
.reveal .wall .ph { display: flex; align-items: center; gap: .35em; }
.reveal .wall .ph .pill { flex: none; margin: 0; }
/* Flex row of full-height columns. The map column starts level with GROUPS, and
   the band is centred in the space left below the map. */
.reveal .columns.wall { display: flex; align-items: stretch; }
.reveal .wall > .column:last-child { display: flex; flex-direction: column; }
.reveal .wall .band { font-size: .7em; margin: auto; text-align: center; }

/* The trick: legible formula, NEW badge as a tab, no stray margins in the figure stack */
.reveal .lemmas .card { position: relative; min-height: 8.2em; }
.reveal .lemmas .math.inline { font-size: 1.15em; }
.reveal .lemmas .math.display { font-size: 1.2em; }
.reveal .lemmas .new-badge { position: absolute; top: -.95em; right: .6em; margin: 0; }
.reveal .s-trick .r-stack p { margin: 0 !important; padding: 0 !important; }
/* Backup on the width correction: scaled down to fit */
.reveal .s-trick .lemmas .card { font-size: .58em; }
.reveal .s-trick .band { font-size: .56em; }
/* Backup on speed and accuracy: smaller tiles */
.reveal .s-speed .stat-tile.xl .num { font-size: 52px; }
.reveal .s-speed .stat-tile .lab { font-size: .62em; }

/* Roadmap: base layer of the stack must match the fragment layers' structure */
.reveal .stack-base { display: block; }

/* Contrast: dark text on KAUST orange */
.reveal .hire-card { color: var(--ink); }
.reveal .hire-card p { font-weight: 450; }
.reveal .pill.org, .reveal .pill.wp3, .reveal .pill.wp4 { color: var(--ink); }

/* Thanks slide: stronger panel and larger link text for Q&A */
.reveal .thanks-slide { background-color: rgba(0, 122, 126, .92); }
.reveal .thanks-links { font-weight: 500; }
.reveal .thanks-arxiv { font-weight: 500; }
/* The arXiv IDs under their label: smaller, on one line */
.reveal .thanks-ids { font-size: .8em; white-space: nowrap; }
.reveal .thanks-people { display: block; color: #fff; margin: .2em 0 .5em; }
.reveal .thanks-ack { opacity: 1; }

/* ---- Storyboard deck (Nov 2026) --------------------------------------------------- */

/* MathJax colour definitions: typeset, never shown */
.reveal .math-defs { display: none; }

/* Small-caps label above an equation */
.reveal .eq-lab {
  display: block; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute); margin: .55em 0 -.1em;
}
.reveal .eq-lab .new-badge { margin: 0 .45em 0 0; vertical-align: .1em; }

/* Column headings */
.reveal h4.col-head {
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c, var(--turdk)); margin: .7em 0 .45em; padding-top: 0;
}

/* Opening slide: epigraph, equation swap, photos */
.reveal .epigraph {
  line-height: 1.35; font-style: italic; font-weight: 300; color: var(--ink2);
  border-left: 4px solid var(--tur); padding: .1em .6em; margin: 0 0 .2em;
}
.reveal .epigraph .who { font-style: normal; font-weight: 500; color: var(--mute); margin-left: .3em; white-space: nowrap; }
/* Equation versions stacked for a fragment swap: top-aligned, full width */
.reveal .r-stack.eq-swap > * { margin: 0; width: 100%; align-self: start; }
.reveal .eq-swap p { margin: 0 !important; padding: 0 !important; }
.reveal .human { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: calc(-1.8em - 16px); }
.reveal .human p { margin: 0 !important; padding: 0 !important; }
.reveal .human img {
  display: block; width: 100%; height: 100px; max-width: none !important; max-height: none !important;
  object-fit: cover; border-radius: 8px; margin: 0 !important;
}
/* Each photo links to its Unsplash page, with the photographer's handle on it */
.reveal .human .photo > p:first-child { position: relative; line-height: 0; }
.reveal .human .credit {
  position: absolute; right: 6px; bottom: 4px; font-size: 12px; line-height: 1.2;
  color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .8);
}
.reveal .human .photo > p:last-child {
  font-size: .7em; line-height: 1.3; color: var(--ink2); margin-top: 15px !important;
}
.reveal .human .overline { font-size: .75em; color: var(--pur); }

/* PISA: chart and still side by side, then the route to every point as cards */
.reveal .s-pisa .pipe { margin-top: .3em; }
.reveal .s-pisa .pipe .chip .hd { font-size: .75em; min-height: 2.4em; }  /* two lines, so the subtitles align */
.reveal .s-pisa .pipe .chip .sb { font-size: .6em; }
.reveal .s-pisa .stat-tile { margin-bottom: .2em; }
.reveal .s-pisa .stat-tile .num { font-size: 36px; }
.reveal .s-pisa .stat-tile .lab { font-size: .5em; }
/* The Economist still links to the Short, with the Shorts logo on its corner */
.reveal .yt-still { text-align: center; }
.reveal .yt-still p { margin: 0 !important; padding: 0 !important; }
.reveal .yt-still > p:first-child { position: relative; display: inline-block; line-height: 0; }
.reveal .yt-still img { margin: 0 !important; border-radius: 8px; }
/* Wider than the still's own shape, so it fills the column, trimmed at the bottom */
.reveal .yt-still .yt-img { width: 240px; height: 300px; max-width: none; max-height: none; object-fit: cover; object-position: top; }
.reveal .yt-still .yt-logo { position: absolute; top: -12px; right: -12px; height: 34px; border-radius: 0; }
.reveal .yt-cap { display: block; font-size: .5em; color: var(--mute); margin-top: .5em; }

/* CRG: identity strip, work packages, people, KPI tiles */
.reveal .id-strip { background: #EEF8F8; border-left: 6px solid var(--tur); border-radius: 8px; padding: .35em .65em; }
.reveal .id-strip p { margin: 0; padding: 0; }
.reveal .id-strip .id-title { display: block; margin: 0 0 .1em; }
.reveal .id-strip .id-line { display: block; margin: 0; color: var(--ink2); }
.reveal .wps { gap: 14px; }
.reveal .wps .card { line-height: 1.4; min-height: 4.6em; }
.reveal .people ul { line-height: 1.35; font-weight: 350; }
.reveal .people li { margin-bottom: .35em; }
.reveal .hire-card.compact { padding: .4em .65em; margin-top: .6em; }
.reveal .hire-card.compact p { margin: 0; }
.reveal .hire-card.compact .big { margin-bottom: .05em; }
.reveal .kpis { margin-top: 1.1em; gap: 18px; }
.reveal .kpis .stat-tile .num { font-size: 56px; }
/* CRG slide: scaled down to fit everything on one slide */
.reveal .s-crg .id-strip { padding: .25em .6em; }
.reveal .s-crg .id-strip .id-title { font-size: .7em; }
.reveal .s-crg .id-strip .id-line { font-size: .6em; }
.reveal .s-crg h4.col-head { font-size: .5em; margin: 1.5em 0 .7em; }
.reveal .s-crg .wps { gap: 12px; }
.reveal .s-crg .wps .card { font-size: .56em; min-height: 6.2em; padding: .65em .65em; }
.reveal .s-crg .wps .card .ttl { font-size: 1.15em; padding-right: 3.2em; }
.reveal .s-crg .wps .pill { font-size: .85em; }
.reveal .s-crg .cap { font-size: 15px; margin-top: .6em; }
.reveal .s-crg .people ul { font-size: .6em; }
.reveal .s-crg .people { margin-bottom: .4em; }
.reveal .s-crg .people li { margin-bottom: .3em; }
.reveal .s-crg .hire-card.compact { font-size: .6em; margin-top: .8em; }
.reveal .s-crg .hire-card.compact .big { font-size: 1.1em; }
.reveal .s-crg .hire-card { background: var(--yel); }
/* The work-package grid stretches so that its legend line ends level with the
   bottom of the People column */
.reveal .s-crg .columns { display: flex; align-items: stretch; }
/* The theme's top margin on a slide's third block applies now that the columns are
   a flex row, not inline */
.reveal .slides .slide.s-crg .columns { margin-block-start: 0; }
.reveal .s-crg .columns > .column:first-child { display: flex; flex-direction: column; }
.reveal .s-crg .columns > .column:first-child > .wps { flex: 1; }
.reveal .s-crg .columns > .column:last-child > .fragment { height: 100%; display: flex; flex-direction: column; }
.reveal .s-crg .columns > .column:last-child .hire-card { margin-top: auto; }
.reveal .s-crg .columns > .column:first-child > p:last-child { margin-bottom: 0 !important; padding-bottom: 0; }
.reveal .s-crg .kpis { margin-top: .5em; gap: 14px; }
.reveal .s-crg .kpis .stat-tile .num { font-size: 48px; }
.reveal .s-crg .kpis .stat-tile .lab { font-size: .5em; }

/* Work-package items, one per line. The status markers are drawn in CSS so
   that done, in development and planned are all the same size. */
.reveal .wps ul { list-style: none; font-size: 100%; margin: .15em 0 0; padding: 0; }
.reveal .wps li { margin: 0; line-height: 1.15; }
.reveal :is(.wps, .status-key) :is(.done, .dev, .plan)::before {
  content: ""; display: inline-block; box-sizing: border-box;
  width: .62em; height: .62em; margin-right: .45em; vertical-align: .02em;
  border: 2px solid var(--cdk, var(--c)); border-radius: 50%;
}
.reveal :is(.wps, .status-key) .done::before { background: var(--cdk, var(--c)); }
.reveal :is(.wps, .status-key) .dev::before {
  background: linear-gradient(90deg, var(--cdk, var(--c)) 50%, transparent 50%);
}
.reveal .status-key { --c: var(--mute); }
.reveal .wps :is(.done, .dev, .plan)::before { width: .5em; height: .5em; }
.reveal .status-key > span { margin-right: 1.1em; }
.reveal .status-key { display: flex; }
.reveal .status-key > .when { margin: 0 0 0 auto; }

/* How INLA can help: the three-level hierarchy and the comparison table */
/* The hierarchy is three ruled rows, not cards: a coloured label, then the maths,
   with wrapped lines hanging under the maths */
.reveal .hier { margin-top: .45em; border-top: 1px solid var(--line); }
.reveal .hier .lvl { border-bottom: 1px solid var(--line); padding: .45em 0; }
.reveal .hier .lvl p { margin: 0; padding: 0 0 0 6.6em; text-indent: -6.6em; line-height: 1.45; }
.reveal .hier .lvl-name {
  display: inline-block; width: 9.4em; text-indent: 0; vertical-align: .1em;
  font-size: .7em; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c);
}
.reveal .hier .note { color: var(--mute); }
.reveal .s-inla .insight { margin-top: .6em; }

/* How INLA can help: scaled down to fit */
.reveal .s-inla .hier { font-size: .72em; }
.reveal .s-inla .insight { font-size: .7em; }
.reveal .s-inla .eq-lab { font-size: .485em; margin-top: 1.6em; }
.reveal .s-inla .eq-lab + p, .reveal .s-inla .math.display { font-size: .72em; }
.reveal .s-inla h4.col-head { font-size: .54em; margin: .9em 0 .7em; }
.reveal .s-inla .vs { font-size: .67em; }
/* The lead-in takes the theme's .small-text size */
.reveal .s-inla .lead-in { display: block; font-size: .8em; color: var(--turdk); }
.reveal .s-inla .lead-in.ink { color: var(--ink); }
.reveal .s-inla .band { font-size: .7em; }
.reveal .s-inla .quarto-figure p { padding: 0; line-height: 0; }
.reveal .s-inla img.dag { margin-bottom: 0 !important; }
/* The table itself takes the theme's booktabs .my-table rules; these only size
   and colour its cells */
.reveal .vs table { width: 100%; line-height: 1.3; margin: 0; }
.reveal .vs th, .reveal .vs td { padding: .45em .4em; vertical-align: top; text-align: left; }
.reveal .vs td:first-child { font-weight: 600; color: var(--ink2); }
.reveal .vs td:last-child { color: var(--turdk); }
.reveal .s-inla .band { margin-top: .9em; }

/* Recipe: flowchart at full width, plus three notes */
.reveal .s-recipe .r-stack p { margin: 0 !important; padding: 0 !important; }
.reveal .s-recipe .r-stack img { max-width: none !important; max-height: none !important; }
.reveal .recipe-notes { margin-top: .45em; gap: 14px; }
.reveal .recipe-notes .card { position: relative; }
.reveal .recipe-notes .new-badge { position: absolute; top: -.95em; right: .6em; margin: 0; }
/* Recipe slide: scaled down to fit under the flowchart */
.reveal .s-recipe .recipe-notes .card { font-size: .62em; padding: .55em .75em; line-height: 1.35; }
.reveal .s-recipe .recipe-notes .card .ttl { font-size: 1.15em; }

/* Package */
/* Package slide: a code block that never scrolls, the console gif, one-line
   facts and a call to action */
.reveal .slides pre.pkg-code { max-height: none; overflow: visible; }
.reveal .slides pre.pkg-code code.sourceCode {
  font-size: 22px; line-height: 1.38; max-height: none; overflow: visible;
}
.reveal img.console { border-radius: 4px; margin: .2em 0 0 !important; }
.reveal .facts ul { font-size: .82em; margin-top: .45em; }
.reveal .facts li { margin-bottom: .2em; white-space: nowrap; }
/* Call to action: the whole box is the link */
.reveal a.cta {
  display: block; width: fit-content; margin: .7em auto 0; padding: .4em 1em;
  background: var(--turdk); color: #fff; border-radius: 10px;
  font-size: .72em; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.reveal a.cta .url { color: var(--yel); font-weight: 700; }
.reveal a.cta:hover { background: var(--tur); }

/* LOO */
/* LOO code: a regular code block on the console gif's Nord background, with
   Nord syntax colours, sized so that it never scrolls */
.reveal div.sourceCode:has(> pre.loo-code) {
  background: #2E3440; border: none; border-radius: 4px;
}
.reveal .slides pre.loo-code { background: #2E3440; max-height: none; overflow: visible; }
.reveal .slides pre.loo-code code.sourceCode {
  font-size: 19px; line-height: 1.45; max-height: none; overflow: visible;
  color: #ECEFF4; background: transparent;
}
.reveal pre.loo-code code span { color: #ECEFF4; }
.reveal pre.loo-code code span.fu { color: #88C0D0; }
.reveal pre.loo-code code span.st { color: #A3BE8C; }
.reveal pre.loo-code code span:is(.cn, .dv, .fl) { color: #B48EAD; }
.reveal pre.loo-code code span:is(.ot, .op, .kw) { color: #81A1C1; }
.reveal pre.loo-code code span.at { color: #8FBCBB; }
.reveal pre.loo-code code span.co { color: #8FA0B8; }
.reveal .card.loco { font-size: .62em; margin-top: .5em; }
.reveal .card.loco .cap { font-size: .8em; }
.reveal .card.loco .stat-tile.sm .num { font-size: 30px; }
.reveal .card.loco .stat-tile .lab { font-size: .85em; white-space: nowrap; }
/* The speed tiles under the model strip: real spacing rather than a nudge, so
   the card grows to hold them */
.reveal .card.loco .model-strip + .tile-row { margin-top: 1.5em; }
/* Three candidate models as tiny path diagrams in a row: a tag, an observed
   covariate (box), an arrow and the latent outcome (ellipse). The selected
   model is teal, the others muted. */
.reveal .model-strip p {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: .35em 0 .5em !important; font-size: .64em; line-height: 1.2;
}
.reveal .model-strip .mdl {
  display: inline-flex; flex-direction: column; align-items: center; gap: .25em;
  color: var(--mute);
}
.reveal .model-strip .mdl.win { color: var(--turdk); }
.reveal .model-strip .tag { font-size: .8em; font-weight: 700; letter-spacing: .08em; }
.reveal .model-strip .dg { display: inline-flex; align-items: center; }
.reveal .model-strip .ov { border: 1.5px solid currentColor; border-radius: 3px; padding: .05em .3em; }
.reveal .model-strip .lv { border: 1.5px solid currentColor; border-radius: 50%; padding: .1em .5em; }
.reveal .model-strip .arr {
  position: relative; width: .9em; height: 1.5px; margin: 0 .3em 0 .15em;
  background: currentColor;
}
.reveal .model-strip .arr::after {
  content: ""; position: absolute; right: -.3em; top: 50%; transform: translateY(-50%);
  border-left: .4em solid currentColor;
  border-top: .25em solid transparent; border-bottom: .25em solid transparent;
}
/* Each model's elpd difference under its diagram, and the MCMC check below */
.reveal .model-strip .dv { font-weight: 600; font-variant-numeric: lining-nums; }
.reveal .model-strip .mc { font-size: .9em; color: var(--mute); font-variant-numeric: lining-nums; margin-top: -.2em; }
/* An arrow pointing left, into the outcome from a covariate on its right */
.reveal .model-strip .arr.rev { margin: 0 .15em 0 .3em; }
.reveal .model-strip .arr.rev::after {
  right: auto; left: -.3em; border-left: none; border-right: .4em solid currentColor;
}

/* The deletion figure, in the left half of the column */
.reveal .cpo-row > p { margin: 0; padding: 0; width: 49%; line-height: 0; }
.reveal img.cpo-fig { width: 100%; max-width: 100% !important; max-height: none; margin: 0 !important; }
/* The identity beside it is placed absolutely (top and left on the slide), over
   the figure's empty top-right corner, so that it ends short of the card. With
   no margins, top and left are those of the equation itself. */
.reveal .cpo-eq p { margin: 0; padding: 0; }
.reveal .cpo-eq .math.display { font-size: .64em; }
.reveal .cpo-eq mjx-container[display="true"] { margin: 0 !important; }

/* What's next: three work-package cards in the CRG slide's style. Each card is a
   subgrid over the same five rows (title, figure, caption, model, question), so
   the rows stay level across the cards whatever their content. The grid reaches
   down to the footnote, and its rows share the spare height equally. */
.reveal .next {
  grid-template-columns: repeat(3, minmax(0, 1fr)); height: 596px;
  margin-top: .4em; gap: 0 16px;
}
.reveal .next .card {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
  font-size: .56em; padding: .6em .7em .65em;
}
.reveal .next .card .ttl { font-size: 1.15em; padding-right: 3.2em; margin-bottom: 0; }
.reveal .next .pill { font-size: .85em; }
/* A fixed figure box, centred in its row */
.reveal .next .fig { display: flex; flex-direction: column; justify-content: center; }
.reveal .next .fig p {
  display: flex; align-items: center; justify-content: center;
  height: 230px; margin: .45em 0 .2em !important;
}
.reveal .next .fig img { max-width: 100%; max-height: 100%; margin: 0 !important; }
.reveal .next .card .cap { text-align: center; }
/* The three-line model sets the band, and two-line models sit centred in it. The
   top padding sits each model a little below the middle of its two rules. */
.reveal .next .eqs {
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line); margin-top: .35em; padding-top: .4em;
}
.reveal .next .eqs .math.display { font-size: .86em; }
.reveal .next .eqs mjx-container[display="true"] { margin: .3em 0 !important; }
.reveal .next .why {
  display: block; padding-top: .45em; margin-top: .35em;
  border-top: 1px solid var(--line); line-height: 1.35; color: var(--ink2);
}
.reveal .next .why strong { color: var(--cdk); }
/* Application cards, the same on every slide: small text, larger bullets */
.reveal .card.app { padding: .45em .7em; font-size: .6em; }
.reveal .card.app .cap { font-size: .85em; }
.reveal .card.app ul { font-size: 115%; margin-top: .3em; }
.reveal .card.app li { margin-bottom: .3em; }
/* No block margins around its figure, which has its own whitespace */
.reveal .card.app img { display: block; margin: 0 auto .3em; }
