/*
 * Layout fixes on top of the WordPress replica (Website_UI_UX_Changes, Oct 2026).
 * Loaded after every other stylesheet (packages/legacy/src/render.ts), so it wins
 * without editing the captured pages. Row and column classes are Kadence's block ids
 * on the home page (post 18375) and the global footer (post 16398).
 * Breakpoints follow Kadence: tablet 768–1024px, mobile ≤767px.
 */

/* ── Text contrast (WCAG 2.2 AA, 4.5:1) ──────────────────────────────────────────
 * The brand reds (#ED2939 / #E2342B / #E31C24 / #E8192C) gave 4.2:1 with white text
 * and on the pale pink panels. #CC1F2B is the same red a shade deeper: 5.5:1 on
 * white, 5.0:1 on the pinks. Kadence reads it from its palette, the custom pages
 * from their own variables (declared on :root or their wrapper; `html` outranks). */
html:root,
html :is(.op-main-content-wrap, .op-hero-wrap, .opcs-case-study-page, .opcs-landing-page-wrap) {
  --global-palette1: #cc1f2b;
  --global-palette2: #cc1f2b;
  --brand: #cc1f2b;
  --brand-red: #cc1f2b;
  --red: #cc1f2b;
}
/* Hard-coded reds Lighthouse flagged (inline styles and page rules). */
main [style*="color:#e31c24" i]:not([style*="background-color:#e31c24" i]),
main [style*="color: #e31c24" i]:not([style*="background-color: #e31c24" i]),
html .eyebrow,
html .hero-tag,
html .tag-pill,
html .link-more,
html .cta-hero-pct,
html .sec-head .eyebrow,
html body #op-cb-root #op-cb-desc a {
  color: #cc1f2b !important;
}
html .hero-cta .btn-primary,
html .cta-inner .cta-label,
main .inline-form-wrapper .wpcf7-submit {
  background-color: #cc1f2b !important;
}
html .cta-inner .cta-sub {
  color: #fff !important;
}
/* Light grey secondary text (2.5:1) and muted labels. The cookie banner's own
 * rules are id-based and later in the page, hence the longer selector. */
html body #op-cb-root #op-cb-decline,
html .logos-lbl,
html .form-trust,
html .feat-client {
  color: #6b7280 !important;
}
html .cta-card-badge,
html .cta-hero-sub {
  color: #475569 !important;
}
html .band-stat .band-lbl {
  color: #b3b3b3 !important;
}
/* Coloured accent labels (green / cyan / amber / orange at 2.7–3.7:1). */
main [style*="color:#059669" i],
html .badge-pct,
html .feat-sc-change,
html .card h3.green {
  color: #047857 !important;
}
main [style*="color:#0891b2" i] {
  color: #0e7490 !important;
}
main [style*="color:#d97706" i],
main p strong[style*="#d97706" i] {
  color: #b45309 !important;
}
html .card h3.orange {
  color: #c2410c !important;
}
/* WhatsApp button: white on #25D366 is 2:1. */
#whatsappBtn,
.custom-form-wrapper .whatsapp-btn {
  background: #0e7a43 !important;
}

/* ── "Wait! Don't Leave Yet" pop-up (all devices) ─────────────────────────────
 * The overlay is position:fixed, but it sits inside the Advanced Popups wrapper,
 * whose transform makes it the overlay's containing block. The overlay shrank to
 * an 80px strip and the 800px card centred on it, spilling over the header: it
 * looked stretched on desktop and swallowed taps on the menu button on phones and
 * tablets. Untransformed and zero-sized, the wrapper never catches a tap itself;
 * the overlay covers the screen only while its own script shows it. */
.adp-popup:has(#oplus-popup-overlay) {
  transform: none !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
  pointer-events: none;
  z-index: 2147483000 !important; /* above the cookie banner */
}
#oplus-popup-overlay {
  pointer-events: auto;
  inset: 0;
  width: auto !important;
  height: auto !important;
  padding: 32px 16px !important;
  overflow-y: auto;
  background: rgba(10, 15, 30, 0.55) !important;
}
#oplus-popup-box {
  margin: auto;
  max-height: calc(100dvh - 64px);
  overflow-y: auto !important;
}
/* 28px close button was hard to hit with a thumb. */
#oplus-close-btn {
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
}

