/* Interaction affordances for the noir/gold identity. Keep after premiere.css. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, input, select, textarea, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--gold-light, #e4c994);
  outline-offset: 4px;
}

.skip-link:focus-visible {
  outline-color: var(--ink, #f5f2e9);
}

.signal-card:focus-visible,
.territory-rail:focus-visible,
.signal-grid:focus-visible {
  outline-offset: -3px;
}

.motion-ready .reveal:focus-within,
.motion-ready .reveal:focus-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.gallery-arrow,
.icon-button {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.gallery-arrow[aria-disabled="true"] {
  opacity: .4;
  cursor: default;
}

.gallery-arrow[aria-disabled="true"]:hover {
  background: transparent;
  transform: none;
}

.gallery-arrow[aria-disabled="true"]:focus-visible {
  opacity: 1;
}

.page-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* A brief entrance keeps the seal from moving indefinitely during reading. */
.premiere-seal {
  animation-duration: 4.5s;
  animation-iteration-count: 1;
}

.no-script-nav {
  display: none;
}

@media (max-width: 980px) {
  .mobile-panel {
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: 10px;
  }

  .mobile-panel a {
    min-height: 44px;
  }

  .no-script-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
  }

  .no-script-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 720px) {
  .header-actions .button {
    min-height: 44px;
  }

  .mobile-panel {
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .signal-grid,
  .territory-rail {
    scroll-behavior: auto !important;
  }

  .motion-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .premiere-seal,
  .partner-track {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, [tabindex="0"]):focus-visible {
    outline-color: Highlight;
  }

  .button,
  .gallery-arrow,
  .icon-button {
    border: 1px solid ButtonText;
  }
}
/* Footer labels and account names must wrap within narrow mobile columns. */
.footer-top > div { min-width: 0; }
.footer-top a, .footer-statement { overflow-wrap: anywhere; }
.footer-top .text-link { max-width: 100%; }
@media (max-width: 640px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
