/* ── leadgen_adv_1 — FR leadgen advertorial ─────────────────────────────────
   Task LEADGEN_ADV_1_TEMPLATE (2026-11-17). Loaded AFTER
   static/editorial/editorial.css, which styles the shared block partials
   (templates/editorial/_blocks/*); this sheet re-skins them and styles the
   template's own pieces: the light header with the always-visible
   "Publireportage" label, the hero, the four leadgen blocks (combined
   heading + text + image, bullet list, eyebrow, region map, region list), the
   per-device visibility wrappers and the Mode B "check" overlay.

   Scope: every rule is under body.lg (or an .lg-* class).
   Units: editorial.css sets html{font-size:10px}; this sheet uses px.
   Colours (spec §6): CTA #16A34A, hover #15803D — the same tokens as adv_1 /
   adv_2 (--cta-bg / --cta-bg-hover); the map's hover uses the CTA green.
   Mobile (spec §6): 16px side padding at <=768px, images full column width,
   17px+ body text, 44px+ tap targets, no horizontal overflow at 360px.
   Device visibility: the cut-off is be.js's — mobile is a viewport of 768px
   or less (static/be.js), tablets count as desktop (owner, Q4).
   RTL: logical properties only. */

body.lg {
  --cta-bg: #16A34A;
  --cta-bg-hover: #15803D;
  --lg-heading: #14532D;
  --lg-ink: #374151;
  --lg-ink-2: #111827;
  --lg-muted: #6b7280;
  --lg-link: #1d4ed8;
  --lg-line: #e5e7eb;
  --lg-header-bg: #ececec;
  --lg-tint: #f0fdf4;
  --lg-tint-line: #bbf7d0;
  --lg-region-idle: #c4c4c4;
  --lg-font: "Open Sans", "Inter", Arial, sans-serif;
  --ed-font-body: var(--lg-font);
  --ed-font-head: var(--lg-font);
  background: #fff;
  color: var(--lg-ink);
  font-family: var(--lg-font);
  margin: 0;
}
html:has(body.lg) { background: #fff; }
body.lg, body.lg *, body.lg *::before, body.lg *::after { box-sizing: border-box; }
body.lg img { max-width: 100%; }

/* ── Header: site name / logo, optional tagline, the advertorial label ── */
body.lg .lg-header { background: var(--lg-header-bg); border-block-end: 1px solid var(--lg-line); }
body.lg .lg-header-inner {
  max-width: 760px; margin-inline: auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 12px; min-height: 48px;
}
body.lg .lg-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.lg .lg-logo { display: block; height: 28px; width: auto; }
body.lg .lg-site-name { font-weight: 700; font-size: 16px; color: var(--lg-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.lg .lg-header-tag { font-size: 14px; color: var(--lg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
body.lg .lg-header-tag strong { color: #dc2626; font-weight: 700; }
body.lg .lg-disclosure {
  margin-inline-start: auto; flex: none;
  font-size: 14px; line-height: 1.3; color: #4b5563; letter-spacing: 0.01em;
}

/* ── Article column ── */
body.lg .lg-main { max-width: 760px; margin-inline: auto; padding: 18px 24px 40px; }
body.lg .lg-eyebrow, body.lg .lg-eyebrow-block {
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--lg-heading); margin: 0 0 8px;
}
body.lg .lg-eyebrow-block { margin-block: 26px 4px; }
body.lg .lg-h1 {
  font-family: var(--lg-font); font-weight: 400; font-size: 32px; line-height: 1.3;
  color: var(--lg-heading); margin: 0 0 10px;
}
body.lg .lg-h1 strong { font-weight: 700; }
body.lg .lg-standfirst { font-size: 20px; line-height: 1.5; color: #4b5563; margin: 0 0 12px; }
body.lg .lg-standfirst p { margin: 0 0 8px; }
body.lg .lg-byline { font-size: 13px; line-height: 1.5; color: var(--lg-muted); margin: 0 0 16px; }
body.lg .lg-byline-label { text-transform: uppercase; letter-spacing: 0.03em; }
body.lg .lg-byline b { color: var(--lg-ink); font-weight: 600; }

/* ── Body type (shared partials re-skinned) ── */
body.lg .content-block-title {
  font-family: var(--lg-font); font-size: 26px; line-height: 1.3; font-weight: 600;
  color: var(--lg-heading); margin: 30px 0 12px; padding: 0; border: 0; text-align: start;
}
body.lg .content-block-title::before, body.lg .content-block-title::after { display: none; }
body.lg .content-block-article, body.lg .content-block-article p,
body.lg .lead-paragraph, body.lg .lead-paragraph p,
body.lg .lg-hti-body, body.lg .lg-hti-body p {
  font-family: var(--lg-font); font-size: 19px; line-height: 1.6; color: var(--lg-ink);
}
body.lg .content-block-article p, body.lg .lg-hti-body p { margin: 0 0 16px; }
body.lg .content-block-article strong, body.lg .lg-hti-body strong { font-weight: 700; color: var(--lg-ink-2); }
body.lg .content-block-article a, body.lg .lg-hti-body a, body.lg .callout-box a { color: var(--lg-link); text-decoration: underline; }
body.lg .content-block-article ul, body.lg .content-block-article ol { padding-inline-start: 22px; margin: 0 0 16px; }

/* Images span the whole column (spec §6). */
body.lg .hero-image, body.lg .content-block-image, body.lg .lg-hti-figure { margin: 14px 0 22px; }
body.lg .hero-image img, body.lg .content-block-image img, body.lg .lg-hti-figure img { display: block; width: 100%; height: auto; border-radius: 0; }
body.lg .hero-image-caption, body.lg .content-block-image-caption { font-size: 14px; color: var(--lg-muted); margin-block-start: 6px; text-align: start; }

/* Callout = the reference's highlight box. */
body.lg .callout-box {
  background: var(--lg-tint); border: 1px solid var(--lg-tint-line); border-inline-start: 4px solid var(--cta-bg);
  border-radius: 6px; padding: 16px 18px; margin: 22px 0; font-size: 18px; line-height: 1.55; color: var(--lg-ink-2);
}
body.lg .callout-box, body.lg .callout-box > div { text-align: start; }
body.lg .callout-box-heading { font-size: 19px; font-weight: 700; text-align: start; margin: 0 0 6px; color: var(--lg-heading); }

/* Quote. */
body.lg .pull-quote, body.lg blockquote {
  border-inline-start: 4px solid var(--lg-tint-line); margin: 22px 0; padding: 4px 0 4px 16px;
  font-size: 19px; font-style: italic; color: var(--lg-ink-2);
}

/* CTA buttons: house green (spec §6). Element+class selectors outrank
   editorial.css's single-class rules. */
body.lg .content-block-cta { margin: 26px 0; text-align: center; }
body.lg a.content-block-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; max-width: 100%; padding: 12px 28px;
  background: var(--cta-bg); color: #fff; border-radius: 8px;
  font-family: var(--lg-font); font-size: 20px; font-weight: 700; line-height: 1.25; text-transform: none;
  text-decoration: none; box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
body.lg a.content-block-cta-btn:hover, body.lg a.content-block-cta-btn:focus-visible { background: var(--cta-bg-hover); color: #fff; }
body.lg .content-block-cta-urgency { font-size: 15px; color: var(--lg-muted); }

/* Numbered steps (mechanism_steps_cards) — keep the shared card look, green numbers. */
body.lg .mechanism-card-step { background: var(--cta-bg); color: #fff; }
body.lg .mechanism-cards-heading { font-family: var(--lg-font); color: var(--lg-heading); }

/* ── Heading + text + image (h2_text_image) ── */
body.lg .lg-hti { margin: 0 0 8px; }
body.lg .lg-hti .content-block-title { margin-block-start: 30px; }

/* ── Bullet list ── */
body.lg .lg-bullets { margin: 18px 0 22px; }
body.lg .lg-bullets-title { font-size: 20px; font-weight: 700; color: var(--lg-heading); margin: 0 0 10px; }
body.lg .lg-bullets ul, body.lg .lg-bullets ol { margin: 0; padding: 0; list-style: none; counter-reset: lgb; }
body.lg .lg-bullets li {
  position: relative; padding-inline-start: 34px; margin: 0 0 10px;
  font-size: 19px; line-height: 1.55; color: var(--lg-ink);
}
body.lg .lg-bullets li::before { position: absolute; inset-inline-start: 0; top: 2px; }
body.lg .lg-bullets--check li::before {
  content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--cta-bg); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 24px; text-align: center;
}
body.lg .lg-bullets--dot li::before { content: ""; width: 9px; height: 9px; top: 11px; inset-inline-start: 8px; border-radius: 50%; background: var(--cta-bg); }
body.lg .lg-bullets--number li { counter-increment: lgb; }
body.lg .lg-bullets--number li::before {
  content: counter(lgb); width: 24px; height: 24px; border-radius: 50%; background: var(--lg-heading); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 24px; text-align: center;
}

/* ── Region list + map (§3) ── */
body.lg .lg-regions {
  margin: 28px 0; padding: 24px 20px; text-align: center;
  background: var(--lg-tint); border: 1px solid var(--lg-tint-line); border-radius: 12px;
}
body.lg .lg-regions--map { background: #fff; border-color: var(--lg-line); }
body.lg .lg-regions-title { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--lg-ink-2); margin: 0 0 6px; }
body.lg .lg-regions-sub { font-size: 16px; line-height: 1.45; color: #4b5563; margin: 0 0 18px; }
body.lg .lg-region-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
body.lg .lg-region-grid li { margin: 0; padding: 0; }
body.lg a.lg-region-btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; height: 100%; padding: 10px 12px;
  background: var(--cta-bg); color: #fff; border-radius: 8px;
  font-size: 16px; font-weight: 700; line-height: 1.25; text-decoration: none;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.22);
  -webkit-tap-highlight-color: transparent; transition: background 0.15s ease;
}
body.lg a.lg-region-btn:hover, body.lg a.lg-region-btn:focus-visible, body.lg a.lg-region-btn:active { background: var(--cta-bg-hover); color: #fff; }
body.lg a.lg-region-btn:focus-visible { outline: 3px solid var(--lg-heading); outline-offset: 2px; }

/* The map: one HTML link per region, stacked; each holds a full-size SVG in
   which only its own region's path takes the pointer. So every region is an
   ordinary <a> for the tracker, the UTM pass-through and the VWO updater,
   and the hit area is the region's real shape. */
body.lg .lg-map { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: var(--lg-map-ratio, 1000 / 964); }
body.lg .lg-map-region { position: absolute; inset: 0; display: block; pointer-events: none; -webkit-tap-highlight-color: transparent; outline: none; }
body.lg .lg-map-region svg { display: block; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
body.lg .lg-map-region path {
  fill: var(--lg-region-idle); stroke: #fff; stroke-width: 2; stroke-linejoin: round;
  pointer-events: visiblePainted; cursor: pointer; transition: fill 0.12s ease;
}
body.lg .lg-map-region:hover path, body.lg .lg-map-region:active path,
body.lg .lg-map-region:focus-visible path, body.lg .lg-map-region.is-picked path { fill: var(--cta-bg); }
body.lg .lg-map-region:focus-visible path { stroke: var(--lg-heading); stroke-width: 3; }
body.lg .lg-map-static { display: block; max-width: 560px; margin: 0 auto; }
body.lg .lg-map-static img { display: block; width: 100%; height: auto; }
body.lg .lg-map-static svg { display: block; width: 100%; height: auto; }
body.lg .lg-map-static path { fill: var(--lg-region-idle); stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
/* A map taller than wide (Germany) is drawn narrower (LEADGEN_DACH). */
body.lg .lg-map.lg-map--tall, body.lg .lg-map-static.lg-map--tall { max-width: 440px; }
/* The map data's source credit (owner Q4, LEADGEN_DACH: the licences ask for it). */
body.lg .lg-map-credit { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: #9ca3af; }

/* ── Per-device visibility (§2): be.js's cut-off, tablets = desktop ── */
@media (max-width: 768px) { body.lg .lg-show-desktop { display: none !important; } }
@media (min-width: 769px) { body.lg .lg-show-mobile { display: none !important; } }

/* ── Mode B — the region check overlay (§4) ── */
body.lg .lg-check {
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(17, 24, 39, 0.55);
}
body.lg .lg-check[hidden] { display: none; }
body.lg .lg-check-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 24px 22px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); text-align: start;
}
body.lg .lg-check-title { font-size: 20px; font-weight: 700; color: var(--lg-ink-2); margin: 0 0 6px; }
body.lg .lg-check-region { font-size: 16px; color: #4b5563; margin: 0 0 16px; }
body.lg .lg-check-region strong { color: var(--lg-heading); }
body.lg .lg-check-steps { list-style: none; margin: 0 0 16px; padding: 0; }
body.lg .lg-check-step {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-size: 16px; line-height: 1.4; color: #9ca3af; transition: color 0.2s ease;
}
body.lg .lg-check-icon {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #d1d5db; position: relative;
}
body.lg .lg-check-step.is-active { color: var(--lg-ink-2); }
body.lg .lg-check-step.is-active .lg-check-icon { border-color: var(--cta-bg); border-top-color: transparent; animation: lg-spin 0.7s linear infinite; }
body.lg .lg-check-step.is-done { color: var(--lg-ink-2); }
body.lg .lg-check-step.is-done .lg-check-icon { border-color: var(--cta-bg); background: var(--cta-bg); }
body.lg .lg-check-step.is-done .lg-check-icon::after {
  content: ""; position: absolute; inset-inline-start: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
body.lg .lg-check-bar { height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
body.lg .lg-check-bar span { display: block; height: 100%; width: 0; background: var(--cta-bg); }
body.lg .lg-check.is-running .lg-check-bar span { width: 100%; transition: width var(--lg-check-ms, 2000ms) linear; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  body.lg .lg-check-step.is-active .lg-check-icon { animation: none; }
}

/* ── Mobile (spec §6): ~16px side padding, larger body text ── */
@media (max-width: 768px) {
  body.lg .lg-header-inner { padding: 8px 16px; gap: 8px; }
  body.lg .lg-header-tag { display: none; }
  body.lg .lg-disclosure { font-size: 13px; }
  body.lg .lg-main { padding: 14px 16px 32px; }
  body.lg .lg-h1 { font-size: 27px; }
  body.lg .lg-standfirst { font-size: 19px; }
  body.lg .content-block-title { font-size: 23px; }
  body.lg .content-block-article, body.lg .content-block-article p,
  body.lg .lg-hti-body, body.lg .lg-hti-body p, body.lg .lg-bullets li { font-size: 18px; }
  body.lg a.content-block-cta-btn { display: flex; width: 100%; font-size: 19px; }
  body.lg .lg-regions { padding: 20px 14px; margin-inline: 0; }
  body.lg .lg-regions-title { font-size: 20px; }
}
@media (max-width: 360px) {
  body.lg .lg-region-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Top Banner: the shared partial sets no font-family (the house trap). */
body.lg .lp-tb { font-family: var(--lg-font); }
