/* =============================================================================
   TOURNAMENT HUB  (/hub) — uses the site's colour tokens from styles.css,
   so light and dark mode follow the rest of the website.
   ========================================================================== */
:root {
  --hub-win: #1f8a4c;
  --hub-live: #e0394b;
  --hub-q: #1f8a4c;
  --hub-p: #c48a12;
  --hub-x: #b3384a;
  --hub-silver: #8a96ab;
  --hub-bronze: #b0743b;
}
:root[data-theme="dark"] { --hub-win: #4ccb82; --hub-live: #ff5a6b; --hub-q: #4ccb82; --hub-p: #e8b443; --hub-x: #ff7a8a; --hub-silver: #b9c3d6; --hub-bronze: #d39a62; }

.hub { min-height: 60vh; }
.hub .icon { display: inline-block; vertical-align: -3px; }
.hub-muted { color: var(--muted); }
.hub-small { font-size: .85rem; }
.hub-empty { color: var(--muted); padding: 18px 0; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- sub navigation (sticky under the site header) ---- */
.hub-subnav { background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.hub-subnav-row > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.hub-subnav-row > ul::-webkit-scrollbar { display: none; }
.hub-subnav-row > ul a { display: block; padding: 12px 14px; color: var(--on-navy-muted); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.hub-subnav-row > ul a:hover { color: var(--on-navy); }
.hub-subnav-row > ul a.is-active { color: var(--on-navy); border-bottom-color: var(--gold); }
.hub-subnav { position: relative; z-index: 30; }
.hub-subnav-row { display: flex; align-items: center; gap: 12px; }
.hub-subnav-row > ul { flex: 1 1 auto; min-width: 0; }
.hub-sn-s { display: none; }
/* Hub search */
.hub-find { position: relative; flex: none; }
.hub-find-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--on-navy-muted); cursor: pointer; }
.hub-find-btn:hover, .hub-find.is-open .hub-find-btn { color: var(--on-navy); }
.hub-find-btn .icon { width: 20px; height: 20px; }
.hub-find-box { position: relative; display: flex; align-items: center; gap: 8px; width: 270px; padding: 6px 10px; border: 1px solid var(--navy-line); border-radius: var(--radius-sm); background: rgba(255,255,255,.06); }
.hub-find-box:focus-within { border-color: var(--gold); }
.hub-find-box > .icon { width: 16px; height: 16px; flex: none; color: var(--on-navy-muted); }
.hub-find-box input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--on-navy); width: 100%; min-width: 0; }
.hub-find-box input::placeholder { color: var(--on-navy-muted); }
.hub-q-list { position: absolute; right: 0; top: calc(100% + 6px); width: 360px; max-width: calc(100vw - 32px); list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60; }
.hub-q-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--heading); text-decoration: none; }
.hub-q-list a > span { display: flex; flex-direction: column; min-width: 0; }
.hub-q-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-q-list li.is-sel a, .hub-q-list a:hover { background: var(--surface-2); }
.hub-q-none { padding: 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .hub-subnav-row { gap: 0; }
  .hub-subnav-row > ul { gap: 0; justify-content: space-between; }
  .hub-subnav-row > ul a { padding: 12px 6px; font-size: .86rem; }
  .hub-find-btn { width: 36px; }
  .hub-sn-l { display: none; }
  .hub-sn-s { display: inline; }
  .hub-find-btn { display: inline-flex; }
  .hub-find-box { display: none; }
  .hub-find.is-open .hub-find-box { display: flex; position: absolute; right: 0; top: calc(100% + 4px); width: calc(100vw - 32px); background: var(--navy-2); padding: 10px 12px; box-shadow: var(--shadow-lg); z-index: 61; }
  .hub-find-box input { font-size: 1rem; }
}

/* ---- page head ---- */
.hub-head { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: var(--on-navy); padding: 22px 0 30px; }
.hub-head .eyebrow { color: var(--gold); margin-bottom: 6px; }
.hub-head--top { padding-top: 28px; }
.hub-head--compact { padding: 22px 0 20px; }
.hub-head--compact h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.hub-head-meta { color: var(--on-navy-muted); margin: 6px 0 0; font-weight: 600; font-size: .95rem; }
.hub-head h1 { color: var(--on-navy); font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: 0; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub-lead { color: var(--on-navy-muted); margin: 10px 0 0; max-width: 115ch; }
/* tidy line breaks: balanced headings and short lines, no lone last word in text.
   text-wrap-style (not the text-wrap shorthand) so "nowrap" cells stay on one line. */
.hub h1, .hub h2, .hub h3, .hub-dialog h2, .hub-lead, .hub-head-meta, .hub-table td, .hub-table th { text-wrap-style: balance; }
.hub p, .hub li, .hub dd, .hub-dialog p { text-wrap-style: pretty; }
.hub .hub-lead, .hub .hub-head-meta { text-wrap-style: balance; }
.hub-lead a { color: var(--gold); }
.hub-lead .icon { width: 18px; height: 18px; vertical-align: -3px; color: var(--gold); }
.hub-head-main { display: flex; align-items: center; gap: 18px; }
.hub-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; font-size: .85rem; }
.hub-crumbs li { color: var(--on-navy-muted); }
.hub-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.hub-crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.hub-crumbs a:hover { color: var(--on-navy); text-decoration: underline; }
.hub-crumbs [aria-current] { color: var(--on-navy); }

