/* SwankageTCG Header Navigation — canonical main + sticky nav styling
   v691: renders the main Mini-Swankage above legacy clipping via a body-level visual portal; keeps v689 centering, v680 divider/spacing, and v686 indicator geometry.
   The moving mouse/active indicator keeps its existing animation/geometry; only its visible shape is adjusted here. */

:root {
  --sw-header-nav-accent: #ff6b18;
  --sw-header-nav-divider: #413b44;
}

/* v686: keep the v680 indicator behavior, but make the visible bar a crisp
   rectangle and trim only 3px from its left edge. The right edge remains
   exactly where the existing nav script places it. */
.sw-v653-nav-row.is-primary .sw-v653-nav-indicator,
.sw-v653-nav-row.is-sticky-copy .sw-v653-nav-indicator {
  border-radius: 0 !important;
  clip-path: inset(0 0 0 3px);
}

/* Main and sticky copies share one layout/typography contract. */
.sw-v653-nav-row.is-primary .sw-v653-nav-links,
.sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links {
  align-items: stretch !important;
  font-family: 'Tahoma',Arial,sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .012em;
}

.sw-v653-nav-row.is-primary .sw-v653-nav-links > a,
.sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links > a {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: 'Tahoma',Arial,sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .012em;
  padding-inline: 14px !important;
  position: relative;

  /* Keep navigation sections clean/flat. Theme color is reserved for the
     existing moving indicator and other header accents. */
  background: transparent !important;
}

/* 1px dividers between navigation sections. Only the center portion stays
   gray; the top and bottom dissolve into the nav background. */
.sw-v653-nav-row.is-primary .sw-v653-nav-links > a + a,
.sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links > a + a {
  border-left: 0 !important;
}

.sw-v653-nav-row.is-primary .sw-v653-nav-links > a + a::before,
.sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links > a + a::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--sw-header-nav-divider) 34%,
    var(--sw-header-nav-divider) 66%,
    transparent 100%
  );
}

/* Give the Home icon the same breathing room as the text-only links. */
.sw-v653-nav-links > a > i + span {
  margin-left: 7px;
}

/* Keep Home icon/text vertically aligned with text-only sections. */
.sw-v653-nav-links > a > i,
.sw-v653-nav-links > a > span {
  position: relative;
  z-index: 1;
}

/* Sticky theme name should look exactly like the primary theme label. */
.sw-v653-nav-row.is-primary .sw-v653-flavor-label,
.sw-v653-nav-row.is-sticky-copy .sw-v653-flavor-label {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  font-family: 'Tahoma',Arial,sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Legacy nav fallback, if an older template is ever rendered. */
.sw-nav-links,
.sw-sticky-links,
.sw-nav-links > a,
.sw-sticky-links > a {
  font-family: 'Tahoma',Arial,sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .012em;
}

/* -------------------------------------------------------------------------
   v688 — Become A Vendor conversion CTA
   The catalog remains a clean navigation group. Vendor recruitment gets its
   own branded action between Graded Cards and the theme selector.
   ------------------------------------------------------------------------- */
.sw-v688-vendor-cta {
  --sw-vendor-cta-h: 38px;
  flex: 0 0 auto;
  min-width: 174px;
  height: var(--sw-vendor-cta-h);
  align-self: center !important;
  margin-left: 22px;
  padding: 0 12px 0 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none !important;
  color: #f4f5f7 !important;
  font-family: 'Tahoma',Arial,sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .012em;
  background: rgba(13, 18, 22, .92);
  border: 1px solid color-mix(in srgb, var(--sw-header-nav-accent) 72%, transparent);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 0 0 transparent;
  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
  isolation: isolate;
}

.sw-v688-vendor-cta .sw-v688-vendor-copy {
  position: relative;
  z-index: 2;
  color: #f4f5f7;
}

.sw-v688-vendor-cta .sw-v688-vendor-copy strong {
  color: var(--sw-header-nav-accent);
  font-weight: 900;
}

.sw-v688-vendor-cta .sw-v688-vendor-arrow {
  position: relative;
  z-index: 2;
  margin-left: 1px;
  color: var(--sw-header-nav-accent);
  font-size: 9px;
  transition: transform .18s ease;
}

.sw-v688-vendor-sprite-wrap {
  position: absolute;
  z-index: 3;
  left: 2px;
  bottom: -2px;
  width: 50px;
  height: 57px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.65));
}

