/* ======================================================================
   Beamer-like theme (Madrid / whale flavour) for reveal.js
   Talk: Every Programming Language, with Its Real Programs
   Fonts: Latin Modern (GUST Font License), bundled in assets/fonts/
   ====================================================================== */

@font-face { font-family: "Latin Modern Sans"; src: url("assets/fonts/lmsans10-regular.otf") format("opentype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "Latin Modern Sans"; src: url("assets/fonts/lmsans10-bold.otf") format("opentype"); font-weight: 700; font-style: normal; }
@font-face { font-family: "Latin Modern Sans"; src: url("assets/fonts/lmsans10-oblique.otf") format("opentype"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Latin Modern Mono"; src: url("assets/fonts/lmmono10-regular.otf") format("opentype"); font-weight: 400; font-style: normal; }

:root {
  --struct: #3333b3;          /* Beamer structure colour */
  --struct-dark: #1f1f73;
  --struct-darker: #15154d;
  --struct-light: #ebebf7;    /* block body */
  --alert: #cc0000;           /* \alert */
  --alert-light: #f9e8e8;
  --example: #007a00;         /* exampleblock */
  --example-light: #e8f3e8;
  --gold: #a87700;
  --gold-light: #fbf3dc;
  --text: #111111;
  --muted: #555566;
  --rule: #222222;
  --sans: "Latin Modern Sans", "LM Sans 10", "CMU Sans Serif", Helvetica, Arial, sans-serif;
  --mono: "Latin Modern Mono", "LM Mono 10", "CMU Typewriter Text", Menlo, monospace;
}

.reveal-viewport { background: #ffffff; }
.reveal {
  font-family: var(--sans);
  font-size: 31px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
}
.reveal .slides { text-align: left; }

/* ---- Frames: fixed 1280×720, frame title band on top, content centred vertically ---- */
.reveal .slides > section,
.reveal .slides > section > section {
  height: 720px;
  box-sizing: border-box;
  padding: 92px 46px 46px !important;
  flex-direction: column;
  justify-content: center;
}

/* Frame title (first h2 of a frame) */
.reveal .slides section > h2:first-child {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  margin: 0;
  padding: 16px 30px 0;
  box-sizing: border-box;
  display: block;
  background: var(--struct);
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 33px;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
}
.reveal .slides section > h2:first-child:has(.sub) { padding-top: 7px; }
.reveal .slides section > h2:first-child .sub {
  display: block;
  font-size: 0.6em;
  margin-top: 0.15em;
  color: #d8d8f2;
}
.reveal .slides section > h2:first-child code { color: #ffffff; background: none; }

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--sans);
  color: var(--struct);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
.reveal h3 { font-size: 1em; }

/* ---- Footline (injected by index.html) ---- */
.reveal .footline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  display: flex;
  font-size: 15px;
  line-height: 26px;
  color: #ffffff;
  text-align: center;
}
.reveal .footline > span { display: block; overflow: hidden; white-space: nowrap; }
.reveal .footline .fl-a { flex: 1; background: var(--struct-darker); }
.reveal .footline .fl-b { flex: 1.3; background: var(--struct-dark); }
.reveal .footline .fl-c { flex: 1; background: var(--struct); display: flex; justify-content: space-between; padding: 0 1em; }

/* ---- Text ---- */
.reveal p { margin: 0.45em 0; }
.reveal strong, .reveal b { font-weight: 700; color: inherit; }
.reveal em, .reveal i { font-style: italic; }
.reveal a { color: var(--struct); text-decoration: none; }
.reveal .ok { color: var(--example); }
.reveal .ko { color: var(--alert); }
.reveal .smaller { font-size: 0.8em; }
.reveal .smallest { font-size: 0.62em; color: var(--muted); }
.reveal .left { text-align: left; }
.reveal .center { text-align: center; }

/* ---- Itemize: Beamer triangles ---- */
.reveal ul { list-style: none; margin: 0.3em 0 0.3em 1.15em; padding: 0; display: block; }
.reveal ul > li { position: relative; margin: 0.32em 0; }
.reveal ul > li::before {
  content: "▶";
  position: absolute;
  left: -2.05em;      /* in units of the marker's own (0.55em) font size */
  top: 0.62em;
  font-size: 0.55em;
  line-height: 1;
  color: var(--struct);
}
.reveal ul ul > li::before { content: "–"; font-size: 1em; top: 0; left: -0.9em; }
.reveal ol { margin: 0.3em 0 0.3em 1.4em; padding: 0; display: block; }
.reveal ol > li { margin: 0.28em 0; padding-left: 0.2em; }
.reveal ol > li::marker { color: var(--struct); font-weight: 700; }

/* ---- Code ---- */
.reveal code { font-family: var(--mono); color: #1d1d5e; font-size: 1em; }
.reveal pre {
  width: 100%;
  margin: 0.4em 0;
  font-size: 0.52em;
  box-shadow: none;
  background: #f6f6f9;
  border: 1px solid #c9c9d6;
  border-radius: 4px;
}
.reveal pre code { max-height: 520px; padding: 0.6em 0.8em; background: transparent; color: #111; line-height: 1.3; }
.reveal .hljs { background: transparent; color: #111; }
.reveal .hljs-string { color: #8b1a1a; }
.reveal .hljs-attr, .reveal .hljs-keyword, .reveal .hljs-name { color: #1d1d8e; }
.reveal .hljs-literal, .reveal .hljs-number { color: #006400; }
.reveal .hljs-comment { color: #777; font-style: italic; }

/* ---- Quote ---- */
.reveal blockquote {
  width: auto;
  margin: 0.5em 1.5em;
  padding: 0.2em 0 0.2em 0.9em;
  border-left: 3px solid var(--struct);
  font-style: italic;
  background: none;
  box-shadow: none;
}
.reveal blockquote p { margin: 0.25em 0; }

/* ---- Figures & screenshots ---- */
.reveal img, .reveal video, .reveal svg.inline-svg {
  max-height: 560px;
  margin: 0 auto;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: none;
}
.reveal img.shot { border: 1px solid #b8b8c8; background: #fff; }

/* ---- Big number ---- */
.reveal .big {
  display: block;
  font-size: 2.3em;
  font-weight: 700;
  line-height: 1.1;
  margin: 0.15em 0;
  color: var(--struct);
}
.reveal .big small { display: block; font-size: 0.36em; font-weight: 400; color: var(--text); }

/* ---- Columns ---- */
.reveal .cols { display: flex; gap: 1.2em; align-items: center; justify-content: center; }
.reveal .cols > div { flex: 1; min-width: 0; }
.reveal .cols img { width: 100%; object-fit: contain; }

/* ---- Blocks (block / alertblock / exampleblock) ----
   .card and .findings are rendered as Beamer blocks: the h3 is the block title. */
.reveal .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55em 0.8em; text-align: left; }
.reveal .cards.three { grid-template-columns: repeat(3, 1fr); }
.reveal .cards.four { grid-template-columns: repeat(4, 1fr); }
.reveal .card, .reveal .findings {
  background: var(--struct-light);
  border-radius: 5px;
  overflow: hidden;
  font-size: 0.62em;
  line-height: 1.3;
  padding-bottom: 0.4em;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.18);
}
.reveal .findings { font-size: 0.85em; }
.reveal .card > h3, .reveal .findings > h3 {
  margin: 0 0 0.3em;
  padding: 0.22em 0.6em;
  background: var(--struct);
  color: #ffffff;
  font-size: 1.12em;
  font-weight: 400;
}
.reveal .card > :not(h3), .reveal .findings > :not(h3) { margin-left: 0.65em; margin-right: 0.65em; }
.reveal .card > ul { margin-left: 1.6em; }
.reveal .card p { margin: 0.25em 0.65em; }
.reveal .card li { margin: 0.18em 0; }
.reveal .card.red { background: var(--alert-light); }
.reveal .card.red > h3 { background: var(--alert); }
.reveal .card.green { background: var(--example-light); }
.reveal .card.green > h3 { background: var(--example); }
.reveal .card.hl { background: var(--struct-light); }

/* ---- Tables: booktabs ---- */
.reveal table {
  margin: 0.3em auto;
  font-size: 0.68em;
  border-collapse: collapse;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  background: none;
  box-shadow: none;
}
.reveal table th {
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  padding: 0.32em 0.7em;
  background: none;
}
.reveal table td { padding: 0.28em 0.7em; border: none; vertical-align: top; }
.reveal table.tight { font-size: 0.6em; }
.reveal table.tight td, .reveal table.tight th { padding: 0.26em 0.55em; }

/* ---- Pills (small tags) ---- */
.reveal .pill {
  display: inline-block;
  font-size: 0.8em;
  padding: 0 0.45em;
  border-radius: 3px;
  border: 1px solid #9a9ab8;
  background: #f4f4fa;
  margin: 0.1em 0.08em;
  white-space: nowrap;
}
.reveal .pill.y { border-color: var(--gold); color: var(--gold); background: var(--gold-light); }
.reveal .pill.b { border-color: var(--struct); color: var(--struct); background: var(--struct-light); }
.reveal .pill.g { border-color: var(--example); color: var(--example); background: var(--example-light); }
.reveal .pill.r { border-color: var(--alert); color: var(--alert); background: var(--alert-light); }

/* ---- Mock "evidence card" (dream slide), as a Beamer block ---- */
.reveal .evcard {
  text-align: left;
  font-size: 0.52em;
  line-height: 1.3;
  background: var(--struct-light);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.18);
  padding-bottom: 0.5em;
}
.reveal .evcard .evtitle {
  background: var(--struct);
  color: #fff;
  font-size: 1.5em;
  padding: 0.2em 0.6em;
  margin-bottom: 0.3em;
}
.reveal .evcard .evtitle span { font-size: 0.6em; color: #d8d8f2; margin-left: 0.5em; }
.reveal .evcard .evrow { margin: 0.3em 0.8em; }
.reveal .evcard .st { display: inline-block; width: 1.4em; font-weight: 700; }
.reveal .evcard .y { color: var(--gold); }
.reveal .evcard .dim { color: var(--muted); }
.reveal .evcard b { margin-right: 0.35em; }
.reveal .evcard img, .reveal .evcard svg.inline-svg { width: 94%; max-height: none; margin: 0.2em auto; }
.reveal .evcard .evlegend { font-size: 0.85em; color: var(--muted); margin: 0.5em 0.8em 0; border-top: 1px solid #c9c9e0; padding-top: 0.3em; }

/* ---- UML notes (cardinalities slide) ---- */
.reveal .umlnotes { font-size: 0.5em; line-height: 1.28; text-align: left; }
.reveal .umlnotes p { margin: 0 0 0.45em; padding: 0.3em 0.55em 0.35em 2.1em; position: relative; background: #fffbe6; border: 1px solid #d8cc8a; }
.reveal .umlnotes p .n {
  position: absolute; left: 0.45em; top: 0.35em;
  width: 1.25em; height: 1.25em; line-height: 1.25em; border-radius: 50%;
  background: var(--struct); color: #fff; text-align: center; font-weight: 700; font-size: 0.95em;
}

/* ---- Logos ---- */
.reveal .logos { display: flex; align-items: center; justify-content: center; gap: 1.2em; margin: 0.6em auto 0; }
.reveal .logos img { height: 40px; width: auto; max-height: 40px; margin: 0; display: inline-block; }

/* ---- Title page (Madrid) ---- */
.reveal .slides section.titlepage { justify-content: center; text-align: center; padding: 40px 80px 46px !important; }
.reveal .titlepage .titlebox {
  background: var(--struct);
  color: #fff;
  border-radius: 10px;
  padding: 0.55em 1em 0.6em;
  margin: 0 auto 0.8em;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.25);
}
.reveal .titlepage .titlebox h1 { color: #fff; font-size: 1.55em; margin: 0; }
.reveal .titlepage .titlebox p { margin: 0.35em 0 0; font-size: 0.85em; color: #e2e2f6; }
.reveal .titlepage .author { font-size: 1em; margin: 0.3em 0 0.1em; }
.reveal .titlepage .institute { font-size: 0.72em; color: var(--muted); margin: 0.1em 0; }
.reveal .titlepage .date { font-size: 0.72em; margin: 0.5em 0 0.2em; }

/* ---- Section pages ---- */
.reveal .slides section.section-slide { justify-content: center; text-align: center; }
.reveal .section-slide h1 {
  display: inline-block;
  align-self: center;
  background: var(--struct);
  color: #fff;
  font-size: 1.45em;
  border-radius: 8px;
  padding: 0.35em 1.1em;
  margin: 0 auto 0.5em;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.25);
}
.reveal .section-slide h2 { color: var(--text); font-size: 0.95em; font-weight: 400; margin: 0; text-align: center; }

/* ---- Closing frame ---- */
.reveal .slides section.closing { justify-content: center; text-align: center; }
.reveal .closing h1 { font-size: 1.5em; margin-bottom: 0.3em; }

/* ---- Hide reveal chrome (Beamer has no progress bar) ---- */
.reveal .progress { display: none; }

/* ---- Comparison matrix (diagnosis slide) ---- */
.reveal table.matrix { font-size: 0.66em; }
.reveal table.matrix th, .reveal table.matrix td { padding: 0.42em 0.65em; text-align: left; }
.reveal .half { color: var(--gold); }

/* ---- "Two gaps" slide ---- */
.reveal .findings.gap { font-size: 0.7em; }
.reveal .findings.gap p { margin: 0.2em 0.65em 0.3em; line-height: 1.3; }
.reveal .gapnum { float: left; font-size: 2.6em; line-height: 1; font-weight: 700; color: var(--struct); margin: 0.02em 0.3em 0 0; }

/* ---- Two-column list inside a block (challenges slide) ---- */
.reveal ul.twocol { column-count: 2; column-gap: 1.6em; }
.reveal ul.twocol > li { break-inside: avoid; }

/* ---- Slogan ---- */
.reveal .slogan { font-style: italic; color: var(--struct); font-size: 1.05em; margin-top: 0.6em; }

/* ---- Compact interest cards ("Why now") ---- */
.reveal .cards.mini .card { font-size: 0.5em; padding-bottom: 0.25em; }
.reveal .cards.mini .card > h3 { font-size: 1.05em; padding: 0.15em 0.55em; }
.reveal .cards.mini .card p { margin: 0.15em 0.6em; }

/* ---- "Catch them all" (gamification) ---- */
.reveal .dex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35em; font-size: 0.5em; }
.reveal .dex .t { border: 2px solid #b8b8c8; border-radius: 6px; padding: 0.3em 0.35em 0.4em; background: #f6f6f9; text-align: center; line-height: 1.2; color: var(--muted); }
.reveal .dex .t b { display: block; font-size: 1.3em; color: var(--text); margin: 0.05em 0 0.1em; }
.reveal .dex .t .ic { display: block; font-size: 1.3em; line-height: 1; }
.reveal .dex .t.caught { border-color: var(--example); background: var(--example-light); }
.reveal .dex .t.caught .ic { color: var(--example); }
.reveal .dex .t.seen { border-style: dashed; }
.reveal .dex .t.fake { border-color: var(--alert); background: var(--alert-light); }
.reveal .dex .t.fake b { text-decoration: line-through; color: var(--alert); }
.reveal .dex .t.fake .ic { color: var(--alert); }
.reveal .dexbar { height: 0.45em; background: #e3e3ee; border-radius: 4px; overflow: hidden; margin: 0.7em 0 0.25em; }
.reveal .dexbar span { display: block; height: 100%; min-width: 4px; background: var(--example); }

/* ---- Definition block (formalization slide) ---- */
.reveal .card.definition { font-size: 0.58em; line-height: 1.35; }
.reveal .card.definition p { margin: 0.35em 0.7em; }
.reveal .card.definition sub, .reveal .card.definition sup { font-size: 0.7em; }

/* reveal's reset.css flattens sub/sup: restore them */
.reveal sub { vertical-align: sub; font-size: 0.72em; line-height: 0; }
.reveal sup { vertical-align: super; font-size: 0.72em; line-height: 0; }

/* ---- PDF export (?print-pdf): reveal's print CSS forces display:block and padding:0 on
   sections; restore the Beamer frame layout (fixed 1280×720 page, content centred). ---- */
html.reveal-print .reveal .slides section {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  width: 1280px !important;
  height: 720px !important;
  top: 0 !important;
  left: 0 !important;
  padding: 92px 46px 46px !important;
}
html.reveal-print .reveal .slides section.titlepage { padding: 40px 80px 46px !important; }

/* ---- Roadmap (proposal slide) ---- */
.reveal .roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35em; text-align: left; }
.reveal .roadmap .chev {
  position: relative; color: #fff; font-size: 0.68em; font-weight: 700; line-height: 1.15;
  padding: 0.35em 1.3em 0.4em 1.1em; min-height: 2.6em; box-sizing: border-box;
  clip-path: polygon(0 0, calc(100% - 0.9em) 0, 100% 50%, calc(100% - 0.9em) 100%, 0 100%, 0.9em 50%);
}
.reveal .roadmap .s0 .chev { clip-path: polygon(0 0, calc(100% - 0.9em) 0, 100% 50%, calc(100% - 0.9em) 100%, 0 100%); }
.reveal .roadmap .chev .when { display: block; font-size: 0.72em; font-weight: 400; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }
.reveal .roadmap .s0 .chev { background: #15154d; }
.reveal .roadmap .s1 .chev { background: #1f1f73; }
.reveal .roadmap .s2 .chev { background: #3333b3; }
.reveal .roadmap .s3 .chev { background: #5c5cc9; }
.reveal .roadmap ul { font-size: 0.56em; line-height: 1.3; margin: 0.5em 0.4em 0 1.5em; }
.reveal .roadmap li { margin: 0.25em 0; }
.reveal .roadmap .s0 { background: var(--gold-light); border-radius: 5px; padding-bottom: 0.3em; }
.reveal .throughout {
  margin-top: 0.7em; font-size: 0.55em; line-height: 1.3; text-align: left;
  border: 2px solid var(--example); background: var(--example-light); border-radius: 5px; padding: 0.4em 0.7em;
}

/* ======================================================================
   Additions for "Archived Variants, Generated Variants" (ShareFAIR Days 2026)
   ====================================================================== */

/* ---- Reference line, bottom of the frame, above the footline ---- */
.reveal .ref {
  position: absolute; left: 46px; right: 46px; bottom: 31px;
  margin: 0; font-size: 0.44em; line-height: 1.25; color: var(--muted); text-align: left;
}

/* ---- The two questions of the talk ---- */
.reveal .questions { display: flex; gap: 0.7em; justify-content: center; margin: 0.4em 0; }
.reveal .questions > div {
  flex: 1; border: 2px solid var(--struct); border-radius: 6px; padding: 0.3em 0.6em;
  text-align: center; font-weight: 700; color: var(--struct); background: var(--struct-light);
}
.reveal .questions > div small { display: block; font-weight: 400; font-size: 0.62em; color: var(--text); margin-top: 0.15em; }
.reveal .questions > div.alt { border-color: var(--example); color: var(--example); background: var(--example-light); }

/* ---- Plan of the talk ---- */
.reveal ol.plan { font-size: 0.86em; }
.reveal ol.plan > li { margin: 0.4em 0; }
.reveal ol.plan .dim { color: var(--muted); font-size: 0.8em; }

/* ---- Figure caption ---- */
.reveal .cap { font-size: 0.48em; color: var(--muted); text-align: center; margin: 0.25em 0 0; line-height: 1.25; }

/* ---- Timeline strip (Liskov) ---- */
.reveal .strip { display: flex; gap: 0.4em; align-items: stretch; font-size: 0.5em; line-height: 1.25; }
.reveal .strip > div { flex: 1; border-top: 4px solid var(--struct); background: #f6f6f9; padding: 0.3em 0.45em; }
.reveal .strip > div b { display: block; color: var(--struct); font-size: 1.15em; }
.reveal .strip > div.alert { border-top-color: var(--alert); }
.reveal .strip > div.alert b { color: var(--alert); }
.reveal .strip > div.ok { border-top-color: var(--example); }
.reveal .strip > div.ok b { color: var(--example); }

/* ---- Verdict marks in tables ---- */
.reveal td.num, .reveal th.num { text-align: right; }
.reveal tr.hl td { background: var(--gold-light); }

/* ---- Hand-off to the next talk ---- */
.reveal .handoff {
  border: 2px solid var(--gold); background: var(--gold-light); border-radius: 6px;
  padding: 0.35em 0.7em; font-size: 0.62em; line-height: 1.3; text-align: left;
}
.reveal .handoff b.t { color: var(--gold); }

/* ---- Code blocks inside a .smaller column: keep them readable ---- */
.reveal .smaller pre { font-size: 0.68em; }

/* ---- Code card: a real excerpt with its caption ---- */
.reveal .codecard { background: #f6f6f9; border: 1px solid #c9c9d6; border-radius: 5px; overflow: hidden; text-align: left; }
.reveal .codecard .hd { background: var(--struct); color: #fff; font-size: 0.55em; padding: 0.2em 0.6em; }
.reveal .codecard.red .hd { background: var(--alert); }
.reveal .codecard pre { margin: 0; border: none; border-radius: 0; font-size: 0.46em; }
.reveal .codecard pre code { padding: 0.5em 0.7em; max-height: 260px; }
.reveal .codecard .ft { font-size: 0.48em; line-height: 1.3; padding: 0.35em 0.7em 0.45em; color: var(--text); border-top: 1px solid #dcdce6; background: #fff; }
.reveal .codecard img { margin: 0; width: 100%; max-height: 170px; object-fit: cover; }

/* ---- A transcribed post (X / Twitter) ---- */
.reveal .post { border: 1px solid #cfd9de; border-radius: 12px; background: #fff; padding: 0.5em 0.75em; text-align: left; font-size: 0.56em; line-height: 1.3; box-shadow: 1px 2px 4px rgba(0,0,0,0.12); }
.reveal .post .who { font-weight: 700; } .reveal .post .who span { font-weight: 400; color: var(--muted); }
.reveal .post p { margin: 0.25em 0; }
.reveal .post .en { color: var(--muted); font-style: italic; font-size: 0.9em; }
.reveal .post.reply { margin: 0.35em 0 0 1.4em; font-size: 0.5em; }
.reveal .post.reply.flag { border-color: var(--alert); }

/* ---- p-value grid (football) ---- */
.reveal table.pgrid { font-size: 0.6em; border: none; }
.reveal table.pgrid th, .reveal table.pgrid td { border: 1px solid #c9c9d6; padding: 0.45em 0.7em; text-align: center; vertical-align: middle; }
.reveal table.pgrid th { background: var(--struct-light); }
.reveal table.pgrid td.hit { background: var(--gold-light); border: 3px solid var(--gold); font-weight: 700; }
.reveal table.pgrid td.stu { background: var(--example-light); }
.reveal table.pgrid td.agt { background: var(--alert-light); }
.reveal table.pgrid td small { display: block; font-size: 0.78em; color: var(--muted); font-weight: 400; }

/* ---- Three columns of big statements (big picture) ---- */
.reveal .trio > div { margin-bottom: 0.45em; }
.reveal .trio b.k { display: block; color: var(--struct); font-size: 1.05em; }
.reveal .trio .r b.k { color: var(--alert); }
.reveal .trio .g b.k { color: var(--example); }

/* ---- PDF export: animations inside inlined SVGs are shown in their final state ---- */
html.reveal-print .reveal svg.inline-svg .fragment { opacity: 1 !important; visibility: visible !important; transition: none !important; }
/* PDF with animations (?print-pdf&steps, talk.js expandStepsForPrint): each page shows the steps up to its own */
html.print-steps .reveal .slides section .fragment:not(.visible) { opacity: 0 !important; visibility: hidden !important; }
html.print-steps .reveal .slides section .fragment.visible { opacity: 1 !important; visibility: visible !important; }

/* v3: related-work cards, case-by-case rows, the conclusion strip of the football slide */
.reveal .related .card { font-size: 0.56em; }
.reveal .related .lead { font-style: italic; color: var(--muted); margin: 0.2em 0.65em 0.3em; }
.reveal .rows3 { text-align: left; }
.reveal .rows3 .row { display: flex; gap: 0.9em; align-items: center; padding: 0.42em 0.5em; border-bottom: 1px solid #d8d8e4; }
.reveal .rows3 .row.hd { font-weight: 700; color: var(--struct); border-bottom: 2px solid var(--struct); padding-top: 0; }
.reveal .rows3 .k { flex: 0 0 27%; font-weight: 700; }
.reveal .rows3 .c { flex: 0 0 11%; color: var(--muted); }
.reveal .rows3 .e { flex: 1; min-width: 0; }
.reveal .rows3 .e.cols > span { flex: 1; }
.reveal .strip-note { font-size: 0.58em; margin: 0.6em 0 0; padding: 0.4em 0.8em; border-left: 5px solid var(--alert); background: #fbeeee; text-align: left; }

/* v4: the two worlds, everywhere. <!-- .slide: class="world-a" --> archived, "world-g" generated, "world-ag" both
   (left half archived, right half generated): a tinted background and a badge in the frame title band. */
.reveal .slides section.world-a { background: linear-gradient(180deg, #fffaf0 0%, #fbf0d2 100%); }
.reveal .slides section.world-g { background: linear-gradient(180deg, #fff7f7 0%, #f9e0e2 100%); }
.reveal .slides section.world-ag {
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), #b9b9cc calc(50% - 1.5px), #ffffff 50%, #b9b9cc calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(90deg, #fcf3da 0%, #fffaf0 50%, #fff6f6 50%, #f9e0e2 100%);
}
.reveal .slides section.world-a > h2:first-child::after,
.reveal .slides section.world-g > h2:first-child::after,
.reveal .slides section.world-ag > h2:first-child::after,
.reveal .slides section.world-ag > h2:first-child::before {
  position: absolute; top: 19px; padding: 5px 14px 5px 12px; border-radius: 16px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: #ffffff; line-height: 1.2;
}
.reveal .slides section.world-a > h2:first-child::after { content: "● ARCHIVED"; right: 26px; background: #b88a12; }
.reveal .slides section.world-g > h2:first-child::after { content: "◌ GENERATED"; right: 26px; background: #cc0000; }
.reveal .slides section.world-ag > h2:first-child::before { content: "● ARCHIVED"; right: 176px; background: #b88a12; }
.reveal .slides section.world-ag > h2:first-child::after { content: "◌ GENERATED"; right: 26px; background: #cc0000; }
/* the two halves of a world-ag frame */
.reveal .halves { display: flex; gap: 0; width: 100%; align-items: stretch; }
.reveal .halves > div { flex: 1 1 50%; min-width: 0; padding: 0 22px; box-sizing: border-box; }
.reveal .halves .tag { font-size: 0.5em; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 0.4em; }
.reveal .halves .tag.a { color: #9c6d00; }
.reveal .halves .tag.g { color: #cc0000; }
/* hero numbers */
.reveal .hero { display: grid; gap: 0.8em; text-align: left; }
.reveal .hero.three { grid-template-columns: repeat(3, 1fr); }
.reveal .hero.four { grid-template-columns: repeat(4, 1fr); }
.reveal .hero > div { background: #ffffff; border-radius: 10px; padding: 0.5em 0.7em 0.6em; box-shadow: 1px 2px 6px rgba(0,0,0,0.12); border-top: 8px solid var(--struct); }
.reveal .hero > div.r { border-top-color: var(--alert); }
.reveal .hero > div.g { border-top-color: #007a00; }
.reveal .hero > div.o { border-top-color: #b88a12; }
.reveal .hero .n { font-size: 1.9em; font-weight: 700; line-height: 1.05; color: var(--struct); }
.reveal .hero .r .n { color: var(--alert); }
.reveal .hero .g .n { color: #007a00; }
.reveal .hero .o .n { color: #9c6d00; }
.reveal .hero .t { font-size: 0.56em; line-height: 1.3; margin-top: 0.3em; }
.reveal .hero .s { font-size: 0.42em; color: var(--muted); margin-top: 0.45em; line-height: 1.3; }
.reveal .hero .h { font-size: 0.5em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2em; }
.reveal .hero.stories img { height: 118px; width: 100%; object-fit: contain; background: #ffffff; border-radius: 6px; margin: 0.25em 0; }
.reveal .rows3 .c2 { flex: 0 0 21%; color: #007a00; font-weight: 700; }
.reveal .agentrows .k { flex: 0 0 30%; }
.reveal .hero.two { grid-template-columns: repeat(2, 1fr); gap: 0.55em 0.9em; }
.reveal .hero.stories.tall img { height: 128px; }
.reveal .hero.four.stories img { height: 150px; }
.reveal .hero.two.stories .t { font-size: 0.6em; }
/* v5: layer chips (which layers a study varied), a "generated" badge on screenshots, three statements in a row */
.reveal .chips { display: flex; flex-wrap: wrap; gap: 0.25em; margin: 0.5em 0 0.2em; }
.reveal .chip { font-size: 0.38em; padding: 0.15em 0.55em; border-radius: 1em; border: 1px solid #c8c8d8; color: #a0a0b4; background: #ffffff; }
.reveal .chip.on { background: var(--struct); border-color: var(--struct); color: #ffffff; font-weight: 700; }
.reveal .genbadge { position: absolute; top: 10px; left: 10px; z-index: 2; background: #cc0000; color: #ffffff; font-size: 0.42em; font-weight: 700; letter-spacing: 0.06em; padding: 0.25em 0.7em; border-radius: 1em; box-shadow: 1px 2px 4px rgba(0,0,0,0.25); }
.reveal .trio3 { display: flex; gap: 0.8em; margin-top: 0.7em; font-size: 0.62em; }
.reveal .trio3 > div { flex: 1; padding: 0.45em 0.7em; border-radius: 8px; background: #ffffff; box-shadow: 1px 2px 5px rgba(0,0,0,0.12); border-left: 6px solid var(--struct); }
.reveal .trio3 > .a { border-left-color: #b88a12; }
.reveal .trio3 > .g { border-left-color: #007a00; }
.reveal .trio3 > .r { border-left-color: var(--alert); }
.reveal .hero.two.stories.wide { gap: 0.5em 0.8em; }
.reveal .hero.two.stories.wide img { height: 132px; object-fit: cover; object-position: top; }
.reveal .hero.two.stories.wide .t { font-size: 0.56em; }
.reveal .hero.verdict .t { font-size: 0.66em; line-height: 1.45; }
.reveal .hero.verdict .n { font-size: 1.5em !important; margin-bottom: 0.3em; }
.reveal table.glimpse { font-size: 0.42em; width: 100%; margin: 0; }
.reveal table.glimpse th, .reveal table.glimpse td { padding: 0.25em 0.45em; white-space: nowrap; }
.reveal table.glimpse td:not(:first-child), .reveal table.glimpse th:not(:first-child) { text-align: right; }
.reveal table.glimpse td:last-child { font-weight: 700; color: var(--struct); }
/* v6: the vision statements */
.reveal .vision { display: flex; flex-direction: column; gap: 0.45em; font-size: 0.62em; text-align: left; }
.reveal .vision > div { padding: 0.5em 0.8em; border-radius: 8px; background: #ffffff; box-shadow: 1px 2px 5px rgba(0,0,0,0.12); border-left: 7px solid var(--struct); line-height: 1.35; }
.reveal .vision > .a { border-left-color: #b88a12; }
.reveal .vision > .g { border-left-color: #007a00; }
.reveal .vision > .r { border-left-color: var(--alert); }
.reveal .vision.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em 0.8em; }
/* v7: three levels of a claim (1968 · words · Python) */
.reveal .levels { display: flex; flex-direction: column; gap: 0.35em; text-align: left; }
.reveal .levels .lv { display: flex; gap: 0.7em; align-items: stretch; background: #ffffff; border-radius: 8px; box-shadow: 1px 2px 5px rgba(0,0,0,0.12); padding: 0.35em 0.6em; }
.reveal .levels .k { flex: 0 0 9%; font-size: 0.5em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.5em; }
.reveal .levels .v { flex: 1; min-width: 0; font-size: 0.6em; }
.reveal .levels .v p { margin: 0.15em 0; }
.reveal .levels .v .legend { font-size: 0.78em; color: var(--muted); margin-top: 0.3em; }
.reveal .levels .v pre { font-size: 0.82em; margin: 0.1em 0; }
.reveal .levels b.g { color: #007a00; }
.reveal .levels b.r { color: var(--alert); }

/* ---- One question, nothing else ---- */
.reveal .slides section.question-slide { justify-content: center; text-align: center; }
.reveal .question-slide .q { font-size: 1.45em; font-weight: 400; line-height: 1.45; margin: 0 auto; }
.reveal .question-slide .q b { font-weight: 700; }
.reveal .question-slide .q .a { color: var(--alert); }
.reveal .question-slide .q .b { color: var(--struct); }
.reveal .question-slide .q .g { color: var(--example); }

/* ---- Compact hero tiles: smaller hero numbers, one line each ---- */
.reveal .hero.compact .n { font-size: 1.3em; margin: 0.05em 0 0.1em; }

/* ---- Variability, as a feature model (Liskov, football) ---- */
.reveal .codecard.vcard pre { font-size: 0.5em; }
.reveal .codecard.vcard pre code { max-height: none; white-space: pre; line-height: 1.35; }

/* ---- Guided tour inside an animated SVG: a highlight shown only while its step is the current one ---- */
.reveal svg .tour-hl { opacity: 0; transition: opacity 0.25s; }
.reveal svg .fragment.current-fragment .tour-hl { opacity: 1; }
.reveal .vision.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5em 0.7em; font-size: 0.56em; margin-top: 0.3em; }

/* ---- Q&A rows: a question, a one-word answer, why ---- */
.reveal .qa .row { padding: 0.5em 0.5em; }
.reveal .qa .k { flex: 0 0 31%; }
.reveal .qa .ans { flex: 0 0 15%; font-size: 1.45em; font-weight: 700; line-height: 1.1; }
.reveal .qa .ans.r { color: var(--alert); }
.reveal .qa .ans.o { color: #9c6d00; }

/* Liskov: the teasers (method, review tool) on the thesis slide */
.reveal .teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-top: 0.4em; text-align: left; }
.reveal .teasers .tz { display: flex; align-items: center; gap: 0.6em; background: #ebebf7; border-left: 5px solid var(--struct); padding: 0.35em 0.6em; font-size: 0.52em; line-height: 1.35; }
.reveal .teasers .tz img { height: 4.4em; margin: 0; border: 1px solid #c8c8d8; box-shadow: 1px 1px 4px rgba(0,0,0,0.15); }
.reveal .teasers .h { font-weight: 700; color: var(--struct); margin-bottom: 0.2em; }
.reveal .teasers .chain span { display: inline-block; background: #ffffff; border: 1.5px solid var(--struct); border-radius: 1em; padding: 0.02em 0.55em; margin: 0.1em 0; white-space: nowrap; }
/* Liskov: variants of the regenerated program, side by side */
.reveal .variants3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; margin-top: 0.4em; font-size: 0.54em; text-align: left; }
.reveal .variants3 .vv { display: flex; gap: 0.5em; align-items: center; background: #ffffff; border: 1.6px dashed var(--alert); border-radius: 8px; padding: 0.3em 0.6em; line-height: 1.3; }
.reveal .variants3 .vv.lost { border-color: #9a9ab0; background: #f3f3f6; }
.reveal .variants3 .gl { flex: 0 0 auto; font-size: 2.1em; line-height: 1; font-weight: 700; color: var(--alert); }
.reveal .variants3 .lost .gl { color: #9a9ab0; }
/* Football: the data excerpt */
.reveal table.glimpse tr.hl td { background: #fbeeee; color: var(--alert); font-weight: 700; }
.reveal table.glimpse tr.more td { text-align: left; color: var(--muted); font-style: italic; font-weight: 400; }
.reveal table.glimpse td.hl { background: #fbeeee; color: var(--alert); }
.reveal table.glimpse.season td:last-child { font-weight: 400; color: inherit; }
.reveal table.glimpse.wide, .reveal table.glimpse.season { font-size: 0.47em; }
/* the feature-model logo, wherever variation points or UVL appear */
.reveal img.fmlogo { display: inline-block; height: 1.35em; width: auto; margin: 0 0.3em 0 0; vertical-align: -0.35em; border: 0; box-shadow: none; background: #ffffff; border-radius: 3px; }
.reveal .codecard .hd img.fmlogo { height: 1.5em; vertical-align: -0.45em; }
/* the talk in four slides (last main slide, for the questions) */
.reveal .recap4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em 1em; margin-top: 0.2em; }
.reveal .recap4 figure { margin: 0; text-align: center; }
.reveal .recap4 img { max-height: 236px; margin: 0; border: 1px solid #c8c8d8; box-shadow: 1px 2px 6px rgba(0,0,0,0.18); }
.reveal .recap4 figcaption { font-size: 0.5em; line-height: 1.3; margin-top: 0.25em; }
.reveal .recap4 .no { display: inline-block; min-width: 1.6em; margin-right: 0.4em; padding: 0 0.3em; border-radius: 0.8em; background: var(--struct); color: #ffffff; font-weight: 700; }
/* open challenges: eight tiles */
.reveal .challenges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5em 0.6em; text-align: left; margin-top: 0.3em; }
.reveal .challenges > div { background: #ffffff; border-radius: 10px; padding: 0.45em 0.6em 0.55em; box-shadow: 1px 2px 6px rgba(0,0,0,0.12); border-top: 6px solid var(--struct); }
.reveal .challenges > div.g { border-top-color: #007a00; }
.reveal .challenges > div.r { border-top-color: var(--alert); }
.reveal .challenges .h { font-size: 0.6em; font-weight: 700; line-height: 1.25; }
.reveal .challenges .h span { display: inline-block; width: 1.5em; height: 1.5em; line-height: 1.5em; margin-right: 0.4em; border-radius: 50%; background: var(--struct); color: #ffffff; text-align: center; font-size: 0.9em; }
.reveal .challenges .g .h span { background: #007a00; }
.reveal .challenges .r .h span { background: var(--alert); }
.reveal .challenges .t { font-size: 0.5em; line-height: 1.35; margin-top: 0.35em; }
.reveal .challenges .s { font-size: 0.42em; line-height: 1.3; margin-top: 0.4em; color: var(--muted); }
/* three don'ts */
.reveal .hero.dont .n { font-size: 1.15em; line-height: 1.15; margin-top: 0.15em; }
.reveal .hero.dont .t { font-size: 0.62em; }
.reveal .hero.dont .s { font-size: 0.46em; }

/* ---- Final variant (final.html: <html class="final">): no reference lines, the frame body zoomed to fill the frame
   (talk.js fitSlides); own publications cited in the frame itself (.cite) ---- */
html.final .reveal .ref { display: none; }
html.final .reveal .slides section:has(> .fitwrap) { padding: 80px 40px 32px !important; }
html.final .reveal .fitwrap { width: 100%; }
.reveal .cite { font-size: 0.8em; color: var(--muted); font-weight: 400; font-style: normal; }
/* closing frame: the talk in four slides, on top (links jump back) */
.reveal .recap-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 0.5em; margin: 0 0 0.5em; }
.reveal .recap-row a { display: block; color: var(--text); }
.reveal .recap-row figure { margin: 0; text-align: center; }
.reveal .recap-row img { width: 100%; height: auto; max-height: none; margin: 0; border: 1px solid #c8c8d8; box-shadow: 1px 2px 6px rgba(0,0,0,0.18); }
.reveal .recap-row figcaption { font-size: 0.46em; line-height: 1.3; margin-top: 0.25em; }
.reveal .recap-row .no { display: inline-block; min-width: 1.6em; margin-right: 0.4em; padding: 0 0.3em; border-radius: 0.8em; background: var(--struct); color: #ffffff; font-weight: 700; }
/* ethics slide: open questions as chips */
.reveal .openq { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35em 0.5em; margin: 0.7em 0 0; font-size: 0.56em; }
.reveal .openq b { color: var(--alert); margin-right: 0.2em; }
.reveal .openq span { border: 1.5px solid #d9a3a3; background: #fdf3f3; border-radius: 1em; padding: 0.1em 0.7em; }

/* Slide 2, the abstract: written by a human (gold, like the archived variants) · these slides, with a coding agent (red) */
.reveal .abs-text { font-size: 0.56em; line-height: 1.36; text-align: justify; hyphens: auto; background: #fffaf0; border-left: 5px solid #b88a12; padding: 0.15em 0.9em; }
.reveal .abs-text p { margin: 0.5em 0; }
.reveal .abs-side { text-align: center; }
.reveal .abs-side img.shot { width: 82%; }
.reveal .madewith { font-size: 0.6em; margin: 0.9em 0 0; padding: 0.5em 0.8em; border-left: 5px solid var(--alert); background: #fbeeee; text-align: left; line-height: 1.35; }
.reveal .redact { background: #222; color: transparent; border-radius: 2px; user-select: none; }

/* Room to grow in final.html: short hero numbers stay on one line (so the fit sees them overflow instead of wrapping);
   a quote set in mono (slide 5) wraps as prose */
.reveal .hero.compact .n { white-space: nowrap; }
.reveal pre.prose code { white-space: pre-wrap; }
/* Code cards: <code> as a block, so that every line gets the left padding (inline, only the first line did); its right
   margin outside the box, so that final.html's fit sees a line running into it as overflow */
.reveal .codecard pre code { display: block; overflow: visible; max-height: none; padding-right: 0; margin-right: 0.7em; }

/* EnhanceR: quotes from the papers and feature-model excerpts (UVL-like) inside tiles and under figures */
.reveal .hero .qt { font-size: 0.42em; font-style: italic; line-height: 1.3; margin-top: 0.45em; padding-left: 0.5em; border-left: 3px solid #c8c8d8; color: #333344; }
.reveal pre.fmx { font-family: 'Latin Modern Mono', Menlo, monospace; font-size: 0.36em; line-height: 1.4; width: auto; margin: 0.45em 0 0; padding: 0.35em 0.6em; background: #f3f3f9; border-left: 4px solid var(--struct); border-radius: 4px; box-shadow: none; white-space: pre-wrap; text-align: left; color: #22223a; }
.reveal pre.fmx b { color: var(--struct); }
.reveal pre.fmx i { color: var(--muted); }
.reveal pre.fmx .hot { color: var(--alert); font-weight: 700; }
.reveal .hero.four.stories.dv img { height: 96px; }

.reveal .hero pre.fmx { font-size: 0.43em; }
.reveal .hero.dv .qt { font-size: 0.44em; }

.reveal .hero.bigpic img { width: 100%; height: 150px; object-fit: contain; margin: 0.2em 0; }
.reveal .hero.bigpic .n { font-size: 1.15em; }

/* EnhanceR, slide 3: a fictive study instantiated in code (small file cards; .to = the change that gives variant 2) */
.reveal .snips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45em 0.6em; }
.reveal .snip { background: #f5f5fa; border: 1px solid #c9c9d6; border-radius: 6px; overflow: hidden; text-align: left; }
.reveal .snip .hd { font-size: 0.44em; font-weight: 700; color: #fff; background: var(--struct); padding: 0.2em 0.6em; }
.reveal .snip .hd span { font-weight: 400; opacity: 0.85; }
.reveal .snip pre { font-family: 'Latin Modern Mono', Menlo, monospace; font-size: 0.4em; line-height: 1.38; margin: 0; padding: 0.35em 0.6em; width: auto; box-shadow: none; white-space: pre; color: #22223a; }
.reveal .snip pre .v1 { color: var(--alert); font-weight: 700; }
.reveal .snip pre .to { color: #007a00; font-weight: 700; }
.reveal .snip pre i { color: var(--muted); }
.reveal .paperbox { border: 2px solid #a87700; background: #fbf3dc; border-radius: 8px; padding: 0.45em 0.7em; text-align: left; font-size: 0.56em; line-height: 1.35; }
.reveal .paperbox .res { font-family: 'Latin Modern Mono', Menlo, monospace; font-weight: 700; font-size: 1.05em; }
.reveal .runres { font-size: 0.6em; text-align: left; padding: 0.35em 0.7em; border-radius: 6px; margin-top: 0.4em; }
.reveal .runres code { font-size: 0.95em; background: none; }
.reveal .runres.ko { background: #fbeeee; border-left: 5px solid var(--alert); }
.reveal .runres.ok { background: #e8f3e8; border-left: 5px solid #007a00; }

/* EnhanceR: feature comparison matrix across chess engines (one row per engine, one column per feature) */
.reveal table.pcm { font-size: 0.36em; border-collapse: collapse; margin: 0; width: 100%; }
.reveal table.pcm th, .reveal table.pcm td { border: 1px solid #d0d0dc; padding: 0.12em 0.3em; text-align: center; line-height: 1.25; }
.reveal table.pcm th { background: var(--struct-light); font-weight: 700; }
.reveal table.pcm td.l, .reveal table.pcm th.l { text-align: left; font-weight: 700; white-space: nowrap; }
.reveal table.pcm td.a, .reveal table.pcm th.a { text-align: left; color: var(--muted); white-space: nowrap; }
.reveal table.pcm td.y { background: #cfe8cf; color: #005a00; font-weight: 700; }
.reveal table.pcm td.n { background: #fafafc; }
.reveal table.pcm .sep { border-left: 3px solid var(--struct); }
.reveal table.pcm td.c { font-weight: 700; color: var(--struct); }

/* EnhanceR: visible citations, bottom of the frame, in both variants (.pub.own = our own work) */
.reveal .pubs { position: absolute; left: 40px; right: 40px; bottom: 64px; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45em; justify-content: flex-end; font-size: 0.46em; line-height: 1.2; }
html.final .reveal .pubs { bottom: 31px; }
html.final .reveal .slides section:has(> .pubs) { padding-bottom: 62px !important; }
.reveal .pub { padding: 0.18em 0.7em; border-radius: 1em; border: 1.5px solid #9a9ab0; background: #ffffff; color: #333344; white-space: nowrap; }
.reveal .pub b { font-weight: 700; }
.reveal .pub.own { border-color: var(--struct); background: var(--struct); color: #ffffff; }
.reveal .pub::before { content: "▸ "; opacity: 0.7; }

/* EnhanceR: the reading grid of the coding-agent cases (agenda + recap), and the per-case tag */
.reveal table.grid { font-size: 0.5em; border-collapse: collapse; margin: 0.2em 0 0; width: 100%; line-height: 1.3; }
.reveal table.grid th { background: var(--struct); color: #ffffff; font-weight: 700; text-align: left; padding: 0.35em 0.6em; border: 1px solid var(--struct); }
.reveal table.grid th .fmlogo { background: #ffffff; border-radius: 3px; padding: 1px; }
.reveal table.grid td { border: 1px solid #d0d0dc; padding: 0.4em 0.6em; text-align: left; vertical-align: top; }
.reveal table.grid td.c { background: var(--struct-light); white-space: nowrap; }
.reveal table.grid small { display: block; font-size: 0.82em; color: var(--muted); font-weight: 400; white-space: normal; }
.reveal table.grid tr.ongoing td { border-top: 3px double #9a9ab0; color: #55556a; font-style: italic; }
.reveal table.grid .rr { display: inline-block; padding: 0.05em 0.55em; border-radius: 0.9em; font-weight: 700; color: #ffffff; }
.reveal table.grid .rr.p { background: #b07a00; }
.reveal table.grid .rr.l { background: #007a00; }
.reveal table.grid .ok { color: #007a00; font-weight: 700; }
.reveal table.grid .ko { color: var(--alert); font-weight: 700; }
.reveal table.grid.g2 { font-size: 0.46em; }
.reveal .casetag { display: flex; flex-wrap: wrap; gap: 0.45em; margin: -0.15em 0 0.5em; font-size: 0.47em; line-height: 1.25; }
.reveal .casetag span { padding: 0.16em 0.7em; background: #ebebf7; border-left: 4px solid var(--struct); }
.reveal .casetag span.n { background: var(--struct); color: #ffffff; font-weight: 700; border-left: 0; }
.reveal .casetag span.rr { background: #ffffff; border: 1.5px solid var(--struct); color: var(--struct); font-weight: 700; }

/* EnhanceR: minimal transition slide per case (a question), the agenda list, the complete grid */
.reveal .question-slide.case-q .casen { display: inline-block; margin: 0 auto 0.9em; padding: 0.15em 0.9em; border-radius: 1em; background: var(--struct); color: #ffffff; font-weight: 700; font-size: 0.8em; align-self: center; }
.reveal .question-slide.case-q .q { font-size: 1.55em; }
.reveal .question-slide.case-q .casesub { margin-top: 1em; font-size: 0.72em; color: var(--muted); }
.reveal ol.agenda { font-size: 0.86em; line-height: 1.3; margin: 0.4em 0 0 1.4em; display: block; }
.reveal ol.agenda li { margin: 0.42em 0; padding-left: 0.3em; }
.reveal ol.agenda li::marker { color: var(--struct); font-weight: 700; }
.reveal ol.agenda .by { display: inline-block; white-space: nowrap; font-size: 0.68em; padding: 0.08em 0.7em; border-radius: 1em; background: #ebebf7; color: #333344; margin-left: 0.5em; vertical-align: 0.1em; }
.reveal ol.agenda .by.ag { background: #fbeeee; color: var(--alert); }
.reveal table.grid.g3 { font-size: 0.45em; }
/* agenda keyed to the three questions */
.reveal .agq { font-size: 0.8em; margin: 0.35em 0 0.1em; line-height: 1.3; }
.reveal .agq .k { display: inline-block; min-width: 3.6em; text-align: center; margin-right: 0.5em; padding: 0.05em 0.6em; border-radius: 1em; background: var(--struct); color: #ffffff; font-weight: 700; font-size: 0.78em; vertical-align: 0.08em; }
.reveal .agq b.a { color: var(--alert); }
.reveal .agq small { display: block; margin-left: 5.9em; font-size: 0.74em; color: var(--muted); }
.reveal .agq + ol.agenda { font-size: 0.72em; margin-left: 5.6em; }
.reveal .agq + ol.agenda li { margin: 0.25em 0; }

/* Appendix (Haaland, the Janus effect): a formula line, with a short gloss */
.reveal .fx { font-family: var(--mono); font-size: 0.6em; line-height: 1.55; margin: 0.5em 0 0; padding: 0.35em 0.7em; background: #f3f3f9; border-left: 4px solid var(--struct); border-radius: 4px; text-align: left; color: #22223a; }
.reveal .fx b { color: var(--struct); }
.reveal .fx .hot { color: var(--alert); }
.reveal .fx .why { font-family: var(--sans); font-size: 0.82em; color: var(--muted); margin-left: 0.9em; }
.reveal .fx sub { font-size: 0.7em; }
/* ---- minimal style: take-away slides, one-line captions, intuition images ---- */
.reveal .slides section.key-slide { justify-content: center; background: #f4f4fb; }
.reveal .key-slide .kwrap { display: flex; align-items: center; gap: 1.6em; padding: 0 1.6em; }
.reveal .key-slide .kimg { flex: 0 0 36%; text-align: center; }
.reveal .key-slide .kimg img, .reveal .key-slide .kimg svg { max-height: 500px; max-width: 100%; border-radius: 6px; box-shadow: 0 6px 22px rgba(20, 20, 60, 0.28); }
.reveal .key-slide .kimg.plain img, .reveal .key-slide .kimg.plain svg { box-shadow: none; }
.reveal .key-slide .ktxt { flex: 1; text-align: left; }
.reveal .key-slide .ktag { display: inline-block; padding: 0.12em 0.9em; border-radius: 1em; background: var(--struct); color: #ffffff; font-weight: 700; font-size: 0.6em; letter-spacing: 0.04em; margin-bottom: 0.9em; }
.reveal .key-slide .k { font-size: 1.5em; line-height: 1.32; margin: 0; font-weight: 400; }
.reveal .key-slide .k + .k { margin-top: 0.55em; }
.reveal .key-slide .k b { font-weight: 700; }
.reveal .key-slide .k .a { color: var(--alert); } .reveal .key-slide .k .b { color: var(--struct); } .reveal .key-slide .k .g { color: var(--example); }
.reveal .key-slide .ksub { font-size: 0.82em; line-height: 1.4; color: #44445a; margin-top: 1em; }
.reveal .key-slide .credit { font-size: 0.34em; color: var(--muted); margin-top: 0.5em; line-height: 1.3; }
.reveal .key-slide.top .kwrap { flex-direction: column; gap: 1em; }
.reveal .key-slide.top .kimg { flex: none; width: 100%; }
.reveal .key-slide.top .kimg svg, .reveal .key-slide.top .kimg img { box-shadow: none; max-height: 300px; width: 100%; }
.reveal .key-slide.top .ktxt { text-align: center; }
.reveal .key-slide.center .ktxt { text-align: center; }
.reveal p.one { font-size: 0.86em; text-align: center; margin: 0.6em auto 0; line-height: 1.35; }
.reveal .bigfact { font-size: 0.95em; line-height: 1.35; text-align: left; margin-top: 0.9em; }
.reveal .bigfact b.n { font-size: 1.9em; color: var(--alert); display: block; line-height: 1.1; }
.reveal .bigfact.q { font-style: italic; border-left: 5px solid var(--struct); padding-left: 0.7em; }
.reveal .absq p { font-size: 0.82em; line-height: 1.4; text-align: left; margin: 0 0 0.75em; padding-left: 0.8em; border-left: 5px solid #d9b44a; }
.reveal .absq p.big { font-size: 1.15em; border-left-color: var(--alert); }
.reveal pre.fpdemo { font-size: 0.62em; width: auto; display: inline-block; margin: 1em auto 0; padding: 0.6em 1.2em; background: #1e1e2e; color: #e6e6f0; border-radius: 6px; text-align: left; box-shadow: none; align-self: center; line-height: 1.45; }
.reveal pre.fpdemo b { color: #ffcf6b; font-weight: 400; }
.reveal .funquote { font-size: 1.5em; font-style: italic; line-height: 1.3; text-align: left; margin: 0 0 0.6em; }
.reveal .imgcredit { font-size: 0.36em; color: var(--muted); margin: 0.3em 0 0; line-height: 1.3; }

.reveal .key-slide.merged .k { font-size: 1.28em; }
.reveal .key-slide.merged .ksub { font-size: 0.78em; }

.reveal .runres.rep { background: #ebebf7; border-left: 5px solid var(--struct); }
.reveal .snip pre .to2 { color: var(--struct); font-weight: 700; }
.reveal .snip.over { position: absolute; inset: 0; border: 2px solid var(--alert); background: #fffdf5; }
.reveal .snip.over .hd { background: var(--alert); }

.reveal .whotag { display: inline-block; padding: 0.12em 0.9em; margin: 0 0.5em 0.3em 0; border-radius: 1em; background: var(--struct); color: #ffffff; font-weight: 700; }

/* 30 Nov.: larger title page, variant space, failure modes, call for collaborations */
.reveal .titlepage .titlebox { padding: 0.75em 1.2em; }
.reveal .titlepage .titlebox h1 { font-size: 2.05em; }
.reveal .titlepage .titlebox p { font-size: 1.08em; }
.reveal .titlepage .author { font-size: 1.35em; }
.reveal .titlepage .institute, .reveal .titlepage .date { font-size: 0.92em; }
.reveal .titlepage .logos img { height: 54px; max-height: 54px; }
.reveal .vspace { margin-top: 0.5em; border: 1px solid #d0d0dc; border-radius: 6px; background: #fbfbfe; padding: 0.3em 0.5em; }
.reveal .vspace svg { width: 100%; height: auto; display: block; }
.reveal .fmodes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.7em; margin: 1em auto 0; max-width: 1120px; }
.reveal .fmodes > div { background: #fbeeee; border-top: 6px solid var(--alert); border-radius: 6px; padding: 0.9em 0.8em; font-size: 0.98em; font-weight: 700; text-align: left; line-height: 1.25; min-height: 4.2em; }
.reveal .fmodes > div span { display: inline-block; width: 1.5em; height: 1.5em; line-height: 1.5em; text-align: center; border-radius: 50%; background: var(--alert); color: #ffffff; margin-right: 0.45em; font-size: 0.85em; }
.reveal .fmodes > div.ok { background: #e8f3e8; border-top-color: #007a00; font-weight: 400; }
.reveal .fmodes > div.ok span { background: #007a00; }
.reveal .closing .collab { font-size: 0.86em; margin: 0 0 0.7em; padding: 0.4em 0.8em; background: #ebebf7; border-left: 5px solid var(--struct); border-right: 5px solid var(--struct); }

/* 30 Nov., second batch */
.reveal .titlepage .titlelinks { font-size: 0.92em; color: var(--struct); margin-top: 0.9em; }
.reveal .wholinks { font-size: 0.72em; color: var(--struct); }
.reveal .runrow { display: grid; grid-template-columns: 1fr; gap: 0.35em; margin-top: 0.55em; }
.reveal .runrow .runres { margin-top: 0; font-size: 0.72em; }
.reveal .hero.verdict .t p { margin: 0 0 0.45em; }
.reveal .artrow { display: flex; justify-content: center; align-items: center; gap: 0.5em; margin: 0 0 0.5em; }
.reveal .artrow img { height: 150px; width: auto; max-height: 150px; margin: 0; border-radius: 5px; box-shadow: 1px 2px 6px rgba(0,0,0,0.22); }

.reveal .key-slide.top.merged .kwrap { gap: 0.6em; }
.reveal .key-slide.top.merged .k { font-size: 1.18em; }
.reveal .key-slide.top.merged .k + .k { margin-top: 0.4em; }

/* 30 Nov., third batch */
.reveal .runrow { grid-template-columns: auto 1fr; align-items: stretch; gap: 0.35em 0.4em; }
.reveal .runrow .rr2 { display: flex; flex-direction: column; gap: 0.35em; }
.reveal .runrow .rl { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 0.5em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #ffffff; border-radius: 5px; padding: 0.5em 0.25em; }
.reveal .runrow .rl.repro { background: var(--struct); }
.reveal .runrow .rl.repli { background: #007a00; }
.reveal .closing .collab { font-size: 1.05em; margin-bottom: 0.8em; padding: 0.5em 0.9em; }
.reveal .closing .artrow img { height: 205px; max-height: 205px; }
.reveal .closing h1 { font-size: 2.3em; margin: 0.25em 0; }
.reveal .closing .logos img { height: 52px; max-height: 52px; }
.reveal .runrow .rl { writing-mode: horizontal-tb; transform: none; display: flex; align-items: center; justify-content: center; font-size: 0.52em; padding: 0.3em 0.7em; text-transform: none; letter-spacing: 0; }
.reveal .closing .artrow img { height: 160px; max-height: 160px; }
.reveal .closing h1 { font-size: 2em; margin: 0.2em 0; }
.reveal .closing .collab { font-size: 1em; margin-bottom: 0.6em; }

.reveal .question-slide .promptq { align-self: center; max-width: 880px; margin: 1em auto 0; padding: 0.55em 1em; font-size: 0.86em; font-style: italic; text-align: left; background: #1e1e2e; color: #f0f0f8; border-radius: 8px; border-left: 6px solid var(--alert); }
.reveal .question-slide .promptq span { display: block; font-style: normal; font-size: 0.62em; color: #ffcf6b; margin-bottom: 0.25em; letter-spacing: 0.03em; }

.reveal .agentlogos { display: flex; align-items: center; gap: 1.1em; margin-top: 0.9em; flex-wrap: wrap; }
.reveal .agentlogos > span { display: inline-flex; align-items: center; gap: 0.3em; font-weight: 700; color: #111122; font-size: 0.95em; }
.reveal .agentlogos img { height: 34px; max-height: 34px; width: auto; margin: 0; box-shadow: none; border-radius: 0; }
.reveal .agentlogos img.wm { height: 22px; max-height: 22px; }
.reveal .agentlogos .etc { color: var(--muted); }
.reveal .agentlogos { gap: 0.75em; flex-wrap: nowrap; }
.reveal .agentlogos > span { font-size: 0.82em; white-space: nowrap; }
.reveal .agentlogos img { height: 28px; max-height: 28px; }
.reveal .agentlogos img.wm { height: 18px; max-height: 18px; }

/* many domains, one centre */
.reveal .slides section.domains-slide { justify-content: center; }
.reveal .domgrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 186px); gap: 10px; width: 1060px; margin: 0 auto; }
.reveal .domgrid > div { overflow: hidden; border-radius: 8px; box-shadow: 0 2px 8px rgba(20,20,60,0.25); background: #ffffff; }
.reveal .domgrid img { width: 100%; height: 100%; max-height: none; object-fit: cover; margin: 0; display: block; }
.reveal .domgrid .dc { background: var(--struct); color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.reveal .domgrid .dc b { font-size: 1.05em; }
.reveal .domgrid .dc span { font-size: 0.6em; opacity: 0.85; }
.reveal .domgrid .dc i { font-style: normal; font-size: 0.8em; opacity: 0.8; line-height: 1; }
.reveal .domgrid .dc img.fmlogo { width: 44px; height: auto; background: #ffffff; border-radius: 4px; padding: 2px; margin-bottom: 0.2em; }
.reveal .domains-slide .credit { font-size: 0.32em; color: var(--muted); margin-top: 0.6em; text-align: center; }

.reveal .domgrid .dc b { font-size: 0.92em; line-height: 1.3; }
.reveal .domgrid .dc img.fmlogo { width: 38px; height: 38px; max-height: 38px; object-fit: contain; margin: 0 0 0.25em; }

.reveal img.mepic { position: absolute; right: 0; top: -8px; width: 150px; height: 150px; max-height: 150px; border-radius: 50%; border: 4px solid #ffffff; box-shadow: 0 3px 12px rgba(20,20,60,0.35); margin: 0; object-fit: cover; }
.reveal img.mepic { top: -112px; right: 4px; width: 138px; height: 138px; max-height: 138px; }

.reveal .slides section.domains-slide { padding: 14px 16px 40px !important; }
.reveal .domgrid { width: 100%; grid-template-rows: repeat(3, 214px); gap: 9px; }
.reveal .domgrid .dc { background: var(--struct); box-shadow: 0 0 0 5px #d9a520, 0 4px 16px rgba(20,20,60,0.45); z-index: 2; }
.reveal .domgrid .dc b { font-size: 1.5em; line-height: 1.28; display: flex; align-items: center; gap: 0.25em; }
.reveal .domgrid .dc b i { font-style: normal; font-weight: 400; opacity: 0.8; }
.reveal .domgrid .dc img.fmlogo { width: 46px; height: 46px; max-height: 46px; margin: 0; }
