/*
 * Shared breadcrumb navigation.
 *
 * Tokens align with blog / about / product pages:
 *   orange #ee7700, copy #595656, muted #97a29c, paper #f5f1ee, rule #e2e2e2
 *
 * Variants:
 *   --bar   global strip below header (light paper chrome)
 *   --dark  product hero on black background (inline)
 */

.breadcrumb,
.site-breadcrumb-bar {
  --junj-breadcrumb-orange: #ee7700;
  --junj-breadcrumb-copy: #595656;
  --junj-breadcrumb-muted: #97a29c;
  --junj-breadcrumb-paper: #f5f1ee;
  --junj-breadcrumb-rule: #e2e2e2;
  --junj-breadcrumb-on-dark: #f0f0f2;
  --junj-breadcrumb-on-dark-muted: #999999;
  font-family: "Outfit", Arial, sans-serif;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--junj-breadcrumb-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  padding-top: 6px;
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
}

.breadcrumb::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  background: var(--junj-breadcrumb-orange);
  clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 100%, 59% 100%, 59% 68%, 41% 68%, 41% 100%, 14% 100%, 14% 42%, 0 42%);
}

.breadcrumb > span[aria-hidden="true"] {
  color: var(--junj-breadcrumb-rule);
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--junj-breadcrumb-orange);
  outline-offset: 3px;
}

.breadcrumb--bar {
  color: var(--junj-breadcrumb-muted);
}

.breadcrumb--bar > span[aria-hidden="true"] {
  color: #9b9895;
}

.breadcrumb--bar a[aria-current="page"] {
  color: var(--junj-breadcrumb-copy);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .breadcrumb--bar a:not([aria-current="page"]):hover {
    color: var(--junj-breadcrumb-orange);
  }
}

.breadcrumb--dark {
  margin-bottom: 64px;
  color: var(--junj-breadcrumb-on-dark-muted);
}

.breadcrumb--dark > span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.28);
}

.breadcrumb--dark a[aria-current="page"] {
  color: var(--junj-breadcrumb-on-dark);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .breadcrumb--dark a:not([aria-current="page"]):hover {
    color: var(--junj-breadcrumb-orange);
  }
}

.site-breadcrumb-bar {
  width: 100%;
  background: var(--junj-breadcrumb-paper);
  border-bottom: 1px solid var(--junj-breadcrumb-rule);
}

.site-breadcrumb-bar__inner {
  width: calc(100% - 48px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 0 16px;
}

.site-breadcrumb-bar--bar .breadcrumb {
  padding-top: 0;
}

@media (max-width: 1180px) {
  .breadcrumb--dark {
    margin-bottom: 36px;
  }

  .site-breadcrumb-bar__inner {
    width: calc(100% - 40px);
  }
}

@media (max-width: 992px) {
  .breadcrumb--dark {
    gap: 8px;
    margin-bottom: 32px;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    font-size: 14px;
  }

  .breadcrumb--dark {
    margin-bottom: 24px;
  }

  .breadcrumb::before {
    flex-basis: 20px;
    height: 20px;
  }

  .site-breadcrumb-bar__inner {
    width: calc(100% - 32px);
    padding: 12px 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breadcrumb a {
    transition: none;
  }
}
