/* V28: requested homepage layout adjustments. Loaded after previous versions. */

/* Return the brand background to the same purple as the navigation.
   Keep the actual logo legible, but remove the wide white wash. */
html body.public-site.hybrid-navigation .topbar.public-premium-topbar > a.hybrid-brand{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  border-radius:0!important;
  color:#fff!important;
  isolation:isolate!important;
}
html body.public-site.hybrid-navigation .topbar.public-premium-topbar > a.hybrid-brand::before{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
html body.public-site.hybrid-navigation .topbar.public-premium-topbar .hybrid-brand-name strong{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  text-shadow:0 1px 1px rgba(13,13,30,.2)!important;
}
html body.public-site.hybrid-navigation .topbar.public-premium-topbar .hybrid-brand-name small{
  color:#d4cbdc!important;-webkit-text-fill-color:#d4cbdc!important;
  text-shadow:none!important;
}
html body.public-site.hybrid-navigation .topbar.public-premium-topbar .hybrid-brand-mark{
  background:#fff!important;
  border:1px solid rgba(255,255,255,.56)!important;
}

/* Show two complete live matches in a single panel whenever they exist. */
html body.public-site.page-index .home-primary-dashboard-grid>.live-dashboard-card{
  min-height:365px!important;
  height:365px!important;
  max-height:365px!important;
}
html body.public-site.page-index .home-primary-dashboard-grid>.live-now-summary-card{
  min-height:365px!important;
  height:365px!important;
  max-height:365px!important;
}
html body.public-site.page-index .home-primary-dashboard-grid .home-live-score-board,
html body.public-site.page-index .home-primary-dashboard-grid .live-now-list{
  flex:1 1 0!important;height:0!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  padding:10px 12px!important;
}
html body.public-site.page-index .home-live-score-board .live-score-grid{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
html body.public-site.page-index .home-live-score-board .live-score-sport,
html body.public-site.page-index .home-live-score-board .live-score-match{
  min-width:0!important;
  margin:0 0 8px!important;
}
html body.public-site.page-index .home-live-score-board .live-score-match{
  padding:9px 11px!important;
  overflow:visible!important;
}
html body.public-site.page-index .home-live-score-board .live-score-sport-head{
  margin-bottom:5px!important;
}
html body.public-site.page-index .home-live-score-board .live-score-sport-head h3{
  font-size:15px!important;
  font-weight:900!important;
  line-height:1.35!important;
  color:#183e56!important;
  -webkit-text-fill-color:#183e56!important;
}
html body.public-site.page-index .home-live-score-board .live-score-meta{
  margin-bottom:6px!important;
}


/* Competition descriptor inside live score should remain legible next to status. */
html body.public-site.page-index .home-live-score-board .live-score-meta>span:not(.live-status){
  font-size:11px!important;
  line-height:1.4!important;
  font-weight:750!important;
  color:#64758a!important;
  -webkit-text-fill-color:#64758a!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Symmetric school/crest/scores: [logo school] score vs score [school logo]. */
html body.public-site.page-index .home-live-score-board .live-score-versus{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  padding:5px 0!important;
  width:100%!important;
  min-width:0!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team,
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child{
  display:grid!important;
  align-items:center!important;
  grid-template-rows:minmax(42px,auto)!important;
  column-gap:9px!important;
  row-gap:0!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:first-child{
  grid-template-columns:minmax(0,1fr) 44px!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child{
  grid-template-columns:44px minmax(0,1fr)!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team strong{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  min-width:0!important;
  max-width:none!important;
  width:100%!important;
  font-size:11.5px!important;
  line-height:1.38!important;
  font-weight:850!important;
  text-align:left!important;
  overflow:visible!important;
  white-space:normal!important;
  grid-column:1!important;
  grid-row:1!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child strong{
  grid-column:2!important;
  grid-row:1!important;
  flex-direction:row-reverse!important;
  justify-content:flex-start!important;
  text-align:right!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team strong .score-team-logo,
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child strong .score-team-logo{
  display:grid!important;
  place-items:center!important;
  flex:0 0 43px!important;
  height:43px!important;
  width:43px!important;
  min-height:43px!important;
  min-width:43px!important;
  margin:0!important;
  padding:0!important;
  grid-row:auto!important;
  grid-column:auto!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team strong .score-team-name,
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child strong .score-team-name{
  display:block!important;
  grid-column:auto!important;
  grid-row:auto!important;
  flex:1 1 auto!important;
  min-width:0!important;
  color:#1e4464!important;
  -webkit-text-fill-color:#1e4464!important;
  text-align:inherit!important;
  line-height:1.38!important;
  font-size:11.5px!important;
  font-weight:850!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
  text-overflow:clip!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child strong .score-team-name{
  color:#166e54!important;-webkit-text-fill-color:#166e54!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team b,
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child b{
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:center!important;
  grid-row:1!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  line-height:1!important;
  margin:0!important;
  font-size:18px!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:first-child b{
  grid-column:2!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child b{
  grid-column:1!important;
}
html body.public-site.page-index .home-live-score-board .live-score-versus>span{
  align-self:center!important;
  justify-self:center!important;
  margin:0!important;
  padding:0!important;
  grid-column:2!important;
  line-height:1!important;
  text-align:center!important;
}
html body.public-site.page-index .home-live-score-board .score-team-logo :is(.school-logo,.school-logo-fallback){
  width:43px!important;height:43px!important;
  max-width:43px!important;min-width:43px!important;
  object-fit:contain!important;
}

/* Sports names in the schedule list are currently too small. */
html body.public-site.page-index .home-primary-dashboard-grid .premium-schedule-row strong{
  font-size:15px!important;
  line-height:1.36!important;
  font-weight:900!important;
  color:#233b60!important;
  -webkit-text-fill-color:#233b60!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
html body.public-site.page-index .home-primary-dashboard-grid .premium-schedule-row small{
  font-size:11px!important;
  line-height:1.45!important;
}

/* Two recent results, stacked; inside each the three schools stack vertically. */
html body.public-site.page-index .home-discovery-grid{
  align-items:stretch!important;
}
html body.public-site.page-index .home-latest-result-card .home-result-list{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:min-content!important;
  gap:10px!important;
  align-content:start!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  padding:12px!important;
}
html body.public-site.page-index .home-latest-result-card .home-result-row{
  display:grid!important;
  grid-template-columns:47px minmax(0,1fr) 14px!important;
  gap:10px!important;
  align-items:start!important;
  min-height:170px!important;
  padding:12px!important;
}
html body.public-site.page-index .home-latest-result-card .home-result-main{
  min-width:0!important;
}
html body.public-site.page-index .home-latest-result-card .home-result-medals{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  grid-template-columns:none!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  width:100%!important;
  max-width:none!important;
  overflow:visible!important;
  margin-top:7px!important;
  padding:0!important;
}
html body.public-site.page-index .home-latest-result-card .home-result-medals>b{
  position:static!important;
  inset:auto!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:29px!important;
  height:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:5px 9px!important;
  border-radius:9px!important;
  background:#fff!important;
  border:1px solid #e0e8e6!important;
  font-size:11px!important;
  line-height:1.4!important;
  color:#263f52!important;
  -webkit-text-fill-color:#263f52!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-overflow:clip!important;
}
html body.public-site.page-index .home-latest-result-card .home-result-main>div strong{
  font-size:14px!important;
  line-height:1.45!important;
}
/* Mobile: keep crest next to name and score aligned, without overflow. */
@media(max-width:820px){
  html body.public-site.page-index .home-primary-dashboard-grid>.premium-dashboard-card{
    height:370px!important;min-height:370px!important;max-height:370px!important;
  }
  html body.public-site.page-index .home-live-score-board .live-score-versus{
    grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;
    gap:3px!important;
  }
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:first-child{
    grid-template-columns:minmax(0,1fr) 36px!important;
    column-gap:4px!important;
  }
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child{
    grid-template-columns:36px minmax(0,1fr)!important;
    column-gap:4px!important;
  }
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team strong{
    gap:4px!important;font-size:10px!important;
  }
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team strong .score-team-name,
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child strong .score-team-name{
    font-size:10px!important;line-height:1.32!important;
  }
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team strong .score-team-logo,
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child strong .score-team-logo{
    flex:0 0 30px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  }
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team b,
  html body.public-site.page-index .home-live-score-board .live-score-versus>.score-team:last-child b{
    width:36px!important;min-width:36px!important;height:36px!important;font-size:16px!important;
  }
  html body.public-site.page-index .home-live-score-board .score-team-logo :is(.school-logo,.school-logo-fallback){
    width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;
  }
  html body.public-site.page-index .home-latest-result-card .home-result-row{
    grid-template-columns:36px minmax(0,1fr) 12px!important;
    gap:8px!important;
    padding:10px!important;
  }
}
