body.ct-site-design {
    --ct-title-size: clamp(28px, 22px + 1.5vw, 42px);
    --ct-section-title-size: clamp(23px, 19px + .9vw, 31px);
    --ct-card-title-size: clamp(17px, 16px + .25vw, 20px);
    --ct-shell-width: 1180px;
    --ct-gutter: clamp(12px, 2.5vw, 28px);
    --ct-stack: 30px;
    --ct-card-pad: clamp(16px, 3vw, 34px);
    --ct-frame: clamp(12px, 1.6vw, 18px);
}
body.ct-site-design:lang(th) { --ct-body-font: "CT Sarabun", "CT Raleway", sans-serif; }
body.ct-site-design #masthead :is(#ast-desktop-header, #ast-mobile-header, .ast-main-header-wrap, .ast-primary-header-bar, .site-primary-header-wrap) {
    background: #fff !important;
}
/* The header and the content shell meet at a consistent gap on Astra pages. */
body.ct-site-design #page > #masthead + #content {
    margin-block-start: 0;
    padding-block-start: var(--ct-stack);
}
body.ct-site-design #page > #masthead + #content #primary {
    margin-block-start: 0 !important;
    padding-block-start: 0 !important;
}
body.ct-site-design #page > #masthead + #content .site-main > article:first-of-type {
    margin-block-start: 0 !important;
}
body.ct-section-contact #content .site-main .entry-content > .ctc-contact-page {
    padding-block-start: 0 !important;
    background: transparent !important;
}
html body.ct-site-design.ct-site-design,
html body.ct-site-design #page > #content {
    background-color: #f3e5e9 !important;
}
body.ct-site-design #page > #masthead + #content :is(.entry-header, .entry-content) > :nth-child(1 of :not(style, script, link)) {
    margin-block-start: 0 !important;
}
body.ct-site-design #content article:has(.entry-content .ctpb-page-intro) > .entry-header { display: none; }
body.ct-site-design #content .site-main .entry-content .ctpb-page-intro {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 1200px !important;
    min-height: 0 !important;
    margin: 0 auto clamp(16px, 2.2vw, 26px) !important;
    padding: clamp(22px, 4vw, 48px) clamp(18px, 3.5vw, 42px) !important;
    border: 1px solid #ebcfd8 !important;
    border-inline-start: 4px solid #a81845 !important;
    border-radius: 22px !important;
    background: linear-gradient(110deg, #fff7f9, #f0dfe5) !important;
    color: #302433 !important;
    text-align: start !important;
    overflow: visible;
}
body.ct-site-design #content .site-main .entry-content .ctpb-page-intro::before {
    content: attr(data-intro-label);
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 14px;
    padding: 6px 12px;
    border: 1px solid #e5c2ce;
    border-radius: 999px;
    background: #f6e8ed;
    color: #a81845;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    opacity: 1;
    transform: none;
    animation: none;
}
body.ct-site-design #content .site-main .entry-content .ctpb-page-intro::after { content: none; }
body.ct-site-design #content .site-main .entry-content .ctpb-page-intro :is(.ctc-cisco-hero-inner, .wp-block-group__inner-container) {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}
body.ct-site-design #content .site-main .entry-content .ctpb-page-intro :is(h1, h2):first-of-type {
    color: #302433 !important;
    text-align: start !important;
    font-size: var(--ct-title-size) !important;
    line-height: 1.2 !important;
    margin: 0 0 14px !important;
}
body.ct-site-design #content .site-main .entry-content .ctpb-page-intro p {
    color: #604b55 !important;
    text-align: start !important;
    margin: 0 0 8px !important;
}
.ctpb-page-intro :is(.ctc-cream-logo, .ctc-tech-news-eyebrow),
.ctpb-page-intro p:has(~ :is(h1, h2)) { display: none !important; }
.ct-site-design .site-main .entry-content { font-size: clamp(1rem, .96rem + .18vw, 1.1rem); line-height: 1.65; font-weight: 400; }
.ct-site-design .site-main .entry-content :is(p, li) { line-height: inherit; }
body.ct-site-design #content .site-main :is(.entry-title, .entry-content h1) { font-size: var(--ct-title-size) !important; font-weight: 700; line-height: 1.2; }
body.ct-site-design #content .site-main .entry-content h2 { font-size: var(--ct-section-title-size) !important; font-weight: 700; line-height: 1.35; }
body.ct-site-design #content .site-main .entry-content h3 { font-size: var(--ct-card-title-size) !important; line-height: 1.45; }
body.ct-section-home #content .site-main .entry-content .ct-product-slider .ct-slide-copy :is(h1, h2) {
    font-weight: 800 !important;
}
.ct-site-design .site-main .entry-content :is(strong, b) { font-weight: 700; }
.ct-site-design .site-main :is(figcaption, cite) { font-size: .875em; line-height: 1.5; }
.ct-site-design .site-main .entry-header { margin-block-end: var(--ct-stack); }
.ct-site-design .site-main .entry-content > :is(.ct-home-section, .ct-product-slider, .ctc-tech-news-page, .ctc-contact-page, .ct-careers, .ctpb-intro-play, .ctc-vision-mission, .ctc-management-team, #createlcom-teams, .ctc-cream-page, .ctpb-zones-page) {
    box-sizing: border-box;
    width: min(100%, var(--ct-shell-width));
    max-width: var(--ct-shell-width);
    margin-inline: auto;
    margin-block-end: var(--ct-stack);
}
.ct-site-design .site-main .entry-content :is(.ct-home-section, .ctpb-intro-play, .ctc-vision-mission, .ctc-management-team, .ctc-cream-feature, .ctc-cream-section, .ctc-tech-news-feed) {
    padding: var(--ct-card-pad) !important;
    border-radius: var(--ct-frame);
}
.ct-site-design .site-main .entry-content :is(.wp-block-column, .ct-slide-copy, .ct-slide-visual, .ctpb-copy, .ff-el-group) { min-width: 0; }
.ct-site-design .site-main :is(.wp-block-button__link, .ct-slide-link, .ff-btn-submit) { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.ct-site-design .site-main :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) { max-width: 100%; }
body.ct-site-design #masthead :is(#ast-desktop-header #primary-site-navigation-desktop #ast-hf-menu-1, #ast-mobile-header #ast-hf-mobile-menu) > li.menu-item > a.menu-link,
body.ct-site-design #masthead #ast-hf-mobile-menu.main-header-menu > li.menu-item > a.menu-link { font-size: 14px !important; }
.ct-site-design .site-footer :is(.ast-builder-grid-row-container, .ast-footer-copyright) { padding-inline: var(--ct-gutter); }
@media (max-width: 780px) {
    .ct-site-design #content .ast-container { padding-inline: var(--ct-gutter); }
    .ct-site-design .site-main .entry-content > .alignfull { margin-inline: 0; max-width: 100%; }
    .ct-site-design .site-main .entry-content .wp-block-columns { gap: 12px; }
    .ct-site-design #masthead #ast-hf-mobile-menu :is(.menu-link, .ast-menu-toggle) { min-height: 44px; }
    .ct-site-design .site-main .entry-content :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) { font-size: 16px; }
}

