/*
 * Resources page (inc/resources.php). Figma "Resources" 2148:45124: chips 45174, downloads 45189
 * (group 45190, card 45197), certifications 45489. The Elementor bands carry tmr-band-downloads /
 * tmr-band-certs so a band whose block is filtered away hides with it.
 */

.tmr-band-downloads:has([data-tmr-part="groups"][hidden]),
.tmr-band-certs:has([data-tmr-part="certs"][hidden]) {
	display: none;
}

/* Chips */
.tmr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 16px;
}
body .tmr-chips a.tmr-chip {
	padding: 10px 18px;
	background: var(--white, #FFFFFF);
	border: 1px solid var(--border, #9C9CA2);
	color: var(--ink, #171719);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	transition: border-color var(--m-dur-s, 200ms);
}
body .tmr-chips a.tmr-chip:hover {
	border-color: var(--ink, #171719);
}
body .tmr-chips a.tmr-chip.is-on {
	background: var(--ink, #171719);
	border-color: var(--ink, #171719);
	color: var(--white, #FFFFFF);
	font-weight: 500;
}

/* Groups */
.tmr {
	display: flex;
	flex-direction: column;
	gap: 72px;
	width: 100%;
	transition: opacity var(--m-dur-s, 200ms);
}
.is-loading .tmr,
.is-loading .tmrc-certs {
	opacity: .5;
}
.tmr-group {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.tmr-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
}
.tmr-head p {
	margin: 0;
}
.tmr .tmr-eyebrow {
	margin-bottom: 8px;
	color: var(--tan, #6F6556);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
body .tmr .tmr-head h2 {
	margin: 0;
	color: var(--ink, #171719);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -.7px;
}
.tmr .tmr-aside {
	flex: none;
	width: 360px;
	color: var(--body, #656569);
	font-size: 15px;
	line-height: 1.6;
}
.tmr-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tmr-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
	padding: 28px 24px;
	background: var(--white, #FFFFFF);
	border: 1px solid var(--line, #E4E4E7);
}
.tmr-top {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.tmr .tmr-icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: var(--tan, #6F6556);
}
body .tmr .tmr-card h3 {
	margin: 0 0 8px;
	color: var(--ink, #171719);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.38;
	letter-spacing: -.2px;
}
.tmr .tmr-top p {
	margin: 0;
	color: var(--body, #656569);
	font-size: 14px;
	line-height: 1.58;
}
.tmr-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--line, #E4E4E7);
}
.tmr .tmr-kind {
	color: var(--muted, #96969A);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	white-space: pre;
}
body .tmr a.tmr-dl {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink, #171719);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
}
body .tmr a.tmr-dl:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tmr .tmr-dl-icon {
	width: 18px;
	height: 18px;
}
.tmr .tmr-empty {
	margin: 0;
	color: var(--body, #656569);
	font-size: 16px;
}

/* Certifications: hairline grid, rows of four and five */
.tmrc-certs {
	display: flex;
	flex-direction: column;
	gap: 1px;
	width: 100%;
	background: var(--hair, #E4E2DD);
	border: 1px solid var(--hair, #E4E2DD);
	transition: opacity var(--m-dur-s, 200ms);
}
.tmrc-row {
	display: flex;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tmrc-row li {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 28px 24px;
	background: var(--white, #FFFFFF);
}
.tmrc-certs .tmrc-award {
	width: 24px;
	height: 24px;
	margin-bottom: 6px;
	color: var(--tan, #6F6556);
}
body .tmrc-certs h3 {
	margin: 0;
	color: var(--ink, #171719);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
}
.tmrc-certs p {
	margin: 0;
	color: var(--body, #656569);
	font-size: 13px;
	line-height: 1.55;
}

@media (max-width: 1024px) {
	.tmr-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tmr-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.tmr .tmr-aside {
		width: auto;
	}
	.tmrc-row {
		flex-wrap: wrap;
	}
	.tmrc-row li {
		flex: 1 1 calc(50% - 1px);
	}
}
@media (max-width: 767px) {
	.tmr-chips {
		flex-wrap: nowrap;
		margin-inline: -20px;
		padding: 16px 20px 0;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.tmr-chips::-webkit-scrollbar {
		display: none;
	}
	body .tmr-chips a.tmr-chip {
		flex: none;
	}
	.tmr {
		gap: 48px;
	}
	.tmr-cards {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	body .tmr .tmr-head h2 {
		font-size: 26px;
	}
	.tmr-card {
		padding: 22px 20px;
	}
	.tmrc-row li {
		padding: 22px 18px;
	}
}
