.subtitle {
  color: var(--muted);
  margin-top: -0.5rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

legend {
  font-weight: 600;
  padding: 0 0.4rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  margin-top: 0.75rem;
  min-height: 44px;
}

.checkbox-label input {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.field-help {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

#results h2 + .results-grid {
  margin-bottom: 1.5rem;
}

/* Values whose text length varies (the limiting-factor explanation, the
   pass/fail verdict with its reasons) reserve two lines up front so a
   longer result doesn't push the rest of the page down -- see AGENTS.md
   "Layout-shift reservation". */
.results-grid dd.reserve-two-lines {
  min-height: 3em;
}

.verdict-pass {
  color: #1e7a34;
}

.verdict-fail {
  color: var(--error);
}

@media (prefers-color-scheme: dark) {
  .verdict-pass {
    color: #81c995;
  }
}
