/* ==========================================================================
   Onward Stories - vertical video feed row component
   Deployed to  _global-assets:_files/css/components/onward-stories.css
   Emitted by   _global-assets:_cms/formats/components/onwardStories

   Layout model
   - < 980px : one story per viewport, snap-scrolling feed, text overlaid on the
               9:16 tile, transcript in a bottom sheet (prototype "Onward Stories Mobile")
   - >= 980px: intro band + two-column feed (sticky 9:16 tile left, copy + inline
               transcript right) (prototype "Onward Stories Feed")
   Relies on the site's core lazy-video module (site.js) for YouTube playback.
   ========================================================================== */

.onward-stories,
.onward-stories-header {
  --os-navy: #001835;
  --os-blue: #0e4168;
  --os-gold: #e8b720;
  --os-gold-dark: #b48c13;
  --os-gold-ink: #001835;
  --os-sky: #9dcee6;
  --os-pale: #e4f1f7;
  --os-white: #ffffff;
  --os-sans: 'Figtree', Tahoma, Verdana, 'Segoe', sans-serif;
  --os-serif: 'PT Serif', 'Palatino', Georgia, serif;
  --os-radius: 22px;
  /* Offset for a sticky site header. JS sets this from [data-js-header-primary] when present. */
  --os-sticky-top: 0px;
  --os-tile-w: min(100%, 380px, calc((100vh - 140px - var(--os-sticky-top)) * 9 / 16));
  --os-ring: 0 0 0 3px var(--os-gold);
  position: relative;
  background: var(--os-navy);
  color: var(--os-white);
  font-family: var(--os-sans);
  -webkit-font-smoothing: antialiased;
}

.onward-stories *,
.onward-stories *::before,
.onward-stories *::after,
.onward-stories-header *,
.onward-stories-header *::before,
.onward-stories-header *::after {
  box-sizing: border-box;
}

.onward-stories a,
.onward-stories-header a {
  color: inherit;
}

/* Play controls are <a class="lazy-video__play">; do not inherit the section's white type. */
.onward-stories a.lazy-video__play,
.onward-stories-header a.lazy-video__play,
.onward-story-detail a.lazy-video__play {
  color: var(--os-navy);
}

/* Author display rules below would otherwise beat the UA stylesheet's [hidden] */
.onward-stories [hidden],
.onward-stories-header [hidden] {
  display: none !important;
}

.onward-stories a:focus-visible,
.onward-stories button:focus-visible,
.onward-stories-header a:focus-visible,
.onward-stories-header button:focus-visible {
  outline: 3px solid var(--os-gold);
  outline-offset: 3px;
}

/* Gold rings fail 1.4.11 on pale/white (1.6:1). Navy on the light sheet and detail. */
.onward-stories__sheet a:focus-visible,
.onward-stories__sheet button:focus-visible,
.onward-story-detail a:focus-visible,
.onward-story-detail button:focus-visible,
.page-header.onward-stories-header-detail a:focus-visible,
.page-header.onward-stories-header-detail button:focus-visible {
  outline: 3px solid var(--os-navy);
  outline-offset: 3px;
}

.onward-stories__container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 740px) {
  .onward-stories__container {
    padding: 0 40px;
  }
}

/* When this intro is the page BANNER, kill stock page-header chrome (min-height, extra pads).
   The site header overlays dark banners (absolute/fixed), so the intro pads itself by
   --os-site-header (JS-measured; 6.5rem fallback matches the JCU primary nav). */
.page-header.onward-stories-header {
  --os-site-header: 6.5rem;
  /* Stock .page-header is grid-template-rows: 1fr 0 (content + zero-height decoration).
     Two direct children put the intro in the 0-height row. Stack instead. */
  display: block;
  grid-template-rows: none;
  min-height: 0;
  padding: 0;
  margin: 0;
  /* Flat navy. Same color as the feed, so the transparent site nav has no seam and no blue bulge. */
  background: var(--os-navy);
}

.page-header.onward-stories-header .page-header__breadcrumb {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--os-site-header) + 8px);
  padding-bottom: 0;
}

.page-header.onward-stories-header .onward-stories__intro {
  padding-top: 20px;
  background: transparent;
}

#full-width-components:has(.onward-stories) {
  background: #001835;
}

