/* Refine v1 (owner feedback, 3 Nov) — loaded last, only when the master switch refine_v1 is on.
   Three parts, each behind its own switch (body classes from inc/refine.php):
     .ac-refine-motion   calmer motion       .ac-refine-type   one type scale       .ac-refine-spacing   spacing / placement
   !important is used on purpose: live's per-element Elementor rules (.ac-<doc> .ac-element.ac-element-<id> …)
   out-rank any component selector, and this layer has to win over all of them to be one scale. */

/* =========================================================================
   Tokens — the one scale. Fluid between a 390 px phone and a 1440 px desktop.
   ========================================================================= */
:root {
	--rf-font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	/* headings: desktop / phone */
	--rf-h1: clamp(1.875rem, 1.643rem + 0.952vw, 2.5rem);      /* 40 / 30 */
	--rf-h2: clamp(1.5625rem, 1.4rem + 0.667vw, 2rem);         /* 32 / 25 */
	--rf-h3: clamp(1.1875rem, 1.118rem + 0.286vw, 1.375rem);   /* 22 / 19 */
	--rf-h4: clamp(1.0625rem, 1.039rem + 0.095vw, 1.125rem);   /* 18 / 17 */
	--rf-body: 1rem;        /* 16 */
	--rf-small: 0.875rem;   /* 14 */
	--rf-button: 0.9375rem; /* 15 */
	--rf-nav: 0.9375rem;    /* 15 */
	--rf-eyebrow: 0.8125rem;/* 13, uppercase */
	--rf-lh-h1: 1.2; --rf-lh-h2: 1.25; --rf-lh-h3: 1.3; --rf-lh-h4: 1.3; --rf-lh-body: 1.6; --rf-lh-small: 1.5;
	--rf-w-strong: 700; --rf-w-semi: 600; --rf-w-body: 400;
	/* spacing (4/8 based) */
	--rf-1: 0.25rem; --rf-2: 0.5rem; --rf-3: 0.75rem; --rf-4: 1rem; --rf-5: 1.5rem; --rf-6: 2rem; --rf-7: 2.5rem; --rf-8: 3rem;
	--rf-section: clamp(3rem, 2.257rem + 3.048vw, 5rem);      /* 80 / 48 */
	--rf-measure: 45rem;    /* 720 px: the owner's reading column (3 Nov night); 70ch was 766 px ≈ 90 characters in DM Sans */
	/* motion */
	--rf-ease: cubic-bezier(.2, .6, .2, 1);
	--rf-in: 400ms;
	--rf-hover: 180ms;
}

/* =========================================================================
   A. MOTION
   ========================================================================= */
/* Entrance effects (fadeInLeft/Right/Up/Down, fadeIn, zoom, bounce …): one subtle fade, 12 px up, 400 ms, once.
   `translate` (not `transform`) so an element's own transform is never touched. Delay ≤ 60 ms: reveal.js. */
@keyframes rf-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.ac-refine-motion .animated {
	animation-name: rf-in !important;
	animation-duration: var(--rf-in) !important;
	animation-timing-function: var(--rf-ease) !important;
	animation-iteration-count: 1 !important;
	animation-fill-mode: backwards !important;
}
/* Ken Burns / background slideshow zoom: off */
.ac-refine-motion .ace-con .ac-background-slideshow__slide__image,
.ac-refine-motion .ac-ken-burns, .ac-refine-motion [class*="ken-burns"] { animation: none !important; transform: none !important; }

/* Hover: colour/shadow only, ≤ 200 ms. No grow, shrink, lift or zoom. */
/* (live: some cards grew to 105 % / shrank to 95 % on hover; images inside them zoomed with them) */
.ac-refine-motion .ac-element:hover,
.ac-refine-motion .ac-element:focus-within { --e-transform-scale: 1 !important; --e-con-transform-scale: 1 !important; --e-transform-translateY: 0px !important; --e-con-transform-translateY: 0px !important; }
.ac-refine-motion .ac-animation-grow:hover,
.ac-refine-motion .ac-animation-grow:focus,
.ac-refine-motion .ac-animation-grow:active,
.ac-refine-motion .cap:hover,
.ac-refine-motion .atf-wa-float:hover { transform: none !important; }
.ac-refine-motion :is(a, button, .ac-item, .ac-icon, .ac-button, .ac-social-icon, .ac-icon-list-text, input, textarea, select, .ac-sub-item, .sbi_load_btn, .atf-wa-float, .cap, .ac-cs-card, .atlas-testimonials__card),
.ac-refine-motion :is(a, button, .ac-button, .ac-icon) svg {
	transition-duration: var(--rf-hover) !important;
	transition-timing-function: ease-out !important;
}

