.xd-tertiary-hero {
    position: relative;
    min-height: var(--xd-th-height, 500px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    background-color: #1c1c1c;
    background-image: var(--xd-th-bg-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.xd-tertiary-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.xd-tertiary-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 0 6vw 84px;
    /* Line the title up with the header logo: the header's 1350px row is centered with 20px of
       padding and a 20px module margin, so the logo sits at max(40px, 50% - 655px). */
    padding-left: max(40px, calc(50% - 655px));
    box-sizing: border-box;
}

.xd-tertiary-hero__title {
    max-width: 1000px;
    /* -0.04em: optical alignment with the logo; large bold capitals carry a left side bearing. */
    margin: 0 0 0 -0.04em;
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 8rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.xd-tertiary-hero__title-line {
    display: block;
}

.xd-tertiary-hero__title-parent,
.xd-tertiary-hero__title-slash,
.xd-tertiary-hero__title-current {
    display: inline;
}

.xd-tertiary-hero__registered-mark {
    font-size: 0.45em;
    vertical-align: super;
    line-height: 0;
    letter-spacing: normal;
}

.xd-tertiary-hero__title-slash {
    margin-right: 0.08em;
}

.xd-tertiary-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.xd-tertiary-hero__button,
.xd-tertiary-hero__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 30px;
    border-radius: 8px;
    background: #efbb47;
    color: #111111;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.xd-tertiary-hero__button:hover,
.xd-tertiary-hero__button:focus-visible {
    background: #ffd55a;
    color: #111111;
}

.xd-tertiary-hero__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .xd-tertiary-hero {
        min-height: 420px;
        border-bottom-left-radius: 36px;
        border-bottom-right-radius: 36px;
    }

    .xd-tertiary-hero__inner {
        padding: 0 32px 56px 40px;
    }
}

@media (max-width: 575px) {
    .xd-tertiary-hero {
        min-height: var(--xd-th-height-mobile, 360px);
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .xd-tertiary-hero__inner {
        padding: 0 22px 110px 40px;
    }

    .xd-tertiary-hero__title {
        max-width: 100%;
        font-size: clamp(2.5rem, 14vw, 4.25rem);
        line-height: 1.1;
    }

    /* Left-aligned on phones too, so the title starts at the logo's edge as at every other width. */
    .xd-tertiary-hero__title-line,
    .xd-tertiary-hero__title-line--current {
        text-align: left;
    }

    .xd-tertiary-hero__buttons {
        justify-content: flex-start;
    }
}

/* Hero Text subtitle: a smaller line under the title, in the same h1 (e.g. the department under "Faculty & Staff"). */
.xd-tertiary-hero__subtitle {
    display: block;
    margin-top: 14px;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
