/* Blog index candidate, scoped so archives and pages keep their existing styles. */
.cs-blog-index .cs-blog-index__hero {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
	padding: 80px 20px;
	color: #fff;
}
.cs-blog-index .cs-blog-index__hero .wp-block-cover__image-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cs-blog-index .cs-blog-index__hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1220px;
	margin-inline: auto;
}
.cs-blog-index .cs-blog-index__hero h1,
.cs-blog-index .cs-blog-index__hero p {
	max-width: 790px;
	color: #fff;
}
.cs-blog-index .cs-blog-index__hero h1 {
	margin: 0 0 30px;
	font-size: 40px;
	line-height: 1.5;
	font-weight: 700;
}
.cs-blog-index .cs-blog-index__hero p {
	margin: 0;
	font-size: 20px;
	line-height: 2;
	font-weight: 400;
}
.cs-blog-index .cs-blog-index__listing {
	padding: 25px 20px 20px;
}
/*
 * Controls row, measured on the live index: one 1000px row holding a 317px
 * topic select, a 24.9px gutter and the remaining 658px search field, both
 * 48px tall. At 390px the two stack with a 10px gutter and the select keeps
 * its 317px width. The topic select is added by assets/js/blog-index-filter.js
 * from the tag links the cards already render, so its wrapper only reserves
 * the measured slot.
 */
.cs-blog-index .cs-blog-index__controls {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 25px;
	max-width: 1000px;
	margin: 0 auto 40px;
}
.cs-blog-index .cs-blog-index__controls .cs-blog-index__topic-control {
	flex: 0 0 317px;
	max-width: 317px;
}
.cs-blog-index .cs-blog-index__controls .cs-blog-index__topic,
.cs-blog-index .cs-blog-index__controls .wp-block-search__input {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 20px;
	border: 0;
	/* Measured: both fields are rgb(242,242,242) on the live index, the topic select's label
	   reads rgb(179,179,179) and the typed search text rgb(35,31,32). */
	background: #f2f2f2;
	color: #5b5b5b;
	font-size: 16px;
}
.cs-blog-index .cs-blog-index__controls .cs-blog-index__topic {
	cursor: pointer;
	color: #b3b3b3;
}
.cs-blog-index .cs-blog-index__controls .wp-block-search__input {
	color: #231f20;
}
.cs-blog-index .cs-blog-index__controls .cs-blog-index__search {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}
.cs-blog-index .cs-blog-index__controls .wp-block-search__inside-wrapper {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}
.cs-blog-index .cs-blog-index__controls .wp-block-search__input {
	flex: 1 1 auto;
}
/* Core prints `.wp-block-search__label{width:100%}` in a late inline style for the Search block.
   That selector and the theme's global `.screen-reader-text` both score (0,1,0), so the later core
   rule wins on width alone: the hidden label keeps `position:absolute` and `clip-path:inset(50%)`
   but becomes a full-width absolute box, which grew the index to scrollWidth 2001 at a 1440
   viewport and 409 at 390 (measured; the live index has no horizontal overflow). Restore the
   concealed 1px width here, scoped to the index controls, so the label stays in the DOM as the
   search input's accessible name and the global accessibility rule is untouched. Same repair the
   single-post controls already carry in blog-single.css. */
.cs-blog-index .cs-blog-index__controls .wp-block-search__label.screen-reader-text {
	width: 1px;
}
.cs-blog-index .cs-blog-index__listing > .wp-block-query {
	max-width: 1000px;
	margin-inline: auto;
}
.cs-blog-index .cs-blog-index__listing .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 64px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cs-blog-index .cs-blog-index__listing .wp-block-post-featured-image {
	margin: 0 0 15px;
}
.cs-blog-index .cs-blog-index__listing .wp-block-post-featured-image img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}
.cs-blog-index .cs-blog-index__listing .wp-block-post-terms {
	max-height: 3em;
	overflow: auto;
}
/*
 * Card type, measured on the live index (1440 and 390): the title is a 16px / 600 line box of
 * 22.4px (the live module stylesheet declares `font-size:16px` on `.blog-listing__post-title`),
 * the tag row is 16px / 700 #d21034 and the "Read more" label is 16px on the live #FA333E fill.
 * The 300px image band above them already matched. Guard D4 is untouched: these are the card's
 * own element values, not the theme's 18px body size, and the ink stays #231f20.
 */
