/* ─── REVEAL OVERRIDES ────────────────────────────────────────── */
.reveal-viewport { background: var(--bg); transition: background var(--transition); }
.reveal .slides section { font-family: var(--font-main); background: transparent; text-align: left; padding: 0; }
.reveal .slides section.present { display: flex !important; }

/* ─── GRID MOTIF BACKGROUND ──────────────────────────────────── */
.reveal-viewport::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── UI CONTROLS ─────────────────────────────────────────────── */
#deck-controls {
  position: fixed; top: 16px; right: 16px; z-index: 100;
  display: flex; gap: 8px;
}
#deck-controls button,
#deck-controls select {
  background: var(--surface); border: 1px solid var(--ghost-border);
  color: var(--text-secondary); border-radius: var(--radius);
  padding: 6px 10px; font-size: 14px; cursor: pointer;
  font-family: var(--font-main); transition: all var(--transition);
  appearance: none; -webkit-appearance: none;
}
#deck-controls button:hover,
#deck-controls select:hover { color: var(--accent); border-color: var(--accent); }

/* ─── SLIDE BASE ──────────────────────────────────────────────── */
.slide {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  box-sizing: border-box; position: relative; z-index: 1;
}

/* ─── TEAL ACCENT LINE (top of slide) ────────────────────────── */
.slide-accent-bar {
  width: 40px; height: 3px;
  background: var(--accent); border-radius: 2px;
  margin-bottom: 16px; flex-shrink: 0;
}

/* ─── SECTION LABEL ───────────────────────────────────────────── */
.section-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}

/* ─── SLIDE TITLE (assertion) ─────────────────────────────────── */
.slide-title { color: var(--text-primary); line-height: 1.15; margin: 0 0 16px; }

/* ─── RULE ────────────────────────────────────────────────────── */
.slide-rule { border: none; border-top: 1px solid var(--rule); margin: 16px 0; }

/* ─── BODY COPY ───────────────────────────────────────────────── */
.body-copy { color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* ─── COLUMNS (for split layout) ─────────────────────────────── */
.slide-split { display: flex; gap: 48px; flex: 1; align-items: flex-start; }
.slide-split .split-left { flex: 1; }
.slide-split .split-right {
  flex: 0 0 380px; background: var(--surface);
  border: 1px solid var(--ghost-border); border-radius: var(--radius);
  padding: 24px;
}

/* ─── FOOTNOTE ────────────────────────────────────────────────── */
.footnote { font-size: 11px; color: var(--text-muted); margin-top: auto; padding-top: 16px; }

/* ─── REVEAL NAV CONTROLS ─────────────────────────────────────── */
.reveal .controls { color: var(--accent); }
.reveal .controls button { opacity: 0.4; }
.reveal .controls button:hover { opacity: 1; }
.reveal .progress { color: var(--accent); height: 3px; }

/* ── Speaker Notes ──────────────────────────────────────────── */
aside.notes { display: none; }
body.notes-visible aside.notes {
  display: block; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.92); color: #e2e8f0;
  font-size: 14px; line-height: 1.6; padding: 16px 32px;
  z-index: 200; max-height: 30vh; overflow-y: auto;
  border-top: 2px solid #2d9cba;
}
