/* The menus of the top navigation, shared by the documentation pages, the
   playground and the conformance runner. Specification, Conformance and Book
   each open a menu for Logic Script and Logical English, so the bar keeps
   one entry per topic. nav.js keeps an open menu on screen. */
.nav-menu {
  position: relative;
}
.nav-menu > summary,
.nav-menu[open] > summary {
  padding: 0;
  border: 0;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  list-style: none;
}
.nav-menu > summary::-webkit-details-marker {
  display: none;
}
.nav-menu > summary::after {
  content: "▾";
  margin-left: 2px;
  font-size: 0.8em;
}
.nav-menu:has([aria-current="page"]) > summary {
  text-decoration-thickness: 2px;
}
.nav-menu > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  padding: 10px 14px;
  border: 1px solid var(--border, var(--line, #d1d5db));
  border-radius: 8px;
  background: var(--panel, #fff);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}