/* Form consent checkbox was a 13px target. */
main .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  vertical-align: -4px;
  margin-right: 6px;
}

/* ── Growth-plan form (home "Get Your 30-Minute…", all devices) ──────────────── */
/* The textarea had a fixed 565px width and ran out of the card on tablets. */
.custom-form-wrapper textarea {
  width: 100% !important;
}
.custom-form-wrapper .full-width {
  display: block;
}
.custom-form-wrapper .full-width br {
  display: none;
}
/* Contact Form 7 wraps both buttons in one <p>, so the wrapper's gap never applied
 * and the buttons touched. */
.custom-form-wrapper .submit-button > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
}
.custom-form-wrapper .whatsapp-btn,
.custom-form-wrapper .submit-button input[type="submit"] {
  margin: 0 !important; /* the submit button's 15px top margin put the pair out of line */
}
.custom-form-wrapper .submit-button br {
  display: none;
}
.custom-form-wrapper .submit-button .wpcf7-spinner {
  position: absolute;
}

/* ── Desktop ───────────────────────────────────────────────────────────────── */
@media (min-width: 1025px) {
  /* "From Intent to Revenue": less space, smaller funnel video. */
  .kt-adv-heading18375_350c8c-cb {
    margin-bottom: 8px !important;
  }
  .kt-adv-heading18375_69ec5b-b9 {
    margin-bottom: 8px !important;
  }
  .kt-adv-heading18375_69ec5b-b9 br {
    display: none;
  }
  .kb-row-layout-id18375_ca780f-f5 figure {
    max-width: 900px;
    margin: 0 auto 8px !important;
  }
  .kb-btns18375_671700-d2 {
    padding-top: 16px !important;
  }
}

/* ── Footer social icons: one row, small gaps (all devices) ────────────────── */
.kadence-column16398_c814cb-22 > .kt-inside-inner-col {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.kadence-column16398_c814cb-22 .wp-block-kadence-image,
.kadence-column16398_c814cb-22 figure {
  max-width: none !important;
  margin: 0 !important;
}
/* Kadence pads the Facebook icon 24px from the top (a spacer in the old stack);
 * in a 22px box that padding hid it completely. */
.kadence-column16398_c814cb-22 .kb-img {
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  object-fit: contain;
}

/* ── Tablet ────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
  /* First section: less padding and spacing around the text. */
  .kb-row-layout-id18375_a3fb2c-9f > .kt-row-column-wrap {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
    align-items: center;
  }
  .kt-adv-heading18375_cbec46-d3 {
    font-size: 44px !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
  }
  .kt-adv-heading18375_fd25ab-a5 {
    margin-bottom: 20px !important;
  }

  /* "Trusted by Growth Leaders": smaller logos, tighter grid. */
  .kb-row-layout-id18375_00eca3-d6 > .kt-row-column-wrap {
    padding-top: 32px !important;
  }
  .kb-row-layout-id18375_33494f-3f > .kt-row-column-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .kb-row-layout-id18375_33494f-3f img {
    width: 88px !important;
    height: 88px !important;
  }
  /* The banner below: badge on one line, button inside the rounded box. */
  .kb-row-layout-id18375_2c8e66-f9 > .kt-row-column-wrap {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    align-items: center;
  }
  .kb-row-layout-id18375_2c8e66-f9 .kt-btn-inner-text,
  .kb-row-layout-id18375_2c8e66-f9 .kb-button {
    white-space: nowrap;
  }

  /* "Our Family": 20 logos in 5 compact columns instead of 4 large ones. */
  .kb-row-layout-id18375_c0b0e8-38 > .kt-row-column-wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .kb-row-layout-id18375_c0b0e8-38 img {
    max-width: 110px !important;
    height: auto !important;
  }

  /* Growth-plan form: the card is half the screen wide, so one field per row
   * (three per row cut the placeholders off). */
  .custom-form-wrapper .form-row {
    flex-direction: column;
    margin-top: 0;
  }

  /* Footer: brand on its own row, then the four link columns aligned. */
  .kb-row-layout-id16398_4b1056-e1 > .kt-row-column-wrap {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 24px !important;
    row-gap: 24px !important;
    align-items: start;
  }
  .kb-row-layout-id16398_4b1056-e1 .kadence-column16398_5c102c-89 {
    grid-column: 1 / -1 !important;
  }
}

