/* THE FORGE: Bias-Variance Tradeoff. Additions to forge.css for this page (the step strip and Script styles follow mle.css). */

.caption { color: var(--muted); font-size: 0.8em; margin: 6px 2px 0; line-height: 1.45; }
.caption b { color: var(--warm-white); font-weight: 600; }
.card-header .sym { text-transform: none; }

/* keys above plots, and room at the bottom so the BLUEPRINT button covers nothing */
.key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8em; color: var(--warm-white); margin: 0 0 6px; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.key i.dash { height: 0; border-top: 2px dashed; background: none !important; }
.main { padding-bottom: 84px; }

/* controls this page adds */
.radios.wrap { flex-wrap: wrap; }
.radios.wrap button { flex: 1 0 28%; padding: 5px 4px; }
.seedline { color: var(--muted); font-size: 0.8em; margin: 4px 0 0; text-align: center; }

/* the Anvil's score card */
.score-verdict { text-align: center; padding: 10px; margin-bottom: 10px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--steel); }
.score-verdict .lab { font-weight: 700; font-size: 1.1em; color: var(--steel); }
.score-verdict .msg { color: var(--muted); font-size: 0.85em; margin-top: 2px; }
.score-verdict.good { border-color: var(--green); } .score-verdict.good .lab { color: var(--green); }
.score-verdict.warn { border-color: var(--gold); } .score-verdict.warn .lab { color: var(--gold); }
.score-verdict.bad { border-color: var(--ember); } .score-verdict.bad .lab { color: var(--ember); }
.score-note { margin-top: 10px; padding: 7px 12px; border-left: 3px solid var(--ember); background: rgba(232,114,58,0.08); border-radius: 4px; color: var(--muted); font-size: 0.82em; }
.metric .val.hid { color: var(--muted); }

/* The Script */
#tab-script .sidebar label { margin-top: 20px; }
.s-jumps { display: flex; flex-direction: column; gap: 6px; }
.s-jumps button { background: #404040; border: 1px solid #555; color: var(--warm-white); font: inherit; font-size: 0.86em; padding: 6px 10px; border-radius: 4px; cursor: pointer; text-align: left; }
.s-jumps button:hover { background: #4a4a4a; }
.s-msg { color: var(--gold); font-size: 0.82em; min-height: 1.2em; margin: 8px 0 0; }
.s-note { margin-top: 20px; font-size: 0.84em; line-height: 1.5; }
pre.printout.script { white-space: pre; overflow-x: auto; font-size: 0.82em; line-height: 1.5; max-height: none; }
pre.printout.script .sec { color: var(--gold); font-weight: 700; scroll-margin-top: 80px; }
table.s-funcs { width: 100%; border-collapse: collapse; font-size: 0.88em; }
table.s-funcs th { color: var(--gold); text-align: left; font-weight: 600; padding: 4px 10px; border-bottom: 1px solid var(--border); }
table.s-funcs td { padding: 6px 10px; border-bottom: 1px solid #3e3e3e; vertical-align: top; line-height: 1.45; }
table.s-funcs td:first-child { white-space: nowrap; }
table.s-funcs code { color: var(--gold); }
@media (max-width: 760px) { table.s-funcs td:first-child { white-space: normal; word-break: break-word; } }
#s-download { text-transform: none; }

/* the step strip above each tab's plots: every step's name in order, the current one lit */
.recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.recipe .r-step { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid #555; border-radius: 4px; color: var(--muted); font: inherit; font-size: 0.84em; padding: 5px 10px; cursor: pointer; }
.recipe .r-step:hover { color: var(--warm-white); border-color: #777; }
.recipe .r-num { color: var(--gold); font-weight: 700; }
.recipe .r-step.done { color: var(--warm-white); }
.recipe .r-step.now { color: var(--gold); border-color: var(--gold); background: rgba(197,165,90,0.12); font-weight: 600; }
.recipe .r-arrow { color: #6a6a6a; font-size: 0.8em; padding: 0 2px; }
.recipe .r-item { display: inline-flex; align-items: center; gap: 4px; }

/* tiles and symbols drawn by KaTeX inside running text */
.tile.full { grid-column: 1 / -1; }
.t-mean b { color: var(--warm-white); font-weight: 600; }
.g-lines .katex, .t-mean .katex, .caption .katex { font-size: 1.08em; }
