/* ==========================================================================
   AAGI deck: modern design layer
   Loaded after the anu-light theme. Palette: AAGI green ink + ANU gold on a
   warm cream canvas, white cards with soft shadows, Inter for all text.
   ========================================================================== */

@font-face {
  font-family: "Caveat";
  src: url("fonts/Caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #203c34;        /* AAGI deep green: headings and key text */
  --ink-soft: #44564d;   /* body copy inside cards */
  --muted: #627168;      /* secondary text, notes */
  --gold: #be830e;       /* ANU gold: accents */
  --gold-ink: #806423;   /* gold for small text (AA contrast on white) */
  --gold-soft: #f4e8cf;  /* icon chips, pills */
  --gold-light: #f1c56d; /* gold on dark green */
  --cream: #f8f6ef;      /* slide canvas (matches title slide) */
  --paper: #ffffff;      /* cards */
  --line: #e7e0d0;       /* hairlines */
  --radius: 22px;
  --shadow: 0 1px 2px rgba(32, 60, 52, 0.06), 0 14px 36px -18px rgba(32, 60, 52, 0.30);
  --font: "Inter", "Aptos", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Canvas & typography ------------------------------------------ */

.reveal-viewport { background-color: var(--cream); }
.reveal { font-family: var(--font); color: var(--ink); }
.reveal .slides { text-align: left; }
.reveal h1, .reveal h2, .reveal h3, .reveal h4 { font-family: var(--font); }
.reveal strong { font-weight: 650; }

.reveal .slides > section.slide:not(#title-slide) {
  box-sizing: border-box;
  padding: 36px 40px 0;
  color: var(--ink);
}

/* Slide heading: same size and position on every slide, with a gold tab. */
.reveal .slides > section.slide > h2 {
  position: relative;
  margin: 0 0 36px;
  padding-top: 30px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink) !important;
  text-wrap: balance;
}
.reveal .slides > section.slide > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: var(--gold);
}

/* Statement slides: the heading becomes a small eyebrow so the big message leads. */
.reveal .slides > section.statement-slide > h2 {
  margin-bottom: 30px;
  padding-top: 28px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink) !important;
}

/* ---------- Shared building blocks --------------------------------------- */

.reveal .lead {
  margin: 0 0 32px;
  font-size: 34px;
  line-height: 1.4;
  color: var(--muted);
}
.reveal .lead strong { color: var(--ink); }

.reveal .slide-note {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
}
.reveal .slide-note.big { font-size: 28px; }
.reveal .slide-note strong { color: var(--ink); }

.reveal .eyebrow {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Every card shares one surface treatment. */
.reveal .people-priority,
.reveal .pub-card,
.reveal .recognition-card,
.reveal .aagi-reference-card,
.reveal .invitation-card,
.reveal .student-pathway,
.reveal .pillar,
.reveal .chart-card,
.reveal .rank-card,
.reveal .person,
.reveal .gen-person {
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Icon chip used at the top of cards. */
.reveal .people-priority .fa-solid,
.reveal .pillar .fa-solid {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 32px;
  line-height: 1;
}

/* ---------- AAGI aims: three pillars ------------------------------------- */

#aagi-aims .aagi-cycle {
  position: relative;
  width: 100%;
  max-width: 1640px;
  aspect-ratio: 1640 / 800;
  margin: 0 auto;
  container-type: inline-size;
}
#aagi-aims .cycle-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: visible;
}
#aagi-aims .pillar {
  position: absolute;
  width: 36%;
  height: 22.5%;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 0 1.8cqw;
  text-align: left;
}
#aagi-aims .pillar .fa-solid {
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 1.2cqw;
  font-size: 1.95cqw;
}
#aagi-aims .pillar strong {
  display: block;
  font-size: 2cqw;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#aagi-aims .pillar span:not(.fa-solid) {
  display: block;
  margin-top: 0.6cqw;
  font-size: 1.55cqw;
  line-height: 1.35;
  color: var(--ink-soft);
}
#aagi-aims .service { top: 0; left: 32%; }
#aagi-aims .research { top: 77.5%; left: 3%; }
#aagi-aims .upskilling { top: 77.5%; right: 3%; }
#aagi-aims .shared-aim {
  position: absolute;
  top: 50.6%;
  left: 50%;
  width: 28%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  padding: 1.6cqw 1.7cqw;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px -20px rgba(32, 60, 52, 0.7);
}
#aagi-aims .shared-aim strong {
  display: block;
  font-size: 1.95cqw;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
#aagi-aims .shared-aim span:not(.small) {
  display: block;
  margin-top: 0.6cqw;
  font-size: 1.4cqw;
  line-height: 1.3;
  color: #d3dfd8;
}
#aagi-aims .shared-aim .small {
  display: block;
  margin-top: 1.1cqw;
  font-size: 1cqw;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Cereals chart ------------------------------------------------- */

#cereals-by-type-2024 .chart-card { padding: 18px 26px 8px; }
#cereals-by-type-2024 .chart-card .cell,
#cereals-by-type-2024 .chart-card .quarto-figure,
#cereals-by-type-2024 .chart-card figure,
#cereals-by-type-2024 .chart-card figure p { margin: 0; }
#cereals-by-type-2024 .chart-card img { display: block; width: 100%; height: auto; margin: 0; }

.reveal .insight {
  margin: 20px 0 0;
  padding: 20px 30px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 28px;
  line-height: 1.35;
}
.reveal .insight strong { color: var(--gold-light); }
.reveal .insight .small {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  color: #c9d6cf;
}
#cereals-by-type-2024 .slide-note { margin-top: 14px; font-size: 19px; line-height: 1.35; }

/* ---------- People / statement pattern ----------------------------------- */

.aagi-people { color: var(--ink); }
/* Part openers: the part's title beside a doodle (images/doodle-*.svg, drawn by code/part-doodles.py) */
.part-layout { display: grid; grid-template-columns: minmax(0, 1fr) 760px; align-items: center; column-gap: 60px; margin-top: 40px; }
.part-layout .people-message { margin: 0; }
.reveal .part-doodle { display: block; width: 760px; height: auto; max-width: none; max-height: none; margin: 0; }
.aagi-people .people-message {
  margin: 0 0 22px;
  font-size: 92px;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}
