/* ============================================================
   components/hero.css
   Homepage hero: featured story (2fr) + right column (1fr) with the
   Latest stack and the Partner-news block. Two badge states, never
   both. No outer margin on the root.
   ============================================================ */
.rfi-hero { display: grid; grid-template-columns: 2fr 1fr; gap: var(--rfi-gap); align-items: stretch; }
@media (max-width: 900px) { .rfi-hero { grid-template-columns: 1fr; } }

.rfi-hero__big { background: var(--rfi-surface); border-radius: var(--rfi-radius); box-shadow: var(--rfi-shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .16s, transform .16s; }
.rfi-hero__big:hover { box-shadow: var(--rfi-shadow-up); transform: var(--rfi-lift); }
.rfi-hero__big:hover .rfi-hero__title { color: var(--rfi-teal); }
.rfi-hero__img { aspect-ratio: 3 / 2; background: var(--rfi-border-soft); }
.rfi-hero__img img { width: 100%; height: 100%; object-fit: cover; }
/* No picture: the brand fill, same dials as the card, one size up. */
.rfi-hero__img--brand { background: var(--rfi-brandfill-bg); display: flex; align-items: center; justify-content: center; }
.rfi-hero__img--brand .rfi-brandfill__mark { width: 34%; height: auto; color: var(--rfi-brandfill-mark); opacity: var(--rfi-brandfill-ink); }
.rfi-hero__body { padding: 20px 24px 22px; }
.rfi-hero__title { font-family: var(--rfi-font-ui); font-size: 27px; line-height: 1.22; font-weight: 600; letter-spacing: -.2px; margin-top: 8px; transition: color .15s; }
/* Three lines, then an ellipsis. The teaser is an excerpt on every migrated record,
   so its length is whatever the body's opening happened to be: unclamped, the
   longest one drives the hero's height and the whole first screen moves with it.
   Three lines is the clamp; the type size is not the dial. */
.rfi-hero__sub {
  font-size: 15px; line-height: 1.6; color: var(--rfi-text-2); margin-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rfi-hero__date { font-size: 12.5px; color: var(--rfi-text-3); margin-top: 14px; }

.rfi-badge { display: inline-block; font-family: var(--rfi-font-ui); font-size: 9.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: var(--rfi-radius-xs); margin-left: 8px; vertical-align: 1px; }
.rfi-badge--auto { color: var(--rfi-text-2); background: var(--rfi-input); }        /* Top story: the algorithm */
.rfi-badge--featured { color: var(--rfi-featured-text); background: var(--rfi-featured-bg); }  /* Featured: an editor pinned it */

.rfi-hero__col { display: flex; flex-direction: column; gap: var(--rfi-gap); }
.rfi-stack { background: var(--rfi-surface); border-radius: var(--rfi-radius); box-shadow: var(--rfi-shadow); padding: 16px 18px; flex: 1; }
.rfi-stack__lab { font-family: var(--rfi-font-text); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--rfi-text-3); margin-bottom: 12px; }
.rfi-stack__row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rfi-border-soft); }
.rfi-stack__row:first-of-type { border-top: 0; padding-top: 0; }
.rfi-stack__row:last-child { padding-bottom: 0; }
.rfi-stack__tx { display: flex; flex-direction: column; min-width: 0; }
.rfi-stack__th { width: 74px; height: 50px; flex: none; border-radius: var(--rfi-radius-sm); background: var(--rfi-placeholder); overflow: hidden; }
.rfi-stack__th img { width: 100%; height: 100%; object-fit: cover; }
.rfi-stack__tt { display: block; font-family: var(--rfi-font-ui); font-size: 13.5px; line-height: 1.35; font-weight: 500; }
.rfi-stack__row:hover .rfi-stack__tt { color: var(--rfi-teal); }
.rfi-stack__dd { display: block; font-size: 11.5px; color: var(--rfi-text-3); margin-top: 6px; }

/* Partner news: guaranteed daily exposure, sold in the package. */
.rfi-stack--partner { background: var(--rfi-partner-tint); box-shadow: var(--rfi-shadow), 0 0 0 1px var(--rfi-partner-line) inset; }
.rfi-stack--partner .rfi-stack__lab { color: var(--rfi-navy); display: flex; align-items: center; gap: 7px; }
.rfi-stack--partner .rfi-stack__lab::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rfi-navy); }
.rfi-stack--partner .rfi-stack__row { border-top-color: var(--rfi-partner-line); }
.rfi-stack--partner .rfi-stack__dd b { color: var(--rfi-navy); font-weight: 600; }
