/**
 * ============================================================================
 *  MILTONCAT MANAGED FILE - DO NOT EDIT ON THE SERVER
 * ----------------------------------------------------------------------------
 *  Owner : Getfused (git repo: miltoncat)
 *  Deploy: SFTP overwrites this file wholesale. Server-side edits WILL BE
 *          LOST without warning, with no backup and no notification.
 *
 *  Site code belongs in one of these instead. Neither is ever written by a
 *  Getfused deploy, so anything you put there is safe:
 *      themes/miltoncat-gp/functions.php   (below the SITE CUSTOMIZATIONS marker)
 *      themes/miltoncat-gp/style.css       (below the SITE CUSTOMIZATIONS marker)
 *
 *  Full ownership map: _OWNERSHIP.md in the theme root.
 * ============================================================================
 *
 * Promotion card (inc/promotions.php, miltoncat_gp_promo_item) - homepage and
 * FacetWP listing. Skeleton styling. Prints before style.css, so
 * same-specificity overrides there win.
 */

.mc-promo {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 280px;
	background: var(--mc-panel);
	overflow: hidden;
}

.mc-promo__media {
	position: absolute;
	inset: 0;
}

.mc-promo__image {
	width: 100%;
	height: 100%!important;
	object-fit: cover;
}

.mc-promo__body {
	position: relative;
	padding: 24px;
	background-color: rgba(255,255,255,.76);
}

.mc-promo__title {
	margin: 0 0 8px;
}

/* Eyebrow: editors write "<small>Fall 2026</small> Title" into the title. */
.mc-promo .mc-promo__title small {
	display: block;
	margin-bottom: 4px;
	font-family: var(--mc-font-body);
	font-size: var(--mc-fs-body);
	font-weight: 700;
	line-height: 1.3;
}

.mc-promo__content > :last-child {
	margin-bottom: 0;
}

/* ---- Homepage hero slide: inset white panel over the photo (comp) ------ */
.mc-promo.mc-promo--slide {
	min-height: 100%;
	padding: 32px 48px;
	box-sizing: border-box;
}

.mc-promo--slide .mc-promo__body {
	padding: 20px 28px 24px;
	background-color: rgba(255, 255, 255, 0.76);
	color: var(--mc-ink);
}

.mc-promo--slide .mc-promo__title {
	font-family: var(--mc-font-display);
	font-size: var(--mc-fs-h1);
	font-weight: 400;
	line-height: 1.05;
	color: var(--mc-ink);
}

/* ---- Full-bleed promo row: white text straight on a darkened photo ----- */
.full-bleed .mc-promo {
	justify-content: flex-start;
}

.full-bleed .mc-promo__media::after {
	content: "";
	position: absolute;
	inset: 0;
	/* 0.55 minimum keeps white text at 4.5:1 even over a pure white photo. */
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.55) 100%);
}

.full-bleed .mc-promo__body {
	padding: 32px 40px;
	background: transparent;
	color: var(--mc-white);
}

.full-bleed .mc-promo .mc-promo__title {
	font-size: var(--mc-fs-h2);
	color: var(--mc-white);
}

.full-bleed .mc-promo__content ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Colors, border, padding: .mc-btn (site-style.css). */
.mc-promo .mc-promo__cta {
	margin-top: 12px;
}

/* FacetWP listing grid (wrap the Display Code loop in .mc-promo-grid). */
.mc-promo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mc-gap);
}

@media (max-width: 1024px) {
	.mc-promo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mc-promo.mc-promo--slide {
		padding: 16px;
	}

	.mc-promo--slide .mc-promo__body,
	.full-bleed .mc-promo__body {
		padding: 20px;
	}

	.mc-promo-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Related Promos listing (FacetWP template "related_promos") --------
   The homepage hero slide's look as a grid card: photo, inset white panel,
   display-font title. Columns size themselves to the container, so the
   grid fits whatever Elementor column it's dropped into. Last in the file
   so it wins over the .mc-promo-grid breakpoints above. */
.mc-promo-grid.mc-promo-grid--related {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.mc-promo.mc-promo--related {
	min-height: 420px;
	padding: 24px;
	box-sizing: border-box;
	align-items: flex-start;
}

.elementor-shortcode .mc-promo.mc-promo--related {
	min-height: 280px;
	padding: 20px 15px;
}

.mc-promo--related .mc-promo__body {
	padding: 20px 24px 24px;
	background-color: rgba(255, 255, 255, 0.76);
	color: var(--mc-ink);
}

.elementor-shortcode .mc-promo--related .mc-promo__body {
	padding: 15px 20px 20px;
}

.mc-promo--related .mc-promo__title {
	font-family: var(--mc-font-display);
	font-size: 2rem; /* the slide's 40px, scaled for a grid card */
	font-weight: 400;
	line-height: 1.05;
	color: var(--mc-ink);
}

@media (max-width: 640px) {
	.mc-promo.mc-promo--related {
		min-height: 360px;
		padding: 16px;
	}

	.mc-promo--related .mc-promo__body {
		padding: 20px;
	}
}