/* Typography and spacing measured from the Thai HOME hero and content cards. */
body.ct-home-typography {
    --ct-home-shell: 1160px;
    --ct-home-section-gap: var(--ct-stack);
    --ct-home-section-y: clamp(22px, 4vw, 48px);
    --ct-home-section-x: clamp(16px, 3vw, 38px);
    --ct-home-grid-gap: clamp(12px, 2.3vw, 28px);
}
body.ct-home-typography .site-main .entry-content {
    max-width: var(--ct-home-shell);
    margin-inline: auto;
    font-family: var(--ct-body-font) !important;
    font-size: 16px;
    line-height: 1.8;
}
body.ct-home-typography #content .site-main :is(.entry-title, .entry-content h1) {
    font-family: var(--ct-heading-font) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-block-end: 18px !important;
}
body.ct-home-typography #content .site-main .entry-content h2 {
    font-family: var(--ct-heading-font) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-block-end: 20px !important;
}
body.ct-home-typography .site-main .entry-content h3 {
    font-family: var(--ct-heading-font) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin-block-end: 10px !important;
}
body.ct-home-typography .site-main .entry-content :is(p, li):not(:is(.ctc-cream-eyebrow, .ctpb-product-brand)) {
    font-size: 16px !important;
    line-height: 1.8 !important;
}
body.ct-home-typography .site-main .entry-content > :is(div, section, main, figure) {
    max-width: 100% !important;
    margin-inline: auto;
}
body.ct-home-typography .site-main .entry-content :is(.ctc-cream-hero, .ctc-cream-feature, .ctc-cream-section, .ctc-cream-bottom, .ctc-cisco-hero, .ctc-cisco-section, .ctc-cisco-solutions, .ipc-hero, .ipc-section, .ipc-quote, .ipc-refs, .ctc-tech-news-hero, .ctc-tech-news-feed, .ctc-contact-hero, .ctc-contact-details, .ctc-contact-map, .ctc-contact-form-section, .ctpb-intro-play, .ctc-vision-mission, .ctc-management-team, #createlcom-teams, .ct-careers > .wp-block-group),
body.ct-home-typography.ct-section-services .entry-content > .wp-block-group:not(.ctc-cream-page),
body.ct-home-typography.ct-section-about .entry-content > .wp-block-cover {
    box-sizing: border-box;
    padding: var(--ct-home-section-y) var(--ct-home-section-x) !important;
    margin-block: 0 var(--ct-home-section-gap) !important;
    border-radius: 22px !important;
}
body.ct-home-typography .site-main .entry-content .wp-block-columns { gap: var(--ct-home-grid-gap); }
body.ct-home-typography .site-main .entry-content > .wp-block-columns { margin-block-end: var(--ct-home-section-gap); }
@media (max-width: 780px) {
    body.ct-home-typography .site-main .entry-content { overflow-wrap: anywhere; }
    body.ct-home-typography .site-main .entry-content :is(.ctc-cisco-hero, .ipc-hero, .ctc-contact-hero) { min-width: 0; }
}

body.ct-compact-service {
    --ct-home-section-y: clamp(14px, 2.25vw, 28px);
    --ct-home-grid-gap: clamp(10px, 1.5vw, 18px);
}
body.ct-compact-service #content .site-main :is(.entry-title, .entry-content h1) { margin-block-end: 12px !important; }
body.ct-compact-service #content .site-main .entry-content h2 { margin-block: 0 10px !important; }
body.ct-compact-service #content .site-main .entry-content h3 { margin-block: 0 7px !important; }
body.ct-compact-service #content .site-main .entry-content h2.wp-block-heading:not(:first-child) { margin-block-start: 12px !important; }
body.ct-compact-service #content .site-main .entry-content :is(p, ul, ol) { margin-block-end: 10px; }
body.ct-compact-service .site-main .entry-header { margin-block-end: var(--ct-home-section-gap); }

body.ct-service-tight {
    --ct-home-section-y: clamp(12px, 1.6vw, 20px);
}
body.ct-service-tight #content .site-main .entry-content .ctpb-page-intro {
    padding-block: clamp(18px, 2.6vw, 32px) !important;
    margin-block-end: 14px !important;
}
body.ct-service-tight #content .site-main .entry-content > .wp-block-columns {
    padding-block: 4px !important;
    margin-block: 0 16px !important;
}
body.ct-service-tight #content .site-main .entry-content :is(p, li) {
    line-height: 1.55 !important;
}
body.ct-service-tight #content .site-main .entry-content :is(p, ul, ol) { margin-block: 0 8px; }
body.ct-service-tight #content .site-main .entry-content h2 { margin-block-end: 8px !important; }
body.ct-service-tight #content .site-main .entry-content :is(.ctc-cream-section, .wp-block-column > .wp-block-group) {
    padding-block: var(--ct-home-section-y) !important;
}
body.ct-service-tight #content .site-main .entry-content figure.wp-block-image { margin-block: 12px !important; }

