/* CGR site-wide re-skin: maps the DigitalSilk theme's design tokens onto the new MCP-first design.
   Loaded on every theme-rendered page (not on the six new pages or the Google Ads landing page). */

body.cgr-reskin{
  --cgr-font:"Plus Jakarta Sans","Segoe UI",Helvetica,Arial,sans-serif;
  --dst--font-primary:var(--cgr-font);
  --dst--font-secondary:var(--cgr-font);
  --dst--base-font:var(--cgr-font);

  --dst--primary-color1:#0A1533;   /* navy */
  --dst--primary-color2:#F5A524;   /* orange */
  --dst--primary-color3:#1D5FB0;   /* blue */
  --dst--secondary-color2:#E2E8F1; /* borders */
  --dst--secondary-color3:#F2F5FA; /* light sections */
  --dst--body-bg:#FFFFFF;
  --dst--base-text-color:#4A5568;
  --dst--base-heading-color:#0B1533;
  --dst--base-link-color:#1D5FB0;
  --dst--border-color:#E2E8F1;

  --dst--h1-fw:800;--dst--h1-ls:-0.02em;--dst--h1-lh:1.06;
  --dst--h2-fw:800;--dst--h2-ls:-0.015em;--dst--h2-lh:1.15;--dst--h2-fs:4.4rem;
  --dst--h3-fw:700;--dst--h3-fs:2.4rem;
  --dst--h4-fw:700;--dst--h4-fs:2rem;
  --dst--pretitle-ff:var(--cgr-font);--dst--pretitle-fs:1.3rem;--dst--pretitle-ls:0.14em;--dst--pretitle-fw:700;
  --dst--pretitle-color:#1D5FB0;--dst--pretitle-color-alt:#5BB8EC;
  --dst--subtitle-fs:1.9rem;

  --dst--btn-ff:var(--cgr-font);--dst--btn-font:var(--cgr-font);
  --dst--btn-fw:700;--dst--btn-font-weight:700;--dst--btn-fs:1.6rem;--dst--btn-font-size:1.6rem;
  --dst--btn-primary-bg:#F5A524;--dst--btn-primary-bg-hover:#FFB938;
  --dst--btn-primary-c:#0A1533;--dst--btn-primary-c-hover:#0A1533;--dst--btn-primary-color:#0A1533;--dst--btn-primary-color-hover:#0A1533;
  --dst--btn-secondary-bg:transparent;--dst--btn-secondary-bg-hover:rgba(255,255,255,.10);
  --dst--btn-secondary-bdc:rgba(255,255,255,.5);--dst--btn-secondary-border-color:rgba(255,255,255,.5);
  --dst--btn-secondary-c-hover:#FFFFFF;--dst--btn-secondary-color-hover:#FFFFFF;
  --dst--btn-secondary-bdc-hover:#FFFFFF;--dst--btn-secondary-border-color-hover:#FFFFFF;
  --dst--btn-form-bg:#0A1533;--dst--btn-form-bg-hover:#16295A;--dst--btn-form-c:#FFFFFF;--dst--btn-form-c-hover:#FFFFFF;
  --dst--btn-icon-c:currentColor;--dst--btn-icon-color:currentColor;--dst--btn-link-icon-c:#F5A524;

  --dst--input-border-radius:1rem;--dst--input-border-color:#B7C3D6;--dst--input-color:#0B1533;--dst--input-placeholder-color:#64708A;
  --dst--form-label-fw:700;--dst--form-label-color:#0B1533;
  --dst--default-radius:1.4rem;--dst--default-radius-mobile:1.2rem;
  --dst--blockquote-color:#F5A524;
  --dst--thead-bgd:#0A1533;
  font-family:var(--cgr-font);
}

/* The theme's own header and footer are replaced by the shared CGR header/footer. */
body.cgr-reskin header.site-header,
body.cgr-reskin footer.site-footer{display:none!important}
body.cgr-reskin .cgrx-chrome{background:transparent;overflow:visible}
body.cgr-reskin .cgrx-chrome .site-head{position:relative;z-index:60}

