/* Text-only Permanent Staffing and RPO: remove the former photo column. */
body.inner-reference-theme main .elementor.elementor-23 .flow-navy-card.service-text-only:nth-child(n){height:auto!important;min-height:0!important;--min-height:0px!important;flex-direction:column!important;--flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;}
body.inner-reference-theme main .elementor.elementor-23 .flow-navy-card.service-text-only:nth-child(n)>.e-con{width:100%!important;max-width:100%!important;flex-basis:auto!important;flex-grow:0!important;height:auto!important;min-height:0!important;--min-height:0px!important;padding:0!important;margin:0!important;}


/* Apply the same row overlap to the service and process grids. */
body.inner-reference-theme #main .elementor-23 .methodology-journey {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.inner-reference-theme #main .elementor-23 .methodology-journey > li:nth-child(2)::after {
  display: none;
}
body.inner-reference-theme #main .service-grid-stacking {
  isolation: isolate;
}
body.inner-reference-theme #main .service-grid-stacking > :is(.flow-navy-card, li) {
  position: relative;
  z-index: var(--service-row-layer, 1);
  translate: 0 var(--service-row-shift, 0px);
}
body.inner-reference-theme #main .elementor-23 .service-capacity-card {
  display: flex;
}
body.inner-reference-theme #main .elementor-23 .service-capacity-card > a {
  align-self: flex-start;
  margin-top: auto;
}
/* Size each staffing row to its own content. */
body.inner-reference-theme #main .elementor-23 .elementor-element-db8213c {
  grid-auto-rows: auto;
}
body.inner-reference-theme #main .elementor-23 .elementor-element-db8213c > .flow-navy-card:nth-child(n) {
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box;
  padding: clamp(20px, 2.15vw, 26px) !important;
  gap: 12px !important;
  --gap: 12px !important;
}
body.inner-reference-theme #main .elementor-23 .elementor-element-db8213c > .flow-navy-card .elementor-widget-text-editor p:last-child,
body.inner-reference-theme #main .elementor-23 .elementor-element-db8213c > .service-capacity-card > p:last-of-type {
  margin-bottom: 0 !important;
}
@media (max-width: 650px) {
  body.inner-reference-theme #main .elementor-23 .methodology-journey {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Use the homepage palette for both Services grids, independent of hover. */
body.inner-reference-theme #main .elementor-23 :is(.elementor-element-db8213c > .flow-navy-card, .methodology-journey > li) {
  --service-fill: #f3f5f6;
  --service-text: #203443;
  --service-heading: #cf4763;
  --service-icon: #cf4763;
  background: var(--service-fill) !important;
  border-color: var(--service-fill) !important;
}
body.inner-reference-theme #main .elementor-23 .service-grid-stacking > :is(.flow-navy-card, li):not(.is-stack-grey) {
  --service-fill: #b83c55;
  --service-text: #fff;
  --service-heading: #fff;
  --service-icon: #ffffff25;
}
body.inner-reference-theme #main .elementor-23 :is(.elementor-element-db8213c > .flow-navy-card, .methodology-journey > li) :is(.elementor-heading-title, h3) {
  color: var(--service-heading) !important;
}
body.inner-reference-theme #main .elementor-23 :is(.elementor-element-db8213c > .flow-navy-card, .methodology-journey > li) :is(p, .elementor-widget-text-editor, .elementor-icon-list-text) {
  color: var(--service-text) !important;
}
body.inner-reference-theme #main .elementor-23 :is(.elementor-element-db8213c > .flow-navy-card, .methodology-journey > li) :is(.elementor-icon, .methodology-icon) {
  background: var(--service-icon) !important;
}
body.inner-reference-theme #main .elementor-23 .elementor-element-db8213c > .flow-navy-card .elementor-button {
  background: #fff !important;
  border-color: #cf4763 !important;
}
body.inner-reference-theme #main .elementor-23 .elementor-element-db8213c > .flow-navy-card .elementor-button,
body.inner-reference-theme #main .elementor-23 .elementor-element-db8213c > .flow-navy-card .elementor-button span {
  color: #8f344a !important;
}