/* WhatsApp button: no pulse on arrival, no grow on hover (shadow only) */
.ac-refine-motion .atf-wa-float { animation: none !important; }
.ac-refine-motion .atf-wa-float:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.ac-refine-motion .atf-wa-label { animation-duration: 200ms !important; }

/* Testimonials strip (client asked for it to move): slower (40 s → 64 s per loop); it already pauses on hover/focus */
.ac-refine-motion .atlas-testimonials__track { animation-duration: 64s !important; }

/* About values (client: glow on hover, 31 Oct #11 / 3 Nov R2): same glow, gentler — no grow, no flash, slower breath */
.ac-refine-motion.ac-review-r2-values-breath .v-diagram-node:hover .v-icon-circle-box,
.ac-refine-motion.ac-review-r2-values-breath .v-diagram-node:focus-within .v-icon-circle-box,
.ac-refine-motion.ac-review-r2-values-breath .v-diagram-node.ac-r2-touch .v-icon-circle-box,
.ac-refine-motion.ac-review-values-glow .v-diagram-node:hover .v-icon-circle-box,
.ac-refine-motion.ac-review-values-glow .v-diagram-node:focus-within .v-icon-circle-box {
	animation: rf-breathe 4s ease-in-out infinite !important; transform: none !important; filter: none !important;
}
.ac-refine-motion.ac-review-r2-values-breath .v-center-white-hub:hover,
.ac-refine-motion.ac-review-r2-values-breath .v-center-white-hub.ac-r2-touch,
.ac-refine-motion.ac-review-values-glow .v-center-white-hub:hover {
	animation: rf-breathe-hub 4s ease-in-out infinite !important; transform: translate(-50%, -50%) !important;
}
@keyframes rf-breathe { 0%, 100% { box-shadow: 0 6px 18px rgba(23, 122, 109, .18), 0 0 0 0 rgba(58, 155, 130, 0); } 50% { box-shadow: 0 6px 18px rgba(23, 122, 109, .18), 0 0 16px 5px rgba(58, 155, 130, .32); } }
@keyframes rf-breathe-hub { 0%, 100% { box-shadow: 0 10px 35px rgba(11, 60, 77, .08), 0 0 0 0 rgba(58, 155, 130, 0); } 50% { box-shadow: 0 10px 35px rgba(11, 60, 77, .08), 0 0 20px 6px rgba(58, 155, 130, .22); } }
.ac-refine-motion .v-icon-circle-box, .ac-refine-motion .v-center-white-hub { transition-duration: var(--rf-hover) !important; }

/* Reduced motion: nothing moves at all (glow shown still, carousels already stop in classic.js) */
@media (prefers-reduced-motion: reduce) {
	.ac-refine-motion *, .ac-refine-motion *::before, .ac-refine-motion *::after {
		animation: none !important; transition: none !important; scroll-behavior: auto !important;
	}
	.ac-refine-motion .atlas-testimonials__track { animation: none !important; }
}

/* =========================================================================
   B. TYPE — role classes come from the measured map (inc/refine-map.json):
      rf-t-<role> = the element's title/text, rf-d-<role> = a box's description.
   ========================================================================= */
.ac-refine-type { font-family: var(--rf-font); }

