/* ARGPT AI Swing backtest. Builds on /site.css and /stats/style.css (masthead,
   pills, stat tiles, panel, chart strokes, readout, footer); this file is only
   the section layout, the year bars and the ideas table. Green and red carry
   meaning (gain / loss), everything else stays neutral. */

.bt-notice { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 26px; }
.bt-notice a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

#f-market { margin-bottom: 12px; }
.bt-mnote { margin: 0 0 22px; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; max-width: 72ch; }

.bt-panel { padding: 26px 26px 22px; margin-bottom: 22px; overflow: visible; }
.bt-h { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.bt-sub { margin: 0 0 18px; color: var(--text-faint); font-size: 13.5px; line-height: 1.6; max-width: 72ch; }

.bar-pos { fill: var(--win); }
.bar-neg { fill: var(--loss); }
.bar-hit { fill: transparent; cursor: default; }
.bar-hit:hover + .bar-hl, .bar-hl { pointer-events: none; }
.bar-label { font-family: var(--font); font-size: 10.5px; fill: rgba(237, 243, 238, 0.62); }

.bt-section { margin: 44px 0 0; }
.bt-p { color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 72ch; margin: 0 0 18px; }

.bt-table-wrap {
  overflow-x: auto; margin: 0 0 18px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
}
.bt-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.bt-table th {
  text-align: end; font-weight: 500; color: var(--text-faint); font-size: 12.5px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.bt-table td { text-align: end; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bt-table tr:last-child td { border-bottom: 0; }
.bt-table th:first-child, .bt-table td:first-child { text-align: start; white-space: normal; }
.bt-table td:first-child { font-weight: 600; color: var(--text); }
.bt-table tr.is-base td { background: var(--surface-2); }
.bt-table .v-base { color: var(--text-dim); }
.bt-table .v-worse, .bt-table .v-worse_used { color: var(--text-dim); }
.bt-table .v-fail { color: var(--loss); }
.bt-table td.num { font-variant-numeric: tabular-nums; }

.bt-list { margin: 0; padding: 0 0 0 20px; color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 76ch; }
.bt-list li { margin: 0 0 10px; }
.bt-list b { color: var(--text); font-weight: 600; }
html[dir=rtl] .bt-list { padding: 0 20px 0 0; }

.foot-links a + a { margin-inline-start: 6px; }

@media (max-width: 780px) {
  .bt-panel { padding: 20px 16px 18px; }
  .bt-h { font-size: 18px; }
}
