/*
Theme Name: ChestMods
Theme URI: https://chestmods.com/
Author: ChestMods
Author URI: https://chestmods.com/
Description: A fast hybrid WordPress theme for a structured Minecraft mods catalog.
Version: 1.2.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chestmods
Tags: blog, news, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--cm-page: #f3f4f1;
	--cm-surface: #ffffff;
	--cm-surface-soft: #f8f8f5;
	--cm-ink: #20241f;
	--cm-muted: #667066;
	--cm-line: #d9ddd6;
	--cm-line-strong: #b8c0b6;
	--cm-header: #20251f;
	--cm-header-line: #343b32;
	--cm-wood: #a65f2d;
	--cm-wood-dark: #71401f;
	--cm-gold: #d89a2b;
	--cm-grass: #4f7d3b;
	--cm-grass-dark: #315329;
	--cm-stone: #596158;
	--cm-danger: #a34335;
	--cm-content: 1180px;
	--cm-sidebar-width: 300px;
	--cm-card-columns: 3;
	--cm-hero-opacity: .42;
	--cm-archive-opacity: .48;
	--cm-reading: 760px;
	--cm-radius: 5px;
	--cm-shadow: 0 1px 2px rgba(25, 31, 24, .07);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--cm-ink);
	background: var(--cm-page);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: var(--cm-grass-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--cm-wood-dark);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
input[type="button"],
input[type="submit"] {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid rgba(216, 154, 43, .55);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	padding: 14px 18px;
	clip: auto !important;
	color: var(--cm-ink);
	background: #fff;
	font-weight: 700;
}

.cm-container {
	width: min(calc(100% - 36px), var(--cm-content));
	margin-inline: auto;
}

.cm-site-main {
	min-width: 0;
}

/* Header */
.cm-topline {
	height: 4px;
	background: var(--cm-grass);
	border-bottom: 1px solid #2e5027;
}

.site-header {
	color: #fff;
	background: var(--cm-header);
	border-bottom: 1px solid #11150f;
}

.cm-sticky-header .site-header {
	position: sticky;
	z-index: 999;
	top: 0;
}

.admin-bar.cm-sticky-header .site-header {
	top: 32px;
}

.cm-header-main {
	display: flex;
	align-items: center;
	min-height: 72px;
	gap: 18px;
	min-width: 0;
}

.site-branding {
	flex: 0 0 auto;
	min-width: 0;
}

.custom-logo-link {
	display: flex;
	align-items: center;
}

.custom-logo,
.cm-custom-logo {
	display: block;
	width: auto;
	max-height: 48px;
	object-fit: contain;
	object-position: left center;
}

.cm-custom-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

/*
 * The alternate logo is intentionally enabled only for precise mouse/trackpad
 * pointers on desktop-sized screens. Touch devices keep the original image.
 */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
	.cm-custom-logo-link--swap {
		position: relative;
		transition: transform .22s ease, filter .22s ease;
	}

	.cm-custom-logo-link--swap::before,
	.cm-custom-logo-link--swap::after {
		content: "";
		position: absolute;
		pointer-events: none;
	}

	.cm-custom-logo-link--swap::before {
		z-index: 1;
		inset: 0;
		background-image: var(--cm-hover-logo);
		background-position: left center;
		background-repeat: no-repeat;
		background-size: contain;
		opacity: 0;
		transition: opacity .2s ease;
	}

	.cm-custom-logo-link--swap::after {
		z-index: 2;
		inset: -10px 58% -10px -10px;
		background:
			radial-gradient(circle, rgba(244,190,61,.95) 0 2px, transparent 2.5px) 8% 18% / 5px 5px no-repeat,
			radial-gradient(circle, rgba(255,226,124,.85) 0 1.5px, transparent 2px) 55% 4% / 4px 4px no-repeat,
			radial-gradient(circle, rgba(224,144,35,.85) 0 2px, transparent 2.5px) 78% 84% / 5px 5px no-repeat,
			radial-gradient(circle, rgba(255,211,81,.75) 0 1.5px, transparent 2px) 4% 75% / 4px 4px no-repeat;
		opacity: 0;
		transform: scale(.78);
	}

	.cm-custom-logo-link--swap .cm-custom-logo {
		transition: opacity .18s ease;
	}

	.cm-custom-logo-link--swap:hover,
	.cm-custom-logo-link--swap:focus-visible {
		filter: drop-shadow(0 3px 6px rgba(216,154,43,.2));
		transform: scale(1.035);
	}

	.cm-custom-logo-link--swap:hover .cm-custom-logo,
	.cm-custom-logo-link--swap:focus-visible .cm-custom-logo {
		opacity: 0;
	}

	.cm-custom-logo-link--swap:hover::before,
	.cm-custom-logo-link--swap:focus-visible::before {
		opacity: 1;
	}

	.cm-custom-logo-link--swap:hover::after,
	.cm-custom-logo-link--swap:focus-visible::after {
		animation: cm-logo-sparkle .58s ease both;
	}

	@keyframes cm-logo-sparkle {
		0% {
			opacity: 0;
			transform: scale(.72) translateY(4px);
		}
		48% {
			opacity: .75;
		}
		100% {
			opacity: .42;
			transform: scale(1) translateY(-1px);
		}
	}
}

