:root {
	--nrtg-blue: #004f7c;
	--nrtg-blue-dark: #003c67;
	--nrtg-green: #087a45;
	--nrtg-green-dark: #056437;
	--nrtg-border: #d9dee3;
	--nrtg-text: #14213d;
	--nrtg-muted: #5c6673;
	--nrtg-sticky-offset: 0px;
}

.nrtg-cf,
.nrtg-cf * {
	box-sizing: border-box;
}

.nrtg-cf {
	color: var(--nrtg-text);
	font-family: inherit;
}

.nrtg-cf svg {
	width: 1.1em;
	height: 1.1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Filter shell ---------- */

.nrtg-cf__sticky {
	position: sticky;
	top: var(--nrtg-sticky-offset);
	z-index: 40;
	margin-bottom: 1.25rem;
}

.admin-bar .nrtg-cf__sticky {
	top: calc(var(--nrtg-sticky-offset) + 32px);
}

.nrtg-cf__panel,
.nrtg-cf__open {
	border: 1px solid var(--nrtg-border);
	background: rgba(255, 255, 255, .98);
	box-shadow: 0 4px 14px rgba(17, 36, 55, .08);
}

.nrtg-cf__open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	width: 100%;
	padding: .85rem 1rem;
	border: 0;
	color: var(--nrtg-blue-dark);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.nrtg-cf__sticky--collapsed {
	border: 1px solid var(--nrtg-border);
	box-shadow: 0 2px 8px rgba(17, 36, 55, .04);
}

.nrtg-cf__filters {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .9rem;
}

.nrtg-cf__search {
	display: flex;
	align-items: center;
	min-width: 0;
	height: 46px;
	border: 1px solid var(--nrtg-border);
	border-radius: 3px;
	background: #fff;
	padding: 0 .75rem;
}

.nrtg-cf__search input {
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
}

.nrtg-cf__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: .4rem;
}

.nrtg-cf__clear,
.nrtg-cf__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: .65rem;
	min-height: 42px;
	padding: .48rem .7rem;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
}

.nrtg-cf__clear {
	border: 1px solid #0b8750;
	color: #087a45;
}

.nrtg-cf__toggle {
	border: 1px solid #004876;
	color: #004876;
}

.nrtg-cf__clear > span:last-child,
.nrtg-cf__toggle > span:last-child {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
}

.nrtg-cf__clear:hover,
.nrtg-cf__clear:focus-visible {
	background: #f4fbf7;
}

.nrtg-cf__toggle:hover,
.nrtg-cf__toggle:focus-visible {
	background: #f4f8fb;
}

/* ---------- Multi-select filters ---------- */

.nrtg-cf__multi {
	position: relative;
	min-width: 0;
	flex: 0 0 auto;
}

.nrtg-cf__multi-trigger {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 46px;
	gap: .45rem;
	padding: .55rem .75rem;
	border: 1px solid var(--nrtg-border);
	border-radius: 999px;
	background: #fff;
	color: var(--nrtg-text);
	font: inherit;
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
}

.nrtg-cf__multi-trigger:hover,
.nrtg-cf__multi--open .nrtg-cf__multi-trigger {
	border-color: #aebbc5;
	box-shadow: 0 2px 8px rgba(17, 36, 55, .08);
}

.nrtg-cf__multi--active .nrtg-cf__multi-trigger {
	border-color: var(--nrtg-blue);
}

