/* ============================================================
   STL Research Grid
   All selectors are scoped under .stl-block--research-grid so this
   sheet can never leak styles onto the rest of the page.
   ============================================================ */

.stl-block--research-grid {
	background: var(--stl-white);
}

/* Safety-net screen-reader-only class, in case the active theme doesn't
 * already define one (most WP themes do, but this block shouldn't depend
 * on it). */
.stl-block--research-grid .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* Single source of truth for the content width shared by the filter bar,
 * the "Filtered by" chips, and the results below — previously each had
 * its own copy of max-width/padding and they'd drifted out of sync.
 * !important: this theme/site has a history (see hero-banner.css,
 * stl-tokens.css comments) of generic theme/page-builder CSS forcing
 * width:100% at higher effective priority than a plain class rule with
 * equal specificity, so this needs to win outright rather than relying
 * on source order.
 *
 * Note this constrains the WRAP (.filterbar-wrap), not the <form> itself —
 * the navy background belongs on the wrap, sized to exactly the same
 * width as the grid below, rather than the form being an inset island
 * inside a full-bleed navy strip. */
.stl-block--research-grid__filterbar-wrap,
.stl-block--research-grid__chips,
.stl-block--research-grid__inner {
	/* No max-width cap: a fixed cap (var(--stl-container), 1280px) only
	 * lines up with the page's own heading/hero by coincidence at
	 * whatever viewport width happens to equal cap+margins — at wider
	 * viewports the cap centres a narrower box while a plain heading
	 * elsewhere keeps flowing to the real container edge, so the two
	 * drift apart (block reads as narrower and shifted right). Filling
	 * 100% of the actual parent, gutter for inset, tracks the heading
	 * at every width instead of just one. */
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: var(--stl-gutter) !important;
	padding-right: var(--stl-gutter) !important;
}

/* ------------------------------------------------------------
   FILTER BAR
   ------------------------------------------------------------ */
.stl-block--research-grid__filterbar-wrap {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--stl-navy);
	padding-top: var(--stl-space-4);
	padding-bottom: var(--stl-space-4);
}

.stl-block--research-grid__filterbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stl-space-3);
}

.stl-block--research-grid__field {
	flex: 0 1 auto;
}

.stl-block--research-grid__select {
	appearance: none;
	-webkit-appearance: none;
	background: var(--stl-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A314D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 12px;
	color: var(--stl-navy);
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 10px 32px 10px 16px;
	cursor: pointer;
	transition: box-shadow var(--stl-dur-fast) var(--stl-ease);
}
.stl-block--research-grid__select:hover,
.stl-block--research-grid__select:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--stl-orange);
}

.stl-block--research-grid__search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 240px;
	min-width: 200px;
	background: var(--stl-white);
	border-radius: 999px;
	padding: 0 6px 0 40px;
	transition: box-shadow var(--stl-dur-fast) var(--stl-ease);
}
.stl-block--research-grid__search:focus-within {
	box-shadow: 0 0 0 2px var(--stl-orange);
}
.stl-block--research-grid__search-icon {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px; height: 22px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--stl-red);
	color: var(--stl-white);
}
.stl-block--research-grid__search-input {
	flex: 1;
	border: 0;
	background: none;
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	color: var(--stl-navy);
	padding: 10px 0;
	min-width: 0;
}
.stl-block--research-grid__search-input:focus {
	outline: none;
}
.stl-block--research-grid__search-input::placeholder {
	color: var(--stl-grey-400);
}
.stl-block--research-grid__search-submit {
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--stl-navy);
	cursor: pointer;
	transition: background var(--stl-dur-fast) var(--stl-ease);
}
.stl-block--research-grid__search-submit:hover,
.stl-block--research-grid__search-submit:focus-visible {
	background: var(--stl-grey-100);
	outline: none;
}

