/* Dealer editorial presentation. All facts, routes and interaction state remain in the engine. */
:root, [data-theme] {
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 8px; --r-pill: 6px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px;
  --editorial-gutter: 28px;
}
[data-theme="light"] { --color-bg: #f7f7f5; --color-divider: #deded8; }
[data-editorial-page] { overflow: visible !important; }
[data-editorial-page] h2 { font-weight: 500; letter-spacing: -.045em !important; }
[data-editorial-page] :is(a,button,input,select,textarea):focus-visible { outline: 3px solid var(--as-brand); outline-offset: 4px; }

/* A straight, full-width masthead; the existing measured compact steps still own the controls. */
[data-editorial-header] {
  --color-text: #f7f7f5; --color-surface: #242529; --as-surface-2: #303136;
  --as-muted: #c0c0c3; --color-divider: #3c3d41; --as-line-strong: #55565b;
  background: #16171a !important; padding: 12px 28px 0 !important;
  gap: 8px !important; border-bottom: 1px solid #3c3d41; box-sizing: border-box;
}
[data-editorial-header] > div:first-child:not([data-header-bar]) { min-height: 20px; font-size: 12px !important; padding: 0 !important; }
[data-editorial-header] [data-header-bar] {
  border: 0 !important; position: relative;
  border-radius: 0 !important; padding: 14px 0 !important; min-height: 72px;
  box-sizing: border-box; box-shadow: none !important; background: #16171a !important;
}
[data-header-logo] { padding: 0 !important; border-radius: 0 !important; background: transparent !important; margin-right: 14px; }
[data-editorial-header] nav a { font-size: 13px !important; font-weight: 500 !important; }
[data-editorial-header] a:hover { opacity: 1; color: var(--as-brand) !important; }
/* the line between the hours strip and the bar runs the full width of the window; it sits on the top edge of the bar, which the sticky header scrolls out of view */
/* (a border-image outset paints past the box without adding to the layout width) */
[data-editorial-header] > div:first-child:not([data-header-bar]) + [data-header-bar] { border-top: 1px solid #3c3d41 !important; border-image: linear-gradient(#3c3d41, #3c3d41) 1 0 0 0 / 1px 0 0 0 / 0 100vmax 0 100vmax !important; }
/* the line under the header runs the full width of the window too (it ended at the 1440 px frame) */
[data-site] [data-editorial-header] { border-image: linear-gradient(#3c3d41, #3c3d41) 0 0 1 0 / 0 0 1px 0 / 0 100vmax 0 100vmax !important; }
/* the heart is the same round 40 px control as WhatsApp, theme and search */
[data-editorial-header] .editorial-favorites {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%;
  background: var(--as-surface-2); color: #f7f7f5; text-decoration: none; box-sizing: border-box;
}
[data-editorial-header] .editorial-favorites svg { width: 18px; height: 18px; }
[data-favorites-count] { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 4px; background: var(--as-brand); color: #16171a; font: 800 11px/16px var(--font-body); text-align: center; }
[data-favorites-count][data-count="0"] { display: none; }
[data-editorial-header] [data-header-favorites]:hover { background: #303136; }


[data-editorial-card] { padding: 0 !important; border-radius: 6px !important; box-shadow: none !important; overflow: hidden; }
[data-editorial-card] > div:first-child { border-radius: 0 !important; }
[data-editorial-card] > div:last-child { padding: 18px !important; }
[data-editorial-card] a { border-radius: 6px !important; }
[data-editorial-card] img { transition: transform .6s var(--ease); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { [data-editorial-card]:hover img { transform: scale(1.035); } }

/* Inner pages retain their forms and data layout, with the same editorial hierarchy. */
[data-editorial-intro] { border-bottom: 1px solid var(--color-divider); padding-top: 52px !important; padding-bottom: 40px !important; }
[data-editorial-intro] :is(h1,[data-gsap-delay="0.08"]) { font-weight: 500 !important; letter-spacing: -.05em !important; }
[data-editorial-page] figure { border-radius: 6px !important; box-shadow: none !important; }
[data-editorial-page] [data-as-fin-host] { border-top: 4px solid var(--as-brand); }
[data-editorial-page] :is(input,textarea,select) { border-radius: 6px; }
[data-site] [data-editorial-page] :is(div,section,article,figure,label,button,a,input,textarea,select,span)[style*="border-radius"]:not([style*="50%"],[style*="999px"],[style*="r-pill"]) { border-radius: 6px !important; }
[data-site] [data-editorial-page] [data-as-fin-host] :is(button,input,[data-af-card]) { border-radius: 6px !important; }

/* The footer becomes a full-width colophon with a wide brand column. */
[data-editorial-footer] { margin: 0 !important; padding: 44px 28px 22px !important; border-radius: 0 !important; border-top: 0; gap: 22px 32px !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
[data-editorial-footer] > div:first-child { grid-column: 1/-1 !important; display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 0 0 26px; border-bottom: 1px solid #3c3d41; column-gap: 48px !important; }
[data-editorial-footer] > div:first-child > a { grid-column: 1; }
[data-editorial-footer] > div:first-child > span:first-of-type { grid-column: 1; }
[data-editorial-footer] > div:first-child > span:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 16px; }
[data-editorial-footer] > div:first-child > div { grid-column: 1; }
[data-editorial-footer] a:hover { color: var(--as-brand) !important; }
[data-editorial-footer] > div:last-child { justify-content: flex-start !important; text-align: left !important; }

/* Wider than the 1440 px frame: the sides keep the page background of the theme (light or dark); only the charcoal masthead and footer bars run to both edges. */
@media (min-width: 1441px) {
  /* (a pseudo-element, not a clip-path: a clip-path would also cut the search panel and menus that open below the bar) */
  [data-site] [data-editorial-header]::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; z-index: -1; background: #16171a; pointer-events: none; }
  [data-site] [data-editorial-footer] { box-shadow: 0 0 0 100vmax #0f1012; clip-path: inset(0 -100vmax); }
}
@media (max-width: 819px) {
  [data-editorial-header] { padding: 0 16px !important; gap: 0 !important; }
  [data-editorial-header] [data-header-bar] { border-top: 0 !important; padding: 14px 0 !important; min-height: 72px; }
  [data-header-logo] { margin-right: 0; }
  [data-editorial-footer] { padding: 40px 16px 100px !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 24px !important; }
  [data-editorial-footer] > div:first-child { display: flex !important; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-editorial-page] *, [data-editorial-page] *::before, [data-editorial-page] *::after { scroll-behavior: auto !important; }
  [data-editorial-card] img { transition: none; }
}

[data-editorial-intro] { position: relative; }
[data-site] [data-editorial-footer] { border-top: 0 !important; position: relative; }

[data-hover="tilt"] { transform-style: preserve-3d; }

/* One radius scale at every width: segmented choices use the same token on desktop and phone (responsive.css sets it on phones), the skip link follows the 6 px surface radius. */
[data-site] [data-seg][data-seg][data-seg][style] { border-radius: var(--r-md) !important; }
a[data-skip-link] { border-radius: 6px !important; }

/* The dealer's chat bot (Maubius, loaded by GTM) waits behind the cookie banner: its greeting bubble is hidden while the banner is open,
   and on narrower screens, where both sit in the same corner, its launcher too. It comes back as soon as the visitor answers the banner. */
body:has([data-as-cookie]) #maubius-chatbot-notification-bubble { display: none !important; }
@media (max-width: 899px) { body:has([data-as-cookie]) #maubius-chatbot-container { visibility: hidden !important; } }


/* Showroom type on every page: thin, tightly set display headings (the home page sets the same voice in public/home.css). */
[data-editorial-intro] :is(h1, [data-gsap-delay="0.08"]) { font-weight: 200 !important; letter-spacing: -.06em !important; line-height: .94 !important; }
[data-editorial-intro] > div:first-child > span:first-child, [data-editorial-intro] > span:first-child { background: transparent !important; border: 0 !important; padding: 0 !important; color: var(--as-brand); letter-spacing: .16em; text-transform: uppercase; font-size: 12px !important; }
[data-editorial-page]:not([data-editorial-page="home"]) h2 { font-weight: 300 !important; letter-spacing: -.05em !important; }

/* Footer wordmark: the dealer's name set across the full width in outline, under the columns. */
/* Footer wordmark: the dealer name in a light, open uppercase, outlined in the brand colour; editorial.js fills it from left to right and closes up its spacing as it comes into view. */
[data-editorial-footer] .ca-wordmark { grid-column: 1 / -1; margin: 4px 0 0; padding: 6px 0 2px; font: 300 clamp(34px, 6.4vw, 96px)/1 var(--font-body); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-align: center; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--as-brand) 70%, transparent); user-select: none;
  background: linear-gradient(90deg, var(--as-brand), #ffd27a 50%, var(--as-brand)) no-repeat 0 0 / var(--ca-fill, 100%) 100%; -webkit-background-clip: text; background-clip: text; }

/* Favourites page (Inventory ?fav=1): a header that says what the list is, with an honest empty state. */
.ca-favhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 22px 24px; border-radius: 6px; background: #16171a; color: #f7f7f5; border-left: 4px solid var(--as-brand); }
.ca-favhead-h { display: inline-flex; align-items: center; gap: 12px; font: 300 30px/1 var(--font-body); letter-spacing: -.04em; }
.ca-favhead-h svg { color: var(--as-brand); flex: none; }
.ca-favhead-n { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 6px; background: var(--as-brand); color: #16171a; font: 800 14px/1 var(--font-body); letter-spacing: 0; box-sizing: border-box; }
.ca-favhead-p { flex: 1 1 280px; font-size: 14px; line-height: 1.5; color: #c9cacd; }
.ca-favhead-go { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 6px; background: var(--as-brand); color: #16171a !important; font: 700 14px/1 var(--font-body); text-decoration: none; white-space: nowrap; }
.ca-favhead-go:hover { background: #fff; }
/* phones and tablets: the footer brand column stacks (logo, text, contact lines, socials) */
@media (max-width: 819px) { [data-editorial-footer] > div:first-child { flex-direction: column !important; align-items: flex-start !important; } }
/* compact header (menu button shown): the controls there are 44 px, the heart follows */
[data-editorial-header] [data-header-bar]:has(> button[aria-expanded]) .editorial-favorites { width: 44px; height: 44px; flex-basis: 44px; }

/* ---------- Footer, compact (review round 3, 2026-11-27): brand + contact on the left, the three link columns beside it,
   the local pages as one wrapping line, then a bottom bar with the wordmark and the legal line. ---------- */
[data-site] [data-editorial-footer] { padding: 44px 28px 18px !important; gap: 0 40px !important; grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(0, 1fr)) !important; align-items: start; }
[data-site] [data-editorial-footer] > div:first-child { grid-column: 1 !important; grid-row: 1; display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; padding: 0 0 28px !important; border-bottom: 0 !important; }
[data-site] [data-editorial-footer] > div:first-child > span:nth-of-type(2) { font-size: 14px !important; line-height: 1.5; }
[data-site] [data-editorial-footer] > div:first-child > span:first-of-type { font-size: 13.5px; }
[data-site] [data-editorial-footer] > div:not(:first-child):not([data-footer-legal]):not(.ca-wordmark) { grid-row: 1; padding-top: 8px; gap: 10px !important; }
[data-site] [data-editorial-footer] > div:not(:first-child):not([data-footer-legal]):not(.ca-wordmark) > span:first-child { font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--as-brand); opacity: 1 !important; margin-bottom: 4px; }
[data-site] [data-editorial-footer] > nav { grid-column: 1 / -1 !important; flex-direction: row !important; flex-wrap: wrap; align-items: baseline; gap: 6px 22px !important; padding: 18px 0 !important; border-top: 1px solid rgba(242,242,240,.12); border-bottom: 1px solid rgba(242,242,240,.12); }
[data-site] [data-editorial-footer] > nav > span { font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--as-brand); opacity: 1 !important; margin-right: 6px; }
[data-site] [data-editorial-footer] > nav > div { display: flex !important; flex-wrap: wrap; gap: 4px 22px !important; }
[data-site] [data-editorial-footer] > nav a { padding: 0 !important; font-size: 13.5px; opacity: .8 !important; }
[data-site] [data-editorial-footer] .ca-wordmark { grid-column: 1 / span 2; grid-row: 3; align-self: center; margin: 0; padding: 14px 0 0; text-align: left; font-size: clamp(30px, 3.6vw, 52px); }
[data-site] [data-editorial-footer] [data-footer-legal] { grid-column: 3 / -1 !important; grid-row: 3; align-self: center; justify-content: flex-end !important; text-align: right !important; margin: 0 !important; padding: 14px 0 0 !important; border-top: 0 !important; font-size: 11.5px !important; }
[data-site] [data-editorial-footer] a { transition: color .25s ease, opacity .25s ease; }
[data-site] [data-editorial-footer] a:hover { opacity: 1 !important; }
@media (max-width: 1100px) and (min-width: 820px) {
  [data-site] [data-editorial-footer] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  [data-site] [data-editorial-footer] > div:first-child { grid-column: 1 / -1 !important; }
  [data-site] [data-editorial-footer] > div:not(:first-child):not([data-footer-legal]):not(.ca-wordmark) { grid-row: 2; padding-bottom: 24px; }
  [data-site] [data-editorial-footer] .ca-wordmark, [data-site] [data-editorial-footer] [data-footer-legal] { grid-row: 4; }
  [data-site] [data-editorial-footer] [data-footer-legal] { grid-column: 2 / -1 !important; }
  [data-site] [data-editorial-footer] .ca-wordmark { grid-column: 1; }
}
@media (max-width: 819px) {
  [data-site] [data-editorial-footer] { padding: 36px 16px 96px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 20px !important; }
  [data-site] [data-editorial-footer] > div:first-child { grid-column: 1 / -1 !important; padding-bottom: 22px !important; }
  [data-site] [data-editorial-footer] > div:not(:first-child):not([data-footer-legal]):not(.ca-wordmark) { grid-row: auto; padding-bottom: 22px; }
  [data-site] [data-editorial-footer] .ca-wordmark, [data-site] [data-editorial-footer] [data-footer-legal] { grid-column: 1 / -1 !important; grid-row: auto; text-align: left !important; justify-content: flex-start !important; }
  [data-site] [data-editorial-footer] .ca-wordmark { font-size: clamp(30px, 11vw, 48px); }
}

/* ---------- Footer bottom (review round 4): the legal line on the left (the chat button sits on the right);
   the dealer name becomes a large outlined mark behind the bottom right of the footer, filled by the scroll. ---------- */
[data-site] [data-editorial-footer] { overflow: hidden; }
[data-site] [data-editorial-footer] > :not(.ca-wordmark) { position: relative; z-index: 1; }
[data-site] [data-editorial-footer] [data-footer-legal] { grid-column: 1 / -1 !important; grid-row: auto; justify-content: flex-start !important; text-align: left !important; padding: 16px 0 0 !important; }
[data-site] [data-editorial-footer] .ca-wordmark { position: absolute; z-index: 0; right: 24px; bottom: -.16em; grid-column: auto; grid-row: auto; margin: 0; padding: 0; text-align: right; font-size: clamp(64px, 9vw, 140px); line-height: 1; opacity: .2; pointer-events: none; }
@media (max-width: 819px) { [data-site] [data-editorial-footer] .ca-wordmark { right: 12px; bottom: 64px; font-size: clamp(44px, 14vw, 64px); opacity: .16; } }
/* footer: no line under the local links (it ran across the dealer name mark) */
[data-site] [data-editorial-footer] > nav { border-bottom: 0 !important; }
/* inner page headings: no rule under the heading block (client review, 2026-11-27) */
[data-site] [data-editorial-intro] { border-bottom: 0 !important; }
/* inner pages: text buttons and toggles take the home page's 6 px corner (they were pills); round icon buttons keep their circle (no padding in their style) */
[data-site] [data-editorial-page] :is(a, button)[style*="border-radius: 999px"][style*="padding"]:not(header *, footer *) { border-radius: 6px !important; }
/* phones: the name mark fits inside the footer (it was wider than a 360 px screen and was cut at the left) */
@media (max-width: 819px) { [data-site] [data-editorial-footer] .ca-wordmark { left: 16px; right: 16px; font-size: 9.5vw; text-align: right; overflow: visible; } }
/* phones: the local links of the footer in two even columns */
@media (max-width: 819px) {
  [data-site] [data-editorial-footer] > nav { display: block !important; }
  [data-site] [data-editorial-footer] > nav > span { display: block; margin: 0 0 10px; }
  [data-site] [data-editorial-footer] > nav > div { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px 16px !important; }
  [data-site] [data-editorial-footer] > nav a { line-height: 1.35; }
}
/* footer brand column: every line starts on the left (an older rule centred the contact lines at tablet widths) */
[data-site] [data-editorial-footer] > div:first-child > * { align-self: flex-start !important; }