.cm-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: #fff;
	text-decoration: none;
}

.cm-brand-link:hover {
	color: #fff;
}

.cm-chest-mark {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 29px;
	background: var(--cm-wood);
	border: 3px solid #12150f;
	box-shadow: inset 0 -8px 0 rgba(79, 37, 18, .22);
}

.cm-chest-mark::before {
	content: "";
	position: absolute;
	top: 10px;
	left: -3px;
	width: 34px;
	height: 4px;
	background: #171a14;
}

.cm-chest-mark::after {
	content: "";
	position: absolute;
	top: 8px;
	left: 12px;
	width: 7px;
	height: 10px;
	background: var(--cm-gold);
	border: 2px solid #6c481c;
}

.cm-brand-name {
	font-size: 25px;
	font-weight: 850;
	letter-spacing: -.045em;
	line-height: 1;
}

.cm-brand-name b {
	color: #e0a83e;
	font-weight: inherit;
}

.cm-primary-nav {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	margin-left: 0;
}

.cm-primary-nav ul {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	align-items: center;
	width: 100%;
	max-width: 100%;
	gap: 2px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cm-primary-nav li {
	min-width: 0;
	max-width: 100%;
}

.cm-primary-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 76px;
	min-width: 0;
	max-width: 100%;
	padding: 7px 3px;
	color: #dfe3dd;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	overflow-wrap: normal;
}

.cm-primary-nav a:hover,
.cm-primary-nav .current-menu-item > a,
.cm-primary-nav .current-menu-ancestor > a {
	color: #fff;
	background: #30372e;
}

.cm-primary-nav ._mi {
	flex: 0 0 auto;
	margin: 0 0 5px !important;
	vertical-align: middle !important;
}

.cm-primary-nav img._mi {
	display: block;
	width: 26px !important;
	height: 26px !important;
	max-width: 26px;
	max-height: 26px;
	object-fit: contain;
}

.cm-primary-nav i._mi {
	display: grid;
	place-items: center;
	width: 26px !important;
	height: 26px !important;
	font-size: 24px !important;
	line-height: 1 !important;
}

.cm-header-search {
	flex: 0 0 170px;
	width: 170px;
	min-width: 0;
	max-width: 100%;
}

.cm-header-search .search-form,
.cm-header-search .search-form label {
	min-width: 0;
}

.search-form {
	position: relative;
	display: flex;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	height: 42px;
	padding: 0 47px 0 13px;
	color: var(--cm-ink);
	background: #fff;
	border: 1px solid var(--cm-line-strong);
	border-radius: 3px;
}

.search-field::placeholder {
	color: #7b847b;
}

.search-submit {
	position: absolute;
	top: 1px;
	right: 1px;
	width: 41px;
	height: 40px;
	padding: 0;
	color: transparent;
	background: transparent;
	border: 0;
}

.search-submit::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 11px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--cm-stone);
	border-radius: 50%;
}

.search-submit::after {
	content: "";
	position: absolute;
	top: 24px;
	left: 24px;
	width: 8px;
	height: 2px;
	background: var(--cm-stone);
	transform: rotate(45deg);
	transform-origin: left center;
}

.cm-menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 10px;
	background: #2f362d;
	border: 1px solid #495146;
	border-radius: 3px;
}

.cm-menu-toggle > span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	margin: 4px 0;
	background: #fff;
}

.cm-subnav {
	background: #2a3028;
	border-top: 1px solid var(--cm-header-line);
}

.cm-subnav-inner {
	display: flex;
	align-items: center;
	min-height: 39px;
	gap: 18px;
	overflow-x: auto;
	scrollbar-width: none;
}

