/*
 * BTEB approval badge (template-parts/bteb-approval.php): the board's seal
 * (assets/images/bteb-logo.png), the approval line and a small caption. The
 * seal's centre is transparent, so it sits on a white disc to stay legible on
 * the dark hero and footer.
 *
 * --hero sits bare under the home hero buttons; --footer is framed and set
 * into the footer divider (.footer-approval).
 */
.bteb-approval {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.bteb-approval__seal {
	width: 3.5rem;
	height: 3.5rem;
	flex-shrink: 0;
	padding: 0.2rem;
	border-radius: 9999px;
	background: #FFFFFF;
	box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.6);
	object-fit: contain;
}

.bteb-approval__text {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.15rem;
}

.bteb-approval__text strong {
	color: #FFFFFF;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
}

.bteb-approval__text small {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	color: #94A3B8;
	font-size: 0.72rem;
	line-height: 1.4;
}

/* Green "verified" check at the end of the caption. */
.bteb-approval__check {
	color: #4ADE80;
	font-size: 1.05rem;
	font-variation-settings: 'FILL' 1;
}

/* BTEB institution code, a green-tinted pill after the check. */
.bteb-approval__code {
	margin-left: 0.2rem;
	padding: 0.1rem 0.55rem;
	border: 1px solid rgb(74 222 128 / 0.35);
	border-radius: 9999px;
	background: rgb(74 222 128 / 0.1);
	color: #BBF7D0;
	font-weight: 600;
}

.bteb-approval__code b {
	color: #FFFFFF;
	font-weight: 800;
}

@media (min-width: 640px) {
	.bteb-approval__text strong {
		font-size: 1.05rem;
	}

	.bteb-approval__text small {
		font-size: 0.78rem;
	}
}

/*
 * Footer: the divider between the link columns and the copyright row, with the
 * badge set into its middle. The hairlines run out from either side of the
 * badge and fade at the far ends; with no badge they meet as one plain line.
 * Below md the badge sits centred above a plain hairline instead.
 */
.footer-approval {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}

.footer-approval::before {
	display: none;
}

.footer-approval::after {
	content: '';
	align-self: stretch;
	height: 1px;
	background: rgb(255 255 255 / 0.1);
}

.bteb-approval--footer {
	max-width: 100%;
	padding: 0.75rem 1.25rem 0.75rem 0.75rem;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 1.25rem;
	background: linear-gradient(135deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02));
	box-shadow: 0 0 0 5px rgb(255 255 255 / 0.02), 0 24px 48px -24px rgb(0 0 0 / 0.7);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
	.footer-approval {
		flex-direction: row;
		gap: 0;
	}

	.footer-approval::before,
	.footer-approval::after {
		content: '';
		display: block;
		flex: 1;
		align-self: auto;
		min-width: 1.5rem;
		height: 1px;
	}

	.footer-approval::before {
		background: linear-gradient(to right, rgb(255 255 255 / 0.03), rgb(255 255 255 / 0.16));
	}

	.footer-approval::after {
		background: linear-gradient(to left, rgb(255 255 255 / 0.03), rgb(255 255 255 / 0.16));
	}

	.bteb-approval--footer {
		flex-shrink: 0;
		margin: 0 1.5rem;
		padding-right: 1.75rem;
		border-radius: 9999px;
	}
}
