/* mar500.com staging, /_assets/v4_1_overrides.css
 * Loaded last so its declarations win against the inline base stylesheet.
 *
 * v4.2 (2026-05-06):
 *   1. Eyebrow-style rail for cross-domain related findings, positioned
 *      between the page eyebrow and the H1. Replaces the old bottom-of-
 *      page 3-card grid which v4.1 could not fix with CSS alone (parent
 *      <main> uses non-wrapping flex).
 *   2. .note-substrate one-line provenance inside the .note block at the
 *      bottom of the page, replacing the heading-area .revision-notice.
 *
 * Color discipline (locked 2026-05-06):
 *   Nav-related color bars default to NAVY ink inactive, GOLD-DEEP active.
 *   Burgundy and green are reserved for critical alerts and semantic
 *   positives respectively, never for nav/wayfinding chrome.
 *
 * The v4.1 grid overrides on section.related-findings are intentionally
 * dropped: the v4.2 patch removes that section outright, so those rules
 * are now dead code.
 */


/* ============================================================
 * RAIL, eyebrow-style, between .eyebrow and h1.headline
 * ============================================================ */

nav.related-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px 0;
  padding: 0;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  flex-wrap: wrap;
}

nav.related-rail .related-rail-label {
  color: #8C7754;            /* gold-deep, mirrors page eyebrow grammar */
  letter-spacing: 0.18em;
  white-space: nowrap;
  flex-shrink: 0;
}

nav.related-rail .related-rail-item {
  text-decoration: none;
  color: #3D3833;            /* navy ink, inactive */
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}

nav.related-rail .related-rail-item .rri-domain {
  color: #8A847E;            /* ink-faint, semantic secondary */
  letter-spacing: 0.10em;
  transition: color 160ms ease;
}

nav.related-rail .related-rail-item .rri-stat {
  color: inherit;
  letter-spacing: 0.06em;
  text-transform: none;       /* preserve "inverse", "0 / 56,308" as-typed */
}

nav.related-rail .related-rail-item:hover,
nav.related-rail .related-rail-item:focus-visible {
  color: #8C7754;            /* gold-deep, active */
  border-bottom-color: #8C7754;
  outline: none;
}

nav.related-rail .related-rail-item:hover .rri-domain,
nav.related-rail .related-rail-item:focus-visible .rri-domain {
  color: #8C7754;
}

nav.related-rail .related-rail-sep {
  width: 1px;
  height: 12px;
  background: #C9BFA8;       /* parchment hairline */
  display: inline-block;
  flex-shrink: 0;
}

/* trailing hairline runs from the rail's right edge to the column edge,
 * mirroring the .eyebrow grammar one row above */
nav.related-rail::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #C9BFA8;
  margin-left: 6px;
  min-width: 60px;
}

@media (max-width: 720px) {
  nav.related-rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
  }
  nav.related-rail .related-rail-sep,
  nav.related-rail::after {
    display: none;
  }
}


/* ============================================================
 * SUBSTRATE PROVENANCE, third line inside .note block at the bottom
 * ============================================================ */

.note .note-substrate {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dotted #C9BFA8;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  color: #8A847E;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
}

.note .note-substrate a {
  color: #8C7754;
  border-bottom: 1px solid rgba(184, 160, 122, 0.5);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.note .note-substrate a:hover {
  border-bottom-color: #8C7754;
  color: #3D3833;
}
