/* =========================================================================
   MLB 2026 Forecast — light editorial, orange accent, Bloomberg-ish feel.
   ========================================================================= */

:root {
  --bg: #f0f0f0;
  --card-bg: #ffffff;
  --text: #222;
  --text-muted: #666;
  --border: #e0e0e0;
  --accent: #ed713a;
  --accent-dark: #d35400;
  --accent-alt: #3a6aed;
  --good: #2ecc71;
  --bad: #e74c3c;
  --highlight: rgba(237, 113, 58, 0.08);
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.mono      { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted     { color: var(--text-muted); }
.small     { font-size: 12px; }
.big       { font-size: 20px; font-weight: 600; }
a          { color: var(--text); text-decoration: none; }
a:hover    { color: var(--accent-dark); }

/* ─── Header + Tabs ──────────────────────────────────────────────────── */

.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.logo-mark-img {
  display: block;
  height: 28px;
  width: auto;
}
.logo-year { color: var(--text-muted); font-size: 14px; }

.tabs {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.tab {
  padding: 6px 2px 10px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
}
.tab:hover { color: var(--text); }
.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ─── State strip ────────────────────────────────────────────────────── */

.state-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.state-strip-inner {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
}
.state-chip {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.state-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.state-value { color: var(--text); font-weight: 500; }
.state-chip--warn .state-value { color: var(--bad); }

/* ─── Main content wrappers ──────────────────────────────────────────── */

.main { padding: 36px 24px 60px; }

.page-intro h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.page-intro .lead {
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 15px;
}

/* ─── League predictions tables ──────────────────────────────────────── */

.league-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--highlight);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.panel-subtle { color: var(--text-muted); font-size: 13px; }
.panel-empty  { color: var(--text-muted); padding: 24px 0; }

.division-group { margin-top: 20px; }
.division-head {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 6px;
}

.prob-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14px;
}
.prob-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding: 8px 10px 8px 0;
}
.prob-table tbody td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.prob-table tbody tr:hover { background: var(--highlight); }
.col-team     { width: 220px; }
.col-record   { width: 80px;  }
.col-proj     { width: 70px;  }
.col-ci       { width: 90px; color: var(--text-muted); }
.col-bar      { width: 220px; }

.team-abbrev {
  display: inline-block;
  width: 46px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-dark);
}
.team-name   { color: var(--text); }

/* probability bars */
.prob-bar {
  position: relative;
  height: 20px;
  background: #f3f3f3;
  border-radius: 2px;
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}
.prob-bar-fill--alt { background: var(--accent-alt); }
.prob-bar-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}