/* Detail pages: stock light header, breadcrumbs only (no H1, no section nav).
   Stock .page-header--light is #fff (and the gradient theme fades to #fff at the
   bottom). Force the same pale blue as the story row so they join as one band. */
.page-header.page-header--light.onward-stories-header-detail {
  --header-background-color: #e4f1f7;
  --os-pale: #e4f1f7;
  display: block;
  grid-template-rows: none;
  min-height: 0;
  background: #e4f1f7;
  background-image: none;
}

.page-header.onward-stories-header-detail .page-header__intro,
.page-header.onward-stories-header-detail .page-header__nav,
.page-header.onward-stories-header-detail .page-header__decoration {
  display: none;
}

#full-width-components:has(.onward-story-detail) {
  background: #e4f1f7;
}

/* --------------------------------------------------------------------------
   Intro band (also used by the _onwardStoriesHeader page banner)
   -------------------------------------------------------------------------- */

.onward-stories__intro {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
  background: var(--os-navy);
}

.onward-stories__intro-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.onward-stories__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--os-gold);
}

.onward-stories__label::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--os-gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.onward-stories__title {
  margin: 0;
  font-family: var(--os-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--os-white);
}

.onward-stories__title em {
  font-family: var(--os-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

.onward-stories__description {
  margin: 16px 0 0;
  max-width: 560px;
  font-family: var(--os-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--os-pale);
}

/* Text link on navy: white type, gold underline. Same treatment as other Onward links. */
.onward-stories-header a.onward-stories__cta,
.onward-stories a.onward-stories__cta {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--os-white);
  text-decoration: underline;
  text-decoration-color: var(--os-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.onward-stories-header a.onward-stories__cta:hover,
.onward-stories a.onward-stories__cta:hover,
.onward-stories-header a.onward-stories__cta:focus-visible,
.onward-stories a.onward-stories__cta:focus-visible {
  color: var(--os-white);
  text-decoration-thickness: 3px;
}

/* Filters (in-row toolbar; sticky bar clones these on mobile) ------------ */

.onward-stories__toolbar {
  padding: 20px 0 4px;
}

.onward-stories__toolbar .onward-stories__filters {
  margin: 0;
}

.onward-stories__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.onward-stories__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--os-white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.onward-stories__chip:hover {
  border-color: var(--os-white);
}

.onward-stories__chip[aria-pressed='true'] {
  background: var(--os-gold);
  border-color: var(--os-gold);
  color: var(--os-gold-ink);
}

.onward-stories__chip-count {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

.onward-stories__chip sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
}

.onward-stories__hint {
  display: none;
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--os-sky);
}

/* --------------------------------------------------------------------------
   Feed + story (shared)
   -------------------------------------------------------------------------- */

.onward-stories__feed {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onward-stories__story {
  position: relative;
}

.onward-stories__story[hidden] {
  display: none;
}

.onward-stories__tile {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--os-navy);
  border-radius: var(--os-radius);
  isolation: isolate;
}

.onward-stories__tile > img,
.onward-stories__tile > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onward-stories__tile > video {
  z-index: 1;
}

/* The tile is a poster with a loop, so the video is decorative: keep it silent, cover-fit,
   and hidden when the story is not in view (JS toggles .is-live) or motion is reduced. */
.onward-stories__tile > video {
  opacity: 0;
  transition: opacity 400ms ease;
}

.onward-stories__story.is-live .onward-stories__tile > video {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .onward-stories__tile > video {
    display: none;
  }
}

/* lazy-video (site core module) fills the tile; when it swaps in the iframe, the iframe fills too. */
.onward-stories__tile .lazy-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  height: 100%;
  background: transparent;
  /* Site lazy-video tokens: keep the button gold (stock hover/focus is sky-blue). */
  --icon-wrapper-size: 76px;
  --icon-wrapper-color: var(--os-gold);
  --icon-wrapper-scale: 1;
  --icon-size: 22px;
  --icon-color: var(--os-navy);
}

.onward-stories__tile .lazy-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.onward-stories__tile .lazy-video__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--os-gold);
  color: var(--os-navy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease;
}

/* Stock draws a 1.2-scale ::before ring; one gold circle is enough. */
.onward-stories__tile .lazy-video__play-icon::before {
  content: none;
  display: none;
}

/* Mock-sized navy triangle. The inline SVG path only fills half its viewBox, so it reads tiny. */
.onward-stories__tile .lazy-video__play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--os-navy);
  margin-left: 5px;
}

