/* Insights listing redesign: horizontal, image-free cards with tag filtering.
   Scoped to body.page-id-<ID> so it never touches the ~150 other pages
   that share Divi's .et_pb_blog_grid module. */

body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_image_container {
	display: none;
}

body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post {
	display: grid;
	grid-template-columns: 112px 1fr 178px;
	column-gap: 28px;
	row-gap: 6px;
	align-items: start;
	padding: 26px 4px;
	padding-left: 17px;
	border-top: 1px solid #e6e6e6;
	border-left: 3px solid transparent;
	transition: border-left-color .15s ease, background-color .15s ease;
}
/* The filter JS toggles the [hidden] attribute, but the plain "display: grid"
   rule above wins over the browser's built-in [hidden]{display:none} rule
   (author-origin CSS always beats user-agent CSS, regardless of specificity),
   so hidden cards kept rendering. This makes hiding actually take effect. */
body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post[hidden] {
	display: none !important;
}
body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post.insight-card-clickable {
	cursor: pointer;
}
body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post:hover {
	border-left-color: #2ea3f2;
	background: #fafafa;
}
body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post.insight-card-clickable:focus-visible {
	outline: 2px solid #2ea3f2;
	outline-offset: -2px;
}
body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post:last-of-type {
	border-bottom: 1px solid #e6e6e6;
}
/* Reset Divi's default block spacing so cards read as clean list rows */
body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post,
body.et_pb_insights_redesign .et_pb_blog_grid .column {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

body.et_pb_insights_redesign .et_pb_blog_grid .post-meta {
	grid-column: 1;
	grid-row: 1 / 3;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9f9f9f;
	line-height: 1.5;
}
body.et_pb_insights_redesign .et_pb_blog_grid .post-meta .published {
	display: block;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #666;
	margin-bottom: 6px;
}
body.et_pb_insights_redesign .et_pb_blog_grid .post-meta .insight-author {
	display: block;
	font-size: 11px;
	font-weight: 500;
	text-transform: none;
	color: #9f9f9f;
}

body.et_pb_insights_redesign .et_pb_blog_grid .entry-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0 0 8px;
	font-size: 19px !important;
	line-height: 1.35 !important;
}
body.et_pb_insights_redesign .et_pb_blog_grid .entry-title a {
	color: #333;
}
body.et_pb_insights_redesign .et_pb_blog_grid .entry-title a:hover {
	color: #1c7dc4;
}

body.et_pb_insights_redesign .et_pb_blog_grid .post-content {
	display: contents;
}
body.et_pb_insights_redesign .et_pb_blog_grid .post-content > p {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	max-width: 60ch;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.et_pb_insights_redesign .et_pb_blog_grid .more-link {
	grid-column: 3;
	grid-row: 2;
	align-self: end;
	justify-self: end;
	font-size: 13px;
	font-weight: 600;
	color: #1c7dc4;
	text-decoration: none;
	white-space: nowrap;
}
body.et_pb_insights_redesign .et_pb_blog_grid .more-link:hover {
	color: #333;
}

body.et_pb_insights_redesign .et_pb_blog_grid .insight-tags {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}
body.et_pb_insights_redesign .et_pb_blog_grid .insight-tags li {
	font-size: 10.5px;
	letter-spacing: .02em;
	color: #1c7dc4;
	background: rgba(46, 163, 242, .12);
	padding: 4px 8px;
}

/* Filter bar */
.insight-filter-bar {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e6e6e6;
	margin: 0 0 8px;
	padding: 0 0 12px;
}
.insight-filter-bar .insight-filter-select {
	appearance: none;
	background: #fff;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	padding: 10px 38px 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	min-width: 220px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4.5l4 4 4-4' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.insight-filter-bar .insight-filter-select:focus {
	outline: 2px solid #2ea3f2;
	outline-offset: 2px;
}
.insight-status-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 14px 0 22px;
	font-size: 13px;
	color: #9f9f9f;
}
.insight-status-row .hint {
	font-style: italic;
}
.insight-empty-state {
	display: none;
	padding: 60px 4px;
	text-align: center;
	color: #9f9f9f;
	font-size: 15px;
	border-top: 1px solid #e6e6e6;
}
.insight-empty-state.is-visible {
	display: block;
}

.insight-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px 28px;
	padding-top: 22px;
	border-top: 1px solid #e6e6e6;
	flex-wrap: wrap;
}
.insight-pagination[hidden] {
	display: none !important;
}
.insight-pagination-link {
	appearance: none;
	background: none;
	border: none;
	padding: 6px 10px;
	font-size: 15px;
	font-weight: 600;
	color: #1c7dc4;
	cursor: pointer;
	border-radius: 999px;
	transition: background-color .15s ease, color .15s ease;
}
.insight-pagination-link:hover {
	color: #333;
	background: rgba(46, 163, 242, .06);
}
.insight-pagination-next,
.insight-pagination-last {
	margin-left: 0;
}

/* Responsive: match Divi's own breakpoints */
@media only screen and (max-width: 980px) {
	body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post {
		grid-template-columns: 82px minmax(0, 1fr);
		column-gap: 18px;
		padding-left: 12px;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .post-meta {
		grid-column: 1;
		grid-row: 1 / 3;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .post-meta .published {
		font-size: 17px;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .entry-title {
		grid-column: 2;
		grid-row: 1;
		font-size: 17px !important;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .post-content > p {
		grid-column: 2;
		grid-row: 2;
		font-size: 14px;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .more-link,
	body.et_pb_insights_redesign .et_pb_blog_grid .insight-tags {
		grid-column: 1 / 3;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .insight-tags {
		grid-row: 3;
		justify-content: flex-start;
		justify-self: start;
		margin-top: 8px;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .more-link {
		grid-row: 4;
		justify-self: start;
		align-self: start;
		margin-top: 2px;
	}
}
@media only screen and (max-width: 767px) {
	body.et_pb_insights_redesign .et_pb_blog_grid .et_pb_post {
		grid-template-columns: 1fr;
		padding-left: 14px;
		row-gap: 10px;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .post-meta {
		grid-column: 1;
		grid-row: 1;
		display: flex;
		align-items: baseline;
		gap: 8px;
		margin-bottom: 0;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .post-meta .published {
		margin-bottom: 0;
		font-size: 15px;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .post-meta .insight-author:before {
		content: "\00b7 ";
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .entry-title {
		grid-column: 1;
		grid-row: 2;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .post-content > p {
		grid-column: 1;
		grid-row: 3;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .insight-tags {
		grid-column: 1;
		grid-row: 4;
		justify-content: flex-start;
		justify-self: start;
	}
	body.et_pb_insights_redesign .et_pb_blog_grid .more-link {
		grid-column: 1;
		grid-row: 5;
		text-align: center;
		justify-self: stretch;
		border: 1px solid #e6e6e6;
		padding: 10px 0;
	}
	.insight-filter-bar .insight-filter-select {
		min-width: 100%;
		font-size: 12px;
	}
}