body.ct-site-design #content .site-main .entry-content :is(p, li):not(.ctc-cream-eyebrow, .ctpb-product-brand, [style*="line-height"]) {
    line-height: 1.55 !important;
}
body.ct-site-design #content .site-main .entry-content p:not([style]):has(+ p:not([style])) { margin-block-end: 0 !important; }
body.ct-site-design #content .site-main .entry-content p:not([style]) + p:not([style]) { margin-block-start: 10px !important; }
body.ct-site-design #content .site-main .entry-content :is(h1, h2, h3, h4) + p:not([style]) { margin-block-start: 10px !important; }
body.ct-site-design #content .site-main .entry-content:has(> .ctc-cream-page) { text-decoration-line: none !important; }
body.ct-section-product #content .site-main .entry-content > .ctc-cream-page { background: transparent !important; }
.ctc-cream-page :is(.ctc-cream-feature, .ctc-cream-bottom) { background-clip: padding-box; }

/* Shared contact footer. */
body.ct-site-design #colophon .ctc-footer-contact { padding-block: 20px 18px; }
body.ct-site-design #colophon .ctc-footer-contact .ctc-footer-brand { margin-block-end: 6px; }
body.ct-site-design #colophon .ctc-footer-contact .ctc-footer-brand img { width: min(140px, 100%); height: auto; }
body.ct-site-design #colophon .ctc-footer-contact h2 { font-size: clamp(22px, 2.3vw, 27px); line-height: 1.2; }
body.ct-site-design #colophon .ctc-footer-contact .ctc-footer-subtitle { margin-block: 6px 12px; }
body.ct-site-design #colophon .ctc-footer-contact .ctc-footer-details { gap: 8px; }
body.ct-site-design #colophon .ctc-footer-contact .ctc-footer-details > * { padding-block: 8px; gap: 2px; }
body.ct-site-design #colophon .ctc-footer-contact .ctc-footer-address { margin-block-start: 10px; line-height: 1.45; }

