/* Shared slide styling. Both presentation.html and presenter.html load this, and both render
   slides onto the SAME fixed 1120x630 canvas which is then CSS-scaled to fit. That is why the
   presenter's preview matches the projected slide exactly rather than approximately. */

:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E5E7EB;
  --surface: #F9FAFB;
  --paper: #FFFFFF;
  --signal: #1D4ED8;
  --signal-soft: #EFF4FF;
  --signal-line: #C7D7FE;
  --serif: Charter, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --slide-w: 1120px;
  --slide-h: 630px;
}

.deck-slide {
  width: var(--slide-w);
  height: var(--slide-h);
  flex: none;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  padding: 30px 52px 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.deck-slide * { box-sizing: border-box; }

/* header ------------------------------------------------------------------ */
.s-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
  flex: none;
}
.s-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -.1px;
}
.s-section { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.s-sub { font-size: 14px; color: var(--muted); margin: -6px 0 16px; flex: none; }

.s-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }

.s-foot {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted-2);
  flex: none;
}

/* cards ------------------------------------------------------------------- */
.cards { display: grid; gap: 13px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 15px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.card-lg { padding: 16px 18px; }
.card-kicker { font-family: var(--serif); font-size: 20px; color: var(--signal); margin-bottom: 3px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.card-tag { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.card-eg { font-size: 12px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.card-fix { font-size: 12px; color: var(--signal); margin-top: 7px; font-weight: 500; }
.card-list { margin: 8px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); }
.card-list li { margin-bottom: 5px; line-height: 1.45; }
.card.is-key { background: var(--signal-soft); border-color: var(--signal-line); }

/* ladder ------------------------------------------------------------------ */
.ladder { display: flex; flex-direction: column; gap: 9px; }
.rung {
  display: flex; align-items: center; gap: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 17px; position: relative;
  transition: border-color .25s, background .25s;
}
.rung-n {
  font-family: var(--serif); font-size: 23px; color: var(--muted-2);
  width: 30px; flex: none; text-align: center;
}
.rung-t { font-size: 15.5px; font-weight: 600; }
.rung-d { font-size: 13px; color: var(--muted); }
.rung.is-key { background: var(--signal-soft); border-color: var(--signal-line); }
.rung.is-key .rung-n { color: var(--signal); }
.rung-flag {
  margin-left: auto; font-size: 11.5px; color: var(--signal);
  border: 1px solid var(--signal-line); border-radius: 999px; padding: 3px 11px; background: #fff; white-space: nowrap;
}

/* stat -------------------------------------------------------------------- */
.statline {
  border-left: 3px solid var(--signal); background: var(--surface);
  padding: 13px 18px; border-radius: 0 4px 4px 0;
}
.stat-value { font-family: var(--serif); font-size: 31px; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* compare table ----------------------------------------------------------- */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare td { color: var(--ink-2); }
.compare .is-key { color: var(--signal); font-weight: 500; }
.compare tbody tr { transition: background .25s; }

/* flow -------------------------------------------------------------------- */
.phase { border: 1px solid var(--line); border-radius: 4px; padding: 12px 15px; background: var(--surface); transition: border-color .25s, background .25s; }
.phase-label { font-size: 12px; font-weight: 600; color: var(--signal); margin-bottom: 9px; }
.flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: nowrap; }
.flow-wrap { flex-wrap: wrap; row-gap: 8px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 11px; font-size: 12.5px; font-weight: 500; color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; flex: 1 1 0; min-width: 0;
}
.step em { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 3px; line-height: 1.35; }
.arrow { align-self: center; color: var(--muted-2); font-size: 14px; flex: none; }
.loop-note { font-size: 11.5px; color: var(--signal); margin-top: 8px; }

/* misc -------------------------------------------------------------------- */
.callout {
  background: var(--surface); border-left: 3px solid var(--ink);
  padding: 11px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  transition: border-color .25s, background .25s;
}
.ask { font-size: 13.5px; color: var(--signal); font-weight: 500; }
.source { font-size: 11.5px; color: var(--muted-2); line-height: 1.45; }
.demo-q {
  font-family: var(--serif); font-size: 25px; color: var(--ink);
  background: var(--signal-soft); border: 1px solid var(--signal-line); border-radius: 4px;
  padding: 16px 22px; text-align: center;
}
.takeaways { display: flex; flex-direction: column; gap: 11px; }
.takeaway {
  display: flex; align-items: center; gap: 15px;
  font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.35;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 15px 19px;
  transition: border-color .25s, background .25s;
}
.t-n {
  font-size: 15px; color: var(--signal); border: 1px solid var(--signal-line); background: #fff;
  width: 29px; height: 29px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; flex: none; font-family: var(--sans);
}
.closing-line {
  font-family: var(--serif); font-size: 16px; color: var(--ink-2);
  border-left: 3px solid var(--signal); padding: 11px 17px; background: var(--signal-soft);
}

/* title slides ------------------------------------------------------------ */
.deck-slide.is-title { justify-content: center; padding: 40px 72px; }
.deck-slide.is-title .s-head, .deck-slide.is-title .s-sub { display: none; }
.title-block { display: flex; flex-direction: column; gap: 16px; }
.title-conference { font-size: 12.5px; color: var(--muted); }
.title-main { font-family: var(--serif); font-size: 46px; font-weight: 400; line-height: 1.2; color: var(--ink); letter-spacing: -.5px; }
.title-main em { font-style: italic; color: var(--signal); }
.title-sub { font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.title-sub.big { font-size: 24px; font-family: var(--serif); color: var(--signal); }
.title-byline { font-size: 13px; color: var(--muted); margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* spotlight --------------------------------------------------------------- */
.has-spotlight .card:not(.is-spotlighted),
.has-spotlight .rung:not(.is-spotlighted),
.has-spotlight .phase:not(.is-spotlighted),
.has-spotlight .takeaway:not(.is-spotlighted),
.has-spotlight .callout:not(.is-spotlighted),
.has-spotlight .statline:not(.is-spotlighted),
.has-spotlight .demo-q:not(.is-spotlighted),
.has-spotlight .closing-line:not(.is-spotlighted),
.has-spotlight .compare tbody tr:not(.is-spotlighted) {
  opacity: .32;
  filter: saturate(.5);
}
.is-spotlighted {
  border-color: var(--signal) !important;
  background: var(--signal-soft) !important;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .13);
  position: relative;
  z-index: 2;
}
.compare tbody tr.is-spotlighted { background: var(--signal-soft) !important; box-shadow: none; }
.compare tbody tr.is-spotlighted th, .compare tbody tr.is-spotlighted td { border-color: var(--signal-line); }

/* --- architecture diagram ------------------------------------------------- */
.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 9px; }
.arch-col {
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  padding: 11px 13px; display: flex; flex-direction: column; gap: 7px;
  transition: border-color .25s, background .25s;
}
.arch-col.is-key { background: var(--signal-soft); border-color: var(--signal-line); }
.arch-h { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.arch-h em { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.arch-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: 6px 9px; font-size: 11.5px; color: var(--ink-2); line-height: 1.35;
}
.arch-item b { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.arch-item.accent { border-left: 2px solid var(--signal); }
.arch-arrow { align-self: center; color: var(--muted-2); font-size: 15px; }
.arch-cost { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.arch-cost b { color: var(--ink); font-weight: 600; }
