/*
 * PrepGro Theme — Journal index (§8) and article (§9).
 */

/* ── Index header ──────────────────────────────────────────────────── */
.pgb-head {
	padding: clamp(40px, 6vw, 64px) clamp(18px, 4vw, 32px) 40px;
	background:
		radial-gradient(var(--pge-gray-200) 1px, transparent 1px) 0 0 / 22px 22px,
		linear-gradient(180deg, var(--pge-gray-50), #fff);
	text-align: center;
}
.pgb-head__copy { max-width: 760px; margin-inline: auto; }
.pgb-chip {
	display: inline-block;
	background: #fff;
	border: 1px solid var(--pge-color-line);
	border-radius: var(--pge-radius-pill);
	padding: 6px 14px;
	font-size: 12.5px; font-weight: 600; color: var(--pge-ink-500);
}
.pgb-h1 {
	font-size: clamp(32px, 5.4vw, 52px);
	line-height: 1.06; letter-spacing: -.035em; font-weight: 600;
	color: var(--pge-color-ink);
	margin: 20px 0 0;
}
.pgb-lede { font-size: 17px; line-height: 1.6; color: var(--pge-ink-500); margin: 18px auto 0; max-width: 46ch; }
.pgb-body { padding: 34px clamp(18px, 4vw, 32px) clamp(48px, 7vw, 80px); max-width: 1100px; margin-inline: auto; }

.pgb-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pge-color-primary); }
.pgb-cat--sm { font-size: 10.5px; }
.pgb-meta { font-size: 13px; color: var(--pge-ink-400); margin: 0; }
.pgb-meta--sm { font-size: 12.5px; color: var(--neutral-400); }

/* ── Featured post ─────────────────────────────────────────────────── */
.pgb-featured {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	background: #fff;
	border: 1px solid var(--pge-color-line);
	border-radius: 22px;
	overflow: hidden;
	margin-bottom: 20px;
	text-decoration: none;
	transition: box-shadow 140ms var(--pgt-ease);
}
.pgb-featured:hover { text-decoration: none; box-shadow: var(--pge-shadow-sm); }
.pgb-featured__copy {
	background: var(--blue-50);
	padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.pgb-featured__h {
	font-size: clamp(24px, 3.2vw, 31px);
	line-height: 1.14; letter-spacing: -.028em; font-weight: 600;
	color: var(--pge-color-ink);
	margin: 12px 0;
}
.pgb-featured__x { font-size: 15.5px; line-height: 1.6; color: var(--pge-ink-500); margin: 0 0 14px; }
.pgb-featured__media { min-height: 280px; display: flex; border-left: 1px solid var(--pge-color-line); }
.pgb-featured__media .pgt-imgslot { flex: 1; min-height: 280px; }

/* ── Post grid ─────────────────────────────────────────────────────── */
.pgb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pgb-card {
	background: #fff;
	border: 1px solid var(--pge-color-line);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	transition: transform 140ms var(--pgt-ease), box-shadow 140ms var(--pgt-ease);
}
.pgb-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--pge-shadow-sm); }
.pgb-card__media { border-bottom: 1px solid var(--pge-gray-100); display: flex; }
.pgb-card__media .pgt-imgslot { flex: 1; }
/* Alternate the fallback tint so a grid of imageless posts still has rhythm. */
.pgb-card--alt .pgt-imgslot.is-empty .pgt-imgslot__wash { background: linear-gradient(140deg, var(--pge-gray-50), var(--blue-50)); }
.pgb-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pgb-card__h { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--pge-color-ink); margin: 0; }
.pgb-card__x { font-size: 14px; line-height: 1.55; color: var(--pge-ink-400); margin: 0; }
.pgb-empty { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 40px 0; }

/* ── §9 Article ────────────────────────────────────────────────────── */
.pgt-single {
	max-width: 680px;
	margin-inline: auto;
	padding: 52px clamp(18px, 4vw, 32px) clamp(48px, 7vw, 80px);
}
.pga-back {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 14px; font-weight: 600;
	color: var(--pge-ink-500);
	text-decoration: none;
	margin-bottom: 26px;
}
.pga-back:hover { color: var(--pge-color-ink); text-decoration: none; }
.pga-cat { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pge-color-primary); }
.pgt-single .pgt-page__title,
.pgt-single .wp-block-post-title {
	font-size: clamp(30px, 4.6vw, 43px);
	line-height: 1.1; letter-spacing: -.032em; font-weight: 600;
	color: var(--pge-color-ink);
	margin: 10px 0 0;
}
.pga-byline {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding-bottom: 26px;
	margin-top: 22px;
	border-bottom: 1px solid var(--pge-gray-100);
}
.pga-avatar {
	width: 38px; height: 38px; flex: none;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--blue-800), var(--blue-400));
	color: #fff;
	font-size: 14px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}
.pga-byline__name { font-size: 14.5px; font-weight: 600; color: var(--pge-color-ink); }
.pga-byline__meta { font-size: 13px; color: var(--pge-ink-400); }

.pgt-single .pgt-single__hero,
.pgt-single .wp-block-post-featured-image {
	margin: 30px 0;
}
.pgt-single .wp-block-post-featured-image img {
	height: 280px;
	width: 100%;
	object-fit: cover;
	border-radius: 20px;
	border: 1px solid var(--pge-color-line);
	display: block;
}
.pgt-prose p { font-size: 17px; line-height: 1.75; color: var(--pge-color-body); margin-bottom: 22px; }
.pgt-prose > p:first-of-type { font-size: 19px; font-weight: 500; line-height: 1.6; margin: 30px 0 26px; }
.pgt-prose h2 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; margin: 38px 0 14px; }
/* No coloured left border — the design system rejects that pattern. */
.pgt-prose blockquote {
	background: var(--pge-gray-50);
	border: 1px solid var(--pge-color-line);
	border-radius: 18px;
	padding: 24px 26px;
	margin: 26px 0;
	font-size: 18px; font-weight: 500; line-height: 1.6;
	color: var(--pge-color-ink);
}
.pgt-prose blockquote p { font-size: inherit; font-weight: inherit; margin: 0; }

.pga-cta {
	margin-top: 44px;
	padding: 28px;
	background: var(--blue-50);
	border: 1px solid var(--blue-200);
	border-radius: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.pga-cta__h { margin: 0; font-size: 18px; font-weight: 600; color: var(--pge-color-ink); }
.pga-cta__s { margin: 4px 0 0; font-size: 14.5px; color: var(--pge-ink-500); }
.pga-cta__btn {
	display: inline-flex; align-items: center;
	font-size: 15px; font-weight: 600;
	color: #fff;
	background: var(--pge-color-primary);
	padding: 13px 24px;
	border-radius: var(--pge-radius-pill);
	white-space: nowrap;
	text-decoration: none;
}
.pga-cta__btn:hover { color: #fff; text-decoration: none; filter: brightness(.92); }

@media (prefers-reduced-motion: reduce) {
	.pgb-featured, .pgb-card { transition: none; }
}
