/* Slide theme for the Florida licensed drivers handover. */
:root {
  --ink: #1C2530;
  --ink-2: #4A5866;
  --ink-3: #7A8794;
  --rule: #E3E7EC;
  --wash: #F4F6F8;
  --surface: #FFFFFF;
  --main: #1F6E8C;
  --accent: #C8553D;
  --code-bg: #16202B;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --r-background-color: var(--surface);
  --r-main-font: var(--font);
  --r-main-color: var(--ink);
  --r-heading-font: var(--font);
  --r-heading-color: var(--ink);
  --r-link-color: var(--main);
  --r-selection-background-color: #D6E7EE;
}

html, body { background: var(--surface); }

.reveal { font-family: var(--font); font-size: 26px; color: var(--ink); }
.reveal .slides { text-align: left; }
.reveal .slides section { height: 100%; box-sizing: border-box; padding: 34px 8px 0; }

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--font); text-transform: none; letter-spacing: -0.02em; color: var(--ink);
  margin: 0 0 18px;
}
.reveal h1 { font-size: 2.35em; font-weight: 750; line-height: 1.05; }
.reveal h2 { font-size: 1.45em; font-weight: 700; line-height: 1.15; max-width: 23em; text-wrap: balance; }
.reveal h2 .hl { color: var(--accent); }        /* the key term of a headline */
.reveal p, .reveal li { line-height: 1.4; }
.reveal ul, .reveal ol { margin: 0 0 0 1em; }
.reveal strong { font-weight: 700; }

/* Small label above a headline: "Part 2 · Parameters" */
.kicker {
  font-size: 0.6em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}

/* Presenter chip, top right of every slide that has data-speaker */
.speaker-chip {
  position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 8px;
  font-size: 0.5em; color: var(--ink-3); font-weight: 600;
}
.speaker-chip b {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink-3); font-size: 0.85em; color: var(--ink-2);
}

/* Layout helpers */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.cols > * { min-width: 0; }
.cols.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cols.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 0.72em; }

/* Power BI screenshots */
.shot { margin: 4px 0 0; }
.shot img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 400px;
  margin: 0; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 1px 3px rgba(28, 37, 48, 0.08);
}
.shot.tall img { max-height: 490px; }
.shot.short img { max-height: 330px; }
.shot .cap { font-size: 0.5em; color: var(--ink-3); margin-top: 8px; line-height: 1.35; }
.shot .cap b { color: var(--ink-2); }

