/* Child Safety Program — "Why We Do This" hero trigger + full-page custom video player.
   Ported from the republish `why-we-do-this-player.css`. The generic `.hero-title-row` selectors are
   gated with `:where(body.child-safety-page)` (zero specificity); the unique `.why-video-*` selectors
   are left verbatim. */
:where(body.child-safety-page) .hero-title-row {
  width: min(100%, 820px);
}

:where(body.child-safety-page) .hero-title-row #hero-title {
  width: 100%;
}

.why-video-trigger {
  position: relative;
  width: 118px;
  height: 112px;
  flex: 0 0 118px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.72));
}

.why-video-trigger::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 210, 4, 0.42);
  border-radius: 50%;
  content: "";
  transition: border-color 180ms ease, transform 180ms ease;
}

.why-video-trigger__arc {
  position: absolute;
  top: 54px;
  left: 59px;
  width: 0;
  height: 0;
}

.why-video-trigger__arc span {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 2px 2px #000,
    0 4px 8px #000,
    0 0 10px rgba(0, 0, 0, 0.95);
  transform: translate(-50%, -50%) rotate(var(--arc-angle)) translateY(-45px);
  transform-origin: 50% 50%;
}

.why-video-trigger__button {
  position: absolute;
  top: 31px;
  left: 34px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #fff6a4 0 5%, transparent 6%),
    linear-gradient(145deg, #ffe83a, #ffd204 55%, #b98b00);
  box-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.7),
    0 0 0 7px rgba(255, 210, 4, 0.86),
    0 10px 24px rgba(0, 0, 0, 0.58);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.why-video-trigger__triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #080808;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.42));
}

.why-video-trigger:hover .why-video-trigger__button,
.why-video-trigger:focus-visible .why-video-trigger__button {
  transform: scale(1.08);
  box-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.78),
    0 0 0 8px #ffd204,
    0 0 32px rgba(255, 210, 4, 0.62);
}

.why-video-trigger:hover::before,
.why-video-trigger:focus-visible::before {
  border-color: #ffd204;
  transform: scale(1.04);
}

.why-video-trigger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 50%;
}

body.why-video-modal-open {
  overflow: hidden;
}

.why-video-modal[hidden] {
  display: none;
}

.why-video-modal {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: stretch;
}

.why-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
}

.why-video-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 210, 4, 0.07), transparent 45%),
    #020202;
}

.why-video-modal__header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid rgba(255, 210, 4, 0.5);
  background: linear-gradient(90deg, #070707, #141414 50%, #070707);
}

.why-video-modal__header h2,
.why-video-modal__header p {
  margin: 0;
}

.why-video-modal__header h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.why-video-modal__eyebrow {
  color: #ffd204;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.why-video-modal__close {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #4a4a4d;
  border-radius: 8px;
  color: #fff;
  background: #18181b;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.why-video-modal__close:hover,
.why-video-modal__close:focus-visible {
  border-color: #ffd204;
  color: #ffd204;
  transform: scale(1.04);
}

.why-video-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.why-video-modal__stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: clamp(8px, 1.5vw, 22px);
  gap: 10px;
  overflow: hidden;
}

.why-video-modal__media {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.why-video-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 210, 4, 0.42);
}

.why-video-controls {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #353539;
  border-top: 2px solid #ffd204;
  border-radius: 7px;
  background: linear-gradient(180deg, #1b1b1e, #101012);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
}

.why-video-controls__buttons,
.why-video-controls__options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.why-video-control {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #525258;
  border-radius: 5px;
  color: #f7f7f8;
  background: #242427;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.why-video-control svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.why-video-control--primary {
  border-color: #ffd204;
  color: #080808;
  background: #ffd204;
}

.why-video-control--icon {
  width: 40px;
  padding-inline: 0;
}

.why-video-control:hover,
.why-video-control:focus-visible {
  border-color: #ffd204;
  outline: 0;
  color: #fff;
  background: #2b2b2f;
  box-shadow: 0 0 0 1px #ffd204, 0 0 16px rgba(255, 210, 4, 0.25);
  transform: translateY(-1px);
}

.why-video-control--primary:hover,
.why-video-control--primary:focus-visible {
  color: #080808;
  background: #ffe14d;
}

.why-video-control__pause-icon,
.why-video-control__muted-icon {
  display: none;
}

.why-video-control.is-playing .why-video-control__play-icon,
.why-video-control.is-muted .why-video-control__volume-icon {
  display: none;
}

.why-video-control.is-playing .why-video-control__pause-icon,
.why-video-control.is-muted .why-video-control__muted-icon {
  display: block;
}

.why-video-timeline {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #f2f2f3;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.why-video-timeline input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 5px;
  margin: 0;
  accent-color: #ffd204;
  cursor: pointer;
}

@media (max-width: 720px) {
  .why-video-trigger {
    width: 94px;
    height: 94px;
    flex-basis: 94px;
    transform: scale(0.9);
    transform-origin: center;
  }

  .why-video-trigger__arc {
    top: 47px;
    left: 47px;
  }

  .why-video-trigger__arc span {
    font-size: 0.57rem;
    transform: translate(-50%, -50%) rotate(var(--arc-angle)) translateY(-38px);
  }

  .why-video-trigger__button {
    top: 25px;
    left: 23px;
    width: 50px;
    height: 50px;
  }

  .why-video-modal__header {
    min-height: 62px;
    padding: 9px 12px 9px 16px;
  }

  .why-video-modal__close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .why-video-modal__stage {
    padding: 0;
    gap: 0;
  }

  .why-video-modal__video {
    box-shadow: none;
  }

  .why-video-controls {
    grid-template-columns: auto minmax(90px, 1fr) auto;
    gap: 7px;
    padding: 8px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .why-video-control {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .why-video-controls__buttons .why-video-control:not(.why-video-control--primary) {
    display: none;
  }

  .why-video-control--primary span,
  .why-video-controls__options .why-video-control:not(.why-video-control--icon) {
    display: none;
  }

  .why-video-control--primary,
  .why-video-control--icon {
    width: 38px;
    padding-inline: 0;
  }

  .why-video-timeline {
    gap: 5px;
    font-size: 0.65rem;
  }
}

@media (max-width: 420px) {
  .why-video-trigger {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-video-trigger,
  .why-video-trigger::before,
  .why-video-trigger__button,
  .why-video-modal__close,
  .why-video-control {
    transition: none;
  }
}
