/*
 * Compact standard-post header.
 *
 * The post template and every section below the hero remain inherited from
 * AffiliateCMS. The child theme only tightens the hero presentation.
 */

.acms-compact-post-header .post-hero--centered {
    padding: 38px 0 34px;
}

.acms-compact-post-header .post-hero__background {
    bottom: -48px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.acms-compact-post-header .post-hero__pattern {
    background-size: 28px 28px;
    opacity: 0.24;
}

.acms-compact-post-header .post-hero__content {
    align-items: center;
    column-gap: 12px;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    max-width: 1120px;
    row-gap: 0;
}

.acms-compact-post-header .post-hero .breadcrumb {
    grid-column: 1 / -1;
    margin: 0 0 12px;
}

.acms-compact-post-header .post-hero .breadcrumb__list {
    font-size: 12px;
}

.acms-compact-post-header .post-hero__title {
    font-size: clamp(34px, 4.2vw, 50px);
    grid-column: 1 / -1;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0 auto 18px;
    max-width: 1050px;
    text-wrap: balance;
}

.acms-compact-post-header .post-hero__excerpt {
    font-size: 16px;
    grid-column: 1 / -1;
    line-height: 1.6;
    margin: -3px auto 16px;
    max-width: 760px;
}

.acms-compact-post-header .post-hero__meta {
    gap: 16px;
    grid-column: 1;
    justify-self: end;
}

.acms-compact-post-header .post-hero__author {
    gap: 9px;
}

.acms-compact-post-header .post-hero__author-avatar {
    height: 38px;
    width: 38px;
}

.acms-compact-post-header .post-hero__author-name {
    font-size: 13px;
}

.acms-compact-post-header .post-hero__details {
    gap: 11px;
}

.acms-compact-post-header :is(
    .post-hero__date,
    .post-hero__updated,
    .post-hero__reading-time,
    .post-hero__views
) {
    font-size: 12px;
}

.acms-compact-post-header .post-hero__rating {
    border-radius: 10px;
    gap: 7px;
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
    padding: 8px 12px;
}

.acms-compact-post-header .post-hero__rating--empty i {
    font-size: 16px;
}

.acms-compact-post-header .post-hero__rating--empty .post-hero__rating-count,
.acms-compact-post-header .post-hero__rating-count {
    font-size: 12px;
}

@media (max-width: 900px) {
    .acms-compact-post-header .post-hero--centered {
        padding: 34px 0 30px;
    }

    .acms-compact-post-header .post-hero__title {
        font-size: clamp(34px, 5.4vw, 44px);
        max-width: 820px;
    }

    .acms-compact-post-header .post-hero__meta {
        gap: 12px;
    }

    .acms-compact-post-header .post-hero__details {
        gap: 8px 10px;
    }
}

@media (max-width: 767px) {
    .acms-compact-post-header .post-disclosure {
        font-size: 10px;
        line-height: 1.35;
        padding: 6px 12px;
    }

    .acms-compact-post-header .post-disclosure .container {
        padding-left: 0;
        padding-right: 0;
    }

    .acms-compact-post-header .post-disclosure__main {
        align-items: flex-start;
        gap: 6px;
        text-align: left;
    }

    .acms-compact-post-header .post-disclosure__icon {
        font-size: 11px;
        margin-top: 1px;
    }

    .acms-compact-post-header .post-hero--centered {
        padding: 22px 0 20px;
    }

    .acms-compact-post-header .post-hero__background {
        bottom: -12px;
    }

    .acms-compact-post-header .post-hero__content {
        display: flex;
        flex-direction: column;
    }

    .acms-compact-post-header .post-hero .breadcrumb {
        margin-bottom: 10px;
    }

    .acms-compact-post-header .post-hero__title {
        font-size: clamp(28px, 8.2vw, 34px);
        letter-spacing: -0.03em;
        line-height: 1.13;
        margin-bottom: 12px;
    }

    .acms-compact-post-header .post-hero__excerpt {
        font-size: 14px;
        margin: 0 auto 12px;
    }

    .acms-compact-post-header .post-hero__meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 12px;
        justify-content: center;
        width: 100%;
    }

    .acms-compact-post-header .post-hero__author {
        gap: 7px;
    }

    .acms-compact-post-header .post-hero__author-avatar {
        height: 32px;
        width: 32px;
    }

    .acms-compact-post-header .post-hero__author-name {
        font-size: 12px;
    }

    .acms-compact-post-header .post-hero__details {
        gap: 6px 9px;
    }

    .acms-compact-post-header :is(
        .post-hero__date,
        .post-hero__updated,
        .post-hero__reading-time,
        .post-hero__views
    ) {
        font-size: 11px;
    }

    .acms-compact-post-header .post-hero__rating {
        margin-top: 8px;
        padding: 7px 10px;
    }

    .acms-compact-post-header .post-hero__rating--empty i {
        font-size: 14px;
    }

    .acms-compact-post-header .post-hero__rating--empty .post-hero__rating-count,
    .acms-compact-post-header .post-hero__rating-count {
        font-size: 11px;
    }

    .acms-compact-post-header .toc-expandable {
        margin-bottom: 24px;
    }

    .acms-compact-post-header .toc-expandable__card {
        border-radius: 14px;
    }

    .acms-compact-post-header .toc-expandable__header {
        padding: 11px 12px;
    }

    .acms-compact-post-header .toc-expandable__header-left {
        gap: 10px;
    }

    .acms-compact-post-header .toc-expandable__icon {
        border-radius: 10px;
        height: 34px;
        width: 34px;
    }

    .acms-compact-post-header h4.toc-expandable__title,
    .acms-compact-post-header .toc-expandable__title {
        font-size: 14px;
    }

    .acms-compact-post-header .toc-expandable__meta {
        font-size: 11px;
        gap: 9px;
    }

    .acms-compact-post-header .toc-expandable__body {
        padding: 7px 9px;
    }

    .acms-compact-post-header .toc-expandable__list {
        gap: 2px;
    }

    .acms-compact-post-header .toc-expandable__link {
        font-size: 13px;
        gap: 7px;
        padding: 8px 9px;
    }

    .acms-compact-post-header .toc-expandable__link--h3 {
        font-size: 12px;
        padding-left: 18px;
    }

    .acms-compact-post-header .toc-expandable__number {
        font-size: 11px;
        height: 22px;
        min-width: 22px;
    }

    .acms-compact-post-header .toc-expandable__expand {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .acms-compact-post-header .post-hero > .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .acms-compact-post-header .post-hero__title {
        font-size: 28px;
        line-height: 1.14;
    }

    .acms-compact-post-header .post-hero__details {
        max-width: 320px;
    }

    .acms-compact-post-header .post-hero .breadcrumb__list {
        font-size: 11px;
    }

    .acms-compact-post-header .toc-expandable__meta {
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acms-compact-post-header .post-hero__rating {
        transition-duration: 0.01ms !important;
    }
}
