/* Shared by the corporate header and the navigation on assessment and account pages. */
#menu {
  --menu-surface: #f6f8f4;
  --menu-ink: #304a3a;
  --menu-note: #536758;
  --menu-wash: #e8eee7;
  --menu-line: #d7e0d6;
}
.mast #menu {color: #d6dfd8}
#menu .dropdown {position: relative}
#menu .dropdown .nav-trigger {
  display: block; border: 0; background: transparent; color: inherit; font-family: inherit;
  line-height: inherit; text-align: left; cursor: pointer; padding-inline: 0;
}
.mast #menu > a:hover, #menu .dropdown .nav-trigger:hover, #menu .nav-trigger[aria-expanded="true"],
#menu .section-current {color: #e4efde}
#menu .dropdown .nav-trigger:focus-visible {outline: 3px solid #2180dd; outline-offset: 4px}
#menu .dropdown .nav-trigger::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border: solid currentColor; border-width: 0 1px 1px 0; opacity: .8;
  transform: translateY(-3px) rotate(45deg);
}
#menu .nav-trigger[aria-expanded="true"]::after {transform: rotate(225deg)}
#menu .drop-panel {
  position: absolute; z-index: 4; top: 100%; left: var(--panel-left, -10px);
  width: min(20rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 5rem);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 7px; border: 1px solid var(--menu-line); border-radius: 10px;
  background: var(--menu-surface); color: var(--menu-ink); text-align: left;
  box-shadow: 0 3px 8px #24392d0d, 0 12px 26px #19291e1a;
}
#menu [hidden] {display: none !important}
#menu .drop-panel a {
  display: block; min-width: 0; padding: 9px 12px; border-radius: 5px;
  color: var(--menu-ink); font-size: .96rem; font-weight: 400; line-height: 1.28;
  text-decoration: none; white-space: normal;
}
#menu .drop-panel small {
  display: block; color: var(--menu-note); margin-top: 3px;
  font-size: .81rem; line-height: 1.38; font-weight: 400;
}
#menu .drop-panel a:is(:hover, :focus-visible, [aria-current="page"]) {background: var(--menu-wash)}
#menu .drop-panel a:focus-visible {outline: 2px solid #456a51; outline-offset: -2px}
#menu .drop-panel a[aria-current="page"] span {text-decoration: underline; text-underline-offset: 3px}
#menu .services-menu {
  width: min(42rem, calc(100vw - 1.5rem));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px;
}
#menu .services-menu > a:first-child {
  grid-column: 1 / -1; margin-bottom: 3px; padding-bottom: 11px;
  border-bottom: 1px solid var(--menu-line);
}
#menu.site-nav .dropdown > .nav-trigger {
  display: block; padding: .7rem .85rem; color: #d6dfd8;
  font-size: .875rem; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.site-nav .menu-directory {display: none}
.site-nav .nav-links .drop-panel a::after {content: none}

@media (max-width: 830px) {
  .mast #menu .nav-trigger {width: 100%}
  .mast #menu .drop-panel {
    position: static; width: 100%; max-height: none; margin: 0 0 8px;
    grid-template-columns: 1fr; box-shadow: none;
  }
}
@media (max-width: 768px) {
  #menu.site-nav .nav-links:not([hidden]) {display: flex; max-height: calc(100dvh - 64px); overflow-y: auto}
  .site-nav .nav-toggle[hidden] + .menu-directory {display: block; color: white}
  .site-nav .nav-item > .dropdown {width: 100%}
  #menu.site-nav .dropdown > .nav-trigger {width: 100%; padding: .75rem .5rem}
  .site-nav#menu .drop-panel {
    position: static; width: 100%; max-height: none; margin-bottom: 5px;
    grid-template-columns: 1fr; box-shadow: none;
  }
}
