/* Interactive Escape News archive */

.news-page-hero {
    padding-bottom: 72px;
}

.news-sections {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 0 120px;
}

.news-rail-section {
    padding: 54px 0;
    border-bottom: 1px solid var(--line);
}

.news-rail-section:last-child {
    border-bottom: 0;
}

.news-rail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 0 5vw 22px;
}

.news-rail-heading h2 {
    margin: 6px 0 6px;
    font-size: clamp(2rem, 4.3vw, 4.7rem);
    line-height: .96;
    letter-spacing: -.045em;
}

.news-rail-heading p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
}

.news-gallery-controls {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.news-gallery-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: .2s;
}

.news-gallery-button:hover:not(:disabled) {
    border-color: rgba(235,205,62,.6);
    color: var(--gold);
    transform: translateY(-1px);
}

.news-gallery-button:disabled {
    opacity: .3;
    cursor: default;
}

.news-gallery-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 5vw 24px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.news-gallery-track::-webkit-scrollbar {
    display: none;
}

.news-gallery-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.news-gallery-track.is-dragging a {
    pointer-events: none;
}

.news-card {
    position: relative;
    flex: 0 0 clamp(285px, 36vw, 430px);
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg,var(--surface2),var(--surface));
    transition: transform .25s, border-color .25s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(235,205,62,.45);
}

.news-card__image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #0c0c0c;
}

.news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.news-card:hover .news-card__image img {
    transform: scale(1.04);
}

.news-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 25%, rgba(235,205,62,.15), transparent 32%),
        linear-gradient(145deg, #171717, #0b0b0b);
}

.news-card__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 8px;
    pointer-events: none;
}

.news-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
    color: #ddd;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-card__badge--pinned {
    color: #17150c;
    background: var(--gold);
}

.news-card__body {
    padding: 22px 24px 25px;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .74rem;
}

.news-card__meta time {
    color: var(--gold);
}

.news-card h3 {
    margin: 10px 0 7px;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.news-card__tagline {
    min-height: 3.2em;
    margin: 0;
    color: var(--muted);
}

.news-card__stats {
    display: flex;
    gap: 14px;
    margin-top: 17px;
    color: var(--muted);
    font-size: .76rem;
}

.news-card .progress {
    margin-top: 16px;
}

.news-card__cta {
    display: block;
    margin-top: 18px;
    color: var(--text);
    font-size: .84rem;
    font-weight: 800;
}

.news-gallery-empty {
    flex: 0 0 min(520px, 82vw);
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
}

/* Only Active Development entries need a project-progress display. */
body.ies-news-section-news .project-banner .progress--large,
body.ies-news-section-news .project-banner .progress--large + small,
body.ies-news-section-other-projects .project-banner .progress--large,
body.ies-news-section-other-projects .project-banner .progress--large + small {
    display: none;
}

@media (max-width: 850px) {
    .news-sections {
        padding-top: 12px;
    }

    .news-rail-section {
        padding: 38px 0;
    }

    .news-rail-head {
        align-items: center;
        padding-bottom: 16px;
    }

    .news-rail-heading p {
        font-size: .92rem;
    }

    .news-gallery-button {
        width: 42px;
        height: 42px;
    }

    .news-card {
        flex-basis: min(82vw, 355px);
    }

    .news-card__image {
        height: 205px;
    }
}

@media (max-width: 520px) {
    .news-rail-head {
        align-items: end;
        gap: 12px;
    }

    .news-rail-heading h2 {
        font-size: 2rem;
    }

    .news-rail-heading p {
        display: none;
    }

    .news-gallery-track {
        gap: 12px;
    }

    .news-card {
        flex-basis: 86vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-gallery-track {
        scroll-behavior: auto;
    }
}
