/* Overall highlights disclosure ------------------------------------------------ */
.mvs-product-highlights-shell {
    --mvs-overall-duration: 520ms;
    --mvs-overall-easing: cubic-bezier(.2,.75,.25,1);
    position: relative;
    overflow-anchor: none;
}

.mvs-product-highlights-viewport {
    position: relative;
}

.mvs-product-highlights-shell[data-collapsible="true"] .mvs-product-highlights-viewport {
    overflow: hidden;
    transition: max-height var(--mvs-overall-duration) var(--mvs-overall-easing);
}

.mvs-product-highlights-fade {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(5.5rem, 13vw, 8.5rem);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.88) 64%, #fff 100%);
    transition: opacity 260ms ease, visibility 260ms ease;
}

.mvs-product-highlights-shell[data-collapsible="true"][data-expanded="false"] .mvs-product-highlights-fade {
    opacity: 1;
    visibility: visible;
}

.mvs-product-highlights-footer {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.mvs-product-highlights-footer[hidden] {
    display: none !important;
}

.mvs-product-highlights-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 4px 16px rgb(15 23 42 / 0.06);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.2;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.mvs-product-highlights-toggle:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    box-shadow: 0 6px 20px rgb(15 23 42 / 0.09);
    transform: translateY(-1px);
}

.mvs-product-highlights-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.mvs-product-highlights-toggle__less {
    display: none;
}

.mvs-product-highlights-shell[data-expanded="true"] .mvs-product-highlights-toggle__more {
    display: none;
}

.mvs-product-highlights-shell[data-expanded="true"] .mvs-product-highlights-toggle__less {
    display: inline;
}

.mvs-product-highlights-toggle__icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    transition: transform 320ms var(--mvs-overall-easing);
}

.mvs-product-highlights-shell[data-expanded="true"] .mvs-product-highlights-toggle__icon {
    transform: rotate(180deg);
}

