/* zipBoard Design v2: existing Elementor / Saasland pages.
   Strategy: remap Elementor's global colours + fonts (used by most older widgets)
   and replace the theme's base text colours at zero specificity, so anything a
   section sets on purpose (white text on dark bands etc.) still wins. */

body.zb-v2-skin[class*="elementor-kit-"] {
	--e-global-color-primary: #0f1216;
	--e-global-color-secondary: #5f636a;
	--e-global-color-text: #5f636a;
	--e-global-color-accent: #2fbc56;
	--e-global-color-489ee653: #2fbc56;
	--e-global-color-543d5bb6: #008d3c;
	--e-global-color-635bf8e2: #3d434a;
	--e-global-color-0895125: #eefbf1;
	--e-global-color-5dff564: #eefbf1;
	--e-global-color-34b3ef6: #f4f6f5;
	--e-global-color-7641505b: #fbfdfc;
	--e-global-typography-primary-font-family: "Inter Tight";
	--e-global-typography-primary-font-weight: 600;
	--e-global-typography-secondary-font-family: "Inter Tight";
	--e-global-typography-secondary-font-weight: 600;
	--e-global-typography-text-font-family: "Geist";
	--e-global-typography-accent-font-family: "Geist";
	--e-global-typography-accent-font-weight: 500;
}

/* Theme base colours (Saasland: #677294 body, #222d39/#333 headings) -> v2 neutrals.
   :where() keeps specificity at the theme's own level. */
:where(body.zb-v2-skin) :where(p, li, td, dd, .elementor-icon-box-description, .elementor-image-box-description) { color: #5f636a; }
:where(body.zb-v2-skin) :where(h1, h2, h3, h4, h5, h6) { color: #0f1216; }

/* Headline weight / rhythm for older Elementor headings */
body.zb-v2-skin .elementor-heading-title:not(.zb *) { font-weight: 600; line-height: 1.12; text-wrap: balance; }
body.zb-v2-skin :is(h1.elementor-heading-title, .elementor-widget-heading .elementor-size-xxl, .elementor-widget-heading .elementor-size-xl):not(.zb *) { letter-spacing: -0.035em; }

/* Icon boxes / image boxes -> v2 cards (only those sitting on a light background) */
body.zb-v2-skin.page-template-default :is(.elementor-widget-icon-box, .elementor-widget-image-box) > .elementor-widget-container:not(.zb *) {
	border-radius: 16px;
}
body.zb-v2-skin :is(.elementor-icon-box-title, .elementor-image-box-title):not(.zb *) { font-family: var(--zbs-display) !important; font-weight: 600; letter-spacing: -0.015em; }

/* Old Saasland banner on default pages: v2 hero background */
body.zb-v2-skin.page-template-default :is(.breadcrumb_area, .breadcrumb_area_two):not(.zb *) {
	background: linear-gradient(180deg, #fbfdfc 0%, #eefbf1 100%) !important; border-bottom: 1px solid var(--zbs-border);
}
body.zb-v2-skin.page-template-default :is(.breadcrumb_area, .breadcrumb_area_two) :is(.breadcrumb_shap, .background_overlay, .bubble) { display: none !important; }
body.zb-v2-skin.page-template-default :is(.breadcrumb_area, .breadcrumb_area_two) h1 { font-family: var(--zbs-display) !important; font-weight: 600; letter-spacing: -0.035em; color: #0f1216 !important; }

/* Tables (comparison pages) */
body.zb-v2-skin :is(.elementor-widget-text-editor, .entry-content) table:not(.zb *) { border-collapse: separate; border-spacing: 0; border: 1px solid var(--zbs-border); border-radius: 12px; overflow: hidden; }
body.zb-v2-skin :is(.elementor-widget-text-editor, .entry-content) :is(th, td):not(.zb *) { border-color: var(--zbs-border) !important; padding: 10px 14px; }
body.zb-v2-skin :is(.elementor-widget-text-editor, .entry-content) th:not(.zb *) { background: #f4f6f5; color: #0f1216; font-weight: 600; }

/* Testimonials */
body.zb-v2-skin :is(.elementor-testimonial-content, blockquote):not(.zb *) { font-family: var(--zbs-sans) !important; }

/* Forms on pages (not HubSpot iframes) */
body.zb-v2-skin :is(.elementor-field-group input, .elementor-field-group textarea, .elementor-field-group select):not(.zb *) { border-radius: 10px !important; border-color: var(--zbs-border) !important; font-family: var(--zbs-sans) !important; }