.sw-v688-vendor-sprite {
  display: block;
  width: auto;
  height: 57px;
  max-width: none;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform-origin: 50% 100%;
  transition: transform .18s ease, filter .18s ease;
}

.sw-v688-vendor-cta:hover,
.sw-v688-vendor-cta:focus-visible {
  color: #fff !important;
  border-color: var(--sw-header-nav-accent);
  background: color-mix(in srgb, var(--sw-header-nav-accent) 8%, #0d1216);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--sw-header-nav-accent) 18%, transparent),
    0 0 16px color-mix(in srgb, var(--sw-header-nav-accent) 16%, transparent);
  transform: translateY(-1px);
}

.sw-v688-vendor-cta:hover .sw-v688-vendor-sprite,
.sw-v688-vendor-cta:focus-visible .sw-v688-vendor-sprite {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.07);
}

.sw-v688-vendor-cta:hover .sw-v688-vendor-arrow,
.sw-v688-vendor-cta:focus-visible .sw-v688-vendor-arrow {
  transform: translateX(2px);
}

/* Give the vendor CTA a deliberate visual break before the theme controls.
   It uses the same center-visible / end-faded divider language as the nav. */
.sw-v688-vendor-cta + .sw-v653-flavor {
  position: relative;
  margin-left: 20px !important;
  padding-left: 20px !important;
}

.sw-v688-vendor-cta + .sw-v653-flavor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--sw-header-nav-divider) 30%,
    var(--sw-header-nav-divider) 70%,
    transparent 100%
  );
}

/* Sticky copy: preserve the mascot idea, but compress it enough that the
   utility header still feels like a sticky bar rather than a second masthead. */
.sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-cta {
  --sw-vendor-cta-h: 32px;
  align-self: center !important;
  min-width: 154px;
  height: 32px;
  margin-left: 15px;
  padding-left: 39px;
  padding-right: 9px;
  gap: 6px;
  border-radius: 7px;
}

.sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-sprite-wrap {
  left: 3px;
  bottom: -1px;
  width: 36px;
  height: 37px;
}

.sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-sprite {
  height: 37px;
}

.sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-arrow {
  font-size: 8px;
}

.sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-cta + .sw-v653-flavor {
  margin-left: 14px !important;
  padding-left: 14px !important;
}


/* v690 — allow Mini-Swankage to break above the MAIN nav button without
   being clipped at the nav row's top edge. Sticky nav intentionally keeps
   its compact contained treatment. */
#header .sw-v653-main-menu,
#header .sw-v653-nav-row.is-primary,
#header .sw-v653-nav-row.is-primary > .container,
#header .sw-v653-nav-row.is-primary .sw-v653-nav-layout {
  overflow: visible !important;
}

#header .sw-v653-nav-row.is-primary {
  position: relative;
  z-index: 40;
}

#header .sw-v653-nav-row.is-primary .sw-v688-vendor-cta {
  overflow: visible !important;
  z-index: 50;
}

#header .sw-v653-nav-row.is-primary .sw-v688-vendor-sprite-wrap {
  z-index: 60;
}

/* If the header becomes too tight, keep the call to action useful without
   letting it crush the theme controls. */
@media (max-width: 1320px) {
  .sw-v688-vendor-cta {
    min-width: 158px;
    margin-left: 14px;
    padding-right: 9px;
  }
  .sw-v688-vendor-cta + .sw-v653-flavor {
    margin-left: 14px !important;
    padding-left: 14px !important;
  }
}


/* v691 — guaranteed unclipped PRIMARY Mini-Swankage.
   The live site's legacy header clips above the nav boundary at an ancestor
   outside this partial. Once JS creates the body-level visual portal, hide
   only the primary inline copy; sticky keeps its compact inline mascot. */
.sw-v653-nav-row.is-primary .sw-v688-vendor-cta.sw-v691-has-sprite-portal .sw-v688-vendor-sprite-wrap {
  visibility: hidden !important;
}

.sw-v691-vendor-sprite-portal {
  position: absolute;
  z-index: 75;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.65));
}

.sw-v691-vendor-sprite-portal-img {
  display: block;
  width: auto;
  height: 57px;
  max-width: none;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform-origin: 50% 100%;
  transition: transform .18s ease, filter .18s ease;
}

.sw-v691-vendor-sprite-portal.is-hot .sw-v691-vendor-sprite-portal-img {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.07);
}

