/* Tabbed post module */
.vdma-tabbed-posts {
    --vdma-tabs-blue: #222f5b;
    --vdma-tabs-yellow: #ffd200;
    --vdma-tabs-line: #e4e7ee;
    --vdma-tabs-muted: #5f6780;

    color: var(--vdma-tabs-blue);
    font-family: inherit;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

.vdma-tabbed-posts__tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 4px solid var(--vdma-tabs-yellow);
    border-bottom: 1px solid var(--vdma-tabs-line);
    background: #f5f6f8;
    scroll-behavior: smooth;
    scroll-padding-inline: 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vdma-tabbed-posts__tabs.is-dragging {
    scroll-snap-type: none;
    user-select: none;
}

.vdma-tabbed-posts__tabs.is-dragging .vdma-tabbed-posts__tab {
    pointer-events: none;
}

.vdma-tabbed-posts__tabs::-webkit-scrollbar {
    display: none;
}

.vdma-tabbed-posts__tab {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 14px 22px 13px;
    border: 0;
    border-right: 1px solid var(--vdma-tabs-line);
    background: transparent;
    color: var(--vdma-tabs-blue);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vdma-tabbed-posts__tab-line {
    display: block;
    white-space: nowrap;
}

.vdma-tabbed-posts__scroll {
    position: absolute;
    top: 4px;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 72px;
    border: 0;
    background: linear-gradient(90deg, rgba(245, 246, 248, 0), #f5f6f8 38%);
    color: var(--vdma-tabs-blue);
    cursor: pointer;
}

.vdma-tabbed-posts__scroll span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 32px;
    border-radius: 0;
    background: var(--vdma-tabs-yellow);
    color: var(--vdma-tabs-blue);
    font-size: 28px;
    line-height: 1;
}

.vdma-tabbed-posts__scroll--prev {
    left: 0;
    background: linear-gradient(270deg, rgba(245, 246, 248, 0), #f5f6f8 38%);
}

.vdma-tabbed-posts__scroll--next {
    right: 0;
}

.vdma-tabbed-posts__scroll:focus-visible {
    outline: 2px solid var(--vdma-tabs-yellow);
    outline-offset: -5px;
}

@media (min-width: 981px) {
    .vdma-tabbed-posts.has-tab-overflow .vdma-tabbed-posts__scroll {
        display: flex;
    }

    .vdma-tabbed-posts.is-tab-scroll-start .vdma-tabbed-posts__scroll--prev,
    .vdma-tabbed-posts.is-tab-scroll-end .vdma-tabbed-posts__scroll--next {
        display: none;
    }
}

.vdma-tabbed-posts__tab::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -1px;
    left: 18px;
    height: 3px;
    background: transparent;
}

.vdma-tabbed-posts__tab:hover,
.vdma-tabbed-posts__tab:focus-visible,
.vdma-tabbed-posts__tab.is-active {
    background: #fff;
    color: var(--vdma-tabs-blue);
}

.vdma-tabbed-posts__tab:focus-visible {
    outline: 2px solid var(--vdma-tabs-yellow);
    outline-offset: -4px;
}

.vdma-tabbed-posts__tab.is-active::after {
    background: var(--vdma-tabs-yellow);
}

.vdma-tabbed-posts__panels {
    border-right: 1px solid var(--vdma-tabs-line);
    border-bottom: 1px solid var(--vdma-tabs-line);
    border-left: 1px solid var(--vdma-tabs-line);
    background: #fff;
}

.vdma-tabbed-posts__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 0;
}

.vdma-tabbed-posts__panel[hidden] {
    display: none;
}

.vdma-tabbed-posts__lead {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-width: 0;
    border-right: 1px solid var(--vdma-tabs-line);
}

.vdma-tabbed-posts__lead-media {
    position: relative;
    padding: 28px 30px 0;
    background: #fff;
    box-sizing: border-box;
}

.vdma-tabbed-posts__lead-image,
.vdma-tabbed-posts__item-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eef0f4;
}

.vdma-tabbed-posts__lead-image {
    background: #fff;
    box-sizing: border-box;
}

.vdma-tabbed-posts__lead-image img,
.vdma-tabbed-posts__item-image img,
.vdma-tabbed-posts__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vdma-tabbed-posts__lead-image img,
.vdma-tabbed-posts__lead-image .vdma-tabbed-posts__image-placeholder {
    aspect-ratio: 16 / 9;
}