.onward-stories__tile .lazy-video__play-icon .icon {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.onward-stories__tile .lazy-video__play:hover,
.onward-stories__tile .lazy-video__play:focus-visible {
  --icon-wrapper-color: var(--os-gold);
}

.onward-stories__tile .lazy-video__play:hover .lazy-video__play-icon,
.onward-stories__tile .lazy-video__play:focus-visible .lazy-video__play-icon {
  transform: scale(1.06);
}

.onward-stories__tile .lazy-video__iframe-wrapper,
.onward-stories__tile .lazy-video__iframe-target,
.onward-stories__tile .lazy-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
}

.onward-stories__tile .lazy-video__iframe-wrapper {
  display: none;
}

/* site.js adds .lazy-video--ready on the player; our feed JS adds .is-playing on the story. */
.onward-stories__tile .lazy-video.lazy-video--ready .lazy-video__iframe-wrapper,
.onward-stories__story.is-playing .onward-stories__tile .lazy-video__iframe-wrapper,
.onward-stories__tile .lazy-video.is-playing .lazy-video__iframe-wrapper,
.onward-stories__tile .lazy-video.lazy-video--playing .lazy-video__iframe-wrapper,
.onward-stories__tile .lazy-video.is-active .lazy-video__iframe-wrapper {
  display: block;
  z-index: 3;
  background: #000;
  opacity: 1;
  visibility: visible;
}

.onward-stories__tile .lazy-video.lazy-video--ready .lazy-video__play,
.onward-stories__story.is-playing .onward-stories__tile .lazy-video__play,
.onward-stories__tile .lazy-video.is-playing .lazy-video__play,
.onward-stories__tile .lazy-video.lazy-video--playing .lazy-video__play,
.onward-stories__tile .lazy-video.is-active .lazy-video__play {
  display: none;
}

/* Point badge on the tile */
.onward-stories__badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--os-gold);
  color: var(--os-gold-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.onward-stories__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Loop pause/play (WCAG 2.2.2 - moving content must be pausable) */
.onward-stories__loop-toggle {
  position: absolute;
  z-index: 4;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 24, 53, 0.65);
  color: var(--os-white);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.onward-stories__loop-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.onward-stories__loop-toggle .onward-stories__icon-play {
  display: none;
}

.onward-stories__story.is-loop-paused .onward-stories__loop-toggle .onward-stories__icon-play {
  display: block;
}

.onward-stories__story.is-loop-paused .onward-stories__loop-toggle .onward-stories__icon-pause {
  display: none;
}

.onward-stories__story.is-loop-paused .onward-stories__tile > video {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .onward-stories__loop-toggle {
    display: none;
  }
}

/* Copy ------------------------------------------------------------------- */

.onward-stories__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--os-gold);
}

.onward-stories__eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.onward-stories__position {
  color: var(--os-sky);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.onward-stories__question {
  margin: 0;
  font-family: var(--os-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--os-white);
}

.onward-stories__permalink {
  color: inherit;
  text-decoration: none;
}

.onward-stories__permalink:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.onward-stories__who {
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--os-sky);
  font-weight: 600;
}

.onward-stories__who strong {
  color: var(--os-sky);
  font-weight: 800;
}

.onward-stories__summary {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

/* Transcript --------------------------------------------------------------- */

.onward-stories__transcript {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.onward-stories__transcript-heading {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--os-sky);
}

.onward-stories__lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.onward-stories__line {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.onward-stories__line + .onward-stories__line {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.onward-stories__line time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--os-gold);
}

/* Collapsed preview: first 3 lines, expand on toggle */
.onward-stories__lines[data-collapsed='true'] .onward-stories__line:nth-child(n + 4) {
  display: none;
}

.onward-stories__transcript-toggle {
  margin: 10px 0 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--os-gold);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onward-stories__transcript-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--os-sky);
}

/* Actions -------------------------------------------------------------------- */

.onward-stories__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 20px 0 0;
}

.onward-stories__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--os-white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.onward-stories__action:hover {
  border-color: var(--os-gold);
  color: var(--os-gold);
}

.onward-stories__action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.onward-stories__action.is-done {
  border-color: var(--os-gold);
  color: var(--os-gold);
}

.onward-stories__next {
  margin-left: auto;
  color: var(--os-sky);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}

