.rsg-resource-library,
.rsg-resource-detail,
.rsg-resource-archive,
.rsg-resource-single {
	box-sizing: border-box;
	width: 100%;
}

.rsg-resource-archive {
	margin: 0 auto;
	max-width: 1680px;
	padding: 0 1.5rem 3rem;
}

.rsg-resource-archive__header {
	margin: 0 0 1.25rem;
}

.rsg-resource-archive__header h1 {
	margin: 0;
}

.rsg-resource-single {
	margin: 0 auto;
	max-width: 760px;
	padding: 0 1.5rem 3rem;
}

.rsg-resource-single__article {
	margin: 0;
}

.rsg-resource-single__header {
	margin-bottom: 1.25rem;
}

.rsg-resource-single__title {
	margin: 0;
}

.rsg-resource-single__content::after {
	clear: both;
	content: "";
	display: table;
}

.rsg-resource-single__cover {
	aspect-ratio: 4 / 6;
	background: #eef3f0;
	float: left;
	margin: 0 1.5rem 1rem 0;
	max-width: min(42vw, 260px);
	overflow: hidden;
	width: 36%;
}

.rsg-resource-single__cover img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rsg-resource-single__description {
	font-size: 1.05rem;
	line-height: 1.55;
}

.rsg-resource-single__description > :first-child {
	margin-top: 0;
}

.rsg-dashboard-resource-cell {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	min-width: 16rem;
}

.rsg-dashboard-resource-cell p {
	color: #5f6f69;
	font-size: 0.9rem;
	margin: 0.25rem 0 0;
}

.rsg-dashboard-resource-thumb {
	background: #eef3f0;
	border-radius: 6px;
	display: block;
	flex: 0 0 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	width: 3.5rem;
}

.rsg-dashboard-resource-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rsg-dashboard-resource-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rsg-dashboard-resources-table {
	min-width: 760px;
}

.rsg-dashboard-resources-table th:nth-child(2),
.rsg-dashboard-resources-table td:nth-child(2) {
	width: 8rem;
}

.rsg-dashboard-resources-table th:nth-child(3),
.rsg-dashboard-resources-table td:nth-child(3) {
	width: 8.5rem;
}

.rsg-dashboard-resources-table th:nth-child(4),
.rsg-dashboard-resources-table td:nth-child(4) {
	width: 10rem;
}

.rsg-dashboard-resources-table td {
	vertical-align: middle;
}

.rsg-resource-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.rsg-resource-library {
	align-items: start;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(9.5rem, 11rem) minmax(0, 1fr);
	left: calc(50% - 50vw + 1.5rem);
	margin-bottom: 2rem;
	max-width: 1680px;
	position: relative;
	transform: none;
	width: calc(100vw - 3rem);
}

.rsg-resource-library--no-filters {
	grid-template-columns: 1fr;
	max-width: 900px;
}

.rsg-resource-directory-filters {
	background: #ffffff;
	border: 1px solid #d8e0dc;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(18, 26, 23, 0.04);
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0.85rem;
	position: sticky;
	scrollbar-gutter: stable;
	top: 1rem;
}

.rsg-resource-directory-filters__drawer,
.rsg-resource-directory-filters__body {
	min-width: 0;
}

.rsg-resource-directory-filters__summary {
	display: none;
}

.rsg-resource-directory-filters__mobile-title {
	display: none;
}

.rsg-resource-directory-filters__toggle {
	display: none;
}

.rsg-resource-directory-search {
	display: block;
	margin-bottom: 1rem;
}

.rsg-resource-directory-search span {
	color: #243b35;
	display: block;
	font-size: 0.82rem;
	font-weight: 800;
	margin-bottom: 0.4rem;
}

.rsg-resource-directory-search input {
	border: 1px solid #b9c8c1;
	border-radius: 6px;
	box-sizing: border-box;
	font: inherit;
	font-size: 0.92rem;
	line-height: 1.25;
	min-height: 2.35rem;
	padding: 0.45rem 0.55rem;
	width: 100%;
}

