/* ============================================================================
   Do Not Build an Army of AI Interns — deck-specific components.
   Built only from paper-blueprint design tokens. The shared theme stays
   pristine; everything here is unique to this argument: the recurring unit
   map, the operator/question spotlight cards, and the contract object.
   ============================================================================ */

/* Hangul support: the deck contains Korean terms (이등병, 병장, 상황실).
   IBM Plex Sans carries no Hangul glyphs, so Plex Sans KR sits behind it
   for per-glyph fallback. The theme file itself is untouched. */
:root {
  --f-display: 'IBM Plex Sans', 'IBM Plex Sans KR', 'Inter', system-ui, sans-serif;
  --f-body:    'IBM Plex Sans', 'IBM Plex Sans KR', system-ui, sans-serif;
}

/* ── the recurring unit map (rendered by unit-map.js) ────────────────────────
   One geometry, three states: mob (the barracks), constitution (the twin
   artifacts), post (the finished command post on the dark close). */
.reveal svg.unit-map {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0.2em auto 0;
}

/* ── supporting figures (rendered by figures.js) ─────────────────────────────*/
.reveal svg.fig {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0.4em auto 0;
}

/* ── three-pillar / takeaway grid ────────────────────────────────────────────
   Used for the spine (three takeaways), the five-question contract, and the
   Scalon close. Base is 3-up; .two and .five adjust column count and scale. */
.reveal .pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0.7em 0 0.3em;
  align-items: stretch;
}
.reveal .pillars.two { grid-template-columns: repeat(2, 1fr); gap: 36px; }
.reveal .pillars.five { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.reveal .pillar {
  border-top: 3px solid var(--cyan);
  background: var(--paper);
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
}
.reveal .pillar .pl-num {
  font-family: var(--f-mono);
  font-size: 0.6em;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
}
.reveal .pillar h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.92em;
  color: var(--ink);
  margin: 0.35em 0 0.3em;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.reveal .pillar p {
  font-size: 0.62em;
  line-height: 1.5;
  color: var(--graphite);
  margin: 0 0 0.5em;
}
.reveal .pillar .pl-feed {
  font-family: var(--f-mono);
  font-size: 0.46em;
  letter-spacing: 0.04em;
  color: var(--graphite);
  margin-top: auto;
  padding-top: 0.6em;
  border-top: 1px solid var(--rule);
}
.reveal .pillars.five .pillar { padding: 16px 18px 20px; }
.reveal .pillars.five .pillar h4 { font-size: 0.66em; }
.reveal .pillars.five .pillar p { font-size: 0.48em; line-height: 1.45; }
.reveal .pillars.five .pillar .pl-feed { font-size: 0.4em; }
.reveal section.dark-slide .pillar {
  background: rgba(250, 250, 246, 0.04);
  border-top-color: #93c5fd;
}
.reveal section.dark-slide .pillar h4 { color: var(--paper); }
.reveal section.dark-slide .pillar p { color: rgba(250, 250, 246, 0.72); }
.reveal section.dark-slide .pillar .pl-num { color: #93c5fd; }
.reveal section.dark-slide .pillar .pl-feed {
  color: rgba(250, 250, 246, 0.55);
  border-top-color: rgba(250, 250, 246, 0.18);
}

/* ── the four kinds of soldier knowledge (slide 4) ───────────────────────────*/
.reveal .kinds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0.55em 0 0.2em;
}
.reveal .kind {
  border-top: 2px solid var(--cyan);
  background: var(--paper);
  padding: 12px 16px 14px;
}
.reveal .kind .kd-tag {
  font-family: var(--f-mono);
  font-size: 0.44em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.reveal .kind p {
  font-size: 0.5em;
  line-height: 1.45;
  color: var(--graphite);
  margin: 0.35em 0 0;
}

/* ── the decision contract (slide 7) ─────────────────────────────────────────
   A rank rendered as a designed document: four labeled clauses. */
.reveal .contract {
  border-top: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 16px rgba(10, 37, 64, 0.08);
  max-width: 78%;
  margin: 0.6em auto 0.2em;
}
.reveal .contract .ct-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: baseline;
  padding: 15px 28px;
  border-bottom: 1px solid var(--rule);
}
.reveal .contract .ct-row:last-child { border-bottom: 0; }
.reveal .contract .ct-k {
  font-family: var(--f-mono);
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.reveal .contract .ct-v {
  font-size: 0.62em;
  line-height: 1.45;
  color: var(--ink);
}

/* ── spotlight cards (operators on slide 6) ──────────────────────────────────
   One card visible at a time (Reveal fade-in-then-out); the oploop figure
   emphasizes the matching station in sync. */
.reveal .spot-card {
  position: absolute;
  left: 84px;
  bottom: 84px;
  width: 600px;
  max-width: 46%;
  background: var(--paper);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 2px 16px rgba(10, 37, 64, 0.10);
  padding: 18px 24px 20px;
  text-align: left;
}
.reveal .spot-card .sc-tag {
  font-family: var(--f-mono);
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.reveal .spot-card h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.8em;
  color: var(--ink);
  margin: 0.2em 0 0.3em;
  letter-spacing: -0.01em;
}
.reveal .spot-card p {
  font-size: 0.5em;
  line-height: 1.5;
  color: var(--graphite);
  margin: 0 0 0.4em;
}
.reveal .spot-card p strong { color: var(--ink); }

/* ── mono cadence rows (the five-word close, the four drift questions) ───────*/
.reveal .word-row {
  font-family: var(--f-mono);
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--cyan);
  margin: 0.9em 0 0.3em;
}
.reveal section.dark-slide .word-row { color: #93c5fd; }
.reveal .word-row.quiet { color: var(--graphite); font-size: 0.5em; }

/* game screenshots on the game-night slide: equal-height editorial strips */
.reveal .col img.shot {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
  margin: 0.45em 0 0.55em;
}

/* inline mono tag prefixing the game-night questions (slide 15) */
.reveal .gq {
  font-family: var(--f-mono);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-right: 0.55em;
}

/* quiet mono thesis line on the dark cover */
.reveal .thesis-line {
  font-family: var(--f-mono);
  font-size: 0.48em;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 246, 0.6);
  margin-top: 2.4em;
}

/* smaller takeaway line — for slides where a figure is the hero */
.reveal .big-text.sm { font-size: 1.05em; line-height: 1.22; }

/* ── persistent company logo (bottom-right) + slide number to bottom-left ─────*/
.deck-logo {
  position: fixed;
  right: 30px;
  bottom: 20px;
  height: 30px;
  width: auto;
  z-index: 50;
  opacity: 0.92;
  pointer-events: none;
}
.deck-logo.dark { display: none; }
body.on-dark .deck-logo.light { display: none; }
body.on-dark .deck-logo.dark { display: block; }
.reveal .slide-number { left: 24px; right: auto; }
