/* ==========================================================================
   Home Stewards: blog landing page + category/tag archives
   Template: inc/templates/hs-blog-index.php
   Contrast (WCAG AA, checked):
     #472d25 on #fff 12.6:1, on #f6f2ec 11.3:1
     #5c463e on #fff 8.8:1, on #f6f2ec 7.9:1
     #026072 on #fff 7.2:1, on #f6f2ec 6.5:1
     #fff on #026072 7.2:1, #014553 on #fff 10.6:1
   ========================================================================== */

.hs-bi {
	--hs-text: #472d25;
	--hs-text-soft: #5c463e;
	--hs-accent: #026072;
	--hs-accent-dark: #014553;
	--hs-surface: #f6f2ec;
	--hs-border: #e5ddd2;
	--hs-radius: 12px;
	--hs-heading-font: "Noto Sans", Helvetica, Arial, Lucida, sans-serif;
	--hs-body-font: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
	background: #fff;
	color: var(--hs-text);
	font-family: var(--hs-body-font);
}

.hs-bi *,
.hs-bi *::before,
.hs-bi *::after {
	box-sizing: border-box;
}

.hs-bi .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.hs-bi .hs-bi-wrap {
	width: 90%;
	max-width: 1180px;
	margin: 0 auto;
}

.hs-bi a {
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hs-bi a:focus-visible {
	outline: 3px solid var(--hs-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---- Hero -------------------------------------------------------------- */
.hs-bi .hs-bi-hero {
	background: var(--hs-surface);
	border-bottom: 1px solid var(--hs-border);
	padding: 72px 0 44px;
}

.hs-bi .hs-bi-eyebrow {
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hs-accent);
}

.hs-bi .hs-bi-title {
	margin: 0 0 16px;
	padding: 0;
	max-width: 820px;
	font-family: var(--hs-heading-font);
	font-size: 46px;
	line-height: 1.15;
	font-weight: 600;
	color: var(--hs-text);
}

.hs-bi .hs-bi-intro {
	max-width: 720px;
	font-size: 19px;
	line-height: 1.65;
	color: var(--hs-text-soft);
}

.hs-bi .hs-bi-intro p {
	margin: 0;
	padding: 0;
}

.hs-bi .hs-bi-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.hs-bi .hs-bi-chip {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--hs-border);
	border-radius: 999px;
	background: #fff;
	color: var(--hs-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.hs-bi .hs-bi-chip:hover {
	border-color: var(--hs-accent);
	color: var(--hs-accent);
}

.hs-bi .hs-bi-chip.is-active {
	background: var(--hs-accent);
	border-color: var(--hs-accent);
	color: #fff;
}

/* ---- Body -------------------------------------------------------------- */
.hs-bi .hs-bi-body {
	padding: 56px 0 72px;
}

.hs-bi .hs-bi-section-title {
	margin: 56px 0 24px;
	padding: 0;
	font-family: var(--hs-heading-font);
	font-size: 28px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--hs-text);
}

.hs-bi .hs-bi-label {
	margin: 0 0 10px;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hs-accent);
}

.hs-bi .hs-bi-excerpt {
	margin: 0 0 14px;
	padding: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--hs-text-soft);
}

.hs-bi .hs-bi-meta {
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: var(--hs-text-soft);
}

/* Images */
.hs-bi .hs-bi-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hs-bi .hs-bi-img--placeholder {
	background: linear-gradient(135deg, var(--hs-surface), #ebe3d8);
}

/* ---- Lead (latest) article -------------------------------------------- */
.hs-bi .hs-bi-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 0;
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(71, 45, 37, 0.06);
}

.hs-bi .hs-bi-lead__media {
	display: block;
	min-height: 340px;
	overflow: hidden;
	background: var(--hs-surface);
}

.hs-bi .hs-bi-lead:hover .hs-bi-img {
	transform: scale(1.03);
}

.hs-bi .hs-bi-lead__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 44px;
}

.hs-bi .hs-bi-lead__title {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--hs-heading-font);
	font-size: 32px;
	line-height: 1.2;
	font-weight: 600;
}

.hs-bi .hs-bi-lead__title a {
	color: var(--hs-text);
	text-decoration: none;
}

.hs-bi .hs-bi-lead__title a:hover {
	color: var(--hs-accent);
}

.hs-bi .hs-bi-lead .hs-bi-excerpt {
	font-size: 17px;
}

.hs-bi .hs-bi-more {
	align-self: flex-start;
	margin-top: 22px;
	padding: 12px 22px;
	border-radius: 8px;
	background: var(--hs-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.hs-bi .hs-bi-more::after {
	content: " \2192";
}

.hs-bi .hs-bi-more:hover {
	background: var(--hs-accent-dark);
	color: #fff;
}

/* ---- Card grid --------------------------------------------------------- */
.hs-bi .hs-bi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.hs-bi .hs-bi-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(71, 45, 37, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hs-bi .hs-bi-card:hover,
.hs-bi .hs-bi-card:focus-within {
	border-color: #d6cabb;
	box-shadow: 0 12px 28px rgba(71, 45, 37, 0.12);
	transform: translateY(-3px);
}

.hs-bi .hs-bi-card:hover .hs-bi-img {
	transform: scale(1.04);
}

.hs-bi .hs-bi-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--hs-surface);
}

.hs-bi .hs-bi-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 24px;
}

