/* THE FORGE: Hypothesis Testing. Additions to forge.css for this page.
   The step strip, captions, and Script tab rules are the MLE page's (mle.css), so every Forge page works the same way. */

.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; }

/* the navbar keeps t lowercase */
.ht-nav button { text-transform: none; font-size: 0.85em; letter-spacing: 0.2px; }

/* inputs this page adds */
.sidebar input[type=number] { width: 100%; background: #404040; color: var(--warm-white); border: 1px solid #555; border-radius: 4px; padding: 6px 10px; font: inherit; font-size: 0.92em; }
.sidebar input[type=number]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(197,165,90,0.25); }
.sidebar label.check { color: var(--warm-white); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.9em; margin: 6px 0; }
.radio-list .check { margin: 6px 0; }
.group-head { font-weight: 600; color: var(--gold); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.3px; margin: 14px 0 -6px; border-bottom: 1px solid rgba(197,165,90,0.25); padding-bottom: 2px; }
.sidebar .katex { font-size: 1.02em; }

/* the simulation card */
.card-header .sim-status { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.stale { opacity: 0.45; transition: opacity 0.15s; }
.ht-msg { color: var(--muted); font-size: 0.9em; padding: 8px 0; }

/* a tile whose check fails */
.t-val.bad { color: var(--ember); }
.t-val.good { color: var(--green); }
.t-val.word { font-family: inherit; font-size: 0.95em; }

/* 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; } table.s-funcs code { word-break: break-word; } }

/* 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; }
/* symbols with hats, drawn by KaTeX inside running text */
.g-lines .katex, .t-mean .katex, .caption .katex { font-size: 1.08em; }
.tile.full { grid-column: 1 / -1; }
.t-mean b { color: var(--warm-white); font-weight: 600; }

/* room at the end of the page so the fixed Blueprint button covers no tile */
.tab .main { padding-bottom: 84px; }
