/* =========================================================================
   NiKoKobo — Layer B / Lecture extras
   Additional slide types beyond the reference deck:
     cover, agenda, compare, steps, checklist, stat, quote, closing-lecture
   All values respect the 16px rule-gap floor and dark-only palette.
   ========================================================================= */

/* ---- Brand-mark BR override: use local cropped wordmark ---- */
.brand-mark-br img { content: url("../assets/nikokobo-wordmark-dark-cropped.png"); }

/* ---- Common stack frame for lecture slides ---- */
.slide--cover .stack,
.slide--agenda .stack,
.slide--compare .stack,
.slide--steps .stack,
.slide--checklist .stack,
.slide--stat .stack,
.slide--quote .stack,
.slide--vscode .stack,
.slide--closing-lecture .stack {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 200px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =========================================================================
   COVER (lecture title)
   ========================================================================= */
.slide--cover .stack { top: 240px; gap: 48px; }
.slide--cover .kicker { color: var(--accent); }
.slide--cover .hero {
  font-size: 116px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: var(--fg);
  max-width: 1500px;
}
.slide--cover .hero .accent { color: var(--accent); }
.slide--cover .subhero {
  font-size: 44px;
  font-weight: 600;
  color: var(--fg-sub);
  letter-spacing: -0.02em;
  line-height: 1.4;
  max-width: 1500px;
}
.slide--cover .lead {
  margin-top: 24px;
  font-size: 32px;
  font-weight: 400;
  color: var(--fg-sub);
  line-height: 1.65;
  max-width: 1300px;
}
.slide--cover .author {
  position: absolute;
  left: 120px;
  bottom: 132px;
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.slide--cover .author::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--fg-sub);
  vertical-align: middle;
  margin-right: 18px;
  transform: translateY(-4px);
}

/* =========================================================================
   AGENDA — three-card horizontal layout
   ========================================================================= */
.slide--agenda .stack { gap: 32px; }
.slide--agenda .heading { font-size: 88px; }
.slide--agenda .lead { font-size: 32px; color: var(--fg-sub); line-height: 1.55; max-width: 1500px; }
.slide--agenda .cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.slide--agenda .card {
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  padding: 40px 36px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
}
.slide--agenda .card .num {
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.slide--agenda .card .title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}
.slide--agenda .card .body {
  font-size: 22px;
  font-weight: 400;
  color: var(--fg-sub);
  line-height: 1.6;
}

/* Agenda — long ordered list variant */
.slide--agenda ol.bullets {
  margin-top: 8px;
  columns: 2;
  column-gap: 80px;
  max-width: 1600px;
}
.slide--agenda ol.bullets > li {
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1.45;
  color: var(--fg);
  break-inside: avoid;
  padding-left: 56px;
}
.slide--agenda ol.bullets > li::before { font-size: 26px; }

/* =========================================================================
   COMPARE — two-column comparison
   ========================================================================= */
