/* Figma "H2" section-title stack (desktop 23573:13880, mobile 22855:4350) in both
   render modes: inside .section-title (category) or raw in the column (tag, academy).
   Eyebrow = any tag with .eyebrow/.text-h1; title = h1/h2 without those classes. */

.category-header {
    margin: 7.7rem 0 4.2rem;
    font-family: var(--sf-pro-text);
}

.category-header .section-title {
    text-align: left;
}

.category-header .row :is(.section-title, [class*="col-"]) > *,
.category-header .row :is(.eyebrow, .text-h1) {
    margin: 0;
}

.category-header .row :is(.section-title, [class*="col-"]) > * + * {
    margin-top: 2.4rem;
}

/* block: a wpautop <p> wrapping the eyebrow <span> then has no line box of its own */
.category-header .row :is(.eyebrow, .text-h1) {
    display: block;
    color: var(--header-2);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.category-header .row :is(.eyebrow, .text-h1)::before {
    content: "— ";
    color: var(--red);
}

/* sitio-header2 values (theme.css), which only targets .section-title h2 */
.category-header .row :is(h1, h2):not(.eyebrow, .text-h1) {
    color: var(--header-2);
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: -2px;
}

.category-header .row :is(h1, h2):not(.eyebrow, .text-h1) strong {
    font-weight: 600;
}

/* sitio-paragraph1 */
.category-header .row p {
    color: var(--paragraph);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.6rem;
    letter-spacing: 0;
}

@media only screen and (min-width: 64rem) {
    /* Figma trims the eyebrow box to its cap height (10px): tight line, 24px to the title */
    .category-header .row :is(.eyebrow, .text-h1) {
        font-size: 1.4rem;
        line-height: 1;
    }

    .category-header .row :is(h1, h2):not(.eyebrow, .text-h1) {
        font-size: 4rem;
        line-height: 50px;
    }
}

@media only screen and (min-width: 768px) {
    .category-header {
        margin: 9rem 0 8rem;
    }
}

@media only screen and (min-width: 0) and (max-width: 769px) {
    .category-header [class^="col-"].center {
        text-align: left;
        padding: 0 1.8rem;
    }

    .category-header .col-12-12 {
        padding: 0 4.7rem;
    }
}
