/* Boost Remaps v1.1.69 — page-family consistency + legacy regression cleanup. */

:root{
  --wb69-bg:#05070a;
  --wb69-panel:#0d131c;
  --wb69-panel-2:#090e15;
  --wb69-line:rgba(220,230,243,.11);
  --wb69-text:#f7f9fc;
  --wb69-copy:#c4cedb;
  --wb69-muted:#aeb9c8;
  --wb69-red:#ef233c;
}

/* Astra/WordPress can re-introduce white shells on old pages/posts. */
body.wb-premium:not(.home),
body.wb-premium:not(.home).ast-separate-container,
body.wb-premium:not(.home) #page,
body.wb-premium:not(.home) #content,
body.wb-premium:not(.home) #content.site-content,
body.wb-premium:not(.home) #content>.ast-container,
body.wb-premium:not(.home) #primary,
body.wb-premium:not(.home) .site-main,
body.wb-premium:not(.home) .ast-article-single,
body.wb-premium:not(.home) .ast-post-format-,
body.wb-premium:not(.home) .entry-content{
  background-color:var(--wb69-bg)!important;
  color:var(--wb69-copy)!important;
}
body.wb-premium.ast-separate-container .ast-article-single:not(.ast-related-post){background-color:transparent!important;background-image:none!important}
body.wb-premium:not(.home) #content>.ast-container{max-width:none!important;padding-left:0!important;padding-right:0!important}

