/* ==========================================================================
   Viden, cases and article views.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Viden hub

   Reference: freshground.co.uk/learning-hub/ band 1 - a single image-backed
   section carrying the h1, the category chips AND the article cards together.
   Two bands for the whole page. A hub routes; it does not sell.
   -------------------------------------------------------------------------- */

.mx-viden-hub {
	background-color: var(--mx-dark-bg);
}

.mx-viden-hub .mx-banner__inner {
	padding-bottom: 1.875rem;
}

.mx-viden-hub__cards {
	padding-bottom: 4.375rem;
	position: relative;
	z-index: 2;
}

@media (min-width: 48rem) {
	.mx-viden-hub__cards {
		padding-bottom: 6.875rem;
	}
}

/* Chips are links, so they get a hover and a real target size. */
.mx-viden-hub__chips li {
	padding: 0;
}

.mx-viden-hub__chips a {
	border: 1px solid rgba(255, 255, 255, .5);
	color: #fff;
	display: block;
	font-size: var(--mx-text-xsmall);
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1;
	padding: .625rem .875rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color var(--mx-motion), color var(--mx-motion);
}

@media (hover: hover) {
	.mx-viden-hub__chips a:hover {
		background-color: #fff;
		color: var(--mx-text-title);
	}
}

.mx-viden-hub .mx-pagination .page-numbers {
	color: rgba(255, 255, 255, .8);
}

.mx-viden-hub .mx-pagination .page-numbers.current {
	color: #fff;
}

/* An article grid should not leave a lone card stretched across a row, so the
   cards keep equal height and the grid keeps its gap rhythm. */
.mx-grid--large-vertical-gap > .mx-blog-card {
	height: 100%;
}

/* Cards with no featured image still need a floor, or a text-only card
   collapses next to one that has a 17.5rem image. */
.mx-blog-card:not(:has(.mx-blog-card__media)) .mx-blog-card__body {
	min-height: 14rem;
}

/* Article meta line above the title. */
.mx-blog-card__meta {
	font-family: var(--mx-font-body);
	font-weight: 700;
}

/* Search results reuse the light card; pages have no thumbnail, so the body
   carries the whole card and wants a little more air. */
.mx-blog-card--light .mx-blog-card__body {
	padding: 1.875rem 1.25rem;
}

/* Single article: the prose column is 900px, but pull-quotes and images are
   allowed to breathe wider on desktop. */
@media (min-width: 68.75rem) {
	.mx-prose > figure.alignwide,
	.mx-prose > .alignwide {
		margin-left: -3.75rem;
		margin-right: -3.75rem;
		max-width: calc(100% + 7.5rem);
	}
}
