/*
 * Compact UI system
 *
 * This file deliberately loads after each page's older page-specific CSS.
 * It gives the site one readable, scan-first type scale without relying on
 * low-opacity text or ultra-small metadata.
 */
:root {
  --tsl-compact-ink: #071d36;
  --tsl-compact-muted: #40576d;
  --tsl-compact-line: #1a3045;
  --tsl-compact-panel: #fffdf7;
  --tsl-compact-soft: #edf3fa;
}

body.tsl-editorial {
  font-size: 14px;
  line-height: 1.42;
}

body.tsl-editorial .tsl-site-header {
  border-top-width: 30px;
}

body.tsl-editorial .tsl-site-header-inner {
  min-height: 76px;
  padding: 12px 0;
  gap: 26px;
}

body.tsl-editorial .tsl-brand {
  font-size: 27px;
}

body.tsl-editorial .tsl-nav {
  gap: 18px;
}

body.tsl-editorial .tsl-nav a,
body.tsl-editorial .tsl-more-trigger {
  font-size: 11px;
  letter-spacing: .1em;
}

body.tsl-editorial .wrap,
body.tsl-editorial main {
  width: min(1460px, calc(100% - 40px));
  padding-top: 20px;
  padding-bottom: 64px;
}

/* Consistent editorial hierarchy — compact display type, readable body type. */
@media (min-width: 901px) {
  body.tsl-slate-page h1 { font-size: clamp(42px, 4.8vw, 68px); }
  body.tsl-tool-page .title,
  body.tsl-ai-page .hero h1,
  body.tsl-hof-page .hero h1,
  body.tsl-pitcher-page .hero h1 { font-size: clamp(36px, 4vw, 54px); }
  body.tsl-home-page .hero h1 { font-size: clamp(46px, 5vw, 72px); }
}

body.tsl-editorial .title + p,
body.tsl-editorial .hero p,
body.tsl-editorial .subtitle,
body.tsl-editorial .lede {
  color: var(--tsl-compact-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* AI Says: intentionally compact, high-contrast scan cards.
 * These rules use explicit light values because this page's panels are dark.
 * The earlier shared editorial colors were designed for light panels and made
 * some of this page's metadata unnecessarily hard to read. */
body.tsl-ai-page .section { margin-bottom: 14px; }
body.tsl-ai-page .section {
  border-radius: 12px;
  border-color: #29435e;
  background: #091628;
  box-shadow: none;
}
body.tsl-ai-page .section-head {
  padding: 11px 13px;
  background: #0d213a;
  border-bottom-color: #29435e;
}
body.tsl-ai-page .section-head h3 { color: #f8fbff; font-size: 19px; }
body.tsl-ai-page .section-head p { color: #bfcedd; font-size: 11px; }
body.tsl-ai-page .players {
  grid-template-columns: repeat(auto-fill, minmax(244px, 1fr));
  gap: 8px;
  padding: 9px;
}
body.tsl-ai-page .player {
  min-height: 0;
  padding: 11px;
  border-radius: 10px;
  background: linear-gradient(145deg, #14243a, #0e192a);
  border-color: #36516d;
  box-shadow: none;
}
body.tsl-ai-page .player:hover {
  border-color: #78f1b0;
  background: linear-gradient(145deg, #172d46, #102036);
}
body.tsl-ai-page .player h4 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.15;
  margin: 0;
}
body.tsl-ai-page .player .sub {
  color: #c4d2df;
  font-size: 10px;
  line-height: 1.35;
  margin-top: 4px;
}
body.tsl-ai-page .player .take {
  color: #e5edf5;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 7px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.tsl-ai-page .player .balance { gap: 5px; margin-top: 8px; }
body.tsl-ai-page .player .balance span { font-size: 9px; padding: 4px 6px; }
body.tsl-ai-page .player .balance .support {
  background: #dff2e6;
  border-color: #58a77a;
  color: #075238;
}
body.tsl-ai-page .player .balance .caution {
  background: #fff0d5;
  border-color: #c78325;
  color: #713300;
}
body.tsl-ai-page .player .mini { gap: 5px; margin-top: 8px; }
body.tsl-ai-page .player .mini div {
  padding: 6px 7px;
  border-radius: 7px;
  background: #0a1524;
  border-color: #29435e;
}
body.tsl-ai-page .player .mini small {
  color: #b8c7d7;
  font-size: 9px;
  opacity: 1;
}
body.tsl-ai-page .player .mini b { color: #ffffff; font-size: 13px; }

/* The shared decision, power, and matchup player cards use the same compact rhythm. */
body.tsl-decision-page .grid,
body.tsl-power-page .grid,
body.tsl-matchup-page .grid {
  gap: 1px;
  padding: 1px;
}
body.tsl-decision-page .card,
body.tsl-power-page .card,
body.tsl-matchup-page .card {
  padding: 12px;
}
body.tsl-decision-page .name,
body.tsl-power-page .name,
body.tsl-matchup-page .name { font-size: 17px; line-height: 1.08; }
body.tsl-decision-page .meta,
body.tsl-power-page .meta,
body.tsl-matchup-page .meta {
  color: var(--tsl-compact-muted);
  font-size: 10px;
  opacity: 1;
}
body.tsl-decision-page .score,
body.tsl-power-page .score,
body.tsl-matchup-page .score { font-size: 23px; }
body.tsl-decision-page .metric,
body.tsl-power-page .metric,
body.tsl-matchup-page .metric { padding: 7px; }
body.tsl-decision-page .metric small,
body.tsl-power-page .metric small,
body.tsl-matchup-page .metric small {
  color: var(--tsl-compact-muted);
  font-size: 9px;
  opacity: 1;
}

/* Slate and board rows: compact enough to scan, never below readable data size. */
body.tsl-slate-page .game-card { margin-bottom: 12px; }
body.tsl-slate-page .game-head { padding: 10px 12px; }
body.tsl-slate-page .matchup-grid { gap: 8px; padding: 8px; }
body.tsl-slate-page .side-top { padding: 9px; }
body.tsl-slate-page .danger { padding: 9px; }
body.tsl-slate-page .bat { min-height: 60px; padding: 7px; }
body.tsl-slate-page .bat .name { font-size: 14px; }
body.tsl-slate-page .bat .meta,
body.tsl-slate-page .bat small { color: var(--tsl-compact-muted); opacity: 1; }

body.tsl-weather-page .weather-summary-card,
body.tsl-weather-page .weather-card { padding: 12px; }
body.tsl-weather-page .weather-card h3 { font-size: 17px; }
body.tsl-weather-page .weather-card p,
body.tsl-weather-page .weather-card small { color: var(--tsl-compact-muted); opacity: 1; }

/* Mobile keeps the same hierarchy without a crowded header or oversized cards. */
@media (max-width: 900px) {
  body.tsl-editorial .tsl-site-header { border-top-width: 26px; }
  body.tsl-editorial .tsl-site-header-inner { min-height: 66px; padding: 10px 0; }
  body.tsl-editorial .tsl-brand { font-size: 23px; }
  body.tsl-editorial .wrap,
  body.tsl-editorial main { width: min(100% - 28px, 1460px); padding-top: 16px; }
  body.tsl-ai-page .players { grid-template-columns: 1fr; }
}
