:host {
  display: block;
  width: 100%;
}

.menu-page-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 6.25rem);
  width: 100%;

  &__sidebar,
  &__content {
    min-width: 0;
  }

  &__sidebar {
    display: flex;
    flex-direction: column;
  }

  &__title {
    margin: 0 0 0.75rem;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
  }

  &__divider {
    height: 1px;
    margin-bottom: 1.25rem;
    background: #dedede;
  }

  &__nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  &__link {
    color: #888888;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color 150ms ease;

    &:hover,
    &:focus-visible {
      color: #5a5a5a;
    }

    &:focus-visible {
      border-radius: 2px;
      outline: 2px solid var(--color-primary);
      outline-offset: 3px;
    }

    &--active {
      color: var(--color-primary);
      font-weight: 600;
    }
  }
}

@media (max-width: 767.98px) {
  .menu-page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;

    &__title {
      text-align: center;
    }

    &__nav {
      flex-flow: row wrap;
      justify-content: center;
      gap: 0.75rem 1.25rem;
    }

    &__content {
      width: 100%;
    }
  }
}
