/* Editorial chapter navigation and runner portraits; scoped to module 02. */
.runner-stories { --accent: hsl(200 28% 39.2%); --heading: hsl(200 5.88% 20%); --line: hsl(200 16.67% 88.24%); padding-block: 42px 48px; background: #faf9f6; color: var(--copy); }
.runner-stories-eyebrow { color: var(--accent); font-size: 12px; line-height: 18px; letter-spacing: 1px; margin-bottom: 8px; }
.runner-stories-heading h2 { color: var(--heading); font: 400 32px/44px var(--serif); letter-spacing: 1px; }
.story-chapters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.story-chapter { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 3px; min-width: 0; padding: 9px 6px 12px; border: 0; border-bottom: 2px solid hsl(200 12.00% 85.29%); background: transparent; color: hsl(200 7.34% 42.75%); cursor: pointer; }
.story-chapter-title { font-size: 16px; font-weight: 500; line-height: 26px; }
.story-chapter-description { font-size: 12px; line-height: 18px; color: hsl(200 4.03% 48.63%); }
.story-chapter[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--accent); }
.story-chapter[aria-selected="true"] .story-chapter-description { color: var(--accent); }
.story-chapter:hover { color: var(--accent); }
.runner-story-panels { margin-top: 28px; }
.runner-story-panel { min-width: 0; }
.story-fallback-title { color: var(--heading); font: 400 24px/34px var(--serif); margin: 24px 0 12px; }
.runner-story-layout { display: grid; grid-template-columns: 45fr 55fr; gap: 48px; align-items: start; }
.runner-story-photo { height: 500px; min-width: 0; background: #edf0e9; }
.runner-story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.runner-story-photo--restart img { object-position: 50% 82%; }
.runner-story-photo--pace img { object-fit: contain; }
.runner-story-photo--world img { object-position: 46% 50%; }
.runner-story-reading { min-width: 0; }
.main-runner-identity { display: flex; gap: 12px; align-items: baseline; color: hsl(200 11.31% 43.33%); font-size: 12px; line-height: 18px; }
.main-runner-identity > span + span { color: var(--accent); }
.main-runner-heading h3 { color: var(--heading); font: 500 24px/38px var(--serif); margin: 6px 0 0; }
.runner-story-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-block: 12px; }
.runner-story-facts > div { display: flex; align-items: baseline; gap: 10px; position: relative; max-width: 100%; }
.runner-story-facts > div + div { padding-left: 16px; }
.runner-story-facts > div + div::before { content: ""; position: absolute; left: 0; top: 50%; height: 18px; border-left: 1px solid hsl(200 10.64% 81.57%); transform: translateY(-50%); }
.runner-story-facts dt { order: 1; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 28px; margin: 0; min-width: 0; }
.runner-story-facts dd { flex-shrink: 0; color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 28px; font-variant-numeric: lining-nums tabular-nums; }
.main-runner-copy { color: hsl(0 0% 55%); font-size: 14px; line-height: 24px; text-align: justify; text-justify: inter-ideograph; }
.runner-story-quote { color: var(--accent); }
.story-feedback-link { display: inline-block; margin-left: 6px; color: var(--accent); font-size: 13px; line-height: inherit; white-space: nowrap; text-decoration: none; text-underline-offset: 4px; }
.story-feedback-link:hover { text-decoration: underline; }
.related-runners { display: flex; flex-direction: column; padding: 0; list-style: none; margin: 18px 0 0; row-gap: 12px; }
.related-runners > li { display: flex; }
.related-runners > li:last-child { padding-bottom: 0; }
.related-runner-link { display: grid; grid-template-columns: 14px minmax(0,1fr); column-gap: 8px; align-content: start; flex: 1; min-width: 0; padding: 0; color: inherit; text-decoration: none; }
.related-runner-number { color: hsl(200 10% 60%); font-size: 11px; line-height: 18px; font-variant-numeric: tabular-nums; }
.related-runner-content { min-width: 0; }
.related-runners > li:last-child .related-runner-link { padding-bottom: 0; }
.related-runner-arrow { color: var(--accent); opacity: .55; font-size: 15px; white-space: nowrap; }
.related-runner-link:hover .related-runner-copy, .related-runner-link:focus-visible .related-runner-copy { color: hsl(200 24.72% 34.90%); }
.related-runner-link:hover .related-runner-arrow, .related-runner-link:focus-visible .related-runner-arrow { opacity: 1; }
.story-feedback-readers { display: contents; }
.related-runner-identity { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; line-height: 18px; }
.related-runner-tag { color: hsl(200 2.77% 49.61%); font-size: 12px; }
.related-runner-name { color: var(--accent); font-size: 12px; font-weight: 500; }
.related-runner-copy { color: hsl(0 0% 55%); font-size: 12px; line-height: 20px; margin-top: 3px; text-align: justify; text-justify: inter-ideograph; }
.related-story-block { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.65fr); gap: 24px; margin-top: 16px; }
.related-story-block .related-runners, .has-story-tabs .related-story-block .related-runners { margin: 0; }
.related-story-photo { min-width: 0; display: flex; flex-direction: column; }
.related-story-photo-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #edf0e9; }
.related-story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.runner-story-panel + .runner-story-panel { margin-top: 48px; }
.runner-stories.has-story-tabs .runner-story-panels { display: grid; }
.has-story-tabs .story-fallback-title { display: none; }
.has-story-tabs .runner-story-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; margin-top: 0; transition: opacity 160ms ease; }
.has-story-tabs .runner-story-panel.is-current { visibility: visible; opacity: 1; pointer-events: auto; }
.runner-story-panel:focus:not(:focus-visible) { outline: none; }
.runner-story-noscript { font-size: 12px; line-height: 18px; margin-top: 12px; }

