/* Ski New Mexico — Monthly SEO, AI & Referral Growth Update
   Slides Extended / Reveal.js — scoped under .reveal
   Dark, editorial, high-contrast, mountain/outdoor cues.
   All rules scoped below .reveal so Obsidian note styling is unaffected.
   Fonts: Realist + Futura PT via Adobe Typekit (same as ski-nm-rebuild site,
   see templates/_layouts/base.twig:40 and tailwind.config.js:57-58).
*/

@import url("https://use.typekit.net/qfe0qgf.css");

/* ── Tokens ────────────────────────────────────────────── */
.reveal {
  /* palette — deep alpine night + snow + sky/ice + sunrise amber + pine */
  --ski-bg: #0a141e;
  --ski-bg-elev: #101e2e;
  --ski-surface: #14273d;
  --ski-surface-2: #1a324d;
  --ski-surface-3: #1e3a59;
  --ski-text: #eef4ff;
  --ski-muted: #a9bad1;
  --ski-faint: #7a8ca6;
  --ski-line: rgba(238, 244, 255, 0.11);
  --ski-line-strong: rgba(238, 244, 255, 0.18);
  --ski-ice: #7dd3fc;
  --ski-ice-2: #38bdf8;
  --ski-ice-soft: rgba(125, 211, 252, 0.12);
  --ski-amber: #fbbf24;
  --ski-amber-2: #f59e0b;
  --ski-amber-soft: rgba(251, 191, 36, 0.14);
  --ski-pine: #6ee7b7;
  --ski-pine-soft: rgba(110, 231, 183, 0.12);
  --ski-radius: 16px;
  --ski-radius-sm: 10px;
  --ski-radius-xs: 7px;
  --ski-gap: 1rem;
  --ski-content-w: 900px;

  /* Reveal overrides — brand fonts from ski-nm-rebuild */
  --r-background-color: var(--ski-bg);
  --r-main-color: var(--ski-text);
  --r-main-font: "futura-pt", Inter, "Aptos", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-heading-font: "realist", "futura-pt", sans-serif;
  --r-heading-color: var(--ski-text);
  --r-heading-font-weight: 750;
  --r-heading-line-height: 1.06;
  --r-heading-letter-spacing: -0.04em;
  --r-heading-text-transform: none;
  --r-heading-text-shadow: none;
  --r-block-margin: 0.75rem;
  --r-link-color: var(--ski-ice);
  --r-link-color-hover: var(--ski-ice-2);
  --r-selection-background-color: rgba(125, 211, 252, 0.28);
  --r-selection-color: var(--ski-text);
  --r-code-font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Code", monospace;
  /* Scale with viewport — replaces fixed 34px so tall slides fit without scroll */
  --r-main-font-size: clamp(22px, 1.9vw + 0.9vh + 8px, 31px);

  /* brand font helpers */
  --ski-font-display: "realist", sans-serif;
  --ski-font-body: "futura-pt", sans-serif;

  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  color: var(--r-main-color);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Canvas ────────────────────────────────────────────── */
/* Per Themes doc (https://www.ebullient.dev/projects/obsidian-slides-extended/themes/)
   keep file as snippet on top of theme:black.css (frontmatter theme:black.css + css: snippet).
   Do NOT override Reveal's positioning — examples consult/minml keep
   .slides as absolute 960×540/1920×1200 and use class="drop" + absolute
   flex columns *inside* slides for custom layouts. For this deck we keep
   default Reveal layout (center:false pins to top) and only style colors/type. */
.reveal-viewport {
  background: var(--ski-bg);
  background-color: var(--ski-bg);
  background-image:
    radial-gradient(1200px 700px at 70% -10%, rgba(56, 189, 248, 0.09), transparent 62%),
    radial-gradient(900px 600px at 15% 110%, rgba(251, 191, 36, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 22%);
}

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

.reveal .slides section {
  padding: 0.7rem 0 1.2rem 0;
  box-sizing: border-box;
}

.reveal .slides section[data-background-color],
.reveal .slide-background {
  background: var(--ski-bg);
}

/* ── Headings — editorial hierarchy ────────────────────── */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: var(--r-heading-text-transform);
  text-shadow: var(--r-heading-text-shadow);
  line-height: var(--r-heading-line-height);
  color: var(--r-heading-color);
  margin: 0 0 0.42em 0;
  text-wrap: balance;
}

.reveal h1 {
  font-family: var(--ski-font-display);
  /* clamp prevents 1.78em (≈60px) from being scaled off-screen on
     wide viewports where Reveal's scale >1 cuts slide-1 header */
  font-size: clamp(1.15em, 2.8vw + 0.6em, 1.69em);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ski-text);
  /* ensure header never sits under viewport chrome */
  margin-top: 0.12em;
  padding-top: 0.08em;
}

