/* THE FORGE: Mixed Effects. Additions to forge.css for this page.
   The caption, key, table, step strip, and Script rules are the Maximum Likelihood page's (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; }
.clickable svg { cursor: pointer; }

/* keys and swatches */
.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; }
.key i.dot { height: 0; border-top: 2px dotted; background: none !important; }

/* tables */
table.mtab { width: 100%; border-collapse: collapse; font-size: 0.86em; }
table.mtab th { color: var(--gold); font-weight: 600; text-align: right; padding: 4px 8px; border-bottom: 1px solid var(--border); font-size: 0.92em; }
table.mtab th:first-child, table.mtab td:first-child { text-align: left; }
table.mtab td { text-align: right; padding: 6px 8px; border-bottom: 1px solid #3e3e3e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
table.mtab td:first-child { font-family: inherit; font-weight: 600; }
table.mtab tr.row { cursor: pointer; }
table.mtab tr.row:hover td { background: rgba(255,255,255,0.04); }
table.mtab tr.sel td { background: rgba(197,165,90,0.14); }
table.mtab tr.m1 td { color: var(--muted); }
table.mtab td.far { color: var(--ember); }
table.mtab td.muted, table.mtab .muted { color: var(--muted); }
table.mtab td.best { color: var(--gold); font-weight: 700; }
table.mtab .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
table.mtab sup { color: var(--ember); font-family: inherit; }
.rsays { color: var(--muted); font-size: 0.78em; margin: 8px 2px 0; line-height: 1.45; }
.rsays code { color: var(--ember); font-size: 0.95em; white-space: normal; }

/* controls this page adds */
.radios.stack { flex-direction: column; }
.radios.stack button { padding: 6px 8px; text-align: left; }
.radios.chips { flex-wrap: wrap; }
.radios.chips button { flex: 1 0 auto; min-width: 42px; padding: 5px 8px; }
.seedline { color: var(--muted); font-size: 0.76em; margin: 6px 0 0; }
.sidebar label.check { margin: 6px 0 2px; }

/* a column of cards beside a plot */
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack.hidden-all { display: none; }
@media (max-width: 1250px) { .stack.span-5 { grid-column: span 12; } }

/* tiles */
.tile.full { grid-column: 1 / -1; }
.t-mean b { color: var(--warm-white); font-weight: 600; }
.t-math { overflow-x: auto; overflow-y: hidden; }

/* 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); }
#x-download { text-transform: none; }

.card-header .sym { 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; }
/* math inside running text */
.g-lines .katex, .t-mean .katex, .caption .katex, .key .katex, table.mtab .katex, .says .katex { font-size: 1.06em; }
@media (max-width: 600px) { table.mtab { font-size: 0.78em; } table.mtab td, table.mtab th { padding: 5px 4px; } }

/* room under the last tile for the fixed BLUEPRINT button */
.main { padding-bottom: 84px; }
.t-math { margin: 6px 0 4px; line-height: 2.1; }
.t-math .katex { font-size: 1.12em; }
@media (max-width: 600px) { .t-math .katex { font-size: 1em; } }