.hs-bi .hs-bi-card__title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--hs-heading-font);
	font-size: 20px;
	line-height: 1.35;
	font-weight: 600;
}

.hs-bi .hs-bi-card__title a {
	color: var(--hs-text);
	text-decoration: none;
}

/* Whole card is clickable through the title link */
.hs-bi .hs-bi-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hs-bi .hs-bi-card:hover .hs-bi-card__title a {
	color: var(--hs-accent);
}

.hs-bi .hs-bi-card__title a:focus-visible {
	outline: none;
}

.hs-bi .hs-bi-card:focus-within {
	outline: 3px solid var(--hs-accent);
	outline-offset: 2px;
}

.hs-bi .hs-bi-card .hs-bi-meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--hs-border);
}

/* ---- Pagination -------------------------------------------------------- */
.hs-bi .hs-bi-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 52px;
}

.hs-bi .hs-bi-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--hs-border);
	border-radius: 8px;
	background: #fff;
	color: var(--hs-text);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.hs-bi .hs-bi-pager a.page-numbers:hover {
	border-color: var(--hs-accent);
	color: var(--hs-accent);
}

.hs-bi .hs-bi-pager .page-numbers.current {
	background: var(--hs-accent);
	border-color: var(--hs-accent);
	color: #fff;
}

.hs-bi .hs-bi-pager .page-numbers.dots {
	border-color: transparent;
}

.hs-bi .hs-bi-empty {
	font-size: 18px;
	color: var(--hs-text);
}

.hs-bi .hs-bi-empty a {
	color: var(--hs-accent);
}

/* ---- CTA band ---------------------------------------------------------- */
.hs-bi .hs-bi-cta {
	background: var(--hs-accent);
	padding: 56px 0;
}

.hs-bi .hs-bi-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px 48px;
}

.hs-bi .hs-bi-cta__title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--hs-heading-font);
	font-size: 30px;
	line-height: 1.25;
	font-weight: 600;
	color: #fff;
}

.hs-bi .hs-bi-cta__text {
	max-width: 640px;
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.6;
	color: #fff;
}

.hs-bi .hs-bi-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex-shrink: 0;
}

.hs-bi .hs-bi-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 8px;
	border: 2px solid #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.hs-bi .hs-bi-btn--light {
	background: #fff;
	color: var(--hs-accent-dark);
}

.hs-bi .hs-bi-btn--light:hover {
	background: var(--hs-surface);
	border-color: var(--hs-surface);
	color: var(--hs-accent-dark);
}

.hs-bi .hs-bi-btn--ghost {
	background: transparent;
	color: #fff;
}

.hs-bi .hs-bi-btn--ghost:hover {
	background: #fff;
	color: var(--hs-accent-dark);
}

.hs-bi .hs-bi-cta a:focus-visible {
	outline-color: #fff;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
	.hs-bi .hs-bi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.hs-bi .hs-bi-lead {
		grid-template-columns: 1fr;
	}
	.hs-bi .hs-bi-lead__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.hs-bi .hs-bi-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.hs-bi .hs-bi-hero {
		padding: 44px 0 32px;
	}
	.hs-bi .hs-bi-title {
		font-size: 32px;
	}
	.hs-bi .hs-bi-intro {
		font-size: 17px;
	}
	.hs-bi .hs-bi-cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-right: -5.5%;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}
	.hs-bi .hs-bi-chip {
		flex: 0 0 auto;
	}
	.hs-bi .hs-bi-body {
		padding: 36px 0 52px;
	}
	.hs-bi .hs-bi-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.hs-bi .hs-bi-lead__body {
		padding: 26px 22px;
	}
	.hs-bi .hs-bi-lead__title {
		font-size: 25px;
	}
	.hs-bi .hs-bi-section-title {
		margin-top: 40px;
		font-size: 24px;
	}
	.hs-bi .hs-bi-cta__title {
		font-size: 25px;
	}
	.hs-bi .hs-bi-btn {
		white-space: normal;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-bi a,
	.hs-bi .hs-bi-card,
	.hs-bi .hs-bi-img {
		transition: none;
	}
	.hs-bi .hs-bi-card:hover,
	.hs-bi .hs-bi-card:focus-within {
		transform: none;
	}
	.hs-bi .hs-bi-card:hover .hs-bi-img,
	.hs-bi .hs-bi-lead:hover .hs-bi-img {
		transform: none;
	}
}
