.ehnpc-card,
.ehnpc-card * {
    box-sizing: border-box;
}

.ehnpc-card {
    --ehnpc-radius: 24px;
    --ehnpc-height: 420px;
    --ehnpc-min-height: 0px;
    --ehnpc-mobile-height: 360px;
    --ehnpc-mobile-min-height: 0px;
    --ehnpc-padding: 32px;
    --ehnpc-mobile-padding: 24px;
    --ehnpc-content-max-width: 92%;
    --ehnpc-bg-1: #3452ff;
    --ehnpc-bg-2: #07153f;
    --ehnpc-gradient-angle: 135deg;
    --ehnpc-overlay-color: #000;
    --ehnpc-overlay-opacity: .25;
    --ehnpc-overlay-hover-opacity: var(--ehnpc-overlay-opacity);
    --ehnpc-image-grayscale: 0;
    --ehnpc-image-grayscale-hover: 0;
    --ehnpc-image-fit: cover;
    --ehnpc-image-position: center center;
    --ehnpc-image-url: none;
    --ehnpc-shadow: 0 18px 50px rgba(0,0,0,.16);
    --ehnpc-title-color: #fff;
    --ehnpc-title-opacity: 1;
    --ehnpc-title-size: 38px;
    --ehnpc-title-weight: 850;
    --ehnpc-title-line-height: 1.03;
    --ehnpc-subtitle-color: #fff;
    --ehnpc-subtitle-opacity: .85;
    --ehnpc-subtitle-size: 17px;
    --ehnpc-subtitle-weight: 650;
    --ehnpc-subtitle-line-height: 1.35;
    --ehnpc-body-color: #fff;
    --ehnpc-body-opacity: .82;
    --ehnpc-body-size: 15px;
    --ehnpc-body-weight: 500;
    --ehnpc-body-line-height: 1.45;
    --ehnpc-cta-bg: #3452ff;
    --ehnpc-cta-color: #fff;
    --ehnpc-cta-size: 14px;
    --ehnpc-cta-weight: 800;
    --ehnpc-cta-padding: 10px 16px;
    --ehnpc-cta-border-width: 0px;
    --ehnpc-cta-border-color: transparent;
    --ehnpc-cta-radius: 999px;
    --ehnpc-cta-margin-top: 10px;
    --ehnpc-badge-offset: 16px;
    --ehnpc-badge-padding: 7px 11px;
    --ehnpc-badge-radius: 999px;
    --ehnpc-badge-size: 12px;
    --ehnpc-badge-weight: 800;
    --ehnpc-badge-border-width: 1px;
    --ehnpc-badge-bg: #fff;
    --ehnpc-badge-color: #111827;
    --ehnpc-badge-border: rgba(255,255,255,.55);
    --ehnpc-badge-opacity: .92;
    --ehnpc-tl-bg: var(--ehnpc-badge-bg);
    --ehnpc-tl-color: var(--ehnpc-badge-color);
    --ehnpc-tl-border: var(--ehnpc-badge-border);
    --ehnpc-tl-opacity: var(--ehnpc-badge-opacity);
    --ehnpc-tr-bg: var(--ehnpc-badge-bg);
    --ehnpc-tr-color: var(--ehnpc-badge-color);
    --ehnpc-tr-border: var(--ehnpc-badge-border);
    --ehnpc-tr-opacity: var(--ehnpc-badge-opacity);
    --ehnpc-bl-bg: var(--ehnpc-badge-bg);
    --ehnpc-bl-color: var(--ehnpc-badge-color);
    --ehnpc-bl-border: var(--ehnpc-badge-border);
    --ehnpc-bl-opacity: var(--ehnpc-badge-opacity);
    --ehnpc-br-bg: var(--ehnpc-badge-bg);
    --ehnpc-br-color: var(--ehnpc-badge-color);
    --ehnpc-br-border: var(--ehnpc-badge-border);
    --ehnpc-br-opacity: var(--ehnpc-badge-opacity);

    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    height: var(--ehnpc-height);
    min-height: var(--ehnpc-min-height);
    overflow: hidden !important;
    border-radius: var(--ehnpc-radius) !important;
    background: linear-gradient(var(--ehnpc-gradient-angle), var(--ehnpc-bg-1), var(--ehnpc-bg-2));
    box-shadow: none;
    text-decoration: none !important;
    color: inherit;
    -webkit-transform: none !important;
    transform: none !important;
}

