/* BCFL 2026 hub week navigation + weekly division reports (v1.4.0).
 * Uses the shared tokens from base.css (--panel, --panel2, --line, --gold, --dim,
 * --txt, --win, --loss, --display, --figure, --body, --r-*). No glows, no neon. */

/* ---------- 2026 hub week navigation ---------- */
.wk-nav { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.wk-cluster { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s-3); }
.wk-now { display: flex; flex-direction: column; align-items: center; min-width: 150px; padding: 0 var(--s-3); }
.wk-now b { font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; color: var(--txt); font-weight: 800; }
.wk-kicker { font-family: var(--body); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 700; }
.wk-btn { appearance: none; background: var(--panel2); color: var(--txt); border: 1px solid var(--line); border-bottom: 2px solid rgba(251,192,45,.35); border-radius: 10px; padding: 8px 14px; font: 700 .82rem var(--body); cursor: pointer; min-height: 40px; }
.wk-btn:hover:not([disabled]) { border-color: rgba(251,192,45,.5); color: var(--gold); }
.wk-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wk-btn[disabled] { opacity: .45; cursor: default; }
.wk-ghost { background: transparent; color: var(--gold); border-color: rgba(251,192,45,.35); }
.wk-note { margin: var(--s-2) 0 0; text-align: center; font-size: var(--t-small); color: var(--dim); }