.aagi-people .people-intro {
  margin: 0 0 52px;
  font-size: 36px;
  line-height: 1.4;
  color: var(--muted);
}
.aagi-people .people-intro strong { color: var(--ink); }
.aagi-people .people-intro.big {
  margin-bottom: 44px;
  font-size: 44px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.aagi-people .people-priorities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.aagi-people .people-priority { padding: 34px 36px 38px; }
.aagi-people .people-priority .fa-solid { margin-bottom: 26px; }
.aagi-people .people-priority strong {
  display: block;
  margin-bottom: 12px;
  font-size: 37px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.aagi-people .people-priority span:not(.fa-solid) {
  display: block;
  font-size: 28px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.aagi-people .people-outro {
  margin: 44px 0 0;
  font-size: 36px;
  line-height: 1.4;
  color: var(--ink);
}

/* Across generations: people as avatar cards joined by a line. */
.gen-people {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.gen-people::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ink));
  opacity: 0.35;
}
.gen-person {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
}
.gen-person .avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gen-person:nth-child(even) .avatar { background: var(--gold); }
.gen-person strong { font-size: 34px; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- AAGIverse project aims --------------------------------------- */

#aagiverse-project-aims .columns { display: flex; align-items: center; gap: 56px; }
#aagiverse-project-aims ol {
  list-style: none;
  counter-reset: aim;
  margin: 0;
  padding: 0;
}
#aagiverse-project-aims ol li {
  counter-increment: aim;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 22px;
  padding: 28px 32px;
  font-size: 36px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#aagiverse-project-aims ol li::before {
  content: counter(aim);
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
#aagiverse-project-aims ol li p { margin: 0; }
#aagiverse-project-aims .column img {
  box-sizing: border-box;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- AAGIverse shared code: site in a browser frame ---------------- */

.browser {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: #f1ede3;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}
.browser-bar .dots { display: flex; gap: 10px; }
.browser-bar .dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d8cfbb;
}
.browser-bar .url {
  flex: 1;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 20px;
}
.browser-bar a { font-weight: 600; text-decoration: none; }
.browser iframe { display: block; width: 100%; height: 720px; border: 0; }

/* ---------- Highly cited papers table ------------------------------------ */

.aagi-ranking { color: var(--ink); }
.aagi-ranking .lead { margin-bottom: 22px; font-size: 28px; }
.aagi-ranking .ranking-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.aagi-ranking .rank-card { padding: 6px 26px 10px; }
.reveal .aagi-ranking table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.reveal .aagi-ranking th {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}
.reveal .aagi-ranking td {
  padding: 11px 8px;
  border-bottom: 1px solid #f0ebe0;
  vertical-align: middle;
}
.reveal .aagi-ranking tbody tr:last-child td { border-bottom: 0; }
.aagi-ranking .rank-number {
  font-size: 28px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.aagi-ranking .rank-title {
  display: block;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.22;
  text-decoration: none;
  color: var(--ink) !important;
}
.aagi-ranking td p { margin: 5px 0 0; font-size: 19px; line-height: 1.25; color: var(--muted); }
.aagi-ranking .rank-count {
  font-size: 27px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.aagi-ranking .rank-count a { text-decoration: none; }

/* ---------- Overseas reach ----------------------------------------------- */

.reach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}
.invitation-card { padding: 28px 32px; color: var(--ink); }
.invitation-card .invitation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  margin-bottom: 14px;
}
.invitation-card .invitation-name { font-size: 46px; font-weight: 750; letter-spacing: -0.03em; }
.invitation-card .invitation-logo img { display: block; width: 150px; height: auto; margin: 0; }
.invitation-card .invitation-date {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.invitation-card .invitation-event {
  margin-bottom: 14px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.invitation-card .invitation-event.sm { font-size: 30px; }
.invitation-card .invitation-talk { margin-bottom: 20px; font-size: 27px; line-height: 1.4; color: var(--muted); }
.invitation-card .invitation-shot {
  display: block;
  width: auto;
  height: 280px;
  max-width: 100%;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(32, 60, 52, 0.5);
}
.invitation-card .invitation-split {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 20px;
  align-items: start;
}
.invitation-card .invitation-split figure { margin: 0; }
.invitation-card .invitation-split img {
  display: block;
  width: 190px;
  height: auto;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(32, 60, 52, 0.5);
}
.reveal .slide .invitation-card figure > figcaption { margin-top: 8px; font-size: 17px; line-height: 1.3; color: var(--muted); }
.invitation-card .invitation-link { margin-top: 10px; font-size: 22px; }
.invitation-card .invitation-next { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.invitation-card .invitation-place { margin-top: 18px; font-size: 30px; color: var(--muted); }

/* ---------- Publications ------------------------------------------------- */

.aagi-pubs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  color: var(--ink);
}
.aagi-pubs .pub-card { display: flex; flex-direction: column; padding: 30px 36px; }
.aagi-pubs .pub-name { margin: 0; font-size: 44px; font-weight: 750; line-height: 1.1; letter-spacing: -0.03em; }
.aagi-pubs .pub-affil { margin: 8px 0 0; font-size: 24px; color: var(--muted); }
.aagi-pubs .pub { margin-top: 26px; }
.aagi-pubs .pub + .pub { padding-top: 22px; border-top: 1px solid var(--line); }
.aagi-pubs .pub-venue {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}
.aagi-pubs .pub-title { margin: 0 0 10px; font-size: 29px; font-weight: 650; line-height: 1.3; }
.aagi-pubs .pub-link { margin: 0; font-size: 21px; }
.aagi-pubs .pub-authors {
  margin: auto 0 0;
  padding-top: 22px;
  font-size: 23px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------- Students ------------------------------------------------------ */

.aagi-students {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  color: var(--ink);
}
.aagi-students .student-pathway { padding: 30px 36px; }
.aagi-students .pathway-title { margin-bottom: 18px; font-size: 36px; font-weight: 750; letter-spacing: -0.02em; }
.aagi-students .student-example + .student-example {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.aagi-students .student-name { font-size: 31px; font-weight: 700; }
.aagi-students .student-project { margin-top: 6px; font-size: 25px; line-height: 1.35; color: var(--ink-soft); }
.aagi-students .student-supervisors { margin-top: 4px; font-size: 23px; line-height: 1.35; color: var(--muted); }
.aagi-students .pathway-link { margin-top: 20px; font-size: 22px; }

/* ---------- A strong Australian tradition -------------------------------- */

.tradition-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 28px;
  align-items: start;
}
.person-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.person {
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(32, 60, 52, 0.05);
}
.person strong { display: block; margin: 0 0 4px; font-size: 25px; letter-spacing: -0.01em; color: var(--ink); }
.person a,
.person span {
  display: block;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-soft) !important;
  text-decoration: none;
}
.person span a { display: inline; }
.tradition-notes { grid-column: 1 / -1; }
.tradition-notes .fisher-note { margin: 14px 0 12px; font-size: 23px; line-height: 1.35; }
.tradition-notes .asreml-note {
  padding: 16px 22px;
  border-left: 5px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: var(--paper);
  font-size: 23px;
  line-height: 1.4;
}
.tradition-papers {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.tradition-papers .papers-heading {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.tradition-papers .cited-paper + .cited-paper {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.tradition-papers .paper-authors { margin-bottom: 6px; font-size: 19px; line-height: 1.3; color: #b9cbc1; }
.tradition-papers .paper-authors strong { color: #fff; }
.reveal .tradition-papers .paper-title {
  display: block;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  color: #fff !important;
}
.tradition-papers .paper-metric { margin-top: 6px; font-size: 21px; font-weight: 700; }
.reveal .tradition-papers .paper-metric a { color: var(--gold-light) !important; text-decoration: none; }
.tradition-papers .paper-note { margin-top: 6px; font-size: 17px; line-height: 1.3; color: #b9cbc1; }

/* ---------- Recognition --------------------------------------------------- */

.aagi-recognition { color: var(--ink); }
.aagi-recognition .recognition-intro {
  margin-bottom: 28px;
  font-size: 32px;
  line-height: 1.35;
  color: var(--muted);
}
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.recognition-card { padding: 26px 32px; }
.reveal .recognition-card h3 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.recognition-card p { margin: 10px 0; font-size: 26px; line-height: 1.38; color: var(--ink-soft); }
.recognition-card p strong { color: var(--ink); }
.reveal .recognition-card a {
  color: var(--ink) !important;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Reference cards ---------------------------------------------- */

.aagi-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  color: var(--ink);
}
.aagi-reference-card { display: flex; flex-direction: column; padding: 26px 32px; }
.aagi-reference-card .ref-authors { margin-bottom: 10px; font-size: 23px; line-height: 1.3; color: var(--muted); }
.aagi-reference-card .ref-authors strong { color: var(--ink); }
.reveal .aagi-reference-card .ref-title {
  display: block;
  margin-bottom: 10px;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink) !important;
}
.aagi-reference-card .ref-journal { margin-bottom: 12px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--gold-ink); }
.aagi-reference-card .ref-contribution { margin-bottom: 18px; font-size: 24px; line-height: 1.38; color: var(--ink-soft); }
.aagi-reference-card .ref-metric { margin-top: auto; }
.reveal .aagi-reference-card .ref-metric a {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--gold-ink) !important;
}

/* ---------- Community event ---------------------------------------------- */

.community { width: 64%; }
.community .lead { color: var(--ink); }
.reveal .community ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reveal .community li {
  margin: 0;
  padding: 22px 28px;
  font-size: 27px;
  line-height: 1.35;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.reveal .community li strong { display: block; font-size: 31px; color: var(--ink); }

/* AAGI logo in the hub of the AAGI aims diagram */
#aagi-aims .shared-aim .aims-logo {
  display: block;
  height: 4.6cqw;
  width: auto;
  margin: 0 auto 1.1cqw;
}

/* Short qualifier under a statement */
.aagi-people .people-kicker {
  margin: -4px 0 30px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold-ink);
}

/* NITP: lead with photo and partner list */
.nitp-lead { display: flex; align-items: center; gap: 28px; margin: 0 0 44px; }
.nitp-lead .lead-photo {
  position: relative;
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold);
}
.nitp-lead .lead-photo span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
}
.nitp-lead .nitp-partners {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-ink);
}

/* Equipping analysts + AAGIverse aims (combined slide) */
#equipping-analysts .people-intro { margin-bottom: 40px; }
.enable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.reveal .aim-list > ol { display: block; list-style: none; counter-reset: aim; margin: 0; padding: 0; }
.reveal .aim-list li {
  counter-increment: aim;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 18px;
  padding: 22px 28px;
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.aim-list li::before {
  content: counter(aim);
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.enable-cards { display: grid; gap: 18px; padding-top: 46px; }
.aagi-people .enable-cards .people-priority {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
}
.aagi-people .enable-cards .people-priority .fa-solid { margin: 0; width: 64px; height: 64px; font-size: 28px; }
.aagi-people .enable-cards .people-priority strong { margin-bottom: 4px; font-size: 30px; }
.aagi-people .enable-cards .people-priority span:not(.fa-solid) { font-size: 24px; line-height: 1.4; }

/* Community event: talk dates */
.reveal .community .talk-date {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.reveal .community .talk-date.upcoming { color: var(--gold); }
.reveal .community li:has(.upcoming) { border: 2px dashed var(--gold); box-shadow: none; }

/* Community event: calendar layout */
.community { width: 68%; }
.cal-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.cal-page {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.cal-month {
  padding: 12px 0;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cal-day {
  padding: 14px 0 6px;
  font-size: 84px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.cal-talks {
  flex: 1;
  margin: 8px 18px 0;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
}
.reveal .cal-talks p { margin: 0; font-size: 22px; line-height: 1.35; color: var(--ink-soft); }
.reveal .cal-talks p + p { margin-top: 12px; }
.cal-talks strong { font-size: 25px; color: var(--ink); }
.cal-page.upcoming { border: 2px dashed var(--gold); box-shadow: none; background: #fffdf8; }
.cal-page.upcoming .cal-month { background: var(--gold); }
.reveal .cal-talks .cal-badge {
  display: inline-block;
  line-height: 1.35;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Community event: institution logos at the foot of each calendar page */
.cal-talks { display: flex; flex-direction: column; align-items: center; }
.reveal .cal-talks .cal-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 90%;
  margin: auto 0 0;
  padding-top: 18px;
  object-fit: contain;
}

/* GRDC statement slide: give the single message more room */
#grdc-biggest-asset .aagi-people { margin-top: 120px; }
#grdc-biggest-asset .people-message { font-size: 92px; max-width: 1640px; }
#grdc-biggest-asset .grdc-logo {
  position: absolute;
  top: 56px;
  right: 40px;
  height: 130px;
  width: auto;
  margin: 0;
}

/* Australian biometry on the world stage: papers + recognition + ASReml */
.stage-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.top-card,
.honours-card {
  padding: 24px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.reveal .top-list > ol { display: block; list-style: none; margin: 0; padding: 0; }
.reveal .top-list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe0;
}
.reveal .top-list li:last-child { border-bottom: 0; }
.top-rank { font-size: 26px; font-weight: 750; color: var(--gold); font-variant-numeric: tabular-nums; }
.reveal .top-paper a {
  display: block;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink) !important;
}
.top-paper .small { display: block; margin-top: 2px; font-size: 17px; color: var(--muted); }
.top-paper .small strong { color: var(--ink); }
.reveal .top-cites {
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.top-note { font-size: 16px; color: var(--muted); }
.stage-side { display: flex; flex-direction: column; gap: 22px; }
.reveal .honours > ul { display: block; list-style: none; margin: 0; padding: 0; }
.reveal .honours li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ebe0;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.reveal .honours li:last-child { border-bottom: 0; }
.honours li > .fa-solid {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 19px;
}
.honours li strong { display: block; font-size: 21px; color: var(--ink); }
.asreml-card {
  flex: 1;
  padding: 24px 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.asreml-card .eyebrow { color: var(--gold-light); }
.asreml-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.asreml-stats strong {
  display: block;
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold-light);
}
.asreml-stats span { display: block; margin-top: 8px; font-size: 19px; line-height: 1.35; color: #d3dfd8; }
.asreml-src { font-size: 16px; }
.reveal .asreml-src a { color: var(--gold-light) !important; }
/* tighten the world-stage slide */
.reveal .top-list li { margin: 0; padding: 5px 0; line-height: 1.2; }
.reveal .top-paper a { font-size: 20px; }
.top-paper .small { font-size: 16px; }
.top-rank { font-size: 24px; }
.reveal .top-cites { font-size: 22px; }
.top-card .eyebrow, .honours-card .eyebrow, .asreml-card .eyebrow { margin-bottom: 10px; }
.reveal .honours li { margin: 0; padding: 8px 0; }
.asreml-card { flex: none; }

/* World stage: highlight the people */
.people-card {
  padding: 18px 26px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.people-card .eyebrow { margin-bottom: 12px; }
.person-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
}
.person-chip .ini {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.stage-side { gap: 18px; }
#world-stage .top-paper .small strong,
#world-stage .honours li span { }
#world-stage .top-paper .small strong { color: var(--gold-ink); }
.honours .nm { font-weight: 650; color: var(--gold-ink); }
.reveal .insight .insight-role {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}

/* Combined GRDC + small gains slide */
#cereals-by-type-2024 .grdc-logo {
  position: absolute;
  top: 56px;
  right: 40px;
  height: 120px;
  width: auto;
  margin: 0;
}
#cereals-by-type-2024 > h2 { margin-bottom: 14px; max-width: calc(100% - 300px); }
.reveal .insight .big-word {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold-light);
}

/* GRDC slide: chart beside the small-gains estimate, statistics banner below */
.gains-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
}
.gains-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.gains-card .eyebrow { color: var(--gold-light); margin-bottom: 18px; }
.reveal .gains-card :is(p, div) { margin: 0; }
.reveal .gains-card .gains-big {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}
.reveal .gains-card .gains-big.gold { color: var(--gold-light); }
.reveal .gains-card .gains-sub { margin-top: 4px; font-size: 22px; color: #d3dfd8; }
.reveal .gains-card .gains-eq { margin: 8px 0 4px; font-size: 34px; font-weight: 700; color: var(--gold-light); }
.reveal .gains-card .gains-vs {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 22px;
  line-height: 1.35;
  color: #d3dfd8;
}
.reveal .gains-card .gains-vs strong { color: #fff; }
.reveal .gains-card .gains-note { margin-top: 12px; font-size: 16px; color: #a9bdb2; }
.reveal .stats-banner {
  margin: 20px 0 0;
  padding: 18px 28px;
  border-left: 6px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.reveal .stats-banner .big-word {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
}

/* heritable: international contribution */
.contrib-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: stretch;
}
.contrib-person,
.contrib-prs {
  padding: 30px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contrib-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.contrib-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold);
}
.reveal .contrib-name { margin: 0; font-size: 44px; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); }
.reveal .contrib-where { margin: 4px 0 0; font-size: 24px; font-weight: 600; color: var(--gold-ink); }
.reveal .contrib-bio { margin: 0 0 24px; font-size: 26px; line-height: 1.45; color: var(--ink-soft); }
.ctb-code {
  padding: 18px 22px;
  border-radius: 14px;
  background: #1c2b26;
  color: #e7efe9;
  font-family: SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  line-height: 1.5;
}
.ctb-code .c { color: #8fa69b; }
.ctb-code .s { color: var(--gold-light); }
.contrib-prs { display: flex; flex-direction: column; gap: 14px; }
.contrib-prs .eyebrow { margin-bottom: 4px; }
.reveal .contrib-prs .pr {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf9f4;
  font-size: 25px;
  line-height: 1.35;
  color: var(--ink-soft) !important;
  text-decoration: none;
}
.contrib-prs .pr strong { color: var(--ink); }
.pr-num {
  flex: none;
  min-width: 76px;
  padding: 6px 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}
.reveal .contrib-src { margin-top: auto; font-size: 18px; color: var(--muted); }

/* Overseas reach: three speaker cards */
.reach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.invitation-card { padding: 24px 26px; }
.invitation-card .invitation-name { font-size: 38px; }
.invitation-card .invitation-logo img { width: 120px; }
.invitation-card .invitation-date { font-size: 17px; }
.invitation-card .invitation-event { font-size: 28px; }
.invitation-card .invitation-event.sm { font-size: 25px; }
.invitation-card .invitation-talk { font-size: 23px; }
.invitation-card .invitation-shot { height: auto; width: 100%; }
.invitation-card .invitation-split { grid-template-columns: 1fr 150px; }
.invitation-card .invitation-split img { width: 150px; }
.invitation-card .invitation-place { font-size: 24px; margin-top: 12px; }
.invitation-card .invitation-link { font-size: 20px; }

/* heritable: contributor's guide strip */
.guide-strip {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.guide-head .eyebrow { margin-bottom: 8px; color: var(--gold-light); }
.reveal .guide-head .guide-lead { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.25; }
.reveal .guide-head a { font-size: 19px; color: var(--gold-light) !important; }
.reveal .guide-steps > ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reveal .guide-steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 19px;
  line-height: 1.35;
  color: #d3dfd8;
}
.reveal .guide-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}
.reveal .guide-steps li strong { display: block; margin-bottom: 4px; font-size: 22px; color: #fff; }
.reveal .guide-steps code { font-size: 0.9em; color: var(--gold-light); background: none; }
/* world stage: area tags instead of rank numbers */
.reveal .top-list li { grid-template-columns: 206px 1fr auto; }
.top-area {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* People chips: mark those still involved in AAGI */
.people-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.people-card-head .eyebrow { margin: 0; }
.active-key { font-size: 16px; font-weight: 700; color: var(--ink); }
.active-key .fa-solid { color: var(--gold); }
.person-chip.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.person-chip.active .ini { background: var(--gold-light); color: var(--ink); }
.person-chip.active .fa-solid { margin-left: 2px; font-size: 14px; color: var(--gold-light); }
.person-chips { gap: 8px; }
.person-chip { font-size: 17px; padding-right: 12px; }
.aagi-students .student-title { font-style: italic; font-size: 21px; line-height: 1.3; }
/* Tighter student list so project titles fit */
.aagi-students .student-pathway { padding: 26px 36px; }
.aagi-students .pathway-title { margin-bottom: 12px; }
.aagi-students .student-example + .student-example { margin-top: 12px; padding-top: 12px; }
.aagi-students .student-name { font-size: 28px; }
.aagi-students .student-project { margin-top: 3px; font-size: 23px; }
.aagi-students .student-title { font-size: 20px; }
.aagi-students .student-supervisors { margin-top: 2px; font-size: 21px; }
.aagi-students .pathway-link { margin-top: 14px; }
.aagi-students { grid-template-columns: 1.75fr 1fr; }
.aagi-students .student-project .student-supervisors { display:inline; margin:0; }
.intake-note { display:flex; gap:16px; align-items:flex-start; margin-top:26px; padding:18px 22px; background:var(--gold-soft); border-radius:16px; color:var(--ink); }
.intake-note .fa-solid { font-size:30px; color:var(--gold-ink); margin-top:4px; }
.intake-note p, .intake-note :where(.intake-body > div) { margin:0; font-size:24px; line-height:1.4; }
.intake-note .intake-label { font-size:16px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold-ink); margin-bottom:4px; }
.aagi-students .pathway-sub { margin:-6px 0 12px; font-size:24px; color:var(--muted); }
.reveal .students-lead { font-size: 28px; line-height: 1.4; margin-bottom: 22px; max-width: none; }

/* Running title above a slide heading (e.g. full AAGI name on the aims slide) */
.reveal .slides > section.slide > h2 .running-title {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Quick-turnaround email snippets ------------------------------ */

#quick-turnaround .email-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
#quick-turnaround .email-card {
  box-sizing: border-box;
  margin: 0;
  padding: 30px 38px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 8px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#quick-turnaround .email-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--muted);
}
#quick-turnaround .email-head .fa-solid {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 24px;
}
#quick-turnaround .email-from { font-weight: 600; color: var(--ink-soft); }
#quick-turnaround .email-flag {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#quick-turnaround blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  width: auto;
  font-size: 36px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: left;
}
#quick-turnaround blockquote mark {
  padding: 0 0.15em;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--ink);
  box-shadow: inset 0 -0.18em 0 var(--gold-light);
}
#quick-turnaround .email-subject {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
#quick-turnaround .email-subject span {
  margin-right: 8px;
  font-weight: 500;
  color: var(--muted);
}

/* AAGI's biggest asset: GRDC follow-up message revealed as a fragment */
#aagi-biggest-asset .people-intro { margin-bottom: 24px; }
#aagi-biggest-asset .people-silhouettes { display: block; width: 100%; height: auto; max-height: 230px; margin: 0; }
#aagi-biggest-asset .grdc-message { margin-top: 70px; }

/* "arguably": a playful handwritten insertion with a proofreader's caret */
.reveal .hedge {
  position: relative;
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin: 0 -0.08em;
}
.reveal .hedge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.04em;
  width: 0.32em;
  height: 0.32em;
  border-left: 0.06em solid var(--gold);
  border-top: 0.06em solid var(--gold);
  border-radius: 0.03em;
  transform: translateX(-50%) rotate(45deg);
}
.reveal .hedge-word {
  position: absolute;
  left: 50%;
  bottom: 1.2em;
  transform: translateX(-50%) rotate(-7deg);
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--gold);
}
.reveal .fragment.visible .hedge-word { animation: hedge-scribble 0.6s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes hedge-scribble {
  from { opacity: 0; transform: translateX(-50%) translateY(0.3em) rotate(-16deg) scale(0.6); }
  to   { opacity: 1; transform: translateX(-50%) rotate(-7deg) scale(1); }
}

#quick-turnaround > h2 { margin-bottom: 14px; }
#quick-turnaround .turnaround-lead { margin: 0 0 30px; font-size: 32px; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* Context label spanning the 2nd and 3rd emails */
#quick-turnaround .email-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
#quick-turnaround .email-card { grid-row: 2; }
#quick-turnaround .email-context {
  grid-row: 1;
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--gold);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-ink);
}
#quick-turnaround .email-context .fa-solid { font-size: 26px; }
#quick-turnaround .shortage { display: flex; align-items: center; gap: 22px; margin-top: 26px; padding: 26px 36px; font-size: 42px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
#quick-turnaround .shortage .fa-solid { color: var(--gold-light); font-size: 40px; }

