:root{font-family:system-ui,-apple-system,sans-serif;color:#172d40;background:#f3f6f8;line-height:1.5;--nav:#184067;--accent:#184067;--red:#da242c}
*{box-sizing:border-box}body{margin:0}header{background:var(--nav);color:white;padding:.3rem clamp(1rem,4vw,3rem);display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:1rem;font-size:1.25rem}.brand-logo{width:72px;height:72px;object-fit:contain;flex-shrink:0}nav{display:flex;flex-wrap:wrap;gap:.3rem;background:white;padding:.5rem clamp(1rem,4vw,3rem);border-bottom:1px solid #d6e0e6}
button,select,input{font:inherit}button,select,input{border:1px solid #bdcbd5;border-radius:.35rem;padding:.5rem .7rem;background:white;color:inherit}button{cursor:pointer}button:hover{background:#e9f2f8}nav button{border-color:transparent}nav button[aria-current]{background:var(--accent);color:white}
main{max-width:1400px;margin:auto;padding:1.4rem clamp(.8rem,3vw,2rem)}h1{font-size:1.65rem;margin:.4rem 0}#controls{display:flex;flex-wrap:wrap;gap:1rem;align-items:end;margin:1rem 0}#controls label{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem;font-weight:600}
#controls input,#controls select{max-width:100%;width:100%;min-width:12rem}
.results{overflow:auto;background:white;border:1px solid #d6e0e6;border-radius:.5rem;min-height:4rem}table{border-collapse:collapse;width:100%;font-size:.9rem;white-space:nowrap}th,td{text-align:left;padding:.65rem .8rem;border-bottom:1px solid #e4eaef}th{background:#e8eff5}th button{background:transparent;border:0;padding:0;font-weight:700;text-align:left}tbody tr:nth-child(even){background:#f8fafc}tbody tr:hover{background:#edf5fb}td a{color:var(--accent);font-weight:600}#status,#summary{color:#486174;margin:.5rem 0}#results>p{padding:1rem}footer{text-align:center;color:#607486;padding:1.5rem;font-size:.85rem}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d18a22;outline-offset:2px}
@media(max-width:600px){.brand{font-size:1rem}nav button{font-size:.85rem}#controls label{flex:1 1 12rem}th,td{padding:.5rem}h1{font-size:1.4rem}}

/* Keep the selected season legible against the dark header. */
header select{color:#172d40;background:#fff;color-scheme:light}

header{border-bottom:4px solid var(--red)}
@media(max-width:600px){.brand-logo{width:56px;height:56px}}

/* Emphasize the site title without changing the logo or navigation. */
.brand span{font-weight:700}

/* Team links remain keyboard accessible and visually distinct. */
.team-link{border:0;background:transparent;color:var(--accent);padding:0;text-align:left;font-weight:600;text-decoration:underline;text-underline-offset:2px}.team-link:hover{background:transparent;color:var(--red)}#summary h2{font-size:1.2rem;margin:.5rem 0}#summary p{margin:.35rem 0}

/* Single searchable team picker, with visible inline suggestions. */
.team-picker{position:relative;width:min(100%,30rem);flex:0 1 30rem}.team-picker>label{margin-bottom:.25rem}.team-picker>input{width:100%;min-width:0!important}.team-picker-options{position:absolute;top:100%;left:0;right:0;z-index:10;background:white;border:1px solid #bdcbd5;border-radius:.35rem;box-shadow:0 5px 14px #172d4020;max-height:18rem;overflow:auto}.team-picker-options[hidden]{display:none}.team-picker-options [role=option]{padding:.55rem .75rem;cursor:pointer;font-size:.9rem}.team-picker-options [role=option]:hover,.team-picker-options [aria-selected=true]{background:#e8eff5;color:#184067}.team-picker-options p{padding:.5rem .75rem;margin:0;color:#486174}

/* Shared compact filter panel and stacked team information. */
#heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
#status:empty,#summary:empty,#controls:empty{display:none}
#controls{background:white;border:1px solid #d6e0e6;border-radius:.5rem;padding:.8rem 1rem;margin:0 0 .85rem;gap:.8rem}
.team-picker{flex:0 1 30rem;max-width:100%}
.team-summary{background:white;border:1px solid #d6e0e6;border-radius:.5rem;padding:.8rem 1rem;min-width:0;color:#184067}
.team-summary[hidden],.results[hidden]{display:none}
#summary .team-summary h2{font-size:1.2rem;margin:0 0 .15rem;overflow-wrap:anywhere}
#summary .team-summary p{font-size:.9rem;margin:0;color:#486174}
.team-summary-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.65rem 1rem;margin-top:.65rem;padding-top:.65rem;border-top:1px solid #e4eaef}
.team-metric{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.team-metric span{font-size:.8rem;color:#486174}
.team-metric strong{font-size:1.15rem;font-variant-numeric:tabular-nums}
main{padding-top:1rem}
@media(max-width:600px){#controls{padding:.65rem;gap:.65rem}#controls label{min-width:0}#controls input,#controls select{min-width:0}.team-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Match outcomes use accessible muted colors while retaining explicit result text. */
td.result-won{color:#24784b;font-weight:600}td.result-lost{color:#bd3038;font-weight:600}

/* Rankings methodology uses the same clean panels as the data pages. */
.results.method-results{background:transparent;border:0;border-radius:0;overflow:visible;min-height:0}
.method-content{display:grid;gap:.85rem}
.method-panel{background:white;border:1px solid #d6e0e6;border-radius:.5rem;padding:1.15rem 1.3rem}
.method-panel h2{font-size:1.2rem;color:var(--accent);margin:0 0 .65rem}
.method-panel p,.method-panel li{font-size:.95rem;line-height:1.65;max-width:100ch}
.method-panel p{margin:.65rem 0}.method-panel p:last-child{margin-bottom:0}
.method-panel ul{padding-left:1.4rem;margin:.6rem 0}
.method-panel .method-formula{background:#edf3f8;border-left:3px solid var(--accent);border-radius:.25rem;padding:.75rem 1rem;font-weight:700;color:var(--accent);max-width:none;overflow-wrap:anywhere}
@media(max-width:600px){.method-panel{padding:.85rem}.method-panel .method-formula{padding:.65rem}}

/* Keep mobile navigation compact and tables scrollable within the page. */
@media(max-width:600px){
  header{gap:.5rem;padding:.3rem .8rem}
  header label{display:flex;align-items:center;gap:.4rem;font-size:.85rem}
  header select{padding:.4rem .5rem}
  nav{padding:.5rem .8rem;gap:.3rem}
  nav button{padding:.45rem .6rem;min-height:40px}
  main{padding:.75rem .65rem 1rem;min-width:0}
  #controls{align-items:stretch}
  #controls label{flex:1 1 9rem}
  #controls .team-picker{flex:1 1 100%;width:100%}
  .team-picker-options{max-height: min(18rem,45vh)}
  .team-picker-options [role=option]{min-height:44px;display:flex;align-items:center;overflow-wrap:anywhere}
  .results{max-width:100%;overscroll-behavior-x:contain}
  .team-metric strong{font-size:1.05rem}
}
