/* ==========================================================================
   efex-motion.css  (version 2.1, 5 November 2026)
   The it.efex.com.au design on every efex.com.au page: dark pages, the line
   that travels along each section heading, the travelling light on outline
   buttons, counting figures, reveal on scroll, cards, buttons, accordions,
   forms and footer. Replaces version 1 (same file name and location, so no
   template change is needed).
   Nothing is hidden unless efex-motion.js has run (html.efx-motion), so content
   always shows if the script fails or is blocked. Honours "reduce motion" and print.
   Prepared by efex marketing (with Claude).
   ========================================================================== */

:root {
  --efx-bg: #0a0f0b;
  --efx-card: #141a15;
  --efx-card-40: rgba(20, 26, 21, .4);
  --efx-fg: #f1f7f2;
  --efx-muted: #98a19a;
  --efx-secondary: #202621;
  --efx-border: rgba(255, 255, 255, .10);
  --efx-input: rgba(255, 255, 255, .12);
  --efx-green: #6eeb91;
  --efx-green-90: rgba(110, 235, 145, .9);
  --efx-tint: #c9ffdc;
  --efx-sweep: linear-gradient(90deg, transparent, rgba(110, 235, 145, .7) 55%, #c9ffdc 80%, #ffffff 94%, transparent);
  --efx-sweep-glow: drop-shadow(0 0 6px rgba(110, 235, 145, .6));
  --efx-count-line: linear-gradient(90deg, #2e8f52, #6eeb91, #c9ffdc);
  --efx-count-tip: linear-gradient(90deg, transparent 80%, #c9ffdc 95%, #ffffff);
  --efx-glass: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  --efx-glass-ring: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .5), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --efx-hero-glow: radial-gradient(120% 120% at 100% 0%, #79cb94 0%, #4f9564 28%, #30663f 42%, #183520 59%, #132719 65%, #090c08 83%, #040905 88%, #010101 100%);
}

/* ---------- 1. Page ---------- */
html { color-scheme: dark; }
body { background-color: var(--efx-bg); color: var(--efx-fg); }
::selection { background: rgba(110, 235, 145, .3); color: #fff; }
:where(main, #hero, #talk-to-us, footer) :focus-visible { outline: 2px solid var(--efx-green); outline-offset: 2px; }

/* ---------- 2. Header (dark on every page) ---------- */
/* webqem fix (3 Nov), kept: colour on the fixed navbar, never a filter on <header>, so the mobile
   dropdown is not trapped under page content. */
header.bg-primary { background-color: transparent !important; }
header .navbar.bg-primary {
  /* No backdrop blur: in testing it stopped Chrome painting the menu over the hero glow. */
  background-color: rgba(10, 15, 11, .94) !important;
  border-bottom: 1px solid var(--efx-border);
}
header .nav-link,
header .navbar-nav a,
header #global-navbar a,
header #site-navbar a,
header .navbar-toggler,
header .dropdown-toggle { color: var(--efx-fg) !important; }
header a:hover,
header .nav-link:hover,
header a:focus-visible { color: var(--efx-green) !important; }
header .dropdown-menu.bg-primary,
header .dropdown-menu {
  background-color: var(--efx-bg) !important;
  border: 1px solid var(--efx-border);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
header .dropdown-menu a,
header .dropdown-menu .dropdown-item { color: var(--efx-fg) !important; }
header .dropdown-menu a:hover,
header .dropdown-menu .dropdown-item:hover { color: var(--efx-green) !important; background-color: rgba(255, 255, 255, .06) !important; }
header .navbar-toggler { border: 1px solid rgba(255, 255, 255, .25) !important; border-radius: 50%; }
/* Header "Speak to an expert" button (added by webqem 3 Nov): the microsite's header button, 4px corners */
header a.efx-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--efx-green); border: 1px solid var(--efx-green); border-radius: 4px;
  padding: .5rem 1rem; font-size: 14px; font-weight: 600; line-height: 20px;
  white-space: nowrap; text-decoration: none; color: var(--efx-bg) !important;
  transition: background-color .15s ease, border-color .15s ease;
}
header a.efx-header-cta:hover,
header a.efx-header-cta:focus-visible { background: var(--efx-green-90); border-color: transparent; color: var(--efx-bg) !important; }
#sub-nav { background-color: transparent !important; } /* the empty spacer under the fixed menu; the hero glow shows through it */

/* ---------- 3. Page hero (green band becomes the microsite's dark hero with the green glow) ---------- */
#hero.bg-primary {
  position: relative;
  background-color: var(--efx-bg) !important;
  color: var(--efx-fg);
  border-bottom: 1px solid var(--efx-border);
}
#hero.edge--bottom--reverse::before,
#hero.edge--bottom--reverse::after { display: none !important; }
/* Inner pages: the glow is drawn behind the hero and the spacer above it, starting under the menu. */
body:not(#homepage) #hero.bg-primary { background-color: transparent !important; isolation: isolate; padding-top: 16px !important; }
body:not(#homepage) #hero.bg-primary::after {
  display: block !important; content: "" !important; position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: -124px !important;
  width: auto !important; height: auto !important; transform: none !important; clip-path: none !important; border: 0 !important;
  background: var(--efx-hero-glow) !important; z-index: -1 !important; pointer-events: none;
}
/* The old animations were drawn for the green band. On the dark hero the microsite shows text only,
   unless the page has a primary image (template change 2). */
body:not(#homepage) #hero lottie-player { display: none !important; }
body:not(#homepage) #hero #hero-animation:not(:has(img)) { display: none !important; }
@media (min-width: 768px) { body:not(#homepage) #hero #page-title { width: 100% !important; max-width: 820px; } }
#hero h1 {
  border-left: 0 !important; padding-left: 0 !important; /* the navy bar on solution pages; the microsite has none */
  color: var(--efx-fg);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body:not(#homepage) #hero h1 { font-size: 2.25rem; }
@media (min-width: 640px) { body:not(#homepage) #hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { body:not(#homepage) #hero h1 { font-size: 3.5rem; } }
body#newsinsights #hero h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); }
#hero p,
#hero .lead { color: var(--efx-muted); font-size: 1.125rem; line-height: 1.65; }
@media (min-width: 640px) { body:not(#homepage) #hero p { font-size: 1.25rem; } }
#hero a:not(.btn) { color: var(--efx-fg); }
#hero a:not(.btn):hover { color: var(--efx-green); }
#crumb-block,
#crumb-block a,
#crumb-block li,
#crumb-block .breadcrumb-item + .breadcrumb-item::before { color: var(--efx-muted) !important; font-size: 13px; }
#crumb-block a:hover { color: var(--efx-fg) !important; }
#crumb-block .active,
#crumb-block [aria-current] { color: var(--efx-fg) !important; }

/* ---------- 4. Page body ---------- */
main.bg-white,
main .bg-white,
main.bg-light { background-color: transparent !important; }
main { color: var(--efx-muted); }
main :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { color: var(--efx-fg); }
main h3, main .h3 { font-weight: 600; letter-spacing: -.01em; }
main :is(p, li, dd, dt, td, figcaption) { color: var(--efx-muted); }
main strong, main b { color: var(--efx-fg); }
main .lead { color: var(--efx-fg); font-size: 1.125rem; }
main a:not(.btn):not(.card a):not(.page-link):not(.stretched-link) { color: var(--efx-green); text-underline-offset: 4px; }
main a:not(.btn):not(.card a):not(.page-link):not(.stretched-link):hover { color: var(--efx-green); text-decoration: underline; }
main :is(.text-secondary, .text-primary, .link-secondary) { color: var(--efx-green) !important; }
main :is(.text-muted, .text-gray, .text-gray-light, .small.text-muted) { color: var(--efx-muted) !important; }
main :is(.text-dark, .text-black) { color: var(--efx-fg) !important; }
main hr { border-color: var(--efx-border); opacity: 1; }
main .border, main .border-top, main .border-bottom, main .border-start, main .border-end,
main [class*="border-start-"], main [class*="border-end-"], main [class*="border-bottom-"] { border-color: var(--efx-border) !important; }
main blockquote { border-left: 2px solid var(--efx-green); padding-left: 20px; color: var(--efx-fg); }
main table { color: var(--efx-muted); border-color: var(--efx-border); --bs-table-bg: transparent; --bs-table-color: var(--efx-muted); --bs-table-border-color: var(--efx-border); }
main th { color: var(--efx-fg); font-weight: 600; }
main :is(td, th) { border-color: var(--efx-border) !important; }
main img { border-radius: 0; }
main .article-image, main .article-content img:not([src*="/_icons/"]) { border-radius: 6px; }

/* Icons (navy line art in /_icons/) are drawn in efex green; diagrams become light-on-dark. */
img[src*="/_icons/"] {
  filter: brightness(0) saturate(100%) invert(40%) sepia(3%) saturate(3419%) hue-rotate(84deg) brightness(153%) contrast(235%);
}
main img[class*="efex-icon"]:not([src*="/_icons/"]) { filter: grayscale(1) invert(1) brightness(1.1); } /* two-colour product icons: light line art, no navy */
main img[src*="infograph"] { filter: grayscale(1) invert(1) brightness(1.15) contrast(.95); mix-blend-mode: screen; }

/* ---------- 5. Section headings with the travelling line ---------- */
.efx-label {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 32px !important;
  border-bottom: 1px solid var(--efx-border);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}
@media (min-width: 640px) { .efx-label { font-size: 2.25rem; } }
.efx-label:not(:first-child) { margin-top: 56px; }          /* space between sections, as on the microsite */
.service-card .efx-label { margin-bottom: 20px !important; }
/* Headings in a side column (efex-motion.js adds efx-label-side when the heading is under half the page width) */
.efx-label.efx-label-side { font-size: 1.5rem; margin-bottom: 20px !important; }
.efx-label.efx-label-side:not(:first-child) { margin-top: 40px; }
.efx-sweep {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  overflow: hidden; pointer-events: none;
}
.efx-sweep-band {
  display: block; width: 240px; height: 100%; opacity: 0;
  background: var(--efx-sweep); filter: var(--efx-sweep-glow);
  transform: translateX(-100%);
}
.efx-sweep-running .efx-sweep-band {
  animation: efx-sweep-travel var(--efx-sweep-duration, 2s) linear both,
    efx-sweep-in 150ms linear both,
    efx-sweep-out 250ms linear calc(var(--efx-sweep-duration, 2s) - 250ms) forwards;
}
@keyframes efx-sweep-travel { from { transform: translateX(-240px); } to { transform: translateX(calc(var(--efx-sweep-distance, 1000px) - 240px)); } }
@keyframes efx-sweep-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes efx-sweep-out { from { opacity: 1; } to { opacity: 0; } }
.efx-paused .efx-sweep-band,
.efx-paused .efx-num-text,
.efx-paused .efx-num-line { animation-play-state: paused; }

/* Certification-style link: a light sweeps the text and underline every 8 seconds */
.efx-cert { position: relative; display: inline-block; text-decoration: underline; text-underline-offset: 4px; }
.efx-cert-text {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: var(--efx-sweep); background-size: 35% 100%;
  background-repeat: no-repeat; background-position: -53.847% 0;
  -webkit-background-clip: text; background-clip: text; filter: var(--efx-sweep-glow);
}
.efx-cert .efx-sweep { bottom: 0; }
.efx-cert .efx-sweep-band { width: 35%; }
.efx-cert-running .efx-cert-text { animation: efx-cert-text 1.1s cubic-bezier(.65, 0, .2, 1) both; }
.efx-cert-running .efx-sweep-band { animation: efx-cert-line 1.1s cubic-bezier(.65, 0, .2, 1) both; }
@keyframes efx-cert-text {
  0% { background-position: -53.847% 0; opacity: 0; }
  10% { opacity: 1; } 85% { opacity: 1; }
  100% { background-position: 153.847% 0; opacity: 0; }
}
@keyframes efx-cert-line {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; } 85% { opacity: 1; }
  100% { transform: translateX(285.715%); opacity: 0; }
}

/* ---------- 6. Buttons ---------- */
@property --efx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) .btn:not(.btn-link):not(.rounded-circle):not(.dropdown-toggle) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 32px;
  border-radius: 4px; border-width: 1px;
  font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0;
  white-space: nowrap; box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) .btn-sm:not(.btn-link):not(.rounded-circle) {
  min-height: 32px !important; padding: 0 12px !important; font-size: 12px !important;
}
/* Primary: solid efex green */
:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) :is(.btn-secondary, .btn-primary, .btn-efang, .btn-success):not(.rounded-circle) {
  background-color: var(--efx-green) !important;
  border-color: var(--efx-green) !important;
  color: var(--efx-bg) !important;
}
:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) :is(.btn-secondary, .btn-primary, .btn-efang, .btn-success):not(.rounded-circle):hover {
  background-color: var(--efx-green-90) !important;
  border-color: transparent !important;
}
/* Outline: quiet border, travelling light, fills green on hover.
   A second green button straight after another becomes the outline button, as in the microsite's button pairs. */
:where(main, #hero, #talk-to-us) .btn-secondary:not(.rounded-circle):not(.btn-sm) + .btn-secondary:not(.rounded-circle):not(.btn-sm),
:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-light, .btn-outline-dark, .btn-light, .btn-dark) {
  position: relative; isolation: isolate;
  background-color: var(--efx-bg) !important;
  border-color: var(--efx-input) !important;
  color: var(--efx-fg) !important;
}
:where(main, #hero, #talk-to-us) .btn-secondary:not(.rounded-circle):not(.btn-sm) + .btn-secondary:not(.rounded-circle):not(.btn-sm):hover,
:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-light, .btn-outline-dark, .btn-light, .btn-dark):is(:hover, .active) {
  background-color: var(--efx-green) !important;
  border-color: var(--efx-green) !important;
  color: var(--efx-bg) !important;
}
.efx-trace, .ehx-btn-secondary,
:where(main, #hero, #talk-to-us) .btn-secondary:not(.rounded-circle):not(.btn-sm) + .btn-secondary:not(.rounded-circle):not(.btn-sm),
:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-light, .btn-outline-dark, .btn-light, .btn-dark):not(.btn-sm):not(.active) {
  position: relative; isolation: isolate;
}
.efx-trace::after, .ehx-btn-secondary::after,
:where(main, #hero, #talk-to-us) .btn-secondary:not(.rounded-circle):not(.btn-sm) + .btn-secondary:not(.rounded-circle):not(.btn-sm)::after,
:where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) :is(.btn-outline-secondary, .btn-outline-primary, .btn-outline-light, .btn-outline-dark, .btn-light, .btn-dark):not(.btn-sm):not(.active)::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--efx-ang),
    transparent 0deg 236deg,
    rgba(110, 235, 145, 0) 236deg,
    rgba(110, 235, 145, .7) 310deg,
    #c9ffdc 344deg, #ffffff 350deg, #c9ffdc 354deg,
    transparent 360deg);
  filter: drop-shadow(0 0 3px rgba(110, 235, 145, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: efx-trace 7s linear infinite;
}
@keyframes efx-trace { to { --efx-ang: 360deg; } }
/* Link buttons */
:where(main, #hero, #talk-to-us) .btn-link { color: var(--efx-green) !important; text-underline-offset: 4px; text-decoration: none; padding-left: 0; padding-right: 0; }
:where(main, #hero, #talk-to-us) .btn-link:hover { text-decoration: underline; }
/* Round arrow buttons (cards and lists): outlined circle that fills green */
:where(main, #hero, #talk-to-us) .btn.rounded-circle {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25) !important;
  color: var(--efx-green) !important;
  transition: background-color .15s ease, color .15s ease;
}
:where(main, #hero, #talk-to-us) .btn.rounded-circle:hover,
main .card:hover .btn.rounded-circle,
main .card:focus-within .btn.rounded-circle { background-color: var(--efx-green) !important; color: #000 !important; box-shadow: none !important; }

/* ---------- 7. Cards ---------- */
main .card,
main .card.bg-primary {
  background-color: var(--efx-card-40) !important;
  border: 1px solid var(--efx-border) !important;
  border-radius: 6px;
  color: var(--efx-fg);
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
}
main .card:has(.stretched-link):hover { border-color: rgba(110, 235, 145, .45) !important; background-color: rgba(20, 26, 21, .7) !important; }
main .card :is(h2, h3, h4, h5, .card-title),
main .card :is(h2, h3, h4, h5, .card-title).text-secondary,
main .card :is(h2, h3, h4, h5, .card-title) .text-secondary { color: var(--efx-fg) !important; transition: color .15s ease; }
main .card:hover :is(h2, h3, h4, h5, .card-title),
main .card:hover :is(h2, h3, h4, h5, .card-title) .text-secondary { color: var(--efx-green) !important; }
main .card :is(p, li, .card-text) { color: var(--efx-muted); }
main .card a { color: inherit; }
main .card a:hover { color: var(--efx-green); }
main .card-img-top { border-radius: 0 !important; }
main .card-header,
main .card-header.bg-primary { background-color: rgba(255, 255, 255, .03) !important; border-bottom: 1px solid var(--efx-border) !important; color: var(--efx-fg) !important; }
main .card-footer { background-color: transparent !important; border-top: 1px solid var(--efx-border) !important; }

/* ---------- 8. Panels and call-to-action band ---------- */
main :is(.bg-light, .bg-gray-lightest),
#talk-to-us.bg-light,
#talk-to-us {
  background-color: var(--efx-card-40) !important;
  color: var(--efx-fg);
}
#talk-to-us { border-top: 1px solid var(--efx-border); border-bottom: 1px solid var(--efx-border); padding-top: 64px !important; padding-bottom: 64px !important; }
@media (min-width: 640px) { #talk-to-us { padding-top: 80px !important; padding-bottom: 80px !important; } }
#talk-to-us :is(h2, h3) { color: var(--efx-fg); font-weight: 600; letter-spacing: -.025em; }
#talk-to-us h2 { font-size: 1.875rem; }
@media (min-width: 640px) { #talk-to-us h2 { font-size: 2.25rem; } }
#talk-to-us :is(p, li) { color: var(--efx-muted); font-size: 1.125rem; }
#talk-to-us a:not(.btn) { color: var(--efx-green); }
#talk-to-us svg { color: var(--efx-green); }
/* Full-width grey or white bands outside the main content (for example the enquiry band on solution pages) */
body > section:is(.bg-light, .bg-gray-lightest, .bg-gray-lighter, .bg-white):not(#sub-nav) {
  background-color: var(--efx-card-40) !important;
  border-top: 1px solid var(--efx-border);
  color: var(--efx-fg);
}
body > section:not(#sub-nav):not(#subscribe-newsletter) :is(h1, h2, h3, h4, h5, h6) { color: var(--efx-fg); }
body > section:not(#sub-nav):not(#subscribe-newsletter) :is(p, li) { color: var(--efx-muted); }
body > section:not(#sub-nav):not(#subscribe-newsletter) a:not(.btn) { color: var(--efx-green); }
main .card-footer.bg-primary { background-color: rgba(255, 255, 255, .03) !important; }
main section:not(.card)[class*="bg-primary"],
main div:not(.card):not(.card-header):not(.card-footer):not(.btn)[class*="bg-primary"]:not(.card *) {
  background: var(--efx-glass) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--efx-glass-ring);
  border-radius: 16px;
  color: var(--efx-fg);
}

/* ---------- 9. Accordions (frequently asked questions) ---------- */
main .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--efx-muted);
  --bs-accordion-border-color: var(--efx-border);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-color: var(--efx-fg);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-color: var(--efx-fg);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 2px rgba(110, 235, 145, .5);
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 20px;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f7f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236eeb91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  --bs-accordion-btn-icon-width: 1rem;
  border-top: 1px solid var(--efx-border);
}
main .accordion-item { background: transparent !important; border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; border-bottom: 1px solid var(--efx-border) !important; border-radius: 0 !important; }
main .accordion-button { font-size: 1rem; font-weight: 500; line-height: 1.5; background: transparent !important; color: var(--efx-fg) !important; box-shadow: none !important; gap: 16px; }
@media (min-width: 640px) { main .accordion-button { font-size: 1.0625rem; } }
main .accordion-button:hover { color: var(--efx-green) !important; }
main .accordion-button:focus-visible { box-shadow: var(--bs-accordion-btn-focus-box-shadow) !important; }
main .accordion-body { padding-bottom: 20px !important; color: var(--efx-muted); }
main .accordion-body :is(p, li) { color: var(--efx-muted); }

/* ---------- 10. Forms ---------- */
:where(main, #hero, #talk-to-us) :is(.form-control, .form-select, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea) {
  background-color: rgba(255, 255, 255, .03);
  border: 1px solid var(--efx-input);
  border-radius: 4px;
  color: var(--efx-fg);
  min-height: 40px;
}
:where(main, #hero, #talk-to-us) :is(.form-control, .form-select, input, select, textarea):focus {
  background-color: rgba(255, 255, 255, .05);
  border-color: var(--efx-green);
  box-shadow: 0 0 0 1px var(--efx-green);
  color: var(--efx-fg);
  outline: none;
}
:where(main, #hero, #talk-to-us) ::placeholder { color: #6f7670; opacity: 1; }
:where(main, #hero, #talk-to-us) :is(label, .form-label, legend) { color: var(--efx-fg); font-size: 14px; font-weight: 500; }
:where(main, #hero, #talk-to-us) .form-check-input { background-color: transparent; border-color: rgba(255, 255, 255, .3); }
:where(main, #hero, #talk-to-us) .form-check-input:checked { background-color: var(--efx-green); border-color: var(--efx-green); }
:where(main, #hero, #talk-to-us) .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2398a19a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
:where(main, #hero, #talk-to-us) select option { background-color: var(--efx-card); color: var(--efx-fg); }

/* ---------- 11. News filters, article tags and pagination ---------- */
main .tags .btn,
main .article-aside .tags .btn {
  min-height: 0 !important; padding: 6px 12px !important; border-radius: 999px !important;
  background: transparent !important; border: 1px solid rgba(255, 255, 255, .2) !important;
  color: rgba(255, 255, 255, .7) !important; font-size: 13px !important; font-weight: 500;
  width: auto !important; display: inline-flex !important;
}
main .tags .btn:hover { border-color: var(--efx-green) !important; color: var(--efx-green) !important; }
main .pagination { --bs-pagination-bg: transparent; --bs-pagination-color: var(--efx-fg); --bs-pagination-border-color: var(--efx-border); --bs-pagination-hover-bg: rgba(255, 255, 255, .06); --bs-pagination-hover-color: var(--efx-green); --bs-pagination-hover-border-color: var(--efx-border); --bs-pagination-active-bg: var(--efx-green); --bs-pagination-active-border-color: var(--efx-green); --bs-pagination-active-color: var(--efx-bg); --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-color: #59605a; --bs-pagination-disabled-border-color: var(--efx-border); --bs-pagination-focus-box-shadow: 0 0 0 2px rgba(110, 235, 145, .5); }
main .page-link { color: var(--efx-fg); }

/* ---------- 12. Footer ---------- */
footer.bg-black,
footer { background-color: var(--efx-bg) !important; border-top: 1px solid var(--efx-border); }
footer :is(p, li, small, .small, address) { color: var(--efx-muted); }
footer a:not(.btn) { color: var(--efx-muted) !important; transition: color .15s ease; }
footer a:not(.btn):hover { color: var(--efx-fg) !important; }
footer :is(h2, h3, h4, h5, h6) { color: var(--efx-fg); }
footer hr { border-color: var(--efx-border); opacity: 1; }

/* ---------- 13. Reveal on scroll ---------- */
html.efx-motion .efx-reveal { opacity: 0; transform: translateY(16px); transition: opacity 550ms ease-out, transform 550ms ease-out; }
html.efx-motion .efx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 14. Counting figures with the growing line ---------- */
.efx-num { position: relative; display: inline-grid; font-variant-numeric: tabular-nums; margin-bottom: 10px; } /* room for the line, so it never crosses the caption below */
.efx-num-ghost, .efx-num-text { grid-area: 1 / 1; }
.efx-num-ghost { visibility: hidden; }
.efx-num-text { position: absolute; inset: 0; white-space: nowrap; transition: text-shadow 600ms ease-out; }
.efx-num-pending .efx-num-text { opacity: 0; }
.efx-num-line {
  position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px;
  background: var(--efx-count-line); opacity: .35; pointer-events: none;
  transform-origin: left;
  transition: opacity 600ms ease-out, box-shadow 600ms ease-out;
}
.efx-num-line::after { content: ""; position: absolute; inset: 0; background: var(--efx-count-tip); opacity: 0; transition: opacity 600ms ease-out; }
.efx-num-pending .efx-num-line { transform: scaleX(0); }
.efx-num-running .efx-num-text { text-shadow: 0 0 22px rgba(110, 235, 145, .45); }
.efx-num-running .efx-num-line { opacity: 1; box-shadow: 0 0 10px rgba(110, 235, 145, .55); animation: efx-num-grow 1.1s cubic-bezier(.23, 1, .32, 1) both; }
.efx-num-running .efx-num-line::after { opacity: 1; }
.efx-num-fade .efx-num-text { animation: efx-num-fade 500ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes efx-num-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes efx-num-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.visually-hidden-efx { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------- 15. Reduce motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html.efx-motion .efx-reveal { opacity: 1; transform: none; transition: none; }
  .efx-sweep, .efx-cert-text { display: none; }
  .efx-trace::after, .ehx-btn-secondary::after,
:where(main, #hero, #talk-to-us) .btn-secondary:not(.rounded-circle):not(.btn-sm) + .btn-secondary:not(.rounded-circle):not(.btn-sm)::after,
  :where(main, #hero, #talk-to-us, #subscribe-newsletter, footer) .btn::after { animation: none !important; background: rgba(110, 235, 145, .35) !important; filter: none !important; }
  .efx-num .efx-num-text { opacity: 1; transform: none; animation: none; text-shadow: none; transition: none; }
  .efx-num .efx-num-line { transform: none; animation: none; opacity: .35; box-shadow: none; transition: none; }
  .efx-num .efx-num-line::after { opacity: 0; }
  #hero lottie-player { display: none; }
}
@media print {
  html { color-scheme: light; }
  body, main, #hero.bg-primary, footer { background: #fff !important; color: #111 !important; }
  body:not(#homepage) #hero.bg-primary::after { display: none !important; }
  main :is(h1, h2, h3, h4, h5, h6, p, li, strong), #hero :is(h1, p) { color: #111 !important; }
  html.efx-motion .efx-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .efx-sweep, .efx-cert-text, .efx-num-line { display: none !important; }
  .efx-label { border-bottom-color: #ccc; }
  img[src*="/_icons/"], main img[src*="infograph"] { filter: none !important; mix-blend-mode: normal !important; }
}

/* ---------- 16. Fixes found in staging review, 5 Nov 2026 (version 2.1) ---------- */
/* Inner page hero image (img.efx-hero-img in #hero): fit its column instead of
   showing at full size, which pushed the page wider than the screen. */
#hero .efx-hero-img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--efx-border); }
/* News pagination: wrap onto a second row on phones instead of running off the screen. */
main .pagination { flex-wrap: wrap; row-gap: 8px; }
