/* RuniverseHub · GLOBAL-BREADCRUMB-PARITY-1.0 */
.rh-v2-global-breadcrumbs {
  position: relative;
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible;
  white-space: normal;
}

.rh-v2-global-breadcrumbs__separator {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--rh-v2-text-subtle, #7f94a7);
}

.rh-v2-global-breadcrumbs__separator svg {
  width: 13px;
  height: 13px;
}

.rh-v2-global-breadcrumbs__menu {
  position: relative;
  flex: 0 0 auto;
}

.rh-v2-global-breadcrumbs__menu > summary {
  display: inline-flex;
  min-height: 32px;
  max-width: min(31vw, 320px);
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  list-style: none;
  white-space: nowrap;
}

.rh-v2-global-breadcrumbs__menu > summary::-webkit-details-marker {
  display: none;
}

.rh-v2-global-breadcrumbs__menu > summary > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rh-v2-global-breadcrumbs__menu > summary:hover,
.rh-v2-global-breadcrumbs__menu > summary:focus-visible,
.rh-v2-global-breadcrumbs__menu[open] > summary {
  border-color: color-mix(in srgb, var(--rh-v2-context-accent, #59c9ff) 32%, transparent);
  background: color-mix(in srgb, var(--rh-v2-context-accent, #59c9ff) 10%, transparent);
  color: var(--rh-v2-text-primary, #eff8ff);
  outline: none;
}

.rh-v2-global-breadcrumbs__menu > summary svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  transition: transform .16s ease;
}

.rh-v2-global-breadcrumbs__menu[open] > summary svg:last-child {
  transform: rotate(180deg);
}

.rh-v2-global-breadcrumbs__popover {
  position: absolute;
  z-index: 240;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: min(350px, calc(100vw - 28px));
  max-height: min(440px, 64vh);
  gap: 4px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--rh-v2-context-accent, #59c9ff) 24%, var(--rh-v2-border-subtle, rgba(137, 174, 204, .2)));
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 31, 45, .99), rgba(8, 20, 31, .99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
  backdrop-filter: blur(18px);
  overscroll-behavior: contain;
}

.rh-v2-global-breadcrumbs__popover a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--rh-v2-text-muted, #9eb2c3);
  text-decoration: none;
}

.rh-v2-global-breadcrumbs__popover a:hover,
.rh-v2-global-breadcrumbs__popover a:focus-visible,
.rh-v2-global-breadcrumbs__popover a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--rh-v2-context-accent, #59c9ff) 28%, transparent);
  background: color-mix(in srgb, var(--rh-v2-context-accent, #59c9ff) 10%, transparent);
  color: var(--rh-v2-text-primary, #eff8ff);
  outline: none;
}

.rh-v2-global-breadcrumbs__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--rh-v2-context-accent, #59c9ff) 12%, transparent);
  color: var(--rh-v2-context-accent, #59c9ff);
}

.rh-v2-global-breadcrumbs__icon svg {
  width: 15px;
  height: 15px;
}

.rh-v2-global-breadcrumbs__popover a > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rh-v2-global-breadcrumbs__popover strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-global-breadcrumbs__popover small {
  color: var(--rh-v2-text-subtle, #7f94a7);
  font-size: 9px;
  line-height: 1.35;
}

.rh-v2-global-breadcrumbs__current {
  display: inline-flex;
  min-width: 0;
  max-width: min(38vw, 360px);
  align-items: center;
  overflow: hidden;
  color: var(--rh-v2-text-muted, #9eb2c3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.rh-v2-global-breadcrumb-parity .rh-v2-organizer-main > .rh-v2-organizer-breadcrumbs,
html.rh-v2-global-breadcrumb-parity .rh-v2-athlete-main > .rh-v2-athlete-breadcrumbs,
html.rh-v2-global-breadcrumb-parity .rh-v2-athlete-shell > main > .rh-v2-athlete-breadcrumbs {
  display: none;
}

@media (max-width: 640px) {
  .rh-v2-context-bar__trail:has(.rh-v2-global-breadcrumbs) {
    align-items: center;
    overflow: visible;
  }

  .rh-v2-global-breadcrumbs {
    width: 100%;
    max-width: calc(100vw - 54px);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .rh-v2-global-breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .rh-v2-global-breadcrumbs > :not(:last-child) {
    display: inline-flex;
  }

  .rh-v2-global-breadcrumbs__menu > summary {
    max-width: min(56vw, 240px);
    min-height: 32px;
    padding: 5px 7px;
  }

  .rh-v2-global-breadcrumbs__current {
    max-width: 62vw;
    flex: 0 0 auto;
  }

  .rh-v2-global-breadcrumbs__popover {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: min(54vh, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-global-breadcrumbs__menu > summary svg {
    transition-duration: .01ms;
  }
}
