/* Careers in sport: the two role carousels and the sheet that opens for each role.
   Tokens come from v4.css. No shadows: depth is ground, surface and raised. */

/* carousel */
.rc{--rc-w:clamp(272px,78vw,340px)}
.rc + .rc{margin-top:var(--v-sec)}
.rc-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 28px;margin-bottom:24px}
.rc-head__copy{display:flex;flex-direction:column;gap:12px;min-width:0}
.rc-head__copy .v-text{max-width:600px}
.rc-nav{display:flex;gap:12px;flex:0 0 auto}
.rc-nav[hidden]{display:none}
.rc-btn{box-sizing:border-box;width:44px;height:44px;padding:0;border-radius:999px;border:1.5px solid rgba(247,244,238,.35);background:transparent;color:var(--v-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.rc-btn:disabled{opacity:.35;cursor:default}

.rc-track{display:grid;grid-auto-flow:column;grid-auto-columns:var(--rc-w);grid-template-rows:auto;column-gap:16px;row-gap:8px;
  margin-inline:calc(-1 * var(--v-gut));margin-block:-8px;padding:8px var(--v-gut);overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scroll-padding-inline:var(--v-gut);scrollbar-width:thin;scrollbar-color:var(--v-line2) transparent}
@media (prefers-reduced-motion:no-preference){.rc-track{scroll-behavior:smooth}}

.rc-tile{box-sizing:border-box;display:flex;flex-direction:column;gap:8px;padding:24px;border-radius:20px;border:1px solid var(--v-line);background:var(--v-surface);color:var(--v-ink);scroll-snap-align:start;transition:background-color .2s,border-color .2s}
.rc-tile__fam{font-size:15px;line-height:22px;font-weight:500;color:var(--v-gold)}
.rc-tile__name{font-size:20px;line-height:26px;font-weight:700;letter-spacing:-.01em}
.rc-tile__sum{font-size:16px;line-height:26px;color:var(--v-ink2)}
.rc-tile__takes{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding-top:12px;border-top:1px solid var(--v-line)}
.rc-tile__lab{font-size:14px;line-height:20px;font-weight:600;color:var(--v-muted)}
.rc-tile__list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:15px;line-height:22px;color:var(--v-ink2)}
.rc-tile__list li{position:relative;padding-left:16px}
.rc-tile__list li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:999px;background:var(--v-gold)}
.rc-tile .v-go{margin-top:8px;align-self:flex-end}

/* Every tile in a carousel borrows the row lines of the track, one row for each part, so the label, name, summary and list start on the same line across the row. */
@supports (grid-template-rows:subgrid){
  .rc-track{grid-template-rows:repeat(5,auto)}
  .rc-tile{display:grid;grid-template-rows:subgrid;grid-row:span 5;align-content:start;row-gap:8px}
  .rc-tile .v-go{align-self:auto;justify-self:end}
}

