/* godot-jev results page. Shared styles are in ../assets/results.css. */

/* Outcomes use the ordinal ramp from site.css: unknown (--r-0), clarify (--r-1), act (--r-2).
   In an answer's bar the same three shades mean: "none of these", another move, the move the line means. */

.shot {
  margin: 0 0 12px;
}
.shot img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* The question: one line's state and options */
.line-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.line-steps .btn {
  min-width: 34px;
  padding: 6px 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.q-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}
.q-grid pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.q-grid .qtext {
  margin: 6px 0 12px;
}
@media (max-width: 760px) {
  .q-grid {
    grid-template-columns: 1fr;
  }
}
.options-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  font-size: 0.85rem;
}
.options-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink-2);
}
.options-list li code {
  align-self: flex-start;
  font-size: 0.72rem;
}
.options-list li.meant {
  border-color: color-mix(in srgb, var(--stamp) 55%, transparent);
  background: color-mix(in srgb, var(--stamp) 6%, var(--surface));
  color: var(--ink);
}
.options-list li.none {
  grid-column: 1 / -1;
  border-style: dashed;
  border-color: var(--rule-strong);
}
.options-list .tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-ink);
}
@media (max-width: 520px) {
  .options-list {
    grid-template-columns: 1fr;
  }
}

/* Explorer: two thresholds */
.ex-top3 {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.ex-top3 li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
}
.ex-top3 i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c);
}
.ex-top3 b {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stackbar .seg.rest {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.rung .rres {
  min-width: 96px;
}
.ladder .rung {
  grid-template-columns: 78px minmax(0, 1fr) auto;
}

/* Line grid: the "means" column needs room for a sentence. */
@media (min-width: 761px) {
  .tg-head,
  .tg-row {
    grid-template-columns: 26px minmax(0, 1.25fr) minmax(0, 1fr) repeat(3, minmax(0, 0.95fr));
  }
}
.tg-row .t small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}
.tg-row .means {
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.35;
}
.tg-row .means.nothing {
  color: var(--muted);
  font-style: italic;
}

/* Threshold panels: one lane per round, one cell per line. */
.thresholds {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 54px;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 14px;
}
.thresholds input {
  margin: 0;
}
.thresholds .label {
  white-space: nowrap;
}
.threshold-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
@media (max-width: 560px) {
  .thresholds {
    grid-template-columns: minmax(0, 1fr) 54px;
  }
  .thresholds .label {
    grid-column: 1 / -1;
  }
}
.bp .cells {
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 2px;
}
.bp .cell {
  font-size: 0.6rem;
}
.bp .lane {
  grid-template-columns: 52px minmax(0, 1fr);
}
