/* Breadcrumbs (js/crumbs.js): under the top bar, in the G2 condensed capitals, muted, the page you're on
   in white. Desktop: the whole trail, centred in the 720px column. Phone: "‹ PARENT · CURRENT".
   Gone on home (empty) and on the fight screen, which is full bleed with its own ‹ CARD. Tokens only. */

.crumbs { width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 6px; background: var(--bg); }
.crumbs[hidden], .crumbs:empty { display: none; }
.crumbs ol { display: flex; align-items: baseline; min-width: 0; margin: 0; padding: 0; list-style: none;
  font: 600 12px/1.3 var(--font-condensed); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.crumbs li { display: flex; align-items: baseline; min-width: 0; flex: 0 1 auto; white-space: nowrap; }
.crumbs li.cr-here { flex-shrink: .5; }
.crumbs a, .crumbs span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--text); }
.crumbs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.crumbs .cr-here span { color: var(--text); font-weight: 700; }
.crumbs li + li::before { flex: none; content: "›"; content: "›" / ""; padding: 0 9px; color: var(--faint); }

/* The fight screen draws its own way back */
body:has(#main > .fightscreen) .crumbs { display: none; }

/* Phone: the last two parts; the parent is a ‹ link, a dot before the page you're on */
@media (max-width: 899px) {
  .crumbs { padding: 6px 16px 4px; }
  .crumbs li.cr-far { display: none; }
  .crumbs li + li::before { content: "·"; content: "·" / ""; padding: 0 8px; }
  .crumbs li.cr-up::before { display: none; }
  .crumbs li.cr-up { flex-shrink: 1; max-width: 55%; }
  .crumbs li.cr-up a::before { content: "‹ "; content: "‹ " / ""; color: var(--text-2); }
  /* no top bar on a phone's bare screens (the fighter page has its own ‹ BACK) */
  body.bare .crumbs { display: none; }
}

/* Desktop: centred under the bar, a little more room */
@media (min-width: 900px) {
  .crumbs { padding: 14px 16px 4px; }
  .crumbs ol { justify-content: center; font-size: 13px; }
}