/* ── Phone and tablet menu drawer ──────────────────────────────────────────────
 * The theme's drawer held the Max Mega Menu, which showed its own collapsed bar and
 * desktop panels. opositive-runtime.js replaces it there with .op-drawer-nav. */
#mobile-drawer .drawer-content {
  overflow-y: auto;
}
/* The see-through drawer let the hero text show between the menu items. */
#mobile-drawer .drawer-inner {
  background-color: rgba(9, 12, 18, 0.97) !important;
}
/* #mobile-drawer outranks the theme's drawer rules (flex rows, display:block lists). */
#mobile-drawer .op-drawer-nav,
#mobile-drawer .op-drawer-nav ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}
#mobile-drawer .op-drawer-nav ul[hidden] {
  display: none !important;
}
#mobile-drawer .op-drawer-nav li {
  display: block !important;
  margin: 0;
  padding: 0;
  font-size: 16px;
}
#mobile-drawer .op-drawer-nav {
  width: 100%;
  padding: 8px 0 32px;
}
#mobile-drawer .op-drawer-nav > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#mobile-drawer .op-drawer-nav > li > a,
#mobile-drawer .op-drawer-nav > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
#mobile-drawer .op-drawer-nav > li > button::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
#mobile-drawer .op-drawer-nav > li > button[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}
#mobile-drawer .op-drawer-nav ul {
  padding: 0 0 12px 12px;
}
#mobile-drawer .op-drawer-nav ul a {
  display: block;
  padding: 9px 4px;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}
#mobile-drawer .op-drawer-nav a:hover,
#mobile-drawer .op-drawer-nav a:focus-visible,
#mobile-drawer .op-drawer-nav button:focus-visible {
  color: #ff5a67;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Growth-plan form: full-width buttons with clear space between them. */
  .custom-form-wrapper .submit-button > p {
    flex-direction: column;
    gap: 12px;
  }
  .custom-form-wrapper input[type="submit"],
  .custom-form-wrapper .whatsapp-btn {
    width: 100% !important;
    height: 46px;
    padding: 0 16px !important;
    font-size: 15px !important;
  }
}

/* ══ Site-wide alignment (all pages, Oct 2026) ═════════════════════════════════
 * Found by measuring all 80 pages at 390, 810, 1280 and 1440px. Page-authored
 * <style> blocks sit after this file inside <main>, so rules that must beat them
 * carry an extra `html` for specificity. */

/* Contact Form 7 fields are sized by their `size` attribute, so every field had a
 * different width and some ran out of their card. */