.cm-subnav-inner::-webkit-scrollbar {
	display: none;
}

.cm-subnav-label {
	flex: 0 0 auto;
	color: #8ea286;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cm-quick-links {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cm-quick-links a {
	display: block;
	padding: 9px 0;
	color: #d9ded6;
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}

.cm-quick-links a:hover {
	color: #fff;
}

.cm-quick-link--version {
	color: #d9ead2 !important;
}

.cm-quick-link--forge {
	color: #efc28d !important;
}

.cm-quick-link--fabric {
	color: #e7dcc8 !important;
}

.cm-quick-link--neoforge {
	color: #a9d2e8 !important;
}

.cm-quick-link--quilt {
	color: #d4b8e8 !important;
}

/* Advertising */
.cm-ad {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-block: 22px;
	color: #8a9188;
	background: #eceeea;
	border: 1px solid #dde0da;
	font-size: 11px;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
}

.cm-ad--leaderboard {
	min-height: 92px;
}

.cm-ad--content {
	min-height: 112px;
}

.cm-ad .widget {
	width: 100%;
	margin: 0;
}

.cm-ad img,
.cm-ad iframe {
	display: block;
	margin: auto;
}

/* Homepage */
.cm-home-intro {
	position: relative;
	overflow: hidden;
	padding: 42px 0 34px;
	background: var(--cm-surface);
	border-bottom: 1px solid var(--cm-line);
}

.cm-home-intro--image::before,
.cm-home-intro--image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cm-home-intro--image::before {
	background-position: right center;
	background-repeat: no-repeat;
	background-size: auto 100%;
	opacity: var(--cm-hero-opacity);
}

.cm-home-intro--image::after {
	background: linear-gradient(90deg, #fff 0%, #fff 35%, rgba(255,255,255,.94) 52%, rgba(255,255,255,.5) 74%, rgba(255,255,255,.16) 100%);
}

.cm-home-intro-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
	align-items: center;
	gap: 48px;
}

.cm-home-intro-grid--single {
	grid-template-columns: minmax(0, 760px);
}

.cm-home-intro-copy {
	min-width: 0;
}

.cm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: var(--cm-grass-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cm-eyebrow::before {
	content: "";
	width: 9px;
	height: 9px;
	background: var(--cm-grass);
	box-shadow: 3px 3px 0 #b8d09f;
}

.cm-home-title {
	max-width: 730px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(38px, 4.8vw, 58px);
	font-weight: 700;
	letter-spacing: -.045em;
	line-height: 1.03;
}

.cm-home-copy {
	max-width: 660px;
	margin: 17px 0 25px;
	color: var(--cm-muted);
	font-size: 17px;
}

.cm-home-search {
	max-width: 610px;
}

.cm-home-search .search-field {
	height: 50px;
	padding-left: 16px;
	background: var(--cm-surface-soft);
	border: 2px solid var(--cm-line-strong);
}

.cm-home-search .search-submit {
	top: 2px;
	right: 2px;
	height: 46px;
}

.cm-home-panel {
	padding: 23px;
	background: #f6f3ea;
	border: 1px solid #d8d2c3;
	border-top: 4px solid var(--cm-wood);
}

.cm-home-panel h2 {
	margin: 0 0 16px;
	font-size: 15px;
	letter-spacing: .02em;
}

.cm-link-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.cm-link-grid a {
	display: block;
	padding: 9px 10px;
	color: #3d453c;
	background: #fff;
	border: 1px solid #d8d4c9;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.cm-link-grid a:hover {
	border-color: var(--cm-wood);
}

.cm-link-grid .cm-quick-link--version {
	color: #365d2d !important;
	background: #f5faf2;
	border-color: #cddfc4;
}

.cm-link-grid .cm-quick-link--forge {
	color: #71451c !important;
	background: #fff8ef;
	border-color: #e7c89e;
}

.cm-link-grid .cm-quick-link--fabric {
	color: #5a4e3f !important;
	background: #faf7f1;
	border-color: #ddd2c2;
}

.cm-link-grid .cm-quick-link--neoforge {
	color: #275d78 !important;
	background: #f1f8fc;
	border-color: #bdd8e6;
}

.cm-link-grid .cm-quick-link--quilt {
	color: #633b78 !important;
	background: #faf4fd;
	border-color: #d7bce4;
}

.cm-section {
	padding: 34px 0 48px;
}

.cm-section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--cm-ink);
}

.cm-section-title {
	margin: 0;
	font-size: 23px;
	letter-spacing: -.025em;
	line-height: 1.2;
}

