/* CampaignGateway Public UI Foundation
 * Shared visual contract for Auxiliary Pages and Operations Academy.
 * This file intentionally owns sizing, spacing, typography, radii and controls;
 * plugin-specific files continue to own illustrations, content layouts and feature states.
 */
:root{
  --cg-ui-page-max:1320px;
  --cg-ui-gutter:clamp(12px,2.25vw,28px);
  --cg-ui-section-gap:clamp(20px,3vw,34px);
  --cg-ui-space-1:8px;
  --cg-ui-space-2:12px;
  --cg-ui-space-3:16px;
  --cg-ui-space-4:22px;
  --cg-ui-space-5:30px;
  --cg-ui-space-6:clamp(36px,5vw,64px);
  --cg-ui-radius-xs:12px;
  --cg-ui-radius-sm:16px;
  --cg-ui-radius-md:22px;
  --cg-ui-radius-lg:30px;
  --cg-ui-radius-xl:38px;
  --cg-ui-line:rgba(156,205,255,.24);
  --cg-ui-line-strong:rgba(156,205,255,.44);
  --cg-ui-panel:linear-gradient(145deg,rgba(10,43,84,.94),rgba(5,25,55,.95));
  --cg-ui-panel-soft:linear-gradient(145deg,rgba(19,67,121,.78),rgba(8,36,73,.86));
  --cg-ui-text:#f7fbff;
  --cg-ui-muted:#bdd1e5;
  --cg-ui-accent:#3d97ff;
  --cg-ui-accent-2:#1769d6;
  --cg-ui-shadow:0 22px 58px rgba(0,13,34,.24),inset 0 1px 0 rgba(255,255,255,.07);
  --cg-ui-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --cg-ui-body-size:clamp(16px,1.15vw,18px);
  --cg-ui-body-line:1.65;
  --cg-ui-h1:clamp(2.55rem,6.2vw,5.4rem);
  --cg-ui-h2:clamp(2rem,4.3vw,3.65rem);
  --cg-ui-h3:clamp(1.25rem,2.25vw,1.8rem);
}

/* Shared page frame */
html body .cgap-shell,
html body .cghp-homepage,
html body .cgoa-academy-shell,
html body .cgoa-learning-shell,
html body .cgoa-single-shell,
html body .cgoa2-shell,
html body .cgoa-v4-tool-page,
html body .cgoa-resource-page,
html body .cgoa-certificate-wrap{
  box-sizing:border-box;
  width:min(var(--cg-ui-page-max),calc(100vw - (var(--cg-ui-gutter) * 2)))!important;
  max-width:var(--cg-ui-page-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  color:var(--cg-ui-text);
  font-family:var(--cg-ui-font);
  font-size:var(--cg-ui-body-size);
  line-height:var(--cg-ui-body-line);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
html body .cgap-shell,
html body .cgoa-academy-shell,
html body .cgoa-learning-shell,
html body .cgoa-single-shell,
html body .cgoa2-shell,
html body .cgoa-v4-tool-page,
html body .cgoa-resource-page{
  border-radius:var(--cg-ui-radius-xl)!important;
}

/* Consistent inner width */
html body .cgap-container,
html body .cgoa-hero-inner,
html body .cgoa-topic-nav-inner,
html body .cgoa-article-hero-inner{
  width:min(100%,calc(var(--cg-ui-page-max) - (var(--cg-ui-gutter) * 2)))!important;
  max-width:none!important;
  margin-inline:auto!important;
  padding-inline:var(--cg-ui-gutter)!important;
  box-sizing:border-box;
}

/* Section rhythm */
html body .cgap-hero,
html body .cgap-section,
html body .cgap-cta,
html body .cgoa-section,
html body .cgoa-section-block,
html body .cgoa-module-roadmap,
html body .cgoa-lesson-resources,
html body .cgoa-v4-featured,
html body .cgoa-v4-tools,
html body .cgoa2-section{
  margin-block:0 var(--cg-ui-section-gap)!important;
}
html body .cgap-hero,
html body .cgap-section,
html body .cgap-cta{
  padding-block:var(--cg-ui-space-6)!important;
}

/* Typography hierarchy */
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page) h1{
  font-size:var(--cg-ui-h1)!important;
  line-height:.98!important;
  letter-spacing:-.055em!important;
  font-weight:820!important;
  text-wrap:balance;
}
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page) h2{
  font-size:var(--cg-ui-h2)!important;
  line-height:1.04!important;
  letter-spacing:-.04em!important;
  font-weight:790!important;
  text-wrap:balance;
}
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page) h3{
  font-size:var(--cg-ui-h3)!important;
  line-height:1.18!important;
  letter-spacing:-.025em!important;
  font-weight:780!important;
}
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page) p,
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page) li{
  font-size:var(--cg-ui-body-size);
  line-height:var(--cg-ui-body-line);
}
html body .cgap-intro,
html body .cgap-muted,
html body .cgoa-command-copy p,
html body .cgoa-section-heading p,
html body .cgoa-module-description,
html body .cgoa-resource-page-body,
html body .cgoa-prose{
  color:var(--cg-ui-muted)!important;
}

