/* Team of the Week records panel (league-wide Records page). Dark, restrained, gold accents. */
.totw-panel { margin: 18px 0 22px; padding: 18px; border-radius: 14px; border: 1px solid rgba(212,175,55,.25);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); color: #eef1f6; }
.totw-head { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.totw-eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #FBC02D; margin-bottom: 4px; }
.totw-head h3 { margin: 0; font-size: 22px; letter-spacing: .01em; }
.totw-note { margin: 0; max-width: 520px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.62); }
.totw-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.totw-card { border-radius: 12px; padding: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); border-top: 2px solid var(--totw-accent, #FBC02D); }
.totw-card-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.totw-card-sub { font-size: 11px; color: rgba(255,255,255,.5); margin: 2px 0 10px; }
.totw-lead-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.totw-lead-n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--totw-accent, #FBC02D); }
.totw-lead-note { font-size: 11px; color: rgba(255,255,255,.5); margin: -2px 0 4px 34px; }
.totw-empty { font-size: 12px; color: rgba(255,255,255,.5); }
.totw-crest { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.25); background: #000; }
.totw-crest-none { display: inline-block; background: rgba(255,255,255,.08); }
.totw-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); }
.totw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.totw-table th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); padding: 9px 10px; background: rgba(0,0,0,.25); white-space: nowrap; }
.totw-table td { padding: 8px 10px; border-top: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.totw-table tr:hover td { background: rgba(255,255,255,.03); }
.totw-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totw-rk { color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; width: 28px; }
.totw-team { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.totw-dim { color: rgba(255,255,255,.5); font-size: 11.5px; }
.totw-yrs { display: flex; flex-wrap: wrap; gap: 4px; }
.totw-yr { font-size: 10.5px; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(212,175,55,.35); color: #f2e3b0; font-variant-numeric: tabular-nums; }
.totw-yr.zero { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.35); }
@media (max-width: 760px) { .totw-cards { grid-template-columns: 1fr; } .totw-table { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .totw-card { transition: none; } }

/* team page: Team of the Week tab (franchise colours) */
.totw-fr { margin: 14px 0 22px; color: #eef1f6; }
.totw-fr-band { padding: 22px 20px 18px; border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, var(--totw-primary, #1b2433) 0%, rgba(8,11,18,.92) 70%); border: 1px solid rgba(255,255,255,.08); border-bottom: 3px solid var(--totw-accent, #FBC02D); }
.totw-fr-band h3 { margin: 4px 0 14px; font-size: 26px; }
.totw-fr-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.totw-fr-stats div { display: flex; flex-direction: column; }
.totw-fr-stats b { font-size: 26px; font-variant-numeric: tabular-nums; color: var(--totw-accent, #FBC02D); }
.totw-fr-stats span { font-size: 11.5px; color: rgba(255,255,255,.65); }
.totw-fr-yrs { padding: 12px 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); border-top: 0; border-radius: 0 0 12px 12px; margin-bottom: 14px; }
.totw-fr-yrs .totw-yr b { margin-left: 3px; color: #fff; }
.totw-wks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.totw-wk { border-radius: 12px; padding: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--totw-accent, #FBC02D); }
.totw-wk-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.totw-wk-h span { color: rgba(255,255,255,.55); font-size: 12px; }
.totw-wk-div { margin-left: auto; }
.totw-wk-n { font-variant-numeric: tabular-nums; }
.totw-wk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.totw-wk-list li { display: grid; grid-template-columns: 54px 1fr auto; gap: 8px; align-items: baseline; font-size: 13px; }
.totw-slot { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: rgba(255,255,255,.55); }
.totw-pn em { font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.5); margin-left: 3px; }
.totw-pp { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.8); }
@media (prefers-reduced-motion: reduce) { .totw-fr * { transition: none !important; animation: none !important; } }

/* ===== v1.6.0 — TOTW stats on the records page, division scopes and team pages =====
   Same surfaces as the rest of the site: charcoal panels, hairline borders,
   gold accents, tabular figures. */

.totw2-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.totw2-stat {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.totw2-stat-k {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.totw2-stat-v {
  font-family: var(--figure, 'Chakra Petch', monospace);
  font-size: 20px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #FBC02D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.totw2-stat-v em {
  font-style: normal;
  font-family: var(--body, 'Barlow', sans-serif);
  font-size: 11.5px;
  color: rgba(255,255,255,.6);
  margin-left: 4px;
}
.totw2-stat-s { font-size: 10.5px; color: rgba(255,255,255,.42); }

.totw2-foot {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,.42);
}

/* team page — season bars + position mix */
.totw-fr-chips { padding: 10px 14px; }
.totw2-frgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 14px;
}
.totw2-sub {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  padding: 12px 14px;
}
.totw2-sub h4 {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 700;
}
.totw2-bars { display: grid; gap: 6px; }
.totw2-bar {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 26px;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
}
.totw2-bar-y { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.totw2-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.totw2-bar-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--totw-accent, #FBC02D), rgba(251,192,45,.45));
}
.totw2-bar b {
  text-align: right;
  font-family: var(--figure, 'Chakra Petch', monospace);
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.totw2-posrow { display: flex; flex-wrap: wrap; gap: 6px; }
.totw2-pos {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-family: var(--figure, 'Chakra Petch', monospace);
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.8);
}
.totw2-pos b { font-size: 9.5px; letter-spacing: .08em; color: rgba(255,255,255,.45); font-weight: 700; }
.totw2-hint { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; color: rgba(255,255,255,.38); }

/* franchise overview strip */
.totw2-overview {
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251,192,45,.05), rgba(255,255,255,.01));
  padding: 12px 14px;
  margin: 0 0 14px;
}
.totw2-overview-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.totw2-overview-h .totw-eyebrow { margin: 0; }
.totw2-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.6);
}
.totw2-link:hover { color: #FBC02D; }
.totw2-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 8px;
}
.totw2-overview-grid div { display: flex; flex-direction: column; }
.totw2-overview-grid b {
  font-family: var(--figure, 'Chakra Petch', monospace);
  font-size: 19px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--txt, #f2f2f4);
}
.totw2-overview-grid span { font-size: 10.5px; color: rgba(255,255,255,.45); }

@media (max-width: 900px) {
  .totw2-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .totw2-frgrid { grid-template-columns: 1fr; }
  .totw2-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .totw2-strip { gap: 8px; }
  .totw2-stat-v { font-size: 17px; }
  .totw2-stat-v em { display: block; margin: 2px 0 0; font-size: 10.5px; }
}
