/* =====================================================================
   Mazda UAE - model pages (/cars/<model>/) new design
   On for everyone since 2026-11-26 (?facelift=0 = old design). Loaded by
   Views/Partials/Facelift/_VehicleOverview.cshtml, which ContentPage.cshtml
   uses for the model pages under /cars/ and their Specs (grades), Features
   and Gallery sub-pages (div.vdf.vdf--sub, rules at the end of this file).
   Everything is scoped under .vdf (the wrapper around the page's CMS
   blocks), so no other page is affected. The CMS blocks keep their own
   markup; this file restyles them. .vdf-bar and .vdf-close are new.
   Same look as the home page and site header (home-facelift.css,
   site-chrome.css): ink #0b0b0c, MazdaType, square-ish 3px buttons,
   neutral lines only (no red decorative lines).
   ===================================================================== */

.vdf {
    --vdf-ink: #0b0b0c;
    --vdf-text: #101010;
    --vdf-muted: #5c5c5c;
    --vdf-line: #dcdcd8;
    --vdf-paper: #f4f4f2;
    --vdf-accent: #911921;
    --vdf-ease: cubic-bezier(.2, .7, .2, 1);
    --vdf-gutter: clamp(16px, 4vw, 48px);
    --vdf-track: .1em;
    --vdf-font: "MazdaType", "Mazda Type", Helvetica, Arial, sans-serif;
    --vdf-pad: clamp(64px, 8vw, 128px);
    font-family: var(--vdf-font);
    color: var(--vdf-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
.vdf.vdf--rtl {
    --vdf-track: 0;
    --vdf-font: "MazdaType", "IBM Plex Sans Arabic", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
}
.vdf *, .vdf *::before, .vdf *::after { box-sizing: border-box; }
.vdf h1, .vdf h2, .vdf h3, .vdf p, .vdf a, .vdf button { font-family: var(--vdf-font) !important; }

/* ---------- container: 85% of the screen on desktop (as the home page) ---------- */
.vdf .vdf-wrap,
.vdf .full-width__inner-wrapper,
.vdf .menu-secondary__row,
.vdf .image-text {
    width: 100%;
    max-width: calc(1320px + 2 * var(--vdf-gutter));
    margin-inline: auto;
    padding-inline: var(--vdf-gutter);
}
@media (min-width: 1200px) {
    .vdf .vdf-wrap,
    .vdf .menu-secondary__row { width: 85%; max-width: none; padding-inline: 0; }
}

/* ---------- buttons ---------- */
.vdf .vdf-btn,
.vdf .full-width__links a[data-atom="button"],
.vdf .sixty-forty__button a,
.vdf .fifty-fifty__button a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    max-width: none !important;
    width: auto !important;
    min-height: 52px;
    height: auto !important;
    margin: 0 !important;
    padding: 0 30px !important;
    border-radius: 3px !important;
    border: 1px solid var(--vdf-ink) !important;
    background: var(--vdf-ink) !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .2em !important;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .3s var(--vdf-ease), color .3s var(--vdf-ease), border-color .3s var(--vdf-ease);
}
.vdf .vdf-btn--outline { background: transparent !important; color: var(--vdf-ink) !important; }
.vdf .vdf-btn--light { background: #fff !important; border-color: #fff !important; color: var(--vdf-ink) !important; }
.vdf .vdf-btn--ghost { background: transparent !important; border-color: rgba(255, 255, 255, .45) !important; color: #fff !important; }
@media (hover: hover) {
    .vdf .vdf-btn:hover,
    .vdf .full-width__links a[data-atom="button"]:hover,
    .vdf .sixty-forty__button a:hover,
    .vdf .fifty-fifty__button a:hover { background: var(--vdf-accent) !important; border-color: var(--vdf-accent) !important; color: #fff !important; }
    .vdf .vdf-btn--ghost:hover { background: #fff !important; border-color: #fff !important; color: var(--vdf-ink) !important; }
}
.vdf--rtl .vdf-btn,
.vdf--rtl .full-width__links a[data-atom="button"] { letter-spacing: 0 !important; font-size: 15px !important; }
.vdf a:focus-visible, .vdf button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* =====================================================================
   Sub menu (b22): white bar, model name first, neutral underline on the
   current page, buttons on the right. The site's own script still pins it.
   ===================================================================== */
.vdf .menu-secondary { background: #fff; border-bottom: 1px solid var(--vdf-line); }
.vdf .menu-secondary--sticky .menu-secondary__container { border-bottom: 1px solid var(--vdf-line); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
@media (min-width: 960px) {
    .vdf .menu-secondary__container { padding: 0; }
    .vdf .menu-secondary__row { min-height: 64px; gap: 10px; }
    .vdf .menu-secondary__col--links { flex: 1 1 auto; min-width: 0; }
    .vdf .menu-secondary__nav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin: 0; padding: 0; }
    .vdf .menu-secondary__nav__list-item { margin: 0 !important; padding: 0 !important; border: 0 !important; }
    .vdf .menu-secondary__nav__list-item::after, .vdf .menu-secondary__nav__list-item::before { display: none !important; }
    .vdf .menu-secondary__nav__list-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        height: 64px;
        padding: 0 !important;
        border: 0 !important;
        color: var(--vdf-muted) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: .18em !important;
        text-transform: uppercase;
        transition: color .25s var(--vdf-ease);
    }
    .vdf .menu-secondary__nav__list-link::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: -1px;
        height: 2px;
        background: var(--vdf-ink);
        transform: scaleX(0);
        transition: transform .3s var(--vdf-ease);
    }
    .vdf .menu-secondary__nav__list-link:hover { color: var(--vdf-ink) !important; }
    .vdf .menu-secondary__nav__list-link.active { color: var(--vdf-ink) !important; }
    .vdf .menu-secondary__nav__list-link.active::after { transform: scaleX(1); }
    /* the first link is the model itself */
    .vdf .menu-secondary__nav__list-item:first-child .menu-secondary__nav__list-link {
        font-size: 15px !important;
        letter-spacing: .1em !important;
        color: var(--vdf-ink) !important;
        padding-inline-end: clamp(16px, 2vw, 30px) !important;
        margin-inline-end: 0;
        border-inline-end: 1px solid var(--vdf-line) !important;
        height: 28px;
    }
    .vdf .menu-secondary__nav__list-item:first-child .menu-secondary__nav__list-link::after { display: none; }
    .vdf .menu-secondary__col--cta { flex: none; padding: 0 !important; margin: 0 !important; }
    .vdf .menu-secondary__cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 0 !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 20px !important;
        border-radius: 3px !important;
        border: 1px solid var(--vdf-ink) !important;
        background: transparent !important;
        color: var(--vdf-ink) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: .18em !important;
        line-height: 1 !important;
        text-transform: uppercase;
        transition: background-color .3s var(--vdf-ease), color .3s var(--vdf-ease), border-color .3s var(--vdf-ease);
    }
    .vdf .menu-secondary__col--cta:first-of-type .menu-secondary__cta,
    .vdf .menu-secondary__col--links + .menu-secondary__col--cta .menu-secondary__cta { background: var(--vdf-ink) !important; color: #fff !important; }
    .vdf .menu-secondary__cta:hover { background: var(--vdf-accent) !important; border-color: var(--vdf-accent) !important; color: #fff !important; }
    .vdf--rtl .menu-secondary__nav__list-link, .vdf--rtl .menu-secondary__cta { letter-spacing: 0 !important; font-size: 14px !important; }
}

/* =====================================================================
   Hero (b01): taller, edge to edge; the model bar sits right under it
   ===================================================================== */
.vdf .hslider { margin-bottom: 0 !important; }
@media (min-width: 768px) {
    .vdf .hero--large { height: clamp(460px, calc(100vh - 290px), 760px) !important; max-height: none; }
}

/* =====================================================================
   Model bar (new): name + body type, price, two buttons
   ===================================================================== */
.vdf .vdf-bar { background: #fff; border-bottom: 1px solid var(--vdf-line); }
.vdf .vdf-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: clamp(20px, 3vw, 56px);
    padding-block: clamp(22px, 2.4vw, 34px);
}
.vdf .vdf-bar p { margin: 0; }
.vdf .vdf-bar__name {
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vdf-ink);
}
.vdf .vdf-bar__type {
    margin-top: 8px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--vdf-muted);
}
.vdf .vdf-bar__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-inline-start: clamp(20px, 3vw, 56px);
    border-inline-start: 1px solid var(--vdf-line);
}
.vdf .vdf-bar__price-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--vdf-muted); }
.vdf .vdf-bar__price-num { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; font-weight: 500; letter-spacing: .02em; color: var(--vdf-ink); font-variant-numeric: tabular-nums; }
.vdf .vdf-bar__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.vdf--rtl .vdf-bar__name, .vdf--rtl .vdf-bar__type, .vdf--rtl .vdf-bar__price-label { letter-spacing: 0; }
.vdf--rtl .vdf-bar__type, .vdf--rtl .vdf-bar__price-label { font-size: 14px; }

