/* M09-HF01: image-free Insights header and uncropped safety poster cards. */
.ace-insights-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(6, 28, 58, 0.98), rgba(18, 70, 91, 0.94)),
        #061c3a;
    padding-block: clamp(3.75rem, 7vw, 6.25rem);
}

.ace-insights-header::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 72%, rgba(237, 50, 55, 0.16) 72% 72.4%, transparent 72.4%),
        linear-gradient(0deg, transparent 0 68%, rgba(255, 255, 255, 0.08) 68% 68.3%, transparent 68.3%);
    content: "";
    pointer-events: none;
}

.ace-insights-header .ace-container {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.ace-insights-header h1 {
    max-width: 18ch;
    margin: 0.5rem 0 0.85rem;
    color: #fff;
}

.ace-insights-header p {
    max-width: 68ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.ace-insights-index .ace-insights-grid {
    align-items: start;
}

.ace-insights-index .ace-insight-card {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.ace-insights-index .ace-insight-card > img.ace-insight-card__poster {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #eef3f6;
}

.ace-insights-index .ace-insight-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.ace-insights-index .ace-insight-card .ace-text-link {
    margin-top: auto;
    padding-top: 0.5rem;
}

.ace-insights-index .ace-insight-card--text-only {
    min-height: 100%;
    background: linear-gradient(145deg, #fff 0%, #f4f7fa 100%);
}

.ace-insights-index .ace-insight-card--text-only > div {
    justify-content: center;
    min-height: 300px;
}

@media (max-width: 620px) {
    .ace-insights-header {
        padding-block: 3.25rem;
    }

    .ace-insights-index .ace-insight-card--text-only > div {
        min-height: auto;
    }
}
