/* One restrained header/account typographic system across 5MH Live pages.
   Presentation only: Memberstack session, entitlements and menu actions are unchanged. */
nav[aria-label="Main navigation"] .nav-links > a,
nav[aria-label="Main navigation"] .links > a {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 550;
  letter-spacing: -.01em;
}
nav[aria-label="Main navigation"] .nav-links > a[aria-current="page"],
nav[aria-label="Main navigation"] .links > a[aria-current="page"] {
  font-weight: 650 !important;
}
.fmh-account-menu {
  position: relative;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  color: #2d145f !important;
  font-size: 13px !important;
  text-align: left;
}
.fmh-account-menu > summary {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 13px !important;
  border: 1px solid #e5ddec !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #2d145f !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.fmh-account-menu > summary::-webkit-details-marker { display: none; }
.fmh-account-menu > summary:hover,
.fmh-account-menu[open] > summary {
  background: #faf7fc !important;
  border-color: #d7c8e5 !important;
}
.fmh-account-menu > summary:focus-visible,
.fmh-account-dropdown a:focus-visible,
.fmh-account-dropdown button:focus-visible {
  outline: 2px solid #ec1f5b !important;
  outline-offset: 2px;
}
.fmh-account-menu #fmh-account-trigger-name {
  font-weight: 550 !important;
}
.fmh-account-menu .fmh-account-dropdown {
  width: min(290px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  padding: 14px !important;
  border: 1px solid #e6dfee !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(34, 16, 68, .13) !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px !important;
  font-family: inherit !important;
  color: #2d145f !important;
}
.fmh-account-menu .fmh-account-dropdown .member-identity,
.fmh-account-menu .fmh-account-dropdown .member-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px !important;
  text-align: left;
}
.fmh-account-menu .fmh-account-dropdown .member-label,
.fmh-account-menu .fmh-account-dropdown .member-label strong,
.fmh-account-menu .fmh-account-dropdown .member-name,
.fmh-account-menu .fmh-account-dropdown #assistant-member-name,
.fmh-account-menu .fmh-account-dropdown #tools-member-email {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #2d145f !important;
  overflow-wrap: anywhere;
}
.fmh-account-menu .fmh-account-dropdown .member-plan {
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #68587e !important;
  white-space: normal;
}
.fmh-account-menu .fmh-account-dropdown a,
.fmh-account-menu .fmh-account-dropdown button {
  display: block !important;
  width: 100% !important;
  min-height: 36px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  text-align: left !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #2d145f !important;
  cursor: pointer;
}
/* Beat legacy ID-specific bold rules without changing account actions. */
.fmh-account-menu .fmh-account-dropdown #fmh-logout,
.fmh-account-menu .fmh-account-dropdown #assistant-logout,
.fmh-account-menu .fmh-account-dropdown .fmh-manage-link {
  padding: 9px 10px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
.fmh-account-menu .fmh-account-dropdown a:hover,
.fmh-account-menu .fmh-account-dropdown button:hover {
  background: #f7f2fb !important;
}
.fmh-account-menu .fmh-account-dropdown [hidden] { display: none !important; }
.fmh-account-menu .fmh-account-dropdown hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #eee8f2;
  margin: 4px 0;
}

/* Progressive enhancement: original navigation remains usable if JS is unavailable. */
.fmh-navigation-toggle[hidden] { display: none !important; }
.fmh-navigation-toggle {
  min-width: 48px; min-height: 44px; padding: 8px 12px;
  border: 1px solid #d7c8e5; border-radius: 8px;
  background: #fff; color: #2d145f; font: 600 14px system-ui;
  cursor: pointer;
}
.fmh-navigation-toggle:focus-visible { outline: 2px solid #ec1f5b; outline-offset: 3px; }
@media (max-width: 900px) {
  .fmh-navigation-toggle[hidden] { display: inline-flex !important; align-items: center; justify-content: center; }
  nav[aria-label="Main navigation"].fmh-responsive-navigation {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important;
  }
  .fmh-responsive-navigation > .brand { flex: 1 1 140px; min-width: 0; }
  .fmh-responsive-navigation .brand-image { width: 156px !important; max-width: 100%; height: auto !important; }
  /* Let the account wrapper reserve the full summary width; its legacy cap
     otherwise makes the summary overflow left over the navigation toggle. */
  .fmh-responsive-navigation > .account > .member-details { max-width: none !important; }
  .fmh-responsive-navigation > .account,
  .fmh-responsive-navigation > .site-account { max-width: 100%; margin-left: auto; }
  .fmh-responsive-navigation > .nav-links,
  .fmh-responsive-navigation > .links,
  .fmh-responsive-navigation > .site-links {
    order: 5; width: 100%; flex: 0 0 100%; display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px !important;
    padding: 8px 0 !important; margin: 0 !important;
  }
  .fmh-responsive-navigation:has(.fmh-navigation-toggle[aria-expanded="false"]) > .nav-links,
  .fmh-responsive-navigation:has(.fmh-navigation-toggle[aria-expanded="false"]) > .links,
  .fmh-responsive-navigation:has(.fmh-navigation-toggle[aria-expanded="false"]) > .site-links { display: none !important; }
  .fmh-responsive-navigation > :is(.nav-links,.links,.site-links) > a {
    min-height: 44px; box-sizing: border-box; display: flex; align-items: center;
    padding: 10px 8px !important; white-space: normal !important;
  }
}