.reveal h1 + h2,
.reveal h1 + h3 {
  margin-top: 0.15em;
}

/* Slide-number / kicker label — the "## Slide 7 — ..." lines */
.reveal h2 {
  font-family: var(--ski-font-body);
  font-size: 0.46em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ski-amber);
  line-height: 1.4;
  margin: 0 0 0.9em 0;
  opacity: 1;
}

/* Section subheads — "### Work completed / Why it matters" */
.reveal h3 {
  font-family: var(--ski-font-body);
  font-size: 0.56em;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ski-ice);
  line-height: 1.35;
  margin: 1.35em 0 0.55em 0;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--ski-line);
}

.reveal h3:first-of-type {
  margin-top: 0.9em;
}

.reveal h4 {
  font-size: 0.58em;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ski-muted);
  text-transform: none;
}

/* Large section dividers — "# Visibility" "# Engagement" etc.
   Centered, airy, with amber rule */
.reveal h1:only-child,
.reveal h1:first-child:where(:not(:has(+ h2)):not(:has(+ h3)):not(:has(+ p)):not(:has(+ ul)):not(:has(+ ol)):not(:has(+ table)):not(:has(+ pre)):not(:has(+ blockquote))) {
  text-align: center;
}

/* ── Body type — never below 0.8em ────────────────────── */
.reveal p,
.reveal li,
.reveal td,
.reveal th {
  font-size: 0.82em;
  line-height: 1.58;
  letter-spacing: -0.01em;
}

.reveal p {
  color: var(--ski-muted);
  margin: 0.55em 0;
  max-width: var(--ski-content-w);
  text-wrap: pretty;
}

.reveal li {
  color: var(--ski-muted);
}

.reveal li::marker {
  color: var(--ski-ice);
}

.reveal ul,
.reveal ol {
  margin: 0.6em 0 0.8em 1.05em;
  padding: 0;
  max-width: var(--ski-content-w);
}

.reveal ul li,
.reveal ol li {
  margin: 0.28em 0;
  padding-left: 0.12em;
}

