.cb { --ink:#102b3b; --muted:#485f6e; --line:#b8c9cc; --gold:#f0c169; background:#f1f5f4; color:var(--ink); }
.cb [hidden],.cb-print-title,.cb-write { display:none; }
.cb-wrap { width:min(calc(100% - 2rem),78rem); margin-inline:auto; }
.cb-mast { color:white; background:#102b3b; border-bottom:.28rem solid var(--gold); padding:1rem 0 1.7rem; }
.cb-mast nav,.cb-mast nav a { color:#d1e0e5; font-size:.9rem; }
.cb-mast h1 { color:white; max-width:25ch; font-size:clamp(2rem,4.5vw,3.8rem); line-height:1.01; letter-spacing:-.035em; margin:.25rem 0 .7rem; }
.cb .cb-season { margin:1.1rem 0 .35rem; color:#f3c66f; font-weight:750; }
.cb-intro { max-width:74ch; margin:0; }
.cb-body { padding:1.1rem 0 2rem; }
.cb-bar,.cb-guidance,.cb-actions,.cb-more nav { display:flex; gap:.65rem 1.2rem; align-items:center; flex-wrap:wrap; }
.cb-bar { justify-content:space-between; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.cb-field-status { font-size:1.22rem; }
.cb-context,.cb-guidance p { margin:.2rem 0; }
.cb-context,.cb-guidance,.cb-more { color:var(--muted); }
.cb-actions { gap:.5rem; }
.cb-actions button,.cb-guidance button { font:inherit; cursor:pointer; }
.cb-actions button { border:1px solid var(--ink); color:var(--ink); background:white; font-weight:bold; border-radius:.3rem; padding:.62rem .9rem; }
.cb-actions button:first-child { background:var(--ink); color:white; }
.cb-guidance { font-size:.92rem; margin:.85rem 0; }
.cb-guidance p { flex:1 1 30rem; }
.cb-guidance button { background:none; color:var(--ink); border:0; text-decoration:underline; }
.cb-guidance button:disabled { color:#62727a; text-decoration:none; cursor:default; }
.cb button:focus-visible { outline:3px solid #af6d0d; outline-offset:2px; }
.cb-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.35rem; }
.cb-round { min-width:0; }
.cb-round header { border-block-start:3px solid #296150; padding:.65rem 0; }
.cb-round h2 { color:var(--ink); font-size:clamp(1.05rem,2vw,1.45rem); margin:0; line-height:1.2; }
.cb-round header p { margin:.12rem 0 0; font-size:.86rem; color:var(--muted); }
.cb-lanes { display:grid; grid-template-rows:repeat(4,minmax(6.6rem,1fr)); gap:.85rem; }
.cb-game { position:relative; align-self:center; overflow:visible; border:1px solid #afc1c5; border-radius:.32rem; background:white; }
.cb-game-head { display:flex; justify-content:space-between; gap:.3rem; background:#e2ebe8; color:#20473c; font-weight:720; font-size:.78rem; padding:.34rem .55rem; border-radius:.3rem .3rem 0 0; }
.cb-game-status { font:inherit; }
.cb-team { border:0; border-top:1px solid #e0e7e7; border-radius:0; color:var(--ink); width:100%; display:grid; grid-template-columns:1.5rem 1fr auto; gap:.3rem; align-items:center; padding:.4rem .5rem; min-height:2.55rem; font:inherit; font-weight:650; line-height:1.15; text-align:left; background:transparent; cursor:pointer; }
.cb-team:last-child { border-radius:0 0 .3rem .3rem; }
.cb-team:disabled { opacity:1; color:var(--ink); cursor:default; }
.cb-team:not(:disabled):hover { background:#e4f0eb; }
.cb-team.cb-win { background:#e0eee5; box-shadow:inset 3px 0 #246446; }
.cb-seed { color:#4c6171; font-size:.78rem; font-variant-numeric:tabular-nums; }
.cb-team.cb-pending { color:#516674; font-weight:450; font-size:.9em; }
.cb-score { color:#215b40; font-variant-numeric:tabular-nums; font-weight:750; }
.cb-semi .cb-game { grid-row:span 2; }
.cb-final .cb-game { grid-row:span 4; }
.cb-champion { display:flex; align-items:center; gap:1.2rem; margin:1rem 0; padding:.7rem 1rem; color:white; background:#163d35; border-left:4px solid var(--gold); }
.cb-champion span { font-weight:700; }
.cb-more { font-size:.93rem; }
.cb-more p { max-width:90ch; margin:.8rem 0 .5rem; }
.cb-more a { color:#244e67; text-underline-offset:.15em; }
@media screen and (min-width:851px) {
    .cb-first .cb-game::after,.cb-quarter .cb-game::after,.cb-semi .cb-game::after { content:''; position:absolute; left:100%; top:50%; width:1.35rem; border-top:1px solid #8da5a0; }
    .cb-quarter .cb-game:nth-child(odd)::after,.cb-semi .cb-game:first-child::after { width:.66rem; height:calc(50% + .5rem); border-right:1px solid #8da5a0; }
    .cb-quarter .cb-game:nth-child(even)::after,.cb-semi .cb-game:last-child::after { width:.66rem; height:calc(50% + .5rem); top:auto; bottom:50%; border-bottom:1px solid #8da5a0; border-top:0; border-right:1px solid #8da5a0; }
    .cb-semi .cb-game:first-child::after,.cb-semi .cb-game:last-child::after { height:calc(100% + 1rem); }
    .cb-semi .cb-game::before,.cb-final .cb-game::before { content:''; position:absolute; right:100%; top:50%; width:.69rem; border-top:1px solid #8da5a0; }
}
@media screen and (max-width:850px) {
    .cb-grid { display:block; }
    .cb-round { margin-block:1.25rem; }
    .cb-lanes { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; gap:.6rem; }
    .cb-semi .cb-game,.cb-final .cb-game { grid-row:auto; }
}
@media screen and (max-width:480px) {
    .cb-wrap { width:calc(100% - 1.5rem); }
    .cb-lanes { grid-template-columns:1fr; }
    .cb-team { min-height:2.75rem; }
}
@media print {
    @page { size:landscape; margin:10mm; }
    html,body { margin:0 !important; padding:0 !important; background:white !important; }
    body > :not(#cfp-bracket),.cb-mast,.cb-bar,.cb-guidance,.cb-more,.cb noscript { display:none !important; }
    .cb,.cb-body { width:100%; margin:0; padding:0; background:white; color:#111; }
    .cb { font:10pt/1.15 Arial,sans-serif; break-inside:avoid; }
    .cb-print-title { display:block; font-weight:bold; font-size:18pt; margin:0 0 3pt; }
    #cb-paper-note { font-size:10pt; margin-bottom:9pt; }
    .cb-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11pt; }
    .cb-round header { border-top:1.5pt solid #222; padding:5pt 0; }
    .cb-round h2 { font:700 13pt/1.1 Arial,sans-serif; }
    .cb-round header p,.cb-game-head,.cb-game-status,.cb-seed { font-size:8pt; }
    .cb-lanes { grid-template-rows:repeat(4,77pt); gap:9pt; }
    .cb-game { border:1pt solid #606b70; border-radius:0; break-inside:avoid; }
    .cb-game-head { background:white; color:#111; padding:3pt; }
    .cb-team,.cb-team.cb-pending,.cb-team:disabled { font:11pt/1.1 Arial,sans-serif; color:#111; grid-template-columns:14pt 1fr auto; min-height:24pt; padding:3pt; border-top:1px solid #ccd2d4; }
    .cb-team.cb-win { font-weight:bold; box-shadow:none; }
    .cb-champion { background:white; color:black; padding:6pt 0; margin:8pt 0; border:0; font-size:11pt; }
    #cb-champ { min-width:145pt; min-height:15pt; border-bottom:1pt solid #333; }
    .cb-blank .cb-name,.cb-blank .cb-seed,.cb-blank .cb-score,.cb-blank .cb-game-status { display:none; }
    .cb-blank .cb-write { display:block; grid-column:1/-1; font:7.5pt Arial,sans-serif; color:#444; border-bottom:.5pt dotted #888; padding-bottom:6pt; }
    .cb-blank .cb-win { background:white; }
    .cb-blank #cb-champ { font-size:0; }
    .cb-first .cb-game::after,.cb-quarter .cb-game::after,.cb-semi .cb-game::after,.cb-semi .cb-game::before,.cb-final .cb-game::before { content:''; position:absolute; top:50%; border-top:.65pt solid #777; }
    .cb-first .cb-game::after { left:100%; width:11pt; }
    .cb-quarter .cb-game::after,.cb-semi .cb-game::after { left:100%; width:5.5pt; height:43pt; border-right:.65pt solid #777; }
    .cb-semi .cb-game::after { height:86pt; }
    .cb-quarter .cb-game:nth-child(even)::after,.cb-semi .cb-game:last-child::after { top:auto; bottom:50%; border-top:0; border-bottom:.65pt solid #777; }
    .cb-semi .cb-game::before,.cb-final .cb-game::before { right:100%; width:5.5pt; }
}