/* ─── Team Strength grid ─────────────────────────────────────────────── */

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 16px 18px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.profile-rank {
  font-size: 18px;
  color: var(--accent-dark);
  font-weight: 600;
  min-width: 36px;
}
.profile-name h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.rating-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  width: 60px;
  font-weight: 600;
}
.rating-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rating-track {
  position: relative;
  flex: 1;
  height: 8px;
  background: #f3f3f3;
  border-radius: 2px;
}
.rating-track::before {
  /* Center reference line */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: #d8d8d8;
}
.rating-ci {
  position: absolute;
  top: 0; bottom: 0;
  background: rgba(237, 113, 58, 0.25);
  border-radius: 2px;
}
.rating-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.rating-dot--alt { background: var(--accent-alt); }
.rating-ci {
  background: rgba(237, 113, 58, 0.20);
}
.rating-num { width: 48px; text-align: right; font-size: 13px; }
.rating-row--overall {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.methodology-note {
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.methodology-note h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.methodology-note p { margin: 0 0 10px; max-width: 760px; }

/* ─── Radar comparison ───────────────────────────────────────────────── */

.radar-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 24px 28px 20px;
  margin-bottom: 28px;
}
.radar-controls {
  display: flex;
  gap: 24px;
  margin: 18px 0 12px;
  flex-wrap: wrap;
}
.radar-pick { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.radar-pick-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.radar-select {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.radar-select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.radar-canvas-wrap {
  height: 440px;
  max-width: 640px;
  margin: 8px auto 0;
}

/* ─── Methodology ────────────────────────────────────────────────────── */

.method-article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 36px 48px;
  max-width: 860px;
  margin: 0 auto;
}
.method-article h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 32px 0 10px;
  font-weight: 600;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.method-article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.method-article p { margin: 0 0 14px; max-width: 760px; }
.method-article ul,
.method-article ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.method-article li { margin-bottom: 8px; }
.method-article a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.method-article strong { font-weight: 600; }

.formula-box {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 6px 0 18px;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
}

/* ─── Today's Games cards ────────────────────────────────────────────── */

.td-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 22px 28px 20px;
  margin-bottom: 20px;
}
.td-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.td-matchup {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}
.td-team-away { color: var(--accent-blue, #3a6aed); }
.td-team-home { color: var(--accent-dark); }
.td-at { color: var(--text-muted); font-size: 14px; font-weight: 400; }
.td-card-meta { font-size: 12px; color: var(--text-muted); }

.td-prob-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.td-prob {
  flex: 1;
}
.td-prob-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}
.td-pred-score { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.td-pitcher-row,
.td-lineup-row,
.td-bullpen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.td-bullpen-row { border-bottom: none; }

.td-block-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 8px;
}

.td-pitcher {
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 2px;
}
.td-pitcher-name { font-weight: 600; font-size: 14px; margin-right: 6px; }
.td-pitcher-hand {
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--highlight);
  padding: 1px 6px;
  border-radius: 2px;
}
.td-pitcher-line { font-size: 13px; margin-top: 6px; color: var(--text); }
.td-pitcher-recent { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.td-pitcher-tbd .td-pitcher-name { color: var(--text-muted); font-weight: 400; }

.td-lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.td-lineup-list li {
  display: grid;
  /* slot · name · hand · slash · season HR/RBI · L30 HR */
  grid-template-columns: 22px 1fr 18px 110px 100px 70px;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dotted var(--border);
  font-variant-numeric: tabular-nums;
}
.td-lineup-list li:last-child { border-bottom: none; }
.td-lineup-slot     { color: var(--text-muted); text-align: right; }
.td-lineup-name     { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-lineup-hand     { font-size: 11px; color: var(--text-muted); }
.td-lineup-slash    { font-size: 11px; color: var(--text); }
.td-lineup-counting { font-size: 11px; color: var(--text-muted); }
.td-lineup-l30      { font-size: 11px; color: var(--text-muted); text-align: right; }

.td-bullpen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.td-bullpen-item {
  display: grid;
  grid-template-columns: 1fr 30px 90px 70px;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dotted var(--border);
}
.td-bullpen-item:last-child { border-bottom: none; }
.td-bullpen-name { font-weight: 500; }
.td-bullpen-hand { font-size: 11px; color: var(--text-muted); }
.td-bullpen-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.td-bullpen-rest { font-size: 11px; color: var(--text-muted); text-align: right; }
.td-availability-fresh .td-bullpen-status     { color: var(--good); }
.td-availability-taxed .td-bullpen-status     { color: var(--accent-dark); }
.td-availability-unavailable .td-bullpen-status { color: var(--bad); }

.td-empty { font-size: 12px; color: var(--text-muted); margin: 0; padding: 4px 0; }

.td-legend {
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.td-legend h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 12px;
}
.td-legend p { margin: 0 0 12px; max-width: 760px; }
.td-legend p:last-child { margin-bottom: 0; }
.td-legend strong { font-weight: 600; }
.td-legend-note {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px !important;
}
.td-legend-note a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.td-legend .td-availability-fresh strong       { color: var(--good); }
.td-legend .td-availability-taxed strong       { color: var(--accent-dark); }
.td-legend .td-availability-unavailable strong { color: var(--bad); }

/* ─── Series Focus article ───────────────────────────────────────────── */

.series-focus-article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 48px 56px 56px;
  max-width: 780px;
  margin: 0 auto;
}
.series-focus-article + .series-focus-article {
  margin-top: 32px;
}
.sf-header { margin-bottom: 28px; }
.sf-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--highlight);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.sf-header h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.sf-dek {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  max-width: 660px;
}

.sf-body { font-size: 16px; line-height: 1.65; }
.sf-body p { margin: 0 0 18px; }

.sf-lede {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-dark);
  margin: 12px 0 24px;
}

