/* Willow — Team member profile v2 */
body.willow-tpl-team-member,.wv-team-member{ --page:#FFFFFF; --dk:#282018; }

/* Reveal-on-scroll (driven by shell.js) */
[data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.22,.61,.36,1),transform .8s cubic-bezier(.22,.61,.36,1);}
[data-reveal].is-in{opacity:1;transform:none;}

/* Recent-results arrow hover */
@media (hover:hover){
  [data-recent-prev]:hover,[data-recent-next]:hover{background:#161616 !important;color:#F2EEEB !important;}
}

@media (max-width:1200px){
  [data-bio]{gap:48px !important;padding:60px 5vw 90px !important;}
  [data-bio-portrait]{max-width:300px !important;height:440px !important;min-height:0 !important;}
  /* Back-link now carries the top offset below the fixed nav; header sits under it. */
  [data-tm-back]{padding:104px 5vw 0 !important;}
  [data-head]{flex-direction:column !important;align-items:flex-start !important;gap:28px !important;padding:26px 5vw 0 !important;}
  [data-tm-listings]{padding:88px 5vw !important;}
  [data-subrow]{padding:24px 5vw !important;}
  [data-tmls]{padding:70px 5vw !important;}
  [data-recent]{padding:70px 0 80px !important;}
  [data-recent] h2{font-size:32px !important;}
  [data-recent] > div:first-child{padding:0 5vw !important;margin-bottom:44px !important;}
}
@media (max-width:640px){
  [data-bio]{grid-template-columns:1fr !important;gap:36px !important;}
  [data-bio] > div:last-child{order:-1 !important;}
  [data-bio-portrait]{max-width:100% !important;height:56vh !important;}
  [data-head] h1{font-size:44px !important;}
  [data-tmls]{padding:56px 22px !important;}
  /* Recent Results: keep the heading + arrows from overflowing (section is
     overflow:hidden, so an oversized row would clip the right arrow). */
  [data-screen-label="Recent results"] > div:first-child{gap:14px !important;}
  [data-screen-label="Recent results"] h2{font-size:26px !important;min-width:0;overflow-wrap:anywhere;}
  [data-screen-label="Recent results"] [data-recent-prev],
  [data-screen-label="Recent results"] [data-recent-next]{width:44px !important;height:44px !important;}
  /* Result photo: scale by aspect-ratio instead of a locked 400px height so
     landscape photos aren't cropped to a tall sliver on narrow phones. */
  [data-screen-label="Recent results"] [data-recent-slide] a > div:first-child{height:auto !important;aspect-ratio:4/3;}
}

/* Recent-results: 2-up native-scroll carousel (swipe + prev/next). */
.tmrec-track::-webkit-scrollbar{display:none;}
.tmrec-track{scroll-padding-left:6.5vw;}
[data-recent-prev]:disabled,[data-recent-next]:disabled{opacity:.3;cursor:default;}
@media (max-width:640px){
  [data-recent-track] [data-recent-rail]{gap:20px !important;}
  .tmrec-slide{flex-basis:calc(50% - 10px) !important;}
}
