/* ─────────────────────────────────────────────────────────────────
   block-slider-priority-video — T7 redesigned (2026-05-06)
   Video-prioritized slider. Lazy posters, preload=metadata.
   Caption overlay (left 40% gradient). Reduced-motion.
   ───────────────────────────────────────────────────────────────── */

.block-slider-priority-video { position: relative; }

.block-slider-priority-video .slider-priority-video-wrap {
  border-radius: var(--ds-radius-lg);
  background: var(--scheme-card-bg);
  padding-top: var(--ds-space-4);
  padding-bottom: var(--ds-space-4);
}

.block-slider-priority-video .slider-priority-video-item {
  position: relative;
  border-radius: var(--ds-radius);
  overflow: hidden;
  box-shadow: var(--ds-shadow-md);
  background: var(--scheme-card-bg);
  max-height: 80vh;
  /* SWEEP-T07 (2026-05-08): container queries so caption + play badge math
     respond to actual slot width (3-up carousel slots can be < 320px even
     at 1440 desktop), not viewport width. */
  container-type: inline-size;
  container-name: spv-item;
}

.block-slider-priority-video .slider-priority-video-item__media { position: relative; }
.block-slider-priority-video .slider-priority-video-item__media iframe,
.block-slider-priority-video .slider-priority-video-item__video,
.block-slider-priority-video .slider-priority-video-item__img {
  display: block;
  width: 100%;
  height: 100%;
  /* FIX-T7: clamp scaling on every media element
     WAVE3-F06 2026-05-08: literal #000 letterbox per audit §3.1 — on
     dark schemes --ds-ink is rebound to white and the letterbox flashed
     bright white before media loads. */
  max-width: 100%;
  object-fit: cover;
  background: #000;
}

/* FIX-T7: defensive max-width on every img/video/iframe inside slides */
.block-slider-priority-video .slider-priority-video-slide img,
.block-slider-priority-video .slider-priority-video-slide video,
.block-slider-priority-video .slider-priority-video-slide iframe {
  max-width: 100%;
  height: auto;
}
.block-slider-priority-video .slider-priority-video-item__media img,
.block-slider-priority-video .slider-priority-video-item__media video,
.block-slider-priority-video .slider-priority-video-item__media iframe {
  max-width: 100%;
}

.block-slider-priority-video .slider-priority-video-carousel--aspect-16\:9 .slider-priority-video-item__media { aspect-ratio: 16 / 9; }
.block-slider-priority-video .slider-priority-video-carousel--aspect-4\:3  .slider-priority-video-item__media { aspect-ratio: 4 / 3; }
.block-slider-priority-video .slider-priority-video-carousel--aspect-1\:1  .slider-priority-video-item__media { aspect-ratio: 1 / 1; }
/* W9-A2: vertical 9:16 carousel — primary use case for this module */
.block-slider-priority-video .slider-priority-video-carousel--aspect-portrait .slider-priority-video-item__media { aspect-ratio: 9 / 16; }
/* FIX-T7: cover variant — enforce a sane default aspect-ratio (portrait friendly) */
.block-slider-priority-video .slider-priority-video-carousel--aspect-cover .slider-priority-video-item__media { aspect-ratio: 9 / 16; }

/* W9-A2: poster-only link wrapper (when no video file is provided) */
.block-slider-priority-video .slider-priority-video-item__poster-link,
.block-slider-priority-video .slider-priority-video-item__yt {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--ds-steel);
}

/* BUG-T4 (2026-05-07): poster/yt anchor must not overlap caption box.
   When a caption is rendered as a sibling, shrink the anchor inset so its
   bounding box no longer covers the caption strip — desktop caption is
   left 40%, mobile docks the caption at the bottom. Image is taken out
   of the anchor box flow (fills __media absolutely) so the visible poster
   stays full-bleed even after the anchor shrinks. */
.block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__poster-link,
.block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__yt {
  inset: 0 0 0 40%;
  background: transparent;
}

/* BUG-T4: image fills __media regardless of anchor box, so the visible
   poster stays full-bleed even after the anchor is shrunk. */