/* Eyebrows and pills */
html body :is(.cgap-pill,.cgap-guide-badge,.cgoa-eyebrow,.cgoa2-kicker,.cgoa-section-count,.cgoa-lesson-type,.cgoa-resource-type,.cgoa-module-level){
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 13px!important;
  border:1px solid var(--cg-ui-line)!important;
  border-radius:999px!important;
  background:rgba(52,132,223,.12)!important;
  color:#abd6ff!important;
  font-size:.75rem!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}

/* Shared surfaces */
html body :is(
  .cgap-card,.cgap-form,.cgap-legal,.cgap-faq-item,.cgap-cta-box,.cgap-media,.cgap-visual-box,.cgap-console,
  .cgoa-login-panel,.cgoa-learner-bar,.cgoa-command-hero,.cgoa-command-dashboard,.cgoa-continue-card,
  .cgoa-section-block,.cgoa-module-roadmap,.cgoa-lesson-resources,.cgoa-module-card,.cgoa-resource-card,
  .cgoa-guide-card,.cgoa-v4-featured-card,.cgoa-v4-tool-card,.cgoa2-card,.cgoa-article-deck,
  .cgoa-resource-page-body,.cgoa-resource-download-panel,.cgoa-quiz,.cgoa-slide-deck,.cgoa-v4-calculator
){
  border:1px solid var(--cg-ui-line)!important;
  border-radius:var(--cg-ui-radius-lg)!important;
  background:var(--cg-ui-panel)!important;
  box-shadow:var(--cg-ui-shadow)!important;
}
html body :is(.cgap-metric,.cgap-console-card,.cgoa-dashboard-stats>div,.cgoa-answer-grid label,.cgoa-lesson-row,.cgoa-deck-rail-item,.cgoa-check-item,.cgoa-faq-row){
  border:1px solid var(--cg-ui-line)!important;
  border-radius:var(--cg-ui-radius-md)!important;
  background:var(--cg-ui-panel-soft)!important;
}

/* Consistent card padding and height behaviour */
html body :is(.cgap-card,.cgap-form,.cgap-legal,.cgap-faq-item,.cgap-cta-box,.cgoa-module-card,.cgoa-resource-card,.cgoa-guide-card,.cgoa-v4-featured-card,.cgoa-v4-tool-card,.cgoa2-card){
  padding:clamp(20px,3vw,32px)!important;
  min-width:0;
}
html body :is(.cgap-cards,.cgap-guide-grid,.cgoa-module-grid,.cgoa-resource-grid,.cgoa-guide-grid,.cgoa-v4-featured-grid,.cgoa-v4-tool-grid,.cgoa2-grid){
  gap:clamp(14px,2vw,22px)!important;
}