/* =====================================================================
   Text sections (b07): statement headings, calm copy, real buttons
   ===================================================================== */
.vdf .full-width { padding: 0 !important; min-height: 0 !important; height: auto !important; }
.vdf .full-width__inner-wrapper {
    padding-block: var(--vdf-pad) !important;
    max-width: calc(980px + 2 * var(--vdf-gutter)) !important;
    text-align: center;
}
/* pre-title, heading, copy and buttons in one column spaced by the gap; empty CMS fields get .vdf-empty
   from vehicle-facelift.js. The CMS copy is often several sibling <p> (the editor's <p> inside p.full-width__copy). */
.vdf .full-width__inner-wrapper > div:not(.hero__video-container) { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 1.6vw, 24px); }
.vdf .full-width__inner-wrapper > div > * { margin: 0 !important; }
.vdf .vdf-empty,
.vdf .full-width__links a.vdf-empty[data-atom] { display: none !important; }
.vdf .full-width__pre-title { font-size: 12px !important; line-height: 1.5 !important; font-weight: 700 !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--vdf-muted) !important; }
.vdf .full-width__title,
.vdf .full-width.vdf-prehead .full-width__pre-title {
    margin: 0 !important;
    font-size: clamp(26px, 3vw, 46px) !important;
    line-height: 1.12 !important;
    font-weight: 500 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    color: var(--vdf-ink) !important;
    max-width: 22ch;
    text-wrap: balance;
}
.vdf .full-width.vdf-prehead .full-width__pre-title { line-height: 1.12 !important; }
/* b07WithColumn.cshtml adds .cx60 to .page-container on the CX-60 / CX-90 URLs (its own inline style);
   keep those pages the same as the other models. */
