/* FMR reversible monochrome controls. 2026-09-28.
   A named important layer takes precedence over the legacy unlayered
   important declarations, without escalating selector specificity.
   Foreground/background switch atomically: interpolating inverse colors
   would make both grey halfway through and temporarily erase the text. */
@layer fmrInteraction {
  :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"]) {
    --fmr-rest-bg: #fff;
    --fmr-rest-fg: #050605;
    background: var(--fmr-rest-bg) !important;
    color: var(--fmr-rest-fg) !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: #050605 !important;
    text-shadow: none !important;
    transition-property: transform, box-shadow !important;
    transition-duration: 160ms !important;
  }
  :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"]):is(.btn-primary, .ioc-button--dark, .mn-btn-primary,
  .start-button--primary, .document-download, .news-read-more,
  .active, .is-active, a.start-tool, a.lesson-invite,
  a.sponsor-board__value-cta, .header-nav-shell .nav-link) {
    --fmr-rest-bg: #050605;
    --fmr-rest-fg: #fff;
  }
  .header-nav-shell .nav-link.active {
    --fmr-rest-bg: #fff;
    --fmr-rest-fg: #050605;
  }
  :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"]) :is(span, i, svg, strong, b, p, small, em, h2, h3, h4) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    background: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    transition-property: transform, box-shadow !important;
  }
  :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"])::before, :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"])::after {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"]):focus-visible {
    background: var(--fmr-rest-fg) !important;
    color: var(--fmr-rest-bg) !important;
    outline: 2px solid #1548b8 !important;
    outline-offset: 3px !important;
  }
  @media (hover: hover) {
    :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"]):hover {
      background: var(--fmr-rest-fg) !important;
      color: var(--fmr-rest-bg) !important;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"]), :is(.btn, .ioc-button, .fed-button, .start-button, .mn-btn,
  .filter-btn, .tab-btn, .mn-filter, .page-btn, .photobank-tab,
  .contacts-topic-btn, .document-download, .document-preview, .news-read-more,
  .viewer-download, .photo-action-btn, .ioc-news-pause, .fmr-scroll-top,
  .header-menu-toggle, .photobank-hero-metrics button,
  a.ioc-social-tile, a.start-social, a.ioc-latest-news-card,
  a.start-tool, a.lesson-invite, a.sponsor-board__value-cta,
  a.ioc-history-link, .ioc-tournament-tab, .header-nav-shell .nav-link):not(.btn-danger, .danger, .btn-delete, :disabled, [aria-disabled="true"]) :is(span, i, svg, strong, b, p, small, em, h2, h3, h4) { transition: none !important; }
  }
}

@layer fmrInteraction {
#homeNewsPause.ioc-news-pause::before {width:12px!important;height:14px!important;border:0!important;background:linear-gradient(to right,currentColor 0 4px,transparent 4px 8px,currentColor 8px 12px)!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;}
#homeNewsPause.ioc-news-pause.is-paused::before {width:0!important;height:0!important;background:transparent!important;border-top:7px solid transparent!important;border-bottom:7px solid transparent!important;border-left:11px solid currentColor!important;transform:translate(-40%,-50%)!important;}
}

@layer fmrInteraction {
a.ioc-latest-news-card .ioc-latest-news-body {background:transparent!important;color:inherit!important;transition:none!important;}
a.ioc-latest-news-card .ioc-latest-news-date {color:inherit!important;opacity:1!important;transition:none!important;}
a.ioc-latest-news-card .ioc-latest-news-badge {border-color:currentColor!important;}
}
