/* Shared header chrome for the Research pages + the cross-page wordmark slide.
   html.jm-from-home  : arriving on a Research page from Home — tail starts open, then slides into the J.
   html.jm-from-research : arriving on Home from Research — tail starts shut, then slides back out. */
html.jm-from-home .jm-wordmark .mark-tail.is-off { max-width: var(--tailw, 12em) !important; opacity: 1; transform: none; transition: none; }
html.jm-from-research .jm-wordmark .mark-tail { max-width: 0 !important; opacity: 0; transform: translateX(-0.6em); transition: none; }
html.jm-from-home .mo-crumbs { animation-delay: 0.36s; }
.jm-wordmark.mo-mark .mark-tail.is-off { max-width: 0; }

.r-langs { display: flex; align-items: center; gap: 0; line-height: normal; }
.r-langs-globe { width: 0.82rem; height: 0.82rem; flex: 0 0 auto; margin-right: 0.3rem; fill: none; stroke: var(--muted); stroke-width: 1.1; }
.r-lang { font-family: 'JourneyDesign Tech', 'Chakra Petch', sans-serif; font-weight: 400; font-size: 0.84rem; letter-spacing: 0.12em; font-size-adjust: cap-height 0.756; text-transform: uppercase; line-height: normal;
  color: var(--muted); background: none; border: 0; cursor: pointer; width: 2.6em; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s; }
.r-lang:hover { color: var(--text); }
.r-lang.active, .r-lang.active:hover { color: #67c7d4; }
.r-lang:focus-visible { outline: 1px solid #67c7d4; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html.jm-from-home .mo-crumbs { animation-delay: 0s; } }

/* Research ↔ article: J and RESEARCH stay put; only the trailing crumbs slide */
html.jm-crumb-still .mo-crumbs { animation: none; }
html.jm-crumb-open .mo-crumbs .mo-crumb-tail { grid-template-columns: 0fr; opacity: 0; transform: translateX(-1.2rem); transition: none; }
html.jm-crumb-close .mo-crumbs .mo-crumb-tail.is-off { grid-template-columns: 1fr; opacity: 1; transform: none; transition: none; }
.mo-crumbs .mo-crumb-here { color: var(--text); }
