/**
 * ACMOBOOK Global Header — Command Center (desktop) + Magnetic Drawer (mobile)
 * Page-agnostic. Do not add .home / .talents-page header overrides.
 *
 * Z-index scale:
 *   --acm-z-header: 1000
 *   --acm-z-command: 1100
 *   --acm-z-drawer: 1200
 *   Auth / critical overlays remain in auth.css (higher)
 */

:root {
  --acm-z-header: 1000;
  --acm-z-command: 1100;
  --acm-z-drawer: 1200;
  --acm-gh-navy: #101229;
  --acm-gh-primary: #635bff;
  --acm-gh-secondary: #7c5cff;
  --acm-gh-cyan: #22d3ee;
  --acm-gh-lavender: #f6f5ff;
  --acm-gh-border: rgba(99, 91, 255, 0.1);
  --acm-gh-shadow: 0 8px 30px rgba(40, 35, 100, 0.06);
  --acm-gh-panel-shadow: 0 24px 70px rgba(40, 35, 100, 0.14);
  --acm-gh-radius: 20px;
  --acm-gh-duration: 220ms;
  --acm-gh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --acm-gh-panel-top: 88px;
  --acm-gh-width: min(calc(100vw - 32px), 1180px);
}

/* -------------------------------------------------------------------------- */
/* Kill legacy mega-menu conflicts                                            */
/* -------------------------------------------------------------------------- */

.acm-public-header.desktop-only,
.acmo-header.desktop-only:not(.acm-gh),
.acm-mega-menu-layer,
.acm-mega-backdrop,
.mega-menu,
#discoverMenu,
#talentMenu,
#hiringMenu,
#requirementsMenu {
  /* Legacy shell replaced by .acm-gh — keep mobile-only leftovers inert on desktop */
}

@media (min-width: 1024px) {
  .mega-menu,
  .acm-mega-menu-layer,
  .acm-mega-backdrop {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Desktop Command Center                                                     */
/* -------------------------------------------------------------------------- */

.acm-gh--desktop {
  position: sticky;
  top: 0;
  z-index: var(--acm-z-header);
  padding: 12px 16px 0;
  background: transparent;
  pointer-events: none;
}

.acm-gh--desktop .acm-gh__shell {
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--acm-gh-radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--acm-gh-border);
  box-shadow: var(--acm-gh-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    box-shadow var(--acm-gh-duration) var(--acm-gh-ease),
    border-radius var(--acm-gh-duration) var(--acm-gh-ease),
    background var(--acm-gh-duration) ease;
}

.acm-gh--desktop.acm-gh--scrolled .acm-gh__shell {
  box-shadow: 0 6px 22px rgba(40, 35, 100, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.acm-gh__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 18px;
  transition: min-height var(--acm-gh-duration) var(--acm-gh-ease);
}

.acm-gh--desktop.acm-gh--scrolled .acm-gh__bar {
  min-height: 62px;
}

.acm-gh__brand {
  flex-shrink: 0;
}

.acm-gh__brand .header-logo img {
  height: 34px;
  width: auto;
  max-width: 148px;
  transition: height var(--acm-gh-duration) var(--acm-gh-ease);
}

.acm-gh--desktop.acm-gh--scrolled .acm-gh__brand .header-logo img {
  height: 30px;
}

.acm-gh__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.acm-gh__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--acm-gh-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--acm-gh-duration) ease, background var(--acm-gh-duration) ease;
}

.acm-gh__link:hover,
.acm-gh__link:focus-visible {
  color: var(--acm-gh-primary);
  background: rgba(99, 91, 255, 0.06);
  outline: none;
}

.acm-gh__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.22);
}

.acm-gh__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acm-gh-primary), var(--acm-gh-cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--acm-gh-duration) var(--acm-gh-ease);
  box-shadow: 0 0 12px rgba(99, 91, 255, 0.35);
}

.acm-gh__link:hover::after,
.acm-gh__link.is-active::after,
.acm-gh__link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.acm-gh__link.is-active,
.acm-gh__link[aria-expanded="true"] {
  color: var(--acm-gh-primary);
  background: rgba(99, 91, 255, 0.08);
}

