/* Homepage team: a swipeable strip on phones, original grid elsewhere. */
.home-editorial #home-team-track > .home-team-mobile-only {
  display: none;
}

.home-editorial .home-team-controls {
  display: none;
}

@media (max-width: 640px) {
  .home-editorial .home-team-controls:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
  }

  .home-editorial .home-team-swipe-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
  }

  .home-editorial .home-team-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
  }

  .home-editorial .home-team-progress {
    min-width: 34px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }

  .home-editorial .home-team-arrow {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--sky);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .home-editorial .home-team-arrow:disabled {
    border-color: var(--line);
    color: var(--stone);
    opacity: .45;
    cursor: default;
  }

  .home-editorial #home-team-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .home-editorial #home-team-track::-webkit-scrollbar {
    display: none;
  }

  .home-editorial #home-team-track > .home-team-mobile-only {
    display: block;
  }

  .home-editorial #home-team-track > .person-card {
    flex: 0 0 82%;
    width: 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }
}

/* Desktop team strip: all profiles, readable cards, manual controls and autoplay. */
@media (min-width: 641px) {
  .home-editorial .home-team-controls:not([hidden]) {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 20px;
  }
  .home-editorial .home-team-swipe-hint { display: none; }
  .home-editorial .home-team-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .home-editorial .home-team-progress {
    min-width: 42px;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
  .home-editorial .home-team-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--sky);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .home-editorial .home-team-arrow:disabled {
    border-color: var(--line);
    color: var(--stone);
    opacity: .45;
    cursor: default;
  }
  .home-editorial #home-team-track {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .home-editorial #home-team-track > .home-team-mobile-only { display: flex; }
  .home-editorial #home-team-track > .person-card {
    flex: 0 0 clamp(240px, 28vw, 340px);
    display: flex;
    flex-direction: column;
    width: clamp(240px, 28vw, 340px);
    scroll-snap-align: start;
  }
  .home-editorial #home-team-track > .person-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  .home-editorial #home-team-track > .person-card .text-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
  }
}

/* Match the compact portrait cards used on the team and office pages. */
.home-editorial #home-team-track > .person-card{background:transparent;border:0;border-radius:14px;overflow:visible}
.home-editorial #home-team-track > .person-card img{border-radius:14px;transition:transform .25s ease}
.home-editorial #home-team-track > .person-card > div{padding:14px 0 0}
.home-editorial #home-team-track > .person-card h3{font:500 24px/1.2 "Playfair Display",Georgia,serif;color:#345b6e;margin:0 0 6px}
.home-editorial #home-team-track > .person-card p{font-size:14px;line-height:1.5;color:#5b707a;margin:0}
.home-editorial #home-team-track > .person-card:hover img{transform:translateY(-3px)}
.home-editorial #home-team-track > .person-card:hover h3,.home-editorial #home-team-track > .person-card:focus-visible h3{text-decoration:underline;text-underline-offset:5px}
.home-editorial #home-team-track > .person-card:focus-visible{outline:2px solid #345b6e;outline-offset:-2px}
@media(prefers-reduced-motion:reduce){.home-editorial #home-team-track > .person-card img{transition:none}.home-editorial #home-team-track > .person-card:hover img{transform:none}}
