/* Post grid + featured hero card — see docs/BLOG_PAGE_REDESIGN_PLAN.md and
   web/wordpress/style-guide/DESIGN_SYSTEM.md */

/* ---------- Category badges (gcf-badge--post-{a|b|c|d} from
   post_category_badge(), post-helpers.php) — same 4-pastel palette as
   .gcf-badge--cancer/heart/sicklecell/general in campaigns.css, cycled
   across native post categories instead of a fixed slug map. ---------- */
.gcf-badge--post-a {
	background: #fadfec;
	color: #98446f;
}

.gcf-badge--post-b {
	background: #d8f1ec;
	color: #17695e;
}

.gcf-badge--post-c {
	background: #ebe2f4;
	color: #64437f;
}

.gcf-badge--post-d {
	background: #fbe3d0;
	color: #8f4e1d;
}

/* Neutral "Featured" pill — ink-derived low-alpha tint, same recipe as
   .gcf-badge--success (campaigns.css), so it reads as a palette color
   rather than an off-palette gray. */
.gcf-badge--neutral {
	background: #21293b14;
	color: #21293b;
}

/* ---------- Grid ---------- */
.gcf-post-grid {
	display: grid;
	grid-template-columns: repeat(var(--gcf-grid-columns, 3), 1fr);
	gap: 24px;
}

/* Same elevation recipe as .gcf-campaign-card/.gcf-story-card. */
.gcf-post-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.gcf-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(33, 41, 59, 0.14);
}

.gcf-post-card.gcf-filter-hide {
	display: none;
}

.gcf-post-card__img-wrap {
	position: relative;
	height: 200px;
	overflow: hidden;
}

/* Two classes to outrank Elementor's own `.elementor img { height: auto }`
   reset — see the identical note in stories.css. */
.gcf-post-card__img-wrap .gcf-post-card__img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gcf-post-card:hover .gcf-post-card__img {
	transform: scale(1.06);
}

.gcf-post-card__img--placeholder {
	height: 100%;
	width: 100%;
	background: linear-gradient(135deg, #e6f4fb, #f6f6f6);
}

.gcf-post-card__body {
	display: flex;
	flex-direction: column;
	padding: 20px;
	flex: 1;
}

.gcf-post-card__body .gcf-badge {
	align-self: flex-start;
}

.gcf-post-card__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: #21293b;
}

.gcf-post-card__meta {
	margin: auto 0 0;
	padding-top: 8px;
	font-size: 13px;
	color: #5c6270;
}

/* ---------- Featured hero card (page 1 only) ---------- */
.gcf-post-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: center;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.08);
	margin-bottom: 32px;
	transition: box-shadow 180ms ease;
}

.gcf-post-featured:hover {
	box-shadow: 0 16px 40px rgba(33, 41, 59, 0.14);
}

.gcf-post-featured__img-wrap {
	position: relative;
	height: 100%;
	min-height: 320px;
	overflow: hidden;
}

.gcf-post-featured__img-wrap .gcf-post-featured__img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	display: block;
}

.gcf-post-featured__img--placeholder {
	height: 100%;
	width: 100%;
	min-height: 320px;
	background: linear-gradient(135deg, #e6f4fb, #f6f6f6);
}

.gcf-post-featured__body {
	display: flex;
	flex-direction: column;
	padding: 24px 40px 24px 0;
}

.gcf-post-featured__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.gcf-post-featured__badges .gcf-badge {
	margin-bottom: 0;
}

.gcf-post-featured__title {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #21293b;
}

.gcf-post-featured__excerpt {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: #5c6270;
}

.gcf-post-featured__meta {
	margin: 0 0 16px;
	font-size: 13px;
	color: #5c6270;
}

.gcf-post-featured__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #0093d0;
}

/* ---------- Header search pill (`wp-widget-search`, Blog page header row —
   given the `gcf-blog-search` CSS class via the widget's Advanced tab).
   WordPress core's default (non-block) search form markup:
   .search-form > .search-field + .search-submit. ---------- */
.gcf-blog-search .search-form {
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 6px 6px 6px 20px;
}

/* appearance reset strips WebKit's own native rounded chrome for
   `input[type="search"]` (a separate layer from the `border` below) — left
   in place, Safari/Chrome draw it under our pill and it reads as two
   overlapping fields. Same fix already applied to .search-submit above. */
.gcf-blog-search .search-field {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	color: #21293b;
	width: 180px;
}

/* `<input type="submit">` is a replaced element — ::before/::after never
   render on it in any browser, so the magnifying-glass glyph is drawn as a
   background-image (inline SVG) instead of a Font Awesome pseudo-element.
   appearance/-webkit-appearance reset to none because a bare <input> ships
   native button chrome (padding/border/shadow) that fights the flat circle
   here even when width/height/border-radius are otherwise set correctly. */
.gcf-blog-search .search-submit {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: #0093d0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
	color: transparent;
	cursor: pointer;
	font-size: 0;
	line-height: 1;
}

