.mbb-title-link {
	text-decoration: none;
}

.mbb-media-link {
	display: contents;
}

.mbb-title-link:hover .mbb-featured__title__text,
.mbb-title-link:hover .mbb-row-card__title__text {
	color: var(--mbb-hot-pink);
}

.mbb-picture {
	display: contents;
}

.mbb-img-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--mbb-light-pink);
}

.mbb-avatar {
	flex: 0 0 auto;
	border: var(--mbb-stroke-fine) solid var(--mbb-black);
	border-radius: 50%;
	object-fit: cover;
	background: var(--mbb-text-grey);
}

.mbb-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 35px;
	font-size: 15px;
	line-height: 20px;
	color: var(--mbb-black);
}

.mbb-meta-row .mbb-avatar {
	width: 32px;
	height: 32px;
}

.mbb-welcome {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 101px;
	padding: 18px 12px 18px 22px;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-xl);
	background: var(--mbb-white);
	box-shadow: var(--mbb-shadow-lg);
}

.mbb-welcome__badge {
	display: flex;
	flex: 0 0 59px;
	align-items: center;
	justify-content: center;
	width: 59px;
	height: 59px;
	border: var(--mbb-stroke-fine) solid var(--mbb-black);
	border-radius: 26px;
	background: var(--mbb-cyan);
}

.mbb-welcome__text {
	font-size: 17px;
	font-weight: 800;
	line-height: 27px;
}

.mbb-welcome__text a {
	text-decoration: underline;
	text-decoration-color: var(--mbb-hot-pink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.mbb-welcome__text a:hover {
	color: var(--mbb-hot-pink);
}

/* Featured post */

.mbb-featured {
	overflow: hidden;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-xl);
	background: var(--mbb-white);
	box-shadow: var(--mbb-shadow-lg);
}

.mbb-featured__media {
	position: relative;
	height: 340px;
	border-bottom: var(--mbb-stroke) solid var(--mbb-black);
	background: var(--mbb-light-pink);
}

.mbb-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbb-sticker {
	position: absolute;
	top: 12px;
	left: 20px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 17px;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-sm);
	background: var(--mbb-yellow);
	box-shadow: var(--mbb-shadow-sm);
	font-family: var(--mbb-font-display);
	font-size: 19px;
	line-height: 24.13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--mbb-black);
	transform: rotate(-5deg);
	transform-origin: left center;
	pointer-events: none;
}

.mbb-featured__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 24px 26px 28px;
}

.mbb-featured__title {
	font-size: 38px;
	font-weight: 900;
	line-height: 46px;
}

.mbb-featured__title a {
	color: var(--mbb-white);
}

.mbb-featured__excerpt {
	font-size: 17px;
	line-height: 27px;
}

.mbb-latest {
	display: flex;
	flex-direction: column;
	gap: var(--mbb-gutter);
}

.mbb-latest__heading {
	padding-top: 28px;
}

.mbb-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 37px;
	align-items: stretch;
}

.mbb-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-lg);
	background: var(--mbb-white);
	box-shadow: var(--mbb-shadow-md);
	transform: rotate(var(--mbb-rot, 0deg));
}

.mbb-card__media {
	flex: none;
	height: 150px;
	border-bottom: var(--mbb-stroke) solid var(--mbb-black);
	background: var(--mbb-light-pink);
}

.mbb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbb-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 auto;
	gap: 10px;
	padding: 16px 18px 20px;
}

.mbb-card__title {
	font-size: 21px;
	font-weight: 800;
	line-height: 25px;
}

.mbb-card__title a {
	color: var(--mbb-black);
}

.mbb-card__title a:hover {
	color: var(--mbb-hot-pink);
}

.mbb-card__meta {
	font-size: 14px;
	line-height: 20px;
	color: var(--mbb-text-grey);
}

/* Post rows */

.mbb-row-list {
	display: flex;
	flex-direction: column;
	gap: var(--mbb-gutter);
}

.mbb-row-card {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	overflow: hidden;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-xl);
	background: var(--mbb-white);
	box-shadow: var(--mbb-shadow-lg);
	transform: rotate(var(--mbb-rot, 0deg));
}

.mbb-row-card__media {
	position: relative;
	border-right: var(--mbb-stroke) solid var(--mbb-black);
	background: var(--mbb-light-pink);
}

.mbb-row-card__media img,
.mbb-row-card__media .mbb-img-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbb-row-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	padding: 24px 26px 28px;
}

.mbb-row-card__title {
	font-size: 30px;
	font-weight: 900;
	line-height: 40px;
	overflow-wrap: anywhere;
}

.mbb-row-card__title a {
	color: var(--mbb-white);
}

.mbb-row-card__excerpt {
	font-size: 17px;
	line-height: 27px;
}

.mbb-list-header .mbb-section-heading {
	overflow-wrap: anywhere;
}

.mbb-pager {
	display: flex;
	justify-content: center;
	padding: 8px 0;
}

.mbb-pager--list {
	padding-top: 20px;
}

.mbb-pager__btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: progress;
}

.mbb-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 24px 26px 28px;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-lg);
	background: var(--mbb-white);
	box-shadow: var(--mbb-shadow-md);
}

.mbb-empty__text {
	font-size: 17px;
	font-weight: 800;
	line-height: 27px;
}

.mbb-empty__search {
	width: 100%;
	max-width: 410px;
}

@media (min-width: 1024px) and (max-width: 1239px) {
	.mbb-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */

@media (max-width: 1023px) {
	.mbb-welcome {
		align-items: center;
		padding: 18px 25px 18px 22px;
	}

	.mbb-featured__media {
		height: 200px;
	}

	.mbb-featured__title {
		font-size: 30px;
		line-height: 40px;
	}

	.mbb-featured__title .mbb-outline-4 {
		-webkit-text-stroke-width: 6px;
	}

	.mbb-meta-row {
		align-items: center;
	}

	.mbb-card-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.mbb-card,
	.mbb-row-card {
		transform: rotate(var(--mbb-rot-m, 0deg));
	}

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

	.mbb-row-card__media {
		height: 200px;
		border-right: 0;
		border-bottom: var(--mbb-stroke) solid var(--mbb-black);
	}

	.mbb-row-card__title {
		font-size: 24px;
		line-height: 32px;
	}

	.mbb-row-card__title .mbb-outline-3 {
		-webkit-text-stroke-width: 5px;
	}

	.mbb-row-card__excerpt,
	.mbb-row-card__more {
		display: none;
	}
}

@media (min-width: 640px) and (max-width: 1023px) {
	.mbb-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (hover: hover) {
	.mbb-card,
	.mbb-row-card {
		position: relative;
		transition: transform 180ms ease;
	}

	.mbb-card:hover,
	.mbb-row-card:hover {
		z-index: 1;
		transform: rotate(0deg) scale(1.03);
	}

	/* rows are wide, smaller scale keeps them inside the gutter */
	.mbb-row-card:hover {
		transform: rotate(0deg) scale(1.015);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbb-btn,
	.mbb-card,
	.mbb-row-card {
		transition: none;
	}
}
