/* League pages use the established Love Darts event-page shell and rhythm. */
body.league-page-view main{max-width:860px}
body.league-page-view .league-back-link{display:inline-flex;align-items:center;min-height:36px;font-size:12px;font-weight:700;margin:4px 0 0}
body.league-page-view header.site{padding:4px 0 10px;text-align:left}
body.league-page-view header.site .board{display:none}
body.league-page-view header.site h1{margin:4px 0;font-size:clamp(24px,4vw,32px);line-height:1.15;overflow-wrap:anywhere}
body.league-page-view header.site p{margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
body.league-page-view #content h3{font-size:16px;line-height:1.3;margin:22px 0 8px}
body.league-page-view #content p.muted{font-size:12px;line-height:1.6}
body.league-page-view .nh-session{align-items:center;margin:6px 0 12px;gap:8px 16px}
body.league-page-view .nh-session>div{font-size:12px;line-height:1.6}
body.league-page-view .nh-session .badge{font-size:10px;background:transparent;border:0;padding:0;color:var(--muted);margin-right:10px}
body.league-page-view .nh-session label{display:flex;align-items:center;gap:10px;font-size:12px;max-width:none}
body.league-page-view .nh-session select{min-width:150px}
body.league-page-view .ih-archive{max-width:none}
body.league-page-view .ih-participant-search{margin:0 0 16px;font-size:12px}
body.league-page-view .ih-participant-search input{width:min(100%,28rem);margin-top:6px}
body.league-page-view .ih-status{margin:4px 0 8px;padding:0;background:transparent;font-size:12px}
body.league-page-view :is(.ih-scroll,.native-history .table-wrap){border-radius:4px;box-shadow:none}
body.league-page-view :is(.ih-data-table,.nh-data-table){background:#fffdf8;border:1px solid var(--border)}
body.league-page-view :is(.ih-person-overview,.nh-statline){border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;margin:18px 0}
body.league-page-view .ih-person-heading{margin-bottom:10px}
body.league-page-view .ih-person-heading h2{font-size:12px;color:var(--muted);margin:0}
body.league-page-view :is(.ih-metric-grid,.nh-statline){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
body.league-page-view :is(.ih-metric-grid,.nh-statline)>div{min-width:0;border:0;border-left:1px solid var(--border);border-radius:0;background:transparent;padding:0 16px}
body.league-page-view :is(.ih-metric-grid,.nh-statline)>div:first-child{border-left:0;padding-left:0}
body.league-page-view :is(.ih-metric-grid,.nh-statline) strong{font-size:28px;line-height:1.2;letter-spacing:-.03em}
body.league-page-view :is(.ih-metric-grid,.nh-statline) :is(span,small){font-size:11px;line-height:1.5;margin-top:5px;color:var(--muted)}
body.league-page-view .nh-team-players{list-style:none;padding:0;gap:0 20px;margin:8px 0 20px}
body.league-page-view .nh-team-players li{border-bottom:1px solid var(--border);padding:5px 0;font-size:13px}
body.league-page-view .ih-matches>details{margin:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}
body.league-page-view .ih-matches>details>summary{display:block;min-height:76px;padding:12px 0;list-style:none}
body.league-page-view .ih-matches>details>summary::-webkit-details-marker{display:none}
body.league-page-view .ih-matches>details>summary>small{display:block;font-size:11px;margin-bottom:6px;opacity:1;color:var(--muted)}
.league-match-line{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px;font-size:13px;font-weight:600}
.league-match-line>span{overflow-wrap:anywhere}.league-match-line>span:last-child{text-align:right}
.league-match-line>strong{font-size:13px;font-variant-numeric:tabular-nums;text-align:center;color:var(--text)}
.league-match-line>strong small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}
body.league-page-view .ih-match-detail{padding:8px 0 16px}
body.league-page-view .nh-match>summary{padding:12px 0;min-height:76px}
body.league-page-view .nh-match-score{font-size:13px;gap:14px}
body.league-page-view .nh-match-score>strong{font-size:20px}
body.league-page-view :is(.ih-filters,.nh-filters){gap:12px;margin:12px 0 16px}
body.league-page-view :is(.ih-filters,.nh-filters) label{font-size:12px}
body.league-page-view :is(.ih-source-link,.nh-source-link){border-top:1px solid var(--border);padding-top:12px;margin-top:24px;font-size:11px}
body.league-page-view .league-person-back{margin:0 0 12px;min-height:36px;padding:6px 0;background:none;border:0;color:var(--accent-text);font-size:12px;font-weight:700;cursor:pointer}
@media(max-width:600px){
 body.league-page-view .nh-session{display:block}.league-page-view .nh-session>div{margin-top:8px}
 body.league-page-view .nh-session select{flex:1;min-width:0;max-width:230px}
 body.league-page-view :is(.ih-metric-grid,.nh-statline)>div{padding:0 10px}
 body.league-page-view :is(.ih-metric-grid,.nh-statline)>div:first-child{grid-column:auto;padding-left:0}
 body.league-page-view :is(.ih-metric-grid,.nh-statline) strong{font-size:24px}
 .league-match-line{gap:8px;font-size:12px}.league-match-line>strong{font-size:12px;max-width:100px}
}
/* A selected team/player owns the page title; its season stays in the context line. */
body.league-page-view #content[data-league-detail=true] #nh-panel>h2{display:none}

/* Tab appearance and panel framing come from ftLOD .tabbar/.tab/.card. */
body.league-page-view #content .tabbar{overflow-x:auto;flex-wrap:nowrap}
body.league-page-view #content .tab:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
/* Keep session context and empty ledger states compact within shared cards. */
body.league-page-view .rookies-session-panel { padding:14px 18px; }
.rookies-session-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
body.league-page-view #content p.rookies-setup-note { margin:5px 0 0; }
.rookies-session-links { display:flex; flex-wrap:wrap; gap:8px 24px; margin-top:10px; font-size:13px; }
.rookies-session-links>details { min-width:0; }
.rookies-session-links>details[open] { flex-basis:100%; }
.rookies-session-links summary,.league-ledger-help summary { cursor:pointer; color:var(--accent-text); }
body.league-page-view .league-ledger-panel h2 { margin:0 0 8px; }
.league-ledger-help { font-size:12px; }
body.league-page-view #content p.league-ledger-empty { margin:16px 0 0; }
.league-ledger-rows { margin-top:16px; }
.league-setup fieldset { border:0; border-top:1px solid var(--border); margin:20px 0; padding:16px 0 0; min-width:0; }
.league-setup legend { padding:0 8px 0 0; font-weight:700; font-size:14px; }
.league-setup h2 { margin-top:0; }
.league-setup .check-row { margin:10px 0; }
.league-setup [role=status] { font-size:13px; overflow-wrap:anywhere; }
.draft-config .actions,.draft-available { display:flex; flex-wrap:wrap; gap:8px; }
.draft-pool input[type=number] { min-width:76px; width:90px; }
.draft-pool select { min-width:86px; }
.draft-teams { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px; margin-top:20px; }
.draft-team { border:1px solid var(--border); border-radius:12px; padding:12px; background:var(--panel); min-width:0; }
body.league-page-view #content .draft-team h3 { margin:0 0 8px; }
.draft-team ol { padding-left:20px; margin:0; }
.draft-team li { margin:8px 0; overflow-wrap:anywhere; }
.draft-team li>span,.draft-team li>label { display:block; font-size:12px; }
.draft-team select { width:auto; display:inline-block; margin-left:8px; }
.draft-corrections,.draft-history { margin-top:20px; font-size:13px; }
.draft-corrections summary,.draft-history summary { cursor:pointer; color:var(--accent-text); }
.draft-config h2 { margin-top:0; }
#draftCountdown { font-variant-numeric:tabular-nums; font-weight:600; }
body.league-page-view #content .tabbar>.tab { flex:1 0 auto; min-width:72px; }
