/* Color overrides only. Light mode retains existing site declarations. */
:root {
    --cd-theme-surface: #fff;
    --cd-theme-panel: #f1f1f5;
    --cd-theme-raised: #fff;
    --cd-theme-ink: #212227;
    --cd-theme-soft: #5b5b5b;
    --cd-theme-muted: #9c9caa;
    --cd-theme-line: #e4e5ec;
    --cd-theme-blue: #3f65ff;
    --cd-theme-green: #278f2e;
    --cd-theme-fill: #3f65ff;
    --cd-theme-fill-hover: #3355e6;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --cd-theme-surface: #0b0e14;
    --cd-theme-panel: #171b21;
    --cd-theme-raised: #24282f;
    --cd-theme-ink: #eaedf2;
    --cd-theme-soft: #d5d9e0;
    --cd-theme-muted: #b2b8c2;
    --cd-theme-line: #5b616a;
    --cd-theme-blue: #bed0ff;
    --cd-theme-green: #6bce71;
    --text-color: var(--cd-theme-soft);
    --gray-color: var(--cd-theme-muted);
    --green-color: var(--cd-theme-green);
    --color-surface: var(--cd-theme-surface);
    --color-surface-alt: var(--cd-theme-panel);
    --color-surface-up: var(--cd-theme-raised);
    --color-ink: var(--cd-theme-ink);
    --color-ink-soft: var(--cd-theme-soft);
    --color-ink-mute: var(--cd-theme-muted);
    --color-line: var(--cd-theme-line);
    --color-cd-green: var(--cd-theme-green);
    --color-cd-blue: var(--cd-theme-blue);
    --color-cd-green-deep: #7bd77f;
    --cd-green-deep: #7bd77f;
}
/* Only new controls receive dimensions; no existing header layout rules change. */
button.cd-theme-toggle {
    display: none;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cd-theme-soft);
    cursor: pointer;
    box-shadow: none;
    line-height: 1;
}
button.cd-theme-toggle:hover { color: var(--cd-theme-ink); background: transparent; }
button.cd-theme-toggle:focus-visible { outline: 2px solid var(--cd-theme-blue); outline-offset: 2px; }
.cd-theme-toggle svg { display: block; width: 20px; height: 20px; }
.cd-theme-toggle .cd-theme-toggle__sun { display: none; }
[data-theme="dark"] .cd-theme-toggle .cd-theme-toggle__moon { display: none; }
[data-theme="dark"] .cd-theme-toggle .cd-theme-toggle__sun { display: block; }
.copy-right > button.cd-theme-toggle {
    display: inline-grid;
    color: #7f7e76;
    vertical-align: middle;
    transition: color 150ms cubic-bezier(.4, 0, .2, 1);
}
.copy-right > button.cd-theme-toggle:hover { color: #fff; }
.copy-right > button.cd-theme-toggle:focus-visible { outline-color: #fff; }
/* Match the reference's wordmark-only treatment; preserve the dog and hover tint. */
:root[data-theme="dark"] .header-top .logo img.logo-text { filter: brightness(0) invert(.93); }
.header-consultation ul > li.cd-theme-toggle-item { display: none; }
@media (min-width: 1280px) {
    .header-consultation ul > li.cd-theme-toggle-item { display: inline-flex; }
    .header-consultation button.cd-theme-toggle { display: inline-grid; }
}
:root[data-theme="dark"] body { background-color: var(--cd-theme-surface); color: var(--cd-theme-soft); }
:root[data-theme="dark"] .header { background-color: #0b0e14d9; border-color: var(--cd-theme-line); }
:root[data-theme="dark"] :is(.header-right, .nav-container li .sub-menu, .nav-container ul li .submenu) { background-color: var(--cd-theme-surface); }
:root[data-theme="dark"] .nav-container ul li > a { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .header-consultation ul a.header-phone { color: var(--cd-theme-ink); }
:root[data-theme="dark"] :is(.nav-container ul li > a:hover, .header-consultation ul a.header-phone:hover) { color: var(--cd-theme-green); }
:root[data-theme="dark"] :is(.banner-container, .home-gallery-sectionn, .provenResults-section, .trackRecord-section, .apps-success, .bg-image-section) {
    background-image: none;
    background-color: var(--cd-theme-surface);
}
:root[data-theme="dark"] :is(.banner-container h2, .titleDiv h2, .provenResults-title h2, .trackRecord-title h2, .ready-achieve h2, .apps-success h2, .cd-features-slider__title) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] :is(.titleDiv p, .provenResults-title p, .trackRecord-title p, .apps-success p, .cd-features-slider__description) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] :is(.banner-container h2 span.typing-effect, .titleDiv h2 span, .provenResults-title h2 span, .apps-success h2 span, .apps-success p span, .companies-badges h2) { color: var(--cd-theme-green); }
/* Keep intentionally dark bands and saturated image/card art unchanged. */
:root[data-theme="dark"] :is(.succeedApp-section, .process-section, .news-section) { background-color: #212227; }
:root[data-theme="dark"] :is(.primary-btn, .header-consultation ul a.book-btn, .cta-button) { background-color: var(--cd-theme-fill); color: #fff; }
:root[data-theme="dark"] :is(.primary-btn:hover, .header-consultation ul a.book-btn:hover, .cta-button:hover) { background-color: var(--cd-theme-fill-hover); }
:root[data-theme="dark"] .secondary-btn { color: var(--cd-theme-blue); border-color: var(--cd-theme-blue); }
:root[data-theme="dark"] .secondary-btn:hover { background-color: var(--cd-theme-raised); }
:root[data-theme="dark"] :is(.provenResults-box, .white-box, .review-card, .review-modal, .news-video) { background-color: var(--cd-theme-raised); border-color: var(--cd-theme-line); }
:root[data-theme="dark"] :is(.testimonial-text, .testimonial-text p, .user-meta .name, .user-meta .role, .review-title) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] :is(.endorsed-section, .rating-section) { background-color: var(--cd-theme-panel); }
:root[data-theme="dark"] :is(.news-section .article-btn a, .blog-secondary-btn) { color: var(--cd-theme-blue); border-color: var(--cd-theme-blue); }
/* Existing shared animation component tokens; no timing or geometry changes. */
:root[data-theme="dark"] :is(.duo-cover, .duo) { --ink: var(--cd-theme-ink); --green: var(--cd-theme-green); --green-soft: var(--cd-theme-muted); }
:root[data-theme="dark"] :is(.duo-cover, .duo-cover::before, .curve-field) { background-color: var(--cd-theme-surface); background-image: none; }
:root[data-theme="dark"] :is(.duo-chip.derived, .duo-card) { background-color: var(--cd-theme-raised); }
/* Forms: !important only where the existing Gravity Forms overrides use it. */
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gfield :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select) {
    background-color: var(--cd-theme-raised) !important;
    border-color: var(--cd-theme-line) !important;
    color: var(--cd-theme-ink);
}
:root[data-theme="dark"] .gform_wrapper.gravity-theme :is(.gfield_label, .gfield_html h3) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .gform_wrapper.gravity-theme :is(p, .gfield_description) { color: var(--cd-theme-soft) !important; }
:root[data-theme="dark"] .gform_wrapper.gravity-theme a { color: var(--cd-theme-blue) !important; }
:root[data-theme="dark"] .gform_wrapper.gravity-theme :is(input, textarea)::placeholder { color: var(--cd-theme-muted); }
/* Scoped hard-coded text in the WordPress templates. */
:root[data-theme="dark"] :is(.proven-name, .provenResults-box h3, .provenResults-box h4, .menu-client p, .menu-info h3, .faq-banner-top h2, .pricing-content h3, .page-content h2, .endorsed-title h2) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] :is(.provenResults-box .proven-desc p, .cd-features-slider__point-desc, .cd-features-slider__point-desc p) { color: var(--cd-theme-soft) !important; }
:root[data-theme="dark"] :is(.menu-info h4, .menu-info p, .pricing-content p, .faq-answer, .endorsed-title p) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] :is(.faq-info-section, .faq-question, .faq-answer, .pricing-box, .blog-box) { background-color: var(--cd-theme-panel); border-color: var(--cd-theme-line); }
:root[data-theme="dark"] :is(.faq-question, .faq-categories-list a, .faq-category-item) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] :is(.faq-item.active .faq-question, .faq-item.active .faq-answer, .faq-question:hover) { background-color: var(--cd-theme-raised); color: var(--cd-theme-blue); }
:root[data-theme="dark"] :is(.banner-search input, .faq-search input) { background-color: var(--cd-theme-raised); color: var(--cd-theme-ink); border-color: var(--cd-theme-line); }
/* Existing hero layers use !important; override only their paint. */
:root[data-theme="dark"] :is(.banner-container, .hero-bg) { background-color: var(--cd-theme-surface) !important; }
:root[data-theme="dark"] :is(.banner-container, .hero-bg)::before { background-image: none !important; background-color: var(--cd-theme-surface); }
:root[data-theme="dark"] body.page-template-page-home .banner-text-left > p { color: var(--cd-theme-soft); }
:root[data-theme="dark"] body.page-template-page-home .banner-links .secondary-btn { border-color: var(--cd-theme-blue); }

