/* =========================================================================
 * Raj Consultancy :: Blog
 *
 * The Latest News section's design, applied to the blog. Every number below is
 * that design's, on the shared 1200 column of a 1440 canvas:
 *
 *   heading    510x41   Anybody 700, 40/41, uppercase, centred, #000000
 *   subtitle   676x25   Google Sans 20/25, centred, #9F9F9F
 *   cards      792      386x483 each, two by two, 20 apart
 *   rail       387      a 24/25 heading over 387x109 items, 20 apart
 *   pager      485x45   45x45 controls, 10 apart, centred on the canvas
 *
 * Loaded on the blog archive AND on a single post - it carries the tokens, the
 * container, the date, the rail and the pager, which both pages use.
 * rc-blog-single.css adds only what the post page needs on top.
 *
 * Two multipliers step the type down at the breakpoints:
 *   --rc-hs  display type (the headings)
 *   --rc-bs  reading type (everything else)
 * Every font-size carries a max() floor, so nothing renders illegibly small on
 * a phone.
 *
 * The plugin gets these values from its admin screen; here they are the
 * design's defaults, written once at the top of the section. Change a number
 * here and it changes everywhere it is used.
 * ========================================================================= */

.rc-blog {
	/* ---------- Section ---------- */
	--rc-canvas: 1440px;
	--rc-content: 1200px;
	--rc-section-bg: #FFFFFF;
	--rc-pad-top: 60px;
	--rc-pad-bot: 60px;

	/* ---------- Headline ---------- */
	--rc-heading: #000000;
	--rc-heading-fs: 40px;
	--rc-heading-w: 510px;
	--rc-subtitle: #9F9F9F;
	--rc-subtitle-fs: 20px;
	--rc-subtitle-w: 676px;
	--rc-gap-subtitle: 10px;
	--rc-gap-body: 25px;

	/* ---------- The two columns ---------- */
	--rc-main-fr: 792fr;
	--rc-side-fr: 387fr;
	--rc-col-gap: 21px;

	/* ---------- A card ---------- */
	--rc-card-gap: 16px;
	--rc-card-bg: #FFFFFF;
	--rc-card-border: #E5E5E5;
	--rc-card-radius: 20px;
	/* A RATIO, not a height: the card is fluid below the design width. */
	--rc-card-ar: 384 / 244;
	--rc-card-pad-x: 19px;
	--rc-card-pad-top: 12px;
	--rc-card-pad-bot: 12px;
	--rc-card-body-min: 140px;

	/* ---------- Type in a card ---------- */
	--rc-date-fs: 16px;
	--rc-date: #9F9F9F;
	--rc-date-gap: 6px;
	--rc-card-title-fs: 14px;
	--rc-card-title: #333333;
	--rc-card-title-w: 332px;
	--rc-card-title-l: 4;
	--rc-gap-title: 8px;
	/*
	 * The excerpt. Not in the design - the plugin's items have no body text at
	 * all - so it is set as the quiet middle voice between the headline's #333
	 * and the date's #9F9F9F, at the same 14 as the headline and clamped to
	 * three lines so a long one cannot push the button off the card's line.
	 */
	--rc-card-excerpt-fs: 14px;
	--rc-card-excerpt: #666666;
	--rc-card-excerpt-l: 3;
	--rc-gap-excerpt: 10px;

	/* ---------- The button ---------- */
	--rc-btn-w: 157px;
	--rc-btn-h: 46px;
	--rc-btn-radius: 13px;
	--rc-btn-fs: 18px;
	--rc-btn-from: #2663EB;
	--rc-btn-to: #773DED;
	--rc-btn: #FFFFFF;

	/* ---------- The rail ---------- */
	--rc-side-title: #333333;
	--rc-side-title-fs: 24px;
	--rc-side-gap-list: 19px;
	--rc-side-item-gap: 20px;
	--rc-side-item-h: 109px;
	--rc-side-item-bg: #FFFFFF;
	--rc-side-item-bd: #E5E5E5;
	--rc-side-item-r: 20px;
	--rc-side-pad: 11px;
	--rc-side-pad-y: 10px;
	--rc-side-pad-r: 31px;
	--rc-side-pad-text-y: 12px;
	--rc-side-thumb-w: 104px;
	--rc-side-thumb-h: 89px;
	--rc-side-thumb-r: 15px;
	--rc-side-gap: 19px;
	--rc-side-text-fs: 14px;
	--rc-side-text: #333333;
	--rc-side-text-l: 3;

	/* ---------- The pager ---------- */
	--rc-pager-gap: 40px;
	--rc-pg-size: 45px;
	--rc-pg-gap: 10px;
	--rc-pg-radius: 8px;
	--rc-pg-num-radius: 14px;
	--rc-pg-bg: #FFFFFF;
	--rc-pg-bd: #F1F1F1;
	--rc-pg: #333333;
	--rc-pg-off: #9F9F9F;
	--rc-pg-fs: 16px;
	--rc-pg-on-from: #2663EB;
	--rc-pg-on-to: #773DED;
	--rc-pg-on: #FFFFFF;

	/* ---------- Scale ---------- */
	--rc-hs: 1;
	--rc-bs: 1;
	--rc-gutter: calc( ( var( --rc-canvas ) - var( --rc-content ) ) / 2 );

	/* The two faces, fetched by the theme - see rc_enqueue_blog_assets(). */
	--rc-face: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--rc-display: 'Anybody', var( --rc-face );

	width: 100%;
	padding: var( --rc-pad-top ) 0 var( --rc-pad-bot );
	background-color: var( --rc-section-bg );
	font-family: var( --rc-face );
	box-sizing: border-box;
}
.rc-blog * { box-sizing: border-box; }

