/**
 * @file
 * Overrides for USWDS styles that conflict with Drupal markup.
 *
 * This library can be overridden in subthemes via libraries-override:
 *   ui_suite_uswds/uswds-overrides: my_theme/my-overrides
 *
 * Or disabled entirely:
 *   ui_suite_uswds/uswds-overrides: false
 */

/**
 * USWDS adds margin-top to .usa-form-group which causes unwanted spacing
 * when used inside fieldsets (e.g., radio buttons, checkboxes). Can be seen
 * on an edit form with Comments installed.
 */
fieldset .usa-form-group {
  margin-top: 0;
}

/**
 * USWDS inputs had a weird input size on node edit form.
 */
.node-form .usa-combo-box__input,
.node-form .usa-input:not(.text-full),
.node-form .usa-input-group,
.node-form .usa-select {
  height: 1rem;
}

/**
 * USWDS date picker, especially on changed date is bad.
 */
.node-form .form-type-date {
  margin-right: 2rem;
}