.vdma-tabbed-posts__image-placeholder {
    min-height: 100%;
    background: linear-gradient(135deg, #eef0f4 0%, #dfe3eb 100%);
}

.vdma-tabbed-posts__lead-content {
    padding: 28px 30px 32px;
}

.vdma-tabbed-posts__lead-title,
.vdma-tabbed-posts__item-title {
    margin: 0;
    padding: 0;
    color: var(--vdma-tabs-blue) !important;
    font-weight: 500;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.vdma-tabbed-posts__lead-title {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.1;
}

.vdma-tabbed-posts__lead-title a,
.vdma-tabbed-posts__item-title a {
    color: var(--vdma-tabs-blue) !important;
    text-decoration: none;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.vdma-tabbed-posts__lead-title a:hover,
.vdma-tabbed-posts__lead-title a:focus-visible,
.vdma-tabbed-posts__item-title a:hover,
.vdma-tabbed-posts__item-title a:focus-visible {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--vdma-tabs-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.vdma-tabbed-posts__meta,
.vdma-tabbed-posts__tags {
    margin: 0;
    color: var(--vdma-tabs-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.vdma-tabbed-posts__tags {
    margin: 10px 0 0;
    font-weight: 400;
}

.vdma-tabbed-posts__lead .vdma-tabbed-posts__date {
    font-size: 15px;
}

.vdma-tabbed-posts__tags a {
    color: inherit;
    text-decoration: none;
}

.vdma-tabbed-posts__tags a:hover,
.vdma-tabbed-posts__tags a:focus-visible {
    color: #111;
    text-decoration: underline;
    text-decoration-color: var(--vdma-tabs-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.vdma-tabbed-posts__excerpt {
    margin: 16px 0 0;
    color: #111;
    font-size: 16px;
    line-height: 1.65;
}

.vdma-tabbed-posts__lead-content .vdma-tabbed-posts__excerpt {
    font-size: 18px;
    line-height: 1.5;
}

.vdma-tabbed-posts__item-excerpt {
    font-size: 15px;
    line-height: 1.5;
}

.vdma-tabbed-posts__read-more-wrap {
    margin: 22px 0 0;
}

.vdma-tabbed-posts__read-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 220px;
    box-sizing: border-box;
    padding: 1.5rem 2rem;
    border: 1px solid var(--vdma-tabs-yellow);
    background: transparent;
    color: var(--vdma-tabs-blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
}

.vdma-tabbed-posts__read-more:hover,
.vdma-tabbed-posts__read-more:focus-visible {
    background: var(--vdma-tabs-blue);
    color: #fff;
    text-decoration: none;
}

.vdma-tabbed-posts .vdma-tabbed-posts__lead-media .vdma-image-credit {
    position: absolute;
    right: 30px;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 8px 10px;
    border-radius: 4px 4px 0 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    transform: translate(100%, 0) rotate(-90deg);
    transform-origin: bottom left;
}

.vdma-tabbed-posts .vdma-image-credit {
    margin: 8px 30px 0;
    color: var(--vdma-tabs-muted);
    font-size: 12px;
    line-height: 1.45;
}

.vdma-tabbed-posts .vdma-tabbed-posts__lead-media .vdma-image-credit a {
    color: inherit;
    text-decoration: none;
}

.vdma-tabbed-posts .vdma-image-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.vdma-tabbed-posts__list {
    display: grid;
    align-content: start;
}

.vdma-tabbed-posts__item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    min-width: 0;
    padding: 20px;
    border-bottom: 1px solid var(--vdma-tabs-line);
}

.vdma-tabbed-posts__item:last-child {
    border-bottom: 0;
}

.vdma-tabbed-posts__item-image {
    height: 100%;
    min-height: 112px;
}

.vdma-tabbed-posts__item-content {
    min-width: 0;
    align-self: center;
}

.vdma-tabbed-posts__item-title {
    font-size: 18px !important;
    line-height: 1.2;
}

.vdma-tabbed-posts__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 30px;
    color: #111;
}

.vdma-tabbed-posts__loading {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 28px 30px;
    color: var(--vdma-tabs-muted);
    font-size: 15px;
}

@media (max-width: 980px) {
    .vdma-tabbed-posts__panel {
        grid-template-columns: 1fr;
    }

    .vdma-tabbed-posts__lead {
        border-right: 0;
        border-bottom: 1px solid var(--vdma-tabs-line);
    }

    .vdma-tabbed-posts__lead-content {
        padding: 24px;
    }

    .vdma-tabbed-posts__lead-media {
        padding: 24px 24px 0;
    }

    .vdma-tabbed-posts .vdma-tabbed-posts__lead-media .vdma-image-credit {
        right: 24px;
    }

    .vdma-tabbed-posts .vdma-image-credit {
        margin-right: 24px;
        margin-left: 24px;
    }
}

@media (max-width: 640px) {
    .vdma-tabbed-posts__tab {
        min-height: 50px;
        padding: 14px 18px 13px;
        font-size: 14px;
    }

    .vdma-tabbed-posts__lead-content {
        padding: 22px 18px 24px;
    }

    .vdma-tabbed-posts__lead-media {
        padding: 22px 18px 0;
    }

    .vdma-tabbed-posts .vdma-tabbed-posts__lead-media .vdma-image-credit {
        right: 18px;
    }

    .vdma-tabbed-posts .vdma-image-credit {
        margin-right: 18px;
        margin-left: 18px;
    }

    .vdma-tabbed-posts__lead-title {
        font-size: 24px;
    }

    .vdma-tabbed-posts__excerpt {
        font-size: 15px;
    }

    .vdma-tabbed-posts__item {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 18px;
    }

    .vdma-tabbed-posts__item-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin-bottom: 16px;
    }

    .vdma-tabbed-posts__item-content {
        align-self: auto;
    }

    .vdma-tabbed-posts__item-title {
        font-size: 18px !important;
    }
}
