/*
 * UFC GYM theme additions after the static build's stylesheet (UFCG_STYLESHEETS). Plain CSS on the brand tokens.
 * Round 3 (01/12/2026): hero promos (template-parts/home/hero.php, javascript/modules/promos.js) and the trainer
 * profile (includes/trainers.php ufcg_trainer_profile).
 */

/* Hero promos: stacked in one grid cell so the block keeps the tallest promo's height (no layout shift). */
.ufcg-promos {
	max-width: 42rem;
	margin-top: 1.5rem;
}
.ufcg-promos__bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.ufcg-promos__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.ufcg-promos__list {
	display: grid;
	margin-top: 0.5rem;
}
.ufcg-promo {
	grid-area: 1 / 1;
	transition: opacity 0.5s;
}
.ufcg-promo.is-hidden {
	opacity: 0;
}
.ufcg-promos__note {
	margin-top: 0.5rem;
	color: rgb(255 255 255 / 0.8);
}
@media (prefers-reduced-motion: reduce) {
	.ufcg-promos__toggle {
		display: none;
	}
	.ufcg-promos__list {
		gap: 0.25rem;
	}
	.ufcg-promo {
		grid-area: auto;
		transition: none;
	}
	.ufcg-promo.is-hidden {
		opacity: 1;
	}
}

/* Trainer profile: View profile under the card opens the trainer's own sections. */
.ufcg-profile {
	margin-top: 0.25rem;
}
.ufcg-profile__toggle {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.ufcg-profile__toggle::-webkit-details-marker {
	display: none;
}
.ufcg-profile__close,
.ufcg-profile[open] .ufcg-profile__open {
	display: none;
}
.ufcg-profile[open] .ufcg-profile__close {
	display: inline;
}
.ufcg-profile__body {
	display: grid;
	gap: 1rem;
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 2px solid var(--black);
}
.ufcg-profile__text,
.ufcg-profile__list {
	margin-top: 0.5rem;
}
.ufcg-profile__list {
	display: grid;
	gap: 0.375rem;
}
.ufcg-profile__list li {
	display: flex;
	gap: 0.5rem;
}
.ufcg-profile__list li::before {
	content: "";
	flex: none;
	width: 0.375rem;
	height: 0.375rem;
	margin-top: 0.5rem;
	background: var(--red);
}
.ufcg-profile__note {
	white-space: pre-line;
}
.ufcg-profile__links {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1rem;
}
.ufcg-profile__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}
