/* Section navigation (nav.js): breadcrumb in the hero, back button, viewed section on the tracker. */

/* breadcrumb over the section heading */
.bc { margin-bottom: 14px; }
.bc[hidden] { display: none; }
.bc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; }
.bc li { display: inline-flex; align-items: center; min-width: 0; }
.bc li + li::before { content: '›'; margin: 0 10px; color: rgba(255, 255, 255, 0.6); }
.bc button { all: unset; cursor: pointer; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 4px; min-height: 32px; display: inline-flex; align-items: center; }
.bc button:hover { text-decoration-color: #fff; }
.bc button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.bc [aria-current='page'] { color: var(--om-lilac, #c9ccd4); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* back button above the page content */
.nav-bar { margin-bottom: 28px; }
.nav-back { display: inline-flex; align-items: center; gap: 6px; }
.g-top .nav-back { flex: none; }
.g-top .spacer { flex: 1; }

/* topic page */
.nav-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #6b3fa0 !important; }
.nav-foot { margin-top: 40px !important; }
.nav-foot .hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* tracker: progress caption, and the section being viewed (separate from "You are here") */
.tl-cap { margin: 0 0 12px; font-size: 12px; color: #c9bddb; letter-spacing: 0.04em; text-transform: uppercase; }
.timeline .rail-item[aria-current='page'] .lbl { font-weight: 700; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.timeline li.viewing .rail-item { background: rgba(255, 255, 255, 0.1); border-radius: 12px; }
.timeline li.viewing:not(.now) .sub { color: #fff; }

@media (max-width: 860px) {
  .bc ol { font-size: 13px; }
  .bc [aria-current='page'] { max-width: 100%; white-space: normal; }
  .nav-bar { margin-bottom: 20px; }
  .g-top .spacer { display: none; }
}
