.backtest-overfitting .bt-scope{margin-block:0 2rem;padding:1.2rem 1.4rem;border:1px solid #cbd5da;border-radius:.75rem;background:#fbfaf7}
.backtest-overfitting .bt-scope h2{margin:0 0 .5rem;font-size:1.05rem;line-height:1.5;letter-spacing:0}
.backtest-overfitting .bt-scope p{margin:0;color:#445362;line-height:1.8}
.backtest-overfitting .article-section p{margin-block:.9rem}
.backtest-overfitting .article-section .bt-note{padding:1rem 1.2rem;border-inline-start:3px solid #315f82;border-radius:.5rem;background:#e6edf1;color:#26445a}
.backtest-overfitting .bt-checklist{padding-inline-start:1.4rem;margin-block:1.2rem;color:#354b5d;line-height:1.8}
.backtest-overfitting .bt-checklist li{margin-block:.65rem;padding-inline-start:.25rem}
.backtest-overfitting .bt-diagram{margin:1.6rem 0;padding:1.3rem;background:#e9eeef;border:1px solid #c4d0d7;border-radius:.9rem}
.backtest-overfitting .bt-diagram>h3{margin:0 0 1rem;color:#18344b;font-size:1.1rem;line-height:1.5}
.backtest-overfitting .bt-diagram-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:.8rem}
.backtest-overfitting .bt-diagram-card{min-width:0;padding:1rem;border:1px solid #cbd5da;border-block-start:3px solid #aa8840;background:#fbfaf7;border-radius:.55rem}
.backtest-overfitting .bt-diagram-card h3{margin:0 0 .55rem;color:#18344b;font-size:1rem;line-height:1.5;overflow-wrap:break-word}
.backtest-overfitting .bt-diagram-card p{margin:0;color:#354b5d;font-size:.95rem;line-height:1.75}
.backtest-overfitting .bt-diagram figcaption{margin-block-start:1rem;color:#435a6c;font-size:.9rem;line-height:1.75}
.backtest-overfitting .bt-table-wrap{margin-block:1.5rem}
.backtest-overfitting .bt-table-wrap .custody-table{min-width:44rem}
.backtest-overfitting .bt-section-sources{font-size:.82rem!important;line-height:1.7!important}
.backtest-overfitting .bt-section-sources a{color:#315f82;text-decoration:underline;text-underline-offset:3px}
.backtest-overfitting .bt-faq{margin-block:2rem}
.backtest-overfitting .bt-faq>h2{font-size:1.8rem;line-height:1.4;margin-block:0 1rem}
.backtest-overfitting .bt-faq details{margin-block:.65rem;padding:1rem 1.2rem;border:1px solid #cbd5da;background:#fbfaf7;border-radius:.65rem}
.backtest-overfitting .bt-faq summary{font-weight:750;line-height:1.6;cursor:pointer;color:#18344b}
.backtest-overfitting .bt-faq p{margin:.8rem 0 0;color:#354b5d;line-height:1.8}
.backtest-overfitting bdi{unicode-bidi:isolate}
@media(max-width:620px){.backtest-overfitting .bt-diagram{padding:1rem}.backtest-overfitting .bt-diagram-grid{grid-template-columns:1fr}.backtest-overfitting .bt-scope{padding:1rem}.backtest-overfitting .bt-faq details{padding:.9rem 1rem}}
.backtest-overfitting .article-hero h1{overflow-wrap:break-word}
.backtest-overfitting .article-hero::after{content:none}
.backtest-overfitting .bt-formula{max-width:100%;overflow-x:auto;padding:1.15rem;border:1px solid #c4d0d7;border-radius:.6rem;background:#e9eeef;color:#18344b;font:.9rem/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap;text-align:left;unicode-bidi:isolate}

.backtest-overfitting .bt-controls{display:grid;grid-template-columns:1fr 1fr;gap:1.15rem 1.5rem;margin-block:1.3rem}
.backtest-overfitting .bt-control{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:start;min-width:0}
.backtest-overfitting .bt-control label{color:#203d53;font-size:.9rem;font-weight:650;line-height:1.6;min-width:0}
.backtest-overfitting .bt-control output{color:#173b56;font-variant-numeric:tabular-nums;font-weight:750;font-size:.95rem;white-space:nowrap}
.backtest-overfitting .bt-control input{grid-column:1/-1;width:100%;min-height:28px;margin:0;accent-color:#285f83;direction:ltr;cursor:pointer}
.backtest-overfitting .bt-results{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:1.4rem 0}
.backtest-overfitting .bt-results>div{border:1px solid #cbd5da;border-block-start:3px solid #aa8840;background:#fbfaf7;padding:.9rem;border-radius:.55rem;min-width:0}
.backtest-overfitting .bt-results dt{font-size:.85rem;color:#435a6c;line-height:1.6}
.backtest-overfitting .bt-results dd{margin:.4rem 0 0;color:#17354c;font-size:1.35rem;font-weight:750;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.backtest-overfitting .bt-table-wrap .custody-table{min-width:32rem}
@media(max-width:620px){.backtest-overfitting .bt-chart,.backtest-overfitting .bt-model{padding:1rem}.backtest-overfitting .bt-controls{grid-template-columns:1fr}.backtest-overfitting .bt-results{grid-template-columns:1fr}.backtest-overfitting .bt-results dd{font-size:1.25rem}}

.backtest-overfitting .bt-model{margin:1.6rem 0;padding:1.3rem;background:#f5f8f9;border:1px solid #c4d0d7;border-radius:.9rem}
.backtest-overfitting .bt-model h3{margin:0 0 1rem;color:#18344b;font-size:1.15rem;line-height:1.5}
.backtest-overfitting .bt-model figcaption{margin-top:1rem;color:#435a6c;font-size:.9rem;line-height:1.8}
.backtest-overfitting [data-trial-reset]{border:1px solid #315f82;background:#173b56;color:#fff;border-radius:.45rem;padding:.6rem 1rem;font-family:inherit;font-weight:600;font-size:.9rem;line-height:1.5;cursor:pointer}
.backtest-overfitting input:focus-visible,.backtest-overfitting [data-trial-reset]:focus-visible{outline:3px solid #a88330;outline-offset:3px}
@media(max-width:620px){.backtest-overfitting .bt-model{padding:1rem}}

.backtest-overfitting .bt-table-wrap .custody-table{min-width:38rem}
.backtest-overfitting .bt-model{max-width:100%}

html[dir="rtl"] .backtest-overfitting .bt-results dd{text-align:right}