/* ---------- weekly report buttons (hub) ---------- */
.wr-wrap { margin: 0 0 var(--s-5); }
.wr-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.wr-bar-title { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--txt); letter-spacing: .03em; margin-top: 2px; }
.wr-bar-note { font-size: var(--t-small); color: var(--dim); }
.wr-empty { color: var(--dim); margin: 0; }
.wr-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.wr-card { appearance: none; text-align: left; display: flex; flex-direction: column; gap: var(--s-2); color: var(--txt); cursor: pointer; padding: var(--s-4); min-height: 220px; font: inherit;
  background: linear-gradient(165deg, color-mix(in srgb, var(--wr-acc) 13%, transparent) 0%, var(--panel) 58%);
  border: 1px solid var(--line); border-top: 2px solid var(--wr-acc); border-radius: var(--r-md); transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.wr-card:hover { border-color: color-mix(in srgb, var(--wr-acc) 55%, var(--line)); transform: translateY(-1px); }
.wr-card:focus-visible { outline: 2px solid var(--wr-acc); outline-offset: 3px; }
.wr-card .wr-k { color: var(--dim); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.wr-card-title { font-family: var(--display); font-size: 1.3rem; letter-spacing: .02em; color: var(--wr-acc); line-height: 1.1; }
.wr-cta { margin-top: auto; font-size: var(--t-small); font-weight: 700; color: var(--txt); }
.wr-cta i { font-style: normal; color: var(--wr-acc); margin-left: 4px; }
.wr-k { font-family: var(--body); }

.wr-top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wr-top-list li { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.wr-top-list li:last-child { border-bottom: 0; }
.wr-pos { font-family: var(--figure); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.wr-top-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-top-list b.fig { font-variant-numeric: tabular-nums; font-family: var(--figure); }

.wr-crest { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: var(--panel2); flex: 0 0 auto; }

/* ---------- full report overlay ---------- */
body.wr-lock { overflow: hidden; }
.wr-overlay { position: fixed; inset: 0; z-index: 900; display: none; align-items: flex-start; justify-content: center; padding: var(--s-5) var(--s-3); background: rgba(6,6,8,.82); overflow-y: auto; }
.wr-overlay.on { display: flex; }
.wr-sheet { width: min(1040px, 100%); background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--wr-acc, var(--gold)); border-radius: var(--r-lg); padding: var(--s-5); color: var(--txt); }
.wr-overlay .wr-head { --wr-acc: var(--gold); }
.wr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.wr-eyebrow { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); font-weight: 700; }
.wr-head h2 { margin: 4px 0 4px; font-family: var(--display); font-size: 2rem; color: var(--wr-acc); letter-spacing: .02em; }
.wr-meta { margin: 0; color: var(--dim); font-size: var(--t-small); }
.wr-close { appearance: none; background: transparent; color: var(--txt); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: 700 .82rem var(--body); cursor: pointer; flex: 0 0 auto; min-height: 40px; }
.wr-close:hover { border-color: rgba(251,192,45,.5); color: var(--gold); }
.wr-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wr-overlay section { margin-top: var(--s-5); }
.wr-h3 { margin: 0 0 var(--s-3); font-family: var(--display); font-size: 1.15rem; letter-spacing: .03em; color: var(--txt); }
.wr-note { margin: -4px 0 var(--s-3); color: var(--dim); font-size: var(--t-small); }

.wr-top-strip { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-3) var(--s-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.wr-top-strip .wr-k { color: var(--dim); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.wr-top-strip .wr-top-list { flex-direction: row; gap: var(--s-3); flex: 1 1 520px; flex-wrap: wrap; }
.wr-top-strip .wr-top-list li { border-bottom: 0; padding: 0; grid-template-columns: 18px 26px auto auto; }

.wr-hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.wr-hl-card { display: flex; flex-direction: column; gap: 6px; padding: var(--s-3) var(--s-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 138px; }
.wr-hl-card .wr-k { color: var(--dim); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.wr-hl-team { display: flex; align-items: center; gap: 8px; }
.wr-hl-team b { font-weight: 700; font-size: .98rem; }
.wr-hl-val { display: flex; align-items: baseline; gap: 6px; }
.wr-hl-val .fig { font-family: var(--figure); font-weight: 700; font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.wr-hl-val em { font-style: normal; color: var(--dim); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .1em; }
.wr-hl-card small { color: var(--dim); font-size: var(--t-small); margin-top: auto; }
.wr-none { color: var(--dim); font-weight: 600; }

.wr-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.wr-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--t-small); }
.wr-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wr-table th { text-align: left; font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.wr-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.wr-table tr:last-child td { border-bottom: 0; }
.wr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.wr-table .fig { font-family: var(--figure); }
.wr-table .dim { color: var(--dim); }
.wr-table .pos { color: var(--win); }
.wr-table .neg { color: var(--loss); }
.wr-table .wr-rank { width: 40px; font-family: var(--figure); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.wr-table .wr-conf-cell { color: var(--txt); }
.wr-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wr-team span { display: flex; flex-direction: column; min-width: 0; }
.wr-team small { color: var(--dim); font-size: .72rem; }

.wr-conf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.wr-conf-block h4 { margin: 0 0 var(--s-2); font-family: var(--display); font-size: 1rem; letter-spacing: .03em; color: var(--txt); }
.wr-foot { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--dim); font-size: var(--t-small); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .wr-card-grid { grid-template-columns: 1fr; }
  .wr-card { min-height: 0; }
  .wr-conf-grid { grid-template-columns: 1fr; }
  .wr-hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wk-nav { padding: var(--s-3); }
  .wk-cluster { gap: var(--s-2); }
  .wk-btn { flex: 1 1 42%; }
  .wk-now { order: -1; flex: 1 1 100%; }
  .wr-overlay { padding: var(--s-2); }
  .wr-sheet { padding: var(--s-4); }
  .wr-head h2 { font-size: 1.5rem; }
  .wr-hl-grid { grid-template-columns: 1fr; }
  .wr-top-strip .wr-top-list { flex-direction: column; }
}

/* ---------- team of the week lineup ---------- */
.wr-lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--s-4); }
.wr-slot { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(0, 150px) 56px; align-items: center; gap: var(--s-2); padding: 9px 0; border-bottom: 1px solid var(--line); }
.wr-slot-k { font-family: var(--figure); font-weight: 700; font-size: var(--t-micro); letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.wr-slot-who { display: flex; flex-direction: column; min-width: 0; }
.wr-slot-who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-slot-who small, .wr-slot-by small { color: var(--dim); font-size: .72rem; }
.wr-slot-by { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wr-slot-by small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-slot > .fig { text-align: right; font-family: var(--figure); font-weight: 700; font-variant-numeric: tabular-nums; }
.wr-slot--empty { opacity: .6; }
.wr-lineup-total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-3) var(--s-4); margin-top: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel2); }
.wr-lineup-total span { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 700; }
.wr-lineup-total b { font-family: var(--figure); font-size: 1.35rem; color: var(--gold); font-variant-numeric: tabular-nums; }
@media (max-width: 920px) { .wr-lineup { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wr-slot { grid-template-columns: 56px minmax(0, 1fr) 46px; } .wr-slot-by { grid-column: 2; } .wr-slot > .fig { grid-column: 3; grid-row: 1; } }
