/* Page headings and the playoff workspace share the navigation palette. */
:root {
 --ui-base:#0e151f;
 --ui-nav:#101924;
 --ui-panel:#141f2c;
 --ui-inset:#101a26;
 --ui-line:#2b3a4d;
 --ui-text:#f5f7fa;
 --ui-muted:#abb9c9;
 --ui-accent:#e57683;
 --ui-accent-panel:#30212e;
 --ui-focus:#bcd8fc;
}
.site-header {
 background:var(--ui-nav);
 border-bottom:1px solid var(--ui-line);
 color:var(--ui-text);
 backdrop-filter:none;
}
.site-header .brand {min-width:0;gap:.65rem}
.site-header .brand-mark {width:35px;height:35px;flex:0 0 35px}
.site-header .brand-copy strong {font-size:.9375rem;letter-spacing:.09em}
.site-header .nav-link {font-weight:650;color:var(--ui-muted)}
.site-header .nav-link:is(:hover,.active),.site-header .nav-season.active {color:var(--ui-text)}
.site-header .nav-link.active:after,.site-header .nav-season.active:after {background:var(--ui-accent);height:2px}
.site-header .nav-submenu {background:var(--ui-panel);border-color:var(--ui-line);box-shadow:0 12px 24px #05091055}
.site-header .nav-submenu[hidden] {display:none}
.site-header .nav-submenu:not([hidden]) {display:grid;gap:.2rem}
.nav-menu-chevron {display:inline-block;width:6px;height:6px;margin-left:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.nav-menu-toggle[aria-expanded="true"] .nav-menu-chevron {transform:translateY(1px) rotate(225deg)}
.site-header .nav-pill {color:var(--ui-text);background:var(--ui-accent-panel)}
.site-header .mobile-menu {background:var(--ui-inset);border-color:var(--ui-line)}
.page-heading {
 background:var(--ui-base);
 border-bottom:1px solid var(--ui-line);
}
.page-heading .wrap {
 padding-block:clamp(1.6rem,4vw,3.3rem);
}
.page-heading h1,.zg-home .zg-heading h1.page-title {
 color:var(--ui-text);
 font-size:clamp(2rem,5vw,3.625rem);
 font-weight:730;
 line-height:1.07;
 letter-spacing:-.045em;
 margin:0;
 text-wrap:balance;
}
.page-heading h1::before,.zg-home .zg-heading h1.page-title::before {
 content:"";
 display:block;
 width:1.6rem;
 height:2px;
 margin-bottom:.75rem;
 background:var(--ui-accent);
}
.zg-home .zg-heading h1.page-title {display:block;white-space:normal}
.zg-home .zg-heading {align-items:end}
.zg-home {background:var(--ui-base)}
.history-hall {
 background:var(--ui-nav);
 border-color:var(--ui-line);
}
.history-hall::before {content:none}
.history-hall .page-heading--hall {background:transparent;border:0}
.history-hall .page-heading--hall .wrap {
 padding-block:0 clamp(1.8rem,5vw,3.4rem);
}
.history-hall .page-heading--hall h1 {
 color:#ffe7ad;
 font:700 clamp(2.55rem,7vw,6.5rem)/1.04 Georgia,'Times New Roman',serif;
 letter-spacing:-.035em;
 text-shadow:0 0 45px #ffdc8450,0 4px 2px #111923a0;
}
.history-hall .page-heading--hall h1::before {content:none}
.section-heading h2,.z-section-head h2 {
 font-size:clamp(1.4rem,3vw,2rem);
 font-weight:700;
 letter-spacing:-.025em;
 line-height:1.2;
}
.page-filter-row {padding-top:1.1rem}
.match-week-tools {
 display:flex;
 justify-content:space-between;
 align-items:center;
 flex-wrap:wrap;
 gap:.55rem 1rem;
 padding-bottom:.8rem;
}
.match-week-tools .z-weekbar {margin:0;padding:0}
.match-week-tools .z-text-link {margin:0;color:var(--ui-text);background:var(--ui-inset);border:1px solid var(--ui-line)}
.season-champion .season-title-result {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:1rem;
 flex-wrap:wrap;
 background:var(--ui-panel);
 border:1px solid var(--ui-line);
 border-radius:10px;
 padding:1.25rem 1.5rem;
}
.season-title-result span {display:block;color:var(--ui-muted);font-size:.875rem}
.season-title-result h2 {margin:.2rem 0 0;font-size:clamp(1.25rem,3vw,1.75rem)}
.not-found {background:var(--ui-base)}
.not-found .error-home {background:var(--ui-panel);border:1px solid var(--ui-line);color:var(--ui-text)}

.sp-page {background:var(--ui-base);color:var(--ui-text);min-height:80vh}
.sp-layout {
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:clamp(1.45rem,4vw,2.5rem);
 padding-block:clamp(1.3rem,3.5vw,2.65rem) 4rem;
}
.sp-block {
 min-width:0;
 background:var(--ui-panel);
 border:1px solid var(--ui-line);
 border-radius:12px;
 padding:clamp(.95rem,2.6vw,1.85rem);
}
.sp-section-top {
 display:flex;
 flex-wrap:wrap;
 align-items:end;
 justify-content:space-between;
 gap:1rem 2rem;
 margin-bottom:1.15rem;
}
.sp-section-top h2 {
 margin:0;
 font-size:clamp(1.45rem,3vw,2rem);
 font-weight:720;
 letter-spacing:-.035em;
 line-height:1.18;
}
.sp-context,.sp-path .sp-context {color:var(--ui-muted);font-size:.875rem;line-height:1.55}
.sp-section-top p {margin:.35rem 0 0}
.sp-select-label {display:grid;gap:.35rem;font-size:.875rem;font-weight:650;color:var(--ui-muted);min-width:0}
.sp-select {
 appearance:none;
 font:inherit;
 font-size:1rem;
 color:var(--ui-text);
 background:var(--ui-base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bac9da' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .65rem center/1rem no-repeat;
 border:1px solid #465870;
 border-radius:7px;
 min-height:44px;
 padding:.5rem 2rem .5rem .7rem;
 min-width:0;
 width:100%;
 max-width:100%;
}
#sp-team {width:min(22rem,100%)}
.sp-select:focus-visible,.sp-page button:focus-visible,.sp-page summary:focus-visible {outline:2px solid var(--ui-focus);outline-offset:3px}
.sp-team-current {
 display:flex;
 flex-wrap:wrap;
 gap:.5rem clamp(.85rem,3vw,2rem);
 padding:.85rem 0;
 border-block:1px solid var(--ui-line);
 color:var(--ui-muted);
 font-size:.875rem;
}
.sp-team-current strong {color:var(--ui-text);margin-left:.25rem;font-variant-numeric:tabular-nums}
.sp-seed-picker {margin:1.2rem 0}
.sp-seed-label {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.35rem .8rem;margin:0 0 .6rem}
.sp-clinched {color:var(--ui-muted);font-size:.875rem}
.sp-seed-buttons {display:flex;flex-wrap:wrap;gap:.4rem}
.sp-seed-buttons button {
 background:var(--ui-inset);
 color:var(--ui-muted);
 border:1px solid var(--ui-line);
 border-radius:7px;
 min-width:44px;
 min-height:44px;
 font:650 1rem/1 system-ui,sans-serif;
}
.sp-seed-buttons .sp-in-bracket {color:var(--ui-text);border-color:#50627a}
.sp-seed-buttons button:hover {border-color:#7b8ca3;color:var(--ui-text)}
.sp-seed-buttons button[aria-pressed="true"] {
 background:var(--ui-accent-panel);
 border-color:var(--ui-accent);
 color:var(--ui-text);
}
.sp-path {
 border-radius:10px;
 border:1px solid var(--ui-line);
 background:var(--ui-inset);
 padding:clamp(.85rem,2.7vw,1.55rem);
}
.sp-path-top {
 display:flex;
 flex-wrap:wrap;
 justify-content:space-between;
 align-items:end;
 gap:.8rem 1rem;
 padding-bottom:1rem;
 border-bottom:1px solid var(--ui-line);
}
.sp-path-top h3 {margin:.28rem 0 0;font-size:clamp(1.5rem,3vw,2.15rem);letter-spacing:-.04em;line-height:1.12}
.sp-tag {
 display:inline-block;
 color:#e9c4ca;
 font-size:.8125rem;
 font-weight:680;
 line-height:1.25;
 border:1px solid #604650;
 border-radius:30px;
 padding:.28rem .58rem;
 background:var(--ui-accent-panel);
}
.sp-plan {
 display:grid;
 grid-template-columns:minmax(0,2fr) minmax(0,3fr);
 gap:clamp(1rem,3vw,2.2rem);
 padding:1rem 0 .15rem;
}
.sp-plan section+section {padding-left:clamp(1rem,3vw,2.2rem);border-left:1px solid var(--ui-line)}
.sp-plan h4 {margin:0 0 .6rem;color:var(--ui-text);font-size:1rem;font-weight:700}
.sp-plan p,.sp-example p {margin:.45rem 0;line-height:1.55}
.sp-outcomes,.sp-rivals {list-style:none;margin:0;padding:0}
.sp-outcomes li,.sp-rivals li {
 display:grid;
 grid-template-columns:minmax(4.2rem,auto) minmax(0,1fr);
 gap:.25rem .75rem;
 align-items:baseline;
 line-height:1.48;
 padding:.65rem 0;
 border-bottom:1px solid var(--ui-line);
}
.sp-outcomes li span {color:var(--ui-muted);font-size:.875rem;white-space:nowrap}
.sp-outcomes li strong {font-size:.9375rem;font-weight:640}
.sp-rivals li {font-size:.875rem;color:#d1dce8}
.sp-rivals li div,.sp-rivals li strong {min-width:0}
.sp-rivals li>strong {color:var(--ui-text)}
.sp-margin {display:block;margin-top:.1rem;color:var(--ui-muted)}
.sp-margin strong,.sp-example strong {color:var(--ui-text)}
.sp-finish {color:var(--ui-muted);font-size:.875rem}
.sp-finish strong {color:var(--ui-text);margin-left:.25rem}
.sp-example,.sp-method {margin-top:1rem;color:var(--ui-muted);font-size:.875rem;line-height:1.55}
.sp-example {padding-top:.75rem;border-top:1px solid var(--ui-line)}
.sp-example summary,.sp-method summary {cursor:pointer;color:var(--ui-text);font-weight:640;width:fit-content;max-width:100%}
.sp-example[open] summary,.sp-method[open] summary {margin-bottom:.65rem}
.sp-example-points {padding-top:.4rem}
.sp-state {padding:1rem 0;margin:.4rem 0;color:var(--ui-muted);font-size:1rem}
.sp-eliminated {padding:1.15rem 0 .65rem;color:var(--ui-accent);font-size:clamp(1.25rem,3vw,1.65rem)}
.sp-table-wrap {border:1px solid var(--ui-line);border-radius:8px}
.sp-table-wrap table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.sp-table-wrap th,.sp-table-wrap td {padding:.68rem .7rem;text-align:left;border-bottom:1px solid var(--ui-line)}
.sp-table-wrap thead {background:var(--ui-base);color:var(--ui-muted)}
.sp-table-wrap thead th {font-weight:650;font-size:.8125rem}
.sp-table-wrap thead th:first-child {border-top-left-radius:8px}
.sp-table-wrap thead th:last-child {border-top-right-radius:8px}
.sp-table-wrap tbody tr:last-child>* {border-bottom:0}
.sp-table-wrap tbody th {width:34%}
.sp-table-wrap tbody th strong {font-size:.9375rem;line-height:1.35;font-weight:700}
.sp-table-wrap tbody th small {color:var(--ui-muted);font-size:.8125rem;display:block;font-weight:400;line-height:1.3}
.sp-table-wrap tbody td {font-size:.875rem;white-space:nowrap}
.sp-probability {display:grid;grid-template-columns:3.5rem minmax(1.4rem,1fr);align-items:center;gap:.45rem}
.sp-probability-track {display:block;height:4px;background:#2a3749;border-radius:2px;overflow:hidden}
.sp-probability-track i {display:block;height:100%;background:#c1d0e1;border-radius:inherit}
.sp-table-wrap td:nth-child(3) .sp-probability-track i {background:#b76575}

@media(max-width:1250px){
 .site-header .main-nav.open {align-items:start;gap:.25rem;overflow-x:hidden;overscroll-behavior:contain}
 .site-header .main-nav.open .nav-dropdown {grid-column:1/-1}
 .site-header .nav-link {min-height:44px;font-size:.875rem;line-height:1.3;white-space:normal}
 .site-header .nav-menu-toggle {width:100%;display:flex;align-items:center;justify-content:space-between}
 .site-header .nav-link.active:after,.site-header .nav-season.active:after {height:auto;width:2px}
 .site-header .main-nav.open .nav-submenu {
  background:var(--ui-inset);border:1px solid var(--ui-line);border-radius:8px;
  padding:.25rem;margin:.1rem 0 .35rem;box-shadow:none;grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:700px){
 .sp-plan {grid-template-columns:minmax(0,1fr);gap:.85rem}
 .sp-plan section+section {padding:.85rem 0 0;border:0;border-top:1px solid var(--ui-line)}
 .sp-section-top>.sp-select-label,#sp-team {width:100%}
 .sp-method summary,.sp-example summary {min-height:44px;display:list-item;padding-block:.6rem}
 .sp-probability {grid-template-columns:minmax(0,1fr);gap:.28rem}
 .sp-table-wrap {border:0}
 .sp-table-wrap table.responsive-table > tbody > tr {background:var(--ui-inset);color:var(--ui-text);border-color:var(--ui-line)}
 .sp-table-wrap table.responsive-table > tbody > tr > th[scope="row"] {
  padding:0 0 .6rem!important;
  border-bottom:1px solid var(--ui-line);
 }
 .sp-table-wrap tbody th strong {display:block;font-size:1rem}
}