.rsg-resource-directory-search input:focus {
	border-color: #2f6655;
	outline: 2px solid rgba(47, 102, 85, 0.18);
	outline-offset: 1px;
}

.rsg-resource-directory-filters__header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.85rem;
}

.rsg-resource-directory-filters__header strong {
	font-size: 1rem;
}

.rsg-resource-directory-filters__header button,
.rsg-resource-link-button {
	background: transparent;
	border: 0;
	color: #2f6655;
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.rsg-resource-filter-group {
	border: 0;
	margin: 0 0 1rem;
	padding: 0;
}

.rsg-resource-filter-group:last-child {
	margin-bottom: 0;
}

.rsg-resource-filter-group legend {
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0;
	margin-bottom: 0.45rem;
}

.rsg-resource-filter-group label {
	align-items: center;
	display: flex;
	margin: 0.35rem 0;
}

.rsg-resource-filter-group input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.rsg-resource-filter-group span {
	align-items: center;
	border-radius: 5px;
	color: #243b35;
	cursor: pointer;
	display: flex;
	font-size: 0.92rem;
	gap: 0.45rem;
	line-height: 1.25;
	padding: 0.32rem 0.36rem;
	width: 100%;
}

.rsg-resource-filter-group span::before {
	background: #ffffff;
	border: 1px solid #a8b8b1;
	border-radius: 3px;
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	height: 0.75rem;
	width: 0.75rem;
}

.rsg-resource-filter-group input:checked + span {
	background: #eef7f3;
	color: #1f5646;
	font-weight: 700;
}

.rsg-resource-filter-group input:checked + span::before {
	background: #2f6655;
	border-color: #2f6655;
	box-shadow: inset 0 0 0 2px #ffffff;
}

.rsg-resource-filter-group input:focus-visible + span {
	outline: 2px solid #2f6655;
	outline-offset: 2px;
}

.rsg-resource-directory-list {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	justify-content: start;
}

.rsg-resource-directory-tile {
	background: #ffffff;
	border: 1px solid #d8e0dc;
	border-radius: 8px;
	box-sizing: border-box;
	padding: 1.25rem;
	transition: opacity 180ms ease, transform 180ms ease;
	width: 100%;
}

.rsg-resource-directory-tile.is-filtered-out {
	opacity: 0;
	transform: translateY(0.25rem);
}

.rsg-resource-directory-tile__title {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0 0 1rem;
}

.rsg-resource-directory-tile__body {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(7.5rem, 9.5rem) minmax(0, 1fr);
}

.rsg-resource-directory-tile__media {
	align-items: center;
	aspect-ratio: 4 / 6;
	background: #eef3f0;
	border-radius: 6px;
	color: #40534d;
	display: flex;
	font-weight: 700;
	justify-content: center;
	overflow: hidden;
	text-decoration: none;
}

.rsg-resource-directory-tile__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rsg-resource-directory-tile__excerpt {
	align-content: start;
	display: grid;
	gap: 0.75rem;
	min-width: 0;
}

.rsg-resource-directory-tile__excerpt p {
	color: #40534d;
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0;
	max-width: 54rem;
}

.rsg-resource-directory-tile .rsg-resource-link-button {
	align-items: center;
	background: #ffffff;
	border: 1px solid #2f6655;
	border-radius: 6px;
	color: #2f6655;
	display: inline-flex;
	font-weight: 800;
	justify-self: start;
	line-height: 1.2;
	padding: 0.55rem 0.8rem;
	text-decoration: none;
}

.rsg-resource-directory-tile .rsg-resource-link-button:hover,
.rsg-resource-directory-tile .rsg-resource-link-button:focus {
	background: #eef7f3;
	text-decoration: none;
}

.rsg-resource-directory-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 1.25rem;
}