.onward-stories__next:hover {
  border-bottom-color: var(--os-sky);
}

/* Announcer for copy-link etc. */
.onward-stories__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* End panel ------------------------------------------------------------------ */

.onward-stories__end {
  padding: 56px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, var(--os-navy) 0%, var(--os-blue) 100%);
}

.onward-stories__end-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.onward-stories__end-title em {
  font-family: var(--os-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

.onward-stories__end-text {
  margin: 12px auto 0;
  max-width: 520px;
  color: var(--os-pale);
  line-height: 1.5;
}

.onward-stories__end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Beat `.onward-stories a { color: inherit }` so gold fill never gets white type. */
.onward-stories a.onward-stories__button,
.onward-stories__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--os-gold);
  background: var(--os-gold);
  color: var(--os-gold-ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.onward-stories a.onward-stories__button:hover,
.onward-stories a.onward-stories__button:focus-visible,
.onward-stories__button:hover,
.onward-stories__button:focus-visible {
  background: var(--os-gold-dark);
  border-color: var(--os-gold-dark);
  color: var(--os-gold-ink);
}

.onward-stories a.onward-stories__button:focus-visible,
.onward-stories__button:focus-visible {
  outline-color: var(--os-white);
}

.onward-stories a.onward-stories__button--ghost,
.onward-stories__button--ghost {
  background: transparent;
  color: var(--os-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.onward-stories a.onward-stories__button--ghost:hover,
.onward-stories a.onward-stories__button--ghost:focus-visible,
.onward-stories__button--ghost:hover,
.onward-stories__button--ghost:focus-visible {
  background: transparent;
  border-color: var(--os-white);
  color: var(--os-white);
}

.onward-stories__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--os-pale);
}

/* ==========================================================================
   MOBILE  (< 980px): snap feed, text overlay, bottom-sheet transcript
   ========================================================================== */

@media (max-width: 979.98px) {
  .onward-stories__hint {
    display: block;
  }

  .onward-stories__intro {
    padding: 28px 0 24px;
  }


  .onward-stories__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: -20px;
    margin-right: -20px;
    padding: 2px 20px;
  }

  .onward-stories__filters::-webkit-scrollbar {
    display: none;
  }

  .onward-stories__chip {
    flex: 0 0 auto;
  }

  /* Sticky chip bar once the feed starts (JS adds .is-stuck to the section) */
  .onward-stories__bar {
    position: sticky;
    top: var(--os-sticky-top, 0px);
    z-index: 5;
    display: none;
    padding: 10px 0;
    background: rgba(0, 24, 53, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .onward-stories.is-stuck .onward-stories__bar {
    display: block;
  }

  .onward-stories__bar .onward-stories__filters {
    margin-top: 0;
  }

  .onward-stories__story {
    /* one story per screen; small viewport units keep the browser chrome out of the math */
    position: relative;
    min-height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0;
  }

  .onward-stories__media {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
  }

  .onward-stories__tile {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .onward-stories__tile::after {
    /* legibility gradient behind the overlay copy */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 24, 53, 0) 40%, rgba(0, 24, 53, 0.55) 70%, rgba(0, 24, 53, 0.92) 100%);
    pointer-events: none;
  }

  .onward-stories__tile .lazy-video {
    z-index: 3;
  }

  /* Copy overlaps the bottom of the tile via negative margin, so it still lays out sensibly
     (below the tile) when JS has not moved the detail block into the sheet. */
  .onward-stories__body {
    position: relative;
    z-index: 4;
    width: 100%;
    margin-top: -190px;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .onward-stories__body > * {
    pointer-events: auto;
  }

  .onward-stories.js-ready .onward-stories__body .onward-stories__detail {
    display: none;
  }

  /* Mobile reads: point - name - major - question - read link (prototype order) */
  .onward-stories__body {
    display: flex;
    flex-direction: column;
  }

  .onward-stories__eyebrow { order: 0; }
  .onward-stories__who { order: 1; }
  .onward-stories__question { order: 2; }
  .onward-stories__open-sheet { order: 3; }
  .onward-stories__detail { order: 4; }

  /* The sticky chip bar covers the top of the tile; the eyebrow already names the point. */
  .onward-stories__badge {
    display: none;
  }

  .onward-stories.is-stuck .onward-stories__loop-toggle {
    top: calc(var(--os-sticky-top, 0px) + 68px);
  }

  .onward-stories__eyebrow {
    margin-bottom: 8px;
  }

  .onward-stories__question {
    font-family: var(--os-serif);
    font-weight: 400;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: 0;
    margin-top: 8px;
  }

  .onward-stories__who {
    margin: 0;
    font-size: 1.25rem;
    color: var(--os-white);
    font-weight: 800;
    line-height: 1.2;
  }

  .onward-stories__who strong {
    color: var(--os-white);
    display: block;
  }

  .onward-stories__who span {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--os-pale);
  }

  /* No-JS fallback: detail block renders below the tile on the navy background */
  .onward-stories__body .onward-stories__detail {
    margin-top: 12px;
  }

  .onward-stories__open-sheet {
    display: inline-block;
    align-self: flex-start;
    margin: 12px 0 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--os-gold);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  /* Action rail */
  .onward-stories__rail {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .onward-stories__rail-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--os-white);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
  }

  .onward-stories__rail-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 24, 53, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .onward-stories__rail-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .onward-stories__rail-btn--point .onward-stories__rail-icon {
    background: var(--os-gold);
    color: var(--os-navy);
    border-color: var(--os-gold);
  }

  .onward-stories__rail-btn--point svg {
    fill: currentColor;
    stroke: none;
  }

  /* Bottom sheet */
  .onward-stories__sheet {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 78vh;
    max-height: 78svh;
    display: flex;
    flex-direction: column;
    background: var(--os-white);
    color: var(--os-navy);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(105%);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    visibility: hidden;
  }

  .onward-stories__sheet.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .onward-stories__sheet-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(0, 24, 53, 0.1);
  }

  .onward-stories__sheet-head::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 44px;
    height: 4px;
    margin-left: -22px;
    border-radius: 2px;
    background: rgba(0, 24, 53, 0.2);
  }

  .onward-stories__sheet-title {
    margin: 6px 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .onward-stories__sheet-sub {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--os-blue);
  }

  .onward-stories__sheet-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--os-pale);
    color: var(--os-navy);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
  }

  .onward-stories__sheet-body {
    overflow-y: auto;
    padding: 14px 18px 24px;
    -webkit-overflow-scrolling: touch;
  }

  /* Inside the sheet the detail block is restyled for the light background */
  .onward-stories__sheet .onward-stories__summary {
    margin: 0;
    color: var(--os-navy);
  }

  .onward-stories__sheet .onward-stories__transcript {
    background: var(--os-pale);
    border-color: transparent;
  }

  .onward-stories__sheet .onward-stories__transcript-heading {
    color: var(--os-blue);
  }

  .onward-stories__sheet .onward-stories__line {
    color: var(--os-navy);
  }

  .onward-stories__sheet .onward-stories__line + .onward-stories__line {
    border-top-color: rgba(0, 24, 53, 0.1);
  }

  .onward-stories__sheet .onward-stories__line time {
    color: var(--os-blue);
  }

  .onward-stories__sheet .onward-stories__transcript-toggle,
  .onward-stories__sheet .onward-stories__transcript-empty {
    color: var(--os-blue);
  }

  .onward-stories__sheet .onward-stories__action {
    color: var(--os-navy);
    border-color: rgba(0, 24, 53, 0.3);
  }

  .onward-stories__sheet .onward-stories__next {
    color: var(--os-blue);
  }

  .onward-stories__scrim {
    position: fixed;
    z-index: 59;
    inset: 0;
    background: rgba(0, 24, 53, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease;
  }

  .onward-stories.has-sheet-open .onward-stories__scrim {
    opacity: 1;
    visibility: visible;
  }

  .onward-stories__end {
    min-height: 60svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
  }
}