.cm-section-link {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 750;
}

/* Content layout */
.cm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--cm-sidebar-width);
	align-items: start;
	gap: 32px;
	padding-block: 30px 50px;
}

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

.cm-post-grid {
	display: grid;
	grid-template-columns: repeat(var(--cm-card-columns), minmax(0, 1fr));
	gap: 20px;
}

.cm-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	box-shadow: var(--cm-shadow);
}

.cm-card-image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #dfe3dc;
	border-bottom: 1px solid var(--cm-line);
}

.cm-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
}

.cm-post-card:hover .cm-card-image img {
	transform: scale(1.015);
}

.cm-card-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #7d887c;
	background:
		linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
		#d9ded6;
	background-size: 24px 24px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.cm-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 17px 17px;
}

.cm-card-kicker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 9px;
}

.cm-badge {
	display: inline-flex;
	align-items: center;
	min-height: 23px;
	padding: 3px 7px;
	color: #475047;
	background: #eef0ec;
	border: 1px solid #d9ddd6;
	border-radius: 2px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .045em;
	line-height: 1.1;
	text-transform: uppercase;
}

.cm-badge--version {
	color: #365d2d;
	background: #edf4e9;
	border-color: #cddfc4;
}

.cm-badge--loader {
	color: #6a4921;
	background: #f7f0e4;
	border-color: #e4d2b4;
}

.cm-badge--forge,
.cm-download-file-badge--loader.cm-download-file-badge--forge {
	color: #754614;
	background: #fff4e5;
	border-color: #e8c28e;
}

.cm-badge--fabric,
.cm-download-file-badge--loader.cm-download-file-badge--fabric {
	color: #5c5040;
	background: #f5f1e9;
	border-color: #d8cdbd;
}

.cm-badge--neoforge,
.cm-download-file-badge--loader.cm-download-file-badge--neoforge {
	color: #245f7c;
	background: #eef8fd;
	border-color: #b5d8e9;
}

.cm-badge--quilt,
.cm-download-file-badge--loader.cm-download-file-badge--quilt {
	color: #673a7d;
	background: #f8f0fc;
	border-color: #d8b9e7;
}

.cm-card-title {
	margin: 0;
	font-size: 19px;
	letter-spacing: -.025em;
	line-height: 1.25;
}

.cm-card-title a {
	color: var(--cm-ink);
	text-decoration: none;
}

.cm-card-title a:hover {
	color: var(--cm-wood-dark);
}

.cm-card-excerpt {
	display: -webkit-box;
	margin: 9px 0 14px;
	overflow: hidden;
	color: var(--cm-muted);
	font-size: 13.5px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.cm-card-excerpt p {
	margin: 0;
}

.cm-card-meta,
.cm-entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px 13px;
	color: #7c857b;
	font-size: 12px;
}

.cm-card-meta span + span::before,
.cm-entry-meta span + span::before {
	content: "•";
	margin-right: 13px;
	color: #adb4ac;
}

.cm-card-footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	margin-top: auto;
	border-top: 1px solid #eceee9;
}

.cm-card-button {
	flex: 0 0 auto;
	padding: 7px 10px;
	color: #fff;
	background: var(--cm-wood);
	border: 1px solid var(--cm-wood-dark);
	border-radius: 3px;
	box-shadow: inset 0 -2px 0 rgba(0,0,0,.13);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.cm-card-button:hover {
	color: #fff;
	background: var(--cm-wood-dark);
}

/* Archive and filters */
.cm-page-head {
	position: relative;
	overflow: hidden;
	padding: 29px 0 25px;
	background: var(--cm-surface);
	border-bottom: 1px solid var(--cm-line);
}

.cm-page-head--image::before,
.cm-page-head--image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cm-page-head--image::before {
	background-image: var(--cm-archive-image);
	background-position: right center;
	background-repeat: no-repeat;
	background-size: auto 100%;
	opacity: var(--cm-archive-opacity);
}

.cm-page-head--image::after {
	background: linear-gradient(90deg, #fff 0%, #fff 38%, rgba(255,255,255,.94) 54%, rgba(255,255,255,.5) 76%, rgba(255,255,255,.12) 100%);
}

.cm-page-head--image .cm-container {
	position: relative;
	z-index: 1;
}

.cm-page-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 5vw, 46px);
	letter-spacing: -.035em;
	line-height: 1.1;
}

.cm-page-description {
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--cm-muted);
}