.cs-blog-index .cs-blog-index__listing .wp-block-post-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}
.cs-blog-index .cs-blog-index__listing .wp-block-post-title a {
	color: #231f20;
	text-decoration: none;
}
.cs-blog-index .cs-blog-index__listing .wp-block-post-title a:hover,
.cs-blog-index .cs-blog-index__listing .wp-block-post-title a:focus-visible {
	text-decoration: underline;
}
.cs-blog-index .cs-blog-index__listing .wp-block-post-terms a {
	color: #d21034;
	font-size: 16px;
	font-weight: 700;
}
.cs-blog-index .cs-blog-index__listing .wp-block-read-more {
	background: #fa333e;
	color: #fff;
	display: inline-block;
	padding: 10px 20px;
	font-size: 16px;
	text-decoration: none;
}
.cs-blog-index .cs-blog-index__resources {
	padding: 60px 20px;
	background: #fafafa;
}
/*
 * Resources module, measured on the live index: the heading is 32px / 700, the tag label above the
 * title is 16px / 600 #0AB0D8 (`.taggy`), the title is 30px / 600 (`.hblistingtitle`), the copy is
 * 16px and the "Order now" button is a square 16px label on the live #0AB0D8 fill. The poster is
 * square (500x500 at 1440, 330x330 at 390).
 */
.cs-blog-index .cs-blog-index__resources > h2 {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
}
.cs-blog-index .cs-blog-index__resources-columns .wp-block-column:last-child > p:first-child {
	color: #0ab0d8;
	font-size: 16px;
	font-weight: 600;
}
.cs-blog-index .cs-blog-index__resources-columns .wp-block-column:last-child h3 {
	font-size: 30px;
	font-weight: 600;
}
.cs-blog-index .cs-blog-index__resources-columns .wp-block-column:last-child p {
	font-size: 16px;
}
.cs-blog-index .cs-blog-index__resources .wp-block-button__link {
	padding: 10px 20px;
	border: 0;
	background: #0ab0d8;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	border-radius: 0;
}
.cs-blog-index .cs-blog-index__resources .wp-block-button__link:hover,
.cs-blog-index .cs-blog-index__resources .wp-block-button__link:focus-visible {
	background: #fff;
	color: #0ab0d8;
}
.cs-blog-index .cs-blog-index__resources-columns {
	display: flex;
	max-width: 1000px;
	margin-inline: auto;
	align-items: center;
	gap: 40px;
}
.cs-blog-index .cs-blog-index__resources-columns > .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}
.cs-blog-index .cs-blog-index__resources img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
/*
 * Subscribe band, measured on the live index: heading 28px, its own <strong> at the live 700 (the UA
 * `bolder` would lift it to 900 inside a 700 heading) and the copy at 16px. The band fill
 * (#FFD7E2) and the CF7 mount are untouched.
 *
 * The band is stored as a SIBLING of the `.cs-blog-index` group, not inside it, so these rules are
 * rooted at its own class — still unique to this page's component, never a bare `h3`/`p`.
 */
.cs-blog-index__subscribe h3 {
	font-size: 28px;
}
.cs-blog-index__subscribe h3 strong {
	font-weight: 700;
}
.cs-blog-index__subscribe p {
	font-size: 16px;
}
@media (max-width: 781px) {
	.cs-blog-index .cs-blog-index__hero {
		min-height: 726px !important;
	}
	.cs-blog-index .cs-blog-index__controls {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.cs-blog-index .cs-blog-index__controls .cs-blog-index__topic-control {
		flex: 0 0 auto;
		width: 317px;
		max-width: 100%;
	}
	.cs-blog-index .cs-blog-index__listing .wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.cs-blog-index .cs-blog-index__resources-columns {
		flex-direction: column;
		align-items: stretch;
	}
}
