/* ─────────────────────────────────────────────
   FirstSnap.net — /trends cross-slate views
───────────────────────────────────────────── */

.tn-wrap { position: relative; z-index: 2; }

.tn-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px 60px;
  display: flex; flex-direction: column; gap: 28px;
}
@media (max-width: 700px) { .tn-page { padding: 22px 18px 50px; } }

/* ── Tab strip ── */
.tn-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  width: fit-content;
}
.tn-tab {
  padding: 8px 16px;
  border-radius: 0;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.tn-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.tn-tab.active {
  background: var(--chalk-bg);
  color: var(--chalk);
  border: 1px solid var(--chalk-border);
}

/* ── Section card ── */
.tn-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 22px 24px 22px;
}
.tn-block-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.tn-block-h {
  font-size: 17px; font-weight: 800; letter-spacing: -0.015em;
  margin: 0; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.tn-block-h::before {
  content: ''; width: 16px; height: 2px;
  background: var(--chalk); border-radius: 0;
}
.tn-block-meta {
  font-size: 11.5px; color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.tn-block-meta .v { color: var(--text-2); font-weight: 700; }

/* ── Biggest edges this week (horizontal bars) ── */
.tn-edges {
  display: flex; flex-direction: column; gap: 8px;
}
.tn-edge-row {
  display: grid;
  grid-template-columns: 24px 110px 130px 1fr 90px 80px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(3, 17, 10, 0.45);
  border: 1px solid var(--border-soft);
  border-radius: 0;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.tn-edge-row:hover {
  background: var(--surface2);
  border-color: var(--chalk-border);
}
.tn-edge-rank {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 900;
  color: var(--muted-2);
  letter-spacing: -0.03em;
  text-align: center;
}
.tn-edge-tier {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
}
.tn-edge-tier.gold { color: var(--chalk); }
.tn-edge-tier.gold::before { content: '★ '; }
.tn-edge-tier.wager { color: var(--text-2); }
.tn-edge-tier.lean { color: var(--muted); }
.tn-edge-game {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tn-edge-game .when {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted-2);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0;
}
.tn-edge-pick {
  font-size: 13px;
  color: var(--text-2);
}
.tn-edge-pick .v {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 700;
}
.tn-edge-pick .mkt {
  display: block;
  font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}
.tn-edge-bar-wrap {
  position: relative;
}
.tn-edge-bar {
  height: 8px;
  background: var(--bg-deep);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.tn-edge-bar-fill {
  height: 100%;
  background: var(--turf);
  border-radius: 0;
}
.tn-edge-val {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 800;
  color: var(--turf);
  text-align: right;
  letter-spacing: -0.015em;
}

@media (max-width: 900px) {
  .tn-edge-row { grid-template-columns: 24px 90px 1fr 80px; }
  .tn-edge-bar-wrap, .tn-edge-pick { display: none; }
}

/* ── NSPQ leaderboard ── */
.tn-nspq {
  display: flex; flex-direction: column; gap: 6px;
}
.tn-nspq-row {
  display: grid;
  grid-template-columns: 30px 130px 1fr 80px;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(3, 17, 10, 0.45);
  border: 1px solid var(--border-soft);
  border-radius: 0;
  font-size: 13px;
  transition: background .12s, border-color .12s;
}
.tn-nspq-row:hover {
  background: var(--surface2);
  border-color: var(--chalk-border);
  cursor: pointer;
}
.tn-nspq-row.top {
  border-color: var(--chalk-border);
  background: rgba(244, 214, 58, 0.05);
}
.tn-nspq-rank {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.tn-nspq-row.top .tn-nspq-rank { color: var(--chalk); }
.tn-nspq-game {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}
.tn-nspq-bar {
  position: relative;
  height: 14px;
  background: var(--bg-deep);
  border-radius: 0;
  border: 1px solid var(--border-soft);
  display: flex;
  overflow: hidden;
}
.tn-nspq-bar-model {
  background: var(--chalk);
}
.tn-nspq-bar-market {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 2px;
  background: var(--turf);
  z-index: 2;
}
.tn-nspq-bar-market::before {
  content: ''; position: absolute;
  top: -3px; left: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--turf);
}
.tn-nspq-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  letter-spacing: -0.01em;
}
.tn-nspq-val .market {
  display: block; margin-top: 2px;
  font-size: 11px; color: var(--turf);
  font-weight: 600;
}

.tn-nspq-legend {
  display: flex; align-items: center; gap: 18px;
  margin-top: 6px;
  font-size: 11px; color: var(--muted);
  font-family: var(--font-mono);
}
.tn-nspq-legend .sw-chalk {
  display: inline-block; width: 10px; height: 6px;
  background: var(--chalk); border-radius: 0;
  margin-right: 6px; vertical-align: 1px;
}
.tn-nspq-legend .sw-turf {
  display: inline-block; width: 2px; height: 10px;
  background: var(--turf); border-radius: 0;
  margin-right: 6px; vertical-align: -1px;
}

/* ── Team-efficiency table ── */
.tn-team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(3, 17, 10, 0.45);
  border: 1px solid var(--border-soft);
  border-radius: 0;
  overflow: hidden;
}
.tn-team-table th {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  padding: 9px 14px;
  text-align: right;
  background: rgba(3, 17, 10, 0.55);
  border-bottom: 1px solid var(--border-soft);
}
.tn-team-table th:first-child,
.tn-team-table th:nth-child(2) { text-align: left; }
.tn-team-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  color: var(--text-2);
  text-align: right;
}
.tn-team-table td:first-child {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.tn-team-table td:nth-child(2) {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
}
.tn-team-table tr:last-child td { border-bottom: none; }
.tn-team-table .top { color: var(--turf); font-weight: 700; }
.tn-team-table .bot { color: var(--neg); }
.tn-team-table .team-code {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface3); border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  padding: 2px 6px; border-radius: 0;
  color: var(--text);
  margin-right: 8px;
}

/* ── Disagreement scatter ── */
.tn-scatter-wrap {
  background: rgba(3, 17, 10, 0.45);
  border: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 18px 18px 12px;
}
.tn-scatter {
  width: 100%; height: 320px;
  display: block;
}
.tn-scatter-foot {
  display: flex; align-items: center; gap: 20px;
  margin-top: 8px;
  font-size: 11px; color: var(--muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.tn-scatter-foot .swd {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 6px; vertical-align: -1px;
}

/* Two-up cards layout */
.tn-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) { .tn-two { grid-template-columns: 1fr; } }


/* ─────────────────────────────────────────────
   Broadcast type layer. Display face on headings, mono on figures, condensed
   uppercase on micro-labels. Appended so the authored rules above stay intact.
───────────────────────────────────────────── */
.tn-block-h, .tn-card-h {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  line-height: 1.04;
}
.tn-edge-val, .tn-nspq-val, .tn-stat-v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.tn-block-meta, .tn-stat-l {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