.rsg-resource-directory-pagination button {
	background: #ffffff;
	border: 1px solid #b9c8c1;
	border-radius: 6px;
	color: #2f6655;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	line-height: 1;
	min-height: 2.25rem;
	min-width: 2.25rem;
	padding: 0.5rem 0.7rem;
}

.rsg-resource-directory-pagination button:hover,
.rsg-resource-directory-pagination button:focus,
.rsg-resource-directory-pagination button.is-current {
	background: #2f6655;
	border-color: #2f6655;
	color: #ffffff;
}

.rsg-resource-modal-is-open {
	overflow: hidden;
}

.rsg-resource-modal[hidden],
.rsg-resource-modal-content[hidden],
.rsg-resource-modal-template[hidden] {
	display: none;
}

.rsg-resource-modal {
	inset: 0;
	position: fixed;
	z-index: 9999;
}

.rsg-resource-modal__backdrop {
	background: rgba(18, 26, 23, 0.62);
	inset: 0;
	position: absolute;
}

.rsg-resource-modal__dialog {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(18, 26, 23, 0.26);
	left: 50%;
	max-height: calc(100vh - 6rem);
	max-width: min(92vw, 840px);
	overflow: auto;
	padding: 1.5rem;
	position: absolute;
	top: 3rem;
	transform: translateX(-50%);
	width: 100%;
}

.rsg-resource-modal__close {
	align-items: center;
	background: #ffffff;
	border: 1px solid #d8e0dc;
	border-radius: 999px;
	cursor: pointer;
	display: flex;
	font-size: 1.5rem;
	height: 2.25rem;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	width: 2.25rem;
}

.rsg-resource-modal-resource__header {
	padding-right: 2.5rem;
}

.rsg-resource-modal-resource__header h2 {
	margin: 0 0 1rem;
}

.rsg-resource-modal .rsg-resource-modal-resource__body {
	align-items: start;
	display: grid !important;
	gap: 1.5rem;
	grid-template-columns: 220px minmax(0, 1fr);
}

.rsg-resource-modal .rsg-resource-modal-resource__media-panel {
	box-sizing: border-box;
	display: grid;
	gap: 0.85rem;
	margin: 0;
	min-width: 0;
	width: 100%;
}

.rsg-resource-modal .rsg-resource-modal-resource__image {
	box-sizing: border-box;
	float: none !important;
	margin: 0 !important;
	max-width: none !important;
	min-width: 0;
	overflow: visible;
	width: 100% !important;
}

.rsg-resource-modal .rsg-resource-modal-resource__image img {
	aspect-ratio: 4 / 6;
	background: #eef3f0;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.rsg-resource-modal .rsg-resource-modal-resource__actions {
	background: #ffffff;
	box-sizing: border-box;
	margin: 0;
	min-width: 0;
	width: 100%;
}

.rsg-resource-modal .rsg-resource-modal-resource__content {
	box-sizing: border-box;
	min-width: 0;
}

.rsg-resource-modal-resource__content > :first-child {
	margin-top: 0;
}

.rsg-resource-card {
	background: #ffffff;
	border: 1px solid #d8e0dc;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rsg-resource-card__media {
	background: #eef3f0;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.rsg-resource-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rsg-resource-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
}