.ehnpc-card:focus-visible {
    outline: 3px solid rgba(52,82,255,.45);
    outline-offset: 3px;
}

.ehnpc-media,
.ehnpc-bg,
.ehnpc-image,
.ehnpc-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}


.ehnpc-media {
    z-index: 0;
    overflow: hidden !important;
    border-radius: inherit !important;
    background: inherit;
    pointer-events: none;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: linear-gradient(#fff, #fff);
}

.ehnpc-bg {
    z-index: 0;
    background-color: var(--ehnpc-bg-1);
    background-image: linear-gradient(var(--ehnpc-gradient-angle), var(--ehnpc-bg-1), var(--ehnpc-bg-2)), var(--ehnpc-image-url) !important;
    background-size: cover, var(--ehnpc-image-fit, cover) !important;
    background-position: center, var(--ehnpc-image-position, center center) !important;
    background-repeat: no-repeat !important;
}

.ehnpc-image {
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: var(--ehnpc-image-fit, cover) !important;
    object-position: var(--ehnpc-image-position, center center) !important;
}

.ehnpc-overlay {
    z-index: 2;
    background: var(--ehnpc-overlay-color);
    opacity: var(--ehnpc-overlay-opacity);
    pointer-events: none;
}

.ehnpc-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: var(--ehnpc-content-max-width);
    padding: var(--ehnpc-padding);
}

.ehnpc-v-top { align-items: flex-start; }
.ehnpc-v-center { align-items: center; }
.ehnpc-v-bottom { align-items: flex-end; }

.ehnpc-h-left .ehnpc-content { margin-right: auto; }
.ehnpc-h-center .ehnpc-content { margin-left: auto; margin-right: auto; }
.ehnpc-h-right .ehnpc-content { margin-left: auto; }

.ehnpc-text-left { text-align: left; }
.ehnpc-text-center { text-align: center; }
.ehnpc-text-right { text-align: right; }

.ehnpc-title,
.ehnpc-subtitle,
.ehnpc-body {
    display: block;
    margin: 0;
    text-wrap: balance;
}

.ehnpc-title {
    color: var(--ehnpc-title-color);
    opacity: var(--ehnpc-title-opacity);
    font-size: var(--ehnpc-title-size);
    font-weight: var(--ehnpc-title-weight);
    line-height: var(--ehnpc-title-line-height);
    letter-spacing: -0.04em;
}

.ehnpc-subtitle {
    color: var(--ehnpc-subtitle-color);
    opacity: var(--ehnpc-subtitle-opacity);
    font-size: var(--ehnpc-subtitle-size);
    font-weight: var(--ehnpc-subtitle-weight);
    line-height: var(--ehnpc-subtitle-line-height);
}

.ehnpc-body {
    color: var(--ehnpc-body-color);
    opacity: var(--ehnpc-body-opacity);
    font-size: var(--ehnpc-body-size);
    font-weight: var(--ehnpc-body-weight);
    line-height: var(--ehnpc-body-line-height);
    margin-top: 4px;
}

.ehnpc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: inherit;
    width: max-content;
    max-width: 100%;
    margin-top: var(--ehnpc-cta-margin-top);
    padding: var(--ehnpc-cta-padding);
    border: var(--ehnpc-cta-border-width) solid var(--ehnpc-cta-border-color);
    border-radius: var(--ehnpc-cta-radius);
    background: var(--ehnpc-cta-bg);
    color: var(--ehnpc-cta-color) !important;
    font-size: var(--ehnpc-cta-size);
    font-weight: var(--ehnpc-cta-weight);
    line-height: 1.1;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    z-index: 6;
    transition: filter .2s ease, transform .2s ease;
}

