.pagehead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.pagehead__bar {
  min-height: var(--header-h);
  padding-block: .75rem;
}

.brand-mark__icon {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-mark__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: var(--text);
}

.brand-mark__word em {
  font-style: normal;
  color: var(--brass);
}

.pagehead__nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.pagehead__nav a {
  position: relative;
  padding-block: .35rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
}

.pagehead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brass);
  transition: right .2s ease;
}

.pagehead__nav a:hover::after,
.pagehead__nav a:focus-visible::after,
.pagehead__nav .is-current::after {
  right: 0;
}

.pagehead__nav li {
  position: relative;
}

.pagehead__nav .submenu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 15rem;
  margin-top: .5rem;
  padding: .5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.pagehead__nav li:hover .submenu,
.pagehead__nav li:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagehead__nav .submenu a {
  display: block;
  padding: .55rem .6rem;
  font-size: .9rem;
}

.pagehead__nav .submenu a:hover,
.pagehead__nav .submenu a:focus-visible {
  background: var(--panel-hover);
}

.pagehead__nav .submenu a::after {
  display: none;
}

.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 22px;
}

.menu-toggle span:nth-child(3) {
  top: 29px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.drawer-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  padding: 5.5rem 1.75rem 2.5rem;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  overflow-y: auto;
}

.drawer-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.drawer-nav__list a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
}

.drawer-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--line);
}

.drawer-nav__sub a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--muted);
}

.drawer-nav__foot {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .drawer-nav {
    display: none;
  }
}