main .wpcf7-form .form-group,
main .wpcf7-form .wpcf7-form-control-wrap {
  max-width: 100%;
}
main .wpcf7-form .form-group {
  width: 100% !important;
}
main .wpcf7-form input:not([type="checkbox"], [type="radio"], [type="submit"], [type="hidden"]),
main .wpcf7-form select,
main .wpcf7-form textarea {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
main .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

/* "Would you prefer to talk to someone in person?" block under the lead forms was a
 * 298px box on the left of the card, so its centred text sat off-centre. */
main .wpcf7-form .contact-details {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Logo strip (home and 18 service pages): Kadence pushed the last two logos 10px
 * below the other four. */
.kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column {
  margin-top: 0 !important;
}

/* Distorted images: Kadence forced a box that did not match the picture. */
.kb-img[src*="Group-37446"],
.kb-img[src*="Mamaearth-Logo-Vector"],
.kb-img[src*="Step-4.png"],
.kb-img[src*="servb-1-"],
.kb-img.wp-image-12754,
.kb-img.wp-image-12757 {
  object-fit: contain;
}

/* Cards side by side share a height (Kadence's "equal height" column option,
 * which most rows were built without). */
.kt-row-column-wrap:not(.kt-has-1-columns) > .wp-block-kadence-column {
  align-self: stretch;
}
.kt-row-column-wrap:not(.kt-has-1-columns) > .wp-block-kadence-column > .kt-inside-inner-col {
  height: 100%;
}

/* Home growth-plan form: a -20px margin lifted the card out of its section, above
 * the text beside it. */
.kadence-column18375_b23f1d-22 {
  margin-top: 0 !important;
}

/* Hyperlocal SEO: lists with a -20px top margin sat on the line above them. */
.kt-adv-heading15246_4acf91-b0 + .wp-block-list,
.kt-adv-heading15246_a72665-85 + .wp-block-list {
  margin-top: 4px !important;
}

/* Home hero image had no size, so the headline jumped down when it loaded. */
.kb-img[src*="Home-page-png"] {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 800 / 500;
  height: auto;
}

/* Case-study hero banners (all 1672×941) had no size: the sidebar jumped down when
 * the image arrived. */
.hero-banner-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
}

/* Content that started under the transparent header (logo and menu). */
.kb-row-layout-id811_2c4645-86 {
  padding-top: 88px;
}
.page-id-24 .entry-header.page-title {
  padding-top: 120px;
}
/* Careers: the hero video (its headline is in the video) started behind the header. */
.kb-row-layout-id26_faaf22-72 {
  padding-top: 100px;
}

/* City pages: the "AHAM37" badge broke a letter onto a second line at some widths. */
main .svc h3 span.new {
  white-space: nowrap;
}

/* AEO/GEO hero eyebrow ran 300px past its box on one unbroken line. */
html .eyebrow {
  max-width: calc(100vw - 36px) !important;
  white-space: normal !important;
}

/* Case studies: a stat card ships empty, leaving a bare box under "AI Search Impact". */
.ai-impact-card:not(:has(:not(:empty))) {
  display: none;
}

/* Wide tables scroll inside their card instead of being cut off. */
.results-table-wrapper,
.wwd-table-wrapper,
.cmp-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* WordPress/Magento heroes: the pages' own `#contact > div > div` rule zeroes the
 * side margin and padding, so without the (removed) inline !important the hero
 * sat on the left edge of the screen. */
html :is(#op-specificity, section) > .wrap.hero-grid {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

/* Hero text is the first thing a visitor reads (and the page's LCP): it shows at
 * once instead of waiting, invisible, for the scroll script. Its fonts are
 * preloaded (packages/legacy/src/render.ts), so it doesn't jump on font swap.
 * Sections further down still animate. */
html :is(section.hero, .op-hero-wrap .hero) .rv {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Grid items default to min-width:auto, so one wide child (a form, a stat card)
 * stretched these single-column grids past the screen. */
.featured-wrap > *,
.main-split > *,
.wrap.feat > *,
.hero-grid > *,
.contact-wrap > * {
  min-width: 0;
}

/* ── Tablet and phone ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Kadence rows whose text ran to the screen edge (no side padding on smaller
   * screens). */
  .kb-row-layout-id1585_99e01b-65 > .kt-row-column-wrap,
  .kb-row-layout-id13390_a0c579-d2 > .kt-row-column-wrap,
  .kb-row-layout-id20_3147a7-b6 > .kt-row-column-wrap,
  .kb-row-layout-id22_499c9e-e2 > .kt-row-column-wrap,
  .kb-row-layout-id22_717aef-65 > .kt-row-column-wrap,
  .kb-row-layout-id12560_77d095-c2 > .kt-row-column-wrap,
  .kb-row-layout-id15246_5d7961-28 > .kt-row-column-wrap,
  .kb-row-layout-id14720_d9b436-0a > .kt-row-column-wrap,
  .kb-row-layout-id11100_baa6b6-2c > .kt-row-column-wrap,
  .kb-row-layout-id11100_cd0b10-f6 > .kt-row-column-wrap,
  .kb-row-layout-id15198_04b505-b3 > .kt-row-column-wrap,
  .kb-row-layout-id15658_b82f21-0e > .kt-row-column-wrap,
  .kb-row-layout-id28_0e0398-11 > .kt-row-column-wrap,
  .kb-row-layout-id410_edf8cf-e3 > .kt-row-column-wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .kt-adv-heading18508_fc8d0b-93 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .kt-adv-heading811_9f2d6b-4a {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* What We Deliver "Our Exclusive IPs": three cards in a 380px box with its own
   * hidden scrollbar; on phones the first card was cut off and the other two only
   * reachable by scrolling inside the box. Stacked at full length instead. */
  /* Desktop-sized 250px / 160px section padding left big empty bands around the
   * Deliver map form and below the Masterclass sign-up form. */
  html .kb-row-layout-id20_336e71-1f > .kt-row-column-wrap {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  html .kb-row-layout-id380_f6051d-b8 > .kt-row-column-wrap {
    padding-top: 112px !important;
    padding-bottom: 64px !important;
  }
  /* Careers values tabs: each panel keeps a 400px desktop min-height, leaving a
   * ~280px blank band under the one-line answer on phones and tablets. */
  .kt-tabs-id26_356f5b-7f .kt-tab-inner-content {
    min-height: 0 !important;
  }
  html .ip-column {
    height: auto !important;
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* D2C category cards: the title column was ~110px and split "Furnishing" and
   * "Fragrance" mid-word. */
  .page-id-15882 .kt-row-column-wrap.kt-has-2-columns.kt-mobile-layout-equal {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* About Us client logos: a row of 21 on desktop became one 147px logo per line
   * against the left edge; a centred grid of smaller logos instead. */
  .kadence-column18508_931872-98 > .kt-inside-inner-col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 14px 12px;
    padding: 0 16px !important;
  }
  .kadence-column18508_931872-98 figure {
    margin: 0 !important;
    flex: 0 1 88px;
    max-width: 104px;
  }
  .kadence-column18508_931872-98 figure img {
    width: 100% !important;
    height: auto !important;
  }

  /* Cards with a fixed desktop height (AI SEO process, D2C testimonials) came out
   * shorter than their neighbours once the text wrapped more. */
  .infoai,
  .infobox12 {
    height: auto !important;
  }

  /* Contact form card had a fixed 750px height and clipped its last lines once
   * the column got narrower. */
  main .custom-form {
    height: auto !important;
    overflow: visible !important;
  }

  /* Headings with a trailing icon (Contact Us stats): Kadence pushes the arrow to
   * the corner with ~160px of left padding, which squeezed the words to a letter
   * per line. The growing text pushes it to the corner instead. */
  .kt-adv-heading-has-icon > .kb-adv-text-inner {
    flex: 1 1 auto;
  }
  .kt-adv-heading-has-icon > .kb-adv-heading-icon-side-right {
    flex: 0 0 auto !important;
    padding-left: 8px !important;
  }

  /* Service-page heroes: the page's own "one column under 980px" rule lost to its
   * desktop !important rule. */
  html .op-hero-wrap .hero-grid,
  html .wrap.hero-grid,
  html .contact-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
  }
}

/* ── Tablet only ──────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Four text cards across left ~170px each; two per row reads properly. */
  .kt-row-column-wrap.kt-has-4-columns.kt-tab-layout-inherit:has(p, li, h3, h4, .wp-block-kadence-advancedheading) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ── Phone ────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Inline-styled multi-column grids (About Us, city pages, Thank You…) had no
   * phone layout and squeezed text to a letter or two per line. Auto-fit grids
   * already reflow and are left alone. */
  main [style*="grid-template-columns"]:not([style*="auto-fit"], [style*="auto-fill"]) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  /* Awards badge strip (Clutch, DesignRush, Deloitte…): three 130px columns with no
   * gap and no side margin, so badges touched each other and the screen edges. */
  .kt-row-column-wrap.kt-has-6-columns:has(img[src*="image-6-1"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px 14px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .kt-row-column-wrap.kt-has-6-columns:has(img[src*="image-6-1"]) img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Service pages: the same badges in one flex column wrap with no row gap. */
  .kt-has-1-columns .kt-inside-inner-col:has(> * img[src*="image-6-1"]) {
    row-gap: 18px !important;
  }
  /* Contact Us partner logos: five columns collapsed to one, pushed right by an
   * 80px left padding. Two centred columns inside the normal gutter instead. */
  .kb-row-layout-id11100_f5b2f3-90 > .kt-row-column-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 32px 20px 0 !important;
  }
  .kb-row-layout-id11100_f5b2f3-90 img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Automate "O+ Armour" logo carousel: the column is a horizontal flex row on
   * small screens, so the gallery grew to its 1800px track and each logo was
   * stretched to 533px (one giant, cut-off MOZ logo in ~600px of white). */
  .kadence-column22_cca19c-c3 > .kt-inside-inner-col {
    flex-direction: column !important;
  }
  .kb-gallery-wrap-id-22_92d3ee-dd {
    width: 100% !important;
    min-width: 0 !important;
  }
  .kb-gallery-id-22_92d3ee-dd .splide__slide {
    width: calc((100% - 48px) / 3) !important;
    margin-right: 24px !important;
  }
  .kb-gallery-id-22_92d3ee-dd img {
    height: auto !important;
    max-height: 56px !important;
    object-fit: contain !important;
  }
  /* Careers "Meet Our People": a fixed 12.5%-ratio slide with an absolute inner
   * box clipped the stacked quote + photo to 162px. Let the slide size to content. */
  .kb-advanced-slider-_d1a868-78 .slick-list,
  .kb-advanced-slider-_d1a868-78 .kb-advanced-slide {
    height: auto !important;
    padding-bottom: 0 !important;
  }
  .kb-advanced-slider-_d1a868-78 .kb-advanced-slide-inner-wrap {
    position: relative !important;
    height: auto !important;
  }
  .kb-advanced-slider-_d1a868-78 h2 > br:first-child,
  .kb-advanced-slider-_d1a868-78 h2 > br:first-child + br {
    display: none;
  }

  /* About Us: the "Who we are" heading column is sticky beside the text on desktop;
   * stacked above it on phones it slid over the paragraphs while scrolling. */
  main [style*="position:sticky"] {
    position: static !important;
  }

  /* City names are short and still fit two across. */
  main .cities-grid[style] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* About Us Vision & Mission: 45px box padding plus card padding left the text
   * ~190px wide. */
  #mission-vision [style*="padding:2.8rem"] {
    padding: 1.6rem 1.1rem !important;
  }
  #mission-vision [style*="grid-template-columns"] > * {
    padding: 1.2rem 1.1rem !important;
  }

  /* About Us founder card: photo above the bio instead of beside it. */
  .founder-card {
    flex-direction: column !important;
  }
  .founder-card > .founder-photo-container {
    width: 100% !important;
    min-height: 280px !important;
  }
  .founder-card > div:not(.founder-photo-container) {
    padding: 1.6rem 1.4rem !important;
  }

  /* What We Deliver: breadcrumb sat inside the header band, and "RESEARCH LAB" was
   * split mid-word in a 188px box. */
  .kb-row-layout-id20_3147a7-b6 > .kt-row-column-wrap {
    padding-top: 110px !important;
  }
  .kt-adv-heading20_22cd4a-44 {
    width: auto !important;
    max-width: 100% !important;
    font-size: 30px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  /* D2C testimonials: two across left ~90px of text per line on small phones. */
  .kb-row-layout-id15882_ab4284-e1 > .kt-row-column-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* City pages: the four headline stats sit 2 × 2 instead of 3 + 1. */
  .trust-mini {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px !important;
  }

  /* Case studies: the closing call-to-action stacked its text and card side by side. */
  html .fullwidth-cta-section .container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }
  .cta-card-header,
  .cta-hero-metric {
    flex-wrap: wrap;
    gap: 10px;
  }
  html .opcs-case-study-page .cta-stats-grid,
  html .cta-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Custom service pages. */
  html .blog-grid,
  html .surf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html .wrap > .feat:has(> .frow) {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Hero tags with long text ran past the screen on one line. */
  html .wp-tag {
    max-width: 100%;
    white-space: normal !important;
  }
  .feat-metrics {
    flex-wrap: wrap;
    gap: 16px 24px !important;
  }
  /* Case Studies client logos: 130px circles in three columns overflowed. */
  html .opcs-landing-page-wrap .logos-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .logos-row .logo-circle-brand {
    width: 100% !important;
    max-width: 130px;
    height: auto !important;
    aspect-ratio: 1;
  }
  .fvis,
  .dashframe {
    max-width: 100%;
    overflow-x: auto;
  }
  /* :is() with an id ranks with the pages' own #audit/#contact rules, which set the
   * hero padding to 0. */
  html .op-hero-wrap .wrap,
  html .op-main-content-wrap .wrap,
  html .op-form-cta-wrap .wrap,
  html #wp-bc-middle .wrap,
  html :is(#op-specificity, section) > .wrap.hero-grid {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  /* Custom-page heroes started 56–90px down, under the 100px header and its logo. */
  html :is(#op-specificity, section).hero {
    padding-top: 112px !important;
  }
  html .op-main-content-wrap section {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }
  html .mcta,
  html .op-main-content-wrap .mcta {
    flex-direction: column;
    align-items: flex-start !important;
  }
  html .lead-form {
    padding: 22px !important;
  }
  html .contact-wrap {
    padding: 26px !important;
  }

  /* Links and buttons that were 22–26px tall: hard to tap. */
  .back-btn,
  .link-more {
    display: inline-flex !important;
    align-items: center;
    min-height: 40px;
  }
  .kb-row-layout-id811_2f8bdc-13 .kb-button {
    font-size: 14px !important;
    padding: 10px 16px !important;
  }
  main .kt-row-column-wrap li > a:only-child {
    display: inline-block;
    padding: 5px 0;
  }

  /* Kadence form on Contribute: email field and button wrap instead of overflowing. */
  .kb-form {
    flex-wrap: wrap;
    max-width: 100%;
  }

  /* Text that ran under the right edge on Awards, AI Visibility Tracking, etc. */
  main p.lead {
    max-width: 100% !important;
  }
}

/* Cookie banner: a 440px card centred over the hero sat on the first call-to-action
 * at most widths. Now a compact card in the bottom-right corner on tablets and
 * desktops and a slim bar along the bottom edge on phones. `html body` + the id beats
 * the banner's own #id !important rules. */
html body #op-cb-root {
  justify-content: flex-end !important;
  bottom: 16px !important;
}
/* The full-width wrapper took every click along the bottom of the screen; only the
 * card itself should. */
html body #op-cb-root.op-in {
  pointer-events: none !important;
}
html body #op-cb-root.op-in #op-cb-card {
  pointer-events: auto !important;
}
html body #op-cb-card {
  max-width: 340px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
}
html body #op-cb-icon,
html body #op-cb-divider {
  display: none !important;
}
html body #op-cb-top {
  margin: 0 0 10px !important;
}
html body #op-cb-title {
  font-size: 14px !important;
  margin: 0 0 2px !important;
}
html body #op-cb-desc,
html body #op-cb-desc a {
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
html body #op-cb-accept,
html body #op-cb-decline {
  min-height: 40px !important;
  padding: 0 18px !important;
}
@media (max-width: 767px) {
  html body #op-cb-root {
    bottom: 0 !important;
    padding: 0 !important;
  }
  html body #op-cb-card {
    max-width: none !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 10px 16px 12px !important;
  }
  html body #op-cb-top {
    margin: 0 0 8px !important;
  }
  html body #op-cb-title {
    display: none !important;
  }
}