/* Buttons and links */
html body :is(.cgap-btn,.cgoa-btn,.cgoa-primary-action,.cgoa-secondary-action,.cgoa-command-actions a,.cgoa-continue-card>a,.cgoa-resource-download-actions a,.cgoa-resource-page-actions a,.cgoa-quiz button,.cgoa-slide-deck button){
  min-height:50px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:0 21px!important;
  border-radius:var(--cg-ui-radius-sm)!important;
  border:1px solid var(--cg-ui-line-strong)!important;
  font-family:var(--cg-ui-font)!important;
  font-size:.98rem!important;
  font-weight:820!important;
  line-height:1!important;
  text-decoration:none!important;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
html body :is(.cgap-primary,.cgoa-btn-primary,.cgoa-primary-action,.cgoa-command-actions .cgoa-primary-action,.cgoa-continue-card>a,.cgoa-quiz button[type="submit"]){
  background:linear-gradient(180deg,var(--cg-ui-accent),var(--cg-ui-accent-2))!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 12px 28px rgba(22,105,214,.24)!important;
}
html body :is(.cgap-secondary,.cgoa-btn-secondary,.cgoa-secondary-action){
  background:linear-gradient(180deg,rgba(45,104,170,.42),rgba(12,52,99,.5))!important;
  color:#f8fbff!important;
  -webkit-text-fill-color:#f8fbff!important;
}
html body :is(.cgap-btn,.cgoa-btn,.cgoa-primary-action,.cgoa-secondary-action,.cgoa-command-actions a,.cgoa-continue-card>a,.cgoa-resource-download-actions a,.cgoa-resource-page-actions a,.cgoa-quiz button,.cgoa-slide-deck button):hover{
  transform:translateY(-1px)!important;
  border-color:#79bdff!important;
  filter:brightness(1.06);
}
html body :is(.cgap-btn,.cgoa-btn,.cgoa-primary-action,.cgoa-secondary-action,.cgoa-command-actions a,.cgoa-continue-card>a,.cgoa-resource-download-actions a,.cgoa-resource-page-actions a,.cgoa-quiz button,.cgoa-slide-deck button):focus-visible{
  outline:3px solid rgba(102,187,255,.72)!important;
  outline-offset:3px!important;
}

/* Forms */
html body :is(.cgap-shell,.cgoa-learning-shell,.cgoa-academy-shell,.cgoa-resource-page) :is(input,select,textarea){
  width:100%;
  min-height:50px;
  padding:12px 15px!important;
  border:1px solid var(--cg-ui-line)!important;
  border-radius:var(--cg-ui-radius-sm)!important;
  background:rgba(3,21,48,.74)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font:inherit!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html body :is(.cgap-shell,.cgoa-learning-shell,.cgoa-academy-shell,.cgoa-resource-page) textarea{min-height:130px;resize:vertical}
html body :is(.cgap-shell,.cgoa-learning-shell,.cgoa-academy-shell,.cgoa-resource-page) :is(input,select,textarea):focus{
  outline:0!important;
  border-color:#65b5ff!important;
  box-shadow:0 0 0 4px rgba(55,148,255,.18)!important;
}
html body :is(.cgap-field,.cgoa-field){gap:7px!important}

/* Tables and long-form content */
html body :is(.cgap-shell,.cgoa-learning-shell,.cgoa-academy-shell,.cgoa-resource-page) table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--cg-ui-line);
  border-radius:var(--cg-ui-radius-md);
  background:rgba(4,25,55,.62);
}
html body :is(.cgap-shell,.cgoa-learning-shell,.cgoa-academy-shell,.cgoa-resource-page) :is(th,td){padding:14px 16px;border-bottom:1px solid rgba(156,205,255,.14);text-align:left}
html body :is(.cgap-shell,.cgoa-learning-shell,.cgoa-academy-shell,.cgoa-resource-page) th{background:rgba(39,104,178,.22);font-weight:850}
html body :is(.cgap-legal,.cgoa-prose,.cgoa-resource-page-body,.cgoa-article-main){max-width:920px;margin-inline:auto}
html body :is(.cgap-legal,.cgoa-prose,.cgoa-resource-page-body,.cgoa-article-main) :is(p,ul,ol,blockquote){margin-block:0 1.25em}

/* Navigation and breadcrumb consistency */
html body :is(.cgoa-academy-nav,.cgoa-topic-nav,.cgoa-breadcrumbs,.cgoa-lesson-breadcrumb,.cgoa-resource-breadcrumb,.cgap-guide-toolbar){
  border-radius:var(--cg-ui-radius-md)!important;
}
html body :is(.cgoa-breadcrumbs,.cgoa-lesson-breadcrumb,.cgoa-resource-breadcrumb){
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin-bottom:var(--cg-ui-space-4)!important;
  color:#b9d5ef!important;
  font-size:.92rem!important;
}