/* ---------- Pagination wrapper (theme-native `.pagination .nav-links`
   markup/CSS from template-parts/archive.php — no bespoke styling here,
   same convention as gcf-story-grid/gcf-event-grid). ---------- */
.gcf-post-pagination {
	margin-top: 40px;
	text-align: center;
}

.gcf-post-pagination.gcf-filter-hide {
	display: none;
}

/* ---------- Single post view (single.php) ---------- */

/* Extra top clearance for the badge/title block. The sitewide sticky
   header (ElementsKit) is permanently `position: fixed` with no reserved
   space of its own — every other single-*.php template stays clear of it
   only because of a much taller hero/banner section above their content
   (single-campaign.php: ~900px, single-story.php: ~370px). This template's
   compact badge+title stack sits much closer to the top by comparison
   (~210px), so without this it disappears half-cut under the header after
   only a small scroll. */
.gcf-post-single .col-lg-8.offset-lg-2 {
	padding-top: 40px;
}

.gcf-post-single__title {
	margin: 24px 0 0;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #21293b;
}

.gcf-post-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 32px;
}

.gcf-post-byline__avatar {
	flex-shrink: 0;
	border-radius: 50%;
}

.gcf-post-byline__info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 8px;
	row-gap: 2px;
}

.gcf-post-byline__name {
	font-size: 15px;
	font-weight: 600;
	color: #21293b;
}

.gcf-post-byline__role {
	font-size: 13px;
	color: #5c6270;
}

.gcf-post-byline__role::before {
	content: "·";
	margin-right: 8px;
	color: #5c6270;
}

.gcf-post-byline__meta {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	color: #5c6270;
}

.gcf-post-single__hero {
	margin: 0 0 32px;
}

/* Two selectors, same recipe as .gcf-post-card__img-wrap above, to outrank
   Elementor's own `.elementor img { height: auto }` reset. */
.gcf-post-single__hero .gcf-post-single__hero-img {
	display: block;
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 16px;
}

.gcf-post-single__hero-caption {
	margin-top: 8px;
	font-size: 13px;
	color: #5c6270;
	text-align: center;
}

.gcf-post-single__article {
	margin: 32px 0;
	font-size: 17px;
	line-height: 1.75;
	color: #333a4d;
}

.gcf-post-single__article h2,
.gcf-post-single__article h3 {
	margin: 40px 0 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #21293b;
}

.gcf-post-single__article h2 {
	font-size: 26px;
}

.gcf-post-single__article h3 {
	font-size: 21px;
}

.gcf-post-single__article blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid #0093d0;
	font-size: 22px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.5;
	color: #21293b;
}

.gcf-post-single__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 40px 0;
	padding: 24px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.gcf-post-single__share-label {
	font-size: 14px;
	font-weight: 600;
	color: #21293b;
}

/* ---------- Author bio card (single post view) ---------- */
.gcf-author-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 40px 0;
	padding: 24px;
	background: #f9fafb;
	border-radius: 16px;
}

.gcf-author-card__avatar {
	flex-shrink: 0;
	border-radius: 50%;
}

.gcf-author-card__name {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 600;
	color: #21293b;
}

.gcf-author-card__bio {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #5c6270;
}

/* Same margin-top + heading-override recipe as .gcf-related-campaigns
   (campaigns.css) — the wrapper carries the top gap so .gcf-section-heading's
   own 40px top margin doesn't stack on top of it. */
.gcf-related-posts {
	margin-top: 48px;
}

.gcf-related-posts .gcf-section-heading {
	margin: 0 0 24px;
}

@media (max-width: 1024px) {
	.gcf-post-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-tablet, 2), 1fr);
	}

	.gcf-post-featured {
		grid-template-columns: 1fr;
	}

	.gcf-post-featured__img-wrap {
		min-height: 260px;
	}

	.gcf-post-featured__body {
		padding: 0 24px 24px;
	}

	.gcf-post-single__hero .gcf-post-single__hero-img {
		max-height: 360px;
	}
}

@media (max-width: 640px) {
	.gcf-post-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-mobile, 1), 1fr);
	}

	.gcf-post-featured__title {
		font-size: 24px;
	}

	.gcf-post-single__title {
		font-size: 26px;
	}

	.gcf-post-single__article blockquote {
		font-size: 19px;
	}

	.gcf-author-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* Canvas sections (.gcf-canvas on the Elementor container): the blog
   preview card as drawn in the canvas - no card box, rounded photo,
   badge, title, meta. */
.gcf-canvas .gcf-post-grid {
	gap: 32px;
}

.gcf-canvas .gcf-post-card,
.gcf-canvas .gcf-post-card:hover {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	transform: none;
}

.gcf-canvas .gcf-post-card__img-wrap {
	border-radius: 16px;
}

.gcf-canvas .gcf-post-card__body {
	padding: 16px 0 0;
}

.gcf-canvas .gcf-post-card__body .gcf-badge {
	margin-bottom: 16px;
}

.gcf-canvas .gcf-post-card__title {
	margin: 0 0 16px;
	font-size: 21px;
	color: #1c2a32;
}

.gcf-canvas .gcf-post-card__meta {
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: #8a969c;
}
