/* Bilingual dealer spec sheet (GWM showroom guideline).
   Board is 1080 px wide = A4 width, so 1 mm = 5.14 px. Type is in em of the 10 pt row size. */
:root {
  --ink: #111111;
  --grey: #5B5B5B;
  --rule: #D5D5D5;
  --en: Montserrat, 'Segoe UI', Arial, sans-serif;
  --ar: Cairo, 'Segoe UI', Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--ink); font-family: var(--en); -webkit-font-smoothing: antialiased; }
.ar { font-family: var(--ar); text-align: right; }
.draft { background: #fff4d6; color: #7a5200; text-align: center; padding: 10px 16px; font: 600 14px var(--en); }

.board { --k: 1; font-size: calc(18px * var(--k)); background: #fff; line-height: 1.35; }
.board-inner { display: flex; flex-direction: column; padding: 51px 62px 36px; }

/* poster = fixed 1080×1920 portrait, scaled by the script */
.poster body { overflow: hidden; }
.poster .stage { overflow: hidden; margin: 0 auto; }
.poster .board { width: 1080px; height: 1920px; overflow: hidden; transform-origin: top left; }
.poster .board-inner { height: 1920px; }

/* header: black band, white GWM logo left (48 × 12 mm), model logo right (51 × 16 mm) */
.d-head {
  background: #000; color: #fff; display: flex; justify-content: space-between; align-items: center;
  min-height: 6.55em; padding: 0 1.2em; gap: 2em; direction: ltr;
}
#secret-exit { cursor: default; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.d-brand img { display: block; max-height: 3.4em; max-width: 13.7em; object-fit: contain; }
.d-model img { display: block; max-height: 4.6em; max-width: 14.6em; object-fit: contain; }
.d-brand-text, .d-model-text { font-weight: 800; font-size: 1.7em; letter-spacing: .04em; white-space: nowrap; }

/* English left, Arabic right */
.d-line { display: flex; justify-content: space-between; align-items: baseline; gap: 2em; }
.d-line > span { max-width: 49%; }
.d-trim { margin-top: 4.2em; padding: 0 .7em .65em; border-bottom: 1.5px solid var(--ink); color: var(--grey); font-size: 1.08em; }
.d-perf { margin-top: 1em; padding: 0 .7em; font-weight: 700; font-size: .9em; }
.d-perf .ar { font-weight: 600; font-size: 1.05em; }

.d-features { margin-top: 1.5em; }
.d-sec + .d-sec { margin-top: .4em; }
.d-sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: .8em .7em .55em; }
.d-sec-head h2 { margin: 0; font-size: 1.12em; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.d-sec-head h2.ar { text-transform: none; letter-spacing: 0; font-size: 1.18em; }
.d-row { display: flex; justify-content: space-between; align-items: baseline; gap: 2em; padding: .42em .7em; border-bottom: 1px solid var(--rule); }
.d-row > span { max-width: 49%; }
.d-row .ar { font-size: 1.02em; }

.d-price { margin-top: 1.9em; padding: 0 .7em; }
.d-price-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .74em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.d-price-label .ar { font-size: 1.2em; text-transform: none; letter-spacing: 0; }
.d-price-value { font-size: 3em; font-weight: 800; line-height: 1.15; margin: .12em 0 .2em; letter-spacing: -.01em; }
.d-small { color: var(--grey); font-size: .82em; }
.d-terms { margin-top: .9em; font-size: .8em; font-weight: 700; }
.d-note { margin-top: .35em; font-size: .7em; color: var(--grey); line-height: 1.45; }

/* dealer footer: dealer logo left (48 × 8 mm), dealer name beside it, Arabic name right */
.d-foot { margin-top: 1.3em; padding: .75em .7em 0; border-top: 1.5px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1.5em; }
.d-dealer { display: flex; align-items: center; gap: 1.4em; min-width: 0; }
.d-dealer img { display: block; height: 2.3em; max-width: 13.7em; object-fit: contain; }
.d-dealer span { color: var(--grey); font-size: .9em; }
.d-foot-end { display: flex; align-items: center; gap: 1.2em; }
.d-foot-end > .ar { color: var(--grey); font-size: .95em; }
.d-qr { display: flex; align-items: center; gap: .55em; }
.d-qr canvas { width: 4.4em; height: 4.4em; }
.d-qr > span { font-size: .58em; color: var(--grey); line-height: 1.3; }
.d-qr .ar { text-align: left; }
.d-updated { margin: .5em 0 0; padding: 0 .7em; font-size: .6em; color: var(--grey); }

/* phones: a normal scrolling page, Arabic under English */
html:not(.poster) .board { font-size: 15px; }
html:not(.poster) .board-inner { padding: 12px 14px 24px; }
html:not(.poster) .d-head { min-height: 64px; padding: 10px 14px; gap: 12px; }
html:not(.poster) .d-brand img { max-height: 26px; max-width: 38vw; }
html:not(.poster) .d-model img { max-height: 40px; max-width: 46vw; }
html:not(.poster) .d-model-text { font-size: 16px; white-space: normal; text-align: right; }
html:not(.poster) .same { display: none; }
html:not(.poster) .d-trim { margin-top: 18px; }
html:not(.poster) .d-line, html:not(.poster) .d-row, html:not(.poster) .d-price-label { flex-wrap: wrap; gap: .15em 1em; }
html:not(.poster) .d-line > span, html:not(.poster) .d-row > span { max-width: none; flex: 1 1 100%; }
html:not(.poster) .d-qr { display: none; }

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  .draft { display: none; }
  .stage { margin: 0; width: auto !important; height: auto !important; overflow: visible; }
  .board { transform: none !important; width: auto !important; height: auto !important; font-size: 12px !important; }
  .board-inner { height: auto !important; padding: 0; }
  .d-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
