/* Netsense navigation / interaction polish, step73.
   Scoped to home and the /services/ listing. */

/* HOME: the task cards describe scenarios, they are not destination links on desktop. */
@media (min-width: 768px) {
  .tasks .accordion-trigger {
    cursor: default;
  }
  .tasks .task-card .chev {
    display: none;
  }
}

/* HOME: main service cards are one large hit target on desktop.
   On mobile the overlay is disabled so the existing accordion remains usable. */
.services .service-featured,
.services .service-card {
  position: relative;
}
.home-service-hit {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: block;
}
.home-service-hit:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
@media (max-width: 767px) {
  .home-service-hit {
    display: none;
  }
}

/* HOME: additional services behave like project cards — the whole card is a link. */
.additional-grid article {
  position: relative;
}
.home-additional-hit {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
}
.home-additional-hit:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.additional-grid article:hover h3,
.additional-grid article:focus-within h3 {
  color: var(--green);
}

/* SERVICES LISTING: linked AI stages stay clickable but do not flash/highlight. */
.services-page .ai-stage.service-detail-target:hover {
  background-color: transparent;
}

/* SERVICES LISTING: lock B2B to the accepted 30 / 35 / 35 desktop grid.
   Explicit rows prevent generic clickable-card rules from shifting the mark/price. */
@media (min-width: 901px) {
  .services-page .services-section--build .build-row--b2b {
    display: grid;
    grid-template-columns: 30% 35% 35%;
    align-items: stretch;
    min-height: 126px;
  }
  .services-page .services-section--build .build-row--b2b .build-row__lead {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
  }
  .services-page .services-section--build .build-b2b__mark {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
  }
  .services-page .services-section--build .build-b2b__price {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    padding-right: 58px;
  }
  .services-page .services-section--build .build-b2b__arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
  }
}
