/* Blog index (main site /blogs/): v2 look for the hero, filter bar and post cards.
   Loaded only on the main-site posts index (inc/blog-filter.php). Class names avoid the
   -card/-item/-box/-grid/-list/-label/-number suffixes that legacy CSS repaints. */

body.blog.tp-v2-skin main,
body.blog.tp-v2-skin main h1,
body.blog.tp-v2-skin main h3,
body.blog.tp-v2-skin .tp-blogidx,
body.blog.tp-v2-skin .tp-blogidx input,
body.blog.tp-v2-skin .tp-blogidx select {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

/* ---- Hero: align with the grid, v2 type scale ---- */
body.blog.tp-v2-skin main > .wp-block-group.alignfull:first-child {
	padding: 72px 24px 64px !important;
	box-sizing: border-box;
}
body.blog.tp-v2-skin main > .wp-block-group.alignfull:first-child > * {
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: left !important;
}
body.blog.tp-v2-skin main > .wp-block-group.alignfull:first-child .tp-blogidx-eyebrow {
	color: #6ee7b7 !important;
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.9rem !important;
}
body.blog.tp-v2-skin main > .wp-block-group.alignfull:first-child h1 {
	font-size: clamp(2.1rem, 5vw, 3.5rem) !important;
	line-height: 1.08 !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	margin-top: 0 !important;
	margin-bottom: 1rem !important;
}
body.blog.tp-v2-skin main > .wp-block-group.alignfull:first-child h1 + p {
	font-size: 1.2rem !important;
	line-height: 1.6;
	margin-bottom: 0 !important;
}

/* ---- Section wrapper ---- */
.tp-blogidx {
	padding: 40px 0 96px !important;
	color: #334155;
}
.tp-blogidx > * { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }

/* ---- Filter bar ---- */
.tp-blog-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 0 auto 28px !important;
	padding: 0 0 24px;
	border-bottom: 1px solid #e2e8f0;
	box-sizing: border-box;
}
.tp-blog-filter__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-blog-filter__lead { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.tp-blog-filter__select { position: relative; display: inline-flex; margin: 0; }
.tp-blog-filter__select::after {
	content: "";
	position: absolute;
	right: 15px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
	color: #0f172a;
}
.tp-blog-filter__select.is-active::after { color: #fff; }
.tp-blog-filter select,
.tp-blog-filter input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	height: 42px;
	margin: 0;
	font-size: 0.95rem !important;
	line-height: 1.2;
	color: #0f172a;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.tp-blog-filter select {
	font-weight: 600;
	padding: 0 40px 0 15px;
	min-width: 220px;
	max-width: 100%;
	cursor: pointer;
}
.tp-blog-filter__select.is-active select { background: #081a2d; border-color: #081a2d; color: #fff; }
.tp-blog-filter select:hover,
.tp-blog-filter input[type="search"]:hover { border-color: #94a3b8; }
.tp-blog-filter select:focus-visible,
.tp-blog-filter input[type="search"]:focus {
	outline: none;
	border-color: #0b7a52;
	box-shadow: 0 0 0 3px rgba(11, 122, 82, 0.15);
}
.tp-blog-filter__clear {
	font-size: 0.9rem;
	font-weight: 600;
	color: #0b7a52 !important;
	text-decoration: none !important;
}
.tp-blog-filter__clear:hover { text-decoration: underline !important; }
.tp-blog-filter__search { position: relative; display: block; width: 340px; max-width: 100%; margin: 0; }
.tp-blog-filter__search svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	pointer-events: none;
}
.tp-blog-filter input[type="search"] { width: 100%; padding: 0 14px 0 40px; }
.tp-blog-filter input[type="search"]::placeholder { color: #64748b; opacity: 1; }
.tp-blog-filter input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.tp-blog-filter__go {
	height: 42px; font: inherit; font-weight: 700; border: 0; border-radius: 6px; padding: 0 18px;
	background: #12a36d; color: #fff; cursor: pointer;
}
.tp-blog-filter__status {
	font-size: 0.95rem !important;
	color: #64748b;
	margin: -8px auto 24px !important;
}
.tp-blog-filter__status strong { color: #0f172a; font-weight: 700; }

/* ---- Post cards ---- */
.tp-blogidx .wp-block-post-template.tp-blogroll {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	list-style: none;
}
.tp-blogidx .tp-blogroll > li { margin: 0 !important; display: flex; width: auto !important; }
.tp-blogidx .tp-bpost {
	display: flex !important;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	overflow: hidden;
	padding: 0 !important;
	margin: 0 !important;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tp-blogidx .tp-bpost:hover {
	border-color: #cbd5e1 !important;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
	transform: translateY(-2px);
}
.tp-blogidx .tp-bpost > * { margin: 0 !important; max-width: none !important; }
.tp-blogidx .tp-bpost .wp-block-post-featured-image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eef1f6;
}
.tp-blogidx .tp-bpost .wp-block-post-featured-image a,
.tp-blogidx .tp-bpost .wp-block-post-featured-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0 !important;
}
.tp-blogidx .tp-bpost .wp-block-post-featured-image img { transition: transform .4s ease; }
.tp-blogidx .tp-bpost:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.tp-blogidx .tp-bpost__body {
	display: flex !important;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 18px !important;
	gap: 0 !important;
}
.tp-blogidx .tp-bpost__body > * { margin: 0 !important; max-width: none !important; }
.tp-blogidx .tp-bpost__cats {
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	margin-bottom: 10px !important;
}
.tp-blogidx .tp-bpost__cats a { color: #0b7a52 !important; text-decoration: none !important; }
.tp-blogidx .tp-bpost__cats a:hover { text-decoration: underline !important; }
.tp-blogidx .tp-bpost__title {
	font-size: 1.25rem !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	text-wrap: balance;
	margin-bottom: 10px !important;
}
.tp-blogidx .tp-bpost__title a { color: #0f172a !important; font-weight: 700 !important; text-decoration: none !important; }
.tp-blogidx .tp-bpost__title a:hover { color: #0b7a52 !important; }
.tp-blogidx .tp-bpost__sum,
.tp-blogidx .tp-bpost__sum p {
	font-size: 0.95rem !important;
	line-height: 1.6 !important;
	color: #475569 !important;
	margin: 0 !important;
}
.tp-blogidx .tp-bpost__sum .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tp-blogidx .tp-bpost__sum .wp-block-post-excerpt__more-text { display: none; }
.tp-blogidx .tp-bpost__foot {
	margin-top: auto !important;
	padding-top: 18px !important;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: nowrap;
}
.tp-blogidx .tp-bpost__date,
.tp-blogidx .tp-bpost__date time { font-size: 0.85rem !important; color: #64748b !important; margin: 0 !important; }
.tp-blogidx .tp-bpost__more {
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	color: #0b7a52 !important;
	text-decoration: none !important;
	white-space: nowrap;
	margin: 0 !important;
}
.tp-blogidx .tp-bpost__more:hover { text-decoration: underline !important; }

/* ---- Empty state + pagination ---- */
.tp-blogidx .wp-block-query-no-results p {
	padding: 48px 0;
	font-size: 1.05rem;
	color: #475569;
}
.tp-blogidx .wp-block-query-pagination {
	margin-top: 48px !important;
	gap: 8px !important;
	font-size: 0.95rem;
}
.tp-blogidx .wp-block-query-pagination-numbers { display: flex; gap: 8px; }
.tp-blogidx .wp-block-query-pagination .page-numbers,
.tp-blogidx .wp-block-query-pagination-previous,
.tp-blogidx .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	color: #0f172a !important;
	font-weight: 600;
	text-decoration: none !important;
	box-sizing: border-box;
}
.tp-blogidx .wp-block-query-pagination a:hover { border-color: #0b7a52; color: #0b7a52 !important; }
.tp-blogidx .wp-block-query-pagination .page-numbers.current { background: #081a2d; border-color: #081a2d; color: #fff !important; }
.tp-blogidx .wp-block-query-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.tp-blogidx .wp-block-post-template.tp-blogroll { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 680px) {
	body.blog.tp-v2-skin main > .wp-block-group.alignfull:first-child { padding: 48px 20px 44px !important; }
	body.blog.tp-v2-skin main > .wp-block-group.alignfull:first-child h1 + p { font-size: 1.05rem !important; }
	.tp-blogidx { padding: 28px 16px 64px !important; }
	.tp-blogidx .wp-block-post-template.tp-blogroll { grid-template-columns: 1fr !important; gap: 18px !important; }
	.tp-blog-filter { flex-direction: column; align-items: stretch; }
	.tp-blog-filter__left { width: 100%; }
	.tp-blog-filter__select, .tp-blog-filter select { flex: 1; width: 100%; min-width: 0; }
	.tp-blog-filter__lead { display: none; }
	.tp-blog-filter__search { width: 100%; }
}