.cx60 .vdf .full-width__inner-wrapper { padding-inline: var(--vdf-gutter) !important; }
.cx60 .vdf .full-width__title { padding: 20px 0 !important; line-height: 1.12 !important; }
.vdf .full-width__inner-wrapper > div > p,
.vdf .full-width__inner-wrapper > div > ul,
.vdf .full-width__inner-wrapper > div > ol,
.vdf .full-width__copy p {
    font-size: clamp(15px, 1.15vw, 18px) !important;
    line-height: 1.75 !important;
    letter-spacing: 0 !important;
    color: var(--vdf-muted) !important;
    max-width: 68ch;
    text-wrap: pretty;
}
.vdf .full-width__inner-wrapper > div > p a { color: var(--vdf-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.vdf .full-width__inner-wrapper .full-width__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(8px, 1vw, 16px) !important; }
.vdf--rtl .full-width__title, .vdf--rtl .full-width__pre-title { letter-spacing: 0 !important; text-transform: none; }
/* marked by vehicle-facelift.js */
.vdf .full-width.vdf-notitle .full-width__inner-wrapper { padding-top: clamp(40px, 4vw, 64px) !important; }
.vdf .full-width.vdf-ctaonly .full-width__inner-wrapper { padding-block: 0 clamp(56px, 6vw, 96px) !important; }
.vdf .full-width.vdf-ctaonly .full-width__inner-wrapper .full-width__links { margin-top: 0 !important; }
/* a CMS background picture with the light theme keeps its white text */
.vdf .full-width.vdf-hasbg.full-width--light .full-width__title,
.vdf .full-width.vdf-hasbg.full-width--light .full-width__pre-title,
.vdf .full-width.vdf-hasbg.full-width--light .full-width__inner-wrapper > div > p { color: #fff !important; }
/* section heading block (e.g. "Mazda Intelligent Drive Select") */
.vdf .full-width--small .full-width__inner-wrapper { padding-block: var(--vdf-pad) 0 !important; }
.vdf .full-width__subpage-title {
    margin: 0 auto !important;
    font-size: clamp(24px, 2.4vw, 38px) !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    color: var(--vdf-ink) !important;
    max-width: 24ch;
    text-wrap: balance;
}
.vdf--rtl .full-width__subpage-title { letter-spacing: 0 !important; }

/* =====================================================================
   Feature cards (b03): three across, photo first, open the same popup
   ===================================================================== */
.vdf .image-text {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 2.4vw, 40px) clamp(18px, 2vw, 32px);
    padding-block: var(--vdf-pad) !important;
    text-align: start !important;
    background-clip: padding-box;
}
@media (min-width: 1200px) { .vdf .image-text { width: 100%; max-width: none; padding-inline: 7.5vw; } }
.vdf .image-text.vdf-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vdf .image-text.vdf-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vdf .image-text > article { width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; padding: 0 !important; }
.vdf .image-text__link { display: block !important; height: 100%; color: inherit !important; text-decoration: none !important; }
.vdf .image-text__img-container {
    position: relative !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    background: #e6e6e3;
    margin: 0 !important;
}
.vdf .image-text__img-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center !important;
    transform: scale(1.001);
    transition: transform 1.1s var(--vdf-ease);
}
@media (hover: hover) {
    .vdf .image-text__link:hover .image-text__img-wrapper { transform: scale(1.05); }
}
.vdf .image-text__content { padding: 22px 0 0 !important; margin: 0 !important; text-align: start !important; }
.vdf .image-text__title {
    margin: 0 0 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase;
    color: var(--vdf-ink) !important;
}
.vdf .image-text__content p,
.vdf .image-text__content .image-text__copy {
    margin: 0 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--vdf-muted) !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* cards that open a popup: a small "more" cue. It takes no width on the line (the end margin cancels it out),
   so it always stays beside the last word instead of wrapping onto a line of its own; the padding keeps it inside. */
