.roster-page{--roster-radius:16px}
.roster-hero{padding:calc(clamp(36px,5vw,76px) + var(--scf-page-header-space,0px)) 0 clamp(36px,5vw,76px);background:linear-gradient(90deg,rgba(3,16,35,.38),rgba(3,16,35,.08)),var(--scf-brand-background) center/cover no-repeat;color:#fff}
.roster-hero__grid{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);align-items:center;gap:clamp(28px,5vw,90px)}
.roster-hero__season{display:inline-block;margin:0 0 24px;padding:5px 14px;border:1px solid rgba(180,217,243,.35);border-radius:7px;background:rgba(4,25,45,.28);color:#c9e5fa;font-size:1.1rem;font-weight:600}
.roster-hero h1{margin:0 0 20px;font-size:clamp(2rem,4vw,3.75rem);line-height:1;overflow-wrap:anywhere;text-transform:uppercase}
.roster-hero__team{margin:0;color:#fff;font-size:clamp(1rem,1.35vw,1.375rem);font-weight:600;line-height:1.2}
.roster-hero__team span{display:block;color:#b8d6f3;font-weight:500}
.roster-hero__count{margin:22px 0 0;color:#c5daea;font-size:1rem}
.roster-hero__jump{display:inline-flex;align-items:center;gap:15px;min-height:44px;margin-top:18px;color:#fff;font-size:1rem;font-weight:600;text-decoration:none}
.roster-hero__jump svg{width:23px;transform:rotate(90deg);transition:transform .25s ease}
.roster-hero__jump:hover{color:#b7def9}
.roster-hero__jump:hover svg{transform:rotate(90deg) translateX(4px)}
.roster-hero__photo{min-width:0}
.roster-hero .front-team__photo{border-radius:var(--roster-radius)}
.roster-content{padding:clamp(28px,4vw,56px) 0 clamp(56px,7vw,110px);background:linear-gradient(145deg,#f8fcfe,#e4f1f8 65%,#f2f8fb)}
.roster-content,.roster-group{scroll-margin-top:calc(var(--scf-header-height) + var(--scf-admin-offset,0px) + 24px)}
.roster-nav{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:clamp(42px,5vw,72px)}
.roster-nav a{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:50px;padding:10px 20px;border:1px solid #c7dbe8;border-radius:10px;background:rgba(255,255,255,.8);color:var(--scf-blue-deep);font-size:1.0625rem;font-weight:600;text-decoration:none;transition:background .2s ease,border-color .2s ease,color .2s ease}
.roster-nav a span{display:grid;place-items:center;min-width:27px;height:27px;padding:0 6px;border-radius:6px;background:#e6f0f7;font-size:1rem;line-height:1}
.roster-nav a:hover{border-color:var(--scf-blue);background:var(--scf-blue);color:#fff}
.roster-nav a:hover span{background:rgba(255,255,255,.16)}
.roster-group+.roster-group{margin-top:clamp(48px,6vw,86px)}
.roster-group__heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;margin-bottom:24px}
.roster-group__heading h2{margin:0;font-size:clamp(1.375rem,1.8vw,1.875rem);text-transform:uppercase}
.roster-group__heading>span{color:#466377;font-size:.9375rem;font-weight:600}
.roster-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2vw,32px);margin:0;padding:0;list-style:none}
.roster-grid>li{min-width:0}
.roster-card{display:flex;height:100%;flex-direction:column;overflow:hidden;border-radius:var(--roster-radius);background:#fff;color:var(--scf-ink);box-shadow:0 5px 20px rgba(0,38,68,.06);text-decoration:none;transition:transform .28s ease,box-shadow .28s ease}
.roster-card__portrait{position:relative;flex:0 0 auto;overflow:hidden;background:linear-gradient(145deg,#071b31,#00528f)}
/* Keep the HTML width/height ratio, including while lazy images are unloaded.
   aspect-ratio:auto would erase it and activate WP's 1500px autosizes fallback. */
.roster-card__portrait>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;transition:filter .35s ease}
.roster-card__portrait>.roster-card__fallback{aspect-ratio:4/5}
.roster-card__fallback{display:grid;width:100%;height:auto;place-items:center}
.roster-card__fallback img{width:48%;height:auto;opacity:.7}
.roster-card__body{position:relative;display:flex;flex:1;align-items:flex-start;gap:clamp(12px,1.3vw,22px);padding:clamp(18px,1.8vw,28px)}
.roster-card__number{flex-shrink:0;max-width:45%;color:var(--scf-blue);font-family:var(--scf-font-body);font-size:clamp(1.625rem,2vw,2.25rem);font-weight:600;line-height:1;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.roster-card__identity{min-width:0;padding-right:8px}
.roster-card h3{margin:0;font-family:var(--scf-font-body);font-size:clamp(1rem,1.1vw,1.125rem);font-weight:600;line-height:1.15;letter-spacing:0;overflow-wrap:anywhere}
.roster-card__identity p{margin:7px 0 0;color:#4c6578;font-size:.875rem;line-height:1.3;overflow-wrap:anywhere}
.roster-card__arrow{position:absolute;right:12px;bottom:12px;color:var(--scf-blue);opacity:0;transform:translateX(-5px);transition:transform .25s ease,opacity .25s ease}
.roster-card__arrow svg{width:18px;height:18px}
.roster-card:hover,.roster-card:focus-visible{color:var(--scf-blue-deep);box-shadow:0 15px 35px rgba(0,38,68,.14);transform:translateY(-5px)}
.roster-card:hover .roster-card__portrait>img{filter:brightness(1.05) saturate(1.06)}
.roster-card:hover .roster-card__arrow,.roster-card:focus-visible .roster-card__arrow{opacity:1;transform:translateX(0)}
.roster-more{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:clamp(48px,6vw,86px);padding:clamp(24px,4vw,48px);border-radius:var(--roster-radius);background:#fff;box-shadow:0 5px 24px rgba(0,38,68,.04)}
.roster-more h2{max-width:660px;margin:0;font-size:clamp(1.375rem,1.8vw,1.875rem)}
.roster-more__actions{display:flex;flex-wrap:wrap;gap:12px;flex-shrink:0}
.roster-editor{margin-block:48px}
.roster-empty{padding-block:24px 48px}
.roster-empty p{font-size:1.125rem}
.roster-empty__admin{margin-top:24px;color:#466377}
.roster-stats{margin:0 16px 16px;padding:16px 0 0;border-top:1px solid #e3ecf3;color:var(--scf-blue-deep)}
.roster-stats>p{margin:0 0 12px;color:#4c6578;font-size:.8125rem;font-weight:600}
.roster-stats dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:12px 5px;margin:0}
.roster-stats dl>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.roster-stats dt{order:2;font-size:.8125rem;line-height:1.2;font-weight:500;white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none}
.roster-stats dd{margin:0;font-size:1.125rem;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}
.roster-stats__empty{margin:0;padding:0 20px 20px;color:#4c6578;font-size:.875rem;line-height:1.4}
.roster-stats-note{max-width:1000px;margin:28px 0 0;color:#466377;font-size:1rem;line-height:1.5}
@media(max-width:1100px){
  .roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .roster-more{align-items:flex-start;flex-direction:column}
}
@media(max-width:800px){
  .roster-hero__grid{grid-template-columns:1fr;gap:28px}
  .roster-hero__copy{display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:20px}
  .roster-hero__season{justify-self:start;margin-bottom:16px;grid-column:1/-1}
  .roster-hero h1{grid-column:1/-1;margin-bottom:16px}
  .roster-hero__count{margin:0;text-align:right}
  .roster-hero__jump{grid-column:1/-1;margin-top:14px}
}
@media(max-width:700px){
  .roster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .roster-nav{gap:8px}
  .roster-nav a{flex:1;gap:12px;padding:9px 12px;font-size:1.1rem}
  .roster-card__body{flex-wrap:wrap;gap:8px;padding:16px 14px 22px}
  .roster-card__number{font-size:1.875rem}
  .roster-card__identity{width:100%;padding-right:0}
  .roster-card h3{font-size:1rem}
  .roster-card__identity p{font-size:.875rem}
  .roster-card__arrow{opacity:1;transform:none;right:10px;bottom:10px}
  .roster-more__actions{flex-shrink:1}
}
@media(max-width:380px){
  .roster-grid{grid-template-columns:1fr}
  .roster-card__body{flex-wrap:nowrap;padding:20px}
  .roster-card__identity{width:auto}
  .roster-card__number{font-size:2.125rem}
  .roster-nav a{flex-basis:100%}
  .roster-hero__copy{grid-template-columns:1fr}
  .roster-hero__count{margin-top:14px;text-align:left}
}
@media(prefers-reduced-motion:reduce){
  .roster-card,.roster-card__portrait>img,.roster-card__arrow,.roster-hero__jump svg,.roster-nav a{transition:none}
  .roster-card:hover,.roster-card:focus-visible{transform:none}
}