@media (max-width: 639px) {
    .mvs-product-highlights-footer {
        margin-top: 0.8rem;
    }

    .mvs-product-highlights-toggle {
        width: 100%;
        min-height: 3rem;
    }

    .mvs-product-highlights-fade {
        height: 7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mvs-product-highlights-viewport,
    .mvs-product-highlights-fade,
    .mvs-product-highlights-toggle,
    .mvs-product-highlights-toggle__icon {
        transition: none !important;
    }
}

.mvs-product-highlights {
    --mvs-border: #e2e8f0;
    --mvs-border-active: #cbd5e1;
    --mvs-text: #0f172a;
    --mvs-muted: #64748b;
    --mvs-soft: #f8fafc;
    --mvs-soft-strong: #f1f5f9;
    --mvs-radius-lg: 1.25rem;
    --mvs-radius-md: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mvs-highlight-section__title {
    margin: 0 0 1rem;
    color: var(--mvs-text);
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 650;
}

.mvs-highlight-grid {
    --mvs-grid-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(60, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 0;
    margin: calc(var(--mvs-grid-gap) * -0.5);
    align-items: stretch;
}

.mvs-highlight-card {
    grid-column: span var(--mvs-span-xs) / span var(--mvs-span-xs);
    min-width: 0;
    margin: calc(var(--mvs-grid-gap) * 0.5);
    overflow: clip;
    position: relative;
    container-type: inline-size;
    border: 1px solid var(--mvs-border);
    background: #fff;
    color: var(--mvs-text);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition:
        border-color 260ms ease,
        box-shadow 260ms ease,
        background-color 260ms ease;
}

.mvs-highlight-card--featured {
    border-radius: var(--mvs-radius-lg);
    box-shadow: 0 8px 28px rgb(15 23 42 / 0.06);
}

.mvs-highlight-card--standard {
    border-radius: var(--mvs-radius-md);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.mvs-highlight-card--detail {
    border-radius: 0.875rem;
    background: var(--mvs-soft);
}

.mvs-highlight-card[data-expanded="true"] {
    grid-column: 1 / -1 !important;
    border-color: var(--mvs-border-active);
    background: #fff;
    box-shadow: 0 16px 42px rgb(15 23 42 / 0.09);
    z-index: 2;
}

.mvs-highlight-card__summary {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mvs-highlight-card[data-expanded="true"] .mvs-highlight-card__summary {
    height: auto;
}

.mvs-highlight-card--featured.mvs-highlight-card--no-image:not([data-expanded="true"]) .mvs-highlight-card__body {
    justify-content: center;
}

.mvs-highlight-card--featured.mvs-highlight-card--no-image:not([data-expanded="true"]) .mvs-highlight-readmore {
    margin-top: 0.8rem;
    padding-top: 0;
}

.mvs-highlight-card__media {
    position: relative;
    overflow: hidden;
    background: var(--mvs-soft);
}

.mvs-highlight-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(.2,.75,.25,1);
}

.mvs-highlight-card:hover .mvs-highlight-card__image {
    transform: scale(1.015);
}

.mvs-highlight-card--featured .mvs-highlight-card__media {
    aspect-ratio: 16 / 9;
}

.mvs-highlight-card--standard .mvs-highlight-card__media {
    aspect-ratio: 4 / 3;
}

.mvs-highlight-card--detail .mvs-highlight-card__media,
.mvs-highlight-card--icon .mvs-highlight-card__media {
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    margin: 1rem 0 0 1rem;
    border-radius: 0.8rem;
}

.mvs-highlight-card--icon .mvs-highlight-card__image,
.mvs-highlight-card--detail .mvs-highlight-card__image {
    object-fit: contain;
    padding: 0.45rem;
}

.mvs-highlight-card__body {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem;
}

.mvs-highlight-card--featured .mvs-highlight-card__body {
    padding: 1.35rem 1.4rem 1.45rem;
}

.mvs-highlight-card--detail .mvs-highlight-card__summary,
.mvs-highlight-card--icon .mvs-highlight-card__summary {
    flex-direction: row;
    align-items: flex-start;
}

.mvs-highlight-card--detail .mvs-highlight-card__body {
    padding: 1rem;
}

.mvs-highlight-card__title {
    margin: 0;
    color: var(--mvs-text);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 650;
}

.mvs-highlight-card--featured .mvs-highlight-card__title {
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
}

.mvs-highlight-card__intro {
    margin: 0.45rem 0 0;
    color: var(--mvs-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.mvs-highlight-card--featured .mvs-highlight-card__intro {
    font-size: 0.95rem;
    line-height: 1.6;
}

.mvs-highlight-card--detail .mvs-highlight-card__intro {
    -webkit-line-clamp: 2;
    font-size: 0.875rem;
}

.mvs-highlight-readmore,
.mvs-highlight-collapse {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--mvs-text);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
}

.mvs-highlight-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.8rem;
}

.mvs-highlight-readmore:hover,
.mvs-highlight-collapse:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.mvs-highlight-readmore__icon,
.mvs-highlight-collapse svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    transition: transform 320ms cubic-bezier(.2,.75,.25,1);
}

.mvs-highlight-readmore__less {
    display: none;
}

.mvs-highlight-card[data-expanded="true"] .mvs-highlight-readmore {
    display: none;
}

.mvs-highlight-expandable {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 440ms cubic-bezier(.2,.75,.25,1),
        opacity 260ms ease;
}

.mvs-highlight-expandable__clip {
    min-height: 0;
    overflow: hidden;
}

.mvs-highlight-expandable__inner {
    margin: 0 1.15rem;
    padding: 1.1rem 0 1.25rem;
    border-top: 1px solid var(--mvs-border);
    transform: translateY(-0.35rem);
    transition: transform 400ms cubic-bezier(.2,.75,.25,1);
}

.mvs-highlight-card--featured .mvs-highlight-expandable__inner {
    margin-inline: 1.4rem;
    padding-bottom: 1.5rem;
}

.mvs-highlight-card[data-expanded="true"] .mvs-highlight-expandable {
    grid-template-rows: 1fr;
    opacity: 1;
}

.mvs-highlight-card[data-expanded="true"] .mvs-highlight-expandable__inner {
    transform: translateY(0);
}

.mvs-highlight-expandable__content {
    max-width: 86ch;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.75;
}


.mvs-highlight-expandable__content p {
    margin: 0 0 0.85rem;
}

.mvs-highlight-expandable__content ul,
.mvs-highlight-expandable__content ol {
    margin: 0.75rem 0 0.9rem 1.25rem;
}

.mvs-highlight-expandable__content ul {
    list-style: disc;
}

.mvs-highlight-expandable__content ol {
    list-style: decimal;
}

.mvs-highlight-expandable__content li + li {
    margin-top: 0.3rem;
}

.mvs-highlight-expandable__content a {
    color: var(--mvs-text);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.mvs-highlight-expandable__content > :first-child {
    margin-top: 0;
}

.mvs-highlight-expandable__content > :last-child {
    margin-bottom: 0;
}

.mvs-highlight-collapse {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
}

@container (min-width: 36rem) {
    .mvs-highlight-card--standard.mvs-highlight-card--has-image .mvs-highlight-card__summary {
        display: grid;
        grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
        align-items: stretch;
    }

    .mvs-highlight-card--standard.mvs-highlight-card--has-image .mvs-highlight-card__media {
        aspect-ratio: auto;
        min-height: 11rem;
    }

    .mvs-highlight-card--standard.mvs-highlight-card--has-image .mvs-highlight-card__body {
        justify-content: center;
        padding: 1.35rem;
    }
}

@container (min-width: 44rem) {
    .mvs-highlight-card--featured.mvs-highlight-card--feature.mvs-highlight-card--has-image .mvs-highlight-card__summary {
        display: grid;
        grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
        align-items: stretch;
    }

    .mvs-highlight-card--featured.mvs-highlight-card--feature.mvs-highlight-card--has-image .mvs-highlight-card__media {
        aspect-ratio: auto;
        min-height: 15rem;
    }

    .mvs-highlight-card--featured.mvs-highlight-card--feature.mvs-highlight-card--has-image .mvs-highlight-card__body {
        justify-content: center;
        padding: 1.75rem;
    }
}

@media (min-width: 640px) {
    .mvs-highlight-card {
        grid-column: span var(--mvs-span-sm) / span var(--mvs-span-sm);
    }
}

@media (min-width: 1024px) {
    .mvs-product-highlights {
        gap: 3rem;
    }

    .mvs-highlight-grid {
        --mvs-grid-gap: 1.1rem;
    }

    .mvs-highlight-card {
        grid-column: span var(--mvs-span-lg) / span var(--mvs-span-lg);
    }

    .mvs-highlight-card--standard .mvs-highlight-card__body {
        padding: 1rem;
    }
}

@media (min-width: 1280px) {
    .mvs-highlight-card {
        grid-column: span var(--mvs-span-xl) / span var(--mvs-span-xl);
    }

    .mvs-highlight-grid--standard {
        --mvs-grid-gap: 0.9rem;
    }

    .mvs-highlight-card--standard .mvs-highlight-card__title {
        font-size: 0.95rem;
    }

    .mvs-highlight-card--standard .mvs-highlight-card__intro {
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mvs-highlight-card,
    .mvs-highlight-card__image,
    .mvs-highlight-readmore__icon,
    .mvs-highlight-expandable,
    .mvs-highlight-expandable__inner {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* 1.3.2: expanded copy stays in the same text column as title/intro. */
.mvs-highlight-card__body > .mvs-highlight-expandable {
    width: 100%;
}

.mvs-highlight-card__body > .mvs-highlight-expandable .mvs-highlight-expandable__inner {
    margin-inline: 0;
}

.mvs-highlight-card--featured .mvs-highlight-card__body > .mvs-highlight-expandable .mvs-highlight-expandable__inner {
    margin-inline: 0;
    padding-bottom: 0;
}

.mvs-highlight-card[data-expanded="true"] .mvs-highlight-card__body {
    justify-content: flex-start;
}

/* 1.3.3: keep the original 1.3.x image/text proportions when a card expands.
   Container queries cannot reliably make the queried card itself change layout,
   so expanded image cards get the same two-column layout through a viewport breakpoint. */
@media (min-width: 768px) {
    .mvs-highlight-card[data-expanded="true"].mvs-highlight-card--standard.mvs-highlight-card--has-image .mvs-highlight-card__summary {
        display: grid;
        grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
        align-items: stretch;
    }

    .mvs-highlight-card[data-expanded="true"].mvs-highlight-card--standard.mvs-highlight-card--has-image .mvs-highlight-card__media {
        aspect-ratio: auto;
        min-height: 11rem;
    }

    .mvs-highlight-card[data-expanded="true"].mvs-highlight-card--featured.mvs-highlight-card--feature.mvs-highlight-card--has-image .mvs-highlight-card__summary {
        display: grid;
        grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
        align-items: stretch;
    }

    .mvs-highlight-card[data-expanded="true"].mvs-highlight-card--featured.mvs-highlight-card--feature.mvs-highlight-card--has-image .mvs-highlight-card__media {
        aspect-ratio: auto;
        min-height: 15rem;
    }
}


/* 1.3.4: Detail/Compact is intentionally a quiet information list rather than
   another card grid. One column on phones, two from the small breakpoint up. */
.mvs-highlight-section--detail .mvs-highlight-section__title {
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.mvs-highlight-grid--detail {
    --mvs-grid-gap: 0px;
    margin: 0;
    border-top: 1px solid var(--mvs-border);
}

.mvs-highlight-card--detail:not([data-expanded="true"]) {
    margin: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--mvs-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__summary {
    min-height: 5.4rem;
    flex-direction: row;
    align-items: center;
    padding: 0.2rem 0;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__media {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    margin: 0 0 0 0.2rem;
    border-radius: 0.7rem;
    background: #f8fafc;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__image {
    object-fit: contain;
    padding: 0.38rem;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__body {
    justify-content: center;
    padding: 0.9rem 1rem;
}

.mvs-highlight-card--detail:not([data-expanded="true"]).mvs-highlight-card--no-image .mvs-highlight-card__body {
    padding-left: 0.2rem;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__title {
    font-size: 0.94rem;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: -0.005em;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__intro {
    margin-top: 0.28rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-readmore {
    margin-top: 0.35rem;
    padding-top: 0;
    color: #475569;
    font-size: 0.79rem;
    font-weight: 600;
}

.mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-readmore__icon {
    width: 0.95rem;
    height: 0.95rem;
}

/* Keep the two-column overview visually open: whitespace separates columns,
   while the only visible structure is the quiet horizontal hairline. */
@media (min-width: 640px) {
    .mvs-highlight-grid--detail .mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__summary {
        padding-inline: 0.8rem;
    }
}

/* 1.3.5: an opened Detail/Compact item keeps the same quiet information-list
   language as the collapsed state. It may use the full grid width for readability,
   but never turns into a card/panel. */
.mvs-highlight-card--detail[data-expanded="true"] {
    margin: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--mvs-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-card__summary {
    min-height: 5.4rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0.2rem 0;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-card__media {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    margin: 1rem 0 0 0.2rem;
    border-radius: 0.7rem;
    background: #f8fafc;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-card__image {
    object-fit: contain;
    padding: 0.38rem;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-card__body {
    justify-content: flex-start;
    padding: 0.9rem 1rem 1.1rem;
}

.mvs-highlight-card--detail[data-expanded="true"].mvs-highlight-card--no-image .mvs-highlight-card__body {
    padding-left: 0.2rem;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-card__title {
    font-size: 0.94rem;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: -0.005em;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-card__intro {
    margin-top: 0.28rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-expandable__inner {
    margin-inline: 0;
    padding: 0.8rem 0 0;
    border-top: 1px solid #eef2f7;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-expandable__content {
    max-width: 82ch;
    color: #526173;
    font-size: 0.88rem;
    line-height: 1.7;
}

.mvs-highlight-card--detail[data-expanded="true"] .mvs-highlight-collapse {
    margin-top: 0.65rem;
    color: #475569;
    font-size: 0.79rem;
    font-weight: 600;
}

@media (max-width: 639px) {
    .mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__summary {
        min-height: 4.9rem;
    }

    .mvs-highlight-card--detail:not([data-expanded="true"]) .mvs-highlight-card__body {
        padding-right: 0.25rem;
    }
}