.cm-breadcrumbs {
	margin-bottom: 10px;
	color: #7b847a;
	font-size: 12px;
}

.cm-breadcrumbs a {
	color: inherit;
}

.cm-filters {
	margin-bottom: 21px;
	padding: 14px;
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	border-top: 3px solid var(--cm-stone);
}

.cm-filter-form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	align-items: end;
	gap: 10px;
}

.cm-filter-field label {
	display: block;
	margin-bottom: 4px;
	color: #596258;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cm-filter-field select {
	width: 100%;
	height: 39px;
	padding: 0 30px 0 9px;
	color: var(--cm-ink);
	background: #fff;
	border: 1px solid var(--cm-line-strong);
	border-radius: 2px;
}

.cm-button,
.wp-block-button__link,
button[type="submit"]:not(.search-submit),
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 15px;
	color: #fff;
	background: var(--cm-grass);
	border: 1px solid var(--cm-grass-dark);
	border-radius: 3px;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.cm-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:not(.search-submit):hover,
input[type="submit"]:hover {
	color: #fff;
	background: var(--cm-grass-dark);
}

.cm-button--wood {
	background: var(--cm-wood);
	border-color: var(--cm-wood-dark);
}

.cm-button--wood:hover {
	background: var(--cm-wood-dark);
}

.cm-button--muted {
	color: #40483f;
	background: #f0f1ee;
	border-color: var(--cm-line-strong);
	box-shadow: none;
}

.cm-button--muted:hover {
	color: var(--cm-ink);
	background: #e1e4de;
}

/* Single post */
.cm-single {
	min-width: 0;
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	box-shadow: var(--cm-shadow);
}

.cm-single-header {
	padding: clamp(22px, 4vw, 38px);
}

.cm-single-title {
	margin: 0 0 11px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 5vw, 52px);
	letter-spacing: -.045em;
	line-height: 1.07;
}

.cm-single-summary {
	max-width: 760px;
	margin: 17px 0 0;
	color: var(--cm-muted);
	font-size: 17px;
	line-height: 1.6;
}

.cm-single-image {
	background: #e0e3dd;
	border-top: 1px solid var(--cm-line);
	border-bottom: 1px solid var(--cm-line);
}

.cm-single-image img {
	display: block;
	width: 100%;
	height: auto;
}

.cm-specs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-bottom: 1px solid var(--cm-line);
}

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

.cm-specs--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-specs--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cm-spec {
	min-width: 0;
	padding: 15px 17px;
	background: var(--cm-surface-soft);
	border-right: 1px solid var(--cm-line);
}

.cm-spec:last-child {
	border-right: 0;
}

.cm-spec-label {
	display: block;
	margin-bottom: 3px;
	color: #7b847a;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.cm-spec-value {
	display: block;
	overflow: hidden;
	font-size: 13px;
	font-weight: 750;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-entry-content {
	max-width: var(--cm-reading);
	padding: clamp(24px, 5vw, 44px);
	margin-inline: auto;
}

.cm-entry-content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.cm-entry-content > h2,
.cm-entry-content > h3,
.cm-entry-content > h4 {
	margin-top: 1.7em;
	margin-bottom: .65em;
	line-height: 1.22;
}

.cm-entry-content > h2 {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--cm-line);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 29px;
	letter-spacing: -.025em;
}

.cm-entry-content--before-download-box {
	padding-bottom: 14px;
}

.cm-entry-content--before-download-box > h2:last-child {
	margin-bottom: 0;
}

.cm-entry-content > h3 {
	font-size: 22px;
}

.cm-entry-content ul,
.cm-entry-content ol {
	padding-left: 1.35em;
}

.cm-entry-content li {
	margin-bottom: .45em;
}

.cm-entry-content blockquote {
	padding: 16px 19px;
	margin-inline: 0;
	color: #414940;
	background: #f4f5f1;
	border-left: 4px solid var(--cm-grass);
}

.cm-entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.cm-entry-content th,
.cm-entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--cm-line);
	text-align: left;
}

.cm-entry-content th {
	background: #f0f2ed;
}

.cm-entry-content pre {
	max-width: 100%;
	padding: 16px;
	overflow: auto;
	color: #e7ebe4;
	background: #252a23;
	border-radius: 3px;
}

.cm-entry-content img {
	border-radius: 3px;
}

.cm-download-box {
	max-width: var(--cm-reading);
	padding: 20px;
	margin: 0 auto 36px;
	background: #f6f3e9;
	border: 1px solid #d8d0ba;
	border-left: 5px solid var(--cm-gold);
}

