/* Unified Lunar Liga team detail layout: only existing Padellab design tokens. */
body.team-detail-open .liga-team-detail{max-width:100%;min-width:0}
body.team-detail-open .liga-team-detail .detail-head{padding:10px 1px 13px;min-width:0}
body.team-detail-open .liga-team-detail .detail-head h1{font-size:clamp(27px,5vw,38px)!important;line-height:1.1;overflow-wrap:anywhere}
body.team-detail-open .liga-team-detail .detail-meta-line{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
body.team-detail-open .liga-team-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px!important;overflow:visible!important;margin:7px 0 17px!important;padding:5px!important;position:sticky;top:63px;z-index:15}
body.team-detail-open .liga-team-tabs button{min-width:0;width:100%;min-height:43px;padding:7px 4px;appearance:none;background:transparent;border:0;border-radius:10px;color:var(--muted);font-size:11px;font-weight:850;line-height:1.25;cursor:pointer;text-align:center}
body.team-detail-open .liga-team-tabs button.is-active{background:var(--lime);color:var(--bg)}
body.team-detail-open .liga-team-tabs button:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
body.team-detail-open .detail-view{display:block;min-width:0}
body.team-detail-open .detail-view[hidden]{display:none!important}
body.team-detail-open .detail-view .detail-section:first-child{margin-top:0}
body.team-detail-open .detail-view .detail-section{margin-top:23px}
body.team-detail-open .detail-view>.detail-section-head{margin-bottom:13px}
body.team-detail-open .detail-view>.detail-next,body.team-detail-open .detail-view>.detail-live-team-match{margin:0 0 13px}
body.team-detail-open .liga-team-snapshot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
body.team-detail-open .liga-summary-item{min-width:0;display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:15px;border:1px solid var(--line);background:var(--panel)}
body.team-detail-open .liga-summary-item>span{font-size:9px;font-weight:950;letter-spacing:.07em;color:var(--muted)}
body.team-detail-open .liga-summary-item>strong{font-size:24px;line-height:1.2;color:var(--text);overflow-wrap:anywhere}
body.team-detail-open .liga-summary-item>small{font-size:11px;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}
body.team-detail-open .liga-summary-item>button{align-self:flex-start;margin-top:auto;padding:9px 0 0;border:0;background:transparent;color:var(--lime);font-size:11px;font-weight:850;cursor:pointer;text-align:left}
body.team-detail-open .liga-overview-empty{padding:20px 15px;border-radius:15px;border:1px solid var(--line);font-size:12px;color:var(--muted)}
body.team-detail-open .liga-extra-stats{margin-top:13px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
body.team-detail-open .liga-extra-stats>summary{display:flex;align-items:center;justify-content:space-between;min-height:45px;padding:9px 13px;gap:11px;cursor:pointer;list-style:none;font-size:12px;font-weight:800}
body.team-detail-open .liga-extra-stats>summary::-webkit-details-marker{display:none}
body.team-detail-open .liga-extra-stats[open]>summary>span{transform:rotate(180deg)}
body.team-detail-open .liga-extra-stats .detail-stats{padding:0 12px 12px;gap:7px}
body.team-detail-open .liga-extra-stats .detail-form{padding:8px 13px 13px;margin-top:0}
body.team-detail-open .liga-extra-stats .detail-stat{min-height:84px;padding:10px}
body.team-detail-open .liga-extra-stats .detail-stat strong{font-size:20px;margin-top:7px}
body.team-detail-open .liga-panel-intro{margin:0 0 14px;font-size:12px;line-height:1.5;color:var(--muted)}
body.team-detail-open #liga-stilling .detail-table{max-width:100%;min-width:0;overflow-x:auto}
body.team-detail-open .detail-view .detail-match-list{min-width:0}
body.team-detail-open .liga-team-detail .detail-next{box-shadow:none}
@media(max-width:679px){
  body.team-detail-open .liga-team-detail .detail-head h1{font-size:clamp(28px,9vw,35px)!important}
  body.team-detail-open .liga-team-tabs{top:57px;margin-bottom:13px!important}
  body.team-detail-open .liga-team-tabs button{font-size:10px!important;min-height:43px}
  body.team-detail-open .liga-team-snapshot{gap:8px}
  body.team-detail-open .liga-summary-item{padding:11px}
  body.team-detail-open .liga-summary-item>strong{font-size:22px}
  body.team-detail-open .liga-team-detail .detail-next{padding:14px!important;border-radius:16px!important;gap:11px}
  body.team-detail-open .liga-team-detail .detail-next h2{font-size:20px!important}
  body.team-detail-open .liga-extra-stats .detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.team-detail-open #liga-stilling .detail-table{margin:0}
}
