/* Standings fit their cards at phone, tablet and desktop widths. */
.standings-sections { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.standings-sections a { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; color:var(--ui-ink); border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-surface); font-weight:650; }
.standings-sections a:first-child { color:var(--ui-on-primary); background:var(--ui-primary); border-color:var(--ui-primary); }
.standings-section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin:0 0 16px; scroll-margin-top:24px; }
.standings-section-heading h2 { margin:0 0 8px; color:var(--ui-ink); font-size:22px; }
.standings-section-heading p { margin:0; color:var(--ui-muted); font-size:14px; line-height:1.5; }
.standings-section-heading .hub-button { flex-shrink:0; }
.standings-knockout { margin-bottom:32px; scroll-margin-top:24px; }
.standings-knockout-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:20px; }
.standings-knockout-stage { min-width:0; }
.standings-stage-links { display:flex; flex-wrap:wrap; gap:8px 20px; margin-bottom:8px; }
.standings-stage-links a { display:inline-flex; align-items:center; min-height:44px; color:var(--ui-primary); font-size:14px; font-weight:650; text-decoration:underline; text-underline-offset:4px; }
.standings-stage-links .standings-stage-link--latest { padding:8px 12px; border:1px solid var(--ui-primary); border-radius:8px; background:var(--ui-soft); text-decoration:none; }
.standings-knockout-stage.standings-knockout-stage--latest>header { border-bottom-color:var(--ui-primary); }
.standings-stage-latest { display:block; margin-top:4px; color:var(--ui-primary); font-size:12px; font-weight:650; }
.standings-knockout-stage h3 { scroll-margin-top:24px; }
.standings-knockout-stage>header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; min-height:76px; box-sizing:border-box; padding:12px 0; border-bottom:2px solid var(--ui-line); margin-bottom:16px; }
.standings-knockout-stage>header h3 { margin:0; color:var(--ui-ink); font-size:18px; }
.standings-knockout-stage>header>span { font-size:12px; color:var(--ui-muted); }
.standings-knockout-card { margin-bottom:16px; padding:16px; overflow:hidden; }
.standings-knockout-card>header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.standings-knockout-card h4 { margin:0; font-size:16px; color:var(--ui-ink); }
.standings-knockout-card .hub-tag { font-size:12px; color:var(--ui-muted); background:var(--ui-soft); border-color:var(--ui-line); }
.standings-knockout-date { margin:12px 0; color:var(--ui-muted); font-size:12px; line-height:1.5; }
.standings-knockout-teams { list-style:none; padding:0; margin:12px 0; }
.standings-knockout-teams>li { display:flex; align-items:center; gap:8px; padding:12px 0; border-top:1px solid var(--ui-line); color:var(--ui-ink); }
.standings-knockout-teams>li>div { flex:1; min-width:0; }
.standings-knockout-teams strong { display:block; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.standings-knockout-teams small { display:block; color:var(--ui-muted); font-size:12px; line-height:1.5; }
.standings-knockout-winner>div>small { color:var(--ui-primary); font-weight:700; }
.standings-knockout-points { min-width:28px; text-align:right; font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; }
.standings-knockout-card--playoff .standings-knockout-points { font-size:18px; color:var(--ui-muted); }
.standings-knockout-verdict,.standings-champion { display:flex; align-items:center; gap:12px; padding:12px; margin:12px 0; background:var(--ui-soft); border-inline-start:4px solid var(--ui-primary); color:var(--ui-ink); border-radius:8px; }
.standings-knockout-verdict>span,.standings-champion>span { color:var(--ui-primary); font-size:24px; }
.standings-knockout-verdict strong { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.standings-knockout-verdict small { display:block; color:var(--ui-muted); font-size:12px; }
.standings-knockout-players,.standings-knockout-result,.standings-knockout-empty { font-size:13px; line-height:1.5; color:var(--ui-muted); overflow-wrap:anywhere; }
.standings-knockout-players>span { display:block; margin:4px 0; }
.standings-knockout-teams>li.standings-knockout-pending { flex-direction:column; align-items:flex-start; font-size:14px; }
.standings-knockout-link { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding-top:8px; color:var(--ui-primary); font-size:14px; font-weight:650; }
.standings-champion { padding:16px; margin-bottom:20px; }
.standings-champion small { display:block; color:var(--ui-muted); font-size:14px; }
.standings-champion strong { display:block; font-size:22px; overflow-wrap:anywhere; }
@media(max-width:999px) { .standings-knockout-grid { grid-template-columns:minmax(0,1fr); gap:20px; } .standings-section-heading { flex-wrap:wrap; } }
.standings-page .hub-heading{margin-bottom:14px}
.standings-page .hub-stats{margin-bottom:14px}
.standings-page .hub-filters{margin-bottom:8px}
.standings-context{display:flex;flex-direction:column;gap:4px;margin:12px 0 16px;color:var(--ui-muted);font-size:14px;line-height:1.5}
.standings-context p{margin:0}.standings-context strong{color:var(--ui-ink)}
.standings-page .hub-standing-grid{gap:16px}
.standings-page .hub-panel-header{padding:12px 16px;gap:12px;min-height:68px}
.standings-page .hub-panel-header h2{font-size:20px;margin:0}
.standings-page .hub-standings-table{table-layout:fixed;width:100%;min-width:0}
.standings-page .hub-standings-table :is(td,th){box-sizing:border-box;padding:12px;vertical-align:middle}
.standings-page .hub-standings-table thead th{font-size:11px;line-height:1.4}
.standings-page .hub-standings-table th:first-child{width:44px}
.standings-page .hub-standings-table th:nth-child(3){width:76px}
.standings-page .hub-standings-table th:last-child{width:120px}
.standings-page .hub-standings-table tbody tr{height:72px}
.standings-page .hub-team-link{gap:10px;min-width:0;font-size:14px;line-height:1.45}
.standings-page .hub-team-link>span:last-child{min-width:0;overflow-wrap:anywhere}
.standings-page .hub-mark{width:34px;height:34px;flex:0 0 34px}
.standings-page .standings-points{box-sizing:border-box;display:inline-flex;gap:8px;align-items:center;justify-content:flex-end;width:100%;min-width:0;min-height:44px;padding:8px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:8px;color:var(--ui-ink);cursor:pointer;font-variant-numeric:tabular-nums}
.standings-points strong{font-size:20px;line-height:1.2}.standings-points i{font-size:10px;color:var(--ui-primary);flex-shrink:0}
.standings-points:hover{border-color:var(--ui-primary)}.standings-points:focus-visible{outline:3px solid var(--ui-primary);outline-offset:2px}
.standings-points[hidden],.standings-page [data-static-points][hidden]{display:none!important}
.standings-rounds-mobile{display:none}
@media(max-width:600px){
 .standings-page .hub-panel-header{padding:10px 12px;min-height:64px}
 .standings-page .hub-standings-table :is(td,th){padding:10px 8px}
 .standings-page .hub-standings-table th:first-child{width:36px}
 .standings-page .hub-standings-table th:last-child{width:104px}
 .standings-page .hub-standings-table :is(th,td):nth-child(3){display:none}
 .standings-page .hub-team-link{font-size:14px;gap:8px}
 .standings-page .hub-mark{width:28px;height:28px;flex-basis:28px;display:inline-grid}
 .standings-page .standings-points{padding:6px;gap:6px}
 .standings-points strong{font-size:20px}
 .standings-rounds-mobile{display:block;margin-top:4px;color:var(--ui-muted);font-size:12px;font-weight:400}
 .standings-page .hub-standings-table tbody tr{height:76px}
}
@media(max-width:360px){.standings-page .hub-standings-table th:last-child{width:92px}.standings-page .standings-points{padding:6px 4px;gap:4px}.standings-points strong{font-size:18px}}
@media print{.standings-context{font-size:10px}.standings-points{border:0;background:none}}

/* Explanations share the existing public league native-dialog behavior. */
.standings-group-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.standings-page .hub-panel-header .standings-tiebreak-button{font-size:14px;padding:8px 10px;min-height:44px;gap:8px;background:transparent;border-color:var(--ui-inverse);color:var(--ui-inverse)}
.standings-page .hub-panel-header .standings-tiebreak-button:hover{background:var(--ui-header);border-color:var(--ui-inverse);text-decoration:underline;text-underline-offset:3px}
.standings-page .hub-panel-header .standings-tiebreak-button:focus-visible{outline:3px solid var(--ui-inverse);outline-offset:3px}
.standings-tiebreak-button[hidden],.standings-tiebreak-fallback[hidden]{display:none}
.standings-tiebreak-fallback{padding:12px 16px;border-top:1px solid var(--ui-line)}
.standings-tiebreak-fallback summary,.standings-stableford-details summary,.standings-tiebreak-rules summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:600;color:var(--ui-primary)}
.hub-dialog.standings-tiebreak-dialog{width:min(800px,calc(100vw - 24px))}
.standings-tiebreak-content{padding:20px 0;font-size:16px;line-height:1.5}
.standings-tiebreak-status,.standings-tiebreak-help{font-size:14px;color:var(--ui-muted);margin:0 0 16px}
.standings-tiebreak-verdict{padding:16px;background:var(--ui-soft);border-left:4px solid var(--ui-primary);border-radius:8px;display:flex;gap:12px;align-items:baseline;overflow-wrap:anywhere}
.standings-comparison-scroll{overflow:auto;max-width:100%;margin-bottom:12px}
.standings-comparison-table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.standings-comparison-table th,.standings-comparison-table td{padding:12px 8px;border-bottom:1px solid var(--ui-line);vertical-align:middle;overflow-wrap:anywhere}
.standings-comparison-table thead th{font-size:14px;color:var(--ui-muted);text-align:center}
.standings-comparison-table th:first-child{width:44%;text-align:left}
.standings-comparison-table tbody th{font-size:14px;font-weight:500}
.standings-comparison-table td{text-align:center;font-weight:650;font-size:18px}
.standings-comparison-table small{display:block;font-size:12px;font-weight:650;color:var(--ui-primary);margin-top:4px}
.standings-comparison-table .standings-deciding{background:var(--ui-soft)}
.standings-deciding td{color:var(--ui-primary);font-size:22px}
.standings-not-needed{font-size:12px;font-weight:400;color:var(--ui-muted)}
.standings-stableford-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:12px 0 20px}
.standings-stableford-grid h3{font-size:16px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
.standings-stableford-grid p{font-size:14px;color:var(--ui-muted)}
.standings-player-evidence{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5}
.standings-player-evidence th,.standings-player-evidence td{padding:10px 4px;border-bottom:1px solid var(--ui-line);text-align:left;overflow-wrap:anywhere}
.standings-player-evidence thead{color:var(--ui-muted);font-size:12px}.standings-player-evidence tbody th{font-weight:500}
.standings-player-evidence td{text-align:right;font-variant-numeric:tabular-nums}
.standings-player-evidence small{display:block;color:var(--ui-muted);font-size:12px}
.standings-tiebreak-rules{border-top:1px solid var(--ui-line);margin-top:12px;padding-top:8px}
.standings-tiebreak-rules ol{padding-left:24px;font-size:14px}.standings-tiebreak-rules li{margin:8px 0}
@media(max-width:600px){.standings-group-actions{gap:4px}.standings-group-actions .hub-tag{display:none}.standings-page .hub-panel-header .standings-tiebreak-button{font-size:14px;padding:8px}.standings-tiebreak-content{padding:16px 0}.standings-tiebreak-verdict{padding:12px;font-size:15px}.standings-stableford-grid{grid-template-columns:minmax(0,1fr);gap:20px}.standings-comparison-table th:first-child{width:42%}.standings-comparison-table th,.standings-comparison-table td{padding:10px 4px}.standings-comparison-table tbody th{font-size:14px}.standings-comparison-table thead th{font-size:12px}.standings-not-needed{font-size:11px}}
