/* V85 Homepage / schedule improvements: scoped after legacy theme styles. */
html body.public-site.page-index .home-primary-dashboard-grid .premium-card-head.v79-medal-home-head .premium-card-icon,
html body.public-site.page-index .home-primary-dashboard-grid .premium-card-head.v79-medal-home-head strong {
  color:#173a47!important;-webkit-text-fill-color:#173a47!important;
  text-shadow:none!important;opacity:1!important;filter:none!important;
}
html body.public-site.page-index .v79-medal-home-head .premium-card-icon{font-size:23px!important}
html body.public-site.page-index .v79-medal-home-head a{
  background:#fff!important;color:#203b5b!important;-webkit-text-fill-color:#203b5b!important;
  opacity:1!important;
}
html body.public-site.page-index .v79-medal-school-list{
  max-height:270px!important;overflow-y:auto!important;overflow-x:hidden!important;
  scroll-behavior:auto!important;overscroll-behavior-y:contain;
  scrollbar-width:thin;scrollbar-color:#b59d65 #f9f7f2;
  touch-action:pan-y;-webkit-overflow-scrolling:touch;
}
html body.public-site.page-index .v79-medal-school-list:focus-visible{
  outline:2px solid #176f77;outline-offset:3px;border-radius:8px;
}
html body.public-site.page-index .v79-medal-list-title{
  position:sticky;top:0;z-index:1;background:#fff!important;
  padding:7px 2px 10px;margin:0!important;
}
html body.public-site.page-index .v79-medal-school-row{min-width:0}
html body.public-site.page-index .v79-medal-school-row span{min-width:0}
html body.public-site.page-index .v79-medal-school-row small{
  white-space:normal!important;overflow-wrap:normal;max-width:120px;
}
@media(max-width:600px){
  html body.public-site.page-index .v79-medal-school-list{max-height:300px!important}
  html body.public-site.page-index .v79-medal-school-row small{max-width:none}
}
/* Keep only the active hero on screen, preventing duplicate overlays of hidden slides. */
html body.public-site.page-index .hero-carousel .hero-slide:not(.is-active){
  visibility:hidden!important;pointer-events:none!important;
}
html body.public-site.page-index .hero-carousel .hero-slide.is-active{
  visibility:visible!important;pointer-events:auto!important;
}
html body.public-site.page-index .hero-carousel .hero-slide img,
html body.public-site.page-index .v60-news-image img,
html body.public-site.page-index .home-media-video-tile img{
  display:block;max-width:100%;object-fit:cover;
}
html body.public-site.page-index .home-discovery-grid [data-home-rotator]>[hidden]{display:none!important}
/* Only sport names are enlarged; subtitles, dates and other columns are untouched. */
html body.public-site.page-schedule .schedule-desktop-table td:nth-child(2)>strong{
  display:block;font-size:18px!important;line-height:1.45!important;font-weight:850!important;
}
html body.public-site.page-schedule .mobile-schedule-sport h2{
  font-size:20px!important;line-height:1.35!important;font-weight:850!important;
}

/* V88: keep the medal card fixed-height like its neighbour, but scroll ALL rows to 11.
   Previously grid min-size expansion caused the final school rows to be clipped. */
html body.public-site.page-index .home-primary-dashboard-grid > .premium-dashboard-card.v79-medal-home-card {
  display:flex!important; flex-direction:column!important; overflow:hidden!important;
}
html body.public-site.page-index .v79-medal-home-card > .v79-medal-home-body {
  flex:1 1 auto!important; min-height:0!important; height:auto!important;
  overflow:hidden!important; display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
  gap:8px!important;
}
html body.public-site.page-index .v79-medal-home-body > .v79-medal-list-title {
  min-height:0!important; margin:0!important; padding:2px 2px 4px!important;
  position:static!important; flex:0 0 auto!important;
}
html body.public-site.page-index .v79-medal-home-body > .v79-medal-school-list {
  min-height:0!important; height:100%!important; max-height:none!important;
  overflow-y:auto!important; overflow-x:hidden!important;
  overscroll-behavior-y:auto!important; scroll-behavior:auto!important;
  scrollbar-gutter:stable; -webkit-overflow-scrolling:touch;
  touch-action:pan-y; padding-bottom:12px!important;
}


/* V89: medal totals and school-row right inset.
   Move the medals away from the vertical scrollbar without changing the school rank,
   fixed-height card or its scrolling behaviour. */
html body.public-site.page-index .v79-medal-home-body .v79-medal-school-list .v79-medal-school-row {
  box-sizing: border-box;
  padding-inline-end: 34px !important;
}
html body.public-site.page-index .v79-medal-home-body .v79-medal-school-list .v79-medal-school-row > small {
  justify-self: end;
}
html body.public-site.page-index .v79-medal-home-body .v79-medal-total-row .v79-medal-icons {
  margin-inline-end: 12px;
}
@media (max-width: 600px) {
  html body.public-site.page-index .v79-medal-home-body .v79-medal-school-list .v79-medal-school-row {
    padding-inline-end: 12px !important;
  }
  html body.public-site.page-index .v79-medal-home-body .v79-medal-school-list .v79-medal-school-row > small {
    justify-self: start;
  }
  html body.public-site.page-index .v79-medal-home-body .v79-medal-total-row .v79-medal-icons {
    margin-inline-end: 0;
  }
}
