/* Just Branding - centred mobile burger and full-screen centred menu */

@media (max-width: 700px) {
  .ck-page .ck-navigation__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .ck-page .ck-navigation--has-logo .ck-navigation__logo {
    align-self: center;
    margin: 0;
  }

  .ck-page .ck-navigation__logo-img {
    height: 76px !important;
    width: auto !important;
    max-width: 100%;
  }

  .ck-page .ck-navigation__toggle {
    position: static;
    margin: 0 0 0 auto;
    transform: none;
    align-self: center;
  }

  /* Keep the X button above the overlay, fixed at the top centre. */
  .ck-page .ck-navigation.is-open .ck-navigation__toggle {
    position: fixed;
    top: 1rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10002;
  }

  .ck-page .ck-navigation.is-open .ck-navigation__list {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    margin: 0;
    padding: 5.5rem 1.5rem 2rem;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10001;
    overflow-y: auto;
  }

  .ck-page .ck-navigation.is-open .ck-navigation__item {
    display: block;
    width: 100%;
    max-width: 420px;
    text-align: center;
  }

  .ck-page .ck-navigation.is-open .ck-navigation__link {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    border-radius: 8px;
  }

  .ck-page .ck-navigation.is-open .ck-navigation__link:hover,
  .ck-page .ck-navigation.is-open .ck-navigation__link:focus,
  .ck-page .ck-navigation.is-open .ck-navigation__item.is-current .ck-navigation__link {
    background: var(--ck-bg-tint, #f2f2f2);
    border-bottom-color: transparent;
  }

  /* Burger becomes an X while the overlay is open. */
  .ck-page .ck-navigation.is-open .ck-navigation__toggle-bars {
    background: transparent;
  }

  .ck-page .ck-navigation.is-open .ck-navigation__toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  .ck-page .ck-navigation.is-open .ck-navigation__toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .ck-page .ck-navigation.is-open .ck-navigation__toggle-label {
    display: none;
  }

  body.ck-nav-open {
    overflow: hidden;
  }
}