.ehnpc-cta:hover,
.ehnpc-cta:focus {
    color: var(--ehnpc-cta-color) !important;
    filter: brightness(1.04) saturate(1.05);
}

.ehnpc-text-left .ehnpc-cta { align-self: flex-start; }
.ehnpc-text-center .ehnpc-cta { align-self: center; }
.ehnpc-text-right .ehnpc-cta { align-self: flex-end; }

.ehnpc-badges {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
}

.ehnpc-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: var(--ehnpc-badge-padding);
    border-radius: var(--ehnpc-badge-radius);
    border: var(--ehnpc-badge-border-width) solid var(--ehnpc-badge-border);
    background: var(--ehnpc-badge-bg);
    color: var(--ehnpc-badge-color);
    font-size: var(--ehnpc-badge-size);
    font-weight: var(--ehnpc-badge-weight);
    line-height: 1.1;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ehnpc-badge-tl {
    top: var(--ehnpc-badge-offset);
    left: var(--ehnpc-badge-offset);
    background: var(--ehnpc-tl-bg);
    color: var(--ehnpc-tl-color);
    border-color: var(--ehnpc-tl-border);
    opacity: var(--ehnpc-tl-opacity);
}
.ehnpc-badge-tr {
    top: var(--ehnpc-badge-offset);
    right: var(--ehnpc-badge-offset);
    background: var(--ehnpc-tr-bg);
    color: var(--ehnpc-tr-color);
    border-color: var(--ehnpc-tr-border);
    opacity: var(--ehnpc-tr-opacity);
}
.ehnpc-badge-bl {
    bottom: var(--ehnpc-badge-offset);
    left: var(--ehnpc-badge-offset);
    background: var(--ehnpc-bl-bg);
    color: var(--ehnpc-bl-color);
    border-color: var(--ehnpc-bl-border);
    opacity: var(--ehnpc-bl-opacity);
}
.ehnpc-badge-br {
    right: var(--ehnpc-badge-offset);
    bottom: var(--ehnpc-badge-offset);
    background: var(--ehnpc-br-bg);
    color: var(--ehnpc-br-color);
    border-color: var(--ehnpc-br-border);
    opacity: var(--ehnpc-br-opacity);
}

.ehnpc-hover-zoom,
.ehnpc-hover-lift {
    transition: filter .22s ease;
}

.ehnpc-hover-zoom .ehnpc-bg,
.ehnpc-hover-zoom .ehnpc-image,
.ehnpc-hover-lift .ehnpc-bg,
.ehnpc-hover-lift .ehnpc-image {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    transition: -webkit-transform 850ms cubic-bezier(.2,.65,.3,1), transform 850ms cubic-bezier(.2,.65,.3,1);
}

.ehnpc-card.ehnpc-hover-zoom:hover .ehnpc-bg,
.ehnpc-card.ehnpc-hover-zoom:hover .ehnpc-image,
.ehnpc-card.ehnpc-hover-zoom.ehn-is-hovered .ehnpc-bg,
.ehnpc-card.ehnpc-hover-zoom.ehn-is-hovered .ehnpc-image,
.ehnpc-card.ehnpc-hover-zoom:focus-visible .ehnpc-bg,
.ehnpc-card.ehnpc-hover-zoom:focus-visible .ehnpc-image,
.ehnpc-card.ehnpc-hover-lift:hover .ehnpc-bg,
.ehnpc-card.ehnpc-hover-lift:hover .ehnpc-image,
.ehnpc-card.ehnpc-hover-lift.ehn-is-hovered .ehnpc-bg,
.ehnpc-card.ehnpc-hover-lift.ehn-is-hovered .ehnpc-image,
.ehnpc-card.ehnpc-hover-lift:focus-visible .ehnpc-bg,
.ehnpc-card.ehnpc-hover-lift:focus-visible .ehnpc-image {
    -webkit-transform: scale(1.045);
    transform: scale(1.045);
}

