/* The docs-site menu after the Nominal logo (templates/nominal/sites.html, nominal-sites.js), on the
   docs and the hub's landing pages alike. Its name is set like the logo's words: Geist Mono at the
   cap height of the 18px logo, one space after NOMINAL. Each page sets the --nominal-sites-* colours
   from its palette; the defaults are the landing page's dark ones. */
.nominal-sites {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 9px;
}
.nominal-sites-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--nominal-sites-font, "Geist Mono", ui-monospace, monospace);
  font-size: 21.68px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nominal-sites-text, #a3a3a3);
}
.nominal-sites-button:hover,
.nominal-sites-button[aria-expanded="true"] {
  color: var(--nominal-sites-hover, #ffffff);
}
.nominal-sites-button:focus-visible {
  outline: 2px solid var(--nominal-sites-hover, #ffffff);
  outline-offset: 3px;
}
.nominal-sites-chevron {
  transition: transform 0.15s;
}
.nominal-sites-button[aria-expanded="true"] .nominal-sites-chevron {
  transform: rotate(180deg);
}
.nominal-sites-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  z-index: 30;
  min-width: 15rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--nominal-sites-menu-bg, #1f1f1f);
  border: 1px solid var(--nominal-sites-menu-border, rgba(255, 255, 255, 0.08));
  box-shadow: var(--nominal-sites-shadow, 0 12px 32px rgba(0, 0, 0, 0.4));
}
.nominal-sites-menu[hidden] {
  display: none;
}
.nominal-sites-menu li {
  margin: 0;
}
.nominal-sites-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-family: var(--nominal-sites-font, "Geist Mono", ui-monospace, monospace);
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--nominal-sites-menu-text, #d4d4d4);
  text-decoration: none;
}
.nominal-sites-menu a:hover,
.nominal-sites-menu a:focus-visible {
  background: var(--nominal-sites-menu-hover-bg, rgba(255, 255, 255, 0.06));
  color: var(--nominal-sites-hover, #ffffff);
}
.nominal-sites-menu a[aria-current] {
  color: var(--nominal-sites-hover, #ffffff);
}
/* On narrow screens the menu keeps only its chevron, beside the logo. */
@media (max-width: 599px) {
  .nominal-sites-button span {
    display: none;
  }
}
