/* RadioChoice (built here): one choice among a few as a bordered card, its radio, its title and a quiet line under it. The
   checked one takes the accent's subtle background and a stronger border; focus shows as the other fields' ring. Tokens only. */
.wi-radio-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: var(--border-1) solid var(--border-strong);
  border-radius: var(--radius-lg);
  background-color: var(--background-surface);
  font-family: var(--font-family-sans);
  cursor: pointer;
}
.wi-radio-choice:hover {
  background-color: var(--background-sunken);
}
.wi-radio-choice:has(.wi-radio-choice__input:checked) {
  border-color: var(--border-focus);
  background-color: var(--background-accent-subtle);
}
.wi-radio-choice:has(.wi-radio-choice__input:focus-visible) {
  box-shadow: var(--focus-ring);
}
.wi-radio-choice:has(.wi-radio-choice__input:disabled) {
  border-color: var(--border-subtle);
  background-color: var(--background-sunken);
  color: var(--text-disabled);
  cursor: not-allowed;
}
.wi-radio-choice__input {
  flex: none;
  margin: var(--space-1) 0 0;
  accent-color: var(--brand-secondary-bg);
  cursor: inherit;
}
.wi-radio-choice__text {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}
.wi-radio-choice__label {
  color: inherit;
  font-size: var(--font-size-base);
  line-height: var(--font-line-height-base);
  font-weight: var(--font-weight-semibold);
}
.wi-radio-choice__description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--font-line-height-sm);
}
.wi-radio-choice:has(.wi-radio-choice__input:disabled) .wi-radio-choice__description {
  color: inherit;
}

/* The card variant: the choice a question asks alone. Its radio is hidden (still the keyboard's and the screen reader's
   target), the whole card is the thing to tap, and a check in a circle marks the one chosen. */
.wi-radio-choice--card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-width: var(--border-2);
  border-color: var(--border-default);
  border-radius: var(--radius-xl);
}
.wi-radio-choice--card:hover {
  background-color: var(--background-surface);
  border-color: var(--border-strong);
}
.wi-radio-choice--card:has(.wi-radio-choice__input:checked) {
  border-color: var(--brand-secondary-bg);
  background-color: var(--background-accent-subtle);
}
.wi-radio-choice--card .wi-radio-choice__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
}
.wi-radio-choice--card .wi-radio-choice__label {
  font-size: var(--font-size-xl);
  line-height: var(--font-line-height-xl);
}
.wi-radio-choice__check {
  display: none;
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  place-items: center;
  color: var(--brand-secondary-fg);
  background: var(--brand-secondary-bg);
  border-radius: var(--radius-full);
}
.wi-radio-choice__check svg {
  width: var(--size-icon-xs);
  height: var(--size-icon-xs);
}
.wi-radio-choice:has(.wi-radio-choice__input:checked) .wi-radio-choice__check {
  display: grid;
}