.reveal ul ul,
.reveal ol ol {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

.reveal ul ul li,
.reveal ol ol li {
  font-size: 0.92em;
  color: var(--ski-faint);
}

/* Ordered steps — slightly more structured for the funnel tables */
.reveal ol {
  list-style-type: decimal;
}

/* ── Emphasis & links ──────────────────────────────────── */
.reveal strong {
  color: var(--ski-text);
  font-weight: 700;
}

.reveal em {
  color: var(--ski-text);
  font-style: italic;
}

.reveal a {
  color: var(--r-link-color);
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 252, 0.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  text-decoration-color: currentColor;
}

.reveal a:focus-visible {
  outline: 2px solid var(--ski-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Horizontal rule — slide separators ───────────────── */
.reveal hr {
  border: none;
  height: 1px;
  background: var(--ski-line);
  margin: 1.1em 0;
}

/* ── Blockquotes — talking points / closing statement ─── */
.reveal blockquote {
  background: rgba(125, 211, 252, 0.07);
  border-left: 3px solid var(--ski-ice);
  border-top: 1px solid var(--ski-line);
  border-right: 1px solid var(--ski-line);
  border-bottom: 1px solid var(--ski-line);
  border-radius: 0 var(--ski-radius-sm) var(--ski-radius-sm) 0;
  padding: 0.75em 0.95em;
  margin: 0.9em 0;
  max-width: var(--ski-content-w);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.reveal blockquote p {
  color: var(--ski-text);
  font-size: 0.82em;
  line-height: 1.55;
  margin: 0;
}

.reveal blockquote p + p {
  margin-top: 0.5em;
}

.reveal blockquote em {
  color: var(--ski-text);
}

.reveal blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.82em;
  color: var(--ski-faint);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ── Inline code ───────────────────────────────────────── */
.reveal code {
  font-family: var(--r-code-font);
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--ski-line);
  border-radius: 6px;
  padding: 0.1em 0.34em;
  color: var(--ski-ice);
  word-break: break-word;
}

.reveal p code,
.reveal li code,
.reveal td code {
  font-size: 0.88em;
}

/* ── Code blocks — funnel diagrams + any ```text ──────── */
.reveal pre {
  background: var(--ski-surface);
  border: 1px solid var(--ski-line-strong);
  border-radius: var(--ski-radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin: 0.9em auto;
  max-width: var(--ski-content-w);
  overflow: hidden;
  text-align: left;
}

.reveal pre code {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1em 1.15em;
  font-size: 0.52em;
  line-height: 1.65;
  color: #d6e3f5;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

/* Mermaid / highlighted wrappers */
.reveal .code-wrapper {
  max-width: var(--ski-content-w);
  margin: 0.9em auto;
}

.reveal .code-wrapper code {
  border-radius: var(--ski-radius);
}

/* ── Tables — growth framework / GA4 / KPIs ───────────── */
/* Growth Framework 6th row was clipped after 5th row due to
   display:block + overflow-y:hidden + fixed 700px slide box.
   Fix: table itself scrolls horizontally (block + overflow-x:auto)
   but stays vertically visible so section's own scroll reveals
   the last row. Section already handles vertical scroll. */
.reveal table {
  width: 100%;
  max-width: 100%;
  margin: 0.7em 0 1.2em 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ski-surface);
  border: 1px solid var(--ski-line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.88em;
  display: block;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ski-line-strong) transparent;
  box-sizing: border-box;
}
.reveal table::-webkit-scrollbar {
  height: 6px;
}
.reveal table::-webkit-scrollbar-thumb {
  background: var(--ski-line-strong);
  border-radius: 3px;
}

/* keep thead/tbody as table so columns align inside the
   block scroller — width 100% ensures they fill the scroller */
.reveal table thead,
.reveal table tbody {
  display: table;
  width: 100%;
  table-layout: auto;
}

.reveal table thead th {
  background: rgba(125, 211, 252, 0.10);
  color: var(--ski-ice);
  font-weight: 700;
  font-size: 0.74em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.6em 0.7em;
  border-bottom: 1px solid var(--ski-line-strong);
  white-space: normal;
  word-break: break-word;
  min-width: 8ch;
}

.reveal table tbody td {
  padding: 0.55em 0.7em;
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--ski-muted);
  border-bottom: 1px solid var(--ski-line);
  vertical-align: top;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  min-width: 10ch;
}

.reveal table tbody tr:last-child td {
  border-bottom: none;
}

.reveal table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ski-text);
}

/* Keep first column readable — allow wrap, not nowrap */
.reveal table td:first-child {
  color: var(--ski-text);
  font-weight: 600;
  white-space: normal;
  min-width: 14ch;
}

/* ── Images — screenshots to present ───────────────────── */
.reveal img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ski-line-strong);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  margin: 0.8em auto;
  background: #0b1a2a;
}

.reveal figure {
  margin: 0.9em auto;
  max-width: var(--ski-content-w);
}

.reveal figcaption {
  margin-top: 0.5em;
  font-size: 0.82em;
  color: var(--ski-faint);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Fragments — restrained ────────────────────────────── */
.reveal .fragment {
  transition: opacity 180ms ease, transform 180ms ease;
}

.reveal .fragment:not(.visible) {
  opacity: 0;
  transform: translateY(4px);
}

.reveal .fragment.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal .fragment,
  .reveal a,
  .reveal .controls,
  .reveal .progress {
    transition: none !important;
  }
  .reveal .fragment:not(.visible) {
    transform: none;
  }
}

