:root {
  --insites-header-height: 72px;
  --insites-header-bg: #f4f5f6;
  --insites-header-border: #d9dce0;
  --insites-header-text: #1f2328;
}

.site-header {
  display: none !important;
}

.insites-global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--insites-header-height);
  background: var(--insites-header-bg);
  border-bottom: 1px solid var(--insites-header-border);
}

.admin-bar .insites-global-header {
  top: 32px;
}

.insites-global-header-spacer {
  height: var(--insites-header-height);
}

.admin-bar .insites-global-header-spacer {
  height: calc(var(--insites-header-height) + 32px);
}

.insites-global-header__inner {
  height: 100%;
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: var(--insites-shell-rail-width, 352px) minmax(0, 1fr) var(--insites-shell-rail-width, 352px);
  align-items: center;
  column-gap: 20px;
}

.insites-global-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--insites-header-text);
  text-decoration: none;
  flex-shrink: 0;
  justify-self: center;
  padding: 0 1rem;
}

.insites-global-header__brand .custom-logo {
  width: auto;
  max-height: 42px;
}

.insites-global-header__brand-text {
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.insites-global-header__nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  justify-self: center;
  width: 100%;
  grid-column: 2;
}

.insites-global-header__menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.insites-global-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--insites-header-text);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

.insites-global-header__link:hover,
.insites-global-header__link:focus-visible,
.insites-global-header__link.is-active {
  background: rgba(22, 31, 48, 0.08);
  color: #111;
}

.insites-global-header__divider {
  width: 1px;
  height: 28px;
  background: #9ca3af;
  margin: 0 8px;
}

.insites-global-header__account {
  grid-column: 3;
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 7px;
  background: #0f1216;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
  justify-self: end;
}

.insites-global-header__account:hover,
.insites-global-header__account:focus-visible {
  background: #232a32;
  color: #fff;
}

.insites-global-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid #c7ccd1;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.insites-global-header__menu-toggle span[aria-hidden='true'] {
  width: 100%;
  height: 2px;
  background: #27303b;
}

@media (max-width: 980px) {
  :root {
    --insites-header-height: 64px;
  }

  .admin-bar .insites-global-header {
    top: 46px;
  }

  .admin-bar .insites-global-header-spacer {
    height: calc(var(--insites-header-height) + 46px);
  }

  .insites-global-header__inner {
    column-gap: 12px;
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .insites-global-header__menu-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .insites-global-header__nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    border: 1px solid #d5dbe2;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 18, 22, 0.14);
    background: #fff;
    padding: 10px;
    display: none;
  }

  .insites-global-header__nav.is-open {
    display: block;
  }

  .insites-global-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .insites-global-header__divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }

  .insites-global-header__link {
    justify-content: flex-start;
    font-size: 18px;
    min-height: 44px;
  }

  .insites-global-header__account {
    grid-column: 2;
    margin-right: 12px;
    justify-self: end;
    min-width: 96px;
    min-height: 38px;
    font-size: 16px;
  }

  .insites-global-header__brand .custom-logo {
    max-height: 36px;
  }

  .insites-global-header__brand-text {
    font-size: 24px;
  }
}
