/* Health editor "Questions" rows (snps/_health_panel): a factor's question
 * with Yes and No, so a No is recorded as an answer (snip plan 30 § 9).
 * The row reuses .hp-row; the answers are a two-option segmented control.
 */

.hp-row--question { cursor: default; }
.hp-row--question:hover { background-color: var(--background-hover); }

.hp-question__answers {
  flex-shrink: 0;
  display: inline-flex;
  gap: var(--spacing-4);
}

.hp-question__answer {
  position: relative;
  cursor: pointer;
}

/* Native radio visually hidden; the label span is the control. */
.hp-question__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hp-question__label {
  display: inline-block;
  padding: var(--spacing-4) var(--spacing-12);
  border-radius: var(--corner-radius-full);
  box-shadow: inset 0 0 0 var(--stroke-weight-1) var(--border-default);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-500);
  color: var(--text-primary);
}

.hp-question__input:checked + .hp-question__label {
  background-image: var(--brand-gradient);
  box-shadow: none;
  color: var(--text-light);
}

.hp-question__input:focus-visible + .hp-question__label {
  outline: var(--stroke-weight-2) solid var(--border-strong);
  outline-offset: 2px;
}
