.ar91-va {
    --ar91-va-min-height: 550px;
    --ar91-va-gap: 12px;
    --ar91-va-tablet-slots: 3;
    --ar91-va-active-ratio: 3;
    --ar91-va-speed: 550ms;
    --ar91-va-body-space: 20px;
    --ar91-va-hover-lift: 0px;
    --ar91-va-active-bg: #95d829;
    --ar91-va-active-border: #95d829;
    --ar91-va-active-number: #050505;
    --ar91-va-active-title: #050505;
    --ar91-va-active-desc: #050505;
    --ar91-va-active-label: #050505;
    --ar91-va-active-arrow: #050505;
    --ar91-va-active-icon: #ffffff;
    --ar91-va-closed-bg: #0a0f16;
    --ar91-va-closed-border: #1e293b;
    --ar91-va-closed-number: #a1a1aa;
    --ar91-va-closed-label: #a1a1aa;
    --ar91-va-closed-arrow: #a1a1aa;
    --ar91-va-closed-icon: #ea580c;
    --ar91-va-hover-bg: #111827;
    --ar91-va-hover-border: #475569;
    --ar91-va-hover-number: #ffffff;
    --ar91-va-hover-label: #ffffff;
    --ar91-va-hover-arrow: #ffffff;
    --ar91-va-hover-icon: #95d829;
    --ar91-va-image-bg: #f4f4f5;
    display: flex;
    width: 100%;
    min-height: var(--ar91-va-min-height);
    gap: var(--ar91-va-gap);
    box-sizing: border-box;
}

.ar91-va,
.ar91-va * { box-sizing: border-box; }

.ar91-va__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--ar91-va-closed-border);
    border-radius: 12px;
    background: var(--ar91-va-closed-bg);
    cursor: pointer;
    transform: translateY(0);
    transition:
        flex-basis var(--ar91-va-speed) cubic-bezier(.25,1,.5,1),
        flex-grow var(--ar91-va-speed) cubic-bezier(.25,1,.5,1),
        min-height var(--ar91-va-speed) cubic-bezier(.25,1,.5,1),
        background-color 300ms ease,
        border-color 300ms ease,
        transform 300ms ease;
}

.ar91-va__item.is-active {
    flex-grow: var(--ar91-va-active-ratio);
    background: var(--ar91-va-active-bg) !important;
    border-color: var(--ar91-va-active-border) !important;
    cursor: default;
}

.ar91-va__item:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.ar91-va__header,
.ar91-va__header-left {
    display: flex;
    align-items: center;
}

.ar91-va__header { width: 100%; justify-content: space-between; }
.ar91-va__header-left { gap: 15px; min-width: 0; }

.ar91-va__arrow,
.ar91-va__bottom-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ar91-va__arrow {
    color: var(--ar91-va-closed-arrow);
    transform: rotate(90deg);
    transition: color 300ms ease, transform var(--ar91-va-speed) cubic-bezier(.25,1,.5,1);
}

.ar91-va__arrow svg { display: block; width: 24px; height: 24px; }
.ar91-va__item.is-active .ar91-va__arrow { color: var(--ar91-va-active-arrow); transform: rotate(0deg); }

.ar91-va__number {
    color: var(--ar91-va-closed-number);
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 300ms ease, font-size var(--ar91-va-speed) cubic-bezier(.25,1,.5,1);
}

.ar91-va__item.is-active .ar91-va__number {
    color: var(--ar91-va-active-number);
    font-size: 42px;
}

.ar91-va__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-height: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        max-height var(--ar91-va-speed) cubic-bezier(.25,1,.5,1),
        margin var(--ar91-va-speed) cubic-bezier(.25,1,.5,1),
        opacity 220ms ease,
        visibility 0s linear var(--ar91-va-speed);
}

.ar91-va__item.is-active .ar91-va__body {
    max-height: 1400px;
    margin: var(--ar91-va-body-space) 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        max-height var(--ar91-va-speed) cubic-bezier(.25,1,.5,1),
        margin var(--ar91-va-speed) cubic-bezier(.25,1,.5,1),
        opacity 320ms ease 100ms,
        visibility 0s;
}

.ar91-va__body-inner { min-width: 0; }

.ar91-va__title {
    margin: 0 0 10px;
    color: var(--ar91-va-active-title);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.ar91-va__description {
    margin: 0 0 20px;
    color: var(--ar91-va-active-desc);
    font-size: 14px;
    line-height: 1.5;
}

.ar91-va__image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ar91-va-image-bg);
}

.ar91-va__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ar91-va__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
}

.ar91-va__bottom-icon {
    color: var(--ar91-va-closed-icon);
    font-size: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: color 300ms ease, opacity 300ms ease, transform 300ms ease;
}

.ar91-va__bottom-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ar91-va__item.is-active .ar91-va__bottom-icon {
    color: var(--ar91-va-active-icon);
    opacity: 1;
    transform: translateY(0);
}