.stl-block--research-grid__chips {
	padding-top: var(--stl-space-3);
	padding-bottom: var(--stl-space-3);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stl-space-2);
}
.stl-block--research-grid__chips-label {
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	color: var(--stl-grey-500);
	margin-right: var(--stl-space-1);
}
.stl-block--research-grid__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--stl-off-white);
	color: var(--stl-navy);
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	font-weight: 500;
	text-decoration: none !important;
	border-radius: 999px;
	padding: 6px 10px 6px 14px;
	transition: background var(--stl-dur-fast) var(--stl-ease);
}
.stl-block--research-grid__chip:hover {
	background: var(--stl-grey-100);
}
.stl-block--research-grid__chip span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--stl-red);
	color: var(--stl-white);
	font-size: 11px;
	line-height: 1;
}

/* ------------------------------------------------------------
   RESULTS WRAPPER
   ------------------------------------------------------------ */
.stl-block--research-grid__meta-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--stl-space-2);
	padding: var(--stl-space-5) 0 var(--stl-space-3);
	margin-bottom: var(--stl-space-6);
	border-bottom: 1px solid var(--stl-hairline);
}
.stl-block--research-grid__count,
.stl-block--research-grid__sort {
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	color: var(--stl-grey-500);
	margin: 0;
}

/* ------------------------------------------------------------
   PLACEHOLDER MEDIA (no featured image set)
   ------------------------------------------------------------ */
.stl-block--research-grid__media--ph-navy,
.stl-block--research-grid__media--ph-warm {
	background-size: cover;
}
.stl-block--research-grid__media--ph-navy {
	background-image:
		repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
		linear-gradient(135deg, var(--stl-navy) 0%, var(--stl-burgundy-deep) 100%);
}
.stl-block--research-grid__media--ph-warm {
	background-image:
		repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 14px),
		linear-gradient(135deg, var(--stl-red) 0%, var(--stl-orange) 100%);
}

/* Stream label pill, bottom-left over any media (featured or grid card) */
.stl-block--research-grid__badge {
	position: absolute;
	left: var(--stl-space-3);
	bottom: var(--stl-space-3);
	background: rgba(42, 49, 77, 0.75);
	color: var(--stl-white);
	font-family: var(--stl-font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: var(--stl-tracking-caps);
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 6px;
}

/* ------------------------------------------------------------
   FEATURED CARDS — side by side, not stacked
   ------------------------------------------------------------ */
.stl-block--research-grid__featured-list {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	/* !important here and on .featured/.featured-body/.featured-meta below
	 * for the same reason as the grid cards above: this theme's own CSS
	 * resets anchor-tag display behaviour elsewhere on the site, and
	 * .featured is itself an <a> — without !important, margin-top:auto on
	 * .featured-meta silently does nothing. */
	align-items: stretch !important;
	gap: var(--stl-space-6);
	margin-bottom: var(--stl-space-7);
}
/* A single featured card (featured_count = 1, or an odd count's last one)
 * spans the full row instead of leaving an empty column beside it. */
.stl-block--research-grid__featured-list > .stl-block--research-grid__featured:only-child {
	grid-column: 1 / -1;
}

.stl-block--research-grid__featured {
	/* Reinforces .featured-list's align-items:stretch above — see the
	 * .stl-block--research-grid__card height:100% comment for why this
	 * needs to be explicit. */
	height: 100% !important;
	display: grid !important;
	grid-template-columns: 42% 1fr;
	align-items: stretch !important;
	background: var(--stl-navy);
	text-decoration: none !important;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--stl-shadow-md);
	transition: transform var(--stl-dur-base) var(--stl-ease),
	            box-shadow var(--stl-dur-base) var(--stl-ease);
}
.stl-block--research-grid__featured:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(30,8,18,0.35);
}
.stl-block--research-grid__featured-media {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 220px;
}
.stl-block--research-grid__featured-body {
	/* Top-anchored, not centred: now that the description is full length
	 * (see render.php) rather than clamped, two side-by-side featured
	 * cards can have very different content heights. Anchoring the
	 * eyebrow/title to the top and the CTA/topic tag to the bottom
	 * (.featured-meta below has margin-top:auto) keeps both aligned with
	 * the card next to it regardless of how long either description is —
	 * centring would leave a shorter card's content floating at a
	 * different height than a taller neighbour's. */
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	padding: var(--stl-space-6);
}
.stl-block--research-grid__featured-eyebrow {
	font-family: var(--stl-font-heading);
	font-size: var(--stl-fs-12);
	font-weight: 700;
	letter-spacing: var(--stl-tracking-caps);
	text-transform: uppercase;
	color: var(--stl-orange);
	margin: 0 0 var(--stl-space-3);
}
.stl-block--research-grid__featured-title {
	font-family: var(--stl-font-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: var(--stl-lh-tight);
	color: var(--stl-white);
	margin: 0 0 var(--stl-space-4);
}
.stl-block--research-grid__featured-desc {
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-16);
	font-weight: 400;
	line-height: var(--stl-lh-normal);
	color: var(--stl-white);
	margin: 0 0 var(--stl-space-5);
}
/* No divider line here by design, same as the grid cards — the "Read
 * more" CTA takes the place a hairline used to occupy. The CTA and the
 * topic tag/date stack with a deliberately generous gap between them. */
