/* Tax Rules-only checkbox relationship; ordinary field chrome stays shared. */
.control-group label.check-row {
  justify-content: flex-start;
  gap: 9px;
  line-height: 1.35;
}

.check-row input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.control-group label.check-row span {
  color: var(--text-light);
}

/* Each group of cards has a heading row with the "use defaults" action for
   exactly those values: thresholds above Allowances and UK Tax Bands, growth
   and inflation above Real growth and Inflation. */
.tax-group + .tax-group {
  /* The cards above already end with their own bottom margin. */
  margin-top: var(--space-4);
}

.tax-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.tax-group-heading .type-section-heading {
  margin: 0;
}

/* Phones: the action takes its own full-width row beneath the heading. */
@media (max-width: 767px) {
  .tax-group-heading .btn {
    flex: 1 1 100%;
  }
}