@media (min-width: 901px) {
  .runner-stories { min-height: 100svh; display: grid; align-items: center; }
  .story-chapters { margin-top: 26px; }
  /* Fill the actual remaining space after headings, instead of subtracting a fixed height. */
  .runner-stories.has-story-tabs { align-items: stretch; }
  .runner-stories.has-story-tabs > .shell { display: flex; flex-direction: column; }
  .has-story-tabs .runner-stories-heading, .has-story-tabs .story-chapters { flex-shrink: 0; }
  .has-story-tabs .runner-story-panels { flex: 1 0 auto; }
  .has-story-tabs .runner-story-panel { display: flex; flex-direction: column; }
  .has-story-tabs .runner-story-layout { flex: 1; align-items: stretch; }
  .has-story-tabs .runner-story-photo { height: auto; position: relative; min-height: 0; }
  .has-story-tabs .runner-story-photo img { position: absolute; inset: 0; }
  .has-story-tabs .runner-story-reading { display: flex; flex-direction: column; }
  .has-story-tabs .related-runners { display: flex; flex-direction: column; flex: 1; margin-top: 16px; }
  .has-story-tabs .related-runners > li { flex: 1; }
  /* Share the remaining column height, with a clear gap after the main feedback link. */
  .has-story-tabs .related-story-block { flex: 1; margin-top: 36px; min-height: min-content; }
  .has-story-tabs .related-story-photo-frame { flex: 1; min-height: 0; aspect-ratio: auto; }
  .has-story-tabs .related-story-photo img { position: absolute; inset: 0; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .runner-story-layout { gap: 30px; grid-template-columns: 42fr 58fr; }
  .main-runner-heading h3 { font-size: 24px; line-height: 36px; }
  .related-story-block { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .related-story-photo { display: none; }
}
@media (min-width: 901px) and (max-height: 860px) {
  .runner-stories { padding-block: 18px; }
  .story-chapters { margin-top: 29px; }
  .story-chapter { padding-block: 6px; }
  .main-runner-heading h3 { font-size: 24px; line-height: 32px; }
  .main-runner-heading h3 { margin-top: 4px; }
  .has-story-tabs .related-runners { margin-top: 6px; }
  .related-runners { row-gap: 8px; }
  .related-runner-copy { font-size: 12px; line-height: 20px; }
  .related-story-block .related-runner-copy { line-height: 18px; }
  .related-story-block { margin-top: 6px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .runner-stories { padding-block: 16px; }
  .has-story-tabs .related-runners { margin-top: 0; }
  .related-story-block { margin-top: 0; }
  .related-runner-identity { line-height: 16px; }
  .related-runner-copy { line-height: 20px; margin-top: 2px; }
  .related-runners { row-gap: 6px; }
  .related-story-block .related-runner-copy { line-height: 18px; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .related-story-block .related-runners { row-gap: 2px; }
  .main-runner-heading h3 { margin-top: 0; }
}
@media (max-width: 900px) {
  .runner-stories { padding-block: 42px 48px; }
  .runner-stories-heading h2 { font-size: 24px; line-height: 34px; font-weight: 500; }
  .story-chapters { gap: 12px; }
  .story-chapter { padding-inline: 0; }
  .story-chapter-title { font-size: 14px; line-height: 24px; }
  .runner-story-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .runner-story-photo { height: auto; }
  .runner-story-photo img { height: auto; }
  .runner-story-photo--restart img { aspect-ratio: 4 / 3; }
  .runner-story-photo--pace img { aspect-ratio: 3 / 4; }
  .runner-story-photo--world img { aspect-ratio: 1300 / 867; object-fit: contain; }
  .main-runner-heading h3 { font-size: 24px; line-height: 34px; }
  .related-runners { display: flex; flex-direction: column; margin-top: 24px; row-gap: 24px; }
  .related-story-block { grid-template-columns: minmax(0,1fr); margin-top: 24px; }
  .related-story-photo { width: min(240px,100%); justify-self: end; }
}
@media (max-width: 480px) {
  .story-chapters { gap: 9px; }
  .story-chapter-title { min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .story-chapter-description { font-size: 12px; line-height: 18px; min-height: 36px; display: flex; align-items: start; justify-content: center; }
  .runner-stories-heading h2 { letter-spacing: 0; }
  .main-runner-heading h3 { font-size: 24px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-story-tabs .runner-story-panel { transition: none; }
}

/* Figma-approved color-graded photos and their image-slot crops, theme 2 only. */
.runner-story-photo--pace { position: relative; overflow: hidden; }
#story-panel-pace .runner-story-photo img { position: absolute; left: -2.702703%; top: -40.734824%; width: 129.729730%; height: 143.130990%; max-width: none; object-fit: cover; }
#story-panel-pace .related-story-photo img { left: -16.115702%; top: 0; width: 133.057851%; height: 100.467290%; max-width: none; object-fit: cover; }
@media (max-width: 900px) { .runner-story-photo--pace { aspect-ratio: 518 / 626; } }

/* Figma snapshot after the user replaced the source images: theme 3 only. */
.runner-story-photo--world { position: relative; overflow: hidden; }
#story-panel-world .runner-story-photo img { position: absolute; left: 0; top: -13.578275%; width: 109.266409%; height: 161.022364%; max-width: none; object-fit: cover; }
#story-panel-world .related-story-photo img { left: -41.735537%; top: 0; width: 237.603306%; height: 100.700935%; max-width: none; object-fit: cover; }
@media (max-width: 900px) { .runner-story-photo--world { aspect-ratio: 518 / 626; } }

@media (max-width: 900px) {
  #story-panel-world .related-story-photo img { left: 0; top: 0; width: 100%; height: 100%; object-position: 40% center; }
}

/* Latest Figma photo snapshot, theme 1; main image mirrors the design layer. */
.runner-story-photo--restart { position: relative; overflow: hidden; }
#story-panel-restart .runner-story-photo img { position: absolute; left: .193050%; top: -8.785942%; width: 102.316602%; height: 120.447284%; max-width: none; object-fit: cover; object-position: center; transform: scaleX(-1); }
#story-panel-restart .related-story-photo img { left: -36.693548%; top: -3.271028%; width: 145.564516%; height: 112.383178%; max-width: none; object-fit: cover; object-position: center; }
@media (max-width: 900px) { .runner-story-photo--restart { aspect-ratio: 518 / 626; } }

/* Keep keyboard focus within the stories section on its local UI palette. */
.runner-stories :focus-visible { outline-color: var(--accent); }
