/*
 * 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;
	}
	/* Figma 4054:18543: documents are an open list — name, line, then "PDF  Download →" —
	   with hairlines between, no boxes or icons. */
	.tmr-cards {
		grid-template-columns: 1fr;
		gap: 0;
	}
	body .tmr .tmr-head h2 {
		font-size: 26px;
	}
	.tmr-card {
		gap: 12px;
		padding: 20px 0;
		border: 0;
		border-bottom: 1px solid var(--line, #E4E4E7);
		background: transparent;
	}
	.tmr-cards > :last-child .tmr-card,
	.tmr-cards > .tmr-card:last-child {
		border-bottom: 0;
	}
	.tmr .tmr-icon {
		display: none;
	}
	body .tmr .tmr-card h3 {
		margin-bottom: 6px;
		font-size: 18px;
	}
	.tmr .tmr-top p {
		font-size: 13px;
	}
	.tmr-bottom {
		justify-content: flex-start;
		padding-top: 0;
		border-top: 0;
	}
	.tmr .tmr-kind {
		font-size: 11px;
		font-weight: 400;
		letter-spacing: .8px;
	}
	.tmrc-row li {
		padding: 22px 18px;
	}
}

/* Certifications page, grouped by factory (Figma update 4054:19705): five across with hairlines */
.tmrc-groups {
	display: flex;
	flex-direction: column;
	gap: 48px;
	width: 100%;
}
.tmrc-group {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.tmrc-group-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tmrc-group .tmrc-group-h {
	margin: 0;
	color: #6F6556;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}
.tmrc-group-head p {
	margin: 0;
	color: var(--body, #656569);
	font-size: 16px;
	line-height: 1.6;
}
.tmrc-seals {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 1px;
	list-style: none;
	background: #E4E4E7;
}
.tmrc-seals li {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 182px;
	padding: 24px;
	background: #FFFFFF;
}
.tmrc-seal {
	display: flex;
	align-items: center;
	height: 72px;
}
body .tmrc-seal img {
	display: block;
	width: auto;
	max-width: 120px;
	height: auto;
	max-height: 72px;
	object-fit: contain;
}
.tmrc-seals h3,
body .tmrc-seals h3 {
	margin: 0;
	color: var(--ink, #171719);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}
.tmrc-seals p {
	margin: -8px 0 0;
	color: var(--body, #656569);
	font-size: 14px;
	line-height: 1.57;
}
@media (max-width: 1024px) {
	.tmrc-seals {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.tmrc-groups {
		gap: 40px;
	}
	.tmrc-seals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tmrc-seals li {
		min-height: 0;
		padding: 16px;
	}
	.tmrc-seal {
		height: 56px;
	}
	body .tmrc-seal img {
		max-height: 56px;
	}
	body .tmrc-seals h3 {
		font-size: 15px;
	}
	.tmrc-seals p {
		font-size: 13px;
	}
	/* Figma 4054:19891: an odd last seal leaves its neighbour blank (white), never a grey cell;
	   the home linen marks run one per row. */
	.tmrc-seals li.is-empty {
		display: none;
	}
	/* Each seal draws its own hairline (the 1px gap is covered by its shadow), so a gap left
	   by an odd last seal stays white instead of showing the grid's grey. */
	.tmrc-seals {
		background: transparent;
	}
	.tmrc-seals > li {
		box-shadow: 0 0 0 1px var(--line, #E4E4E7);
	}
	.tmrc-group.is-home-linen .tmrc-seals {
		grid-template-columns: 1fr;
	}
	.tmrc-group.is-home-linen .tmrc-seal {
		justify-content: flex-start;
	}
}
