/* Shared slide framework — utilitarian capability-brief styling */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d1117;
  --slide-bg: #11161d;
  --ink: #e8edf2;
  --ink-dim: #9aa7b4;
  --line: #263140;
  --accent: #7aa2c4; /* overridden per deck */
  --kicker: #8b98a5;
}

html, body {
  height: 100%;
  background: var(--bg);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  width: 1280px;
  height: 720px;
  background: var(--slide-bg);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 56px 72px;
  position: absolute;
  transform-origin: center center;
}
.slide.active { display: flex; }

.kicker {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.slide h1 {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.slide h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 26px;
  line-height: 1.15;
}

.slide .sub {
  font-size: 22px;
  color: var(--ink-dim);
  margin-top: 16px;
  line-height: 1.45;
  max-width: 900px;
}

.body { flex: 1; display: flex; gap: 44px; min-height: 0; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.col.narrow { flex: 0.8; }
.col.wide { flex: 1.35; }

ul.points { list-style: none; font-size: 17px; line-height: 1.42; }
ul.points li {
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
ul.points li:last-child { border-bottom: none; }
ul.points li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 7px; height: 7px;
  background: var(--accent);
}
ul.points b { color: var(--ink); }
ul.points li, ul.points li span { color: var(--ink-dim); }
ul.points li b { display: inline; }

.media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
}
.media img.noborder { border: none; }
.media.dual { gap: 18px; }
.media video {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--line);
}

.term {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0a0e13;
  border: 1px solid var(--line);
  padding: 18px 22px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.5;
  color: #9fb3c8;
  white-space: pre;
}
.term b { color: var(--accent); font-weight: 600; }
.term .warn { color: #d9a03f; }

.overlap-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.overlap-stage video {
  border: 1px solid var(--line);
  background: #000;
}
.overlap-stage .base {
  position: absolute;
  left: 0;
  bottom: 10%;
  width: 80%;
}
.overlap-stage .overlay {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border-color: #3a4656;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.65);
}

.caption {
  font-size: 15px;
  color: var(--kicker);
  margin-top: 10px;
  text-align: center;
}

.title-slide { justify-content: center; }
.title-slide .url {
  margin-top: 28px;
  font-size: 20px;
  color: var(--accent);
  font-family: "SF Mono", Menlo, monospace;
}
.title-slide .url a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.title-slide .url a:hover { border-bottom-color: var(--accent); }
.title-slide .meta {
  margin-top: 60px;
  font-size: 16px;
  color: var(--kicker);
}

.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.stat {
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.stat .n { font-size: 34px; font-weight: 700; color: var(--accent); }
.stat .l { font-size: 15px; color: var(--ink-dim); margin-top: 4px; line-height: 1.35; }

.foot {
  position: absolute;
  bottom: 20px; left: 72px; right: 72px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--kicker);
  letter-spacing: 0.06em;
}

#hud {
  position: fixed;
  bottom: 14px; right: 18px;
  font-size: 13px;
  color: var(--kicker);
  font-family: Menlo, monospace;
  z-index: 10;
  user-select: none;
}
#hud button {
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  padding: 3px 10px; cursor: pointer; font-size: 13px; margin-left: 6px;
}
#hud button:hover { border-color: var(--accent); color: var(--ink); }

@media print {
  html, body { overflow: visible; background: #fff; }
  #stage { position: static; display: block; }
  #hud { display: none; }
  .slide {
    display: flex !important;
    position: relative;
    transform: none !important;
    page-break-after: always;
    margin: 0 auto;
  }
}