.block-slider-priority-video .slider-priority-video-item__media > .slider-priority-video-item__poster-link > .slider-priority-video-item__img,
.block-slider-priority-video .slider-priority-video-item__media > .slider-priority-video-item__yt > .slider-priority-video-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BUG-T4: keep play button centered over the full __media — re-center by
   extending leftward into the caption area. pointer-events:none keeps the
   caption CTA clickable through the play badge.
   SWEEP-T07 (2026-05-08): math fix — anchor is `inset:0 0 0 40%` (left
   40%, width 60%). To put the badge at the card's true 50%, we want it
   at (50% − 40%) / 60% = 1/6 ≈ 16.67% of the anchor box, NOT the previous
   `calc(50% / 0.6)` which evaluated to 83.33% of the anchor and pushed
   the badge to ≈90% of the card width — visibly off the right edge in a
   3-up carousel where each card is only ~309 px wide. */
.block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__poster-link .slider-priority-video-item__play,
.block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__yt .slider-priority-video-item__play {
  left: calc(100% / 6);
  pointer-events: none;
}
.block-slider-priority-video .slider-priority-video-item__poster-link:focus-visible,
.block-slider-priority-video .slider-priority-video-item__yt:focus-visible {
  outline: 3px solid var(--ds-cta);
  outline-offset: -3px;
}

/* W9-A2: centered play-button overlay — tap target 72px (≥44px min) */
.block-slider-priority-video .slider-priority-video-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: transform var(--ds-duration-fast, 150ms) var(--ds-ease-out, ease-out);
}
.block-slider-priority-video .slider-priority-video-item__play svg {
  width: 100%;
  height: 100%;
  display: block;
}
.block-slider-priority-video .slider-priority-video-item__poster-link:hover .slider-priority-video-item__play,
.block-slider-priority-video .slider-priority-video-item__yt:hover .slider-priority-video-item__play,
.block-slider-priority-video .slider-priority-video-item__poster-link:focus-visible .slider-priority-video-item__play,
.block-slider-priority-video .slider-priority-video-item__yt:focus-visible .slider-priority-video-item__play {
  transform: scale(1.07);
}

/* W9-A2: legacy/unwired placeholder — small affordance, no full-tile black wall */
.block-slider-priority-video .slider-priority-video-item__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.25) 100%), var(--scheme-card-bg, #0c0c14);
  color: rgba(255, 255, 255, 0.85);
}

/* W9-A2: caption badge (eyebrow pill) -------------------------
   WAVE3-F06 2026-05-08: caption sits on a hard dark gradient — the
   badge bg is brand orange. Pin text to literal #fff so on light schemes
   we don't render black-on-orange (passes 6.5:1 but breaks design intent
   and risks orange-on-orange on .scheme-accent — see Pattern C below). */
.block-slider-priority-video .slider-priority-video-item__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  margin-bottom: var(--ds-space-2, 8px);
  font-family: var(--ds-font-body, 'DM Sans', sans-serif);
  font-size: var(--ds-fs-eyebrow, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ds-cta);
  border-radius: var(--ds-radius-pill, 999px);
}

.block-slider-priority-video .slider-priority-video-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* Caption (left 40% gradient panel) --------------------------
   WAVE3-F06 2026-05-08: caption sits on a hard dark gradient. Pin
   --scheme-fg locally to white via Pattern B so all descendant text
   (title/body/cta) reads light-on-dark regardless of outer scheme.
   Audit T7 §3.2/§3.3 — was rendering black-on-poster on .scheme-paper. */
