/* AwayDay 2.3.1 — focused stadium-page and footer polish.
   The shared UI, PWA, account, match-logging and shortcode handlers are unchanged. */

/* Remove the ornamental overline above stadium titles (no replacement slogan). */
.ad-next-app .ad-stadium-reimagined .ad-stadium-overline,
.ad-stadium-reimagined .ad-stadium-overline { display:none!important; }

/* Keep the new stadium hero compact, legible and balanced at wide widths. */
.ad-next-app .ad-stadium-reimagined,
.ad-stadium-reimagined { width:100%!important; max-width:1420px!important; margin-inline:auto!important; box-sizing:border-box!important; }
.ad-next-app .ad-stadium-reimagined .ad-club-header,
.ad-stadium-reimagined .ad-club-header {
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr) minmax(214px,252px)!important;
  align-items:start!important;
  column-gap:clamp(17px,2vw,28px)!important;
  row-gap:18px!important;
  min-height:0!important;
  height:auto!important;
  padding:clamp(23px,2.4vw,34px)!important;
  border-radius:22px!important;
  margin:0 0 14px!important;
  background:radial-gradient(ellipse at 95% 5%,rgba(72,111,185,.14),transparent 52%),linear-gradient(118deg,#142542,#0c182d)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.14)!important;
}
.ad-stadium-reimagined .ad-club-header:before{height:3px!important;opacity:.65!important}
.ad-stadium-reimagined .ad-club-badge {
  grid-column:1!important;
  width:78px!important;height:78px!important;
  border-radius:20px!important;
  border:1px solid rgba(190,214,244,.14)!important;
  background:rgba(199,223,255,.055)!important;
  box-shadow:none!important;
  padding:8px!important;box-sizing:border-box!important;
  align-self:start!important;
}
.ad-stadium-reimagined .ad-club-badge img{width:100%!important;height:100%!important;max-width:60px!important;max-height:60px!important;object-fit:contain!important}
.ad-stadium-reimagined .ad-club-initial{font-size:32px!important}
.ad-stadium-reimagined .ad-club-meta { grid-column:2!important; min-width:0!important; width:100%!important; display:flex!important; flex-direction:column!important; align-items:flex-start!important; gap:8px!important; }
.ad-stadium-reimagined .ad-club-name{font-size:clamp(27px,2.8vw,39px)!important;line-height:1.11!important;letter-spacing:-.048em!important;max-width:100%!important;overflow-wrap:break-word!important;margin:0!important}
.ad-stadium-reimagined .ad-club-league-tag{margin:0!important;letter-spacing:.07em!important;font-weight:800!important;border-radius:9px!important;padding:6px 10px!important;line-height:1.1!important}
.ad-stadium-reimagined .ad-club-stadium-name{font-size:clamp(14px,1.35vw,17px)!important;margin:0!important;line-height:1.35!important}
.ad-stadium-reimagined .ad-club-city{font-size:13px!important;margin:1px 0!important;line-height:1.45!important}
.ad-stadium-reimagined .ad-club-rating{font-size:12px!important;margin:1px 0 0!important;line-height:1.5!important}
/* Social buttons: clear secondary actions, not a row of thick neon boxes. */
.ad-stadium-reimagined .ad-club-meta > div:has(> div > a.ad-btn-outline){margin:5px 0 0!important;max-width:100%!important}
.ad-stadium-reimagined .ad-club-meta > div:has(> div > a.ad-btn-outline) > div{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important}
.ad-stadium-reimagined .ad-club-meta a.ad-btn-outline,
.ad-stadium-reimagined .ad-club-meta button.ad-btn-outline{background:rgba(150,180,220,.075)!important;color:#cddbed!important;border:1px solid rgba(160,190,230,.2)!important;border-radius:10px!important;min-height:34px!important;padding:7px 10px!important;font-size:11px!important;line-height:1.2!important;font-weight:650!important;white-space:nowrap!important;box-shadow:none!important}
.ad-stadium-reimagined .ad-club-meta a.ad-btn-outline:hover,
.ad-stadium-reimagined .ad-club-meta button.ad-btn-outline:hover{color:#eaf3ff!important;background:rgba(167,205,255,.13)!important;border-color:rgba(176,214,251,.39)!important}
/* Visited controls stay functional, without dominating the hero. */
.ad-next-app .ad-stadium-reimagined .ad-club-actions,
.ad-stadium-reimagined .ad-club-actions {
  grid-column:3!important;
  min-width:0!important;
  width:100%!important;
  max-width:252px!important;
  box-sizing:border-box!important;
  padding:15px!important;
  border:1px solid rgba(164,193,226,.16)!important;
  border-radius:17px!important;
  background:rgba(5,13,27,.30)!important;
  box-shadow:none!important;
  align-self:start!important;
}
.ad-stadium-reimagined .ad-club-actions .ad-btn-visit{min-height:42px!important;border-radius:11px!important;font-weight:750!important;font-size:13px!important;letter-spacing:0!important}
.ad-stadium-reimagined .ad-club-actions > p{font-size:11px!important;line-height:1.45!important}
.ad-stadium-reimagined .ad-club-actions details{font-size:12px!important;color:#b4c7dc!important;margin-bottom:7px!important}
.ad-stadium-reimagined .ad-club-actions summary{font-size:12px!important;line-height:1.45!important;padding:4px 0!important;white-space:normal!important}
.ad-stadium-reimagined .ad-club-actions > a.ad-btn-outline,
.ad-stadium-reimagined .ad-club-actions > a.ad-btn-primary{display:flex!important;justify-content:center!important;align-items:center!important;min-height:40px!important;background:#e0ed87!important;border:1px solid #e0ed87!important;border-radius:11px!important;color:#1a273a!important;font-size:12px!important;font-weight:800!important;line-height:1.3!important;padding:9px 13px!important;text-decoration:none!important;box-shadow:none!important}
.ad-stadium-reimagined .ad-club-actions > a.ad-btn-outline:hover,
.ad-stadium-reimagined .ad-club-actions > a.ad-btn-primary:hover{background:#eef5b0!important;border-color:#eef5b0!important}
.ad-stadium-reimagined .ad-stadium-shortcuts{gap:9px!important;margin-bottom:13px!important}
.ad-stadium-reimagined .ad-stadium-shortcuts button{min-height:61px!important;border-radius:13px!important;padding:13px 16px!important;font-size:12px!important;box-shadow:none!important}
.ad-stadium-reimagined .ad-club-stats{gap:9px!important;margin-bottom:19px!important}
.ad-stadium-reimagined .ad-club-stat{border-radius:13px!important;padding:15px!important;min-width:0!important;box-shadow:none!important}
.ad-stadium-reimagined .ad-club-stat-val{font-size:clamp(18px,2vw,23px)!important;margin:0 0 5px!important;line-height:1.2!important}
.ad-stadium-reimagined .ad-club-stat-lbl{font-size:10px!important;letter-spacing:.045em!important}

/* Footer: preserve the four-column desktop composition, give the final column
   breathing room, and keep the legal links inside their container. */
.ad-next-app .site-footer.ax-footer{box-sizing:border-box!important;margin-right:clamp(12px,1.25vw,24px)!important;padding-left:clamp(22px,2.7vw,43px)!important;padding-right:clamp(22px,2.7vw,43px)!important}
.ad-next-app .ax-footer-inner{
  width:100%!important;max-width:1400px!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(220px,1.55fr) repeat(3,minmax(150px,1fr))!important;
  gap:clamp(23px,3vw,56px)!important;
  padding-bottom:35px!important;
  margin-inline:auto!important;
}
.ad-next-app .ax-footer-inner > *{min-width:0!important}
.ad-next-app .ax-footer-inner > nav{padding-right:8px!important;align-self:start!important}
.ad-next-app .ax-footer-inner > nav:last-child{padding-right:0!important}
.ad-next-app .ax-footer-inner nav h3{margin:0 0 4px!important;line-height:1.4!important}
.ad-next-app .ax-footer-inner nav a{line-height:1.55!important;overflow-wrap:normal!important}
.ad-next-app .ax-footer-bottom{
  width:100%!important;max-width:1400px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,auto)!important;
  align-items:center!important;
  column-gap:22px!important;
  row-gap:14px!important;
  margin:0 auto!important;
  padding:19px 0 0!important;
  box-sizing:border-box!important;
}
.ad-next-app .ax-footer-bottom > span{min-width:0!important}
.ad-next-app .ax-footer-bottom .ax-footer-legal{
  min-width:0!important;max-width:100%!important;
  display:flex!important;justify-content:flex-end!important;align-items:center!important;
  flex-direction:row!important;flex-wrap:wrap!important;
  gap:11px 21px!important;
  margin:0!important;
}
.ad-next-app .ax-footer-bottom .ax-footer-legal a{
  display:inline-flex!important;min-width:0!important;
  font-size:12px!important;line-height:1.5!important;
  color:var(--nx-sub,#a7b5ca)!important;
  white-space:normal!important;text-decoration:none!important;
}
.ad-next-app .ax-footer-bottom .ax-footer-legal a:hover{text-decoration:underline!important;text-underline-offset:3px!important}

/* Responsive ground cards and footer: maintain enough room for the club name. */
@media(max-width:1150px){
 .ad-stadium-reimagined .ad-club-header{grid-template-columns:70px minmax(0,1fr) 220px!important;gap:18px!important}
 .ad-stadium-reimagined .ad-club-badge{width:70px!important;height:70px!important}
 .ad-next-app .ax-footer-inner{grid-template-columns:minmax(200px,1.4fr) repeat(3,minmax(130px,1fr))!important;gap:24px!important}
}
@media(max-width:950px){
 .ad-stadium-reimagined .ad-club-header{grid-template-columns:70px minmax(0,1fr)!important;gap:16px!important}
 .ad-stadium-reimagined .ad-club-actions{grid-column:2!important;max-width:min(100%,370px)!important}
 .ad-next-app .ax-footer-inner{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:26px!important}
 .ad-next-app .ax-footer-inner .ax-footer-brand{grid-column:1/-1!important}
 .ad-next-app .ax-footer-bottom{grid-template-columns:1fr!important;justify-items:start!important}
 .ad-next-app .ax-footer-bottom .ax-footer-legal{justify-content:flex-start!important}
}
@media(max-width:640px){
 .ad-stadium-reimagined .ad-club-header{grid-template-columns:56px minmax(0,1fr)!important;padding:18px!important;gap:11px 13px!important;border-radius:18px!important}
 .ad-stadium-reimagined .ad-club-badge{width:56px!important;height:56px!important;padding:5px!important;border-radius:15px!important}
 .ad-stadium-reimagined .ad-club-badge img{max-width:44px!important;max-height:44px!important}
 .ad-stadium-reimagined .ad-club-name{font-size:clamp(23px,6vw,31px)!important}
 .ad-stadium-reimagined .ad-club-actions{grid-column:1/-1!important;max-width:100%!important;padding:13px!important}
 .ad-stadium-reimagined .ad-club-meta > div:has(> div > a.ad-btn-outline) > div{gap:6px!important}
 .ad-stadium-reimagined .ad-club-meta a.ad-btn-outline,.ad-stadium-reimagined .ad-club-meta button.ad-btn-outline{font-size:10px!important;padding:6px 8px!important}
 .ad-stadium-reimagined .ad-club-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ad-next-app .site-footer.ax-footer{margin-right:0!important;padding-left:20px!important;padding-right:20px!important}
 .ad-next-app .ax-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:27px 19px!important}
 .ad-next-app .ax-footer-inner .ax-footer-brand{grid-column:1/-1!important}
 .ad-next-app .ax-footer-bottom .ax-footer-legal{gap:12px 17px!important}
}
@media(max-width:380px){
 .ad-stadium-reimagined .ad-club-header{grid-template-columns:1fr!important}
 .ad-stadium-reimagined .ad-club-meta,.ad-stadium-reimagined .ad-club-actions,.ad-stadium-reimagined .ad-club-badge{grid-column:1!important}
}
/* Light appearance must remain readable, including sharing and logged-in actions. */
body.light-mode .ad-stadium-reimagined .ad-club-header{background:linear-gradient(135deg,#f9fbff,#ebf2fa)!important;border-color:#cfdae8!important}
body.light-mode .ad-stadium-reimagined .ad-club-badge{background:#fff!important;border-color:#d4e0ee!important}
body.light-mode .ad-stadium-reimagined .ad-club-actions{background:#fff!important;border-color:#d3e0ed!important}
body.light-mode .ad-stadium-reimagined .ad-club-meta a.ad-btn-outline,
body.light-mode .ad-stadium-reimagined .ad-club-meta button.ad-btn-outline{background:#edf4fb!important;color:#334e6e!important;border-color:#d5e0ef!important}
body.light-mode .ad-stadium-reimagined .ad-club-actions details{color:#47617b!important}
body.light-mode .ad-stadium-reimagined .ad-club-actions > a.ad-btn-outline{color:#203044!important}
/* Responsive overrides must match the desktop app-shell specificity; otherwise
   the implicit third grid column crushes the title on phones. */
@media (max-width:950px){
  .ad-next-app .ad-stadium-reimagined .ad-club-header{grid-template-columns:70px minmax(0,1fr)!important;}
  .ad-next-app .ad-stadium-reimagined .ad-club-actions{grid-column:2!important;max-width:min(100%,370px)!important;}
}
@media (max-width:640px){
  .ad-next-app .ad-stadium-reimagined .ad-club-header{grid-template-columns:56px minmax(0,1fr)!important;}
  .ad-next-app .ad-stadium-reimagined .ad-club-actions{grid-column:1 / -1!important;max-width:100%!important;}
}
@media (max-width:380px){
  .ad-next-app .ad-stadium-reimagined .ad-club-header{grid-template-columns:1fr!important;}
  .ad-next-app .ad-stadium-reimagined .ad-club-actions{grid-column:1!important;}
}
