/* School records are an isolated enhancement; existing navigation styles are unchanged. */
.school-profile-link{display:inline;padding:0;border:0;border-radius:2px;background:none;color:inherit;font:inherit;font-weight:inherit;text-transform:none;letter-spacing:normal;text-align:inherit;line-height:inherit;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:currentColor;text-underline-offset:3px;white-space:normal;overflow-wrap:anywhere}
.school-profile-link:hover{color:var(--red,#b92c35)}
.school-profile-link:focus-visible{outline:3px solid #bf303c;outline-offset:3px;text-decoration:none}
.school-profile-dialog{position:fixed;inset:0;width:calc(100% - 32px);max-width:760px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:10px;background:var(--paper,#f8f7f3);color:var(--ink,#1d2f42);box-shadow:0 18px 70px #071a3299;overflow:auto;overscroll-behavior:contain}
.school-profile-dialog::backdrop{background:rgb(8 25 45 / 65%)}
.school-profile-dialog .school-profile-header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;height:auto;min-height:0;flex-wrap:nowrap;padding:20px 24px;background:var(--paper,#f8f7f3);border-bottom:1px solid var(--line,#d6dce2)}
.school-profile-header>div{min-width:0}
.school-profile-dialog .school-profile-eyebrow{margin:0 0 6px;color:var(--muted,#536577);font-size:11px;line-height:1.5;font-weight:700;letter-spacing:.4px}
.school-profile-dialog h2{font-size:32px;line-height:1.1;overflow-wrap:anywhere}
.school-profile-close,.school-profile-back{min-height:44px;padding:8px 12px;border:1px solid #bdc9d5;border-radius:5px;background:#fff;color:var(--navy,#102d50);font-size:13px;font-weight:700;cursor:pointer}
.school-profile-close{flex-shrink:0;min-width:78px}
.school-profile-close:hover,.school-profile-back:hover{background:#e3eaf2}
.school-profile-close:focus-visible,.school-profile-back:focus-visible,.school-profile-ratings:focus-visible{outline:3px solid var(--red,#b92c35);outline-offset:2px}
.school-profile-body{padding:20px 24px 24px}
.school-profile-back{margin:0 0 16px;text-align:left}
.school-profile-dialog [hidden]{display:none!important}
.school-profile-record{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:14px 16px;border-radius:5px;background:var(--navy,#102d50);color:#fff}
.school-profile-record span{font-size:13px;line-height:1.5}
.school-profile-record strong{font-size:30px;line-height:1.2;white-space:nowrap}
.school-profile-coverage,.school-profile-reconciliation{margin:8px 0;font-size:13px;line-height:1.6}
.school-profile-reconciliation{font-weight:700;color:var(--navy,#102d50)}
.school-profile-notes{margin:14px 0;padding:10px 14px;border-left:3px solid var(--red,#b92c35);background:#fff}
.school-profile-notes p{margin:4px 0;font-size:12px;line-height:1.6}
.school-profile-table-wrap{width:100%;margin-top:20px}
.school-profile-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left;font-size:14px}
.school-profile-table caption{padding:0 0 12px;text-align:left;font-size:12px;color:var(--muted,#536577);line-height:1.5}
.school-profile-table th,.school-profile-table td{padding:12px 8px;vertical-align:top;border-bottom:1px solid var(--line,#d6dce2);white-space:normal;overflow-wrap:anywhere}
.school-profile-table thead th{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted,#536577)}
.school-profile-table thead th:first-child{width:10%}
.school-profile-table thead th:nth-child(2){width:44%}
.school-profile-table thead th:nth-child(3){width:12%}
.school-profile-table thead th:nth-child(4){width:34%}
.school-profile-table tbody th{font-weight:500}
.school-profile-table .school-profile-link{min-height:24px;font-weight:600;text-align:left}
.school-profile-outcome{font-weight:800}
.school-profile-outcome.outcome-w{color:#225738}
.school-profile-outcome.outcome-l{color:#a52330}
.school-profile-score{font-variant-numeric:tabular-nums;font-weight:600}
.school-profile-table .school-profile-administrative{font-size:12px;line-height:1.4}
.school-profile-game-note{margin:6px 0 0;font-size:11px;line-height:1.5;font-weight:400;color:var(--muted,#536577)}
.school-profile-footnote,.school-profile-empty{font-size:12px;line-height:1.6;color:var(--muted,#536577);margin:16px 0}
.school-profile-ratings{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:4px;background:var(--navy,#102d50);color:#fff;font-size:13px;font-weight:700;text-decoration:none}
.school-profile-ratings:hover{background:#21476e}
@media(max-width:430px){
 .school-profile-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
 .school-profile-dialog .school-profile-header{gap:10px;padding:16px 12px}
 .school-profile-dialog h2{font-size:26px}
 .school-profile-dialog .school-profile-eyebrow{font-size:10px}
 .school-profile-body{padding:14px 12px 18px}
 .school-profile-close{min-width:72px;padding:8px;font-size:12px}
 .school-profile-record{padding:12px;gap:10px}
 .school-profile-record span{font-size:12px}
 .school-profile-record strong{font-size:26px}
 .school-profile-table{font-size:12px}
 .school-profile-table th,.school-profile-table td{padding:10px 4px}
 .school-profile-table thead th{font-size:9px;letter-spacing:0}
 .school-profile-table thead th:first-child{width:12%}
 .school-profile-table thead th:nth-child(2){width:41%}
 .school-profile-table thead th:nth-child(3){width:14%}
 .school-profile-table thead th:nth-child(4){width:33%}
}

/* Standings stays next to the district summary without nesting a link in summary. */
.districts .district-slate{position:relative;min-width:0}
.districts .district-slate summary{padding-left:10px;padding-right:112px;gap:4px}
.district-slate-standings{position:absolute;top:7px;right:6px;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 3px;font-size:10px;font-weight:700;line-height:1.3;white-space:nowrap;color:var(--navy,#102d50);text-decoration:underline;text-underline-offset:3px;border-radius:3px}
.district-slate-standings:hover{color:var(--red,#b92c35);background:#edf1f5}
.district-slate-standings:focus-visible{outline:3px solid var(--red,#b92c35);outline-offset:2px}
/* Preserve contrast for school controls in the navy featured-games panel. */
.games-panel .school-profile-link:hover{color:#fff;text-decoration-thickness:2px}
.games-panel .school-profile-link:focus-visible{outline-color:#fff}
