/* Type roles (SPEC §1.2): one class per role in the type scale.
   Size, line-height, family and weight only; color belongs to components.
   Values from tokens.css only. */

.type-display {
  font-family: var(--font-en);
  font-size: var(--text-display-size);
  font-style: italic;
  font-weight: var(--font-weight-bold);
  line-height: var(--text-display-lh);
}

.type-marquee {
  font-family: var(--font-en);
  font-size: var(--text-marquee-size);
  font-style: italic;
  font-weight: var(--font-weight-bold);
  line-height: var(--text-marquee-lh);
}

.type-eyebrow {
  font-size: var(--text-eyebrow-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-eyebrow-lh);
}

.type-h1-ja {
  font-size: var(--text-h1-ja-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-h1-ja-lh);
}

.type-h2-ja {
  font-size: var(--text-h2-ja-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-h2-ja-lh);
}

.type-h2-tight {
  font-size: var(--text-h2-tight-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-h2-tight-lh);
}

.type-h2-tight-sm {
  font-size: var(--text-h2-tight-sm-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-h2-tight-lh);
}

.type-h3 {
  font-size: var(--text-h3-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-h3-lh);
}

.type-h4 {
  font-size: var(--text-h4-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-h4-lh);
}

.type-h4-noto {
  font-family: var(--font-noto);
  font-size: var(--text-h4-noto-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-h4-noto-lh);
}

.type-lead {
  font-size: var(--text-lead-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-lead-lh);
}

.type-body {
  font-size: var(--text-body-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-body-lh);
}

.type-body-bold {
  font-size: var(--text-body-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-body-lh);
}

.type-body-compact {
  font-size: var(--text-body-compact-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-body-compact-lh);
}

.type-small {
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-small-lh);
}

.type-small-loose {
  font-size: var(--text-small-loose-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-small-loose-lh);
}

/* Button line-height is unset in XD: buttons center their text instead. */
.type-button-main {
  font-size: var(--text-button-main-size);
  font-weight: var(--font-weight-bold);
}

.type-button {
  font-size: var(--text-button-size);
  font-weight: var(--font-weight-bold);
}

.type-badge {
  font-size: var(--text-badge-size);
  font-weight: var(--font-weight-regular);
}

.type-copyright {
  font-size: var(--text-copyright-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-copyright-lh);
}

.type-label-en {
  font-family: var(--font-en);
  font-size: var(--text-label-en-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-label-en-lh);
}
