/* ============================================================
   MST0052 — Reveal.js deck theme (Gruvbox Light + IBM Plex)
   Loads after white.css and overrides it. Matches src/app.css.
   ============================================================ */

:root {
	--mst-bg0-h: #f9f5d7;
	--mst-bg0: #fbf1c7;
	--mst-bg1: #ebdbb2;
	--mst-bg2: #d5c4a1;
	--mst-fg0: #282828;
	--mst-fg1: #3c3836;
	--mst-fg-muted: #7c6f64;
	--mst-red: #9d0006;
	--mst-orange: #af3a03;
	--mst-orange-bright: #fe8019;
	--mst-yellow: #b57614;
	--mst-green: #79740e;
	--mst-blue: #076678;
	--mst-grain: rgba(124, 111, 100, 0.06);
	--mst-code-bg: #282828;
	--mst-code-fg: #fbf1c7;

	/* Reveal theme variables (override white.css) */
	--r-background-color: var(--mst-bg0);
	--r-main-font: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
	--r-main-font-size: 40px;
	--r-main-color: var(--mst-fg1);
	--r-heading-font: 'IBM Plex Serif', Georgia, serif;
	--r-heading-color: var(--mst-fg0);
	--r-heading-text-transform: none;
	--r-heading-font-weight: 600;
	--r-heading-letter-spacing: -0.01em;
	--r-heading1-size: 2.2em;
	--r-heading2-size: 1.5em;
	--r-heading3-size: 1.1em;
	--r-code-font: 'IBM Plex Mono', monospace;
	--r-link-color: var(--mst-orange);
	--r-link-color-hover: var(--mst-red);
	--r-selection-background-color: var(--mst-bg1);
	--r-selection-color: var(--mst-fg0);
}

/* --- Canvas: warm cream with the site's paper grain --- */
.reveal-viewport {
	background-color: var(--mst-bg0);
	background-image: radial-gradient(var(--mst-grain) 1px, transparent 1px);
	background-size: 18px 18px;
}

/* --- Editorial left alignment for content slides --- */
.reveal .slides section {
	text-align: left;
}

.reveal h2 {
	margin-bottom: 0.7em;
}

/* Short accent rule under content-slide headings */
.reveal section:not(.title-slide):not(.section-divider):not(.big-statement) h2::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	margin-top: 0.3em;
	background: var(--mst-orange);
	border-radius: 2px;
}

.reveal h3 {
	color: var(--mst-fg1);
	font-weight: 500;
}

.reveal strong {
	color: var(--mst-fg0);
	font-weight: 600;
}

.reveal a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

/* --- Lists --- */
.reveal ul,
.reveal ol {
	display: block;
	margin-left: 1.1em;
}

.reveal li {
	margin: 0.45em 0;
	line-height: 1.45;
}

.reveal ul li::marker {
	color: var(--mst-orange);
}

.reveal ol li::marker {
	color: var(--mst-fg-muted);
	font-family: var(--r-code-font);
	font-size: 0.85em;
}

.reveal ul ul li::marker {
	color: var(--mst-fg-muted);
}

.reveal ul ul,
.reveal ol ol {
	font-size: 0.85em;
}

/* --- Blockquote: site convention --- */
.reveal blockquote {
	width: auto;
	max-width: 85%;
	margin: 0.6em 0;
	padding: 0.5em 1em;
	background: var(--mst-bg1);
	border-left: 4px solid var(--mst-orange);
	border-radius: 0 8px 8px 0;
	box-shadow: none;
	font-family: var(--r-heading-font);
	font-style: italic;
	font-size: 0.9em;
	color: var(--mst-fg1);
}

.reveal blockquote p {
	margin: 0;
}

/* --- Tables --- */
.reveal table {
	font-size: 0.7em;
	border-collapse: collapse;
	margin: 0.6em 0;
}

