/* Blog-only theme switch and plugin/block presentation. No selectors affect the landing page. */
.cx-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #777;border-radius:50%;background:transparent;color:#fff;font:25px/1 sans-serif;cursor:pointer}
.cx-logo-light{display:none}.cx-header-contact{margin-left:auto}.cx-desktop-nav{flex:1;min-width:0}
.cx-content .cx-cover{position:relative;overflow:hidden;border-radius:10px}
.cx-content .cx-cover img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:0}
.cx-content .cx-cover figcaption{position:absolute;inset:auto 0 0;margin:0;padding:70px 28px 24px;background:linear-gradient(transparent,rgba(0,0,0,.87));color:#fff;font:600 18px/1.5 Montserrat,sans-serif;text-align:left}
.cx-content .wp-block-button__link {
  display: inline-block;
  padding: 14px 24px;
  background: linear-gradient(100deg, #ff2a20, #ff8500);
  color: #fff !important;
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  text-decoration: none;
}
.cx-site #toc_container{box-sizing:border-box;display:block;width:100%!important;max-width:100%;padding:24px;background:#1a1a1a;border:1px solid #454545;border-radius:10px;color:#f5f5f5;font-size:16px;margin:28px 0}
.cx-site #toc_container .toc_title{font:700 22px/1.4 'CX Tactic',sans-serif;color:inherit;text-align:left}
.cx-site #toc_container a{color:#ffb08a}.cx-site #toc_container ul{padding-left:20px}.cx-site #toc_container ul ul{margin:6px 0}.cx-site #toc_container .toc_list li{margin:8px 0;line-height:1.6}
html[data-cx-theme="light"]{color-scheme:light}
html[data-cx-theme="dark"]{color-scheme:dark}
html[data-cx-theme="light"] body.cx-site{background:#f7f7f9;color:#25252c}
html[data-cx-theme="light"] .cx-header{background:#fff;box-shadow:0 2px 12px #0001}
html[data-cx-theme="light"] .cx-logo-dark{display:none}
html[data-cx-theme="light"] .cx-logo-light{display:block}
html[data-cx-theme="light"] .cx-desktop-nav a,html[data-cx-theme="light"] .cx-header-contact>a{color:#202026}
html[data-cx-theme="light"] .cx-desktop-nav a[aria-current="page"]{color:#a6380a}
html[data-cx-theme="light"] .cx-theme-toggle{color:#202026;border-color:#b4b4bd}
html[data-cx-theme="light"] .cx-mobile-nav{background:#fff;border-top:1px solid #ddd}
html[data-cx-theme="light"] .cx-mobile-nav a{color:#25252c}
html[data-cx-theme="light"] .cx-blog h1,html[data-cx-theme="light"] .cx-blog h2,html[data-cx-theme="light"] .cx-blog h3{color:#202026}
html[data-cx-theme="light"] .cx-site a{color:#a6380a}
html[data-cx-theme="light"] .cx-card{background:#fff;border-color:#d5d5de}
html[data-cx-theme="light"] .cx-card-link{color:#202026!important}
html[data-cx-theme="light"] .cx-card-body p,html[data-cx-theme="light"] .cx-card-meta,html[data-cx-theme="light"] .cx-index-header p,html[data-cx-theme="light"] .cx-article-meta,html[data-cx-theme="light"] .cx-author span,html[data-cx-theme="light"] .cx-breadcrumbs,html[data-cx-theme="light"] .cx-content figcaption{color:#585861}
html[data-cx-theme="light"] .cx-card-read{color:#a6380a}
html[data-cx-theme="light"] .cx-content table{color:#25252c}
html[data-cx-theme="light"] .cx-content th,html[data-cx-theme="light"] .cx-content thead{background:#e9e9ef}
html[data-cx-theme="light"] .cx-content td,html[data-cx-theme="light"] .cx-content th,html[data-cx-theme="light"] .cx-content .wp-block-table{border-color:#c4c4ce}
html[data-cx-theme="light"] .cx-content blockquote{background:#fff}
html[data-cx-theme="light"] .cx-cta{background:linear-gradient(120deg,#fff0e8,#fff);border-color:#e4b79f;color:#25252c}
html[data-cx-theme="light"] .cx-cta p{color:#58505a}
html[data-cx-theme="light"] .cx-site #toc_container{background:#fff;border-color:#d5d5de;color:#25252c}
html[data-cx-theme="light"] .cx-site #toc_container a{color:#a6380a}
html[data-cx-theme="light"] .cx-site .cx-button,html[data-cx-theme="light"] .cx-site .button{color:#fff}
html[data-cx-theme="light"] .cx-content .cx-cover figcaption{color:#fff}
.cx-article-header .cx-article-excerpt {
  margin-bottom: 20px;
  color: #c6c6cc;
  font-size: 18px;
  line-height: 1.6;
}
html[data-cx-theme="light"] .cx-article-header .cx-article-excerpt {
  color: #48484f;
}
/* Keep the established dark brand footer legible in either reading theme. */
html[data-cx-theme="light"] .cx-site .cx-legacy-footer{color:#fff}
html[data-cx-theme="light"] .cx-site .cx-legacy-footer a{color:#ffb08a}
.cx-site :is(h2,h3)[id],.cx-site #toc_container~* [id]{scroll-margin-top:var(--cx-header-offset,140px)}
@media (min-width: 1200px) and (max-width: 1399px) {
  .cx-header-inner { gap: 12px; }
  .cx-desktop-nav { gap: 10px; }
  .cx-header-inner > a { flex-basis: 170px; }
  .cx-header-inner img { width: 170px; }
  .cx-header-contact > a { font-size: 15px; }
}
@media (min-width: 1200px) {
  .cx-header .cx-mobile-nav { display: none; }
}
@media (max-width: 1199.98px) {
  .cx-header .cx-desktop-nav,
  .cx-header .cx-header-contact { display: none; }
  .cx-header .cx-menu-toggle { display: block; flex: 0 0 44px; }
  .cx-header .cx-theme-toggle { margin-left: auto; }
  .cx-header-inner { gap: 12px; }
  .cx-header-inner > a { flex: 0 1 190px; min-width: 0; }
  .cx-header-inner img { width: 100%; height: auto; }
}
@media (max-width: 767px) {
  .cx-header-inner > a { flex-basis: 175px; }
}
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .cx-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .cx-header { top: 0; }
}
@media(max-width:767px){.cx-content .cx-cover figcaption{font-size:15px;padding:50px 18px 16px}.cx-site #toc_container{padding:20px}}
/* Header menu and the native Rank Math shortcode output. */
.cx-site .cx-header .cx-desktop-nav a,.cx-site .cx-header .cx-mobile-nav a{font-size:15px}
.cx-site .cx-breadcrumbs,.cx-site .cx-breadcrumbs .rank-math-breadcrumb,.cx-site .cx-breadcrumbs p,.cx-site .cx-breadcrumbs a,.cx-site .cx-breadcrumbs span{font-size:16px;line-height:1.6}
.cx-site .cx-breadcrumbs p{margin:0}
.cx-site .cx-breadcrumbs .separator{margin:0 5px;color:#888}
.cx-site .cx-header .cx-mobile-nav a{font-size:14px}
/* Two-digit numbering for the Table of Contents Plus links. */
.cx-site #toc_container ul.toc_list{counter-reset:cx-toc-item;padding-left:0;list-style:none}
.cx-site #toc_container .toc_list li{counter-increment:cx-toc-item;list-style:none}
.cx-site #toc_container .toc_list li>a{display:grid;grid-template-columns:minmax(2ch,max-content) minmax(0,1fr);column-gap:12px;align-items:start}
.cx-site #toc_container .toc_list li>a::before{content:counter(cx-toc-item,decimal-leading-zero);font-variant-numeric:tabular-nums}
.cx-site #toc_container .toc_list .toc_number{display:none}
.cx-site .cx-article-meta{font-size:14px}

/* Blog link states: white footer links and landing-style header corner accents. */
html[data-cx-theme] .cx-site .cx-legacy-footer a{color:#fff}
html[data-cx-theme] .cx-site .cx-legacy-footer a:is(:hover,:focus-visible){color:#ffb08a}
body.cx-site a:hover{text-decoration:none}
.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a{position:relative}
.cx-site .cx-header .cx-desktop-nav a,
.cx-site .cx-header .cx-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px;
}
.cx-header .cx-mobile-nav {
  gap: 4px;
  padding: 12px 16px;
}
.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a::before,
.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a::after{content:'';position:absolute;width:16px;height:18px;background-position:50% 0;background-size:contain;background-repeat:no-repeat;opacity:0;pointer-events:none;transition:opacity .2s ease-out,top .2s ease-out,right .2s ease-out,bottom .2s ease-out,left .2s ease-out}
.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a::before{background-image:url('/assets/img/icon/bg-menu-left.svg');left:3px;bottom:3px}
.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a::after{background-image:url('/assets/img/icon/bg-menu-right.svg');right:3px;top:3px}
.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a:is(:hover,:focus-visible)::before{opacity:1;left:0;bottom:0}
.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a:is(:hover,:focus-visible)::after{opacity:1;right:0;top:0}
@media(prefers-reduced-motion:reduce){.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a::before,.cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a::after{transition:none}}

/* Pullquote spacing is controlled by the article layout. */
.cx-site .wp-block-pullquote{padding:0}

/* The brand footer stays dark in both reading themes. */
.cx-site .cx-legacy-footer{background:#0e0e0e;color:#fff;color-scheme:dark}

/* Keep spacing inside the dark footer instead of a collapsing child margin. */
.cx-site .cx-legacy-footer{padding-top:64px}
.cx-site .cx-legacy-footer .contacts_mt{margin-top:0}
@media(max-width:767px){.cx-site .cx-legacy-footer{padding-top:24px}}

.cx-legacy-footer .contacts__logo-des,
.cx-legacy-footer .newsletter__subtitle {
  font-size: 14px;
  line-height: 1.5;
}
.cx-legacy-footer .contacts__logo-des {
  display: block;
}
.cx-footer-requisite {
  display: block;
  white-space: nowrap;
  text-decoration: none;
}
.cx-footer-action {
  padding: 24px;
  text-align: center;
}

@media (max-width: 767px) {
  .cx-legacy-footer > .container {
    display: grid;
    width: 100%;
    max-width: none;
    row-gap: 32px;
    padding-inline: 16px;
  }

  .cx-legacy-footer > .container > :is(.contacts, .navigation-box, .cx-footer-quick-links, .newsletter, .partners),
  .cx-legacy-footer :is(.contacts__top, .contacts__logo-box) {
    margin-block: 0;
  }

  .cx-legacy-footer .contacts__top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 32px;
  }

  .cx-legacy-footer .contacts__right {
    flex: 0 1 auto;
  }

  .cx-legacy-footer :is(.contacts__logo-box, .contacts__right) {
    text-align: center;
  }

  .cx-legacy-footer .cx-footer-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 360px;
    gap: 8px 16px;
    margin-inline: auto;
    padding: 0;
  }

  .cx-legacy-footer .cx-footer-quick-links li {
    position: relative;
    min-width: 0;
  }

  .cx-legacy-footer .cx-footer-quick-links li::after {
    content: none;
  }

  .cx-legacy-footer .cx-footer-quick-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .cx-legacy-footer .contacts__bottom {
    margin-top: 32px;
    padding: 0 16px;
  }

  .cx-legacy-footer .newsletter-form-inp {
    display: block;
    max-width: none;
    padding-inline-end: 68px;
  }

  .cx-legacy-footer :is(.newsletter-form, .newsletter__subtitle) {
    max-width: 311px;
    margin-inline: auto;
  }

  .cx-legacy-footer .newsletter-a-group-btn {
    inset: 0 0 0 auto;
    width: 60px;
    height: auto;
    padding: 0;
  }

  .cx-legacy-footer .partners {
    max-width: 360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cx-legacy-footer .a-partners {
    justify-content: center;
    min-height: 48px;
    height: auto;
    max-width: none;
    padding: 8px 10px;
  }

  .cx-legacy-footer .a-partners__img {
    width: 100%;
    min-width: 0;
  }

  .cx-legacy-footer .a-partners__img img {
    display: block;
    width: auto;
    height: 24px;
    max-width: 100%;
    margin-inline: auto;
    object-fit: contain;
  }

  .cx-footer-action {
    padding: 32px 16px;
  }
}

/* Header menu uses a uniform dark text color in light reading mode. */
html[data-cx-theme="light"] .cx-site .cx-header :is(.cx-desktop-nav,.cx-mobile-nav) a{color:#202026}

/* Article-list card details animate independently; the whole card stays a link. */
.cx-site .cx-grid .cx-card-image img{transition:transform .35s ease}
.cx-site .cx-grid .cx-card-body h2{transition:color .25s ease}
.cx-site .cx-grid .cx-card-read>span{display:inline-block;transition:transform .25s ease}
@media(hover:hover){
 .cx-site .cx-grid .cx-card-image:hover img{transform:scale(1.04)}
 .cx-site .cx-grid .cx-card-body h2:hover{color:#ffb08a}
 html[data-cx-theme="light"] .cx-site .cx-grid .cx-card-body h2:hover{color:#a6380a}
 .cx-site .cx-grid .cx-card-read:hover>span{transform:translateX(6px)}
}
@media(prefers-reduced-motion:reduce){
 .cx-site .cx-grid .cx-card-image img,.cx-site .cx-grid .cx-card-body h2,.cx-site .cx-grid .cx-card-read>span{transition:none}
 .cx-site .cx-grid .cx-card-image:hover img,.cx-site .cx-grid .cx-card-read:hover>span{transform:none}
}

/* Blog 404 */
.cx-not-found {
  padding-block: clamp(32px, 6vw, 84px);
}

.cx-not-found-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  padding: clamp(24px, 4vw, 56px);
  gap: clamp(24px, 4vw, 56px);
  background: #181818;
  border: 1px solid #303030;
  border-radius: 12px;
}

.cx-not-found-copy {
  align-self: center;
}

.cx-not-found-copy h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
}

.cx-not-found-copy p {
  max-width: 38ch;
  margin-bottom: 28px;
  color: #c6c6cc;
}

.cx-not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cx-not-found-actions .cx-button {
  gap: 10px;
}

.cx-site .cx-not-found-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid #67676d;
  border-radius: 4px;
  color: #f5f5f5;
  font-weight: 600;
  text-decoration: none;
}

.cx-site .cx-not-found-home:hover {
  border-color: #ff7847;
  color: #ffb08a;
}

.cx-not-found-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(180px, 22vw, 320px);
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, transparent 0 23px, #ffffff0d 23px 24px),
    radial-gradient(ellipse at 80% 25%, #542519, transparent 70%), #212124;
  border: 1px solid #ffffff22;
  border-radius: 6px;
}

.cx-not-found-art::before,
.cx-not-found-art::after {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #ff7847;
  border-style: solid;
  content: '';
}

.cx-not-found-art::before {
  top: 14px;
  right: 14px;
  border-width: 2px 2px 0 0;
}

.cx-not-found-art::after {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 2px 2px;
}

.cx-not-found-art span {
  color: #ffb08a;
  font: 700 clamp(78px, 11vw, 164px)/1 'CX Tactic', Montserrat, sans-serif;
  letter-spacing: -.045em;
}

html[data-cx-theme="light"] .cx-not-found-panel {
  background: #fff;
  border-color: #d5d5de;
}

html[data-cx-theme="light"] .cx-not-found-copy p {
  color: #48484f;
}

html[data-cx-theme="light"] .cx-site .cx-not-found-home {
  border-color: #a9a9b0;
  color: #202026;
}

html[data-cx-theme="light"] .cx-site .cx-not-found-home:hover {
  border-color: #a6380a;
  color: #a6380a;
}

html[data-cx-theme="light"] .cx-not-found-art {
  background:
    repeating-linear-gradient(135deg, transparent 0 23px, #a6380a14 23px 24px),
    radial-gradient(ellipse at 80% 25%, #ffe1d0, transparent 70%), #fff7f3;
  border-color: #eed2c6;
}

html[data-cx-theme="light"] .cx-not-found-art span {
  color: #a6380a;
}

@media (max-width: 767px) {
  .cx-not-found-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .cx-not-found-art {
    order: -1;
    min-height: 144px;
  }
}

/* Blog archive pagination */
.cx-pagination {
  --cx-page-bg: #222226;
  --cx-page-text: #f5f5f5;
  --cx-page-border: #48484e;
  --cx-page-accent: #ffb08a;
  --cx-page-hover-bg: #34251f;
}

html[data-cx-theme="light"] .cx-pagination {
  --cx-page-bg: #fff;
  --cx-page-text: #202026;
  --cx-page-border: #d5d5de;
  --cx-page-accent: #a6380a;
  --cx-page-hover-bg: #fff0e8;
}

.cx-pagination ul.page-numbers {
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.cx-blog .cx-pagination li > .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cx-page-border);
  border-radius: 5px;
  background: var(--cx-page-bg);
  color: var(--cx-page-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.cx-blog .cx-pagination a.page-numbers:is(:hover, :focus-visible) {
  border-color: var(--cx-page-accent);
  background: var(--cx-page-hover-bg);
  color: var(--cx-page-accent);
}

.cx-blog .cx-pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--cx-page-accent);
  outline-offset: 3px;
}

.cx-blog .cx-pagination li > .current {
  border-color: #bd3514;
  background: linear-gradient(110deg, #c02a20, #b84315);
  color: #fff;
}

.cx-blog .cx-pagination li > .dots {
  min-width: auto;
  padding-inline: 4px;
  border-color: transparent;
  background: transparent;
}

.cx-pagination-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .cx-pagination ul.page-numbers {
    gap: 6px;
  }

  .cx-pagination-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Mobile reading sizes for the blog archive and articles. */
@media (max-width: 767px) {
  .cx-content,
  .cx-content :is(p, ul, ol, li):not(:where(#toc_container *, table *, .cx-cta *)),
  .cx-blog :is(.cx-index-header, .cx-card-body) p {
    font-size: 18px;
    line-height: 1.6;
  }

  .cx-site #toc_container,
  .cx-site #toc_container :is(.toc_title, .toc_list, li, a),
  .cx-content :is(table, th, td),
  .cx-content table :is(p, ul, ol, li) {
    font-size: 16px;
    line-height: 1.6;
  }

  .cx-blog :is(.cx-article-meta, .cx-card-meta, .cx-card-read),
  .cx-content :is(figcaption, caption) {
    font-size: 14px;
  }
}


/* Keep multi-column article tables readable on narrow screens. */
@media (max-width: 767px) {
  .cx-content :is(.wp-block-table, .cx-table-scroll) {
    max-width: 100%;
    overflow-x: auto;
  }

  .cx-content :is(.wp-block-table, .cx-table-scroll) > table:has(> :is(thead, tbody, tfoot) > tr > :is(th, td):nth-child(2)) {
    min-width: var(--cx-table-min-width, 360px);
    table-layout: auto;
  }

  .cx-content :is(.wp-block-table, .cx-table-scroll) > table:has(> :is(thead, tbody, tfoot) > tr > :is(th, td):nth-child(2)) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    word-break: normal;
    overflow-wrap: normal;
  }

  .cx-content :is(.wp-block-table, .cx-table-scroll) > table:has(> :is(thead, tbody, tfoot) > tr > :is(th, td):nth-child(3)) {
    --cx-table-min-width: 480px;
  }

  .cx-content :is(.wp-block-table, .cx-table-scroll) > table:has(> :is(thead, tbody, tfoot) > tr > :is(th, td):nth-child(4)) {
    --cx-table-min-width: 640px;
  }
}