.hub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 24px 0 0; }
.hub-stats div { background: rgba(255,255,255,.06); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 12px 16px; }
.hub-stats dt { color: var(--on-navy-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.hub-stats dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--on-navy); }

/* ---- chips ---- */
.hub-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); vertical-align: middle; font-family: var(--font-body); }
.hub-head .hub-chip { background: rgba(255,255,255,.08); color: var(--on-navy-muted); border-color: var(--navy-line); }
.hub-chip--soon { color: var(--gold-text); background: var(--gold-soft); border-color: var(--gold-line); }
.hub-head .hub-chip--soon { color: var(--gold); }
.hub-chip--live, .hub-head .hub-chip--live { color: #fff; background: var(--hub-live); border-color: transparent; }
.hub-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: hub-pulse 1.4s ease-in-out infinite; }
@keyframes hub-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hub-dot { animation: none; } }

/* ---- logos ---- */
.hub-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.hub-logo--blank { font-family: var(--font-head); font-weight: 800; color: var(--muted); border: 1px solid var(--border); }
.hub-logo--xs { width: 22px; height: 22px; font-size: .55rem; border-radius: 5px; }
.hub-logo--sm { width: 28px; height: 28px; font-size: .65rem; }
.hub-logo--md { width: 44px; height: 44px; font-size: .8rem; }
.hub-logo--lg { width: 76px; height: 76px; font-size: 1.2rem; border-radius: 14px; background: rgba(255,255,255,.08); }
.hub-logo--xl { width: 120px; height: 120px; font-size: 1.6rem; border-radius: 16px; }
.hub-avatar { border-radius: 50%; }
.hub-head .hub-logo--blank { color: var(--on-navy-muted); border-color: var(--navy-line); }

/* ---- body layout ---- */
.hub-body { padding-top: 28px; padding-bottom: 64px; }
.hub-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.hub-split > * { min-width: 0; }
.hub-split > .hub-infobox { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 16px); }
.hub-split > .hub-main { grid-column: 1; grid-row: 1; }
@media (max-width: 960px) {
  .hub-split { grid-template-columns: minmax(0, 1fr); }
  /* phones and tablets: the page's own content first, the details box after it
     (its logo and name are already in the page header) */
  .hub-split > .hub-infobox { grid-row: 2; grid-column: 1; position: static; }
  .hub-split > .hub-main { grid-row: 1; }
  .hub-infobox-head .hub-logo { display: none; }
  .hub-infobox-head { text-align: left; padding: 12px 18px; }
  .hub-infobox-head h2::before { content: "Details: "; color: var(--muted); font-weight: 700; }
}
.hub-section { margin-bottom: 36px; }
.hub-section h2 { font-size: 1.3rem; margin: 0 0 14px; }
.hub-section h3 { font-size: 1rem; margin: 0 0 10px; }
.hub-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold-text); text-decoration: none; }
.hub-more .icon { width: 16px; height: 16px; }
.hub-more:hover { text-decoration: underline; }

/* ---- infobox ---- */
.hub-infobox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hub-infobox-head { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 18px; text-align: center; }
.hub-infobox-head .hub-logo { margin: 0 auto 10px; }
.hub-infobox-head h2 { font-size: 1.05rem; margin: 0; }
.hub-infobox dl { margin: 0; padding: 6px 18px 14px; display: grid; grid-template-columns: 104px 1fr; }
.hub-infobox dt, .hub-infobox dd { padding: 9px 0; border-bottom: 1px solid var(--border); margin: 0; font-size: .9rem; }
.hub-infobox dt { color: var(--muted); font-weight: 700; }
.hub-infobox dd { min-width: 0; overflow-wrap: anywhere; }
.hub-infobox dt:nth-last-of-type(1), .hub-infobox dd:last-child { border-bottom: 0; }
.hub-infobox a { color: var(--gold-text); }