.reveal table th {
	background: var(--mst-bg1);
	border-bottom: 2px solid var(--mst-bg2);
	font-weight: 600;
	color: var(--mst-fg0);
}

.reveal table th,
.reveal table td {
	padding: 0.45em 0.9em;
	border-bottom: 1px solid var(--mst-bg2);
	text-align: left;
}

.reveal table tr:last-child td {
	border-bottom: none;
}

/* --- Code: dark terminal blocks (site convention) --- */
.reveal pre {
	width: auto;
	max-width: 90%;
	margin: 0.6em 0;
	background: var(--mst-code-bg);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(60, 56, 54, 0.15);
	font-size: 0.55em;
	line-height: 1.7;
}

.reveal pre code {
	display: block;
	padding: 0.9em 1.2em;
	max-height: 700px;
	color: var(--mst-code-fg);
	background: transparent;
}

.reveal code {
	font-family: var(--r-code-font);
}

/* Inline code */
.reveal :not(pre) > code {
	background: var(--mst-bg1);
	color: var(--mst-red);
	padding: 0.08em 0.35em;
	border-radius: 6px;
	font-size: 0.9em;
}

/* --- Images: clean, centered --- */
.reveal section img {
	display: block;
	margin: 0.5em auto;
	max-height: 780px;
	border: none;
	box-shadow: none;
	background: transparent;
}

/* ============================================================
   Deck chrome
   ============================================================ */

.deck-badge {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 40;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mst-fg-muted);
	background: rgba(249, 245, 215, 0.9);
	border: 1px solid var(--mst-bg2);
	border-radius: 6px;
	padding: 6px 14px;
}

.reveal .slide-number {
	background: transparent;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 18px;
	color: var(--mst-fg-muted);
	right: 24px;
	bottom: 18px;
}

.reveal .progress {
	height: 4px;
	color: var(--mst-orange);
}

.reveal .controls {
	color: var(--mst-orange);
}

::selection {
	background: var(--mst-bg1);
	color: var(--mst-fg0);
}

/* ============================================================
   Slide-level layouts (opt-in via <!-- .slide: class="..." -->)
   ============================================================ */

/* --- Title slide --- */
.reveal section.title-slide {
	text-align: center;
}

.reveal section.title-slide h2 {
	font-size: 2.3em;
	line-height: 1.15;
	margin: 0.3em 0 0.4em;
}

.reveal section.title-slide h3 {
	font-family: var(--r-main-font);
	font-weight: 400;
	font-size: 0.85em;
	color: var(--mst-fg1);
	margin-bottom: 1.6em;
}

/* --- Section divider: full-bleed dark --- */
.reveal section.section-divider {
	text-align: left;
}

.reveal section.section-divider h2 {
	font-size: 2.6em;
	line-height: 1.1;
	color: var(--mst-bg0);
	margin: 0.25em 0 0.3em;
}

.reveal section.section-divider p:not(.kicker) {
	font-family: var(--r-heading-font);
	font-style: italic;
	font-size: 0.85em;
	color: #bdae93;
	max-width: 75%;
}

.reveal section.section-divider .kicker {
	color: var(--mst-orange-bright);
}

/* --- Big statement: one centered serif sentence --- */
.reveal section.big-statement {
	text-align: center;
}

.reveal section.big-statement p {
	font-family: var(--r-heading-font);
	font-size: 1.6em;
	line-height: 1.35;
	color: var(--mst-fg0);
	max-width: 82%;
	margin: 0.4em auto;
}

.reveal section.big-statement p.muted {
	font-family: var(--r-main-font);
	font-style: normal;
	font-size: 0.6em;
	color: var(--mst-fg-muted);
}

.reveal section.big-statement p.mono {
	font-family: 'IBM Plex Mono', monospace;
	font-style: normal;
	font-size: 0.8em;
	color: var(--mst-fg1);
}

.reveal section.big-statement strong {
	color: var(--mst-orange);
}

