
/* CoachAnalytics: silver on black, after the logo. */
:root {
  --bg: #0b0c0e; --panel: #15171b; --line: #262a31; --text: #eceef1; --dim: #99a0ab;
  --accent: #d6dae0; --accent-dim: #5f6671; --link: #9cc3ea;
  --chrome: linear-gradient(90deg, rgba(214,218,224,0) 0%, #d6dae0 50%, rgba(214,218,224,0) 100%);
  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --hover: #1d2129; --panel-2: #12151b; --chip: #0f1218;
}
:root[data-theme="light"] {
  --bg: #f3f4f6; --panel: #ffffff; --line: #d9dde3; --text: #15171b; --dim: #5b626e;
  --accent: #2b313b; --accent-dim: #a3aab4; --link: #1d5fa6;
  --chrome: linear-gradient(90deg, rgba(122,130,142,0) 0%, #7a828e 50%, rgba(122,130,142,0) 100%);
  --hover: #eef0f3; --panel-2: #f7f8fa; --chip: #eef0f3;
}
/* the brand bar and the start-page banner are black in both themes */
header.site, .hero {
  --text: #eceef1; --dim: #99a0ab; --accent: #d6dae0; --line: #262a31;
  --chrome: linear-gradient(90deg, rgba(214,218,224,0) 0%, #d6dae0 50%, rgba(214,218,224,0) 100%);
  color: var(--text);
}
.adv-btn { margin-left: auto; background: #b0121f; color: #fff; border: 1px solid #d0303c; border-radius: 3px;
           padding: 8px 14px; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.adv-btn:hover, .adv-btn.open, .adv-btn.on { background: #d0303c; text-decoration: none; }
.subnav { display: none; gap: 22px; flex-wrap: wrap; background: var(--panel);
          border-bottom: 1px solid var(--line); padding: 0 20px; }
.subnav.open { display: flex; }
/* opened on hover, or by a tap where there is no hover: see the page script */
.subnav a { color: var(--dim); font: 600 12px/1 var(--display); letter-spacing: .09em; text-transform: uppercase;
            padding: 11px 0; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--text); border-bottom-color: #d0303c; text-decoration: none; }
.signin-btn { margin-left: 10px; color: var(--dim); border: 1px solid var(--line); border-radius: 3px;
              padding: 8px 12px; font: 600 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.signin-btn:hover { color: var(--text); border-color: var(--accent-dim); text-decoration: none; }
.signin-btn.on { color: var(--accent); border-color: var(--accent-dim); }
.theme-toggle { margin-left: 4px; background: none; border: 1px solid var(--line); border-radius: 50%;
                width: 34px; height: 34px; display: grid; place-items: center; color: var(--dim); cursor: pointer;
                padding: 0; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent-dim); }
.theme-toggle svg { width: 17px; height: 17px; }
:root[data-theme="light"] .theme-toggle .sun, :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
:root[data-theme="light"] footer img { filter: brightness(0); opacity: .7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 15px/1.45 "Barlow", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
       font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
header.site { background: #000; position: relative; padding: 10px 20px;
              display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
                     background: var(--chrome); }
header.site .brand { display: flex; align-items: center; gap: 10px; }
header.site .brand:hover { text-decoration: none; }
header.site .brand .mark { height: 40px; width: auto; }
header.site .brand .word { height: 21px; width: auto; }
header.site .brand .tier { font: 600 10px/1 var(--display); letter-spacing: .16em; color: var(--dim);
                           border: 1px solid var(--line); border-radius: 2px; padding: 4px 6px; margin-left: 4px; }
nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
nav a { color: var(--dim); text-transform: uppercase; font: 600 12px/1 var(--display); letter-spacing: .1em;
        padding: 8px 0; border-bottom: 2px solid transparent; }
nav a.active, nav a:hover { color: var(--text); border-bottom-color: var(--accent); text-decoration: none; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font: 700 26px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 6px; text-wrap: balance; }
h2 { font: 600 13px/1.3 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
     margin: 28px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.sub { color: var(--dim); font-size: 13px; margin-bottom: 18px; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 4px;
         padding: 7px 10px; font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cards a { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent-dim);
           padding: 10px 12px; border-radius: 3px; color: var(--text); font-size: 14px; }
.cards a:hover { border-left-color: var(--accent); text-decoration: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { background: var(--panel); color: var(--dim); font-size: 11px; text-transform: uppercase;
     letter-spacing: .06em; cursor: pointer; position: sticky; top: 0; }
th:hover { color: var(--accent); }
th.sorted::after { content: " \25BC"; font-size: 9px; }
th.sorted.asc::after { content: " \25B2"; }
td.rank { color: var(--dim); text-align: right; width: 44px; }
td.name, th.name { text-align: left; }
tbody tr:hover { background: var(--hover); }
.note { color: var(--dim); font-size: 12px; margin-top: 14px; }
footer { color: var(--dim); font-size: 12px; padding: 22px 20px 28px; text-align: center; position: relative;
         display: grid; justify-items: center; gap: 8px; }
footer::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: var(--chrome); }
footer .tagline { font: 600 11px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
footer img { height: 26px; width: auto; opacity: .85; }

/* start page */
.hero { display: grid; justify-items: center; text-align: center; padding: 28px 20px 32px; background: #000;
         border-radius: 6px; position: relative; margin-bottom: 18px; }
.hero::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 1px; background: var(--chrome); }
.hero img { width: min(360px, 78vw); height: auto; }
.hero p { color: var(--dim); max-width: 560px; margin: 16px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.tiles a { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px;
           color: var(--text); display: grid; gap: 6px; align-content: start; }
.tiles a:hover { border-color: var(--accent-dim); text-decoration: none; }
.tiles b { font: 600 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.tiles span { color: var(--dim); font-size: 13px; }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px;
        color: var(--text); display: block; }
.game:hover { border-color: var(--accent); text-decoration: none; }
.game .when { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
              margin-bottom: 8px; }
.game .side { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 0; }
.game .side.other .tname { color: var(--dim); }
.game .tname { font-weight: 600; }
.game .tscore { font-size: 18px; font-weight: 700; }
.game .at { color: var(--dim); font-size: 10px; text-transform: uppercase; margin: 2px 0; }
.game .meta, .game .rating { color: var(--dim); font-size: 11px; margin-top: 8px; }
.game .tag { color: var(--dim); font-size: 10px; text-transform: uppercase; }
.game .trec { color: var(--dim); font-size: 12px; font-weight: 600; }
.game.upcoming { border-style: dashed; }
.game-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.game-title img.logo { margin: 0; }
.rk-small { color: var(--dim); font-size: 11px; }
td.dim { color: var(--dim); }
.rating { color: var(--dim); font-size: 12px; margin: 10px 0; }
table.compare th.name, table.compare td.name { text-align: center; color: var(--dim); }
table.compare td { width: 30%; }
table.quarters td, table.quarters th { text-align: center; }
h3.minor { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim);
           margin: 16px 0 4px; }

/* teams */
th.group { text-align: center; color: var(--accent); background: var(--panel-2); }
td.rating-cell { font-weight: 600; }
.units { display: flex; flex-wrap: wrap; gap: 8px; }
.unit { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px;
        min-width: 110px; text-align: center; }
.unit .uval { font-size: 22px; font-weight: 700; }
.unit.top .uval { color: var(--accent); }
.unit .uavg { font-size: 10px; color: var(--dim); margin-top: 2px; }
.unit .ulabel { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 24px; }
td.rankcol { color: var(--dim); font-size: 12px; }
.season-links a { margin-right: 6px; }
.season-links a.current { color: var(--accent); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.team-title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.team-title h1 { margin: 0 0 4px; }
.team-title img.logo { margin: 0; }
.in-filter { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
             border-radius: 4px; padding: 8px 12px; font-size: 13px; margin: 0 0 14px; }
tr.out td { opacity: .35; }
td.upcoming { color: var(--dim); font-size: 12px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 0 22px; align-items: start; }
.chart-col { min-width: 0; }
.chart { margin-bottom: 16px; }
.chart table { font-size: 13px; }
.chart th, .chart td { padding: 5px 7px; }

/* standings and rankings */
.rk { color: var(--accent); font-size: 11px; font-weight: 700; }
.up { color: #5fbf7f; font-weight: 600; }
.down { color: #d4757f; font-weight: 600; }
.flat { color: var(--dim); }

/* members */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px;
         max-width: 560px; }
.panel h2 { margin-top: 0; }
.panel p { color: var(--dim); font-size: 14px; }
.panel label { display: block; font: 600 10px/1 var(--display); letter-spacing: .1em;
               text-transform: uppercase; color: var(--dim); margin-top: 10px; }
.panel .note.bad { color: #d4757f; }
.panel .pw { margin: 14px 0 6px; }
.plans { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.panel h3.minor { margin-top: 4px; }
.panel .pw summary { cursor: pointer; color: var(--link); font-size: 13px; }
.panel input[type=email], .panel input[type=password] { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
         border-radius: 4px; padding: 11px 12px; font-size: 15px; margin: 6px 0 12px; }
.btn { background: var(--accent); color: var(--bg); border: 0; border-radius: 4px; padding: 10px 18px;
       font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.btn:hover { opacity: .9; }
.btn.ghost { background: none; color: var(--dim); border: 1px solid var(--line); }
.badge { display: inline-block; font: 600 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
         padding: 5px 9px; border-radius: 3px; border: 1px solid currentColor; }
.badge.on { color: #5fbf7f; }
.badge.off { color: var(--dim); }
.member-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
                margin-top: 14px; }
.member-tools a { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 14px;
                  color: var(--text); display: grid; gap: 4px; }
.member-tools a:hover { border-color: var(--accent-dim); text-decoration: none; }
.member-tools b { font: 600 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.member-tools span { color: var(--dim); font-size: 13px; }
.dim { color: var(--dim); }

h2.players-head { font: 700 19px/1.2 "Barlow", sans-serif; margin: 26px 0 4px; }
.pblock { margin: 14px 0 18px; }
.pblock h3.minor { margin: 0 0 6px; }
table.players { width: 100%; }
table.players th.name { text-align: left; white-space: nowrap; }
table.players td.pos, table.players th.pos { color: var(--dim); font-size: 11px; text-align: left;
                                             width: 34px; }
table.players td { text-align: right; font-variant-numeric: tabular-nums; }

/* advanced: team profile */
.profile-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 30px;
                flex-wrap: wrap; border-bottom: 3px solid #d0303c; padding-bottom: 12px; }
.profile-head .who { display: flex; align-items: center; gap: 14px; }
.profile-head .eyebrow { font: 600 10px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
                         color: var(--dim); margin-bottom: 6px; }
.profile-head h1 { margin: 0; font-size: 30px; text-transform: uppercase; }
.profile-head .facts { display: flex; gap: 26px; text-align: right; }
.profile-head .facts b { display: block; font: 700 20px/1 var(--display); }
.profile-head .facts span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.extremes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 30px;
            margin: 16px 0 6px; }
.ranklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ranklist li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ranklist .side { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 30px; }
table.profile { width: 100%; border-collapse: collapse; }
table.profile th.name { text-align: left; font-weight: 400; font-size: 13px; padding: 5px 8px 5px 0; }
table.profile td { padding: 5px 4px; }
table.profile td.val { text-align: right; font-weight: 600; width: 74px; }
table.profile td.barcell { width: 40%; }
table.profile tr.grouphead th { text-align: left; font: 600 10px/1 var(--display); letter-spacing: .14em;
     text-transform: uppercase; color: #d0303c; padding: 14px 0 4px; }
.bar { display: block; height: 9px; border-radius: 1px; background: var(--line); }
.bar.best { background: #d0303c; }
.bar.good { background: #e06a74; }
.bar.mid { background: #9aa0aa; }
.bar.poor { background: var(--line); }
.rankbox { display: inline-block; min-width: 26px; text-align: center; font: 700 11px/1 var(--display);
           padding: 5px 4px; border-radius: 2px; color: #fff; background: #9aa0aa; }
.rankbox.best { background: #b0121f; }
.rankbox.good { background: #e06a74; color: #1a1a1a; }
.rankbox.mid { background: #9aa0aa; color: #1a1a1a; }
.rankbox.poor { background: var(--line); color: var(--dim); }
.rank-note { color: var(--dim); font-size: 11px; margin: -6px 0 6px; text-align: right; }
.small-note { border-left: 3px solid #d0303c; background: var(--panel); padding: 8px 12px; font-size: 13px;
              margin: 14px 0; }
.legend-bands { display: flex; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 11px; margin-top: 14px; }
.legend-bands i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

/* strengths and weaknesses */
.edge-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px;
             margin-top: 14px; }
.edge-col { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.edge-col > h2 { margin: 0 0 4px; font: 700 13px/1 var(--display); letter-spacing: .1em;
                 text-transform: uppercase; }
.edge-col > .sub { margin-bottom: 10px; }
.edge-row { padding: 9px 0; border-top: 1px solid var(--line); }
.edge-row:first-of-type { border-top: 0; }
.edge-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.edge-head b { font-size: 14px; }
.edge-where { color: var(--dim); font-size: 12px; margin: 2px 0 6px; }
.rank { font: 600 11px/1 var(--display); letter-spacing: .06em; white-space: nowrap; }
.rank.good { color: #5fbf7f; }
.rank.bad { color: #d4757f; }
.edge-bar { display: flex; align-items: center; gap: 8px; height: 8px; }
.edge-bar span { display: block; height: 8px; border-radius: 4px; background: var(--accent-dim); min-width: 2px; }
.edge-bar span.good { background: #5fbf7f; }
.edge-bar span.bad { background: #d4757f; }
.edge-bar em { font-style: normal; font-size: 12px; color: var(--dim); white-space: nowrap; }

/* chart builder */
.axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px;
        margin: 12px 0; }
.axis-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.axis-card h3 { margin: 0 0 8px; font: 600 11px/1 var(--display); letter-spacing: .12em;
                text-transform: uppercase; color: var(--dim); }
.axis-card .line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.axis-card select { flex: 1 1 140px; }
.axis-card label.flip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
                        color: var(--dim); cursor: pointer; }
.chart-wrap { position: relative; background: var(--panel); border: 1px solid var(--line);
              border-radius: 6px; padding: 8px; }
.chart-wrap canvas { width: 100%; display: block; border-radius: 4px; }
#tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--accent-dim);
       border-radius: 4px; padding: 7px 9px; font-size: 12px; line-height: 1.45; z-index: 5;
       box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.chart-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.chart-actions input[type=text] { flex: 1 1 260px; background: var(--panel); color: var(--text);
       border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; font-size: 13px; }
details.values { margin-top: 14px; }
details.values summary { cursor: pointer; color: var(--link); font-size: 13px; }

/* matchup */
.radars { margin: 16px 0 6px; }
.radar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
              flex-wrap: wrap; margin-bottom: 4px; }
.radar-head .minor { margin: 0; }
.radar-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim);
             margin-left: 14px; }
.radar-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.radar-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
figure.radar { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
               padding: 6px 4px 10px; }
figure.radar figcaption { font: 600 10px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
                          color: var(--dim); text-align: center; padding: 6px 0 2px; }
figure.radar svg { width: 100%; height: auto; display: block; }
figure.radar .web { fill: none; stroke: var(--line); stroke-width: 1; }
figure.radar .spoke { stroke: var(--line); stroke-width: 1; }
figure.radar .shape { fill-opacity: .22; stroke-width: 2; stroke-linejoin: round; }
figure.radar .shape.defense { fill-opacity: .14; stroke-dasharray: 5 3; }
.radar-key.dashed i { background-image: repeating-linear-gradient(90deg,
  rgba(255,255,255,.75) 0 2px, transparent 2px 4px); }
figure.radar .spoke-label { font: 600 8px var(--display); letter-spacing: .04em; fill: var(--dim);
                            text-transform: uppercase; }
.matchup-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
                border-bottom: 2px solid var(--line); padding-bottom: 12px; margin: 14px 0 6px; }
.matchup-head .m-team { display: flex; align-items: center; gap: 10px; }
.matchup-head .m-team.b { justify-content: flex-end; }
.matchup-head .nm { font: 700 20px/1.1 var(--display); text-transform: uppercase; }
.matchup-head .sub { margin: 2px 0 0; }
.matchup-head .m-vs { font: 700 13px/1 var(--display); letter-spacing: .2em; color: var(--dim); }
.block { margin-bottom: 26px; }
.block > summary { list-style: none; cursor: pointer; position: relative; }
.block > summary::-webkit-details-marker { display: none; }
.block > summary::after { content: "BC"; position: absolute; right: 0; top: 2px; font-size: 9px;
                          color: var(--dim); }
.block[open] > summary::after { content: "B2"; }
.block > summary:hover .nm { color: var(--accent); }
/* two rows: the names, then the phase each side is in with the moment between
   them, so a long school name never meets the label in the middle */
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
              gap: 3px 14px; align-items: center; padding: 0 18px 8px 0;
              border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.block-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.block-side.r { justify-content: flex-end; }
.block-side i { width: 4px; height: 22px; border-radius: 2px; flex: 0 0 auto; }
.block-side .nm { font: 700 17px/1.1 var(--display); text-transform: uppercase;
                  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-head .ph { font: 600 9px/1.4 var(--display); letter-spacing: .14em; color: var(--dim);
                  text-transform: uppercase; }
.block-head .ph.r { text-align: right; }
.block-head .mid { font: 600 9px/1.4 var(--display); letter-spacing: .12em; color: var(--dim);
                   text-transform: uppercase; text-align: center; }
.grp { font: 600 8.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
       text-align: center; padding: 13px 0 4px; }
.mrow { display: grid; grid-template-columns: 1fr 34px minmax(96px, 150px) 34px 1fr; gap: 8px;
        align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mval { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--dim); }
.mval.r { text-align: right; }
.mval.won { color: var(--text); font-weight: 600; }
.mrank { font: 700 14px/1 var(--display); text-align: center; border-radius: 3px; padding: 4px 0;
         font-variant-numeric: tabular-nums; }
.mrank.t1 { background: #5fbf7f; color: #0b0c0e; }
.mrank.t2 { background: #2f6d46; color: #eceef1; }
.mrank.t3 { background: var(--chip); color: var(--dim); }
.mrank.t4 { background: #5a2531; color: #e3b7bf; }
.mrank.tn { background: none; color: var(--dim); }
.all-snaps { color: var(--dim); font-size: 9px; margin-left: 2px; }
.mcat { display: flex; align-items: center; justify-content: center; background: var(--panel-2);
        border-radius: 3px; padding: 5px 6px; font: 600 12px/1 var(--display); letter-spacing: .03em;
        text-transform: uppercase; text-align: center; }
@media (max-width: 660px) {
  /* no room for three columns: the moment takes a line of its own underneath,
     so the two school names keep the full width */
  .block-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; padding-right: 16px; }
  .block-head .spacer { display: none; }
  .block-side { order: 1; }
  .block-head .ph { order: 2; }
  .block-head .mid { order: 3; grid-column: 1 / -1; padding-top: 5px; font-size: 8.5px;
                     letter-spacing: .06em; }
  .block-side .nm { font-size: 14px; }
  .mrow { grid-template-columns: 1fr 28px minmax(78px, 110px) 28px 1fr; gap: 5px; }
  .mval { font-size: 11px; }
  .mcat { font-size: 10px; }
}

/* advanced reports */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1px;
         background: var(--line); border: 1px solid var(--line); margin: 14px 0 4px; }
.strip .stat { background: var(--panel); padding: 10px 12px; }
.strip dt { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin: 0 0 5px; }
.strip dd { margin: 0; font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.strip .vs { font-size: 10.5px; color: var(--dim); margin-top: 5px; }
.report-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #d0303c;
               padding-bottom: 10px; margin-bottom: 14px; }
.report-head .eyebrow { font: 600 10px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
                        color: var(--dim); margin-bottom: 5px; }
.report-head h1 { margin: 0; font-size: 26px; text-transform: uppercase; }
table.report th.name { text-align: left; }
table.report td.seq { white-space: normal; font-size: 12.5px; color: var(--dim); min-width: 280px; }
table.report td.seq b { color: var(--text); }
.neg { color: #d4757f; font-weight: 600; }
.pill { display: inline-block; font: 600 10px/1 var(--display); letter-spacing: .08em; padding: 4px 7px;
        border-radius: 2px; border: 1px solid currentColor; }
.pill.td { color: #5fbf7f; }
.pill.fail { color: #d4757f; }
.gapwrap { display: inline-flex; align-items: center; gap: 6px; }
.gaptrack { position: relative; display: inline-block; width: 66px; height: 7px; background: var(--line);
            border-radius: 1px; }
.gapfill { position: absolute; top: 0; bottom: 0; border-radius: 1px; }
.gapfill.up { background: #5fbf7f; }
.gapfill.down { background: #d4757f; }
.gapnum { font-size: 11px; color: var(--dim); min-width: 26px; text-align: right; }
.sides-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
                margin: 0 0 12px; }
.sides-toggle button { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 8px 18px;
                       font: 600 12px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.sides-toggle button.on { background: #b0121f; color: #fff; }
.sides-toggle button + button { border-left: 1px solid var(--line); }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
         margin: 18px 0 26px; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line);
        border-radius: 10px; background: var(--panel); text-decoration: none; color: inherit; }
a.door:hover { border-color: var(--accent); }
.door .kicker { font: 600 10px/1 "Barlow", sans-serif; text-transform: uppercase; letter-spacing: .14em;
                color: var(--dim); }
.door .headline { font: 700 22px/1.15 "Barlow", sans-serif; }
.door .headline .at { color: var(--dim); font-weight: 400; }
.door .headline .rk { color: var(--accent); font-size: 16px; vertical-align: 2px; }
.door .why { font-size: 13px; color: var(--dim); line-height: 1.45; }
.door .go { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: auto; }
.door select { margin-top: auto; }
.tab-notes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.tab-notes li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: baseline;
                border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.tab-notes a { font-weight: 600; }
.tab-notes span { color: var(--dim); font-size: 13px; line-height: 1.45; }
@media (max-width: 620px) { .tab-notes li { grid-template-columns: 1fr; gap: 2px; } }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 18px 0 8px; }
.two-lists h2 { margin: 0 0 6px; font: 700 19px/1.2 "Barlow", sans-serif; }
.standfirst { color: var(--dim); font-size: 13px; line-height: 1.5; margin: 0 0 14px;
              border-left: 2px solid var(--line); padding-left: 10px; }
ol.watch { list-style: none; padding: 0; margin: 0; counter-reset: none; }
ol.watch li { border-top: 1px solid var(--line); padding: 12px 0; }
ol.watch li:first-child { border-top: none; }
ol.watch .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
ol.watch .rk { font: 700 15px/1 "Barlow", sans-serif; color: var(--accent); min-width: 20px; }
ol.watch .nm { font: 700 17px/1.2 "Barlow", sans-serif; }
ol.watch .meta { color: var(--dim); font-size: 12px; }
ol.watch .cross { font-size: 11px; color: var(--dim); border: 1px solid var(--line);
                  border-radius: 10px; padding: 1px 7px; }
ol.watch .cross em { font-style: normal; opacity: .75; }
ol.watch .badge { font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
                  color: var(--dim); border: 1px solid var(--line); border-radius: 10px;
                  padding: 1px 7px; }
ol.watch .badge.price { color: var(--accent); border-color: var(--accent); }
ol.watch p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.55; }
@media (max-width: 860px) { .two-lists { grid-template-columns: 1fr; gap: 20px; } }

.tempo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 6px; }
.tempo-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
              background: var(--panel); }
.tempo-card .k { font: 600 10px/1.3 "Barlow", sans-serif; text-transform: uppercase;
                 letter-spacing: .1em; color: var(--dim); }
.tempo-card .v { font: 700 26px/1.1 "Barlow", sans-serif; margin: 3px 0 2px; }
.tempo-card .s { font-size: 11.5px; color: var(--dim); line-height: 1.4; }
table.pace th { cursor: pointer; user-select: none; white-space: nowrap; }
table.pace th.sorted { color: var(--accent); }
table.pace th.key, table.pace td.key { font-weight: 700; }
table.pace td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.pace td.name img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 7px; }
table.pace td.good { color: var(--accent); }
table.pace td.bad { color: var(--dim); }
/* a number built on very few snaps should not look as solid as one that is not */
table.pace td.thin { opacity: .55; font-style: italic; }
@media (max-width: 720px) { .tempo-cards { grid-template-columns: 1fr; } }

table.market td.name { white-space: nowrap; }
table.market td.name img { width: 17px; height: 17px; vertical-align: -4px; margin: 0 5px 0 0; }
table.market td.name .at { color: var(--dim); font-size: 11px; margin: 0 6px; }
table.market td.name .res { color: var(--dim); font-size: 11px; margin-left: 10px; }
table.market td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.market td.gap em { font-style: normal; color: var(--dim); font-size: 11px; margin-left: 6px; }
table.market td.gap.some { color: var(--text); font-weight: 600; }
table.market th[data-key] { cursor: pointer; user-select: none; white-space: nowrap; }
table.market th.sorted { color: var(--accent); }
table.market td.gap.wide { color: var(--accent); font-weight: 700; }
.graded { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; border-radius: 10px;
          padding: 2px 8px; white-space: nowrap; }
.graded.hit { color: var(--accent); border: 1px solid var(--accent); }
.graded.miss { color: var(--dim); border: 1px solid var(--line); }
.rec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 6px; }
.rec-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--panel); }
.rec-card .k { font: 600 10px/1.3 "Barlow", sans-serif; text-transform: uppercase;
               letter-spacing: .1em; color: var(--dim); }
.rec-card .v { font: 700 26px/1.1 "Barlow", sans-serif; margin: 3px 0 2px; }
.rec-card .s { font-size: 11.5px; color: var(--dim); line-height: 1.4; }
@media (max-width: 720px) { .rec-cards { grid-template-columns: 1fr; } }

.versus-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
               margin: 16px 0 6px; }
.versus-head .side .nm { font: 700 22px/1.15 "Barlow", sans-serif; }
.versus-head .side.right { text-align: right; }
.versus-head .vs { color: var(--dim); font: 600 13px/1 "Barlow", sans-serif; text-transform: uppercase;
                   letter-spacing: .14em; }
section.cmp { margin: 20px 0; }
section.cmp h2 { font: 700 15px/1.2 "Barlow", sans-serif; text-transform: uppercase;
                 letter-spacing: .08em; color: var(--dim); margin: 0 0 8px; }
table.versus { width: 100%; border-collapse: collapse; }
table.versus th { font: 600 12px/1.3 "Barlow", sans-serif; color: var(--dim); text-align: center;
                  padding: 7px 10px; white-space: nowrap; font-weight: 500; }
table.versus td { width: 34%; padding: 7px 12px; font-variant-numeric: tabular-nums;
                  font-size: 15px; border-top: 1px solid var(--line); }
table.versus tr:first-child td, table.versus tr:first-child th { border-top: none; }
table.versus th { border-top: 1px solid var(--line); }
table.versus .va { text-align: right; }
table.versus .vb { text-align: left; }
table.versus .lead { color: var(--accent); font-weight: 700; }
table.versus.situ em { font-style: normal; color: var(--dim); font-size: 11px; margin: 0 6px; }
.mismatch { border-left: 2px solid var(--accent); padding-left: 10px; }
button.ghost { background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 6px;
               cursor: pointer; padding: 0 10px; font-size: 16px; }
button.ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 620px) {
  .versus-head { grid-template-columns: 1fr; text-align: center; }
  .versus-head .side.right { text-align: center; }
  table.versus td { font-size: 14px; padding: 6px 6px; }
}

p.also { border-left: 2px solid var(--accent); padding-left: 10px; font-size: 13.5px;
         line-height: 1.5; color: var(--dim); margin: 0 0 14px; }
p.also a { font-weight: 600; }
table.strength th { cursor: pointer; user-select: none; white-space: nowrap; }
table.strength th.sorted { color: var(--accent); }
table.strength th.key, table.strength td.key { font-weight: 700; }
table.strength td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.strength td.name img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 7px; }
table.strength td.good { color: var(--accent); }
table.strength td.bad { color: var(--dim); }
dl.meanings { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 10px 0 22px;
              font-size: 13.5px; line-height: 1.5; }
dl.meanings dt { font-weight: 700; }
dl.meanings dd { margin: 0; color: var(--dim); }
@media (max-width: 620px) { dl.meanings { grid-template-columns: 1fr; gap: 2px 0; }
                            dl.meanings dd { margin-bottom: 10px; } }

/* positions */
.report-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.report-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent-dim);
               border-radius: 4px; padding: 14px; }
.report-card h3 { margin: 0 0 6px; font-size: 16px; }
.report-card p { color: var(--dim); font-size: 12px; margin: 0 0 12px; min-height: 32px; }
.pos-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-buttons a, #groups button { background: transparent; color: var(--text); border: 1px solid var(--accent-dim); border-radius: 3px;
  padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.pos-buttons a:hover, #groups button:hover { border-color: var(--accent); text-decoration: none; }
#groups { display: flex; gap: 6px; margin-bottom: 14px; }
#groups button.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* players */
table.ranks th.name, table.ranks td.name { text-align: left; }
table.ranks .v { text-align: right; font-variant-numeric: tabular-nums; }
.rank-cell { white-space: nowrap; text-align: right; }
.rank-cell .pill { display: inline-block; min-width: 46px; text-align: center; border-radius: 3px;
                   padding: 3px 7px; font: 600 12px/1 var(--display); }
.rank-cell .pill.top { background: #1f8a4c; color: #fff; }
.rank-cell .pill.good { background: #2f6d46; color: #eceef1; }
.rank-cell .pill.mid { background: var(--chip); color: var(--dim); }
.rank-cell .pill.low { background: #5a2531; color: #e3b7bf; }
.rank-cell .of { color: var(--dim); font-size: 11px; margin-left: 6px; }
h3.minor { margin: 16px 0 6px; font: 600 12px/1 var(--display); letter-spacing: .1em;
           text-transform: uppercase; color: var(--dim); }
#search { width: 100%; max-width: 520px; background: var(--panel); color: var(--text); border: 1px solid var(--line);
          border-radius: 4px; padding: 11px 14px; font-size: 16px; }
#search:focus { outline: none; border-color: var(--accent); }
#results { margin-top: 10px; max-width: 520px; }
#results a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line);
             color: var(--text); }
#results a:hover { background: var(--panel); text-decoration: none; }
#results .pname { font-weight: 600; text-transform: uppercase; }
#results .pmeta { color: var(--dim); font-size: 12px; white-space: nowrap; }
.player-title { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.player-title h1 { margin: 0 0 4px; }
.headshot { position: relative; flex: none; width: 120px; height: 88px; border-radius: 6px; overflow: hidden;
            background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center;
            justify-content: center; }
.headshot span { color: var(--dim); font-size: 28px; font-weight: 700; letter-spacing: .04em; }
.headshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.headshot.has-photo span { display: none; }

.note.situ { background: var(--panel); border-left: 3px solid var(--accent-dim); padding: 8px 12px;
             margin: 0 0 12px; }
/* stats filters */
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin-bottom: 14px; }
.filters .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .row + .row { margin-top: 10px; }
.filters .lbl { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--chip); border: 1px solid var(--line);
        border-radius: 12px; padding: 3px 10px 3px 6px; font-size: 12px; cursor: pointer; }
.chip input { accent-color: var(--accent); margin: 0; }
.linkbtn { background: none; border: 0; color: var(--link); cursor: pointer; font-size: 12px; padding: 0 4px; }
details.key { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; margin: 0 0 14px; }
details.key summary { cursor: pointer; padding: 9px 12px; color: var(--accent); font-weight: 600; font-size: 13px;
                      text-transform: uppercase; letter-spacing: .06em; }
details.key dl { margin: 0; padding: 4px 16px 12px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
details.key dt { font-weight: 700; font-size: 13px; }
details.key dd { margin: 0; color: var(--dim); font-size: 13px; }
.game .rk { color: var(--accent); font-size: 11px; font-weight: 700; }
.multi { position: relative; display: inline-block; }
.multi-btn { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 4px;
             padding: 7px 10px; font-size: 13px; cursor: pointer; min-width: 150px; text-align: left; }
.multi.open .multi-btn, .multi-btn:hover { border-color: var(--accent); }
.multi-panel { display: none; position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 200px;
               background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 8px;
               box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.multi.open .multi-panel { display: block; }
.multi-actions { display: flex; justify-content: space-between; padding: 0 2px 6px; border-bottom: 1px solid var(--line);
                 margin-bottom: 6px; }
.multi-list { max-height: 300px; overflow-y: auto; }
.multi-list label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13px; cursor: pointer;
                    border-radius: 3px; white-space: nowrap; }
.multi-list label:hover { background: var(--panel); }
.multi-list input { accent-color: var(--accent); margin: 0; }
img.logo { vertical-align: middle; margin-right: 6px; object-fit: contain; }
/* The columns counted from the play-by-play, set apart from the box score's
   own so nobody wonders which is which. */
th.from-plays, td.from-plays { background: color-mix(in srgb, var(--accent) 7%, transparent); }
th.group { font: 600 10px/1 "Barlow", sans-serif; text-transform: uppercase; letter-spacing: .1em;
           color: var(--dim); text-align: center; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
th.from-plays:first-of-type, td.from-plays:first-of-type { border-left: 2px solid var(--line); }
