.jm-site-shell {
	padding: clamp(1.5rem, 2vw, 2rem) 0 var(--jm-space-xl);
}

.jm-page-shell {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.jm-page-shell > * + * {
	margin-top: var(--jm-space-xl);
}

.jm-container {
	margin: 0 auto;
	width: min(calc(100% - 2rem), var(--jm-container-max));
}

.jm-reading-column {
	background: rgba(21, 25, 34, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--jm-radius-panel);
	box-sizing: border-box;
	max-width: none;
	padding: clamp(1.25rem, 2vw, 1.75rem);
	width: 100%;
}

.jm-reading-column__inner {
	max-width: var(--jm-reading-max);
	width: 100%;
}

body.jm-theme-scaffold {
	padding-bottom: var(--jm-bottom-chrome-height);
}

.jm-content-block {
	width: 100%;
}

.jm-section > * + * {
	margin-top: var(--jm-space-md);
}

.jm-grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--jm-space-md);
}

.jm-grid--cards {
	align-items: stretch;
}

.jm-grid--cards > * {
	flex: 1 1 100%;
	min-width: 0;
}

.jm-footer-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--jm-space-sm);
	margin-top: var(--jm-space-lg);
}

.jm-footer-links {
	margin-top: var(--jm-space-xl);
}

body.jm-theme-scaffold .entry,
body.jm-theme-scaffold .entry.single-entry {
	background: transparent !important;
	box-shadow: none !important;
	max-width: 100% !important;
}

body.jm-theme-scaffold .site-container,
body.jm-theme-scaffold .content-container,
body.jm-theme-scaffold .site-main,
body.jm-theme-scaffold .site-content,
body.jm-theme-scaffold .content-wrap {
	max-width: none !important;
	width: 100% !important;
}

body.jm-theme-scaffold .entry-content-wrap {
	box-sizing: border-box !important;
	margin: 0 auto !important;
	max-width: calc(var(--jm-width-shell) + 2rem) !important;
	padding: clamp(1.5rem, 3vw, 3rem) 1rem !important;
	width: min(calc(100% - 1rem), calc(var(--jm-width-shell) + 2rem)) !important;
}

body.jm-theme-scaffold .content-area {
	margin-top: 0 !important;
}

@media (min-width: 768px) {
	.jm-grid--cards {
		gap: var(--jm-space-md);
	}

	.jm-grid--cards > * {
		flex-basis: calc(50% - (var(--jm-space-md) / 2));
	}
}

@media (min-width: 1025px) {
	.jm-site-shell {
		padding-top: var(--jm-space-lg);
	}

	body.jm-page-class-a {
		overflow: hidden;
	}

	body.jm-page-class-a .jm-site-shell {
		display: flex;
		min-height: calc(100dvh - var(--jm-bottom-chrome-height));
	}

	body.jm-page-class-a .jm-page-shell--class-a {
		flex: 1 1 auto;
	}

	.jm-grid--cards > * {
		flex-basis: calc(33.333% - ((var(--jm-space-md) * 2) / 3));
	}
}

@media (max-width: 1024px) {
	body.jm-page-class-a {
		overflow-x: hidden;
		overflow-y: auto;
	}
}

@media (max-width: 767px) {
	.jm-site-shell {
		padding-top: var(--jm-space-lg);
	}

	.jm-container {
		width: min(calc(100% - 1.5rem), var(--jm-container-max));
	}

	body.jm-theme-scaffold .entry-content-wrap {
		padding: 1.5rem 0.75rem 2rem !important;
	}
}