.reveal section.big-statement blockquote {
	max-width: 82%;
	margin: 0.4em auto;
	text-align: left;
	font-size: 1.3em;
}

/* ============================================================
   Element utilities (raw HTML or <!-- .element: class="..." -->)
   ============================================================ */

/* --- Kicker: small mono label --- */
.reveal .kicker {
	display: block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.5em;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mst-orange);
	margin-bottom: 0.6em;
}

/* --- Muted footnote line --- */
.reveal .muted {
	font-size: 0.6em;
	color: var(--mst-fg-muted);
}

/* --- Mono line (URLs etc.) --- */
.reveal .mono {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.7em;
	color: var(--mst-fg1);
}

/* --- Columns --- */
.reveal .cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.6em;
	align-items: stretch;
	margin: 0.8em 0;
}

.reveal .cols-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1.4em;
	align-items: stretch;
	margin: 0.8em 0;
}

.reveal .cols > div,
.reveal .cols-3 > div {
	min-width: 0;
}

/* --- Stat block: big headline number --- */
.reveal .stat {
	text-align: center;
	padding: 0.5em 0.4em;
}

.reveal .stat .stat-value {
	display: block;
	font-family: var(--r-heading-font);
	font-size: 3.6em;
	font-weight: 600;
	line-height: 1.1;
	color: var(--mst-orange);
}

.reveal .stat.stat--blue .stat-value {
	color: var(--mst-blue);
}

.reveal .stat.stat--green .stat-value {
	color: var(--mst-green);
}

.reveal .stat.stat--yellow .stat-value {
	color: var(--mst-yellow);
}

.reveal .stat.stat--red .stat-value {
	color: var(--mst-red);
}

/* For word values ("Read", "Verify") instead of numbers/letters */
.reveal .stat.stat--word .stat-value {
	font-size: 2.1em;
}

.reveal .stat .stat-label {
	display: block;
	margin-top: 0.5em;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.6em;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mst-fg-muted);
}

/* --- Callout card --- */
.reveal .callout {
	background: var(--mst-bg0-h);
	border: 1px solid var(--mst-bg2);
	border-left: 5px solid var(--mst-orange);
	border-radius: 8px;
	padding: 0.6em 0.9em;
	font-size: 0.75em;
	margin: 0.6em 0;
}

.reveal .callout.warn {
	border-left-color: var(--mst-red);
}

.reveal .callout > :first-child {
	margin-top: 0;
}

.reveal .callout > :last-child {
	margin-bottom: 0;
}

.reveal .callout h3 {
	font-family: var(--r-main-font);
	font-size: 1em;
	font-weight: 600;
	color: var(--mst-fg0);
	margin-bottom: 0.3em;
}

.reveal .callout p {
	margin: 0.2em 0;
	line-height: 1.4;
}

/* --- Checklist --- */
.reveal ul.checklist,
.reveal .checklist ul {
	list-style: none;
	margin-left: 0;
}

.reveal ul.checklist li,
.reveal .checklist ul li {
	padding-left: 1.5em;
	position: relative;
}

.reveal ul.checklist li::before,
.reveal .checklist ul li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: var(--mst-green);
	font-weight: 700;
}

.reveal ul.checklist li.no::before,
.reveal .checklist ul li.no::before {
	content: '\2717';
	color: var(--mst-red);
}

/* --- Chips: backticked terms as pills --- */
.reveal .chips {
	line-height: 2.1;
}

.reveal .chips code {
	display: inline-block;
	background: var(--mst-bg1);
	color: var(--mst-fg1);
	border: 1px solid var(--mst-bg2);
	border-radius: 8px;
	padding: 0.15em 0.6em;
	margin: 0.1em 0.15em;
	font-size: 0.65em;
	line-height: 1.6;
	vertical-align: middle;
}

/* A label preceding chips on the same grid row */
.reveal .chips strong {
	font-size: 0.75em;
	margin-right: 0.4em;
}