.slide--compare .stack { gap: 28px; }
.slide--compare .heading { font-size: 80px; }
.slide--compare .heading .accent { color: var(--accent); }
.slide--compare .heading .positive { color: var(--positive); }
.slide--compare .heading .warn { color: var(--warn); }
.slide--compare .columns {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.slide--compare .col {
  padding-top: 24px;
  border-top: 2px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.slide--compare .col--mute { border-top-color: var(--rule-strong); }
.slide--compare .col--positive { border-top-color: var(--positive); }
.slide--compare .col--warn { border-top-color: var(--warn); }
.slide--compare .col--accent { border-top-color: var(--accent); }
.slide--compare .col-label {
  font-family: var(--font-latin);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.slide--compare .col--positive .col-label { color: var(--positive); }
.slide--compare .col--warn .col-label { color: var(--warn); }
.slide--compare .col--accent .col-label { color: var(--accent); }
.slide--compare .col-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
}
.slide--compare .col--mute .col-title { color: var(--fg-sub); }
.slide--compare ul.col-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slide--compare ul.col-list > li {
  position: relative;
  padding-left: 28px;
  font-size: 26px;
  line-height: 1.5;
  color: var(--fg);
}
.slide--compare .col--mute ul.col-list > li { color: var(--fg-sub); }
.slide--compare ul.col-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 1px;
  background: var(--fg-mute);
}
.slide--compare .col--positive ul.col-list > li::before { background: var(--positive); }
.slide--compare .col--warn ul.col-list > li::before { background: var(--warn); }
.slide--compare .col--accent ul.col-list > li::before { background: var(--accent); }

.slide--compare .footer-note {
  margin-top: 32px;
  font-size: 26px;
  font-weight: 600;
  color: var(--fg-sub);
  font-style: italic;
}
.slide--compare .footer-note .accent { color: var(--accent); font-style: normal; }
.slide--compare .footer-note .positive { color: var(--positive); font-style: normal; }
.slide--compare .footer-note .warn { color: var(--warn); font-style: normal; }

/* =========================================================================
   STAT (lecture variant — left-anchored, with eyebrow + caption + lead)
   ========================================================================= */
.slide--stat .stack { gap: 32px; top: 200px; }
.slide--stat .kicker { color: var(--fg-mute); }
.slide--stat .stat-num {
  font-family: var(--font-latin);
  font-size: 380px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--accent);
  position: relative;
  display: inline-block;
  margin-top: 8px;
}
.slide--stat .stat-wrap {
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.slide--stat .stat-wrap .glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.slide--stat .stat-wrap .stat-num { position: relative; z-index: 1; }
.slide--stat .caption-en {
  margin-top: 32px;
  font-family: var(--font-latin);
  font-size: 28px;
  font-weight: 500;
  color: var(--fg-sub);
  letter-spacing: 0.02em;
}
.slide--stat .lead {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
  max-width: 1500px;
}

/* =========================================================================
   QUOTE — large editorial pull quote
   ========================================================================= */
.slide--quote .stack { gap: 40px; top: 240px; }
.slide--quote .kicker { color: var(--accent); }
.slide--quote .quote {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
  color: var(--fg);
  max-width: 1600px;
  position: relative;
}
.slide--quote .quote::before {
  content: "「";
  position: absolute;
  left: -56px;
  top: -12px;
  color: var(--accent);
  font-weight: 900;
  opacity: 0.7;
}
.slide--quote .quote::after { content: "」"; color: var(--accent); opacity: 0.7; }
.slide--quote .quote .accent { color: var(--accent); }
.slide--quote .quote .positive { color: var(--positive); }
.slide--quote .quote .warn { color: var(--warn); }
.slide--quote .attribution {
  margin-top: 16px;
  font-family: var(--font-latin), var(--font-jp);
  font-size: 24px;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.slide--quote .attribution::before { content: "— "; }

/* =========================================================================
   STEPS — numbered horizontal pipeline
   ========================================================================= */
.slide--steps .stack { gap: 32px; }
.slide--steps .heading { font-size: 80px; }
.slide--steps .heading .accent { color: var(--accent); }
.slide--steps .steps-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.slide--steps .step {
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  padding: 36px 32px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.slide--steps .step .num {
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.slide--steps .step .title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}
.slide--steps .step .body {
  font-size: 24px;
  font-weight: 400;
  color: var(--fg-sub);
  line-height: 1.55;
}
.slide--steps .footer-note {
  margin-top: 24px;
  font-size: 26px;
  color: var(--fg-sub);
  font-weight: 500;
}
.slide--steps .footer-note .accent { color: var(--accent); }

/* =========================================================================
   CHECKLIST — feature list with check marks
   ========================================================================= */
.slide--checklist .stack { gap: 32px; }
.slide--checklist .heading { font-size: 80px; }
.slide--checklist ul.checks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1500px;
}
.slide--checklist ul.checks > li {
  position: relative;
  padding-left: 56px;
  font-size: 30px;
  line-height: 1.55;
  color: var(--fg);
}
.slide--checklist ul.checks > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-latin);
  font-size: 30px;
  font-weight: 900;
  color: var(--positive);
}

/* =========================================================================
   CHAT (lecture variant — extends base chat with footer accent)
   ========================================================================= */