.rsg-resource-card__meta,
.rsg-resource-card__topics,
.rsg-resource-detail__access {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rsg-resource-card__meta span,
.rsg-resource-card__topics span,
.rsg-resource-detail__access span {
	background: #eef3f0;
	border-radius: 999px;
	color: #243b35;
	display: inline-flex;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.35rem 0.65rem;
}

.rsg-resource-card .rsg-membership-price-note,
.rsg-resource-primary-actions .rsg-membership-price-note {
	margin: .55rem 0 0;
	color: #31584d;
	font-size: .9rem;
	line-height: 1.4;
}

.rsg-resource-card .rsg-membership-price-note a,
.rsg-resource-primary-actions .rsg-membership-price-note a { color: inherit; font-weight: 700; }

.rsg-resource-card h3 {
	font-size: 1.15rem;
	line-height: 1.3;
	margin: 0;
}

.rsg-resource-card h3 a {
	color: inherit;
	text-decoration: none;
}

.rsg-resource-card p {
	color: #40534d;
	margin: 0;
}

.rsg-resource-card__actions,
.rsg-resource-detail__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.rsg-resource-card__actions {
	border-top: 1px solid #d8e0dc;
	justify-content: space-between;
	padding: 1rem;
}

.rsg-resource-detail__actions {
	justify-content: flex-start;
}

.rsg-resource-file-types {
	color: #5f6f69;
	font-size: 0.9rem;
	line-height: 1.4;
	margin: 0 0 0.85rem;
}

.rsg-resource-file-types span {
	color: #40534d;
	font-weight: 800;
}

.rsg-resource-file-list {
	border-top: 1px solid #d8e0dc;
	margin-top: 1rem;
	padding-top: 0.85rem;
}

.rsg-resource-file-list h3 {
	font-size: 0.95rem;
	line-height: 1.3;
	margin: 0 0 0.55rem;
}

.rsg-resource-file-list ul {
	display: grid;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rsg-resource-file-list li {
	align-items: center;
	box-sizing: border-box;
	border: 1px solid #d8e0dc;
	border-radius: 6px;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0.55rem 0.65rem;
}

.rsg-resource-file-list strong,
.rsg-resource-file-list span {
	display: block;
}

.rsg-resource-file-list strong {
	color: #243b35;
	font-size: 0.92rem;
	line-height: 1.3;
}

.rsg-resource-file-list span {
	color: #5f6f69;
	font-size: 0.8rem;
	line-height: 1.2;
	margin-top: 0.15rem;
}

.rsg-resource-file-list a {
	color: #2f6655;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.rsg-resource-primary-actions {
	align-items: flex-start;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-width: 0;
	width: 100%;
}

.rsg-resource-button,
.rsg-resource-card .rsg-favorite-toggle,
.rsg-resource-detail .rsg-favorite-toggle,
.rsg-resource-primary-actions .rsg-favorite-toggle {
	align-items: center;
	border: 1px solid #2f6655;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 2.5rem;
	padding: 0.65rem 0.9rem;
	text-decoration: none;
}

.rsg-resource-button {
	background: #2f6655;
	color: #ffffff;
}

.rsg-resource-button.rsg-resource-download-all {
	background: #2f6655;
	color: #ffffff;
}

.rsg-resource-primary-actions .rsg-resource-button,
.rsg-resource-primary-actions .rsg-favorite-toggle {
	box-sizing: border-box;
	width: 100%;
}

.rsg-resource-card .rsg-favorite-toggle,
.rsg-resource-detail .rsg-favorite-toggle,
.rsg-resource-primary-actions .rsg-favorite-toggle {
	background: #ffffff;
	color: #2f6655;
}

.rsg-resource-card .rsg-favorite-toggle.is-favorited,
.rsg-resource-detail .rsg-favorite-toggle.is-favorited,
.rsg-resource-primary-actions .rsg-favorite-toggle.is-favorited {
	background: #f7f2dc;
	border-color: #8d742f;
	color: #5d4b1b;
}

.rsg-resource-detail {
	clear: both;
	margin-top: 1.25rem;
}

.rsg-resource-detail__access {
	margin-bottom: 1rem;
}

.rsg-resource-restricted {
	background: #f7f2dc;
	border: 1px solid #ded0a4;
	border-radius: 8px;
	padding: 1rem;
}

.rsg-resource-restricted p,
.rsg-resource-empty {
	margin-top: 0;
}

@media (max-width: 760px) {
	.rsg-resource-archive__header {
		display: none;
	}

	.rsg-resource-library {
		box-sizing: border-box;
		grid-template-columns: 1fr;
		left: 0;
		max-width: none;
		width: 100%;
	}

	.rsg-resource-directory-results {
		padding-top: 0;
	}

	.rsg-resource-directory-filters {
		background: rgba(250, 248, 242, 0.96);
		border: 0;
		border-bottom: 1px solid #d8e0dc;
		box-shadow: none;
		margin: 0 0 1rem;
		max-height: none;
		overflow: visible;
		padding: 0.75rem 0 0.85rem;
		position: relative;
		z-index: 1;
	}

	.rsg-resource-directory-filters:has(.rsg-resource-directory-filters__toggle:checked) {
		background: rgba(250, 248, 242, 0.98);
		border: 0;
		border-bottom: 1px solid #d8e0dc;
		box-shadow: none;
		max-height: none;
		padding: 0.75rem 0 0.85rem;
		position: relative;
		z-index: 1;
	}

	.rsg-resource-directory-filters__mobile-title {
		color: #071412;
		display: block;
		font-size: clamp(2rem, 11vw, 3.1rem);
		font-weight: 800;
		letter-spacing: 0;
		line-height: 1.12;
		margin: 0 0 0.65rem;
	}

	.rsg-resource-directory-filters__summary {
		align-items: center;
		background: #ffffff;
		border: 1px solid #d8e0dc;
		border-radius: 999px;
		box-shadow: 0 10px 24px rgba(18, 26, 23, 0.12);
		color: #243b35;
		cursor: pointer;
		display: flex;
		font-weight: 800;
		justify-content: space-between;
		list-style: none;
		min-height: 2.75rem;
		max-width: 100%;
		padding: 0.65rem 1rem;
		width: 100%;
	}

	.rsg-resource-directory-filters__summary::after {
		content: "+";
		font-size: 1.15rem;
		line-height: 1;
	}

	.rsg-resource-directory-filters__toggle:checked + .rsg-resource-directory-filters__summary::after,
	.rsg-resource-directory-filters:has(.rsg-resource-directory-filters__toggle:checked) .rsg-resource-directory-filters__summary::after {
		content: "-";
	}

	.rsg-resource-directory-filters__toggle:checked + .rsg-resource-directory-filters__summary,
	.rsg-resource-directory-filters:has(.rsg-resource-directory-filters__toggle:checked) .rsg-resource-directory-filters__summary {
		border-radius: 8px;
		box-shadow: none;
		min-height: 2.5rem;
		padding: 0.55rem 0.75rem;
	}

	.rsg-resource-directory-filters__body {
		background: #ffffff;
		border: 1px solid #d8e0dc;
		border-radius: 10px;
		box-shadow: 0 12px 28px rgba(18, 26, 23, 0.12);
		display: none;
		margin-top: 0.5rem;
		max-height: min(52vh, 24rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0.85rem;
	}

	.rsg-resource-directory-filters__toggle:checked ~ .rsg-resource-directory-filters__body,
	.rsg-resource-directory-filters:has(.rsg-resource-directory-filters__toggle:checked) .rsg-resource-directory-filters__body {
		display: block;
	}
}

@media (max-width: 640px) {
	.rsg-resource-directory-tile__body {
		grid-template-columns: 1fr;
	}

	.rsg-resource-modal__dialog {
		box-sizing: border-box;
		border-radius: 0;
		inset: 0;
		max-height: none;
		max-width: none;
		padding: 1rem;
		transform: none;
	}

	.rsg-resource-modal .rsg-resource-modal-resource__body {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.rsg-resource-modal .rsg-resource-modal-resource__media-panel {
		margin: 0 0 1rem;
		width: 100%;
	}

	.rsg-resource-single {
		padding-inline: 1rem;
	}

	.rsg-resource-single__cover {
		float: none;
		margin: 0 0 1rem;
		max-width: none;
		width: 100%;
	}

	.rsg-resource-card__actions,
	.rsg-resource-detail__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.rsg-resource-button,
	.rsg-resource-card .rsg-favorite-toggle,
	.rsg-resource-detail .rsg-favorite-toggle,
	.rsg-resource-primary-actions .rsg-favorite-toggle {
		width: 100%;
	}

}