.ehnpc-card:not(.ehnpc-has-image) .ehnpc-bg {
    background-size: 135% 135% !important;
    background-position: 0% 50% !important;
    transition: -webkit-transform 850ms cubic-bezier(.2,.65,.3,1), transform 850ms cubic-bezier(.2,.65,.3,1), background-position 850ms cubic-bezier(.2,.65,.3,1) !important;
}

.ehnpc-card:not(.ehnpc-has-image) .ehnpc-media::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 66%);
    background-size: 230% 230%;
    background-position: -120% 50%;
    opacity: 0;
    transition: opacity 420ms ease, background-position 850ms cubic-bezier(.2,.65,.3,1);
}

.ehnpc-card.ehnpc-hover-zoom:not(.ehnpc-has-image):hover .ehnpc-bg,
.ehnpc-card.ehnpc-hover-zoom:not(.ehnpc-has-image).ehn-is-hovered .ehnpc-bg,
.ehnpc-card.ehnpc-hover-zoom:not(.ehnpc-has-image):focus-visible .ehnpc-bg,
.ehnpc-card.ehnpc-hover-lift:not(.ehnpc-has-image):hover .ehnpc-bg,
.ehnpc-card.ehnpc-hover-lift:not(.ehnpc-has-image).ehn-is-hovered .ehnpc-bg,
.ehnpc-card.ehnpc-hover-lift:not(.ehnpc-has-image):focus-visible .ehnpc-bg {
    background-position: 100% 50% !important;
}

.ehnpc-card.ehnpc-hover-zoom:not(.ehnpc-has-image):hover .ehnpc-media::after,
.ehnpc-card.ehnpc-hover-zoom:not(.ehnpc-has-image).ehn-is-hovered .ehnpc-media::after,
.ehnpc-card.ehnpc-hover-zoom:not(.ehnpc-has-image):focus-visible .ehnpc-media::after,
.ehnpc-card.ehnpc-hover-lift:not(.ehnpc-has-image):hover .ehnpc-media::after,
.ehnpc-card.ehnpc-hover-lift:not(.ehnpc-has-image).ehn-is-hovered .ehnpc-media::after,
.ehnpc-card.ehnpc-hover-lift:not(.ehnpc-has-image):focus-visible .ehnpc-media::after {
    opacity: 1;
    background-position: 120% 50%;
}

@media (max-width: 767px) {
    .ehnpc-card {
        height: var(--ehnpc-mobile-height);
        min-height: var(--ehnpc-mobile-min-height);
    }
    .ehnpc-content {
        padding: var(--ehnpc-mobile-padding);
    }
    .ehnpc-card .ehnpc-title {
        font-size: var(--ehnpc-title-size-mobile, var(--ehnpc-title-size));
    }
    .ehnpc-card .ehnpc-subtitle {
        font-size: var(--ehnpc-subtitle-size-mobile, var(--ehnpc-subtitle-size));
    }
    .ehnpc-card .ehnpc-body {
        font-size: var(--ehnpc-body-size-mobile, var(--ehnpc-body-size));
    }
    .ehnpc-card .ehnpc-badge:not(.ehnpc-badge-image) {
        width: max-content;
        min-width: 0;
        max-width: none;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        font-size: var(--ehnpc-badge-size-mobile, var(--ehnpc-badge-size));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ehnpc-card .ehnpc-bg,
    .ehnpc-card .ehnpc-image,
    .ehnpc-card .ehnpc-media::after {
        transition: none !important;
    }
}

/* Carousel / bullets / mobile swipe */
.ehnpc-carousel,
.ehnpc-carousel * {
    box-sizing: border-box;
}

.ehnpc-carousel {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ehnpc-carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.ehnpc-carousel-track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .32s ease;
    will-change: transform;
    touch-action: pan-y;
}

.ehnpc-carousel-track > .ehnpc-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin: 0 !important;
}

.ehnpc-carousel.is-dragging .ehnpc-carousel-track {
    transition: none;
}

.ehnpc-carousel-bullets {
    position: absolute;
    z-index: 12;
    left: 50%;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,.22);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.ehnpc-carousel[data-bullets="0"] .ehnpc-carousel-bullets,
