.nc-resource-hero {
    position: relative;
    /* Pull the full-bleed hero flush under the nav by cancelling the shared
       full-width layout wrapper's px-6 py-6 top padding (24px). Applied as a
       default here (not a per-instance block style, which WP strips on save)
       so every resource detail page is flush, not just ones authored with the
       inline margin. margin-top doesn't stack, so any legacy inline -1.5rem
       simply wins over this identical value, so there is no double pull. */
    margin-top: -1.5rem;
    padding: 26px 0px 50px;
    font-family: 'Inter', sans-serif;
}

.nc-resource-hero a {
    text-decoration: none;
}

.nc-resource-hero__bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    background: linear-gradient(120deg, #28292f, #3c484d 140%);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px),
        linear-gradient(120deg, #28292f, #3c484d 140%);
    background-size: 16px 16px, auto;
    pointer-events: none;
}

/* Optional background image: covers the gradient and is darkened by a slate
   tint so the white text stays legible, matching the CTA hero and the site's
   other image heroes (page-hero.twig uses bg-slate at 75% opacity). */
.nc-resource-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nc-resource-hero__bg-tint {
    position: absolute;
    inset: 0;
    background: #3c484d;
    opacity: 0.75;
}

.nc-resource-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.nc-resource-hero__back {
    display: inline-block;
    color: #cfe6e8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.nc-resource-hero__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: center;
    max-width: 900px;
}

.nc-resource-hero__grid--no-image {
    grid-template-columns: 1fr;
}

.nc-resource-hero__image {
    height: 170px;
    border-radius: 10px;
    overflow: hidden;
    background: #2f3b3f;
}

.nc-resource-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nc-resource-hero__date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.nc-resource-hero__heading {
    font-family: 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.nc-resource-hero__description {
    color: #cfe6e8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 520px;
}

.nc-resource-hero__share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nc-resource-hero__share-label {
    font-size: 11px;
    font-weight: 700;
    color: #a9d8dc;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.nc-resource-hero__share ul {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-resource-hero__share ul > li + li {
    margin-left: 0 !important;
}

.nc-resource-hero__share li {
    list-style: none;
}

.nc-resource-hero__share a,
.nc-resource-hero__share button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
}

.nc-resource-hero__share a:hover,
.nc-resource-hero__share button:hover {
    background: rgba(255, 255, 255, 0.75);
}

.nc-resource-hero__share svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 767px) {
    .nc-resource-hero {
        padding: 18px 0px 26px;
    }

    .nc-resource-hero__bg {
        background: linear-gradient(160deg, #28292f, #3c484d 150%);
        background-image:
            radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px),
            linear-gradient(160deg, #28292f, #3c484d 150%);
        background-size: 14px 14px, auto;
    }

    .nc-resource-hero__back {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .nc-resource-hero__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: none;
    }

    .nc-resource-hero__image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .nc-resource-hero__date {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .nc-resource-hero__heading {
        font-size: 24px;
        margin: 0 0 10px;
    }

    .nc-resource-hero__description {
        font-size: 13px;
        margin: 0 0 14px;
        max-width: none;
    }

    .nc-resource-hero__share a,
    .nc-resource-hero__share button {
        width: 26px;
        height: 26px;
    }

    .nc-resource-hero__share svg {
        width: 12px;
        height: 12px;
    }
}
