/* ============================================================
   ISG — News rail (Field Notes module).
   Owns everything inside .hero__rail. The .hero__split layout
   that wraps it lives in styles.css (it's a hero structural
   concern, not a news concern).
   Loaded after styles.css; uses tokens from design-tokens.css.
   ============================================================ */

.hero__rail {
  /* Mobile: rail stacks below the hero body, separated by a hairline. */
  margin-top: var(--space-6);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
}

/* Empty rail (e.g. JS hasn't filled it yet, or fetch failed) takes no
   space — better an invisible column than a stub border on the right. */
.hero__rail:empty {
  margin: 0;
  border: 0;
  padding: 0;
}

/* ----- Header ----- */
.rail__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.rail__eyebrow {
  color: var(--ink-3);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rail__eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.rail__updated {
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ----- Item list ----- */
.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rail__item {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule);
  display: block;
  color: inherit;
  transition: background-color var(--motion-fast) var(--ease-standard);
}
.rail__list > li:first-child .rail__item { border-top: 0; padding-top: 0; }
.rail__list > li:last-child  .rail__item { padding-bottom: 0; }
.rail__item:hover .rail__item-title { color: var(--accent); }

.rail__item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rail__item-meta .rail__sep   { color: var(--ink-4); }
.rail__item-meta .rail__sector { color: var(--ink-2); }

.rail__item-title {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 6px;
  transition: color var(--motion-fast) var(--ease-standard);
}

.rail__item-byline {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- CTA ----- */
.rail__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}
.rail__cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ----- ≥ 960px: rail moves to the right column, sticky inside hero ----- */
@media (min-width: 960px) {
  .hero__rail {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: var(--space-6);
    /* Sticky inside the .hero__split grid cell so the rail follows
       the visitor through the hero. Once the hero scrolls out, the
       rail unsticks naturally. */
    position: sticky;
    top: var(--space-7);
    align-self: start;
  }
}