.ehnpc-carousel.ehnpc-carousel-single .ehnpc-carousel-bullets {
    display: none;
}

.ehnpc-carousel-bullet {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 7px;
    height: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.52);
    cursor: pointer;
    transition: width .18s ease, background-color .18s ease, opacity .18s ease;
}

.ehnpc-carousel-bullet.is-active {
    width: 18px;
    background: rgba(255,255,255,.95);
}

.ehnpc-carousel-bullet:hover {
    background: rgba(255,255,255,.82);
}

/* Image badges in promo card corners. */
.ehnpc-badge-image{
    padding: var(--ehnpc-corner-image-padding) !important;
    min-height: 0;
    background: var(--ehnpc-corner-image-bg) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible;
    max-width: none;
}
.ehnpc-card .ehnpc-badge-image > img.ehnpc-badge-img,
.ehnpc-badge-image > img.ehnpc-badge-img,
.ehnpc-badge-img{
    display: block !important;
    width: var(--ehnpc-corner-image-width) !important;
    height: var(--ehnpc-corner-image-height) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: min(34vw, 180px) !important;
    max-height: min(22vw, 120px) !important;
    object-fit: contain !important;
    border-radius: var(--ehnpc-corner-image-radius) !important;
}
@media (max-width: 760px){
    .ehnpc-card .ehnpc-badge-image > img.ehnpc-badge-img,
    .ehnpc-badge-image > img.ehnpc-badge-img,
    .ehnpc-badge-img{
        width: var(--ehnpc-corner-image-width, 58px) !important;
        max-width: min(38vw, 150px) !important;
        max-height: min(24vw, 100px) !important;
    }
}

/* Explicit content corner positioning and image badges. */
.ehnpc-card.ehnpc-pos-top_left,
.ehnpc-card.ehnpc-pos-top-center,
.ehnpc-card.ehnpc-pos-top_center,
.ehnpc-card.ehnpc-pos-top_right,
.ehnpc-card.ehnpc-pos-center_left,
.ehnpc-card.ehnpc-pos-center,
.ehnpc-card.ehnpc-pos-center_right,
.ehnpc-card.ehnpc-pos-bottom_left,
.ehnpc-card.ehnpc-pos-bottom_center,
.ehnpc-card.ehnpc-pos-bottom_right {
    align-items: stretch;
    justify-content: stretch;
}
.ehnpc-card.ehnpc-pos-top_left .ehnpc-content { align-self: flex-start; margin-right: auto; }
.ehnpc-card.ehnpc-pos-top_center .ehnpc-content { align-self: flex-start; margin-left: auto; margin-right: auto; }
.ehnpc-card.ehnpc-pos-top_right .ehnpc-content { align-self: flex-start; margin-left: auto; }
.ehnpc-card.ehnpc-pos-center_left .ehnpc-content { align-self: center; margin-right: auto; }
.ehnpc-card.ehnpc-pos-center .ehnpc-content { align-self: center; margin-left: auto; margin-right: auto; }
.ehnpc-card.ehnpc-pos-center_right .ehnpc-content { align-self: center; margin-left: auto; }
.ehnpc-card.ehnpc-pos-bottom_left .ehnpc-content { align-self: flex-end; margin-right: auto; }
.ehnpc-card.ehnpc-pos-bottom_center .ehnpc-content { align-self: flex-end; margin-left: auto; margin-right: auto; }
.ehnpc-card.ehnpc-pos-bottom_right .ehnpc-content { align-self: flex-end; margin-left: auto; }

.ehnpc-card .ehnpc-badge-image,
.ehnpc-card .ehnpc-badge-image.ehnpc-badge {
    width: auto !important;
    height: auto !important;
    line-height: 0 !important;
}
.ehnpc-card .ehnpc-badge-image > img.ehnpc-badge-img,
.ehnpc-card .ehnpc-badge-image > img[src$='.svg'],
.ehnpc-card .ehnpc-badge-image > img[src*='.svg?'] {
    display: block !important;
    width: var(--ehnpc-corner-image-width, 72px) !important;
    height: var(--ehnpc-corner-image-height, auto) !important;
    max-width: min(34vw, 180px) !important;
    max-height: min(22vw, 120px) !important;
    object-fit: contain !important;
    object-position: center center !important;
}


