:root {
  --bd-story-nav-bg: rgba(12, 11, 9, 0.94);
  --bd-story-nav-border: rgba(213, 176, 101, 0.58);
  --bd-story-nav-gold: #dfbd78;
  --bd-story-nav-ink: #fffaf0;
  --bd-story-nav-muted: rgba(255, 250, 240, 0.68);
}

body[data-collection-story-nav-enabled] {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

.collection-story-nav,
.collection-story-nav * {
  box-sizing: border-box;
}

.collection-story-nav {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  width: min(680px, calc(100% - 24px));
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr);
  align-items: stretch;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid var(--bd-story-nav-border);
  border-radius: 999px;
  background: var(--bd-story-nav-bg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  color: var(--bd-story-nav-ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  isolation: isolate;
}

.collection-story-nav a {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  padding: 10px 14px;
  color: var(--bd-story-nav-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: rgba(223, 189, 120, 0.2);
  touch-action: manipulation;
}

.collection-story-nav a:hover {
  background: rgba(223, 189, 120, 0.12);
  color: #fff;
}

.collection-story-nav a:focus-visible {
  outline: 3px solid var(--bd-story-nav-gold);
  outline-offset: -4px;
}

.collection-story-nav__home {
  color: var(--bd-story-nav-gold) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px !important;
  letter-spacing: 0.035em !important;
  text-transform: none !important;
}

.collection-story-nav__separator {
  align-self: center;
  color: var(--bd-story-nav-muted);
  font: 400 16px/1 Georgia, "Times New Roman", serif;
  pointer-events: none;
}

@media (max-width: 520px) {
  body[data-collection-story-nav-enabled] {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .collection-story-nav {
    bottom: max(7px, env(safe-area-inset-bottom, 0px));
    width: calc(100% - 14px);
    min-height: 50px;
  }

  .collection-story-nav a {
    min-height: 48px;
    gap: 0.3em;
    padding: 8px 7px;
    font-size: 11px;
    letter-spacing: 0.045em;
  }

  .collection-story-nav__home {
    font-size: 12px !important;
    letter-spacing: 0 !important;
  }

  .collection-story-nav__separator {
    font-size: 13px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  body[data-collection-story-nav-enabled] {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .collection-story-nav {
    bottom: max(5px, env(safe-area-inset-bottom, 0px));
    min-height: 46px;
  }

  .collection-story-nav a {
    min-height: 44px;
    padding-block: 6px;
  }
}

@media print {
  body[data-collection-story-nav-enabled] {
    padding-bottom: 0 !important;
  }

  .collection-story-nav {
    display: none !important;
  }
}