.vdf .image-text__link.popupimage .image-text__title { padding-inline-end: 22px !important; }
.vdf .image-text__link.popupimage .image-text__title::after {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-inline-start: 10px;
    margin-inline-end: -17px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .3s var(--vdf-ease);
}
.vdf--rtl .image-text__link.popupimage .image-text__title::after { transform: translateY(-2px) rotate(-135deg); }
@media (hover: hover) {
    .vdf .image-text__link.popupimage:hover .image-text__title::after { transform: translate(4px, -2px) rotate(45deg); }
    .vdf--rtl .image-text__link.popupimage:hover .image-text__title::after { transform: translate(-4px, -2px) rotate(-135deg); }
}
.vdf--rtl .image-text__title { letter-spacing: 0 !important; font-size: 16px !important; }
/* one card (e.g. a safety award): picture beside the text */
.vdf .image-text.vdf-n1 { grid-template-columns: minmax(0, 1fr); }
.vdf .image-text.vdf-n1 .image-text__link { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.vdf .image-text.vdf-n1 .image-text__img-container { aspect-ratio: 16 / 9; }
.vdf .image-text.vdf-n1 .image-text__content { padding: 0 !important; }
.vdf .image-text.vdf-n1 .image-text__content p,
.vdf .image-text.vdf-n1 .image-text__content .image-text__copy { -webkit-line-clamp: unset; display: block; }

/* =====================================================================
   60/40 picture (b04) and 50/50 (b08)
   ===================================================================== */
.vdf .sixty-forty__bgimage--medium { height: clamp(380px, 46vw, 760px) !important; background-size: cover !important; background-position: center !important; }
.vdf .sixty-forty.vdf-imageonly .sixty-forty__content { display: none !important; }

.vdf .fifty-fifty { max-height: none !important; align-items: stretch; }
.vdf .fifty-fifty__image { max-height: none !important; min-height: clamp(320px, 38vw, 640px); }
.vdf .fifty-fifty__imageAsset { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.vdf .fifty-fifty__content { padding: clamp(48px, 6vw, 112px) clamp(24px, 6vw, 112px) !important; justify-content: flex-start !important; }
.vdf .fifty-fifty__content-block { min-width: 0 !important; max-width: 520px !important; }
.vdf .fifty-fifty__content-block--title h2,
.vdf .fifty-fifty__content-block--titleText {
    margin: 0 !important;
    font-size: clamp(24px, 2.4vw, 38px) !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    color: var(--vdf-ink) !important;
}
.vdf .fifty-fifty__content-block--text { margin-top: clamp(18px, 1.8vw, 26px) !important; }
.vdf .fifty-fifty__content-block--text p,
.vdf .fifty-fifty__content-block--textCopy { margin: 0 !important; font-size: clamp(15px, 1.1vw, 17px) !important; line-height: 1.75 !important; color: var(--vdf-muted) !important; }
.vdf .fifty-fifty__content-block--text p + p { margin-top: 14px !important; }
.vdf--rtl .fifty-fifty__content-block--titleText { letter-spacing: 0 !important; }

/* =====================================================================
   Feature carousel (b05)
   ===================================================================== */
.vdf .tout-carousel { padding-block: clamp(28px, 3vw, 48px) var(--vdf-pad) !important; }
.vdf .tout-carousel__tabs.vdf-onetab { display: none !important; }
/* the tabs' slides are stacked absolutely in a 520px box: let the open tab set the height instead */
.vdf .tout-carousel__tabs-content { height: auto !important; margin-top: clamp(32px, 3.6vw, 56px) !important; }
.vdf .tout-carousel__tabs-content-item { top: 0; left: 0; }
.vdf .tout-carousel__tabs-content-item.active { position: relative !important; }
.vdf .tout-carousel__tabs.vdf-onetab + * .tout-carousel__tabs-content,
.vdf .tout-carousel__tabs.vdf-onetab ~ .tout-carousel__tabs-content { margin-top: 0 !important; }
/* Cards stay 300px a slot (284 + 2 x 8), as main.js centres the row when 300 x cards fits the screen. */
.vdf .tout-carousel__item {
    width: 284px !important;
    max-width: 284px !important;
    margin: 0 8px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vdf-line) !important;
    border-radius: 2px;
    overflow: hidden;
    text-align: start !important;
}
.vdf .tout-carousel__item-image-wrapper { aspect-ratio: 16 / 10; height: auto !important; overflow: hidden; flex: none; }
.vdf .tout-carousel__item-image { width: 100%; height: 100% !important; background-size: cover !important; background-position: center !important; }
.vdf .tout-carousel__item-content-wrapper { flex: 1 1 auto; height: auto !important; border: 0 !important; padding: 22px 22px 26px !important; text-align: start !important; }
.vdf .tout-carousel__item-content-wrapper::after { display: none !important; }
.vdf .tout-carousel__item-categoryText { margin: 0 0 10px !important; line-height: 1.5 !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .18em !important; color: var(--vdf-muted) !important; text-transform: uppercase; }
.vdf .tout-carousel__item-title { border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; }
.vdf .tout-carousel__item-title::after, .vdf .tout-carousel__item-title::before { display: none !important; }
.vdf .tout-carousel__item-titleText { margin: 0 !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 500 !important; letter-spacing: .08em !important; color: var(--vdf-ink) !important; text-transform: uppercase; }
.vdf .tout-carousel__item-copy { margin: 0 !important; }
.vdf .tout-carousel__item-copyText {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    height: auto !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: var(--vdf-muted) !important;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vdf--rtl .tout-carousel__item-categoryText, .vdf--rtl .tout-carousel__item-titleText { letter-spacing: 0 !important; }

/* =====================================================================
   Colours / 360 view (b10)
   ===================================================================== */
.vdf .three-sixty { padding: var(--vdf-pad) 0 clamp(48px, 5vw, 80px) !important; }
.vdf .three-sixty__intro--tagline {
    margin: 0 0 22px !important;
    font-size: clamp(24px, 2.4vw, 38px) !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    color: var(--vdf-ink) !important;
}
.vdf--rtl .three-sixty__intro--tagline { letter-spacing: 0 !important; }
.vdf .three-sixty__view-toggles ul { display: inline-flex !important; gap: 4px; padding: 4px !important; border-radius: 999px; background: var(--vdf-paper); }
.vdf .three-sixty__view-toggles li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.vdf .three-sixty__view-toggles li::before, .vdf .three-sixty__view-toggles li::after { display: none !important; }
.vdf .three-sixty__view-toggle {
    display: inline-flex !important;
    align-items: center;
    height: 36px;
    padding: 0 18px !important;
    border-radius: 999px;
    border: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .18em !important;
    color: var(--vdf-muted) !important;
    text-decoration: none !important;
}
.vdf .three-sixty__view-toggle.active { background: #fff; color: var(--vdf-ink) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.vdf .three-sixty__view-toggle::after, .vdf .three-sixty__view-toggle::before { display: none !important; }

/* =====================================================================
   Closing band (new): dark, the car beside the main actions
   ===================================================================== */
.vdf .vdf-close { position: relative; background: var(--vdf-ink); color: #fff; overflow: hidden; isolation: isolate; }
.vdf .vdf-close::before {
    content: "";
    position: absolute;
    inset: auto -10% -40% 30%;
    height: 90%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
    z-index: -1;
}
.vdf--rtl .vdf-close::before { inset: auto 30% -40% -10%; }
.vdf .vdf-close__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(24px, 4vw, 72px);
    padding-block: clamp(64px, 7vw, 112px);
}
.vdf .vdf-close--nomedia .vdf-close__inner { grid-template-columns: minmax(0, 1fr); }
.vdf .vdf-close p { margin: 0; }
.vdf .vdf-close__title { font-size: clamp(32px, 4vw, 64px); line-height: 1.02; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.vdf .vdf-close__lead { margin-top: 18px !important; max-width: 44ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; color: rgba(255, 255, 255, .72); }
.vdf .vdf-close__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 2.8vw, 40px); }
.vdf .vdf-close__media img { display: block; width: 100%; max-width: 760px; height: auto; margin-inline-start: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); }
.vdf--rtl .vdf-close__title { letter-spacing: 0; }
.vdf--rtl .vdf-close__media img { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: auto; }
/* The model's own closing picture already faces the text (an Arabic one faces right): not mirrored. */
.vdf--rtl .vdf-close__media img.vdf-close__facing { transform: none; }

/* =====================================================================
   Shopping tools (b02): plain tiles
   ===================================================================== */
.vdf .shopping-tools { background: var(--vdf-paper) !important; padding: clamp(48px, 5vw, 80px) var(--vdf-gutter) !important; }
.vdf .shopping-tools__header-title { margin: 0 0 clamp(24px, 2.4vw, 36px) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .22em !important; color: var(--vdf-muted) !important; text-align: center; }
.vdf .shopping-tools__inner-wrapper { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto !important; }
.vdf .shopping-tools__article { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; flex: none !important; }
.vdf .shopping-tools__link {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 28px !important;
    background: #fff;
    border: 1px solid var(--vdf-line);
    border-radius: 2px;
    text-align: start !important;
    text-decoration: none !important;
    transition: border-color .3s var(--vdf-ease), box-shadow .3s var(--vdf-ease);
}
.vdf .shopping-tools__icon { display: none !important; }
.vdf .shopping-tools__title { margin: 0 0 8px !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .16em !important; color: var(--vdf-ink) !important; }
.vdf .shopping-tools__copy { margin: 0 0 18px !important; font-size: 15px !important; line-height: 1.65 !important; color: var(--vdf-muted) !important; }
.vdf .shopping-tools__cta { margin-top: auto !important; }
@media (hover: hover) { .vdf .shopping-tools__link:hover { border-color: var(--vdf-ink); box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .45); } }

