/* /option-expiration-history/traits: bar lists and grids on top of backtest-strangle.css (ls-*). */
.st-page {
  --st-bar: var(--tw-primary, #1b84ff); --st-track: var(--tw-gray-100, #f5f7fa);
  --st-line: var(--tw-gray-200, #e5e7eb); --st-ink: var(--tw-gray-900, #071437); --st-muted: var(--tw-gray-600, #64748b);
}
.st-page .tabs { gap: 1.25rem; }
.st-page .ls-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.st-page .ls-kpi { padding: 12px 14px; gap: 6px; }
.st-page .ls-kpi > span { font-size: 11.5px; line-height: 1.3; }
.st-page .ls-kpi > strong { font-size: clamp(16px, 1.4vw, 21px); }
.st-page .ls-kpi > small { font-size: 11px; line-height: 1.4; }
.st-page h3 { font-size: 13px; font-weight: 600; color: var(--st-ink); margin: 0 0 8px; }

.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-grid > .card { margin: 0; }
.st-grid-tight { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 24px; margin-top: 6px; }
.st-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.st-bars { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.st-bar-row { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) 76px; align-items: center; gap: 10px; font-size: 12px; }
.st-bar-label { color: var(--tw-gray-700); line-height: 1.3; overflow-wrap: anywhere; }
.st-bar-track { height: 10px; border-radius: 5px; background: var(--st-track); overflow: hidden; }
.st-bar-track i { display: block; height: 100%; min-width: 2px; border-radius: 5px; background: var(--st-bar); }
.st-bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--st-ink); font-weight: 600; white-space: nowrap; }
.st-bar-value small { display: inline !important; margin-left: 6px; font-weight: 400; color: var(--st-muted); }
.st-note { margin-top: 8px !important; }
.st-big { font-size: 28px; font-weight: 600; color: var(--st-ink); margin: 4px 0 !important; font-variant-numeric: tabular-nums; }
/* tables: own styles, independent of other backtest stylesheets */
.st-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; contain: inline-size; }
.st-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--st-line); }
.st-table thead th { background: var(--st-track); font-size: 11px; font-weight: 500; color: var(--st-muted); line-height: 1.4; }
.st-table tbody th { font-weight: 600; color: var(--st-ink); white-space: nowrap; }
.st-table td { color: var(--tw-gray-700); }
.st-table td small { display: inline !important; color: var(--st-muted); margin-left: 4px; }
.st-method { list-style: disc; margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.6; max-width: 110ch; }
.st-method code { font-size: 12px; }

@media (max-width: 1199px) {
  .st-page .ls-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .st-grid, .st-tables { grid-template-columns: 1fr; }
}
/* each table needs 520px, so the pair stands side by side only where both get it (the expanded sidebar takes 200px) */
@media (min-width: 900.02px) and (max-width: 1239.98px) { .st-tables { grid-template-columns: 1fr; } }
@media (min-width: 1024px) and (max-width: 1439.98px) { body:not(.sidebar-collapse) .st-tables { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .st-page .ls-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-bar-row { grid-template-columns: minmax(84px, 38%) minmax(0, 1fr) 70px; gap: 8px; }
}

/* rule checks */
.st-rules { min-width: 900px; }
.st-rules tbody th { white-space: normal; width: 36%; line-height: 1.45; }
.st-rules tbody th small { display: block !important; margin-top: 4px; font-weight: 400; font-size: 11.5px; color: var(--tw-gray-700); }
.st-rules td small { display: block !important; margin-left: 0; }
.st-nowrap { white-space: nowrap; }
.st-verdict { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.st-ok { background: var(--tw-success-light, #eafff1); color: var(--tw-success-active, #04b440); }
.st-weak { background: var(--tw-warning-light, #fff8dd); color: var(--tw-warning-active, #f0b100); }
.st-no { background: var(--tw-danger-light, #ffeef3); color: var(--tw-danger-active, #d81a48); }

.st-subhead { margin-top: 18px !important; }
.st-ideas { min-width: 860px; }
.st-ideas tbody th { white-space: normal; width: 30%; line-height: 1.45; }
.st-ideas td small { display: block !important; margin-left: 0; }

/* lock methods */
.st-locks { min-width: 1000px; }
.st-locks th, .st-locks td { padding-left: 7px; padding-right: 7px; }
.st-locks tbody th { white-space: normal; width: 25%; line-height: 1.45; }
.st-locks tbody th small { display: block !important; margin-top: 4px; font-weight: 400; font-size: 11.5px; color: var(--tw-gray-700); }
.st-locks td small { display: block !important; margin-left: 0; white-space: nowrap; }
.st-locks tr.st-chosen > * { background: var(--tw-primary-light, #eff6ff); }
.st-base { background: var(--st-track); color: var(--st-muted); }

/* the late-move study's predictors */
.st-late { min-width: 600px; }
.st-late-next { margin-top: 12px; }
.st-late tbody th { white-space: normal; width: 36%; line-height: 1.45; }
.st-late tr.st-chosen > * { background: var(--tw-primary-light, #eff6ff); }
.st-late tbody th small, .st-late td small { display: block !important; margin: 3px 0 0; font-weight: 400; }
