/* NMCSAP Resource Library — Figma "Find Resources" (870:14130) */

.nmr-library {
	--nmr-heading-font: var(--e-global-typography-h3typ-font-family, "Avenir LT Pro"), "Avenir", sans-serif;
	--nmr-body-font: var(--e-global-typography-ptypx-font-family, "Public Sans"), sans-serif;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 28px;
	font-family: var(--nmr-body-font);
}

.nmr-library .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Search + filters ---------- */

.nmr-filters {
	display: flex;
	gap: 8px;
	margin: 0;
}

.nmr-field {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 23px;
	height: 56px;
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 999px;
	box-sizing: border-box;
	transition: border-color .2s;
}

.nmr-field:focus-within {
	border-color: #E0AB25;
	box-shadow: 0 0 0 2px rgba(224, 171, 37, .25);
}

.nmr-field img {
	flex: none;
}

.nmr-field--search {
	flex: 2 1 0;
	min-width: 0;
}

.nmr-field--select {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.nmr-filters input[type="search"],
.nmr-filters select {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: var(--nmr-body-font);
	font-size: 18px;
	line-height: 16px;
	color: #111;
}

.nmr-filters input[type="search"]::placeholder {
	color: #808080;
	opacity: 1;
}

.nmr-filters input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}

.nmr-filters select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 18px;
	cursor: pointer;
	color: #808080;
}

.nmr-filters select.has-value {
	color: #111;
}

.nmr-caret {
	position: absolute;
	right: 23px;
	pointer-events: none;
}

/* Only shown without JS; with JS the form updates on its own. */
.nmr-submit {
	flex: none;
	padding: 0 32px;
	border: 1px solid #E0AB25;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-family: var(--nmr-heading-font);
	font-weight: 800;
	font-size: 18px;
	cursor: pointer;
}

.nmr-js .nmr-submit {
	display: none;
}

/* ---------- Grid ---------- */

.nmr-results {
	transition: opacity .2s;
}

.nmr-results.is-loading {
	opacity: .45;
	pointer-events: none;
}

.nmr-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 22px;
}

.nmr-card {
	margin: 0;
	background: #F9F6EE;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}

.nmr-card:hover,
.nmr-card:focus-within {
	box-shadow: 0 6px 18px rgba(17, 17, 17, .12);
	transform: translateY(-2px);
}

.nmr-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.nmr-card__link:hover,
.nmr-card__link:focus {
	color: inherit;
	text-decoration: none;
}

.nmr-card__link:focus-visible {
	outline: 2px solid #E0AB25;
	outline-offset: -2px;
}

.nmr-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 144px;
	border-bottom: 1px solid #bbb;
}

.nmr-card--pdf .nmr-card__media {
	background-color: #E0AB25;
}

.nmr-card--video .nmr-card__media {
	background-color: #89A79A;
}

.nmr-card--doc .nmr-card__media {
	background-color: #B7AFC1;
}

.nmr-card__icon {
	width: 31px;
	height: auto;
	max-height: 46px;
}

.nmr-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px;
}

.nmr-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nmr-badge {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid #ccc;
	font-family: var(--nmr-body-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: .02em;
	color: #777;
	text-transform: uppercase;
}

.nmr-badge--featured {
	border-color: #E0AB25;
	background: #E0AB25;
	color: #111;
}

.nmr-card__title {
	margin: 0;
	font-family: var(--nmr-heading-font);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	color: #111;
}

.nmr-card__action {
	font-size: 18px;
	line-height: 24px;
	color: #888;
}

.nmr-card__link:hover .nmr-card__action {
	color: #111;
	text-decoration: underline;
}

.nmr-empty {
	margin: 0;
	padding: 40px 0;
	text-align: center;
	font-size: 18px;
	color: #555;
}

/* ---------- Pagination ---------- */

.nmr-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
}

.nmr-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	border: 1px solid #111;
	border-radius: 6px;
	background: #fff;
	color: #111;
	font-family: var(--nmr-body-font);
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
}

a.nmr-page:hover,
a.nmr-page:focus {
	background: #E0AB25;
	border-color: #E0AB25;
	color: #111;
}

.nmr-page.is-current {
	background: #111;
	color: #fff;
}

.nmr-page.is-disabled {
	opacity: .35;
}

.nmr-page.is-gap {
	border-color: transparent;
	background: transparent;
}

/* ---------- Audience / category archive ---------- */

body .site-main.nmr-archive {
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding: 0 !important;
	background: #FFFCF4;
}

.nmr-archive__hero,
.nmr-archive__body {
	max-width: 1389px;
	margin: 0 auto;
	padding: 90px 120px;
	box-sizing: content-box;
}

.nmr-archive__hero {
	padding-bottom: 0;
}

.nmr-archive__back {
	display: inline-block;
	margin-bottom: 24px;
	font-family: var(--e-global-typography-btntx-font-family, "Avenir LT Pro"), sans-serif;
	font-weight: 800;
	font-size: 18px;
	color: #111;
	text-decoration: none;
}

.nmr-archive__back:hover {
	color: #E0AB25;
}

.nmr-archive__title {
	margin: 0 0 24px;
	font-family: var(--e-global-typography-h1typ-font-family, "Avenir LT Pro"), sans-serif;
	font-size: 80px;
	font-weight: 800;
	line-height: 88px;
	color: #111;
}

.nmr-archive__desc {
	max-width: 760px;
	font-family: var(--e-global-typography-ptypx-font-family, "Public Sans"), sans-serif;
	font-size: 20px;
	line-height: 30px;
	color: #111;
}

.nmr-archive__desc p {
	margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.nmr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nmr-filters {
		flex-wrap: wrap;
	}

	.nmr-field--search {
		flex-basis: 100%;
	}

	.nmr-archive__hero,
	.nmr-archive__body {
		padding: 54px 40px;
	}

	.nmr-archive__hero {
		padding-bottom: 0;
	}

	.nmr-archive__title {
		font-size: 64px;
		line-height: 1.1;
	}

	.nmr-archive__desc {
		font-size: 17px;
		line-height: 24.8px;
	}
}

@media (max-width: 767px) {
	.nmr-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nmr-filters {
		flex-direction: column;
	}

	.nmr-field {
		flex: none;
		width: 100%;
		height: 50px;
	}

	.nmr-filters input[type="search"],
	.nmr-filters select {
		font-size: 16px;
	}

	.nmr-submit {
		height: 50px;
	}

	.nmr-card__title {
		font-size: 20px;
	}

	.nmr-archive__hero,
	.nmr-archive__body {
		padding: 36px 20px;
	}

	.nmr-archive__hero {
		padding-bottom: 0;
	}

	.nmr-archive__title {
		font-size: 44px;
	}

	.nmr-archive__desc {
		font-size: 14px;
		line-height: 20.4px;
	}
}
