/* Action colors are local to buttons so the site's approved palette stays intact. */
:root {
  --action-face: #0f3e68;
  --action-text: #fff;
}
.hero, .intro, .editorial-motion, .section-film, .alt-infra, .advantages,
.mex-controls, .impact-playback {
  --action-face: #fff;
  --action-text: #0f3e68;
}
@layer actions {
  :is(.pill,.alt-hero-button,.section-film-link,.directory-reset,.brand-clear,
      .mex-controls button,.impact-playback button):not([hidden]) {
    --action-fill: var(--action-face);
    --action-label: var(--action-text);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 48px !important;
    min-height: 48px !important;
    min-width: 48px !important;
    max-width: 100% !important;
    padding: 0 var(--space-16) !important;
    gap: var(--space-8) !important;
    border: 1px solid var(--action-face) !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    color: var(--action-label) !important;
    background: var(--action-fill) !important;
    cursor: pointer;
  }
  :is(.pill.outline,.pill + .pill,.section-film-link + .section-film-link,
      .alt-hero-button + .alt-hero-button,.directory-reset,.brand-clear,
      .mex-controls button,.impact-playback button):not([hidden]) {
    --action-fill: transparent;
    --action-label: var(--action-face);
  }
  @media (hover: hover) {
    :is(.pill,.section-film-link,.alt-hero-button,.directory-reset,.brand-clear,
        .mex-controls button,.impact-playback button):hover:not(:disabled,[aria-disabled="true"]) {
      box-shadow: inset 0 0 0 1px var(--action-face) !important;
      text-decoration: underline !important;
      text-underline-offset: .18em;
    }
  }
  :is(.pill,.section-film-link,.alt-hero-button,.directory-reset,.brand-clear,
      .mex-controls button,.impact-playback button):focus-visible {
    outline: 3px solid var(--action-face) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px var(--action-text) !important;
  }
  :is(.pill,.section-film-link,.alt-hero-button,.directory-reset,.brand-clear,
      .mex-controls button,.impact-playback button):is(:disabled,[aria-disabled="true"]) {
    opacity: .55 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
  }
  .film-link .play-tri { border-left-color: currentColor !important; }
}
@media (max-width: 767px) {
  .section-heading { flex-wrap: wrap; }
  .section-heading .pill { flex: 0 1 auto; }
  .hero-controls .dots { top: 100%; bottom: auto; transform: none; }
  .hero .dots button, .hero .play-controls button, .hero #hero-pause,
  .site-header button, .ambient-toggle, .partner-controls button,
  .brand-dialog button, .ib-viewer-head button, .impact-expand {
    min-width: 44px;
    min-height: 44px;
  }
}