.rc-container {
	max-width: var( --rc-canvas );
	margin: 0 auto;
	padding: 0 var( --rc-gutter );
}

/* Visually hidden but still read out - Neve ships this class, redefined here so
   the section does not depend on it. */
.rc-blog .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	clip-path: inset( 50% );
	white-space: nowrap;
	border: 0;
}

/* =========================================================================
 * Theme reset guards
 *
 * The section sits inside Neve's content column, so Neve's heading, paragraph
 * and link rules apply to this markup. Scoped to .rc-blog throughout, so none
 * of it leaks into the page around the section.
 * ========================================================================= */
.rc-blog h1,
.rc-blog h2,
.rc-blog h3,
.rc-blog p { margin: 0; padding: 0; }
.rc-blog h1,
.rc-blog h2,
.rc-blog h3 { font-family: inherit; letter-spacing: 0; }
.rc-blog img { max-width: 100%; }

/*
 * The face, said again on each element that carries text.
 *
 * Inheritance is the weakest thing in the cascade: any rule Neve has that names
 * an element - `p`, `span`, `a`, `.nv-single-post-wrap p` - beats it outright.
 * So every piece of type states its own face rather than trusting the section's.
 */
.rc-blog .rc-subtitle,
.rc-blog .rc-date,
.rc-blog .rc-card-title,
.rc-blog .rc-btn,
.rc-blog .rc-side-title-text,
.rc-blog .rc-empty,
.rc-blog .rc-pg { font-family: var( --rc-face ); }

/* =========================================================================
 * Headline
 * ========================================================================= */

.rc-head { text-align: center; }

/*
 * Scoped one component deeper than the class alone, and not for tidiness: the
 * reset above is (0,1,1) and this class on its own is (0,1,0), so the reset
 * would win and the margins here would never apply.
 *
 * !important on the face because two rules outrank this one - Neve's own
 * heading styles, and the `.rc-blog h1` reset above, which would force the
 * display face back to `inherit`.
 */
.rc-blog .rc-heading {
	font-family: var( --rc-display ) !important;
	max-width: var( --rc-heading-w );
	margin: 0 auto;
	font-weight: 700;
	line-height: 1.025;
	text-transform: uppercase;
	color: var( --rc-heading );
	font-size: max( 22px, calc( var( --rc-heading-fs ) * var( --rc-hs ) ) );
}

.rc-blog .rc-subtitle {
	max-width: var( --rc-subtitle-w );
	margin: var( --rc-gap-subtitle ) auto 0;
	font-weight: 400;
	line-height: 1.25;
	color: var( --rc-subtitle );
	font-size: max( 14px, calc( var( --rc-subtitle-fs ) * var( --rc-bs ) ) );
}

/* =========================================================================
 * Search Box
 * ========================================================================= */

.rc-search-container {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 30px;
	margin-bottom: var( --rc-gap-body );
	padding: 0 var( --rc-gutter );
}

.rc-search-box {
	position: relative;
	width: 100%;
	max-width: 439px;
	height: 45px;
}

.rc-search-input {
	position: absolute;
	width: 100%;
	height: 45px;
	left: 0;
	top: 0;
	padding: 0 20px 0 50px;
	background: #FFFFFF;
	border: 1px solid #E5E5E5;
	border-radius: 22.5px;
	font-family: var( --rc-face );
	font-style: italic;
	font-weight: 400;
	font-size: max( 14px, 16px );
	line-height: 20px;
	color: #333333;
	text-align: left;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-sizing: border-box;
}

.rc-search-input::placeholder {
	color: #C8C8C8;
	font-style: italic;
}

.rc-search-input:focus {
	outline: none;
	border-color: #2563EB;
	box-shadow: 0 2px 8px rgba( 38, 99, 235, 0.15 );
}

.rc-search-icon {
	position: absolute;
	width: 24px;
	height: 24px;
	left: 15px;
	top: 50%;
	transform: translateY( -50% );
	color: #CFCFCF;
	pointer-events: none;
	z-index: 2;
	flex-shrink: 0;
}

.rc-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 8px;
	background: #FFFFFF;
	border: 1px solid #E5E5E5;
	border-radius: 12px;
	max-height: 500px;
	overflow-y: auto;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.15 );
	z-index: 100;
	font-family: var( --rc-face );
}