.acm-gh__chevron {
  font-size: 11px;
  color: #94a3b8;
  transition: transform var(--acm-gh-duration) ease, color var(--acm-gh-duration) ease;
}

.acm-gh__link[aria-expanded="true"] .acm-gh__chevron {
  transform: rotate(180deg);
  color: var(--acm-gh-primary);
}

.acm-gh__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.acm-gh__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5146e5 0%, #635bff 45%, #7c5cff 100%);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(99, 91, 255, 0.28);
  transition:
    transform var(--acm-gh-duration) var(--acm-gh-ease),
    box-shadow var(--acm-gh-duration) ease;
}

.acm-gh__cta:hover,
.acm-gh__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(99, 91, 255, 0.36);
  outline: none;
}

.acm-gh__icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--acm-gh-border);
  background: #fff;
  color: var(--acm-gh-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color var(--acm-gh-duration) ease,
    border-color var(--acm-gh-duration) ease,
    box-shadow var(--acm-gh-duration) ease,
    background var(--acm-gh-duration) ease;
}

.acm-gh__icon-btn:hover,
.acm-gh__icon-btn:focus-visible,
.acm-gh__icon-btn[aria-expanded="true"] {
  color: var(--acm-gh-primary);
  border-color: rgba(99, 91, 255, 0.28);
  background: var(--acm-gh-lavender);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
  outline: none;
}

.acm-gh__action-slot .header-action,
.acm-gh__action-slot .header-profile,
.acm-gh__action-slot .acm-account-btn {
  min-width: 44px;
  min-height: 44px;
}

.acm-gh__action-slot .header-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: none;
  border: 1px solid var(--acm-gh-border);
  background: #fff;
}

.acm-gh__action-slot .header-action:hover {
  transform: none;
  color: var(--acm-gh-primary);
  border-color: rgba(99, 91, 255, 0.28);
  background: var(--acm-gh-lavender);
}

.acm-gh__action-slot .header-profile {
  border-radius: 999px;
  border: 1px solid var(--acm-gh-border);
  background: #fff;
  padding: 4px 10px 4px 4px;
  gap: 8px;
}

.acm-gh__action-slot .profile-info small {
  display: none;
}

.acm-gh__action-slot--guest .acm-account-btn {
  border-radius: 999px;
  border: 1px solid var(--acm-gh-border);
  background: #fff;
}

/* -------------------------------------------------------------------------- */
/* Command panels                                                             */
/* -------------------------------------------------------------------------- */

.acm-gh-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--acm-z-command) - 1);
  background:
    radial-gradient(circle at 18% 12%, rgba(99, 91, 255, 0.07), transparent 35%),
    radial-gradient(circle at 82% 8%, rgba(34, 211, 238, 0.05), transparent 32%),
    rgba(20, 18, 50, 0.035);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--acm-gh-duration) ease, visibility var(--acm-gh-duration) ease;
}

body.acm-gh-open .acm-gh-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.acm-gh-layer {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--acm-gh-panel-top);
  z-index: var(--acm-z-command);
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.acm-gh-panel {
  position: absolute;
  top: 10px;
  left: 50%;
  width: var(--acm-gh-width);
  max-width: 1180px;
  margin: 0;
  transform: translateX(-50%) translateY(-6px) scale(0.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--acm-gh-border);
  box-shadow: var(--acm-gh-panel-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-height: min(78vh, calc(100vh - var(--acm-gh-panel-top) - 24px));
  overflow: auto;
  transition:
    opacity var(--acm-gh-duration) var(--acm-gh-ease),
    transform var(--acm-gh-duration) var(--acm-gh-ease),
    visibility var(--acm-gh-duration) ease;
}

.acm-gh-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.acm-gh-panel[hidden] {
  display: none !important;
}

.acm-gh-panel__inner {
  padding: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 91, 255, 0.06), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.05), transparent 36%),
    transparent;
}

.acm-gh-panel__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c5cff;
}

.acm-gh-panel__title {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
  color: var(--acm-gh-navy);
}

.acm-gh-panel__col-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.acm-gh-panel__grid {
  display: grid;
  gap: 24px;
}