/* --- the parts a role class sizes --- */
.ac-refine-type :is(.rf-t-h1, .rf-t-h2, .rf-t-h3, .rf-t-h4, .rf-t-body, .rf-t-small, .rf-t-eyebrow) :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title, .ac-counter-number-wrapper),
.ac-refine-type :is(.rf-t-h1, .rf-t-h2, .rf-t-h3, .rf-t-h4, .rf-t-body, .rf-t-small, .rf-t-eyebrow) :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title) *,
.ac-refine-type .ac-widget-text-editor:is(.rf-t-h3, .rf-t-body, .rf-t-small),
.ac-refine-type .ac-widget-text-editor:is(.rf-t-h3, .rf-t-body, .rf-t-small) :is(p, li, span, div, a, strong, b, em, i, h1, h2, h3, h4, h5, h6, blockquote),
.ac-refine-type :is(.rf-d-body, .rf-d-small) :is(.ac-icon-box-description, .ac-image-box-description, .ac-counter-title),
.ac-refine-type :is(.rf-d-body, .rf-d-small) :is(.ac-icon-box-description, .ac-image-box-description) * {
	font-family: var(--rf-font) !important;
	letter-spacing: normal !important;
}
.ac-refine-type .rf-t-h1 :is(.ac-heading-title, .ac-heading-title *) { font-size: var(--rf-h1) !important; line-height: var(--rf-lh-h1) !important; font-weight: var(--rf-w-strong) !important; }
.ac-refine-type .rf-t-h2 :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title, .ac-counter-number-wrapper) { font-size: var(--rf-h2) !important; line-height: var(--rf-lh-h2) !important; font-weight: var(--rf-w-strong) !important; }
.ac-refine-type .rf-t-h3 :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title),
.ac-refine-type .ac-widget-text-editor.rf-t-h3, .ac-refine-type .ac-widget-text-editor.rf-t-h3 :is(p, li, span, div, h1, h2, h3, h4, h5, h6) { font-size: var(--rf-h3) !important; line-height: var(--rf-lh-h3) !important; font-weight: var(--rf-w-semi) !important; }
.ac-refine-type .rf-t-h4 :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title) { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; font-weight: var(--rf-w-semi) !important; }
.ac-refine-type :is(.rf-t-h2, .rf-t-h3, .rf-t-h4) :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title) * { font-size: inherit !important; line-height: inherit !important; }
/* body text: 16 / 1.6, regular weight (bold/strong inside paragraphs keep their weight) */
.ac-refine-type .rf-t-body :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title),
.ac-refine-type .ac-widget-text-editor.rf-t-body,
.ac-refine-type .ac-widget-text-editor.rf-t-body :is(p, li, span, div, a, h1, h2, h3, h4, h5, h6, blockquote),
.ac-refine-type .rf-d-body :is(.ac-icon-box-description, .ac-image-box-description) { font-size: var(--rf-body) !important; line-height: var(--rf-lh-body) !important; }
.ac-refine-type .ac-widget-text-editor.rf-t-body :is(p, li, span, div, h1, h2, h3, h4, h5, h6):not(:is(strong, b) *, strong, b) { font-weight: var(--rf-w-body); }
.ac-refine-type .rf-t-body .ac-heading-title * , .ac-refine-type .rf-d-body :is(.ac-icon-box-description, .ac-image-box-description) * { font-size: inherit !important; line-height: inherit !important; }
.ac-refine-type .rf-t-small :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title),
.ac-refine-type .ac-widget-text-editor.rf-t-small, .ac-refine-type .ac-widget-text-editor.rf-t-small :is(p, li, span, div),
.ac-refine-type .rf-d-small :is(.ac-icon-box-description, .ac-image-box-description, .ac-counter-title) { font-size: var(--rf-small) !important; line-height: var(--rf-lh-small) !important; }
.ac-refine-type .rf-t-small :is(.ac-heading-title, .ac-icon-box-title, .ac-image-box-title) *, .ac-refine-type .rf-d-small :is(.ac-icon-box-description, .ac-image-box-description) * { font-size: inherit !important; }
/* eyebrow / kicker */
.ac-refine-type .rf-t-eyebrow :is(.ac-heading-title, .ac-icon-box-title) { font-size: var(--rf-eyebrow) !important; line-height: 1.4 !important; font-weight: var(--rf-w-semi) !important; text-transform: uppercase !important; letter-spacing: .08em !important; }
.ac-refine-type .rf-t-eyebrow .ac-heading-title * { font-size: inherit !important; letter-spacing: inherit !important; }

