/* Stories - page-specific layout only.
 *
 * The page is deliberately short: a hero, three editorial entries and the pages where the same
 * work appears as numbers. .phero, .notice, .chip, .facts, .bar, .tiles-mini, .empty and .cta
 * come from styles.css and css/shared.css unchanged; what is here is the alternating entry
 * layout and the small indicator block inside it.
 *
 * Loads AFTER styles.css and shared.css and only ADDS selectors - every class starts with st-.
 */

/* The hero uses .phero--bleed and the shared .phero__img sizing, exactly like every other inner
   page, so flipping between Campaigns, Programmes and Stories does not move the photograph. */

.st-note { margin: 0 0 clamp(26px, 3vw, 42px); max-width: 108ch; }

/* ------------------------------------------------------------------ the entries
   Full-width editorial rows: photograph one side, copy the other, alternating. Under 900px the
   photograph always leads, so the reading order on a phone is picture then words. */
.st-list { display: grid; gap: clamp(32px, 4vw, 60px); }

.st-entry { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(26px, 3.2vw, 56px); align-items: center; scroll-margin-top: calc(var(--header-h) + 20px); }
.st-entry + .st-entry { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 60px); }
.st-entry:nth-child(even) .st-entry__media { order: 2; }

.st-entry__media { position: relative; min-width: 0; }
.st-entry__media img { width: 100%; aspect-ratio: 4 / 3; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); background: var(--sage); }
.st-entry__media .chip { position: absolute; left: 16px; bottom: 16px; }

.st-entry__copy { min-width: 0; display: grid; gap: 14px; align-content: start; }
.st-entry__index { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); font-variant-numeric: tabular-nums; }
.st-entry__title { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.15rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.st-entry__blurb { margin: 0; font-size: 1.05rem; color: var(--muted); max-width: 54ch; }
.st-entry__facts { margin: 2px 0; padding: 16px 0; border-block: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.st-entry__label { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.st-entry__label .icon { flex: none; margin-top: 2px; color: var(--muted); width: 17px; height: 17px; }
.st-entry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 2px; }

/* the programme's headline indicator, so the story always sits beside something checkable */
.st-metric { background: var(--sage-2); border: 1px solid var(--sage-3); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.st-metric__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin: 0; font-size: .88rem; }
.st-metric__head strong { color: var(--forest); }
.st-metric__head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-metric .bar { height: 9px; background: var(--sage); }
.st-metric__foot { margin: 0; }

@media (max-width: 899px) {
  .st-entry { grid-template-columns: 1fr; }
  .st-entry:nth-child(even) .st-entry__media { order: 0; }
  .st-entry__media img { aspect-ratio: 16 / 10; max-height: 320px; }
}

/* ------------------------------------------------------------------ where the numbers live */
.tiles-mini.st-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .tiles-mini.st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .tiles-mini.st-tiles { grid-template-columns: 1fr; } }