.rc-search-results[hidden] {
	display: none;
}

.rc-search-no-results {
	padding: 40px 20px;
	text-align: center;
	color: #999999;
	font-family: var( --rc-face );
}

.rc-search-no-results-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	opacity: 0.5;
}

.rc-search-no-results-title {
	font-size: 18px;
	font-weight: 500;
	color: #333333;
	margin: 0 0 10px 0;
	font-family: var( --rc-face );
}

.rc-search-no-results-text {
	font-size: 14px;
	color: #999999;
	margin: 0;
	line-height: 1.5;
	font-family: var( --rc-face );
}

.rc-search-result {
	padding: 12px 16px;
	border-bottom: 1px solid #F0F0F0;
	cursor: pointer;
	transition: background-color 0.2s ease;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #333333;
	box-sizing: border-box;
}

.rc-search-result:hover {
	background-color: #F7F9FE;
}

.rc-search-result:last-child {
	border-bottom: none;
}

.rc-search-result-thumb {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #F0F0F0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rc-search-result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rc-search-result-content {
	flex: 1;
	min-width: 0;
}

.rc-search-result-title {
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	color: #333333;
	margin: 0;
	word-break: break-word;
	font-family: var( --rc-face );
}

.rc-search-result-date {
	font-size: 12px;
	color: #999999;
	margin: 4px 0 0 0;
	font-family: var( --rc-face );
}

.rc-search-suggestion {
	padding: 12px 16px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid #F0F0F0;
	color: #666666;
	font-size: 14px;
	font-family: var( --rc-face );
	box-sizing: border-box;
}

.rc-search-suggestion:hover {
	background-color: #F7F9FE;
	color: #2563EB;
}

.rc-search-suggestion:last-child {
	border-bottom: none;
}

.rc-search-result-none {
	padding: 16px 16px;
	text-align: center;
	color: #666666;
	font-size: 14px;
	font-family: var( --rc-face );
	background-color: #F7F9FE;
}

.rc-search-result-none p {
	margin: 0;
	line-height: 1.5;
}

.rc-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 350px, 1fr ) );
	gap: 24px;
	width: 100%;
}

/* Search results keep the archive's two-column grid. Only the empty message is centred. */
.rc-grid[data-search-results-container].is-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 500px;
	grid-template-columns: 1fr;
	gap: 0;
}

.rc-search-no-results-container {
	text-align: center;
	padding: 80px 40px;
	margin: 0 auto;
	max-width: 600px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.rc-search-no-results-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 30px;
	color: #E0E0E0;
	opacity: 0.8;
	display: block;
}

.rc-search-no-results-title {
	font-size: 28px;
	font-weight: 700;
	color: #333333;
	margin: 0 0 16px 0;
	font-family: var( --rc-face );
	letter-spacing: -0.5px;
}

.rc-search-no-results-text {
	font-size: 16px;
	color: #666666;
	margin: 0;
	line-height: 1.7;
	font-family: var( --rc-face );
	max-width: 450px;
}
}

/* Search No Results */
.rc-search-no-results-container {
	text-align: center;
	padding: 80px 20px;
	min-height: 500px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	grid-column: 1 / -1;
	width: 100%;
}

.rc-search-no-results-icon {
	width: 80px;
	height: 80px;
	margin-bottom: 24px;
	opacity: 0.4;
	color: #999999;
}