/* Explicit SVG paint box for themes that reset intrinsic image dimensions. */
.ehnpc-card .ehnpc-badge-image.ehnpc-badge-image-svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--ehnpc-corner-image-width, 72px) !important;
    height: var(--ehnpc-corner-image-height, var(--ehnpc-corner-image-width, 72px)) !important;
    min-width: var(--ehnpc-corner-image-width, 72px) !important;
    min-height: 1px !important;
    max-width: min(34vw, 180px) !important;
    max-height: min(22vw, 120px) !important;
    overflow: visible !important;
    background: var(--ehnpc-corner-image-bg, transparent) !important;
    padding: var(--ehnpc-corner-image-padding, 0) !important;
    border-radius: var(--ehnpc-corner-image-radius, 0) !important;
}
.ehnpc-card .ehnpc-badge-image.ehnpc-badge-image-svg > img.ehnpc-badge-img-svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    visibility: visible !important;
    opacity: 1 !important;
}
@media (max-width: 760px) {
    .ehnpc-card .ehnpc-badge-image.ehnpc-badge-image-svg {
        max-width: min(38vw, 150px) !important;
        max-height: min(24vw, 100px) !important;
    }
}

/* EHN Cards shared semantic layer (v1.2.1)
   Visual profiles keep their legacy classes for backwards compatibility, while
   these markers give EHN Core and future integrations one stable DOM contract. */
.ehn-card,
.ehn-card * {
    box-sizing: border-box;
}
.ehn-card {
    position: relative;
    isolation: isolate;
}
.ehn-card__media {
    overflow: hidden;
    border-radius: inherit;
}
.ehn-card__image,
.ehn-card__background,
.ehn-card__overlay {
    pointer-events: none;
}
.ehn-card__badges,
.ehn-card__badge,
.ehn-card__badge-image {
    box-sizing: border-box;
}
.ehn-card__badge[data-ehn-card-badge] {
    /* Intentionally no radius here: each source profile owns its badge shape. */
}

/* Unified NewsCard-style effects for promo, news and vehicle/model cards.
   Source plugins keep their own layout classes; the shared semantic markers
   provide one reliable overlay/grayscale behavior across all three card types. */