/* --- components that are the same everywhere (no map needed) --- */
/* menu */
.ac-refine-type .ac-nav-menu :is(.ac-item, .ac-sub-item) { font-size: var(--rf-nav) !important; font-family: var(--rf-font) !important; }
.ac-refine-type .ac-nav-menu .ac-item { font-weight: 500 !important; }
/* buttons (theme buttons, form submit, testimonials link, Instagram buttons) */
.ac-refine-type :is(.ac-button, .ace-form__buttons button, .atlas-testimonials__more, .sbi_load_btn, .sbi_follow_btn a, #atf-consent button) {
	font-size: var(--rf-button) !important; font-family: var(--rf-font) !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: normal !important;
}
.ac-refine-type .ac-button :is(.ac-button-text, .ac-button-content-wrapper) { font-size: inherit !important; }
/* FAQ questions = H4; answers are text editors (mapped) */
.ac-refine-type .ace-n-accordion-item-title-text { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; font-weight: var(--rf-w-semi) !important; font-family: var(--rf-font) !important; }
.ac-refine-type .ace-n-accordion-item > [role="region"] :is(p, li) { font-size: var(--rf-body) !important; line-height: var(--rf-lh-body) !important; }
/* forms */
.ac-refine-type :is(.ac-field-textual, .ac-field, input[type="text"], input[type="email"], input[type="tel"], textarea, select) { font-size: var(--rf-body) !important; font-family: var(--rf-font) !important; }
.ac-refine-type .ac-field-label, .ac-refine-type .ac-field-group label { font-size: var(--rf-small) !important; font-weight: 500 !important; }
/* testimonials */
.ac-refine-type .atlas-testimonials__heading { font-size: var(--rf-h2) !important; line-height: var(--rf-lh-h2) !important; font-weight: var(--rf-w-strong) !important; font-family: var(--rf-font) !important; }
.ac-refine-type .atlas-testimonials__text, .ac-refine-type .atlas-testimonials__text * { font-size: var(--rf-body) !important; line-height: var(--rf-lh-body) !important; }
.ac-refine-type .atlas-testimonials__name { font-size: var(--rf-body) !important; font-weight: var(--rf-w-semi) !important; }
.ac-refine-type .atlas-testimonials__role { font-size: var(--rf-small) !important; }
/* icon lists (contact details, footer links, check lists) */
.ac-refine-type .ac-icon-list-text { font-size: var(--rf-body) !important; line-height: var(--rf-lh-small) !important; }
.ac-refine-type .ac-location-footer .ac-icon-list-text { font-size: var(--rf-small) !important; }
/* footer: column titles are H4 size, text small */
.ac-refine-type .ac-location-footer :is(.rf-t-h2, .rf-t-h3, .rf-t-h4) .ac-heading-title { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; }
.ac-refine-type .ac-location-footer :is(.rf-t-body) :is(.ac-heading-title, .ac-heading-title *),
.ac-refine-type .ac-location-footer .ac-widget-text-editor.rf-t-body, .ac-refine-type .ac-location-footer .ac-widget-text-editor.rf-t-body * { font-size: var(--rf-small) !important; line-height: var(--rf-lh-small) !important; }
/* blog posts and case studies (block content in .page-content) */
.ac-refine-type .page-content > :is(p, ul, ol) , .ac-refine-type .page-content :is(.wp-block-group, .entry-content) :is(p, li),
.ac-refine-type.single-case_study .page-content :is(p, li) { font-size: var(--rf-body) !important; line-height: var(--rf-lh-body) !important; }
.ac-refine-type .page-content h2:not(.ac-heading-title) { font-size: var(--rf-h2) !important; line-height: var(--rf-lh-h2) !important; font-weight: var(--rf-w-strong) !important; }
.ac-refine-type .page-content h3:not(.ac-heading-title) { font-size: var(--rf-h3) !important; line-height: var(--rf-lh-h3) !important; font-weight: var(--rf-w-semi) !important; }
.ac-refine-type .page-content :is(h4, h5, h6):not(.ac-heading-title) { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; font-weight: var(--rf-w-semi) !important; }
.ac-refine-type .page-header h1.entry-title, .ac-refine-type h1.ac-heading-title { font-size: var(--rf-h1) !important; line-height: var(--rf-lh-h1) !important; font-weight: var(--rf-w-strong) !important; }
.ac-refine-type .ac-cs-facts dt { font-size: var(--rf-eyebrow) !important; }
.ac-refine-type .ac-cs-facts dd { font-size: var(--rf-small) !important; }
.ac-refine-type .ac-cs-card__title { font-size: var(--rf-h4) !important; }
.ac-refine-type .ac-cs-card__label { font-size: var(--rf-eyebrow) !important; }
.ac-refine-type .ac-cs-card__more { font-size: var(--rf-small) !important; }
/* blog/archive cards (built from /blogs/' components): titles H4, excerpt body, meta small */
.ac-refine-type :is(.ac-post__title, .ac-post__title a) { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; font-weight: var(--rf-w-semi) !important; }
.ac-refine-type .ac-post__excerpt, .ac-refine-type .ac-post__excerpt * { font-size: var(--rf-body) !important; line-height: var(--rf-lh-body) !important; }
.ac-refine-type :is(.ac-post__meta-data, .ac-post__read-more) { font-size: var(--rf-small) !important; }
/* tag pages and search results (3 Nov N19 cards): title at the card size, not the H2 the rule above gives
   .page-content h2 (that made them 32 px) */
