/*
 * Breadcrumbs, SEO17 / SCH5 / SEO16 / SEO4.
 * Tokens from the SEO and AEO design spec: secondary text #333, line #e5e5e5,
 * focus ring #1779ba, small Manrope 13. The separator is drawn in CSS so a
 * screen reader does not announce it.
 */

.crumbs {
  /* Match .grid-container so the trail lines up with the content below it.
     The nav sits outside .location-info, whose container would otherwise
     have supplied this gutter. */
  max-width: var(--wide-size);
  margin: 16px auto 8px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;          /* SEO4: wraps at 390, never scrolls sideways */
  align-items: center;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumb {
  display: flex;
  align-items: center;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

.crumb + .crumb::before {
  content: '/';
  margin-right: 8px;
  color: #e5e5e5;
  speak: never;             /* decorative; the list order carries the meaning */
}

.crumb a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  /* 44px tap height without changing the line box the text sits on */
  padding: 14px 0;
  margin: -14px 0;
}

.crumb a:hover {
  color: #003b49;
}

.crumb a:focus-visible {
  outline: 2px solid #1779ba;
  outline-offset: 2px;
  border-radius: 2px;
}

.crumb [aria-current='page'] {
  color: #333;
  padding: 14px 0;
  margin: -14px 0;
}

@media (min-width: 768px) {
  .crumbs {
    margin: 24px auto 8px;
    padding-left: 1.875rem;
    padding-right: 1.875rem;
  }
}

/* Live's first crumb is the home logo, kept so the image count matches live. */
.crumb--home a {
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
}

/* Live's first crumb is the Ever/Body wordmark, 294x30. Keep its ratio - forcing
   a square turns it into a smudge - and reserve the box with aspect-ratio so the
   trail does not reflow when the SVG lands. Leaving width auto measured 0.1678
   CLS at 390 against live's 0.0000, over the 0.1 cap. */
.crumb--home img {
  height: 12px;
  width: 117.6px;
  aspect-ratio: 294 / 30;
  display: block;
}
