/* ==========================================================================
   Critical Care Nephrology — shared course theme for reveal.js decks
   Design language: "Claude" — warm paper, ink, clay accent
   Palette: ivory/paper backgrounds · warm slate ink · clay-orange accent
            cactus (green) · sky (blue) · crail (red) as semantic accents
   ========================================================================== */

:root {
  /* --- surfaces (warm paper) --- */
  --ccn-paper:      #FAF9F5;   /* deck background */
  --ccn-paper-2:    #F0EEE6;   /* subtle panel */
  --ccn-paper-3:    #E8E5DA;   /* deeper panel / rules */
  --ccn-card:       #FFFFFF;
  --ccn-line:       #E3DFD3;
  --ccn-line-soft:  #EDEAE0;

  /* --- ink (warm slate, not black) --- */
  --ccn-ink:        #1F1E1D;
  --ccn-ink-2:      #3D3A34;
  --ccn-muted:      #6B675E;
  --ccn-faint:      #928D82;

  /* --- accent: Claude clay / book cloth --- */
  --ccn-clay:       #D97757;   /* primary accent */
  --ccn-clay-deep:  #BD5D3A;   /* accent text on light */
  --ccn-clay-soft:  #F6E8E0;   /* accent wash */
  --ccn-kraft:      #D4A27F;
  --ccn-manilla:    #EBDBBC;

  /* --- semantic accents --- */
  --ccn-cactus:      #4F7B6E;  /* key point / good */
  --ccn-cactus-soft: #E4EDE8;
  --ccn-crail:       #B14A3B;  /* pitfall / danger */
  --ccn-crail-soft:  #F7E7E2;
  --ccn-sky:         #4E7A9B;  /* poll / interactive */
  --ccn-sky-soft:    #E6EDF2;
  --ccn-plum:        #7A5C86;  /* optional 5th accent */

  /* --- dark surfaces (title, section, takeaway) --- */
  --ccn-slate:      #262624;
  --ccn-slate-2:    #1B1B19;
  --ccn-slate-3:    #34322D;

  /* --- typography --- */
  --ccn-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --ccn-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ccn-mono: "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  --ccn-radius: 12px;
  --ccn-radius-lg: 20px;
  --ccn-shadow: 0 1px 2px rgba(31,30,29,.05), 0 6px 18px rgba(31,30,29,.06);

  /* --- type scale (relative to the 30px slide root) ---
     Sized for a lecture room, not a laptop: body text lands at ~21px in the
     1280x720 coordinate space. autofit.js shrinks any slide that overflows,
     so the scale is set for legibility first and density second.
     h1 47 · h2 35 · h3 29 · h4 24 · body 21 · card 18 · table 17 · cite 13  */
  --fs-h1:    1.58em;
  --fs-h2:    1.16em;
  --fs-h3:    0.96em;
  --fs-h4:    0.80em;
  --fs-body:  0.70em;
  --fs-box:   0.62em;
  --fs-card:  0.60em;
  --fs-table: 0.58em;
  --fs-small: 0.52em;
  --fs-cite:  0.42em;

  --lh-tight: 1.22;
  --lh-body:  1.46;
}

/* ---------- canvas ---------- */
html, body { background: var(--ccn-paper); }

.reveal-viewport {
  background: var(--ccn-paper) !important;
  background-image:
    radial-gradient(900px 520px at 88% -12%, rgba(217,119,87,.07), transparent 62%),
    radial-gradient(760px 480px at -8% 108%, rgba(79,123,110,.07), transparent 62%);
}

.reveal {
  font-family: var(--ccn-sans);
  color: var(--ccn-ink-2);
  font-size: 30px;
  -webkit-font-smoothing: antialiased;
}

/* reveal.js copies each section's classes onto its full-screen backdrop
   element in `.backgrounds`. Without this reset, the dark title/section/
   takeaway gradients below would paint the whole viewport and bury the
   paper background.                                                       */