.nrtg-cf__multi-summary {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nrtg-cf__multi-icon {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	background-color: var(--nrtg-blue-dark);
}

.nrtg-cf__multi-chevron {
	display: inline-flex;
	flex: 0 0 auto;
	transition: transform .16s ease;
}

.nrtg-cf__multi--open .nrtg-cf__multi-chevron {
	transform: rotate(180deg);
}

.nrtg-cf__multi--subject .nrtg-cf__multi-icon {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Crect x='3' y='3' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='3' width='5' height='5' rx='1'/%3E%3Crect x='16' y='3' width='5' height='5' rx='1'/%3E%3Crect x='3' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='16' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='3' y='16' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='16' width='5' height='5' rx='1'/%3E%3Crect x='16' y='16' width='5' height='5' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Crect x='3' y='3' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='3' width='5' height='5' rx='1'/%3E%3Crect x='16' y='3' width='5' height='5' rx='1'/%3E%3Crect x='3' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='16' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='3' y='16' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='16' width='5' height='5' rx='1'/%3E%3Crect x='16' y='16' width='5' height='5' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.nrtg-cf__multi--level .nrtg-cf__multi-icon {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20v-5M10 20V9M15 20V4M20 20v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20v-5M10 20V9M15 20V4M20 20v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nrtg-cf__multi--delivery-format .nrtg-cf__multi-icon {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 20h8M12 16v4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 20h8M12 16v4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nrtg-cf__multi--duration .nrtg-cf__multi-icon {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nrtg-cf__multi--accreditation .nrtg-cf__multi-icon {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m9 14-2 7 5-3 5 3-2-7' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m9 14-2 7 5-3 5 3-2-7' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nrtg-cf__multi-menu {
	position: absolute;
	top: calc(100% + .45rem);
	left: 0;
	z-index: 80;
	width: min(290px, 86vw);
	max-height: 390px;
	overflow: hidden;
	border: 1px solid var(--nrtg-border);
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(17, 36, 55, .18);
}

.nrtg-cf__multi--accreditation .nrtg-cf__multi-menu {
	width: min(350px, 88vw);
}

.nrtg-cf__multi-heading {
	padding: .75rem .85rem .45rem;
	font-size: .78rem;
	font-weight: 800;
}

.nrtg-cf__multi-search {
	display: flex;
	align-items: center;
	gap: .35rem;
	margin: .1rem .7rem .55rem;
	padding: 0 .55rem;
	border: 1px solid var(--nrtg-border);
	border-radius: 4px;
}

.nrtg-cf__multi-search input {
	width: 100%;
	min-width: 0;
	padding: .5rem 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: .8rem;
}

.nrtg-cf__multi-options {
	max-height: 250px;
	overflow-y: auto;
	padding: .15rem .65rem .55rem;
}

.nrtg-cf__multi-option {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	padding: .42rem .2rem;
	cursor: pointer;
	font-size: .82rem;
	line-height: 1.25;
}

.nrtg-cf__multi-option input {
	width: 1rem;
	height: 1rem;
	flex: 0 0 1rem;
	margin-top: .05rem;
	accent-color: var(--nrtg-blue);
}

.nrtg-cf__multi--accreditation .nrtg-cf__multi-option span {
	white-space: normal;
	line-height: 1.35;
}

.nrtg-cf__multi-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem .8rem;
	border-top: 1px solid var(--nrtg-border);
	background: #fafbfd;
	font-size: .76rem;
	font-weight: 700;
}

.nrtg-cf__multi-footer button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nrtg-blue-dark);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

/* ---------- Results controls ---------- */

.nrtg-cf__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.nrtg-cf__summary p {
	margin: 0;
	font-weight: 700;
}

.nrtg-cf__sort {
	display: flex;
	align-items: center;
	gap: .45rem;
	font-size: .9rem;
}

.nrtg-cf__sort select {
	padding: .5rem .7rem;
	border: 1px solid var(--nrtg-border);
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	font-variant: normal;
	letter-spacing: normal;
	text-transform: none;
}

.nrtg-cf__status {
	min-height: 1.1em;
	margin-bottom: .35rem;
	color: var(--nrtg-muted);
	font-size: .9rem;
}

.nrtg-cf__more-wrap {
	display: none !important;
}

.nrtg-cf__empty {
	padding: 2rem;
	border: 1px solid var(--nrtg-border);
	background: #f7faf8;
	text-align: center;
}

.nrtg-cf__empty h3 {
	margin-top: 0;
}

.nrtg-cf__empty button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .8rem 1.1rem;
	border: 0;
	border-radius: 3px;
	background: var(--nrtg-green);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.nrtg-cf__scroll-cue {
	display: none;
}

/* ---------- Course cards: shared ---------- */

.nrtg-cf__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.nrtg-card[hidden] {
	display: none !important;
}

.nrtg-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--nrtg-border);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(20, 33, 61, .14);
	transition: transform .2s ease, box-shadow .2s ease;
}

.nrtg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 9px 24px rgba(20, 33, 61, .20);
}

.nrtg-card__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	height: 100%;
	color: inherit !important;
	text-decoration: none !important;
}

.nrtg-card__link:hover,
.nrtg-card__link:focus-visible {
	color: inherit !important;
	text-decoration: none !important;
}

.nrtg-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8eef0;
}

.nrtg-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nrtg-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dbe8e1, #edf2f4);
}

.nrtg-card__badge {
	position: absolute;
	top: .55rem;
	right: .55rem;
	max-width: calc(100% - 1.1rem);
	padding: .32rem .65rem;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.nrtg-card__badge--new {
	background: #f3b336;
	color: #000;
}

.nrtg-card__badge--popular {
	background: #42b170;
	color: #000;
}

.nrtg-card__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1rem .9rem .9rem;
	border-top: 7px solid #004876;
}

