/* Tweaks on top of reveal.js' "white" theme.
   The decks are deliberately figure-led and text-light, so most of this is
   about giving diagrams room and keeping headings from dominating. */

/* The theme uppercases headings, which mangles the filenames and commands
   that appear in them (pyproject.toml, .gitignore, ...). Keep them as typed. */
.reveal h1,
.reveal h2,
.reveal h3 {
    text-transform: none;
}

.reveal h1 {
    font-size: 2.1em;
}

.reveal h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

/* Diagrams are the main content of most slides. Cap the height so a tall
   figure can never overflow the slide, and never let one stretch beyond its
   natural width. */
.reveal .slides img {
    max-height: 58vh;
    max-width: 100%;
    width: auto;
    border: none;
    box-shadow: none;
    background: none;
}

/* Code samples sit alongside figures. Big enough to read from the back of a
   lecture room, small enough that a whole pyproject.toml still fits. */
.reveal pre {
    font-size: 0.6em;
    width: 100%;
    box-shadow: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.reveal pre code {
    max-height: 55vh;
    padding: 1em;
}

/* Inline literals only -- must not touch code inside <pre>, or it would
   flatten the syntax highlighting below. */
.reveal :not(pre) > code {
    color: #1e40af;
}

/* A light syntax-highlighting theme for reveal.js' highlight plugin. Both
   stylesheets bundled with the plugin (monokai, zenburn) assume a dark
   background; these colours match the white theme and the SVG figures. */
.reveal pre code.hljs {
    background: #f8fafc;
    color: #1f2933;
}

.reveal .hljs-keyword,
.reveal .hljs-built_in,
.reveal .hljs-selector-tag {
    color: #2563eb;
    font-weight: 600;
}

.reveal .hljs-string,
.reveal .hljs-meta .hljs-string {
    color: #15803d;
}

.reveal .hljs-comment,
.reveal .hljs-quote {
    color: #94a3b8;
    font-style: italic;
}

.reveal .hljs-number,
.reveal .hljs-literal {
    color: #b45309;
}

/* TOML/INI keys and section headers, e.g. [project] and envlist =. */
.reveal .hljs-attr,
.reveal .hljs-section,
.reveal .hljs-meta {
    color: #b45309;
}

.reveal .hljs-title,
.reveal .hljs-name {
    color: #1f2933;
    font-weight: 600;
}

/* The closing "over to the tasks" line on each deck. */
.reveal .handoff {
    color: #64748b;
    font-size: 0.8em;
}

.reveal ul {
    display: block;
}

.reveal li {
    margin-bottom: 0.35em;
}

/* Tables (the Do / Avoid list in Part 2) read better without reveal's
   default heavy borders. Small enough that a five-row table still fits on
   one slide without its last row falling off the bottom. */
.reveal table {
    font-size: 0.5em;
    border-collapse: collapse;
}

.reveal table th,
.reveal table td {
    border-bottom: 1px solid #cbd5e1;
    padding: 0.4em 0.8em;
    vertical-align: top;
}

.reveal table th {
    color: #1f2933;
}
