/* Defaults have zero specificity. An explicit role assigns the same type in HTML and SVG. */
:where(b, strong, i, em) { font: inherit; }
.gc-button__label { -webkit-text-stroke: 0; }

:where(html, body, p, input, textarea, select, option),
[data-type="body"],
[data-type="lead"] {
  font-family: var(--type-body-family);
  font-size: max(var(--type-size-floor), calc(var(--type-body-base-size) * var(--type-body-size, 1)));
  font-weight: var(--type-body-weight);
  font-style: var(--type-body-style);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-tracking);
  text-transform: var(--type-body-case);
  font-feature-settings: var(--type-body-features);
  font-variation-settings: var(--type-body-variation, normal);
  font-stretch: var(--type-body-stretch, normal);
}

[data-type="lead"] {
  font-size: max(var(--type-size-floor), calc(var(--type-lead-base-size) * var(--type-body-size, 1)));
  line-height: var(--type-lead-line);
  font-weight: var(--type-lead-weight);
}

[data-type="brand"] {
  font-family: var(--type-brand-family);
  font-size: max(var(--type-size-floor), calc(var(--type-brand-base-size) * var(--type-brand-size, 1)));
  font-weight: var(--type-brand-weight);
  font-style: var(--type-brand-style);
  line-height: var(--type-brand-line);
  letter-spacing: var(--type-brand-tracking);
  text-transform: var(--type-brand-case);
  font-feature-settings: var(--type-brand-features);
  font-variation-settings: var(--type-brand-variation, normal);
  font-stretch: var(--type-brand-stretch, normal);
}

:where(.gc-tabs__tab, .gc-tabs__label, .gc-app-bar__tab, .gc-app-bar__label),
[data-type="nav"] {
  font-family: var(--type-nav-family);
  font-size: max(var(--type-size-floor), calc(var(--type-nav-base-size) * var(--type-nav-size, 1)));
  font-weight: var(--type-nav-weight);
  font-style: var(--type-nav-style);
  line-height: var(--type-nav-line);
  letter-spacing: var(--type-nav-tracking);
  text-transform: var(--type-nav-case);
  font-feature-settings: var(--type-nav-features);
  font-variation-settings: var(--type-nav-variation, normal);
  font-stretch: var(--type-nav-stretch, normal);
}

[data-type="area"] {
  font-family: var(--type-area-family);
  font-size: max(var(--type-size-floor), calc(var(--type-area-base-size) * var(--type-area-size, 1)));
  font-weight: var(--type-area-weight);
  font-style: var(--type-area-style);
  line-height: var(--type-area-line);
  letter-spacing: var(--type-area-tracking);
  text-transform: var(--type-area-case);
  font-feature-settings: var(--type-area-features);
  font-variation-settings: var(--type-area-variation, normal);
  font-stretch: var(--type-area-stretch, normal);
}

[data-type="area-tag"] {
  font-family: var(--type-area-tag-family);
  font-size: max(var(--type-size-floor), calc(var(--type-area-tag-base-size) * var(--type-area-tag-size, 1)));
  font-weight: var(--type-area-tag-weight);
  font-style: var(--type-area-tag-style);
  line-height: var(--type-area-tag-line);
  letter-spacing: var(--type-area-tag-tracking);
  text-transform: var(--type-area-tag-case);
  font-feature-settings: var(--type-area-tag-features);
  font-variation-settings: var(--type-area-tag-variation, normal);
  font-stretch: var(--type-area-tag-stretch, normal);
}

:where(h1, h2, h3, h4, h5, h6, .gc-display, .gc-subhead),
[data-type="title"] {
  font-family: var(--type-title-family);
  font-size: max(var(--type-size-floor), calc(var(--type-title-base-size) * var(--type-title-size, 1)));
  font-weight: var(--type-title-weight);
  font-style: var(--type-title-style);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-title-tracking);
  text-transform: var(--type-title-case);
  font-feature-settings: var(--type-title-features);
  font-variation-settings: var(--type-title-variation, normal);
  font-stretch: var(--type-title-stretch, normal);
}

:where(.gc-label, legend, label),
[data-type="section"] {
  font-family: var(--type-section-family);
  font-size: max(var(--type-size-floor), calc(var(--type-section-base-size) * var(--type-section-size, 1)));
  font-weight: var(--type-section-weight);
  font-style: var(--type-section-style);
  line-height: var(--type-section-line);
  letter-spacing: var(--type-section-tracking);
  text-transform: var(--type-section-case);
  font-feature-settings: var(--type-section-features);
  font-variation-settings: var(--type-section-variation, normal);
  font-stretch: var(--type-section-stretch, normal);
}

[data-type="count"] {
  font-family: var(--type-count-family);
  font-size: max(var(--type-size-floor), calc(var(--type-count-base-size) * var(--type-count-size, 1)));
  font-weight: var(--type-count-weight);
  font-style: var(--type-count-style);
  line-height: var(--type-count-line);
  letter-spacing: var(--type-count-tracking);
  text-transform: var(--type-count-case);
  font-feature-settings: var(--type-count-features);
  font-variation-settings: var(--type-count-variation, normal);
  font-stretch: var(--type-count-stretch, normal);
}