/* Old Elementor colour blocks must inherit the new dark shell while retaining background images. */
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary .elementor-section,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary .elementor-column,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary .elementor-column>.elementor-widget-wrap{
  background-color:transparent!important;
}
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary h1,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary h2,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary h3,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary h4,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary h5,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary h6,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary .elementor-heading-title{
  color:var(--wb69-text)!important;
  -webkit-text-fill-color:var(--wb69-text)!important;
}
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary p,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary li,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary .elementor-text-editor,
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary .elementor-widget-text-editor{
  color:var(--wb69-copy)!important;
  -webkit-text-fill-color:var(--wb69-copy)!important;
}
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary strong{color:#f7f9fc!important;-webkit-text-fill-color:#f7f9fc!important}
body.wb-premium:not(.home):not(.wb-tool-theme):not(.wb-route-contact) #primary a:not(.elementor-button):not(.wb-btn):not(.wb-cine-btn){color:#ff5366!important;-webkit-text-fill-color:#ff5366!important}

/* ---------- Single blog/article pages ---------- */
body.wb-premium.single-post #primary{margin:0!important;padding:42px 24px 76px!important}
body.wb-premium.single-post #primary article{max-width:1180px!important;margin:0 auto!important;padding:0!important;background:transparent!important;border:0!important}
body.wb-premium.single-post #primary article>.ast-post-format-{max-width:1180px!important;margin:0 auto!important}
body.wb-premium.single-post .entry-header{margin:0 0 26px!important;padding:0!important;background:transparent!important}
body.wb-premium.single-post .entry-header .entry-title,
body.wb-premium.single-post .entry-header .entry-meta{display:none!important}
body.wb-premium.single-post .post-thumb{overflow:hidden!important;margin:0!important;border:1px solid var(--wb69-line)!important;border-radius:22px!important;background:#0b1017!important;box-shadow:0 24px 60px rgba(0,0,0,.32)!important}
body.wb-premium.single-post .post-thumb img{display:block!important;width:100%!important;max-height:610px!important;object-fit:cover!important;margin:0!important}
body.wb-premium.single-post .entry-content.wb-entry-prose{margin:22px auto 0!important;padding:38px 42px 44px!important;border:1px solid var(--wb69-line)!important;border-radius:22px!important;background:linear-gradient(180deg,#10161f,#090e15)!important;box-shadow:0 24px 62px rgba(0,0,0,.27)!important}
body.wb-premium.single-post .entry-content.wb-entry-elementor{margin:22px auto 0!important;padding:0!important;background:transparent!important}
body.wb-premium.single-post .entry-content.wb-entry-prose p,
body.wb-premium.single-post .entry-content.wb-entry-prose li{font-size:16px!important;line-height:1.78!important;color:var(--wb69-copy)!important}
body.wb-premium.single-post .entry-content.wb-entry-prose h2{margin:34px 0 13px!important;font-size:clamp(31px,3vw,43px)!important;line-height:1.1!important;color:#fff!important}
body.wb-premium.single-post .entry-content.wb-entry-prose h3{margin:28px 0 10px!important;font-size:clamp(23px,2vw,29px)!important;line-height:1.18!important;color:#fff!important}
body.wb-premium.single-post .entry-content.wb-entry-prose a{color:#ff5366!important}
body.wb-premium.single-post .post-navigation{max-width:1180px!important;margin:22px auto 0!important;padding:0!important;border:0!important;background:transparent!important}
body.wb-premium.single-post .post-navigation a{color:#ff5366!important}

/* Elementor-backed article pages: one coherent dark card per old section. */
body.wb-premium.single-post .entry-content.wb-entry-elementor>.elementor{padding:0!important;max-width:none!important}
body.wb-premium.single-post .entry-content.wb-entry-elementor>.elementor>.elementor-section{margin:0 0 18px!important;padding:0!important;background-color:transparent!important}
body.wb-premium.single-post .entry-content.wb-entry-elementor>.elementor>.elementor-section>.elementor-container{
  max-width:1180px!important;margin:0 auto!important;padding:30px 32px!important;
  border:1px solid var(--wb69-line)!important;border-radius:20px!important;
  background:linear-gradient(180deg,#10161f,#090e15)!important;
  box-shadow:0 20px 52px rgba(0,0,0,.24)!important;
}
body.wb-premium.single-post .entry-content.wb-entry-elementor h2,
body.wb-premium.single-post .entry-content.wb-entry-elementor h3,
body.wb-premium.single-post .entry-content.wb-entry-elementor h4{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.wb-premium.single-post .entry-content.wb-entry-elementor p,
body.wb-premium.single-post .entry-content.wb-entry-elementor li{color:var(--wb69-copy)!important;-webkit-text-fill-color:var(--wb69-copy)!important;font-size:15.5px!important;line-height:1.72!important}

/* ---------- Compact VRM on service/content pages ---------- */
body.wb-vrm-compact #wb-reg-iframe{
  min-height:300px!important;
  width:100%!important;
  min-width:100%!important;
  display:block!important;
  border:0!important;
  background:#0b0f16!important;
}
body.wb-vrm-compact #primary iframe[src*="reg.webbang.co.uk"]{border-radius:18px!important}
body.wb-vrm-compact #primary .elementor-widget-shortcode>.elementor-widget-container,
body.wb-vrm-compact #primary .wb-custom-widget.wb-vrm-widget{overflow:hidden!important;background:#0b0f16!important;border-radius:18px!important}

/* ---------- Tuning database readability ---------- */
body.wb-route-tuning-database .wbtd-bottom p{color:#ced6e1!important;-webkit-text-fill-color:#ced6e1!important;font-size:14.5px!important;line-height:1.65!important;font-weight:600!important}
body.wb-route-tuning-database .wbtd-note{color:#bcc7d5!important;-webkit-text-fill-color:#bcc7d5!important;font-size:13.5px!important;line-height:1.65!important;font-weight:600!important;max-width:1020px!important;margin:18px auto 0!important}
body.wb-route-tuning-database .wbtd-bottom strong{font-size:18px!important}
body.wb-route-tuning-database .wbtd-stage{height:300px!important;max-height:none!important;transition:height .28s ease!important}
body.wb-route-tuning-database #wb-reg-iframe{min-height:300px!important;background:#0b0f16!important}
body.wb-route-tuning-database .wbtd-toolbox{overflow:hidden!important}

/* ---------- DPF page: long content must match the utility tool ---------- */
body.wb-route-dpf-solution .elementor-element-f3b8098{
  margin:0!important;padding:0 24px 72px!important;background:linear-gradient(180deg,#090e15,#05070a)!important;
}
body.wb-route-dpf-solution .elementor-element-f3b8098>.elementor-container{
  max-width:1180px!important;margin:0 auto!important;padding:30px!important;gap:26px!important;
  border:1px solid var(--wb69-line)!important;border-radius:22px!important;background:linear-gradient(180deg,#10161f,#090e15)!important;
  box-shadow:0 24px 62px rgba(0,0,0,.28)!important;
}
body.wb-route-dpf-solution .elementor-element-f3b8098 .elementor-column,
body.wb-route-dpf-solution .elementor-element-f3b8098 .elementor-widget-wrap,
body.wb-route-dpf-solution .elementor-element-f3b8098 .elementor-widget-container{background-color:transparent!important}
body.wb-route-dpf-solution .elementor-element-f3b8098 h2,
body.wb-route-dpf-solution .elementor-element-f3b8098 h3,
body.wb-route-dpf-solution .elementor-element-f3b8098 h4{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.wb-route-dpf-solution .elementor-element-f3b8098 p,
body.wb-route-dpf-solution .elementor-element-f3b8098 li{color:#c3cdda!important;-webkit-text-fill-color:#c3cdda!important;font-size:15.5px!important;line-height:1.72!important}
body.wb-route-dpf-solution .elementor-element-f3b8098 img{border-radius:16px!important;box-shadow:0 16px 38px rgba(0,0,0,.34)!important}

/* ---------- Gallery rebuilt natively ---------- */
body.wb-route-gallery #primary{background:#05070a!important}
.wb-gallery-premium{padding:56px 24px 72px;background:radial-gradient(circle at 88% 0,rgba(239,35,60,.08),transparent 27%),#05070a}
.wb-gallery-in{max-width:1240px;margin:0 auto}
.wb-gallery-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:24px}
.wb-gallery-kicker{display:block;margin-bottom:9px;color:#ef3145;font:800 12px/1 Saira,Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase}
.wb-gallery-head h2{margin:0;color:#fff;font:800 clamp(34px,3.3vw,50px)/1.08 Saira,Arial,sans-serif;letter-spacing:-.8px}
.wb-gallery-head p{max-width:520px;margin:0;color:#aeb9c8;font:600 15px/1.65 Saira,Arial,sans-serif;text-align:right}
.wb-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.wb-gallery-card{overflow:hidden;border:1px solid var(--wb69-line);border-radius:18px;background:linear-gradient(180deg,#10161f,#090e15);box-shadow:0 18px 46px rgba(0,0,0,.25);transition:transform .18s ease,border-color .18s ease}
.wb-gallery-card:hover{transform:translateY(-3px);border-color:rgba(239,35,60,.35)}
.wb-gallery-card.is-extra{display:none}
.wb-gallery-grid.is-expanded .wb-gallery-card.is-extra{display:block}
.wb-gallery-media{position:relative;aspect-ratio:16/9;background:#020304;overflow:hidden}
.wb-gallery-media video,.wb-gallery-media iframe{display:block;width:100%;height:100%;border:0;object-fit:cover;background:#020304}
.wb-gallery-copy{padding:16px 17px 18px}
.wb-gallery-copy span{display:flex;justify-content:space-between;gap:12px;color:#ef3145;font:800 10px/1.2 Saira,Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase}
.wb-gallery-copy h3{margin:8px 0 0;color:#fff;font:800 17px/1.32 Saira,Arial,sans-serif;text-transform:none!important}
.wb-gallery-more{display:flex;justify-content:center;margin-top:24px}
.wb-gallery-more button{min-height:48px;padding:12px 22px;border:1px solid rgba(239,35,60,.5);border-radius:999px;background:linear-gradient(135deg,#ef233c,#b90d22);color:#fff;font:800 12px/1 Saira,Arial,sans-serif;cursor:pointer;box-shadow:0 12px 28px rgba(226,31,53,.18)}
.wb-gallery-more button:hover{transform:translateY(-2px)}
.wb-gallery-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:28px;padding:24px 26px;border:1px solid var(--wb69-line);border-radius:18px;background:linear-gradient(120deg,rgba(239,35,60,.08),#0b1119 50%,#090e15)}
.wb-gallery-cta strong{display:block;color:#fff;font:800 20px/1.25 Saira,Arial,sans-serif}.wb-gallery-cta p{margin:6px 0 0;color:#b9c4d2;font:600 14px/1.6 Saira,Arial,sans-serif}.wb-gallery-actions{display:flex;gap:9px;flex-wrap:wrap}.wb-gallery-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:#151d28;color:#fff!important;text-decoration:none!important;font:800 11px/1 Saira,Arial,sans-serif}.wb-gallery-actions a:first-child{background:linear-gradient(135deg,#ef233c,#b90d22);border-color:rgba(239,35,60,.5)}

/* ---------- Finance ---------- */
body.wb-route-finance .elementor-element-2aa57da,
body.wb-route-finance .elementor-element-8dc7e23{display:none!important}

@media(max-width:980px){
  .wb-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wb-gallery-head{align-items:flex-start;flex-direction:column}.wb-gallery-head p{text-align:left}
  body.wb-route-dpf-solution .elementor-element-f3b8098>.elementor-container{padding:24px!important}
}
@media(max-width:720px){
  body.wb-premium.single-post #primary{padding:24px 12px 48px!important}
  body.wb-premium.single-post .post-thumb{border-radius:17px!important}
  body.wb-premium.single-post .entry-content.wb-entry-prose{padding:24px 20px 28px!important;border-radius:17px!important}
  body.wb-premium.single-post .entry-content.wb-entry-prose p,body.wb-premium.single-post .entry-content.wb-entry-prose li{font-size:15px!important;line-height:1.7!important}
  body.wb-premium.single-post .entry-content.wb-entry-elementor>.elementor>.elementor-section>.elementor-container{padding:20px 18px!important;border-radius:17px!important}
  body.wb-vrm-compact #wb-reg-iframe{min-height:340px!important}
  body.wb-route-dpf-solution .elementor-element-f3b8098{padding:0 12px 46px!important}
  body.wb-route-dpf-solution .elementor-element-f3b8098>.elementor-container{padding:18px!important;border-radius:17px!important}
  body.wb-route-dpf-solution .elementor-element-f3b8098>.elementor-container{display:block!important}
  body.wb-route-dpf-solution .elementor-element-f3b8098 .elementor-column{width:100%!important}
  body.wb-route-dpf-solution .elementor-element-f3b8098 .elementor-column+ .elementor-column{margin-top:18px!important}
  .wb-gallery-premium{padding:38px 12px 48px}.wb-gallery-grid{grid-template-columns:1fr;gap:12px}.wb-gallery-head{margin-bottom:18px}.wb-gallery-head p{font-size:14px}.wb-gallery-copy h3{font-size:16px}.wb-gallery-cta{align-items:flex-start;flex-direction:column;padding:20px}.wb-gallery-actions{width:100%}.wb-gallery-actions a{flex:1 1 auto}
  body.wb-route-tuning-database .wbtd-bottom p{font-size:13.5px!important}
  body.wb-route-tuning-database .wbtd-note{font-size:12.5px!important}
}

/* Specificity hardening against v1.1.68 generic Elementor rules. */
body.wb-premium.single-post #primary .entry-content.wb-entry-elementor>.elementor{max-width:none!important;margin:0!important;padding:0!important;background:transparent!important}
body.wb-premium.single-post #primary .entry-content.wb-entry-elementor>.elementor>.elementor-section{margin:0 0 18px!important;padding:0!important;background-color:transparent!important}
body.wb-premium.single-post #primary .entry-content.wb-entry-elementor>.elementor>.elementor-section>.elementor-container{max-width:1180px!important;margin:0 auto!important;padding:30px 32px!important;background:linear-gradient(180deg,#10161f,#090e15)!important;border:1px solid var(--wb69-line)!important;border-radius:20px!important}
body.wb-route-gallery #primary .elementor{max-width:none!important;margin:0!important;padding:0!important;background:transparent!important}
body.wb-route-gallery #primary .elementor>.wb-gallery-premium{max-width:none!important;margin:0!important}

/* AdBlue long-form / service sections use the same dark utility language. */
body.wb-route-adblue-solution .elementor-element-2e19f835,
body.wb-route-adblue-solution .elementor-element-f3b8098{
  margin:0!important;padding:0 24px 54px!important;background:linear-gradient(180deg,#090e15,#05070a)!important;
}
body.wb-route-adblue-solution .elementor-element-2e19f835>.elementor-container,
body.wb-route-adblue-solution .elementor-element-f3b8098>.elementor-container{
  max-width:1180px!important;margin:0 auto!important;padding:28px!important;border:1px solid var(--wb69-line)!important;border-radius:22px!important;
  background:linear-gradient(180deg,#10161f,#090e15)!important;box-shadow:0 24px 62px rgba(0,0,0,.27)!important;
}
body.wb-route-adblue-solution .elementor-element-2e19f835 .elementor-column,
body.wb-route-adblue-solution .elementor-element-2e19f835 .elementor-widget-wrap,
body.wb-route-adblue-solution .elementor-element-f3b8098 .elementor-column,
body.wb-route-adblue-solution .elementor-element-f3b8098 .elementor-widget-wrap{background-color:transparent!important}
body.wb-route-adblue-solution .elementor-element-2e19f835 h2,
body.wb-route-adblue-solution .elementor-element-2e19f835 h3,
body.wb-route-adblue-solution .elementor-element-f3b8098 h2,
body.wb-route-adblue-solution .elementor-element-f3b8098 h3{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.wb-route-adblue-solution .elementor-element-2e19f835 p,
body.wb-route-adblue-solution .elementor-element-2e19f835 li,
body.wb-route-adblue-solution .elementor-element-f3b8098 p,
body.wb-route-adblue-solution .elementor-element-f3b8098 li{color:#c3cdda!important;-webkit-text-fill-color:#c3cdda!important;font-size:15.5px!important;line-height:1.7!important}
@media(max-width:720px){
  body.wb-route-adblue-solution .elementor-element-2e19f835,
  body.wb-route-adblue-solution .elementor-element-f3b8098{padding:0 12px 38px!important}
  body.wb-route-adblue-solution .elementor-element-2e19f835>.elementor-container,
  body.wb-route-adblue-solution .elementor-element-f3b8098>.elementor-container{padding:18px!important;border-radius:17px!important}
}
