/* Card index: search, filter chips, Detail/List toggle and the card grid. Colors match the Solutions page it replaces. */
.lf-index {
	--lf-edge: #BFBFBF; /* 25% grey: darker than the card, not by much */
	margin: 0 0 3rem;
}

.lf-index-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.lf-index-search {
	display: flex;
	align-items: center;
}

.lf-index-search i {
	margin-right: 1rem;
	font-size: 2.4rem;
	color: #565656;
}

.lf-index-search input {
	width: auto;
	min-width: 340px;
	max-width: 500px;
	margin: 0;
}

.lf-chip,
.lf-view {
	padding: 1rem 2rem;
	margin: 0 .5rem .5rem 0;
	background-color: #fafafa;
	border: 1px solid #ccc;
	color: #85889b;
	cursor: pointer;
}

/* Pill style */
.lf-chip,
.lf-view {
	padding: .7rem 1.8rem;
	border-radius: 999px;
}

.lf-index-search input {
	padding-left: 1.4rem;
	padding-right: 1.4rem;
	border-radius: 999px;
}

.lf-chip:hover,
.lf-view:hover,
.lf-chip.is-active,
.lf-view.is-active {
	background-color: #00A0DB;
	color: #fff;
}

.lf-view i {
	margin-right: .5rem;
}

.lf-facet {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: .5rem;
}

.lf-facet-label {
	flex: 0 0 100%;
	margin: .5rem 0 .4rem;
	text-align: center;
	font-size: .85em;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #85889b;
}

.lf-index-status {
	min-height: 1.5em;
	margin: 0 0 1rem;
	text-align: center;
	color: #85889b;
}

.lf-index-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
}

.lf-card {
	background-color: #F2F2F2;
	color: #565656;
	border-bottom: 5px solid var(--lf-edge);
	/* The same 20px on every corner (the photo style's image matches it below). */
	border-radius: 20px;
	transition: transform .2s ease-out, box-shadow .2s ease-out;
}

.lf-card[hidden] {
	display: none;
}

.lf-card:hover {
	transform: translate(0, -5px);
	box-shadow: -4px 5px 5px 0 rgba(187, 187, 187, .76);
}

.lf-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	font-weight: normal;
	text-decoration: none;
}

/* The theme underlines every link on hover (and the theme's .entry a:hover is more specific than a plain class); on a whole card that is just noise (the card lifts instead). */
.lf-index .lf-card-link:hover,
.lf-index .lf-card-link:focus,
.lf-index .lf-card-link:hover *,
.lf-index .lf-card-link:focus * {
	text-decoration: none;
}

.lf-card-media {
	display: block;
}

.lf-card-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Photo style: the image sits at the top of the card, so it takes the rounded top corners. */
.lf-index--photo .lf-card-img {
	border-radius: 20px 20px 0 0;
}

.lf-card-img--empty {
	background: linear-gradient(135deg, #00A0DB, #0078A8);
}

.lf-card-body {
	display: block;
	padding: 20px 25px 25px;
}

.lf-card-title {
	margin: 0 0 8px;
	font-size: 1.4em;
	color: #565656;
}

.lf-card-meta {
	display: block;
	margin-bottom: 8px;
	font-size: .85em;
	color: #828282;
}

.lf-card-excerpt {
	display: block;
	line-height: 1.5;
}

/* Icon style (Solutions): a round image overlapping the top of the card. */
.lf-index--icon .lf-index-grid {
	margin-top: 4rem;
	row-gap: 5rem;
}

.lf-index--icon .lf-card-media {
	margin-top: -25px;
	padding: 0 30px;
}

.lf-index--icon .lf-card-img {
	width: 150px;
	height: 150px;
	aspect-ratio: auto;
	margin: 0 auto;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .25); /* a little lift */
}

.lf-index--icon .lf-card-body {
	padding: 15px 30px 30px;
}

/* List view */
.lf-index-grid.is-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 2rem;
}

/* The Detail view keeps the blue edge; in the denser List view it is too strong. The List cards are pills. */
.lf-index-grid.is-list .lf-card {
	border-bottom: 0;
	border-radius: 999px;
	overflow: hidden;
}

.lf-index-grid.is-list .lf-card-link {
	flex-direction: row;
	align-items: center;
}

.lf-index-grid.is-list .lf-card-media {
	flex: 0 0 72px;
	margin: 12px 0 12px 16px;
}

.lf-index-grid.is-list .lf-card-img {
	width: 72px;
	height: 72px;
	aspect-ratio: auto;
	border-radius: 50%;
}

.lf-index-grid.is-list .lf-card-body {
	padding: 14px 44px 14px 18px;
}

/* Full pills look best at a similar height, so the text is held to a few lines. */
.lf-index-grid.is-list .lf-card-link {
	min-height: 96px;
}

.lf-index-grid.is-list .lf-card-title,
.lf-index-grid.is-list .lf-card-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lf-index-grid.is-list .lf-card-title {
	-webkit-line-clamp: 2;
}