.ar91-va__label {
    max-width: 100%;
    color: var(--ar91-va-closed-label);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: color 300ms ease;
}

.ar91-va__item.is-active .ar91-va__label { color: var(--ar91-va-active-label); }

@media (hover: hover) and (pointer: fine) {
    .ar91-va__item:not(.is-active):hover {
        background: var(--ar91-va-hover-bg);
        border-color: var(--ar91-va-hover-border);
        transform: translateY(calc(-1 * var(--ar91-va-hover-lift)));
    }
    .ar91-va__item:not(.is-active):hover .ar91-va__number { color: var(--ar91-va-hover-number); }
    .ar91-va__item:not(.is-active):hover .ar91-va__label { color: var(--ar91-va-hover-label); }
    .ar91-va__item:not(.is-active):hover .ar91-va__arrow { color: var(--ar91-va-hover-arrow); transform: rotate(0deg); }
    .ar91-va__item:not(.is-active):hover .ar91-va__bottom-icon { color: var(--ar91-va-hover-icon); opacity: 1; transform: translateY(0); }
}

/* Tablet: horizontal swipe, stacked accordion, or expanded grid. */
@media (min-width: 768px) and (max-width: 1024px) {
    .ar91-va[data-tablet-layout="accordion"] {
        min-height: var(--ar91-va-min-height);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
    }

    .ar91-va[data-tablet-layout="accordion"] .ar91-va__item {
        flex: 0 0 calc((100% - (var(--ar91-va-tablet-slots) - 1) * var(--ar91-va-gap)) / var(--ar91-va-tablet-slots));
        scroll-snap-align: start;
    }

    .ar91-va[data-tablet-layout="accordion"] .ar91-va__item.is-active {
        flex-basis: calc((200% - (var(--ar91-va-tablet-slots) - 2) * var(--ar91-va-gap)) / var(--ar91-va-tablet-slots));
    }

    .ar91-va[data-tablet-layout="stacked"] {
        flex-direction: column;
        min-height: 0;
    }

    .ar91-va[data-tablet-layout="stacked"] .ar91-va__item {
        flex: none;
        width: 100%;
        min-height: 92px;
    }

    .ar91-va[data-tablet-layout="stacked"] .ar91-va__item.is-active { min-height: min(var(--ar91-va-min-height), 720px); }

    .ar91-va[data-tablet-layout="expanded"] {
        display: grid;
        grid-template-columns: repeat(var(--ar91-va-tablet-slots), minmax(0, 1fr));
        min-height: 0;
    }

    .ar91-va[data-tablet-layout="expanded"] .ar91-va__item {
        min-height: var(--ar91-va-min-height);
    }
}

/* Mobile always uses readable full-width cards. */
@media (max-width: 767px) {
    .ar91-va {
        flex-direction: column;
        min-height: 0;
        overflow: visible;
    }

    .ar91-va__item {
        flex: none;
        width: 100%;
        min-width: 0;
        min-height: 84px;
        padding: 24px;
    }

    .ar91-va[data-mobile-layout="accordion"] .ar91-va__item.is-active { min-height: 0; }
    .ar91-va__item.is-active .ar91-va__number { font-size: 36px; }
    .ar91-va__title { font-size: 26px; }
}

/* All-expanded rules are breakpoint-scoped so tablet choices never leak into mobile. */
@media (min-width: 768px) and (max-width: 1024px) {
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__item {
        background: var(--ar91-va-active-bg) !important;
        border-color: var(--ar91-va-active-border) !important;
        cursor: default;
    }
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__body { max-height: none; margin: var(--ar91-va-body-space) 0; opacity: 1; visibility: visible; pointer-events: auto; }
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__number { color: var(--ar91-va-active-number); }
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__title { color: var(--ar91-va-active-title); }
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__description { color: var(--ar91-va-active-desc); }
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__label { color: var(--ar91-va-active-label); }
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__arrow { color: var(--ar91-va-active-arrow); transform: rotate(0deg); }
    .ar91-va[data-tablet-layout="expanded"] .ar91-va__bottom-icon { color: var(--ar91-va-active-icon); opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__item {
        min-height: 0;
        background: var(--ar91-va-active-bg) !important;
        border-color: var(--ar91-va-active-border) !important;
        cursor: default;
    }
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__body { max-height: none; margin: var(--ar91-va-body-space) 0; opacity: 1; visibility: visible; pointer-events: auto; }
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__number { color: var(--ar91-va-active-number); }
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__title { color: var(--ar91-va-active-title); }
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__description { color: var(--ar91-va-active-desc); }
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__label { color: var(--ar91-va-active-label); }
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__arrow { color: var(--ar91-va-active-arrow); transform: rotate(0deg); }
    .ar91-va[data-mobile-layout="expanded"] .ar91-va__bottom-icon { color: var(--ar91-va-active-icon); opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ar91-va, .ar91-va * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