/* =====================================================================
   Gentle reveal (added by vehicle-facelift.js; nothing hides without it)
   ===================================================================== */
.vdf .vdf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--vdf-ease), transform .9s var(--vdf-ease); }
.vdf .vdf-reveal.vdf-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .vdf .vdf-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Tablet and phone
   ===================================================================== */
@media (max-width: 1099px) {
    .vdf .vdf-bar__inner { grid-template-columns: minmax(0, 1fr) auto; }
    .vdf .vdf-bar__ctas { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 959px) {
    .vdf .image-text, .vdf .image-text.vdf-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vdf .vdf-close__inner { grid-template-columns: minmax(0, 1fr); }
    .vdf .vdf-close__media { order: -1; }
    .vdf .vdf-close__media img { margin-inline: auto; max-width: 560px; }
}
@media (max-width: 767px) {
    .vdf { --vdf-pad: 56px; }
    .vdf .vdf-bar__inner { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 24px 28px; }
    .vdf .vdf-bar__price { padding-inline-start: 0; border: 0; flex-direction: row; align-items: baseline; gap: 10px; }
    .vdf .vdf-bar__ctas, .vdf .vdf-close__ctas { display: grid; grid-template-columns: minmax(0, 1fr); }
    .vdf .vdf-btn, .vdf .full-width__links a[data-atom="button"] { width: 100% !important; min-width: 0; }
    .vdf .full-width__links { width: 100%; }
    /* cards: swipe sideways */
    .vdf .image-text, .vdf .image-text.vdf-n2, .vdf .image-text.vdf-n4 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        padding-inline: var(--vdf-gutter) !important;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--vdf-gutter);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .vdf .image-text::-webkit-scrollbar { display: none; }
    .vdf .image-text > article { flex: 0 0 82% !important; scroll-snap-align: start; }
    .vdf .image-text > .modal { flex: none !important; }
    .vdf .image-text.vdf-n1 { display: block !important; }
    .vdf .image-text.vdf-n1 > article { flex: none !important; }
    .vdf .image-text.vdf-n1 .image-text__link { grid-template-columns: minmax(0, 1fr); }
    .vdf .fifty-fifty { flex-direction: column !important; }
    .vdf .fifty-fifty__image, .vdf .fifty-fifty__content { width: 100% !important; }
    .vdf .fifty-fifty__image { min-height: 0; aspect-ratio: 4 / 3; }
    .vdf .fifty-fifty__content { padding: 40px var(--vdf-gutter) 56px !important; }
    .vdf .sixty-forty__bgimage--medium { height: auto !important; }
    /* colour swatches swipe sideways (as before); keep the first one off the screen edge */
    .vdf .three-sixty__swatches--exterior .color-picker { padding-inline: var(--vdf-gutter) !important; }
    .vdf .vdf-close__inner { padding-block: 48px 56px; }
}