/* Homepage text roles from the reference. These rules change color only. */
:root[data-theme="dark"] body.page-template-page-home :is(     .banner-text-left h2, .provenResults-title h2, .provenResults-title .subtext,     .trackRecord-title h2, .ready-achieve h2, .cd-features-slider__title,     .home-blog-post-title h2, .appsSuccess-text h2, .appsSuccess-text p ), :root[data-theme="dark"] body.page-template-page-testimonials-new :is(.cd-features-slider .cd-features-slider__title) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] body.page-template-page-home :is(     .banner-text-left > p, .provenResults-title > p:not(.subtext),     .trackRecord-title p, .ready-achieve p, .cd-features-slider__text,     .cd-features-slider__text p, .cd-features-slider__subtext,     .companies-badges .badges-title p, .home-blog-post-title p,     .home-blog-posts-section .blog-content p ), :root[data-theme="dark"] body.page-template-page-testimonials-new :is(.cd-features-slider .cd-features-slider__text, .cd-features-slider .cd-features-slider__text p, .cd-features-slider .cd-features-slider__subtext p, .cd-features-slider .cd-features-slider__subtext) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] body.page-template-page-home :is(
    .banner-text-left .typing-effect, .companies-badges .badges-title h2,
    .appsSuccess-text :is(h2,p) > span:not(.vx-word),
    .home-blog-posts-section .blog-read-time
) { color: var(--cd-theme-green); }
/* Keep the reference's fixed colors inside its intentionally dark bands. */
:root[data-theme="dark"] body.page-template-page-home :is(
    .succeedApp-title h2, .succeedApp-list h3, .succeedApp-bottom h2,
    .process-title h2, .process-bottom h2, .news-title h2,
    .news-section h3, .news-section h3 a
) { color: #fff; }
:root[data-theme="dark"] body.page-template-page-home :is(
    .succeedApp-title p, .succeedApp-list p, .succeedApp-bottom p,
    .process-title p, .process-list p, .process-bottom p
) { color: #a3a3a3; }
:root[data-theme="dark"] body.page-template-page-home :is(
    .process-list h4, .process-title h2 > span:not(.vx-word),
    .succeedApp-title h2 > span:not(.vx-word),
    .succeedApp-bottom h2 > span:not(.vx-word),
    .process-bottom h2 > span:not(.vx-word)
) { color: #64c66b; }
:root[data-theme="dark"] body.page-template-page-home :is(
    .news-title p, .news-section .news-item > p, .news-section .video-text p
) { color: rgb(255 255 255 / 70%); }
/* Review styles already declare these colors !important. */
:root[data-theme="dark"] body.page-template-page-home :is(
    .provenResults-section, #cd-reviews-pop, .provenResults-pop
) .proven-details h3 { color: var(--cd-theme-ink) !important; }
:root[data-theme="dark"] body.page-template-page-home :is(
    .provenResults-section, #cd-reviews-pop, .provenResults-pop
) .proven-details p { color: var(--cd-theme-muted) !important; }
:root[data-theme="dark"] body.page-template-page-home :is(
    #cd-reviews-pop, .provenResults-pop
) .proven-desc p { color: var(--cd-theme-soft) !important; }
:root[data-theme="dark"] body.page-template-page-home .provenResults-section .proven-read-more {
    color: var(--cd-theme-green) !important;
}
:root[data-theme="dark"] :is(body.page-template-page-home, body.page-template-page-testimonials-new) .cd-features-slider__point-num {
    color: var(--cd-theme-green) !important;
}
:root[data-theme="dark"] :is(body.page-template-page-home, body.page-template-page-testimonials-new) .cd-features-slider .cd-features-slider__title span {
    color: var(--cd-theme-ink) !important;
}
:root[data-theme="dark"] :is(body.page-template-page-home, body.page-template-page-testimonials-new) .cd-features-slider__subtext p { color: var(--cd-theme-soft); }
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section :is(
    .blog-content h3, .blog-content h3 a
) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section .blog-date {
    color: var(--cd-theme-muted);
}
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section .blog-categories .blog-cat {
    color: var(--cd-theme-soft);
}
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section .blog-categories .blog-cat:hover {
    color: var(--cd-theme-ink);
}
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section .blog-content h3 a:hover {
    color: var(--cd-theme-blue);
}
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section .blog-read-article-link .blog-secondary-btn,
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section .blog-posts-wrapper .blog-box .blog-read-article-link .blog-secondary-btn:hover,
:root[data-theme="dark"] body.page-template-page-home .news-section .article-btn a {
    color: var(--cd-theme-blue);
}
:root[data-theme="dark"] body.page-template-page-home .news-section .article-btn a:hover { color: #fff; }
:root[data-theme="dark"] body.page-template-page-home .news-section h3 a:hover { color: var(--cd-theme-green); }
:root[data-theme="dark"] body.page-template-page-home .primary-btn,
:root[data-theme="dark"] body.page-template-page-home .primary-btn:hover { color: #fff; }
/* Reveal-generated word spans inherit their semantic heading/paragraph role. */
:root[data-theme="dark"] body.page-template-page-home :is(
    .titleDiv, .provenResults-title, .trackRecord-title, .ready-achieve,
    .appsSuccess-text, .companies-badges .badges-title
) .vx-word { color: inherit; }

/* Only the copyright/toggle row changes layout; the existing go-top stays positioned. */
.footer-bottom .copy-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.footer-bottom .copy-right > p { margin: 0; min-width: 0; }

/* Reference card colors. WordPress calls reviews__card provenResults-box.
   Local tokens keep both themes explicit without recoloring other components. */
:root body.page-template-page-home :is(.reviews__card, .provenResults-section .provenResults-box) {
    --cd-card-bg: #fff;
    --cd-card-ink: #212227;
    --cd-card-soft: #5b5b5b;
    --cd-card-muted: #9c9caa;
    --cd-card-green: #278f2e;
    --cd-card-line: transparent;
    background-color: var(--cd-card-bg) !important;
    color: var(--cd-card-ink);
    border-color: var(--cd-card-line);
}
:root[data-theme="dark"] body.page-template-page-home :is(.reviews__card, .provenResults-section .provenResults-box) {
    --cd-card-bg: #24282f;
    --cd-card-ink: #eaedf2;
    --cd-card-soft: #d5d9e0;
    --cd-card-muted: #b2b8c2;
    --cd-card-green: #6bce71;
    --cd-card-line: #5b616a;
}
:root body.page-template-page-home :is(.reviews__card .reviews__quote, .provenResults-section .provenResults-box .proven-desc p) {
    color: var(--cd-card-soft) !important;
}
:root body.page-template-page-home .provenResults-section .provenResults-box .proven-details h3 {
    color: var(--cd-card-ink) !important;
}
:root body.page-template-page-home .provenResults-section .provenResults-box .proven-details p {
    color: var(--cd-card-muted) !important;
}
:root body.page-template-page-home :is(.reviews__card .reviews__more, .provenResults-section .provenResults-box .proven-read-more) {
    color: var(--cd-card-green) !important;
    /* Retain WordPress's existing fade stop and all geometry. */
    background-image: linear-gradient(to right, transparent, var(--cd-card-bg) 37px) !important;
}
:root body.page-template-page-home :is(
    .reviews__card[data-overflow] .reviews__quote-well,
    .provenResults-section .provenResults-box[data-overflow="true"] .proven-desc
)::after {
    background-image: linear-gradient(to bottom, transparent, var(--cd-card-bg) 88%);
}
:root body.page-template-page-home .provenResults-section .provenResults-box .proven-read-more::after {
    background-image: linear-gradient(to bottom, transparent, var(--cd-card-bg) 88%);
}
/* Homepage blog tiles are utility-styled surface-alt cards in the reference,
   distinct from its separate blog listing's .blog-card component. */
:root body.page-template-page-home .home-blog-posts-section .blog-box {
    --cd-blog-bg: #f1f1f5;
    --cd-blog-ink: #212227;
    --cd-blog-soft: #5b5b5b;
    --cd-blog-muted: #9c9caa;
    --cd-blog-blue: #3f65ff;
    --cd-blog-green: #278f2e;
    --cd-blog-chip: #fff;
    --cd-blog-button-hover: #fff;
    background-color: var(--cd-blog-bg);
    color: var(--cd-blog-ink);
    border-color: transparent;
}
:root[data-theme="dark"] body.page-template-page-home .home-blog-posts-section .blog-box {
    --cd-blog-bg: #171b21;
    --cd-blog-ink: #eaedf2;
    --cd-blog-soft: #d5d9e0;
    --cd-blog-muted: #b2b8c2;
    --cd-blog-blue: #bed0ff;
    --cd-blog-green: #6bce71;
    --cd-blog-chip: #0b0e14;
    --cd-blog-button-hover: #24282f;
}
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-content :is(h3, h3 a) { color: var(--cd-blog-ink); }
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-content h3 a:hover { color: var(--cd-blog-blue); }
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-content p { color: var(--cd-blog-soft); }
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-date { color: var(--cd-blog-muted); }
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-read-time { color: var(--cd-blog-green); }
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-categories .blog-cat {
    color: var(--cd-blog-soft);
    background-color: var(--cd-blog-chip);
    border-color: transparent;
}
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-categories .blog-cat:hover { color: var(--cd-blog-ink); }
:root body.page-template-page-home .home-blog-posts-section .blog-box .blog-read-article-link .blog-secondary-btn {
    color: var(--cd-blog-blue);
    border-color: var(--cd-blog-blue);
}
:root body.page-template-page-home .home-blog-posts-section .blog-posts-wrapper .blog-box .blog-read-article-link .blog-secondary-btn:hover {
    color: var(--cd-blog-blue);
    border-color: var(--cd-blog-blue);
    background-color: var(--cd-blog-button-hover);
}

/* Read More creates a body-level popup, outside the source card's color scope.
   Give the revealed copy its own reference tokens; do not alter its motion. */
:root body.page-template-page-home :is(#cd-reviews-pop, .provenResults-pop, .reviews__pop) {
    --cd-review-pop-bg: #fff;
    --cd-review-pop-ink: #212227;
    --cd-review-pop-soft: #5b5b5b;
    --cd-review-pop-muted: #9c9caa;
    --cd-review-pop-green: #278f2e;
    background-color: var(--cd-review-pop-bg) !important;
    color: var(--cd-review-pop-ink);
}
:root[data-theme="dark"] body.page-template-page-home :is(#cd-reviews-pop, .provenResults-pop, .reviews__pop) {
    --cd-review-pop-bg: #24282f;
    --cd-review-pop-ink: #eaedf2;
    --cd-review-pop-soft: #d5d9e0;
    --cd-review-pop-muted: #b2b8c2;
    --cd-review-pop-green: #6bce71;
}
:root body.page-template-page-home :is(#cd-reviews-pop, .provenResults-pop, .reviews__pop) :is(
    .provenResults-pop-quote, .provenResults-pop-quote p, .reviews__pop-quote
) { color: var(--cd-review-pop-soft) !important; }
:root body.page-template-page-home :is(#cd-reviews-pop, .provenResults-pop) .proven-details h3 {
    color: var(--cd-review-pop-ink) !important;
}
:root body.page-template-page-home :is(#cd-reviews-pop, .provenResults-pop) .proven-details p {
    color: var(--cd-review-pop-muted) !important;
}
/* Vercel underlines Read More in its current green, without a new hover fill. */
:root body.page-template-page-home :is(
    .reviews__card .reviews__more,
    .provenResults-section .provenResults-box .proven-read-more
):hover { text-decoration-color: currentColor !important; }

/* Reference case-study CTA: preserve the filled brand blue in dark mode.
   Focus/active inherit the same colors; an overlapping hover remains darker. */
:root[data-theme="dark"] .cd-cta,
:root[data-theme="dark"] .cd-cta:focus,
:root[data-theme="dark"] .cd-cta:focus-visible,
:root[data-theme="dark"] .cd-cta:active {
    background-color: #3f65ff;
    color: #fff;
    border-color: currentColor;
}
:root[data-theme="dark"] .cd-cta:hover {
    background-color: #3355e6;
    color: #fff;
    border-color: currentColor;
}

/* Site-wide extension: dark-only semantic colors for the remaining templates.
   Do not change --black-color: existing dark bands also use it as a fill. */
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .whateverYourApp h2, .allServices-top h2, .services-content h2,
    .services-text h2, .services-outcome h2, .outcome-title,
    .exploreMore-section h2, .team-title h2, .team-box h4,
    .provenProcess-section .process-title h2, .all-stories h2,
    .resultOutcome-section .process-title h2, .challenges-section h2,
    .interactiveFeatures .process-title h2, .story-guidance h2,
    .project-expertly h2, .pricing-project-expertly h2,
    .book-consultation-section h2, .rating-section .title-h2,
    .success-stories-top h2, .search-results-header h2,
    .blog-banner-top h2, .blog-content h3, .blog-content h3 a,
    .single-blog-section .entry-content :is(h1,h2,h3,h4,h5,h6),
    .single-blog-content-col :is(h2,h3,h4), .archive-description h2,
    .blog-box-ad-box h4, .faq-ad-box h4, .faq-project-heading,
    .keepmore-subtext h2, .KeepMore-text h3, .KeepMore-text h4,
    .thankYouApp h2, .ty-next-heading, .content-with-icon-title
) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .whateverYourApp p, .services-content p, .services-text p,
    .services-outcome p, .exploreMore-text p, .team-title p,
    .team-box p, .provenProcess-section .process-title p,
    .provenProcess-list p, .all-stories p, .resultOutcome-section .process-title p,
    .resultOutcome-list p, .resultOutcome-list h4, .challenges-section p,
    .interactiveFeatures .process-title p, .story-guidance p,
    .project-expertly p, .pricing-project-expertly p,
    .success-stories-top p, .successStory-text p, .blog-banner-top p,
    .blog-content p, .single-blog-section .entry-content :is(p,li,blockquote),
    .archive-description p, .blog-box-ad-box p, .faq-ad-box p,
    .keepmore-subtext p, .KeepMore-text p, .KeepMore-section .bottom-text p,
    .ty-steps__intro, .ty-outcome p, .thankYouApp p
) { color: var(--cd-theme-soft); }
/* The reference consultation hero uses ink, rather than ink-soft, for its intro. */
:root[data-theme="dark"] body:not(.page-template-page-home) .book-consultation-section p { color: var(--cd-theme-ink); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .whateverYourApp h2, .allServices-top h2, .services-content h2,
    .team-title h2, .project-expertly h2, .pricing-project-expertly h2,
    .book-consultation-section h2, .challenges-section h2,
    .interactiveFeatures h2, .blog-banner-top h2
) > span:not(.vx-word) { color: var(--cd-theme-green); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .provenProcess-list h3, .resultOutcome-list h3, .green-text,
    .KeepMore-section .bottom-text span, .ty-outcome__num
) { color: var(--cd-theme-green); }
:root[data-theme="dark"] body.single-success-story .resultOutcome-list ul li h3 { color: var(--cd-theme-green) !important; }
:root[data-theme="dark"] body.single-success-story .resultOutcome-list ul li h4 { color: var(--cd-theme-soft) !important; }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .whateverYourApp, .team-title, .project-expertly, .book-consultation-section,
    .provenProcess-section, .resultOutcome-section, .challenges-section,
    .blog-banner-top, .KeepMore-section
) .vx-word { color: inherit; }

/* Opaque color layers replace the reference's light decorative backdrops.
   Only background paint changes; no image element or animation rule is touched. */
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .settleAnother-section, .whatever-explore-section, .pricing-main-section,
    .pricing-project-expertly, .faq-main-section, .team-section,
    .provenProcess-section, .all-stories, .resultOutcome-section,
    .challenges-section, .interactiveFeatures, .story-guidance,
    .project-expertly, .book-consultation-section, .thankyou-explore-section,
    .keep-diving-section, .cd-platforms, .cd-trusted-brands
) {
    background-color: var(--cd-theme-surface);
    background-image: linear-gradient(var(--cd-theme-surface), var(--cd-theme-surface));
}
:root[data-theme="dark"] body.page-template-page-book-consultation .book-consultation-section {
    background-color: var(--cd-theme-surface);
    background-image: linear-gradient(var(--cd-theme-surface), var(--cd-theme-surface));
}
:root[data-theme="dark"] :is(.introduction-section,.together-section,
    .comprehensive-section,.expect-next-section,.seamless-section,
    .story-gallery-section,.book-consultation-form-section,.cd-awards) {
    background-color: #212227;
}
:root[data-theme="dark"] :is(.provenProcess-list ul li,.resultOutcome-list ul li,
    .pricing-box,.faq-ad-box,.KeepMore-inner,.KeepMore-section ul li) {
    background-color: var(--cd-theme-panel);
    border-color: var(--cd-theme-line);
}
:root[data-theme="dark"] .faq-ad-box {
    background-image: linear-gradient(var(--cd-theme-panel), var(--cd-theme-panel));
}

/* Blog listings, posts, related posts, archives and search. */
:root[data-theme="dark"] body:not(.page-template-page-home) .blog-box {
    background-color: var(--cd-theme-panel);
    color: var(--cd-theme-ink);
    border-color: var(--cd-theme-line);
}
:root[data-theme="dark"] body:not(.page-template-page-home) .blog-box:hover { background-color: var(--cd-theme-raised); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(.blog-date,.blog-time,
    .blog-author-time-info,.single-blog-content-col figcaption,.faq-search-result-count,
    .search-result-count,.pricing-read-time,.pricing-budget-time) { color: var(--cd-theme-muted); }
:root[data-theme="dark"] body:not(.page-template-page-home) .blog-read-time { color: var(--cd-theme-green); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(.blog-categories .blog-cat,
    .feature-categories .blog-cat,.pricing-category-buttons button,.category-buttons button) {
    background-color: var(--cd-theme-panel);
    color: var(--cd-theme-soft);
    border-color: var(--cd-theme-line);
}
:root[data-theme="dark"] body:not(.page-template-page-home) .blog-box .blog-categories .blog-cat { background-color: var(--cd-theme-surface); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(.blog-categories .blog-cat:hover,
    .feature-categories .blog-cat:hover) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(.blog-content h3 a:hover,
    .single-blog-section .entry-content a,.explore-link a,.back-link a,
    .view-all-link a,.exploreMore-text a,.KeepMore-text a) { color: var(--cd-theme-blue); }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(.blog-secondary-btn,.pricing-btn) {
    color: var(--cd-theme-blue);
    border-color: var(--cd-theme-blue);
}
:root[data-theme="dark"] body:not(.page-template-page-home) .blog-posts-section .blog-posts-wrapper .blog-box .blog-read-article-link .blog-secondary-btn:hover {
    background-color: var(--cd-theme-surface);
    color: var(--cd-theme-blue);
    border-color: var(--cd-theme-blue);
}
:root[data-theme="dark"] body:not(.page-template-page-home) .blog-box-ad-box {
    background-color: var(--cd-theme-panel);
    background-image: linear-gradient(var(--cd-theme-panel), var(--cd-theme-panel));
}
:root[data-theme="dark"] :is(.pricing-read-time,.pricing-budget-time) { background-color: var(--cd-theme-raised); }
:root[data-theme="dark"] :is(.pricing-category-buttons button,.category-buttons button):is(.active,:hover) {
    background-color: var(--cd-theme-fill);
    color: #fff;
    border-color: var(--cd-theme-fill);
}

/* FAQ: selected chips invert ink/surface; question panels retain the panel fill. */
:root[data-theme="dark"] .faq-categories-list :is(a,.faq-category-item) {
    color: var(--cd-theme-soft);
    background-color: var(--cd-theme-panel);
    border-color: var(--cd-theme-line);
}
:root[data-theme="dark"] .faq-categories-list :is(.active,a[aria-current="page"]) {
    color: var(--cd-theme-surface);
    background-color: var(--cd-theme-ink);
    border-color: var(--cd-theme-ink);
}
:root[data-theme="dark"] .faq-categories-list .active > a { color: var(--cd-theme-surface); }
:root[data-theme="dark"] :is(.faq-item,.faq-item.active,.faq-question,.faq-answer,
    .faq-item.active .faq-question,.faq-item.active .faq-answer) {
    background-color: var(--cd-theme-panel);
    border-color: var(--cd-theme-line);
}
:root[data-theme="dark"] :is(.faq-question,.faq-item.active .faq-question) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .faq-answer { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .faq-item:hover .faq-question { color: var(--cd-theme-blue); }
:root[data-theme="dark"] :is(.banner-search input,.input-text,textarea)::placeholder { color: var(--cd-theme-muted); }

/* Consultation: reference book-form and book-field surfaces. */
:root[data-theme="dark"] .book-consultation-form-section .book-box { background-color: var(--cd-theme-surface); }
:root[data-theme="dark"] body .gform_wrapper.gravity-theme .gfield .ginput_container_fileupload input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
    background-color: color-mix(in srgb, #3f65ff 22%, #171b21) !important;
    border-color: var(--cd-theme-line) !important;
}
:root[data-theme="dark"] .gform_wrapper.gravity-theme :is(.gform_footer input,.gform_button) {
    background-color: var(--cd-theme-fill);
    color: #fff;
}
:root[data-theme="dark"] .gform_wrapper.gravity-theme :is(.gform_footer input,.gform_button):hover {
    background-color: var(--cd-theme-fill-hover);
    color: #fff;
}

/* Testimonials page has an independent component stylesheet. */
:root[data-theme="dark"] :is(.cd-hero__headline,.cd-quote-text,.cd-quote-name,
    .cd-platforms__claim,.cd-platforms__lede h4,.cd-trusted-brands__title,
    .cd-trusted-brands__tagline,.cd-cta-band p,.cd-review-card__name) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] :is(.cd-review-card__quote,.cd-review-card__quote p,
    .cd-platforms__lede p,.cd-review-card__role) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] :is(.cd-quote-role,.cd-rating__count) { color: var(--cd-theme-muted); }
:root[data-theme="dark"] :is(.cd-review-card__mark,.cd-quote-ending span,
    .cd-trusted-brands__title span,.cd-partners h2.cd-section-title span) { color: var(--cd-theme-green); }
:root[data-theme="dark"] :is(.cd-review-card,.cd-quote-chip,.cd-rating) {
    background-color: var(--cd-theme-raised);
    border-color: var(--cd-theme-line);
}
:root[data-theme="dark"] :is(.cd-partner-card .cd-review-card__quote,
    .cd-partner-card .cd-review-card__quote p) { color: var(--cd-theme-soft) !important; }
:root[data-theme="dark"] .cd-partner-card .cd-review-card__mark { color: var(--cd-theme-green) !important; }
:root[data-theme="dark"] .cd-partner-card .cd-review-card__role { color: var(--cd-theme-muted) !important; }
:root[data-theme="dark"] :is(section.cd-partners,section.cd-partners.is-in,.cd-cta-band) {
    background-color: var(--cd-theme-surface) !important;
    background-image: linear-gradient(var(--cd-theme-surface), var(--cd-theme-surface));
}
:root[data-theme="dark"] :is(.cd-hero__card,.cd-pill--glossy,.cd-trusted-brands__card) {
    background-color: var(--cd-theme-panel);
    background-image: linear-gradient(180deg, #24282f, #171b21);
}
:root[data-theme="dark"] .cd-pill {
    background-color: var(--cd-theme-surface);
    color: #dee7ff;
    border-color: var(--cd-theme-blue);
}
:root[data-theme="dark"] .cd-pill:hover { background-color: var(--cd-theme-raised); color: #dee7ff; }
:root[data-theme="dark"] .load-review-btn { color: var(--cd-theme-blue); border-color: var(--cd-theme-blue); }
:root[data-theme="dark"] .load-review-btn:hover { background-color: var(--cd-theme-raised); color: var(--cd-theme-blue); }

/* Static content, resources and errors; keep intentional paper components light. */
:root[data-theme="dark"] :is(.page-content,.entry-content,.keepmore-subtext) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .page-content :is(h1,h2,h3,h4,h5,h6) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .page-content a { color: var(--cd-theme-blue); }
:root[data-theme="dark"] :is(.KeepMore-inner,.ty-dive__card):hover { background-color: var(--cd-theme-raised); }
:root[data-theme="dark"] :is(.letter-section,.story-card) {
    --text-color: #5b5b5b;
    --color-ink: #212227;
    --color-ink-soft: #5b5b5b;
    --color-ink-mute: #9c9caa;
    --color-line: #e4e5ec;
    --color-surface: #fff;
    --color-surface-alt: #f1f1f5;
    --color-cd-green: #278f2e;
    --color-cd-blue: #3f65ff;
}

/* Reuse the verified review colors outside the homepage, including body portals. */
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .reviews__card,.provenResults-section .provenResults-box,
    #cd-reviews-pop,.provenResults-pop,.reviews__pop
) {
    --cd-card-bg: #24282f;
    --cd-card-ink: #eaedf2;
    --cd-card-soft: #d5d9e0;
    --cd-card-muted: #b2b8c2;
    --cd-card-green: #6bce71;
    background-color: var(--cd-card-bg) !important;
    color: var(--cd-card-ink);
    border-color: var(--cd-theme-line);
}
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .provenResults-section,#cd-reviews-pop,.provenResults-pop,.reviews__pop
) :is(.proven-desc p,.provenResults-pop-quote,.provenResults-pop-quote p,.reviews__pop-quote) {
    color: var(--cd-theme-soft) !important;
}
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .provenResults-section,#cd-reviews-pop,.provenResults-pop
) .proven-details h3 { color: var(--cd-theme-ink) !important; }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .provenResults-section,#cd-reviews-pop,.provenResults-pop
) .proven-details p { color: var(--cd-theme-muted) !important; }
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .reviews__card .reviews__more,.provenResults-section .proven-read-more
) {
    color: var(--cd-theme-green) !important;
    background-image: linear-gradient(to right, transparent, #24282f 37px) !important;
}
:root[data-theme="dark"] body:not(.page-template-page-home) :is(
    .reviews__card[data-overflow] .reviews__quote-well,
    .provenResults-section .provenResults-box[data-overflow="true"] .proven-desc,
    .provenResults-section .proven-read-more
)::after { background-image: linear-gradient(to bottom, transparent, #24282f 88%); }
:root[data-theme="dark"] body:not(.page-template-page-home, .page-template-page-testimonials-new) .cd-features-slider :is(     .cd-features-slider__title,.cd-features-slider__title span ) { color: var(--cd-theme-ink) !important; }
:root[data-theme="dark"] body:not(.page-template-page-home, .page-template-page-testimonials-new) .cd-features-slider :is(     .cd-features-slider__text,.cd-features-slider__text p,     .cd-features-slider__point-desc,.cd-features-slider__point-desc p,     .cd-features-slider__subtext,.cd-features-slider__subtext p ) { color: var(--cd-theme-soft) !important; }
:root[data-theme="dark"] body:not(.page-template-page-home, .page-template-page-testimonials-new) .cd-features-slider .cd-features-slider__point-num {
    color: var(--cd-theme-green) !important;
}

/* ==========================================================================
   Reference parity pass. Dark mode only, colour properties only.
   Every value was read from the reference's computed dark styles.
   Fixed-colour areas that already differ from the reference in light mode
   (footer band, guarantee/core-value cards, process step text), reference
   effects that need new borders/rings, and pages with no reference
   counterpart (404, search overlay) are intentionally left alone.
   ========================================================================== */

/* Unstyled copy inherits ink in the reference; explicitly soft copy keeps its own rule. */
:root[data-theme="dark"] body { color: var(--cd-theme-ink); }

/* Header */
:root[data-theme="dark"] .header { border-color: rgb(91 97 106 / 70%); }
:root[data-theme="dark"] .header .nav-container ul li > a:hover { color: #7bd77f; }
:root[data-theme="dark"] .header .header-consultation ul a.header-phone:hover { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .header .header-consultation ul a.book-btn:hover { color: #fff; }
/* The copyright line is a fixed grey in the reference, in both themes. */
:root[data-theme="dark"] .footer-bottom .copy-right > p { color: #a3a3a3; }

/* Homepage reviews heading emphasis (the base rule is !important). */
:root[data-theme="dark"] body.page-template-page-home .provenResults-title h2 .cd-review-emphasis { color: var(--cd-theme-green) !important; }

/* Case slider: stat captions and rule lines. */
:root:root[data-theme="dark"] body:not(.page-template-page-home, .page-template-page-testimonials-new) .cd-features-slider :is(.cd-features-slider__point-desc, .cd-features-slider__point-desc p) { color: var(--cd-theme-muted) !important; }
:root[data-theme="dark"] :is(body.page-template-page-home, body.page-template-page-testimonials-new) .cd-features-slider .cd-features-slider__points :is(.cd-features-slider__point-desc, .cd-features-slider__point-desc p) { color: var(--cd-theme-muted) !important; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__points { border-color: var(--cd-theme-line); }

/* Closing call-to-action copy is ink in the reference. */
:root:root[data-theme="dark"] body:not(.page-template-page-home) :is(.appsSuccess-text, .successStory-text, .services-text) p { color: var(--cd-theme-ink); }

/* What We'll Do For You: service cards and section label. */
:root[data-theme="dark"] .explore-section ul li { background-color: rgb(11 14 20 / 82%); border-color: var(--cd-theme-line); }
:root[data-theme="dark"] .explore-section ul li :is(h3, h3 a) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .explore-section ul li p { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .explore-section ul li:hover :is(h3, h3 a, p) { color: #fff; }
:root:root[data-theme="dark"] body:not(.page-template-page-home) :is(.explore-section, .exploreMore-section) .explore-link a { color: var(--cd-theme-green); }

/* Service detail pages (design, development, strategy, support). */
:root[data-theme="dark"] .allServices-top p.tag-line { color: var(--cd-theme-green); }
:root[data-theme="dark"] body:not(.page-template-page-home) .allServices-top h2 > span:not(.vx-word) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .allServices-list > ul > li { background-color: var(--cd-theme-surface); border-color: var(--cd-theme-line); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .allServices-list .services-content p.tag-line { color: var(--cd-theme-muted); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .allServices-list .services-content h2 { color: var(--cd-theme-green); }
:root[data-theme="dark"] .allServices-list .services-outcome { background-color: #101819; background-color: color-mix(in srgb, var(--cd-theme-green) 5%, var(--cd-theme-surface)); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .allServices-list .services-outcome .outcome-title { color: var(--cd-theme-green); }
:root[data-theme="dark"] .exploreMore-section ul li { background-color: var(--cd-theme-surface); border-color: var(--cd-theme-line); }
:root[data-theme="dark"] .exploreMore-section ul li h3 { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .exploreMore-section ul li p { color: var(--cd-theme-soft); }
:root:root[data-theme="dark"] .exploreMore-section ul li:hover :is(h3, p) { color: #fff; }

/* Our Proven Process. */
:root[data-theme="dark"] .provenProcess-section .process-title h2 span { color: var(--cd-theme-green); }
:root[data-theme="dark"] body.page-template-page-process .project-expertly {
    background-color: var(--cd-theme-panel);
    background-image: linear-gradient(var(--cd-theme-panel), var(--cd-theme-panel));
}

/* Success stories index: hero sits on the page surface; heading is all ink. */
:root[data-theme="dark"] .success-stories-main { background-image: none; }
:root:root[data-theme="dark"] .success-stories-top h2 span { color: var(--cd-theme-ink); }

/* Who We Are. */
:root[data-theme="dark"] .empowering-section { background-image: none; }
:root[data-theme="dark"] .empowering-section h3 { color: var(--cd-theme-ink); }

/* FAQ. */
:root[data-theme="dark"] .faq-info-section h3 { color: var(--cd-theme-green); }
:root[data-theme="dark"] .faq-answer a { color: var(--cd-theme-blue); }

/* Search buttons (FAQ, blog, success stories). */
:root[data-theme="dark"] .banner-search button.search { background-color: var(--cd-theme-panel); color: var(--cd-theme-soft); }
:root[data-theme="dark"] .banner-search button.search:hover { background-color: var(--cd-theme-line); color: var(--cd-theme-ink); }

/* Pricing. */
:root:root[data-theme="dark"] body:not(.page-template-page-home) .explore-categories-section :is(.explore-link, .explore-categories-link) a { color: var(--cd-theme-muted); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .pricing-category-buttons button { background-color: var(--cd-theme-surface); color: var(--cd-theme-soft); border-color: var(--cd-theme-line); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .pricing-category-buttons button:hover { background-color: var(--cd-theme-surface); color: var(--cd-theme-soft); border-color: #62926d; border-color: color-mix(in srgb, var(--cd-theme-green) 44%, var(--cd-theme-line)); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .pricing-category-buttons button.active { background-color: #131d1b; background-color: color-mix(in srgb, var(--cd-theme-green) 8%, var(--cd-theme-surface)); color: var(--cd-theme-green); border-color: var(--cd-theme-green); }
:root:root[data-theme="dark"] .pricing-box { background-color: var(--cd-theme-surface); border-color: var(--cd-theme-line); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) :is(.pricing-read-time, .pricing-budget-time) { background-color: transparent; color: var(--cd-theme-soft); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .pricing-project-expertly {
    background-color: #111a1a;
    background-image: linear-gradient(#111a1a, #111a1a);
}

/* Testimonials. */
:root[data-theme="dark"] .cd-quote-chip .cd-quote-text :is(p, span) { color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] :is(.cd-review-card__quote, .cd-review-card__quote p) { color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] .cd-partner-card :is(.cd-review-card__quote, .cd-review-card__quote p) { color: var(--cd-theme-ink) !important; }
:root:root[data-theme="dark"] .cd-rating { background-color: var(--cd-theme-surface); }

/* Blog index, archives and posts. */
:root[data-theme="dark"] body:is(.page-template-page-blog, .archive) { background-image: none; }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .category-buttons .category-list-btn { background-color: var(--cd-theme-panel); color: #a3a3a3; border-color: transparent; }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .category-buttons .category-list-btn:hover { background-color: var(--cd-theme-panel); color: var(--cd-theme-ink); border-color: var(--cd-theme-line); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .category-buttons .category-list-btn.active { background-color: var(--cd-theme-panel); color: var(--cd-theme-ink); border-color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) :is(.blog-box .blog-categories, .feature-categories) .blog-cat { background-color: var(--cd-theme-surface); color: #a3a3a3; border-color: transparent; }
:root:root[data-theme="dark"] body:not(.page-template-page-home) :is(.blog-box .blog-categories, .feature-categories) .blog-cat:hover { color: var(--cd-theme-ink); border-color: var(--cd-theme-line); }
:root[data-theme="dark"] .blog-box .blog-author a { color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .blog-box .blog-read-time { color: var(--cd-theme-soft); }
:root[data-theme="dark"] :is(.feature-posts-wrapper > [class*="col-"], .feature-box) { background-color: var(--cd-theme-raised); }
:root[data-theme="dark"] .feature-box .featured-label { background-color: rgb(255 255 255 / 16%); color: #fff; }
:root[data-theme="dark"] .pagination ul { background-color: transparent; }
:root[data-theme="dark"] .pagination :is(a, span) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .pagination :is(a:hover, .current) { color: var(--cd-theme-ink); }
/* The accent span carries an inline colour from the editor, hence !important. */
:root[data-theme="dark"] .blog-box-ad-box h4 span { color: var(--cd-theme-blue) !important; }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .blog-box-ad-box p { color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] body:not(.page-template-page-home) .single-blog-section .entry-content :is(p, li, td, th) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .single-blog-section .entry-content :is(td, th) { border-color: var(--cd-theme-line); }
:root:root[data-theme="dark"] body.single-post .single-blog-banner .blog-categories .blog-cat { color: var(--cd-theme-ink); border-color: transparent; }

/* Book Your Consultation. */
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gchoice label { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gfield_required { color: #ffa4a1; }
:root[data-theme="dark"] .book-consultation-form-section .book-box h2 { color: var(--cd-theme-blue); }
:root[data-theme="dark"] .book-consultation-form-section .book-box h2 span { color: var(--cd-theme-green); }
:root[data-theme="dark"] .page-template-page-book-consultation .cd-upload-dropzone {
    background-color: #202b52 !important;
    background-color: color-mix(in srgb, #3f65ff 22%, #171b21) !important;
    border-color: #9aa8ff !important;
}
:root[data-theme="dark"] .page-template-page-book-consultation .cd-upload-dropzone:is(:hover, .is-dragover) { border-color: var(--cd-theme-blue) !important; }
:root[data-theme="dark"] .page-template-page-book-consultation .cd-upload-dropzone :is(.cd-upload-icon, .cd-upload-text) { color: var(--cd-theme-blue); }
:root[data-theme="dark"] .consultation-endorsements .consultation-testimonials-link { color: var(--cd-theme-blue); border-color: var(--cd-theme-blue); }
:root[data-theme="dark"] .consultation-endorsements .consultation-testimonials-link:hover { color: var(--cd-theme-blue); background-color: var(--cd-theme-raised); }

/* Endorsement cards and reviews intro on the consultation page. */
:root[data-theme="dark"] .review-card .rating-value { color: var(--cd-theme-green); }
:root[data-theme="dark"] .review-card .review-rating p { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .review-card .review-title { color: var(--cd-theme-muted); }
:root[data-theme="dark"] body.page-template-page-book-consultation .provenResults-title p { color: var(--cd-theme-ink); }

/* Case-study prose on the page surface is ink in the reference. */
:root:root[data-theme="dark"] body.single-success-story :is(.challenges-section, .interactiveFeatures .process-title, .story-guidance .process-title, .resultOutcome-section .process-title) p { color: var(--cd-theme-ink); }

/* Thank You. */
:root[data-theme="dark"] .cd-thank-you .thankYouApp h1 { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .cd-thank-you .thankYouApp h1 :is(span, b, strong) { color: var(--cd-theme-green); }
:root:root[data-theme="dark"] body.page-template-page-thank-you h2.content-with-icon-title,
:root:root[data-theme="dark"] body.page-template-page-thank-you h2.content-with-icon-title .ty-next-heading { color: #fff; }
:root:root[data-theme="dark"] body.page-template-page-thank-you .ty-steps .ty-steps__intro { color: rgb(255 255 255 / 80%); }
:root:root[data-theme="dark"] body.page-template-page-thank-you .ty-steps__list .ty-outcome p { color: rgb(255 255 255 / 75%); }
:root[data-theme="dark"] .cd-thank-you .KeepMore-section h2 { color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] .cd-thank-you .KeepMore-inner { background-color: var(--cd-theme-raised); border-color: var(--cd-theme-line); }
:root:root[data-theme="dark"] .cd-thank-you a.KeepMore-inner:hover { background-color: var(--cd-theme-raised); border-color: #7d879d; border-color: color-mix(in srgb, var(--cd-theme-blue) 34%, var(--cd-theme-line)); }
:root:root[data-theme="dark"] .cd-thank-you .KeepMore-section :is(.bottom-text, .bottom-text p) { color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] .cd-thank-you .KeepMore-section .bottom-text :is(span, b, strong) { color: var(--cd-theme-green); }

/* ==========================================================================
   Round 2: text-colour corrections, dark mode only.
   ========================================================================== */

/* Desktop header: the menu wrapper only needs a fill when it is the mobile
   drawer (below 1280px). Above that the reference shows the header's own
   translucent surface behind the links. */
@media (min-width: 1280px) {
    :root:root[data-theme="dark"] .header .header-top .header-right { background-color: transparent; }
}

/* Consultation page animated headings: plain words are ink, accent words green
   (the base rules hard-code black on the word spans). */
:root[data-theme="dark"] :is(.provenResults-title, .rating-title) h2 :is(.wf-word-wrap, .wf-word:not(.wf-accent), .wf-word:not(.wf-accent) .vx-word) { color: var(--cd-theme-ink) !important; }
:root[data-theme="dark"] :is(.provenResults-title, .rating-title) h2 .wf-word.wf-accent { color: var(--cd-theme-green) !important; }
:root[data-theme="dark"] :is(.provenResults-title, .rating-title) h2 .wf-word.wf-accent .vx-word { color: inherit !important; }

/* Footer text. */
:root[data-theme="dark"] .footer-container .footer-links a { color: #fff; }
:root[data-theme="dark"] .footer-container :is(.footer-links, .footer-socials) h3 { color: #ccc9ba; }

/* Dark bands that are a fixed colour in the reference: copy and step text. */
:root[data-theme="dark"] .guarantee-success .process-title p { color: #a3a3a3; }
:root[data-theme="dark"] .processStep-item .step-content > h3 { color: #fff; }
:root[data-theme="dark"] .processStep-item .step-content > p { color: #a3a3a3; }
:root[data-theme="dark"] .processStep-item .stepBottom-text { background-color: rgb(255 255 255 / 6%); }
:root[data-theme="dark"] .processStep-item .stepBottom-text h3 { color: rgb(255 255 255 / 70%); }
:root[data-theme="dark"] .processStep-item .stepBottom-text p { color: #a3a3a3; }

/* Who We Are: founder letter stays paper-white with ink text; core values. */
:root:root[data-theme="dark"] .letter-section .letter-box :is(p, h3) { color: #212227; }
:root[data-theme="dark"] .coreValues-section .process-title p { color: rgb(255 255 255 / 72%); }
:root[data-theme="dark"] .coreValues-list li :is(h3, p) { color: rgb(255 255 255 / 80%); }

/* Testimonials. */
:root:root[data-theme="dark"] .cd-partner-card .cd-review-card__role { color: var(--cd-theme-soft) !important; }
:root:root[data-theme="dark"] .cd-trusted-brands__title span { color: #7bd77f; }

/* Featured blog cards: secondary text. */
:root[data-theme="dark"] .feature-box :is(.feature-read-time, .feature-date, .feature-content p) { color: rgb(255 255 255 / 72%); }

/* Blog post, archive and search headers and helper links. */
:root[data-theme="dark"] .single-blog-banner :is(h1.entry-title, h1.page-title) { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .blog-posts-section > .container > .d-flex h2 { color: var(--cd-theme-green); }
:root[data-theme="dark"] .blog-posts-section .view-all-link { color: var(--cd-theme-blue); border-color: var(--cd-theme-blue); }
:root[data-theme="dark"] .blog-box .blog-author { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .search-result-count .clear-search { color: var(--cd-theme-blue); }
:root[data-theme="dark"] body.search { background-image: none; }

/* Case studies: the reference sets every heading and paragraph in ink. */
:root:root[data-theme="dark"] body.single-success-story :is(.introduction-section, .challenges-section, .together-section, .interactiveFeatures, .comprehensive-section, .story-guidance, .seamless-section, .resultOutcome-section) :is(.process-title h2, .process-title h2 span, .col-md-7 > h2, .col-md-7 > h2 span, .container > h2, .container > h2 span, .contentControl-text h2, .contentControl-text h2 span) { color: var(--cd-theme-ink) !important; }
:root:root[data-theme="dark"] body.single-success-story :is(.introduction-section, .together-section, .comprehensive-section, .interactiveFeatures) :is(p, .subtext) { color: var(--cd-theme-ink); }
:root:root[data-theme="dark"] body.single-success-story .resultOutcome-list ul li h3 { color: var(--cd-theme-ink) !important; }
:root[data-theme="dark"] .story-testimonials :is(p, .story-testi-text p) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .story-testimonials h3 { color: var(--cd-theme-ink); }
:root[data-theme="dark"] .story-testimonials .job-post p { color: var(--cd-theme-muted); }

/* 404. */
:root[data-theme="dark"] .error-404 :is(.cannot-find p, .keep-exploring-text) { color: var(--cd-theme-soft); }
:root[data-theme="dark"] .error-404 .explore-btn { background-color: var(--cd-theme-panel); border-color: var(--cd-theme-line); }
:root[data-theme="dark"] .error-404 .explore-btn, :root[data-theme="dark"] .error-404 .explore-btn a { color: var(--cd-theme-ink); }

/* ==========================================================================
   NOT a colour rule, and it applies in both themes (approved separately).
   Consultation page review cards: the shared rule places "Read more" at
   top: calc(6 * 17.5px * 1.625), which falls below this page's clipped quote
   box, so the link was cut off. Anchor it to the bottom of the quote, exactly
   as the homepage already does. Size, type and behaviour are untouched.
   ========================================================================== */
body.page-template-page-book-consultation .provenResults-section .proven-read-more {
    top: auto !important;
    bottom: 0 !important;
}

/* ==========================================================================
   Round 3: case-slider logos and brand marquee, dark mode only.
   Values copied from the reference's dark rules.
   ========================================================================== */

/* Case slider: logos drawn for light backgrounds sit on a white plate.
   Paint only: the plate is a fill plus an 8px spread shadow, so the logo's
   box, size and position are unchanged. */
:root[data-theme="dark"] .cd-features-slider img.cd-features-slider__logo {
    background-color: #fff;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='14' fill='%23fff'/%3E%3C/svg%3E") 14 fill / 14px / 8px;
    border-radius: 6px;
    box-shadow: 0 0 0 8px #fff;
}
/* Logos already made for dark backgrounds stay bare, as in the reference
   (Group-12-Copy is this site's Mister Softee file). */
:root[data-theme="dark"] .cd-features-slider img.cd-features-slider__logo:is([src*="/slay."], [src*="mister-softee"], [src*="Group-12-Copy"], [src*="bedmatch-logo-color"], [src*="tast-logo-pink"], [src*="mathdistract-logo-white"], [src*="cc-logo"]) {
    background-color: transparent;
    border-image-source: none;
    box-shadow: none;
}

/* Brand marquee: white silhouettes at rest; on hover the original colours
   return on a white plate. !important only because the base rules use it. */
:root[data-theme="dark"] .home-brand-section .logo-marquee__logo {
    filter: grayscale(1) brightness(0) invert(1) !important;
    opacity: 0.62 !important;
}
:root[data-theme="dark"] .home-brand-section .logo-marquee__logo:hover {
    filter: none !important;
    opacity: 1 !important;
}
:root[data-theme="dark"] .home-brand-section .logo-marquee__item:hover {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 0 10px #fff;
}

/* ==========================================================================
   Round 4: case-slider title accents, dark mode only.
   The reference colours the accent words with each slide's own accent, the
   same value in both themes. Earlier dark rules forced them to ink.
   Slides are matched by the --feature-bg-color they already carry inline;
   an unlisted or new slide falls back to that colour, and a slide with no
   colour keeps the title's ink.
   ========================================================================== */
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide { --cd-slide-accent: var(--feature-bg-color); }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#f44c56" i] { --cd-slide-accent: #ce3e4c; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#004bfe" i] { --cd-slide-accent: #0048fc; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#7100e2" i] { --cd-slide-accent: #6e23cf; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#00a2ed" i] { --cd-slide-accent: #007ab4; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#492461" i] { --cd-slide-accent: #482460; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#2f90a8" i] { --cd-slide-accent: #297c90; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#3c68bb" i] { --cd-slide-accent: #3c67bb; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#7954f0" i] { --cd-slide-accent: #7854f0; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#34cc32" i] { --cd-slide-accent: #218320; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#683aae" i] { --cd-slide-accent: #6839ae; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#14336f" i] { --cd-slide-accent: #14346f; }
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide[style*="#411fa1" i] { --cd-slide-accent: #421fa0; }
:root:root[data-theme="dark"] body .cd-features-slider .cd-features-slider__slide .cd-features-slider__title span { color: var(--cd-slide-accent, inherit) !important; }

/* ==========================================================================
   Round 5: case-slider stat numbers, dark mode only.
   The reference colours real figures with the slide accent (the same
   --cd-slide-accent used for the title) and "00,000" placeholders in muted
   grey. Earlier dark rules forced every number to green.
   ========================================================================== */
/* A slide with no brand colour (currently "Dating") keeps readable ink. */
:root[data-theme="dark"] .cd-features-slider .cd-features-slider__slide:not([style*="#"]) { --cd-slide-accent: var(--cd-theme-ink); }

/* ==========================================================================
   Round 6: FAQ category links, dark mode only.
   On this site they are plain text links divided by a bar (the reference uses
   pill chips). An earlier dark rule filled each link with the panel colour,
   which left bare text sitting on a block. Remove the fill and keep only the
   reference's text colours; the bar takes the reference's line colour.
   ========================================================================== */
:root:root[data-theme="dark"] .faq-categories-list :is(a, .faq-category-item),
:root:root[data-theme="dark"] .faq-categories-list :is(.active, a[aria-current="page"]) {
    background-color: transparent;
    color: var(--cd-theme-soft);
    border-color: var(--cd-theme-line);
}
:root:root[data-theme="dark"] .faq-categories-list :is(a, .faq-category-item):hover,
:root:root[data-theme="dark"] .faq-categories-list :is(.active, a[aria-current="page"]) { color: var(--cd-theme-ink); }

/* ==========================================================================
   Round 7: client review items, dark mode only (colour properties only).
   ========================================================================== */

/* Phone/tablet menu button: the bars and the open-state cross were dark on dark. */
:root[data-theme="dark"] .header-top .mob-menu { border-color: var(--cd-theme-line); }
:root[data-theme="dark"] .header-top .mob-menu span,
:root[data-theme="dark"] .header-top .mob-menu span::before,
:root[data-theme="dark"] .header-top .mob-menu span::after { background-color: var(--cd-theme-ink); }
:root[data-theme="dark"] .header-top .mob-menu[aria-expanded="true"] span { background-color: transparent; }
/* Menu drawer details. */
:root[data-theme="dark"] .header-top .mobile-menu .cd-submenu-toggle { color: var(--cd-theme-soft); }
@media (max-width: 1279.98px) {
    :root[data-theme="dark"] .header-top .header-right .header-consultation { border-color: var(--cd-theme-line); }
}

/* Hero story tiles: an earlier dark rule painted every "See How We Did It"
   button solid blue, which left the dark variant's border as a black outline.
   The tiles keep their brand colours in both themes, so the buttons keep
   their light-mode colours too (the reference does the same). */
:root:root[data-theme="dark"] .gallery-button a.primary-btn:not(.bluetype) { background-color: rgb(0 0 0 / 32%); color: #fff; }
:root:root[data-theme="dark"] .gallery-button a.primary-btn:not(.bluetype):hover { background-color: rgb(39 143 46); color: #fff; }
:root:root[data-theme="dark"] .gallery-button a.primary-btn.bluetype:not(:hover) { background-color: transparent; color: #212227; }

/* Brand marquee: the White House badge and the Rhodes mark are filled shapes,
   so the silhouette filter turned them into solid blobs. Keep their artwork
   readable instead. */
:root[data-theme="dark"] .home-brand-section .logo-marquee__logo:is([src*="The-White-House"], [src*="Rhodes-101"]):not(:hover) { filter: grayscale(1) invert(1) !important; }

/* Phone/tablet menu drawer: rows turned white on tap/hover and when a
   sub-menu was open, leaving light text on a white row. */
@media (max-width: 1279.98px) {
    :root:root[data-theme="dark"] .header-top .mobile-menu li,
    :root:root[data-theme="dark"] .header-top .mobile-menu li > a,
    :root:root[data-theme="dark"] .header-top .mobile-menu li:hover > a,
    :root:root[data-theme="dark"] .header-top .mobile-menu li > a:hover { background-color: transparent; }
    :root:root[data-theme="dark"] .header-top .mobile-menu > li:is(:hover, :focus-within) > a,
    :root:root[data-theme="dark"] .header-top .mobile-menu .cd-mobile-submenu > li:hover > a { color: var(--cd-theme-green); }
}

/* Phone review deck: the last visible line sat under a bottom fade and looked
   cut off. Leave only the side fade that leads into "Read more". */
:root:root[data-theme="dark"] body .provenResults-section .cd-reviews-deck .provenResults-box[data-overflow="true"] .proven-desc::after { background-image: none; }

/* Testimonials page: the "Keep scrolling…" section kept its light-mode
   white fade and tinted glows as a band across the dark page. The base rule
   is !important, so this one has to be as well. */
:root:root[data-theme="dark"] section.cd-partners,
:root:root[data-theme="dark"] section.cd-partners.is-in { background-image: none !important; }

/* ==========================================================================
   CLIENT REVIEW FIXES THAT ARE NOT COLOUR RULES (approved separately).
   These apply in BOTH themes. Each one is small and self-contained; delete a
   numbered block to undo that fix.
   ========================================================================== */

/* 1. Hero story tiles on desktop turned into narrow "pillars" on a slow first
      load. A tile's width came from its picture, so it collapsed to its
      padding until the picture arrived, and before the slider script started
      all tiles were squeezed into one row. Reserve the picture column (270px,
      the size every picture already renders at) and stop the squeeze. */
@media (min-width: 1024px) {
    .home-gallery-section .gallery-slider .gallery-item .gallery-img:not(.mobile-custom-gallery-img) { flex: 0 0 270px; width: 270px; }
    .home-gallery-section .gallery-slider:not(.slick-initialized) { overflow: hidden; }
    .home-gallery-section .gallery-slider:not(.slick-initialized) > .gallery-item { flex: 0 0 auto; }
}
/* On phones and tablets the same pre-script moment stacked all 35 tiles down
   the page (about 10,000px) before collapsing into the carousel. Show one. */
@media (max-width: 1023.98px) {
    .home-gallery-section .gallery-slider:not(.slick-initialized) > .gallery-item:nth-child(n+2) { display: none; }
}

/* 2. Hero story tiles on phones: with a long title the "See How We Did It"
      button ran over the mockup, because the text and the picture were both
      pinned to fixed positions. Stack them instead, so the picture takes the
      space that is left. A tile with a standard four-line title is unchanged.
      Applies on the home page and on single case-study pages, which carry
      the same tile strip. */
@media (max-width: 639.98px) {
    body:is(.page-template-page-home, .single-success-story) .home-gallery-section .gallery-slider .slick-slide .gallery-item .gallery-inner { display: flex; flex-direction: column; }
    body:is(.page-template-page-home, .single-success-story) .home-gallery-section .gallery-slider .slick-slide .gallery-item .gallery-content { position: relative; left: auto; right: auto; top: auto; flex: 0 0 auto; margin: 28px 20px 0; }
    body:is(.page-template-page-home, .single-success-story) .home-gallery-section .gallery-slider .slick-slide .gallery-item .gallery-img:not(.mobile-custom-gallery-img) { position: relative; bottom: auto; flex: 1 1 0; min-height: 0; height: auto; margin: 17px 0 -24px; }
    body:is(.page-template-page-home, .single-success-story) .home-gallery-section .gallery-slider .slick-slide .gallery-item .gallery-img:not(.mobile-custom-gallery-img) img { position: absolute; inset: 0; }
}

/* 3. Brand logo strip jumping/restarting. The logos load lazily with no size,
      so each one that arrived widened the strip and reset its speed. Give
      every logo its final width up front (their files are 660x360 unless
      listed). */
.home-brand-section .logo-marquee__logo { aspect-ratio: auto 660 / 360; }
.home-brand-section .logo-marquee__logo:is([src*="NASA."], [src*="University-of-Washington."], [src*="University-of-Pennsylvania."], [src*="Pearson-Fuels."]) { aspect-ratio: auto 684 / 360; }
.home-brand-section .logo-marquee__logo[src*="Layer_1."] { aspect-ratio: auto 656 / 204; }

/* 4. Proven Process: with two columns the ninth step sat alone on the left. */
@media (min-width: 640px) and (max-width: 1023.98px) {
    body.page-template-page-home .process-list ul > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px); }
}

/* 5. Hero story tiles: one button style. Tiles with a light background used a
      dark outlined button, which read as "some have a black outline". They
      now use the same borderless pill, darker so white text stays readable on
      a light tile. */
:root:root .home-gallery-section .gallery-button a.primary-btn.bluetype,
:root:root .home-gallery-section .gallery-button a.primary-btn.bluetype:not(:hover) { background-color: rgb(0 0 0 / 60%); color: #fff; border-color: transparent; }
:root:root .home-gallery-section .gallery-button a.primary-btn.bluetype:hover { background-color: rgb(39 143 46); color: #fff; border-color: transparent; }

/* 6. Phone review cards: no fade across the bottom of the last line in either
      theme, only the side fade that leads into "Read more". */
:root:root body .provenResults-section .cd-reviews-deck .provenResults-box[data-overflow="true"] .proven-desc::after { background-image: none; }

/* 7. Review "Read more" popup on phones and tablets: stop animating the large
      soft shadow while the popup grows; the shadow simply appears. The timing
      of the grow itself is unchanged. (The base rule is !important.) */
@media (max-width: 1023.98px) {
    body .provenResults-pop { transition: top 0.38s cubic-bezier(0.22, 1, 0.36, 1), left 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1), height 0.38s cubic-bezier(0.22, 1, 0.36, 1), padding 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease !important; }
}

/* ==========================================================================
   Round 10 - QA deck of 14 Nov (both themes, not colour rules)
   ========================================================================== */

/* 1. Case-study Results on phones and small tablets. The list was a fixed
      two-column grid with 48px headings, so a heading made of words
      ("Widespread Engagement") pushed both columns off the screen. The list
      now wraps: two results sit side by side when both fit, and a result
      whose heading needs more room takes a row of its own. Below 482px the
      heading also scales with the screen so one long word still fits. */
@media (max-width: 767.98px) {
    .single-success-story .resultOutcome-list ul { display: flex; flex-wrap: wrap; justify-content: center; }
    .single-success-story .resultOutcome-list ul li { flex: 1 1 calc(50% - 5px); box-sizing: border-box; }
    .single-success-story .resultOutcome-list ul li:last-child { flex: 0 0 100%; max-width: none; margin: 0; }
    .single-success-story .resultOutcome-list ul li:last-child :is(h4, p) { max-width: 250px; }
    .single-success-story .resultOutcome-list ul li h3 { font-size: clamp(28px, calc((100vw - 40px) / 9.2), 48px) !important; overflow-wrap: break-word; }
    .single-success-story .resultOutcome-list ul li :is(h4, p) { max-width: 100%; overflow-wrap: break-word; }
}

/* 2. The closing consultation button (FAQ, Pricing and the other pages that
      use it) ran past the screen edge on 320px phones because its label could
      not wrap. Below 360px the label wraps onto two lines. */
@media (max-width: 359.98px) {
    :root:root .scheduleNow-btn a.primary-btn { white-space: normal; text-align: center; max-width: 100%; height: auto; min-height: 44px; }
}

/* 3. Pricing cards: the button label was wider than its button below 340px. */
@media (max-width: 339.98px) {
    .pricing-box .pricing-read-article-link a.pricing-btn { white-space: normal; text-align: center; height: auto; min-height: 50px; }
}

/* 4. Case-study pages: the banner title is now the page's <h1> (it was an
      <h2>, and the page had no main heading). These rules give it exactly
      the look it had as an <h2>, at every breakpoint and in both themes. */
.all-stories h1.cd-case-title { color: #323232; line-height: 1.1; font-weight: 700; font-size: 54px; margin: 0 0 10px; letter-spacing: 0.04em; }
@media (min-width: 1280px) and (max-width: 1439px) { .all-stories h1.cd-case-title { font-size: 48px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .all-stories h1.cd-case-title { font-size: 40px; } }
@media (min-width: 768px) and (max-width: 1023px) { .all-stories h1.cd-case-title { font-size: 38px; } }
@media (max-width: 767px) { .all-stories h1.cd-case-title { font-size: 30px; } }
@media (max-width: 575px) { .all-stories h1.cd-case-title { font-size: 24px; } }
:root[data-theme="dark"] .all-stories h1.cd-case-title { color: var(--cd-theme-ink); }

/* Round 11 - logo wordmark on hover (both themes, header and footer).
   The green tint is masked by the wordmark image at "contain", which the
   browser rounds down to whole pixels, so the tint came out about 2px
   narrower than the wordmark underneath and the wordmark showed as an edge
   on every letter (white in dark mode). The tint box is the same size as
   the image, so the mask now fills the box. Paint only, no layout change. */
.staging-logo .cd-wordmark .cd-wordmark__tint { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }

/* Round 12 - Testimonials "Trusted by" logo wall, dark mode only.
   Reference (.logo-wall-card in dark): logos are inverted to light, the
   card runs from a blue-tinted top (#1c243c) to the panel colour at 75%
   and carries the soft panel shadow instead of the light-mode blue glow. */
:root[data-theme="dark"] .cd-trusted-brands .cd-trusted-brands__card {
    background-image: linear-gradient(180deg, #1c243c 0%, #171b21 75%);
    box-shadow: 0 14px 44px -26px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] .cd-trusted-brands__card .cd-trusted-brands__logo { filter: invert(1); }
/* The accent in the heading: the earlier #7bd77f rule lost to a longer selector. */
:root:root[data-theme="dark"] .cd-trusted-brands h2.cd-trusted-brands__title span { color: #7bd77f; }

/* Review-platform logos (Testimonials) and endorsement logos (Book Your
   Consultation), dark mode only. These logos are drawn for light
   backgrounds; the reference puts each on a white plate in dark mode
   (white fill, 6px corners, 8px spread). Paint only: the plate is a fill
   plus a spread shadow, so nothing moves. On the Book cards only 5px is
   free under the logo, so the spread there is 4px. */
:root[data-theme="dark"] .cd-platforms img.cd-platform__logo {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 0 0 8px #fff;
}
:root[data-theme="dark"] .consultation-endorsements .review-logo-div img.review-logo {
    background-color: #fff;
    box-shadow: 0 0 0 4px #fff;
}

/* Case-study banner logo, dark mode only. 62 of the 118 client logos are
   black or dark artwork and disappeared on the dark page. The reference
   puts every case logo on the same white plate, except the five drawn for
   dark backgrounds, which stay bare. FAST also stays bare here: its white
   parts vanish on a white plate. Paint only (fill + spread shadow). */
:root[data-theme="dark"] .stories-logo img {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 0 0 8px #fff;
}
:root[data-theme="dark"] .stories-logo img:is([src*="mister-softee"], [src*="bedmatch-logo-color"], [src*="tast-logo-pink"], [src*="mathdistract-logo-white"], [src*="cc-logo"], [src*="fast-logo"]) {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Round 13 - light/dark switch below 1280px (both themes), and the open
   drawer's dark colours.
   The header switch was only shown from 1280px, so phones and tablets had
   no switch in the header at all. The reference keeps it inside the open
   menu on the phone row: at the right end on phones, straight after the
   number from 640px. The markup is unchanged (the switch is the last item
   of the same list), so it is placed with CSS only.
   (Round 17: the Testimonials template now has the same drawer, so these
   rules apply there too.) */
@media (max-width: 1279.98px) {
    .header-top .header-consultation ul > li.cd-theme-toggle-item { display: block; }
    .header-top .header-consultation button.cd-theme-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin: -2px 0;
    }
}
@media (max-width: 639.98px) {
    .header-top .header-consultation ul { position: relative; }
    .header-top .header-consultation ul > li.cd-theme-toggle-item { position: absolute; top: 0; right: 0; }
}
@media (min-width: 640px) and (max-width: 1279.98px) {
    .header-top .header-consultation ul > li:first-child { order: -2; }
    .header-top .header-consultation ul > li.cd-theme-toggle-item { order: -1; margin-right: auto; }
}
/* Footer band on phones: switch centred above the copyright line, as on the
   reference (from 640px they already share one centred row). */
@media (max-width: 639.98px) {
    .footer-bottom .copy-right { flex-direction: column-reverse; gap: 12px; }
    /* The band's go-top ring is only for 1024-1535px. Other pages already hide it
       here; the Testimonials template did not, and it would take a row of its own. */
    .footer-bottom .copy-right > .footer-back-to-top--band { display: none; }
}
/* Open drawer in dark mode: the reference panel is the raised surface with
   line-coloured edges (it was the page surface with light grey edges), and
   the expanded sub-menu inside it has no fill of its own. */
@media (max-width: 1279.98px) {
    :root:root[data-theme="dark"] .header .header-top .header-right {
        background-color: #171b21;
        border-color: var(--cd-theme-line);
    }
    :root:root[data-theme="dark"] .header .header-top .nav-container ul.cd-mobile-submenu { background-color: transparent; }
}

/* Round 15 - Testimonials case slider: type sizes below 768px (both themes).
   The slide text kept its desktop sizes on phones (title 44px, paragraph
   19px, figures 44px). These are the reference's sizes and leading:
   title 26px (32px from 640px), paragraph 16px, figures 30px, figure labels
   14px (13px from 640px), press note 14px. Type only: no spacing, widths or
   colours change, and the home page slider is not affected. */
@media (max-width: 767.98px) {
    
    
    /* 30px from 390px up; below that the figures shrink with the screen, as the reference's fit-to-row does */
    
    
    
}
@media (max-width: 639.98px) {
    
    
}

/* Round 16 - Testimonials template: footer back-to-top rings.
   The footer has two back-to-top buttons (under the social icons and in the
   legal band). Other pages style them in vercel-animation.css and
   clone-sync.css, which this template does not load, so both showed as bare
   4px slivers with a white edge. Same ring as on the other pages: under the
   social icons below 1024px, at the right end of the legal band from 1024px.
   custom.js gives them their click on this template. */
body.page-template-page-testimonials-new .footer-back-to-top {
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    min-width: 66px;
    min-height: 66px;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid #7f7e76;
    border-radius: 50%;
    background: transparent;
    color: #7f7e76;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
body.page-template-page-testimonials-new .footer-back-to-top:hover { border-color: #fff; color: #fff; }
body.page-template-page-testimonials-new .footer-back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.page-template-page-testimonials-new .footer-back-to-top .footer-back-to-top-icon { display: block; width: 52px; height: 52px; }
body.page-template-page-testimonials-new .footer-top .footer-back-to-top { display: flex; margin: 24px auto 0; }
body.page-template-page-testimonials-new .footer-top .footer-back-to-top:hover { transform: translateY(-2px); }
body.page-template-page-testimonials-new .footer-bottom .footer-back-to-top--band { display: none; }
@media (min-width: 1024px) {
    body.page-template-page-testimonials-new .footer-top .footer-back-to-top { display: none; }
    body.page-template-page-testimonials-new .footer-bottom { position: relative; }
    body.page-template-page-testimonials-new .footer-bottom .footer-back-to-top--band {
        display: flex;
        position: absolute;
        top: 50%;
        right: 48px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        transform: translateY(-50%);
    }
    body.page-template-page-testimonials-new .footer-bottom .footer-back-to-top--band .footer-back-to-top-icon { width: 79%; height: 79%; }
}

/* Round 17 - Testimonials template: the same mobile header and drawer as every
   other page (logo, "Book Your Consultation", menu button on the right; drawer
   below 1280px). This template does not load clone-sync.css, where those rules
   live, so it was still showing the theme's older mobile header (menu button on
   the left, logo centred). The rules below are clone-sync.css's header and
   drawer rules, copied unchanged; :where() keeps each selector's specificity
   exactly as in the source, and nothing here applies to any other template.
   Only the range below 1280px is covered - the desktop header is untouched.
   custom.js carries the matching drawer script for this template.
   Generated from clone-sync.css; if a header rule changes there, mirror it here. */
@media (min-width: 1201px) and (max-width: 1279px) {
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu { display: block; }
    :where(body.page-template-page-testimonials-new) .menu-footer { display: block; }
    :where(body.page-template-page-testimonials-new) .dog-close-box { display: flex; }
    :where(body.page-template-page-testimonials-new) .mobile-menu { display: block !important; }
    :where(body.page-template-page-testimonials-new) .header-right.cd-nav-open { display: block; }
    :where(body.page-template-page-testimonials-new) .header-right { display: none; }
    :where(body.page-template-page-testimonials-new) .header-right.menu-open { display: block; }
    :where(body.page-template-page-testimonials-new) .mob-menu { display: block; background: url(../images/mob-icon.png) center center no-repeat; padding: 10px 12px; font-size: 16px; color: #000; border-radius: 0px; cursor: pointer; text-align: left; font-size: 0; line-height: 0; cursor: pointer; width: 40px; height: 30px; position: absolute; top: 50%; left: 15px; transform: translateY(-50%); }
    :where(body.page-template-page-testimonials-new) .desktop-menu { display: none !important; }
    :where(body.page-template-page-testimonials-new) .header-right { position: fixed; top: 0; right: 0px; left: 0px; text-align: left; z-index: 9; display: none; background: var(--white-color); padding: 30px; text-align: center; overflow: auto; height: auto; padding: 20px; }
    :where(body.page-template-page-testimonials-new) .dog-close-box { display: flex; justify-content: space-between; align-items: center; }
    :where(body.page-template-page-testimonials-new) .nav-container { padding: 30px 0; gap: 20px; flex-direction: column; padding: 15px 0; }
    :where(body.page-template-page-testimonials-new) .header-menu { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
    :where(body.page-template-page-testimonials-new) .header-consultation ul { display: block; }
    :where(body.page-template-page-testimonials-new) .nav-container ul { margin: 0px; padding: 0px; width: 100%; display: block; column-gap: 0px; }
    :where(body.page-template-page-testimonials-new) .nav-container>ul>li { display: block; padding: 0px 0px; margin: 0px; font-size: 20px; width: 100%; margin: 0px !important; font-weight: 500; position: relative; }
    :where(body.page-template-page-testimonials-new) .nav-container>ul>li:hover { background: #fff; }
    :where(body.page-template-page-testimonials-new) .nav-container>ul>li>a { border-radius: 0px; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: #212227; display: block; padding: 8px 15px; }
    :where(body.page-template-page-testimonials-new) .header-consultation ul a.header-phone { display: none; }
    :where(body.page-template-page-testimonials-new) .nav-container ul li:hover>a { color: #212227; background: #fff; }
    :where(body.page-template-page-testimonials-new) .nav-container ul li .submenu { display: none; position: static; width: 100%; text-align: left; }
    :where(body.page-template-page-testimonials-new) .nav-container ul li .submenu li a { padding: 5px 0px 5px 25px; }
    :where(body.page-template-page-testimonials-new) .nav-container .nav-icon { position: absolute; right: 0px; top: 0px; width: 45px; height: 40px; background-repeat: no-repeat; cursor: pointer; z-index: 99; }
    :where(body.page-template-page-testimonials-new) .nav-container .nav-icon.open { background: url(../images/menu-plus.png) center center no-repeat; }
    :where(body.page-template-page-testimonials-new) .nav-container .nav-icon.close { background: url(../images/menu-minus.png) center center no-repeat; opacity: 1; }
    :where(body.page-template-page-testimonials-new) .nav-container li .submenu li { border-bottom: 0px; padding: 0px; background: #fff; }
    :where(body.page-template-page-testimonials-new) .nav-container li .submenu li a { padding-bottom: 8px; }
    :where(body.page-template-page-testimonials-new) .nav-container li .submenu li:hover a { background: #fff; }
    :where(body.page-template-page-testimonials-new) .nav-container .menu-main-menu-container { display: none; text-align: left; }
    :where(body.page-template-page-testimonials-new) .header-consultation ul a.book-btn { padding: 12px 30px; display: inline-block; border-radius: 40px; font-size: 16px; }
    :where(body.page-template-page-testimonials-new) .menu-close { cursor: pointer; }
    :where(body.page-template-page-testimonials-new) .header { z-index: 99; }
    :where(body.page-template-page-testimonials-new) .header-top .container { justify-content: center; }
    :where(body.page-template-page-testimonials-new) .nav-container .menu-stories-item .seeHowDid-btn a { font-size: 14px; height: 44px; }
}
:where(body.page-template-page-testimonials-new) .cd-mobile-cta { display: none; }
@media (max-width: 1279.98px) {
    :where(body.page-template-page-testimonials-new) .header-top { display: flex; align-items: center; gap: 12px; min-height: 80px; padding-block: 0; padding-inline: clamp(16px, 4vw, 48px); }
    :where(body.page-template-page-testimonials-new) .header-top > .container { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; width: auto; max-width: none; min-width: 0; margin: 0; padding: 0; }
    :where(body.page-template-page-testimonials-new) .header-top .logo { margin: 0; }
    :where(body.page-template-page-testimonials-new) .header-top .cd-mobile-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-left: auto; padding: 6px 28px; border-radius: 99px; background: #4262ff; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.3; text-align: center; white-space: nowrap; }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu { position: relative; inset: auto; transform: none; order: 3; flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dedede; border-radius: 50%; background: none; padding: 0; }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu span, :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::before, :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::after { width: 20px; height: 2px; display: block; background: #212227; transition: transform .2s, background .2s; }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::before, :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::after { content: ''; position: absolute; }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::before { transform: translateY(-6px); }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::after { transform: translateY(6px); }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu[aria-expanded=true] span { background: transparent; }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu[aria-expanded=true] span::before { transform: rotate(45deg); }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu[aria-expanded=true] span::after { transform: rotate(-45deg); }
    :where(body.page-template-page-testimonials-new) .header-top .header-right { display: none !important; position: fixed !important; inset: var(--cd-drawer-top, 80px) 0 auto !important; max-height: calc(100dvh - var(--cd-drawer-top, 80px)); height: auto !important; overflow: auto; overscroll-behavior: contain; padding: 8px clamp(16px,4vw,48px) 12px !important; border-block: 1px solid #dedede; background: #fff; box-shadow: 0 26px 70px -30px #08235c29; text-align: left; }
    :where(body.page-template-page-testimonials-new) .header-top .header-right.cd-nav-open { display: block !important; animation: cd-drawer-in .14s ease-out both; }
    :where(body.page-template-page-testimonials-new) .header-top .header-right :is(.dog-close-box,.menu-footer,.desktop-menu) { display: none !important; }
    :where(body.page-template-page-testimonials-new) .header-top .nav-container { padding: 0 !important; display: block; }
    :where(body.page-template-page-testimonials-new) .header-top .nav-container .mobile-menu { display: block !important; margin: 0; padding: 0; width: 100%; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu > li { display: block; margin: 0 !important; padding: 0 !important; width: 100%; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu > li.home-menu { display: none; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu > li > a { display: block; padding: 10px 12px !important; border: 0; border-radius: 12px; color: #5b5b5b; font-size: 16px; font-weight: 500; line-height: 24px; text-align: left; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu > li > a:hover { background: #f5f5f5; color: #278f2e; }
    :where(body.page-template-page-testimonials-new) .header-top .header-consultation { border-top: 1px solid #dedede; padding-top: 12px; margin-top: 8px; }
    :where(body.page-template-page-testimonials-new) .header-top .header-consultation ul { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    :where(body.page-template-page-testimonials-new) .header-top .header-consultation ul a.header-phone { display: block; padding: 8px 12px; font-size: 16px; }
    :where(body.page-template-page-testimonials-new) .header-top .header-consultation ul a.book-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 28px; border-radius: 99px; font-size: 16px; font-weight: 500; line-height: 1.5; text-align: center; }
}
@media (min-width: 640px) and (max-width: 1279.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .header-right { padding-block: 16px !important; }
    :where(body.page-template-page-testimonials-new) .header-top .nav-container .mobile-menu { display: grid !important; grid-auto-flow: column; grid-template-rows: repeat(4,auto); grid-template-columns: repeat(2,minmax(0,320px)); column-gap: 24px; row-gap: 4px; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu > li > a { padding-block: 12px !important; }
    :where(body.page-template-page-testimonials-new) .header-top .header-consultation ul { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 639px) {
    :where(body.page-template-page-testimonials-new) .header-top .logo :is(.logo-text,.cd-wordmark) { display: none !important; }
    :where(body.page-template-page-testimonials-new) .header-top .logo { width: 40px; flex: 0 0 40px; }
}
@media (max-width: 491.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .cd-mobile-cta { flex: 0 1 auto; min-width: 0; margin-inline: auto; }
}
@media (max-width: 400px) {
    :where(body.page-template-page-testimonials-new) .header-top .cd-mobile-cta { padding-inline: 28px !important; }
}
@media (max-width: 359.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .cd-mobile-cta { padding-inline: 14px !important; font-size: 14px; }
}
@media (max-width: 1279.98px) {
    html.cd-menu-locked { overflow: hidden !important; }
}
:where(body.page-template-page-testimonials-new) .cd-cta-label--drawer { display: none; }
@media (max-width: 1279.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .header-right .cd-cta-label--desktop { display: none; }
    :where(body.page-template-page-testimonials-new) .header-top .header-right .cd-cta-label--drawer { display: inline; }
}
@keyframes cd-drawer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    :where(body.page-template-page-testimonials-new) .header-top .header-right.cd-nav-open { animation: none; }
    :where(body.page-template-page-testimonials-new) .header-top .mob-menu span, :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::before, :where(body.page-template-page-testimonials-new) .header-top .mob-menu span::after { transition: none; }
}
@media (max-width:1279.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu li.cd-has-submenu { position: relative; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu li.cd-has-submenu > a { padding-right: 48px !important; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-submenu-toggle { position: absolute; top: 2px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #5b5b5b; cursor: pointer; }
    :where(body.page-template-page-testimonials-new) .cd-submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
    :where(body.page-template-page-testimonials-new) .cd-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    :where(body.page-template-page-testimonials-new) .cd-submenu-toggle:focus-visible { outline: 2px solid #278f2e; outline-offset: -2px; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-mobile-submenu { position: static !important; width: auto !important; padding: 0 12px 12px 24px; margin: 0; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-mobile-submenu[hidden] { display: none !important; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-mobile-submenu:not([hidden]) { display: block !important; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-mobile-submenu a { display: block; padding: 10px 0; color: #5b5b5b; font-size: 14px; line-height: 20px; }
}
@media (prefers-reduced-motion:reduce) {
    :where(body.page-template-page-testimonials-new) .cd-submenu-toggle svg { transition: none; }
}
@media (min-width:492px) and (max-width:639.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .logo :is(.logo-text,.cd-wordmark) { display: block !important; }
    :where(body.page-template-page-testimonials-new) .header-top .logo { width: auto; flex: 0 0 auto; }
}
@media (max-width:1279.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-mobile-submenu { box-shadow: none; background: transparent; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-mobile-submenu > li { padding: 0; margin: 0; }
    :where(body.page-template-page-testimonials-new) .header-top .mobile-menu .cd-mobile-submenu > li:hover > a { color: #278f2e; }
}
@media (min-width:492px) and (max-width:639.98px) {
    :where(body.page-template-page-testimonials-new) .header-top .logo .logo-text { max-width: 140px; }
}

/* Round 17 (2) - Testimonials case slider: the picture frame, matched to the
   reference at every width. Reference frame: 8:9, corners 5% of its width
   (27px at most), image covering it from the centre.
   - side by side (from 1024px): the reference's size (533x600 from 1440px,
     smaller below), centred in its column and vertically centred against
     the text (it was up to 604x667 and stuck to the top below 1440px);
   - stacked on tablets (portrait): 60% of the screen height tall, as on the
     reference (it was fixed at 380px wide);
   - stacked on phones: an inset rounded tile, 40px in from each side, instead
     of a full-bleed square-cornered picture, with the reference's 56px above.
   Only the frame changes. The slide order, text column and arrows are as they
   were; the phone arrows keep their distance below the picture, so their
   position follows the frame's new height. */

@media (min-width: 1024px) {
    
    
}
/* 1024-1439px: the reference frame grows from 252px with the window and is never taller than 60% of the screen */
@media (min-width: 1024px) and (max-width: 1439.98px) {
    
}
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    
}
@media (max-width: 767px) {
    
    
}
@media (max-width: 767px) and (orientation: portrait) {
    
}

/* Round 18 - Book Your Consultation, review cards below 1024px (the swipe
   deck), both themes. The quote is seven lines of 24.375px (170.625px) but
   its box was 180.375px tall, so the top of an eighth line showed and
   "Read more", pinned to the box's bottom, sat 10px below the seventh line.
   The box is now exactly seven lines and the link sits on the seventh line.
   The home page deck (eight lines in a 208px box) was already aligned. */
body.page-template-page-book-consultation .provenResults-section .cd-reviews-deck .proven-desc { max-height: 170.625px !important; }
body.page-template-page-book-consultation .provenResults-section .cd-reviews-deck .proven-read-more { top: 146.25px !important; bottom: auto !important; }

/* Round 19 - Testimonials case slider, stacked layout (portrait, below 1024px):
   the reference's order - logo, title, picture, arrows, paragraph, figures,
   note, button - instead of picture first with the arrows beside the title.
   - The slide's row becomes a single column and its two wrappers are made
     transparent to layout (display: contents), so the picture can be ordered
     between the title and the paragraph. No markup or script changes.
   - The logo sits in a fixed 56px-high box and every title reserves the height
     of the tallest one (--cd-case-title-h, measured by custom.js; the fallback
     below is used until then), so the picture is at the same height on every
     slide and the arrows, which live outside the slides, sit 24px under it.
     Their position is computed here from those same values: 135px of logo
     block + title height + 40px + picture height + 24px.
   - The text column is 56px in from the screen edge on phones (it was 68px to
     leave room for the arrows beside the title).
   Nothing here applies from 1024px or in landscape. */
@media (max-width: 1023px) and (orientation: portrait) {
    
    
    
    
    
    
    
    
    
    
    /* the text rows: the column that the content wrapper's padding used to give them */
    
    /* a slide without a logo still keeps the logo block's 135px, so its picture lines up with the others */
    
    /* arrows: a centred pair 24px under the picture */
    
}
@media (min-width: 640px) and (max-width: 767px) and (orientation: portrait) {
    
}
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    
}

/* Round 20 - Testimonials: page heading sizes below 1024px (both themes).
   Below 1024px these headings kept desktop or near-desktop sizes (hero
   40-42px, section headings 48px, awards 40px). The reference uses 32px for the hero and 26px
   for section headings below 640px, and 36px / 32px from 640px to 1023px,
   with line heights 1.15 (hero) and 1.2.
   Letter spacing: the three headings that carry a fixed spacing (1.92px on a
   48px heading, 3.2px on a 40px one) keep the same proportion at the smaller
   sizes (0.04em and 0.08em); the reference's own spacing is not copied.
   From 1440px the sizes already equal the reference (52 / 48 / 40px). At
   1024-1439px staging is still larger (52 / 48px against 40 / 38px); that
   range is left alone because the request was for mobile.
   Type only. The slider title is handled in rounds 15 and 19; the closing
   call-to-action heading is a component shared with other pages and is not
   touched. */
@media (max-width: 1023.98px) {
    body.page-template-page-testimonials-new h1.cd-hero__headline { font-size: 36px; line-height: 1.15; }
    body.page-template-page-testimonials-new h2:is(.cd-platforms__heading, .cd-trusted-brands__title) { font-size: 32px; line-height: 1.2; letter-spacing: 0.04em; }
    body.page-template-page-testimonials-new h2.cd-section-title { font-size: 32px; line-height: 1.2; }
    body.page-template-page-testimonials-new h2.cd-section-title.cd-section-title--secondary { letter-spacing: 0.08em; }
}
@media (max-width: 639.98px) {
    body.page-template-page-testimonials-new h1.cd-hero__headline { font-size: 32px; }
    body.page-template-page-testimonials-new h2:is(.cd-platforms__heading, .cd-trusted-brands__title, .cd-section-title) { font-size: 26px; }
}

/* Round 26 - form error messages in dark mode (client screenshot: white boxes with pale text).
   The form plugin keeps its near-white error boxes (#fff9f9) in dark mode while the dark rules above turn the text
   inside them pale (the rule near line 113 colours every .gfield_description; the summary heading takes the dark
   heading colour), so the summary read at 1.5:1 and "This field is required." at 1.4:1.
   Dark only: the two boxes become a faint red tint on the dark page and their text uses the red this file already
   uses for the required marker (#ffa4a1). Nothing changes in light mode; nothing else in the form changes. */
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gform_validation_errors { background-color: rgb(255 164 161 / 8%); border-color: rgb(255 164 161 / 55%); box-shadow: none; }
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gform_validation_errors > h2,
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon,
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gform_validation_errors > ol a { color: #ffa4a1 !important; }
:root[data-theme="dark"] .gform_wrapper.gravity-theme .gfield_description.validation_message { background-color: rgb(255 164 161 / 8%); border-color: rgb(255 164 161 / 55%); color: #ffa4a1 !important; }

/* Round 27 - Testimonials: text scrolling inside its own section on tablets (both themes).
   testimonial-page.css gives .cd-shell `overflow-x: hidden` on tablets (768-1023px portrait, and landscape up to
   1023px wide or 600px tall). A hidden x axis turns the y axis into a scroll box, and blocks further down that are
   still waiting for their reveal stick out below it, so a touch drag scrolled the wrapper itself and pushed the
   heading up under the section's top edge. `clip` hides the same sideways overflow without creating a scroll box.
   Same media conditions as the original rules, so nothing changes at other sizes; a browser without `clip` keeps
   the old rule. */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait), (max-width: 1023px) and (orientation: landscape), (max-height: 600px) and (orientation: landscape) {
    body.page-template-page-testimonials-new .cd-shell { overflow-x: clip !important; }
}

/* Round 27 (2) - closing four-picture cluster: third tile ran under the fourth (both themes).
   vercel-css.css places the four tiles by percentages, as the reference does (third tile: 44.3% wide, fourth starts
   at 56%). On the pages that carry .services-bottom-imgs, styles.css still gives the third tile a minimum width
   (329px from 1400px, 246px from 1280px), which is wider than 44.3% of the cluster there, so it overlapped the
   fourth tile by up to 38px. Below 1280px the minimum (170 / 120px) is already smaller than the percentage width,
   so nothing changes there. Pricing, FAQ and Blog already unset it (.bottom-imgs.success-stories-imgs). */
.services-bottom-imgs .banner-bottom-main:not(.ty-hero__art) .bottom-img3 { min-width: 0; }

/* Round 27 (3) - closing four-picture cluster: fourth tile too narrow on small tablets (both themes).
   Same kind of leftover as (2): styles.css caps `.success-stories-imgs .bottom-img4` at 148px below 768px, while
   vercel-css.css sizes that tile at 44% of the cluster like the reference (272px at 744px wide). Where 44% is
   already under 148px the cap never applied, so nothing changes there. */
.success-stories-imgs .banner-bottom-main:not(.ty-hero__art) .bottom-img4 { max-width: none; }

/* Round 29 (1) - hero app slider: no darker shadow on hover (both themes).
   styles.css grows a side tile's drop shadow on hover (8px 8px 20px at 30% black) on top of the white wash. The
   reference keeps the resting shadow on hover. Same selector and media condition as the original rule; only the drop
   shadow goes back to the resting value, the white wash stays as it was. */
@media (hover: hover) {
    :root .home-gallery-section div.slick-active:not(.slick-center) .gallery-inner:hover {
        box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.25) 0 0 0 999px inset !important;
    }
}

/* Round 29 (2) - home, "Are You Ready for Results Like These?": the accent words had no colour rule (both themes).
   Same green as the other section headlines (the token switches with the theme). */
body.page-template-page-home .ready-achieve h2 > span:not(.vx-word) { color: var(--cd-theme-green); }

/* Round 31 - Testimonials case slider titles: <h2> -> <h3> (page-testimonials-new.php). clone-sync.css is not loaded on that
   page, so the rules that styled these titles through "h2" are repeated here for the new tag, limited to that page;
   :where() keeps the original specificity, so the titles look the same. */
/* from bootstrap.css */ 
/* from bootstrap.css */ 
/* from bootstrap.css */ @media (min-width: 1200px) {  }
/* from styles.css */ 
/* from styles.css */ 
/* from styles.css */ @media (min-width: 1024px) and (max-width: 1279px) {  }
/* from styles.css */ @media (min-width: 768px) and (max-width: 1023px) {  }
/* from styles.css */ @media (max-width: 767px) {  }
/* from styles.css */ @media (max-width: 767px) {  }
/* from styles.css */ @media (max-width: 575px) {  }
/* from print.css */ @media print {  }
/* from print.css */ @media print {  }

/* Round 35 - client QA feedback.
   (1) Book page budget question ("What's Your Budget?"): the question and its asterisk use the page ink in both themes
       (black in light, white in dark), at rest and in the validation-error state, never red. The choices and the
       validation message keep their own colours. */
:root body.page-template-page-book-consultation .gform_wrapper.gravity-theme fieldset.gfield--type-radio > legend.gfield_label,
:root body.page-template-page-book-consultation .gform_wrapper.gravity-theme fieldset.gfield--type-radio > legend.gfield_label :is(.gform-field-label__text, .gfield_required) { color: var(--cd-theme-ink); }
/* (2) Blog listing, category pages and related posts, dark mode: the "Go to Article" arrow is drawn in #212227
       (blog-arrow-right.svg) and vanished on the dark card. Use the blue arrow the home blog cards already use. */
:root:root[data-theme="dark"] body:not(.page-template-page-home) .blog-read-article-link .blog-secondary-btn,
:root:root[data-theme="dark"] body:not(.page-template-page-home) .blog-read-article-link .blog-secondary-btn:hover { background-image: url(../images/arrow-right.svg); }
/* (3) FAQ, dark mode: the open question had the same fill as the closed ones. Give it the raised fill and blue question
       text, as light mode does (tinted fill + blue question). */
:root:root[data-theme="dark"] .faq-item.active :is(.faq-question, .faq-answer) { background-color: var(--cd-theme-raised); }
:root:root[data-theme="dark"] .faq-item.active .faq-question { color: var(--cd-theme-blue); }
/* (4) Track Record case slider statistics, dark mode, phones (iPhone portrait): white figures. */
@media (max-width: 767.98px) {
    :root:root:root[data-theme="dark"] body .cd-features-slider .cd-features-slider__slide[class] .cd-features-slider__point-num.cd-features-slider__point-num { color: #fff !important; }
}

/* Track Record statistics follow the coloured heading accent on every viewport. */
:root:root:root[data-theme="dark"] :is(body.page-template-page-home, body.page-template-page-testimonials-new) .cd-features-slider .cd-features-slider__slide[class] .cd-features-slider__point-num.cd-features-slider__point-num { color: var(--cd-slide-accent, var(--feature-bg-color)) !important; }

/* Round 36 - client QA follow-up (meeting recap 20 Nov + design kits).
   (1) Blog, featured posts, dark mode, phones (iPhone 4 / 5 / 8; recap "Blog on mobile"): below 768px the light theme
       paints the card on .feature-box (rounded, 30px apart) and leaves the column transparent; the dark rule near line
       729 also painted the column, so the two featured cards merged into one square-edged slab with no gap between
       them or before the next card. The "Featured Content" pill was 16% white, so the label read straight over the
       artwork; it keeps the light theme's white pill and blue text (it sits on the image in both themes). */
@media (max-width: 767.98px) {
    :root:root[data-theme="dark"] .feature-posts-wrapper > [class*="col-"] { background-color: transparent; }
}
:root:root[data-theme="dark"] .feature-box .featured-label { background-color: #fff; color: #3f65ff; }

/* (2) Track Record case logos, dark mode (General 7, Duo Portrait 1; recap: "spacing and legibility of Cuzzo and
       C.A. Short, a consistent dark treatment, check ForeveRx"). Leo's partner-logo kit (01-Partner-Logos) supplies a
       dark variant for Cuzzo, C.A. Short, ForeveRx and CraftCore; its README says to start with these four on the Home
       and Testimonials Track Record and to drop the white plate only where a dark variant exists. In dark mode the
       light file is swapped for the kit's dark SVG with content:url() (assets/images/partner-logos/), so the <img>, its
       src and the size rules keyed on the file name stay as they are; light mode keeps the current media files. The
       other logos keep the Round 3 white plate. Supported in Chrome, Safari and Firefox 96+. */
:root:root[data-theme="dark"] .cd-features-slider img.cd-features-slider__logo:is([src*="/cuzzo_logo_dark"], [src*="/cuzzo."]) {
    content: url("../images/partner-logos/cuzzo-logo-light-5babdf.svg");
}
:root:root[data-theme="dark"] .cd-features-slider img.cd-features-slider__logo:is([src*="/cashort_logo_color"]) {
    content: url("../images/partner-logos/cashort-logo-white-9deb50.svg");
}
:root:root[data-theme="dark"] .cd-features-slider img.cd-features-slider__logo:is([src*="/fx-logo-black"]) {
    content: url("../images/partner-logos/fx-logo-white-6ae508.svg");
}
:root:root[data-theme="dark"] .cd-features-slider img.cd-features-slider__logo:is([src*="/cc-blue"]) {
    content: url("../images/partner-logos/cc-blue-a81e19-dark.svg");
}
:root:root[data-theme="dark"] .cd-features-slider img.cd-features-slider__logo:is([src*="/cuzzo_logo_dark"], [src*="/cuzzo."], [src*="/cashort_logo_color"], [src*="/fx-logo-black"], [src*="/cc-blue"]) {
    background-color: transparent;
    border-image-source: none;
    box-shadow: none;
}

/* ==========================================================================
   Round 37 - meeting recap extras (20 Nov).
   ========================================================================== */
/* (1) Book form, "What's Your Budget?" (recap: "consistent validation colors without an error cue on budget choices").
       After a failed submit Gravity Forms turns every answer label of the field red (#c02b0a) in light mode; dark mode
       already kept them in the page ink. The answers keep their normal colour in both themes; the field's "This field
       is required." box still marks the error, as it does for the other fields. */
:root body.page-template-page-book-consultation .gform_wrapper.gravity-theme fieldset.gfield--type-radio.gfield_error .gchoice label {
    color: inherit;
}

/* (2) Blog pagination, dark (recap: "restore dark pagination pills"). Light mode draws the pager as a white pill with
       the current page in blue; the dark rule near line 731 removed the pill and turned the current page the same ink
       as the rest, so "1 2 3 ... 56" was loose text with no current page. Dark now uses the raised card colour for
       the pill, the dark theme blue for the current page (and hover) and the muted grey for the other numbers, as
       light mode pairs a blue current page with grey numbers. */
:root:root[data-theme="dark"] .pagination ul {
    background-color: var(--cd-theme-raised);
    box-shadow: none;
}
:root:root[data-theme="dark"] .pagination :is(a, span):not(.current) {
    color: var(--cd-theme-muted);
}
:root:root[data-theme="dark"] .pagination :is(a:hover, .current) {
    color: var(--cd-theme-blue);
}
/*     Round 38 - General 11: the pale theme blue (#bed0ff) sat too close to the grey numbers (#b2b8c2), so the current
       page still read as not highlighted. Dark uses the brand blue of the dark buttons (--cd-theme-fill, #3f65ff),
       the same blue as the arrow, as light mode does (3.2:1 on the pill; the digits are 24px semibold).
       .page-numbers.current, because the rule above, :is(a:hover, .current), counts as a:hover and outranks .current. */
:root:root[data-theme="dark"] .pagination .page-numbers.current {
    color: var(--cd-theme-fill);
}
/*     The prev / next arrow is the brand blue at 30% (styles.css), pale on white but near-invisible on the dark pill;
       dark shows it at full strength (about 3:1 on the pill). */
:root:root[data-theme="dark"] .pagination a img {
    opacity: 1;
}

/* ==========================================================================
   Round 38 - General 6: Book page "Review Us" logos sometimes black.
   ========================================================================== */
/* GoodFirms-Logo.svg and Google-Logo.svg (media library) are Figma exports: one rect filled with a <pattern> that
   <use>s an embedded base64 PNG. Browsers, Safari above all, can paint such a pattern black while the embedded PNG
   is not decoded (or was purged), which is the black box seen on the Book page; the other six logos are plain
   raster files and never do it. The <img> keeps its src and size rules; content:url() swaps in a PNG of the same
   drawing (the embedded PNG with the pattern transform applied, assets/images/review-logos/). image-set() declares
   it at 8x / 4x so its intrinsic size stays the SVG's 145x21 / 145x50 and the logos keep their exact size. */
img.review-logo[src*="/GoodFirms-Logo.svg"] {
    content: url("../images/review-logos/goodfirms-logo.png");
    content: -webkit-image-set(url("../images/review-logos/goodfirms-logo.png") 8x);
    content: image-set(url("../images/review-logos/goodfirms-logo.png") 8x);
}
img.review-logo[src*="/Google-Logo.svg"] {
    content: url("../images/review-logos/google-logo.png");
    content: -webkit-image-set(url("../images/review-logos/google-logo.png") 4x);
    content: image-set(url("../images/review-logos/google-logo.png") 4x);
}

/* Round 40 - Duo Open 3 on the Testimonials template (it doesn't load clone-sync.css): 640-1023px use the
   44px ring at the right end of the bottom copyright bar, as from 1024px, instead of the 66px ring under the
   social icons. Phones are unchanged. */
@media (min-width: 640px) and (max-width: 1023.98px) {
    body.page-template-page-testimonials-new .footer-top .footer-back-to-top { display: none; }
    body.page-template-page-testimonials-new .footer-bottom { position: relative; }
    body.page-template-page-testimonials-new .footer-bottom .footer-back-to-top--band {
        display: flex;
        position: absolute;
        top: 50%;
        right: 48px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        transform: translateY(-50%);
    }
    body.page-template-page-testimonials-new .footer-bottom .footer-back-to-top--band .footer-back-to-top-icon { width: 79%; height: 79%; }
}
