/* Phase 7A.2: approved Stories-only responsive and navigation corrections. */

@media (max-width: 1020px) {
  .stories-library .movement-index-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1rem;
    color: var(--navy);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  .stories-library .movement-index-swipe {
    color: var(--red);
    white-space: nowrap;
  }
}

@media (min-width: 640px) and (max-width: 760px) {
  .stories-library .card-grid,
  .stories-library #relationships-build-capacity .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stories-library .card-grid .story-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .stories-library .story-movement {
    scroll-margin-top: 0;
  }
}