/**
 * featured — curated rail.
 *
 * Reads as a band rather than a grid of cards: the items share one ground and
 * are separated by their accent bars, not by gaps and shadows. That is what
 * keeps it feeling like a rail above a listing instead of a second card module.
 */

.featured__eyebrow {
  color: var(--text-subtle);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured__star { color: var(--accent-decor); font-size: 1.1em; line-height: 1; }

.featured__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.featured__item {
  /* Falls back to the property accent when no pillar slot is set, so a
     property with no colour-coded programming still looks deliberate. */
  --featured-accent: var(--accent-decor);
  border-left: 3px solid var(--featured-accent);
  background: var(--gray-50);
  padding: 20px 22px;
}

.featured__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.featured__item > :not(a) { display: block; }
.featured__item :is(.featured__tag, .featured__title, .featured__meta) + * { margin-top: 8px; }

/* Full-bleed to the panel edges rather than inset, so the item reads as a card
   with a photo rather than a panel with a picture stuck in it. The negative
   margins cancel .featured__item's padding exactly; they are stated here
   rather than derived, so changing that padding means changing both. The
   leading accent bar is a border on the item, so the photo stops short of it
   and the bar still runs the full height. */
.featured__photo {
  display: block;
  flex: 0 0 auto;
  margin: -20px -22px 8px;
  aspect-ratio: 16 / 10;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
}
.tone--navy.tone--navy .featured__photo { background-color: #ffffff14; }

.featured__tag   { color: var(--text-subtle); }
.featured__title { font-weight: var(--weight-bold); font-size: var(--fs-card-name, 1.125rem); line-height: 1.2; }
.featured__meta  { color: var(--text-muted); font-size: var(--fs-meta); }

.featured__link:hover .featured__title { color: var(--accent-deep); }

/* On a dark ground the panel has to lift off the section, not sink into it —
   --section-bg is what the tone modifier re-points. */
.tone--navy.tone--navy .featured__item { background: #ffffff14; }
.tone--navy.tone--navy .featured__link:hover .featured__title { color: var(--accent); }

@media (max-width: 720px) {
  .featured__grid { grid-template-columns: 1fr; gap: 14px; }
}
