/* Local responsive refinements for the About page hero. */
html,
body {
    overflow-x: clip;
}

#wp--skip-link--target,
#main-content > .entry-content,
.entry-content > .wec-about {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.entry-content .wec-about,
.wp-block-post-content .wec-about,
.wp-site-blocks .wec-about {
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    margin-right: -50vw !important;
    margin-left: -50vw !important;
    overflow: hidden !important;
}

.wec-about-hero {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    min-height: 700px !important;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
}

.wec-about-hero-media {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 700px !important;
}

.wec-about-hero-media img {
    object-position: center;
}

.wec-about-hero-copy > .wec-about-hero-description {
    max-width: 720px;
    margin: 0;
    color: #d8dbd9;
    font-size: 19px;
    line-height: 1.65;
}

.wec-about-catalogue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    max-width: 100%;
    min-width: min(280px, 100%);
    min-height: 64px;
    margin-top: 32px;
    padding: 18px 32px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: var(--wec-red, #d52b1e);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

a.wec-about-catalogue-button:hover {
    border-color: var(--wec-red, #d52b1e);
    background: var(--wec-red, #d52b1e);
    color: #fff;
    text-decoration: none;
}

a.wec-about-catalogue-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.wec-about-catalogue-button[aria-disabled="true"] {
    cursor: not-allowed;
}

/* Keep the original timeline, but separate adjacent sections with a subtle
   warm/cool background contrast instead of changing their components. */
.wec-about-timeline {
    background:
        radial-gradient(circle at 88% 8%, rgba(200, 40, 30, .055), transparent 30%),
        linear-gradient(125deg, #f3f0eb 0%, #ecece7 100%) !important;
}

.wec-about-timeline-track {
    /* Leave room inside the horizontal scroller for the dots above the line. */
    border-top: 0;
    padding-top: 6px;
    background-image: linear-gradient(#c9cbc6, #c9cbc6);
    background-position: left 6px;
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

.wec-about-timeline-track strong {
    color: #c8281e;
}

.wec-about .wec-rm-section--certificates {
    background: #f4f7f6 !important;
    border-top: 1px solid #e4e9e7;
    border-bottom: 1px solid #e4e9e7;
}

.wec-rm-cert-preview {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.wec-rm-cert-preview:focus-visible {
    outline: 3px solid #c8281e;
    outline-offset: -3px;
}

.wec-rm-cert-preview img {
    transition: transform 180ms ease;
}

.wec-rm-cert-preview:hover img,
.wec-rm-cert-preview:focus-visible img {
    transform: scale(1.025);
}

@media (min-width: 1101px) {
    .wec-about-hero-copy {
        padding-left: clamp(112px, 7.5vw, 180px) !important;
    }
}

@media (max-width: 1100px) {
    .wec-about-hero {
        grid-template-columns: minmax(0, 56%) minmax(0, 44%) !important;
    }

    .wec-about-hero-copy {
        padding: 72px 46px !important;
    }

}

@media (max-width: 760px) {
    .wec-about-hero {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
    }

    .wec-about-hero-copy {
        padding: 64px 22px 54px !important;
    }

    .wec-about-hero-media {
        min-height: 320px !important;
    }

}