/* Snap only while the feed is on screen; JS toggles this class on <html>. `proximity`, not
   `mandatory`, so the rest of the page is never hijacked. */
html.onward-stories-snap {
  scroll-snap-type: y proximity;
}

@media (prefers-reduced-motion: reduce) {
  html.onward-stories-snap {
    scroll-snap-type: none;
  }

  .onward-stories *,
  .onward-stories *::before,
  .onward-stories *::after,
  .onward-stories-header *,
  .onward-story-detail *,
  .onward-story-detail *::before,
  .onward-story-detail *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   DESKTOP  (>= 980px): two-column feed with sticky tile
   ========================================================================== */

@media (min-width: 980px) {
  .onward-stories__intro {
    padding: 48px 0 36px;
  }

  .page-header.onward-stories-header .onward-stories__intro {
    padding-top: 28px;
  }

  .onward-stories__bar {
    display: none;
  }

  .onward-stories__open-sheet,
  .onward-stories__rail,
  .onward-stories__sheet,
  .onward-stories__scrim {
    display: none;
  }

  .onward-stories__feed {
    padding: 24px 0 40px;
  }

  .onward-stories__story {
    display: grid;
    grid-template-columns: var(--os-tile-w) minmax(0, 560px);
    justify-content: center;
    align-items: start;
    column-gap: 64px;
    padding: 40px 40px;
    scroll-margin-top: 24px;
  }

  .onward-stories__story + .onward-stories__story {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .onward-stories__media {
    position: sticky;
    top: calc(40px + var(--os-sticky-top));
    width: var(--os-tile-w);
  }

  .onward-stories__tile {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transition: box-shadow 200ms ease;
  }

  .onward-stories__story.is-active .onward-stories__tile {
    box-shadow: var(--os-ring), 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .onward-stories__body {
    padding-top: 40px;
    max-width: 560px;
  }

  .onward-stories__who span::before {
    content: ' \00b7  ';
  }

  .onward-stories__end {
    padding: 80px 0 96px;
  }
}

@media (min-width: 1280px) {
  .onward-stories__story {
    column-gap: 88px;
  }
}

/* ==========================================================================
   Story detail page (onwardStoryDetail)
   Stock light page header + 9:16 player + copy on pale blue, transcript, navy back-to-feed.
   ========================================================================== */

.onward-story-detail {
  --os-navy: #001835;
  --os-gold: #e8b720;
  --os-gold-dark: #b48c13;
  --os-gold-ink: #001835;
  --os-blue: #0e4168;
  --os-pale: #e4f1f7;
  --os-sky: #9dcee6;
  --os-white: #ffffff;
  --os-ink: #001835;
  --os-muted: #333333;
  --os-sans: 'Figtree', Tahoma, Verdana, 'Segoe', sans-serif;
  --os-serif: 'PT Serif', 'Palatino', Georgia, serif;
  --os-site-header: 6.5rem;
  background: var(--os-pale);
  color: var(--os-ink);
  font-family: var(--os-sans);
  -webkit-font-smoothing: antialiased;
}

.onward-story-detail *,
.onward-story-detail *::before,
.onward-story-detail *::after {
  box-sizing: border-box;
}

.onward-story-detail [hidden] {
  display: none !important;
}

.onward-story-detail a:focus-visible,
.onward-story-detail button:focus-visible {
  outline: 3px solid var(--os-navy);
  outline-offset: 3px;
}

.osd__container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 740px) {
  .osd__container {
    padding: 0 40px;
  }
}

.osd__article {
  padding: 48px 0 56px;
  background: var(--os-pale);
}

.osd__layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.osd__tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--os-blue);
  aspect-ratio: 9 / 16;
  width: min(100%, 360px);
  margin: 0 auto;
}

