body.emv-shared-nav-active #masthead,
body.emv-shared-nav-active .site-header,
body.emv-shared-nav-active header.site-header,
body.emv-shared-nav-active .main-navigation {
  display: none !important;
}

#emv-shared-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1100px;
  margin: 10px auto 18px;
  padding: 0 20px;
  color: #263027;
}

.emv-shared-brand {
  color: #263027 !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none !important;
}

.emv-shared-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.emv-shared-nav-menu {
  position: relative;
}

.emv-shared-nav-menu > summary {
  list-style: none;
}

.emv-shared-nav-menu > summary::-webkit-details-marker {
  display: none;
}

.emv-shared-nav-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid rgba(38, 48, 39, 0.14);
  border-radius: 999px;
  background: #fffdf8;
  color: #263027 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

.emv-shared-nav-link:hover,
.emv-shared-nav-link:focus-visible {
  border-color: rgba(54, 111, 73, 0.55);
  color: #366f49 !important;
}

.emv-shared-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 190px;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(38, 48, 39, 0.14);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.emv-shared-submenu-link,
.emv-shared-submenu-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #263027 !important;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.emv-shared-submenu-link:hover,
.emv-shared-submenu-link:focus-visible,
.emv-shared-submenu-button:hover,
.emv-shared-submenu-button:focus-visible {
  background: #edf1e9;
  color: #366f49 !important;
}

:root[data-theme="dark"] #emv-shared-topbar {
  color: #edf2ea;
}

:root[data-theme="dark"] .emv-shared-brand {
  color: #edf2ea !important;
}

:root[data-theme="dark"] .emv-shared-nav-link,
:root[data-theme="dark"] .emv-shared-submenu {
  border-color: rgba(237, 242, 234, 0.16);
  background: #202720;
  color: #edf2ea !important;
}

:root[data-theme="dark"] .emv-shared-submenu-link,
:root[data-theme="dark"] .emv-shared-submenu-button {
  color: #edf2ea !important;
}

:root[data-theme="dark"] .emv-shared-submenu-link:hover,
:root[data-theme="dark"] .emv-shared-submenu-link:focus-visible,
:root[data-theme="dark"] .emv-shared-submenu-button:hover,
:root[data-theme="dark"] .emv-shared-submenu-button:focus-visible {
  background: #2d3b30;
}

@media (max-width: 760px) {
  #emv-shared-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 0 14px;
  }

  .emv-shared-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .emv-shared-nav-link {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 14px;
  }

  .emv-shared-submenu {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }
}
