/* DriveForma guest vehicle detail preview.
 * Load after guest.css; the structural :has() gates match the two detail
 * templates, never the showroom, booking, payment or staff workspace.
 * Existing image navigation, payment controls, disclosures and CTA links stay
 * in their original DOM. No price or payment data is manufactured by CSS.
 */
/* Personal contact labels use the existing shared-link owner. They never
 * manufacture contact details or change booking destinations. */
body:has(> .topbar) a.df-seller-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.df-seller-action-name { display: block; font-size: .85em; font-weight: 550; }
.df-booking-recipient { display: block; margin-top: 5px; font-size: .7em; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.df-salesperson-label { margin-bottom: 3px; color: var(--ink-3, #65716f); font-size: 12px; font-weight: 550; line-height: 1.4; }

@font-face {
  font-family: "Manrope Guest Preview";
  /* 2026-11-10 font QA: same Manrope variable font as guest.css, from the cached woff2 file instead of a 160 KB base64 TTF.
     Latin only on purpose: Hangul and Han come from the per-language system stack in ui-theme/type.css. */
  src: url("../fonts/manrope-var-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-024F, U+0259, U+0300-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) {
  --ink: #162832;
  --ink-2: #455761;
  --ink-3: #65716f;
  --ink-4: #7b8581;
  --red: #4b46c8;
  --bg: #f5f4ee;
  --canvas: #f5f4ee;
  --card: #fff;
  --surface: #eeeee7;
  --surface-2: #e7e9e1;
  --line: #dde1d6;
  --hair: #1628321f;
  --hair-2: #16283212;
  --hair-3: #16283233;
  --r: 10px;
  --r-s: 7px;
  --r-l: 12px;
  --ring: 0 0 0 3px #4b46c822;
  --gd-dock-space: calc(104px + env(safe-area-inset-bottom));
  --gd-gallery-top: 76px;
  --gd-gallery-h: min(45vw, calc(100svh - 232px));
  margin: 0;
  min-width: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope Guest Preview", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans TC", "Noto Sans SC", "Noto Sans KR", sans-serif;
  line-height: 1.55;
  font-optical-sizing: auto;
}

body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t))::before { background: #f5f4ee; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(a, button, input, select, summary):focus-visible {
  outline: 2px solid #4b46c8;
  outline-offset: 3px;
}

/* A quiet, light dealer header gives the vehicle the visual weight. */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 25;
  min-height: 64px;
  padding-inline: clamp(20px, 3vw, 48px);
  background: #f5f4eef5;
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  box-shadow: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.tb-brand, .tb-link, .tb-lang button, .tb-lang-cur, .topbar .share-pill) { color: var(--ink); }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .tb-brand .mk { background: #4b46c8; box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.tb-link.cur, .tb-lang-wide, .tb-lang-cur, .topbar .share-pill) { background: #16283206; box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .tb-link.cur { color: #4b46c8; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.tb-lang .globe, .tb-lang-cur .chev) { color: var(--ink-3); }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .tb-lang-wide button.on { background: #fff; color: #4b46c8; box-shadow: 0 1px 3px #1628320a; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .topbar .share-pill.bad { color: #925b17; background: #f7ebd8; }

/* Whole source photographs remain visible. Framed dealer images retain the
 * original template's top alignment and framing rules. */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gal {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #eeeee9;
  box-shadow: none;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gal-track { width: 100%; background: #eeeee9; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal > img, .gal-track img) { mix-blend-mode: normal; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal > img:not(.hf), .gal-track img:not(.hf)) { object-fit: contain; object-position: center; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal-arr, .gal-zoom, .gal-back) {
  color: var(--ink);
  background: #f5f4eef0;
  border: 1px solid #16283214;
  box-shadow: none;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gal-n { background: #162832c7; border: 0; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .thumbs {
  gap: 10px;
  max-width: none;
  margin: 0;
  padding: 14px 20px;
  scrollbar-width: thin;
  scrollbar-color: #bec8c0 transparent;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .thumbs img { width: 72px; height: 54px; border-radius: 5px; opacity: .6; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .thumbs img.on { opacity: 1; box-shadow: 0 0 0 2px #4b46c8; }

/* The right panel reads as one editorial column, rather than stacked cards. */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.body, .wrap2) {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 22px 24px 40px;
  overflow: visible;
  background: var(--canvas);
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.title, .nd-t) {
  margin: 12px 0 0;
  font-size: clamp(30px, 2.7vw, 42px);
  font-weight: 620;
  letter-spacing: -.04em;
  line-height: 1.14;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.eyebrow, .nd-t .stk) { margin-top: 12px; font-size: 11px; line-height: 1.5; letter-spacing: .09em; white-space: normal; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.trim, .nd-t small) { font-size: 17px; font-weight: 450; line-height: 1.5; letter-spacing: -.01em; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.tags, .badges) { gap: 6px; margin-top: 18px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .badge { border-radius: 4px; box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .badge.key { background: #efedf9; color: #4b46c8; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .toolrow { margin: 0 0 12px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .pricebox {
  margin: 22px 0 0;
  padding: 22px 0 26px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hair);
  border-radius: 0;
  box-shadow: none;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .pricebox .p { font-size: clamp(34px, 2.9vw, 44px); font-weight: 580; line-height: 1.13; letter-spacing: -.045em; overflow-wrap: anywhere; }
/* The editable down-payment amount has a separate, unwrapped currency prefix. */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .dp-cur { font-size: 17px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .paytog { display: flex; width: 100%; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 7px; background: #e7e9e1; box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .paytog button { flex: 1; min-width: 0; border-radius: 4px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .paytog button.on { color: #4b46c8; box-shadow: 0 1px 4px #1628320a; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .payhead { display: block; }
/* Optional payment-method controls use only methods present in the page.
 * A preview script must own selection, accessible state and real values.
 */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-purchase-tabs { display: flex; gap: 4px; width: 100%; margin: 20px 0 16px; padding: 4px; border-radius: 7px; background: #e7e9e1; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-purchase-tabs button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-purchase-tabs button:is([aria-selected="true"], .is-active) { background: #fff; color: #4b46c8; box-shadow: 0 1px 4px #1628320a; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-purchase-panel[hidden] { display: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .pay { gap: 10px; margin-top: 14px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .pay .pp { padding: 14px 12px; background: #fff; border: 1px solid var(--hair); border-radius: 7px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .pay .pp .v { font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .dp { padding: 14px; margin-top: 18px; border: 1px solid var(--hair); background: #eeeee7; border-radius: 7px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.dp-go, .dp-q.on) { background: #4b46c8; border-color: #4b46c8; color: #fff; box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .dp-q { border-radius: 5px; min-height: 44px; padding-inline: 10px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .fee-link { min-height: 44px; color: #4b46c8; text-decoration: underline; text-underline-offset: 4px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .sec { padding: 28px 0; margin: 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0; background: transparent; box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .sec h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.kv-i, .doc-btn, .col-c, .ot-row, .part, .trust) { box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.col-c.on, .part.on) { border-color: #4b46c8; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .part input { accent-color: #4b46c8; }

/* The existing booking/arrival, SMS and call anchors become a page-wide dock.
 * Optional .gd-summary markup can be inserted by the preview transform using
 * the current server-rendered price; it is deliberately absent from CSS.
 */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  padding: 12px clamp(20px, 3vw, 48px) calc(12px + env(safe-area-inset-bottom));
  background: #f5f4eef5;
  border: 0;
  border-top: 1px solid #16283224;
  box-shadow: 0 -4px 24px #16283205;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-in { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; max-width: none; margin: 0; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-sec { flex: 0 0 64px; min-width: 0; min-height: 52px; border-radius: 6px; background: transparent; border: 1px solid var(--hair); box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-btn { flex: 0 1 280px; min-width: 0; min-height: 52px; padding: 8px 20px; border-radius: 6px; background: #4b46c8; color: #fff; font-size: 15px; font-weight: 650; line-height: 1.3; box-shadow: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-in > .df-seller-action { gap: 1px; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-in > .df-seller-action .df-seller-action-name { font-size: 12px; font-weight: 500; line-height: 1.25; }
/* Give the inspection action its own compact row instead of interrupting the
 * paragraph with a centered, two-line label. The original link stays intact. */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .trust .d > a.df-seller-action {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 3px 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hair-3);
  border-radius: 6px;
  background: var(--canvas);
  text-align: left;
  text-decoration: none;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .trust .d > a.df-seller-action .df-seller-action-name { color: var(--ink-2); font-size: 12px; font-weight: 500; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary { flex: 1 1 180px; min-width: 0; margin-right: auto; color: var(--ink); }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-label { display: block; color: var(--ink-3); font-size: 11px; line-height: 1.4; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-price { display: block; font-size: 26px; font-weight: 620; letter-spacing: -.035em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-note { display: block; color: var(--ink-3); font-size: 11px; line-height: 1.4; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gd-summary-prefix, .gd-summary-unit) { font-size: 12px; font-weight: 500; letter-spacing: 0; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary { text-decoration: none; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gd-funding-only, .pp)[hidden] { display: none !important; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .g-disc { max-width: none; margin: 0; padding: 24px clamp(20px, 3vw, 48px); border-top: 1px solid var(--hair); }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .foot-sp { height: var(--gd-dock-space); }

@media (min-width: 1080px) {
  /* Used detail owns a wrapper; new detail's gallery and panel are siblings.
   * Keep the same named tracks for both without moving functional markup.
   */
  body:has(> .wrap > .body > .title) > .wrap,
  body:has(> .wrap2 > .nd-t) {
    display: grid;
    align-items: start;
    align-content: start;
    grid-template-columns: [full-start main-start] minmax(0, 62fr) [main-end rail-start] minmax(360px, 38fr) [rail-end full-end];
    column-gap: 0;
    max-width: none;
    margin: 0;
  }
  body:has(> .wrap > .body > .title) > .wrap { grid-template-rows: auto; }
  body:has(> .wrap2 > .nd-t) { grid-template-rows: auto auto auto auto auto; }
  body:has(> .wrap2 > .nd-t) > .gvs-wrap { grid-column: full; grid-row: 1; }
  body:has(> .wrap2 > .nd-t) > .topbar { grid-column: full; grid-row: 2; }
  body:has(> .wrap2 > .nd-t) > .gal { grid-column: main; grid-row: 3; }
  body:has(> .wrap2 > .nd-t) > .thumbs { grid-column: main; grid-row: 3; }
  body:has(> .wrap2 > .nd-t) > .wrap2 { grid-column: rail; grid-row: 3; }
  body:has(> .wrap2 > .nd-t) > .g-disc { grid-column: full; grid-row: 4; }
  body:has(> .wrap2 > .nd-t) > .foot-sp { grid-column: full; grid-row: 5; }
  body:has(> .wrap > .body > .title) > .wrap > :is(.gal, .thumbs) { grid-column: main; grid-row: 1; }
  body:has(> .wrap > .body > .title) > .wrap > .body { grid-column: rail; grid-row: 1; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gal {
    position: sticky;
    top: var(--gd-gallery-top);
    align-self: start;
    display: flex;
    align-items: center;
    height: var(--gd-gallery-h);
    min-height: 0;
  }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gal-track { height: 100%; align-items: center; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal > img, .gal-track img) { height: 100%; max-height: 100%; aspect-ratio: auto; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gal-none { width: 100%; height: 100%; aspect-ratio: auto; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .thumbs {
    position: sticky;
    top: calc(var(--gd-gallery-top) + var(--gd-gallery-h) + 14px);
    align-self: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 28px 12px;
    margin: calc(var(--gd-gallery-h) + 14px) 0 0;
    background: var(--canvas);
  }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.body, .wrap2) { min-height: calc(100svh - 64px); padding: 28px clamp(28px, 3vw, 56px) 48px; border-left: 1px solid var(--hair); }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .g-nav { display: none; }
}

@media (max-width: 1079px) {
  /* Let the gallery, thumbnails and price panel follow the document on phones
   * and tablets. The contact/booking dock remains fixed below them.
   */
  body:has(> .wrap2 > .nd-t),
  body:has(> .wrap > .body > .title) > .wrap { display: block; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gal { position: relative; height: auto; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal > img:not(.hf), .gal-track img:not(.hf), .gal-none) { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .thumbs { position: static; flex-wrap: nowrap; overflow-x: auto; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.body, .wrap2) { padding-inline: clamp(20px, 5vw, 48px); }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .g-nav { margin: 0; padding: 10px 24px; border-top: 1px solid var(--hair); }
}

@media (max-width: 700px) {
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) { --gd-dock-space: calc(108px + env(safe-area-inset-bottom)); }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .topbar { min-height: 58px; gap: 6px; padding-inline: 16px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .tb-brand { max-width: 53%; font-size: 14px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .tb-right { gap: 4px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .thumbs { gap: 8px; padding: 12px 20px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .thumbs img { width: 64px; height: 48px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.body, .wrap2) { padding: 18px 22px 30px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.title, .nd-t) { font-size: 30px; line-height: 1.16; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .pricebox .p { font-size: 36px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .sec { padding-block: 24px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-bar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-in { gap: 8px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-sec { position: relative; flex: 0 0 44px; min-height: 48px; padding: 8px; }
  /* Keep the real text as the accessible link name when visual space is tight. */
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-sec span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-btn { flex: 1 1 116px; min-height: 48px; max-width: none; padding: 10px; font-size: 13px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary { flex: 1 1 82px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-price { font-size: 20px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gd-summary-label, .gd-summary-note) { font-size: 10px; line-height: 1.35; }
}

@media (max-width: 700px) {
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) { --gd-dock-space: calc(136px + env(safe-area-inset-bottom)); }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .cta-in:has(.gd-summary) { flex-wrap: wrap; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 12px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-label { grid-column: 1; font-size: 11px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-price { grid-column: 2; grid-row: 1 / 3; font-size: 24px; text-align: right; white-space: nowrap; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-prefix { display: block; font-size: 10px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-unit { font-size: 10px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-note { grid-column: 1; }
}

@media (hover: hover) and (pointer: fine) {
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.cta-btn, .dp-go):hover { background: #3c37ad; filter: none; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.tb-link, .topbar .share-pill, .cta-sec):hover { background: #e7e9e1; color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.cta-btn, .cta-sec, .dp-q, .part, .col-c) { transition: none; }
}

/* Demo readability pass: retain the established geometry and palette. */
body:has(> .topbar):not(.app-shell) { font-size: 15px; font-weight: 480; }
body:has(> .topbar):not(.app-shell) :is(.tb-brand, .tb-link, .share-pill, .cta-btn, .dp-go, .dp-h, .paytog button, .gd-purchase-tabs button) { font-weight: 650; }
body:has(> .topbar):not(.app-shell) :is(.tb-brand, .tb-link, .share-pill, .cta-btn, .dp-go, .paytog button, .gd-purchase-tabs button) { font-size: 14px; }
body:has(> .topbar):not(.app-shell) :is(.vc-t, .ns-title) { font-weight: 650; }
body:has(> .topbar):not(.app-shell) :is(.vc-m, .vc-fin, .ns-meta) { font-size: 15px; font-weight: 500; }
body:has(> .topbar):not(.app-shell) :is(.vc-m .stk, .vc-fin .fin-sub, .vc-fact, .vc-chip, .vc-pick) { font-size: 12px; font-weight: 550; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.title, .nd-t, .sec h2) { font-weight: 650; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.trim, .nd-t small) { font-weight: 550; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.eyebrow, .nd-t .stk, .badge) { font-size: 12px; font-weight: 600; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.pd-line, .pd-total, .fin-sub, .fin-note, .taxnote, .note, .sub, .dp-note, .dp-q) { font-size: 13px; font-weight: 500; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.kv dd, .fin, .fee-link) { font-size: 15px; font-weight: 550; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-label { font-size: 12px; font-weight: 600; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-note { font-size: 12px; }
@media (max-width: 700px) {
  body:has(> .topbar):not(.app-shell) :is(input, select, textarea) { font-size: 16px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .dp-cur { font-size: 16px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.title, .nd-t) { font-size: 32px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-label { font-size: 12px; }
  body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .gd-summary-note { font-size: 11px; }
}

/* Keep both production detail panels in one right-hand rail. The gallery and
 * thumbnails share the complete rail height, with no content beneath them. */
@media (min-width: 1080px) {
  body:has(> .wrap > .body > .title) > .wrap { grid-template-rows: auto auto; }
  body:has(> .wrap > .body > .title) > .wrap > :is(.gal, .thumbs) { grid-row: 1 / 3; }
  body:has(> .wrap > .body > .title) > .wrap > .body:not(.body-more) {
    grid-column: rail;
    grid-row: 1;
    min-height: 0;
    padding-bottom: 0;
  }
  body:has(> .wrap > .body > .title) > .wrap > .body.body-more {
    grid-column: rail;
    grid-row: 2;
    min-height: 0;
    padding-top: 8px;
  }
  body:has(> .wrap2 > .nd-t) { grid-template-rows: repeat(7, auto); }
  body:has(> .wrap2 > .nd-t) > :is(.gal, .thumbs) { grid-row: 3 / 5; }
  body:has(> .wrap2 > .nd-t) > .wrap2:not(.wrap-more) {
    grid-column: rail;
    grid-row: 3;
    align-self: start;
    min-height: 0;
    padding-bottom: 0;
  }
  body:has(> .wrap2 > .nd-t) > .wrap2.wrap-more {
    grid-column: rail;
    grid-row: 4;
    min-height: 0;
    padding-top: 8px;
  }
  body:has(> .wrap2 > .nd-t) > .g-visit { grid-column: full; grid-row: 5; }
  body:has(> .wrap2 > .nd-t) > .g-disc { grid-column: full; grid-row: 6; }
  body:has(> .wrap2 > .nd-t) > .foot-sp { grid-column: full; grid-row: 7; }
}

/* Apply the approved demo palette and digits without changing dealer settings. */
body:has(> .topbar):not(.app-shell) {
  --red: #4b46c8;
  --ink: #162832;
  --ink-2: #455761;
  --ink-3: #65716f;
  --ink-4: #7b8581;
  --bg: #f5f4ee;
  --canvas: #f5f4ee;
  --card: #fff;
  --surface: #eeeee7;
  --surface-2: #e7e9e1;
  --line: #dde1d6;
  --hair: #1628321f;
  --hair-2: #16283212;
  --hair-3: #16283233;
  --font: "Manrope Guest Preview", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans TC", "Noto Sans SC", "Noto Sans KR", sans-serif;
  --font-num: var(--font);
  font-family: var(--font);
}


/* Existing New/Pre-owned filters remain readable beside the showroom view controls. */
@media screen {
  body > .wrap > .head .head-tools.df-showroom-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    min-width: 0;
    max-width: 100%;
  }
  body > .wrap > .head .df-showroom-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }
  body > .wrap > .head .df-showroom-categories > .nc-link {
    flex: 0 1 auto;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 8px 10px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    box-sizing: border-box;
  }
  body > .wrap > .head .df-showroom-categories > .nc-link::after { flex-shrink: 0; }
  body > .wrap > .head .df-showroom-categories > .nc-link.is-active {
    font-weight: 750;
    text-decoration-thickness: 2px;
  }
  body > .wrap > .head .df-showroom-tools > .vseg {
    margin-inline-start: auto;
    max-width: 100%;
  }
}
@media screen and (max-width: 380px) {
  body > .wrap > .head .df-showroom-categories {
    flex-basis: 100%;
    width: 100%;
  }
  body > .wrap > .head .df-showroom-categories > .nc-link { flex: 1 1 auto; }
}

/* Guest card scanability: keep the original trim and mileage text distinct in every view. */
body > .wrap #cars > a.vc .vc-m > .tr {
  color: #30364e;
  font-weight: 650;
  line-height: 1.65;
}
body > .wrap #cars > a.vc .vc-m > .tr > .km {
  display: inline-block;
  max-inline-size: 100%;
  margin-inline-start: 2px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f2effb;
  color: #5141a8;
  font-size: .94em;
  font-weight: 750;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

/* Keep the existing consultant map action below its address, with a full tap target. */
body:has(> .topbar):not(.app-shell) .namecard .nc-sub.multi:has(> a.nc-map-l) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
body:has(> .topbar):not(.app-shell) .namecard .nc-sub.multi > a.nc-map {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
body:has(> .topbar):not(.app-shell) .namecard .nc-sub.multi > a.nc-map > span {
  min-inline-size: 0;
}
body:has(> .topbar):not(.app-shell) .namecard .nc-sub.multi > a.nc-map-l {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding-block: 2px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Toyota certification remains an existing verified fact; give that label a clearer mark. */
body:has(> .topbar):not(.app-shell) :is(.vc-chip, .vc-fact, .badge).t-cert.df-toyota-certified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 28px;
  max-inline-size: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff1f2;
  color: #9b1623;
  box-shadow: inset 0 0 0 1px #e5a6ae;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:has(> .topbar):not(.app-shell) :is(.vc-chip, .vc-fact, .badge).t-cert.df-toyota-certified::before {
  background: currentColor;
}

/* Clear return navigation and inspection actions, confined to vehicle details. */
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal-back, .wrap2 > .toolrow > .g-back) {
  min-block-size: 48px;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid #4b46c8;
  background: #4b46c8;
  color: #fff;
  box-shadow: 0 3px 12px #18204d33;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:has(> .wrap > .body > .title) .gal-back {
  max-inline-size: calc(100% - 112px);
}
body:has(> .wrap > .body > .title) .gal-back::before {
  flex: 0 0 8px;
  border-width: 2px;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .trust .d > a[href] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  inline-size: 100%;
  max-inline-size: 100%;
  min-block-size: 56px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #4b46c8;
  border-radius: 6px;
  background: #4b46c8;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .trust .d > a[href] > .df-seller-action-name {
  color: #ecebff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) .trust > .ask-btns {
  gap: 12px;
  margin-top: 12px;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.trust > .ask-btns > .ask-btn, #ask-video > .doc-btn) {
  inline-size: 100%;
  max-inline-size: 100%;
  min-block-size: 56px;
  padding: 12px 16px;
  gap: 12px;
  border: 1.5px solid #4b46c8;
  border-radius: 6px;
  background: #fff;
  color: #312a8c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.trust > .ask-btns > .ask-btn, #ask-video > .doc-btn) > span:first-of-type {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
body:has(> .wrap > .body > .title) .trust .ask-btn .ar { opacity: 1; }
body:has(> .wrap2 > .nd-t) #ask-video > .doc-btn b { font-size: 16px; font-weight: 700; line-height: 1.4; }
body:has(> .wrap2 > .nd-t) #ask-video > .doc-btn em { margin-top: 4px; color: #41465d; font-size: 14px; line-height: 1.4; }
body:has(> .wrap2 > .nd-t) #ask-video > .doc-btn > svg { color: #4b46c8; }
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal-back, .wrap2 > .toolrow > .g-back, .trust .d > a[href]):hover {
  background: #3b36aa;
  border-color: #3b36aa;
  color: #fff;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.trust > .ask-btns > .ask-btn, #ask-video > .doc-btn):hover {
  background: #f2f0ff;
  border-color: #3b36aa;
  color: #312a8c;
}
body:is(:has(> .wrap > .body > .title), :has(> .wrap2 > .nd-t)) :is(.gal-back, .wrap2 > .toolrow > .g-back, .trust .d > a[href], .trust > .ask-btns > .ask-btn, #ask-video > .doc-btn):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #4b46c8;
}
