/* Code: smaller than verso-slides' default 0.55em. */
.reveal code.hl.lean.block { font-size: 0.45em; }
.info-panel { font-size: 0.45em; }

/* The white theme uppercases headings; keep identifiers as written. */
.reveal h1, .reveal h2, .reveal h3 { text-transform: none; }

/* Fallback fonts for Chinese text. */
:root {
  --r-main-font: "Source Sans Pro", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --r-heading-font: "Source Sans Pro", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

/* For quoted code blocks whose source lines are too long for the normal size. */
.reveal .small-code code.hl.lean.block,
.reveal code.hl.lean.block.small-code { font-size: 0.38em; }
.reveal .tiny-code code.hl.lean.block,
.reveal code.hl.lean.block.tiny-code { font-size: 0.33em; }

.reveal table { font-size: 0.7em; }
.reveal ul ul { font-size: 0.85em; }
.reveal .small { font-size: 0.6em; color: #666; }

/* Title and part openers: the `roadmap` block has one line per part. These slides fill the
   slide height and center the lines, while `center := false` keeps other slides at the top. */
.reveal .slides section:has(> .roadmap) { height: 100%; padding: 0; }
.reveal .slides section:has(> .roadmap) > h2 { display: none; }
.reveal .roadmap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  font-size: var(--r-heading2-size);
  line-height: var(--r-heading-line-height);
  color: var(--r-heading-color);
}
/* In a part opener, only the current part's line stands out. */
.reveal .roadmap.focus > div:not(.on) { opacity: 0.2; }
.reveal .roadmap .aside { font-size: 0.8em; font-weight: 400; font-style: italic; color: #c05621; }

/* Marks a difference that reflects current Lean/Tapas rather than the abstractions themselves. */
.reveal .now {
  font-size: 0.7em;
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
  background: #fdebd0;
  color: #8a5300;
  white-space: nowrap;
}

.reveal .slides code:not([class]),
.reveal .slides code.hl.lean.inline {
  background: rgba(0, 0, 0, 0.08);
}

/* A table with many rows: Verso wraps each cell in a paragraph; drop its block margins. */
/* `:::class` puts the class on the table itself. */
.reveal table.compact p { margin: 0; }
.reveal table.compact th, .reveal table.compact td { padding: 0.2em 0.8em; }
