/* Profile section navigation: one mobile entry point and a compact desktop index. */
.profile-section-quick-nav {
  grid-column: 1 / -1 !important;
  direction: inherit;
}
.profile-section-nav-trigger,
.profile-section-nav-item,
.profile-section-nav-close {
  font-family: Assistant, Arial, sans-serif;
}
.profile-section-nav-trigger {
  display: none;
}
.profile-section-nav-desktop-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}
.profile-section-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(22, 53, 71, .15);
  border-radius: 10px;
  background: rgba(255, 253, 249, .78);
  color: #315563;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: start;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.profile-section-nav-item:hover,
.profile-section-nav-item:focus-visible {
  border-color: rgba(217, 120, 43, .68);
  background: #fff8ee;
  color: #163547;
  outline: 0;
  transform: translateY(-1px);
}
.profile-section-nav-item.is-current {
  border-color: #163547;
  background: #163547;
  color: #fffdf9;
}
.profile-section-nav-item .profile-section-quick-icon {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
}
.profile-section-nav-dialog {
  width: min(100%, 560px);
  max-width: none;
  max-height: min(82dvh, 680px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: transparent;
  color: #163547;
}
.profile-section-nav-dialog::backdrop {
  background: rgba(10, 28, 37, .42);
  backdrop-filter: blur(2px);
}
.profile-section-nav-sheet {
  max-height: min(82dvh, 680px);
  padding: 18px max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(22, 53, 71, .13);
  border-block-end: 0;
  border-radius: inherit;
  background: #fffdf9;
  box-shadow: 0 -18px 48px rgba(10, 28, 37, .18);
}
.profile-section-nav-dialog[open] .profile-section-nav-sheet {
  animation: profileSectionSheetIn .2s ease-out both;
}
.profile-section-nav-sheet > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 15px;
}
.profile-section-nav-sheet h3 {
  margin: 4px 0 0;
  color: #163547;
  font: 900 1.4rem/1.15 Rubik, Assistant, Arial, sans-serif;
}
.profile-section-nav-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(22, 53, 71, .16);
  border-radius: 50%;
  background: #f4f1eb;
  color: #163547;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.profile-section-nav-close:focus-visible {
  outline: 2px solid #d9782b;
  outline-offset: 2px;
}
.profile-section-nav-dialog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.profile-section-nav-dialog-list .profile-section-nav-item {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: .96rem;
}
@keyframes profileSectionSheetIn {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Match the profile loading state to the final navigation at every width. */
.site-skeleton-profile-quick-nav {
  position: sticky;
  top: calc(var(--site-header-height, 70px) + 8px);
  z-index: 8;
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(22, 53, 71, .11);
  border-radius: 14px;
  background: rgba(255, 253, 249, .92);
}
.site-skeleton-profile-quick-button {
  display: block;
  width: 92px;
  height: 38px;
  border: 1px solid rgba(22, 53, 71, .1);
  border-radius: 10px;
  background-image: linear-gradient(105deg, rgba(22, 53, 71, .08) 20%, rgba(255, 255, 255, .72) 44%, rgba(22, 53, 71, .08) 68%);
  background-size: 280% 100%;
  animation: siteSkeletonShimmer 1.15s linear infinite;
}

@media (min-width: 701px) {
  .site-skeleton-profile--private > .site-skeleton-profile-quick-nav {
    position: sticky !important;
    inset-block-start: calc(var(--site-header-height, 82px) + 8px) !important;
    top: calc(var(--site-header-height, 82px) + 8px) !important;
    z-index: 31 !important;
    justify-self: start;
    flex-wrap: nowrap;
    width: max-content;
    max-width: calc(100% - 32px);
    margin-inline: 16px auto;
    margin-block: 8px -80px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .42);
    background: rgba(18, 42, 53, .5);
    box-shadow: 0 10px 24px rgba(10, 28, 37, .18);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    backdrop-filter: blur(12px) saturate(1.08);
  }
  #profileContent > .profile-section-quick-nav {
    position: sticky !important;
    inset-block-start: calc(var(--site-header-height, 82px) + 8px) !important;
    inset-inline: auto !important;
    top: calc(var(--site-header-height, 82px) + 8px) !important;
    z-index: 31 !important;
    display: block !important;
    justify-self: start !important;
    width: max-content !important;
    max-width: calc(100% - 32px) !important;
    margin-inline: 16px auto !important;
    margin-block: 8px -80px !important;
    padding: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 14px;
    background: rgba(18, 42, 53, .5) !important;
    box-shadow: 0 10px 24px rgba(10, 28, 37, .18);
    -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
    backdrop-filter: blur(12px) saturate(1.08) !important;
    transform: none !important;
    scrollbar-width: none;
  }
  #profileContent > .profile-section-quick-nav::-webkit-scrollbar {
    display: none;
  }
  #profileContent > .profile-section-quick-nav .profile-section-nav-desktop-list {
    flex-wrap: nowrap;
  }
  #profileContent > .profile-section-quick-nav .profile-section-nav-item {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .12);
    color: #fffdf9;
  }
  #profileContent > .profile-section-quick-nav .profile-section-nav-item:is(:hover, :focus-visible),
  #profileContent > .profile-section-quick-nav .profile-section-nav-item.is-current {
    border-color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .25);
    color: #fff;
  }
  body.profile-page #profileCover > .profile-cover-actions {
    inset-block-start: 12px;
    inset-block-end: auto;
  }
  .profile-section-nav-dialog {
    display: none;
  }
}

@media (max-width: 700px) {
  .profile-section-quick-nav {
    position: fixed !important;
    inset-block-start: calc(var(--site-header-height, 70px) + 10px) !important;
    inset-inline-start: 10px !important;
    inset-inline-end: auto !important;
    z-index: 1200 !important;
    display: block !important;
    width: 45px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }
  .profile-section-nav-desktop-list {
    display: none;
  }
  .profile-section-nav-trigger {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    max-width: 45px;
    max-height: 45px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(18, 42, 53, .5);
    color: #fffdf9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
  }
  .profile-section-nav-trigger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .profile-section-nav-trigger .profile-section-quick-icon {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
  }
  .profile-section-nav-trigger:focus-visible {
    outline: 2px solid #d9782b;
    outline-offset: 3px;
  }
  .profile-section-nav-trigger:hover:not(:disabled) {
    border-color: #fff;
    background: rgba(43, 110, 143, .5);
    transform: translateY(-2px);
  }
  .profile-section-quick-nav.is-touch-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
  }
  .site-skeleton-profile-quick-nav {
    position: fixed !important;
    inset-block-start: calc(var(--site-header-height, 70px) + 10px) !important;
    inset-inline-start: 10px !important;
    inset-inline-end: auto !important;
    z-index: 8;
    display: block !important;
    width: 45px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .site-skeleton-profile-quick-button {
    display: none;
  }
  .site-skeleton-profile-quick-button:first-child {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-section-nav-dialog[open] .profile-section-nav-sheet,
  .site-skeleton-profile-quick-button {
    animation: none !important;
  }
  .profile-section-quick-nav,
  .profile-section-nav-trigger,
  .profile-section-nav-item {
    transition: none !important;
  }
}
