/**
 * Mindscale Three Pillars — card links + custom icon images (extends mscore-widgets.min.css).
 */

/* Equal-height cards + body growth so bottom CTAs align on one line */
.mscore-widget-shell .mscore-tp .pillars-grid {
	align-items: stretch;
}

.mscore-widget-shell .mscore-tp .pillar {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.mscore-widget-shell .mscore-tp .pillar-inner .mscore-tp__body {
	flex: 1 1 auto;
	min-height: 1px;
}

.mscore-widget-shell .mscore-tp .mscore-tp__footer {
	flex-shrink: 0;
	margin-top: auto;
	width: 100%;
	text-align: center;
	padding-top: 4px;
}

/* Primary CTA — parity with .btn.btn--primary in mscore-header.css */
.mscore-widget-shell .mscore-tp .mscore-tp__cta.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 24px;
	border: none;
	border-radius: 999px;
	box-sizing: border-box;
	cursor: pointer;
	text-decoration: none;
	font-weight: 500;
	line-height: 1.25;
	max-width: 100%;
	transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.mscore-widget-shell .mscore-tp .mscore-tp__cta.btn.btn--primary {
	background: #147e93;
	color: #fff;
	box-shadow: 0 0 0 0 rgba(20, 126, 147, 0.4);
}

.mscore-widget-shell .mscore-tp .mscore-tp__cta.btn.btn--primary:hover {
	background: #1a9cb5;
	box-shadow: 0 0 0 8px rgba(20, 126, 147, 0.15);
	transform: translateY(-1px);
}

.mscore-widget-shell .mscore-tp .mscore-tp__cta.btn .arrow {
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.mscore-widget-shell .mscore-tp .mscore-tp__cta.btn:hover .arrow {
	transform: translateX(3px);
}

.mscore-widget-shell .mscore-tp .pillar--linked .mscore-tp__cta.btn {
	cursor: inherit;
}

.mscore-widget-shell .mscore-tp .pillar--linked {
	cursor: pointer;
}

.mscore-widget-shell .mscore-tp .pillar-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.mscore-widget-shell .mscore-tp .pillar-card-link:focus-visible {
	outline: 2px solid var(--ms-accent, #66fcf1);
	outline-offset: 2px;
}

.mscore-widget-shell .mscore-tp .pillar-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

/*
 * Linked cards only: inner sits above the stretched link in paint order; without
 * pointer-events: none it would steal all clicks. None lets events reach .pillar-card-link.
 */
.mscore-widget-shell .mscore-tp .pillar--linked .pillar-inner {
	pointer-events: none;
}

.mscore-widget-shell .mscore-tp .pillar .icon-wrap img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	display: block;
}

/* In-card links must receive clicks again (linked cards: parent uses pointer-events: none). */
.mscore-widget-shell .mscore-tp .pillar--linked .pillar-inner .mscore-tp__body a {
	position: relative;
	pointer-events: auto;
}
