/* One assembled-page-only finish pass; the existing card and motion systems stay intact. */
/* One height owner across the one/two/four-column layout. The authored C2b
   geometry uses more of its reserved row instead of shrinking at 621px. */
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-study {
  --card-image: 196px;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-list {
  /* One fraction shared by every card row, including both rows in 2×2. */
  grid-template-rows: none !important;
  grid-auto-rows: 1fr;
  row-gap: 16px;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-list > .cr-card {
  display: grid;
  grid-row: auto;
  grid-template-rows: auto var(--card-image) minmax(min-content, 1fr) 46px;
  row-gap: 16px;
  align-self: stretch;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-link {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  gap: 16px;
  /* More breathing room without narrowing the longer service titles. */
  padding-block: 28px 16px;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-visual {
  height: var(--card-image);
  min-height: 0;
  /* Use the whole reserved row; the existing grid gap keeps copy clear. */
  margin-block: 0;
}

/* AI and C2b may use the full visual width. Their bounded host fit keeps the
   painted edges inside it; Data retains its authored horizontal inset. */
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-link:is([data-study-open="ai"],[data-study-open="maatwerk"]) .cr-visual-art {
  left: 0;
  right: 0;
}

/* The larger AI circle uses the reserved space between title and description.
   Its upper badge must remain visible across both nested preview boundaries. */
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-link[data-study-open="ai"] .cr-card-visual,
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-link[data-study-open="ai"] .cr-motion-stage[data-motion-slot="preview"] {
  overflow: visible;
}

/* Put the divider first, then center each 44px target in the compact low row. */
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .nx-integrated-footer {
  bottom: 0 !important;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-top: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 44px;
  background: linear-gradient(#e1e5ec, #e1e5ec) left top / 100% 2px no-repeat;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .nx-integrated-footer > :is(.card-info, .nx-consult-badge) {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .nx-consult-badge {
  width: 100%;
  max-width: 100%;
}

/* The card action and the secondary badge share the existing footer row. */
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .nx-consult-card .cr-action-mark svg {
  transform: none;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .cr-action-mark {
  position: static !important;
  flex: none;
  width: 28px !important;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .cr-card-action {
  position: relative;
  min-height: 44px !important;
  padding-bottom: 0 !important;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .cr-card-action .cr-action-label {
  position: absolute;
  z-index: 4;
  inset-inline-end: 0;
  inset-block-end: calc(50% + 16px);
  display: block;
  visibility: hidden;
  padding: 3px 7px;
  border: 1px solid var(--nx-material-line, #cdd6e2);
  border-radius: 6px;
  background: var(--nx-material-card, #f0f3f7);
  color: var(--nx-material-accent, #3045c9);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-link:focus-visible .cr-card-action .cr-action-label {
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card:hover:not(:has(.card-info.is-open)) .cr-card-action .cr-action-label {
    visibility: visible;
  }
}

/* The footer grid reserves the arrow column. Let the badge use the first column. */
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .nx-integrated-footer .card-badge {
  min-width: min-content;
  max-width: 100%;
  gap: 5px;
  white-space: normal;
}

html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .nx-integrated-footer .info-trigger > span {
  min-inline-size: min-content;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* At the start of the four-column layout, keep both footer actions clear. */
@container service-cards (min-width: 1120px) and (max-width: 1160px) {
  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .nx-integrated-footer .card-badge {
    gap: 3px;
  }
  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .cr-card-action {
    gap: 4px;
  }
}

@container service-cards (min-width: 621px) and (max-width: 1119px) {
  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container service-cards (max-width: 620px) {
  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-row {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    padding: 8px 8px 12px;
    touch-action: manipulation;
  }

  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card-list {
    grid-template-columns: none;
    grid-template-rows: none !important;
    grid-auto-flow: column;
    grid-auto-columns: min(86%, 450px);
    gap: 12px;
  }

  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-swipe-hint {
    display: block;
  }

  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .cr-card-title,
  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .cr-description {
    min-height: 0;
  }
}

@media (forced-colors: active) {
  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .nx-integrated-footer {
    background: none;
  }

  html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .nx-integrated-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px solid CanvasText;
    pointer-events: none;
  }
}

/* Let overview copy use the available card width and sit clear of the figure. */
html[data-complete-review="20261013"] .nx-services .compare-board.nx-consult-offer .cr-card .cr-description {
  min-height: 0;
  max-width: none;
  margin-block: 12px 0;
  align-self: end;
  text-align: left;
  text-align-last: left;
  hyphens: manual;
}