.cm-download-box-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.cm-download-box p {
	margin: 0 0 14px;
	color: var(--cm-muted);
	font-size: 13px;
}

.cm-download-files {
	padding-top: 16px;
	margin-top: 17px;
	border-top: 1px solid #d8d0ba;
}

.cm-download-files h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.cm-download-file-list {
	display: grid;
	gap: 8px;
}

.cm-download-file {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 12px 13px;
	background: #fff;
	border: 1px solid #d8d8d2;
	border-left: 3px solid var(--cm-grass);
}

.cm-download-file-info {
	min-width: 0;
}

.cm-download-file-name {
	display: block;
	overflow: hidden;
	color: var(--cm-ink);
	font-size: 14px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-download-file-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-top: 6px;
}

.cm-download-file-badge {
	display: inline-block;
	padding: 2px 6px;
	color: #33422f;
	background: #edf3e9;
	border: 1px solid #c9d7c2;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}

.cm-download-file-badge--loader {
	color: #65441f;
	background: #f8efe1;
	border-color: #e2cfb0;
}

.cm-download-file-size {
	color: var(--cm-muted);
	font-size: 11px;
	font-weight: 600;
}

.cm-download-file-button {
	min-width: 116px;
	padding: 9px 13px;
	text-align: center;
	white-space: nowrap;
}

.cm-post-footer {
	padding: 19px clamp(24px, 5vw, 44px);
	border-top: 1px solid var(--cm-line);
}

.cm-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.cm-post-tags a {
	display: inline-block;
	padding: 4px 8px;
	color: #566055;
	background: #f0f2ee;
	border: 1px solid var(--cm-line);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.cm-post-tags .cm-tag--forge {
	color: #754614;
	background: #fff4e5;
	border-color: #e8c28e;
}

.cm-post-tags .cm-tag--fabric {
	color: #5c5040;
	background: #f5f1e9;
	border-color: #d8cdbd;
}

.cm-post-tags .cm-tag--neoforge {
	color: #245f7c;
	background: #eef8fd;
	border-color: #b5d8e9;
}

.cm-post-tags .cm-tag--quilt {
	color: #673a7d;
	background: #f8f0fc;
	border-color: #d8b9e7;
}

.cm-related {
	margin-top: 28px;
}

.cm-related .cm-post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Pages and comments */
.cm-page-article {
	padding: clamp(24px, 5vw, 44px);
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
}

.cm-page-article .cm-entry-content {
	padding: 0;
	margin: 0;
}

.comments-area {
	max-width: var(--cm-reading);
	margin: 28px auto 0;
	padding: clamp(22px, 4vw, 30px);
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	box-shadow: var(--cm-shadow);
}

.comments-title,
.comment-reply-title {
	margin-top: 0;
	font-size: 22px;
	letter-spacing: -.02em;
}

.comment-list {
	padding: 0;
	margin: 0 0 30px;
	list-style: none;
}

.comment-list .children {
	padding-left: 26px;
	list-style: none;
}

.comment-body {
	position: relative;
	padding: 17px 18px;
	margin-bottom: 10px;
	background: var(--cm-surface-soft);
	border: 1px solid var(--cm-line);
	border-left: 3px solid #cbd2c7;
}

.comment-meta {
	font-size: 13px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	flex: 0 0 auto;
	border: 1px solid var(--cm-line-strong);
	border-radius: 50%;
}

.comment-author .fn {
	font-style: normal;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin: -12px 0 0 54px;
	font-size: 11px;
}

.comment-metadata a {
	color: var(--cm-muted);
	text-decoration: none;
}

.comment-content {
	margin: 14px 0 0 54px;
}

.comment-content > :last-child {
	margin-bottom: 0;
}

.comment-body .reply {
	margin: 10px 0 0 54px;
}

.comment-reply-link {
	font-size: 12px;
	font-weight: 750;
}

.comment-respond {
	padding-top: 4px;
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.comment-form > p {
	margin: 0 0 15px;
}

.comment-notes,
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
	grid-column: 1 / -1;
}

.comment-notes {
	color: var(--cm-muted);
	font-size: 13px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	padding: 11px 12px;
	background: #fff;
	border: 1px solid var(--cm-line-strong);
	border-radius: 2px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--cm-grass);
	outline: 2px solid rgba(79, 125, 59, .15);
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--cm-muted);
	font-size: 12px;
}