/* Authored words share the family, scale and type floor. Each record use
   chooses its reading size, line height and emphasis independently. */
[data-word-use="question"] {
  --type-words-base-size: var(--type-question-base-size);
  --type-words-line: var(--type-question-line);
  --type-words-weight: var(--type-question-weight);
}

[data-word-use="reply"] {
  --type-words-base-size: var(--type-reply-base-size);
  --type-words-line: var(--type-reply-line);
  --type-words-weight: var(--type-reply-weight);
}

@container (min-width: 600px) {
  [data-word-use="reply"] {
    --type-words-base-size: var(--type-reply-desk-base-size);
    --type-words-line: var(--type-reply-desk-line);
  }

  [data-word-use="question"] {
    --type-words-base-size: var(--type-question-desk-base-size);
    --type-words-line: var(--type-question-desk-line);
  }
}

[data-word-use="filing"] {
  --type-words-base-size: var(--type-filing-base-size);
  --type-words-line: var(--type-filing-line);
  --type-words-weight: var(--type-filing-weight);
}

[data-word-use="receipt-quote"] {
  --type-words-base-size: var(--type-receipt-quote-base-size);
  --type-words-line: var(--type-receipt-quote-line);
  --type-words-weight: var(--type-receipt-quote-weight);
}

:where(blockquote, .hive-steer__words),
[data-type="words"] {
  font-family: var(--type-words-family);
  font-size: max(var(--type-size-floor), calc(var(--type-words-base-size) * var(--type-words-size, 1)));
  font-weight: var(--type-words-weight);
  font-style: var(--type-words-style);
  line-height: var(--type-words-line);
  letter-spacing: var(--type-words-tracking);
  text-transform: var(--type-words-case);
  font-feature-settings: var(--type-words-features);
  font-variation-settings: var(--type-words-variation, normal);
  font-stretch: var(--type-words-stretch, normal);
}

:where(small, .hive-steer__header, .hive-steer-line__state, .hive-evidence__word),
[data-type="meta"],
[data-type="meta-strong"] {
  font-family: var(--type-meta-family);
  font-size: max(var(--type-size-floor), calc(var(--type-meta-base-size) * var(--type-meta-size, 1)));
  font-weight: var(--type-meta-weight);
  font-style: var(--type-meta-style);
  line-height: var(--type-meta-line);
  letter-spacing: var(--type-meta-tracking);
  text-transform: var(--type-meta-case);
  font-feature-settings: var(--type-meta-features);
  font-variation-settings: var(--type-meta-variation, normal);
  font-stretch: var(--type-meta-stretch, normal);
}

[data-type="meta-strong"] {
  font-size: max(var(--type-size-floor), calc(var(--type-meta-strong-base-size) * var(--type-meta-size, 1)));
  line-height: var(--type-meta-strong-line);
  font-weight: var(--type-meta-strong-weight);
}
:where(code, pre, kbd, samp, .gc-data),
[data-type="data"] {
  font-family: var(--type-data-family);
  font-size: max(var(--type-size-floor), calc(var(--type-data-base-size) * var(--type-data-size, 1)));
  font-weight: var(--type-data-weight);
  font-style: var(--type-data-style);
  line-height: var(--type-data-line);
  letter-spacing: var(--type-data-tracking);
  text-transform: var(--type-data-case);
  font-feature-settings: var(--type-data-features);
  font-variation-settings: var(--type-data-variation, normal);
  font-stretch: var(--type-data-stretch, normal);
}

:where(time, .gc-field__count),
[data-type="figure"] {
  font-family: var(--type-figure-family);
  font-size: max(var(--type-size-floor), calc(var(--type-figure-base-size) * var(--type-figure-size, 1)));
  font-weight: var(--type-figure-weight);
  font-style: var(--type-figure-style);
  line-height: var(--type-figure-line);
  letter-spacing: var(--type-figure-tracking);
  text-transform: var(--type-figure-case);
  font-feature-settings: var(--type-figure-features);
  font-variation-settings: var(--type-figure-variation, normal);
  font-stretch: var(--type-figure-stretch, normal);
}

:where(button, summary, .gc-button__label),
[data-type="action"] {
  font-family: var(--type-action-family);
  font-size: max(var(--type-size-floor), calc(var(--type-action-base-size) * var(--type-action-size, 1)));
  font-weight: var(--type-action-weight);
  font-style: var(--type-action-style);
  line-height: var(--type-action-line);
  letter-spacing: var(--type-action-tracking);
  text-transform: var(--type-action-case);
  font-feature-settings: var(--type-action-features);
  font-variation-settings: var(--type-action-variation, normal);
  font-stretch: var(--type-action-stretch, normal);
}

:where(.hive-person),
[data-type="person"] {
  font-family: var(--type-person-family);
  font-size: max(var(--type-size-floor), calc(var(--type-person-base-size) * var(--type-person-size, 1)));
  font-weight: var(--type-person-weight);
  font-style: var(--type-person-style);
  line-height: var(--type-person-line);
  letter-spacing: var(--type-person-tracking);
  text-transform: var(--type-person-case);
  font-feature-settings: var(--type-person-features);
  font-variation-settings: var(--type-person-variation, normal);
  font-stretch: var(--type-person-stretch, normal);
}
