/* ==========================================================================
   Speaker Profile Grid  — [ptac_speaker_grid]
   Responsive CSS Grid with auto-fit, placeholder avatars, and linked names.
   ========================================================================== */

/* --- Section wrapper ---------------------------------------------------- */
.ptac-speaker-grid {
	padding: 2.5rem 0;
	text-align: center;
}

/* --- Heading ------------------------------------------------------------ */
.ptac-sg__heading {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	margin: 0 0 2rem;
	color: var(--ptac-sg-heading-color, inherit);
}

/* --- Grid --------------------------------------------------------------- */
.ptac-sg__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}

/* --- Card --------------------------------------------------------------- */
.ptac-sg__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 260px;
}

/* --- Avatar wrapper ----------------------------------------------------- */
.ptac-sg__avatar-wrapper {
	position: relative;
	width: 140px;
	height: 140px;
	margin-bottom: 1rem;
	border-radius: 50%;
	overflow: hidden;
	background-color: #e8e8e8;
	flex-shrink: 0;
}

/* Shared avatar styles (image and placeholder) */
.ptac-sg__avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Placeholder initial */
.ptac-sg__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #6b7280, #9ca3af);
	line-height: 1;
	user-select: none;
}

/* --- Info block --------------------------------------------------------- */
.ptac-sg__info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

/* --- Name --------------------------------------------------------------- */
.ptac-sg__name {
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	margin: 0;
	line-height: 1.3;
	color: inherit;
}

.ptac-sg__name a {
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ptac-sg__name a:hover,
.ptac-sg__name a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* External-link indicator for sighted users */
.ptac-sg__name a::after {
	content: " \2197"; /* ↗ north-east arrow */
	font-size: 0.75em;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ptac-sg__name a:hover::after,
.ptac-sg__name a:focus-visible::after {
	opacity: 0.6;
}

/* --- Title / role ------------------------------------------------------- */
.ptac-sg__title {
	font-size: 0.875rem;
	margin: 0;
	color: #6b7280;
	line-height: 1.4;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 768px) {
	.ptac-speaker-grid {
		padding: 1.5rem 0;
	}

	.ptac-sg__grid {
		gap: 1.5rem;
	}

	.ptac-sg__avatar-wrapper {
		width: 110px;
		height: 110px;
	}

	.ptac-sg__avatar--placeholder {
		font-size: 2.25rem;
	}
}

@media (max-width: 480px) {
	.ptac-sg__card {
		width: 140px;
	}

	.ptac-sg__grid {
		gap: 1.25rem;
	}

	.ptac-sg__avatar-wrapper {
		width: 90px;
		height: 90px;
	}

	.ptac-sg__avatar--placeholder {
		font-size: 1.75rem;
	}

	.ptac-sg__name {
		font-size: 0.95rem;
	}

	.ptac-sg__title {
		font-size: 0.8rem;
	}
}

/* --- Screen-reader-only utility (fallback if theme lacks it) ------------ */
.ptac-speaker-grid .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Reduced motion: disable any future transitions --------------------- */
@media (prefers-reduced-motion: reduce) {
	.ptac-sg__name a,
	.ptac-sg__name a::after {
		transition: none;
	}
}