/* ---- tables ---- */
.hub-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hub-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hub-table th, .hub-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hub-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; white-space: nowrap; }
.hub-table tbody tr:last-child > * { border-bottom: 0; }
.hub-table tbody tr:hover > * { background: var(--surface-2); }
.hub-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hub-table tbody th { font-weight: 600; }
.hub-table a { color: var(--heading); text-decoration: none; }
.hub-table a:hover { color: var(--gold-text); text-decoration: underline; }
.hub-table tr.is-live > * { background: color-mix(in srgb, var(--hub-live) 6%, transparent); }
.hub-event-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.hub-table--events th[scope="row"] { min-width: 240px; }
.hub-table--events th[scope="row"] .hub-chip { margin-left: 8px; }

.hub-team { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.hub-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-tbd { color: var(--muted); font-style: italic; }
.hub-place { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hub-place .icon { width: 16px; height: 16px; vertical-align: -3px; }
.hub-place--1 { color: var(--gold-text); }
.hub-place--2 { color: var(--hub-silver); }
.hub-place--3 { color: var(--hub-bronze); }

/* group tables */
.hub-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; margin-bottom: 28px; }
.hub-group h3 { font-size: 1rem; margin: 0 0 8px; }
.hub-table--group th, .hub-table--group td { padding: 8px 10px; }
.hub-table--group tr[class^="zone-"] td:first-child { box-shadow: inset 3px 0 0 var(--zc, transparent); }
.zone-qualified, .zone-advance { --zc: var(--hub-q); }
.zone-playin, .zone-play_in { --zc: var(--hub-p); }
.zone-eliminated { --zc: var(--hub-x); }
.hub-legend { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: -10px 0 28px; font-size: .85rem; color: var(--muted); }
.hub-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hub-legend span { width: 12px; height: 12px; border-radius: 3px; background: var(--zc, var(--border)); }

/* ---- cards ---- */
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hub-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.hub-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.hub-card h3 { margin: 0; font-size: 1.1rem; }
.hub-card p { margin: 0; font-size: .92rem; }
.hub-card-meta { margin-top: auto !important; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem !important; color: var(--muted); font-weight: 600; }
.hub-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hub-card-meta .icon { width: 15px; height: 15px; color: var(--gold); }

/* live banner */
.hub-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; margin-bottom: 28px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--hub-live) 40%, var(--border)); background: color-mix(in srgb, var(--hub-live) 7%, var(--surface)); color: var(--heading); text-decoration: none; }
.hub-live-match { color: var(--text); }
.hub-live-match b { font-variant-numeric: tabular-nums; margin: 0 4px; }
.hub-live-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hub-live); }
.hub-live-go .icon { width: 16px; height: 16px; }
.hub-live-main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: var(--heading); text-decoration: none; }
.hub-live-main:hover strong { text-decoration: underline; }
.hub-live-watch, .hub-watch .btn { display: inline-flex; align-items: center; gap: 8px; }
.hub-live-watch .icon, .hub-watch .icon { width: 18px; height: 18px; }
/* live tournament header: watch buttons + "Updated 5s ago" */
.hub-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.hub-watch .hub-watch-alt { background: rgba(255,255,255,.06); color: var(--on-navy); border-color: var(--navy-line); }
.hub-watch .hub-watch-alt:hover { border-color: var(--gold); color: var(--on-navy); }
.hub-fresh { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--on-navy-muted); margin-left: 4px; }
.hub-fresh .hub-dot { background: var(--hub-live); }
@media (max-width: 600px) {
  .hub-live-watch { flex: 1 1 100%; justify-content: center; }
  .hub-watch .btn { flex: 1 1 auto; justify-content: center; }
  .hub-fresh { flex-basis: 100%; margin: 2px 0 0; }
}

/* champions list */
.hub-champs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hub-champs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.hub-champs li > a:first-child { color: var(--heading); font-weight: 700; text-decoration: none; }

