:root {
  color-scheme: light;
  --deck-page: #f3f6f7;
  --deck-ink: #10243a;
  --deck-muted: #698094;
  --deck-line: #d2dee5;
  --deck-accent: #149da4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--deck-page);
  color: var(--deck-ink);
}

.deck-page {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 2vw, 32px) 28px;
}

.deck-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  min-height: 58px;
  gap: 22px;
}

.deck-back {
  justify-self: start;
  color: var(--deck-ink);
  font: 750 .9rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.deck-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.deck-progress strong {
  font: 800 .84rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .11em;
  white-space: nowrap;
}

.deck-dots { display: flex; gap: 7px; }

.deck-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5d4dc;
  cursor: pointer;
}

.deck-dot[aria-current="true"] { background: var(--deck-accent); }

.deck-fullscreen {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--deck-line);
  border-radius: 50%;
  background: #fff;
  color: var(--deck-ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.deck-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--deck-line);
  border-radius: 22px;
  background: #071318;
  box-shadow: 0 20px 60px rgba(16, 36, 58, .09);
}

.deck-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 226px);
  object-fit: contain;
  background: #071318;
}

.deck-stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 226px);
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #071318;
}

.deck-stage img[hidden],
.deck-stage video[hidden] {
  display: none !important;
}

.deck-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(620px, 100%);
  min-height: 58px;
  margin: 16px auto 0;
  padding: 8px 12px;
  border: 1px solid var(--deck-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
}

.deck-controls button {
  border: 0;
  background: transparent;
  color: var(--deck-ink);
  font: 750 .92rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.deck-controls button:first-child { justify-self: start; }
.deck-controls button:last-child { justify-self: end; }
.deck-controls button:disabled { color: #a9b5bd; cursor: default; }

.deck-controls span {
  color: var(--deck-muted);
  font: 800 .73rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.deck-sources {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr);
  gap: clamp(24px, 4vw, 54px);
  margin-top: 34px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--deck-line);
  border-radius: 22px;
  background: #fff;
}

.deck-sources > div > span,
.deck-sources a small {
  color: var(--deck-accent);
  font: 800 .68rem/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.deck-sources > div > strong {
  display: block;
  margin-top: .65rem;
  font: 600 clamp(1.4rem, 2.2vw, 2rem)/1.08 Georgia, "Times New Roman", serif;
}

.deck-sources > div > p {
  margin: 1rem 0 0;
  color: var(--deck-muted);
  font: 500 .9rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.deck-sources nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.deck-sources a {
  display: flex;
  min-height: 152px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--deck-line);
  border-radius: 16px;
  color: var(--deck-ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.deck-sources a:hover,
.deck-sources a:focus-visible { border-color: var(--deck-accent); transform: translateY(-2px); }
.deck-sources a strong { margin-top: .65rem; font: 650 .92rem/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.deck-sources a > span { margin-top: auto; color: var(--deck-muted); font: 750 .75rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }


.deck-slide-badge {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 2vw, 28px);
  right: clamp(12px, 2vw, 28px);
  padding: 8px 22px;
  border-radius: 999px;
  background: #f5a623;
  color: #10243a;
  font: 800 clamp(.62rem, .9vw, .78rem)/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
}
.deck-slide-badge[hidden] { display: none; }

.deck-stage:fullscreen {
  border: 0;
  border-radius: 0;
  background: #02080b;
}

.deck-stage:fullscreen img {
  width: 100vw;
  height: 100vh;
  max-height: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #69a5ff;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .deck-page { padding-top: 10px; }
  .deck-toolbar { grid-template-columns: 1fr auto; }
  .deck-progress { grid-row: 2; grid-column: 1 / -1; padding-bottom: 12px; }
  .deck-fullscreen { grid-column: 2; grid-row: 1; }
  .deck-stage { border-radius: 14px; }
  .deck-stage img { max-height: none; }
  .deck-sources { grid-template-columns: 1fr; }
  .deck-sources nav { grid-template-columns: 1fr; }
  .deck-sources a { min-height: 0; }
}

@media (max-width: 560px) {
  .deck-dots { display: none; }
  .deck-controls { border-radius: 18px; }
  .deck-controls span { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .deck-sources a { transition: none; }
  .deck-sources a:hover { transform: none; }
}


.deck-slide-caption { margin: 16px auto 0; max-width: 640px; text-align: center; color: var(--deck-muted); font-size: 14px; }
.deck-slide-credit { display: inline-block; margin-top: 4px; color: var(--deck-ink); font-weight: 700; font-size: .8rem; }


/* === ACCESSIBLE DECK NAVIGATION · 2026-09-03 === */
.deck-dots {
  max-width: min(42vw, 520px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.deck-dots::-webkit-scrollbar { display: none; }
.deck-dot {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: transparent;
  scroll-snap-align: center;
}
.deck-dot::before {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5d4dc;
  content: "";
  transform: translate(-50%, -50%);
}
.deck-dot[aria-current="true"] { background: transparent; }
.deck-dot[aria-current="true"]::before { background: var(--deck-accent); }
.deck-dot:focus-visible {
  outline: 2px solid var(--deck-accent);
  outline-offset: -3px;
}
@media (pointer: coarse) {
  .deck-dot { flex-basis: 44px; width: 44px; height: 44px; }
}
/* === /ACCESSIBLE DECK NAVIGATION · 2026-09-03 === */
