/**
 * Publicaties — widget styles.
 *
 * Every rule is scoped under .lct-publications, so this file cannot affect
 * any other section, page, or widget on the site.
 *
 * Values are measured from the P8-KENNISBANK reference at 1440:
 *   filter chips 44h, 14px gap, 8px radius, 20px side padding
 *   label pills  159x43, 8px radius, #d78135, white uppercase
 *   cards        410 wide, 0 radius, image 410x149 (2.75:1)
 *   card grid    34px column gap, 50px row gap
 *   badge        44h, 8px radius, pale fill, navy text
 *   title        26/35   excerpt 18/24 (3 lines)
 *   load more    286x42, 8px radius, LEFT aligned
 *
 * Colours reference Elementor's own global custom properties
 * (--e-global-color-*) with a literal fallback, so the existing palette is
 * inherited without writing anything to the kit.
 *
 * Breakpoints match the site's existing Elementor breakpoints exactly
 * (mobile 767, mobile_extra 880, tablet 1024, tablet_extra 1200,
 * laptop 1366). No new breakpoint is introduced.
 */

.lct-publications {
	--lct-pub-navy: var( --e-global-color-brand_navy, #03224e );
	--lct-pub-orange: var( --e-global-color-brand_orange, #d78135 );
	--lct-pub-pale: var( --e-global-color-brand_pale_blue, #eaf2fb );
	--lct-pub-grey: var( --e-global-color-brand_body_grey, #5a5a60 );
	--lct-pub-radius: 8px;
}

/* ------------------------------------------------------------------
 * Filter bar — label pill stacked ABOVE its row of chips
 * ------------------------------------------------------------------ */

.lct-publications .lct-pub-filters {
	display: flex;
	flex-direction: column;
	gap: 66px;
}

.lct-publications .lct-pub-filters__group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	min-width: 0;
}

.lct-publications .lct-pub-filters__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 159px;
	min-height: 43px;
	padding: 0 24px;
	border-radius: var( --lct-pub-radius );
	background-color: var( --lct-pub-orange );
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.lct-publications .lct-pub-filters__items {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	min-width: 0;
}

.lct-publications .lct-pub-filter {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var( --lct-pub-radius );
	background-color: var( --lct-pub-pale );
	color: var( --lct-pub-navy );
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.lct-publications .lct-pub-filter:hover,
.lct-publications .lct-pub-filter:focus-visible {
	background-color: var( --lct-pub-navy );
	color: #fff;
}

/*
 * Active state is deliberately carried by THREE cues, not just colour, so the
 * current selection reads instantly and still reads for a colour-blind user:
 * filled navy, white text, and a heavier weight.
 */
.lct-publications .lct-pub-filter.is-active {
	background-color: var( --lct-pub-navy );
	border-color: var( --lct-pub-navy );
	color: #fff;
	font-weight: 600;
}

.lct-publications .lct-pub-filter:focus-visible {
	outline: 2px solid var( --lct-pub-orange );
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * Listing
 * ------------------------------------------------------------------ */

.lct-publications .lct-pub-listing__title {
	margin: 0 0 54px;
	color: var( --lct-pub-navy );
}

.lct-publications .lct-pub-grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 50px 34px;
	align-items: stretch;
	transition: opacity .15s ease;
}

.lct-publications.is-loading .lct-pub-grid {
	opacity: .55;
}

/* ------------------------------------------------------------------
 * Card
 *
 * Flex column with the CTA pushed down by margin-top:auto, so cards in a
 * row stay aligned regardless of title or excerpt length.
 * ------------------------------------------------------------------ */

.lct-publications .lct-pub-card {
	display: flex;
	background-color: #fff;
	border-radius: 0;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.lct-publications .lct-pub-card:hover {
	box-shadow: 0 6px 22px rgba( 3, 34, 78, .12 );
	transform: translateY( -2px );
}

.lct-publications .lct-pub-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.lct-publications .lct-pub-card__media {
	position: relative;
	width: 100%;
	/* 410 x 149 in the reference */
	aspect-ratio: 410 / 149;
	overflow: hidden;
	background-color: var( --lct-pub-pale );
}

.lct-publications .lct-pub-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lct-publications .lct-pub-card__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #6f7076 0%, #5a5a60 100% );
}

.lct-publications .lct-pub-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 26px 20px 30px;
}

.lct-publications .lct-pub-card__chip {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 44px;
	margin: 0 0 28px;
	padding: 0 18px;
	border-radius: var( --lct-pub-radius );
	background-color: var( --lct-pub-pale );
	color: var( --lct-pub-navy );
	font-size: 15px;
	line-height: 1.2;
	font-family: "Open Sans", Sans-serif;
	font-weight: 600;
}

.lct-publications .lct-pub-card__title {
	margin: 0 0 16px;
	color: var( --lct-pub-navy );
	font-size: 26px;
	line-height: 35px;
	font-weight: 700;
	transition: color .2s ease;
}

.lct-publications .lct-pub-card__link:hover .lct-pub-card__title,
.lct-publications .lct-pub-card__link:focus-visible .lct-pub-card__title {
	color: var( --lct-pub-orange );
}

.lct-publications .lct-pub-card__excerpt {
	margin: 0 0 26px;
	color: var( --lct-pub-grey );
	font-size: 15px;
	line-height: 1.5;
font-family: "Open Sans", Sans-serif;
	/* Three-line clamp keeps every card the same height. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* CTA sits on its own row at the bottom-left, pushed down so cards align. */
.lct-publications .lct-pub-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	color: var( --lct-pub-navy );
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	font-family: "Open Sans", Sans-serif;
}

.lct-publications .lct-pub-card__arrow {
	display: inline-flex;
	align-items: center;
	color: var( --lct-pub-orange );
	transition: transform .2s ease;
}

.lct-publications .lct-pub-card__link:hover .lct-pub-card__arrow {
	transform: translateX( 4px );
}

/* ------------------------------------------------------------------
 * Empty / error state
 * ------------------------------------------------------------------ */

.lct-publications .lct-pub-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 34px 0;
	color: var( --lct-pub-grey );
	text-align: center;
}

/* ------------------------------------------------------------------
 * Load more — LEFT aligned in the reference, not centred
 * ------------------------------------------------------------------ */

.lct-publications .lct-pub-more {
	display: flex;
	justify-content: flex-start;
	margin-top: 51px;
}

.lct-publications .lct-pub-more[hidden] {
	display: none;
}

.lct-publications .lct-pub-loadmore {
	min-width: 286px;
	min-height: 42px;
	padding: 0 30px;
	border: 0;
	border-radius: var( --lct-pub-radius );
	background-color: var( --lct-pub-navy );
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease;
}

.lct-publications .lct-pub-loadmore:hover:not( [disabled] ) {
	background-color: var( --lct-pub-orange );
}

.lct-publications .lct-pub-loadmore[disabled] {
	opacity: .7;
	cursor: default;
}

.lct-publications .lct-pub-loadmore:focus-visible {
	outline: 2px solid var( --lct-pub-orange );
	outline-offset: 3px;
}

/* ------------------------------------------------------------------
 * Responsive — existing Elementor breakpoints only
 * ------------------------------------------------------------------ */

@media ( max-width: 1200px ) {
	.lct-publications .lct-pub-grid {
		gap: 40px 26px;
	}

	.lct-publications .lct-pub-card__title {
		font-size: 24px;
		line-height: 32px;
	}
}

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

	.lct-publications .lct-pub-filters {
		gap: 48px;
	}

	.lct-publications .lct-pub-filters__group {
		gap: 20px;
		width: 100%;
	}

	.lct-publications .lct-pub-listing__title {
		margin-bottom: 40px;
	}
}

@media ( max-width: 880px ) {
	.lct-publications .lct-pub-card__title {
		font-size: 22px;
		line-height: 30px;
		margin-bottom: 24px;
	}

	.lct-publications .lct-pub-card__chip {
		margin-bottom: 24px;
	}

	.lct-publications .lct-pub-card__excerpt {
		margin-bottom: 26px;
	}
}

@media ( max-width: 767px ) {
	.lct-publications .lct-pub-grid {
		grid-template-columns: minmax( 0, 1fr );
		gap: 26px;
	}

	.lct-publications .lct-pub-filters {
		gap: 34px;
	}

	.lct-publications .lct-pub-filter {
		font-size: 14px;
		min-height: 40px;
		padding: 0 16px;
	}

	.lct-publications .lct-pub-filters__label {
		min-width: 132px;
		min-height: 38px;
		font-size: 14px;
	}

	.lct-publications .lct-pub-card__body {
		padding: 22px 18px 28px;
	}

	.lct-publications .lct-pub-more {
		margin-top: 34px;
	}

	.lct-publications .lct-pub-loadmore {
		width: 100%;
		min-width: 0;
		min-height: 48px;
	}
}

/* Respect users who have asked for less motion. */
@media ( prefers-reduced-motion: reduce ) {
	.lct-publications .lct-pub-card,
	.lct-publications .lct-pub-card__arrow,
	.lct-publications .lct-pub-grid {
		transition: none;
	}

	.lct-publications .lct-pub-card:hover {
		transform: none;
	}
}
