:root{color-scheme:light;--navy:#142743;--secondary:#344963;--steel:#a3b1c5;--paper:#edf0f5;--orange:#e87824;--ink:#172a44;--muted:#4c6079;--line:#d8e0eb;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
button,select,input{font:inherit;color:inherit}
button,select{cursor:pointer}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,.table-wrap:focus-visible{outline:3px solid #b65112;outline-offset:3px}
.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:var(--navy);color:white;padding:26px 16px}
.brand{display:flex;align-items:center;gap:12px;font-weight:750;padding:0 6px 30px}
.brand small{display:block;color:#c2cfe0;font-weight:500;margin-top:3px}
.crest{display:inline-grid;place-items:center;flex:none;width:33px;height:36px;clip-path:polygon(0 0,100% 0,100% 71%,50% 100%,0 71%);background:#1b355a;border-top:3px solid #e87824;color:white;font-weight:850;font-size:10px;letter-spacing:.04em;padding-bottom:5px}
.crest.opponent{background:#e4eaf2;color:#344963;border-color:#a3b1c5}
nav{display:grid;gap:7px}
nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;color:#dce6f4;font-weight:650}
nav a span{font-size:21px;line-height:1}
nav a[aria-current]{background:#344963;color:white;box-shadow:inset 3px 0 var(--orange)}
main{margin-left:226px}
.top{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border-bottom:1px solid var(--line);padding:12px clamp(16px,3vw,42px)}
.top form{width:min(100%,355px)}
.top input{width:100%;border:1px solid var(--steel);border-radius:8px;padding:10px 12px;background:#f6f8fb}
.demo{white-space:nowrap;border-radius:6px;padding:5px 8px;background:#fff0df;color:#783708;font-size:.82rem;font-weight:730}
.mobile-brand{display:none}
#app{max-width:1380px;margin:auto;padding:26px clamp(16px,3vw,42px) 40px}
.heading{margin-bottom:20px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.8rem,4vw,2.65rem);letter-spacing:-.055em;line-height:1.1;margin:3px 0 6px}
h2{font-size:1.22rem;margin:14px 0 10px}
h3{font-size:1rem}
p{color:var(--muted);line-height:1.5}
.eyebrow{font-size:.82rem;text-transform:uppercase;letter-spacing:.09em;font-weight:800;color:#934414}
.tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--steel);margin-bottom:15px}
.tabs button{padding:10px 12px;border:0;border-bottom:3px solid transparent;background:transparent;font-weight:650;min-height:44px}
.tabs button[aria-pressed=true]{border-bottom-color:var(--orange);background:#fff;border-radius:7px 7px 0 0}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.filters label{display:grid;gap:4px;font-size:.84rem;font-weight:720;min-width:0}
select{max-width:100%;min-height:44px;border:1px solid var(--steel);border-radius:7px;background:white;padding:7px 9px}
.section-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 8px}
.section-line h2{margin:0}
.section-line>span{color:var(--muted);font-weight:650;font-size:.9rem}
.date-group{margin:0 0 15px}
.date-group h3{padding:6px 0;color:var(--secondary)}
.match-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:9px}
.match,.panel,.team-list,.table-wrap,.metrics>div{background:white;border:1px solid var(--line);border-radius:9px}
.match{padding:11px;min-width:0}
.match-meta,.match-foot,.side{display:flex;align-items:center;gap:7px}
.match-meta{flex-wrap:wrap;margin-bottom:8px;font-size:.82rem;color:var(--secondary)}
.match-meta strong,.side b{margin-left:auto;white-space:nowrap}
.badge{display:inline-block;border-radius:5px;padding:3px 6px;font-weight:750;font-size:.78rem;white-space:nowrap}
.c0{background:#e0edff;color:#204f87}.c1{background:#ffead9;color:#8a3c09}.c2{background:#ddf1e6;color:#235c3c}
.side{padding:3px 0;font-weight:720;min-height:36px}
.side .crest{width:26px;height:28px;font-size:8px}
.match-foot{border-top:1px solid var(--line);margin-top:6px;padding-top:6px;justify-content:space-between;color:var(--muted);font-size:.84rem}
.more,.back,.star{background:white;border:1px solid var(--steel);border-radius:7px;padding:7px 12px;min-height:44px;font-weight:700}
.star{font-size:1.22rem;color:#914109;min-width:44px}
.team-row{display:flex;align-items:center;gap:8px;padding:6px 9px}
.team-row+.team-row{border-top:1px solid var(--line)}
.team-row a{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;flex:1;min-width:0;min-height:44px}
.team-row small{display:block;color:var(--muted)}
.chevron{font-weight:800;font-size:1.25rem}
.table-wrap{overflow:auto;margin:8px 0 15px}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
td,th{text-align:right;padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}
th[scope=row],thead th:nth-child(2){text-align:left}
thead{background:#f7f9fc}
.city-row{background:#e5effc}.focused{box-shadow:inset 3px 0 var(--orange)}
.profile-head{display:flex;gap:14px;align-items:center;margin:14px 0}
.profile-head .crest{width:51px;height:55px;font-size:14px}
.profile-head .star{margin-left:auto}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:8px;margin-bottom:15px}
.metrics>div{display:grid;gap:4px;padding:9px 12px}
.metrics span{font-size:.85rem;color:var(--muted)}
.metrics strong{font-size:1.18rem}
.form{display:inline-flex;gap:4px}
.form span{display:grid;place-items:center;border-radius:4px;min-width:23px;height:23px;font-size:.76rem;font-weight:800}
.w{background:#d2efde;color:#165735}.d{background:#e4e8ee;color:#36465d}.l{background:#f8dadc;color:#891f28}
.analysis-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:10px}
.panel{padding:12px}.panel h3{margin:0 0 6px}.panel p+h3{margin-top:8px}
.chart{display:flex;height:28px;border-radius:5px;overflow:hidden;margin:9px 0}
.chart span{display:grid;place-items:center;font-weight:800;min-width:0}
.empty{padding:18px;background:white;border:1px dashed var(--steel);border-radius:8px}
.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){
  .sidebar{inset:auto 0 0;width:auto;padding:4px 5px calc(4px + env(safe-area-inset-bottom));z-index:2}
  .sidebar .brand{display:none}
  nav{grid-template-columns:repeat(4,1fr);gap:3px}
  nav a{flex-direction:column;justify-content:center;gap:3px;min-height:50px;padding:4px;font-size:.8rem}
  nav a[aria-current]{box-shadow:inset 0 3px var(--orange)}
  main{margin:0;padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  .top{flex-wrap:wrap;gap:7px;min-height:0}
  .mobile-brand{display:block;font-weight:800}
  .top form{width:100%}
  #app{padding-top:17px}
  .filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,106px),1fr))}
  .filters select{width:100%}
}
@media(max-width:460px){
  .team-row a{grid-template-columns:auto minmax(0,1fr) auto;gap:3px 7px}
  .team-row .crest{grid-row:span 2}.team-row .badge{grid-column:2;justify-self:start}.team-row .chevron{grid-column:3;grid-row:1 / span 2}
  .tabs button{font-size:.9rem;padding-inline:8px}
  .profile-head h1{font-size:1.65rem}
}
@media(max-width:760px){
  .league-table th:nth-child(2),.league-table td:nth-child(2){white-space:normal;min-width:115px}
  .league-table :is(td,th):nth-child(3){border-right:1px solid var(--line)}
  .league-table :is(td,th):nth-child(10){background:#e7eff9;font-weight:800}
}
.directory-views{display:flex;align-items:flex-start;gap:8px}
.directory-views .tabs{flex:1}
#division-picker{width:min(580px,calc(100% - 32px));max-height:85dvh;border:1px solid var(--line);border-radius:14px;padding:18px;color:var(--ink);overflow:auto}
#division-picker::backdrop{background:#14274399}
.picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.picker-head h2{margin:0}
.picker-search{display:grid;gap:4px;font-weight:700;margin-bottom:12px}
.picker-search input{width:100%;min-height:44px;border:1px solid var(--steel);border-radius:7px;padding:8px 10px}
.division-options{display:grid;gap:5px;margin-top:6px}
.division-options button{display:grid;gap:2px;text-align:left;background:white;border:1px solid var(--line);border-radius:7px;padding:8px 10px;min-height:44px}
.division-options button[aria-current]{background:#e5effc;border-color:var(--steel)}
.division-options button span{font-size:.85rem;color:var(--muted)}
@media(max-width:760px){
  #division-picker{margin:auto 0 0;width:100%;max-width:none;border-radius:16px 16px 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .directory-views{flex-wrap:wrap;margin-bottom:10px}
  .directory-views .tabs{flex-basis:100%;margin-bottom:0}
}

.division-more{margin-top:8px}

.directory-views .tabs {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .98fr) minmax(0, 1.68fr);
  gap: 0;
  min-width: 0;
}
.directory-views .tabs button {
  min-width: 0;
  padding-inline: 2px;
  white-space: nowrap;
}
@media (max-width: 460px) {
  .directory-views .tabs button {
    font-size: clamp(.65rem, 3.15vw, .9rem);
  }
}

.club-logo{display:block;flex:none;width:33px;height:36px;object-fit:contain}
.side .club-logo{width:26px;height:28px}
.profile-head .club-logo{width:51px;height:55px}
@media(max-width:760px){
  .mobile-brand{display:flex;align-items:center;gap:6px}
  .mobile-brand .club-logo{width:22px;height:24px}
}
@media(max-width:460px){.team-row .club-logo{grid-row:span 2}}

.filter-caption{display:block;margin-bottom:4px;font-size:.84rem;font-weight:720}
.competition-picker{position:relative;min-width:0}
.competition-picker summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 11px;border:1px solid var(--steel);border-radius:8px;background:white;cursor:pointer;list-style:none;font-size:.9rem;font-weight:700;line-height:1.2}
.competition-picker summary::-webkit-details-marker{display:none}
.competition-picker summary:focus-visible{outline:3px solid #b65112;outline-offset:3px}
.competition-picker[open] summary{border-color:var(--secondary)}
.picker-chevron{width:7px;height:7px;flex:none;border-right:2px solid var(--secondary);border-bottom:2px solid var(--secondary);transform:rotate(45deg);margin:0 3px 3px 0}
.competition-picker[open] .picker-chevron{transform:rotate(225deg);margin-bottom:-3px}
.competition-options{position:absolute;z-index:1;top:calc(100% + 6px);left:0;width:260px;max-width:calc(100vw - 32px);padding:6px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 22px #14274326}
.competition-options-head{display:flex;align-items:center;justify-content:flex-end;padding:0 5px 3px;margin-bottom:4px;border-bottom:1px solid var(--line);font-size:.9rem}
.competition-options label{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 8px;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:650}
.competition-options label:hover,.competition-options label:focus-within{background:#edf3fa}
.competition-options input{width:17px;height:17px;flex:none;margin:0;accent-color:var(--navy)}
.competition-options button{min-height:44px;padding:0 3px;border:0;background:white;color:#204f87;font-size:.85rem;font-weight:750;text-decoration:underline}
.league-dot{width:8px;height:8px;flex:none;border-radius:50%;background:currentColor}

.competition-mobile-label{display:none}
@media(max-width:760px){
  .competition-desktop-label{display:none}
  .competition-mobile-label{display:inline}
}

.standing-team{display:flex;align-items:center;gap:8px}
.standing-team :is(.club-logo,.crest){width:23px;height:25px}

.venue-directions{display:inline-flex;align-items:center;min-height:44px;color:#204f87;font-weight:650;text-decoration:underline;text-underline-offset:3px}

.directory-views .tabs{grid-template-columns:1fr .9fr 1.45fr}

.team-list-tools{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.9rem;font-weight:650}
.team-list-tools button{color:var(--ink)}

.competition-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}

.competition-empty{padding:8px;font-size:.88rem}