/* the sheet */
.rc-sheet{box-sizing:border-box;position:fixed;width:min(720px,calc(100% - 48px));max-width:none;max-height:min(88dvh,880px);margin:auto;padding:0;border:1px solid var(--v-line2);border-radius:28px;background:var(--v-surface);color:var(--v-ink);font-family:var(--v-font);overflow:hidden}
.rc-sheet[open]{display:flex;flex-direction:column}
.rc-sheet::backdrop{background:rgba(11,15,21,.78)}
.rc-sheet *,.rc-sheet *::before,.rc-sheet *::after{box-sizing:border-box}
.rc-sheet__bar{flex:0 0 auto;display:flex;justify-content:flex-end;padding:12px 12px 0}
.rc-sheet__x{flex:0 0 auto;width:44px;height:44px;padding:0;border-radius:999px;border:1px solid rgba(247,244,238,.3);background:var(--v-raised);color:var(--v-ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.rc-sheet__x svg{width:20px;height:20px}
.rc-sheet__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 28px max(28px,env(safe-area-inset-bottom))}
.rc-sheet__scroll:focus{outline:none}
html.rc-lock{overflow:hidden}
@media (prefers-reduced-motion:no-preference){
  .rc-sheet[open]{animation:rc-rise .3s var(--v-ease)}
  .rc-sheet[open]::backdrop{animation:rc-fade .3s linear}
  @keyframes rc-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
  @keyframes rc-fade{from{opacity:0}to{opacity:1}}
}

/* one role: the same parts in the sheet and in the plain list */
.rc-role__head{display:flex;flex-direction:column;gap:8px}
.rc-role__fam{margin:0;font-size:15px;line-height:22px;font-weight:500;color:var(--v-gold)}
.rc-role__name{margin:0;font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.02em;text-wrap:balance}
.rc-role__name:focus{outline:none}
.rc-role__sum{margin:0;max-width:560px;font-size:17px;line-height:28px;color:var(--v-ink2)}
.rc-sheet .rc-role__head{align-items:center;text-align:center}
.rc-part{margin-top:28px;padding-top:24px;border-top:1px solid var(--v-line)}
.rc-part__t{margin:0 0 16px;font-size:20px;line-height:26px;font-weight:700;letter-spacing:-.01em}
.rc-steps,.rc-skills,.rc-bul,.rc-stages,.rc-leads{margin:0;padding:0;list-style:none}
.rc-steps,.rc-skills,.rc-stages{display:flex;flex-direction:column;gap:16px}
.rc-steps,.rc-bul{font-size:16px;line-height:26px;color:var(--v-ink2)}
.rc-steps{counter-reset:rc}
.rc-steps li{position:relative;padding-left:36px;counter-increment:rc}
.rc-steps li::before{content:counter(rc);position:absolute;left:0;top:0;width:24px;height:26px;font-weight:600;color:var(--v-gold)}
.rc-bul{display:flex;flex-direction:column;gap:12px}
.rc-bul li{position:relative;padding-left:20px}
.rc-bul li::before{content:"";position:absolute;left:0;top:10px;width:6px;height:6px;border-radius:999px;background:var(--v-gold)}
.rc-skills li,.rc-stages li{font-size:16px;line-height:26px;color:var(--v-ink2)}
.rc-stages li{display:flex;flex-direction:column;gap:2px}
.rc-skills strong,.rc-stages strong{font-weight:600;color:var(--v-ink)}
.rc-note{margin:16px 0 0;padding:16px;border-radius:16px;border:1px solid var(--v-line2);background:var(--v-raised);font-size:15px;line-height:24px;color:var(--v-ink)}
.rc-note strong{color:var(--v-gold);font-weight:600}
.rc-leads li{border-top:1px solid var(--v-line)}
.rc-lead a,.rc-lead__plain{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding-block:6px;font-size:17px;line-height:24px;font-weight:600}
.rc-lead__plain{color:var(--v-ink2);font-weight:500}
.rc-lead .v-go{width:44px;height:44px}
.rc-fit{margin:0 0 16px;font-size:16px;line-height:26px;color:var(--v-ink2)}
.rc-fit a{color:var(--v-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.rc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px}
.rc-more{display:inline-flex;align-items:center;min-height:44px;font-size:15px;line-height:22px;font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* Without JavaScript the roles stay in the page as a plain list under the carousels; the script turns them into sheets. */
.rc-details{margin-top:64px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.rc-details__t:not(:first-child){margin-top:28px}
.rc-details .rc-role{width:100%;max-width:720px;padding:28px;border-radius:20px;background:var(--v-surface);border:1px solid var(--v-line)}
.rc-js .rc-details{display:none}
.rc-js .rc-tile{cursor:pointer}

@media (hover:hover){
  .rc-tile:hover{background:var(--v-raised);border-color:var(--v-line2)}
  .rc-tile:hover .v-go,.rc-lead a:hover .v-go,.rc-btn:not(:disabled):hover{background:var(--v-gold);border-color:var(--v-gold);color:var(--v-on-gold)}
  .rc-more:hover,.rc-fit a:hover{color:var(--v-gold)}
}

@media (min-width:761px){
  .rc-stages li{flex-direction:row;gap:16px}
  .rc-stages strong{flex:0 0 88px}
}

/* phone: swipe, with part of the next tile showing, and a sheet that rises from the bottom */
@media (max-width:760px){
  .rc-nav{display:none}
  .rc-track{scrollbar-width:none}
  .rc-track::-webkit-scrollbar{display:none}
  .rc-tile{padding:20px;border-radius:20px}
  .rc-sheet{width:100%;max-height:92dvh;margin:auto 0 0;border-radius:28px 28px 0 0;border-width:1px 0 0}
  .rc-sheet__scroll{padding:0 20px max(24px,env(safe-area-inset-bottom))}
  .rc-role__name{font-size:26px;line-height:32px}
  .rc-details{margin-top:48px}
  .rc-details .rc-role{padding:20px}
  .rc-actions .v-btn{width:100%}
  .rc-more{justify-content:center;width:100%}
  @media (prefers-reduced-motion:no-preference){
    .rc-sheet[open]{animation-name:rc-rise-phone}
    @keyframes rc-rise-phone{from{transform:translateY(100%)}to{transform:none}}
  }
}
@media (prefers-reduced-motion:reduce){
  .rc-tile,.rc-btn{transition:none}
}