/* Stat callouts */
.stats { display: flex; gap: 40px; margin-top: 16px; }
.stat .value { font-size: 1.7em; font-weight: 750; letter-spacing: -0.02em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .value.accent { color: var(--accent); }
.stat .value.main { color: var(--main); }
.stat .label { font-size: 0.56em; color: var(--ink-2); margin-top: 6px; max-width: 15em; line-height: 1.3; }
.stats.vertical { flex-direction: column; gap: 26px; margin-top: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--wash); border-radius: 10px; padding: 20px 22px; }
.card .value { font-size: 1.6em; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card .name { font-weight: 650; margin-top: 4px; font-size: 0.85em; }
.card .note { font-size: 0.6em; color: var(--ink-2); margin-top: 8px; line-height: 1.35; }
.card .years { font-family: var(--mono); font-size: 0.55em; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }

/* Miniature of a PDF layout inside a card */
.mini { font-family: var(--mono); font-size: 0.42em; margin-top: 12px; border-collapse: collapse; background: var(--surface); width: 100%; }
.mini td { border: 1px solid var(--rule); padding: 3px 6px; color: var(--ink-2); white-space: nowrap; }
.mini td.h { font-weight: 600; color: var(--ink); background: #EEF2F5; }
.mini td.null { color: var(--accent); font-style: italic; }

/* Four-step roadmap */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.flow div { border-top: 3px solid var(--main); padding-top: 10px; font-size: 0.66em; color: var(--ink-2); line-height: 1.35; }
.flow b { display: block; color: var(--ink); font-size: 1.15em; margin-bottom: 2px; }
.flow span { color: var(--main); font-weight: 700; margin-right: 6px; }

/* Query groups, drawn like the Queries pane */
.qgroup { border: 1px solid var(--rule); border-radius: 10px; padding: 14px 18px; background: var(--surface); }
.qgroup + .qgroup { margin-top: 16px; }
.qgroup .gname { font-weight: 650; font-size: 0.72em; display: flex; align-items: center; gap: 8px; }
.qgroup .gname::before { content: ""; width: 16px; height: 12px; background: #E9B949; border-radius: 2px; }
.qgroup .items { font-size: 0.6em; margin: 8px 0 0 24px; color: var(--ink-2); line-height: 1.7; }
.qgroup .items code { font-size: 0.92em; }
.qgroup .items code b { color: var(--ink); font-weight: 600; margin-right: 8px; }
.qgroup .vals { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.56em; margin: 10px 0 0 24px; color: var(--ink-2); }
.qgroup .vals code { font-size: 0.92em; justify-self: start; align-self: start; }
.qgroup .vals .arrow { color: var(--main); font-weight: 600; }

/* Code */
.reveal pre {
  width: 100%; margin: 0; box-shadow: none; border-radius: 10px; font-size: 0.56em;
  font-family: var(--mono); line-height: 1.5;
}
.reveal pre code {
  display: block; background: var(--code-bg); color: #E6EDF3; border-radius: 10px; padding: 16px 20px;
  max-height: 470px; overflow: auto; font-family: var(--mono);
}
.reveal pre .k { color: #FF9E7A; }
.reveal pre .f { color: #7CC7E8; }
.reveal pre .s { color: #A5D6A7; }
.reveal code { font-family: var(--mono); }
.reveal :not(pre) > code {
  background: var(--wash); border-radius: 4px; padding: 1px 6px; font-size: 0.85em; color: var(--ink);
}

/* Simple data tables */
.reveal table.t { border-collapse: collapse; font-size: 0.6em; width: 100%; margin: 0; }
.reveal table.t th, .reveal table.t td { padding: 7px 10px; border: 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.reveal table.t thead th { font-weight: 650; color: var(--ink-2); border-bottom: 1.5px solid var(--ink-3); }
.reveal table.t td.num, .reveal table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.reveal table.t td code { font-size: 0.9em; }

/* Callout box */
.note-box { border-left: 4px solid var(--accent); background: #FFF6F3; padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 0.66em; line-height: 1.4; }
.note-box.blue { border-color: var(--main); background: #EEF6F9; }

/* Click-through screenshots (fragments stacked on one spot) */
.step-tag { display: inline-block; font-family: var(--mono); font-size: 0.52em; font-weight: 600; color: var(--surface); background: var(--main); border-radius: 4px; padding: 3px 8px; margin-bottom: 8px; }
.step-text { font-size: 0.62em; color: var(--ink-2); margin: 0 0 10px; max-width: 46em; }

/* Numbered checklist */
.checklist { list-style: none; margin: 8px 0 0 !important; padding: 0; counter-reset: c; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.8em; }
.checklist li::before { content: counter(c); color: var(--accent); font-weight: 750; font-size: 1.2em; line-height: 1.1; }
.checklist small { display: block; color: var(--ink-3); font-size: 0.75em; margin-top: 3px; }

/* Section handoff slides */
.handoff { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.handoff .part { font-size: 0.7em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.handoff h2 { font-size: 2.1em; margin: 10px 0 14px; }
.handoff .who { font-size: 0.9em; color: var(--ink-2); }

/* Title slide */
.title-slide { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.title-slide .sub { font-size: 1.05em; color: var(--ink-2); margin: 0; max-width: 30em; }
.title-slide .course { font-size: 0.62em; color: var(--ink-2); margin-top: 26px; }
.title-slide .team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 40px; font-size: 0.62em; }
.title-slide .team div { border-top: 2px solid var(--ink); padding-top: 8px; font-weight: 600; line-height: 1.25; }
.title-slide .team div b { color: var(--accent); margin-right: 8px; }
.title-slide .team small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.85em; margin-top: 6px; line-height: 1.35; }

/* Closing list */
.findings { list-style: none; margin: 0 !important; padding: 0; font-size: 0.78em; }
.findings li { display: grid; grid-template-columns: 2.6em 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); margin: 0 !important; }
.findings li b { color: var(--accent); font-size: 1.3em; line-height: 1.1; }

.reveal .progress { color: var(--accent); height: 4px; }
.reveal .slide-number { background: transparent; color: var(--ink-3); font-family: var(--font); font-size: 13px; right: auto; left: 12px; bottom: 10px; }
.reveal .controls { color: var(--ink-3); }

/* Click-through stack: keep each step left-aligned under the headline */
.reveal .r-stack > * { margin: 0; width: 100%; align-self: start; }
