.bww-rjef-browser,
.bww-rjef-tiles,
.bww-rjef-featured,
.bww-rjef-share {
	--bww-navy: #2E327E;
	--bww-orange: #F8A03F;
	--bww-lavender: #EEEEF6;
	--bww-charcoal: #4A4A48;
	--bww-display: 'VTCGaribaldiSans', 'Arial Narrow', sans-serif;
	color: var(--bww-charcoal);
	font-family: 'Montserrat', sans-serif;
}

.bww-rjef-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Buttons */
.bww-rjef-btn {
	display: inline-block;
	background: var(--bww-orange);
	color: var(--bww-navy);
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
.bww-rjef-btn--small { padding: 10px 20px; }
.bww-rjef-btn--large { padding: 20px 50px; }
.bww-rjef-btn:hover,
.bww-rjef-btn:focus {
	background: var(--bww-navy);
	color: #fff;
}
.bww-rjef-btn:focus-visible,
.bww-rjef-pill:focus-visible,
.bww-rjef-filter-toggle:focus-visible,
.bww-rjef-link-button:focus-visible,
.bww-rjef-card__link:focus-visible,
.bww-rjef-tile:focus-visible,
.bww-rjef-share__link:focus-visible,
.bww-rjef-search__input:focus-visible {
	outline: 3px solid var(--bww-navy);
	outline-offset: 3px;
}
.bww-rjef-btn:focus-visible { outline-color: #000; }

.bww-rjef-eyebrow {
	display: block;
	color: var(--bww-orange);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.bww-rjef-eyebrow--navy { color: var(--bww-navy); }

/* Search and filters */
.bww-rjef-search {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
}
.bww-rjef-search__field {
	position: relative;
	flex: 1 1 auto;
	color: var(--bww-navy);
}
.bww-rjef-search__field .bww-rjef-icon {
	position: absolute;
	left: 14px;
	top: 12px;
	pointer-events: none;
}
.bww-rjef-search__input {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 16px 0 52px;
	background: #fff;
	color: var(--bww-navy);
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: 2px solid var(--bww-navy);
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}
.bww-rjef-search__input::placeholder { color: var(--bww-navy); opacity: 1; }
.bww-rjef-filter-toggle {
	flex: 0 0 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	background: #fff;
	color: var(--bww-navy);
	border: 2px solid var(--bww-navy);
	border-radius: 50%;
	cursor: pointer;
}
.bww-rjef-filter-toggle[aria-expanded="true"] { background: var(--bww-navy); color: #fff; }
.bww-rjef-filter-toggle[aria-expanded="true"] circle { fill: var(--bww-navy); }
.bww-rjef-browser { position: relative; }
.bww-rjef-rule {
	height: 4px;
	margin: 40px 0 0;
	background: var(--bww-navy);
	border: 0;
}
.bww-rjef-panel {
	position: absolute;
	left: -60px;
	right: -60px;
	z-index: 20;
	box-sizing: border-box;
	padding: 40px 60px 60px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}
.bww-rjef-panel[hidden],
.bww-rjef-results[hidden],
.bww-rjef-empty[hidden],
.bww-rjef-more[hidden] { display: none; }
.bww-rjef-group + .bww-rjef-group { margin-top: 20px; }
.bww-rjef-group__label {
	display: block;
	margin: 0 0 12px;
	color: var(--bww-navy);
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.bww-rjef-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.bww-rjef-pill {
	padding: 10px 20px;
	background: #fff;
	color: var(--bww-navy);
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: 2px solid var(--bww-navy);
	border-radius: 0;
	cursor: pointer;
}
.bww-rjef-pill[aria-pressed="true"],
.bww-rjef-pill:hover {
	background: var(--bww-navy);
	color: #fff;
}
.bww-rjef-status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.bww-rjef-results { margin-top: 40px; }
.bww-rjef-empty {
	margin: 40px 0;
	font-size: 18px;
}
.bww-rjef-link-button {
	padding: 0;
	background: none;
	color: var(--bww-navy);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	border: 0;
	cursor: pointer;
}
.bww-rjef-more {
	margin-top: 40px;
	text-align: center;
}

/* Results and cards */
.bww-rjef-results { display: grid; gap: 30px; }
.bww-rjef-results--grid { grid-template-columns: repeat(3, 1fr); }
.bww-rjef-results--wide { grid-template-columns: 1fr; gap: 40px; }
.bww-rjef-results--grantee { grid-template-columns: repeat(4, 1fr); }

.bww-rjef-card {
	display: flex;
	flex-direction: column;
	background: var(--bww-lavender);
	min-width: 0;
}
.bww-rjef-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bww-rjef-card__img--empty { background: #d9d9e8; }
.bww-rjef-card__title {
	margin: 0;
	color: var(--bww-navy);
	font-family: var(--bww-display);
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 3px;
	text-transform: none;
}
.bww-rjef-card__excerpt {
	margin: 0;
	color: var(--bww-charcoal);
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 1px;
}
.bww-rjef-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 20px;
	padding: 30px;
}

.bww-rjef-card--grid .bww-rjef-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.bww-rjef-card--grid .bww-rjef-card__media {
	display: block;
	aspect-ratio: 7 / 5;
	overflow: hidden;
}
.bww-rjef-card--grid .bww-rjef-card__body { display: flex; }
.bww-rjef-card--grid .bww-rjef-card__link:hover .bww-rjef-card__title { text-decoration: underline; }

.bww-rjef-card--wide { flex-direction: row; }
.bww-rjef-card--wide .bww-rjef-card__body { flex: 690 1 0; align-items: flex-start; }
.bww-rjef-card--wide .bww-rjef-card__media { flex: 630 1 0; min-height: 436px; position: relative; }
.bww-rjef-card--wide .bww-rjef-card__img { position: absolute; inset: 0; }
.bww-rjef-card--wide .bww-rjef-card__title { font-size: 72px; letter-spacing: 0; }

.bww-rjef-card--grantee .bww-rjef-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 204px;
	box-sizing: border-box;
	padding: 10px;
	background: #fff;
}
.bww-rjef-card--grantee .bww-rjef-card__media a { display: block; width: 100%; height: 100%; }
.bww-rjef-card--grantee .bww-rjef-card__img { object-fit: contain; }
.bww-rjef-card--grantee .bww-rjef-card__title a { color: inherit; text-decoration: none; }
.bww-rjef-card--grantee .bww-rjef-card__title a:hover { text-decoration: underline; }
.bww-rjef-card--grantee .bww-rjef-card__excerpt { color: var(--bww-navy); }

/* Category tiles */
.bww-rjef-tiles { background: var(--bww-navy); }
.bww-rjef-tiles__list {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}
.bww-rjef-tiles__item { margin: 0; padding: 0; }
.bww-rjef-tile {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	padding: 0 20px;
	color: #fff;
	text-decoration: none;
}
.bww-rjef-tile__label {
	max-width: calc(100% - 0px);
	font-family: var(--bww-display);
	font-size: 40px;
	line-height: 1;
	letter-spacing: 3px;
	overflow-wrap: anywhere;
}
.bww-rjef-tile:hover .bww-rjef-tile__label { text-decoration: underline; }

/* Featured resource */
.bww-rjef-featured {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--bww-lavender);
}
.bww-rjef-featured__media,
.bww-rjef-featured__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bww-rjef-featured__panel {
	position: absolute;
	top: 60px;
	left: 60px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
	box-sizing: border-box;
	width: 483px;
	max-width: calc(100% - 120px);
	padding: 60px;
	background: #fff;
}
.bww-rjef-featured__title {
	margin: 0;
	color: var(--bww-navy);
	font-family: var(--bww-display);
	font-size: 72px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}
.bww-rjef-featured__excerpt { margin: 0; font-size: 16px; line-height: 1.4; letter-spacing: 1px; }

/* Share links */
.bww-rjef-share .bww-rjef-eyebrow { color: var(--bww-navy); font-size: 16px; }
.bww-rjef-share__list {
	display: flex;
	gap: 20px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.bww-rjef-share__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #fff;
	text-decoration: none;
	border-radius: 0;
}
.bww-rjef-share__link svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.bww-rjef-share__link:hover { opacity: .85; }

/* Tablet */
@media (max-width: 1024px) {
	.bww-rjef-results--grantee { grid-template-columns: repeat(2, 1fr); }
	.bww-rjef-results--grid { grid-template-columns: repeat(2, 1fr); }
	.bww-rjef-tiles__list { grid-template-columns: repeat(4, 1fr); }
	.bww-rjef-tile__label { font-size: 34px; }
	.bww-rjef-card--wide .bww-rjef-card__title { font-size: 56px; }
	.bww-rjef-featured__title { font-size: 56px; }
}

/* Phone */
@media (max-width: 767px) {
	.bww-rjef-search { gap: 12px; }
	.bww-rjef-rule { margin: 30px 0 0; }
	.bww-rjef-results { margin-top: 30px; }
	.bww-rjef-panel { left: -30px; right: -30px; padding: 30px; }
	.bww-rjef-group__label { font-size: 18px; }
	.bww-rjef-pills { gap: 12px; }
	.bww-rjef-pill { font-size: 16px; }
	.bww-rjef-results--grid,
	.bww-rjef-results--grantee { grid-template-columns: 1fr; }
	.bww-rjef-card--grid .bww-rjef-card__media { aspect-ratio: 315 / 200; }
	.bww-rjef-card--wide { flex-direction: column-reverse; }
	.bww-rjef-card--wide .bww-rjef-card__media { flex: none; min-height: 200px; height: 200px; }
	.bww-rjef-card--wide .bww-rjef-card__title { font-size: 40px; letter-spacing: 1px; }
	.bww-rjef-tiles__list { grid-template-columns: repeat(2, 1fr); }
	.bww-rjef-tile { padding: 0 20px; }
	.bww-rjef-tile__label { font-size: 40px; letter-spacing: 1px; }
	.bww-rjef-featured { aspect-ratio: auto; display: flex; flex-direction: column; }
	.bww-rjef-featured__media { position: relative; height: 300px; }
	.bww-rjef-featured__panel { position: static; width: 100%; max-width: none; padding: 50px 30px; }
	.bww-rjef-featured__title { font-size: 60px; letter-spacing: 1px; }
	.bww-rjef-btn--large { padding: 20px 40px; }
}

/* Resource article container */
.single-rjef_resource .ast-container{max-width:none;padding-left:0;padding-right:0}
.single-rjef_resource #primary{margin:0;padding:0;width:100%}

/* Empty paragraphs Beaver Builder wraps around shortcodes */
.fl-rich-text > p:empty{display:none}
.fl-rich-text > p:has(+ [class*="bww-rjef"]),.fl-rich-text > [class*="bww-rjef"] + p:empty{display:none}

.single-rjef_resource .fl-module-fl-post-content a { text-decoration: underline; }
.pp-advanced-menu .pp-off-canvas-menu .pp-menu-close-btn:focus-visible,
.pp-advanced-menu .pp-off-canvas-menu a:focus-visible,
.pp-advanced-menu .pp-advanced-menu-mobile-toggle:focus-visible {
	outline: 3px solid currentColor !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px currentColor;
}