.acm-gh-panel__grid--2 {
  grid-template-columns: 1fr 1fr;
}

.acm-gh-panel__grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.acm-gh-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acm-gh-panel__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--acm-gh-navy);
  font-weight: 600;
  font-size: 14.5px;
  transition:
    background var(--acm-gh-duration) ease,
    color var(--acm-gh-duration) ease,
    transform var(--acm-gh-duration) var(--acm-gh-ease);
}

.acm-gh-panel__item i:first-child {
  color: var(--acm-gh-primary);
  transition: transform var(--acm-gh-duration) var(--acm-gh-ease);
}

.acm-gh-panel__arrow {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 12px;
  transition: transform var(--acm-gh-duration) var(--acm-gh-ease), color var(--acm-gh-duration) ease;
}

.acm-gh-panel__item:hover,
.acm-gh-panel__item:focus-visible {
  background: var(--acm-gh-lavender);
  color: var(--acm-gh-primary);
  outline: none;
}

.acm-gh-panel__item:hover i:first-child,
.acm-gh-panel__item:focus-visible i:first-child {
  transform: scale(1.02);
}

.acm-gh-panel__item:hover .acm-gh-panel__arrow,
.acm-gh-panel__item:focus-visible .acm-gh-panel__arrow {
  transform: translateX(2px);
  color: var(--acm-gh-primary);
}

.acm-gh-panel__item--muted {
  color: var(--acm-gh-primary);
  font-size: 13.5px;
}

.acm-gh-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(99, 91, 255, 0.08);
  flex-wrap: wrap;
}

.acm-gh-panel__foot p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.acm-gh-panel__foot-cta {
  color: var(--acm-gh-primary);
  font-weight: 700;
  text-decoration: none;
}

.acm-gh-panel__foot-cta:hover {
  text-decoration: underline;
}

.acm-gh-panel.is-open [data-acm-stagger] {
  animation: acmGhStagger 240ms var(--acm-gh-ease) both;
}

.acm-gh-panel.is-open [data-acm-stagger]:nth-child(1) { animation-delay: 20ms; }
.acm-gh-panel.is-open [data-acm-stagger]:nth-child(2) { animation-delay: 60ms; }
.acm-gh-panel.is-open [data-acm-stagger]:nth-child(3) { animation-delay: 100ms; }

@keyframes acmGhStagger {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search command */
.acm-gh-search-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.acm-gh-search-form__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  border: 1px solid var(--acm-gh-border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 35, 100, 0.06);
  margin-bottom: 22px;
}

.acm-gh-search-form__field i {
  color: #64748b;
}

.acm-gh-search-form__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--acm-gh-navy);
  outline: none;
}

.acm-gh-search-form__go {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--acm-gh-primary);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.acm-gh-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.acm-gh-quick__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--acm-gh-border);
  background: #fff;
  text-decoration: none;
  color: var(--acm-gh-navy);
  transition:
    transform var(--acm-gh-duration) var(--acm-gh-ease),
    box-shadow var(--acm-gh-duration) ease,
    border-color var(--acm-gh-duration) ease;
}

.acm-gh-quick__card i {
  color: var(--acm-gh-primary);
  font-size: 18px;
}

.acm-gh-quick__label {
  font-weight: 700;
  font-size: 14px;
}

.acm-gh-quick__desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}

.acm-gh-quick__card:hover,
.acm-gh-quick__card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(40, 35, 100, 0.1);
  border-color: rgba(99, 91, 255, 0.22);
  outline: none;
}

.acm-gh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acm-gh-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--acm-gh-border);
  background: var(--acm-gh-lavender);
  color: var(--acm-gh-navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--acm-gh-duration) ease, color var(--acm-gh-duration) ease;
}

.acm-gh-chip:hover,
.acm-gh-chip:focus-visible {
  background: rgba(99, 91, 255, 0.12);
  color: var(--acm-gh-primary);
  outline: none;
}

