/* credential-strip.css — Credential strip component
 *
 * HTML: .credential-strip > .credential-strip__list > .credential-strip__item
 * Used on homepage (homepage-credentials section) and About page.
 * Renders a horizontal strip of credentials/certifications.
 */

/* ─── Base ──────────────────────────────────────────────── */

.credential-strip {
	padding: 0;
}

.credential-strip__heading {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

/* ─── List ──────────────────────────────────────────────── */

.credential-strip__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
}

/* ─── Item ──────────────────────────────────────────────── */

.credential-strip__item {
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
	color: rgba(31, 61, 43, 0.6);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 1rem 1.5rem;
	border-right: 1px solid rgba(31, 61, 43, 0.15);
}

.credential-strip__item:first-child {
	padding-left: 0;
}

.credential-strip__item:last-child {
	border-right: none;
}

/* ─── Homepage credentials section wrapper ──────────────── */

/* homepage-credentials is the section rendered in front-page.php
   that wraps the credential-strip component */
.homepage-credentials {
	background-color: var(--gold);
	padding: 0;
}

.homepage-credentials .credential-strip__item {
	color: var(--green-dark);
	border-right-color: rgba(22, 44, 31, 0.2);
}

/* ─── Responsive ────────────────────────────────────────── */

@media ( max-width: 1024px ) {

	.credential-strip__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.credential-strip__item {
		border-bottom: 1px solid rgba(31, 61, 43, 0.15);
	}

	/* Remove right border from 2nd column items */
	.credential-strip__item:nth-child(2n) {
		border-right: none;
	}
}

@media ( max-width: 640px ) {

	.credential-strip__list {
		grid-template-columns: 1fr;
	}

	.credential-strip__item {
		padding: 0.875rem 0;
		border-right: none;
	}
}
