/* Mobile nav sheet + backdrop (DS §7.1) — slides in from the right,
   toggled via aria-hidden by the mobile-nav Stimulus controller. */
@layer components {
  .pk-mobile-sheet {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 360px);
    background: var(--pk-white);
    z-index: 30;
    transform: translateX(100%);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: var(--pk-space-5);
    box-shadow: -4px 0 24px rgba(20, 24, 28, 0.08);
  }

  .pk-mobile-sheet[aria-hidden="false"] {
    transform: translateX(0);
  }

  .pk-mobile-sheet-close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pk-mobile-sheet-nav {
    display: flex;
    flex-direction: column;
    margin-top: var(--pk-space-4);
  }

  .pk-mobile-sheet-nav a {
    padding: var(--pk-space-4) 0;
    font-size: 18px;
    color: var(--pk-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--pk-mist);
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  .pk-mobile-sheet-footer {
    margin-top: auto;
    padding-top: var(--pk-space-5);
    border-top: 1px solid var(--pk-mist);
    display: flex;
    flex-direction: column;
    gap: var(--pk-space-4);
  }

  .pk-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 28, 0.45);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
  }

  .pk-mobile-backdrop[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
  }

  body.has-open-sheet {
    overflow: hidden;
  }
}