.rc-search-no-results-title {
	font-family: var( --rc-display );
	font-size: max( 20px, calc( var( --rc-heading-fs ) * var( --rc-hs ) * 0.8 ) );
	font-weight: 700;
	color: var( --rc-heading );
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.rc-search-no-results-text {
	font-family: var( --rc-face );
	font-size: max( 13px, calc( var( --rc-subtitle-fs ) * var( --rc-bs ) ) );
	color: var( --rc-subtitle );
	margin: 0;
	line-height: 1.5;
	max-width: 500px;
}

/* =========================================================================
 * Search Box - Responsive Design
 * ========================================================================= */

@media ( max-width: 1024px ) {
	.rc-search-box {
		max-width: 400px;
	}

	.rc-search-input {
		font-size: 15px;
		padding: 0 18px 0 45px;
	}

	.rc-search-icon {
		width: 20px;
		height: 20px;
		left: 13px;
	}

	.rc-search-results {
		max-height: 350px;
	}
}

@media ( max-width: 768px ) {
	.rc-search-container {
		margin-top: 20px;
		margin-bottom: var( --rc-gap-body );
	}

	.rc-search-box {
		max-width: 100%;
		height: 42px;
	}

	.rc-search-input {
		height: 42px;
		font-size: 14px;
		padding: 0 16px 0 42px;
		border-radius: 21px;
	}

	.rc-search-icon {
		width: 20px;
		height: 20px;
		left: 12px;
	}

	.rc-search-results {
		max-height: 300px;
		margin-top: 6px;
		border-radius: 10px;
	}

	.rc-search-result {
		padding: 10px 12px;
		gap: 10px;
	}

	.rc-search-result-thumb {
		width: 36px;
		height: 36px;
	}

	.rc-search-result-title {
		font-size: 13px;
	}

	.rc-search-result-date {
		font-size: 11px;
	}

	.rc-search-suggestion {
		padding: 10px 12px;
		font-size: 13px;
	}
}

@media ( max-width: 600px ) {
	.rc-search-container {
		margin-top: 18px;
		margin-bottom: var( --rc-gap-body );
	}

	.rc-search-box {
		max-width: 100%;
		height: 40px;
	}

	.rc-search-input {
		height: 40px;
		font-size: 13px;
		padding: 0 14px 0 38px;
		border-radius: 20px;
	}

	.rc-search-icon {
		width: 18px;
		height: 18px;
		left: 11px;
	}

	.rc-search-results {
		max-height: 280px;
		margin-top: 5px;
	}

	.rc-search-result {
		padding: 10px 12px;
		gap: 10px;
	}

	.rc-search-result-thumb {
		width: 32px;
		height: 32px;
		border-radius: 6px;
	}

	.rc-search-result-title {
		font-size: 12px;
		line-height: 1.3;
	}

	.rc-search-result-date {
		font-size: 10px;
		margin-top: 2px;
	}

	.rc-search-suggestion {
		padding: 10px 12px;
		font-size: 12px;
	}
}

@media ( max-width: 400px ) {
	.rc-search-container {
		margin-top: 16px;
		margin-bottom: var( --rc-gap-body );
		padding: 0 12px;
	}

	.rc-search-box {
		max-width: 100%;
		height: 38px;
	}

	.rc-search-input {
		height: 38px;
		font-size: 12px;
		padding: 0 12px 0 36px;
		border-radius: 19px;
	}

	.rc-search-icon {
		width: 16px;
		height: 16px;
		left: 10px;
	}

	.rc-search-results {
		max-height: 250px;
		margin-top: 4px;
	}

	.rc-search-result {
		padding: 8px 10px;
		gap: 8px;
	}

	.rc-search-result-thumb {
		width: 30px;
		height: 30px;
		border-radius: 5px;
	}

	.rc-search-result-title {
		font-size: 11px;
		line-height: 1.3;
	}

	.rc-search-result-date {
		font-size: 9px;
		margin-top: 1px;
	}

	.rc-search-suggestion {
		padding: 8px 10px;
		font-size: 11px;
	}

	.rc-search-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rc-search-card-media {
		aspect-ratio: 16 / 10;
	}

	.rc-search-card-body {
		padding: 12px;
	}

	.rc-search-card-date {
		font-size: 11px;
	}

	.rc-search-card-title {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.rc-search-card-btn {
		padding: 8px 16px;
		font-size: 12px;
	}
}

@media ( max-width: 600px ) {
	.rc-search-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rc-search-card-media {
		aspect-ratio: 16 / 10;
	}
}

@media ( max-width: 768px ) {
	.rc-search-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 16px;
	}

	.rc-search-card-media {
		aspect-ratio: 16 / 10;
	}

	.rc-search-card-body {
		padding: 14px;
	}

	.rc-search-card-date {
		font-size: 12px;
	}

	.rc-search-card-title {
		font-size: 13px;
	}

	.rc-search-card-btn {
		padding: 9px 18px;
		font-size: 13px;
	}
}

/* =========================================================================
 * The two columns
 *
 * 792 of cards, 21, then a 387 rail - which finishes exactly on the 1200
 * column. Given as fractions rather than widths so the proportion survives
 * every width narrower than the design's, and still resolves to exactly 792 and
 * 387 at 1200.
 *
 * align-items: stretch, so the rail is exactly as tall as the cards beside it -
 * the two columns start and finish on the same line.
 *
 * The row's height is the LEFT column's, and getting that takes more than it
 * looks. A rail of ten items is taller than two rows of cards, and an auto grid
 * row is sized to its items' MAX-content - so a rail that contributes its own
 * height wins the row, the cards stretch, and there is nothing left to scroll.
 * min-height: 0 does not help: it lifts the item's minimum floor, it does not
 * stop the item asking for its content height.
 *
 * So the rail's cell is left empty and its contents are taken out of flow inside
 * it (see .rc-side-inner). Out-of-flow content contributes no height, the row is
 * therefore sized by the cards alone, and the cell - stretched to that row - is
 * the box the rail's contents then fill and scroll inside.
 * ========================================================================= */
.rc-body {
	display: grid;
	grid-template-columns: var( --rc-main-fr ) var( --rc-side-fr );
	gap: var( --rc-col-gap );
	align-items: stretch;
	margin-top: var( --rc-gap-body );
}

/* Nothing in the rail - a site with one post - and the cards take the lot. */
.rc-body.is-wide { grid-template-columns: minmax( 0, 1fr ); }

.rc-main,
.rc-side { min-width: 0; }

/*
 * The cell. Empty of anything in flow, stretched by the grid to the height of
 * the cards beside it, and the positioning context its contents hang off.
 */
.rc-side { position: relative; }

/*
 * The rail proper: pinned to all four edges of that cell, so it is exactly as
 * tall as the cards and never a pixel more. The heading stays put at the top and
 * the list scrolls under it.
 *
 * min-height: 0 here IS load-bearing - inside this flex column it is what lets
 * the list shrink below its content height so the scroll engages at all.
 */
.rc-side-inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* =========================================================================
 * The cards
 * ========================================================================= */
.rc-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: var( --rc-card-gap );
}

