/* ==========================================================================
  Typography
  Redefine typographic elements here.
 ========================================================================== */

.word-break--break-word {
  word-break: break-word;
}

// /* Headers
//  ========================================================================== */

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {

  &.sans-serif {
    font-family: "flanders-sans", sans-serif;
  }
}

.h1 {
  line-height: 1;
}

.h2,
.h3,
.h4,
.h5,
.h6 {
  line-height: 1.1;
}

.h2,
.h3,
.h4,
.h5,
.h6 {
  line-height: 1.1;
}

.h2 {
  font-size: 3.6rem;
  font-weight: 500;
}

.h3 {
  font-size: 3rem;
}

.h4 {
  font-size: 2.4rem;
}

.h5 {
  font-size: 2.1rem;
  font-weight: 400;
}

.h6 {
  font-size: 1.8rem;
  font-weight: 500;
}

/* Paragraph
 ========================================================================== */

ul.small li,
a.small,
p.small {
  font-size: 0.9em;
}

ul.smaller li,
a.smaller,
p.smaller {
  font-size: 0.8em;
}

ul.smallest li,
a.smallest,
p.smallest {
  font-size: 0.7em;
}

// TODO: put list sizes in styleguide

.text-light {
  font-weight: 300;
}

small {
  font-size: 0.8em !important;

  i.vi.vi-u-link:before,
  i.fa:before {
    font-size: 0.8em;
  }

  i.toggle__icon:before {
    font-size: 0.7rem;
    position: relative;
    margin-top: -1.5px;
  }
}

.uppercase,
p.uppercase {
  text-transform: uppercase;
  letter-spacing: 1.5px;

  &:after,
  &:before,
  :after,
  :before {
    text-transform: initial;
    letter-spacing: 0;
  }
}

.text-fade {
  color: $gray-light-contrast;
  font-weight: 300;

  .u-bg-block & {
    color: $gray;
  }
}

.text-fade:not(.uppercase) {
  font-style: italic;
}



.text-cap-width {
  max-width: 45rem;
}

// /* Definition list
//  ========================================================================== */

.description-data__subdata {
  line-height: 1.4;
}

.description-data__label .toggle--plus-minus i.toggle__icon {
  top: -1px;
}

// /* Capping content
//  ========================================================================== */

dt.contact-card__data__title {
  @include for-phone-only {
    display: block !important;
  }
}