/* -------------------------------------------------------------------------
   v694 — lock the theme selector footprint so the Vendor CTA never drifts,
   and tighten the header progressively on narrower widths.
   ------------------------------------------------------------------------- */
.sw-v653-nav-row.is-primary .sw-v653-nav-layout,
.sw-v653-nav-row.is-sticky-copy .sw-v653-nav-layout {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.sw-v653-nav-row.is-primary .sw-v653-nav-links,
.sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links {
  flex: 1 1 auto;
  min-width: 0;
}

.sw-v653-nav-row.is-primary .sw-v653-flavor,
.sw-v653-nav-row.is-sticky-copy .sw-v653-flavor {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.sw-v653-nav-row.is-primary .sw-v688-vendor-cta + .sw-v653-flavor {
  min-width: 302px;
  max-width: 302px;
}

.sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-cta + .sw-v653-flavor {
  min-width: 292px;
  max-width: 292px;
}

.sw-v653-nav-row.is-primary .sw-v653-flavor-label,
.sw-v653-nav-row.is-sticky-copy .sw-v653-flavor-label {
  flex: 0 0 108px;
  width: 108px;
  justify-content: flex-end;
  text-align: right;
  overflow: hidden;
  text-overflow: clip;
}

.sw-v653-nav-row.is-primary .sw-v653-flavor-swatches,
.sw-v653-nav-row.is-sticky-copy .sw-v653-flavor-swatches {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sw-v653-nav-row.is-primary .sw-v653-flavor-swatch,
.sw-v653-nav-row.is-sticky-copy .sw-v653-flavor-swatch {
  flex: 0 0 auto;
}

@media (max-width: 1280px) {
  .sw-v653-nav-row.is-primary .sw-v653-nav-links > a,
  .sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links > a {
    padding-inline: 11px !important;
    font-size: 11px;
  }

  .sw-v688-vendor-cta {
    min-width: 160px;
    margin-left: 14px;
    padding-left: 50px;
    padding-right: 10px;
  }

  .sw-v653-nav-row.is-primary .sw-v688-vendor-cta + .sw-v653-flavor,
  .sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-cta + .sw-v653-flavor {
    min-width: 288px;
    max-width: 288px;
  }

  .sw-v653-nav-row.is-primary .sw-v653-flavor-label,
  .sw-v653-nav-row.is-sticky-copy .sw-v653-flavor-label {
    flex-basis: 96px;
    width: 96px;
    font-size: 10px;
    letter-spacing: .06em;
  }
}

@media (max-width: 1160px) {
  .sw-v653-nav-row.is-primary .sw-v653-flavor-label,
  .sw-v653-nav-row.is-sticky-copy .sw-v653-flavor-label {
    display: none !important;
  }

  .sw-v653-nav-row.is-primary .sw-v688-vendor-cta + .sw-v653-flavor,
  .sw-v653-nav-row.is-sticky-copy .sw-v688-vendor-cta + .sw-v653-flavor {
    min-width: auto;
    max-width: none;
  }

  .sw-v653-nav-row.is-primary .sw-v653-nav-links > a,
  .sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links > a {
    padding-inline: 10px !important;
  }

  .sw-v688-vendor-cta {
    min-width: 150px;
    padding-left: 46px;
    font-size: 11px;
  }
}

@media (max-width: 1060px) {
  .sw-v653-nav-row.is-primary .sw-v653-nav-links > a,
  .sw-v653-nav-row.is-sticky-copy .sw-v653-nav-links > a {
    padding-inline: 9px !important;
    font-size: 10.5px;
  }

  .sw-v688-vendor-cta {
    min-width: 142px;
    margin-left: 10px;
    padding-left: 42px;
    padding-right: 8px;
    gap: 5px;
    font-size: 10.5px;
  }

  .sw-v688-vendor-cta + .sw-v653-flavor {
    margin-left: 10px !important;
    padding-left: 10px !important;
  }

  .sw-v653-nav-row.is-primary .sw-v653-flavor-swatches,
  .sw-v653-nav-row.is-sticky-copy .sw-v653-flavor-swatches {
    gap: 4px;
  }
}


/* v695 — Mini-Swankage must sit above the nav but below interactive header
   overlays such as the live catalog/search mega panel. */
.sw-v691-vendor-sprite-portal {
  z-index: 75 !important;
}
