/* Loaded only by the e-book catalog. Keep the header rainbow flush with the hero. */
body:has(.eb-catalog) #header-main-wrapper {
    border-bottom-width: 0;
}

.eb-catalog > .eb-main {
    max-width: none;
    padding: 0;
}

.eb-catalog .eb-catalog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 32px 60px;
    color: #fff;
    background: linear-gradient(180deg, #fc9942 0%, #e525d7 30%, #4361e9 100%);
}

.eb-catalog .eb-catalog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #17204447 0%, #17204447 60%, #17204400 100%);
    pointer-events: none;
}

.eb-catalog .eb-catalog-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    max-width: 1120px;
    margin: 0 auto;
}

.eb-catalog .eb-catalog-hero-copy {
    min-width: 0;
    padding: 12px 0;
}

.eb-catalog .eb-catalog-hero-badge {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 8px 18px;
    border: 1px solid #ffffff5c;
    border-radius: 999px;
    background: #1521478c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.eb-catalog .eb-catalog-hero-title {
    margin: 16px 0 12px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.025em;
    text-shadow: 0 2px 12px #17204426;
}

.eb-catalog .eb-catalog-hero-subtitle {
    max-width: 630px;
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 600;
    line-height: 1.8;
    text-wrap: pretty;
}

.eb-catalog .eb-catalog-hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.eb-catalog .eb-catalog-hero-mascot {
    display: block;
    width: auto;
    height: clamp(240px, 23vw, 310px);
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 14px #1720442e);
}

.eb-catalog .eb-catalog-shelf {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 5vw 70px;
}

.eb-catalog .eb-shelf-toolbar {
    border-top: 0;
    padding-top: 0;
}

@media (max-width: 639px) {
    .eb-catalog .eb-catalog-hero {
        padding: 40px 20px 34px;
    }

    .eb-catalog .eb-catalog-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        text-align: center;
    }

    .eb-catalog .eb-catalog-hero-copy {
        padding: 0;
    }

    .eb-catalog .eb-catalog-hero-title {
        margin: 14px 0 8px;
    }

    .eb-catalog .eb-catalog-hero-subtitle {
        margin: 0 auto;
        font-size: 18px;
    }

    .eb-catalog .eb-catalog-hero-mascot {
        height: 168px;
    }

    .eb-catalog .eb-catalog-hero::before {
        background: #17204429;
    }

    .eb-catalog .eb-catalog-shelf {
        padding: 30px 6vw 50px;
    }
}