.osd__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.osd__tile .lazy-video {
  position: absolute;
  inset: 0;
  --icon-wrapper-size: 76px;
  --icon-wrapper-color: var(--os-gold);
  --icon-wrapper-scale: 1;
  --icon-size: 22px;
  --icon-color: var(--os-navy);
}

.osd__tile .lazy-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--os-navy);
}

.osd__tile .lazy-video__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--os-gold);
  color: var(--os-navy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.osd__tile .lazy-video__play-icon::before {
  content: none;
  display: none;
}

.osd__tile .lazy-video__play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--os-navy);
  margin-left: 5px;
}

.osd__tile .lazy-video__play-icon .icon {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.osd__tile .lazy-video__iframe-wrapper,
.osd__tile .lazy-video__iframe-target,
.osd__tile .lazy-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
}

.osd__tile .lazy-video__iframe-wrapper {
  display: none;
}

.osd__tile .lazy-video.lazy-video--ready .lazy-video__iframe-wrapper,
.osd__tile .lazy-video.is-playing .lazy-video__iframe-wrapper,
.osd__tile .lazy-video.lazy-video--playing .lazy-video__iframe-wrapper {
  display: block;
  z-index: 3;
  background: #000;
  opacity: 1;
  visibility: visible;
}

.osd__tile .lazy-video.lazy-video--ready .lazy-video__play,
.osd__tile .lazy-video.is-playing .lazy-video__play,
.osd__tile .lazy-video.lazy-video--playing .lazy-video__play {
  display: none;
}

