:root {
  --deck-bg: #f7f8f4;
  --ink: #07162d;
  --muted: #5b6573;
  --accent: #138a91;
}

html,
body {
  background: var(--deck-bg);
}

.reveal {
  background: var(--deck-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reveal .slides {
  text-align: left;
}

.reveal .slide-background-content {
  background-position: center center;
  background-repeat: no-repeat;
}

.deck-meta {
  position: fixed;
  z-index: 20;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(7, 22, 45, 0.55);
  font: 500 11px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.hadox-mark {
  position: fixed;
  z-index: 24;
  right: 20px;
  bottom: 28px;
  width: 128px;
  height: auto;
  opacity: 0.78;
  pointer-events: none;
}

.narration-controls {
  position: fixed;
  z-index: 35;
  left: 18px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 36px);
  padding: 7px 8px;
  color: rgba(7, 22, 45, 0.82);
  background: rgba(247, 248, 244, 0.88);
  border: 1px solid rgba(19, 138, 145, 0.2);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(7, 22, 45, 0.08);
  font: 700 12px/1.1 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.narration-controls button,
.narration-controls select {
  min-height: 28px;
  border: 1px solid rgba(7, 22, 45, 0.16);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
}

.narration-controls button {
  padding: 0 9px;
  cursor: pointer;
}

.narration-controls [data-narration-slower],
.narration-controls [data-narration-faster] {
  min-width: 28px;
  padding: 0;
}

.narration-controls select {
  max-width: 210px;
}

.narration-controls label {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.narration-controls input[type="range"] {
  width: 96px;
}

.narration-controls output {
  min-width: 34px;
  color: rgba(7, 22, 45, 0.72);
  text-align: right;
}

.narration-controls [data-narration-status] {
  min-width: 54px;
  color: rgba(7, 22, 45, 0.62);
}

.narration-captions {
  position: fixed;
  z-index: 34;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: min(980px, calc(100vw - 96px));
  max-height: 140px;
  overflow: auto;
  padding: 12px 16px 14px;
  color: #f8fafc;
  background: rgba(7, 22, 45, 0.9);
  border: 1px solid rgba(247, 248, 244, 0.18);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(7, 22, 45, 0.22);
  font: 600 19px/1.35 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.narration-captions[hidden] {
  display: none;
}

.narration-captions .caption-label {
  margin-bottom: 6px;
  color: rgba(184, 236, 238, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reveal .controls {
  color: var(--accent);
  right: 154px;
}

.reveal .progress {
  color: var(--accent);
  height: 4px;
}

.reveal .slide-number {
  right: 154px;
  bottom: 28px;
  color: rgba(7, 22, 45, 0.6);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(7, 22, 45, 0.1);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 11px;
}

.reveal .slides section .paper-section-badge {
  position: fixed;
  z-index: 18;
  left: 18px;
  bottom: 46px;
  max-width: 320px;
  box-sizing: border-box;
  padding: 6px 10px;
  color: rgba(7, 22, 45, 0.74);
  background: rgba(247, 248, 244, 0.82);
  border: 1px solid rgba(19, 138, 145, 0.22);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
}

.references-slide {
  color: var(--ink);
}

.references-layout {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 54px;
  width: 100%;
  height: 100%;
  padding: 54px 72px 60px;
  align-items: center;
}

.references-copy .eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.references-copy h2 {
  margin: 0 0 24px;
  max-width: 780px;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: 0;
}

.references-copy ol {
  margin: 0;
  padding-left: 28px;
  max-width: 850px;
  color: rgba(7, 22, 45, 0.86);
  font-size: 18px;
  line-height: 1.28;
}

.references-copy li {
  margin: 0 0 7px;
}

.references-copy .source-links {
  margin: 24px 0 0;
}

.references-copy .source-links p {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.references-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border-left: 2px solid rgba(19, 138, 145, 0.18);
}

.references-brand img {
  width: min(420px, 82%);
  height: auto;
}

@media print {
  .deck-meta,
  .hadox-mark,
  .narration-controls,
  .narration-captions {
    display: none;
  }
}
