/* ==========================================================================
   The featured band on top of the four Insights listings (2026-11-18): the article ticked "Featured on its Insights
   listing" in the admin. A dark photo band across the page, its copy on the homepage's 1278px container on all four
   listings (2026-11-19; Articles / Case Studies / Deep Dives used a 1050px column before). Type as the homepage: title 32/400 (24 on phones), lead 16, eyebrow 14 teal, Nunito Sans 14 outline button.
   Spec: docs/superpowers/specs/2026-11-18-insights-featured-design.md
   ========================================================================== */

.ins-feat {
    --ins-feat-gutter: max(24px, calc((100% - 1278px) / 2));
    --ins-feat-teal: #00acc1;
    --ins-feat-light: #e9ebeb;

    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 340px;
    padding: 44px var(--ins-feat-gutter);
    overflow: hidden;
    background: #151c1f;
    font-family: 'Poppins', sans-serif;
    isolation: isolate;
}

@media (min-width: 992px) {
    .ins-feat {
        --ins-feat-gutter: max(44px, calc((100% - 1278px) / 2));
    }
}

.ins-feat *,
.ins-feat *::before,
.ins-feat *::after {
    box-sizing: border-box;
}

/* Beats the site's global heading/paragraph margins. */
.ins-feat h2,
.ins-feat p {
    margin: 0;
    padding: 0;
}

.ins-feat__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

/* A scrim from the left keeps the copy over 4.5:1. */
.ins-feat::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(15, 26, 31, .94) 0, rgba(15, 26, 31, .86) 40%, rgba(15, 26, 31, 0) 75%);
}

.ins-feat__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 620px;
}

.ins-feat .ins-feat__eyebrow {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ins-feat-teal);
}

.ins-feat .ins-feat__title {
    margin-top: 8px;
    font-size: 32px;
    font-weight: 400;
    line-height: 41px;
    color: #fff;
}

.ins-feat__accent {
    color: var(--ins-feat-teal);
}

.ins-feat .ins-feat__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ins-feat-light);
}

.ins-feat__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 24px;
}

.ins-feat__btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid var(--ins-feat-light);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: .28px;
    color: var(--ins-feat-light);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}

.ins-feat__btn:hover,
.ins-feat__btn:focus-visible {
    border-color: var(--ins-feat-teal);
    color: var(--ins-feat-teal);
    text-decoration: none;
}

.ins-feat__btn:focus-visible {
    outline: 2px solid var(--ins-feat-teal);
    outline-offset: 2px;
}

.ins-feat__arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform .2s ease;
}

.ins-feat__btn:hover .ins-feat__arrow,
.ins-feat__btn:focus-visible .ins-feat__arrow {
    transform: translateX(3px);
}

/* The vertical rule between the button and the type/date, as in the mockup. */
.ins-feat__meta {
    padding-left: 24px;
    border-left: 1px solid rgba(233, 235, 235, .4);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ins-feat-light);
}

/* The listing under the band starts 44px lower, as on Interviews. */
.ins-feat + .ic-page {
    padding-top: 44px;
}

@media (max-width: 767px) {
    .ins-feat {
        min-height: 0;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .ins-feat::after {
        background: rgba(15, 26, 31, .82);
    }

    .ins-feat .ins-feat__title {
        font-size: 24px;
        line-height: 33px;
    }

    .ins-feat__btn {
        min-height: 44px;
    }

    .ins-feat__meta {
        padding-left: 0;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ins-feat__btn,
    .ins-feat__arrow {
        transition: none;
    }
}