.acm-gh-panel__section {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* -------------------------------------------------------------------------- */
/* Mobile header + magnetic drawer                                            */
/* -------------------------------------------------------------------------- */

.acm-gh--mobile {
  position: sticky;
  top: 0;
  z-index: var(--acm-z-header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--acm-gh-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.acm-gh-mobile__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 12px;
  padding-top: max(6px, env(safe-area-inset-top, 0px));
}

.acm-gh-mobile__logo {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.acm-gh-mobile__logo .header-logo img {
  height: 28px;
  width: auto;
  max-width: 128px;
}

.acm-gh-mobile__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.acm-gh-mobile__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  color: var(--acm-gh-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.acm-gh-mobile__account {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--acm-gh-navy);
  cursor: pointer;
}

.acm-gh-mobile__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.acm-gh-mobile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acm-gh-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.acm-gh-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--acm-z-drawer) - 1);
  background: rgba(15, 15, 35, 0.04);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--acm-gh-ease), visibility 280ms ease;
}

body.acm-gh-drawer-open .acm-gh-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

.acm-gh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 400px);
  max-width: 100vw;
  z-index: var(--acm-z-drawer);
  background: #fff;
  box-shadow: -16px 0 48px rgba(40, 35, 100, 0.12);
  transform: translateX(100%);
  transition: transform 280ms var(--acm-gh-ease);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.acm-gh-drawer.is-open {
  transform: translateX(0);
}

.acm-gh-drawer__stack {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.acm-gh-drawer__panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 28px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 280ms var(--acm-gh-ease);
}

.acm-gh-drawer__panel.is-active {
  transform: translateX(0);
  position: relative;
}

.acm-gh-drawer__panel[hidden] {
  display: none !important;
}

.acm-gh-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  margin-bottom: 8px;
}

.acm-gh-drawer__brand .header-logo img {
  height: 28px;
  width: auto;
}

.acm-gh-drawer__close,
.acm-gh-drawer__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--acm-gh-navy);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 0 4px;
}

.acm-gh-drawer__close {
  width: 44px;
  justify-content: center;
  border-radius: 12px;
  background: #f8fafc;
}

.acm-gh-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(99, 91, 255, 0.06);
  background: transparent;
  color: var(--acm-gh-navy);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.acm-gh-drawer__row--sub {
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
}

.acm-gh-drawer__row--sub i:first-child {
  margin-right: 8px;
  color: var(--acm-gh-primary);
}

.acm-gh-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 16px 0 8px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5146e5 0%, #635bff 45%, #7c5cff 100%);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 24px rgba(99, 91, 255, 0.28);
}

.acm-gh-drawer__section {
  margin-top: 22px;
}

.acm-gh-drawer__section-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.acm-gh-drawer-open .mobile-bottom-nav {
  opacity: 0.35;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root {
    --acm-gh-width: min(calc(100vw - 24px), 1100px);
  }

  .acm-gh-quick {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .acm-gh-panel__grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .acm-gh-panel__grid--3 .acm-gh-panel__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023.98px) {
  .acm-gh--desktop,
  .acm-gh--desktop.desktop-only,
  .acm-gh-layer,
  .acm-gh-backdrop {
    display: none !important;
  }

  .acm-gh--mobile,
  .acm-gh--mobile.mobile-only {
    display: block !important;
  }

  body.acm-gh-open .acm-gh-backdrop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .acm-gh--desktop,
  .acm-gh--desktop.desktop-only {
    display: block !important;
  }

  .acm-gh--mobile,
  .acm-gh--mobile.mobile-only,
  .acm-gh-drawer,
  .acm-gh-drawer-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --acm-gh-duration: 1ms;
  }

  .acm-gh--desktop .acm-gh__shell,
  .acm-gh__bar,
  .acm-gh__link,
  .acm-gh__cta,
  .acm-gh-panel,
  .acm-gh-backdrop,
  .acm-gh-drawer,
  .acm-gh-drawer__panel,
  .acm-gh-drawer-backdrop,
  .acm-gh-panel.is-open [data-acm-stagger] {
    transition: none !important;
    animation: none !important;
  }

  .acm-gh-panel {
    transform: translateX(-50%);
  }

  .acm-gh-panel.is-open {
    transform: translateX(-50%);
  }

  .acm-gh-drawer {
    transition: none;
  }
}
