/* Info Grove blog: the listing hero with search and category chips, the feature card, the post-card grid
   (also used for related posts on single posts), pagination and the newsletter band. Colour-only hovers. */

:is(.ig-blog, .ig-related) {
	font-family: var(--wp--preset--font-family--open-sans);
}

/* ===== Heading: the photo band is .ig-page-title (base.css); under it, on white, the search box and the chips ===== */
.ig-archive-tools {
	padding: 32px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ig-archive-tools__search { max-width: 560px; }

/* The search form's own styles are in header.css (it is in the header on every page). */
.ig-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ig-archive-tools__search + .ig-chips { margin-top: 22px; }
.ig-chip {
	padding: 7px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--custom--color--text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.ig-chip:hover { border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue); }
.ig-chip.is-current,
.ig-chip.is-current:hover {
	border-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

/* ===== Feature card (blog index, page 1) ===== */
.ig-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin-top: 48px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
@media (min-width: 900px) {
	.ig-feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.ig-feature__img { display: block; min-height: 220px; overflow: hidden; }
.ig-feature__img img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.ig-feature__img--empty { background: linear-gradient(135deg, var(--wp--preset--color--blue), var(--wp--preset--color--light-blue)); }
@media (min-width: 900px) {
	.ig-feature__img { min-height: 360px; }
}
.ig-feature__body { display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; }
@media (min-width: 900px) {
	.ig-feature__body { padding: 44px; }
}
.ig-feature__eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--light-blue);
}
.ig-feature__title {
	margin: 14px 0 0;
	color: var(--wp--preset--color--white);
	font-size: clamp(24px, 3.4vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}
.ig-feature__excerpt { display: block; margin-top: 14px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.ig-feature__meta { display: block; margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.ig-feature__read { display: block; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--light-blue); }
.ig-feature:hover .ig-feature__read { color: var(--wp--preset--color--white); }

/* ===== Post grid and cards ===== */
.ig-post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	margin-top: 40px;
}
@media (min-width: 600px) {
	.ig-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.ig-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ig-blog__empty { margin: 48px 0; color: var(--wp--preset--color--muted); }

.ig-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}
.ig-pc-img { display: block; height: 190px; overflow: hidden; }
.ig-pc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-pc-img--empty { background: linear-gradient(135deg, var(--wp--preset--color--blue), var(--wp--preset--color--light-blue)); }
.ig-pc-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.ig-pc-cat {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
}
.ig-pc-title {
	flex: 1;
	margin: 10px 0 0;
	color: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}
.ig-post-card:hover .ig-pc-title { color: var(--wp--preset--color--blue); }
.ig-pc-meta { display: block; margin-top: 14px; font-size: 12.5px; color: var(--wp--preset--color--muted); }

/* ===== Pagination ===== */
.ig-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.ig-pager .page-numbers {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	color: var(--wp--preset--color--navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.ig-pager a.page-numbers:hover { border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue); }
.ig-pager .page-numbers.current {
	border-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}
.ig-pager .page-numbers.dots { border-color: transparent; }
@media (max-width: 480px) {
	.ig-pager { gap: 4px; }
	.ig-pager .page-numbers { min-width: 36px; height: 36px; padding: 0 8px; }
}

/* ===== Search results and 404 ===== */
/* No newsletter band on search results: the bottom margin keeps the pager off the footer. */
.ig-search { display: flex; flex-direction: column; gap: 8px; margin: 32px 0 72px; }
@media (min-width: 900px) {
	.ig-search { display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 1fr); gap: 56px; margin-top: 40px; }
}
.ig-search__count { margin: 0; font-size: 14px; color: var(--wp--preset--color--muted); }
.ig-search__cats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 8px; font-weight: 600; }
.ig-search__cats a { color: var(--wp--preset--color--blue); text-decoration: none; }
.ig-search__cats a:hover { color: var(--wp--preset--color--navy); text-decoration: underline; }
.ig-results { margin-top: 8px; }
.ig-result {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}
@media (min-width: 600px) {
	.ig-result { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; }
}
.ig-result__img { display: block; height: 84px; overflow: hidden; border-radius: 10px; }
@media (min-width: 600px) {
	.ig-result__img { height: 120px; border-radius: 12px; }
}
.ig-result__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-result__img--empty { background: linear-gradient(135deg, var(--wp--preset--color--blue), var(--wp--preset--color--light-blue)); }
.ig-result__type {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
}
.ig-result__type--page { color: var(--wp--custom--color--red-dark); } /* darker red for small text */
.ig-result__title {
	margin: 6px 0 0;
	color: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
@media (min-width: 600px) {
	.ig-result__title { font-size: 19px; }
}
.ig-result:hover .ig-result__title { color: var(--wp--preset--color--blue); }
.ig-result__snippet { display: block; margin-top: 8px; color: var(--wp--custom--color--text-soft); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.ig-result__snippet mark { padding: 0 2px; border-radius: 2px; background: rgba(0, 179, 226, 0.2); color: inherit; }

.ig-filters { margin-top: 40px; }
@media (min-width: 900px) {
	.ig-filters { margin-top: 0; }
}
.ig-filters__h {
	margin: 24px 0 10px;
	color: var(--wp--preset--color--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.ig-filters__h:first-child { margin-top: 0; }
@media (min-width: 900px) {
	.ig-filters__h { margin-top: 40px; }
	.ig-filters__h:first-child { margin-top: 0; }
}
.ig-filter {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--wp--custom--color--text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.ig-filter span { color: var(--wp--preset--color--muted); font-weight: 400; }
.ig-filter:hover { background: var(--wp--preset--color--grey); color: var(--wp--preset--color--blue); }
.ig-filter.is-current,
.ig-filter.is-current:hover { background: rgba(0, 93, 166, 0.08); color: var(--wp--preset--color--blue); }

.ig-search-none { max-width: 620px; margin: 40px 0 72px; color: var(--wp--custom--color--text-soft); }
.ig-search-none p { margin: 0; }
.ig-search-none__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 72px; }
.ig-search-none .ig-search-none__links { margin: 24px 0 0; }

/* ===== Newsletter band: full width and blue, as the homepage's blue bands ===== */
.ig-newsband {
	margin-top: 72px;
	padding: 56px 0;
	background: var(--wp--preset--color--blue);
}
.ig-newsband__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
@media (min-width: 900px) {
	.ig-newsband { padding: 72px 0; }
	.ig-newsband__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
.ig-newsband__text h2 { margin: 0; font-size: 26px; font-weight: 700; }
.ig-newsband__text p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.8); }
.ig-newsband__form { min-width: 0; }
@media (min-width: 900px) {
	.ig-newsband__form { flex: none; width: min(420px, 45%); }
}
