.wpbh{--wpbh-accent:#1d4ed8;--wpbh-ink:#0f1f3d;--wpbh-muted:#5b6780;--wpbh-line:#d9e0ec;--wpbh-soft:#f4f7fc;--wpbh-card:#fff;--wpbh-live:#c81e1e;--wpbh-win:#0f1f3d;color:var(--wpbh-ink);font-size:15px;line-height:1.4;margin:0 0 1.75em;max-width:100%}
.wpbh *,.wpbh *::before,.wpbh *::after{box-sizing:border-box}
.wpbh-note{background:var(--wpbh-soft);border:1px solid var(--wpbh-line);border-radius:10px;color:var(--wpbh-muted);font-size:14px;margin:.75em 0;padding:.7em 1em}
.wpbh-note-admin{background:#fff8e6;border-color:#f0d58a;color:#6b5200}
.wpbh-foot,.wpbh-legend{color:var(--wpbh-muted);font-size:13px;margin:.6em 0 0}
.wpbh-muted{color:var(--wpbh-muted)}
.wpbh-flag{border-radius:2px;box-shadow:0 0 0 1px rgba(15,31,61,.12);flex:0 0 20px;height:15px;object-fit:cover;width:20px}
.wpbh-flag-none{background:var(--wpbh-soft)}
.wpbh-tname{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wpbh-tbd{color:var(--wpbh-muted)}
.wpbh-badge{background:var(--wpbh-soft);border-radius:999px;color:var(--wpbh-muted);display:inline-block;font-size:11px;font-weight:700;letter-spacing:.03em;padding:2px 8px;text-transform:uppercase;white-space:nowrap}
.wpbh-live{background:var(--wpbh-live);color:#fff}
.wpbh-row{align-items:center;display:flex;gap:8px;min-height:28px}
.wpbh-score{flex:0 0 auto;font-variant-numeric:tabular-nums;font-weight:700;min-width:1.2em;text-align:right}
.wpbh-row.is-winner .wpbh-tname,.wpbh-row.is-winner .wpbh-score{color:var(--wpbh-win);font-weight:800}
.wpbh-row.is-out .wpbh-tname,.wpbh-row.is-out .wpbh-score{color:var(--wpbh-muted);font-weight:400}

/* bracket */
.wpbh-champion{align-items:center;background:linear-gradient(135deg,#fff7df,#fff);border:1px solid #ecd9a0;border-radius:12px;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 14px;padding:12px 16px}
.wpbh-champion-label{color:#8a6a00;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.wpbh-champion-team{align-items:center;display:inline-flex;font-size:18px;font-weight:800;gap:8px}
.wpbh-tabs{display:flex;gap:6px;margin:0 0 10px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.wpbh-tabs::-webkit-scrollbar{display:none}
.wpbh-tab{background:var(--wpbh-card);border:1px solid var(--wpbh-line);border-radius:999px;color:var(--wpbh-ink);cursor:pointer;flex:0 0 auto;font:inherit;font-size:13px;font-weight:700;padding:6px 14px}
.wpbh-tab.is-active,.wpbh-tab:hover{background:var(--wpbh-accent);border-color:var(--wpbh-accent);color:#fff}
.wpbh-tab:focus-visible,.wpbh-scroll:focus-visible{outline:2px solid var(--wpbh-accent);outline-offset:2px}
.wpbh-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}
.wpbh-rounds{display:flex;width:max-content}
.wpbh-round{display:flex;flex:0 0 232px;flex-direction:column;scroll-snap-align:start}
.wpbh-round-title{color:var(--wpbh-muted);font-size:12px;font-weight:800;letter-spacing:.06em;margin:0 0 6px;padding:0 16px;text-align:center;text-transform:uppercase}
.wpbh-round-body{display:flex;flex:1 1 auto;flex-direction:column}
.wpbh-tie{align-items:center;display:flex;flex:1 1 0;padding:5px 16px;position:relative}
.wpbh-card{background:var(--wpbh-card);border:1px solid var(--wpbh-line);border-radius:10px;box-shadow:0 1px 2px rgba(15,31,61,.05);padding:6px 10px;width:100%}
.wpbh-card.is-live{border-color:var(--wpbh-live);box-shadow:0 0 0 1px var(--wpbh-live)}
.wpbh-tie-meta{color:var(--wpbh-muted);font-size:11px;margin-bottom:2px;min-height:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wpbh-round:not(:first-child) .wpbh-tie::before{border-top:2px solid var(--wpbh-line);content:"";left:0;position:absolute;top:50%;width:16px}
.wpbh-round:not(:last-child) .wpbh-tie::after{border-right:2px solid var(--wpbh-line);content:"";height:50%;position:absolute;right:0;width:16px}
.wpbh-round:not(:last-child) .wpbh-tie:nth-child(odd)::after{border-top:2px solid var(--wpbh-line);top:50%}
.wpbh-round:not(:last-child) .wpbh-tie:nth-child(even)::after{border-bottom:2px solid var(--wpbh-line);bottom:50%}
.wpbh-third{margin-top:14px;max-width:232px}
.wpbh-third .wpbh-round-title{text-align:left}
.wpbh-third .wpbh-tie::before,.wpbh-third .wpbh-tie::after{display:none}

/* tables */
.wpbh-groups{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.wpbh-group{background:var(--wpbh-card);border:1px solid var(--wpbh-line);border-radius:12px;overflow:hidden}
.wpbh table.wpbh-table{border:0;border-collapse:collapse;font-size:14px;margin:0;width:100%}
.wpbh-table caption{background:var(--wpbh-soft);border-bottom:1px solid var(--wpbh-line);caption-side:top;color:var(--wpbh-ink);font-size:14px;font-weight:800;padding:9px 12px;text-align:left}
.wpbh-table th,.wpbh-table td{background:none;border:0;border-bottom:1px solid var(--wpbh-line);font-variant-numeric:tabular-nums;padding:7px 6px;text-align:center}
.wpbh-table thead th{color:var(--wpbh-muted);font-size:11px;font-weight:700;text-transform:uppercase}
.wpbh-table abbr{border:0;cursor:help;text-decoration:none}
.wpbh-table tbody tr:last-child th,.wpbh-table tbody tr:last-child td{border-bottom:0}
.wpbh-table .wpbh-tcell{font-weight:600;text-align:left}
.wpbh-tin{align-items:center;display:flex;gap:8px;min-width:0}
.wpbh-table .wpbh-pos{color:var(--wpbh-muted);padding-left:12px;width:34px}
.wpbh-table .wpbh-pts{font-weight:800;padding-right:12px}
.wpbh-table tr.is-q .wpbh-pos{box-shadow:inset 3px 0 0 #15803d}
.wpbh-table tr.is-maybe .wpbh-pos{box-shadow:inset 3px 0 0 #d97706}
.wpbh-table tr.is-out .wpbh-tname{color:var(--wpbh-muted)}
.wpbh-thirds-table{background:var(--wpbh-card);border:1px solid var(--wpbh-line) !important;border-radius:12px;overflow:hidden}
.wpbh-key{border-radius:2px;display:inline-block;height:10px;margin:0 4px 0 10px;width:10px}
.wpbh-key:first-child{margin-left:0}
.wpbh-key.is-q{background:#15803d}
.wpbh-key.is-maybe{background:#d97706}

/* matches */
.wpbh ul.wpbh-matches{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));list-style:none;margin:0;padding:0}
.wpbh-match{background:var(--wpbh-card);border:1px solid var(--wpbh-line);border-radius:12px;margin:0;padding:10px 12px}
.wpbh-match.is-live{border-color:var(--wpbh-live);box-shadow:0 0 0 1px var(--wpbh-live)}
.wpbh-match-meta{align-items:center;color:var(--wpbh-muted);display:flex;flex-wrap:wrap;font-size:12px;gap:4px 8px;margin-bottom:6px}
.wpbh-match-label{font-weight:700}
.wpbh-match-meta .wpbh-badge{margin-left:auto}
.wpbh-day{font-size:16px;margin:18px 0 8px}

/* status */
.wpbh-status-card{background:var(--wpbh-card);border:1px solid var(--wpbh-line);border-radius:14px;box-shadow:0 2px 8px rgba(15,31,61,.06);padding:16px 18px}
.wpbh-status-head{align-items:center;display:flex;flex-wrap:wrap;gap:8px 12px;margin-bottom:12px}
.wpbh-status-name{font-size:18px;font-weight:800}
.wpbh dl.wpbh-status-grid{display:grid;gap:12px 20px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin:0}
.wpbh-status-grid dt{color:var(--wpbh-muted);font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.wpbh-status-grid dd{font-weight:600;margin:2px 0 0}
.wpbh-status-team{align-items:center;display:flex;gap:8px}
.wpbh-status-card .wpbh-matches{margin-top:14px}

.wpbh-print-card{align-items:center;background:var(--wpbh-card);border:1px solid var(--wpbh-line);border-radius:14px;box-shadow:0 2px 8px rgba(15,31,61,.06);display:flex;flex-wrap:wrap;gap:14px 20px;justify-content:space-between;padding:16px 18px}
.wpbh-print-text{display:flex;flex:1 1 280px;flex-direction:column;gap:4px}
.wpbh-print-title{font-size:17px}
.wpbh-print-sub{color:var(--wpbh-muted);font-size:13px}
.wpbh a.wpbh-btn{background:var(--wpbh-accent);border-radius:10px;color:#fff;display:inline-block;flex:0 0 auto;font-weight:800;padding:12px 22px;text-decoration:none}
.wpbh a.wpbh-btn:hover,.wpbh a.wpbh-btn:focus{color:#fff;filter:brightness(1.1)}

@media (max-width:600px){
	.wpbh-round{flex-basis:78vw;max-width:300px}
	.wpbh-hide-s{display:none}
	.wpbh-groups{grid-template-columns:1fr}
}
@media print{
	.wpbh-tabs{display:none}
	.wpbh-scroll{overflow:visible}
	.wpbh-rounds{width:auto}
	.wpbh-round{flex:1 1 0}
}
