/**
 * Nascar Amaxa — Single post layout.
 * Same expanding grey hero as the blog archive / Scar Types page.
 */

.nascar-single-hero {
    display: grid;
    grid-template-rows: 1fr;
    width: 100%;
    background: #f4f4f4;
    color: #777777;
}

.nascar-single-hero__reveal {
    min-height: 0;
    overflow: hidden;
}

.nascar-single-hero__inner {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 80px;
    padding-block: 12px;
}

.nascar-single-hero__title {
    margin: 0;
    color: inherit;
    font-family: var(--font-nascar, 'Open Sans', sans-serif);
    font-size: 38px;
    overflow-wrap: anywhere;
    font-weight: 400;
    line-height: 1.45;
}

.nascar-single__container {
    padding-top: 60px;
    padding-bottom: 74px;
}

.nascar-single__featured-image {
    margin: 0 0 28px;
    width: 100%;
    overflow: hidden;
}

.nascar-single__image {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.nascar-single__content.entry-content {
    margin: 0;
    color: #777777;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.nascar-single__content > :first-child {
    margin-top: 0;
}

.nascar-single__content p {
    margin-block: 0 14px;
}

.nascar-single__content :is(h2, h3, h4) {
    margin-block: 28px 14px;
    color: #777777;
    line-height: 1.4;
}

.nascar-single__content :is(img, video, iframe) {
    max-width: 100%;
}

.nascar-single__content a {
    color: #d13359;
    text-underline-offset: 3px;
}

.nascar-single__content a:hover {
    color: #e44261;
}

.nascar-single__page-links {
    margin-top: 32px;
}

/* Section unfolds in normal flow — content is pushed down, never overlaid. */
@media (prefers-reduced-motion: no-preference) {
    .nascar-single-hero {
        animation: nascar-single-hero-expand 1500ms cubic-bezier(.22, 1, .36, 1) both;
    }

    .nascar-single-hero__inner {
        animation: nascar-single-hero-title 1250ms ease-out both;
    }

    @keyframes nascar-single-hero-expand {
        from { grid-template-rows: 0fr; }
        to { grid-template-rows: 1fr; }
    }

    @keyframes nascar-single-hero-title {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (max-width: 767px) {
    .nascar-single__container {
        padding-top: 30px;
        padding-bottom: 48px;
    }

    .nascar-single__featured-image {
        margin-bottom: 22px;
    }

    .nascar-single__content.entry-content {
        font-size: 15px;
    }
}