/* Primary buttons: solid orange like the new pages (the theme used a gradient image). */
body.cgr-reskin .c-btn.-primary{background:#F5A524!important;color:#0A1533!important}
body.cgr-reskin .c-btn.-primary:hover{background:#FFB938!important}
body.cgr-reskin .c-btn.-secondary{border:1.5px solid rgba(255,255,255,.5)}
body.cgr-reskin .gform_wrapper .gform_button,
body.cgr-reskin .gform_wrapper input[type=submit]{background:#0A1533!important;color:#fff!important;border-radius:999px!important;font-family:var(--cgr-font)!important;font-weight:700!important}

/* Headings and body copy in the new type. */
body.cgr-reskin h1,body.cgr-reskin h2,body.cgr-reskin h3,body.cgr-reskin h4,
body.cgr-reskin .c-heading__title{font-family:var(--cgr-font)}

/* ---------- ROI calculator page: new layout, content untouched (styling only) ---------- */
body.cgr-reskin:has(.tco-calculator-v3){
  --r-n9:#060C22;--r-n8:#0A1533;--r-n7:#0F1E46;--r-nl:rgba(255,255,255,.10);--r-nl2:rgba(255,255,255,.16);
  --r-or:#F5A524;--r-sky:#5BB8EC;--r-blue:#1D5FB0;--r-onD:#C9D5EA;--r-onD2:#9DAED0;--r-tint:#F2F5FA;
  --r-glow:radial-gradient(900px 420px at 85% 0%,rgba(91,184,236,.16),transparent 60%),radial-gradient(700px 400px at 10% 100%,rgba(29,95,176,.22),transparent 60%),#0A1533;
}
/* Hero: navy glow like the new pages; photo shown as a framed panel on the right */
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero{background:var(--r-glow)}
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-bg{background:transparent}
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-bg__item.-item1,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-bg__item.-item2,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-decoration,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero::before,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero::after,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-bg::before,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-bg::after,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .dst-banner__container::before,
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .dst-banner__container::after{display:none!important}
@media (min-width:1024px){
  body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .dst-banner__container{max-width:1180px;margin:0 auto;padding:0 24px}
  body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .dst-banner__inner{max-width:620px}
}
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-heading__title{font-size:clamp(38px,4.6vw,58px)!important;line-height:1.06;font-weight:800;letter-spacing:-.02em;color:#fff}
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-heading__sub{color:var(--r-onD);font-size:18.5px!important;line-height:1.6;width:100%!important;max-width:620px}
body.cgr-reskin:has(.tco-calculator-v3) .subpage-hero .c-heading__sub a{color:var(--r-or)}

/* "Trusted in production at" + logos: the proof strip of the new pages */
body.cgr-reskin:has(.tco-calculator-v3) .site-content > .dst-heading:not(.is-style-colors-inverted),
body.cgr-reskin:has(.tco-calculator-v3) .site-content > .dst-images-group{background:var(--r-n7);box-shadow:0 0 0 100vmax var(--r-n7);clip-path:inset(0 -100vmax);margin-top:0!important;margin-bottom:0!important}
body.cgr-reskin:has(.tco-calculator-v3) .site-content > .dst-heading:not(.is-style-colors-inverted){padding-top:36px!important;padding-bottom:16px!important}
body.cgr-reskin:has(.tco-calculator-v3) .site-content > .dst-images-group{margin-top:-1px!important}
body.cgr-reskin:has(.tco-calculator-v3) .dst-images-group__layout{display:flex!important;flex-wrap:wrap}
body.cgr-reskin:has(.tco-calculator-v3) .dst-images-group__item{width:auto!important;flex:0 0 auto!important;max-width:none!important}
body.cgr-reskin:has(.tco-calculator-v3) .site-content > .dst-heading .c-heading__title{font-size:14px!important;font-weight:600;color:var(--r-onD);letter-spacing:0}
body.cgr-reskin:has(.tco-calculator-v3) .site-content > .dst-images-group{padding-top:0!important;padding-bottom:40px!important}
body.cgr-reskin:has(.tco-calculator-v3) .dst-images-group__layout{justify-content:center!important;gap:12px!important}
body.cgr-reskin:has(.tco-calculator-v3) .dst-images-group__wrapper{background:#fff;border-radius:10px;height:54px;padding:8px 16px;display:flex;align-items:center;justify-content:center}
body.cgr-reskin:has(.tco-calculator-v3) .dst-images-group__img{max-height:32px!important;width:auto!important;max-width:150px!important;object-fit:contain}

/* Calculator: sits in a light section, as a navy panel in the new type and colours */
body.cgr-reskin:has(.tco-calculator-v3) .site-content{background:var(--r-tint)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-calculator-v3{background:var(--r-glow);font-family:var(--cgr-font);max-width:1132px;margin:96px auto;padding:28px;border-radius:18px;box-shadow:0 30px 60px rgba(10,21,51,.18)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-card-v3{background:var(--r-n7);border:1px solid var(--r-nl2);border-radius:14px;padding:28px 30px}
body.cgr-reskin:has(.tco-calculator-v3) .tco-card-header-v3 h3{font-family:var(--cgr-font);text-shadow:none;letter-spacing:-.01em;font-size:26px!important}
body.cgr-reskin:has(.tco-calculator-v3) .tco-badge-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-savings-label-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-row-head-v3 .tco-cell-label-v3{color:var(--r-sky);letter-spacing:.14em;font-size:12px!important}
body.cgr-reskin:has(.tco-calculator-v3) .tco-head-mw-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-total-mw-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-stat-label-mw-v3{color:var(--r-or)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-head-cgr-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-total-cgr-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-stat-label-cgr-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-stat-value-cgr-v3{color:var(--r-sky)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-line-sub-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-stat-sub-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-note-v3{color:var(--r-onD2)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-note-v3 a{color:var(--r-or)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-total-value-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-stat-value-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-savings-amount-v3{text-shadow:none;letter-spacing:-.01em}
body.cgr-reskin:has(.tco-calculator-v3) .tco-cell-value-v3 input,
body.cgr-reskin:has(.tco-calculator-v3) .tco-mini-field-v3 input,
body.cgr-reskin:has(.tco-calculator-v3) .tco-fixed-value-v3{border-radius:10px;font-family:var(--cgr-font);background-color:rgba(255,255,255,.06);border-color:var(--r-nl2)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-fixed-value-v3{border-style:dashed;background-color:transparent}
body.cgr-reskin:has(.tco-calculator-v3) .tco-cell-value-v3 input:focus,
body.cgr-reskin:has(.tco-calculator-v3) .tco-mini-field-v3 input:focus{border-color:var(--r-or);box-shadow:0 0 0 3px rgba(245,165,36,.25)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-savings-card-v3{background:rgba(74,222,128,.06);border-radius:14px}
body.cgr-reskin:has(.tco-calculator-v3) .tco-bar-track-v3{border-radius:8px}
body.cgr-reskin:has(.tco-calculator-v3) .tco-bar-fill-v3{border-radius:8px}
body.cgr-reskin:has(.tco-calculator-v3) .tco-bar-mw-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-dot-mw-v3{background:var(--r-or)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-bar-cgr-v3,
body.cgr-reskin:has(.tco-calculator-v3) .tco-dot-cgr-v3{background:var(--r-blue)}
body.cgr-reskin:has(.tco-calculator-v3) .tco-bar-mw-v3 .tco-bar-value-v3{color:var(--r-n8);text-shadow:none}

/* Closing banner: full-width navy glow band like the new pages' closing section */
body.cgr-reskin:has(.tco-calculator-v3) .cta-break{width:100%!important;max-width:none!important;border-radius:0!important;margin:0!important;background:var(--r-glow);overflow:hidden}
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-bg{background:transparent;border-radius:0!important}
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-decoration,
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-bg__item.-item2,
body.cgr-reskin:has(.tco-calculator-v3) .cta-break::before,
body.cgr-reskin:has(.tco-calculator-v3) .cta-break::after,
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-bg::before,
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-bg::after,
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .dst-banner__container::before,
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .dst-banner__container::after{display:none!important}
@media (max-width:1180px){body.cgr-reskin:has(.tco-calculator-v3) .tco-calculator-v3{margin:56px 16px}}
@media (max-width:560px){
  body.cgr-reskin:has(.tco-calculator-v3) .tco-calculator-v3{padding:10px;margin:40px 12px}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-card-v3,
  body.cgr-reskin:has(.tco-calculator-v3) .tco-savings-card-v3{padding:18px 14px}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-row-v3{grid-template-columns:minmax(0,1fr) 88px 88px;gap:6px}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-line-title-v3{font-size:15px!important}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-row-head-v3 .tco-cell-label-v3,
  body.cgr-reskin:has(.tco-calculator-v3) .tco-head-mw-v3,
  body.cgr-reskin:has(.tco-calculator-v3) .tco-head-cgr-v3{font-size:10.5px!important;letter-spacing:.06em}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-cell-value-v3 input,
  body.cgr-reskin:has(.tco-calculator-v3) .tco-fixed-value-v3{font-size:15px!important;padding:6px 8px;height:42px}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-row-total-v3{grid-template-columns:1fr 1fr}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-row-total-v3 .tco-total-label-v3{grid-column:1 / -1}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-total-value-v3{font-size:24px!important}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-bar-value-v3{font-size:12px!important}
  body.cgr-reskin:has(.tco-calculator-v3) .tco-bar-fill-v3{padding-right:6px;min-width:84px}
}
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-heading__title{font-size:clamp(28px,3.5vw,42px)!important;font-weight:800;letter-spacing:-.015em;color:#fff}
body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-heading__sub{color:var(--r-onD)}
@media (min-width:1024px){
  body.cgr-reskin:has(.tco-calculator-v3) .cta-break .dst-banner__container{max-width:1180px;margin:0 auto;padding:0 24px}
  body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-bg__item.-item1{top:56px!important;bottom:auto!important;height:calc(100% - 112px)!important;right:max(24px,calc((100vw - 1180px)/2 + 24px))!important;left:auto!important;width:min(34%,420px)!important;transform:none!important;clip-path:none!important;opacity:1!important;border-radius:18px!important;overflow:hidden;border:1px solid var(--r-nl2);box-shadow:0 30px 60px rgba(0,0,0,.25)}
  body.cgr-reskin:has(.tco-calculator-v3) .cta-break .c-bg__item.-item1 img{width:100%!important;height:100%!important;object-fit:cover}
  body.cgr-reskin:has(.tco-calculator-v3) .cta-break .dst-banner__inner{max-width:640px}
}

/* ---------- Documentation pages: hero in the new design (styling only, content untouched) ---------- */
body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156{
  --d-glow:radial-gradient(900px 420px at 85% 0%,rgba(91,184,236,.16),transparent 60%),radial-gradient(700px 400px at 10% 100%,rgba(29,95,176,.22),transparent 60%),#0A1533;
}
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero{background:var(--d-glow)}
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-bg{background:transparent}
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-bg__item.-item1,
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-bg__item.-item2,
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-decoration,
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero::before,
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero::after,
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-bg::before,
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-bg::after,
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .dst-banner__container::before{display:none!important}
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .dst-banner__container::after{content:none}
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-heading__title{font-size:clamp(38px,4.6vw,58px)!important;line-height:1.06;font-weight:800;letter-spacing:-.02em;color:#fff!important;background:none!important;-webkit-text-fill-color:#fff}
:is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .c-heading__sub{color:#C9D5EA;font-size:18.5px!important;line-height:1.6;width:100%!important;max-width:620px}
@media (min-width:1024px){
  :is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .dst-banner__container{position:relative;max-width:1180px;margin:0 auto;padding:0 24px}
  :is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .dst-banner__inner{max-width:560px}
  /* The Central Monitor screenshot as a framed panel on the right, like the new pages' hero panels */
  :is(body.cgr-reskin.page-id-3156,body.cgr-reskin.parent-pageid-3156) .subpage-hero .dst-banner__container::after{
    content:"";display:block!important;position:absolute;right:24px;top:50%;transform:translateY(-50%);
    width:min(46%,520px);aspect-ratio:1712/690;
    background:#fff url("/wp-content/uploads/cgr-docs/docs-central-monitor.png") left top/cover no-repeat;
    border-radius:18px;border:6px solid rgba(15,30,70,.85);outline:1px solid rgba(255,255,255,.16);
    box-shadow:0 30px 60px rgba(0,0,0,.35)}
}