body.ct-site-design #colophon .ctc-footer-contact .ctc-footer-detail { min-height: 0; }

body.ct-site-design #primary:has(.entry-content :is(.ct-page-sharing, .ctpb-service-end)) {
    margin-block-end: 30px !important;
}
body.ct-site-design #content .site-main .entry-content :is(.ct-page-sharing, .ctpb-service-end) {
    margin-block-end: 0 !important;
}
body.ct-site-design .ctpb-share-footer { margin-block-end: 30px; }

/* Match the header palette in the shared contact footer. */
body.ct-site-design #colophon .ctc-footer-contact {
    background: #fff linear-gradient(110deg, #fffafb, #fff7fa);
}
body.ct-site-design #colophon .site-below-footer-wrap { background: #b5163d !important; }

body.ct-section-careers #content .site-main .entry-content .ct-career-open-heading {
    display: none !important;
}

body.ct-site-design #colophon .site-below-footer-wrap {
    min-height: 34px !important;
    padding-block: 0 !important;
}
body.ct-site-design #page #content #primary .site-main :is(
    .entry-content,
    .ctpb-zones-page,
    .ct-careers,
    .ctc-cisco-th,
    .ipc-page,
    .ctc-tech-news-page,
    .ctc-cream-page,
    .ctc-cream-page > .wp-block-group__inner-container
) > :is(section, .wp-block-group, .wp-block-cover, .wp-block-columns, .wp-block-image, .ctpb-product-page, .ctc-cisco-hero, .ctc-cisco-section, .ctc-cisco-solutions, .ipc-hero, .ipc-section, .ipc-quote, .ipc-refs, .ctc-cream-hero, .ctc-cream-section, .ctc-tech-news-feed, .ct-news-category-nav):not(
    .ct-page-sharing, .ctpb-service-end, .ct-career-open-heading
) {
    margin-block-end: 0 !important;
}
body.ct-site-design #page #content #primary .site-main :is(
    .entry-content,
    .ctpb-zones-page,
    .ct-careers,
    .ctc-cisco-th,
    .ipc-page,
    .ctc-tech-news-page,
    .ctc-cream-page,
    .ctc-cream-page > .wp-block-group__inner-container
) > :nth-child(n+2 of :is(section, .wp-block-group, .wp-block-cover, .wp-block-columns, .wp-block-image, .ctpb-product-page, .ctc-cisco-hero, .ctc-cisco-section, .ctc-cisco-solutions, .ipc-hero, .ipc-section, .ipc-quote, .ipc-refs, .ctc-cream-hero, .ctc-cream-section, .ctc-tech-news-feed, .ct-news-category-nav):not(
    .ct-page-sharing, .ctpb-service-end, .ct-career-open-heading, [hidden], .ct-section-about #createlcom-teams, .ctpb-ipc-page .ctpb-page-intro
)) {
    margin-block-start: var(--ct-stack) !important;
}

/* Let the page background show around rounded introduction cards. */
body.ct-site-design #page #content .site-main .entry-content :is(.ipc-page, .ctc-cisco-th, .ctc-cream-page, .ct-careers, .ctc-contact-page):has(.ctpb-page-intro) {
    background: transparent !important;
}

