html:has(.navigation-drawer[open]) { overflow: hidden; }
.navigation-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(22rem, calc(100% - 2.75rem));
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-inline-start: 1px solid var(--portal-border, var(--line, #e2d8cd));
  background: var(--portal-surface, var(--public-surface, var(--paper, #fbf8f2)));
  color: var(--portal-ink, var(--ink, #29221e));
}
.navigation-drawer[open] { display: block; }
.navigation-drawer::backdrop { background: #251b16a6; }
.navigation-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: .75rem;
}
.navigation-drawer-heading h2 { margin: 0; font-family: inherit; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.navigation-drawer-heading [data-close-navigation] {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--portal-border, var(--line, #e2d8cd));
  border-radius: .45rem;
  background: transparent;
  color: inherit;
  font-size: 1.55rem;
  line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .navigation-drawer[open] { animation: navigation-drawer-in 200ms ease-out; }
  @keyframes navigation-drawer-in { from { transform: translateX(100%); } }
}