.sf-section {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 36px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.sf-stat-box {
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
}
.sf-stat-box h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 10px;
}
.sf-stat-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-stat-box li {
  padding: 4px 0;
  border-bottom: 1px dotted var(--border);
}
.sf-stat-box li:last-child { border-bottom: none; }
.sf-stat-box strong { font-weight: 600; }

.sf-figure {
  margin: 28px 0;
  padding: 0;
}
.sf-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #fff;
}
.sf-figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  text-align: center;
}

.sf-method-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Back link at the top of archived Series Focus articles */
.sf-back-link {
  max-width: 780px;
  margin: 0 auto 14px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sf-back-link a { color: var(--accent-dark); text-decoration: none; }
.sf-back-link a:hover { text-decoration: underline; }

/* "Previously" archive list at the bottom of the main Series Focus feed */
.sf-archive {
  max-width: 780px;
  margin: 32px auto 0;
  padding: 28px 32px;
  background: #fafafa;
  border: 1px solid var(--border);
}
.sf-archive h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 16px;
}
.sf-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-archive-list > li {
  padding: 12px 0;
  border-bottom: 1px dotted var(--border);
}
.sf-archive-list > li:last-child { border-bottom: none; }
.sf-archive-date {
  display: inline-block;
  width: 100px;
  font-size: 12px;
  color: var(--text-muted);
}
.sf-archive-list a {
  font-weight: 600;
  color: var(--text);
}
.sf-archive-list a:hover { color: var(--accent-dark); }
.sf-archive-blurb {
  display: block;
  margin-top: 4px;
  margin-left: 100px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 600px;
}

/* ─── Empty-state (Series Focus) ─────────────────────────────────────── */

.empty-state {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  padding: 40px 32px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state p { margin: 0 0 12px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ─── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── About page ─────────────────────────────────────────────────────── */

.about-article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 48px 56px 56px;
  max-width: 780px;
  margin: 0 auto;
}
.about-hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.about-hero h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.about-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 0;
  letter-spacing: 0.02em;
}
.about-body { font-size: 16px; line-height: 1.65; }
.about-body p { margin: 0 0 14px; max-width: 720px; }
.about-lede {
  font-size: 17px;
  margin-bottom: 22px !important;
}
.about-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 32px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.about-body strong { font-weight: 600; }
.about-cta {
  margin-top: 20px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 20px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}
.about-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.about-button--ghost {
  background: transparent;
  color: var(--accent);
}
.about-button--ghost:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── Backtest page ──────────────────────────────────────────────────── */
.backtest-headline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0 28px;
}
.metric-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.metric-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.metric-foot {
  font-size: 12px;
  color: var(--text-muted);
}
.backtest-panel {
  margin: 28px 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.backtest-chart-wrap,
.backtest-bars-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 14px 0 18px;
}
.backtest-chart-wrap { aspect-ratio: 4/3; }
.backtest-bars-wrap  { aspect-ratio: 16/7; }
.backtest-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13px;
}
.backtest-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 8px 0;
}
.backtest-table thead th.num,
.backtest-table tbody td.num {
  text-align: right;
  padding-right: 14px;
}
.backtest-table tbody td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
}
.backtest-table tbody tr.is-model {
  background: var(--highlight);
  font-weight: 600;
}
.backtest-table--recovery tbody tr:hover { background: var(--highlight); }
.team-row-abbrev {
  display: inline-block;
  width: 46px;
  font-weight: 600;
  color: var(--accent-dark);
}
.team-row-name { font-size: 12px; }
