/*
 * Programs archive (Blocksy loop, restyled) and single program (Prompt 06, RMHN Programs.dc.html).
 */

/* ---------------------------------------------------------------- archive: Blocksy hero */
.post-type-archive-rmhn_program .hero-section[data-type="type-1"] {
	max-width: 820px;
	margin-inline: auto;
	margin-bottom: 32px;
}

.post-type-archive-rmhn_program .page-description {
	font-size: 19px;
	line-height: 1.55;
	color: var(--rmhn-muted);
}

@media (min-width: 1000px) {
	.post-type-archive-rmhn_program .hero-section[data-type="type-1"] {
		margin-bottom: 64px;
	}

	.post-type-archive-rmhn_program .page-description {
		font-size: 22px;
	}
}

/* ---------------------------------------------------------------- archive: Blocksy cards */
/* Padding, border and radius come from the Customizer (card_spacing, cardBorder, cardRadius). */
[data-archive] .rmhn-program-entry.entry-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

[data-archive] .rmhn-program-entry.entry-card > * {
	margin: 0;
}

.rmhn-program-entry .entry-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.3;
}

.rmhn-program-entry .entry-excerpt {
	flex: 1;
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--rmhn-muted);
}

.rmhn-program-entry .entry-excerpt p {
	margin: 0;
}

.rmhn-program-entry .entry-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 600;
	color: var(--rmhn-red);
}

.rmhn-program-entry .entry-button svg {
	width: 18px;
	height: 18px;
}

@media (max-width: 689.98px) {
	.post-type-archive-rmhn_program .entries {
		--grid-columns-gap: 16px;
		gap: 16px;
	}

	[data-archive] .rmhn-program-entry.entry-card {
		display: grid;
		grid-template-columns: 52px 1fr;
		gap: 4px 16px;
	}

	.rmhn-program-entry .rmhn-icon-holder {
		grid-row: span 2;
	}

	.rmhn-program-entry .entry-title {
		font-size: 18px;
	}

	.rmhn-program-entry .entry-excerpt {
		font-size: 16px;
	}

	[data-archive] .rmhn-program-entry .entry-button {
		display: none;
	}
}

/* ---------------------------------------------------------------- archive: closing cards (base in rmhn.css) */
.post-type-archive-rmhn_program .rmhn-cta-pair {
	margin-top: 48px;
}

@media (min-width: 690px) {
	.post-type-archive-rmhn_program .rmhn-cta-pair {
		margin-top: 96px;
	}
}

/* ---------------------------------------------------------------- single: hero */
.rmhn-program-hero {
	padding-block: 24px 40px;
}

.rmhn-program-hero__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}


.rmhn-program-hero .rmhn-icon-holder {
	margin-bottom: 20px;
}

.rmhn-program-hero h1 {
	margin: 0 0 16px;
}

.rmhn-program-hero__lead {
	margin: 0;
	color: var(--rmhn-muted);
}

.rmhn-program-hero__media {
	height: 420px;
}

.rmhn-program-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 1000px) {
	.rmhn-program-hero {
		padding-block: 40px 80px;
	}

	.rmhn-program-hero__grid {
		grid-template-columns: 1fr 540px;
		gap: 64px;
	}

	.rmhn-program-hero__grid--text {
		grid-template-columns: minmax(0, 760px);
	}
}

/* ---------------------------------------------------------------- single: body + sidebar */
.rmhn-program-body__grid {
	display: grid;
	gap: 24px;
	align-items: start;
}

.rmhn-program-body .rmhn-prose h2 {
	margin: 0 0 20px;
}

.rmhn-program-body__aside {
	display: grid;
	gap: 16px;
}


@media (min-width: 1000px) {
	.rmhn-program-body__grid {
		grid-template-columns: minmax(0, 680px) 454px;
		justify-content: space-between;
		gap: 64px;
	}

	.rmhn-program-body__grid--full {
		grid-template-columns: minmax(0, 760px);
	}
}

/* ---------------------------------------------------------------- single: related + CTA */
.rmhn-program-related h2 {
	margin-bottom: 24px;
}

.rmhn-program-related {
	padding-bottom: 0;
}

.rmhn-program-cta__box {
	display: grid;
	gap: 16px;
}

.rmhn-program-cta__box h2 {
	margin: 0;
}

.rmhn-program-cta__box p {
	margin: 8px 0 0;
	color: var(--rmhn-muted);
}

.rmhn-program-cta__actions {
	display: grid;
	gap: 12px;
	margin: 0;
}

@media (min-width: 690px) {
	.rmhn-program-related h2 {
		margin-bottom: 40px;
	}

	.rmhn-program-cta__box {
		grid-template-columns: 1fr auto;
		align-items: center;
		padding: 48px;
	}

	.rmhn-program-cta__actions {
		display: flex;
		gap: 12px;
	}
}

@media (max-width: 689.98px) {
	.rmhn-program-cta__box {
		padding: 0;
		background: transparent;
		border: 0;
	}

	.rmhn-program-cta {
		background: var(--rmhn-sand);
	}
}
