/**
 * Variant CSS: offer--icon-feature-matrix
 * Layer 2 - Path B universal offer variant (authored 2026-06-06).
 *
 * Concept: a DENSE, CONNECTED matrix of small service tiles (icon + name +
 * one-line description + a tiny tag). Tiles share hairline grid lines instead of
 * sitting in gaps, so a dozen micro-services read as ONE unified capabilities
 * table — a spec sheet, not a stack of floating cards. 4 across on desktop,
 * 2 across on tablet, 1 across on phone.
 *
 * Differentiator vs sibling offer variants:
 *   - icon-cards-3col: 3 generous, free-standing cards with a "learn more" link.
 *   - grid-compact-auto: gapped auto-fit tiles (cards in a flow grid).
 *   THIS one: a bordered, gap-LESS matrix where cells weld together via shared
 *   hairlines + a tiny per-tile tag — built for MANY (8-12+) tiny services.
 *
 * Welding technique: each <wp:columns> row is a flex row of equal columns with
 * NO column gap; the matrix wrapper has an outer frame; tiles carry right +
 * bottom hairlines, and the wrapper clips the trailing edges so the grid reads
 * as a single ruled table. Tokens are semantic only; no dark band.
 */

/* == Section shell == */
body.aibt-universal .universal-offer--icon-feature-matrix {
	background: var(--background);
	color: var(--text-primary);
	border-bottom: 1px solid var(--divider-primary);
}

/* Intro: capped measure, flush-left so kicker + headline share the matrix's
   left edge (constrained children otherwise centre via margin-inline:auto). */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__intro {
	margin-block: 0 clamp(2.5rem, 6vh, 4rem);
	margin-inline: 0 auto !important;
	max-width: 46ch;
}

/* Kicker: uppercase tracked accent, matches sibling offer variants. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-md) 0 !important;
}

body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

/* Emphasized headline word lifts to accent. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__headline em {
	font-style: normal;
	color: var(--accent) !important;
}

body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
}

/* == Matrix frame == */
/* The whole matrix is one bordered table; the outer frame + radius wrap the
   welded cells. overflow:hidden clips the tiles' trailing hairlines + the
   bottom-row baseline so corners stay clean. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__matrix {
	border: 1px solid var(--divider-primary);
	border-radius: var(--decor-radius, 0px);
	overflow: hidden;
	background: var(--background-card, var(--background));
}

/* Each row of columns sits flush against the next — zero vertical gap so the
   horizontal hairlines between rows meet exactly. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__matrix-row {
	margin: 0 !important;
	gap: 0 !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
}

/* Tile = one matrix cell. Right + bottom hairlines weld neighbours together;
   the cell never shrinks below 0 so a long name wraps instead of overflowing. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile {
	flex-basis: 25% !important;
	min-width: 0 !important;
	padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1rem, 1.8vw, 1.4rem) !important;
	border-right: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
	display: flex !important;
	flex-direction: column;
	gap: 0.55rem;
	transition: background var(--duration-fast, 0.18s) var(--ease-default, ease);
}

/* Subtle cell hover: the matrix is browsable — lift the hovered cell. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile:hover {
	background: var(--accent-fade);
}

/* Icon chip: small mono glyph in an accent-tinted square, the cell's marker. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	flex: 0 0 auto;
	border-radius: var(--decor-radius, 8px);
	background: var(--accent-fade);
	color: var(--accent);
	margin-bottom: 0.15rem;
}

body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-icon svg {
	width: 1.2rem;
	height: 1.2rem;
	display: block;
}

body.aibt-universal .universal-offer--icon-feature-matrix h3.universal-offer__tile-name,
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-name {
	font-family: var(--font-display) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* One-line description: clamp to keep cells the same height where supported. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: 1.45 !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tiny tag: an uppercase accent micro-label, anchored to the cell's foot. */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-tag {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: auto 0 0 0 !important;
	padding-top: 0.35rem;
}

/* == Focus polish == */
body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile:focus-within,
body.aibt-universal .universal-offer--icon-feature-matrix a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

/* == Motion safety == */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile {
		transition: none;
	}
}

/* == Responsive == */
/* Tablet: 2 across. Re-weld with nth-child rules below. */
@media (max-width: 781px) {
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile {
		flex-basis: 50% !important;
	}
	/* Clear every 2nd tile's right hairline so the column edge meets the frame. */
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__matrix-row .universal-offer__tile:nth-child(2n) {
		border-right: 0;
	}
}

/* Desktop weld: clear the last tile in each 4-wide row so its right hairline
   doesn't double the frame. (Scoped above 781px so the tablet rule wins below.) */
@media (min-width: 782px) {
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__matrix-row .universal-offer__tile:nth-child(4n),
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__matrix-row .universal-offer__tile:last-child {
		border-right: 0;
	}
}

@media (max-width: 600px) {
	/* Phone: single column stack. Clear all right hairlines; rows divide by the
	   bottom hairline only — no horizontal overflow at 375px. */
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile {
		flex-basis: 100% !important;
		border-right: 0 !important;
		flex-direction: row;
		align-items: flex-start;
		flex-wrap: wrap;
	}
	/* Icon sits beside the name; text block takes the rest of the row. */
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-name {
		flex: 1 1 0;
		align-self: center;
	}
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-desc,
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-tag {
		flex: 1 1 100%;
	}
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-tag {
		margin-top: 0 !important;
	}
}

@media (max-width: 640px) {
	/* Cap uppercase tracking: wide letter-spacing reads as gaps at narrow widths. */
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__kicker,
	body.aibt-universal .universal-offer--icon-feature-matrix .universal-offer__tile-tag {
		letter-spacing: 0 !important;
	}
}
