/* RL-E106-ADVERT-SPLIT-REBUILD-V3 */

/* Existing desktop split */

.e106-crew-ad-layout {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: 16px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 10px 0 0;
    padding: 0;
}

.e106-crew-ad-layout__art,
.e106-crew-ad-layout__feed {
    min-width: 0;
}

/* Advertising card */

.e106-crew-ad-layout__art {
    display: block;
    position: relative;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    line-height: 0;
    box-sizing: border-box;
    background: #21112e;

    border: 1px solid var(--e106-home-card-border, #523866);
    border-radius: var(--e106-home-card-radius, 5px);
}

/* Link fills complete inner card */

.e106-crew-ad-layout__link {
    position: absolute;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    line-height: 0;
    text-decoration: none;
    background: transparent;
    box-sizing: border-box;
}

.e106-crew-ad-layout__link[href] {
    cursor: pointer;
}

.e106-crew-ad-layout__link[href]:focus-visible {
    outline: 3px solid var(--e106-yellow, #ecdd0e);
    outline-offset: -3px;
}

/* Image covers the link without letterboxing */

body.vibe-site
.e106-crew-ad-layout
.e106-crew-ad-layout__image {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    vertical-align: top !important;
}

/* Preserve Energy Connection feed */

.e106-crew-ad-layout__feed {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.e106-crew-ad-layout__feed > .ecv3 {
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
}

/* Tablet/mobile: feed first, artwork second */

@media (max-width: 1050px) {
    .e106-crew-ad-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .e106-crew-ad-layout__feed {
        order: 1;
    }

    .e106-crew-ad-layout__art {
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 1000 / 468;
    }
}