/* =====================================================================
   Sub-pages: Specs (grades), Features, Gallery (div.vdf.vdf--sub)
   Classes from vehicle-facelift.js: vdf-tone (a CMS grey background,
   shown white), vdf-after-head (the block right after a section heading),
   vdf-onetab (a tab bar with one tab), vdf-empty (empty CMS paragraph).
   ===================================================================== */
.vdf--sub .vdf-tone { background-color: #fff !important; }
/* a dark CMS background (vdf-dark, e.g. #101010) keeps it, with light text and outlined buttons */
.vdf--sub .vdf-dark .full-width__title,
.vdf--sub .vdf-dark .full-width__pre-title,
.vdf--sub .vdf-dark .full-width__subpage-title,
.vdf--sub .vdf-dark .image-text__title,
.vdf--sub .vdf-dark .hero__feature-header,
.vdf--sub .vdf-dark .full-width__inner-wrapper > div > p a,
.vdf--sub .vdf-dark .hero__inner-wrapper > p a { color: #fff !important; }
.vdf--sub .vdf-dark .full-width__inner-wrapper > div > p,
.vdf--sub .vdf-dark .full-width__inner-wrapper > div > ul,
.vdf--sub .vdf-dark .full-width__inner-wrapper > div > ol,
.vdf--sub .vdf-dark .full-width__copy p,
.vdf--sub .vdf-dark .image-text__content p,
.vdf--sub .vdf-dark .image-text__content .image-text__copy,
.vdf--sub .vdf-dark .hero__inner-wrapper > p { color: rgba(255, 255, 255, .72) !important; }
.vdf--sub .vdf-dark .full-width__links a[data-atom="button"] { background: transparent !important; border-color: rgba(255, 255, 255, .45) !important; color: #fff !important; }
@media (hover: hover) {
    .vdf--sub .vdf-dark .full-width__links a[data-atom="button"]:hover { background: #fff !important; border-color: #fff !important; color: var(--vdf-ink) !important; }
}
.vdf--sub .full-width--small .full-width__inner-wrapper { padding-block: clamp(56px, 6vw, 96px) clamp(28px, 3vw, 48px) !important; }
.vdf--sub .image-text.vdf-after-head { padding-top: 0 !important; }
/* five or more cards (vdf-nmany): three a row, so a row of 5 isn't 4 + 1 */
@media (min-width: 960px) { .vdf--sub .image-text.vdf-nmany { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* a card whose CMS text holds an extra empty link (e.g. "Skyactiv Technology"): same layout as the others */
.vdf--sub .image-text__content > .image-text__link { display: block !important; height: auto !important; text-align: start !important; }

/* section titles */
.vdf--sub .grade-select__tab-heading,
.vdf--sub .grade-select__accordion__title,
.vdf--sub .gallery__header-title {
    margin: 0 0 clamp(20px, 2vw, 28px) !important;
    padding: 0 !important;
    font-size: clamp(24px, 2.4vw, 38px) !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    color: var(--vdf-ink) !important;
    text-align: center;
    text-wrap: balance;
}
.vdf--rtl.vdf--sub .grade-select__tab-heading,
.vdf--rtl.vdf--sub .grade-select__accordion__title,
.vdf--rtl.vdf--sub .gallery__header-title { letter-spacing: 0 !important; }

/* page intro (b01 short hero: title and a line of copy, or a picture) */
.vdf--sub .hero--small { height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; }
.vdf--sub .hero--small .hero__inner-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 1.4vw, 20px);
    max-width: calc(980px + 2 * var(--vdf-gutter));
    margin: 0 auto;
    padding: clamp(48px, 5vw, 88px) var(--vdf-gutter) !important;
    text-align: center;
}
.vdf--sub .hero--small .hero__inner-wrapper > * { margin: 0 !important; }
.vdf--sub .hero__feature-header {
    font-size: clamp(28px, 3.4vw, 52px) !important;
    line-height: 1.08 !important;
    font-weight: 500 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    color: var(--vdf-ink) !important;
    text-wrap: balance;
}
.vdf--sub .hero--small .hero__inner-wrapper > p { max-width: 62ch; font-size: clamp(15px, 1.15vw, 18px) !important; line-height: 1.7 !important; color: var(--vdf-muted) !important; }
.vdf--sub .hero--small .hero__inner-wrapper > p a { color: var(--vdf-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.vdf--sub .hero--small .hero__inner-wrapper img { max-width: 100%; height: auto; }
.vdf--rtl.vdf--sub .hero__feature-header { letter-spacing: 0 !important; }

/* tabs (grades, gallery): a pill switch on desktop; phones keep the site's drop-down */
@media (min-width: 961px) {
    .vdf--sub .tabs { position: relative; text-align: center; }
    .vdf--sub .tabs__items { display: inline-flex !important; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto !important; padding: 4px !important; border-radius: 26px; background: var(--vdf-paper); list-style: none; }
    .vdf--sub .tabs__item { margin: 0 !important; padding: 0 !important; border: 0 !important; }
    .vdf--sub .tabs__item::before, .vdf--sub .tabs__item::after { display: none !important; }
    .vdf--sub .tabs__item .tabs__button {
        display: inline-flex !important;
        align-items: center;
        height: 40px;
        padding: 0 20px !important;
        border-radius: 999px;
        border: 0 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: .18em !important;
        text-transform: uppercase;
        color: var(--vdf-muted) !important;
        text-decoration: none !important;
        white-space: nowrap;
        word-break: normal;
        transition: background-color .25s var(--vdf-ease), color .25s var(--vdf-ease), box-shadow .25s var(--vdf-ease);
    }
    .vdf--sub .tabs__item .tabs__button:hover { color: var(--vdf-ink) !important; }
    .vdf--sub .tabs__item.active .tabs__button { background: #fff; color: var(--vdf-ink) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
    .vdf--sub .tabs__active-line, .vdf--sub .tabs__inactive-line { display: none !important; }
    .vdf--rtl.vdf--sub .tabs__item .tabs__button { letter-spacing: 0 !important; font-size: 14px !important; }
}
@media (max-width: 960px) {
    .vdf--sub .tabs .choices { width: min(100%, 420px); font-size: 12px; letter-spacing: .1em; }
    .vdf--sub .tabs .choices__inner { border: 1px solid var(--vdf-line); border-radius: 2px; background: #fff; }
    .vdf--sub .tabs .choices__item { word-break: normal; }
    .vdf--rtl.vdf--sub .tabs .choices { font-size: 14px; letter-spacing: 0; }
}
.vdf--sub .grade-select__tabs .tabs.vdf-onetab,
.vdf--sub .gallery > .tabs.vdf-onetab { display: none !important; }

/* Specs: grade switch, picture, specification list */
.vdf--sub .section--grade-select { padding: clamp(48px, 5vw, 88px) 0 clamp(40px, 4vw, 64px) !important; }
.vdf--sub .grade-select__container { max-width: calc(1100px + 2 * var(--vdf-gutter)); margin: 0 auto; padding-inline: var(--vdf-gutter); }
.vdf--sub .grade-select__heading:empty { display: none; }
.vdf--sub .grade-select__tabs { margin-bottom: clamp(24px, 3vw, 40px) !important; }
/* The selected body type's grade switch and picture were placed absolutely in a 600px box; the selected one
   now stays in the flow so the box fits it (the hidden ones stay absolute, so switching works as before). */
.vdf--sub .grade-select__content { display: block !important; min-height: 0 !important; max-width: none !important; }
.vdf--sub .grade-select__options { top: 0; }
.vdf--sub .grade-select__options[data-selected="true"] { position: relative !important; }
.vdf--sub .grade-select__grade { height: auto !important; margin-bottom: clamp(20px, 2.4vw, 36px) !important; }
.vdf--sub .grade-select__grade__tabs-container { top: 0; }
.vdf--sub .grade-select__grade__tabs-container[data-selected="true"] { position: relative !important; }
.vdf--sub .grade-select__details { flex-direction: column; align-items: center; }
.vdf--sub .grade-select__details-img { position: static !important; top: auto !important; flex: none !important; width: min(720px, 100%) !important; height: auto !important; margin: 0 auto !important; }
.vdf--sub .grade-select__specs { margin: clamp(32px, 4vw, 64px) 0 0 !important; }
.vdf--sub .accordion { margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--vdf-line); list-style: none; }
.vdf--sub .accordion__item { border-bottom: 1px solid var(--vdf-line) !important; }
.vdf--sub .accordion__item-title {
    padding: 24px 44px 24px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: .16em !important;
    color: var(--vdf-ink) !important;
    text-align: start !important;
}
.vdf--rtl.vdf--sub .accordion__item-title { padding: 24px 0 24px 44px !important; letter-spacing: 0 !important; font-size: 15px !important; }
.vdf--sub .accordion__item-content__container { padding: 0 0 28px !important; }
.vdf--sub .grade-accordion__item-title:empty { display: none; }
.vdf--sub .grade-accordion__item-content { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 4vw, 64px); margin: 0 !important; }
.vdf--sub .grade-accordion__item-content > p {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 13px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--vdf-line) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    color: var(--vdf-text) !important;
    text-align: start !important;
}

/* Gallery */
.vdf--sub .gallery { width: auto !important; max-width: none !important; margin: 0 !important; background: #fff !important; padding: clamp(48px, 5vw, 88px) 0 var(--vdf-pad) !important; }
.vdf--sub .gallery__header { margin: 0 0 clamp(24px, 2.6vw, 36px) !important; padding: 0 var(--vdf-gutter) !important; text-align: center; }
.vdf--sub .gallery__header .gallery__header-title { margin: 0 !important; }
.vdf--sub .gallery__header-sub-title { margin: 12px 0 0 !important; padding: 0 !important; font-size: 12px !important; line-height: 1.5 !important; font-weight: 700 !important; letter-spacing: .2em !important; color: var(--vdf-muted) !important; text-transform: uppercase; }
.vdf--rtl.vdf--sub .gallery__header-sub-title { letter-spacing: 0 !important; font-size: 14px !important; }
.vdf--sub .gallery .tabs__container__inner .tabs__content--active { padding-top: clamp(24px, 3vw, 40px) !important; }
.vdf--sub .gallery__images {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 16px);
    width: 100%;
    max-width: calc(1320px + 2 * var(--vdf-gutter));
    margin: 0 auto !important;
    padding: 0 var(--vdf-gutter) !important;
}
@media (min-width: 1200px) { .vdf--sub .gallery__images { width: 85%; max-width: none; padding: 0 !important; } }
/* three a row; a shorter last row is centred (the thumbnails are 400px wide, so they are not enlarged) */
@media (min-width: 768px) {
    .vdf--sub .gallery__images { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .vdf--sub .gallery__images > * { grid-column: span 2; }
    .vdf--sub .gallery__images > :last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
    .vdf--sub .gallery__images > :nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
    .vdf--sub .gallery__images > :last-child:nth-child(3n+2) { grid-column: 4 / span 2; }
}
.vdf--sub .gallery__article { width: auto !important; max-width: none !important; height: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; flex: none !important; }
.vdf--sub .gallery__image-wrapper {
    display: block !important;
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px;
    overflow: hidden;
    background: #e6e6e3;
    cursor: zoom-in;
}
.vdf--sub .gallery__image-wrapper .gallery__image { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transform: scale(1.001); transition: transform 1.1s var(--vdf-ease); }
@media (hover: hover) { .vdf--sub .gallery__image-wrapper:hover .gallery__image { transform: scale(1.04); } }

@media (max-width: 767px) {
    .vdf--sub .grade-select__tab-heading,
    .vdf--sub .grade-select__accordion__title,
    .vdf--sub .gallery__header-title { font-size: 21px !important; }
    .vdf--sub .gallery__images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .vdf--sub .gallery__images > :first-child:nth-last-child(odd) { grid-column: 1 / -1; } /* odd count: no gap at the end */
    .vdf--sub .grade-accordion__item-content > p { font-size: 14px !important; padding: 11px 0 !important; }
    .vdf--sub .accordion__item-title { padding-block: 20px !important; }
}
