/*
 * Type presets (gl-type-*) — shared by Advanced Heading, Info Box, Count Up and any
 * block that offers the design's type styles. Always enqueued (glacial-blocks.php),
 * so a block using a preset never depends on another block being on the page.
 *
 * Presets reproduce New Vision's own type rules from css/webflow.css (h2–h6, body,
 * .eye-brow, .eyebrow-txt, .special-line, the hero lines), so any tag can wear any
 * look. Each preset sets EVERY typographic property, because it has to override the
 * element styles of whatever tag it lands on. Single-class (0,1,0): kit option
 * utilities (0,2,0) — size, colour, margins — win.
 *
 * The design's signature heading is two weights of Source Serif 4: a light line and
 * a <strong> bold line ("Advanced Technology.<br><strong>More Personalized
 * Care.</strong>"). The serif presets keep <strong> at 700 for that.
 *
 * Preset colours read --gl-text-color first: a row/column with a text colour
 * passes it down (see the colour section of assets/kit.css).
 */
.gl-type-hero,
.gl-type-h2,
.gl-type-h3 {
    font-family: var(--gl-serif);
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0;
}

.gl-type-hero strong,
.gl-type-h2 strong,
.gl-type-h3 strong {
    font-weight: 700;
}

/* Like the hero lines and .cat-line-1. */
.gl-type-hero {
    margin-bottom: 20px;
    color: var(--gl-text-color, var(--gl-ink));
    font-size: 3em;
    font-weight: 400;
    line-height: 1.05em;
}

/* The design's h2 — the section heading. */
.gl-type-h2 {
    margin-bottom: 20px;
    color: var(--gl-text-color, var(--gl-ink));
    font-size: 2.5em;
    font-weight: 300;
    line-height: 1.05em;
}

.gl-type-h3 {
    margin-bottom: 15px;
    color: var(--gl-text-color, var(--gl-ink));
    font-size: 1.5em;
    font-weight: 400;
    line-height: 1.2em;
}

.gl-type-h4,
.gl-type-h5,
.gl-type-lead,
.gl-type-body,
.gl-type-small {
    font-family: var(--gl-sans);
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0;
}

/* The design's h4: green, bold. */
.gl-type-h4 {
    margin-bottom: 10px;
    color: var(--gl-text-color, var(--gl-brand));
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2em;
}

/* The design's h5 is gold; text-weight gold for AA contrast. */
.gl-type-h5 {
    margin-bottom: 15px;
    color: var(--gl-text-color, var(--gl-accent-text));
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2em;
}

/* .eye-brow — the gold pill. Inline-block so it hugs its text like the design's. */
.gl-type-eyebrow {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 10px 20px;
    color: var(--gl-white);
    background-color: var(--gl-accent);
    font-family: var(--gl-sans);
    font-size: .9em;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2em;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* .eyebrow-txt — sage letter-spaced caps, no ground. */
.gl-type-label {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--gl-text-color, var(--gl-brand-mid));
    font-family: var(--gl-sans);
    font-size: .9em;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2em;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* .special-line — the gold line under a heading. */
.gl-type-tagline {
    margin-top: -5px;
    margin-bottom: 20px;
    color: var(--gl-text-color, var(--gl-accent-text));
    font-family: var(--gl-sans);
    font-size: 1.2em;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3em;
    letter-spacing: normal;
    text-transform: none;
}

.gl-type-lead {
    margin-bottom: 25px;
    color: inherit;
    font-size: 1.25em;
    font-weight: 400;
    line-height: 1.6em;
}

.gl-type-body {
    margin-bottom: 20px;
    color: inherit;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.75em;
}

.gl-type-small {
    margin-bottom: 15px;
    color: inherit;
    font-size: .8em;
    font-weight: 400;
    line-height: 1.4em;
}

@media (max-width: 991px) {
    .gl-type-hero { font-size: 2.5em; }
    .gl-type-h2 { font-size: 2em; }
}

@media (max-width: 767px) {
    .gl-type-hero { font-size: 2em; }
}

@media (max-width: 479px) {
    .gl-type-hero { font-size: 1.8em; }
    .gl-type-h2 { font-size: 1.7em; }
    .gl-type-eyebrow,
    .gl-type-label { font-size: .8em; }
    .gl-type-tagline { font-size: 1em; }
    .gl-type-lead { font-size: 1.1em; line-height: 1.5em; }
}