/* ---- tournament tabs ---- */
.hub-tabbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 20; }
.hub-tabs ul { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.hub-tabs ul::-webkit-scrollbar { display: none; }
.hub-tabs a { display: block; padding: 14px 16px; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.hub-tabs a:hover { color: var(--heading); }
.hub-tabs a.is-active { color: var(--heading); border-bottom-color: var(--gold); }
.hub-stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.hub-stage-head h2 { margin: 0; font-size: 1.4rem; }

/* ---- bracket ---- */
.hub-bracket-part { margin: 22px 0 34px; }
.hub-bracket-part > h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.hub-bracket { display: flex; gap: 28px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.hub-bracket:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius-sm); }
.hub-round { flex: 0 0 236px; display: flex; flex-direction: column; scroll-snap-align: start; }
.hub-round h4 { font-size: .78rem; font-weight: 800; color: var(--heading); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-round-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.hub-round + .hub-round .hub-mc { position: relative; }
.hub-round + .hub-round .hub-mc::before { content: ""; position: absolute; left: -28px; top: 50%; width: 28px; border-top: 2px solid var(--border-strong); }

.hub-mc { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, transform .15s; }
.hub-mc:hover, .hub-mc:focus-visible { border-color: var(--gold); transform: translateY(-1px); }
.hub-mc:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hub-mc.is-live { border-color: var(--hub-live); box-shadow: 0 0 0 1px var(--hub-live), var(--shadow); }
.hub-mc-head { display: flex; justify-content: space-between; padding: 4px 10px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.hub-live-tag { color: var(--hub-live); }
.hub-mc-team { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: .88rem; }
.hub-mc-team + .hub-mc-team { border-top: 1px solid var(--border); }
.hub-mc-seed { width: 14px; font-size: .7rem; color: var(--muted); text-align: right; flex: none; }
.hub-mc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-mc-score { min-width: 18px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.hub-mc-team.is-win .hub-mc-name { font-weight: 800; color: var(--heading); }
.hub-mc-team.is-win .hub-mc-score { color: var(--hub-win); }
.hub-mc-team.is-loss { opacity: .62; }

/* ---- match rows ---- */
.hub-mlist { display: grid; gap: 8px; }
.hub-mrow { display: grid; grid-template-columns: 132px minmax(0, 1fr) 76px minmax(0, 1fr) 84px; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s; }
.hub-mrow:hover, .hub-mrow:focus-visible { border-color: var(--gold); }
.hub-mrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hub-mrow.is-live { border-color: var(--hub-live); }
.hub-mrow-when { font-size: .8rem; color: var(--muted); }
.hub-mrow-team { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.hub-mrow-a { justify-content: flex-end; text-align: right; }
.hub-mrow-tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-mrow-team.is-win { font-weight: 800; color: var(--heading); }
.hub-mrow-team.is-loss { opacity: .62; }
.hub-mrow-score { text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hub-mrow-score i, .hub-tie-agg i, .hub-md-num i { font-style: normal; opacity: .5; margin: 0 4px; }
.hub-mrow-meta { font-size: .78rem; color: var(--muted); text-align: right; font-weight: 700; }
.hub-mrow-when { display: flex; flex-direction: column; gap: 2px; }
.hub-mrow-where { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-mrow-b .hub-logo { order: 0; }
.hub-mrow-b .hub-mrow-tn { order: 1; }
.hub-mrow-s { display: none; }
/* narrow lists (phones, or beside the details box): each team on its own line
   with its score, so full names fit. The container rule follows the list's own
   width; the media rule covers browsers without container queries. */
.hub-mlist { container-type: inline-size; }
@container (max-width: 640px) {
  .hub-mrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 10px; }
  .hub-mrow-when { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; }
  .hub-mrow-where::before { content: "· "; color: var(--muted); }
  .hub-mrow-score { display: none; }
  .hub-mrow-team { grid-column: 1 / -1; justify-content: flex-start; text-align: left; white-space: normal; }
  .hub-mrow-team .hub-logo { order: 0; }
  .hub-mrow-team .hub-mrow-tn { order: 1; flex: 1; white-space: normal; overflow-wrap: anywhere; }
  .hub-mrow-s { display: inline; order: 2; font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums; }
  .hub-mrow-meta { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 700px) {
  .hub-mrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 10px; }
  .hub-mrow-when { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; }
  .hub-mrow-where::before { content: "· "; color: var(--muted); }
  .hub-mrow-score { display: none; }
  .hub-mrow-team { grid-column: 1 / -1; justify-content: flex-start; text-align: left; white-space: normal; }
  .hub-mrow-team .hub-logo { order: 0; }
  .hub-mrow-team .hub-mrow-tn { order: 1; flex: 1; white-space: normal; overflow-wrap: anywhere; }
  .hub-mrow-s { display: inline; order: 2; font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums; }
  .hub-mrow-meta { grid-column: 1 / -1; text-align: left; }
}
.hub-mround { margin-bottom: 18px; }
.hub-mround h3 { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }

.hub-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.hub-filters label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.hub-filters select { font: inherit; font-weight: 600; padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); max-width: 220px; }

/* ---- two-legged ties ---- */
.hub-ties { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hub-tie { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; box-shadow: var(--shadow); }
.hub-tie-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.hub-tie-teams > span:last-child { justify-self: end; }
.hub-tie-teams .is-win .hub-team { font-weight: 800; color: var(--heading); }
.hub-tie-teams .is-loss { opacity: .62; }
.hub-tie-agg { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.hub-tie-legs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-tie-legs button { font: inherit; font-size: .85rem; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.hub-tie-legs button:hover { border-color: var(--gold); }
.hub-tie p { margin: 10px 0 0; }

/* ---- teams ---- */
.hub-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hub-team-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; box-shadow: var(--shadow); }
.hub-team-card-head { display: flex; align-items: center; gap: 12px; color: var(--heading); text-decoration: none; margin-bottom: 12px; }
.hub-team-card-head > span { display: flex; flex-direction: column; min-width: 0; }
.hub-team-card-head:hover strong { color: var(--gold-text); text-decoration: underline; }
.hub-roster { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hub-roster li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub-roster a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.hub-roster a:hover { color: var(--gold-text); text-decoration: underline; }
.hub-role { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* directory */
.hub-search { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 10px 14px; margin-bottom: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.hub-search .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.hub-search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); width: 100%; }
.hub-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hub-dir { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hub-dir a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--heading); text-decoration: none; }
.hub-dir a:hover { border-color: var(--gold); }
.hub-dir a > span { display: flex; flex-direction: column; min-width: 0; }
.hub-dir strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-dir .icon { width: 13px; height: 13px; vertical-align: -2px; color: var(--gold); }

.hub-notes p { margin: 0 0 4px; }

/* ---- match dialog ---- */
.hub-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.hub-dialog::backdrop { background: rgba(6, 12, 30, .6); }
.hub-dialog-inner { padding: 22px; }
.hub-dialog-head { position: relative; padding-right: 44px; }
.hub-dialog-head h2 { margin: 0; font-size: 1.2rem; }
.hub-dialog-close { position: absolute; top: -6px; right: -6px; }
.hub-md-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 22px 0 8px; text-align: center; }
.hub-md-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.hub-md-team.is-win { color: var(--heading); font-weight: 800; }
.hub-md-num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; font-variant-numeric: tabular-nums; color: var(--heading); }
.hub-md-meta { text-align: center; color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.hub-table--games td.is-win { color: var(--hub-win); font-weight: 800; }
.hub-table--games thead th { text-transform: none; letter-spacing: 0; vertical-align: bottom; }
.hub-gh { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 130px; white-space: normal; text-align: right; line-height: 1.2; font-size: .8rem; }
/* first-visit placeholder shapes (hub.html) */
.hub-skel i { display: block; border-radius: var(--radius-sm); background: var(--surface-2); animation: hub-skel 1.3s ease-in-out infinite; }
.hub-skel-nav { background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.hub-skel-nav .container { display: flex; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.hub-skel-nav i { width: 70px; height: 14px; background: rgba(255,255,255,.08); }
.hub-skel-head { background: linear-gradient(180deg, var(--navy-2), var(--navy)); padding: 28px 0 26px; }
.hub-skel-head i { background: rgba(255,255,255,.08); }
.hub-skel-title { width: min(420px, 70%); height: 34px; margin-bottom: 12px; }
.hub-skel-line { width: min(560px, 90%); height: 14px; }
.hub-skel-body { padding-top: 28px; padding-bottom: 64px; display: grid; gap: 10px; }
.hub-skel-card { height: 90px; margin-bottom: 14px; }
.hub-skel-row { height: 46px; }
@keyframes hub-skel { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .hub-skel i { animation: none; } }
/* "Next up" card (next MECS weekend from the schedule) */
.hub-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 16px 20px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-soft); }
.hub-next-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-next-text strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--heading); }
.hub-next-act { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-next-act .btn { display: inline-flex; align-items: center; gap: 8px; }
.hub-next-act .icon { width: 18px; height: 18px; }
@media (max-width: 600px) { .hub-next-act, .hub-next-act .btn { flex: 1 1 100%; justify-content: center; } }
/* Share button in page headers + the "Link copied" message */
.hub-head-main { position: relative; }
.hub-head-text { flex: 1 1 auto; min-width: 0; }
.hub-share { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--navy-line); border-radius: var(--radius-sm); background: rgba(255,255,255,.06); color: var(--on-navy); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.hub-share:hover, .hub-share:focus-visible { border-color: var(--gold); color: var(--gold); }
.hub-share .icon { width: 17px; height: 17px; }
@media (max-width: 600px) { .hub-share { padding: 8px 10px; } .hub-share span { display: none; } }
.hub-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: var(--radius-sm); background: var(--heading); color: var(--bg, #fff); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; overflow-wrap: anywhere; }
.hub-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* "Swipe for more rounds" above a wide bracket */
.hub-swipe { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--gold-text); }
.hub-swipe .icon { width: 15px; height: 15px; }
/* places in a tournament that's still being played */
.hub-place--sofar { color: var(--text); font-weight: 700; }
.hub-sofar { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--hub-live); vertical-align: 1px; }
.hub-still { color: var(--hub-win); font-weight: 700; }
/* "Follow a team" in a bracket */
.hub-follow { margin-left: auto; }
.hub-mc { transition: opacity .15s, border-color .15s; }
.hub-mc.is-dim { opacity: .5; }
.hub-mc.is-follow { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.hub-mc-team.is-followed .hub-mc-name { color: var(--gold-text); font-weight: 800; }
@media (max-width: 760px) { .hub-follow { margin-left: 0; flex-basis: 100%; margin-top: 8px; } }
/* tidy notes: "1st  Nothing $100" */
.hub-notes-list { margin: 0; display: grid; gap: 6px; }
.hub-notes-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.hub-notes-list > div.is-first { border-color: var(--gold-line); background: var(--gold-soft); }
.hub-notes-list dt { font-weight: 800; color: var(--heading); }
.hub-notes-list dd { margin: 0; overflow-wrap: anywhere; }

/* Teams / Players directory filters */
.hub-filters--dir { gap: 12px 18px; }
.hub-filters--dir .hub-search { margin: 0; flex: 1 1 240px; max-width: 340px; padding: 8px 12px; background: var(--surface); }
.hub-filters--dir select { max-width: 240px; }
@media (max-width: 640px) { .hub-filters--dir label:not(.hub-search) { flex: 1 1 100%; justify-content: space-between; } .hub-filters--dir select { max-width: none; flex: 1; } }

/* ---- rankings ---- */
.hub-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.hub-seg a:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.hub-seg a:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.hub-seg a:focus-visible { outline-offset: -2px; }
.hub-seg a { padding: 7px 12px; font-weight: 700; font-size: .86rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.hub-seg a + a { border-left: 1px solid var(--border); }
.hub-seg a:hover { color: var(--heading); }
.hub-seg a.is-active { background: var(--gold-soft); color: var(--gold-text); }
.hub-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-soft); font-size: .92rem; }
.hub-note .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold-text); }
.hub-note a { color: var(--heading); font-weight: 700; }
.hub-table--rank th[scope="row"] { min-width: 200px; }
.hub-table--rank .hub-rank-n { width: 1%; font-weight: 800; color: var(--heading); }
.hub-table--rank .hub-rank-pts { font-weight: 800; color: var(--heading); font-size: 1rem; }
.hub-table--rank td .icon { width: 14px; height: 14px; color: var(--gold); }
.hub-rank-top--1 .hub-rank-n { color: var(--gold-text); }
.hub-rank-top--2 .hub-rank-n { color: var(--hub-silver); }
.hub-rank-top--3 .hub-rank-n { color: var(--hub-bronze); }
.hub-rank-top td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.hub-rank-top--2 td:first-child { box-shadow: inset 3px 0 0 var(--hub-silver); }
.hub-rank-top--3 td:first-child { box-shadow: inset 3px 0 0 var(--hub-bronze); }
.hub-rank-sub { display: block; margin: 2px 0 0 38px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hub-mv { font-size: .74rem; font-weight: 800; white-space: nowrap; color: var(--muted); }
.hub-mv--up { color: var(--hub-win); }
.hub-mv--down { color: var(--hub-live); }
.hub-mv--new { color: var(--gold-text); text-transform: uppercase; letter-spacing: .04em; }
.hub-col-form { white-space: nowrap; }
.hub-table .hub-form, .hub-form { display: inline-block; min-width: 36px; margin: 2px 4px 2px 0; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 800; text-align: center; text-decoration: none; font-variant-numeric: tabular-nums; }
.hub-table .hub-form:hover { border-color: var(--gold); color: var(--heading); text-decoration: none; }
.hub-table .hub-form--1 { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }
.hub-table .hub-form--2 { color: var(--hub-silver); }
.hub-table .hub-form--3 { color: var(--hub-bronze); }
.hub-form--sub { border-style: dashed; }
.hub-rank-foot { margin: 10px 0 0; }
.hub-rules { margin-top: 36px; }
.hub-rules-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 24px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hub-pts { list-style: none; margin: 0; padding: 0; }
.hub-pts li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.hub-pts li:last-child { border-bottom: 0; }
.hub-pts b { color: var(--heading); font-variant-numeric: tabular-nums; }
.hub-rank-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hub-rank-mini { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hub-rank-mini ol { list-style: none; margin: 0 0 12px; padding: 0; }
.hub-rank-mini li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.hub-rank-mini li:last-child { border-bottom: 0; }
.hub-rank-mini .hub-rank-n { width: 20px; font-weight: 800; color: var(--muted); }
.hub-rank-mini li:first-child .hub-rank-n { color: var(--gold-text); }
.hub-rank-mini .hub-team { flex: 1; min-width: 0; color: var(--heading); text-decoration: none; }
.hub-rank-mini .hub-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-rank-mini .hub-rank-pts { font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }
.hub-cycle-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hub-cycle-head h2 { margin: 0; }
.hub-cycle-events { margin: 0 0 14px; font-size: .92rem; line-height: 1.7; }
.hub-cycle-events a { color: var(--heading); font-weight: 700; }
.hub-cycle-events .icon { width: 14px; height: 14px; color: var(--gold); }
.hub-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.hub-award { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hub-award-title { margin: 0 0 10px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-text); }
.hub-award-title .icon { width: 14px; height: 14px; }
.hub-award .hub-award-who { display: flex; margin-bottom: 6px; color: var(--heading); font-weight: 800; text-decoration: none; }
.hub-award a.hub-award-who:hover .hub-team-name { text-decoration: underline; }
.hub-award p.hub-small { margin: 4px 0 0; }
.hub-prov { display: inline-block; padding: 0 5px; border: 1px solid var(--border); border-radius: 4px; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); vertical-align: 2px; }
.hub-table--rate .hub-mv { font-size: .82rem; }
.hub-table .hub-mv { font-size: .74rem; }
.hub-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.hub-chart { margin: 0; padding: 12px 14px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-width: 560px; }
.hub-chart figcaption { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hub-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.hub-chart-grid { stroke: var(--border); stroke-width: 1; }
.hub-chart-base { stroke: var(--border-strong); stroke-dasharray: 4 4; }
.hub-chart-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.hub-chart-label { fill: var(--heading); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hub-chart-line { fill: none; stroke: var(--gold-display); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hub-chart-dot { fill: var(--gold-display); stroke: var(--surface); stroke-width: 2; }
.hub-chart-hit { fill: transparent; }
.hub-chart-pt:hover .hub-chart-dot { r: 6; }
/* one row of ranking controls: switch, players/teams, dropdowns */
.hub-rank-controls { gap: 12px 16px; }
.hub-rank-count { margin-left: auto; }
.hub-rank-controls .hub-rank-find { margin: 0; flex: 1 1 200px; max-width: 260px; padding: 7px 12px; }
.hub-pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.hub-pick select { font: inherit; font-weight: 700; padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); cursor: pointer; }
.hub-tied { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1; margin-top: 2px; }
.hub-pts-btn { font: inherit; font-weight: 800; color: inherit; background: none; border: 0; padding: 2px 0; cursor: pointer; border-bottom: 1px dashed var(--border-strong); font-variant-numeric: tabular-nums; }
.hub-pts-btn:hover, .hub-pts-btn:focus-visible { color: var(--gold-text); border-bottom-color: var(--gold); }
.hub-infobox .hub-pts-btn { font-weight: 700; }
/* points breakdown (dialog) and worked examples */
.hub-dialog-sub { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.hub-pb { list-style: none; margin: 16px 0 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.hub-pb > li { padding: 12px 0; border-top: 1px solid var(--border); }
.hub-pb-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.hub-pb-head a { color: var(--heading); }
.hub-pb-head b { color: var(--heading); font-variant-numeric: tabular-nums; }
.hub-pb-steps { list-style: none; margin: 6px 0 0; padding: 0; font-size: .88rem; color: var(--muted); }
.hub-pb-steps li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.hub-pb-steps li span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.hub-pb-total { display: flex; justify-content: space-between; margin: 0; padding: 12px 0 4px; border-top: 2px solid var(--border-strong); font-weight: 800; color: var(--heading); }
.hub-pb-total b { font-variant-numeric: tabular-nums; }
.hub-dialog .hub-small { margin: 10px 0 0; }
.hub-rules-grid--3 { grid-template-columns: minmax(200px, 260px) 1fr minmax(240px, 320px); }
.hub-rules h3 { font-size: .95rem; margin: 0 0 10px; }
.hub-steps { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.hub-steps li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.hub-steps li:last-child { border-bottom: 0; }
.hub-steps b { color: var(--heading); }
.hub-example { padding: 14px 16px; border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-soft); }
.hub-example-title { margin: 0 0 6px; font-weight: 800; color: var(--heading); }
.hub-example .hub-pb-steps { color: var(--text); }
.hub-example + .hub-small { margin: 10px 0 0; }
/* "at a glance" strip under a player's or team's name */
.hub-glance { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.hub-glance > div { min-width: 120px; padding: 10px 14px; border: 1px solid var(--navy-line); border-radius: var(--radius-sm); background: rgba(255,255,255,.05); }
.hub-glance dt { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--on-navy-muted); }
.hub-glance dd { margin: 2px 0 0; display: flex; flex-direction: column; }
.hub-glance b { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--on-navy); font-variant-numeric: tabular-nums; }
.hub-glance b a { color: inherit; text-decoration: none; }
.hub-glance b a:hover { color: var(--gold); }
.hub-glance dd > span { font-size: .82rem; color: var(--on-navy-muted); }
.hub-glance .hub-pts-btn { color: var(--on-navy); font-weight: 700; border-bottom-color: var(--on-navy-muted); }
.hub-glance .hub-pts-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }
.hub-glance .hub-prov { color: var(--on-navy-muted); border-color: var(--navy-line); }
@media (max-width: 600px) {
  .hub-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hub-glance > div { min-width: 0; padding: 8px 12px; }
  /* breadcrumb: just "‹ parent" on phones */
  .hub-crumbs li { display: none; }
  .hub-crumbs li:nth-last-child(2) { display: block; }
  .hub-crumbs li:nth-last-child(2)::before { content: "‹"; margin-right: 6px; opacity: .8; }
}
/* podium of a finished tournament */
.hub-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hub-podium li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; min-width: 0; }
.hub-podium .hub-podium-1 { border-color: var(--gold-line); background: var(--gold-soft); }
.hub-podium-place { font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.hub-podium-1 .hub-podium-place { color: var(--gold-text); }
.hub-podium-2 .hub-podium-place { color: var(--hub-silver); }
.hub-podium-3 .hub-podium-place { color: var(--hub-bronze); }
.hub-podium-place .icon { width: 15px; height: 15px; }
.hub-podium .hub-podium-name { color: var(--heading); font-weight: 800; text-decoration: none; max-width: 100%; }
.hub-podium .hub-podium-name .hub-logo { display: none; }
.hub-podium .hub-podium-name:hover .hub-team-name { text-decoration: underline; }
@media (max-width: 520px) {
  .hub-podium { grid-template-columns: 1fr 1fr; }
  .hub-podium .hub-podium-1 { grid-column: 1 / -1; }
}
.hub-showall-wrap { margin: 14px 0 0; text-align: center; }
/* section heading with a link on the right */
.hub-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hub-sec-head .hub-more { font-size: .9rem; }
/* latest results cards on the Hub overview */
.hub-result { gap: 10px; }
.hub-result-top { display: flex; align-items: center; gap: 10px; }
.hub-result-top > span { display: flex; flex-direction: column; min-width: 0; }
.hub-result-top strong { color: var(--heading); }
.hub-result-win { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--heading); margin-top: auto; }
.hub-result-win .icon { width: 16px; height: 16px; color: var(--gold); flex: none; }
@media (max-width: 1000px) { .hub-rules-grid--3 { grid-template-columns: minmax(200px, 260px) 1fr; } .hub-rules-grid--3 > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .hub-rank-count { margin-left: 0; flex-basis: 100%; }
  .hub-rank-controls .hub-rank-find { max-width: none; flex-basis: 100%; }
  .hub-rank-find input { font-size: 1rem; }
  .hub-pick { flex: 1 1 100%; }
  .hub-pick > span { min-width: 96px; }
  .hub-pick select { flex: 1; min-width: 0; }
  .hub-rules-grid, .hub-rules-grid--3 { grid-template-columns: 1fr; }
  .hub-chart-tick { font-size: 13px; }
  .hub-chart-label { font-size: 14px; }
  .hub-table--rank .hub-col-opt, .hub-table--rank .hub-col-form { display: none; }
  .hub-table--rank th[scope="row"] { min-width: 0; }
  .hub-table--rank th, .hub-table--rank td { padding: 10px 8px; }
  .hub-rank-sub { margin-left: 0; }
  .hub-table--rank .hub-team-name, .hub-table--rank .hub-rank-sub { white-space: normal; overflow-wrap: anywhere; }
  .hub-table--rank thead th { letter-spacing: .02em; }
  .hub-rank-controls { gap: 10px; }
}
/* page titles get focus after moving to a new page (for screen readers); no box around them */
h1[tabindex="-1"]:focus { outline: none; }

/* ---- Active / inactive ---- */
.hub-tag-off { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); vertical-align: middle; white-space: nowrap; }
.hub-table--rank tr.is-inactive .hub-team-name, .hub-table--rank tr.is-inactive .hub-rank-pts { color: var(--muted); }
.hub-chip--off { border-style: dashed; }
.hub-off-btn { font: inherit; font-size: .86rem; font-weight: 700; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); cursor: pointer; }
.hub-off-btn:hover { color: var(--heading); }
.hub-off-btn[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold-text); border-color: var(--gold-line); }
.hub-table--former .hub-team { display: inline-flex; align-items: center; gap: 8px; }
.hub-tag-now { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
@media (max-width: 640px) { .hub-table--hist .hub-col-opt, .hub-table--former .hub-col-opt { display: none; } }