.ac-refine-type:is(.tag, .search) .page-content article.post :is(h2.entry-title, h2.entry-title a) { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; font-weight: var(--rf-w-semi) !important; }
.ac-refine-type:is(.tag, .search) .page-content article.post > p { font-size: var(--rf-body) !important; line-height: var(--rf-lh-body) !important; }

/* =========================================================================
   C. SPACING AND TEXT PLACEMENT
   ========================================================================= */
/* headings never strand one word where it can be helped; paragraphs avoid orphans */
.ac-refine-spacing :is(h1, h2, h3, h4, h5, h6, .ac-heading-title, .ac-icon-box-title, .ac-image-box-title, .ace-n-accordion-item-title-text) { text-wrap: balance; }
.ac-refine-spacing :is(p, li, .ac-icon-box-description, .ac-image-box-description) { text-wrap: pretty; }
.ac-refine-spacing :is(.rf-t-body, .rf-t-small) .ac-heading-title { text-wrap: pretty; }
/* long centred paragraphs (> 2 lines, measured) read left-aligned, in a centred block of ≤ 70 characters */
@media (min-width: 768px) {
	.ac-refine-spacing .ac-widget-text-editor.rf-al-d { text-align: left !important; max-width: var(--rf-measure); margin-left: auto !important; margin-right: auto !important; }
	.ac-refine-spacing .ac-widget-text-editor.rf-al-d :is(p, li, span, div) { text-align: left !important; }
}
@media (max-width: 767px) {
	.ac-refine-spacing .ac-widget-text-editor.rf-al-m, .ac-refine-spacing .ac-widget-text-editor.rf-al-m :is(p, li, span, div) { text-align: left !important; }
}
/* left-aligned body copy in wide columns: lines of ≤ ~70 characters */
.ac-refine-spacing .ac-widget-text-editor.rf-mw :is(p, ul, ol) { max-width: var(--rf-measure); }
/* heading → text gap: one step of the scale */
.ac-refine-spacing .ac-widget-text-editor :is(p, ul, ol):last-child { margin-bottom: 0; }
/* section padding, measured per section and per width (tools/refine/spacing.mjs → inline custom properties).
   One attribute per width band, so a band that was not adjusted keeps the section exactly as it was. */