.stl-block--research-grid__featured-meta {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--stl-space-4);
	/* Pins the CTA/topic tag to the bottom of the (grid-stretched, so
	 * equal-height) featured card, regardless of how tall the
	 * description above it is — see .featured-body comment. */
	margin-top: auto !important;
}
.stl-block--research-grid__featured .stl-link-arrow {
	color: var(--stl-white) !important;
	border-bottom-color: var(--stl-white) !important;
}
.stl-block--research-grid__featured:hover .stl-link-arrow {
	color: var(--stl-orange) !important;
	border-bottom-color: var(--stl-orange) !important;
}

/* Shared meta-row text (used by both featured + grid cards) */
.stl-block--research-grid__meta-info {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.stl-block--research-grid__meta-label {
	font-family: var(--stl-font-heading);
	font-size: var(--stl-fs-12);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--stl-orange);
}
.stl-block--research-grid__meta-sep {
	color: var(--stl-grey-400);
}
.stl-block--research-grid__meta-date {
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	color: var(--stl-grey-400);
}
.stl-block--research-grid__featured .stl-block--research-grid__meta-date {
	color: var(--stl-grey-300);
}

/* ------------------------------------------------------------
   CARD GRID
   ------------------------------------------------------------ */
/* A plain fixed 3-column grid. render.php now trims grid_posts to a
 * multiple of 3, so there's never a trailing partial row to worry about —
 * no need for auto-fit/flexbox stretching tricks, which made a short
 * trailing row's cards visibly larger than the ones above it. */
.stl-block--research-grid__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	/* !important throughout this block and the .card/.card-body/.card-meta
	 * rules below: this theme's own CSS resets display/flex behaviour on
	 * anchor tags elsewhere on the site (the same reason the filter bar's
	 * width needed !important above), and .card is itself an <a> — without
	 * !important here, margin-top:auto on .card-meta silently does nothing
	 * because .card-body never actually became a flex container in the
	 * browser, even though this rule says it should. */
	align-items: stretch !important;
	gap: var(--stl-space-6);
	margin-bottom: var(--stl-space-7);
}
@media (max-width: 960px) {
	.stl-block--research-grid__grid { grid-template-columns: repeat(2, 1fr); }
	/* Two half-width featured cards get cramped before the main grid does —
	 * stack them a breakpoint earlier. */
	.stl-block--research-grid__featured-list { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
	.stl-block--research-grid__grid { grid-template-columns: 1fr; }
	.stl-block--research-grid__featured { grid-template-columns: 1fr; }
	.stl-block--research-grid__featured-media { min-height: 220px; }
}

.stl-block--research-grid__card {
	/* Reinforces .grid's align-items:stretch above — height:100% of the
	 * grid area assigned to this item, so its footer anchors to a shared
	 * row height rather than to wherever its own content happens to end. */
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	background: var(--stl-white);
	border: 1px solid var(--stl-hairline);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none !important;
	transition: transform var(--stl-dur-base) var(--stl-ease),
	            box-shadow var(--stl-dur-base) var(--stl-ease);
}
.stl-block--research-grid__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(30,8,18,0.35);
}
.stl-block--research-grid__card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
}
.stl-block--research-grid__card-body {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 !important;
	padding: var(--stl-space-5);
}
/* Title, description, and meta (topic tag + CTA) all share the card
 * body's own padding as their only horizontal offset, so their left
 * edges line up with each other exactly. */
