/* Shared marketing navigation, after the opening workflow on Home. */
html:root body .rg-site > .site-header {
  padding: 9px 0;
  background: linear-gradient(#f7f8f2, #f7f8f2f2 78%, #f7f8f200);
}

html:root body .rg-site > .site-header .nav {
  width: min(1480px, calc(100% - 40px));
  height: 62px;
  padding: 0 12px 0 20px;
  border-radius: 14px;
  box-shadow: 0 4px 14px #101f3508;
}

html:root body .rg-site > .site-header .nav-actions {
  justify-self: end;
  column-gap: 12px;
}

html:root body .rg-site > .site-header :is(.header-signin, .menu-toggle, .nav-cta) {
  min-height: 44px;
}

html:root body .rg-site > .site-header :is(a, button):focus-visible {
  outline: 2px solid #6148ba;
  outline-offset: 2px;
}

html:root body .rg-site > .site-header nav a[aria-current="page"] {
  color: #142540;
  background: #b7edf6;
}

@media (min-width: 1281px) {
  html:root body .rg-site > .site-header .nav {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  }

  html:root body .rg-site > .site-header .wordmark {
    justify-self: start;
  }
}

@media (max-width: 1280px) {
  html:root body .rg-site > .site-header .nav {
    width: min(1100px, calc(100% - 24px));
    height: 58px;
    padding-inline: 13px 8px;
  }

  html:root body .rg-site > .site-header nav {
    top: calc(100% + 5px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  html:root body .rg-site > .site-header .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  html:root body .rg-site > .site-header .nav-actions {
    column-gap: 6px;
  }
}

/* Next and static shells share these two legacy control selectors. */
.rg-site button:is(.motion-control, .keyboard-pause) {
  display: none !important;
}

/* Keep the short reveals. The homepage's frame-driven sequence has its own clock. */
.rg-site :is(.rgw-route-beam, .rgw-core-plane > svg, .rm-calendar-grid > .is-booked,
  .rw9-stage, .rw9-scroll svg, .partner-connector i, .partner-workspace,
  .rgm-wire-signal, .rgm-voice-wave i, .wl-route-pulse, .wl-client, .wl-mode-path i,
  .rm-path-flow, .rm-profile-pieces > i, .rm-post-preview > i, .rm-message-preview i,
  .rgp-workspace-signal, .rgp-voice-object i, .ps-post-art > i, .hm-operator-core > svg,
  .hm-operator-flow > span, .hm-model-banner i, .hm-final > svg, .ps-intel-ring,
  .ps-signal, .rg-crate),
.rg-site :is(.ps-context, .ps-agenda)::after {
  animation-duration: 3.6s !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
}

/* Waiting indicators in the visitor-opened chat are bounded as well. */
.rg-rooky-rig[data-rooky-expression="thinking"] .rg-rooky-eye,
:root[data-rooky-atlas="ready"] .rg-rooky-rig[data-rooky-expression="thinking"]::after {
  animation-iteration-count: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .rg-site :is(.rgw-route-beam, .rgw-core-plane > svg, .rm-calendar-grid > .is-booked,
    .rw9-stage, .rw9-scroll svg, .partner-connector i, .partner-workspace,
    .rgm-wire-signal, .rgm-voice-wave i, .wl-route-pulse, .wl-client, .wl-mode-path i,
    .rm-path-flow, .rm-profile-pieces > i, .rm-post-preview > i, .rm-message-preview i,
    .rgp-workspace-signal, .rgp-voice-object i, .ps-post-art > i, .hm-operator-core > svg,
    .hm-operator-flow > span, .hm-model-banner i, .hm-final > svg, .ps-intel-ring,
    .ps-signal, .rg-crate),
  .rg-site :is(.ps-context, .ps-agenda)::after {
    animation: none !important;
  }
}
