/* The link back (owner, 2026-10-28): a split button, the chevron in a cell
   tinted with the chip colour, then the words in the app's own font, 600. The same design
   as Juste's. Its colours are the shared tokens in style.css (--border-strong,
   --chip, --link, --card-bg), each with its light value here as well, for the
   pages the app serves whole (the printable guides, the verification record),
   which have no style.css. Markup: src/web/back_link.py. One font family in the whole app (owner, 2026-11-08):
   Figtree is no longer used here. */
.back-link {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  overflow: hidden;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--link, #0A1628);
  text-decoration: none;
  background: var(--card-bg, #FFFFFF);
  border: 1.5px solid var(--border-strong, #C9D1DD);
  border-radius: 6px;
  transition: border-color .15s;
}
.back-link:hover { color: var(--link, #0A1628); text-decoration: none; border-color: var(--gold, #D4A017); }
.back-link:focus-visible { outline: 2px solid var(--gold, #D4A017); outline-offset: 2px; }
.back-link-arrow {
  display: grid;
  place-items: center;
  min-width: 42px;
  padding: 0 11px;
  background: var(--chip, #EEF1F6);
  border-right: 1.5px solid var(--border-strong, #C9D1DD);
  transition: background .15s, border-color .15s, color .15s;
}
.back-link-arrow svg { display: block; width: 20px; height: 20px; }
.back-link:hover .back-link-arrow {
  background: var(--gold, #D4A017);
  border-right-color: var(--gold, #D4A017);
  color: var(--navy, #0A1628);
}
.back-link-text { display: block; align-self: center; padding: 8px 14px; }
/* On a page served whole, above its own content. */
.back-link-bar { padding: 12px 16px 0; }
@media (prefers-reduced-motion: reduce) {
  .back-link, .back-link-arrow { transition: none; }
}
@media print {
  .back-link, .back-link-bar { display: none !important; }
}

/* The path (owner, 2026-11-05): the chevron one level up, then the way here as links, the page itself last and
   plain. Markup: src/back_link.py path(). */
.crumbs { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* The button the height of the words beside it (owner, 2026-11-08: it was too big next to small text). */
.crumbs .back-link-arrow { min-width: 28px; padding: 4px 6px; border-right: 0; }
.crumbs .back-link-arrow svg { width: 16px; height: 16px; }
.crumbs .crumbs-up { flex: none; }
/* The button and the path on one line, centred (owner, 2026-11-09: the button sat higher than the words). The
   older .back-to-main in style.css pulled it up 10 px and pushed the path down; not inside the path. */
.crumbs .back-to-main { align-self: center; margin: 0; }
.page-top:has(.crumbs) { margin-bottom: 12px; }
.crumbs .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.crumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0;
  list-style: none; min-width: 0;
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.crumbs-list li { display: inline-flex; align-items: center; min-width: 0; color: var(--muted, #6B7A8D); }
.crumbs-list li + li::before { content: "\203A"; margin: 0 9px; color: var(--muted, #6B7A8D); font-weight: 400; }
.crumbs-list a { color: var(--muted, #6B7A8D); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.crumbs-list a:hover { color: var(--link, #0A1628); text-decoration-color: var(--gold, #D4A017); }
.crumbs-list li[aria-current] { color: var(--text, #1A2333); }
.crumbs-here { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.crumbs-menu { position: relative; margin-left: 4px; }
.crumbs-menu > summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 4px;
  display: grid; place-items: center; }
.crumbs-menu > summary::-webkit-details-marker { display: none; }
.crumbs-menu > summary::after { content: ""; border: 4px solid transparent; border-top-color: currentColor;
  border-bottom: 0; margin-top: 3px; }
.crumbs-menu > summary:hover, .crumbs-menu[open] > summary { background: var(--chip, #EEF1F6); }
.crumbs-pop { position: absolute; z-index: 50; top: 26px; left: 0; min-width: 240px; max-width: 420px;
  max-height: 60vh; overflow-y: auto; padding: 6px 0; background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border, #E4E8EF); border-radius: 8px; box-shadow: 0 8px 22px rgba(10, 22, 40, .14);
  font-weight: 400; }
.crumbs-pop a { display: block; padding: 6px 14px; color: var(--text, #1A2333); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs-pop a:hover { background: var(--chip, #EEF1F6); }
.crumbs-pop a.crumbs-on { font-weight: 600; box-shadow: inset 3px 0 0 var(--gold, #D4A017); }
@media print { .crumbs { display: none !important; } }
