
/* Shared competition switch; existing typography is inherited. */
.competition-switch{display:flex;gap:3px;padding:4px;background:#e7eae6;border-radius:8px;margin-left:80px;flex-shrink:0}
.competition-switch a{padding:7px 16px;border-radius:5px;font-size:12px;font-weight:700;color:var(--muted)}
.competition-switch a[aria-current="page"]{background:var(--ink);color:white}.competition-switch a:hover{background:var(--green);color:white}
header:has(.competition-switch){gap:20px}header:has(.competition-switch) .season{display:none}
.girls{--ink:#292640;--muted:#6d697e;--paper:#f8f7f4;--line:#e2dfe9;--green:#6650a3;--mint:#d9ceff}
.girls .competition-switch{background:#eae6f2}.girls .hero.page-hero{background:linear-gradient(115deg,#292640,#3d345c)}
.girls .hero-description,.girls .hero-facts{color:#d7cfe8}.girls .section-label{color:#c0b1dc}
.girls .hero-art{color:#ae9acb;right:25px;top:12px}.girls .pill{color:#6650a3;background:#eee9f7}
.girls button:hover,.girls .segmented{background:#eee9f5}.girls .segmented .selected{background:white}
.preview-badge{font-size:10px;letter-spacing:1px;color:var(--green);font-weight:bold;text-transform:uppercase;margin-bottom:7px}
.preview-nav{gap:34px;justify-content:flex-start;align-items:stretch}.preview-nav>a,.preview-nav summary{font-size:14px;font-weight:600;padding:14px 0;color:var(--muted);cursor:pointer;white-space:nowrap}
.preview-nav>a.active{color:var(--green);border-color:var(--green)}.preview-nav a:hover,.preview-nav summary:hover{color:var(--green)}
.preview-nav details{position:relative}.preview-nav summary{list-style:none;border-bottom:3px solid transparent}.preview-nav summary::-webkit-details-marker{display:none}
.preview-nav details>div{position:absolute;right:0;top:100%;width:210px;z-index:5;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px #29264018;padding:8px}
.preview-nav details a{display:block;padding:10px;border:0;font-size:12px}.preview-nav details a:hover{background:#eee9f5}
.preview-intro{margin-bottom:24px}.preview-intro p{font-size:13px;margin:5px 0}.scoreboard-date input{min-width:150px}
.sample-label{font-size:10px;color:var(--muted)}.scoreboard-team img{width:30px;height:30px;object-fit:contain}.sample-team{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}.sample-team small{font-weight:400}
.sample-logo{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#eee9f5;color:var(--green);font-size:11px;flex-shrink:0}
.girls .table-note{background:#eeebf3;border-color:var(--line);color:#625a74;border-radius:8px}.girls .scoreboard-card{border-top:3px solid #c6b9e5}
.matchup-pill{font-size:11px;padding:4px 8px;background:var(--green);color:white;border:0;border-radius:5px}.matchup-pill:hover{background:#44316f!important;color:white}
.preview-dialog{max-width:540px;padding:24px}.preview-dialog h2{font-size:23px}.preview-dialog .modal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.preview-dialog button{font-size:12px}
body:has(dialog[open]){overflow:hidden}dialog{overscroll-behavior:contain;max-height:85dvh;overflow:auto}
@media(max-width:720px){header:has(.competition-switch){height:auto;min-height:84px;padding-top:14px;padding-bottom:14px;gap:9px;flex-wrap:wrap}.competition-switch a{padding:6px 12px}header:has(.competition-switch) .brand{font-size:14px}header:has(.competition-switch) .brand small{font-size:8px}header:has(.competition-switch) .admin-link{margin-left:0;padding-right:25px;font-size:11px}.preview-nav>a,.preview-nav summary{font-size:11px;letter-spacing:-.2px}.preview-nav{margin:16px 0 24px;gap:5px}.girls .hero-art{right:-45px}.hero-facts{font-size:8px}.scoreboard-controls{gap:14px}}
@media(max-width:390px){header:has(.competition-switch) .brand{gap:6px}.competition-switch a{padding:6px 9px}.preview-nav>a,.preview-nav summary{font-size:10px}.preview-nav{gap:3px}}

nav[aria-label="Main navigation"]{justify-content:flex-start;gap:34px} .girls .aside-card,.girls .published-stamp{background:#eeebf3}.girls .hero.page-hero .hero-title em{color:var(--mint)} .competition-settings label{display:block;margin:12px 0}.competition-settings input{max-width:140px;margin:0 8px}.competition-picker{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0}.girls .hero .eyebrow{color:var(--mint)}

.girls .hero{background:linear-gradient(115deg,#292640,#3d345c)}
@media(max-width:720px){.competition-switch{margin-left:0}.competition-switch a{padding:6px 9px}nav[aria-label="Main navigation"]{gap:3px;flex-wrap:nowrap;overflow:visible}nav[aria-label="Main navigation"]>a,nav[aria-label="Main navigation"] .stats-toggle{font-size:10px;padding-left:2px;padding-right:2px}.competition-picker label{display:flex;align-items:center;gap:6px}.competition-picker button{font-size:12px}}

/* Keep public header controls aligned with the brand at all screen sizes. */
header:has(.competition-switch) .admin-link { margin-left:auto; padding-right:25px; }
.scoreboard-controls > .segmented { --day-background:#e7ece7; --day-hover:#d9e1d9; background:var(--day-background); }
.girls .scoreboard-controls > .segmented { --day-background:#eee9f5; --day-hover:#e0d8ec; }
body:not(.girls) .scoreboard-card { border-top:3px solid #e7ece7; }
.scoreboard-controls > .segmented button { border-radius:999px; transition:background-color 150ms ease; }
.scoreboard-controls > .segmented button:is(:hover,:focus-visible) { background:var(--day-hover); }
@media (max-width:720px) {
  header:has(.competition-switch) { column-gap:9px; }
  header:has(.competition-switch) .competition-switch { margin-left:0; }
  header:has(.competition-switch) .admin-link { padding-right:25px; }
  nav[aria-label="Main navigation"] > * { flex:0 0 auto; }
}
@media (prefers-reduced-motion:reduce) {
  .scoreboard-controls > .segmented button { transition:none; }
}

/* Center the selector within the available space between the brand and Admin. */
header:has(.competition-switch) { flex-wrap:nowrap; column-gap:0; }
header:has(.competition-switch) .brand { flex-shrink:0; }
header:has(.competition-switch) .competition-switch { margin-left:auto; margin-right:auto; }
header:has(.competition-switch) .admin-link { margin-left:0; flex-shrink:0; }
header .competition-switch a:is(:hover,:focus-visible) { color:#fff !important; background:var(--green); }
body .scoreboard-card a.matchup-link,
body .matchup-pill { background:var(--green); color:#eef4ef !important; }
body.girls .scoreboard-card a.matchup-link,
body.girls .matchup-pill { background:#6650a3; color:#eee9f7 !important; }
body .scoreboard-card a.matchup-link:is(:hover,:focus-visible),
body .matchup-pill:is(:hover,:focus-visible) { background:#126250 !important; color:#fff !important; }
body.girls .scoreboard-card a.matchup-link:is(:hover,:focus-visible),
body.girls .matchup-pill:is(:hover,:focus-visible) { background:#44316f !important; color:#fff !important; }
@media(max-width:720px) {
  nav[aria-label="Main navigation"] { justify-content:space-between; gap:0; flex-wrap:nowrap; }
  nav[aria-label="Main navigation"]>a,
  nav[aria-label="Main navigation"] .stats-toggle { font-size:11px; padding-left:0; padding-right:0; }
}
@media(max-width:390px) {
  header:has(.competition-switch) .brand { font-size:12px; gap:6px; letter-spacing:.5px; }
  header:has(.competition-switch) .logo-mark { width:42px; height:auto; }
  header:has(.competition-switch) .competition-switch a { padding:6px; font-size:11px; }
  nav[aria-label="Main navigation"]>a,
  nav[aria-label="Main navigation"] .stats-toggle { letter-spacing:-.35px; }
}

/* Shared theme details: public headers, informational surfaces and brackets. */
body { --card-accent:#b9dcca; }
body.girls { --card-accent:#c6b9e5; --surface-soft:#eeebf3; --surface-faint:#f7f5fa; --surface-hover:#f0ecf6; --theme-border:#d8d0e5; --theme-connector:#a394bc; }
body .scoreboard-card { border-top:3px solid var(--card-accent); }
/* Override the earlier competition-specific card border without changing its width. */
body:not(.girls) .scoreboard-card { border-top-color:var(--card-accent); }
header .competition-switch a,
header .competition-switch a:is(:hover,:focus-visible,:active) { text-decoration:none; }
body header a.brand:is(:hover,:focus-visible),
body header a.admin-link:is(:hover,:focus-visible),
body footer a:is(:hover,:focus-visible),
body a[data-footer-contact]:is(:hover,:focus-visible) { color:var(--green) !important; }

.girls :is(.aside-card,.published-stamp,.notice,.next,.tabs,.source-note,.match-label) { background:var(--surface-soft); }
.girls :is(.aside-card,.next,.notice,.empty-symbol,.preview-label) { border-color:var(--theme-border); }
.girls .notice { color:#625a74; border-left-color:#9986bc; }
.girls :is(.tag,.avatar,.empty-symbol) { background:var(--surface-hover); color:var(--green); }
.girls :is(.num,.leader-rank,.scheduled) { color:var(--muted); }
.girls :is(.mini,.next-footer,nav,td) { border-color:var(--line); }
.girls :is(button,select,input) { border-color:var(--theme-border); }
.girls :is(th,.card-link) { background:var(--surface-faint); }
.girls :is(.index,.points) { background:#f3eff9; }
.girls tbody tr:nth-child(even) { background:#faf8fc; }
.girls tbody tr:hover { background:var(--surface-hover); }
.girls .card-link:is(:hover,:focus-visible) { background:var(--surface-hover); }
.girls .tabs button[aria-selected="true"] { background:#fff; color:var(--green); box-shadow:0 1px 4px #29264014; }
.girls .segmented .selected { box-shadow:0 1px 4px #29264022; }
.girls :is(.primary,.action):is(:hover,:focus-visible) { background:#44316f; color:#fff; }
.girls .matchup-dialog .modal-heading button:hover { background:var(--surface-hover); }
.girls :is(button,a,input,select):focus-visible { outline-color:#9986bc; }
.girls dialog::backdrop { background:#29264080; }

.girls .bracket-card { border-color:var(--theme-border); }
.girls .bracket-card h4 { background:var(--surface-soft); }
.girls .bracket-team + .bracket-team { border-color:var(--line); }
.girls .bracket-round:not(:last-child) .bracket-slot::before,
.girls .bracket-round:not(:last-child) .bracket-slot::after { border-color:var(--theme-connector); }
.girls .bracket-round-4 .bracket-card { border-color:var(--green); box-shadow:0 2px 10px #29264012; }
.girls .bracket-round-4 .bracket-card h4 { background:var(--green); color:#fff; }
.girls :is(.bracket-team.is-playoff-winner,.playoff-champion) { background:#e7dff3; color:#44316f; }

.girls nav[aria-label="Main navigation"] .stats-menu a:is(:hover,:focus-visible,.active),
.girls nav[aria-label="Main navigation"] a.team-menu-link:is(:hover,:focus-visible,:active) { background:var(--surface-hover); border-color:var(--theme-border); }
.girls nav[aria-label="Main navigation"] :is(.stats-menu,.teams-menu) { box-shadow:0 8px 20px #29264026; }
.girls thead th button:is(:hover,:active,:focus-visible),
.girls thead th:is([aria-sort="ascending"],[aria-sort="descending"]) button { background:var(--surface-hover); color:var(--ink); }
/* Exported leaders tables use a tinted final statistical column. */
.girls:has(#leadersSeason) main table td:last-child { background:#f3eff9; }
.girls .hero :is(p,h1 span) { color:#d7cfe8; }
.girls .hero .season-stats span { color:#c0b1dc; }
.girls .rink,.girls .rink::after,.girls .circle { border-color:#8f7cab; }
.girls .rink::before,.girls .rinkline { background:#8f7cab; }
.girls:not([data-team-hub]) .rink::after { background:#8f7cab; }
.girls .rinklabel { color:#c0b1dc; }

/* Compact mobile matchup labels; retain the desktop record label. */
@media(max-width:600px) {
  .matchup-dialog .matchup-record-detail { display:none; }
  .matchup-dialog .matchup-summary th[scope="row"] { white-space:nowrap; overflow-wrap:normal; word-break:normal; }
  .matchup-dialog .matchup-summary th:first-child,
  .matchup-dialog .matchup-summary td:first-child { width:34%; padding-left:4px; }
  .matchup-dialog .matchup-summary th:not(:first-child),
  .matchup-dialog .matchup-summary td:not(:first-child) { width:33%; }
  .matchup-dialog .matchup-summary th[scope="row"] { font-size:10px; letter-spacing:0; }
}

#standingsTable .school-word{white-space:nowrap;overflow-wrap:normal;word-break:normal}