.rc-blog .rc-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	border: 1px solid var( --rc-card-border );
	border-radius: var( --rc-card-radius );
	background: var( --rc-card-bg );
	/*
	 * What gives the picture its 19px top corners: it is a square-cornered box
	 * clipped by the card, and 20 less the card's own 1px edge is 19. Drawing
	 * the radius on the picture instead leaves a hairline of card showing
	 * through at each corner.
	 */
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/*
 * The whole card lifts, not just the button. The design has no hover state for
 * a card, so nothing was invented: it is the rail item's lift, reused, which
 * keeps the two lists behaving alike.
 */
.rc-blog .rc-card:hover {
	transform: translateY( -2px );
	border-color: var( --rc-btn-from );
	box-shadow: 0 10px 24px rgba( 17, 24, 39, .08 );
}

/*
 * The picture's box is drawn whether or not there is a picture in it - the tint
 * is what a post with no featured image shows instead. The box is kept either
 * way, because it is what holds the date, the headline and the button of one
 * card on the same line as the card beside it.
 */
.rc-blog .rc-card-media {
	flex: 0 0 auto;
	display: block;
	aspect-ratio: var( --rc-card-ar );
	overflow: hidden;
	background: #EEF1F6;
}
.rc-blog .rc-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.rc-blog .rc-card:hover .rc-card-media img { transform: scale( 1.03 ); }

/*
 * min-height is the card's 483 less its picture's 244, and it is a FLOOR: it
 * holds the button on the design's line in a row where every headline is short,
 * and a headline long enough to need more room still grows its card past it.
 */
.rc-card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: var( --rc-card-body-min ) !important;
	padding: var( --rc-card-pad-top ) var( --rc-card-pad-x ) var( --rc-card-pad-bot ) !important;
}

/* =========================================================================
 * A date - the same mark and the same type in a card, in the rail and on a post
 * ========================================================================= */
.rc-blog .rc-date {
	display: flex;
	align-items: center;
	gap: var( --rc-date-gap );
	font-weight: 400;
	line-height: 1.25;
	color: var( --rc-date );
	font-size: max( 12px, calc( var( --rc-date-fs ) * var( --rc-bs ) ) );
}
.rc-date-icon {
	display: block;
	flex: 0 0 auto;
}

/* =========================================================================
 * A card's headline
 *
 * Google Sans 500, 14/18, #333333, on its own 332 measure, clamped to four
 * lines. It is a link here where the design has plain text, so the link states
 * are pinned to the design's colour: Neve would otherwise recolour and
 * underline it.
 * ========================================================================= */
