/* Story */
.story-hero {
  position: relative;
  display: grid;
  min-height: 244px;
  place-items: center;
  color: var(--color-reverse-text);
  background-image: linear-gradient(var(--overlay-dark-40), var(--overlay-dark-40)), var(--story-hero-image);
  background-position: center;
  background-size: cover;
}
.story-hero__inner { display: grid; min-height: inherit; place-items: center; }
.story-hero__copy { max-width: var(--container-narrow); text-align: center; }
.story-hero h1 { margin-bottom: 20px; color: inherit; font-size: 40px; }
.story-hero p { margin-bottom: 0; }

.story-development { overflow: hidden; background: var(--color-subtle-background); }
.story-development__inner { display: grid; gap: 48px; }
.story-development__copy { display: flex; flex-direction: column; gap: 20px; }
.story-development__copy > * { margin-bottom: 0; }
.story-eyebrow { color: var(--color-accent-orange); font-size: 18px; font-weight: 700; line-height: 1.4; }
.story-eyebrow--light { color: var(--color-accent-orange-lite); }
.story-development h2 { font-size: 36px; }
.story-development__media { position: relative; margin: 0; overflow: hidden; aspect-ratio: 600 / 640; border-radius: var(--radius-large); }
.story-development__media img { position: absolute; top: -41.5625%; left: -36%; width: 183.3333%; height: auto; max-width: none; }
.story-timeline { display: grid; gap: 24px; }
.story-timeline article { display: flex; flex-direction: column; gap: 8px; }
.story-timeline article > * { margin-bottom: 0; }
.story-timeline h3 { font-size: 32px; }
.story-research-start { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.story-research-start > * { margin-bottom: 0; }
.story-research-start > p { min-width: 140px; padding: 5px 25px 7px; background: var(--color-accent-orange-lite); font-size: 18px; font-weight: 500; }
.story-research-start h3 { font-size: 20px; line-height: 1.3; }
.story-research-start span { font-size: 42px; line-height: 1; }

.story-research { background: var(--color-main-blue); }
.story-research__intro { padding: 56px 24px; color: var(--color-reverse-text); }
.story-research__intro-inner { display: flex; max-width: 576px; margin-inline: auto; flex-direction: column; gap: 16px; }
.story-research__intro-inner > * { margin-bottom: 0; }
.story-research__intro h2 { color: inherit; font-size: 36px; }
.story-video { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-small); background: #000; cursor: pointer; }
.story-video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 240ms ease; }
.story-video:hover img { transform: scale(1.025); }
.story-video__play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: rgb(212 62 9 / 92%); box-shadow: 0 8px 24px rgb(0 0 0 / 28%); }
.story-video__play::after { position: absolute; top: 50%; left: 53%; transform: translate(-42%, -50%); border-width: 9px 0 9px 15px; border-style: solid; border-color: transparent transparent transparent #fff; content: ""; }

.story-evidence-stack { background: var(--color-surface); }
.story-evidence { display: flex; min-width: 0; padding: 64px 24px; overflow: hidden; flex-direction: column; gap: 32px; }
.story-evidence__header { display: flex; flex-direction: column; gap: 10px; }
.story-evidence__header > * { margin-bottom: 0; }
.story-evidence__tag { align-self: flex-start; padding: 3px 8px; color: var(--color-surface); background: var(--color-accent-orange); font-weight: 700; }
.story-evidence h2 { font-size: 28px; line-height: 1.3; }
.story-evidence__header > p:not(.story-evidence__tag) { color: var(--color-text); font-size: 14px; }
.story-range-slide { display: grid; gap: 10px; }
.story-range-slide > img { width: 100%; border-radius: var(--radius-small); }
.story-range-slide > img:last-child { clip-path: inset(0 1px); }
.story-range-slide figcaption { font-size: 14px; font-weight: 700; }

.story-chart-group { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.story-chart-group__heading { display: flex; align-items: center; gap: 12px; }
.story-chart-group h3 { margin-bottom: 0; font-size: 20px; line-height: 1.4; }
.story-chart-legend { display: flex; margin-left: auto; gap: 16px; }
.story-chart-legend__item { display: flex; align-items: center; gap: 5px; color: #156082; font-size: 14px; }
.story-chart-legend__item::before { width: 18px; height: 18px; background: #156082; content: ""; }
.story-chart-legend__item--post::before { background: #e97132; }
.evidence-carousel { min-width: 0; }
.evidence-carousel__track { display: flex; width: calc(100% + 24px); padding-right: 58px; overflow-x: auto; gap: 16px; overscroll-behavior-x: contain; scroll-padding-left: 0; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.evidence-carousel__track::-webkit-scrollbar { display: none; }
.evidence-carousel__slide { width: min(290px, 86vw); margin: 0; flex: 0 0 min(290px, 86vw); scroll-snap-align: start; }
.evidence-carousel__slide figcaption { margin-bottom: 6px; font-size: 13px; }
.evidence-carousel__slide img { width: 100%; border-radius: var(--radius-small); }
.evidence-carousel--strength .evidence-carousel__slide img { clip-path: inset(1px); }
.evidence-carousel__controls { display: flex; margin-top: 12px; align-items: center; justify-content: flex-end; gap: 12px; }
.evidence-carousel__controls p { min-width: 48px; margin: 0; color: #597587; font-size: 13px; text-align: center; }
.evidence-carousel__controls button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--color-main-blue); border-radius: 50%; color: var(--color-main-blue); background: var(--color-surface); cursor: pointer; }
.evidence-carousel__controls button:disabled { opacity: 0.35; cursor: default; }
.evidence-carousel__controls button img { width: 16px; height: 16px; }
.evidence-carousel__controls button[data-carousel-next] img { transform: rotate(180deg); }

.story-evidence__wide-image { margin: 0; text-align: center; }
.story-evidence__wide-image img { width: 100%; border-radius: var(--radius-small); }
.story-evidence__wide-image figcaption { margin-top: 6px; color: #597587; font-size: 13px; }
.story-table-block { display: flex; flex-direction: column; gap: 10px; }
.story-table-block h3 { margin-bottom: 0; font-size: 18px; line-height: 1.4; }
.story-table-scroll { max-width: 100%; overflow-x: clip; }
.story-data-table { width: 100%; min-width: 0; border-spacing: 1px; border-collapse: separate; table-layout: fixed; font-size: 10px; text-align: center; }
.story-data-table--wide { min-width: 0; }
.story-data-table th, .story-data-table td { padding: 4px 2px; overflow-wrap: anywhere; background: var(--color-subtle-background); font-weight: 500; }
.story-data-table thead tr:first-child th, .story-data-table tbody th { color: var(--color-surface); background: var(--color-main-blue); }
.story-data-table .story-data-table__accent { color: var(--color-accent-orange); }
.story-definitions { display: grid; margin: 0; gap: 10px; }
.story-definitions > div { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: start; }
.story-definitions dt { padding: 2px 8px; color: var(--color-surface); background: var(--color-main-blue); font-weight: 700; text-align: center; }
.story-definitions dd { margin: 0; font-size: 14px; }
.story-activity-groups { display: grid; gap: 32px; }
.story-activity-group { display: grid; gap: 14px; }
.story-activity-group__heading > * { margin-bottom: 0; }
.story-activity-group__heading > p { font-size: 14px; }
.story-activity-group__heading h3 { font-size: 24px; }
.story-activity-group__heading h3 span,
.story-activity-group__heading h3 strong { display: block; }
.story-activity-group__heading h3 strong { color: var(--color-accent-orange); }
.story-activity-note { padding: 5px; border: 1px solid var(--color-main-blue); }
.story-activity-note p { margin: 0; font-size: 14px; }
.story-activity-group figure { margin: 0; }
.story-activity-group figcaption { margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.story-activity-group img { width: 100%; border-radius: var(--radius-small); }

@media (min-width: 768px) {
  .story-development__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .story-development__media { grid-column: 2; grid-row: 1 / span 2; }
  .story-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-research-start { grid-column: 1 / -1; }
  .story-data-table { font-size: 12px; }
  .story-data-table th, .story-data-table td { padding: 5px 4px; }
}
@media (min-width: 1024px) {
  .story-hero { min-height: 368px; }
  .story-hero h1 { font-size: 60px; }
  .story-hero p { font-size: 20px; }
  .story-development__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
  .story-eyebrow { font-size: 26px; }
  .story-development h2 { font-size: 60px; }
  .story-development__copy > p:last-child { font-size: 20px; }
  .story-timeline h3 { font-size: 48px; }
  .story-timeline p { font-size: 18px; }
  .story-research-start h3 { font-size: 32px; }

  .story-research { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .story-research__intro { position: sticky; top: var(--header-height); display: grid; min-height: calc(100vh - var(--header-height)); padding: 64px; place-items: center; }
  .story-research__intro h2 { font-size: 60px; }
  .story-research__intro-inner > p:not(.story-eyebrow) { font-size: 20px; }
  .story-evidence { height: 900px; min-height: 900px; padding: 40px; gap: 30px; justify-content: center; }
  .story-evidence > * { flex-shrink: 0; }
  .story-evidence__header { gap: 0; }
  .story-evidence__tag { margin-bottom: 7px; font-size: 16px; line-height: 1.5; }
  .story-evidence h2 { font-size: 32px; }
  .story-evidence__header h2 { margin-bottom: 16px; }
  .story-evidence__header > p:not(.story-evidence__tag) { font-size: 16px; }
  .story-evidence__header > p:not(.story-evidence__tag) { line-height: 1.5; }
  .story-evidence--range .story-evidence__header { max-width: 560px; }
  .story-chart-group,
  .evidence-carousel { width: 100%; }
  .evidence-carousel__controls { display: none; }

  .evidence-carousel--range { overflow: visible; }
  .evidence-carousel--range .evidence-carousel__track { display: flex; width: 100%; padding: 0; overflow: visible; flex-direction: column; gap: 30px; scroll-snap-type: none; }
  .evidence-carousel--range .story-range-slide { display: grid; width: 100%; min-width: 0; height: 243.226px; flex: 0 0 243.226px; grid-template-columns: 45.3125% 51.09375%; grid-template-rows: 24px 155.25px; align-content: center; column-gap: 3.125%; row-gap: 10px; }
  .evidence-carousel--range .story-range-slide > img:first-child { width: 100%; height: 243.226px; grid-column: 1; grid-row: 1 / span 2; object-fit: cover; }
  .evidence-carousel--range .story-range-slide figcaption { margin: 0; align-self: end; grid-column: 2; grid-row: 1; font-size: 16px; line-height: 1.5; }
  .evidence-carousel--range .story-range-slide > img:last-child { width: 100%; height: 155.25px; grid-column: 2; grid-row: 2; object-fit: cover; }

  .story-evidence--balance .story-chart-group { height: 292.731px; gap: 10px; overflow: visible; }
  .story-evidence--balance .story-chart-group__heading { height: 36px; }
  .story-evidence--balance .story-chart-group h3 { font-size: 26px; line-height: 1.4; }
  .story-evidence--balance .story-chart-legend { gap: 20px; }
  .story-evidence--balance .story-chart-legend__item { font-size: 16px; }
  .story-evidence--balance .story-chart-legend__item::before { width: 20px; height: 20px; }
  .evidence-carousel--balance { position: relative; height: 246.731px; overflow: visible; }
  .evidence-carousel--balance .evidence-carousel__track { display: flex; width: 100%; height: 246.731px; padding: 0; overflow-x: auto; gap: 14.925px; cursor: grab; scroll-snap-type: x mandatory; user-select: none; }
  .evidence-carousel--balance .evidence-carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .evidence-carousel--balance .evidence-carousel__slide { display: flex; width: 395px; min-width: 395px; height: 246.731px; margin: 0; flex: 0 0 395px; flex-direction: column; gap: 3.731px; }
  .evidence-carousel--balance .evidence-carousel__slide figcaption { margin: 0; font-size: 12px; line-height: 1.5; }
  .evidence-carousel--balance .evidence-carousel__slide img { width: 395px; height: 225px; max-width: none; object-fit: cover; }
  .evidence-carousel--balance .evidence-carousel__controls { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
  .evidence-carousel--balance .evidence-carousel__controls p { display: none; }
  .evidence-carousel--balance .evidence-carousel__controls button { position: absolute; top: 50%; display: grid; width: 48px; height: 48px; transform: translateY(-50%); pointer-events: auto; }
  .evidence-carousel--balance .evidence-carousel__controls button[data-carousel-prev] { left: -30px; }
  .evidence-carousel--balance .evidence-carousel__controls button[data-carousel-next] { right: -30px; }

  .story-evidence__wide-image { position: relative; width: 500px; height: 317.731px; margin-inline: auto; }
  .story-evidence__wide-image img { width: 500px; height: 317.731px; object-fit: cover; }
  .story-evidence__wide-image figcaption { position: absolute; top: 40.682px; left: 121px; width: 256px; margin: 0; color: var(--color-text); font-size: 16px; line-height: 1.5; }
  .story-table-block h3 { font-size: 26px; line-height: 1.4; }
  .story-table-scroll { overflow: visible; }
  .story-data-table { font-size: 14px; line-height: 1.5; }
  .story-data-table th, .story-data-table td { height: 27px; padding: 3px 2px; overflow-wrap: normal; }
  .story-data-table th:first-child { width: 60px; }
  .story-definitions { gap: 10px; }
  .story-definitions > div { grid-template-columns: 45px 1fr; gap: 5px; align-items: center; }
  .story-definitions dt { height: 20px; padding: 0; font-size: 16px; font-weight: 400; line-height: 1.5; }
  .story-definitions dd { font-size: 16px; line-height: 1.5; }

  .evidence-carousel--strength { overflow: visible; }
  .evidence-carousel--strength .evidence-carousel__track { display: flex; width: 394px; margin-left: 85px; padding: 0; overflow: visible; flex-direction: column; gap: 10px; scroll-snap-type: none; }
  .evidence-carousel--strength .evidence-carousel__slide { width: 394px; height: 340px; min-width: 394px; margin: 0; flex: 0 0 340px; }
  .evidence-carousel--strength .evidence-carousel__slide img { width: 394px; height: 340px; max-width: none; object-fit: cover; }

  .story-activity-groups { display: flex; flex-direction: column; gap: 30px; }
  .story-activity-group { display: grid; width: 100%; grid-template-columns: 180px repeat(2, minmax(0, 210px)); align-items: start; gap: 20px; }
  .story-activity-group__heading { display: flex; width: 180px; flex-direction: column; gap: 10px; justify-content: center; }
  .story-activity-group__heading > p { font-size: 14px; line-height: 1.5; }
  .story-activity-group__heading h3 { font-size: 26px; line-height: 1.4; }
  .story-activity-note { width: 180px; min-height: 73px; }
  .story-activity-note p { font-size: 14px; line-height: 1.5; }
  .story-activity-group > .evidence-carousel { grid-column: 2 / span 2; }
  .evidence-carousel--activity { overflow: visible; }
  .evidence-carousel--activity .evidence-carousel__track { display: grid; width: 440px; padding: 0; overflow: visible; grid-template-columns: repeat(2, 210px); gap: 20px; scroll-snap-type: none; }
  .evidence-carousel--activity .evidence-carousel__slide { display: flex; width: 210px; min-width: 210px; margin: 0; flex: none; flex-direction: column; gap: 3.731px; }
  .evidence-carousel--activity .evidence-carousel__slide figcaption { margin: 0; font-size: 12px; line-height: 1.5; }
  .evidence-carousel--activity .evidence-carousel__slide img { width: 210px; height: 164px; max-width: none; object-fit: cover; object-position: center 42%; }
  .story-activity-group:last-child .evidence-carousel--activity .evidence-carousel__slide img { height: 151px; }
}

@media (min-width: 1400px) {
  .evidence-carousel--range .evidence-carousel__track,
  .evidence-carousel--range .story-range-slide { width: 640px; }
  .evidence-carousel--range .story-range-slide {
    grid-template-columns: 290px 327px;
    column-gap: 20px;
  }
  .story-evidence--balance .story-chart-group,
  .evidence-carousel--balance,
  .story-activity-group { width: 640px; }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .story-research { grid-template-columns: minmax(0, 1fr) 720px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .story-research { display: block; }
  .story-research__intro {
    position: static;
    min-height: auto;
    padding-block: 80px;
  }
  .story-evidence--strength { height: auto; min-height: 0; padding-block: 64px; }
  .evidence-carousel--strength .evidence-carousel__track { width: 100%; margin-left: 0; flex-direction: row; justify-content: center; gap: 20px; }
  .evidence-carousel--strength .evidence-carousel__slide { width: calc((100% - 20px) / 2); min-width: 0; max-width: 394px; height: auto; flex: 1 1 calc((100% - 20px) / 2); }
  .evidence-carousel--strength .evidence-carousel__slide img { width: 100%; height: auto; max-width: 394px; object-fit: contain; }
}