.comment-form-cookies-consent input {
	margin-top: 4px;
}

.comment-form-cookies-consent label {
	font-weight: 500;
}

/* Sidebar */
.cm-sidebar {
	min-width: 0;
}

.cm-widget {
	margin-bottom: 21px;
	padding: 18px;
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	border-top: 3px solid var(--cm-stone);
	box-shadow: var(--cm-shadow);
}

.cm-widget > :first-child,
.cm-widget .wp-block-group__inner-container > :first-child {
	margin-top: 0;
}

.cm-widget > :last-child,
.cm-widget .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.cm-widget .wp-block-heading {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.25;
}

.cm-widget .wp-block-columns {
	gap: 18px;
	margin: 0;
}

.cm-widget .wp-block-column {
	min-width: 0;
}

.cm-widget .wp-block-search__label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 750;
}

.cm-widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

.cm-widget .wp-block-search__input {
	min-width: 0;
	width: 100%;
	padding: 8px 9px;
	border: 1px solid var(--cm-line-strong);
}

.cm-widget .wp-block-search__button {
	flex: 0 0 auto;
	margin: 0;
}

.cm-widget .wp-block-latest-comments,
.cm-widget .wp-block-archives-list,
.cm-widget .wp-block-categories-list,
.cm-widget .wp-block-latest-posts {
	padding: 0;
	margin: 0;
	list-style: none;
}

.cm-widget .wp-block-latest-comments__comment {
	margin: 0;
}

.cm-widget-title,
.cm-widget .widget-title {
	margin: 0 0 13px;
	font-size: 15px;
	letter-spacing: -.01em;
}

.cm-widget ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.cm-widget li {
	padding: 8px 0;
	border-bottom: 1px solid #eceeea;
	font-size: 13px;
}

.cm-widget li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.cm-widget a {
	color: #394239;
	text-decoration: none;
}

.cm-widget a:hover {
	color: var(--cm-wood-dark);
	text-decoration: underline;
}

.cm-version-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cm-version-list a {
	display: inline-block;
	padding: 5px 8px;
	background: #f1f3ef;
	border: 1px solid var(--cm-line);
	font-size: 11px;
	font-weight: 750;
}

/* Pagination */
.navigation.pagination {
	margin-top: 28px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 37px;
	min-height: 37px;
	padding: 6px 10px;
	color: #424b41;
	background: #fff;
	border: 1px solid var(--cm-line);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	color: #fff;
	background: var(--cm-grass);
	border-color: var(--cm-grass-dark);
}

/* Empty and 404 */
.cm-empty {
	padding: 38px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--cm-line);
}

.cm-empty--404 {
	width: min(100%, 860px);
	padding: clamp(42px, 7vw, 72px);
	margin-inline: auto;
	box-shadow: var(--cm-shadow);
}

.cm-empty--404 .cm-home-search {
	margin: 24px auto 0;
}

.cm-empty-chest {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 40px;
	margin-bottom: 13px;
	background: var(--cm-wood);
	border: 4px solid #272019;
	box-shadow: inset 0 -11px 0 rgba(65,31,17,.2);
}

.cm-empty-chest::before {
	content: "";
	position: absolute;
	top: 14px;
	left: -4px;
	width: 48px;
	height: 5px;
	background: #272019;
}

.cm-empty-chest::after {
	content: "";
	position: absolute;
	top: 12px;
	left: 18px;
	width: 8px;
	height: 13px;
	background: var(--cm-gold);
	border: 2px solid #76501d;
}

.cm-empty h1,
.cm-empty h2 {
	margin-top: 0;
}

.cm-404-code {
	margin: 0;
	color: var(--cm-wood);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(74px, 15vw, 140px);
	line-height: .9;
}

/* Footer */
.site-footer {
	color: #cbd0c8;
	background: var(--cm-header);
	border-top: 4px solid var(--cm-grass);
}

.cm-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	gap: 38px;
	padding-block: 40px;
}

.cm-footer-brand p {
	max-width: 340px;
	margin: 14px 0 0;
	color: #9fa79c;
	font-size: 13px;
}