.stl-block--research-grid__card-title {
	font-family: var(--stl-font-heading);
	font-size: var(--stl-fs-20);
	font-weight: 700;
	line-height: var(--stl-lh-snug);
	color: var(--stl-navy);
	margin-top: 0;
	margin-bottom: var(--stl-space-3);
	/* Reserve a fixed (not just minimum) 2-line height so a 1-line title
	 * and a 2-line title (in neighbouring cards of the same grid row)
	 * still leave everything below — description, CTA, topic tag —
	 * starting at the same height. `height`, not `min-height`: the
	 * legacy -webkit-box display mode used for line-clamping doesn't
	 * reliably honour min-height in every browser, but does honour a
	 * plain height. */
	height: calc( var(--stl-fs-20) * var(--stl-lh-snug) * 2 );
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Full length, not clamped — alignment across a row doesn't depend on
 * every description being the same length: .card-body is flex:1 (grows
 * to the row's height, since grid items stretch by default) and
 * .card-meta below has margin-top:auto, so the CTA/topic tag always sits
 * flush with the bottom of the card regardless of how long the
 * description above it is. */
.stl-block--research-grid__card-desc {
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	font-weight: 400;
	line-height: var(--stl-lh-normal);
	color: var(--stl-navy);
	margin-top: 0;
	margin-bottom: 0;
}
/* No divider line here by design — the "Read more" CTA takes the place a
 * hairline used to occupy. It stacks above the topic tag/date, with a
 * deliberately generous gap between the two (matches the featured card). */
.stl-block--research-grid__card-meta {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--stl-space-4);
	margin-top: auto !important;
	padding-top: var(--stl-space-4);
}
.stl-block--research-grid__card-desc + .stl-block--research-grid__card-meta {
	margin-top: var(--stl-space-4);
}
/* The shared .stl-link-arrow component (from stl-tokens.css) is sized for
 * larger contexts elsewhere in the plugin — shrink it to fit this card
 * footer, matching the same override pattern used in stl-blocks.css for
 * the case-studies cards. */
.stl-block--research-grid .stl-link-arrow {
	font-size: 11px;
	flex-shrink: 0;
}

/* ------------------------------------------------------------
   PAGINATION
   ------------------------------------------------------------ */
.stl-block--research-grid__pagination {
	display: flex;
	justify-content: center;
	padding-bottom: var(--stl-space-4);
}
.stl-block--research-grid__pagination ul.page-numbers {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.stl-block--research-grid__pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	border-radius: 6px;
	font-family: var(--stl-font-body);
	font-size: var(--stl-fs-14);
	font-weight: 500;
	color: var(--stl-navy);
	text-decoration: none !important;
	transition: background var(--stl-dur-fast) var(--stl-ease);
}
.stl-block--research-grid__pagination a.page-numbers:hover {
	background: var(--stl-grey-100);
}
.stl-block--research-grid__pagination .page-numbers.current {
	background: var(--stl-orange);
	color: var(--stl-white);
	font-weight: 700;
}
.stl-block--research-grid__pagination .page-numbers.dots {
	color: var(--stl-grey-400);
}

/* ------------------------------------------------------------
   FIXED CARD SIZE
   Every card (the featured ones and the grid ones) has the same fixed
   height in px, whatever its content: images are a fixed height rather
   than a width-driven aspect ratio, and titles/descriptions are clamped
   to a set number of lines, so a long description can't make a card
   taller and a short one can't make it shorter. Because the heights are
   px (not vh/vw or content-driven), they don't change as the page is
   zoomed in or out; only the available width reflows the columns.
   !important as elsewhere in this sheet (the theme resets anchor display
   behaviour and the live CSS combiner can reorder equal-specificity rules).
   ------------------------------------------------------------ */
.stl-block--research-grid {
	--rg-card-h: 540px;
}
.stl-block--research-grid__card,
.stl-block--research-grid__featured {
	height: var(--rg-card-h) !important;
	min-height: var(--rg-card-h) !important;
	max-height: var(--rg-card-h) !important;
}
.stl-block--research-grid__card-media {
	aspect-ratio: auto;
	flex: 0 0 270px;
	height: 270px;
}
.stl-block--research-grid__card-body {
	min-height: 0;
	overflow: hidden;
}
.stl-block--research-grid__card-desc {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.stl-block--research-grid__featured-media {
	height: 100%;
	min-height: 0;
}
.stl-block--research-grid__featured-body {
	min-height: 0;
	overflow: hidden;
}
.stl-block--research-grid__featured-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.stl-block--research-grid__featured-desc {
	display: -webkit-box;
	-webkit-line-clamp: 8;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (max-width: 780px) {
	/* One-column featured card: fixed image height on top, text below. */
	.stl-block--research-grid__featured {
		grid-template-rows: 200px minmax(0, 1fr);
	}
	.stl-block--research-grid__featured-media {
		height: 200px;
		min-height: 200px;
	}
	.stl-block--research-grid__featured-desc { -webkit-line-clamp: 5; }
}

/* ------------------------------------------------------------
   FEATURED CARDS = SAME SIZE AS GRID CARDS
   The featured list uses the same 3-column grid and gap as the card
   grid below it, and each featured card uses the grid card's vertical
   layout (fixed-height image on top, text underneath) and text sizes,
   so a featured card is exactly one grid-card wide and tall. Declared
   after the earlier featured/fixed-height rules so it wins.
   ------------------------------------------------------------ */
.stl-block--research-grid__featured-list {
	grid-template-columns: repeat(3, 1fr) !important;
}
.stl-block--research-grid__featured-list > .stl-block--research-grid__featured:only-child {
	grid-column: auto;
}
.stl-block--research-grid__featured {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: none;
	grid-template-rows: none;
}
.stl-block--research-grid__featured-media {
	flex: 0 0 270px;
	height: 270px;
	min-height: 270px;
}
.stl-block--research-grid__featured-body {
	flex: 1 !important;
	height: auto !important;
	padding: var(--stl-space-5);
}
.stl-block--research-grid__featured-eyebrow {
	margin-bottom: var(--stl-space-2);
}
.stl-block--research-grid__featured-title {
	font-size: var(--stl-fs-20);
	line-height: var(--stl-lh-snug);
	margin-bottom: var(--stl-space-3);
	-webkit-line-clamp: 2;
}
.stl-block--research-grid__featured-desc {
	font-size: var(--stl-fs-14);
	margin-bottom: 0;
	-webkit-line-clamp: 3;
}
.stl-block--research-grid__featured-meta {
	padding-top: var(--stl-space-4);
}
@media (max-width: 960px) {
	.stl-block--research-grid__featured-list { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 780px) {
	.stl-block--research-grid__featured-list { grid-template-columns: 1fr !important; }
	.stl-block--research-grid__featured {
		grid-template-rows: none;
	}
	.stl-block--research-grid__featured-media {
		height: 270px;
		min-height: 270px;
	}
	.stl-block--research-grid__featured-desc { -webkit-line-clamp: 3; }
}

/* ------------------------------------------------------------
   NEVER CUT OFF TEXT + CENTRED FEATURED ROW
   Titles and descriptions now show in full (no line clamps / ellipsis).
   Cards keep a shared minimum height; a card whose text needs more room
   grows, and its row-mates stretch to match it (grid align-items:stretch),
   so cards in a row always stay equal. Declared last so it wins.
   ------------------------------------------------------------ */
.stl-block--research-grid__card,
.stl-block--research-grid__featured {
	height: auto !important;
	max-height: none !important;
	min-height: var(--rg-card-h) !important;
}
.stl-block--research-grid__card-body,
.stl-block--research-grid__featured-body {
	overflow: visible;
}
.stl-block--research-grid__card-title,
.stl-block--research-grid__featured-title {
	display: block;
	-webkit-line-clamp: unset;
	height: auto;
	min-height: calc( var(--stl-fs-20) * var(--stl-lh-snug) * 2 );
	overflow: visible;
}
.stl-block--research-grid__card-desc,
.stl-block--research-grid__featured-desc {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* Featured row: same card width as the grid, centred in the row. */
.stl-block--research-grid__featured-list {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch !important;
}
.stl-block--research-grid__featured-list > .stl-block--research-grid__featured {
	flex: 0 0 calc( (100% - 2 * var(--stl-space-6)) / 3 );
	max-width: calc( (100% - 2 * var(--stl-space-6)) / 3 );
	box-sizing: border-box;
}
@media (max-width: 960px) {
	.stl-block--research-grid__featured-list > .stl-block--research-grid__featured {
		flex-basis: calc( (100% - var(--stl-space-6)) / 2 );
		max-width: calc( (100% - var(--stl-space-6)) / 2 );
	}
}
@media (max-width: 780px) {
	.stl-block--research-grid__featured-list > .stl-block--research-grid__featured {
		flex-basis: 100%;
		max-width: 100%;
	}
}

/* Titles: roomy line-height + a little bottom padding so descenders
 * (g, y, p) are never clipped at the bottom of the last line. */
.stl-block--research-grid__card-title,
.stl-block--research-grid__featured-title {
	line-height: 1.35 !important;
	padding-bottom: 0.15em;
	overflow: visible !important;
	-webkit-line-clamp: unset !important;
	height: auto !important;
}

/* ============================================================
   FINAL LAYOUT (supersedes the experiments above)
   - Grid cards: one fixed height; the title is limited to 2 lines and the
     excerpt to 4, so every grid card is exactly the same size.
   - Featured cards: wide (two per row), image on top, text never cut off;
     the two featured cards match each other's height.
   Selectors are prefixed with the block class for higher specificity than
   the earlier same-sheet rules, which use !important.
   ============================================================ */
.stl-block--research-grid .stl-block--research-grid__card {
	height: var(--rg-card-h) !important;
	min-height: var(--rg-card-h) !important;
	max-height: var(--rg-card-h) !important;
}
.stl-block--research-grid .stl-block--research-grid__card-body {
	overflow: hidden;
}
.stl-block--research-grid .stl-block--research-grid__card-title {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2 !important;
	line-height: 1.35 !important;
	height: calc( var(--stl-fs-20) * 1.35 * 2 + 0.2em ) !important;
	min-height: 0 !important;
	padding-bottom: 0.2em;
	overflow: hidden !important;
}
.stl-block--research-grid .stl-block--research-grid__card-desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

/* Featured: two wide cards per row, image on top, nothing clipped */
.stl-block--research-grid .stl-block--research-grid__featured-list {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	justify-content: stretch;
}
.stl-block--research-grid .stl-block--research-grid__featured-list > .stl-block--research-grid__featured {
	flex: none;
	max-width: none;
	min-width: 0;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}
.stl-block--research-grid .stl-block--research-grid__featured-list > .stl-block--research-grid__featured:only-child {
	grid-column: 1 / -1;
}
.stl-block--research-grid .stl-block--research-grid__featured-media {
	flex: 0 0 320px;
	height: 320px;
	min-height: 320px;
}
.stl-block--research-grid .stl-block--research-grid__featured-body {
	padding: var(--stl-space-6);
	overflow: visible;
}
.stl-block--research-grid .stl-block--research-grid__featured-eyebrow {
	margin-bottom: var(--stl-space-3);
}
.stl-block--research-grid .stl-block--research-grid__featured-title {
	display: block !important;
	-webkit-line-clamp: unset !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
	font-size: 24px;
	line-height: 1.3 !important;
	padding-bottom: 0.15em;
	margin-bottom: var(--stl-space-4);
}
.stl-block--research-grid .stl-block--research-grid__featured-desc {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
	font-size: var(--stl-fs-16);
	margin-bottom: var(--stl-space-5);
}
@media (max-width: 780px) {
	.stl-block--research-grid .stl-block--research-grid__featured-list {
		grid-template-columns: 1fr !important;
	}
	.stl-block--research-grid .stl-block--research-grid__featured-media {
		flex-basis: 240px;
		height: 240px;
		min-height: 240px;
	}
}

/* ------------------------------------------------------------
   SIDE MARGINS + MAX CONTENT WIDTH
   Matches the /research/ page: a 1400px centred wrapper with 36px side
   padding (so cards sit in a 1328px column and the page has clear margins
   left and right). On narrower screens the margin is a flat 36px; on wider
   or zoomed-out screens the extra width becomes equal side margins, so
   cards never stretch wider than they do at 1400px and keep their
   proportions. The navy filter bar background still runs edge to edge.
   ------------------------------------------------------------ */
.stl-block--research-grid {
	--rg-max: 1400px;
	--rg-side: 36px;
}
.stl-block--research-grid .stl-block--research-grid__filterbar-wrap,
.stl-block--research-grid .stl-block--research-grid__chips,
.stl-block--research-grid .stl-block--research-grid__inner {
	padding-left: max( var(--rg-side), calc( (100% - var(--rg-max)) / 2 + var(--rg-side) ) ) !important;
	padding-right: max( var(--rg-side), calc( (100% - var(--rg-max)) / 2 + var(--rg-side) ) ) !important;
}
@media (max-width: 600px) {
	.stl-block--research-grid { --rg-side: 20px; }
}

/* ------------------------------------------------------------
   LIVE SEARCH SUGGESTIONS (dropdown under the search box)
   ------------------------------------------------------------ */
.stl-block--research-grid__search { overflow: visible; }
.stl-rg-live {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 40;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	background: var(--stl-white);
	border: 1px solid var(--stl-hairline);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(30, 8, 18, 0.22);
	padding: 8px 0 0;
	text-align: left;
}
.stl-rg-live[hidden] { display: none; }
.stl-rg-live__group {
	padding: 14px 20px 6px;
	font-family: var(--stl-font-heading);
	font-size: var(--stl-fs-12);
	font-weight: 700;
	letter-spacing: var(--stl-tracking-caps);
	text-transform: uppercase;
	color: var(--stl-grey-400);
}
.stl-block--research-grid .stl-rg-live__item {
	display: flex !important;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 20px;
	text-decoration: none !important;
	color: var(--stl-navy) !important;
	border: 0 !important;
}
.stl-block--research-grid .stl-rg-live__item:hover,
.stl-block--research-grid .stl-rg-live__item.is-active {
	background: var(--stl-navy-tint-2);
}
.stl-rg-live__ico { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--stl-red); }
.stl-rg-live__title {
	display: block;
	font-family: var(--stl-font-heading);
	font-size: var(--stl-fs-16);
	font-weight: 700;
	line-height: 1.3;
}
.stl-rg-live__title mark { background: var(--stl-orange-tint-5); color: inherit; padding: 0 2px; border-radius: 3px; }
.stl-rg-live__meta { display: block; margin-top: 3px; font-size: var(--stl-fs-14); color: var(--stl-grey-400); }
.stl-rg-live__status { padding: 14px 20px; font-size: var(--stl-fs-14); color: var(--stl-grey-400); }
.stl-block--research-grid .stl-rg-live__all {
	display: block;
	width: 100%;
	margin: 6px 0 0;
	padding: 14px 20px;
	border: 0;
	border-top: 1px solid var(--stl-hairline);
	border-radius: 0 0 14px 14px;
	background: var(--stl-navy-tint-2);
	font-family: var(--stl-font-heading);
	font-size: var(--stl-fs-12);
	font-weight: 700;
	letter-spacing: var(--stl-tracking-caps);
	text-transform: uppercase;
	color: var(--stl-navy);
	text-align: left;
	cursor: pointer;
}
.stl-block--research-grid .stl-rg-live__all:hover { background: var(--stl-navy-tint-3); }

/* 0.24.11: report images are real <img> elements (not inline background-image).
 * The host's PageSpeed module was rewriting some inline background URLs into
 * broken relative paths (e.g. "wp-content/..." under /latest-research/), so
 * those cards showed no image. <img> tags are rewritten correctly. */
.stl-block--research-grid .stl-block--research-grid__media-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center;
	display: block;
}
.stl-block--research-grid .stl-block--research-grid__badge {
	z-index: 1;
}