.nrtg-card--new .nrtg-card__body {
	border-top-color: #f3b336;
}

.nrtg-card--popular .nrtg-card__body {
	border-top-color: #42b170;
}

.nrtg-card__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.3;
}

.nrtg-card__title span {
	color: var(--nrtg-text);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nrtg-card__meta {
	margin-top: auto;
	font-size: .78rem;
	color: var(--nrtg-text);
}

.nrtg-card__meta-icon {
	width: 13px !important;
	height: 13px !important;
	flex: 0 0 13px;
	color: var(--nrtg-blue-dark);
}

.nrtg-card__mobile-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	align-self: stretch;
	width: calc(100% + 1.8rem);
	max-width: none;
	margin: 20px -.9rem -.9rem;
	padding: .78rem .85rem;
	border: 0;
	border-top: 1px solid #e1e5e8;
	border-radius: 0;
	border-bottom-left-radius: inherit;
	border-bottom-right-radius: inherit;
	background: #f3f4f6;
	color: #004876;
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.15;
	white-space: nowrap;
}

.nrtg-card__mobile-cta > span:last-child {
	margin-left: auto;
	font-size: 1rem;
	line-height: 1;
}

.nrtg-card__link:hover .nrtg-card__mobile-cta,
.nrtg-card__link:focus-visible .nrtg-card__mobile-cta {
	background: #e9ecef;
}

/* ---------- Course cards: tablet + desktop (768px and up) ---------- */

