/* =============================================================================
   TEAM TOPIC TABS — design_handoff_team_topic_tabs (Home additions + Roster +
   News). Extends topic-masthead.css; same convention: dark base, light spec
   values under html.si-light. Blocks:
     .tpw  — 3-up player spotlight (Home "Players to Watch" + Roster strip)
     .tpc  — community cards (image-top, no type pills)
     .tpr  — Roster tab (meta line, filter pills, table)
     .tpn  — News tab (lead zone, rows, earlier-this-week cards)
   ============================================================================= */

/* ---- player spotlight ---- */
.tpw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpw-player {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px;
  align-items: center; min-width: 0; padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none; color: inherit;
}
.tpw-player:first-child { border-left-color: transparent; padding-left: 0; }
.tpw-photo {
  position: relative; display: block; width: 96px; aspect-ratio: 4 / 5;
  border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.06);
}
.tpw-photo img,
.tpm .tpw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: transparent; }
.tpw-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tpw-pos {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.tpw-name { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; color: #fff; }
.tpw-player:hover .tpw-name { text-decoration: underline; text-underline-offset: 2px; }
.tpw-trend { font-size: 12px; font-weight: 700; color: #47c47d; }
.tpw-meta { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 980px) {
  .tpw { grid-template-columns: 1fr; row-gap: 18px; }
  .tpw-player { border-left: none; padding: 0; }
}

/* ---- community cards (header image on top) ---- */
.tpc-comm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tpc-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit; min-width: 0;
}
.tpc-card-img { position: relative; display: block; aspect-ratio: 16 / 8; background: rgba(255, 255, 255, 0.06); }
.tpc-card-img img,
.tpm .tpc-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.tpc-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.tpc-card-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.3; color: #fff; }
.tpc-card:hover .tpc-card-title { text-decoration: underline; text-underline-offset: 2px; }
.tpc-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.tpc-card-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); font-size: 9px; font-weight: 800; color: rgba(255, 255, 255, 0.8);
}
.tpc-card-foot b { font-size: 12.5px; font-weight: 700; color: #fff; }
.tpc-card-date { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
@media (max-width: 980px) { .tpc-comm { grid-template-columns: 1fr; } }

/* ---- roster/news shared: meta line, filter row, pills, sort ---- */
.tpr-meta {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); white-space: nowrap;
}
.tpr-filters { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.tpr-pills {
  display: inline-flex; align-items: center; padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
}
.tpr-pill {
  margin: 0 !important; padding: 4px 13px !important; width: auto !important;
  border: none !important; border-radius: 999px !important;
  background: transparent !important; color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11.5px !important; font-weight: 700; font-family: inherit;
  line-height: 1.3 !important; white-space: nowrap; cursor: pointer; box-shadow: none !important;
}
.tpr-pill:hover { color: #fff !important; }
.tpr-pill.is-on { background: #e9edf2 !important; color: #0b0d10 !important; }
.tpr-sort,
label.tpr-sort {
  margin: 0 0 0 auto !important; display: inline-flex !important; align-items: center; gap: 6px;
  width: auto !important; padding: 6px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 9px;
  font-size: 12px !important; font-weight: 600; line-height: 1.3 !important;
  color: rgba(255, 255, 255, 0.6); white-space: nowrap;
}
.tpr-sort select {
  appearance: none; -webkit-appearance: none;
  margin: 0 !important; padding: 0 !important; width: auto !important; height: auto !important;
  border: none !important; background: transparent !important; background-image: none !important;
  box-shadow: none !important; outline: none;
  font-size: 12px !important; font-weight: 700; font-family: inherit;
  color: inherit !important; cursor: pointer;
}
.tpr .tpw { margin: 0 0 30px; }

/* ---- roster table ---- */
.tpr-table { overflow-x: auto; }
.tpr-row {
  display: grid; grid-template-columns: 44px minmax(0, 2fr) 70px 110px 130px 120px 130px;
  column-gap: 12px; align-items: center; padding: 12px 0; min-width: 760px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none; color: inherit; font-variant-numeric: tabular-nums;
}
a.tpr-row:hover { background: rgba(255, 255, 255, 0.03); }
.tpr-row.is-hidden { display: none; }
.tpr-head {
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.tpr-num { text-align: right; }
.tpr-jersey { font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, 0.35); }
.tpr-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tpr-face {
  position: relative; width: 30px; height: 30px; border-radius: 50%; flex: none;
  overflow: hidden; background: rgba(255, 255, 255, 0.08);
}
.tpr-face img,
.tpm .tpr-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: transparent; border-radius: 0; }
.tpr-name { font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tpr-row:hover .tpr-name { text-decoration: underline; text-underline-offset: 2px; }
.tpr-pos { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.tpr-size { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.tpr-rank { font-size: 13.5px; font-weight: 800; color: #fff; }
.tpr-delta { font-size: 11px; font-weight: 700; }
.tpr-delta.is-up { color: #47c47d; }
.tpr-delta.is-down { color: #e5595b; }
.tpr-delta.is-flat { color: rgba(255, 255, 255, 0.45); }
.tpr-stat { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.tpr-more { display: flex; justify-content: center; margin-top: 20px; }
.tpr-more button {
  display: inline-flex; align-items: center; height: 34px; margin: 0 !important;
  padding: 0 18px !important; width: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important; border-radius: 999px !important;
  background: transparent !important; color: #fff !important;
  font-size: 12px !important; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: none !important;
}
.tpr-more button:hover { border-color: rgba(255, 255, 255, 0.6) !important; }

/* ---- news tab ---- */
.tpn-lead { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: stretch; margin: 0 0 36px; }
.tpn-hero { display: flex; flex-direction: column; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.tpn-hero-img {
  position: relative; display: block; flex: 1; min-height: 280px;
  border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.06); margin: 0 0 12px;
}
.tpn-hero-img img,
.tpm .tpn-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.tpn-hero-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.tpn-hero-title { display: block; margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; color: #fff; }
.tpn-hero:hover .tpn-hero-title { text-decoration: underline; text-underline-offset: 2px; }
.tpn-hero-dek { display: block; margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.tpn-hero-dek:empty, .tpn-hero-kicker:empty { display: none; }
.tpn-rows { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.tpn-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 0; min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none; color: inherit;
}
.tpn-pill {
  flex: none; display: inline-block; padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.tpn-row-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tpn-row-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.3; color: #fff;
}
.tpn-row:hover .tpn-row-title { text-decoration: underline; text-underline-offset: 2px; }
.tpn-row-src { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.tpn-row-time { flex: none; margin-left: auto; font-size: 10.5px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.tpn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tpn-card { display: block; min-width: 0; text-decoration: none; color: inherit; }
.tpn-card-img {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px;
  overflow: hidden; background: rgba(255, 255, 255, 0.06); margin: 0 0 10px;
}
.tpn-card-img img,
.tpm .tpn-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.tpn-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14.5px; line-height: 1.35; font-weight: 800; letter-spacing: -0.2px; color: #fff;
}
.tpn-card:hover .tpn-card-title { text-decoration: underline; text-underline-offset: 2px; }
.tpn-card-src { display: block; margin: 5px 0 0; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.tpn-state { padding: 40px 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 980px) {
  .tpn-lead { grid-template-columns: 1fr; }
  .tpn-cards { grid-template-columns: 1fr; }
}

/* =============================================================================
   LIGHT MODE — the spec values (mock ink #101418 alphas).
   ============================================================================= */
html.si-light body.si-themed .tpw-player { border-left-color: rgba(16, 20, 24, 0.14); }
html.si-light body.si-themed .tpw-player:first-child { border-left-color: transparent; }
html.si-light body.si-themed .tpw-photo { background: rgba(16, 20, 24, 0.06); }
html.si-light body.si-themed .tpw-pos { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .tpw-name { color: #101418; }
html.si-light body.si-themed .tpw-trend { color: #16a34a; }
html.si-light body.si-themed .tpw-meta { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .tpc-card { border-color: rgba(16, 20, 24, 0.38); }
html.si-light body.si-themed .tpc-card-img { background: rgba(16, 20, 24, 0.06); }
html.si-light body.si-themed .tpc-card-title { color: #101418; }
html.si-light body.si-themed .tpc-card-av { background: rgba(16, 20, 24, 0.08); color: rgba(16, 20, 24, 0.78); }
html.si-light body.si-themed .tpc-card-foot b { color: #101418; }
html.si-light body.si-themed .tpc-card-date { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .tpr-meta { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .tpr-pills { border-color: rgba(16, 20, 24, 0.3); }
html.si-light body.si-themed .tpr-pill { color: rgba(16, 20, 24, 0.72) !important; }
html.si-light body.si-themed .tpr-pill:hover { color: #101418 !important; }
html.si-light body.si-themed .tpr-pill.is-on { background: #101418 !important; color: #fff !important; }
html.si-light body.si-themed .tpr-sort { border-color: rgba(16, 20, 24, 0.3); color: rgba(16, 20, 24, 0.6); }
html.si-light body.si-themed .tpr-row { border-bottom-color: rgba(16, 20, 24, 0.16); }
html.si-light body.si-themed a.tpr-row:hover { background: rgba(16, 20, 24, 0.025); }
html.si-light body.si-themed .tpr-head { border-bottom-color: rgba(16, 20, 24, 0.35); color: rgba(16, 20, 24, 0.65); }
html.si-light body.si-themed .tpr-jersey { color: rgba(16, 20, 24, 0.35); }
html.si-light body.si-themed .tpr-face { background: rgba(16, 20, 24, 0.06); }
html.si-light body.si-themed .tpr-name { color: #101418; }
html.si-light body.si-themed .tpr-pos { color: rgba(16, 20, 24, 0.72); }
html.si-light body.si-themed .tpr-size { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .tpr-rank { color: #101418; }
html.si-light body.si-themed .tpr-delta.is-up { color: #16a34a; }
html.si-light body.si-themed .tpr-delta.is-down { color: #dc2626; }
html.si-light body.si-themed .tpr-delta.is-flat { color: rgba(16, 20, 24, 0.45); }
html.si-light body.si-themed .tpr-stat { color: rgba(16, 20, 24, 0.72); }
html.si-light body.si-themed .tpr-more button { border-color: rgba(16, 20, 24, 0.3) !important; color: #101418 !important; }
html.si-light body.si-themed .tpr-more button:hover { border-color: rgba(16, 20, 24, 0.6) !important; }
html.si-light body.si-themed .tpn-hero-img { background: rgba(16, 20, 24, 0.06); }
html.si-light body.si-themed .tpn-hero-kicker { color: rgba(16, 20, 24, 0.78); }
html.si-light body.si-themed .tpn-hero-title { color: #101418; }
html.si-light body.si-themed .tpn-hero-dek { color: rgba(16, 20, 24, 0.72); }
html.si-light body.si-themed .tpn-row { border-top-color: rgba(16, 20, 24, 0.2); }
html.si-light body.si-themed .tpn-pill { border-color: rgba(16, 20, 24, 0.3); color: rgba(16, 20, 24, 0.72); }
html.si-light body.si-themed .tpn-row-title { color: #101418; }
html.si-light body.si-themed .tpn-row-src,
html.si-light body.si-themed .tpn-row-time { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .tpn-card-img { background: rgba(16, 20, 24, 0.06); }
html.si-light body.si-themed .tpn-card-title { color: #101418; }
html.si-light body.si-themed .tpn-card-src { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .tpn-state { color: rgba(16, 20, 24, 0.55); }
