/* monday Read More slide-in (slides in from the right on every screen size) */
.mrm {
	position: fixed;
	z-index: 9999;
	right: 0;
	bottom: 90px;
	width: 470px;
	max-width: calc(100% - 16px);
	padding: 24px 12px 20px;
	background: #fff;
	box-shadow: 0 0 5px rgba(0, 0, 0, .2);
	font-family: inherit;
	box-sizing: border-box;
	transform: translateX(110%);
	transition: transform .4s ease;
}

.mrm--open {
	transform: translateX(0);
}

.mrm *,
.mrm *::before,
.mrm *::after {
	box-sizing: border-box;
}

.mrm__close {
	position: absolute;
	top: 4px;
	right: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: #c3c6d4;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mrm__close:hover {
	color: #676879;
}

.mrm__title {
	margin: 0 24px 16px;
	color: #000;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}

.mrm__cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.mrm__card {
	display: flex;
	flex-direction: column;
	color: #323338;
	text-decoration: none;
}

.mrm__card:hover .mrm__post-title {
	text-decoration: underline;
}

/* Fixed-ratio media box: keeps cards aligned; shows a pale placeholder when there's no image */
.mrm__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 206 / 131;
	margin-bottom: 18px;
	overflow: hidden;
	border-radius: 4px;
	background: #f0f1fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5c7e8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.5'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E") center / 40px no-repeat;
}

.mrm__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mrm__category {
	margin: 0 14px 10px;
	color: #6161ff;
	font-size: 14px;
	line-height: 1.3;
}

.mrm__post-title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 14px 14px;
	color: #000;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.45;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.mrm__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 14px;
	color: #323338;
	font-size: 14px;
	line-height: 1.5;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

/* Tablet */
@media (max-width: 991px) {
	.mrm {
		width: 420px;
		bottom: 70px;
	}

	.mrm__post-title {
		font-size: 16px;
	}
}

/* Mobile: almost full width, docked to the bottom */
@media (max-width: 600px) {
	.mrm {
		right: 8px;
		bottom: 0;
		padding: 18px 10px 16px;
	}

	.mrm:not(.mrm--open) {
		transform: translateX(calc(100% + 16px));
	}

	.mrm__title {
		margin-bottom: 14px;
		font-size: 17px;
	}

	.mrm__cards {
		gap: 14px;
	}

	.mrm__media {
		margin-bottom: 14px;
		background-size: 32px;
	}

	.mrm__category {
		margin: 0 10px 8px;
		font-size: 12px;
	}

	.mrm__post-title {
		margin: 0 10px 10px;
		font-size: 15px;
		line-height: 1.35;
	}

	.mrm__excerpt {
		margin: 0 10px;
		font-size: 12px;
		-webkit-line-clamp: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mrm {
		transition: none;
	}
}
