/* Additions for the real-time test environment. The palette, the cards and the
   type come from style.css, which this file only extends: a four-across metric
   row, the decision ticker, the progress bar and the check list. */

.grid.four { grid-template-columns: repeat(4, 1fr); }
/* the live run: the ticker earns more room than the chart beside it */
.grid.live { grid-template-columns: 1.45fr 1fr; }
@media (max-width: 900px) { .grid.live { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }

/* A field group inside .grid.fields is display:flex, which outranks the hidden
   attribute. Say it once, here, so hiding a field actually hides it. */
[hidden] { display: none !important; }

/* A grid child defaults to a minimum width of its content, so one long line in
   the ticker would push the chart beside it into a strip. */
.grid > * { min-width: 0; }
.trow .c { min-width: 0; }

/* ---------------------------------------------------------------- the ticker */
.ticker { min-height: 300px; display: flex; flex-direction: column; gap: 6px; }
.trow { display: grid; grid-template-columns: 58px 1fr 200px; gap: 10px; align-items: start;
  border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: 4px;
  padding: 7px 10px; background: var(--card); font-size: 12px; transition: opacity .25s linear; }
.trow.no { border-left-color: var(--verm); }
.trow .i { color: var(--slate); font-variant-numeric: tabular-nums; }
.trow .in, .trow .out { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .out { color: var(--slate); }
.trow .d { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.35; }
.trow .v { font-weight: 700; }
.trow .v.yes { color: var(--green); }
.trow .v.no { color: var(--verm); }
.trow .why { display: block; color: var(--slate); font-weight: 300; }

/* ------------------------------------------------------------- progress bar */
.bar { height: 8px; border: 1px solid var(--border); border-radius: 999px; background: #efece4; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--blue); transition: width .15s linear; }

/* ------------------------------------------------------------- chart legend */
.key { display: inline-block; width: 22px; height: 3px; vertical-align: middle; margin-right: 4px; }
.key.k1 { background: var(--blue); }
.key.k2 { background: var(--ink); }
.key.k3 { background: var(--verm); opacity: .35; height: 9px; }

/* ------------------------------------------------------------- the check list */
ul.checks { list-style: none; padding-left: 0; }
.chk { border-left: 3px solid var(--green); padding: 6px 0 6px 12px; margin: 8px 0; }
.chk.warn { border-left-color: var(--verm); }
.chk.stop { border-left-color: var(--verm); font-weight: 400; }
.chk .tag { display: inline-block; min-width: 96px; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate); margin-right: 8px; }

/* --------------------------------------------------------------- radio cards */
label.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 14px; font-weight: 300; font-size: 13px; cursor: pointer; }
label.choice:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
label.choice input { margin-top: 3px; }

/* ------------------------------------------------------------ the diagram page */
.flow { width: 100%; height: auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .step { display: block; border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 0; }   /* style.css gives a bare .step a flex row; not here */
.stack .step strong { display: block; margin-bottom: 2px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  background: #f2f1ee; border-radius: 3px; padding: 1px 4px; }
pre.block { background: #f2f1ee; border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px;
  overflow-x: auto; font-size: 12px; line-height: 1.5; }
