.site-header .nav:has(> .site-more) {
  position: relative;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
  gap: .15rem .35rem;
}
.site-more > summary {
  box-sizing: border-box;
  min-height: 2.75rem;
  width: max-content;
  padding: .4rem .65rem;
  border-radius: .5rem;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}
.site-more[open] > summary, .site-more:has([aria-current="page"]) > summary { background: var(--soft, #e5efef); }
.site-more > ul {
  box-sizing: border-box;
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  top: calc(100% + .2rem);
  width: min(21rem, 100%);
  max-height: min(55vh, 24rem);
  overflow: auto;
  margin: 0;
  padding: .35rem;
  list-style: none;
  border: 1px solid var(--line, #b9cccc);
  border-radius: .65rem;
  background: var(--paper, #fff);
  box-shadow: 0 .35rem 1rem #0c2d3930;
}
.site-header .site-more a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .3rem .65rem;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: .35rem;
}
.site-more :is(summary, a):focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (max-width: 860px) {
  .site-header .nav:has(> .site-more) { justify-content: flex-start; width: 100%; }
  .site-header .nav:has(> .site-more) > a { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 860px), (max-height: 500px) {
  /* An open menu and the next tab stop must be reachable by scrolling the page. */
  .site-header:has(.site-more[open]) { position: static; }
  .site-more[open] { flex-basis: 100%; min-width: 0; }
  .site-more[open] > ul {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-block-start: .2rem;
  }
}