/* Last slide: closing reminder about data experts */
#sustaining-aagi .closing-asset { margin-top: 44px; padding-top: 30px; border-top: 4px solid var(--gold); }
#sustaining-aagi .closing-message { margin: 0; font-size: 56px; font-weight: 750; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }
#sustaining-aagi .closing-twist { margin: 12px 0 0; font-size: 44px; font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; color: var(--gold-ink); }

/* Students: where they are now */
.aagi-students .student-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 20px;
  font-weight: 650;
  vertical-align: 3px;
}
.aagi-students .student-now .fa-solid { font-size: 17px; }

/* Students: highlight that the students and candidates are all female */
.aagi-students .women-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
}
.aagi-students .pathway-title .women-badge { margin-left: 16px; vertical-align: 6px; }
.aagi-students .intake-note .women-badge { margin-top: 12px; font-size: 22px; }
.aagi-students .intake-note .women-badge .fa-solid { margin: 0; color: var(--gold-light); font-size: 20px; width: auto; height: auto; }
.reveal .sagi-banner .sagi-name { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--gold); }
.reveal .sagi-banner { display: flex; align-items: center; gap: 26px; }
.reveal .sagi-banner .sagi-logo { flex: none; height: 64px; width: auto; margin: 0; }
.reveal .gains-card .gains-money { margin-top: 16px; font-size: 34px; font-weight: 700; color: #fff; }
.reveal .gains-card .gains-money strong { color: var(--gold-light); font-weight: 800; }

/* World stage: wider publications column so full titles fit */
#world-stage .stage-grid { grid-template-columns: 1.65fr 1fr; gap: 24px; }
#world-stage .top-list li { grid-template-columns: 200px 1fr auto; gap: 14px; }
.aagi-students .student-now.ongoing { background: transparent; border: 2px solid var(--gold); color: var(--gold-ink); padding: 1px 12px; }

/* Overseas reach: two cards; keep the screenshot within the slide */
.reach-grid .invitation-shot { width: 100%; max-height: 380px; object-fit: cover; object-position: top; }
.invitation-card .invitation-split { grid-template-columns: 1fr 260px; }

/* ---------- heritable package ------------------------------------------- */
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: stretch; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-about,
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-demo { box-sizing: border-box; padding: 30px 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-head { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-logo { flex: none; width: 150px; height: auto; margin: 0; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-tag { margin: 0 0 10px; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-install { margin: 0; font-size: 22px; color: var(--muted); }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) :not(pre) > code { padding: 1px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--ink); font-size: 0.9em; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-features > ul { display: block; list-style: none; margin: 0; padding: 0; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-features li { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 12px 0; border-top: 1px solid #f0ebe0; font-size: 24px; line-height: 1.35; color: var(--ink-soft); }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-features li strong { color: var(--ink); }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-features .fa-solid { flex: none; width: 30px; margin-top: 4px; text-align: center; color: var(--gold); font-size: 22px; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-people { margin: 18px 0 0; font-size: 19px; line-height: 1.4; color: var(--muted); }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-demo { display: flex; flex-direction: column; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-code { font-size: 21px; line-height: 1.55; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-code code { background: none; padding: 0; color: inherit; }
:is(#heritable-pkg, #openreml-pkg, #glmmtmb-sep) .herit-note { margin: 18px 0 0; font-size: 21px; line-height: 1.4; color: var(--ink-soft); }
#openreml-pkg .lead { margin-bottom: 26px; }
#openreml-pkg .reml-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
#openreml-pkg .reml-layer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: 16px; background: var(--gold-soft); }
#openreml-pkg .reml-layer code { padding: 0; background: none; font-size: 28px; font-weight: 700; color: var(--ink); }
#openreml-pkg .reml-layer span { font-size: 20px; color: var(--ink-soft); text-align: right; }
#openreml-pkg .reml-layer.base { background: var(--ink); }
#openreml-pkg .reml-layer.base code { color: var(--gold-light); }
#openreml-pkg .reml-layer.base span { color: #d3dfd8; }
#openreml-pkg .reml-arrow { display: flex; align-items: center; gap: 10px; padding-left: 28px; font-size: 18px; color: var(--muted); }
#openreml-pkg .reml-arrow .fa-solid { color: var(--gold); }

/* Guiding principles: overarching community-first principle */
.reveal :is(.community-first, .takeaway) { display: flex; align-items: center; gap: 24px; margin-top: 34px; padding: 28px 36px; font-size: 38px; font-weight: 600; line-height: 1.25; }
.reveal :is(.community-first, .takeaway) .fa-solid { flex: none; font-size: 40px; color: var(--gold-light); }
.reveal :is(.community-first, .takeaway) strong { color: var(--gold-light); font-weight: 800; }
#openreml-pkg .reml-team { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
#openreml-pkg .reml-team .eyebrow { margin-bottom: 12px; }
#openreml-pkg .reml-people { display: flex; flex-wrap: wrap; gap: 10px 12px; }
#openreml-pkg .reml-person { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--gold-soft); font-size: 22px; font-weight: 650; color: var(--ink); }
#openreml-pkg .reml-person .avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
#openreml-pkg .reml-person .avatar.gold { background: var(--gold); }
#openreml-pkg .reml-team-note { margin: 12px 0 0; font-size: 20px; line-height: 1.4; color: var(--ink-soft); }
#openreml-pkg .herit-note { margin-top: 14px; font-size: 18px; }
#heritable-pkg .herit-eyebrow2 { margin-top: 22px; }
#heritable-pkg .herit-code { font-size: 19px; line-height: 1.5; padding: 16px 20px; }
#heritable-pkg .herit-demo .eyebrow,
#heritable-pkg .herit-demo .herit-note { display: block; }
#heritable-pkg .herit-demo div.sourceCode,
#heritable-pkg .herit-demo pre { margin: 0; }
#heritable-pkg .herit-demo pre code,
#heritable-pkg .herit-demo div.sourceCode pre code { font-size: 19px; line-height: 1.45; }
#heritable-pkg .herit-demo div.sourceCode,
#heritable-pkg .herit-demo div.sourceCode pre { border: 0; border-radius: 14px; background: #1c2b26 !important; }
#heritable-pkg .herit-demo div.sourceCode pre code { padding: 14px 20px; color: #e7efe9; background: none; }
#heritable-pkg .herit-demo div.sourceCode { margin-top: 4px; }
#heritable-pkg .herit-demo div.sourceCode code span.co { color: #d6dcd9 !important; font-style: normal !important; opacity: 1 !important; }
#heritable-pkg .herit-cite { font-size: 0.8em; white-space: nowrap; }

#openreml-pkg .herit-tag.reml-py { margin-top: -2px; font-size: 26px; }
#openreml-pkg .herit-tag.reml-py span { font-size: 20px; font-weight: 500; color: var(--muted); }

/* Community event: five calendar pages */
.cal-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.cal-month .cal-year { font-size: 0.75em; opacity: 0.85; letter-spacing: 0.08em; }
.community .cal-row { width: 115%; }
.cal-talks .cal-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin: auto 0 0; padding-top: 14px; }
.reveal .cal-talks .cal-logos img { display: block; width: auto; height: 34px; max-width: 48%; margin: 0; object-fit: contain; }
.cal-talks .cal-logos { flex-direction: column; gap: 10px; padding-top: 12px; }
.reveal .cal-talks .cal-logos img { max-width: 88%; }
.reveal .cal-talks .cal-logos .curtin-logo { height: 28px; }
.reveal .cal-talks .cal-logos .anu-logo { height: 34px; }

/* ---------- glmmTMB separable structures pull request -------------------- */
#glmmtmb-sep .lead { margin-bottom: 26px; }
#glmmtmb-sep .pr-badge { display: grid; place-items: center; flex: none; width: 110px; height: 110px; border-radius: 26px; background: var(--ink); color: var(--gold-light); font-size: 50px; }
#glmmtmb-sep .herit-features li { padding: 10px 0; }
#glmmtmb-sep .sep-code { margin-top: 16px; font-size: 19px; line-height: 1.5; padding: 14px 20px; }
#glmmtmb-sep .sep-code .c { color: #d6dcd9; }
#glmmtmb-sep .sep-thread > ul { display: block; list-style: none; margin: 0; padding: 0; }
#glmmtmb-sep .sep-thread li { position: relative; margin: 0; padding: 0 0 18px 28px; border-left: 3px solid var(--gold-soft); font-size: 21px; line-height: 1.4; color: var(--ink-soft); }
#glmmtmb-sep .sep-thread li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); }
#glmmtmb-sep .sep-thread li:last-child { padding-bottom: 4px; }
#glmmtmb-sep .sep-thread .who { display: block; font-size: 23px; font-weight: 700; color: var(--ink); }
.reveal .intake-note .intake-stats { margin-top: 10px; font-size: 22px; color: var(--ink-soft); }
.reveal .intake-note .intake-stats strong { font-size: 28px; color: var(--ink); }

/* ---------- Pandoc markup ------------------------------------------------- */
/* The slides are written with Pandoc fenced divs (::: {.name}) and bracketed
   spans ([text]{.name}) instead of raw HTML. Pandoc wraps a div's text in a
   <p>, and an image, linked image or icon on its own line in a <p>.
   display: contents makes those wrappers transparent, so the div is styled as
   a <p class="name"> would be, and images and icons stay direct children of
   the flex and grid layouts. */
.reveal .slides section:not(#title-slide) div:is([class], [style]) > p:only-child,
.reveal .slides section:not(#title-slide) div > p:has(> img:only-child),
.reveal .slides section:not(#title-slide) div > p:has(> a:only-child > img:only-child),
.reveal .slides section:not(#title-slide) div > p:has(> .fa-solid:only-child) {
  display: contents;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* The community-event lead was already a Pandoc div, whose text took the theme's
   paragraph line height rather than .lead's. */
.reveal .community .lead { line-height: 1.3; }

/* Quarto puts figures in div.quarto-figure, which has a bottom margin. */
.invitation-card .invitation-split .quarto-figure { margin: 0; }

/* [text]{.small} stands in for <small>: keep the theme's small-text metrics. */
.reveal .small { line-height: 1.2em; vertical-align: top; }
.reveal .small * { vertical-align: top; }

/* Code cards (.ctb-code): a Quarto code block shown as a dark card. */
.reveal .ctb-code div.sourceCode,
.reveal .ctb-code pre.sourceCode {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
}
.reveal .ctb-code pre.sourceCode { font-size: inherit; line-height: inherit; font-family: inherit; color: #e7efe9; }
.reveal .ctb-code pre.sourceCode code {
  max-height: none;
  padding: 0;
  overflow: visible;
  background: none;
  color: #e7efe9;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.reveal .ctb-code pre.sourceCode code span { color: inherit; font-style: normal; text-decoration: none; }
.reveal .ctb-code pre.sourceCode code span.co { color: #8fa69b; }
.reveal .ctb-code pre.sourceCode code span:is(.st, .cn) { color: var(--gold-light); }
#glmmtmb-sep .ctb-code pre.sourceCode code span.co { color: #d6dcd9; }

/* ---------- Excellence attracts excellence ---------------------------------- */
#excellence-attracts-excellence .people-intro { margin-bottom: 20px; }

/* The fork in the road: images/career-path.svg draws the roads; the question
   and the two destinations sit over it. */
#excellence-attracts-excellence .career-path { position: relative; height: 300px; margin: 0 0 30px; }
#excellence-attracts-excellence .career-path-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
}
#excellence-attracts-excellence .career-path .fa-solid {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 28px;
}
#excellence-attracts-excellence .path-start {
  position: absolute;
  top: 50%;
  left: 0;
  width: 570px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}
#excellence-attracts-excellence .path-question {
  font-size: 46px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
#excellence-attracts-excellence .path-option {
  position: absolute;
  left: 1080px;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}
#excellence-attracts-excellence .path-option.pet { top: 60px; }
#excellence-attracts-excellence .path-option.experts { top: 240px; }
#excellence-attracts-excellence .path-choice {
  display: block;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
#excellence-attracts-excellence .path-choice strong { font-weight: 800; }
#excellence-attracts-excellence .path-detail { display: block; margin-top: 4px; font-size: 24px; line-height: 1.3; color: var(--muted); }
#excellence-attracts-excellence .path-option.pet .fa-solid { background: #ebe7de; color: var(--muted); }
#excellence-attracts-excellence .path-option.pet .path-choice { color: var(--ink-soft); }
#excellence-attracts-excellence .path-option.experts .fa-solid { background: var(--ink); color: var(--gold-light); }
#excellence-attracts-excellence .path-option.experts .path-choice strong { color: var(--gold-ink); }

/* The three examples, without card boxes. */
#excellence-attracts-excellence .people-priority {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#excellence-attracts-excellence .people-priority .fa-solid { margin: 0; width: 56px; height: 56px; border-radius: 16px; font-size: 24px; }
#excellence-attracts-excellence .people-priority strong { margin-bottom: 6px; font-size: 28px; }
#excellence-attracts-excellence .people-priority span:not(.fa-solid) { font-size: 22px; line-height: 1.4; }

/* The question that follows the fork in the road. */
#excellence-attracts-excellence .path-followup { display: flex; align-items: center; gap: 20px; }
#excellence-attracts-excellence .path-followup .fa-solid {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 28px;
}
#excellence-attracts-excellence .path-followup-text { font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
#excellence-attracts-excellence .path-followup-text strong { font-weight: 800; color: var(--gold-ink); }

/* Guiding principles: four principles in one row */
#guiding-principles .people-priorities { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
#guiding-principles .people-priority { padding: 30px 30px 34px; }
#guiding-principles .people-priority strong { font-size: 32px; }
#guiding-principles .people-priority span:not(.fa-solid) { font-size: 25px; }

/* heritable contributions: Paul Schmidt's contributor role */
.reveal .contrib-added {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}
.reveal .contrib-added .fa-solid { flex: none; font-size: 26px; color: var(--gold-ink); }

/* ---------- Learning from communities beyond the grains industry ----------- */
/* Software design principles, following the tidyverse's four guiding principles:
   the hex logo on the left, the statement above the four principle chips. */
#beyond-grains .design-principles {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 30px;
  row-gap: 16px;
  margin-top: 30px;
  padding: 30px 38px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
#beyond-grains .design-head { display: contents; }
#beyond-grains .tidyverse-hex { grid-row: 1 / span 2; width: auto; height: 136px; margin: 0; }
#beyond-grains .design-text { grid-column: 2; font-size: 38px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
#beyond-grains .design-text strong { font-weight: 800; color: var(--gold-light); }
#beyond-grains .design-text a { color: var(--gold-light) !important; white-space: nowrap; }
#beyond-grains .design-chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; }
#beyond-grains .design-chip {
  padding: 10px 22px;
  border: 1px solid rgba(241, 197, 109, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

/* Co-supervision slide: the internship card with a call to action beneath it */
.aagi-students .students-side { display: flex; flex-direction: column; gap: 24px; }
.aagi-students .students-side .student-pathway { flex: 1; }
.aagi-students .win-win {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.aagi-students .win-win .fa-solid { flex: none; font-size: 36px; color: var(--gold-light); }
.aagi-students .win-win strong { font-weight: 800; color: var(--gold-light); }

/* In the age of AI: closing statement */
:is(#age-of-ai, #take-home) .people-silhouettes { display: block; width: 100%; height: auto; max-height: 260px; margin: 56px 0 0; }
:is(#age-of-ai, #take-home) > h2 { margin-bottom: 36px; font-size: 48px; letter-spacing: 0.1em; }
:is(#age-of-ai, #take-home) .slides-link { display: flex; align-items: center; gap: 16px; margin-top: 56px; font-size: 32px; color: var(--muted); }
:is(#age-of-ai, #take-home) .slides-link .fa-solid { flex: none; font-size: 30px; color: var(--gold); }
:is(#age-of-ai, #take-home) .slides-link a { font-weight: 700; color: var(--gold-ink) !important; }
/* QR code for the slides, beside the closing message */
:is(#age-of-ai, #take-home) .aagi-people { position: relative; }
#take-home .people-silhouettes { max-height: 240px; margin-top: 48px; }
#take-home .ah-answers { display: flex; gap: 28px; margin: 34px 0 0; }
#take-home .ah-answers span { display: grid; place-items: center; min-width: 220px; padding: 18px 40px; border-radius: 999px; font-size: 56px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
#take-home .ah-yes { background: var(--gold-soft); border: 3px solid var(--gold); color: var(--gold-ink); }
#take-home .ah-no { background: var(--ink); border: 3px solid var(--ink); color: var(--gold-light); }
#take-home .ah-message { max-width: 1380px; margin-top: 44px; font-size: 42px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
#take-home .ah-message mark { margin: 0 -0.06em; padding: 0 0.06em; background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#take-home .slides-link { margin-top: 24px; }
:is(#age-of-ai, #take-home) .people-message { max-width: 1440px; font-size: 76px; }
:is(#age-of-ai, #take-home) .qr-block { position: absolute; top: 0; right: 0; width: 300px; text-align: center; }
:is(#age-of-ai, #take-home) .slides-qr { display: block; width: 300px; height: 300px; max-width: none; max-height: none; margin: 0; border-radius: 16px; box-shadow: var(--shadow); }
:is(#age-of-ai, #take-home) .qr-caption { display: block; margin-top: 14px; font-size: 22px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
:is(#age-of-ai, #take-home) .people-message mark {
  margin: 0 -0.06em;
  padding: 0 0.06em;
  background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Package slides: make the lead developer's name stand out in the credit line */
:is(#openreml-pkg, #glmmtmb-sep) .herit-install .lead-person { font-size: 34px; letter-spacing: -0.015em; color: var(--ink); }
:is(#openreml-pkg, #glmmtmb-sep) .herit-install .lead-person strong { font-weight: 800; }

/* ---------- Skeleton placeholders ------------------------------------------ */
/* Marks content still to be written; delete as each slide is filled in. */
.reveal .todo {
  margin: 24px 0 0;
  padding: 18px 24px;
  border: 2px dashed var(--gold);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--gold-ink);
  font-size: 26px;
  line-height: 1.4;
}
.reveal .todo::before { content: "TO DO · "; font-weight: 800; letter-spacing: 0.08em; }

/* Four cards in one row */
.aagi-people .people-priorities.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.aagi-people .four-up .people-priority { padding: 30px 30px 34px; }
.aagi-people .four-up .people-priority strong { font-size: 32px; }
.aagi-people .four-up .people-priority span:not(.fa-solid) { font-size: 25px; }

/* Inline SVG charts from code/svg-chart.R */
.reveal .chart-svg svg { display: block; width: 100%; height: auto; }

/* AI can still miss: two plots in white cards, each revealing its hidden problem on a click */
.reveal .bluff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; margin-top: 22px; }
.reveal .bluff-panel {
  box-sizing: border-box;
  margin: 0;
  padding: 22px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.reveal .bluff-title { margin: 0 0 6px; color: var(--ink); font-size: 27px; font-weight: 650; text-align: left; }
.bluff-stack { display: grid; }
.bluff-stack > .chart-svg { grid-area: 1 / 1; }
.reveal .bluff-caption { min-height: 66px; margin: 10px 0 0; color: var(--ink-soft); font-size: 23px; line-height: 1.35; }
.reveal .bluff-caption strong { color: var(--gold-ink); }
.bluff-rate { display: block; margin-top: 2px; color: var(--ink); font-weight: 650; }

/* The ethics of self-driving cars: four questions, the statistical one highlighted */
#self-driving .people-intro { margin-bottom: 36px; }
.aagi-people .four-up .people-priority.highlight { background: var(--ink); border-color: var(--ink); }
.aagi-people .four-up .people-priority.highlight strong { color: var(--gold-light); }
.aagi-people .four-up .people-priority.highlight span:not(.fa-solid) { color: #d3dfd8; }
#self-driving .slide-note { margin-top: 28px; font-size: 19px; }

/* Human brain vs large language model (from the 2026-10-20 BiometryHub talk):
   three headline numbers, then the synapse and parameter bars to scale beside a
   small neural network, then the take-away in a dark band. */
#brain-vs-llm .people-priorities { gap: 24px; }
#brain-vs-llm .people-priority {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 22px; align-items: center;
  padding: 24px 28px;
}
#brain-vs-llm .people-priority .fa-solid { margin: 0; width: 64px; height: 64px; font-size: 28px; }
#brain-vs-llm .people-priority p { margin: 0; }
#brain-vs-llm .people-priority strong { margin-bottom: 4px; font-size: 54px; line-height: 1.05; letter-spacing: -0.03em; color: var(--gold-ink); }
#brain-vs-llm .people-priority .priority-desc { font-size: 24px; line-height: 1.35; }
#brain-vs-llm .people-priority.llm strong { color: var(--ink); }
#brain-vs-llm .people-priority.llm .fa-solid { background: var(--ink); color: var(--gold-light); }
.reveal .brain-row { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 28px; margin-top: 28px; align-items: stretch; }
.reveal .brain-bars,
.reveal .brain-net {
  box-sizing: border-box; padding: 28px 34px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.reveal .brain-bars { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.reveal .brain-bar { display: flex; align-items: center; gap: 18px; font-size: 26px; }
.reveal .brain-bar .w { flex: none; width: 210px; text-align: right; font-weight: 650; color: var(--ink); }
.reveal .brain-bar .bar { flex: none; display: inline-block; height: 40px; border-radius: 4px; background: var(--gold); }
.reveal .brain-bar .bar.llm { background: var(--ink); }
.reveal .brain-bar .v { color: var(--muted); white-space: nowrap; }
.reveal .brain-cap { display: block; color: var(--muted); font-size: 20px; line-height: 1.35; }
.reveal .brain-bars .brain-cap { margin-left: 228px; }
.reveal .brain-net { padding: 18px 24px; text-align: center; }
.reveal .brain-net svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.reveal .brain-net .brain-cap { margin-top: 6px; font-size: 21px; }
.reveal .brain-net .brain-cap strong { color: var(--ink); }
.reveal .brain-take {
  width: fit-content; margin: 26px 0 0; padding: 20px 32px;
  border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 30px; line-height: 1.35;
}
.reveal .brain-take strong { color: var(--gold-light); }
#brain-vs-llm .slide-note { margin-top: 16px; }

/* Are LLMs good statisticians? An example question beside the accuracy chart (Zhu et al. 2024) */
.reveal .statqa-layout { display: grid; grid-template-columns: 1040px minmax(0, 1fr); column-gap: 48px; align-items: center; margin-top: 18px; }
.reveal .statqa-example {
  box-sizing: border-box;
  padding: 26px 30px 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 23px;
  line-height: 1.4;
}
.reveal .statqa-example p { margin: 0 0 12px; }
.reveal .statqa-example strong { color: var(--ink); }
.reveal .statqa-example .ex-label { display: block; margin-top: 6px; color: var(--gold-ink); font-size: 18px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.reveal .statqa-example .ex-question { display: block; color: var(--ink); font-size: 26px; font-weight: 600; line-height: 1.32; }
.reveal .statqa-example .ex-cols { display: block; color: var(--muted); }
.reveal .statqa-example code { color: var(--ink); background: var(--gold-soft); padding: 0 6px; border-radius: 5px; font-size: 0.92em; }
.reveal .statqa-example .fa-check { color: #2f7d57; width: 1.2em; }
.reveal .statqa-example .fa-xmark { color: #a3462d; width: 1.2em; }
.reveal .statqa-example .ex-note { display: block; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 20px; }
.reveal .statqa-chart .chart-svg svg { display: block; width: 100%; height: auto; }
/* Example questions stack in one cell and swap on clicks */
.reveal .statqa-examples { display: grid; }
.reveal .statqa-examples > .statqa-example { grid-area: 1 / 1; }

/* ---- The ethics of self-driving cars: the dilemma, then how the car decides ---- */
#self-driving .people-intro { margin-bottom: 18px; }
#self-driving .eth-eyebrow { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
#self-driving .eth-env { margin-top: 30px; }
#self-driving .eth-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#self-driving .eth-stat { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
#self-driving .eth-stat .fa-solid { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 24px; }
#self-driving .eth-stat b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
#self-driving .eth-stat span:not(.fa-solid) { display: block; margin-top: 4px; font-size: 20px; line-height: 1.35; color: var(--ink-soft); }
#self-driving .sd-scene { margin: 0; }
#self-driving .sd-scene svg { display: block; width: 100%; height: auto; }
#self-driving .sd-scene text { font-family: var(--font); }
#self-driving .sd-tag { font-size: 22px; font-weight: 700; fill: var(--gold-ink); }
#self-driving .sd-bang { font-size: 18px; font-weight: 800; fill: #ffffff; }
#self-driving .sd-choice { font-size: 30px; font-weight: 700; fill: var(--ink); }
#self-driving .sd-outcome { font-size: 26px; fill: var(--ink-soft); }
#self-driving .step-name { font-size: 32px; font-weight: 700; color: var(--ink); vertical-align: middle; }
#self-driving .step-what { display: block; margin-top: 12px; font-size: 23px; line-height: 1.35; color: var(--ink-soft); }
#self-driving .step-ethic { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.35; color: var(--ink-soft); }
#self-driving .step-ethic strong { display: block; margin-bottom: 4px; font-size: 24px; color: var(--gold-ink); }
#self-driving .slide-note { margin-top: 22px; font-size: 19px; }


/* ---- AI cannot be an author ---- */
#ai-authorship .authorship-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: stretch; margin-top: 30px; }
#ai-authorship .authorship-layout p { margin: 0; }
#ai-authorship .authorship-quote { display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; border-radius: var(--radius); background: var(--ink); }
#ai-authorship .quote-text { display: block; font-size: 44px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: #ffffff; }
#ai-authorship .quote-source { display: block; margin-top: 26px; font-size: 22px; color: var(--gold-light); }
#ai-authorship .authorship-duties { padding: 32px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
#ai-authorship .duties-title { display: block; margin-bottom: 8px; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
#ai-authorship .authorship-duties p:has(.duty) { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
#ai-authorship .authorship-duties .fa-solid { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-size: 20px; }
#ai-authorship .duty { font-size: 27px; line-height: 1.3; color: var(--ink); }
#ai-authorship .duties-note { display: block; margin-top: 18px; font-size: 23px; line-height: 1.4; color: var(--ink-soft); }
#ai-authorship .decision-message { width: fit-content; margin: 34px auto 0; padding: 22px 36px; border-radius: var(--radius); background: var(--gold-soft); color: var(--ink); font-size: 36px; font-weight: 600; line-height: 1.3; }
#ai-authorship .decision-message strong { color: var(--gold-ink); }
#ai-authorship .decision-message p { margin: 0; }
#ai-authorship .slide-note { margin-top: 22px; font-size: 19px; }

/* ---- AI agents can now act like a data scientist: an animated IDE (js/agent-ide.js) ---- */
#agent-ide .lead { margin-bottom: 22px; }
.agent-ide { --ide-bg: #17241f; --ide-side: #1a2924; --ide-bar: #101a17; --ide-line: #2c403a; --ide-text: #d6e2dc; --ide-dim: #8fa39a;
  --ide-mono: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0;
  display: grid; grid-template-rows: 38px minmax(0, 1fr); height: 690px; overflow: hidden; border-radius: 18px;
  background: var(--ide-bg); color: var(--ide-text); font-family: var(--font); box-shadow: var(--shadow); text-align: left; }
.agent-ide .ai-titlebar { display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--ide-bar); border-bottom: 1px solid var(--ide-line); }
.agent-ide .ai-dots { display: flex; align-items: center; }
.agent-ide .ai-dots i { display: block; width: 12px; height: 12px; margin-right: 7px; border-radius: 50%; background: #3b4f47; }
.agent-ide .ai-title { flex: 1; text-align: center; font-size: 16px; color: var(--ide-dim); }
.agent-ide .ai-play { padding: 4px 10px; border: 0; background: none; color: var(--ide-dim); font-size: 16px; cursor: pointer; }
.agent-ide .ai-play .fa-play, .agent-ide.is-paused .ai-play .fa-pause { display: none; }
.agent-ide.is-paused .ai-play .fa-play { display: inline-block; }
.agent-ide .ai-body { display: grid; grid-template-columns: 52px 220px minmax(0, 1fr) 470px; min-height: 0; }
.agent-ide .ai-activity { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 16px; background: var(--ide-bar); color: #5f746b; font-size: 20px; }
.agent-ide .ai-activity .is-on { color: var(--gold-light); }
.agent-ide .ai-head { padding: 8px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ide-dim); }
.agent-ide .ai-explorer { padding: 6px 0; background: var(--ide-side); border-right: 1px solid var(--ide-line); }
.reveal .agent-ide .ai-files { margin: 0; padding: 0; list-style: none; }
.reveal .agent-ide .ai-files li { display: none; align-items: center; gap: 10px; margin: 0; padding: 6px 16px; font-size: 17px; color: var(--ide-text); transition: background 0.6s; }
.reveal .agent-ide .ai-files li.is-on { display: flex; }
.reveal .agent-ide .ai-files li.is-new { background: rgba(241, 197, 109, 0.22); color: #ffffff; }
.agent-ide .ai-files li i { width: 18px; color: var(--ide-dim); }
.agent-ide .ai-main { display: grid; grid-template-rows: 40px minmax(0, 1fr) 240px; min-width: 0; min-height: 0; }
.agent-ide .ai-tabs { display: flex; background: var(--ide-side); border-bottom: 1px solid var(--ide-line); }
.agent-ide .ai-tab { display: none; align-items: center; padding: 0 18px; border-right: 1px solid var(--ide-line); font-size: 15px; color: var(--ide-dim); }
.agent-ide .ai-tab.is-on { display: flex; }
.agent-ide .ai-tab.is-active { background: var(--ide-bg); color: #ffffff; box-shadow: inset 0 2px 0 var(--gold-light); }
.agent-ide .ai-editor { position: relative; overflow: hidden; min-height: 0; }
.agent-ide .ai-code { display: none; padding: 10px 0; font-family: var(--ide-mono); font-size: 16px; line-height: 1.5; white-space: pre; }
.agent-ide .ai-code.is-active { display: block; }
.agent-ide .ai-line { display: flex; }
.agent-ide .ai-ln { flex: none; width: 46px; padding-right: 16px; text-align: right; color: #4f6560; }
.agent-ide .t-str { color: #a8d8a0; }
.agent-ide .t-com { color: #7d928a; font-style: italic; }
.agent-ide .t-fn { color: #f1c56d; }
.agent-ide .t-num { color: #f0a27a; }
.agent-ide .t-op { color: #8cc7ff; }
.agent-ide .ai-viewer { display: none; position: absolute; inset: 0; padding: 12px; background: #e6eae5; }
.agent-ide.show-viewer .ai-viewer { display: block; }
.agent-ide .ai-page { max-width: 760px; margin: 0 auto; padding: 16px 26px 10px; border-radius: 6px; background: #ffffff; color: #203c34; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.reveal .agent-ide .ai-page h4 { margin: 0 0 6px; font-family: var(--font); font-size: 25px; font-weight: 700; color: #203c34; text-transform: none; letter-spacing: 0; }
.reveal .agent-ide .ai-page p { margin: 0 0 4px; font-size: 16px; line-height: 1.45; color: #44564d; }
.agent-ide .ai-plot svg { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
.agent-ide .ai-terminal { display: flex; flex-direction: column; min-height: 0; background: #121d19; border-top: 1px solid var(--ide-line); }
.reveal .agent-ide pre.ai-term { flex: 1; width: auto; margin: 0; padding: 0 16px 10px; overflow: hidden; box-shadow: none; background: none;
  font-family: var(--ide-mono); font-size: 15px; line-height: 1.4; color: #cfe0d8; white-space: pre; word-wrap: normal; }
.agent-ide .ai-chat { display: flex; flex-direction: column; min-height: 0; background: var(--ide-side); border-left: 1px solid var(--ide-line); }
.agent-ide .ai-chat .ai-head i { color: var(--gold-light); }
.agent-ide .ai-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 0; padding: 6px 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px); }
.agent-ide .ai-msg { flex: none; font-size: 17px; line-height: 1.4; animation: ai-in 0.25s ease-out; }
.agent-ide .ai-msg.is-user { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #2d4a40; color: #ffffff; }
.agent-ide .ai-msg.is-tool { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid #2f4741; border-radius: 10px; background: #16231f; font-family: var(--ide-mono); font-size: 15px; color: #cfe0d8; }
.agent-ide .ai-msg.is-tool > .fa-solid:first-child { color: var(--ide-dim); }
.agent-ide .ai-status { margin-left: auto; color: var(--ide-dim); }
.agent-ide .ai-status.fa-circle-notch { animation: ai-spin 1s linear infinite; }
.agent-ide .ai-status.fa-check { color: #8fd19e; }
.agent-ide .ai-msg.is-perm { padding: 10px 12px; border: 1px solid var(--gold-light); border-radius: 10px; background: rgba(241, 197, 109, 0.08); }
.reveal .agent-ide .ai-msg.is-perm code { padding: 0; background: none; font-family: var(--ide-mono); font-size: 0.95em; color: var(--gold-light); }
.agent-ide .ai-btns { display: flex; gap: 8px; margin-top: 8px; }
.agent-ide .ai-btn { padding: 4px 14px; border-radius: 6px; background: #2c403a; font-size: 15px; transition: transform 0.15s; }
.agent-ide .ai-allow { background: var(--gold-light); color: #203c34; font-weight: 700; }
.agent-ide .ai-allow.is-pressed { transform: scale(0.92); filter: brightness(0.88); }
.agent-ide .ai-msg.is-perm.is-allowed { padding: 2px 0; border: 0; background: none; font-size: 15px; color: #8fd19e; }
.agent-ide .ai-input { min-height: 74px; margin: 10px 14px 14px; padding: 10px 12px; border: 1px solid #2f4741; border-radius: 10px; background: #121d19; font-size: 16px; line-height: 1.4; color: #ffffff; }
.agent-ide .ai-caret { display: inline-block; width: 2px; height: 18px; background: var(--gold-light); vertical-align: text-bottom; animation: ai-blink 1s step-end infinite; }
@keyframes ai-blink { 50% { opacity: 0; } }
@keyframes ai-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ai-spin { to { transform: rotate(360deg); } }


/* ---- Timeline for foundational large language models (from the BiometryHub talk) ---- */
#timeline .vis-item.vis-line,
#timeline .vis-item.vis-dot { border-color: black; }
#timeline .vis-item { font-size: 16px; line-height: 1.1; }
#timeline .vis-item .vis-item-content { padding: 3px 5px; }
.reveal #timeline .vis-item img { height: 20px; margin: 2px 0 0 0; }
#timeline .vis-time-axis .vis-text { font-size: 18px; }
#llm-timeline .timeline-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 10px; font-size: 20px; color: var(--ink); }
#llm-timeline .timeline-legend span { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: middle; border: 1px solid black; }
#llm-timeline .timeline-legend span.border-key { width: 28px; height: 18px; background: white; box-sizing: border-box; }
#llm-timeline .timeline-legend .legend-sep { width: 2px; align-self: stretch; background: #bbbbbb; }
#llm-timeline .timeline-filter { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: 18px; }
#llm-timeline .timeline-filter .chip { display: inline-flex; align-items: center; height: 36px; padding: 2px 12px; border: 1px solid black; border-radius: 18px; background: white; cursor: pointer; user-select: none; opacity: 0.3; }
#llm-timeline .timeline-filter .chip.active { opacity: 1; }
.reveal #llm-timeline .timeline-filter .chip img { height: 24px; margin: 0; }
#llm-timeline .slide-note { margin-top: 10px; }

/* ---- What do we mean by AI? Five nested layers, broadest outside (from the JBDouglas talk) ---- */
#define-ai .ai-layers { margin-top: 26px; }
#define-ai .ai-layer { box-sizing: border-box; border-radius: 24px; padding: 18px 28px 24px; }
#define-ai .ai-layer .ai-layer { margin-top: 14px; }
#define-ai .ai-l1 { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
#define-ai .ai-l2 { background: #f6f1e4; }
#define-ai .ai-l3 { background: #ece2c9; }
#define-ai .ai-l4 { background: #dfcfa6; }
#define-ai .ai-l5 { background: var(--ink); padding-bottom: 20px; }
#define-ai .ai-row { display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 28px; align-items: baseline; margin: 0; }
/* Each layer is indented 28px more than its parent, so its name column is 28px
   narrower: the descriptions line up. */
#define-ai .ai-l2 > .ai-row { grid-template-columns: 371px minmax(0, 1fr); }
#define-ai .ai-l3 > .ai-row { grid-template-columns: 343px minmax(0, 1fr) auto; }
#define-ai .ai-pic { align-self: center; margin: -6px 0 -10px; }
#define-ai .ai-pic svg { display: block; width: 200px; height: auto; }
#define-ai .ai-l4 > .ai-row { grid-template-columns: 315px minmax(0, 1fr); }
/* The innermost row is its box's only paragraph, which the Pandoc rule above
   would flatten (display: contents); this selector outranks it. */
.reveal .slides section#define-ai .ai-l5 > p.ai-row:only-child { display: grid; grid-template-columns: 287px minmax(0, 1fr); }
#define-ai .ai-name { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
#define-ai .ai-desc { font-size: 26px; line-height: 1.4; color: var(--ink-soft); }
#define-ai .ai-desc strong { color: var(--ink); }
#define-ai .ai-eg { display: block; margin-top: 2px; font-size: 21px; color: var(--muted); }
#define-ai .ai-l4 .ai-eg { color: var(--ink-soft); }
#define-ai .ai-l5 .ai-name { color: var(--gold-light); }
#define-ai .ai-l5 .ai-desc, #define-ai .ai-l5 .ai-desc strong { color: #fff; }
#define-ai .ai-l5 .ai-eg { color: rgba(255, 255, 255, 0.82); }
#define-ai .slide-note { margin-top: 24px; }

/* ---- Data-driven decisions start with collecting data: three ways to collect data in selective breeding (illustrative SVGs) ---- */
#data-start > h2 mark,
#analyse-data > h2 mark {
  margin: 0 -0.06em;
  padding: 0 0.06em;
  background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:is(#data-start, #analyse-data) :is(.dd-eyebrow, .am-eyebrow) { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
#data-start .dd-scale { display: flex; align-items: center; gap: 22px; margin: 0 0 16px; }
#data-start .dd-scale-end { flex: none; font-size: 21px; font-weight: 800; color: var(--gold-ink); }
#data-start .dd-scale-end:last-child { color: var(--muted); }
#data-start .dd-scale-bar { flex: 1; height: 22px; background: linear-gradient(90deg, #be830e, #f1c56d 55%, #ece6d8); clip-path: polygon(0 0, 100% 42%, 100% 58%, 0 100%); }
#data-start .dd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
#data-start .dd-card { display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; padding: 20px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
#data-start .dd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#data-start .dd-name { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
#data-start .dd-tag { font-size: 19px; font-weight: 700; color: var(--gold-ink); text-align: right; }
#data-start .dd-svg { display: block; width: 100%; height: auto; }
#data-start .dd-svg text { font-family: var(--font); }
#data-start .dd-cap { margin-top: auto; padding-top: 16px; font-size: 23px; line-height: 1.4; color: var(--ink-soft); }
#data-start .dd-cap strong { color: var(--ink); }
#data-start .dd-small { font-size: 17px; font-weight: 600; fill: var(--muted); }
#data-start .dd-plot { font-size: 20px; font-weight: 700; }
#data-start .dd-strip { font-size: 16px; font-weight: 800; fill: var(--ink); }
#data-start .dd-th { font-size: 16px; font-weight: 700; fill: var(--muted); }
#data-start .dd-td { font-size: 18px; fill: var(--ink); }
#data-start .dd-form-title { font-size: 17px; font-weight: 800; fill: var(--ink); }
#data-start .dd-form-q { font-size: 14px; font-weight: 600; fill: var(--muted); }
#data-start .dd-form-a { font-size: 15px; font-weight: 600; fill: var(--ink); }
#data-start .slide-note { margin-top: 14px; }

/* ---- Then we analyse the data: a mathematical crop model and statistical models fitted to the same data (code/crop-growth-models.R) ---- */
#analyse-data .am-scale { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; }
#analyse-data .am-scale-end { flex: none; font-size: 21px; font-weight: 800; color: var(--ink); }
#analyse-data .am-scale-end:first-child { color: var(--gold-ink); }
#analyse-data .am-scale-end:last-child { color: #7a4fa3; }
#analyse-data .am-scale-bar { position: relative; flex: 1; height: 6px; margin: 0 12px; border-radius: 3px; background: linear-gradient(90deg, #be830e, #2f6f9f 55%, #7a4fa3); }
#analyse-data .am-scale-bar::before,
#analyse-data .am-scale-bar::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; transform: translateY(-50%); }
#analyse-data .am-scale-bar::before { left: -12px; border-right: 16px solid #be830e; }
#analyse-data .am-scale-bar::after { right: -12px; border-left: 16px solid #7a4fa3; }
#analyse-data .am-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
#analyse-data .am-card { display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; padding: 20px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
#analyse-data .am-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#analyse-data .am-name { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
#analyse-data .am-tag { font-size: 18px; font-weight: 700; color: var(--gold-ink); text-align: right; }
#analyse-data .am-eq { display: flex; flex-direction: column; justify-content: center; gap: 2px; box-sizing: border-box; min-height: 80px; padding: 10px 14px; border-radius: 12px; background: #f3efe4; font-size: 20px; line-height: 1.4; color: var(--ink); }
#analyse-data .am-eq sup, #analyse-data .am-eq sub { font-size: 0.7em; }
#analyse-data .am-gloss { font-size: 16px; color: var(--muted); }
#analyse-data .am-chart { margin-top: 10px; }
#analyse-data .am-chart svg { display: block; width: 100%; height: auto; }
#analyse-data .am-cap { margin-top: auto; padding-top: 12px; font-size: 22px; line-height: 1.4; color: var(--ink-soft); }
#analyse-data .am-cap strong { color: var(--ink); }
#analyse-data .slide-note { margin-top: 14px; }

/* ---- Data have become larger and more complex: hyperspectral and remote sensing (from the JBDouglas talk) ---- */
#remote-sensing .lead { margin-bottom: 22px; }
#remote-sensing .rs-layout { display: grid; grid-template-columns: 1040px minmax(0, 1fr); gap: 36px; align-items: start; }
#remote-sensing .rs-spectrum { padding: 16px 20px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
#remote-sensing .rs-label { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: var(--ink); }
#remote-sensing .rs-spectrum .chart-svg { width: 100%; }
#remote-sensing .rs-platforms { display: grid; gap: 14px; }
#remote-sensing .rs-card { display: flex; gap: 16px; align-items: center; padding: 10px 18px 10px 10px; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 14px; box-shadow: var(--shadow); }
#remote-sensing .rs-card img { flex: none; display: block; width: 168px; height: 112px; max-width: none; max-height: none; margin: 0; object-fit: cover; border-radius: 10px; }
#remote-sensing .rs-name { margin: 0 0 2px; font-size: 27px; font-weight: 700; color: var(--ink); }
#remote-sensing .rs-text { margin: 0; font-size: 19px; line-height: 1.38; color: var(--ink-soft); }

/* ---- ML engagement grew in every field of science (from the JBDouglas talk) ---- */
#ai-engagement .eng-layout { display: flex; gap: 36px; align-items: center; margin-top: 10px; }
#ai-engagement .chart-svg { flex: none; width: 1160px; }
#ai-engagement .eng-define { box-sizing: border-box; flex: 1 1 auto; padding: 26px 30px 28px; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 6px 18px 18px 6px; }
#ai-engagement .eng-define p { margin: 0 0 12px; font-size: 22px; line-height: 1.42; color: var(--ink-soft); }
#ai-engagement .eng-define p:last-child { margin-bottom: 0; }
#ai-engagement .eng-define strong { color: var(--ink); }
#ai-engagement .eng-define-title { font-size: 28px !important; font-weight: 700; line-height: 1.2 !important; color: var(--ink) !important; }
#ai-engagement .eng-define-aside { font-size: 20px !important; color: var(--muted) !important; }

/* ---- More data doesn't mean better answers: a solo statement, its heading hidden ---- */
.reveal .slides > section.solo-statement > h2 { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reveal .slides > section.solo-statement > h2::before { display: none; }
#more-data .aagi-people { margin-top: 300px; }
#examine-process .aagi-people { margin-top: 260px; }
#examine-process .people-message { max-width: 1640px; font-size: 96px; }
#examine-process .people-message mark { margin: 0 -0.06em; padding: 0 0.06em; background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#more-data .people-message { max-width: 1500px; font-size: 112px; }
#more-data .people-message mark { margin: 0 -0.06em; padding: 0 0.06em; background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---- Base R never drops missing values silently: mean() and na.rm, on R's penguins data ---- */
#na-rm .na-eyebrow { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
#na-rm .lead { margin-bottom: 36px; }
#na-rm .lead code { padding: 0 6px; border-radius: 6px; background: var(--gold-soft); font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 0.9em; color: var(--ink); }
#na-rm .na-steps { display: grid; grid-template-columns: 0.8fr 1.15fr 1.15fr; gap: 28px; }
#na-rm .na-step { display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; padding: 28px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
#na-rm .na-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
#na-rm .na-n { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; font-weight: 800; }
#na-rm .na-step:nth-child(2) .na-n { background: var(--gold); }
#na-rm .na-title { font-size: 30px; font-weight: 800; color: var(--ink); }
.reveal #na-rm pre.na-console { box-sizing: border-box; width: auto; max-width: none; margin: 0; padding: 22px 20px; overflow: hidden; border-radius: 12px; background: #16231f; box-shadow: none; font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 20px; line-height: 1.6; color: #e7efe9; white-space: pre; word-wrap: normal; }
#na-rm .na-prompt { color: #7f9a8f; }
#na-rm .na-code { color: #ffffff; }
#na-rm .na-out { color: var(--gold-light); }
#na-rm .na-cap { margin-top: auto; padding-top: 22px; font-size: 25px; line-height: 1.4; color: var(--ink-soft); }
#na-rm .na-cap strong { color: var(--ink); }
#na-rm .na-bar { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding: 22px 32px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 27px; line-height: 1.35; }
#na-rm .na-bar strong { color: var(--gold-light); }
#na-rm .na-bar .fa-solid { font-size: 28px; color: var(--gold-light); }
.reveal #na-rm .na-bar code { padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 0.9em; color: #fff; }

/* ---- Spatial modelling and Borrowing strength (from the JBDouglas talk) ---- */
.reveal .model-eq { margin: 0; color: var(--ink); }
.reveal .model-eq p { margin: 0; }
.reveal .model-eq .katex-display { margin: 8px 0; }
.reveal .model-eq .katex { font-size: 34px; }
#field-trial .chart-svg { width: 1640px; margin-top: 26px; }
#field-trial .model-eq { margin-top: 6px; }
#field-trial .model-eq .katex-display + .katex-display .katex, #field-trial .model-eq p + p .katex { font-size: 26px; color: var(--ink-soft); }
#field-trial .model-eq p + p { margin-top: 30px; }
#field-trial .slide-note { margin-top: 36px; }
#borrowing-strength .lead { margin-bottom: 0; }
#borrowing-strength .big-eq .katex { font-size: 36px; }
#borrowing-strength .borrow-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 12px; }
#borrowing-strength .borrow-card { box-sizing: border-box; padding: 18px 28px; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: 18px; box-shadow: var(--shadow); }
#borrowing-strength .borrow-card > .fa-solid { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-right: 14px; vertical-align: middle; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 22px; }
#borrowing-strength .borrow-name { display: inline; margin: 0; vertical-align: middle; font-size: 30px; font-weight: 700; color: var(--ink); }
#borrowing-strength .borrow-math { margin: 6px 0; }
#borrowing-strength .borrow-math .katex-display { margin: 0; text-align: left; }
#borrowing-strength .borrow-math .katex { font-size: 28px; }
#borrowing-strength .borrow-text { margin: 0; font-size: 21px; line-height: 1.42; color: var(--ink-soft); }
#borrowing-strength .borrow-pic { display: block; width: auto; height: 158px; max-width: 100%; margin: 6px auto 0; }
#borrowing-strength .borrow-pic text { font-family: var(--font); fill: var(--ink-soft); }
#borrowing-strength .borrow-pic .bp-label { font-size: 21px; font-weight: 600; }
#borrowing-strength .borrow-pic .bp-small { font-size: 19px; }
#borrowing-strength .borrow-pic .bp-x { font-size: 22px; font-weight: 700; fill: var(--ink); }
#borrowing-strength .borrow-pic .bp-mat { font-size: 30px; font-style: italic; font-weight: 700; fill: var(--ink); }

/* ---- Genomes to Fields 2022 and Off-the-shelf ML (from the JBDouglas talk) ---- */
#g2f-2022 .lead { margin-bottom: 14px; }
#g2f-2022 .g2f-wrap { display: block; }
#g2f-2022 table.g2f { width: 100%; margin: 0; border-collapse: collapse; font-size: 21px; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
#g2f-2022 .g2f th, #g2f-2022 .g2f td { padding: 5px 6px; text-align: center; vertical-align: middle; border: 0; border-bottom: 1px solid #eef1ec; color: var(--ink-soft); }
#g2f-2022 .g2f th { padding: 6px; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--ink); background: #f3f6f1; }
#g2f-2022 .g2f td { font-size: 28px; line-height: 1; color: var(--ink); }
#g2f-2022 .g2f td.g2f-team, #g2f-2022 .g2f td.g2f-num, #g2f-2022 .g2f td:first-child, #g2f-2022 .g2f td.g2f-no { font-size: 22px; }
#g2f-2022 .g2f td:first-child { font-weight: 700; color: var(--ink); }
#g2f-2022 .g2f .g2f-team { text-align: left; font-weight: 600; color: var(--ink); }
#g2f-2022 .g2f .g2f-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
#g2f-2022 .g2f .g2f-mm { background: #e6ede8; }
#g2f-2022 .g2f th.g2f-mm { color: var(--ink); }
#g2f-2022 .g2f .g2f-odd td { background: #fbf6ea; }
#g2f-2022 .g2f .g2f-odd td.g2f-mm { background: #f3ead2; }
#g2f-2022 .g2f .g2f-no { font-weight: 700; color: #a23b3b; }
#g2f-2022 .g2f .g2f-na { color: var(--muted); }
#g2f-2022 .g2f .g2f-group th { padding: 6px; font-size: 16px; text-align: center; color: var(--ink); background: #e9efe5; }
#g2f-2022 .g2f .g2f-gl { border-left: 2px solid #dfe6db; }
#g2f-2022 .g2f td.g2f-info { color: #4a86bd; }
#g2f-2022 .g2f td.g2f-r { font-weight: 700; color: var(--ink); }
#off-the-shelf .ots-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
#off-the-shelf .ots-card { box-sizing: border-box; padding: 24px 30px 26px; background: var(--paper); border: 1px solid var(--line); border-top: 8px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
#off-the-shelf .ots-card .fa-solid { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-ink); font-size: 24px; }
#off-the-shelf .ots-name { margin: 0 0 10px; font-size: 32px; font-weight: 700; line-height: 1.15; color: var(--ink); text-wrap: balance; }
#off-the-shelf .ots-text { margin: 0; font-size: 24px; line-height: 1.42; color: var(--ink-soft); }
#off-the-shelf .ots-recall { margin-top: 22px; padding: 16px 28px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
#off-the-shelf .ots-recall-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--ink); }
#off-the-shelf .ots-recall .chart-svg { width: 100%; }
#off-the-shelf .slide-note { margin-top: 10px; }

/* ---- Knowledge production is now cheap: three mini bar charts drawn in R ---- */
#knowledge-cheap .lead { margin-bottom: 28px; }
#knowledge-cheap .kc-scarce { margin: 26px 0 18px; font-size: 56px; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
#knowledge-cheap .kc-scarce mark { margin: 0 -0.06em; padding: 0 0.06em; background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%); color: var(--ink); font-weight: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#knowledge-cheap .kc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
#knowledge-cheap .kc-side { display: flex; flex-direction: column; gap: 14px; }
#knowledge-cheap .kc-card { display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; padding: 24px 26px 26px; border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
#knowledge-cheap .kc-name { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
#knowledge-cheap .kc-chart { margin-top: 14px; }
#knowledge-cheap .kc-chart svg { display: block; width: 100%; height: auto; }
#knowledge-cheap .kc-cap { margin-top: auto; padding-top: 14px; font-size: 22px; line-height: 1.4; color: var(--ink-soft); }
#knowledge-cheap .kc-strain-label { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
#knowledge-cheap .kc-strain { display: flex; flex: 1; align-items: center; gap: 18px; padding: 18px 24px; border-radius: var(--radius); background: var(--ink); color: #fff; }
#knowledge-cheap .kc-strain .fa-solid { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: rgba(241, 197, 109, 0.18); color: var(--gold-light); font-size: 22px; }
#knowledge-cheap .kc-strain b { display: block; font-size: 24px; font-weight: 800; color: var(--gold-light); }
#knowledge-cheap .kc-strain span:not(.fa-solid) { display: block; margin-top: 2px; font-size: 20px; line-height: 1.4; color: #e7efe9; }
#knowledge-cheap .slide-note { margin-top: 16px; font-size: 17px; }
#software-easy .lead { margin-bottom: 18px; }
#software-easy .chart-svg { width: 1656px; max-width: 100%; }

/* ---- Standards are changing fast: The R Journal's requirements for package papers ---- */
#requirements .lead { margin-bottom: 28px; }
#requirements .rq-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
#requirements .rq-card { display: flex; flex-direction: column; box-sizing: border-box; padding: 26px 30px 28px; border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
#requirements .rq-head { display: flex; align-items: center; gap: 16px; }
#requirements .rq-head .fa-solid { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 24px; }
#requirements .rq-name { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
#requirements .rq-history { margin: 30px 6px 10px; padding-top: 46px; }
#requirements .rq-line { position: relative; display: flex; align-items: center; justify-content: space-between; }
#requirements .rq-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; border-radius: 2px; background: #cbd6ce; transform: translateY(-50%); }
#requirements .rq-dot { position: relative; width: 16px; height: 16px; border: 3px solid var(--paper); border-radius: 50%; background: #9aa79f; }
#requirements .rq-dot.is-rel { width: 24px; height: 24px; background: var(--gold); }
#requirements .rq-dot b { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 19px; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }
#requirements .rq-dot i { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-size: 18px; font-style: normal; color: var(--muted); white-space: nowrap; }
#requirements .rq-issues { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 6px; }
#requirements .rq-issue { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8f1; font-size: 22px; color: var(--ink); }
#requirements .rq-issue .fa-solid { flex: none; width: 24px; font-size: 20px; color: var(--gold-ink); text-align: center; }
#requirements .rq-issue em { margin-left: auto; padding: 2px 12px; border-radius: 999px; background: #e6ede8; font-size: 17px; font-style: normal; font-weight: 700; color: var(--ink); }
#requirements .rq-text { margin-top: auto; padding-top: 22px; font-size: 23px; line-height: 1.42; color: var(--ink-soft); }
#requirements .rq-text strong { color: var(--ink); }
#requirements .rq-bar { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 20px 32px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 27px; line-height: 1.35; }
#requirements .rq-bar strong { color: var(--gold-light); }
#requirements .rq-bar .fa-solid { font-size: 28px; color: var(--gold-light); }
#requirements .slide-note { margin-top: 18px; }

/* ---- Combining the mathematical, statistical, and machine learning models: theory-guided data science (from the JBDouglas talk) ---- */
#theory-guided .tgds { display: block; width: 1500px; max-width: 100%; height: auto; margin: 0 auto; }
#theory-guided .tgds text { font-family: var(--font); fill: var(--ink); }
#theory-guided .tgds .t-tick { font-size: 20px; fill: var(--muted); }
#theory-guided .tgds .t-axis { font-size: 26px; font-weight: 700; }
#theory-guided .tgds .t-box { font-size: 34px; font-weight: 700; }
#theory-guided .tgds .t-big { font-size: 48px; }
#theory-guided .tgds .t-eg { font-size: 21px; fill: var(--ink-soft); }
#theory-guided .tgds .t-head { font-size: 32px; font-weight: 700; fill: #426a26; }


/* ---- Initial chatbots based on an LLM: an animated chat with an "under the hood" panel (js/llm-demo.js) ---- */
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) :is(.llm-demo, .reason-demo, .tool-demo, .rag-demo) { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; height: 700px; text-align: left; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-steps { display: flex; align-items: center; gap: 14px; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-step { display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; font-size: 23px; font-weight: 600; color: var(--muted); transition: background 0.3s, color 0.3s; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-step.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-step.is-active .ld-step-n { background: var(--gold-light); color: var(--ink); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-step.is-done { color: var(--ink-soft); }
:is(#llm-reason, #llm-tools) .ld-step { min-height: 36px; padding-left: 22px; }   /* a single step, so no number */
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-frags { display: none; }
/* Built at once (going back, or arriving later): no entrance animations. */
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .is-still, :is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .is-still * { animation: none !important; transition: none !important; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-body { display: grid; grid-template-columns: minmax(0, 1fr) 780px; gap: 24px; min-height: 0; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-head { padding: 14px 24px; font-size: 17px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-head i { margin-right: 6px; color: var(--gold); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-chat .ld-head { border-bottom: 1px solid var(--line); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-height: 0; padding: 16px 24px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 40px); mask-image: linear-gradient(transparent, #000 40px); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-msg { flex: none; max-width: 88%; padding: 14px 20px; font-size: 25px; line-height: 1.4; animation: ld-in 0.25s ease-out; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-msg.is-user { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--ink); color: #fff; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-msg.is-bot { align-self: flex-start; border: 2px solid transparent; border-radius: 20px 20px 20px 6px; background: #f3eee2; color: var(--ink); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-msg.is-wrong { border-color: #b8432f; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-flag { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(184, 67, 47, 0.3); font-size: 21px; font-weight: 600; color: #9c3a28; animation: ld-in 0.3s ease-out; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-dots { display: none; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .is-thinking .ld-dots { display: inline-flex; gap: 6px; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); animation: ld-dot 1.2s infinite; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-dots i:nth-child(2) { animation-delay: 0.2s; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-dots i:nth-child(3) { animation-delay: 0.4s; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-input { min-height: 34px; margin: 0 20px 18px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 23px; color: var(--ink); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-caret { display: inline-block; width: 2px; height: 26px; background: var(--gold); vertical-align: text-bottom; animation: ld-blink 1s step-end infinite; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-hood { display: flex; flex-direction: column; min-height: 0; padding: 0 26px 22px; overflow: hidden; background: var(--ink); border-radius: var(--radius); color: #e6eee9; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-hood .ld-head { padding: 14px 0; color: var(--gold-light); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-hood .ld-head i { color: var(--gold-light); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-label { margin: 6px 0 10px; font-size: 19px; color: #a9bbb2; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-tokens { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; height: 176px; overflow: hidden; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-chip { display: inline-flex; flex-direction: column; align-items: center; padding: 4px 9px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; background: rgba(255, 255, 255, 0.07); font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 19px; line-height: 1.25; color: #fff; white-space: pre; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-chip.is-new { animation: ld-flash 1s ease-out; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-chip.is-focus { border: 2px solid var(--gold-light); background: rgba(241, 197, 109, 0.16); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-sp { color: rgba(255, 255, 255, 0.35); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-num { font-size: 14px; color: #a9bbb2; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-probs { display: grid; gap: 10px; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 64px; align-items: center; gap: 14px; font-size: 21px; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar-tok { font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; text-align: right; white-space: pre; color: #d7e2dc; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar-track { height: 22px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar-fill { display: block; width: 0; height: 100%; background: rgba(241, 197, 109, 0.5); transition: width 0.9s ease-out; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-probs.is-grown .ld-bar-fill { width: calc(var(--p) * 100%); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar-p { font-variant-numeric: tabular-nums; color: #a9bbb2; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar.is-chosen .ld-bar-fill { background: var(--gold-light); }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar.is-chosen .ld-bar-tok, :is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-bar.is-chosen .ld-bar-p { font-weight: 700; color: #fff; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .no-probs .ld-label-probs, :is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .no-probs .ld-probs { display: none; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .no-probs .ld-tokens { height: auto; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-extra { display: grid; gap: 14px; margin-top: 14px; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-see { display: flex; align-items: center; gap: 16px; animation: ld-in 0.3s ease-out; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-see-label { flex: none; width: 90px; font-size: 19px; color: #a9bbb2; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-letters { display: flex; gap: 6px; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-letters span { display: grid; place-items: center; width: 38px; height: 46px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 24px; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-letters span.is-hit { background: var(--gold-light); color: var(--ink); font-weight: 800; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-see-note { font-size: 19px; color: #a9bbb2; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-caption { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 24px; line-height: 1.4; color: #fff; opacity: 0; transition: opacity 0.5s; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .ld-caption.is-on { opacity: 1; }
:is(#llm-how, #llm-reason, #llm-tools, #llm-rag) .slide-note { margin-top: 18px; }
@keyframes ld-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ld-flash { from { background: rgba(241, 197, 109, 0.55); } }
@keyframes ld-blink { 50% { opacity: 0; } }
@keyframes ld-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes ld-spin { to { transform: rotate(360deg); } }

/* ---- Reasoning LLMs "think" before they answer (js/reasoning-demo.js); shares the chat styles above ---- */
:is(#llm-reason, #llm-tools, #llm-rag) [hidden] { display: none !important; }
#llm-reason .ld-msg.is-think { align-self: stretch; max-width: none; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f2; color: var(--muted); font-size: 20px; line-height: 1.45; }
#llm-reason .rd-think-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
#llm-reason .rd-para { display: block; font-style: italic; }
:is(#llm-reason, #llm-tools, #llm-rag) .rd-tool { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 18px; color: var(--ink-soft); animation: ld-in 0.25s ease-out; }
:is(#llm-reason, #llm-tools, #llm-rag) .rd-tool > .fa-solid:first-child { color: var(--gold); }
:is(#llm-reason, #llm-tools, #llm-rag) .ld-status { margin-left: auto; }
:is(#llm-reason, #llm-tools, #llm-rag) .ld-status.fa-circle-notch { animation: ld-spin 1s linear infinite; }
:is(#llm-reason, #llm-tools, #llm-rag) .ld-status.fa-check { color: #3f8f5a; }
:is(#llm-reason, #llm-tools, #llm-rag) .ld-msg.is-right { border-color: #3f8f5a; }
:is(#llm-reason, #llm-tools, #llm-rag) .ld-flag.is-ok { border-top-color: rgba(63, 143, 90, 0.3); color: #2f7a48; }
#llm-reason .rd-meters { display: grid; gap: 8px; margin-bottom: 6px; }
#llm-reason .rd-meter { display: grid; grid-template-columns: 110px minmax(0, 1fr) 120px; align-items: center; gap: 14px; font-size: 20px; color: #d7e2dc; }
#llm-reason .rd-meter-track { height: 18px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
#llm-reason .rd-meter-fill { display: block; width: 0; height: 100%; background: var(--gold-light); transition: width 0.15s linear; }
#llm-reason .rd-meter[data-kind="answer"] .rd-meter-fill { background: rgba(255, 255, 255, 0.75); }
#llm-reason .rd-meter-n { font-variant-numeric: tabular-nums; color: #a9bbb2; }
#llm-reason .rd-tree svg { display: block; width: 100%; height: auto; }
#llm-reason .rd-tree [data-stage] { opacity: 0; transition: opacity 0.5s; }
#llm-reason .rd-tree [data-stage].is-on { opacity: 1; }
#llm-reason .rd-tree text { font-family: var(--font); font-size: 21px; fill: #fff; }
#llm-reason .rd-tree text.is-dark { font-weight: 700; fill: var(--ink); }
#llm-reason .rd-box { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; }
#llm-reason .rd-box.is-true { fill: var(--gold-light); stroke: var(--gold-light); }
#llm-reason .rd-box.is-false { fill: none; stroke: var(--gold-light); stroke-dasharray: 6 5; }
#llm-reason .rd-link { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
#llm-reason .rd-result-line { margin-top: 10px; font-size: 23px; text-align: center; color: #fff; }
#llm-reason .rd-result-line strong { color: var(--gold-light); }

/* ---- LLMs start using tools (code/tool-use-widget.R, js/tool-demo.js); shares the chat styles above ---- */
#llm-tools .td-say { flex: none; align-self: flex-start; max-width: 92%; font-size: 21px; font-style: italic; line-height: 1.4; color: var(--muted); animation: ld-in 0.25s ease-out; }
#llm-tools .rd-tool { flex: none; margin: 0; }
#llm-tools .td-tool-name { font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-weight: 700; color: var(--ink); }
.reveal #llm-tools code.td-tool-code { min-width: 0; overflow: hidden; padding: 0; background: none; font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 16px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
#llm-tools .ld-status.fa-xmark { color: #b8432f; }
#llm-tools .ld-msg.is-warn { border-color: var(--gold); }
#llm-tools .ld-flag.is-warn { border-top-color: rgba(190, 131, 14, 0.35); color: var(--gold-ink); }
#llm-tools .td-loop { display: block; width: 100%; height: auto; margin-bottom: 2px; }
#llm-tools .td-node { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; }
#llm-tools .td-node-title { font-family: var(--font); font-size: 22px; font-weight: 700; fill: #fff; }
#llm-tools .td-node-sub { font-family: var(--font); font-size: 15px; fill: #a9bbb2; }
#llm-tools .td-arrow line { stroke: rgba(255, 255, 255, 0.25); stroke-width: 3; transition: stroke 0.3s; }
#llm-tools .td-arrow polygon { fill: rgba(255, 255, 255, 0.25); transition: fill 0.3s; }
#llm-tools .td-arrow text { font-family: var(--font); font-size: 16px; fill: #a9bbb2; transition: fill 0.3s; }
#llm-tools .td-arrow.is-on line { stroke: var(--gold-light); }
#llm-tools .td-arrow.is-on polygon { fill: var(--gold-light); }
#llm-tools .td-arrow.is-on text { font-weight: 700; fill: var(--gold-light); }
#llm-tools .ld-label { margin: 4px 0 6px; }
.reveal #llm-tools pre.td-pre { width: auto; max-width: none; height: 101px; margin: 0; padding: 10px 14px; overflow: hidden; border-radius: 8px; background: rgba(0, 0, 0, 0.22); box-shadow: none; font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.35; color: #e6eee9; white-space: pre; word-wrap: normal; }
.reveal #llm-tools pre.td-result { height: 202px; }
.reveal #llm-tools pre.td-result.is-error { color: #f3a99b; }
#llm-tools .slide-note { margin-top: 18px; }

/* ---- RAG grounds answers in your documents (code/rag-widget.R, js/rag-demo.js); shares the chat styles above ---- */
#llm-rag .rd-tool { flex: none; margin: 0; }
#llm-rag .rg-panel { display: grid; align-content: start; min-height: 0; }
#llm-rag .rg-hits { display: grid; gap: 10px; }
#llm-rag .rg-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.05); animation: ld-in 0.3s ease-out; }
#llm-rag .rg-hit-label { font-size: 20px; font-weight: 700; color: #fff; }
#llm-rag .rg-hit-score { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--gold-light); }
#llm-rag .rg-hit-text { grid-column: 1 / -1; overflow: hidden; font-size: 16px; color: #a9bbb2; text-overflow: ellipsis; white-space: nowrap; }
#llm-rag .rg-bar { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
#llm-rag .rg-bar-fill { display: block; width: 0; height: 100%; background: rgba(241, 197, 109, 0.55); transition: width 0.8s ease-out; }
#llm-rag .rg-hit.is-grown .rg-bar-fill { width: calc(var(--w) * 100%); }
#llm-rag .rg-hit.is-picked { border-color: var(--gold-light); background: rgba(241, 197, 109, 0.1); }
#llm-rag .rg-hit.is-picked .rg-bar-fill { background: var(--gold-light); }
.reveal #llm-rag pre.rg-prompt { width: auto; max-width: none; max-height: 410px; margin: 0; padding: 12px 16px; overflow: hidden; border-radius: 8px; background: rgba(0, 0, 0, 0.22); box-shadow: none; font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.4; color: #cfe0d8; white-space: pre-wrap; word-wrap: break-word; }
#llm-rag .rg-part { animation: ld-in 0.3s ease-out; }
#llm-rag .rg-part.is-instruction { font-weight: 700; color: var(--gold-light); }
#llm-rag .rg-part.is-question { font-weight: 700; color: #fff; }
#llm-rag .rg-sources { display: grid; gap: 12px; }
#llm-rag .rg-source { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.05); animation: ld-in 0.3s ease-out; }
#llm-rag .rg-source.is-cited { border-color: #8fd19e; }
#llm-rag .rg-source-head { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: #fff; }
#llm-rag .rg-source-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); font-size: 15px; }
#llm-rag .rg-source.is-cited .rg-source-n { background: #8fd19e; color: var(--ink); }
#llm-rag .rg-source-text { font-size: 16px; line-height: 1.4; color: #a9bbb2; }
#llm-rag .rg-source-text mark { padding: 0 2px; border-radius: 3px; background: rgba(241, 197, 109, 0.85); color: var(--ink); }
#llm-rag .rg-source-note { font-size: 16px; font-weight: 600; color: #8fd19e; }
#llm-rag .rg-source:not(.is-cited) .rg-source-note { color: #f3c58a; }
#llm-rag .rg-cite { margin-left: 3px; padding: 0 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.65em; font-weight: 700; vertical-align: super; }

/* ---- Signs of AI in packages and papers; what AI-written text and code look like; reviewers ---- */
:is(#ai-evidence, #ai-reviewers, #ai-skills) p { margin: 0; }
:is(#ai-evidence, #ai-reviewers, #ai-skills) .evidence-label { display: block; margin-bottom: 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
:is(#ai-evidence, #ai-reviewers) .evidence-num { display: block; font-size: 72px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--gold-ink); }
:is(#ai-evidence, #ai-reviewers) .evidence-text { display: block; margin-top: 6px; font-size: 25px; line-height: 1.4; color: var(--ink-soft); }
:is(#ai-evidence, #ai-reviewers) .evidence-text strong { color: var(--ink); }
#ai-evidence .evidence-layout { display: grid; grid-template-columns: minmax(0, 1fr) 520px; column-gap: 48px; align-items: start; }
#ai-evidence .evidence-chart .chart-svg svg { display: block; width: 100%; height: auto; }
#ai-evidence .evidence-words { display: block; margin-top: 8px; font-size: 18px; line-height: 1.4; color: var(--muted); }
#ai-evidence :is(.evidence-papers, .evidence-journal) { padding: 30px 34px 32px; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
#ai-evidence .evidence-how { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; line-height: 1.4; color: var(--muted); }
#ai-reviewers .reviewers-layout { display: grid; grid-template-columns: 640px minmax(0, 1fr); column-gap: 48px; align-items: start; margin-top: 12px; }
#ai-reviewers .reviewers-evidence p:has(.evidence-num):not(:first-child) { margin-top: 34px; }
#ai-reviewers .reviewers-seen { padding: 28px 32px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
#ai-reviewers .review-who { display: block; margin-top: 14px; font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#ai-reviewers .review-text { display: block; margin-top: 4px; padding-left: 16px; border-left: 4px solid var(--gold-soft); font-size: 25px; line-height: 1.4; color: var(--ink); }
#ai-reviewers .review-text strong { background: rgba(241, 197, 109, 0.5); font-weight: 700; }
#ai-reviewers .review-note { display: block; margin-top: 18px; font-size: 19px; color: var(--muted); }
#ai-reviewers .decision-message { width: fit-content; margin: 30px auto 0; padding: 20px 34px; border-radius: var(--radius); background: var(--gold-soft); color: var(--ink); font-size: 34px; font-weight: 600; line-height: 1.3; }
#ai-reviewers .decision-message strong { color: var(--gold-ink); }
#ai-reviewers .decision-message p { margin: 0; }
#ai-evidence .evidence-side { display: grid; gap: 22px; }
#ai-evidence .evidence-journal { padding-top: 24px; padding-bottom: 26px; border-top-color: var(--ink); }
#ai-evidence .evidence-journal .evidence-text { margin-top: 0; }
#ai-reviewers .decision-message { text-align: center; }

/* ---- Adding "skills" to an AI agent ---- */
#ai-skills .lead { margin-bottom: 20px; font-size: 30px; }
#ai-skills .skills-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 36px; align-items: start; }
#ai-skills .skills-card { padding: 20px 26px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.reveal #ai-skills div.sourceCode { margin: 0; border-radius: 12px; }
.reveal #ai-skills pre.sourceCode { margin: 0; }
.reveal #ai-skills pre code { font-size: 17px; line-height: 1.38; }
#ai-skills .skills-card p:has(.skill-name) { display: grid; grid-template-columns: 290px minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); line-height: 1.25; }
.reveal #ai-skills .skill-name code { padding: 1px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink); font-size: 17px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
#ai-skills .skill-desc { font-size: 19px; line-height: 1.25; color: var(--ink-soft); }
#ai-skills .skill-link { display: block; margin-top: 8px; font-size: 19px; font-weight: 700; }
#ai-skills .skill-link a { color: var(--gold-ink) !important; }
#ai-skills .skill-link .fa-brands { margin-right: 8px; color: var(--ink); }
#ai-skills .slide-note { margin-top: 16px; }

/* ---- The social contract has changed ---- */
#social-contract .people-message { max-width: 1560px; margin-bottom: 56px; font-size: 76px; }
#social-contract .people-message mark {
  margin: 0 -0.06em; padding: 0 0.06em;
  background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%);
  color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#social-contract .contract-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 60px minmax(0, 1fr) 60px minmax(0, 1fr); align-items: center; column-gap: 18px; margin-top: 22px; }
#social-contract .contract-row p { display: contents; }
#social-contract .contract-when { font-size: 22px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
#social-contract .contract-step { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); font-size: 30px; font-weight: 600; color: var(--ink); }
#social-contract .contract-step .fa-solid { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 24px; }
#social-contract .contract-arrow { justify-self: center; font-size: 28px; color: var(--muted); }
#social-contract .is-now .contract-when { color: var(--gold-ink); }
#social-contract .is-now .contract-step { border-color: var(--gold); }
#social-contract .is-now .contract-step:last-child { background: var(--ink); border-color: var(--ink); color: #fff; }
#social-contract .is-now .contract-step:last-child .fa-solid { background: var(--gold-light); color: var(--ink); }

/* AI can pass on and reinforce our biases: the loop label and the reinforcement banner */

#social-contract .contract-gone { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 56px; padding: 22px 28px; border-radius: var(--radius); background: var(--gold-soft); }
#social-contract .contract-gone p { display: contents; }
#social-contract .contract-gone-label { margin-right: 10px; font-size: 30px; font-weight: 700; color: var(--ink); }
#social-contract .contract-chip { padding: 8px 20px; border: 1px solid var(--gold); border-radius: 999px; background: var(--paper); font-size: 26px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }


/* ---- The distinctive value humans bring: people in the equation ---- */
#human-value .people-message { max-width: 1500px; margin-bottom: 40px; font-size: 84px; }
#human-value .people-message mark {
  margin: 0 -0.06em; padding: 0 0.06em;
  background: linear-gradient(transparent 58%, rgba(241, 197, 109, 0.75) 58%);
  color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#human-value .hv-equation { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; }
#human-value .hv-equation p { display: contents; }
#human-value .hv-term { padding: 14px 30px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-size: 36px; font-weight: 700; color: var(--ink); }
#human-value .hv-term.is-people { background: var(--ink); border-color: var(--ink); color: var(--gold-light); }
#human-value .hv-term.is-result { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
#human-value .hv-term.is-optional { position: relative; border: 2px dashed #9aa79f; background: transparent; box-shadow: none; color: var(--ink-soft); }
#human-value .hv-opt { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; font-size: 17px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
#human-value .hv-op { font-size: 40px; font-weight: 700; color: var(--muted); }
#human-value .hv-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
#human-value .hv-value { padding: 24px 26px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
#human-value .hv-value p { margin: 0; }
#human-value .hv-value .fa-solid { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 23px; }
#human-value .hv-value strong { display: block; margin-bottom: 4px; font-size: 29px; color: var(--ink); }
#human-value .hv-desc { display: block; font-size: 23px; line-height: 1.38; color: var(--ink-soft); }
#human-value .hv-em { font-weight: 700; color: var(--ink); }
#ai-skills .evidence-label { margin-bottom: 6px; font-size: 18px; }
#ai-skills .skills-side { display: grid; gap: 14px; }
#ai-skills .skills-card p:has(.repo-name) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); line-height: 1.25; }
#ai-skills .skills-card p:has(.repo-name):last-child { border-bottom: 0; }
#ai-skills .repo-name { font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; }
#ai-skills .repo-name a { color: var(--gold-ink) !important; }
#ai-skills .repo-stars { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
#ai-skills .repo-stars .fa-star { margin-right: 4px; color: var(--gold); }
#ai-skills .repo-desc { grid-column: 1 / -1; font-size: 18px; color: var(--ink-soft); }
/* Rows inherit the slide's large base font size; set it so the line box matches the text. */
#ai-skills .skills-card p { font-size: 19px; line-height: 1.3; }
/* Are LLMs good statisticians? The speaker's view, revealed on the last click */
#llm-statisticians .lead-view { font-weight: 700; color: var(--gold-ink); }
#llm-statisticians .statqa-ask { padding: 34px 36px; border-radius: var(--radius); background: var(--ink); }
#llm-statisticians .statqa-ask p { margin: 0; }
#llm-statisticians .statqa-ask-text { display: block; font-size: 52px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--gold-light); }

/* ---- The questions behind the scores ---- */
#statqa-questions p { margin: 0; }
#statqa-questions .lead { margin: 22px 0 0; }
#statqa-questions .lead strong { color: var(--gold-ink); }
#statqa-questions .sq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#statqa-questions .sq-card { display: grid; gap: 10px; align-content: start; padding: 24px 28px 26px; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
#statqa-questions .ex-label { display: inline; margin-right: 12px; color: var(--gold-ink); font-size: 18px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
#statqa-questions .sq-data { font-size: 22px; color: var(--ink-soft); }
#statqa-questions .sq-question { display: block; font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--ink); }
#statqa-questions .sq-card p:has(.sq-key), #statqa-questions .sq-card p:has(.sq-claude) { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; align-items: baseline; font-size: 22px; line-height: 1.35; }
#statqa-questions .sq-key { color: var(--ink-soft); }
#statqa-questions .sq-claude { font-weight: 600; color: var(--ink); }
#statqa-questions .fa-check { color: #2f7d57; }
#statqa-questions .fa-xmark { color: #a3462d; }
#statqa-questions .fa-circle-info { color: var(--gold); }
#statqa-questions .slide-note { margin-top: 16px; }
#statqa-questions .sq-unseen { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px 24px; border-radius: var(--radius); background: var(--gold-soft); }
#statqa-questions .sq-unseen p { display: contents; }
#statqa-questions .sq-unseen .fa-solid { flex: none; font-size: 24px; color: var(--gold-ink); }
#statqa-questions .sq-unseen-text { font-size: 24px; font-weight: 600; color: var(--ink); }
#ai-skills .skill-source { display: block; margin-top: 10px; font-size: 17px; color: var(--muted); }
#ai-skills .skill-source a { font-weight: 700; color: var(--gold-ink) !important; }
#ai-skills .skill-source .fa-brands { margin-right: 6px; color: var(--ink); }
.reveal #ai-skills .skill-source code { padding: 0 6px; border-radius: 5px; background: var(--gold-soft); color: var(--gold-ink); font-size: 16px; }
