@media (max-width: 760px) {
  header { position: relative; z-index: 30; }
  header > nav.wrap { position: relative; }
  header > nav.wrap > details.mobile-menu { position: static; flex: 0 0 44px; }
  .mobile-menu summary {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; color: var(--ink);
    border-radius: 8px;
  }
  .mobile-menu summary:focus-visible { outline: 3px solid #168bd2; }
  .mobile-menu[open] summary { background: #e7f0ed; }
  header > nav.wrap > details.mobile-menu > nav {
    position: absolute; left: 0; right: auto; top: 100%;
    width: min(90vw, 360px); max-width: 100%; min-width: 0; height: auto; margin: 0; padding: 12px;
    display: flex; flex-direction: column; align-items: stretch;
    gap: 4px; background: #fff; opacity: 1; z-index: 31;
    max-height: 70vh; max-height: 70dvh; overflow-y: auto; box-sizing: border-box;
    border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 28px #063e4233;
  }
  header > nav.wrap > details.mobile-menu:not([open]) > nav { display: none; }
  header > nav.wrap > details.mobile-menu > nav > a {
    display: block; width: 100%; padding: 12px 16px;
    font-size: 17px; line-height: 1.5; white-space: nowrap;
    color: var(--ink); border-radius: 6px;
  }
  .mobile-menu nav a:hover, .mobile-menu nav a:focus-visible {
    background: #e7f0ed;
  }
  header > nav.wrap > .brand { min-width: 0; }
  header > nav.wrap > .links { gap: 0; }
}
@media (max-width: 380px) {
  header > nav.wrap { gap: 6px; }
  header .brand { font-size: 18px; letter-spacing: -1px; }
  header .brand-logo { width: 32px; height: 32px; }
  header .links .button { max-width: 105px; padding: 8px; font-size: 12px; }
}