/* JOIN US content sections share one deliberate 30px rhythm in both languages. */
body.ct-section-careers #content .site-main .entry-content .ct-careers > :not([hidden]) + :not([hidden]) {
    margin-block-start:30px !important;
}
body.ct-site-design #page #content .site-main .entry-content:has(> .ctpb-page-intro) {
    background: transparent !important;
}
body.ct-site-design #page #content .site-main .ctpb-page-intro { background-clip: padding-box !important; }

body.ct-site-design.ast-desktop #masthead #ast-desktop-header {
    margin-block: 0 !important;
    padding-block: 9px;
}

body.ct-site-design #page #content #primary .site-main .ctc-contact-page > .wp-block-group__inner-container {
    row-gap: var(--ct-stack);
}
body.ct-site-design #page #content #primary .site-main .ctc-contact-page > .wp-block-group__inner-container > .wp-block-group:nth-child(n) {
    margin-block: 0 !important;
}

/* Match the type hierarchy and colors of the Why CREATELCOM section. */
body.ct-site-design #page #content #primary .site-main .entry-content :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--ct-heading-font) !important;
}
body.ct-site-design #page #content #primary .site-main .entry-content h2:not(.wp-block-cover *, .ct-product-slider *, .has-text-color) {
    font-size: var(--ct-section-title-size) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #35252e !important;
}
body.ct-site-design #page #content #primary .site-main .entry-content h3:not(.wp-block-cover *, .ct-product-slider *, .has-text-color) {
    font-size: var(--ct-card-title-size) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: #34232d !important;
}
body.ct-site-design #page #content #primary .site-main .entry-content :is(p.wp-block-paragraph, ul.wp-block-list > li, ol.wp-block-list > li):not(
    .wp-block-cover *, .ct-product-slider *, .ctpb-page-intro *, .has-text-color, [style]
) {
    font-family: var(--ct-body-font) !important;
    font-weight: 400 !important;
    color: #765e6a;
}
body.ct-site-design #page #content #primary .site-main .entry-content .wp-block-column :is(h3 + p, h3 ~ p.wp-block-paragraph):not(
    .wp-block-cover *, .has-text-color, [style]
) {
    font-size: 14px !important;
    color: #705b66 !important;
}

/* Keep the same introduction card wherever a page has one. */
body.ct-site-design #page #content #primary .site-main .entry-content .ctpb-page-intro {
    padding: clamp(22px, 4vw, 48px) clamp(18px, 3.5vw, 42px) !important;
    border: 1px solid #ebcfd8 !important;
    border-inline-start: 4px solid #a81845 !important;
    border-radius: 22px !important;
    background: linear-gradient(110deg, #fff7f9, #f0dfe5) padding-box !important;
}
body.ct-site-design #page #content #primary .site-main .entry-content .ctpb-page-intro::before {
    content: attr(data-intro-label) !important;
    position: static !important;
    display: inline-block !important;
    margin: 0 0 14px !important;
    padding: 6px 12px !important;
    border: 1px solid #e5c2ce !important;
    border-radius: 999px !important;
    background: #f6e8ed !important;
    color: #a81845 !important;
}
body.ct-site-design #page #content #primary .site-main .entry-content .ctpb-page-intro > .wp-block-group__inner-container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.ct-site-design #page #content #primary .site-main .entry-content .ctpb-page-intro :is(h1, h2):first-of-type {
    font-size: var(--ct-title-size) !important;
    color: #302433 !important;
    margin: 0 0 14px !important;
}
.ctpb-ipc-lead-image { overflow: hidden; border-radius: 18px; }
.ctpb-ipc-lead-image img {
    display: block;
    width: 100%;
    height: clamp(180px, 32vw, 360px);
    object-fit: cover;
}