.block-slider-priority-video .slider-priority-video-item__caption {
  --scheme-fg: #fff;
  --scheme-fg-soft: rgba(255,247,227,0.9);
  --scheme-fg-mute: rgba(255,247,227,0.7);
  --ds-ink: #fff;

  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  max-width: 40%;
  padding: var(--ds-space-4) var(--ds-space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* WAVE45-H4 (2026-05-08): solid background-color underlies the gradient
     so the contrast audit script (which only sees background-color, not
     gradients) computes white-on-dark instead of white-on-document-fallback.
     Visually identical because the gradient covers the same area; the solid
     scrim only shows up when the gradient is fully transparent. */
  background-color: rgba(0,0,0,0.6);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0) 100%);
  color: #fff;
  pointer-events: none;
  z-index: 2;
  /* SENIOR-T4 (2026-05-07): allow body to wrap normally and never truncate */
  overflow-wrap: anywhere;
  word-break: normal;
}
.block-slider-priority-video .slider-priority-video-item__caption > * { pointer-events: auto; }
.block-slider-priority-video .slider-priority-video-item__title {
  font-family: var(--ds-font-heading, 'Anton', sans-serif);
  font-size: clamp(1.25rem, 2.4vw, 2.25rem);
  margin: 0 0 var(--ds-space-2);
  line-height: 1.1;
}
.block-slider-priority-video .slider-priority-video-item__body {
  font-family: var(--ds-font-body, 'DM Sans', sans-serif);
  /* SENIOR-T4 (2026-05-07): bump body to humane 18px ≥, line-height 1.6 */
  font-size: var(--ds-fs-body, 1.125rem);
  line-height: var(--ds-lh-body, 1.6);
  margin: 0 0 var(--ds-space-3);
  opacity: 1;
  color: #fff;
  /* Caption body must not be clamped — full text visible at every viewport */
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.block-slider-priority-video .slider-priority-video-item__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--ds-cta);
  color: #fff;
  font-family: var(--ds-font-body);
  font-size: var(--ds-fs-body, 1.125rem);
  font-weight: 700;
  text-decoration: none;
  /* SENIOR-T4: ≥ 56px primary CTA tap target */
  min-height: var(--ds-touch-target-primary, 56px);
  padding: 12px 22px;
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow-sm);
  transition: transform var(--ds-duration-fast) var(--ds-ease-out),
              box-shadow var(--ds-duration-fast) var(--ds-ease-out);
}
.block-slider-priority-video .slider-priority-video-item__cta:hover,
.block-slider-priority-video .slider-priority-video-item__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-md);
}
.block-slider-priority-video .slider-priority-video-item__cta:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