.reveal .backgrounds .slide-background {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.reveal .slides { text-align: left; }

.reveal section {
  padding: 0 2.2rem;
  box-sizing: border-box;
}

/* Layout hardening: never let a dense slide push content off the canvas.
   autofit.js shrinks the section root font-size; because every element below
   is sized in em, the whole slide then scales as one unit and the internal
   rhythm is preserved.                                                      */
.reveal .slides > section > *:first-child { margin-top: 0; }
.reveal .slides > section > *:last-child  { margin-bottom: 0; }

/* reveal's default paragraph margins are too generous for dense clinical
   slides — tighten and let the block classes own their own spacing.        */
.reveal .slides > section > p { margin: 0.35em 0; }
.reveal h2 + .grid-2, .reveal h2 + .grid-3, .reveal h2 + .grid-4,
.reveal h2 + .grid-2a, .reveal h2 + table, .reveal h2 + .flow,
.reveal h2 + .ladder, .reveal h2 + .defs { margin-top: 0.15em; }

/* density modifiers — apply to a section when a slide must stay verbatim   */
.reveal section.dense  p, .reveal section.dense  li { font-size: 0.60em; }
.reveal section.dense  .card p, .reveal section.dense .card li { font-size: 0.52em; }
.reveal section.dense  table { font-size: 0.50em; }
.reveal section.xdense p, .reveal section.xdense li { font-size: 0.54em; }
.reveal section.xdense .card p, .reveal section.xdense .card li { font-size: 0.48em; }
.reveal section.xdense table { font-size: 0.46em; }

/* ---------- headings ---------- */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--ccn-sans);
  text-transform: none;
  letter-spacing: -0.012em;
  line-height: 1.14;
  color: var(--ccn-ink);
}

.reveal h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.08; text-wrap: balance; }

.reveal h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 0.5em;
  padding-bottom: 0.3em;
  position: relative;
  text-wrap: balance;
}

/* a short clay rule under every content-slide title */
.reveal section > h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2.2em; height: 3px;
  background: var(--ccn-clay);
  border-radius: 2px;
}
.reveal .section-slide h2::after,
.reveal .takeaway h2::after,
.reveal .title-slide h2::after { display: none; }

.reveal h3 { font-size: var(--fs-h3); font-weight: 650; color: var(--ccn-clay-deep); }
.reveal h4 { font-size: var(--fs-h4); font-weight: 700; color: var(--ccn-ink); letter-spacing: 0; }

.reveal p, .reveal li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.reveal ul, .reveal ol { margin: 0.4em 0 0.6em 1.15em; }
.reveal li { margin: 0.17em 0; }

.reveal ul li::marker { color: var(--ccn-kraft); }
.reveal ol li::marker { color: var(--ccn-kraft); font-weight: 700; }

.reveal strong { color: var(--ccn-ink); font-weight: 650; }
.reveal em { color: inherit; }

.reveal a { color: var(--ccn-clay-deep); }

/* inline code / values */
.reveal code, .reveal .val {
  font-family: var(--ccn-mono);
  font-size: 0.92em;
  background: var(--ccn-paper-2);
  border: 1px solid var(--ccn-line);
  border-radius: 6px;
  padding: 0.06em 0.36em;
  color: var(--ccn-ink);
}

/* ---------- blockquote ---------- */
.reveal blockquote {
  font-family: var(--ccn-serif);
  font-size: 0.78em;
  font-style: normal;
  color: var(--ccn-ink);
  border: none;
  border-left: 3px solid var(--ccn-clay);
  background: transparent;
  box-shadow: none;
  padding: 0.4em 0 0.4em 1.1em;
  margin: 0.8em 0;
  width: 100%;
  line-height: 1.4;
}

/* ---------- title slide ---------- */
.reveal .title-slide {
  text-align: left;
  background:
    radial-gradient(760px 420px at 92% -20%, rgba(217,119,87,.34), transparent 60%),
    radial-gradient(620px 400px at -12% 118%, rgba(212,162,127,.18), transparent 62%),
    linear-gradient(155deg, #2E2C28 0%, #262624 50%, #1B1B19 100%);
  border-radius: var(--ccn-radius-lg);
  color: #F5F3EC;
  padding: 2.5rem 3.2rem !important;
  width: 88%;
  box-shadow: 0 18px 48px rgba(31,30,29,.18);
}

.reveal .title-slide h1 {
  color: #FBF9F3;
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.2em 0 0.18em;
}

.reveal .title-slide .kicker {
  font-size: 0.5em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ccn-kraft);
  font-weight: 600;
}

