/* Provably fair: the page and the box on the profile */
.fair-page {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  max-width: 1000px;
}

.fair-page .panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fair-page a {
  color: var(--ember-light);
}

/* Three steps side by side, read left to right like the order things happen in */
.fair-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.fair-steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--iron);
  border: var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.fair-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border: 1px solid var(--ember-dark);
  border-radius: 50%;
  color: var(--ember-light);
  font-size: var(--text-sm);
  font-weight: 700;
}

.fair-steps strong {
  color: var(--white-hot);
}

.fair-steps span {
  color: var(--ash);
  font-size: var(--text-sm);
  line-height: 1.55;
  text-wrap: pretty;
}

.fair-code-title {
  margin-top: 6px;
  font-size: 0.9rem;
}

.fair-code {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--soot);
  border: var(--border);
  border-radius: var(--radius);
  color: var(--white-hot);
  font-size: 0.8rem;
  line-height: 1.5;
}

.fair-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fair-form label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ash);
  font-size: 0.85rem;
}

/* Fields and the button share one height, so the last row lines up */
.fair-form .field,
.fair-form .button {
  height: var(--control-height);
}

.fair-form .button {
  align-self: end;
}

/* Sits at the end of the label's line, so this field lines up with the one beside it */
.fair-optional {
  position: absolute;
  top: 0;
  right: 0;
  font-size: var(--text-xs);
  opacity: 0.7;
}

.fair-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  background: var(--iron-light);
  border: var(--border);
  border-radius: var(--radius);
}

.fair-result dt {
  color: var(--ash);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fair-result dd,
.fair-value {
  margin: 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.fair-ok {
  color: var(--success-text);
}

.fair-bad {
  color: var(--danger-text);
}

.fair-seed-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ash);
  font-size: 0.8rem;
}

.fair-seed-actions {
  display: flex;
  gap: 8px;
}

.fair-seed-actions .field {
  flex: 1;
}

.history-verify {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.history-verify-result {
  max-width: 220px;
  font-size: 0.78rem;
}

.history-verify-result a {
  color: inherit;
}

@media (max-width: 900px) {
  .fair-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .fair-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

