/*
 * Similar Posts / related insights
 * Scoped to single article pages so archive and product cards keep their own rhythm.
 */

body:is(.single-post, .single-naibb2pr_products) .entry-related {
    margin-top: clamp(64px, 8vw, 112px);
    padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
    background: #f3f6f8;
    color: var(--geb-ink-deep);
}

body:is(.single-post, .single-naibb2pr_products) .entry-related .entry-related-inner {
    width: min(calc(100% - 48px), 1380px) !important;
    max-width: 1380px !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related .entry-related-inner-content {
    width: 100%;
    max-width: none;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 38px;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-header-link-wrap {
    padding-top: 14px;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-intro {
    max-width: 760px;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-eyebrow,
body:is(.single-post, .single-naibb2pr_products) .geb-related-card-label {
    margin: 0 0 14px;
    color: var(--geb-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-title {
    margin: 0;
    color: var(--geb-ink-deep);
    font-size: clamp(42px, 5.3vw, 72px) !important;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-description {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--geb-text);
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.55;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-header-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--geb-green-dark);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-header-link:hover,
body:is(.single-post, .single-naibb2pr_products) .geb-related-header-link:focus-visible {
    color: var(--geb-ink-deep);
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-header-link .kadence-svg-icon,
body:is(.single-post, .single-naibb2pr_products) .geb-related-card-arrow .kadence-svg-icon {
    width: 18px;
    height: 18px;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel {
    position: relative;
    padding-bottom: 38px;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__track {
    overflow: hidden;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__list {
    align-items: stretch;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__slide {
    height: auto;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrows {
    position: absolute;
    top: -104px;
    right: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrow {
    position: static;
    display: inline-flex;
    width: 54px;
    height: 54px;
    border: 1px solid var(--geb-ink-deep);
    border-radius: 50%;
    background: transparent;
    color: var(--geb-ink-deep);
    opacity: 1;
    transform: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrow:hover,
body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrow:focus-visible {
    border-color: var(--geb-ink-deep);
    background: var(--geb-ink-deep);
    color: #ffffff;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrow:disabled {
    opacity: 0.35;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__pagination {
    position: static;
    justify-content: flex-start;
    gap: 5px;
    margin: 24px 0 0;
    padding: 0;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__pagination__page {
    width: 28px;
    height: 3px;
    margin: 0;
    border-radius: 0;
    background: var(--geb-line);
    opacity: 1;
    transform: none;
    transition: background-color 180ms ease, width 180ms ease;
}

body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__pagination__page.is-active {
    width: 44px;
    background: var(--geb-green);
    transform: none;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow: hidden;
    border: 1px solid #cdd8e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card.is-featured {
    border-top: 4px solid var(--geb-green);
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-media {
    display: block;
    aspect-ratio: 1.62;
    overflow: hidden;
    background: #dfe8ee;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card:hover .geb-related-card-image,
body:is(.single-post, .single-naibb2pr_products) .geb-related-card:focus-within .geb-related-card-image {
    transform: scale(1.035);
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-body {
    display: flex;
    min-height: 274px;
    padding: 28px 28px 24px;
    flex-direction: column;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    margin-bottom: 17px;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-label {
    margin: 0;
    font-size: 12px;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--geb-red);
    border-radius: 4px;
    color: var(--geb-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card .entry-title {
    margin: 0;
    font-size: clamp(21px, 1.65vw, 29px) !important;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-wrap: balance;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card .entry-title a {
    color: var(--geb-ink-deep);
    text-decoration: none;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card .entry-title a:hover,
body:is(.single-post, .single-naibb2pr_products) .geb-related-card .entry-title a:focus-visible {
    color: var(--geb-green-dark);
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 18px 0 0;
    color: var(--geb-text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--geb-line);
    color: var(--geb-ink);
    font-size: 14px;
    line-height: 1.35;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-meta time {
    white-space: nowrap;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-divider {
    width: 1px;
    height: 18px;
    background: var(--geb-line);
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-reading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-reading .kadence-svg-icon {
    width: 16px;
    height: 16px;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-arrow {
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border: 1px solid var(--geb-ink-deep);
    border-radius: 50%;
    color: var(--geb-ink-deep);
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card.is-featured .geb-related-card-arrow {
    border-color: var(--geb-ink-deep);
    background: var(--geb-ink-deep);
    color: #ffffff;
}

body:is(.single-post, .single-naibb2pr_products) .geb-related-card-arrow:hover,
body:is(.single-post, .single-naibb2pr_products) .geb-related-card-arrow:focus-visible {
    border-color: var(--geb-green);
    background: var(--geb-green);
    color: #ffffff;
}

@media (max-width: 1024px) {
    body:is(.single-post, .single-naibb2pr_products) .entry-related .entry-related-inner {
        width: min(calc(100% - 32px), 1380px) !important;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-header {
        align-items: flex-start;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-header-link-wrap {
        padding-top: 31px;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-card-body {
        min-height: 250px;
        padding: 24px 22px 20px;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-card .entry-title {
        font-size: 22px !important;
    }
}

@media (max-width: 768px) {
    body:is(.single-post, .single-naibb2pr_products) .entry-related {
        margin-top: 56px;
        padding: 52px 0 42px;
    }

    body:is(.single-post, .single-naibb2pr_products) .entry-related .entry-related-inner {
        width: min(calc(100% - 28px), 1380px) !important;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-header {
        display: block;
        margin-bottom: 26px;
    }

    body:is(.single-post, .single-naibb2pr_products) .entry-related-title {
        font-size: clamp(40px, 13vw, 58px) !important;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-description {
        max-width: 32ch;
        margin-top: 16px;
        font-size: 16px;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-header-link-wrap {
        padding-top: 16px;
    }

    body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrows {
        position: static;
        justify-content: flex-end;
        margin-bottom: 16px;
    }

    body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrow {
        width: 48px;
        height: 48px;
    }

    body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__slide {
        width: 100% !important;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-card-media {
        aspect-ratio: 1.55;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-card-body {
        min-height: 242px;
        padding: 23px 20px 18px;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-card .entry-title {
        font-size: 24px !important;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-card-meta {
        gap: 9px;
        font-size: 13px;
    }

    body:is(.single-post, .single-naibb2pr_products) .geb-related-card-arrow {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:is(.single-post, .single-naibb2pr_products) .geb-related-card-image,
    body:is(.single-post, .single-naibb2pr_products) .geb-related-card-arrow,
    body:is(.single-post, .single-naibb2pr_products) .entry-related-carousel .splide__arrow {
        transition: none;
    }
}