.ehn-card-effects [data-ehn-card-overlay] {
    background: var(--ehn-card-overlay-color, var(--ehnpc-overlay-color, #000));
    opacity: var(--ehn-card-overlay-opacity, var(--ehnpc-overlay-opacity, .25));
    transition: opacity 420ms ease;
}

.ehn-card-effects:hover [data-ehn-card-overlay],
.ehn-card-effects.ehn-is-hovered [data-ehn-card-overlay],
.ehn-card-effects:focus-visible [data-ehn-card-overlay],
.ehn-card-effects:focus-within [data-ehn-card-overlay] {
    opacity: var(--ehn-card-overlay-hover-opacity, var(--ehnpc-overlay-hover-opacity, var(--ehn-card-overlay-opacity, .25)));
}

.ehn-card-effects.ehn-card-grayscale [data-ehn-card-image],
.ehn-card-effects.ehn-card-grayscale [data-ehn-card-background] {
    -webkit-filter: grayscale(var(--ehn-card-image-grayscale, var(--ehnpc-image-grayscale, 0)));
    filter: grayscale(var(--ehn-card-image-grayscale, var(--ehnpc-image-grayscale, 0)));
    transition: -webkit-filter 420ms ease, filter 420ms ease, -webkit-transform 850ms cubic-bezier(.2,.65,.3,1), transform 850ms cubic-bezier(.2,.65,.3,1);
}

.ehn-card-effects.ehn-card-grayscale:hover [data-ehn-card-image],
.ehn-card-effects.ehn-card-grayscale:hover [data-ehn-card-background],
.ehn-card-effects.ehn-card-grayscale.ehn-is-hovered [data-ehn-card-image],
.ehn-card-effects.ehn-card-grayscale.ehn-is-hovered [data-ehn-card-background],
.ehn-card-effects.ehn-card-grayscale:focus-visible [data-ehn-card-image],
.ehn-card-effects.ehn-card-grayscale:focus-visible [data-ehn-card-background],
.ehn-card-effects.ehn-card-grayscale:focus-within [data-ehn-card-image],
.ehn-card-effects.ehn-card-grayscale:focus-within [data-ehn-card-background] {
    -webkit-filter: grayscale(var(--ehn-card-image-grayscale-hover, var(--ehnpc-image-grayscale-hover, 0)));
    filter: grayscale(var(--ehn-card-image-grayscale-hover, var(--ehnpc-image-grayscale-hover, 0)));
}

.ehn-card-effects.ehn-card-overlay-none [data-ehn-card-overlay] {
    opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .ehn-card-effects [data-ehn-card-overlay],
    .ehn-card-effects.ehn-card-grayscale [data-ehn-card-image],
    .ehn-card-effects.ehn-card-grayscale [data-ehn-card-background] {
        transition: none !important;
    }
}



/* Vehicle promo-card bridge (v1.2.1)
   EHN Cars has historically used its own .bsuc-promo-card markup. The bridge
   now creates/targets one explicit overlay layer instead of relying on the
   source plugin's pre-existing shade, so 55% on rest and 25% on hover produce
   the same visible contrast as news and standard promo cards. */
.ehn-card-effects[data-ehn-card-type="vehicle"] {
    position: relative;
    isolation: isolate;
}

.ehn-card-effects[data-ehn-card-type="vehicle"] > .ehn-card-external-overlay,
.ehn-card-effects[data-ehn-card-type="vehicle"] [data-ehn-card-overlay].ehn-card-external-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--ehn-card-overlay-color, #000);
    opacity: var(--ehn-card-overlay-opacity, .25);
    pointer-events: none;
    transition: opacity 420ms ease;
}

.ehn-card-effects[data-ehn-card-type="vehicle"]:hover > .ehn-card-external-overlay,
.ehn-card-effects[data-ehn-card-type="vehicle"].ehn-is-hovered > .ehn-card-external-overlay,
.ehn-card-effects[data-ehn-card-type="vehicle"]:focus-visible > .ehn-card-external-overlay,
.ehn-card-effects[data-ehn-card-type="vehicle"]:focus-within > .ehn-card-external-overlay {
    opacity: var(--ehn-card-overlay-hover-opacity, var(--ehn-card-overlay-opacity, .25));
}

.ehn-card-effects[data-ehn-card-type="vehicle"].ehn-card-overlay-none > .ehn-card-external-overlay {
    opacity: 0 !important;
}

.ehn-card-effects[data-ehn-card-type="vehicle"] > [data-ehn-card-layer="visual"] {
    z-index: 1;
}

.ehn-card-effects[data-ehn-card-type="vehicle"] > [data-ehn-card-layer="content"] {
    position: relative;
    z-index: 3;
}

/* Known EHN Cars promo content elements are kept above the explicit overlay. */
.ehn-card-effects[data-ehn-card-type="vehicle"] .bsuc-promo-content,
.ehn-card-effects[data-ehn-card-type="vehicle"] .bsuc-promo-card-content,
.ehn-card-effects[data-ehn-card-type="vehicle"] .bsuc-promo-text,
.ehn-card-effects[data-ehn-card-type="vehicle"] .bsuc-promo-corners,
.ehn-card-effects[data-ehn-card-type="vehicle"] .bsuc-promo-corner,
.ehn-card-effects[data-ehn-card-type="vehicle"] .promo-content,
.ehn-card-effects[data-ehn-card-type="vehicle"] .promo-card-content,
.ehn-card-effects[data-ehn-card-type="vehicle"] .promo-corner,
.ehn-card-effects[data-ehn-card-type="vehicle"] .promo-badge {
    position: relative;
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .ehn-card-effects[data-ehn-card-type="vehicle"] > .ehn-card-external-overlay {
        transition: none !important;
    }
}