.rc-blog .rc-card-title {
	margin-top: var( --rc-gap-title ) !important;
	margin-bottom: 10px !important;
	max-width: var( --rc-card-title-w );
	font-weight: 500;
	line-height: 1.285;
	text-transform: capitalize;
	color: var( --rc-card-title );
	font-size: max( 12px, calc( var( --rc-card-title-fs ) * var( --rc-bs ) ) );

	display: -webkit-box;
	-webkit-line-clamp: var( --rc-card-title-l );
	line-clamp: var( --rc-card-title-l );
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rc-blog .rc-card-title a,
.rc-blog .rc-card-title a:link,
.rc-blog .rc-card-title a:visited,
.rc-blog .rc-card-title a:hover,
.rc-blog .rc-card-title a:focus,
.rc-blog .rc-card-title a:active {
	color: inherit;
	font: inherit;
	text-decoration: none;
	box-shadow: none;
}
.rc-blog .rc-card-title a:hover { color: var( --rc-btn-from ); }
.rc-blog .rc-card-title a:focus-visible {
	outline: 3px solid var( --rc-btn-from );
	outline-offset: 2px;
}

/* =========================================================================
 * A card's excerpt
 *
 * The gap above it is the TITLE's bottom margin rather than a top margin here,
 * so the two cases each get their own number: 16 under a headline with no
 * excerpt, 10 under one with. :has() is what picks between them - and where it
 * is not supported the title simply keeps its 16, which reads as slightly airier
 * rather than as broken.
 * ========================================================================= */
.rc-blog .rc-card-excerpt {
	margin-bottom: 16px;
	font-family: var( --rc-face );
	font-weight: 400;
	line-height: 1.5;
	color: var( --rc-card-excerpt );
	font-size: max( 12px, calc( var( --rc-card-excerpt-fs ) * var( --rc-bs ) ) );

	display: -webkit-box;
	-webkit-line-clamp: var( --rc-card-excerpt-l );
	line-clamp: var( --rc-card-excerpt-l );
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rc-blog .rc-card-title:has( + .rc-card-excerpt ) { margin-bottom: var( --rc-gap-excerpt ); }

/* =========================================================================
 * The Read More button
 *
 * 157x46 at 13px radius, filled left to right from #2663EB to #773DED, Google
 * Sans 600 18/23 in white.
 *
 * margin-top: auto is what pins it to the foot of the card - the design puts it
 * on the same line in both cards of a row whether the headline above it takes
 * two lines or four.
 *
 * Pinned across the interaction states, because it is an <a> and Neve's link
 * rules would otherwise recolour and underline it.
 * ========================================================================= */
.rc-blog .rc-btn,
.rc-blog .rc-btn:link,
.rc-blog .rc-btn:visited,
.rc-blog .rc-btn:hover,
.rc-blog .rc-btn:focus,
.rc-blog .rc-btn:active {
	align-self: flex-start;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var( --rc-btn-w );
	min-height: var( --rc-btn-h );
	padding: 0 16px;
	border: 0;
	border-radius: var( --rc-btn-radius );
	background-image: linear-gradient( 90deg, var( --rc-btn-from ) 0%, var( --rc-btn-to ) 100% );
	background-color: var( --rc-btn-from );
	box-shadow: none;
	color: var( --rc-btn );
	font-weight: 600;
	line-height: 1.28;
	text-decoration: none;
	font-size: max( 13px, calc( var( --rc-btn-fs ) * var( --rc-bs ) ) );
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
/*
 * There is no second colour in the design for a hovered button, so the fill is
 * not swapped for one invented here: it is lifted and lit slightly, which reads
 * as the same button responding.
 */
.rc-blog .rc-btn:hover {
	transform: translateY( -1px );
	filter: brightness( 1.06 );
	box-shadow: 0 8px 20px rgba( 60, 80, 230, .28 );
}
.rc-blog .rc-btn:focus-visible {
	outline: 3px solid var( --rc-btn-from );
	outline-offset: 3px;
}

/* =========================================================================
 * The rail
 * ========================================================================= */
.rc-blog .rc-side-heading {
	font-family: var( --rc-display ) !important;
	font-weight: 700;
	line-height: 1.045;
	text-transform: uppercase;
	color: var( --rc-side-title );
	font-size: max( 16px, calc( var( --rc-side-title-fs ) * var( --rc-hs ) ) );
}

.rc-side-list {
	display: flex;
	flex-direction: column;
	gap: var( --rc-side-item-gap );
	margin-top: var( --rc-side-gap-list );

	/* Takes the rest of the column and scrolls what will not fit. */
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	/*
	 * No overscroll-behavior: contain here, deliberately.
	 *
	 * Containing the scroll traps the wheel: a reader whose pointer happens to
	 * be over the rail hits its last item and the page stops dead under them.
	 * The default - chaining - is what is wanted: the rail scrolls to its end
	 * and then the page carries on, and a rail with nothing to scroll never
	 * takes the wheel in the first place.
	 */
	/*
	 * Room for the bar, and for the 2px an item lifts on hover - an item against
	 * the edge of a scroll box would otherwise have its lift clipped flat.
	 */
	padding: 2px 8px 2px 2px;

	scrollbar-width: thin;
	scrollbar-color: #D7DBE3 transparent;
}

/* The same bar for WebKit, which ignores the two standard properties above. */
.rc-side-list::-webkit-scrollbar { width: 6px; }
.rc-side-list::-webkit-scrollbar-track { background: transparent; }
.rc-side-list::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: #D7DBE3;
}
.rc-side-list:hover::-webkit-scrollbar-thumb { background: #BFC5D0; }

/*
 * The thumb 11 in and 10 down, the text 19 past it, and 31 of room at the right
 * - which is what gives the text its 222 measure.
 *
 * Pinned across the states for the same reason as the button: the whole item is
 * a link.
 */
.rc-blog .rc-side-item,
.rc-blog .rc-side-item:link,
.rc-blog .rc-side-item:visited,
.rc-blog .rc-side-item:hover,
.rc-blog .rc-side-item:focus,
.rc-blog .rc-side-item:active {
	display: flex;
	align-items: flex-start;
	gap: var( --rc-side-gap );
	min-height: var( --rc-side-item-h );
	padding: var( --rc-side-pad-y ) var( --rc-side-pad-r ) var( --rc-side-pad-y ) var( --rc-side-pad );
	border: 1px solid var( --rc-side-item-bd );
	border-radius: var( --rc-side-item-r );
	background: var( --rc-side-item-bg );
	box-shadow: none;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rc-blog a.rc-side-item:hover {
	transform: translateY( -2px );
	border-color: var( --rc-btn-from );
	box-shadow: 0 10px 24px rgba( 17, 24, 39, .08 );
}
.rc-blog a.rc-side-item:focus-visible {
	outline: 3px solid var( --rc-btn-from );
	outline-offset: 3px;
}

.rc-side-thumb {
	flex: 0 0 var( --rc-side-thumb-w );
	display: block;
	width: var( --rc-side-thumb-w );
	height: var( --rc-side-thumb-h );
	overflow: hidden;
	border-radius: var( --rc-side-thumb-r );
	background: #EEF1F6;
}
.rc-side-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The text column. The design starts the headline 12 down against the thumb's
 * 10, which is the 2 of padding here; the date then goes to the foot of the
 * column, which is what puts 10 of air between a three-line headline and it.
 */
.rc-side-text {
	flex: 1 1 auto;
	min-width: 0;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	padding: calc( var( --rc-side-pad-text-y ) - var( --rc-side-pad-y ) ) 0;
}

.rc-blog .rc-side-title-text {
	display: -webkit-box;
	-webkit-line-clamp: var( --rc-side-text-l );
	line-clamp: var( --rc-side-text-l );
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 400;
	line-height: 1.285;
	text-transform: capitalize;
	color: var( --rc-side-text );
	font-size: max( 12px, calc( var( --rc-side-text-fs ) * var( --rc-bs ) ) );
}

.rc-side-text .rc-date { margin-top: auto; }

/* Nothing published yet. */
.rc-blog .rc-empty {
	padding: 40px 0;
	text-align: center;
	color: var( --rc-subtitle );
	font-size: max( 14px, calc( var( --rc-subtitle-fs ) * var( --rc-bs ) ) );
}

/* =========================================================================
 * The pager
 *
 * 45x45 controls 10 apart, centred on the CANVAS rather than on the cards - so
 * it sits under the whole section, not under the left column.
 *
 * The arrows and the ellipsis take an 8px corner and the numbers a 14px one,
 * which is the design's own distinction and not a rounding error.
 *
 * These are links and spans rather than the plugin's buttons: the pages are
 * real URLs here. An end you are already at is a <span> - there is no disabled
 * state for a link, and an <a> with no href takes a tab stop and does nothing.
 * ========================================================================= */
.rc-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var( --rc-pg-gap );
	margin-top: var( --rc-pager-gap );
}

/* Every visual property is pinned across the states: Neve paints links and
   pagination hard, and a control has to look the same before, during and after
   being pressed. */
.rc-blog .rc-pg,
.rc-blog .rc-pg:link,
.rc-blog .rc-pg:visited,
.rc-blog .rc-pg:hover,
.rc-blog .rc-pg:focus,
.rc-blog .rc-pg:active {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var( --rc-pg-size );
	height: var( --rc-pg-size );
	padding: 0;
	border: 1px solid var( --rc-pg-bd );
	border-radius: var( --rc-pg-radius );
	background: var( --rc-pg-bg );
	background-image: none;
	box-shadow: none;
	outline: none;
	color: var( --rc-pg );
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	font-size: max( 12px, calc( var( --rc-pg-fs ) * var( --rc-bs ) ) );
	transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.rc-blog .rc-pg--num { border-radius: var( --rc-pg-num-radius ); }

.rc-blog a.rc-pg:hover {
	border-color: var( --rc-pg-on-from );
	color: var( --rc-pg-on-from );
	transform: translateY( -1px );
}

/* The page you are on. */
.rc-blog .rc-pg.is-on {
	border-color: transparent;
	border-radius: var( --rc-pg-num-radius );
	background-image: linear-gradient( 90deg, var( --rc-pg-on-from ) 0%, var( --rc-pg-on-to ) 100% );
	color: var( --rc-pg-on );
	cursor: default;
}

/*
 * An end you are already at. The box stays white with its edge, as the design
 * draws it - only the mark inside it goes quiet, which says "nothing that way"
 * without the control disappearing from the row.
 */
.rc-blog .rc-pg.is-off {
	color: var( --rc-pg-off );
	cursor: default;
}

/* The gap between two runs of numbers. Not a control - there is nowhere for it
   to go - so it carries no edge either. */
.rc-blog .rc-pg--gap {
	border-color: transparent;
	background: transparent;
	font-family: 'Open Sans', var( --rc-face );
	font-size: max( 11px, calc( 13px * var( --rc-bs ) ) );
	cursor: default;
}

.rc-blog a.rc-pg:focus-visible {
	outline: 3px solid var( --rc-pg-on-from );
	outline-offset: 3px;
}
.rc-pg-icon { display: block; }

/* =========================================================================
 * REVEAL
 *
 * The section arrives a piece at a time. Gated behind .rc-js on <html>, set
 * inline before the section so it lands before first paint: with JavaScript off
 * the class never appears, nothing is ever hidden, and the whole page is there.
 * ========================================================================= */
.rc-js .rc-rv { opacity: 0; }

.rc-js .rc-rv.rc-rv-in {
	animation: rc-rise .6s cubic-bezier( .22, .8, .26, 1 ) both;
	animation-delay: calc( var( --rc-rv-i, 0 ) * 70ms );
}
/*
 * The rail's own step. It is revealed all at once on page open (see
 * rc-blog.js), so its ten items are dealt out at 45ms rather than the cards'
 * 70 - the same cascade, over half a second instead of most of one.
 */
.rc-js .rc-side .rc-rv.rc-rv-in {
	animation-delay: calc( var( --rc-rv-i, 0 ) * 45ms );
}

@keyframes rc-rise {
	0% {
		opacity: 0;
		transform: translate3d( 0, 16px, 0 );
	}
	60% { opacity: 1; }
	100% {
		opacity: 1;
		transform: translate3d( 0, 0, 0 );
	}
}

/* Motion is decoration here - honour the OS setting. */
@media ( prefers-reduced-motion: reduce ) {
	.rc-js .rc-rv,
	.rc-js .rc-rv.rc-rv-in {
		opacity: 1;
		transform: none;
		animation: none !important;
	}
	.rc-blog .rc-btn,
	.rc-blog .rc-card,
	.rc-blog .rc-card-media img,
	.rc-blog .rc-side-item,
	.rc-blog .rc-pg { transition: none !important; }
}

/* =========================================================================
 * Breakpoints
 *
 * The gutter steps are the plugin section's, value for value and breakpoint for
 * breakpoint - matching only at the design width would leave the blog and the
 * home page's news section stepping in and out of line at every other size.
 *
 * .rc-blog.rc-blog, and the doubled class is load-bearing: a media query adds
 * nothing to specificity, so these rules have to outrank the token block at the
 * top of this file, which is written on a single .rc-blog.
 * ========================================================================= */

@media ( max-width: 1439px ) {
	.rc-blog.rc-blog { --rc-gutter: clamp( 40px, 6vw, 120px ); }
}

@media ( max-width: 1200px ) {
	.rc-blog.rc-blog {
		--rc-hs: .9;
		--rc-bs: .96;
		--rc-card-body-min: 210px;
		--rc-side-pad-r: 18px;
		--rc-side-gap: 14px;
	}
}

/* --- Tablet landscape --- */
@media ( max-width: 1024px ) {
	.rc-blog.rc-blog {
		--rc-hs: .85;
		--rc-bs: .94;
		--rc-pad-top: 48px;
		--rc-pad-bot: 48px;
		--rc-card-body-min: 190px;
		--rc-card-pad-x: 16px;
		--rc-btn-w: 138px;
		--rc-btn-h: 42px;
	}
}

/*
 * --- Tablet portrait: the rail drops under the cards ---
 *
 * Below this the rail is about 250 wide, which leaves a three-line headline
 * about four words a line. Under the grid it gets the whole column back, and it
 * reads as what it is: the same list again, in short.
 */
@media ( max-width: 900px ) {
	.rc-blog.rc-blog { --rc-hs: .8; --rc-bs: .95; }

	.rc-body { grid-template-columns: minmax( 0, 1fr ); }
	.rc-side { margin-top: 40px; }

	/*
	 * Back in flow. Under the grid there is no left column to match, so the rail
	 * is sized by its own contents again - and a box pinned to the edges of a
	 * cell with nothing in it would otherwise collapse to nothing here.
	 */
	.rc-side-inner {
		position: static;
		display: block;
	}

	/*
	 * Two across, so it does not become a single tall column - and the scroll
	 * comes off: under the grid there is no left column left to match, so the
	 * ten items simply draw, all of them, one after another.
	 */
	.rc-side-list {
		display: grid;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		overflow: visible;
		padding: 0;
	}
}

/* --- Large phone: one card at a time --- */
@media ( max-width: 620px ) {
	.rc-blog.rc-blog {
		--rc-hs: .72;
		--rc-bs: .92;
		--rc-gutter: 20px;
		--rc-pad-top: 40px;
		--rc-pad-bot: 40px;
		--rc-card-radius: 16px;
		/*
		 * Off. On one card at a time the floor is no longer holding anything in
		 * line, and all it would do is leave a hand's width of empty card over
		 * every short headline.
		 */
		--rc-card-body-min: 0px;
		--rc-pg-size: 40px;
		--rc-pg-gap: 8px;
	}

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

	/*
	 * The rail comes off on a phone.
	 *
	 * One column wide it is no longer "the same list in short" beside the cards
	 * - it is ten more boxes under them, repeating what the reader has just
	 * scrolled past. The cards are the page here.
	 */
	.rc-side { display: none; }
}

/* --- Small phone --- */
@media ( max-width: 400px ) {
	.rc-blog.rc-blog {
		--rc-hs: .66;
		--rc-bs: .9;
		--rc-gutter: 16px;
		--rc-pg-size: 36px;
		--rc-pg-gap: 6px;
	}
	.rc-blog .rc-btn { min-width: 0; width: 100%; }
}