.cm-footer-title {
	margin: 0 0 13px;
	color: #fff;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cm-footer-menu,
.cm-footer-categories {
	padding: 0;
	margin: 0;
	list-style: none;
}

.cm-footer-menu li,
.cm-footer-categories li {
	margin-bottom: 7px;
	font-size: 13px;
}

.site-footer a {
	color: #cbd0c8;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.cm-footer-bottom {
	padding: 17px 0;
	color: #929b90;
	border-top: 1px solid var(--cm-header-line);
	font-size: 12px;
}

/* WordPress alignments */
.alignwide {
	width: min(100%, 980px);
	max-width: 980px;
	margin-right: auto;
	margin-left: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
}

.wp-caption-text {
	margin-top: 5px;
	color: var(--cm-muted);
	font-size: 12px;
}

.sticky {
	border-top: 3px solid var(--cm-gold);
}

.bypostauthor {
	outline: 0;
}

/* Responsive */
@media (max-width: 1180px) {
	.cm-header-main {
		flex-wrap: wrap;
		gap: 16px;
		padding-block: 12px;
	}

	.cm-menu-toggle {
		display: block;
		margin-left: auto;
	}

	.cm-primary-nav {
		display: none;
		order: 4;
		flex-basis: 100%;
		width: 100%;
		margin: 0;
	}

	.nav-open .cm-primary-nav {
		display: block;
		max-height: calc(100vh - 130px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.cm-primary-nav ul {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding-top: 8px;
		border-top: 1px solid var(--cm-header-line);
	}

	.cm-primary-nav a {
		flex-direction: row;
		justify-content: flex-start;
		height: auto;
		min-height: 52px;
		padding: 8px 10px;
		font-size: 13px;
		text-align: left;
		border-bottom: 1px solid var(--cm-header-line);
	}

	.cm-primary-nav ._mi {
		margin: 0 8px 0 0 !important;
	}

	.cm-primary-nav img._mi,
	.cm-primary-nav i._mi {
		width: 28px !important;
		height: 28px !important;
		max-width: 28px;
		max-height: 28px;
	}

	.cm-header-search {
		flex: 0 1 190px;
		width: auto;
	}
}

@media (max-width: 1020px) {
	.cm-layout {
		grid-template-columns: minmax(0, 1fr) min(270px, var(--cm-sidebar-width));
		gap: 24px;
	}

	.cm-home-intro-grid {
		gap: 30px;
	}

	.cm-post-grid {
		--cm-card-columns: 2;
	}
}

@media (max-width: 860px) {
	.cm-home-intro-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cm-home-intro--image::before {
		background-size: cover;
	}

	.cm-home-intro--image::after {
		background: rgba(255,255,255,.8);
	}

	.cm-page-head--image::before {
		background-size: cover;
	}

	.cm-page-head--image::after {
		background: rgba(255,255,255,.78);
	}

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

	.cm-filter-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cm-filter-form .cm-button {
		width: 100%;
	}

	.cm-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.cm-spec:nth-child(2) {
		border-right: 0;
	}

	.cm-spec:nth-child(-n+2) {
		border-bottom: 1px solid var(--cm-line);
	}

	.cm-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.cm-container {
		width: min(calc(100% - 24px), var(--cm-content));
	}

	.cm-header-main {
		min-height: 62px;
	}

	.cm-brand-name {
		font-size: 22px;
	}

	.cm-chest-mark {
		transform: scale(.9);
		transform-origin: left center;
	}

	.cm-header-search {
		order: 3;
		flex: 1 0 100%;
		width: 100%;
	}

	.cm-primary-nav ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cm-download-file {
		grid-template-columns: minmax(0, 1fr);
		gap: 11px;
	}

	.cm-download-file-name {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.cm-download-file-button {
		width: 100%;
	}

	.cm-subnav-label {
		display: none;
	}

	.cm-home-intro {
		padding-top: 31px;
	}

	.cm-home-title {
		font-size: 40px;
	}

	.cm-home-copy {
		font-size: 15px;
	}

	.cm-home-panel {
		padding: 17px;
	}

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

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

	.cm-single-header,
	.cm-entry-content,
	.cm-page-article {
		padding: 22px 18px;
	}

	.cm-single-title {
		font-size: 34px;
	}

	.comments-area {
		padding: 20px 17px;
	}

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

	.comment-form > p {
		grid-column: 1;
	}

	.comment-list .children {
		padding-left: 13px;
	}

	.comment-body {
		padding: 15px;
	}

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

	.cm-spec,
	.cm-spec:nth-child(2) {
		border-right: 0;
		border-bottom: 1px solid var(--cm-line);
	}

	.cm-spec:last-child {
		border-bottom: 0;
	}

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

@media (max-width: 480px) {
	.cm-filter-form {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 782px) {
	.admin-bar.cm-sticky-header .site-header {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