/* Shared contact and sharing card at the end of product and service pages. */
body.ct-site-design #page #content #primary .site-main .entry-content .ctpb-service-end {
    margin-block-end: 0 !important;
    padding: 14px clamp(14px, 2vw, 24px);
    background: #fff7f9;
    border: 1px solid #ebcfd8;
    border-radius: 18px;
}
body.ct-site-design #page #content .ctpb-service-end .ctpb-service-share > strong {
    color: #35252e !important;
    font-weight: 700;
}
body.ct-site-design #page #content .ctpb-service-end :is(.ctpb-service-share > a, .ctpb-service-share summary, .ctpb-service-actions > a) {
    box-sizing: border-box;
    min-height: 38px;
    height: auto;
    padding: 6px 12px;
    font: 600 14px/1.35 var(--ct-body-font);
    text-decoration: none !important;
}
body.ct-site-design #page #content .ctpb-service-end :is(.ctpb-service-share > a, .ctpb-service-share summary, .ctpb-service-actions > a:not(.ctpb-service-form-link)) {
    color: #8b163a !important;
}
body.ct-site-design #page #content .ctpb-service-end .ctpb-service-form-link {
    color: #fff !important;
    background: #a81845;
}
body.ct-site-design #page #content .ctpb-service-end .ctpb-service-contact {
    gap: 10px 18px;
}
body.ct-site-design #page #content .ctpb-service-end #ctpb-service-end-title {
    font-size: clamp(20px, 2vw, 25px) !important;
    line-height: 1.25 !important;
}

/* Maintenance agreement typography and row alignment. */
body.ctpb-ma-page #page #content #primary .site-main .ctc-cream-section {
    padding: clamp(18px, 3vw, 32px) !important;
}
body.ctpb-ma-page #page #content #primary .site-main .ctc-cream-section > h2 {
    margin-block: 0 14px !important;
}
body.ctpb-ma-page #page #content #primary .site-main .ctc-cream-section > p.ctpb-ma-entry {
    display: grid;
    grid-template-columns: minmax(125px, 24%) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 18px;
    margin-block: 0 !important;
    padding-block: 8px;
    font-size: 16px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
}
body.ctpb-ma-page #page #content #primary .site-main .ctpb-ma-entry + .ctpb-ma-entry {
    border-top: 1px solid #ead1db;
}
body.ctpb-ma-page #page #content #primary .site-main .ctpb-ma-entry > strong {
    color: #35252e;
    font-weight: 700 !important;
}
body.ctpb-ma-page #page #content #primary .site-main .ctpb-ma-entry > span { color: #604b55; }
body.ctpb-ma-page #page #content #primary .site-main .ctc-cream-section > figure {
    margin-block-start: 18px !important;
}
@media (max-width: 600px) {
    body.ctpb-ma-page #page #content #primary .site-main .ctc-cream-section > p.ctpb-ma-entry {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2px;
    }
}

body.ct-site-design { --ct-button-color: #b5163d; --ct-button-hover: #8f1231; }
body.ct-site-design #page #content #primary .site-main :is(
    a.ct-slide-link, a.wp-block-button__link, a.ctpb-preview-button, a.ctc-news-card-readmore,
    a.ipc-button, .ctpb-service-actions > a, .ctc-contact-action > a,
    .ctc-contact-detail > a[href], .ct-job-actions > :is(a, button),
    button.ff-btn-submit, #ct-job-dialog button[type="submit"]
) {
    box-sizing: border-box;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100%;
    min-height: 40px !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    border-color: var(--ct-button-color) !important;
    font: 600 14px/1.35 var(--ct-body-font) !important;
    text-decoration: none !important;
}
body.ct-site-design #page #content #primary .site-main :is(
    a.ct-slide-link, a.wp-block-button__link, a.ctpb-preview-button, a.ctc-news-card-readmore,
    a.ipc-button, .ctpb-service-actions > .ctpb-service-form-link, .ctc-contact-action > a,
    .ct-job-actions > button, button.ff-btn-submit, #ct-job-dialog button[type="submit"]
),
body.ct-site-design #ct-floating-contacts > a {
    background: var(--ct-button-color) !important;
    color: #fff !important;
}
body.ct-site-design #page #content #primary .site-main :is(
    a.ct-slide-link, a.wp-block-button__link, a.ctpb-preview-button, a.ctc-news-card-readmore,
    a.ipc-button, .ctpb-service-actions > .ctpb-service-form-link, .ctc-contact-action > a,
    .ct-job-actions > button, button.ff-btn-submit, #ct-job-dialog button[type="submit"]
):hover,
body.ct-site-design #ct-floating-contacts > a:hover {
    background: var(--ct-button-hover) !important;
}
body.ct-site-design #page #content :is(
    .ct-slide-controls > button, .ct-slide-tabs > button, .createlcom-client-arrow, .ct-facebook-load,
    .ctpb-gallery-arrows > button, .ctpb-gallery-close, .ctpb-service-share > a,
    .ctpb-service-share summary, [data-copy-service-link],
    .ctpb-service-actions > a:not(.ctpb-service-form-link), .ctc-contact-detail > a[href], .ct-job-actions > a
),
body.ct-site-design .ctpb-share-footer .ctpb-service-share :is(a, summary, button),
body.ct-site-design #colophon .ctc-footer-detail[href] {
    color: var(--ct-button-color) !important;
    border-color: var(--ct-button-color) !important;
}

