.site-header {
	border-bottom: 1px solid var(--color-border);
	background: #ffffff;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(100% - 40px, var(--container-width));
	min-height: 72px;
	margin-inline: auto;
}

.site-branding {
	font-weight: 700;
	text-decoration: none;
}

.site-nav__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-nav__menu a {
	text-decoration: none;
}

.site-nav-toggle {
	display: none;
}

@media (max-width: 767px) {
	.site-header__inner {
		flex-wrap: wrap;
		padding-block: 14px;
	}

	.site-nav-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.site-nav {
		display: none;
		width: 100%;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__menu {
		display: grid;
		gap: 12px;
		padding-block: 12px;
	}
}

/* Mershad branded header. */
.top-shell {
  --mershad-primary: #122b59;
  --mershad-logo-dark: #8f8275;
  --mershad-logo-soft: #f1eee9;
  padding: 16px 20px 54px;
  background: #eef1f4;
}
.top-shell > .wide { max-width: 1880px; margin-inline: auto; }
.top-shell .site-header {
  position: sticky;
  top: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding: 0 34px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 35px rgba(8,26,56,.06);
  backdrop-filter: blur(18px);
}
.top-shell .brand { display: flex; align-items: center; min-width: max-content; }
.top-shell .brand-logo { display: block; width: 182px; max-height: 58px; height: auto; }
.top-shell .site-header > .brand {
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--mershad-primary);
  box-shadow: 0 12px 28px rgba(8,26,56,.1);
}
.top-shell .nav,
.top-shell .nav__menu { display: flex; align-items: center; justify-content: center; }
.top-shell .nav { flex: 1; gap: 30px; color: #18314f; font-size: 15px; font-weight: 700; }
.top-shell .header-beta {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(143, 130, 117, .38);
  border-radius: 999px;
  color: var(--mershad-logo-dark);
  background: var(--mershad-logo-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.top-shell .nav__menu { gap: 30px; padding: 0; margin: 0; list-style: none; }
.top-shell .nav__menu li { list-style: none; }
.top-shell .nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 31px 0;
  color: inherit;
  text-decoration: none;
  transition: color .22s ease;
}
.top-shell .nav a:hover,
.top-shell .nav a.active,
.top-shell .nav .current-menu-item > a { color: var(--mershad-logo-dark); }
.top-shell .header-left,
.top-shell .header-social { display: flex; align-items: center; }
.top-shell .header-left { gap: 22px; min-width: max-content; }
.top-shell .header-social { direction: ltr; gap: 8px; }
.top-shell .social-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18,43,89,.12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(8,26,56,.06);
  transition: .22s ease;
}
.top-shell .social-icon:hover { transform: translateY(-2px); background: var(--mershad-logo-soft); }
.top-shell .social-icon img { width: 18px; height: 18px; }
.top-shell .header-left .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--mershad-primary);
  border-radius: 999px;
  color: #fff;
  background: var(--mershad-primary);
  font-weight: 700;
  text-decoration: none;
  transition: .22s ease;
}
.top-shell .header-left .btn:hover,
.top-shell .header-left .btn.active {
  border-color: var(--mershad-logo-dark);
  background: var(--mershad-logo-dark);
}
.top-shell .menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(18,43,89,.14);
  border-radius: 14px;
  color: var(--mershad-primary);
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}
body.admin-bar .top-shell .site-header { top: 48px; }
@media (max-width: 1200px) {
  .top-shell .site-header > .nav,
  .top-shell .site-header > .header-left,
  .top-shell .site-header > .header-beta { display: none; }
  .top-shell .menu-toggle { display: grid; }
  .top-shell .site-header.is-menu-open { flex-wrap: wrap; align-items: flex-start; }
  .top-shell .site-header.is-menu-open > .nav {
    display: flex;
    flex: 0 0 100%;
    order: 4;
    align-items: stretch;
    padding: 10px 0 18px;
  }
  .top-shell .site-header.is-menu-open .nav,
  .top-shell .site-header.is-menu-open .nav__menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .top-shell .site-header.is-menu-open .nav a { width: 100%; padding: 10px 0; }
}
@media (max-width: 782px) {
  body.admin-bar .top-shell .site-header { top: 62px; }
}
@media (max-width: 760px) {
  .top-shell { padding: 10px 10px 40px; }
  .top-shell .site-header { top: 10px; min-height: 76px; padding: 0 16px; border-radius: 18px; }
  .top-shell .brand-logo { width: 148px; max-height: 48px; }
  .top-shell .site-header > .brand { padding: 7px 11px; }
}
.top-shell .nav-mobile-platform { display: none !important; }
@media (max-width: 1200px) {
  .top-shell .site-header.is-menu-open .nav .nav-mobile-platform {
    display: inline-flex !important;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--mershad-primary);
    background: var(--mershad-logo-soft);
  }
}
/* Releases dropdown in the primary navigation. */
.top-shell .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.top-shell .nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 27px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease;
}
.top-shell .nav-dropdown__toggle > svg {
  width: 12px;
  height: 8px;
  transition: transform .22s ease;
}
.top-shell .nav-dropdown__toggle:hover,
.top-shell .nav-dropdown__toggle:focus-visible,
.top-shell .nav-dropdown.is-open > .nav-dropdown__toggle {
  color: var(--mershad-logo-dark);
  outline: 0;
}
.top-shell .nav-dropdown.is-open > .nav-dropdown__toggle > svg { transform: rotate(180deg); }
.top-shell .nav-dropdown__menu[hidden] { display: none; }
.top-shell .nav-dropdown__menu {
  position: absolute;
  z-index: 100;
  top: calc(100% - 10px);
  right: 50%;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(18, 43, 89, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 60px rgba(7, 26, 56, .18);
  color: #122b59;
  transform: translateX(50%);
  animation: mershad-dropdown-in .18s ease-out both;
  backdrop-filter: blur(18px);
}
.top-shell .nav-dropdown__heading {
  display: grid;
  gap: 3px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid rgba(18, 43, 89, .08);
}
.top-shell .nav-dropdown__heading strong { color: #0b2025; font-size: 14px; }
.top-shell .nav-dropdown__heading span { color: #697783; font-size: 12px; font-weight: 500; }
.top-shell .nav .nav-dropdown__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #122b59;
  text-align: right;
  white-space: normal;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.top-shell .nav .nav-dropdown__item::after { display: none; }
.top-shell .nav .nav-dropdown__item:hover,
.top-shell .nav .nav-dropdown__item:focus-visible {
  border-color: rgba(181, 168, 155, .28);
  color: #122b59;
  background: #f5f2ee;
  outline: 0;
  transform: translateX(-3px);
}
.top-shell .nav-dropdown__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #8f8275;
  background: #f1eee9;
}
.top-shell .nav-dropdown__icon svg { width: 24px; height: 24px; }
.top-shell .nav-dropdown__copy { display: grid; gap: 3px; min-width: 0; }
.top-shell .nav-dropdown__copy strong { color: #122b59; font-size: 14px; line-height: 1.4; }
.top-shell .nav-dropdown__copy small { color: #697783; font-size: 11.5px; font-weight: 500; line-height: 1.55; }
.top-shell .nav-dropdown__arrow { color: #8f8275; font-size: 17px; transition: transform .2s ease; }
.top-shell .nav-dropdown__item:hover .nav-dropdown__arrow { transform: translate(-2px, -2px); }
@keyframes mershad-dropdown-in {
  from { opacity: 0; transform: translateX(50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(50%) translateY(0); }
}
@media (max-width: 1200px) {
  .top-shell .site-header.is-menu-open .nav-dropdown {
    display: grid;
    width: 100%;
    align-self: auto;
  }
  .top-shell .site-header.is-menu-open .nav-dropdown__toggle {
    width: 100%;
    min-height: 0;
    justify-content: space-between;
    padding: 10px 0;
  }
  .top-shell .site-header.is-menu-open .nav-dropdown__menu {
    position: static;
    width: 100%;
    margin: 2px 0 10px;
    box-sizing: border-box;
    box-shadow: 0 12px 30px rgba(7, 26, 56, .08);
    transform: none;
    animation-name: mershad-dropdown-in-mobile;
  }
  .top-shell .site-header.is-menu-open .nav .nav-dropdown__item { padding: 11px; }
}
@keyframes mershad-dropdown-in-mobile {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
