/**
 * @license EUPL-1.2+
 * Copyright Gemeente Amsterdam
 */

@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

.ams-label {
  color: var(--ams-label-color);
  display: block; // Needed for margins on Label to work correctly.
  font-family: var(--ams-label-font-family);
  font-size: var(--ams-label-font-size);
  font-weight: var(--ams-label-font-weight);
  line-height: var(--ams-label-line-height);

  /* stylelint-disable-next-line plugin/use-baseline -- Unbalanced line lengths in non-supporting browsers are acceptable */
  text-wrap: var(--ams-label-text-wrap);

  @include hyphenation;
  @include text-rendering;
}

.ams-label--in-fieldset {
  font-weight: var(--ams-label-in-fieldset-font-weight);
}

.ams-label__heading {
  font-size: var(--ams-label-font-size);
  font-weight: var(--ams-label-font-weight);
  margin-block: 0;
}