/* Balance the two contact panels while keeping their existing grid areas. */
body.ct-section-contact #content #primary .ctc-contact-page > .wp-block-group__inner-container > :is(.ctc-contact-details, .ctc-contact-map) {
    min-width: 0;
    width: 100% !important;
    box-sizing: border-box;
}
body.ct-section-contact #page #content #primary .ctc-contact-page .ctc-contact-details {
    padding: 0 !important;
}
body.ct-section-contact #page #content #primary .ctc-contact-page :is(.ctc-contact-card, .ctc-contact-map) {
    padding: clamp(20px, 3vw, 34px) !important;
}
@media (min-width: 761px) {
    body.ct-section-contact #content #primary .ctc-contact-page > .wp-block-group__inner-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.ct-section-contact #content #primary .ctc-contact-page > .wp-block-group__inner-container > :is(.ctc-contact-details, .ctc-contact-map) {
        align-self: stretch;
    }
    body.ct-section-contact #content #primary .ctc-contact-map > .wp-block-group__inner-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    body.ct-section-contact #content #primary .ctc-contact-map .ctc-contact-map-embed {
        display: flex;
        flex: 1;
    }
    body.ct-section-contact #content #primary .ctc-contact-map .ctc-contact-map-embed iframe {
        flex: 1;
        width: 100%;
        min-height: 250px;
        height: auto !important;
    }
}

/* Keep visible content within the opening card's horizontal rail. */
html body.ct-site-design #page #content #primary .entry-content > :is(
    .wp-block-group, .wp-block-image, .wp-block-cover, .wp-block-columns, section
):not(.ctpb-page-intro, .ct-product-slider, .ct-facebook-section, :has(.ctpb-page-intro)) {
    max-inline-size: min(100%, var(--ctpb-content-rail-width, 100%)) !important;
    margin-inline: auto !important;
    box-sizing: border-box;
}
html body.ct-section-contact #page #content #primary .ctc-contact-page > .wp-block-group__inner-container {
    width: calc(100% - 2 * var(--ct-rail-gutter, 0px)) !important;
    max-width: var(--ct-rail-width, 1160px) !important;
    margin-inline: auto !important;
    box-sizing: border-box;
}
html body.ct-section-contact #page #content #primary .ctc-contact-page > .wp-block-group__inner-container > :is(
    .ctc-contact-hero, .ctc-contact-details, .ctc-contact-map, .ctc-contact-form-section
) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Shared public button palette. Keep navigation, tabs and demo controls distinct. */
body.ct-site-design { --ct-button-color: #b1003b; --ct-button-hover: #8c002f; }
body.ct-site-design #page #content #primary .site-main :is(
    .ct-home-mockup .hm-actions a, .ct-home-mockup .hm-news a, .ct-home-mockup .hm-office a,
    .ct-follow-cta, .ct-career-call, .ctc-cream-button, .ctpb-ipc-product-slides,
    .ctc-contact-map-link, .ctpb-service-actions > a
),
body.ct-site-design .ctpb-ipc-dialog header button,
body.ct-site-design #ct-floating-contacts > a {
    background: var(--ct-button-color) !important;
    border-color: var(--ct-button-color) !important;
    color: #fff !important;
}
body.ct-site-design #page #content #primary .site-main :is(
    .ct-home-mockup .hm-actions a, .ct-home-mockup .hm-news a, .ct-home-mockup .hm-office a,
    .ct-follow-cta, .ct-career-call, .ctc-cream-button, .ctpb-ipc-product-slides,
    .ctc-contact-map-link, .ctpb-service-actions > a
):hover,
body.ct-site-design .ctpb-ipc-dialog header button:hover,
body.ct-site-design #ct-floating-contacts > a:hover {
    background: var(--ct-button-hover) !important;
}