.osd__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.osd__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--os-blue);
}

.osd__badge::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: var(--os-gold);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.onward-story-detail .osd__title,
.onward-story-detail .osd__title.page-header__title {
  margin: 0;
  font-family: var(--os-serif);
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--os-navy);
  text-wrap: balance;
}

.osd__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 1rem;
  color: var(--os-blue);
}

.osd__who strong {
  font-weight: 800;
  font-size: 1rem;
}

.osd__who span {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--os-muted);
}

.osd__summary {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--os-navy);
  text-wrap: pretty;
}

.osd__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.osd__pill,
.osd__pill--button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 2px solid var(--os-blue);
  border-radius: 999px;
  background: transparent;
  color: var(--os-blue);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.osd__pill:hover,
.osd__pill--button:hover {
  background: var(--os-white);
  color: var(--os-navy);
}

.osd__transcript {
  padding: 40px 0;
  background: var(--os-pale);
  scroll-margin-top: calc(var(--os-site-header) + 72px);
}

.osd__transcript-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.osd__transcript-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--os-navy);
}

.osd__transcript-toggle {
  height: 36px;
  padding: 0 16px;
  border: 2px solid var(--os-navy);
  border-radius: 999px;
  background: var(--os-white);
  color: var(--os-navy);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.osd__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.osd__line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(14, 65, 104, 0.15);
  font-size: 1rem;
  line-height: 1.6;
}

.osd__line time {
  font-variant-numeric: tabular-nums;
  color: var(--os-blue);
  font-weight: 800;
}

.osd__lines[data-collapsed="true"] li:nth-child(n+4) {
  display: none;
}

.osd__transcript-empty {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--os-muted);
}

.osd__feed-cta {
  background: var(--os-navy);
  color: var(--os-white);
  padding: 40px 0 56px;
}

.osd__feed-cta .osd__container {
  overflow: visible;
}

.osd__feed-cta-path {
  position: relative;
  height: 110px;
  margin: 0 20px 24px 0;
}

.osd__feed-cta-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.osd__feed-cta-line {
  fill: none;
  stroke: var(--os-sky);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1800ms cubic-bezier(0.45, 0, 0.2, 1);
}

.osd__feed-cta.is-drawn .osd__feed-cta-line {
  stroke-dashoffset: 0;
}

.osd__feed-cta-star {
  position: absolute;
  right: 0;
  top: 50px;
  width: 40px;
  height: 40px;
  background: var(--os-gold);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  opacity: 0;
  transform: translate(50%, -50%) rotate(-60deg) scale(0.6);
  transform-origin: center;
  transition: opacity 400ms ease-out 1500ms, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.osd__feed-cta.is-drawn .osd__feed-cta-star {
  opacity: 1;
  transform: translate(50%, -50%) rotate(0deg) scale(1);
}

.osd__feed-cta.is-drawn.is-cta-hover .osd__feed-cta-star {
  transform: translate(50%, -50%) rotate(-90deg) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .osd__feed-cta-line,
  .osd__feed-cta-star {
    transition: none;
  }

  .osd__feed-cta-line {
    stroke-dashoffset: 0;
  }

  .osd__feed-cta-star {
    opacity: 1;
    transform: translate(50%, -50%) rotate(0deg) scale(1);
  }
}

.osd__feed-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.osd__feed-cta-text {
  margin: 0;
  font-family: var(--os-serif);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.3;
}

.osd__feed-cta-text em {
  font-style: italic;
  color: var(--os-gold);
}

.onward-story-detail .osd__feed-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--os-gold);
  color: var(--os-gold-ink);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: gap 200ms ease-out;
}

.onward-story-detail .osd__feed-cta-btn:hover,
.onward-story-detail .osd__feed-cta-btn:focus-visible {
  gap: 16px;
  color: var(--os-gold-ink);
}

.onward-story-detail .osd__feed-cta-btn:focus-visible {
  outline-color: var(--os-white);
}

@media (min-width: 980px) {
  .osd__layout {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 48px;
  }

  .osd__tile {
    margin: 0;
    justify-self: center;
  }

  .osd__article {
    padding: 56px 0 72px;
  }
}
