/* BioGiene content layer (bg-*): plain-HTML pages built from content/build/pages. Brief palette. */
:root{--bg-navy:#102A43;--bg-cobalt:#155FB8;--bg-accent:#0787D1;--bg-ink:#263746;--bg-ice:#EAF5FA;--bg-off:#F8FAFC;--bg-line:#D6E4EE;--bg-wrap:1140px}
/* Hub wraps page content in .container#lqd-contents-wrap; let bg pages run full-bleed. */
#lqd-contents-wrap:has(> .bg-hero){max-width:none;width:100%;padding-left:0;padding-right:0}
.bg-hero,.bg-band,.bg-cta{padding:72px 24px;position:relative}
.bg-wrap{max-width:var(--bg-wrap);margin:0 auto}
.bg-hero{background:linear-gradient(135deg,var(--bg-navy) 0%,#0F3D6B 70%,var(--bg-cobalt) 100%);color:#fff;padding-top:170px;padding-bottom:88px}
.bg-hero--img{background-image:linear-gradient(90deg,rgba(16,42,67,.95) 0%,rgba(16,42,67,.78) 55%,rgba(21,95,184,.55) 100%),var(--bg-hero-img);background-size:cover;background-position:center}
.bg-hero .bg-wrap{max-width:880px}
.bg-kicker{font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:#9CCBF0;margin:0 0 16px;font-weight:600}
.bg-hero h1{color:#fff;font-size:clamp(34px,4.5vw,54px);line-height:1.1;margin:0 0 20px;font-weight:700}
.bg-lede{font-size:clamp(17px,1.6vw,21px);line-height:1.55;color:#DCEBF7;margin:0 0 28px;max-width:740px}
.bg-actions{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 8px}
.bg-btn{display:inline-block;background:var(--bg-accent);color:#fff!important;padding:14px 26px;border-radius:6px;font-weight:600;text-decoration:none!important;line-height:1.2;border:2px solid var(--bg-accent);transition:background .2s,border-color .2s}
.bg-btn:hover{background:var(--bg-cobalt);border-color:var(--bg-cobalt)}
.bg-btn--ghost{background:transparent;border-color:rgba(255,255,255,.55);color:#fff!important}
.bg-btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
.bg-btn--light{background:#fff;color:var(--bg-navy)!important;border-color:#fff}
.bg-btn--light:hover{background:var(--bg-ice);border-color:var(--bg-ice)}
.bg-trust{list-style:none;margin:28px 0 0;padding:20px 0 0;border-top:1px solid rgba(255,255,255,.18);display:flex;flex-wrap:wrap;gap:10px 28px;font-size:14px;color:#BFD9EE}
.bg-trust li{margin:0}.bg-trust li::before{content:"\2713  ";color:#6FD3A0}
.bg-band--tint{background:var(--bg-ice)}
.bg-band--navy{background:var(--bg-navy);color:#DCEBF7}
.bg-band--navy h2,.bg-band--navy h3,.bg-band--navy .bg-prose h2,.bg-band--navy .bg-prose h3{color:#fff}
.bg-band--navy .bg-prose p,.bg-band--navy .bg-prose li{color:#DCEBF7}
.bg-prose{max-width:820px}
.bg-prose h2{font-size:clamp(26px,3vw,36px);line-height:1.2;color:var(--bg-navy);margin:0 0 18px}
.bg-prose h2:not(:first-child){margin-top:44px}
.bg-prose h3{font-size:21px;line-height:1.3;color:var(--bg-navy);margin:28px 0 10px}
.bg-prose p,.bg-prose li{font-size:17px;line-height:1.65;color:var(--bg-ink)}
.bg-prose p{margin:0 0 18px}
.bg-prose ul,.bg-prose ol{padding-left:22px;margin:0 0 18px}
.bg-prose li{margin-bottom:8px}
.bg-prose a{color:var(--bg-cobalt)}
.bg-cards{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin:28px 0 0}
.bg-card{background:#fff;border:1px solid var(--bg-line);border-radius:10px;padding:26px 24px;box-shadow:0 2px 10px rgba(16,42,67,.05)}
.bg-band--tint .bg-card{border-color:transparent}
.bg-card h3{font-size:19px;line-height:1.3;color:var(--bg-navy);margin:0 0 10px}
.bg-card h3 a{color:var(--bg-navy);text-decoration:none}
.bg-card p{font-size:15.5px;line-height:1.6;color:var(--bg-ink);margin:0}
.bg-card .bg-more{display:inline-block;margin-top:12px;color:var(--bg-cobalt);font-weight:600;text-decoration:none}
.bg-card--link{transition:transform .15s,box-shadow .15s}.bg-card--link:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(16,42,67,.12)}
.bg-steps{list-style:none;counter-reset:s;padding:0;margin:28px 0 0;display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.bg-steps li{counter-increment:s;background:#fff;border:1px solid var(--bg-line);border-radius:10px;padding:26px 24px 22px;margin:0}
.bg-steps li::before{content:counter(s);display:inline-flex;width:38px;height:38px;border-radius:50%;background:var(--bg-cobalt);color:#fff;font-weight:700;align-items:center;justify-content:center;margin-bottom:14px}
.bg-steps h3{font-size:18px;line-height:1.3;color:var(--bg-navy);margin:0 0 8px}
.bg-steps p{font-size:15.5px;line-height:1.6;color:var(--bg-ink);margin:0}
.bg-stats{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.bg-stats li{background:#fff;border-left:4px solid var(--bg-accent);padding:18px 20px;border-radius:6px;margin:0}
.bg-stats strong{display:block;font-size:30px;color:var(--bg-navy);line-height:1.1}
.bg-stats span{font-size:14px;color:var(--bg-ink)}
.bg-callout{border-left:4px solid var(--bg-accent);background:var(--bg-ice);padding:20px 24px;margin:28px 0;border-radius:0 8px 8px 0}
.bg-callout p{margin:0;font-size:18px;line-height:1.5;color:var(--bg-navy)}
.bg-faq{border-top:1px solid var(--bg-line);padding:16px 0}
.bg-faq:last-of-type{border-bottom:1px solid var(--bg-line)}
.bg-faq summary{cursor:pointer;font-weight:600;font-size:18px;line-height:1.35;color:var(--bg-navy);list-style:none;display:flex;justify-content:space-between;gap:16px}
.bg-faq summary::-webkit-details-marker{display:none}
.bg-faq summary::after{content:"+";color:var(--bg-cobalt);font-size:24px;line-height:1;flex:none}
.bg-faq[open] summary::after{content:"\2013"}
.bg-faq>div{padding-top:10px}
.bg-cta{background:linear-gradient(120deg,var(--bg-cobalt),var(--bg-accent));color:#fff;text-align:center}
.bg-cta h2{color:#fff;font-size:clamp(26px,3vw,38px);line-height:1.2;margin:0 0 14px}
.bg-cta p{color:#EAF5FA;font-size:18px;max-width:720px;margin:0 auto 24px;line-height:1.55}
.bg-cta .bg-actions{justify-content:center}
.bg-confirm{background:#FFF1B8;color:#7A5200;padding:2px 6px;border-radius:4px;font-size:.9em}
.bg-cols{display:grid;gap:36px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start}
.bg-figure{margin:28px 0}.bg-figure img{border-radius:10px;width:100%;height:auto;display:block;box-shadow:0 8px 24px rgba(16,42,67,.12)}
.bg-figure figcaption{font-size:14px;color:#5B6B7A;margin-top:10px}
.bg-office{background:#fff;border:1px solid var(--bg-line);border-radius:10px;padding:22px}
.bg-office h3{margin:0 0 8px;color:var(--bg-navy);font-size:19px}.bg-office p{margin:0 0 6px;font-size:16px;color:var(--bg-ink)}
.bg-badges{display:flex;flex-wrap:wrap;gap:24px;align-items:center;margin:20px 0}
.bg-badges img{max-height:96px;width:auto}
.wpcf7 .bg-form{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.wpcf7 .bg-form .bg-form__full{grid-column:1/-1}
.wpcf7 .bg-form label{display:block;font-weight:600;color:var(--bg-navy);font-size:15px}
.wpcf7 .bg-form input[type=text],.wpcf7 .bg-form input[type=email],.wpcf7 .bg-form input[type=tel],.wpcf7 .bg-form select,.wpcf7 .bg-form textarea{width:100%;border:1px solid var(--bg-line);border-radius:6px;padding:12px 14px;font-size:16px;background:#fff}
.wpcf7 .bg-form input[type=submit]{background:var(--bg-accent);color:#fff;border:0;border-radius:6px;padding:14px 28px;font-weight:600;cursor:pointer}
/* Hub swaps <select> for a jQuery UI selectmenu button; give it the same box as the inputs. */
.wpcf7 .bg-form .ui-selectmenu-button,.wpcf7 .bg-form span.ui-button{display:block!important;width:100%!important;box-sizing:border-box;border:1px solid var(--bg-line)!important;border-radius:6px!important;padding:12px 14px!important;font-size:16px!important;background:#fff!important;color:var(--bg-ink)!important;text-align:left}
.wpcf7 .bg-form .ui-selectmenu-text{display:block;line-height:1.3}
.wpcf7 .bg-form select{-webkit-appearance:auto;appearance:auto}
.wpcf7 .bg-form .ui-selectmenu-button~select,.wpcf7 .bg-form select.ui-selectmenu-hidden{display:none!important}
.wpcf7 .bg-form .lqd-select-dropdown:empty,.wpcf7 .bg-form .ui-selectmenu-menu:not(.ui-selectmenu-open){display:none!important}
/* Insight posts: the theme's overlay header sits on a white body here, so give it a white bar (light scheme) and clear the title. */
.single-post #header.main-header:not(.is-stuck){background:#fff;box-shadow:0 1px 0 #D6E4EE}
.single-post #header.main-header:not(.is-stuck) #primary-nav>li>a,.single-post #header.main-header:not(.is-stuck) .header-module a,.single-post #header.main-header:not(.is-stuck) .btn{color:#102A43!important}
.single-post #header.main-header:not(.is-stuck) .btn{border-color:#102A43!important}
.single-post #header.main-header:not(.is-stuck) .module-logo .navbar-brand .logo-dark{opacity:1!important;visibility:visible!important}
.single-post #header.main-header:not(.is-stuck) .module-logo .navbar-brand .logo-default,.single-post #header.main-header:not(.is-stuck) .module-logo .navbar-brand .logo-light{opacity:0!important;visibility:hidden!important}
.single-post .lqd-post-content{padding-top:140px}
.single-post .lqd-post-header .entry-title{font-size:clamp(30px,4vw,46px);line-height:1.15;color:var(--bg-navy)}
.single-post .entry-content h2{font-size:clamp(24px,3vw,32px);color:var(--bg-navy);margin:36px 0 12px}
.single-post .entry-content h3{font-size:21px;color:var(--bg-navy);margin:26px 0 8px}
.single-post .entry-content p,.single-post .entry-content li{font-size:17px;line-height:1.65;color:var(--bg-ink)}
.single-post .entry-content a{color:var(--bg-cobalt)}
@media (max-width:640px){.bg-hero{padding-top:130px}.bg-hero,.bg-band,.bg-cta{padding-left:18px;padding-right:18px}}

/* Homepage hero "Trusted by" strip: white card behind each client logo (several are transparent PNGs, invisible on navy).
   Phase 2 (C3, 11 Sep 2026): grayscale, 70% opacity, capped width; colour on hover. */
.elementor-element-4b9f35e img{background:#fff;padding:.5rem .75rem;border-radius:4px;max-width:150px;filter:grayscale(1);opacity:.7;transition:filter .3s,opacity .3s}
.elementor-element-4b9f35e img:hover{filter:none;opacity:1}

/* Homepage hero CTA: pulse ring, same rhythm/easing as Hub's play-button ripple (the play button was removed 4 Sep 2026).
   Hub's .btn is overflow:hidden, so the ring is a box-shadow rather than a pseudo-element. */
@keyframes bgCtaPulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.75)}80%{box-shadow:0 0 0 14px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}
.elementor-element-bd62a1d .btn{animation:bgCtaPulse 2s cubic-bezier(.23,1,.32,1) both infinite}
@media (prefers-reduced-motion:reduce){.elementor-element-bd62a1d .btn{animation:none}}

/* Primary nav: "BioGiene Plus" shop link styled as a call to action (brand green). Class set on the menu item by restructure.php. */
.main-nav > li.bg-shop-cta > a{color:#32B954!important;font-weight:700}

/* Footer, Phase 2 (C11, C14, 11 Sep 2026): country labels above the office blocks; bottom-bar links never wrap. */
.bg-country{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#fff;opacity:.85;margin-bottom:.4rem}
.elementor-element-6545e42 li{white-space:nowrap}

/* Phase 2 (C8, 11 Sep 2026): one left edge on every band. Hero and prose columns sit in the standard container
   instead of being centred at their own widths; line length is still capped on text children. */
.bg-hero .bg-wrap{max-width:var(--bg-wrap)}
.bg-hero h1{max-width:880px}
.bg-wrap.bg-prose{max-width:var(--bg-wrap)}
.bg-wrap.bg-prose>:not(.bg-stats):not(.bg-cards):not(.bg-cols):not(.bg-steps):not(.bg-figure){max-width:820px}
.bg-cols--4{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}

/* Sticky header, Phase 2 (C6, 11 Sep 2026): Hub leaves the stuck header transparent, so page text showed through it.
   Hub tags the header row lqd-active-row-light (dark text, over a light section) or lqd-active-row-dark (white text);
   29 Sep: Hub tags each column separately, so per-row backgrounds rendered as separate boxes. One white bar on the
   whole top section instead, dark nav and colour logo, on every page. */
.main-header.is-stuck .lqd-active-row-light,.main-header.is-stuck .lqd-active-row-dark{background:transparent!important;box-shadow:none!important}
.main-header.is-stuck .elementor-top-section{background:#fff!important;box-shadow:0 2px 14px rgba(16,42,67,.08)!important}
.main-header.is-stuck #primary-nav>li>a,.main-header.is-stuck .header-module a{color:#102A43!important}
.main-header.is-stuck .btn{color:#102A43!important;border-color:#1E88E5!important}
.main-header.is-stuck .module-logo .navbar-brand .logo-sticky,.main-header.is-stuck .module-logo .navbar-brand .logo-dark{opacity:1!important;visibility:visible!important}
.main-header.is-stuck .module-logo .navbar-brand .logo-light,.main-header.is-stuck .module-logo .navbar-brand .logo-default{opacity:0!important;visibility:hidden!important}

/* Insights index intro (C20). */
.bg-insights-intro{max-width:820px;margin:0 0 36px}.bg-insights-intro p{font-size:19px;line-height:1.55;color:var(--bg-ink);margin:0}
/* Our team: client-supplied headshot cards (name + title baked into each image) */
.bg-wrap:has(>.bg-team){max-width:1360px}
.bg-team{display:grid;gap:32px;grid-template-columns:1fr}
@media (min-width:600px){.bg-team{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.bg-team{grid-template-columns:repeat(3,1fr)}}
.bg-team__card{margin:0;border-radius:8px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.bg-team__card img{display:block;width:100%;height:auto}
/* Pages that open on a dark hero (bg-hero): Hub's dynamic colours misread photo backdrops and flip the unstuck nav to dark text.
   Pin the light scheme (white nav, white logo) until the header sticks; stuck state is still Hub's. */
body:has(.bg-hero) #header.main-header:not(.is-stuck) #primary-nav>li>a,body:has(.bg-hero) #header.main-header:not(.is-stuck) .header-module a,body:has(.bg-hero) #header.main-header:not(.is-stuck) .btn{color:#fff!important}
body:has(.bg-hero) #header.main-header:not(.is-stuck) .btn{border-color:#fff!important}
body:has(.bg-hero) #header.main-header:not(.is-stuck) .module-logo .navbar-brand .logo-light{opacity:1!important;visibility:visible!important}
body:has(.bg-hero) #header.main-header:not(.is-stuck) .module-logo .navbar-brand .logo-dark,body:has(.bg-hero) #header.main-header:not(.is-stuck) .module-logo .navbar-brand .logo-default{opacity:0!important;visibility:hidden!important}
body:has(.bg-hero--img) #header.main-header:not(.is-stuck){background:linear-gradient(rgba(16,42,67,.6),rgba(16,42,67,0))}
/* Careers: requirements pop-up before the Formsite application (native <dialog>; Esc, x and backdrop close it) */
.bg-modal{border:0;border-radius:10px;padding:0;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 48px);box-shadow:0 20px 60px rgba(16,42,67,.35);color:#102A43}
.bg-modal::backdrop{background:rgba(16,42,67,.7)}
.bg-modal__body{position:relative;padding:40px 44px 36px;overflow:auto}
.bg-modal h2{font-size:28px;line-height:1.2;margin:4px 0 12px;padding-right:32px}
.bg-modal h3{font-size:19px;margin:24px 0 8px}
.bg-modal ul{margin:0 0 0 20px;padding:0}
.bg-modal li{margin:4px 0}
.bg-modal__close{position:absolute;top:14px;right:16px;border:0;background:none;font-size:32px;line-height:1;color:#486581;cursor:pointer;padding:4px 8px}
.bg-modal__close:hover{color:#102A43}
.bg-modal__lead{font-weight:700;margin:28px 0 12px}
.bg-modal__actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:0}
.bg-modal__actions small{color:#627D98}
@media (max-width:600px){.bg-modal__body{padding:32px 20px 24px}.bg-modal h2{font-size:22px}}
.bg-hero--right{background-position:center,right top}
/* Staggered cards (Careers "What to expect"): every second card drops on desktop */
.bg-offset{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.bg-offset li{margin:0;background:#fff;border-radius:10px;padding:28px 26px;box-shadow:0 6px 24px rgba(16,42,67,.08);border-top:4px solid var(--bg-accent)}
.bg-offset__n{display:block;font-size:34px;font-weight:700;line-height:1;color:var(--bg-accent);margin-bottom:14px}
.bg-offset h3{margin:0 0 8px;font-size:22px;line-height:1.25}
.bg-offset p{margin:0}
@media (min-width:900px){.bg-offset{align-items:start}.bg-offset li:nth-child(2){margin-top:48px}.bg-offset li:nth-child(3){margin-top:96px}}
.bg-center{text-align:center}.bg-wrap.bg-prose.bg-center>*{margin-left:auto;margin-right:auto}
.bg-modal--form{width:min(760px,calc(100vw - 32px))}
/* HTML sitemap */
.bg-sitemap{display:grid;gap:32px 40px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.bg-sitemap h2{font-size:22px;margin:0 0 10px}
.bg-sitemap h2 a{color:var(--bg-navy);text-decoration:none}
.bg-sitemap ul{list-style:none;margin:0;padding:0}
.bg-sitemap li{margin:6px 0}
.bg-sitemap__xml{margin-top:40px;font-size:14px;color:#627D98}

/* Homepage page counter (01/07), 7 Oct 2026: Hub fixes it bottom-centre, where it sat on top of panel content
   (ISO badges, the "Arrange a site assessment" link, the case-study cards). Parked bottom-right, under the dot nav. */
.lqd-stack-nums-style-1 .lqd-stack-page-number{left:auto;right:28px;bottom:24px;transform:none;font-size:16px}
/* New logo (7 Oct 2026) is a wide lockup: cap it so it clears the first nav item at 1600px. */
#header .module-logo .navbar-brand img{max-width:190px;height:auto}
/* Laptop widths (Amber, 26 Oct 2026, 1500px MacBook screenshot): the header's 15 / 69 / 15 columns cannot hold the logo, eight nav
   items at 30px side padding and a 300px button, so the centred nav spilled under both. Hub drops to its mobile nav below 1200px. */
@media (min-width:1200px) and (max-width:1680px){
  #header .elementor-element-9d81206{width:13%!important}
  #header .elementor-element-3c3a180{width:62%!important}
  #header .elementor-element-931b1a6{width:25%!important}
  #header .module-logo .navbar-brand img{max-width:150px}
  #header #primary-nav>li>a{padding-left:12px!important;padding-right:12px!important;font-size:15px!important}
  #header .elementor-element-3308bd7 .btn{white-space:nowrap;font-size:11px!important}
  #header .elementor-element-3308bd7 .btn>span{padding:12px 18px!important}
}
@media (min-width:1200px) and (max-width:1400px){
  #header .module-logo .navbar-brand img{max-width:130px}
  #header #primary-nav>li>a{padding-left:8px!important;padding-right:8px!important;font-size:14px!important}
  #header .elementor-element-3308bd7 .btn{font-size:10px!important}
  #header .elementor-element-3308bd7 .btn>span{padding:10px 14px!important}
}
.bg-team__card figcaption{padding:10px 16px;text-align:center;background:#fff}
.bg-team__in{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;color:#0a66c2;text-decoration:none}
.bg-team__in::before{content:"in";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:3px;background:#0a66c2;color:#fff;font:700 13px/1 Arial,sans-serif}
.bg-team__in:hover,.bg-team__in:focus-visible{text-decoration:underline}