/* ── Chrome — progress / controls / slide number ──────── */
.reveal .progress {
  height: 3px;
  color: var(--ski-ice);
}

.reveal .progress span {
  background: var(--ski-ice);
  transition: width 300ms ease;
}

.reveal .controls {
  color: var(--ski-faint);
}

.reveal .controls button {
  color: var(--ski-faint);
  transition: color 150ms ease, opacity 150ms ease;
}

.reveal .controls button:hover {
  color: var(--ski-text);
}

.reveal .slide-number {
  background: transparent !important;
  color: var(--ski-faint) !important;
  font-family: var(--r-code-font);
  font-size: 13px !important;
  letter-spacing: 0.04em;
}

/* ── Callouts / admonitions (defensive — vault uses them) */
.reveal .callout,
.reveal .admonition {
  background: var(--ski-surface);
  border: 1px solid var(--ski-line-strong);
  border-left: 3px solid var(--ski-ice);
  border-radius: var(--ski-radius-sm);
  padding: 0.7em 0.9em;
  margin: 0.9em 0;
  max-width: var(--ski-content-w);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.reveal .callout-title,
.reveal .admonition-title {
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ski-ice);
  margin: 0 0 0.3em 0;
}

.reveal .callout-content,
.reveal .admonition-content {
  font-size: 0.82em;
  color: var(--ski-muted);
  line-height: 1.55;
}