.slide--chat .footer-accent {
  margin-top: 24px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.slide--chat .footer-accent.positive { color: var(--positive); }
.slide--chat .footer-accent.warn { color: var(--warn); }
.slide--chat .heading .accent { color: var(--accent); }

/* Tighten chat for many-bubble slides */
.slide--chat.compact .chat-bubble {
  padding: 22px 30px;
  font-size: 26px;
}
.slide--chat.compact .stack { gap: 16px; }
.slide--chat.compact .heading { margin-bottom: 12px; font-size: 72px; }

/* =========================================================================
   CALLOUT — accent variants
   ========================================================================= */
.slide--callout .heading .accent { color: var(--accent); }
.slide--callout .heading .positive { color: var(--positive); }
.slide--callout .heading .warn { color: var(--warn); }
.slide--callout .callout--warn { border-color: rgba(255, 217, 61, 0.55); }
.slide--callout .callout--warn .kicker { color: var(--warn); }
.slide--callout .callout .body {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.65;
  color: var(--fg-sub);
}
.slide--callout .callout .body .accent { color: var(--accent); font-weight: 700; }
.slide--callout .callout--warn .heading-accent,
.slide--callout .callout--warn .lead .accent { color: var(--warn); }
.slide--callout .callout .lead { font-size: 36px; font-weight: 700; line-height: 1.45; }
.slide--callout .callout .lead .accent { color: var(--accent); }
.slide--callout .callout .lead .positive { color: var(--positive); }
.slide--callout .callout .lead .warn { color: var(--warn); }

/* =========================================================================
   TABLE (lecture variant — accent header)
   ========================================================================= */
.slide--table .heading .accent { color: var(--accent); }
.slide--table table.brand-table {
  font-size: 24px;
}
.slide--table table.brand-table th { font-size: 18px; }
.slide--table table.brand-table td { font-size: 24px; padding: 22px 24px; }
.slide--table table.brand-table th:first-child,
.slide--table table.brand-table td:first-child {
  color: var(--fg-mute);
  font-weight: 500;
}
.slide--table table.brand-table .text-positive { color: var(--positive); font-weight: 600; }
.slide--table table.brand-table .text-warn { color: var(--warn); font-weight: 600; }
.slide--table table.brand-table .text-accent { color: var(--accent); font-weight: 600; }

/* Wider table for 6-column comparison */
.slide--table.dense table.brand-table { font-size: 20px; }
.slide--table.dense table.brand-table th { font-size: 14px; }
.slide--table.dense table.brand-table td { font-size: 20px; padding: 16px 18px; }

/* =========================================================================
   LIST (lecture variant — heading accent + footer note)
   ========================================================================= */
.slide--list .heading .accent { color: var(--accent); }
.slide--list .heading .positive { color: var(--positive); }
.slide--list .heading .warn { color: var(--warn); }
.slide--list ol.bullets > li,
.slide--list ul.bullets > li {
  font-size: 32px;
}
.slide--list .footer-note {
  margin-top: 32px;
  font-size: 24px;
  color: var(--fg-mute);
  font-style: italic;
  line-height: 1.55;
  max-width: 1500px;
}

/* Section-style heading accent */
.slide--section .heading .accent { color: var(--accent); }
.slide--section .heading .positive { color: var(--positive); }
.slide--section .heading .warn { color: var(--warn); }
.slide--section .heading { font-size: 100px; }
.slide--section .lead {
  margin-top: 16px;
  font-size: 32px;
  color: var(--fg-sub);
  font-weight: 400;
  line-height: 1.6;
  max-width: 1400px;
}
.slide--section .underline.positive { background: var(--positive); }
.slide--section .underline.warn { background: var(--warn); }

/* =========================================================================
   CLOSING (lecture variant — supports accent + lead block)
   ========================================================================= */
.slide--closing-lecture .stack {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 240px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.slide--closing-lecture .kicker { color: var(--accent); }
.slide--closing-lecture .heading {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.18;
  color: var(--fg);
  max-width: 1600px;
}
.slide--closing-lecture .heading .accent { color: var(--accent); }
.slide--closing-lecture .heading .positive { color: var(--positive); }
.slide--closing-lecture .lead {
  margin-top: 16px;
  font-size: 32px;
  color: var(--fg-sub);
  line-height: 1.65;
  max-width: 1500px;
  font-weight: 400;
}
.slide--closing-lecture .author {
  position: absolute;
  left: 120px;
  bottom: 200px;
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.slide--closing-lecture .author::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--fg-sub);
  vertical-align: middle;
  margin-right: 18px;
  transform: translateY(-4px);
}
.slide--closing-lecture .footer-accent {
  position: absolute;
  left: 120px;
  bottom: 130px;
  font-size: 28px;
  font-weight: 700;
  color: var(--positive);
}
.slide--closing-lecture .footer-accent.accent { color: var(--accent); }
.slide--closing-lecture .footer-accent.warn { color: var(--warn); }

/* =========================================================================
   ACCENT VARIANTS — accent color is single-per-slide. We expose
   per-slide accent overrides via [data-accent="positive|warn|accent"] on
   the .slide root. This swaps the structural accent (kicker, footer rule
   highlights, etc.) WITHOUT changing the dark palette tokens.
   ========================================================================= */
.slide[data-accent="positive"] .kicker { color: var(--positive); }
.slide[data-accent="warn"] .kicker { color: var(--warn); }
.slide[data-accent="positive"] .ghost-numeral { color: rgba(0, 255, 176, 0.06); }
.slide[data-accent="warn"] .ghost-numeral { color: rgba(255, 217, 61, 0.06); }
.slide[data-accent="accent"] .ghost-numeral { color: rgba(0, 210, 255, 0.06); }

/* In compare/section, allow data-accent to drive accent color */
.slide[data-accent="positive"] .heading .accent { color: var(--positive); }
.slide[data-accent="warn"] .heading .accent { color: var(--warn); }

/* =========================================================================
   GHOST numeral — only on cover/section. Lecture-cover specifies its own.
   ========================================================================= */
.slide--cover .ghost-numeral,
.slide--section .ghost-numeral {
  font-size: 720px;
  bottom: 60px;
  right: 60px;
  color: rgba(0, 210, 255, 0.06);
  letter-spacing: -0.05em;
}
.slide[data-accent="positive"].slide--cover .ghost-numeral,
.slide[data-accent="positive"].slide--section .ghost-numeral { color: rgba(0, 255, 176, 0.06); }
.slide[data-accent="warn"].slide--cover .ghost-numeral,
.slide[data-accent="warn"].slide--section .ghost-numeral { color: rgba(255, 217, 61, 0.06); }

/* Hide ghost on non-cover/section slides (safety) */
.slide:not(.slide--cover):not(.slide--section) .ghost-numeral { display: none; }
