/* Local colour refresh. Not enqueued anywhere in the custom DIY section. */
:root, html.theme-dark {
  --color-primary:#165BC0; --color-primary-hover:#10499E; --color-on-primary:#fff;
  --color-secondary:#70C500; --color-accent:#165BC0; --color-accent-hover:#10499E; --color-on-accent:#fff;
  --color-background:#F6F7FB; --color-on-background:#171D2C;
  --color-surface-lowest:#fff; --color-surface-low:#F6F7FB; --color-surface-container:#E9EDF6;
  --color-outline:#ABB5CA; --color-outline-variant:#D6DCE8; --color-on-surface-variant:#626A7C;
  --color-surface-tint-orange:#E9EDF6;
  --gradient-main:linear-gradient(#165BC0,#165BC0);
  --gradient-cta:linear-gradient(#165BC0,#165BC0);
  --gradient-cta-hover:linear-gradient(#10499E,#10499E);
  --gradient-text:linear-gradient(#165BC0,#165BC0);
  --gradient-bg-soft:linear-gradient(#F6F7FB,#F6F7FB);
  --shadow-button:0 4px 14px rgba(12,16,34,.12);
  --footer-shell-bg:#F6F7FB; --footer-shell-border:#D6DCE8; --footer-panel-bg:#fff;
  --footer-text:#626A7C; --footer-heading:#171D2C; --footer-link:#171D2C; --footer-link-hover:#165BC0; --footer-divider:#D6DCE8;
}
html.theme-dark {
  --color-primary:#70C500; --color-primary-hover:#82D819; --color-on-primary:#0C1022;
  --color-accent:#70C500; --color-accent-hover:#82D819; --color-on-accent:#0C1022;
  --color-background:#0C1022; --color-on-background:#F6F7FB;
  --color-surface-lowest:#0C1022; --color-surface-low:#151F3B; --color-surface-container:#1B2848;
  --color-outline:#66799D; --color-outline-variant:#354363; --color-on-surface-variant:#B6BED1;
  --color-surface-tint-orange:#151F3B;
  --gradient-main:linear-gradient(#70C500,#70C500); --gradient-text:linear-gradient(#70C500,#70C500);
  --gradient-bg-soft:linear-gradient(#0C1022,#0C1022);
  --footer-shell-bg:#0C1022; --footer-shell-border:#354363; --footer-panel-bg:#151F3B;
  --footer-text:#B6BED1; --footer-heading:#F6F7FB; --footer-link:#F6F7FB; --footer-link-hover:#70C500; --footer-divider:#354363;
}
/* Context-aware actions also handle dark sections in the light theme. */
body {--action-bg:#165BC0;--action-hover:#10499E;--action-ink:#fff;--link-accent:#165BC0}
html.theme-dark body,.agency-home,.video-service,.keysy-cta,.instruments-cta {
  --action-bg:#70C500;--action-hover:#82D819;--action-ink:#0C1022;--link-accent:#70C500;
}
.ah-paper,.vs-light {--action-bg:#165BC0;--action-hover:#10499E;--action-ink:#fff;--link-accent:#165BC0}
html.theme-dark .vs-light {--action-bg:#70C500;--action-hover:#82D819;--action-ink:#0C1022;--link-accent:#70C500}
body :is(.btn--primary,.lv2-btn-primary,.hero-btn-primary,.vs-button--hot,.keysy-cta__submit,.instruments-cta__submit,.keysy-tabs__btn.is-active) {
  background:var(--action-bg)!important;color:var(--action-ink)!important;border-color:var(--action-bg);box-shadow:none!important;
}
body :is(.btn--primary,.lv2-btn-primary,.hero-btn-primary,.vs-button--hot,.keysy-cta__submit,.instruments-cta__submit):hover {
  background:var(--action-hover)!important;box-shadow:0 5px 16px rgba(12,16,34,.16)!important;
}
.compact-brand strong{color:var(--color-primary)}
body :is(a,button,summary,input,textarea,select):focus-visible{outline-color:var(--color-primary)}
body input[type=checkbox],body input[type=radio]{accent-color:var(--color-primary)}
.site-footer-shell,html.theme-dark .site-footer-shell{background:var(--footer-shell-bg);background-image:none}
/* Existing service templates contain inline CSS; use scoped specificity to unify it. */
body .lv2-root,body .instruments-page-bottom {
 --lv2-bg:246 247 251;--lv2-box:255 255 255;--lv2-box-border:214 220 232;
 --lv2-h1:23 29 44;--lv2-h2:23 29 44;--lv2-h3:98 106 124;
 --cyber-grid-a:rgba(22,91,192,.1);--cyber-grid-b:rgba(22,91,192,.06);
 --cyber-nebula-a:rgba(22,91,192,.05);--cyber-nebula-b:rgba(22,91,192,.03);
}
html.theme-dark body .lv2-root,html.theme-dark body .instruments-page-bottom,body .lv2-root.dark {
 --lv2-bg:12 16 34;--lv2-box:21 31 59;--lv2-box-border:53 67 99;
 --lv2-h1:246 247 251;--lv2-h2:233 237 246;--lv2-h3:182 190 209;
 --cyber-grid-a:rgba(112,197,0,.1);--cyber-grid-b:rgba(112,197,0,.06);
 --cyber-nebula-a:rgba(112,197,0,.05);--cyber-nebula-b:rgba(112,197,0,.03);
}
body .lv2-root.lv2-root--cyber {--cyber-grid-a:rgba(45,79,142,.12);--cyber-grid-b:rgba(45,79,142,.07);--cyber-nebula-a:rgba(45,79,142,.08);--cyber-nebula-b:rgba(45,79,142,.04)}
body .lv2-gradient-text,body .text-gradient {background:none!important;-webkit-text-fill-color:currentColor;color:var(--link-accent)!important}
body .instruments-page-bottom .cyber-bg-base{background:rgb(var(--lv2-bg))}
body .instruments-page-bottom .cyber-grid{background-image:linear-gradient(rgba(45,79,142,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(45,79,142,.06) 1px,transparent 1px)}
body .instruments-page-bottom .cyber-nebula{background:none}
body .lv2-root :is(.text-violet-500,.text-violet-600,.text-indigo-500,.text-indigo-600,.text-blue-500,.text-blue-600,.text-purple-500,.text-purple-600){color:var(--link-accent)!important}
body .lv2-root :is(.bg-violet-50,.bg-violet-100,.bg-indigo-50,.bg-blue-50,.bg-purple-50){background:#E9EDF6!important}
html.theme-dark body .lv2-root :is(.bg-violet-50,.bg-violet-100,.bg-indigo-50,.bg-blue-50,.bg-purple-50){background:#151F3B!important}
.keysy-hero__eyebrow,.keysy-cta__accent{color:var(--link-accent)}
.keysy-cta input:focus,.instruments-cta input:focus,.instruments-cta textarea:focus{border-color:#70C500}
/* Solid accents instead of multicolour display type and decorative glows. */
.vs-hero{background:none}.vs-hero h1 span{background:none;color:#70C500;-webkit-text-fill-color:currentColor}
.vs-dot{box-shadow:none}.vs-timeline__progress b{background:#70C500}
.vs-button--hot{color:var(--action-ink)!important}
.vs-light .vs-eyebrow,.vs-light .vs-card-index{color:#165BC0}
html.theme-dark .vs-light .vs-eyebrow,html.theme-dark .vs-light .vs-card-index{color:#70C500}
@keyframes vs-stage-highlight{0%,19%{color:#0C1022;background:#70C500;border-color:#70C500}20%,100%{color:#B6BED1;background:#151F3B;border-color:#34456B}}
.seo-service{background:var(--color-background);color:var(--color-on-background)}
.seo-service__hero,.seo-service__tint{background:var(--color-surface-container)}
.seo-service__card{background:var(--color-surface-lowest)}
.seo-service h1 span,.seo-service__eyebrow,.seo-service__number,.seo-service a:not(.btn){color:var(--color-primary)}
/* Legacy utility-based templates: actions and decorative highlights. */
body .lv2-root :is(a,button)[class*="bg-gradient"][class*="from-blue-"] {
 background:var(--action-bg)!important;color:var(--action-ink)!important;box-shadow:none!important;
}
body .lv2-root :is(a,button)[class*="bg-gradient"][class*="from-blue-"]:hover{background:var(--action-hover)!important}
body .lv2-root .faq-plus,.keysy-faq__plus{background:var(--action-bg)!important;color:var(--action-ink)!important}
body .lv2-root [class*="bg-gradient"][class*="from-blue-"]:not(a):not(button):not(.faq-plus):not([class*="/10"]){background:#165BC0!important}
body .lv2-root [class*="bg-gradient"][class*="from-violet-"]{background:rgba(45,79,142,.1)!important}
body .lv2-root [class*="bg-gradient"][class*="from-blue-"][class*="/10"]{background:rgba(45,79,142,.1)!important}
body .lv2-root :is(.text-violet-400,.text-indigo-400,.text-purple-400){color:var(--link-accent)!important}
body .lv2-root :is(.border-violet-200,.border-violet-300){border-color:var(--color-outline)!important}
body .lv2-root .hero-btn-outline:hover{color:var(--link-accent);border-color:var(--link-accent)}
.keysy-faq__eyebrow{color:var(--color-primary)}
.section--navy{background:#0C1022;color:#F6F7FB;--action-bg:#70C500;--action-hover:#82D819;--action-ink:#0C1022}
.section--navy .section__eyebrow{color:#70C500}
body .lv2-root.lv2-root--cyber.dark {
 --cyber-grid-a:rgba(112,197,0,.10);--cyber-grid-b:rgba(112,197,0,.06);
 --cyber-nebula-a:rgba(45,79,142,.12);--cyber-nebula-b:rgba(45,79,142,.07);
}
body .lv2-root [class~="bg-violet-500/10"],body .lv2-root [class~="bg-violet-500/20"]{background-color:rgba(45,79,142,.12)!important}
body .lv2-root [class~="bg-[#7c3aed]"]{background:#165BC0!important}
body .lv2-root .mm-platform-btn.border-violet-500{border-color:var(--link-accent)!important;color:var(--link-accent)!important}
