/**
 * LNM API Homepage — minimal overrides; layout and cards use MagazineNP theme classes
 * (.featured-section, .post-item.post-block, .related-posts, .mnp-post-boxed, etc.).
 */

.lnm-homepage-api .lnm-homepage__error,
.lnm-homepage-api .lnm-homepage__empty {
	margin: 0.75rem 0;
	padding: 0.75rem;
	font-size: 0.9rem;
	color: #666;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 4px;
}

.lnm-homepage-api .lnm-homepage-hero-excerpt {
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #555;
}

/* Ensure the three banner columns stretch to equal height */
.lnm-homepage-api .featured-section > .container > .row {
	align-items: stretch;
}

/* Single-slide hero: keep visible if carousel script is delayed */
.lnm-homepage-api .lnm-homepage-hero-slides .item {
	display: block;
}

.lnm-homepage-template .site-main.lnm-homepage-site-main {
	padding-top: 0;
}

/* Event date badge on homepage cards (matches Events page / event-cards-pro corner badge) */
.lnm-homepage-api .lnm-homepage-event-img {
	position: relative;
}

.lnm-homepage-api .lnm-homepage-event-img .lnm-homepage-event-date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	border-radius: 8px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.1;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.lnm-homepage-api .lnm-homepage-event-img .lnm-event-month {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.95;
}

.lnm-homepage-api .lnm-homepage-event-img .lnm-event-day {
	display: block;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
}

/*
 * MagazineNP reserves height with .mnp-post-image-wrap:before { padding-top: 50% } for background-image
 * cards. Our blocks use real <img> tags, so that pseudo-element becomes an empty grey band — remove it.
 */
.lnm-homepage-api .mnp-post-image-wrap:before,
.lnm-homepage-api .featured-mnp-post-image:before,
.lnm-homepage-api .page-single-img-wrap:before {
	content: none !important;
	display: none !important;
	padding-top: 0 !important;
}

/* Thumbnails: MagazineNP often styles <img> inside .mnp-post-image; background-only links show as grey boxes */
.lnm-homepage-api a.lnm-homepage-card-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	background: #ececec;
	min-height: 180px;
}

.lnm-homepage-api a.lnm-homepage-card-thumb .lnm-homepage-card-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.lnm-homepage-api .featured-mnp-post-image.lnm-homepage-event-img {
	min-height: 200px;
}

.lnm-homepage-api .featured-mnp-post-image.lnm-homepage-event-img a.lnm-homepage-card-thumb {
	min-height: 200px;
}

.lnm-homepage-api .featured-mnp-post-image.lnm-homepage-event-img .lnm-homepage-card-img {
	height: 200px;
}

/* Side columns (Featured / Most Read): image fills card, text overlays bottom */
.lnm-homepage-api .featured-post .post-item.post-block {
	position: relative;
	overflow: hidden;
	min-height: 185px;
}

