.mast-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .875rem;
  max-width: 100%;
  margin-inline-start: auto;
}
.site-menu { display: none; }
@media (max-width: 700px) {
  .site-menu {
    position: relative;
    z-index: 3;
    display: block;
    color: var(--ink);
    font-size: .94rem;
    line-height: 1.45;
  }
  .site-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .4rem .25rem .4rem .45rem;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 620;
    letter-spacing: normal;
    list-style: none;
    cursor: pointer;
  }
  .site-menu > summary::-webkit-details-marker { display: none; }
  .site-menu > summary:hover > span:first-child { text-decoration: underline; text-underline-offset: .24em; }
  .menu-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 13px;
  }
  .menu-icon::before, .menu-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    inset-inline-start: 0;
    border-block-start: 1.5px solid currentColor;
  }
  .menu-icon::before { top: 3px; }
  .menu-icon::after { bottom: 3px; }
  .site-menu[open] .menu-icon::before { top: 6px; transform: rotate(45deg); }
  .site-menu[open] .menu-icon::after { bottom: auto; top: 6px; transform: rotate(-45deg); }
  .menu-panel {
    position: absolute;
    top: calc(100% + .375rem);
    inset-inline-end: 0;
    width: min(20rem, calc(100vw - 2 * var(--gutter)));
    padding: .375rem 1.125rem;
    border: 1px solid #a6b3a5;
    background: var(--paper);
    box-shadow: 0 8px 20px #142b2412;
  }
  .menu-panel ul { margin: 0; padding: 0; list-style: none; }
  .menu-panel li + li { border-top: 1px solid #c5ccbf; }
  .menu-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-block: .6rem;
    color: inherit;
    font-weight: 550;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .menu-panel a:hover, .menu-panel a:focus-visible { text-decoration: underline; text-underline-offset: .22em; }
  .menu-panel a:active { color: #365b46; }
}

.primary-nav a[aria-current=page], .menu-panel a[aria-current=page] {
  text-decoration: underline;
  text-underline-offset: .28em;
  text-decoration-thickness: 2px;
}
