/* ============================================
   Redesign 2026-11-13: whole-card links (Polycarp)
   A tap anywhere on a card opens its link, as on /projects/ (.ingenious-project-card).
   Each card keeps one real link (its title or its "Explore" link); a transparent
   pseudo-element on that link stretches over the card, so screen readers and the
   keyboard still meet a single, named link. Cards: service lines (home, /services/),
   audiences (home), blog cards (/blog/, related posts), home blog posts, products
   (service pages). Already whole-card: projects, featured projects, opportunities,
   opportunity hub. Team cards have no page to open, so they are not linked.
   .ingenious-link-arrow uses ::after for its arrow, so those links stretch with ::before.
   ============================================ */

.ingenious-service-card,
.ingenious-audience,
.ingenious-blog-card,
.ingenious-homepage-post-card,
.ingenious-product {
	position: relative;
}

.ingenious-service-card__link::before,
.ingenious-audience__link::before,
.ingenious-blog-card__title a::after,
.ingenious-homepage-post-card h3 a::after,
.ingenious-product .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Hover: the card lifts and its link underlines, wherever the pointer is. */
.ingenious-service-card,
.ingenious-audience,
.ingenious-product {
	transition: box-shadow 0.2s ease;
}

.ingenious-service-card:hover,
.ingenious-audience:hover,
.ingenious-product:hover {
	box-shadow: 0 8px 24px rgba(6, 63, 73, 0.12);
}

.ingenious-service-card:hover .ingenious-service-card__link,
.ingenious-audience:hover .ingenious-audience__link,
.ingenious-blog-card:hover .ingenious-blog-card__title a,
.ingenious-homepage-post-card:hover h3 a {
	color: var(--ing-teal-dark);
	text-decoration: underline;
}

.ingenious-service-card:hover .ingenious-link-arrow::after,
.ingenious-audience:hover .ingenious-link-arrow::after {
	transform: translateX(3px);
}

/* Keyboard: the focus ring goes round the whole card, not the small link. */
.ingenious-service-card:focus-within,
.ingenious-audience:focus-within,
.ingenious-blog-card:focus-within,
.ingenious-homepage-post-card:focus-within,
.ingenious-product:focus-within {
	outline: 2px solid var(--ing-green);
	outline-offset: 2px;
}

.ingenious-service-card__link:focus-visible,
.ingenious-audience__link:focus-visible,
.ingenious-blog-card__title a:focus-visible,
.ingenious-homepage-post-card h3 a:focus-visible,
.ingenious-product .wp-block-button__link:focus-visible {
	outline: none;
}

/* /services/: the cards carry the tagline and sub-service groups as well. */
.ingenious-service-card__tagline {
	font-family: var(--ing-font-label);
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ing-teal-dark);
	margin: -0.15rem 0 0.75rem;
	text-align: left;
}

/* "main" lifts these above custom.css's justified-text rule (0,2,1). */
main .ingenious-service-bento--services .ingenious-service-card__outcome,
main .ingenious-service-card .ingenious-service-card__groups li {
	text-align: left;
	hyphens: manual;
}

.ingenious-service-card__groups {
	font-size: 0.9375rem;
	margin: 0 0 1.25rem;
}