.reveal .title-slide .subtitle {
  font-family: var(--ccn-serif);
  font-size: 0.76em;
  color: #D8D3C6;
  margin: 0.35em 0 1em;
  max-width: 88%;
  line-height: 1.35;
}

.reveal .title-slide .meta {
  font-size: 0.48em;
  color: #9A958A;
  margin-top: 1.3em;
}

.reveal .title-slide .badges {
  margin-top: 1.1em;
  display: flex;
  justify-content: flex-start;
  gap: 0.6em;
  flex-wrap: wrap;
}

.reveal .title-slide .badge {
  font-size: 0.44em;
  color: #EDE8DC;
  background: rgba(250,249,245,.06);
  border: 1px solid rgba(235,219,188,.32);
  border-radius: 999px;
  padding: 0.34em 0.95em;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- section divider ---------- */
.reveal .section-slide {
  text-align: left;
  background:
    radial-gradient(560px 340px at 96% 0%, rgba(217,119,87,.22), transparent 62%),
    linear-gradient(155deg, #2E2C28 0%, #262624 60%, #1B1B19 100%);
  color: #F5F3EC;
  border-radius: var(--ccn-radius-lg);
  padding: 2.3rem 3rem !important;
  width: 88%;
  box-shadow: 0 18px 48px rgba(31,30,29,.16);
}

.reveal .section-slide h2 {
  color: #FBF9F3;
  font-size: 1.32em;
  font-weight: 700;
  margin: 0.22em 0 0.2em;
}

.reveal .section-slide .sec-num {
  font-family: var(--ccn-mono);
  font-size: 0.62em;
  font-weight: 700;
  color: var(--ccn-clay);
  letter-spacing: 0.24em;
}

.reveal .section-slide .sec-chapters {
  font-size: 0.46em;
  color: #9A958A;
  margin-top: 0.9em;
  letter-spacing: 0.04em;
}

.reveal .section-slide .sec-lead {
  font-family: var(--ccn-serif);
  font-size: 0.62em;
  color: #D8D3C6;
  margin-top: 0.5em;
  max-width: 80%;
  line-height: 1.35;
}

/* ---------- generic content helpers ---------- */
.reveal .kicker-line {
  font-size: 0.44em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ccn-clay-deep);
  font-weight: 700;
  margin-bottom: 0.35em;
}

.reveal .cite {
  font-size: var(--fs-cite);
  color: var(--ccn-faint);
  margin-top: 0.85em;
  line-height: 1.32;
  border-top: 1px solid var(--ccn-line-soft);
  padding-top: 0.5em;
}

.reveal .small { font-size: var(--fs-small); }
.reveal .xsmall { font-size: 0.46em; line-height: 1.35; }
.reveal .muted { color: var(--ccn-muted); }
.reveal .center { text-align: center; }
.reveal .tight li { margin: 0.08em 0; }
.reveal .r-stack > * { margin: 0.15em 0; }

/* lead sentence under a title */
.reveal .lead {
  font-family: var(--ccn-serif);
  font-size: 0.7em;
  color: var(--ccn-ink-2);
  line-height: 1.4;
  margin: 0.1em 0 0.6em;
}

/* inline tag / pill */
.reveal .pill {
  display: inline-block;
  font-size: 0.44em;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22em 0.7em;
  border-radius: 999px;
  background: var(--ccn-paper-2);
  border: 1px solid var(--ccn-line);
  color: var(--ccn-muted);
  margin: 0 0.25em 0.3em 0;
  vertical-align: middle;
}
.reveal .pill.clay   { background: var(--ccn-clay-soft);   border-color: #EBC9B7; color: var(--ccn-clay-deep); }
.reveal .pill.green  { background: var(--ccn-cactus-soft); border-color: #C6DAD1; color: var(--ccn-cactus); }
.reveal .pill.red    { background: var(--ccn-crail-soft);  border-color: #EDC8BF; color: var(--ccn-crail); }
.reveal .pill.blue   { background: var(--ccn-sky-soft);    border-color: #C6D6E1; color: var(--ccn-sky); }

/* ---------- grids ---------- */
.reveal .grid-2, .reveal .grid-3, .reveal .grid-4, .reveal .grid-2a {
  display: grid;
  gap: 0.65rem;
  margin: 0.55em 0;
}

.reveal .grid-2  { grid-template-columns: 1fr 1fr; }
.reveal .grid-3  { grid-template-columns: repeat(3, 1fr); }
.reveal .grid-4  { grid-template-columns: repeat(4, 1fr); }
.reveal .grid-2a { grid-template-columns: 1.35fr 1fr; }  /* asymmetric */

/* ---------- cards ---------- */
.reveal .card {
  background: var(--ccn-card);
  border: 1px solid var(--ccn-line);
  border-top: 3px solid var(--ccn-kraft);
  border-radius: var(--ccn-radius);
  padding: 0.6em 0.8em;
  box-shadow: var(--ccn-shadow);
}

.reveal .card h4 {
  margin: 0 0 0.28em;
  color: var(--ccn-ink);
  font-size: 0.76em;
  letter-spacing: 0.01em;
}

.reveal .card p, .reveal .card li { font-size: var(--fs-card); }
.reveal .card ul, .reveal .card ol { margin: 0.25em 0 0.1em 1em; }

/* card colour variants */
.reveal .card.clay  { border-top-color: var(--ccn-clay); }
.reveal .card.clay h4  { color: var(--ccn-clay-deep); }
.reveal .card.green { border-top-color: var(--ccn-cactus); }
.reveal .card.green h4 { color: var(--ccn-cactus); }
.reveal .card.red   { border-top-color: var(--ccn-crail); }
.reveal .card.red h4   { color: var(--ccn-crail); }
.reveal .card.blue  { border-top-color: var(--ccn-sky); }
.reveal .card.blue h4  { color: var(--ccn-sky); }
.reveal .card.flat  { background: var(--ccn-paper-2); box-shadow: none; }

/* ---------- callout boxes ---------- */
.reveal .kbox, .reveal .warn, .reveal .case-box, .reveal .poll {
  border-radius: var(--ccn-radius);
  padding: 0.62em 0.9em;
  margin: 0.65em 0;
  border: 1px solid transparent;
}

.reveal .kbox {
  background: var(--ccn-cactus-soft);
  border-color: #CFDFD8;
  border-left: 5px solid var(--ccn-cactus);
}

.reveal .warn {
  background: var(--ccn-crail-soft);
  border-color: #EFD2CA;
  border-left: 5px solid var(--ccn-crail);
}

.reveal .case-box {
  background: var(--ccn-clay-soft);
  border-color: #EFD5C6;
  border-left: 5px solid var(--ccn-clay);
}

.reveal .poll {
  background: var(--ccn-sky-soft);
  border-color: #CEDCE6;
  border-left: 5px solid var(--ccn-sky);
}

.reveal .box-title {
  font-weight: 700;
  font-size: 0.54em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.28em;
}

.reveal .kbox .box-title     { color: var(--ccn-cactus); }
.reveal .warn .box-title     { color: var(--ccn-crail); }
.reveal .case-box .box-title { color: var(--ccn-clay-deep); }
.reveal .poll .box-title     { color: var(--ccn-sky); }

.reveal .kbox p, .reveal .warn p, .reveal .case-box p, .reveal .poll p,
.reveal .kbox li, .reveal .warn li, .reveal .case-box li, .reveal .poll li {
  font-size: var(--fs-box);
}
.reveal .kbox ul, .reveal .warn ul, .reveal .case-box ul, .reveal .poll ul { margin: 0.2em 0 0.1em 1em; }

/* ---------- tables ---------- */
.reveal table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-table);
  margin: 0.6em 0;
  width: 100%;
  background: var(--ccn-card);
  border: 1px solid var(--ccn-line);
  border-radius: var(--ccn-radius);
  overflow: hidden;
  box-shadow: var(--ccn-shadow);
}

.reveal th {
  background: var(--ccn-slate);
  color: #F2EFE7;
  font-weight: 600;
  padding: 0.46em 0.7em;
  text-align: left;
  font-size: 0.92em;
  letter-spacing: 0.02em;
  border: none;
}

.reveal td {
  border: none;
  border-bottom: 1px solid var(--ccn-line-soft);
  padding: 0.42em 0.7em;
  vertical-align: top;
  color: var(--ccn-ink-2);
}

.reveal tbody tr:last-child td { border-bottom: none; }
.reveal tr:nth-child(even) td { background: var(--ccn-paper); }

/* first column emphasis */
.reveal table.keyed td:first-child { font-weight: 650; color: var(--ccn-ink); }

/* compact table for dense data */
.reveal table.compact { font-size: 0.48em; }
.reveal table.compact td, .reveal table.compact th { padding: 0.34em 0.55em; }

/* row highlight */
.reveal tr.hi td { background: var(--ccn-clay-soft) !important; }

/* ---------- stat / numbers ---------- */
.reveal .stat {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--ccn-clay-deep);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.reveal .stat small {
  display: block;
  font-size: 0.4em;
  font-weight: 500;
  color: var(--ccn-muted);
  margin-top: 0.3em;
  letter-spacing: 0;
  line-height: 1.3;
}

.reveal .stat.green { color: var(--ccn-cactus); }
.reveal .stat.red   { color: var(--ccn-crail); }
.reveal .stat.blue  { color: var(--ccn-sky); }
.reveal .stat.ink   { color: var(--ccn-ink); }

/* ---------- process flow (A → B → C) ---------- */
.reveal .flow {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0.6em 0;
  flex-wrap: wrap;
}

.reveal .flow .step {
  flex: 1 1 0;
  min-width: 0;
  background: var(--ccn-card);
  border: 1px solid var(--ccn-line);
  border-radius: var(--ccn-radius);
  padding: 0.5em 0.6em;
  position: relative;
  box-shadow: var(--ccn-shadow);
}

.reveal .flow .step .n {
  font-family: var(--ccn-mono);
  font-size: 0.42em;
  font-weight: 700;
  color: var(--ccn-clay);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.2em;
}

.reveal .flow .step p { font-size: 0.52em; margin: 0; }
.reveal .flow .step strong { display: block; font-size: 1.06em; margin-bottom: 0.15em; }

.reveal .flow .arrow {
  align-self: center;
  color: var(--ccn-kraft);
  font-size: 0.7em;
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------- ladder / stepped list ---------- */
.reveal .ladder { margin: 0.55em 0; }

.reveal .ladder .rung {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  gap: 0.6em;
  align-items: start;
  padding: 0.32em 0.5em;
  border-left: 3px solid var(--ccn-line);
  margin-left: 0.2em;
}

.reveal .ladder .rung + .rung { margin-top: 0.12em; }
.reveal .ladder .rung:hover { border-left-color: var(--ccn-clay); }

.reveal .ladder .rung .k {
  font-family: var(--ccn-mono);
  font-size: 0.5em;
  font-weight: 700;
  color: var(--ccn-clay);
  padding-top: 0.35em;
}

.reveal .ladder .rung p { font-size: 0.56em; margin: 0.1em 0; }
.reveal .ladder .rung strong { color: var(--ccn-ink); }

/* ---------- definition / term rows ---------- */
.reveal .defs { margin: 0.5em 0; }

.reveal .defs .row {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 0.7em;
  padding: 0.3em 0;
  border-bottom: 1px solid var(--ccn-line-soft);
}
.reveal .defs .row:last-child { border-bottom: none; }
.reveal .defs .t { font-size: 0.56em; font-weight: 700; color: var(--ccn-clay-deep); }
.reveal .defs .d { font-size: 0.56em; color: var(--ccn-ink-2); }

/* ---------- equation / formula block ---------- */
.reveal .formula {
  font-family: var(--ccn-mono);
  font-size: 0.56em;
  background: var(--ccn-slate);
  color: #F2EFE7;
  border-radius: var(--ccn-radius);
  padding: 0.65em 0.9em;
  margin: 0.55em 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.reveal .formula .hl { color: var(--ccn-kraft); }
.reveal .formula .note { display: block; font-family: var(--ccn-sans); font-size: 0.8em; color: #A9A398; margin-top: 0.35em; }

/* light formula variant */
.reveal .formula.light {
  background: var(--ccn-paper-2);
  color: var(--ccn-ink);
  border: 1px solid var(--ccn-line);
}
.reveal .formula.light .hl { color: var(--ccn-clay-deep); }
.reveal .formula.light .note { color: var(--ccn-muted); }

/* ---------- trial evidence strip ---------- */
.reveal .trial {
  background: var(--ccn-card);
  border: 1px solid var(--ccn-line);
  border-left: 4px solid var(--ccn-sky);
  border-radius: var(--ccn-radius);
  padding: 0.45em 0.75em;
  margin: 0.35em 0;
}
.reveal .trial .name {
  font-size: 0.52em;
  font-weight: 700;
  color: var(--ccn-sky);
  letter-spacing: 0.04em;
}
.reveal .trial p { font-size: 0.52em; margin: 0.1em 0 0; }

/* ---------- objectives & takeaways ---------- */
.reveal .objectives li { font-size: 0.64em; margin: 0.35em 0; }

.reveal .objectives ol {
  list-style: none;
  margin-left: 0;
  counter-reset: obj;
}
.reveal .objectives ol li {
  counter-increment: obj;
  padding-left: 1.9em;
  position: relative;
}
.reveal .objectives ol li::before {
  content: counter(obj);
  position: absolute;
  left: 0; top: 0.1em;
  width: 1.35em; height: 1.35em;
  border-radius: 50%;
  background: var(--ccn-clay-soft);
  color: var(--ccn-clay-deep);
  font-size: 0.78em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal .takeaway {
  background:
    radial-gradient(540px 320px at 98% -10%, rgba(217,119,87,.2), transparent 62%),
    linear-gradient(155deg, #2E2C28 0%, #262624 60%, #1B1B19 100%);
  border-radius: var(--ccn-radius-lg);
  color: #EDE9DE;
  padding: 1.5rem 2rem !important;
  width: 88%;
  box-shadow: 0 18px 48px rgba(31,30,29,.16);
}

.reveal .takeaway h2 { color: #FBF9F3; }
.reveal .takeaway strong { color: #FBF9F3; }
.reveal .takeaway ul { list-style: none; margin-left: 0; }
.reveal .takeaway li { font-size: 0.64em; margin: 0.4em 0; padding-left: 1.1em; text-indent: -1.1em; }
.reveal .takeaway li::before {
  content: "→ ";
  color: var(--ccn-clay);
  font-weight: 700;
}
.reveal .takeaway .cite { color: #8B867C; border-top-color: rgba(235,219,188,.16); }

/* ---------- references ---------- */
.reveal .references ol { font-size: 0.5em; margin-left: 1.2em; }
.reveal .references li { margin: 0.3em 0; color: var(--ccn-muted); }
.reveal .references li em { color: var(--ccn-ink-2); }

/* ---------- case slides ---------- */
.reveal .case-meta {
  font-size: 0.5em;
  color: var(--ccn-faint);
  margin-top: 0.55em;
}

.reveal .prompt {
  font-size: 0.62em;
  font-weight: 650;
  color: var(--ccn-clay-deep);
  margin-top: 0.6em;
}

/* labelled vitals / lab strip inside a case */
.reveal .labs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  margin: 0.45em 0 0.1em;
}
.reveal .labs span {
  font-family: var(--ccn-mono);
  font-size: 0.44em;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--ccn-line);
  border-radius: 6px;
  padding: 0.22em 0.5em;
  color: var(--ccn-ink);
}

/* ---------- footer / slide number / chrome ---------- */
/* The footer lives OUTSIDE .reveal, so it is not part of the deck's scaled
   coordinate space — size it in px, not em.                               */
.slide-footer {
  position: fixed;
  left: 26px;
  bottom: 16px;
  font-family: var(--ccn-sans);
  font-size: 11px;
  color: var(--ccn-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 5;
  pointer-events: none;
}

.slide-footer .week {
  color: var(--ccn-clay-deep);
  font-weight: 700;
}

.reveal .slide-number {
  font-family: var(--ccn-mono);
  font-size: 0.4em;
  background: rgba(38,38,36,.86);
  color: #F2EFE7;
  border-radius: 999px;
  padding: 0.2em 0.7em;
}

.reveal .progress {
  color: var(--ccn-clay);
  height: 4px;
  background: rgba(31,30,29,.07);
}

.reveal .controls { color: var(--ccn-clay-deep); }

/* fragment de-emphasis */
.reveal .slides section .fragment.dim.visible { opacity: 0.45; }

/* ---------- print / PDF ---------- */
@media print {
  .slide-footer { display: none; }
  .reveal .card, .reveal table, .reveal .flow .step, .reveal .trial {
    box-shadow: none;
  }
}