.lnm-homepage-api .featured-post .post-item.post-block .mnp-post-image-wrap {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.lnm-homepage-api .featured-post .post-item.post-block .lnm-homepage-card-thumb {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.lnm-homepage-api .featured-post .post-item.post-block .lnm-homepage-card-thumb .lnm-homepage-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 14px 12px;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 100%);
	z-index: 1;
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .entry-title a {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.5);
	font-size: 0.95rem;
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .entry-meta {
	color: rgba(255,255,255,.8);
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .entry-meta a {
	color: rgba(255,255,255,.8);
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .category-meta span {
	color: #fff;
}

/* Hero slider (News): image fills the card, text overlays bottom.
   The hero column sits in a Bootstrap .row alongside the two side columns,
   so it stretches to match their combined height automatically via flexbox. */
.lnm-homepage-api .featured-slider {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.lnm-homepage-api .featured-slider .owl-carousel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.lnm-homepage-api .featured-slider .owl-carousel > .item {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.lnm-homepage-api .featured-slider .post-item.post-block {
	position: relative;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 380px;
}

.lnm-homepage-api .featured-slider .post-item.post-block .mnp-post-image-wrap {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.lnm-homepage-api .featured-slider .post-item.post-block .lnm-homepage-card-thumb {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.lnm-homepage-api .featured-slider .post-item.post-block .lnm-homepage-card-thumb .lnm-homepage-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 60px 20px 16px;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 100%);
	color: #fff;
	z-index: 1;
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .entry-title a {
	color: #fff;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .entry-meta {
	color: rgba(255,255,255,.85);
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .entry-meta a {
	color: rgba(255,255,255,.85);
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .category-meta span {
	color: #fff;
}

.lnm-homepage-api .featured-slider .lnm-homepage-hero-excerpt {
	color: rgba(255,255,255,.9);
}

@media (max-width: 991px) {
	.lnm-homepage-api .featured-slider .post-item.post-block {
		min-height: 280px;
	}
}

/* Footer: cached homepage section cards (same data as [lnm_homepage_news]) */
.lnm-footer-cached-news .related-posts h2 {
	margin-top: 0;
}
.lnm-footer-cached-news .col-sm-6 {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}

/* Events / related row: do not stretch short cards to the tallest column (removes empty white). */
.lnm-homepage-api .lnm-homepage-related-band .row.gutter-parent-10,
.lnm-homepage-api .lnm-events-band-section .row.gutter-parent-10 {
	align-items: flex-start;
}

.lnm-homepage-api .lnm-homepage-related-band .post-col,
.lnm-homepage-api .lnm-events-band-section .post-col {
	display: flex;
	align-items: flex-start;
}

.lnm-homepage-api .lnm-homepage-related-band .post-col > .mnp-post-boxed,
.lnm-homepage-api .lnm-events-band-section .post-col > .mnp-post-boxed {
	width: 100%;
}

/* Image-less cards: only as tall as content (avoids huge empty bands in a row). */
.lnm-homepage-api .lnm-homepage-related-band .post-col > .mnp-post-boxed--no-thumb,
.lnm-homepage-api .lnm-events-band-section .post-col > .mnp-post-boxed--no-thumb {
	height: auto;
	align-self: flex-start;
}

/* ── No featured image: avoid empty grey min-height band (Events row + related bands) ── */
.lnm-homepage-api .mnp-post-boxed--no-thumb {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: auto;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__compact {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 0.9rem 0.95rem;
	min-height: 0;
	flex: 0 1 auto;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb.mnp-post-boxed--lnm-event .mnp-post-boxed__compact {
	padding-top: 0.95rem;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__text {
	flex: 1;
	min-width: 0;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__text .entry-title {
	margin: 0.2rem 0 0;
	font-size: 0.95rem;
	line-height: 1.35;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__text .category-meta {
	margin-bottom: 0.15rem;
}

.lnm-homepage-api .lnm-homepage-event-date-badge--compact {
	position: static;
	flex-shrink: 0;
	pointer-events: none;
	border-radius: 8px;
	padding: 7px 9px;
	text-align: center;
	line-height: 1.1;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lnm-homepage-api .lnm-homepage-event-date-badge--compact .lnm-event-month {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.95;
}

.lnm-homepage-api .lnm-homepage-event-date-badge--compact .lnm-event-day {
	display: block;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker .screen-reader-text,
.lnm-homepage-api .mnp-post-boxed--no-thumb .screen-reader-text {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

/* No image: side kicker (venue pin, TBD icon, etc.) */
.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 52px;
	min-height: 72px;
	padding: 0.5rem 0.35rem;
	border-radius: 10px;
	background: linear-gradient(160deg, #f4f4f2 0%, #e8e6e1 100%);
	border: 1px solid rgba(0, 0, 0, 0.06);
	color: #6b6560;
	text-align: center;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker--venue {
	width: 5.25rem;
	min-height: 4.5rem;
	padding: 0.5rem 0.4rem;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker--venue .mnp-post-boxed__kicker-icon--pin {
	color: #b45309;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker-label--venue {
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: none;
	max-width: 100%;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker--tbd {
	width: 48px;
	min-height: 48px;
	padding: 0.45rem;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #a8a29e;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker-icon svg {
	display: block;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__kicker-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.15;
	max-width: 4.5rem;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__excerpt {
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #6b6b69;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__hint {
	margin: 0.6rem 0 0;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__more {
	font-size: 0.78rem;
	font-weight: 700;
	color: #b91c1c;
	text-decoration: none;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__more:hover,
.lnm-homepage-api .mnp-post-boxed--no-thumb .mnp-post-boxed__more:focus {
	text-decoration: underline;
}

.lnm-homepage-api .mnp-post-boxed--no-thumb.mnp-post-boxed--sparse .mnp-post-boxed__compact {
	background: linear-gradient(180deg, #fff 0%, #fafaf8 100%);
}

/* Hero / Featured column: text-only card when API returns no image */
.lnm-homepage-api .featured-post .post-item.post-block.post-item--no-thumb,
.lnm-homepage-api .featured-slider .post-item.post-block.post-item--no-thumb {
	position: relative;
	overflow: visible;
	min-height: 0;
	background: #f7f7f6;
	border-radius: 4px;
}

.lnm-homepage-api .featured-post .post-item.post-block.post-item--no-thumb .entry-header,
.lnm-homepage-api .featured-slider .post-item.post-block.post-item--no-thumb .entry-header {
	position: relative;
	padding: 1rem 1rem 0.9rem;
	background: transparent;
}

.lnm-homepage-api .featured-post .post-item.post-block.post-item--no-thumb .entry-header .entry-title a,
.lnm-homepage-api .featured-slider .post-item.post-block.post-item--no-thumb .entry-header .entry-title a {
	color: #1a1a1a;
	text-shadow: none;
}

.lnm-homepage-api .featured-post .post-item.post-block.post-item--no-thumb .entry-header .entry-meta,
.lnm-homepage-api .featured-slider .post-item.post-block.post-item--no-thumb .entry-header .entry-meta {
	color: #666;
}

.lnm-homepage-api .featured-post .post-item.post-block.post-item--no-thumb .category-meta span,
.lnm-homepage-api .featured-slider .post-item.post-block.post-item--no-thumb .category-meta span {
	color: #888;
}

.lnm-homepage-api .featured-slider .post-item.post-block.post-item--no-thumb {
	min-height: 200px;
}
