/* Final mobile refinements. Loaded after the main stylesheet by design. */
@media (max-width:760px) {
  nav {
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:.35rem;
    padding-inline:.55rem;
  }
  nav .nav-logo { width:auto; min-width:0; }
  nav .nav-brand-logo {
    display:block;
    width:auto;
    height:40px;
    max-height:none;
  }
  nav .season-switch { gap:.35rem; }
  nav .season-current { display:flex; }
  nav .season-switch a { height:40px; padding-inline:.62rem; }

  #team {
    padding-top:1.5rem !important;
    scroll-margin-top:64px;
  }
  #team .member-card,
  #team .member-card:hover,
  #team .member-card:focus,
  #team .member-card:focus-visible {
    transform:none;
    scroll-margin-block-start:8rem;
  }
  #stem {
    scroll-margin-top:64px;
  }
  #stem .stem-card,
  #stem .stem-card:hover,
  #stem .stem-card:focus,
  #stem .stem-card:focus-visible {
    transform:none;
    scroll-margin-block-start:8rem;
  }

  #about .about-stats {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    margin-top:1.25rem;
    border-block:1px solid rgba(74,139,200,.58);
  }
  #about .stat {
    display:flex;
    min-height:76px;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    padding:.7rem .8rem;
    border:0;
    background:transparent;
  }
  #about .stat:nth-child(odd) { border-right:1px solid rgba(74,139,200,.35); }
  #about .stat:nth-child(-n+2) { border-bottom:1px solid rgba(74,139,200,.35); }
  #about .stat-num { font-size:1.9rem; }
  #about .stat-label { margin-top:.25rem; font-size:.58rem; }

  .sponsors-section .section-line { display:none; }
  .sponsor-wall,
  .sponsor-tier,
  .sponsor-tier + .sponsor-tier { border:0 !important; }
  .sponsor-wall {
    display:flex;
    flex:1;
    flex-direction:column;
    justify-content:space-evenly;
    gap:.65rem;
    padding:.55rem 0 .2rem;
  }
  .sponsor-tier,
  .sponsor-tier + .sponsor-tier { flex:none; margin:0; padding:0; }
  .sponsor-tier::before { display:none !important; content:none !important; }
  .sponsor-grid,
  .tier-premium .sponsor-grid,
  .tier-gold .sponsor-grid,
  .tier-silver .sponsor-grid,
  .tier-bronze .sponsor-grid { height:auto; }
  .tier-premium .sponsor-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.7rem 0;
    width:100%;
  }
  .tier-premium .sponsor-item:first-child {
    grid-column:1;
    grid-row:1;
    justify-self:start;
    width:125px;
  }
  .tier-premium .sponsor-item:nth-child(3) {
    grid-column:2;
    grid-row:1;
    justify-self:end;
    width:125px;
  }
  .tier-premium .sponsor-item:nth-child(2) {
    grid-column:1 / -1;
    grid-row:2;
    min-height:0;
    padding-inline:0;
  }
  .tier-gold .sponsor-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem .3rem; }
  .tier-gold .sponsor-item:nth-child(6) { grid-column:auto; }
  .tier-silver .sponsor-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.3rem .35rem; }
  .tier-bronze .sponsor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); width:58%; gap:.3rem .65rem; }
  .tier-premium .sponsor-item { min-height:82px; }
  .tier-gold .sponsor-item { min-height:68px; }
  .tier-silver .sponsor-item { min-height:52px; }
  .tier-bronze .sponsor-item { min-height:42px; }
  .tier-premium .sponsor-logo { max-height:120px; }
  .tier-premium .sponsor-item:first-child .sponsor-logo,
  .tier-premium .sponsor-item:nth-child(3) .sponsor-logo {
    max-width:100%;
    max-height:120px;
  }
  .tier-premium .sponsor-item:nth-child(2) .sponsor-logo {
    width:100%;
    max-width:none;
    max-height:none;
  }
  .tier-gold .sponsor-logo { max-height:64px; }
  .tier-silver .sponsor-logo { max-height:46px; }
  .tier-bronze .sponsor-logo { max-height:39px; }
  .tier-bronze .sponsor-logo-elriper {
    width:85px;
    height:52px;
    max-width:85px;
    max-height:none;
    object-fit:cover;
    object-position:center 35%;
  }

  .footer-bottom {
    grid-template-columns:minmax(0,1fr) 144px minmax(0,1fr);
    grid-template-rows:32px auto;
    gap:.55rem .65rem;
    padding:.7rem .8rem calc(.75rem + env(safe-area-inset-bottom));
    text-align:center;
  }
  .footer-partners {
    z-index:1;
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    height:auto;
    justify-self:stretch;
  }
  .footer-partners > div {
    width:100%;
    grid-template-columns:minmax(0,1fr) 144px minmax(0,1fr);
    gap:.65rem;
  }
  .footer-partners img { max-width:100%; max-height:54px; }
  .footer-partners img:first-child { grid-column:1; justify-self:end; }
  .footer-partners img:last-child { grid-column:3; justify-self:start; }
  .footer-brand { grid-column:1 / -1; grid-row:1; justify-self:center; }
  .footer-socials { gap:.25rem; }
  .footer-socials a { width:30px; height:30px; }
  .footer-socials svg { width:14px; height:14px; }
  .footer-center {
    z-index:2;
    grid-column:2;
    grid-row:2;
    flex-direction:column;
    justify-self:center;
    gap:.3rem;
    padding:0;
  }
  .footer-brand-logo { width:auto; height:80px; }
  .footer-copy { max-width:138px; font-size:.54rem; line-height:1.2; white-space:normal; text-align:center; }
}