/* ── Inline slide CTA: "Watch walkthrough" ────────────── */
.reveal a.ski-video-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 1.1em;
  padding: 0.55em 0.95em;
  font-family: var(--ski-font-body);
  font-size: 0.48em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ski-bg) !important;
  background: var(--ski-amber);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.reveal a.ski-video-inline-cta:hover {
  background: var(--ski-amber-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.reveal a.ski-video-inline-cta:focus-visible {
  outline: 2px solid var(--ski-amber);
  outline-offset: 3px;
}

/* ── Video: FAB + modal → dockable PIP (outside .reveal) ── */
/* FAB */
#ski-video-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9997;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.72em 1em;
  font-family: var(--ski-font-body, "futura-pt", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ski-bg, #0a141e);
  background: var(--ski-amber, #fbbf24);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
}
#ski-video-fab[hidden] { display: none !important; }
#ski-video-fab:hover { background: var(--ski-amber-2, #f59e0b); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,0,0,0.32); }
#ski-video-fab:active { transform: translateY(0); }
#ski-video-fab:focus-visible { outline: 2px solid var(--ski-ice, #7dd3fc); outline-offset: 3px; }
.ski-video-fab-icon { font-size: 11px; line-height: 1; transform: translateY(-0.5px); }
.ski-video-fab-label { line-height: 1; }

/* Overlay */
.ski-video-overlay[hidden] { display: none !important; }
.ski-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: ski-video-fade 180ms ease;
}
.ski-video-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@keyframes ski-video-fade { from { opacity: 0; } to { opacity: 1; } }
.ski-video-modal {
  position: relative;
  width: min(880px, 92vw);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--ski-surface, #14273d);
  border: 1px solid var(--ski-line-strong, rgba(238,244,255,0.18));
  border-radius: var(--ski-radius, 16px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  animation: ski-video-pop 200ms ease;
}
@keyframes ski-video-pop { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
.ski-video-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid var(--ski-line, rgba(238,244,255,0.11));
  background: rgba(125,211,252,0.06);
}
.ski-video-modal-titles { min-width: 0; }
.ski-video-modal-title {
  margin: 0;
  font-family: var(--ski-font-body, "futura-pt", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ski-text, #eef4ff);
  line-height: 1.35;
}
.ski-video-modal-sub {
  margin: 4px 0 0 0;
  font-family: var(--ski-font-body, "futura-pt", system-ui, sans-serif);
  font-size: 12.5px;
  color: var(--ski-muted, #a9bad1);
  line-height: 1.45;
}
.ski-video-modal-actions,
.ski-video-dock-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ski-video-btn {
  appearance: none;
  border: 1px solid var(--ski-line-strong, rgba(238,244,255,0.18));
  background: rgba(255,255,255,0.06);
  color: var(--ski-text, #eef4ff);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.ski-video-btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(238,244,255,0.24); }
.ski-video-btn:focus-visible { outline: 2px solid var(--ski-amber, #fbbf24); outline-offset: 2px; }
.ski-video-btn--sm { width: 30px; height: 30px; font-size: 14px; border-radius: 7px; }
.ski-video-btn--ghost { background: transparent; border-color: var(--ski-line, rgba(238,244,255,0.11)); }

/* Frame: 16:9 */
.ski-video-frame {
  background: #070f1a;
  aspect-ratio: 16 / 9;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
.ski-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #070f1a;
}
.ski-video-frame--dock { aspect-ratio: 16 / 9; }

/* Dock */
.ski-video-dock[hidden] { display: none !important; }
.ski-video-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  width: min(360px, calc(100vw - 24px));
  background: var(--ski-surface, #14273d);
  border: 1px solid var(--ski-line-strong, rgba(238,244,255,0.18));
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.42), 0 2px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: ski-video-pop 180ms ease;
}
.ski-video-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 8px 8px 8px 12px;
  background: rgba(125,211,252,0.07);
  border-bottom: 1px solid var(--ski-line, rgba(238,244,255,0.11));
}
.ski-video-dock-label {
  font-family: var(--ski-font-body, "futura-pt", system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ski-muted, #a9bad1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
body.ski-video--modal-open { overflow: hidden; }
body.ski-video--modal-open #ski-video-fab { opacity: 0; pointer-events: none; }

/* ── Docked (minimized) — same overlay/iframe, no DOM move, so playback continues ── */
body.ski-video--docked #ski-video-overlay {
  /* turn full-screen grid into a corner PIP container */
  inset: auto;
  top: auto;
  right: 18px;
  bottom: 18px;
  left: auto;
  width: min(360px, calc(100vw - 24px));
  height: auto;
  display: block;
  padding: 0;
  background: transparent;
  pointer-events: none;
  animation: ski-video-pop 180ms ease;
}
body.ski-video--docked #ski-video-overlay[hidden] { display: block !important; }
body.ski-video--docked .ski-video-overlay-backdrop { display: none !important; }
body.ski-video--docked .ski-video-modal {
  width: 100%;
  max-height: none;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.42), 0 2px 10px rgba(0,0,0,0.2);
  pointer-events: auto;
  animation: ski-video-pop 180ms ease;
}
body.ski-video--docked .ski-video-modal-head {
  padding: 8px 8px 8px 12px;
}
body.ski-video--docked .ski-video-modal-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.ski-video--docked .ski-video-modal-sub { display: none; }
body.ski-video--docked [data-ski-video-minimize] { display: none !important; }
body.ski-video--docked [data-ski-video-expand] { display: grid !important; }
body.ski-video--docked #ski-video-fab { display: none !important; }
/* legacy dock element is no longer used — keep hidden; iframe stays in overlay */
#ski-video-dock[hidden] { display: none !important; }
body.ski-video--docked #ski-video-dock { display: none !important; }

/* Mobile */
@media (max-width: 640px) {
  .ski-video-overlay { padding: 10px; }
  .ski-video-modal { width: 100%; max-height: 86vh; border-radius: 14px; }
  .ski-video-modal-head { padding: 12px 10px 10px 14px; }
  .ski-video-dock { right: 12px; left: 12px; width: auto; bottom: 12px; }
  #ski-video-fab { right: 12px; bottom: 12px; }
  body.ski-video--docked #ski-video-overlay { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ski-video-overlay, .ski-video-modal, .ski-video-dock, #ski-video-fab { animation: none !important; transition: none !important; }
}

/* ── Print / PDF ───────────────────────────────────────── */
@media print {
  .reveal-viewport {
    background: var(--ski-bg) !important;
  }
  .reveal pre,
  .reveal table,
  .reveal blockquote,
  .reveal img {
    box-shadow: none !important;
  }
  #ski-video-fab,
  #ski-video-overlay,
  #ski-video-dock { display: none !important; }
}
