.profile-nav-arrow {
  display: none;
}

@media (max-width: 768px) {
  #block-nexus-profilenavigation,
  .profile-navigation-block {
    width: calc(100vw - 1.5rem);
    max-width: none;
    top: 0.5rem;
  }

  #block-nexus-profilenavigation.scrolled #profile-navigation,
  .profile-navigation-block.scrolled #profile-navigation {
    padding: 0.5rem 0.75rem 0.35rem;
    transform: translateY(0.5rem);
  }

  #block-nexus-profilenavigation::after,
  .profile-navigation-block::after {
    content: none;
    display: none;
  }

  #profile-navigation {
    max-width: none;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0;
  }

  .profile-navigation {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
  }

  #nav-logo {
    max-height: 34px;
    flex: 0 0 auto;
  }

  .profile-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #208194;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.82;
    cursor: pointer;
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .profile-nav-arrow::before {
    content: "\2039";
  }

  .profile-nav-arrow--next::before {
    content: "\203A";
  }

  .profile-nav-arrow--prev {
    justify-self: start;
    animation: profile-swipe-left 1.4s ease-in-out infinite;
  }

  .profile-nav-arrow--next {
    justify-self: end;
    animation: profile-swipe-right 1.4s ease-in-out infinite;
  }

  .profile-nav-arrow:focus-visible {
    outline: 2px solid #208194;
    outline-offset: 2px;
    border-radius: 999px;
  }

  .profile-navigation.is-at-start .profile-nav-arrow--prev,
  .profile-navigation.is-at-end .profile-nav-arrow--next {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
  }

  .nav__list {
    min-width: 0;
    margin: 0;
    padding: 0 0.25rem;
  }

  .nav__list::before,
  .nav__list::after {
    content: none;
    display: none;
  }

  .nav__list > li {
    display: none;
  }

  .nav__list > li:first-child,
  .nav__list > li.is-current {
    display: block;
  }

  .nav__list:has(> li.is-current) > li:first-child:not(.is-current) {
    display: none;
  }

  .nav__list > li > .nav__link {
    display: block;
    width: 100%;
    padding: 0.35rem 0.25rem;
    text-align: center;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #profile-stage {
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0;
    padding: 0 0 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: manipulation;
  }

  #profile-stage::-webkit-scrollbar {
    display: none;
  }

  #profile-stage > section {
    flex: 0 0 100%;
    width: 100%;
    min-inline-size: 0;
    box-sizing: border-box;
    opacity: 1;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #profile-stage > section:not([data-pbl-target="calendar"]) {
    padding: 1rem;
  }
}

@keyframes profile-swipe-left {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }

  50% {
    transform: translateX(-0.25rem);
    opacity: 1;
  }
}

@keyframes profile-swipe-right {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }

  50% {
    transform: translateX(0.25rem);
    opacity: 1;
  }
}