/* Grid defaults */
html body .cgap-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body .cgoa-module-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body :is(.cgoa-resource-grid,.cgoa-guide-grid,.cgoa-v4-featured-grid,.cgoa-v4-tool-grid,.cgoa2-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important}

/* Presentation and quiz polish while retaining their own feature layouts */
html body .cgoa-slide-deck{overflow:hidden!important}
html body .cgoa-deck-header,
html body .cgoa-deck-footer{padding:clamp(16px,2.5vw,26px)!important}
html body .cgoa-deck-stage{border-radius:var(--cg-ui-radius-lg)!important;overflow:hidden!important}
html body .cgoa-slide{border-radius:var(--cg-ui-radius-lg)!important}
html body .cgoa-question-section{padding:clamp(18px,2.5vw,28px)!important;border-radius:var(--cg-ui-radius-md)!important;border:1px solid var(--cg-ui-line)!important;background:rgba(11,49,94,.58)!important}
html body .cgoa-answer-grid{gap:12px!important}
html body .cgoa-answer-grid label{min-height:54px;padding:14px 16px!important;display:flex!important;align-items:center!important;gap:11px!important}

/* Mobile */
@media(max-width:980px){
  html body .cgap-cards,
  html body .cgoa-module-grid,
  html body :is(.cgoa-resource-grid,.cgoa-guide-grid,.cgoa-v4-featured-grid,.cgoa-v4-tool-grid,.cgoa2-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body :is(.cgoa-command-hero,.cgoa-login-panel,.cgoa-article-layout){grid-template-columns:1fr!important}
}
@media(max-width:720px){
  :root{--cg-ui-gutter:10px;--cg-ui-radius-xl:28px;--cg-ui-radius-lg:24px;--cg-ui-radius-md:19px;--cg-ui-h1:clamp(2.25rem,12vw,3.75rem);--cg-ui-h2:clamp(1.8rem,9vw,2.85rem)}
  html body .cgap-shell,
  html body .cghp-homepage,
  html body .cgoa-academy-shell,
  html body .cgoa-learning-shell,
  html body .cgoa-single-shell,
  html body .cgoa2-shell,
  html body .cgoa-v4-tool-page,
  html body .cgoa-resource-page{width:calc(100vw - 20px)!important;margin-inline:auto!important}
  html body .cgap-container,
  html body .cgoa-hero-inner,
  html body .cgoa-topic-nav-inner,
  html body .cgoa-article-hero-inner{padding-inline:14px!important}
  html body .cgap-cards,
  html body .cgoa-module-grid,
  html body :is(.cgoa-resource-grid,.cgoa-guide-grid,.cgoa-v4-featured-grid,.cgoa-v4-tool-grid,.cgoa2-grid){grid-template-columns:1fr!important}
  html body :is(.cgap-card,.cgap-form,.cgap-legal,.cgap-faq-item,.cgap-cta-box,.cgoa-module-card,.cgoa-resource-card,.cgoa-guide-card,.cgoa-v4-featured-card,.cgoa-v4-tool-card,.cgoa2-card){padding:20px!important}
  html body :is(.cgap-btns,.cgoa-command-actions,.cgoa-resource-download-actions,.cgoa-resource-page-actions){display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  html body :is(.cgap-btn,.cgoa-btn,.cgoa-primary-action,.cgoa-secondary-action,.cgoa-command-actions a,.cgoa-continue-card>a,.cgoa-resource-download-actions a,.cgoa-resource-page-actions a){width:100%!important;max-width:none!important}
  html body .cgoa-section-heading{align-items:flex-start!important;flex-direction:column!important}
  html body .cgoa-continue-card{align-items:stretch!important;flex-direction:column!important}
  html body .cgoa-dashboard-stats{grid-template-columns:1fr 1fr 1fr!important}
  html body .cgoa-academy-nav{width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body .cgoa-academy-nav a{padding:0 8px!important;font-size:.78rem!important}
}
@media(max-width:430px){
  html body .cgoa-dashboard-stats{grid-template-columns:1fr!important}
  html body .cgoa-academy-nav{grid-template-columns:1fr!important;position:static!important}
}

@media(prefers-reduced-motion:reduce){
  html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page) *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}


/* CampaignGateway full-page public canvas and unified non-home frame.
 * The light grid belongs to the page, not an individual shortcode shell.
 */
html:has(body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page)),
body:has(:is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page)){
  min-height:100%;
  background-color:#c7dbf2!important;
  background-image:
    linear-gradient(rgba(41,104,174,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(41,104,174,.12) 1px,transparent 1px),
    radial-gradient(circle at 12% 8%,rgba(255,255,255,.72),transparent 31%),
    radial-gradient(circle at 88% 18%,rgba(113,174,238,.22),transparent 34%),
    linear-gradient(180deg,#d7e7f8 0%,#bdd5ee 52%,#d0e2f4 100%)!important;
  background-size:54px 54px,54px 54px,auto,auto,auto!important;
  background-position:0 0,0 0,0 0,0 0,0 0!important;
  background-attachment:scroll!important;
}
body:has(:is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page)) :is(
  #page,.site,.site-content,.content-area,.site-main,.entry-content,.wp-site-blocks,
  .wp-block-group,.wp-block-post-content,.is-layout-constrained,.is-layout-flow,
  main.wp-block-group,main#main
){
  background:transparent!important;
  background-color:transparent!important;
}
body:has(:is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page)) :is(.site,.wp-site-blocks,#page){
  min-height:100vh!important;
}

