.coql-standings main{max-width:none;margin-inline:auto;padding-top:1.5rem}
.coql-standings .matches-header nav{margin-left:auto;width:auto;order:initial}
.coql-standings .matches-header [aria-current]{text-decoration:underline;text-underline-offset:.3em}
.standings-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem}
.season-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.coql-standings h1{font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.2;margin:.15rem 0}
.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--matches-muted);margin:0}
.season-title{margin:.25rem 0 0;color:var(--matches-muted);font-size:1.05rem}
.region-nav,.season-controls,.season-paging,.season-overview,.standings-tools,.phase-nav,.form-legend{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem}
.region-nav{gap:.45rem;margin:.75rem 0}.region-nav small{margin-left:.4rem;opacity:.8}
body.coql-standings main a.button.primary{color:var(--org-onbrand)}
.season-controls{padding:.8rem 0;border-bottom:1px solid var(--matches-line)}
.season-controls label{font-weight:600}.season-controls select{padding:.4rem;border:1px solid var(--matches-line);border-radius:.4rem;max-width:100%}
.season-paging{margin-left:auto;font-size:.85rem}.season-overview{font-size:.82rem;color:var(--matches-muted);margin:1rem 0}
.season-state{font-weight:600;padding:.2rem .65rem;border:1px solid var(--matches-line);border-radius:2rem;background:var(--matches-soft);color:var(--matches-text)}
.state-current{border-color:var(--org-color)}.state-current::before{content:"";display:inline-block;background:#22a06b;width:.5rem;height:.5rem;border-radius:50%;margin-right:.4rem}
.standings-tools{justify-content:space-between;margin:1rem 0}.phase-nav{font-size:.9rem;gap:.5rem 1.2rem}
.team-search{font-size:.82rem;display:flex;align-items:center;gap:.5rem;white-space:nowrap}.team-search input{max-width:14rem;min-width:0;padding:.4rem .6rem;border:1px solid var(--matches-line);border-radius:.4rem}
.scoring-guide{font-size:.85rem;margin:.75rem 0;color:var(--matches-muted)}.scoring-guide summary{width:fit-content}.scoring-guide p{max-width:70rem}
summary{cursor:pointer}summary:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,.standings-scroll:focus-visible,.knockout-bracket:focus-visible{outline:2px solid var(--org-color);outline-offset:3px}
.form-legend{font-size:.75rem;gap:.35rem;margin:1rem 0}.form-legend>.muted{margin-left:.65rem}
.phase-section{scroll-margin-top:1rem;margin:1.3rem 0}.phase-section>summary{display:flex;align-items:center;gap:.8rem;padding:.75rem 0;border-bottom:2px solid var(--matches-line);font-size:1.2rem;font-weight:650;list-style:none}
.phase-section>summary::before{content:"›";display:inline-block;font-size:1.5rem;line-height:1;width:.7rem;transform:rotate(0deg)}.phase-section[open]>summary::before{transform:rotate(90deg)}.phase-section>summary::-webkit-details-marker{display:none}
.phase-section>summary small{font-size:.75rem;font-weight:400;color:var(--matches-muted);margin-left:auto}
.group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--standings-table-min,56rem)),1fr));gap:1rem;margin:1rem 0}
.group-panel{min-width:0;overflow:hidden;background:var(--matches-surface);border:1px solid var(--matches-line);border-radius:.75rem;box-shadow:0 3px 12px #0a132107}
.group-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 1rem;background:var(--matches-soft);border-bottom:1px solid var(--matches-line)}
.group-heading h2{font-size:.98rem;margin:0;font-weight:650}.group-heading a{font-size:.75rem;white-space:nowrap}
.standings-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
.coql-standings .standings-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:.82rem}
.coql-standings .standings-table th,.coql-standings .standings-table td{position:static;padding:.5rem .4rem;text-align:right;white-space:nowrap;border:0;border-bottom:1px solid var(--matches-line);background:transparent}
.coql-standings .standings-table thead th{font-size:.7rem;color:var(--matches-muted);font-weight:600;background:var(--matches-surface);vertical-align:middle}
.coql-standings .standings-table th:nth-child(2),.coql-standings .standings-table .standings-team{text-align:left;min-width:9rem;width:25%;white-space:normal;overflow-wrap:anywhere}
.coql-standings .standings-table .rank{width:2.5rem;color:var(--matches-muted);text-align:center}
.coql-standings .standings-table .standings-team{font-weight:600;white-space:nowrap;max-width:16rem}.standings-team a{display:block;width:clamp(9rem,15vw,16rem);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}.standings-team a:hover{text-decoration:underline}
.coql-standings .standings-table tr:last-child>*{border-bottom:0}.coql-standings .standings-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--matches-soft) 40%,transparent)}
.coql-standings .standings-table tbody tr:hover{background:var(--matches-soft)}
.coql-standings .standings-table .league-points{font-size:.92rem;font-weight:750;background:color-mix(in srgb,var(--org-color) 7%,transparent)}
.coql-standings .standings-table th:last-child{text-align:left;padding-left:.8rem}.coql-standings .standings-table .form-cell{min-width:0;padding-left:.8rem;text-align:left}
.season-form,.form-weeks{display:grid;gap:.25rem;min-width:max-content;width:max-content;padding:.15rem}
.form-week{display:flex;align-items:center;justify-content:center;height:1.3rem;font-size:.65rem;font-weight:500;color:var(--matches-muted);border-radius:.22rem}.form-week.phase-week{outline:2px solid var(--matches-text);outline-offset:1px;color:var(--matches-text);font-weight:750}
.form-result{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.3rem;border:1px solid transparent;border-radius:.22rem;font-size:.65rem;font-weight:750;line-height:1;text-decoration:none;padding:0;font-family:inherit}
.result-w{background:#147a43;color:#fff;border-color:#147a43}.result-d{background:#ffe083;color:#4a3500;border-color:#c69c29}.result-l{background:#b8323d;color:#fff;border-color:#b8323d}.result-pending{background:var(--matches-soft);color:var(--matches-muted);border-color:var(--matches-line)}
button.form-result:hover{box-shadow:0 0 0 2px var(--matches-text);position:relative;z-index:1}
.standings-notice{padding:1rem;background:var(--matches-soft);border:1px solid var(--matches-line);border-radius:.6rem}
.tier-nav{position:sticky;top:0;z-index:5;display:flex;gap:.4rem;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;margin-top:.75rem;padding:.5rem .65rem;border:1px solid var(--matches-line);border-radius:.5rem;background:var(--matches-surface);box-shadow:0 3px 8px #0a132115}
.tier-nav a{flex:0 0 auto;padding:.3rem .65rem;white-space:nowrap;font-size:.85rem;font-weight:600;text-decoration:none;border:1px solid var(--matches-line);border-radius:.35rem;background:var(--matches-soft)}.tier-nav a:hover,.tier-nav a:focus-visible{border-color:var(--org-color);text-decoration:underline}
.knockout-tier{scroll-margin-top:4rem;margin:1rem 0 1.5rem;padding:1rem;background:var(--matches-surface);border:1px solid var(--matches-line);border-radius:.75rem;min-width:0}
.knockout-tier>h2{margin:0;font-size:1.1rem}.knockout-tier>p{font-size:.8rem;margin:.3rem 0 .8rem}
.knockout-bracket{display:flex;align-items:stretch;gap:1.6rem;overflow-x:auto;padding:.25rem .1rem 1rem;scroll-snap-type:x proximity}
.ko-round{flex:1 0 17rem;min-width:0;max-width:24rem;scroll-snap-align:start}.ko-round h3{margin:0 0 .75rem;font-size:.9rem;border-bottom:3px solid var(--org-color);padding-bottom:.5rem}
.ko-round-matches{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:.8rem;align-content:start}
.ko-round-matches>[data-ko-teams]{min-width:0}
.ko-match{display:flex;flex-direction:column;width:100%;min-width:0;height:100%;border:1px solid var(--matches-line);border-radius:.55rem;overflow:hidden;background:var(--matches-surface);font-size:.85rem}
.ko-match>header{display:flex;justify-content:space-between;gap:.75rem;padding:.4rem .65rem;background:var(--matches-soft);font-size:.7rem;color:var(--matches-muted)}
.ko-match>header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ko-match>header a{flex-shrink:0}
.ko-team{display:flex;flex:1;align-items:center;gap:.5rem;padding:.65rem;min-height:3.5rem;border-top:1px solid var(--matches-line)}
.ko-team>span{flex:1;min-width:0}.ko-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ko-team>strong{font-size:1.15rem;font-variant-numeric:tabular-nums}.ko-team small{display:block;font-size:.65rem;color:var(--matches-muted);font-weight:400}.ko-team .grid-score{white-space:nowrap}
.ko-team>span>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ko-team>span{line-height:1.35}
.ko-score{flex-shrink:0;min-width:2.6rem;padding:.15rem .4rem;border-radius:.3rem;line-height:1.3;text-align:center;background:var(--matches-soft);color:var(--matches-text)}
.ko-score.score-win{background:#147a43;color:#fff}.ko-score.score-loss{background:#b8323d;color:#fff}
.ko-match>footer{display:flex;align-items:center;justify-content:space-between;gap:.65rem;margin-top:auto;font-size:.65rem;border-top:1px solid var(--matches-line);padding:.4rem .65rem;color:var(--matches-muted)}.ko-match>footer span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ko-match>footer button{flex-shrink:0;white-space:nowrap;background:none;border:0;padding:.2rem 0;color:inherit;text-decoration:underline;font-size:inherit}
.finishes{font-size:.85rem;margin:.8rem 0 1.2rem}.finishes summary{font-size:1rem;font-weight:650}.finishes summary small{font-size:.75rem;color:var(--matches-muted);font-weight:400;margin-left:.5rem}.finishes-table{width:100%;min-width:0;border-collapse:collapse;margin-top:.6rem;font-size:.85rem}.finishes-table th,.finishes-table td{position:static;padding:.45rem .65rem;text-align:left;border-bottom:1px solid var(--matches-line)}.finishes-table tbody th{background:transparent}.finishes-table th:first-child,.finishes-table td:first-child{width:3rem;text-align:center}.finishes-table th:last-child,.finishes-table td:last-child{width:6rem;text-align:right}.finishes-table button:not(.form-result){padding:.1rem .4rem;border:1px solid var(--matches-line);border-radius:.25rem;background:var(--matches-soft);color:var(--matches-text)}.bracket-heading{font-size:.95rem;margin:1rem 0 .3rem}.extra-matches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;margin-top:1rem}
.standings-footer{font-size:.8rem;color:var(--matches-muted);margin-top:2rem}
.finishes>h3{font-size:1.35rem;margin:.5rem 0 .8rem;letter-spacing:-.02em}.finishes-note{font-size:.78rem;color:var(--matches-muted);margin:.5rem 0}.finishes-table{table-layout:auto;font-variant-numeric:tabular-nums}.finishes-table th,.finishes-table td{padding:.45rem .35rem;vertical-align:middle}.finishes-table thead th,.finishes-table td{width:1%;white-space:nowrap;text-align:right}.finishes-table .overall-position{width:4.5rem;text-align:center}.finishes-table .finish-team{min-width:9rem;max-width:16rem;width:auto;text-align:left}.finishes-table th[scope=row] a{display:block;width:clamp(9rem,15vw,16rem);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.finishes-table .form-heading,.finishes-table .form-cell{width:auto;padding-left:.8rem;text-align:left}.finishes-table .league-points{font-weight:750;background:color-mix(in srgb,var(--org-color) 7%,transparent)}
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:.8rem;margin:.5rem 0 1.25rem;max-width:66rem}
.medal-gold{--medal-face:#f5d27b;--medal-edge:#ad7b1c;--medal-ink:#503300}.medal-silver{--medal-face:#d9e1eb;--medal-edge:#8795a6;--medal-ink:#344252}.medal-bronze{--medal-face:#e5b58e;--medal-edge:#a56c40;--medal-ink:#583317}
.podium-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;min-width:0;min-height:9.25rem;padding:.9rem .8rem;text-align:center;border:1px solid var(--medal-edge);border-radius:.65rem;background:linear-gradient(150deg,color-mix(in srgb,var(--medal-face) 16%,var(--matches-surface)),var(--matches-surface));box-shadow:0 3px 12px #0a132109}
.podium-card.medal-gold{order:2;min-height:10.25rem;border-width:2px}.podium-card.medal-silver{order:1}.podium-card.medal-bronze{order:3}.medal-icon{display:inline-flex;align-items:center;justify-content:center;width:2.7rem;height:2.7rem;border:2px solid var(--medal-edge);border-radius:50%;background:linear-gradient(135deg,#ffffffbb,var(--medal-face) 50%,var(--medal-edge));color:var(--medal-ink);box-shadow:0 2px 0 var(--medal-edge);font-size:1.3rem;font-weight:800}
.medal-label{font-size:.67rem;font-weight:750;text-transform:uppercase;letter-spacing:.12em}.podium-team{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.03rem;font-weight:700;text-decoration:none}.podium-card small{font-size:.7rem;color:var(--matches-muted)}.medal-pending{opacity:.6;border-style:dashed;box-shadow:none}
.finish-medal{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:50%;background:var(--medal-face);color:var(--medal-ink);border:1px solid var(--medal-edge);font-weight:800}
.coql-standings .standings-table .search-match>*,.finishes-table .search-match>*{background:color-mix(in srgb,var(--org-color) 12%,var(--matches-surface))}.search-match .standings-team a,.finishes-table .search-match th a{text-decoration:underline;text-underline-offset:.2em}.podium-card.search-match{box-shadow:0 0 0 2px var(--org-color)}
@media(max-width:650px){.podium{gap:.4rem}.podium-card{padding:.65rem .4rem;min-height:8.5rem}.podium-card.medal-gold{min-height:9.25rem}.podium-team{font-size:.8rem}.podium-card small{font-size:.6rem}.medal-icon{width:2rem;height:2rem;font-size:1rem}}
#searchStatus{font-size:.8rem;color:var(--matches-muted)}#searchStatus:empty{display:none}
#matchDetails .detail-scores{display:grid;gap:.65rem;margin:1rem 0}#matchDetails .detail-team{display:flex;justify-content:space-between;gap:1rem;padding:.75rem;background:var(--matches-soft);border-radius:.4rem}#matchDetails .detail-team strong{white-space:nowrap}#matchDetails p{font-size:.9rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:1rem;top:-5rem;z-index:10;background:var(--matches-surface);color:var(--matches-text);padding:.5rem}.skip-link:focus{top:.5rem}
@media(max-width:760px){.coql-standings .standings-table tr>:first-child{position:sticky;left:0;z-index:2;min-width:2.5rem;max-width:2.5rem;width:2.5rem;background:var(--matches-surface)}.coql-standings .standings-table tr>:nth-child(2){position:sticky;left:2.5rem;z-index:2;min-width:9rem;max-width:9rem;width:9rem;background:var(--matches-surface);box-shadow:3px 0 5px #0a132112}}
@media(max-width:650px){.coql-standings main{padding-inline:.75rem}.standings-heading{align-items:start}.season-paging{margin-left:0;width:100%}.standings-tools{align-items:start}.team-search{width:100%}.team-search input{flex:1;max-width:none}.form-legend>.muted{width:100%;margin-left:0}.knockout-tier{padding:.7rem}.finishes ol{columns:1}.coql-standings .matches-header{gap:.5rem}.coql-standings .matches-header nav{font-size:.85rem;gap:.75rem}.coql-standings .matches-theme-control{margin-left:auto;min-width:4rem}}


@media(max-width:1100px){.finishes-table th,.finishes-table td{padding-inline:.25rem}}
