/* Masthead menus per identity (see _includes/masthead.html). */



:root[data-identity="math"] [data-identity-nav]:not([data-identity-nav="math"]) {
  display: none;
}

:root[data-identity="dev"] [data-identity-nav]:not([data-identity-nav="dev"]) {
  display: none;
}


/* Without JavaScript, show the default side's menu. */
:root:not([data-identity]) [data-identity-nav]:not([data-identity-nav="math"]) {
  display: none;
}

.greedy-nav .visible-links a[aria-current="page"]::before {
  transform: scaleX(1);
}

.visible-links .masthead__menu-item--switch {
  margin-inline-start: 0.5rem;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.15);
}

.masthead__menu-item--switch a {
  font-size: 0.85em;
  opacity: 0.75;
}

.masthead__menu-item--switch a:hover {
  opacity: 1;
}

.masthead__menu-item--switch span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Wordmark logo (site.logo): keep it legible but let it shrink on narrow screens. */
.site-logo {
  align-self: center;
}

.site-logo img {
  display: block;
  width: min(467px, 55vw);
  height: auto;
  max-height: none;
}