/* Every non-home public product uses one frame; Features no longer owns a wider exception. */
html body .cgap-shell:not(.home),
html body .cgoa-academy-shell,
html body .cgoa-learning-shell,
html body .cgoa-single-shell,
html body .cgoa2-shell,
html body .cgoa-v4-tool-page,
html body .cgoa-resource-page{
  width:min(var(--cg-ui-page-max),calc(100vw - (var(--cg-ui-gutter) * 2)))!important;
  max-width:var(--cg-ui-page-max)!important;
  margin:var(--cg-ui-section-gap) auto!important;
  border-radius:var(--cg-ui-radius-xl)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html body .cgap-shell:not(.home) .cgap-container{
  width:100%!important;
  max-width:none!important;
  padding-inline:clamp(20px,4vw,52px)!important;
  box-sizing:border-box!important;
}
html body .cgap-shell:not(.home) .cgap-hero{
  padding-top:clamp(34px,5vw,66px)!important;
  padding-bottom:clamp(34px,5vw,66px)!important;
}
html body .cgap-shell:not(.home) .cgap-title{
  max-width:1040px!important;
  margin-inline:auto!important;
}
html body .cgap-shell:not(.home) .cgap-intro{
  max-width:920px!important;
  margin-inline:auto!important;
}
html body:has(.cgap-shell:not(.home)) .cggf-footer-wrap.cgap-integrated-footer,
html body:has(:is(.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page)) .cggf-footer-wrap.cgap-integrated-footer{
  width:min(var(--cg-ui-page-max),calc(100vw - (var(--cg-ui-gutter) * 2)))!important;
  max-width:var(--cg-ui-page-max)!important;
  margin:0 auto var(--cg-ui-section-gap)!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
}
@media(max-width:640px){
  html body .cgap-shell:not(.home),
  html body .cgoa-academy-shell,
  html body .cgoa-learning-shell,
  html body .cgoa-single-shell,
  html body .cgoa2-shell,
  html body .cgoa-v4-tool-page,
  html body .cgoa-resource-page{
    margin:12px auto 18px!important;
    border-radius:26px!important;
  }
  html body .cgap-shell:not(.home) .cgap-container{
    padding-inline:16px!important;
  }
}

/* CampaignGateway unified root canvas and header geometry — 1.3.21 */
:root{
  --cg-ui-canvas-gutter:clamp(14px,2vw,24px);
  --cg-ui-shell-radius:34px;
  --cg-ui-shell-border:1px solid rgba(116,174,235,.42);
  --cg-ui-shell-top-gap:clamp(12px,1.6vw,20px);
  --cg-ui-hero-pad:clamp(26px,4vw,48px);
}
html,
body{
  min-height:100%;
  background-color:#dceafb!important;
  background-image:
    linear-gradient(rgba(71,130,192,.16) 1px,transparent 1px),
    linear-gradient(90deg,rgba(71,130,192,.16) 1px,transparent 1px),
    radial-gradient(circle at 72% 14%,rgba(91,165,244,.18),transparent 29%),
    linear-gradient(180deg,#d9e9fa 0%,#d2e3f5 52%,#dbeafb 100%)!important;
  background-size:54px 54px,54px 54px,100% 100%,100% 100%!important;
  background-position:0 0,0 0,0 0,0 0!important;
  background-attachment:fixed!important;
}
html body :is(#page,.site,.wp-site-blocks,.site-content,.content-area,.site-main,main,.entry-content,.wp-block-post-content,.is-layout-constrained,.is-layout-flow){
  background:transparent!important;
}
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page){
  width:min(var(--cg-ui-page-max),calc(100vw - (var(--cg-ui-canvas-gutter) * 2)))!important;
  max-width:var(--cg-ui-page-max)!important;
  margin-inline:auto!important;
  margin-top:var(--cg-ui-shell-top-gap)!important;
  border:var(--cg-ui-shell-border)!important;
  border-radius:var(--cg-ui-shell-radius)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page)::before{
  border-radius:inherit!important;
}
/* Keep every public interface the same distance from the shared ribbon. */
html body :is(.cg-public-ribbon,.cwlah-ribbon-nav,.cwl-ribbon-wrap)+:is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell){
  margin-top:var(--cg-ui-shell-top-gap)!important;
}
/* Features begins promptly beneath the ribbon instead of carrying a page-specific offset. */
html body .cgap-shell.features{margin-top:8px!important}
html body .cgap-shell.features .cgap-hero{padding-top:8px!important;
  padding-bottom:clamp(26px,4vw,46px)!important;
}
/* One upper-page design language for Auxiliary and Academy screens. */
html body .cgap-shell:not(.home)>.cgap-hero>.cgap-container,
html body .cgap-shell:not(.home) .cgap-guide-hero>.cgap-container,
html body :is(.cgoa-command-hero,.cgoa-article-hero,.cgoa-module-hero,.cgoa-resource-page-hero,.cgoa-v4-tool-hero){
  border:1px solid var(--cg-ui-line)!important;
  border-radius:30px!important;
  background:linear-gradient(145deg,rgba(18,67,121,.82),rgba(5,27,58,.90))!important;
  box-shadow:0 20px 54px rgba(1,16,38,.24),inset 0 1px 0 rgba(255,255,255,.08)!important;
  padding:var(--cg-ui-hero-pad)!important;
  box-sizing:border-box!important;
}
html body .cgap-shell:not(.home)>.cgap-hero>.cgap-container .cgap-head,
html body .cgap-shell:not(.home)>.cgap-hero>.cgap-container .cgap-copy{
  max-width:900px!important;
  margin-inline:auto!important;
  text-align:center!important;
}
html body .cgap-shell:not(.home)>.cgap-hero>.cgap-container .cgap-title:after{
  margin-inline:auto!important;
}
/* Remove the decorative feature-page dot while retaining editable eyebrow text. */
html body .cgap-shell.features .cgap-pill::before{
  content:none!important;
  display:none!important;
}
/* Consistent outer edge and section geometry. */
html body :is(.cgap-shell,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell) :is(.cgap-card,.cgap-form,.cgap-legal,.cgap-faq-item,.cgap-cta-box,.cgoa-module-card,.cgoa-resource-card,.cgoa-guide-card,.cgoa-section-block,.cgoa-quiz,.cgoa-slide-deck){
  border-width:1px!important;
  border-radius:28px!important;
}
html body .cgap-container,
html body .cgoa-hero-inner,
html body .cgoa-topic-nav-inner,
html body .cgoa-article-hero-inner{
  width:100%!important;
  max-width:calc(var(--cg-ui-page-max) - (var(--cg-ui-canvas-gutter) * 2))!important;
  padding-inline:clamp(18px,3vw,38px)!important;
}
@media(max-width:760px){
  :root{
    --cg-ui-canvas-gutter:8px;
    --cg-ui-shell-radius:28px;
    --cg-ui-shell-top-gap:10px;
    --cg-ui-hero-pad:24px 20px;
  }
  html,body{
    background-size:42px 42px,42px 42px,100% 100%,100% 100%!important;
  }
  html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page){
    left:auto!important;
    right:auto!important;
    transform:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
  }
  html body .cgap-shell.features{margin-top:8px!important}
  html body .cgap-shell.features .cgap-hero{padding-top:8px!important;
  }
}


