/* E106-NEXT3-DIRECT-TITLE-LINKS-V141 */
/* E106-NEXT3-BADGE-ANCHOR-V137 */
/* E106-NEXT3-REBUILD-V130
   Independent Energy 106 schedule component.
   No legacy Vibe schedule selectors.
*/

.e106-next3 {
    container-type: inline-size;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    margin: 0 0 20px;
    background: #170621;
    border: 1px solid #4e3963;
    border-radius: 8px;
    color: #fff;
}

.e106-next3,
.e106-next3 * {
    box-sizing: border-box;
}

.e106-next3__body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px;
}

/* Reference heading */

.e106-next3__header {
    display: contents;
}

.e106-next3__brand {
    order: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
}

.e106-next3__brand > svg {
    display: none;
}

.e106-next3__brand strong {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    font-size: clamp(25px, 5cqw, 43px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.e106-next3__heading-white {
    color: #fff;
}

.e106-next3__heading-pink {
    color: #ed1584;
}

.e106-next3__brand::after {
    content: "";
    display: block;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    background: center / contain no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecdd0e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6v6l4 3'/%3E%3C/svg%3E");
}

/* THREE EQUAL COLUMNS — no old responsive overrides */

.e106-next3__rows {
    order: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
}

.e106-next3__item {
    position: relative;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 13px;
    background: transparent;
    border: 0;
    border-right: 1px solid #71368a;
    border-radius: 0;
    overflow: visible;
}

.e106-next3__item:first-child {
    padding-left: 13px;
}

.e106-next3__item:last-child {
    padding-right: 13px;
    border-right: 1px solid transparent;
    border-bottom: 0;
}

/* Large, equal square artwork */

.e106-next3__artwork {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #71368a;
    border-radius: 8px;
    background: #250638;
    position: relative;
}

.e106-next3__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.e106-next3__artwork a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Badge over the lower-left artwork corner */

.e106-next3__item :is(
    .e106-next3__label,
    .e106-next3__badge,
    .e106-next3__status,
    .e106-next3__state,
    .e106-next3__tag
) {
    /* E106-NEXT3-BADGE-CORNER-V135 */
    position: absolute;
        /* E106-NEXT3-BADGE-INSET-V136 */
    top: auto !important;
    transform: none !important;
right: auto !important;
    bottom: 2px !important;
    left: 2px !important;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 11px;
    border: 0;
    border-radius: 7px;
    background: #ed1584;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.e106-next3__item:first-child :is(
    .e106-next3__label,
    .e106-next3__badge,
    .e106-next3__status,
    .e106-next3__state,
    .e106-next3__tag
) {
    left: 2px !important;
}

.e106-next3__item[data-e106-next3-status="ON AIR"] :is(
    .e106-next3__label,
    .e106-next3__badge,
    .e106-next3__status,
    .e106-next3__state,
    .e106-next3__tag
) {
    background: #ecdd0e;
    color: #170621;
}

/* Show information sits BELOW the image */

.e106-next3__details {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 0 0;
}

.e106-next3__title {
    display: block;
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(19px, 3.2cqw, 29px);
    font-weight: 900;
    line-height: 1.12;
    overflow-wrap: break-word;
}

.e106-next3__title a,
.e106-next3__title a:visited,
body.vibe-site.vibe-site--inner .e106-next3 a.e106-next3__title,
body.vibe-site.vibe-site--inner .e106-next3 a.e106-next3__title:visited,
body.vibe-site.vibe-site--inner .e106-next3 .e106-next3__title a,
body.vibe-site.vibe-site--inner .e106-next3 .e106-next3__title a:visited
{
    color: #fff;
    /* E106-NEXT3-TITLE-LINKS-V140B */
    text-decoration: none !important;
}

.e106-next3__title a:hover,
.e106-next3__title a:focus-visible,
body.vibe-site.vibe-site--inner .e106-next3 a.e106-next3__title:hover,
body.vibe-site.vibe-site--inner .e106-next3 a.e106-next3__title:focus-visible,
body.vibe-site.vibe-site--inner .e106-next3 .e106-next3__title a:hover,
body.vibe-site.vibe-site--inner .e106-next3 .e106-next3__title a:focus-visible
{
    color: #ed1584;
    text-decoration: none !important;
}

.e106-next3__presenter {
    position: static;
    display: block;
    width: 100%;
    margin: 8px 0 0;
    color: #cfb7dd;
    font-size: clamp(14px, 2.3cqw, 19px);
    font-weight: 500;
    line-height: 1.3;
}

.e106-next3__time {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin: auto 0 0;
    padding: 16px 0 0;
    color: #cfb7dd;
    font-size: clamp(12px, 1.9cqw, 16px);
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}

.e106-next3__time svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

/* Full-width CTA underneath the three cards */

.e106-next3__full-link {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 7px 14px !important;
    border: 1px solid #ed1584;
    border-radius: 9px;
    background: #ed1584;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;


    /* Keep oversized SVGs from stretching the CTA. */
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    overflow: hidden !important;
    align-items: center !important;
}

.e106-next3__full-link span,
.e106-next3__full-link svg {
    color: #fff;
}

.e106-next3__full-link svg {

    /* E106-ARROW-REPAIR-V132B */
    display: block !important;
    position: static !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.e106-next3__full-link:hover,
.e106-next3__full-link:focus-visible {
    background: #d71379;
    border-color: #d71379;
    color: #fff;
    text-decoration: none;
}

/* Only a genuinely narrow widget becomes stacked.
   The desktop/sidebar reference remains THREE across. */

/* E106-NEXT3-THREE-COLS-V131
   Three cards in one row at every sidebar width.
   Only dimensions scale down. No stacked layout.
*/
@container (max-width: 460px) {

    .e106-next3__body {
        gap: 14px;
        padding: 12px;
    }

    .e106-next3__brand strong {
        font-size: clamp(16px, 5.4cqw, 26px);
        line-height: 1.05;
    }

    .e106-next3__brand::after {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
    }

    .e106-next3__rows {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .e106-next3__item {
        min-width: 0;
        padding: 0 6px;
        border-right: 1px solid #71368a;
    }

    .e106-next3__item:first-child {
        padding-left: 6px;
    }

    .e106-next3__item:last-child {
        padding-right: 6px;
        border-right: 1px solid transparent;
    }

    .e106-next3__artwork {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: none;
        border-radius: 5px;
    }

    .e106-next3__item :is(
        .e106-next3__label,
        .e106-next3__badge,
        .e106-next3__status,
        .e106-next3__state,
        .e106-next3__tag
    ) {
        top: auto !important;
    transform: none !important;
left: 2px !important;
        padding: 5px 6px;
        border-radius: 4px;
        font-size: 9px;
        line-height: 1;
    position: absolute;
    right: auto !important;
    bottom: 2px !important;
    pointer-events: none;
}

    .e106-next3__item:first-child :is(
        .e106-next3__label,
        .e106-next3__badge,
        .e106-next3__status,
        .e106-next3__state,
        .e106-next3__tag
    ) {
        left: 2px !important;
    }

    .e106-next3__details {
        min-width: 0;
        padding: 9px 0 0;
        overflow: visible;
    }

    .e106-next3__title {
        display: block;
        width: 100%;
        font-size: clamp(10px, 3.2cqw, 15px);
        line-height: 1.15;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: break-word;
    }

    .e106-next3__presenter {
        display: block;
        width: 100%;
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.25;
    }

    .e106-next3__time {
        position: static;
        display: flex;
        align-items: center;
        gap: 3px;
        width: 100%;
        margin-top: auto;
        padding-top: 10px;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
    }

    .e106-next3__time svg {
        flex: 0 0 12px;
        width: 12px;
        height: 12px;
    }

    .e106-next3__full-link {
        min-height: 45px;
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* E106-NEXT3-EQUAL-HEIGHTS-V133 */
/* Keep the three presenter cards visually aligned. */
.e106-next3__grid {
    align-items: stretch !important;
}

.e106-next3__grid > * {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100% !important;
}

.e106-next3__grid > * > * {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

.e106-next3__art {
    flex: 0 0 auto !important;
}

.e106-next3__title,
.e106-next3__title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.05 !important;
    min-height: 2.15em !important;
    max-height: 2.15em !important;
}

.e106-next3__presenter,
.e106-next3__host,
.e106-next3__subtitle {
    min-height: 1.25em !important;
}

.e106-next3__meta,
.e106-next3__time,
.e106-next3__time-row,
.e106-next3__details {
    margin-top: auto !important;
}


/* RL-E106-SIDEBAR-COLOURS-V1
   Energy 106 Next Three card background only.
   Show images, cards, buttons and spacing unchanged.
*/
body.vibe-site .e106-next3 {
    background: #1D062D !important;
}