/* Pagination dots (12px / current 16px filled --ds-cta) -------- */
.block-slider-priority-video .owl-theme .owl-dots {
  margin-top: var(--ds-space-4);
  text-align: center;
  padding-bottom: 8px;
}
/* SENIOR-T4: dot tap target boosted to ≥48×48 spacing-included */
.block-slider-priority-video .owl-theme .owl-dots .owl-dot {
  padding: 16px 10px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.block-slider-priority-video .owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: var(--scheme-fg-mute, rgba(0,0,0,0.25));
  border: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  transition: all var(--ds-duration-fast) var(--ds-ease-out);
  opacity: 0.6;
}
.block-slider-priority-video .owl-theme .owl-dots .owl-dot.active span {
  width: 16px;
  height: 16px;
  background: var(--ds-cta);
  opacity: 1;
}
.block-slider-priority-video .owl-theme .owl-dots .owl-dot:hover span {
  background: var(--ds-cta);
  opacity: 1;
}
.block-slider-priority-video .owl-theme .owl-dots .owl-dot:focus-visible span {
  border-color: var(--ds-accent);
  box-shadow: 0 0 0 2px var(--ds-paper, #fff), 0 0 0 4px var(--ds-accent);
}
.block-slider-priority-video .slider-priority-video-carousel--no-dots .owl-dots { display: none !important; }

/* Arrow buttons (circular 44px paper face + chevron + shadow)
   T2-SLIDER 2026-05-08: Owl 2 emits arrows as `<div class="owl-prev">`
   (NOT <button>), so the previous `button.owl-prev` selectors never
   matched. Broaden to the owl class itself + keep `button.*` for forward
   compatibility. Switched face to paper-on-rule per shared T2 spec. */
.block-slider-priority-video .owl-theme .owl-nav .owl-prev,
.block-slider-priority-video .owl-theme .owl-nav .owl-next,
.block-slider-priority-video .owl-theme .owl-nav button.owl-prev,
.block-slider-priority-video .owl-theme .owl-nav button.owl-next {
  background: var(--ds-paper, #fbf7ef);
  color: var(--ds-ink, #1a1a1a);
  border: 1px solid var(--ds-rule, rgba(14,15,12,0.12));
  border-radius: 999px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ds-shadow-md, 0 4px 12px rgba(0,0,0,0.18));
  transition: transform var(--ds-duration-fast, 150ms) var(--ds-ease-out, ease),
              box-shadow var(--ds-duration-fast, 150ms) var(--ds-ease-out, ease),
              background var(--ds-duration-fast, 150ms) var(--ds-ease-out, ease),
              color var(--ds-duration-fast, 150ms) var(--ds-ease-out, ease);
}
.block-slider-priority-video .owl-theme .owl-nav .owl-prev:hover,
.block-slider-priority-video .owl-theme .owl-nav .owl-next:hover,
.block-slider-priority-video .owl-theme .owl-nav button.owl-prev:hover,
.block-slider-priority-video .owl-theme .owl-nav button.owl-next:hover {
  background: var(--ds-cta, #e36218);
  color: #fff;
  border-color: var(--ds-cta, #e36218);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--ds-shadow-lg, 0 8px 20px rgba(0,0,0,0.25));
  opacity: 1;
}
.block-slider-priority-video .owl-theme .owl-nav .owl-prev:focus-visible,
.block-slider-priority-video .owl-theme .owl-nav .owl-next:focus-visible,
.block-slider-priority-video .owl-theme .owl-nav button.owl-prev:focus-visible,
.block-slider-priority-video .owl-theme .owl-nav button.owl-next:focus-visible {
  outline: 3px solid var(--ds-accent, var(--ds-cta, #e36218));
  outline-offset: 3px;
}
.block-slider-priority-video .slider-priority-video-wrap .owl-theme .owl-nav .icon,
.block-slider-priority-video .owl-theme .owl-nav .icon,
.block-slider-priority-video .owl-theme .owl-nav .owl-prev .icon,
.block-slider-priority-video .owl-theme .owl-nav .owl-next .icon {
  font-size: 20px;
  color: inherit !important;
  line-height: 1;
}
.block-slider-priority-video .slider-priority-video-carousel--no-arrows .owl-nav { display: none !important; }

/* SWEEP-T07 (2026-05-08): narrow slot container query.
   When a 3-up carousel renders at desktop, each card slot can be ≤480 px
   wide (≈309 px observed at 1440). At those slot widths the default
   left-40% caption is only ~124 px — too narrow to hold the title without
   ugly mid-word hyphenation, and the body wraps to 6+ lines. Boost the
   caption to a minimum 200 px / max 60% of the card, dock it bottom-half
   like the mobile layout, and clamp the title font down so the slot reads
   as a single legible card not a stack of broken syllables.
   The poster anchor is shrunk to the matching upper portion so the
   audit-detector overlap-fix from BUG-T4 still holds. */
@container spv-item (max-width: 480px) {
  .block-slider-priority-video .slider-priority-video-item__caption {
    width: 100%;
    max-width: 100%;
    /* WAVE45-H4 (2026-05-08): keep solid bg-color under the gradient so
       contrast script reads dark, not document-fallback white. */
    background-color: rgba(0,0,0,0.65);
    background-image: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.15) 85%, rgba(0,0,0,0) 100%);
    justify-content: flex-end;
    padding: var(--ds-space-3) var(--ds-space-3) var(--ds-space-3);
  }
  .block-slider-priority-video .slider-priority-video-item__title {
    /* presbyopic but slot-aware floor: never above 1.25rem ≈ 20px so a
       short title fills two lines max in a 309 px card without hyphenating. */
    font-size: clamp(1rem, 4.5cqi, 1.25rem);
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
  .block-slider-priority-video .slider-priority-video-item__body {
    font-size: var(--ds-fs-body-sm);
    line-height: 1.5;
    /* clamp body to 3 lines so the bottom-anchored caption keeps a
       predictable height in narrow slots. ICP-aged readers will tap
       the CTA / arrow control to advance, full body lives on detail page. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Re-shrink anchor to the upper portion so it never overlaps the
     bottom-docked caption strip — same shape as the mobile breakpoint. */
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__poster-link,
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__yt {
    inset: 0 0 55% 0;
  }
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__poster-link .slider-priority-video-item__play,
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__yt .slider-priority-video-item__play {
    /* anchor is now top 45% of card; centre badge over the poster region
       (the visible upper half), not the whole card. */
    left: 50%;
    top: 50%;
  }
  /* CTA stays full-width inside the narrow slot for thumb-friendly tap. */
  .block-slider-priority-video .slider-priority-video-item__cta {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile: stack caption full-width ----------------------------- */
/* SENIOR-T4 (2026-05-07): full bottom-anchored caption with comfortable
   horizontal padding (≥16px each side), stronger gradient floor for AAA
   contrast over busy poster art, body text never clamped, body never
   truncates mid-word at 375px. */
@media (max-width: 768px) {
  .block-slider-priority-video .slider-priority-video-item__caption {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.15) 85%, rgba(0,0,0,0) 100%);
    justify-content: flex-end;
    /* generous padding so 18px body never collides with the slide edge */
    padding: var(--ds-space-4) var(--ds-space-4) var(--ds-space-4);
    box-sizing: border-box;
  }
  .block-slider-priority-video .slider-priority-video-item__body {
    /* keep 18px / 1.6 default; remove any previous clamp; leave room for CTA */
    font-size: var(--ds-fs-body, 1.125rem);
    line-height: var(--ds-lh-body, 1.6);
    margin-bottom: var(--ds-space-3);
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .block-slider-priority-video .slider-priority-video-item__cta {
    /* full-width primary CTA on phones, comfortable 56px height */
    width: 100%;
    justify-content: center;
    min-height: var(--ds-touch-target-primary, 56px);
  }

  /* BUG-T4 (2026-05-07): on mobile the caption docks at the bottom (full
     width). Shrink the poster/yt anchor to the top half of __media so its
     bounding box no longer overlaps the caption strip below. The full
     poster <img> still fills __media via the absolute-fill rule. */
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__poster-link,
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__yt {
    inset: 0 0 55% 0;
  }
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__poster-link .slider-priority-video-item__play,
  .block-slider-priority-video .slider-priority-video-item:has(.slider-priority-video-item__caption) .slider-priority-video-item__yt .slider-priority-video-item__play {
    /* WAVE3-F06 2026-05-08: math fix — anchor is `inset:0 0 55% 0` (top 45%
       of card). Previous `calc(50% / 0.45)` evaluated to ~111% of the
       anchor box → pushed badge BELOW the anchor's bottom edge. Per
       audit §3.10, intent was "center over the visible upper half".
       50% of the anchor IS the centre of the visible upper half. */
    left: 50%;
    top: 50%;
  }
}

/* Touch swipe via scroll-snap fallback ------------------------ */
@media (hover: none) and (pointer: coarse) {
  .block-slider-priority-video .owl-carousel:not(.owl-loaded) {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--ds-space-2);
  }
  .block-slider-priority-video .owl-carousel:not(.owl-loaded) .slider-priority-video-slide {
    flex: 0 0 90%;
    scroll-snap-align: start;
  }
}

/* W2-A19 mobile overflow fix ---------------------------------- */
@media (max-width: 575.98px) {
  .block-slider-priority-video .container,
  .block-slider-priority-video .container-fluid {
    max-width: 100%;
    padding-left: var(--ds-space-3, 12px);
    padding-right: var(--ds-space-3, 12px);
  }
  .block-slider-priority-video { overflow-x: hidden; }
}

/* Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .block-slider-priority-video .owl-carousel,
  .block-slider-priority-video .owl-stage,
  .block-slider-priority-video .owl-item,
  .block-slider-priority-video .slider-priority-video-item,
  .block-slider-priority-video .slider-priority-video-item__cta,
  .block-slider-priority-video .owl-theme .owl-nav button {
    transition: none !important;
    animation: none !important;
  }
  .block-slider-priority-video .slider-priority-video-item__cta:hover,
  .block-slider-priority-video .owl-theme .owl-nav button:hover {
    transform: none !important;
  }
}

/* ── Validate-2026-05-08 fix: sticky-CTA bottom clearance for in-page CTAs (Group A). ── */
@media (max-width: 900px) {
  .block-slider-priority-video {
    padding-bottom: calc(var(--ds-space-5, 1.5rem) + var(--ds-sticky-cta-clearance, 96px));
  }
}

/* ── F-SPV (2026-05-08) residual fix: pre-init layered-render flash at ≤375.
   Owl Carousel renders all slides in document order until JS adds `.owl-loaded`
   to the `.owl-carousel` container and wraps the slides in `.owl-stage` /
   `.owl-item`. During that brief window every `.slider-priority-video-slide`
   is laid out as a normal block, so on narrow viewports the slides briefly
   stack on top of each other (same width / no row gap collapse) producing a
   cosmetic flash that resolves on first paint after init.

   Fix: while the carousel container is NOT `.owl-loaded`, hide every direct-
   child slide except the first. Visibility (not display:none) keeps the
   first slide's natural height so the carousel slot does not collapse to 0
   before init — preventing a layout jump when Owl mounts. The
   `(hover:none) and (pointer:coarse)` block above already short-circuits
   this rule on touch devices via the scroll-snap fallback (which IS the
   intended pre-init UX there), so we scope this to the cosmetic-flash
   window only. */
@media (max-width: 900px) {
  .block-slider-priority-video .owl-carousel:not(.owl-loaded) > .slider-priority-video-slide:not(:first-child) {
    visibility: hidden;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  /* Defensive aliases — match the generic patterns the audit asks for in
     case the slider container/class is renamed in a future refactor. */
  .block-slider-priority-video [class*="slider-priority-video-carousel"]:not([class*="owl-loaded"]):not([class*="-initialized"]) > [class*="slider-priority-video-slide"]:not(:first-child) {
    visibility: hidden;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
}

/* Re-enable touch scroll-snap fallback siblings: the (hover:none) block
   above turns the un-loaded carousel into a horizontal flex row of all
   slides, so the F-SPV hide rule must be neutralised inside it. Otherwise
   on touch devices ≤900px the fallback would still show only the first
   slide. Specificity matches the F-SPV rule (one extra class). */
@media (hover: none) and (pointer: coarse) and (max-width: 900px) {
  .block-slider-priority-video .owl-carousel:not(.owl-loaded) > .slider-priority-video-slide:not(:first-child),
  .block-slider-priority-video [class*="slider-priority-video-carousel"]:not([class*="owl-loaded"]):not([class*="-initialized"]) > [class*="slider-priority-video-slide"]:not(:first-child) {
    visibility: visible;
    position: static;
    inset: auto;
    pointer-events: auto;
  }
}

/* ─────────────────────────────────────────────────────────────────
   WAVE3-F06 2026-05-08 — Pattern C scheme-scoped overrides
   Targets audit T7 §3.4 (badge orange-on-orange on accent),
   §3.5 (arrows hardcode paper-on-ink), and the active dot collapse.
   ───────────────────────────────────────────────────────────────── */

/* Arrows: dark/colored schemes get a white face with ink chevron so
   the paper-on-ink default doesn't collapse. */
.scheme-ink     .block-slider-priority-video .owl-theme .owl-nav .owl-prev,
.scheme-ink     .block-slider-priority-video .owl-theme .owl-nav .owl-next,
.scheme-steel   .block-slider-priority-video .owl-theme .owl-nav .owl-prev,
.scheme-steel   .block-slider-priority-video .owl-theme .owl-nav .owl-next,
.scheme-accent  .block-slider-priority-video .owl-theme .owl-nav .owl-prev,
.scheme-accent  .block-slider-priority-video .owl-theme .owl-nav .owl-next,
.scheme-trust   .block-slider-priority-video .owl-theme .owl-nav .owl-prev,
.scheme-trust   .block-slider-priority-video .owl-theme .owl-nav .owl-next,
.scheme-ink     .block-slider-priority-video .owl-theme .owl-nav button.owl-prev,
.scheme-ink     .block-slider-priority-video .owl-theme .owl-nav button.owl-next,
.scheme-steel   .block-slider-priority-video .owl-theme .owl-nav button.owl-prev,
.scheme-steel   .block-slider-priority-video .owl-theme .owl-nav button.owl-next,
.scheme-accent  .block-slider-priority-video .owl-theme .owl-nav button.owl-prev,
.scheme-accent  .block-slider-priority-video .owl-theme .owl-nav button.owl-next,
.scheme-trust   .block-slider-priority-video .owl-theme .owl-nav button.owl-prev,
.scheme-trust   .block-slider-priority-video .owl-theme .owl-nav button.owl-next {
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.92);
}

/* Active dot collapses on any colored/dark scheme. */
.scheme-accent .block-slider-priority-video .owl-theme .owl-dots .owl-dot.active span,
.scheme-trust  .block-slider-priority-video .owl-theme .owl-dots .owl-dot.active span,
.scheme-ink    .block-slider-priority-video .owl-theme .owl-dots .owl-dot.active span,
.scheme-steel  .block-slider-priority-video .owl-theme .owl-dots .owl-dot.active span,
.scheme-accent .block-slider-priority-video .owl-theme .owl-dots .owl-dot:hover span,
.scheme-trust  .block-slider-priority-video .owl-theme .owl-dots .owl-dot:hover span,
.scheme-ink    .block-slider-priority-video .owl-theme .owl-dots .owl-dot:hover span,
.scheme-steel  .block-slider-priority-video .owl-theme .owl-dots .owl-dot:hover span {
  background: #fff;
}

/* Badge + CTA pill on .scheme-accent — orange-on-orange, inverse. */
.scheme-accent .block-slider-priority-video .slider-priority-video-item__badge,
.scheme-accent .block-slider-priority-video .slider-priority-video-item__cta {
  background: #fff;
  color: var(--ds-cta);
}
