.team-fixture,.team-sensitivity,.unit-profile {max-width:62rem;}
.team-fixture p,.team-sensitivity p,.unit-profile p {max-width:76ch;}
.team-fixture h3 {font-size:clamp(1.45rem,3vw,2.3rem); line-height:1.12; margin:.55rem 0;}
.team-fixture .section-head {display:flex; flex-wrap:wrap; align-items:baseline; gap:.5rem 1rem;}
.team-fixture .section-head span {color:var(--mute);}
.fixture-numbers {display:flex; flex-wrap:wrap; gap:.9rem 2.3rem; margin:.8rem 0;}
.fixture-numbers dt {font-weight:600; color:var(--mute);}
.fixture-numbers dd {font-weight:750; font-size:1.16rem; margin:0;}
.fixture-numbers small {color:var(--mute);}
.team-sensitivity ol {max-width:47rem; margin:.5rem 0; padding-inline-start:1.5rem;}
.team-sensitivity li {border-bottom:1px dotted var(--dot); padding:.4rem 0;}
.team-sensitivity li span {float:right; font-variant-numeric:tabular-nums;}
.team-compare-controls,.roster-controls {display:flex; align-items:end; flex-wrap:wrap; gap:.6rem 1rem; margin:1rem 0 .5rem;}
.team-compare-controls label,.roster-controls label {display:grid; gap:.25rem; font-weight:650;}
.team-compare-controls select,.roster-controls select,.roster-controls input[type=search] {font:inherit; color:var(--ink); background:var(--sheet); border:1px solid var(--mute); min-height:44px; padding:.4rem; min-width:0; max-width:100%;}
.roster-controls label:has(input[type=checkbox]) {display:flex; align-items:center; gap:.4rem; min-height:44px;}
.roster-controls output {color:var(--mute); align-self:center;}
.roster-controls[hidden],.roster-list li[hidden],[data-compare-teams][hidden] {display:none;}
[data-compare-teams] {max-width:61rem;}
[data-compare-status] {font-size:clamp(1.05rem,2vw,1.4rem); font-weight:700; margin:.8rem 0 .2rem;}
[data-result] table {width:100%; border-collapse:collapse; margin:1rem 0; font-variant-numeric:tabular-nums;}
[data-result] th,[data-result] td {padding:.5rem; border-block-end:1px solid var(--rule); text-align:right;}
[data-result] th:first-child {text-align:left; padding-inline-start:0;}
@media(max-width:500px){.team-compare-controls,.roster-controls {display:grid; grid-template-columns:1fr;} [data-result] table {font-size:.9rem;} [data-result] th,[data-result] td {padding:.4rem .2rem;} }
[data-player-compare] {max-width:64rem;}
[data-player-compare] .team-compare-controls {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));}
[data-player-compare] input {width:100%; min-width:0; min-height:44px; padding:.5rem; font:inherit; color:var(--ink); background:var(--sheet); border:1px solid var(--mute);}
[data-player-compare] .team-compare-controls[hidden] {display:none;}
[data-player-compare] [data-result] th,[data-player-compare] [data-result] td {white-space:normal; overflow-wrap:anywhere;}

.team-page-jumps {display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; margin:.8rem 0;}
.team-page-jumps a,.team-lineup .section-head a {text-decoration:underline; text-underline-offset:.2em;}
.team-lineup {margin-block:1.5rem;}
.team-lineup h3 {font-size:1.08rem; margin:1rem 0 .25rem;}
.team-lineup p {margin:.4rem 0; max-width:74ch;}
.opening-five {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr)); padding:0; margin:1rem 0 .6rem; list-style:none; background:var(--ink); color:var(--sheet);}
.opening-five li {padding:1rem; border-inline-end:1px solid currentColor; font-weight:700;}
.opening-five a {color:inherit; text-decoration:underline; text-underline-offset:.2em;}
.opening-five a:focus-visible {outline:2px solid currentColor; outline-offset:3px;}
.workload-groups {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr)); gap:.65rem 1.6rem; margin-block:.75rem;}
.workload-group:only-child {max-width:42rem;}
.workload-group h3 {margin:0; padding:.55rem 0; border-bottom:2px solid var(--ink);}
.workload-group ul {list-style:none; padding:0; margin:0;}
.workload-group li {display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.1rem .75rem; padding:.42rem 0; border-bottom:1px dotted var(--mute);}
.workload-group small {grid-column:1 / -1; color:var(--mute);}
.workload-group strong {font-variant-numeric:tabular-nums;}

.team-depth {max-width:55rem; margin:.55rem 0; border-block-end:1px solid var(--rule);}
.team-depth summary {cursor:pointer; padding:.65rem 0; font-weight:700;}
.team-depth table {width:100%; border-collapse:collapse; margin:0 0 .75rem;}
.team-depth th,.team-depth td {padding:.4rem .55rem; text-align:left; vertical-align:top; white-space:normal; overflow-wrap:anywhere;}
.team-depth th:first-child {padding-inline-start:0;}
.team-depth th small {display:block; font-weight:400; font-size:.78rem; color:var(--mute);}
.team-depth thead th:first-child {white-space:nowrap; overflow-wrap:normal;}
@media(max-width:540px) {
  .opening-five {grid-template-columns:repeat(2,minmax(0,1fr));}
  .opening-five li {border-block-end:1px solid var(--sheet);}
  .opening-five li:nth-child(even),.opening-five li:last-child {border-inline-end:0;}
  .opening-five li:last-child {grid-column:1/-1; border-block-end:0;}
}
