.site-menu { display: none; }
.site-header summary::-webkit-details-marker { display: none; }
.site-header :is(a, summary):focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

@media (max-width: 1023px) {
  .site-desktop-nav { display: none; }
  .site-menu { display: block; }
  .site-menu > summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    list-style: none;
    cursor: pointer;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: white;
  }
  .site-menu-icon {
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
  }
  .site-menu > nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0;
    max-width: 18rem;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    margin-left: auto;
    padding: .5rem;
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    background: white;
    box-shadow: 0 8px 24px rgb(15 23 42 / 14%);
  }
  .site-menu nav a, .site-language a, .site-language > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .site-language > div { max-height: calc(100vh - 4.5rem); overflow-y: auto; }
}