/* CampaignGateway full-document canvas and root geometry — 1.3.22
 * The canvas is a fixed viewport layer, independent of theme/content wrappers.
 */
html{
  min-height:100%;
  background:#d8e8f9!important;
}
body{
  min-height:100vh;
  margin:0;
  background:transparent!important;
}
body:has(.cgap-shell)::before,
body:has(.cghp-homepage)::before,
body:has(.cgoa-academy-shell)::before,
body:has(.cgoa-learning-shell)::before,
body:has(.cgoa-single-shell)::before,
body:has(.cgoa2-shell)::before,
body:has(.cgoa-v4-tool-page)::before,
body:has(.cgoa-resource-page)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-color:#d8e8f9;
  background-image:
    linear-gradient(rgba(71,130,192,.17) 1px,transparent 1px),
    linear-gradient(90deg,rgba(71,130,192,.17) 1px,transparent 1px),
    radial-gradient(circle at 76% 13%,rgba(91,165,244,.20),transparent 31%),
    linear-gradient(180deg,#dceafb 0%,#d2e4f6 52%,#dbeafa 100%);
  background-size:54px 54px,54px 54px,100% 100%,100% 100%;
  background-position:0 0;
}
body:has(.cgap-shell),
body:has(.cghp-homepage),
body:has(.cgoa-academy-shell),
body:has(.cgoa-learning-shell),
body:has(.cgoa-single-shell),
body:has(.cgoa2-shell),
body:has(.cgoa-v4-tool-page),
body:has(.cgoa-resource-page){
  background:transparent!important;
}
body:has(.cgap-shell) > :is(#page,.site,.wp-site-blocks,.site-content,.content-area,.site-main,main,.entry-content,.wp-block-post-content),
body:has(.cghp-homepage) > :is(#page,.site,.wp-site-blocks,.site-content,.content-area,.site-main,main,.entry-content,.wp-block-post-content),
body:has(.cgoa-academy-shell) > :is(#page,.site,.wp-site-blocks,.site-content,.content-area,.site-main,main,.entry-content,.wp-block-post-content){
  background:transparent!important;
}
/* One centred shell geometry. No viewport transforms or left-position corrections. */
html body .cgap-shell,
html body .cghp-homepage,
html body .cgoa-academy-shell,
html body .cgoa-learning-shell,
html body .cgoa-single-shell,
html body .cgoa2-shell,
html body .cgoa-v4-tool-page,
html body .cgoa-resource-page{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  translate:none!important;
  transform:none!important;
  width:min(var(--cg-ui-page-max,1320px),calc(100% - (var(--cg-ui-canvas-gutter,24px) * 2)))!important;
  max-width:min(var(--cg-ui-page-max,1320px),calc(100% - (var(--cg-ui-canvas-gutter,24px) * 2)))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
html body .cgap-shell.features{margin-top:8px!important}
html body .cgap-shell.features .cgap-top{
  justify-content:center!important;
}
html body .cgap-shell.features .cgap-top:empty{
  display:none!important;
}
html body .cgap-shell.features .cgap-pill:empty{
  display:none!important;
}
@media(max-width:760px){
  body:has(.cgap-shell)::before,
  body:has(.cghp-homepage)::before,
  body:has(.cgoa-academy-shell)::before,
  body:has(.cgoa-learning-shell)::before,
  body:has(.cgoa-single-shell)::before,
  body:has(.cgoa2-shell)::before,
  body:has(.cgoa-v4-tool-page)::before,
  body:has(.cgoa-resource-page)::before{
    background-size:42px 42px,42px 42px,100% 100%,100% 100%;
  }
  html body .cgap-shell,
  html body .cghp-homepage,
  html body .cgoa-academy-shell,
  html body .cgoa-learning-shell,
  html body .cgoa-single-shell,
  html body .cgoa2-shell,
  html body .cgoa-v4-tool-page,
  html body .cgoa-resource-page{
    width:calc(100% - 16px)!important;
    max-width:calc(100% - 16px)!important;
  }
}

/* CampaignGateway viewport canvas and Features alignment — 1.3.23 / Academy 4.3.7 */
:root{
  --cg-ui-canvas-gutter:clamp(10px,2vw,24px);
  --cg-ui-grid-size:46px;
}
html,body{
  min-width:100%;
  min-height:100%;
  background-color:#d7e7f8!important;
  background-image:
    linear-gradient(rgba(55,116,181,.19) 1px,transparent 1px),
    linear-gradient(90deg,rgba(55,116,181,.19) 1px,transparent 1px),
    radial-gradient(circle at 78% 10%,rgba(77,151,232,.20),transparent 30%),
    linear-gradient(180deg,#dceafb 0%,#cfe2f5 52%,#d9e9fa 100%)!important;
  background-size:var(--cg-ui-grid-size) var(--cg-ui-grid-size),var(--cg-ui-grid-size) var(--cg-ui-grid-size),100% 100%,100% 100%!important;
  background-position:0 0,0 0,0 0,0 0!important;
  background-attachment:fixed!important;
}
/* Make theme/block wrappers true viewport canvases so a centred plugin shell is not centred inside a narrow content column. */
body:has(:is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page))
:is(#page,.site,.wp-site-blocks,.site-content,.content-area,.site-main,main,.entry-content,.wp-block-post-content,.is-layout-constrained,.is-layout-flow){
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
html body :is(.cgap-shell,.cghp-homepage,.cgoa-academy-shell,.cgoa-learning-shell,.cgoa-single-shell,.cgoa2-shell,.cgoa-v4-tool-page,.cgoa-resource-page){
  width:min(var(--cg-ui-page-max,1320px),calc(100vw - (var(--cg-ui-canvas-gutter) * 2)))!important;
  max-width:min(var(--cg-ui-page-max,1320px),calc(100vw - (var(--cg-ui-canvas-gutter) * 2)))!important;
  margin-left:auto!important;
  margin-right:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  translate:none!important;
}
/* Features uses exactly the same viewport-centred geometry and ribbon gap as other public screens. */
html body .cgap-shell.features{margin-top:8px!important}
html body .cgap-shell.features>.cgap-top,
html body .cgap-shell.features .cgap-hero>.cgap-top{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
html body .cgap-shell.features .cgap-hero{padding-top:8px!important;
}
html body .cgap-shell.features .cgap-container,
html body .cgap-shell.features .cgap-head,
html body .cgap-shell.features .cgap-copy{
  margin-left:auto!important;
  margin-right:auto!important;
}
@media(max-width:760px){
  :root{--cg-ui-canvas-gutter:8px;--cg-ui-grid-size:38px;}
  html body .cgap-shell.features{margin-top:8px!important}
}


/* Features root-flow ownership — 1.4.2 */
body:has(.cgap-shell.features) :is(.wp-block-shortcode,.entry-content,.wp-block-post-content,.site-main,main,article){
  margin-top:0!important;
  padding-top:0!important;
}
body:has(.cgap-shell.features) .wp-block-shortcode:has(> .cgap-shell.features),
body:has(.cgap-shell.features) :is(.entry-content,.wp-block-post-content)>:has(.cgap-shell.features){
  margin-block:0!important;
  padding-block:0!important;
}
html body .cgap-shell.features{
  margin-top:8px!important;
  margin-bottom:15px!important;
}
html body .cgap-shell.features .cgap-hero{
  padding-top:8px!important;
  padding-bottom:clamp(26px,4vw,46px)!important;
}
html body .cgap-shell.features .cgap-head{margin-top:0!important;}

/* Features final ribbon-gap alignment — 1.4.3 */
body:has(.cgap-shell.features) :is(.wp-block-shortcode,.entry-content,.wp-block-post-content,.site-main,main,article){
  margin-top:0!important;
  padding-top:0!important;
  row-gap:0!important;
}
body:has(.cgap-shell.features) .wp-block-shortcode:has(> .cgap-shell.features),
body:has(.cgap-shell.features) :is(.entry-content,.wp-block-post-content)>:has(.cgap-shell.features){
  margin-top:0!important;
  padding-top:0!important;
}
html body .cgap-shell.features{
  margin-top:0!important;
}
html body .cgap-shell.features .cgap-hero{
  padding-top:2px!important;
}