.lf-index-grid.is-list .lf-card-excerpt {
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.lf-index-grid.is-list .lf-card-title {
	font-size: 1.2em;
}

.lf-index--icon .lf-index-grid.is-list {
	row-gap: 1rem;
	margin-top: 2rem;
}

/* The list view is two columns wide; a single column on narrow screens. */
@media (max-width: 800px) {
	.lf-index-grid.is-list {
		grid-template-columns: 1fr;
	}
}

.lf-index--icon .lf-index-grid.is-list .lf-card-media {
	padding: 0;
}

/* Sidebar layout: a filter panel on the left; search, active filters and the cards on the right. */
.lf-index-layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.lf-index--sidebar .lf-index-controls {
	justify-content: flex-start;
	margin-bottom: 1rem;
}

.lf-index--sidebar .lf-index-search {
	flex: 1 1 280px;
}

.lf-index--sidebar .lf-index-search input {
	flex: 1;
	width: 100%;
	max-width: none;
	min-width: 0;
}

.lf-facets--panel,
.lf-index--sidebar .lf-facets {
	padding: 20px 22px;
	background-color: #F2F2F2;
	border-radius: 20px;
	color: #565656;
}

.lf-facets-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: .5rem;
	font-size: 1.1em;
}

.lf-clear {
	padding: 0;
	background: none;
	border: 0;
	color: #00A0DB;
	font-size: .85em;
	cursor: pointer;
}

.lf-facet--panel {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid #ddd;
}

.lf-facet--panel legend {
	width: 100%;
	padding: 12px 0 6px;
	float: left;
}

.lf-facet-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .8em;
	color: #565656;
	cursor: pointer;
}

.lf-facet-title::after {
	content: "\2212";
}

.lf-facet--panel.is-collapsed .lf-facet-title::after {
	content: "+";
}

.lf-facet-options {
	clear: both;
	padding-bottom: 8px;
}

.lf-facet--panel.is-collapsed .lf-facet-options,
.lf-facet--panel.is-collapsed .lf-more {
	display: none;
}

.lf-opt {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
	font-size: .95em;
	line-height: 1.3;
}

.lf-opt input {
	flex: 0 0 auto;
	margin: 0;
}

.lf-opt-name {
	flex: 1 1 auto;
}

.lf-opt-count {
	color: #828282;
	font-size: .85em;
}

.lf-opt.is-zero {
	opacity: .45;
}

.lf-facet--panel:not(.is-expanded) .lf-opt.is-extra:not(.is-checked) {
	display: none;
}

.lf-more {
	margin: 0 0 12px;
	padding: 0;
	background: none;
	border: 0;
	color: #00A0DB;
	font-size: .85em;
	cursor: pointer;
}

.lf-active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: .5rem;
}

.lf-active:empty {
	display: none;
}

.lf-pill {
	padding: .35rem 1rem;
	background-color: #00A0DB;
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: .85em;
	cursor: pointer;
}

.lf-index--sidebar .lf-index-status {
	text-align: left;
}

.lf-index--sidebar .lf-index-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.lf-index--sidebar .lf-index-grid.is-list {
	grid-template-columns: 1fr;
}

.lf-facets-toggle {
	display: none;
	margin: 0 auto 1rem;
	padding: .7rem 1.8rem;
	background-color: #fafafa;
	border: 1px solid #ccc;
	border-radius: 999px;
	color: #85889b;
	cursor: pointer;
}

.lf-facets-toggle:hover,
.lf-facets-toggle[aria-expanded="true"] {
	background-color: #00A0DB;
	color: #fff;
}

@media (max-width: 700px) {
	.lf-index--collapsible .lf-facets-toggle {
		display: block;
	}

	.lf-index--collapsible .lf-facets {
		display: none;
		margin-bottom: 1rem;
	}

	.lf-index-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.lf-index--collapsible .lf-facets.is-open {
		display: block;
	}

	.lf-index-controls {
		flex-direction: column;
	}

	.lf-index-search input {
		min-width: 0;
		width: 100%;
	}

	.lf-index-search {
		width: 100%;
	}

	.lf-index-grid.is-list .lf-card-excerpt {
		display: none;
	}
}

/* Insights overview: a few cards per section, three across on desktop, two on tablets, one on phones. */
.lf-insights-section {
	margin-bottom: 3rem;
}

.lf-insights-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.lf-insights-head h2 {
	margin: 0;
}

.lf-insights-all {
	flex: 0 0 auto;
	padding: .45rem 1.25rem;
	background-color: #00A0DB;
	border-radius: 999px;
	color: #fff;
	font-size: .9em;
	text-decoration: none;
}

.lf-insights-all:hover,
.lf-insights-all:focus {
	background-color: #0078A8;
	color: #fff;
}

.lf-insights-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 700px) {
	.lf-insights-grid {
		grid-template-columns: 1fr;
	}

	.lf-insights-head {
		flex-direction: column;
		align-items: flex-start;
	}
}
