/* Accessible text without changing the visible layout. */
.mwm-header__toggle {
  border: 0;
  font: inherit;
  color: inherit;
}

.a11y-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mwm-video .iframe-wrapper {
  position: relative;
}

/* Keyboard alternative over the existing YouTube branding. Mouse playback stays available. */
.mwm-video__youtube-link {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 11rem;
  height: 3rem;
  z-index: 1;
  pointer-events: none;
}

.mwm-video__youtube-link:focus-visible {
  outline: 3px solid #48b274;
  outline-offset: -3px;
}

/* Reading order is button + content; visual order keeps the original button row. */
.mwm-feature-gallery-body[data-feature-reading-order] {
  --feature-row-gap: 1rem;
  --feature-content-min-height: 200px;
}
.mwm-feature-gallery-body[data-feature-reading-order] .mwm-feature-gallery__tabs {
  margin-bottom: 0;
}
.mwm-feature-gallery-body[data-feature-reading-order] .mwm-feature-gallery__tabs > .mwm-feature-gallery__content-item {
  order: 1;
  flex-basis: 100%;
  margin-top: calc(2rem - var(--feature-row-gap));
}
.mwm-feature-gallery-body[data-feature-reading-order] .mwm-feature-gallery__tabs > .mwm-feature-gallery__content-item.active {
  min-height: var(--feature-content-min-height);
}
.mwm-feature-gallery-body[data-feature-reading-order] .mwm-feature-gallery__tabs > .mwm-feature-gallery__content-item:not(.active) {
  top: var(--feature-content-top);
  margin-top: 0;
}
.mwm-feature-gallery-body[data-feature-reading-order] .mwm-feature-gallery__tab-content {
  display: none;
}
@media (max-width: 767px) {
  .mwm-feature-gallery-body[data-feature-reading-order] {
    --feature-row-gap: .5rem;
    --feature-content-min-height: 0px;
  }
}

/* Keyboard selection must be fully visible during the scroll animation. */
@media (min-width: 768px) {
  .mwm-feature-gallery-body[data-keyboard-active] .mwm-feature-gallery__content-item {
    opacity: 0 !important;
  }
  .mwm-feature-gallery-body[data-keyboard-active] .mwm-feature-gallery__content-item.active {
    opacity: 1 !important;
  }
}