/* Print: no site chrome, overlays or videos on paper. */
@media print {
  #masthead,
  .site-header,
  #mobile-drawer,
  #op-cb-root,
  .adp-popup,
  #oplus-popup-overlay,
  video,
  .site-footer,
  #colophon {
    display: none !important;
  }
  body,
  main {
    background: #fff !important;
  }
  main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

@media (max-width: 767px) {
  /* Careers: the page's H1 tagline was set to 8px on phones. */
  html .kt-adv-heading26_3e40c7-b8 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    padding: 0 20px !important;
  }
  /* Home: the phone hero headline became the H1 (the desktop one is hidden here);
   * keep the size it had as an H2. */
  html .kt-adv-heading18375_3f14c2-07 {
    font-size: 28px !important;
  }
}

/* Home "Our Family": the heading carried a large left margin and sat up to 240px
 * right of the centred avatars above it. */
html .kt-adv-heading18375_452da5-56 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center !important;
}

@media (max-width: 767px) {
  /* Case studies: 32px section padding + 44px card padding left the featured study
   * a 235px text column on phones. */
  html .opcs-landing-page-wrap .feat-body {
    padding: 28px 20px 24px !important;
  }
  html .opcs-landing-page-wrap > div[style*="padding:56px 32px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Services "Our Process": the coral tiles were 218px blocks (10rem bottom padding)
 * holding one icon, with the step text in separate cards below. Compact icon headers. */
html .kb-row-layout-id811_bfe2c8-60 [class*="kadence-column811_"] > .kt-inside-inner-col {
  padding: 28px 16px !important;
  min-height: 0 !important;
}
html .kb-row-layout-id811_bfe2c8-60 > .kt-row-column-wrap {
  padding-bottom: 16px !important;
}

/* Pause/play control added to auto-advancing sliders (opositive-runtime.js). */
html .op-slideshow-toggle {
  display: block;
  margin: 8px auto 0;
  min-height: 32px;
  min-width: 64px;
  padding: 4px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 999px;
  background: #fff;
  color: #1a202c;
  font: 600 13px/1 "Raleway", sans-serif;
  cursor: pointer;
}
html .op-slideshow-toggle:focus-visible {
  outline: 3px solid #cc1f2b;
  outline-offset: 2px;
}
/* Slider dots were 20px tap targets; 24px is the WCAG 2.5.8 minimum. */
html .slick-dots li button,
html .splide__pagination__page {
  min-width: 24px !important;
  min-height: 24px !important;
}

/* What We Deliver: the hero's background video no longer exists (404 on the live
 * site), which left a ~450px empty band above the Research Lab card. */
html .kb-row-layout-id20_3147a7-b6 > .kt-row-column-wrap {
  min-height: 0 !important;
  padding-top: 120px !important;
}

@media (max-width: 767px) {
  /* Phone footer links were 11px; 13px with room to tap. */
  html .kb-row-layout-id16379_7d6f65-1f .wp-block-kadence-advancedheading {
    font-size: 13px !important;
    line-height: 32px !important;
  }
}

/* Contact Us button at the end of the phone/tablet drawer menu. */
html #mobile-drawer .op-drawer-nav a.op-drawer-cta {
  display: block;
  margin: 16px 0 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #cc1f2b;
  color: #fff !important;
  text-align: center;
  font-weight: 700;
}

/* Images whose box has a different shape than the file (stretched to 91–200%):
 * keep the box, draw the image undistorted inside it. */
html main img:is(
    [src*="Group-1321323350"],
    [src*="Group-1321323375"],
    [src*="Group-1321323378-2"],
    [src*="Group-1321323551"],
    [src*="/Step-1."],
    [src*="/Step-2."],
    [src*="/Step-3-1."]
  ) {
  object-fit: contain !important;
}

@media (max-width: 767px) {
  /* Contact Us: the page's H1 was 16px on phones. */
  html .kt-adv-heading11100_64d4fe-6c {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
}
