/* Collection landing page — editorial header above the shared rt-* map/grid layout.
   Sizing and type scale follow route_type_detail.css so the two pages read as siblings. */

.col-hero {
    position: relative;
}

/* Full-bleed header image with a bottom gradient so the title stays legible */
.col-hero__media {
    position: relative;
    width: 100%;
    height: clamp(220px, 38vw, 440px);
    overflow: hidden;
}

.col-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.col-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.col-hero__credit {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 1;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.col-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

/* When an image is present the heading block overlaps it and sits on the gradient */
.col-hero:not(.col-hero--plain) .col-hero__inner {
    position: relative;
    margin-top: clamp(-160px, -18vw, -90px);
    color: #fff;
}

.col-hero:not(.col-hero--plain) .col-hero__inner .section-eyebrow,
.col-hero:not(.col-hero--plain) .col-hero__count {
    color: rgba(255, 255, 255, 0.85);
}

.col-hero__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extra-bold);
    margin: 0 0 0.5rem;
    line-height: var(--line-height-tight);
}

.col-hero__count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: #888;
    margin: 0;
}

/* Intro copy */
.col-intro__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 1.5rem;
}

.col-intro__text {
    max-width: 68ch;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

@media (max-width: 768px) {
    .col-hero__inner {
        padding: 1.75rem 1.25rem;
    }

    .col-hero:not(.col-hero--plain) .col-hero__inner {
        margin-top: -70px;
    }

    .col-hero__title {
        font-size: var(--font-size-2xl);
    }

    .col-intro__inner {
        padding: 0 1.25rem 1.25rem;
    }
}
