/* Override of first .content to remove max-width constraint */
#main > div.content:first-of-type {
	max-width: unset;
}

.fund-item {
	background-color: #FFFFFF;
	border: 1px solid #EFEFEF;
	border-radius: 4px;
	margin-bottom: 1em;
	padding: 1.5em;
}

.fund-item__heading {
	display: flex;
	margin-bottom: 1em;
}
.fund-item__heading h2 {
	margin: 0;
	padding: 0;
	flex-grow: 1;
}

.fund-item__heading__pill__container {
	display: flex;
	align-items: center;
}
.fund-item__flex-spacer {
	flex-grow: 1;
}
.fund-item__heading__pill {
	width: 110px;
	margin-left: 1em;
}

.pill {
	text-transform: uppercase;
	color: #FFFFFF;
	font-size: 70%;
	font-weight: bold;
	border-radius: 20px;
	display: block;
	text-align: center;
}
.pill-default {
	background-color: rgba(0,0,0,.15);
	color: #000000;
}
.pill-info {
	background-color: #01A6DF;
	border-color: #01A6DF;
	color: #000000;
}
.pill-success {
	background-color: #22c55e;
	border-color: #22c55e;
	color: #000000;
}
.pill-danger {
	background-color: #dc2626;
	border-color: #dc2626;
}


.dropdown-select {
	position: relative;
	display: block;
	text-align: left;
}
.dropdown-select__input {
	display: inline-flex;
	width: 100%;
	height: 35px;
	border-radius: 3.625px;
	border: .75px solid #CCCCCC;
	background-color: #FFFFFF;
	padding: .325em .85em;
	line-height: 2em;
	text-align: left;
	position: relative;
	align-items: center;
}
.dropdown-select__input .dropdown-select__label {
	flex-grow: 1;
	font-size: 14.5px;
	white-space: nowrap;
}
.dropdown-select__input:focus, select.native-html:focus, .active-filter:focus, .btn-info.fund-search__button:focus {
	outline: #0032a0 solid 3px !important;
	outline-offset: 1px;
}
.wrapper-dark .dropdown-select__input:focus, .wrapper-dark select.native-html:focus, .wrapper-dark .active-filter:focus, .wrapper-dark .fund-search__bar:focus, .wrapper-dark .btn-info.fund-search__button:focus {
	outline: #FFFFFF solid 3px !important;
	outline-offset: 1px;
}
.dropdown-select__open{
	z-index: 1000;
}

.dropdown-select__menu {
	position: absolute;
	background-color: #FFFFFF;
	color: #000000;
	padding: 1em;
	width: 100%;
	border: .75px solid #000000;
	margin-top: -4px;
	z-index: 999;
	box-shadow: -2px 7px 2em -9px grey;
	border-bottom-right-radius: 4px;
	border-bottom-left-radius: 4px;
}
.dropdown-select__menu__item {
	font-size: 14.5px;
}
.dropdown-select__standard {
	margin: 0 -1em;
}
.dropdown-select__standard__option {
	padding: 0 1em;
	width: 100%;
	border: none;
	background-color: #FFFFFF;
	line-height: 2em;
	text-align: left;
}
.dropdown-select__standard__option:hover,.dropdown-select__standard__option:focus {
	background-color: #E1EFFF;
}
.dropdown-select .native-html {
	width: 100%;
}

.fund-search__bar {
	width: 100%;
	height: 35px;
}

.fund-search__button, .fund-item-give__button {
	padding-left: 1.5em;
	padding-right: 1.5em;
}
.fund-search__button {
	/* Cyan */
	background-color: #00A9E0;
	border-color: #00A9E0;
	color: #000000;
	width: 100%;
	height: 35px;
}

.active-filters {
	margin-top: -1em;
	margin-bottom: 2em;
}

.active-filter {
	margin-right: 4px;
	margin-bottom: 2px;
	padding: 6px;
	font-size: 14.5px;
	border: 1px solid #E6E6E6;
	border-radius: 2px;
	background-color: #FFFFFF;
}
.active-filter span {
	margin-left: 4px;
	color: #6E6E6E;
}

.active-filter.clear-all {
	background-color: #737373;
	color: #FFFFFF;
	border-color: #737373;
}
.active-filter.clear-all span {
	color: #FFFFFF;
}

.order-by__select {
	border-radius: 3.625px;
	border: .75px solid #CCCCCC;
	padding: .325em .85em;
	width: 100%;
}

.sort-by {
	max-width: fit-content;
	white-space: nowrap;
	margin-left: auto;
}


/* Because the template takes care of the initial .content surrounding the
	page based on the chunks in it, there will always be a .content preventing
	the full-width... so add overrides to make the colors full-width */
#react-root {
	margin: -3em;
	margin-top: calc(-3em + -1.75em);
}
.find-funds-content {
	padding: 3em;
	width: 100%;
	max-width: 1366px;
	margin: 0 auto;
}

.grid {
	display: grid;
}
.columns-5 {
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
.columns-4 {
	grid-template-columns: 1fr 1fr 1fr 1fr;
}
.columns-2 {
	grid-template-columns: 1fr 1fr;
}
.columns-prefix {
	grid-template-columns: 10% 1fr;
}
.gap-2 {
	grid-gap: .5em;
}
.gap-4 {
	grid-gap: 1em;
}
.span-3 {
	grid-column-end: span 3;
}
.items-center {
	align-items: center;
}

.mb-1 {
	margin-bottom: 1em;
}

/* Narrow the gutter on desktop -- specifically for the category dropdowns */
@media screen and (max-width: 1000px) {
	#react-root {
		margin: -1.5em;
		margin-top: calc(-1.5em + -1.75em);
	}
	.find-funds-content {
		padding: 1.5em;
	}
	.fund-categories>.row-gutter {
		margin-left: -.75em;
		margin-right: -.75em;
	}
	.fund-categories>.row-gutter>.col-3 {
		padding-left: 0.75em;
		padding-right: 0.75em;
	}

	.active-filters {
		margin-top: .5em;
		margin-bottom: 2em;
	}
}
/* Mobile View */
@media screen and (max-width: 800px) {
	#react-root {
		margin: -1em;
		margin-top: calc(-1em + -1.75em);
	}
	.find-funds-content {
		padding: 1em;
	}
	.fund-item__heading {
		flex-direction: column-reverse;
	}
	.fund-item__heading__pill {
		margin-left: 0;
		margin-right: 1em;
	}
	.fund-item__heading__pill__container {
		margin-bottom: .5em;
	}

	.columns-sm-1 {
		grid-template-columns: 1fr;
	}
	.span-sm-1 {
		grid-column-end: span 1;
	}
	.columns-sm-3 {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.span-sm-2 {
		grid-column-end: span 2;
	}

	.active-filters {
		margin-top: 1em;
		margin-bottom: 2em;
	}
}