@media (min-width: 768px) {
	.nrtg-card__meta {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: .45rem .5rem;
		width: 100%;
		white-space: normal;
	}

	.nrtg-card__meta-item {
		display: inline-flex;
		flex: 0 0 auto;
		width: auto;
		max-width: 100%;
		align-items: center;
		gap: .35rem;
		padding: .35rem .6rem;
		border-radius: 999px;
		line-height: 1.15;
		white-space: nowrap;
		overflow: visible;
	}

	.nrtg-card__meta-item > span {
		overflow: visible;
		text-overflow: clip;
		white-space: nowrap;
		overflow-wrap: normal;
		word-break: normal;
		line-height: 1.15;
	}

	.nrtg-card__meta-item--format {
		flex-basis: 100%;
		padding: 0;
		background: transparent;
		border-radius: 0;
		gap: 0;
	}

	.nrtg-card__meta-item--format > svg {
		display: none;
	}

	.nrtg-card__format-list {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: .4rem;
		width: 100%;
	}

	.nrtg-card__format {
		display: inline-flex;
		align-items: center;
		padding: .35rem .6rem;
		border-radius: 999px;
		background: #e7ecf1;
		white-space: nowrap;
		line-height: 1.15;
	}

	.nrtg-card__format::before {
		content: "";
		width: 13px;
		height: 13px;
		margin-right: .35rem;
		flex: 0 0 auto;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 20h8M12 16v4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 20h8M12 16v4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.nrtg-card__meta-item--duration {
		background: #fff7de;
	}

	.nrtg-card__meta-item--level {
		background: #eaf4d8;
	}

	.nrtg-card__meta-item--duration,
	.nrtg-card__meta-item--duration > span,
	.nrtg-card__meta-item--level,
	.nrtg-card__meta-item--level > span {
		white-space: nowrap;
		overflow-wrap: normal;
		word-break: normal;
	}
}

/* ---------- Desktop filter layout ---------- */

@media (min-width: 1200px) {
	.nrtg-cf__filters {
		flex-wrap: nowrap;
	}

	.nrtg-cf__search {
		flex: 0 0 185px;
		min-width: 185px;
		max-width: 185px;
	}

	.nrtg-cf__multi--subject {
		width: 145px;
	}

	.nrtg-cf__multi--level {
		width: 145px;
	}

	.nrtg-cf__multi--delivery-format {
		width: 175px;
	}

	.nrtg-cf__multi--duration {
		width: 165px;
	}

	.nrtg-cf__multi--accreditation {
		width: 170px;
	}

	.nrtg-cf__actions {
		flex: 0 0 128px;
		width: 128px;
		margin-left: 0;
	}

	.nrtg-cf__actions .nrtg-cf__clear,
	.nrtg-cf__actions .nrtg-cf__toggle {
		width: 128px;
	}
}

/* ---------- Tablet layout ---------- */

@media (min-width: 768px) and (max-width: 1199px) {
	.nrtg-cf__filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .65rem;
	}

	.nrtg-cf__search,
	.nrtg-cf__actions {
		grid-column: 1 / -1;
	}

	.nrtg-cf__search {
		width: 100%;
		max-width: none;
	}

	.nrtg-cf__multi {
		width: 100%;
	}

	.nrtg-cf__actions {
		display: flex;
		flex-direction: row;
		width: auto;
		gap: .8rem;
		justify-content: flex-end;
	}

	.nrtg-cf__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Mobile layout (767px and down) ---------- */

@media (max-width: 767px) {
	.nrtg-cf__sticky {
		position: static;
		top: auto;
		z-index: auto;
	}

	.admin-bar .nrtg-cf__sticky {
		top: auto;
	}

	.nrtg-cf__sticky.nrtg-cf__sticky--collapsed {
		position: sticky;
		top: var(--nrtg-sticky-offset);
		z-index: 40;
	}

	.admin-bar .nrtg-cf__sticky.nrtg-cf__sticky--collapsed {
		top: 46px;
	}

	.nrtg-cf__sticky--collapsed .nrtg-cf__open {
		box-shadow: 0 4px 14px rgba(17, 36, 55, .14);
	}

	.nrtg-cf__filters {
		display: grid;
		grid-template-columns: 1fr;
		gap: .65rem;
		padding: .75rem;
	}

	.nrtg-cf__search {
		width: 100%;
		height: 52px;
		min-height: 52px;
	}

	.nrtg-cf__search input {
		height: 50px;
	}

	.nrtg-cf__multi {
		width: 100%;
	}

	.nrtg-cf__multi-trigger {
		min-height: 52px;
		border-radius: 5px;
		font-size: .92rem;
	}

	.nrtg-cf__multi-menu {
		position: static;
		width: 100%;
		max-height: none;
		margin-top: .35rem;
		box-shadow: 0 6px 16px rgba(17, 36, 55, .1);
	}

	.nrtg-cf__multi--accreditation .nrtg-cf__multi-menu {
		width: 100%;
	}

	.nrtg-cf__multi-options {
		max-height: 240px;
	}

	.nrtg-cf__actions {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: .65rem;
		align-items: center;
	}

	.nrtg-cf__actions .nrtg-cf__clear,
	.nrtg-cf__actions .nrtg-cf__toggle {
		width: min(100%, 260px);
	}

	.nrtg-cf__summary {
		align-items: flex-start;
	}

	.nrtg-cf__grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 14px;
		width: 100%;
		overflow: visible;
		padding: 0;
	}

	.nrtg-card {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.nrtg-card__link {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.nrtg-card__image {
		width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.nrtg-card__body {
		width: 100%;
		height: auto;
		padding: 1rem .9rem .9rem;
	}

	.nrtg-card__title {
		margin-bottom: .9rem;
		font-size: 1rem;
	}

	/* Current mobile pill layout: use available row width, then wrap naturally. */
	.nrtg-card__meta {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: .45rem;
		width: 100%;
		font-size: .76rem;
		white-space: normal;
	}

	.nrtg-card__meta-item {
		display: inline-flex;
		flex: 0 0 auto;
		width: auto;
		max-width: 100%;
		align-items: center;
		gap: .35rem;
		border-radius: 999px;
		line-height: 1.15;
		white-space: nowrap;
		overflow: visible;
	}

	.nrtg-card__meta-item > span {
		overflow: visible;
		text-overflow: clip;
		white-space: nowrap;
		overflow-wrap: normal;
		word-break: normal;
		line-height: 1.15;
	}

	.nrtg-card__meta-item--format {
		display: contents;
		padding: 0;
		background: transparent;
	}

	.nrtg-card__meta-item--format > svg {
		display: none;
	}

	.nrtg-card__format-list {
		display: contents;
	}

	.nrtg-card__format,
	.nrtg-card__meta-item--duration,
	.nrtg-card__meta-item--level {
		flex: 0 0 auto;
		width: auto;
		max-width: 100%;
		padding: .34rem .58rem;
	}

	.nrtg-card__format {
		display: inline-flex;
		align-items: center;
		border-radius: 999px;
		background: #e7ecf1;
		white-space: nowrap;
	}

	.nrtg-card__format::before {
		content: "";
		width: 13px;
		height: 13px;
		margin-right: .35rem;
		flex: 0 0 auto;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 20h8M12 16v4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 20h8M12 16v4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.nrtg-card__meta-item--duration {
		background: #fff7de;
	}

	.nrtg-card__meta-item--level {
		background: #eaf4d8;
	}

	.nrtg-cf__scroll-cue {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: .55rem;
		width: 100%;
		margin: .15rem 0 .85rem;
		padding: .7rem .9rem;
		border-radius: 10px;
		background: #eef6fb;
		color: #004876;
		font-size: .86rem;
		font-weight: 800;
		line-height: 1.2;
		text-align: center;
	}

	.nrtg-cf__scroll-cue[hidden] {
		display: none !important;
	}

	.nrtg-cf__scroll-arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 1.2rem;
		line-height: 1;
	}
}

/* ---------- Accessibility / motion ---------- */

/* Keyboard-only focus treatment. Mouse/touch clicks stay visually clean. */
.nrtg-cf :focus,
.nrtg-cf :focus-visible {
	outline: none;
}

.nrtg-keyboard-nav .nrtg-cf__search:focus-within,
.nrtg-keyboard-nav .nrtg-cf__multi-trigger:focus,
.nrtg-keyboard-nav .nrtg-cf__clear:focus,
.nrtg-keyboard-nav .nrtg-cf__toggle:focus,
.nrtg-keyboard-nav .nrtg-cf__open:focus,
.nrtg-keyboard-nav .nrtg-cf__sort select:focus,
.nrtg-keyboard-nav .nrtg-cf__empty button:focus,
.nrtg-keyboard-nav .nrtg-cf__multi-option input:focus,
.nrtg-keyboard-nav .nrtg-cf__multi-footer button:focus {
	outline: 3px solid #f2b705;
	outline-offset: 3px;
	border-radius: 6px;
}

.nrtg-keyboard-nav .nrtg-card__link:focus {
	outline: 3px solid #f2b705;
	outline-offset: -3px;
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.nrtg-card,
	.nrtg-cf__multi-chevron {
		transition: none;
	}
}


/* v0.4.32: unified 6px filter controls + solid filter action buttons */

/* Match NRTG's standard 6px control radius across devices. */
.nrtg-cf__search,
.nrtg-cf__multi-trigger,
.nrtg-cf__multi-menu,
.nrtg-cf__multi-search,
.nrtg-cf__clear,
.nrtg-cf__toggle,
.nrtg-cf__open,
.nrtg-cf__sort select,
.nrtg-cf__empty button {
	border-radius: 6px !important;
}

/* Clear / Hide are now solid controls on every screen size. */
.nrtg-cf__clear {
	border: 1px solid #087a45 !important;
	background: #087a45 !important;
	color: #fff !important;
}

.nrtg-cf__clear:hover,
.nrtg-cf__clear:focus-visible {
	border-color: #056437 !important;
	background: #056437 !important;
	color: #fff !important;
}

.nrtg-cf__toggle {
	border: 1px solid #004876 !important;
	background: #004876 !important;
	color: #fff !important;
}

.nrtg-cf__toggle:hover,
.nrtg-cf__toggle:focus-visible {
	border-color: #003c67 !important;
	background: #003c67 !important;
	color: #fff !important;
}

/* Keep the collapsed Open Filters control consistent with the same 6px language. */
.nrtg-cf__open {
	color: #004876;
}

/* Tablet: turn the actions into a proper full-width footer row. */
@media (min-width: 768px) and (max-width: 1199px) {
	.nrtg-cf__actions {
		grid-column: 1 / -1;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		width: 100% !important;
		margin-top: .15rem;
		padding-top: .8rem;
		border-top: 1px solid var(--nrtg-border);
		gap: 1rem !important;
	}

	.nrtg-cf__actions .nrtg-cf__clear,
	.nrtg-cf__actions .nrtg-cf__toggle {
		width: auto !important;
		min-width: 145px;
		justify-content: space-between !important;
	}
}

/* Mobile: retain the stacked arrangement, but use full-width solid buttons. */
@media (max-width: 767px) {
	.nrtg-cf__actions {
		padding-top: .75rem;
		border-top: 1px solid var(--nrtg-border);
	}

	.nrtg-cf__actions .nrtg-cf__clear,
	.nrtg-cf__actions .nrtg-cf__toggle {
		width: 100% !important;
		max-width: none !important;
	}
}


/* v0.4.33: equal desktop outer spacing for the open filter bar */
@media (min-width: 1200px) {
    .nrtg-cf__filters {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* v0.4.34: balance the full desktop filter row from edge to edge */
@media (min-width: 1200px) {
	.nrtg-cf__filters {
		justify-content: space-between !important;
		padding-left: 16px !important;
		padding-right: 16px !important;
		gap: 0 !important;
	}

	/* Let the browser distribute the remaining horizontal space evenly
	   between the search, dropdowns, and action group. */
	.nrtg-cf__search,
	.nrtg-cf__multi,
	.nrtg-cf__actions {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