@media (min-width: 1025px) { .ac-refine-spacing [data-rf-sp-d] { padding-top: var(--rf-pt-d) !important; padding-bottom: var(--rf-pb-d) !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .ac-refine-spacing [data-rf-sp-t] { padding-top: var(--rf-pt-t) !important; padding-bottom: var(--rf-pb-t) !important; } }
@media (max-width: 767px) { .ac-refine-spacing [data-rf-sp-m] { padding-top: var(--rf-pt-m) !important; padding-bottom: var(--rf-pb-m) !important; } }
/* buttons: one size site-wide (form submits and the comment button included: they measured 42 and 47–50 px) */
.ac-refine-spacing .ac-button,
.ac-refine-spacing :is(.ac-form button[type="submit"], .comment-form input[type="submit"], .comment-form button[type="submit"]) { padding: .75rem 1.5rem !important; min-height: 44px; line-height: 1.2 !important; }
/* cards in a row: equal heights, titles on one line with their number/icon (builds on 3 Nov N6) */
.ac-refine-spacing .ac-widget-icon-box > .ac-icon-box-wrapper, .ac-refine-spacing .ac-widget-image-box > .ac-image-box-wrapper { height: 100%; }
/* cards whose fixed min-height left a third or more of them empty (measured): content height; a row still
   stretches its cards to one height */
.ac-refine-spacing .rf-mh0 { min-height: 0 !important; --min-height: 0px !important; }
.ac-refine-spacing .ace-con:has(> .rf-mh0), .ac-refine-spacing .ace-con-inner:has(> .rf-mh0) { align-items: stretch; }

/* Heading + image column beside a card column (owner review, 3 Nov night): the cards start level with the top of
   the image and, on desktop, end level with its bottom, sharing the height evenly. The heading(s) are wrapped at
   render time (.rf-mr-h) so a grid (on the row's inner box) can give them their own row; the image column joins that grid as a subgrid.
   Desktop: image left, cards right (as live). Tablet: cards left, image right (as live); cards are much taller
   than the image there, so they align at the top and the image keeps its shape. Phones: stacked, unchanged. */
.ac-refine-spacing .rf-mr-h { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
	.ac-refine-spacing .rf-mr > .ace-con-inner { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 50px; row-gap: 20px; align-items: stretch; }
	.ac-refine-spacing .rf-mr .rf-mr-m { grid-row: 1 / 3; display: grid !important; grid-template-rows: subgrid; width: auto !important; min-height: 0 !important; }
	.ac-refine-spacing .rf-mr .rf-mr-c { grid-row: 2; width: auto !important; min-height: 0 !important; justify-content: flex-start !important; }
	.ac-refine-spacing .rf-mr-m > .rf-mr-i { min-height: 0 !important; align-self: start; }
}
@media (min-width: 1025px) {
	.ac-refine-spacing .rf-mr .rf-mr-m { grid-column: 1; }
	.ac-refine-spacing .rf-mr .rf-mr-c { grid-column: 2; display: flex !important; flex-direction: column; gap: 12px !important; }
	.ac-refine-spacing .rf-mr-c > .ac-widget { flex: 1 1 0; display: flex !important; align-items: center; margin: 0 !important; }
	.ac-refine-spacing .rf-mr-c > .ac-widget > .ac-icon-box-wrapper { width: 100%; height: auto; }
	.ac-refine-spacing .rf-mr-m > .rf-mr-i { align-self: stretch; }
	.ac-refine-spacing .rf-mr-m > .rf-mr-i :is(.ac-widget-image, .ac-widget-image > a) { height: 100%; display: block; }
	.ac-refine-spacing .rf-mr-m > .rf-mr-i img { width: 100% !important; height: 100% !important; object-fit: cover; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ac-refine-spacing .rf-mr .rf-mr-m { grid-column: 2; }
	.ac-refine-spacing .rf-mr .rf-mr-c { grid-column: 1; }
}

/* Post cards (/blogs/ grid, homepage teaser), owner review note 2: one card everywhere. Image full-bleed at the
   top at one shape, text padded evenly (20 px), title at H4, excerpt body size in a readable grey clamped to 3
   lines, "See more" (3 Nov M2) on one baseline at the bottom of every card. */
.ac-refine-spacing .rf-card { position: relative; overflow: hidden; padding: 0 0 60px !important; gap: 0 !important; justify-content: flex-start !important; }
.ac-refine-spacing .rf-card > * { margin: 0 !important; width: 100% !important; max-width: 100% !important; }
.ac-refine-spacing .rf-card > .ac-widget-image img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 !important; }
.ac-refine-spacing .rf-card > .ac-widget-heading { padding: 20px 20px 0; }
.ac-refine-spacing .rf-card > .ac-widget-heading .ac-heading-title, .ac-refine-spacing .rf-card > .ac-widget-heading .ac-heading-title a { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; font-weight: var(--rf-w-semi) !important; text-align: left !important; }
.ac-refine-spacing .rf-card > .ac-widget-text-editor { position: static !important; padding: 8px 20px 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.ac-refine-spacing .rf-card > .ac-widget-text-editor :is(p, span, li) { font-size: var(--rf-body) !important; line-height: var(--rf-lh-body) !important; color: #4f5b62 !important; text-align: left !important; margin: 0 !important; }
.ac-refine-spacing .rf-card .ac-r2-see-more { position: absolute; left: 20px; bottom: 20px; line-height: 1.5; font-size: var(--rf-small); }
.ac-refine-spacing .ace-con:has(> .rf-card) { gap: 24px !important; align-items: stretch !important; }
.ac-refine-spacing .ace-con:has(> .ace-con > .rf-card) { gap: 24px !important; }
.ac-refine-spacing .ac > .ace-parent:first-child:has(.rf-card) { padding-top: 64px !important; padding-bottom: var(--rf-section) !important; }
.ac-refine-spacing .ac > .ace-parent:first-child:has(.rf-card) > .ace-con-inner { padding-top: 0 !important; padding-bottom: 0 !important; }
@media (max-width: 767px) { .ac-refine-spacing .ac > .ace-parent:first-child:has(.rf-card) { padding-top: 40px !important; } }

/* Blog posts, owner review note 3: one 720 px column for text, images, FAQ, tables, related box, tags and comments
   (builds on 3 Nov N16's 860 px column); images share the text's left edge; one gap between blocks; comments
   headings on the scale. Phones: 20 px side padding. */
.ac-refine-spacing.single-post main#content.site-main,
.ac-refine-spacing.single-post > .ac[data-ac-type="wp-post"],
.ac-refine-spacing.single-post > .ac[data-ac-type="wp-post"] + div { max-width: 760px !important; padding-left: 20px !important; padding-right: 20px !important; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] .rf-mw :is(p, ul, ol) { max-width: none; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] .ac-widget-image { text-align: left !important; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] .ac-widget-image img { margin-left: 0 !important; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] :is(table, .ace-n-accordion, iframe, figure) { max-width: 100%; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] > .ace-con:not([data-ac-settings*="background_background"]) { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 40px !important; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] > .ace-con:first-child { padding-top: 48px !important; margin-top: 0 !important; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] > .ace-con:not([data-ac-settings*="background_background"]) > .ace-con-inner { padding-top: 0 !important; padding-bottom: 0 !important; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] > .ace-con:first-child h1 { margin-top: 0 !important; margin-bottom: 0 !important; }
.ac-refine-spacing.single-post .page-content > .ac + div { margin-top: 48px; }
.ac-refine-spacing.single-post .post-tags { margin-top: 24px; font-size: var(--rf-small); line-height: var(--rf-lh-small); }
.ac-refine-spacing.single-post .comments-area { margin-top: 48px; margin-bottom: var(--rf-section); }
.ac-refine-spacing.single-post .comments-area :is(.title-comments, .comment-reply-title) { font-size: var(--rf-h3) !important; line-height: var(--rf-lh-h3) !important; font-weight: var(--rf-w-semi) !important; margin: 0 0 16px !important; }
.ac-refine-spacing.single-post .comments-area .comment-respond { margin-top: 32px; }
.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] h1.ac-heading-title, .ac-refine-spacing.single-post .page-header h1.entry-title { text-align: left !important; text-shadow: none !important; }
/* tag pages (3 Nov N19 cards): the same inner padding as the blog cards, excerpt grey and clamped to 3 lines */
.ac-refine-spacing.tag .page-content article.post { padding: 0 0 20px !important; }
.ac-refine-spacing.tag .page-content article.post h2.entry-title { margin: 20px 20px 8px !important; }
.ac-refine-spacing.tag .page-content article.post > p { margin: 0 20px !important; color: #4f5b62; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* case studies: headings get room above them; lists sit like paragraphs */
.ac-refine-spacing.single-case_study .ac-widget-text-editor > :is(h2, h3):not(:first-child) { margin-top: 40px !important; margin-bottom: 12px !important; }
.ac-refine-spacing.single-case_study .ac-widget-text-editor > :is(p, ul, ol) { margin-top: 0 !important; margin-bottom: 16px !important; }
@media (max-width: 767px) {
	.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] > .ace-con:not([data-ac-settings*="background_background"]) { margin-top: 32px !important; }
	.ac-refine-spacing.single-post .ac[data-ac-type="wp-post"] > .ace-con:first-child { padding-top: 32px !important; margin-top: 0 !important; }
}

/* =========================================================================
   D. Component exceptions (one place, each with its reason)
   ========================================================================= */
/* Home, phones: the three pillar cards in one row (live 6a1d8d5) are ~110 px wide; their labels stay on one
   line at the eyebrow size (13 px) instead of breaking "Real-World" / overflowing "Personalized". */
@media (max-width: 767px) {
	.ac-refine-type .ac-element-6a1d8d5 .ac-icon-box-title, .ac-refine-type .ac-element-6a1d8d5 .ac-icon-box-title * { font-size: var(--rf-eyebrow) !important; white-space: nowrap; letter-spacing: normal !important; }
	/* Home hero H1 (56f4ded; phone copies 1b17acd, b22a3c2): its box spans the screen edge to edge; at 30 px its lines reached the right edge
	   (live, 28 px, kept ~20 px clear by chance). Side room instead of a smaller size. */
	.ac-refine-spacing :is(.ac-element-56f4ded, .ac-element-1b17acd, .ac-element-b22a3c2) .ac-heading-title { padding-inline: 16px; }
}
/* Home "20+ Years of Experience" badge (6606144: number d2cbb14, label 8e19e01), ≥ 768 px. Live puts the label beside
   the number with a negative top margin (−54 px tablet, −47.5 px desktop) sized for live's 72–95 px tall number; at
   the scale's H2 the number is ~38 px tall, so that margin lifted the label out of the top of the badge onto the photo
   (tools/refine/hero-audit.mjs, 4 Nov). Number and label as one centred row instead. */
@media (min-width: 768px) {
	.ac-refine-type .ac-element-6606144, .ac-refine-type .ac-element-6606144 > .ace-con-inner { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 12px !important; }
	.ac-refine-type .ac-element-6606144 { padding: 12px 16px !important; }
	.ac-refine-type .ac-element-6606144 .ac-element-d2cbb14 { flex: 0 0 auto !important; width: auto !important; padding-left: 0 !important; margin: 0 !important; }
	.ac-refine-type .ac-element-6606144 .ac-element-8e19e01 { flex: 1 1 auto !important; width: auto !important; margin: 0 !important; }
}
/* Tablet (768–1024): rows of four cards ~150 px wide could not hold their titles at the scale's size ("Discover",
   "Assessment-driven" ran out of the card; pre-existing at 768, found by tools/refine/qa.mjs). Two per row there. */
@media (min-width: 768px) and (max-width: 1024px) {
	.ac-refine-spacing .ac-element-0bb5a9f > .ace-con-inner > .ace-con { width: 50% !important; --width: 50% !important; max-width: 50% !important; }
	/* city pages (Mumbai, Pune, Bangalore; the other cities' rows already fit) */
	.ac-refine-spacing :is(.ac-element-4ecd49a, .ac-element-6fa7516, .ac-element-5dc3674) { flex-wrap: wrap !important; }
	.ac-refine-spacing :is(.ac-element-4ecd49a, .ac-element-6fa7516, .ac-element-5dc3674) > .ace-con { flex: 0 0 calc(50% - 10px) !important; width: calc(50% - 10px) !important; max-width: none !important; }
	/* Home "20+ Years of Experience" badge (8e19e01): at H3 (21 px) "Years Of Experience" broke onto two lines and ran
	   out of the top of the badge onto the photo (found 4 Nov, tools/refine/hero-audit.mjs). Live's 18 px = H4: one line. */
	.ac-refine-type .ac-element-8e19e01 .ac-heading-title, .ac-refine-type .ac-element-8e19e01 .ac-heading-title * { font-size: var(--rf-h4) !important; line-height: var(--rf-lh-h4) !important; }
	/* OKR certification hero, three counters in a 336 px strip: icon above the number so each fits its box */
	.ac-refine-spacing .ac-element-2dfefc9 .ac-icon-box-wrapper { flex-direction: column !important; align-items: flex-start !important; gap: 6px; text-align: left; }
}

/* Pages whose content is plain blocks (privacy policy; live printed it edge to edge): the posts' 720 px column.
   Search, 404 and WordPress page titles: at least 20 px from the screen edge on phones. */
.ac-refine-spacing.page main#content.site-main:not(:has(.ac[data-ac-type])) { max-width: 760px; margin-left: auto; margin-right: auto; padding: 48px 20px var(--rf-section) !important; box-sizing: border-box; }
/* (that template prints the blocks straight into <body>, between the header and footer) */
.ac-refine-spacing.page-template-elementor_header_footer > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, table, blockquote, .wp-block-group, .wp-block-list) { width: min(720px, calc(100% - 40px)); margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
.ac-refine-spacing.page-template-elementor_header_footer > header + :is(h1, h2, h3, h4, p, ul, ol, figure, table, .wp-block-group) { margin-top: 48px !important; }
.ac-refine-spacing.page-template-elementor_header_footer > :is(h1, h2, h3, h4, p, ul, ol, figure, table, .wp-block-group):has(+ footer) { margin-bottom: var(--rf-section) !important; }
.ac-refine-spacing.page-template-elementor_header_footer > h2.wp-block-heading:not(:nth-child(3)) { margin-top: 40px; }
@media (max-width: 767px) {
	.ac-refine-spacing:is(.search, .error404) main#content.site-main { padding-left: 20px !important; padding-right: 20px !important; }
	.ac-refine-spacing.page main#content.site-main > .page-header { padding-left: 20px; padding-right: 20px; }
	.ac-refine-spacing .ac-element-699dfd8 { padding-left: 20px !important; padding-right: 20px !important; }
	/* home "20+ Years of Experience" badge: its text ran 7 px from the badge edge */
	.ac-refine-spacing .ac-element-77795e57 { padding-left: 12px !important; padding-right: 12px !important; }
}
