/*
Theme Name: Blockforge
Theme URI: https://irfm-batna.com/
Author: IRFM Batna
Description: A clean, modern Minecraft downloads theme for addons, maps, shaders, and textures.
Version: 1.1.3
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: blockforge
*/

:root {
	--bg: #f7f8f4;
	--surface: #ffffff;
	--surface-soft: #eef1e8;
	--ink: #172019;
	--muted: #667068;
	--line: #dfe4dc;
	--green: #58c96d;
	--green-dark: #247a3b;
	--green-soft: #e3f7e7;
	--blue: #4d8ff7;
	--blue-soft: #e8f1ff;
	--purple: #8c67e8;
	--purple-soft: #f0ebff;
	--orange: #ef9f45;
	--orange-soft: #fff0df;
	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 30px;
	--shadow-sm: 0 8px 24px rgba(23, 32, 25, 0.06);
	--shadow: 0 18px 50px rgba(23, 32, 25, 0.1);
	--container: 1180px;
	--font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

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

button,
a {
	-webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(77, 143, 247, 0.45);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.55em;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.035em;
}

h1 {
	font-size: clamp(2.6rem, 6vw, 5.6rem);
}

h2 {
	font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
	font-size: 1.35rem;
}

p {
	margin: 0 0 1.2em;
}

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

.container--narrow {
	max-width: 820px;
}

.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 {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--surface);
	border-radius: 8px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
	color: var(--green-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.eyebrow > span {
	width: 22px;
	height: 2px;
	background: currentColor;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 21px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
	background: var(--green-dark);
	box-shadow: var(--shadow-sm);
}

.button--light {
	background: #fff;
	color: var(--ink);
}

.button--light:hover {
	background: var(--green-soft);
	color: var(--ink);
}

.button--wide {
	width: 100%;
}

.button svg {
	width: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid transparent;
	background: rgba(247, 248, 244, 0.9);
	backdrop-filter: blur(18px);
	transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.search-is-open {
	border-color: var(--line);
	box-shadow: 0 8px 30px rgba(23, 32, 25, 0.05);
}

.header-inner {
	display: flex;
	align-items: center;
	min-height: 76px;
}

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

.custom-logo {
	width: auto;
	max-height: 48px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-size: 1.15rem;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.brand__mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 10px;
	background: var(--green);
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.brand__mark svg {
	width: 25px;
	fill: var(--ink);
}

.primary-nav {
	margin-left: auto;
}

.primary-menu,
.footer-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-menu a {
	display: block;
	padding: 9px 13px;
	border-radius: 9px;
	color: #4d574f;
	font-size: 0.9rem;
	font-weight: 750;
	transition: color 160ms ease, background 160ms ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	background: var(--surface-soft);
	color: var(--ink);
}

.header-actions {
	display: flex;
	gap: 6px;
	margin-left: 14px;
}

.icon-button {
	display: grid;
	width: 42px;
	height: 42px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.icon-button:hover {
	background: var(--surface-soft);
}

.icon-button svg {
	width: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.menu-toggle {
	display: none;
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 2px 0;
	border-radius: 4px;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.site-search {
	border-top: 1px solid var(--line);
	background: var(--surface);
}

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

.site-search__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 16px;
}

.search-form {
	display: flex;
	flex: 1;
	gap: 10px;
}

.search-form label {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
}

.search-form svg {
	position: absolute;
	left: 15px;
	width: 19px;
	fill: none;
	stroke: var(--muted);
	stroke-linecap: round;
	stroke-width: 2;
}

.search-field {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px 10px 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
	color: var(--ink);
}

.search-submit,
.search-close {
	padding: 10px 18px;
	border: 0;
	border-radius: 11px;
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.search-close {
	background: var(--surface-soft);
	color: var(--ink);
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 95px;
	background:
		linear-gradient(90deg, rgba(88, 201, 109, 0.07) 1px, transparent 1px) 0 0 / 44px 44px,
		linear-gradient(rgba(88, 201, 109, 0.07) 1px, transparent 1px) 0 0 / 44px 44px,
		linear-gradient(140deg, #f7f8f4 42%, #edf5e8);
}

.hero::after {
	position: absolute;
	right: -10%;
	bottom: -210px;
	width: 600px;
	height: 600px;
	border: 80px solid rgba(88, 201, 109, 0.09);
	border-radius: 50%;
	content: "";
}

.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.8fr);
	align-items: center;
	gap: 7%;
}

.hero__content {
	max-width: 700px;
}

.hero h1 {
	max-width: 750px;
	margin-bottom: 22px;
}

.hero__text {
	max-width: 630px;
	margin-bottom: 32px;
	color: var(--muted);
	font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.hero-search {
	display: flex;
	align-items: center;
	max-width: 650px;
	padding: 7px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.hero-search > svg {
	flex: 0 0 auto;
	width: 21px;
	margin-left: 12px;
	fill: none;
	stroke: var(--muted);
	stroke-linecap: round;
	stroke-width: 2;
}

.hero-search input {
	min-width: 0;
	flex: 1;
	padding: 11px 12px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
}

.hero-search button {
	min-height: 45px;
	padding: 10px 20px;
	border: 0;
	border-radius: 11px;
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 21px;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.hero__trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hero__trust svg {
	width: 18px;
	fill: none;
	stroke: var(--green-dark);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
}

.hero-art {
	position: relative;
	min-height: 430px;
}

.hero-art__glow {
	position: absolute;
	inset: 8% 5% 8% 10%;
	border-radius: 50%;
	background: rgba(88, 201, 109, 0.22);
	filter: blur(45px);
}

.voxel {
	position: absolute;
	width: 170px;
	height: 170px;
	transform: rotate(-8deg) skewY(4deg);
	border: 8px solid rgba(23, 32, 25, 0.12);
	border-radius: 8px;
	box-shadow: 18px 22px 0 rgba(23, 32, 25, 0.12), var(--shadow);
}

.voxel::before,
.voxel span,
.voxel span::before,
.voxel span::after {
	position: absolute;
	content: "";
}

.voxel--grass {
	top: 25px;
	left: 27%;
	z-index: 3;
	background:
		linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.08) 50%) 0 0 / 34px 34px,
		linear-gradient(#72d86e 30%, #8a5a3d 30%);
}

.voxel--grass::before {
	inset: 50px 18px auto auto;
	width: 30px;
	height: 28px;
	background: #68c969;
	box-shadow: -95px 18px #6bca65, -48px 65px #65432e, 0 88px #6c4932;
}

.voxel--stone {
	right: 8%;
	bottom: 55px;
	z-index: 2;
	width: 145px;
	height: 145px;
	transform: rotate(12deg);
	background:
		linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.06) 50%) 0 0 / 29px 29px,
		#9aa09c;
}

.voxel--stone::before {
	inset: 20px;
	background: #858b87;
	box-shadow: 50px 20px #b1b5b2, -10px 60px #737a75, 45px 82px #c1c4c2;
}

.voxel--ore {
	bottom: 38px;
	left: 6%;
	z-index: 1;
	width: 125px;
	height: 125px;
	transform: rotate(-17deg);
	background: #67706a;
}

.voxel--ore::before {
	top: 17px;
	left: 22px;
	width: 22px;
	height: 22px;
	background: #54cae0;
	box-shadow: 48px 12px #54cae0, 20px 48px #54cae0, 60px 70px #54cae0, 6px 85px #54cae0;
}

.hero-art__badge {
	position: absolute;
	right: 3%;
	bottom: 20px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--shadow);
}

.hero-art__badge svg {
	width: 28px;
	fill: none;
	stroke: var(--green-dark);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.hero-art__badge span {
	display: grid;
	color: var(--muted);
	font-size: 0.74rem;
	line-height: 1.35;
}

.hero-art__badge strong {
	color: var(--ink);
	font-size: 0.85rem;
}

/* Sections and category cards */
.section {
	padding-block: 88px;
}

.section--categories {
	padding-bottom: 45px;
}

.section--latest {
	padding-top: 45px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.section-heading h2 {
	margin-bottom: 0;
}

.section-heading .eyebrow {
	margin-bottom: 9px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--ink);
	font-weight: 800;
	line-height: 1.2;
}

.text-link span {
	transition: transform 160ms ease;
}

.text-link:hover span {
	transform: translateX(4px);
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.category-card {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 122px;
	gap: 14px;
	padding: 22px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card::after {
	position: absolute;
	right: -30px;
	bottom: -45px;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: var(--category-soft, var(--green-soft));
	content: "";
	transition: transform 220ms ease;
}

.category-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: var(--shadow);
}

.category-card:hover::after {
	transform: scale(1.25);
}

.category-card__icon {
	display: grid;
	width: 50px;
	height: 50px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 14px;
	background: var(--category-soft, var(--green-soft));
	color: var(--category-color, var(--green-dark));
}

.category-card__icon svg {
	width: 27px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.category-card__content {
	display: grid;
	line-height: 1.4;
}

.category-card__content strong {
	font-size: 1.03rem;
}

.category-card__content > span {
	color: var(--muted);
	font-size: 0.78rem;
}

.category-card__arrow {
	position: absolute;
	top: 16px;
	right: 18px;
	color: var(--muted);
	font-weight: 800;
}

.category-card--maps {
	--category-soft: var(--blue-soft);
	--category-color: #286cce;
}

.category-card--shaders {
	--category-soft: var(--purple-soft);
	--category-color: #6b44cd;
}

.category-card--textures {
	--category-soft: var(--orange-soft);
	--category-color: #b86a15;
}

/* Post cards */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.post-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.post-card:hover {
	transform: translateY(-5px);
	border-color: transparent;
	box-shadow: var(--shadow);
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface-soft);
}

.post-card__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.16));
	content: "";
	opacity: 0;
	transition: opacity 180ms ease;
}

.post-card:hover .post-card__media::after {
	opacity: 1;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background:
		linear-gradient(135deg, transparent 25%, rgba(255, 255, 255, 0.4) 25% 50%, transparent 50% 75%, rgba(255, 255, 255, 0.4) 75%) 0 0 / 42px 42px,
		var(--green-soft);
}

.post-card__placeholder svg {
	width: 70px;
	fill: rgba(36, 122, 59, 0.35);
}

.post-card__body {
	padding: 20px 21px 21px;
}

.post-card__top,
.single-header__pills {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 13px;
}

.category-pill,
.version-pill {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 5px 9px;
	border-radius: 7px;
	background: var(--green-soft);
	color: var(--green-dark);
	font-size: 0.7rem;
	font-weight: 850;
	line-height: 1;
	text-transform: uppercase;
}

.category-pill--maps {
	background: var(--blue-soft);
	color: #286cce;
}

.category-pill--shaders {
	background: var(--purple-soft);
	color: #6b44cd;
}

.category-pill--textures {
	background: var(--orange-soft);
	color: #a45a0b;
}

.version-pill {
	background: var(--surface-soft);
	color: var(--muted);
}

.post-card__title {
	margin-bottom: 10px;
	font-size: clamp(1.18rem, 2vw, 1.4rem);
	letter-spacing: -0.025em;
}

.post-card__title a {
	background: linear-gradient(var(--green-dark), var(--green-dark)) 0 100% / 0 2px no-repeat;
	transition: background-size 200ms ease;
}

.post-card__title a:hover {
	background-size: 100% 2px;
}

.post-card__excerpt {
	display: -webkit-box;
	margin-bottom: 18px;
	overflow: hidden;
	color: var(--muted);
	font-size: 0.9rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #838a84;
	font-size: 0.75rem;
	font-weight: 650;
}

.cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 44px 48px;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--ink);
	color: #fff;
}

.cta::after {
	position: absolute;
	right: 12%;
	width: 160px;
	height: 160px;
	transform: rotate(25deg);
	border: 28px solid rgba(88, 201, 109, 0.15);
	content: "";
}

.cta > * {
	position: relative;
	z-index: 1;
}

.cta .eyebrow {
	color: var(--green);
}

.cta h2 {
	margin-bottom: 8px;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cta p:last-child {
	margin-bottom: 0;
	color: #b9c2bb;
}

/* Archives */
.archive-hero {
	padding: 72px 0 55px;
	border-bottom: 1px solid var(--line);
	background:
		linear-gradient(90deg, rgba(88, 201, 109, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(rgba(88, 201, 109, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--surface);
}

.archive-hero__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
}

.archive-hero h1 {
	margin-bottom: 13px;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.archive-hero p,
.archive-description {
	max-width: 650px;
	margin-bottom: 0;
	color: var(--muted);
	font-size: 1.05rem;
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.archive-hero__count {
	display: grid;
	min-width: 130px;
	padding: 18px 22px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--bg);
	text-align: center;
}

.archive-hero__count strong {
	font-size: 1.8rem;
	line-height: 1;
}

.archive-hero__count span {
	margin-top: 6px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 750;
	text-transform: uppercase;
}

.archive-content {
	padding-top: 55px;
}

.pagination {
	margin-top: 45px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 7px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	font-size: 0.85rem;
	font-weight: 800;
}

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

.archive-search {
	max-width: 620px;
	margin-top: 28px;
}

.empty-state {
	grid-column: 1 / -1;
	padding: 30px;
	border: 1px dashed #c9d1c9;
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
}

.empty-state--large {
	padding: 70px 30px;
}

.empty-state h2 {
	color: var(--ink);
}

/* Single post */
.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 22px 0;
	overflow: hidden;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 650;
	white-space: nowrap;
}

.breadcrumbs a {
	transition: color 160ms ease;
}

.breadcrumbs a:hover {
	color: var(--green-dark);
}

.breadcrumbs > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

.single-download {
	padding-bottom: 25px;
}

.single-header {
	padding: 50px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	background:
		linear-gradient(120deg, transparent 60%, rgba(88, 201, 109, 0.12)),
		var(--surface);
}

.single-header__main {
	max-width: 900px;
}

.single-header h1 {
	margin-bottom: 22px;
	font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.single-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 650;
}

.single-header__meta span,
.single-header__meta time {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.single-header__meta svg {
	width: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.single-featured {
	max-height: 650px;
	margin: 0;
	overflow: hidden;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	border-left: 1px solid var(--line);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	background: var(--surface-soft);
}

.single-featured img {
	width: 100%;
	max-height: 650px;
	object-fit: cover;
}

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	align-items: start;
	gap: 50px;
	padding: 58px 0 20px;
}

.single-main {
	min-width: 0;
}

.entry-content {
	color: #303a32;
	font-size: 1.04rem;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.8em;
	color: var(--ink);
}

.entry-content h2 {
	font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.entry-content h3 {
	font-size: 1.45rem;
}

.entry-content a {
	color: var(--green-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content .wp-block-button__link,
.entry-content a.download-button,
.entry-content .download-button a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover,
.entry-content a.download-button:hover,
.entry-content .download-button a:hover {
	background: var(--green-dark);
}

.entry-content img {
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.entry-content figure {
	margin: 34px 0;
}

.entry-content figcaption {
	margin-top: 9px;
	color: var(--muted);
	font-size: 0.78rem;
	text-align: center;
}

.entry-content blockquote {
	padding: 20px 24px;
	margin: 30px 0;
	border-left: 4px solid var(--green);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--green-soft);
	color: var(--ink);
	font-size: 1.05rem;
	font-weight: 650;
}

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

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

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

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

.download-sidebar {
	position: sticky;
	top: 100px;
	display: grid;
	gap: 14px;
}

.details-card {
	padding: 25px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.details-card h2 {
	padding-bottom: 16px;
	margin-bottom: 2px;
	border-bottom: 1px solid var(--line);
	font-size: 1.12rem;
}

.details-card dl {
	margin: 0 0 20px;
}

.details-card dl div {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.8rem;
}

.details-card dt {
	color: var(--muted);
}

.details-card dd {
	margin: 0;
	font-weight: 750;
	text-align: right;
}

.safety-note {
	display: flex;
	gap: 12px;
	padding: 18px;
	border-radius: var(--radius-sm);
	background: var(--green-soft);
}

.safety-note svg {
	width: 25px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--green-dark);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.safety-note strong {
	font-size: 0.85rem;
}

.safety-note p {
	margin: 4px 0 0;
	color: #55715b;
	font-size: 0.76rem;
	line-height: 1.5;
}

.download-box {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 27px;
	margin-top: 45px;
	border: 1px solid #baddc0;
	border-radius: var(--radius);
	background: var(--green-soft);
}

.download-box__icon {
	display: grid;
	width: 55px;
	height: 55px;
	place-items: center;
	border-radius: 15px;
	background: var(--green);
}

.download-box__icon svg {
	width: 28px;
	fill: none;
	stroke: var(--ink);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.download-box .eyebrow {
	margin-bottom: 5px;
	font-size: 0.65rem;
}

.download-box h2 {
	margin-bottom: 4px;
	font-size: 1.2rem;
}

.download-box p:last-child {
	margin: 0;
	color: #55715b;
	font-size: 0.78rem;
}

/* Legacy article download widget */
.entry-content .download-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	min-height: 138px;
	padding: clamp(18px, 4vw, 28px);
	margin: 42px 0;
	overflow: hidden;
	border: 1px solid #baddc0;
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, rgba(88, 201, 109, 0.1), transparent 55%),
		var(--surface);
	box-shadow: var(--shadow-sm);
	text-align: center;
	isolation: isolate;
}

.entry-content .download-container::before {
	position: absolute;
	right: -62px;
	bottom: -72px;
	z-index: -1;
	width: 180px;
	height: 180px;
	border: 28px solid rgba(88, 201, 109, 0.1);
	border-radius: 50%;
	content: "";
}

.entry-content .download-container [hidden] {
	display: none !important;
}

.entry-content #download-inner-container.download-btn,
.entry-content .download-container .download-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 66px;
	padding: 15px 22px;
	overflow: hidden;
	border: 0;
	border-radius: 15px;
	background: var(--ink);
	box-shadow: 0 10px 24px rgba(23, 32, 25, 0.17);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.entry-content #download-inner-container.download-btn::after,
.entry-content .download-container .download-btn::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.12) 50%, transparent 75%);
	content: "";
	transform: translateX(-100%);
	transition: transform 450ms ease;
}

.entry-content #download-inner-container.download-btn:hover,
.entry-content .download-container .download-btn:hover {
	transform: translateY(-2px);
	background: var(--green-dark);
	box-shadow: 0 14px 30px rgba(36, 122, 59, 0.22);
}

.entry-content #download-inner-container.download-btn:hover::after,
.entry-content .download-container .download-btn:hover::after {
	transform: translateX(100%);
}

.entry-content #download-inner-container.download-btn:active,
.entry-content .download-container .download-btn:active {
	transform: translateY(0);
}

.entry-content #download-inner-container.download-btn:focus-visible,
.entry-content .download-container .download-btn:focus-visible {
	outline: 3px solid rgba(88, 201, 109, 0.42);
	outline-offset: 4px;
}

.entry-content .download-btn i {
	position: relative;
	z-index: 1;
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	margin: 0;
	place-items: center;
	border-radius: 10px;
	background: var(--green);
	color: var(--ink);
	font-size: 1rem;
}

.entry-content .download-btn i svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.entry-content .download-btn__icon::before {
	display: none !important;
	content: none !important;
}

.entry-content .download-btn-title {
	position: relative;
	z-index: 1;
	width: auto;
	margin: 0 38px 0 14px;
	color: #fff;
	font-size: clamp(0.9rem, 2vw, 1.03rem);
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
}

.entry-content .countdown {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	justify-items: start;
	column-gap: 16px;
	width: min(100%, 470px);
	padding: 7px 0;
	margin: 0;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 700;
	text-align: left;
}

.entry-content .countdown span {
	--download-progress: 1;
	display: grid;
	position: relative;
	grid-row: 1 / 3;
	width: 72px;
	height: 72px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		var(--green) calc(var(--download-progress) * 1turn),
		var(--green-soft) 0
	);
	color: var(--green-dark);
	font-size: 1.65rem;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 5px 16px rgba(23, 32, 25, 0.08);
	transition: --download-progress 1s linear;
}

.entry-content .countdown span::before {
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background: var(--surface);
	content: "";
}

.entry-content .countdown-number {
	position: relative;
	z-index: 1;
	font-size: inherit;
	line-height: 1;
}

.entry-content .countdown strong {
	align-self: end;
	font-size: 1rem;
}

.entry-content .countdown small {
	align-self: start;
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 600;
}

.entry-content .pleaseWait-text {
	position: relative;
	padding-top: 50px;
	margin: 0;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 800;
}

.entry-content .pleaseWait-text::before {
	position: absolute;
	top: 0;
	left: calc(50% - 17px);
	width: 34px;
	height: 34px;
	border: 4px solid var(--green-soft);
	border-top-color: var(--green-dark);
	border-radius: 50%;
	content: "";
	animation: blockforge-spin 800ms linear infinite;
}

.entry-content .manualDownload-text {
	padding: 16px 18px;
	margin: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-soft);
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 650;
}

.entry-content .manualDownload-link {
	color: var(--green-dark);
	font-weight: 850;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry-content .download-container.has-download-error {
	border-color: #e7b6ad;
	background: #fff5f3;
}

.entry-content .download-container.has-download-error .countdown {
	display: block;
	color: #9a3025;
	text-align: center;
}

.entry-content .ad-container {
	margin: 24px 0;
}

@keyframes blockforge-spin {
	to {
		transform: rotate(360deg);
	}
}

@property --download-progress {
	syntax: "<number>";
	inherits: false;
	initial-value: 1;
}

.single-footer {
	margin-top: 38px;
}

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

.post-tags > span {
	align-self: center;
	margin-right: 5px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.post-tags a {
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: var(--surface);
	font-size: 0.72rem;
	font-weight: 700;
}

.related {
	padding-top: 55px;
	border-top: 1px solid var(--line);
}

/* Pages and comments */
.page-main {
	padding-block: 70px 90px;
}

.content-page {
	padding: clamp(28px, 6vw, 65px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.content-page__header {
	padding-bottom: 25px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--line);
}

.content-page__header h1 {
	margin-bottom: 0;
	font-size: clamp(2.3rem, 5vw, 4rem);
}

.comments-area {
	max-width: 800px;
	padding-top: 55px;
	border-top: 1px solid var(--line);
}

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

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

.comment-body {
	position: relative;
	padding: 24px;
	margin-bottom: 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

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

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata {
	margin: 7px 0 15px 59px;
	color: var(--muted);
	font-size: 0.72rem;
}

.reply {
	font-size: 0.78rem;
	font-weight: 800;
}

.comment-respond {
	padding: clamp(25px, 5vw, 42px);
	margin-top: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.comment-respond h2 {
	font-size: 1.6rem;
}

.comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

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

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.78rem;
	font-weight: 800;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	color: var(--ink);
}

.comment-form textarea {
	resize: vertical;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

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

.not-found {
	display: grid;
	min-height: 70vh;
	place-items: center;
	padding-block: 80px;
}

.not-found__inner {
	text-align: center;
}

.not-found__code {
	color: var(--green);
	font-size: clamp(7rem, 20vw, 15rem);
	font-weight: 950;
	letter-spacing: -0.1em;
	line-height: 0.8;
	text-shadow: 10px 10px 0 rgba(23, 32, 25, 0.1);
}

.not-found h1 {
	margin-top: 25px;
	font-size: clamp(2.3rem, 5vw, 4rem);
}

.not-found > p,
.not-found__inner > p {
	color: var(--muted);
}

.not-found__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	max-width: 650px;
	margin: 28px auto 0;
}

/* Footer */
.site-footer {
	padding-top: 65px;
	border-top: 1px solid var(--line);
	background: #111813;
	color: #f4f7f4;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding-bottom: 45px;
}

.footer-widget__title {
	font-size: 1rem;
}

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

.footer-widget a {
	color: #aeb9b0;
}

.footer-main {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 52px;
}

.brand--footer .brand__mark {
	background: var(--green);
}

.footer-brand p {
	max-width: 420px;
	margin: 15px 0 0;
	color: #9da89f;
	font-size: 0.88rem;
}

.footer-menu {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 9px 22px;
}

.footer-menu a {
	color: #c5cec7;
	font-size: 0.82rem;
	font-weight: 700;
}

.footer-menu a:hover {
	color: var(--green);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	border-top: 1px solid #2b352d;
	color: #7f8b81;
	font-size: 0.72rem;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom a {
	color: #c5cec7;
	font-weight: 750;
}

/* WordPress defaults */
.alignwide {
	width: min(1100px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

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

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

.sticky {
	position: relative;
}

.bypostauthor {
	background: var(--green-soft);
}

/* Responsive */
@media (max-width: 1000px) {
	.hero__grid {
		grid-template-columns: 1fr 340px;
		gap: 30px;
	}

	.hero-art {
		transform: scale(0.88);
		transform-origin: center right;
	}

	.category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.single-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 30px;
	}
}

@media (max-width: 780px) {
	.container {
		width: min(calc(100% - 30px), var(--container));
	}

	.header-inner {
		min-height: 68px;
	}

	.menu-toggle {
		display: grid;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		right: 15px;
		left: 15px;
		display: none;
		padding: 10px;
		border: 1px solid var(--line);
		border-radius: 14px;
		background: var(--surface);
		box-shadow: var(--shadow);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-menu {
		display: grid;
	}

	.primary-menu a {
		padding: 12px 13px;
	}

	.header-actions {
		margin-left: auto;
	}

	.site-search__inner {
		align-items: stretch;
		flex-direction: column;
	}

	.search-close {
		align-self: flex-end;
	}

	.hero {
		padding: 64px 0 75px;
	}

	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero-art {
		display: none;
	}

	.section {
		padding-block: 65px;
	}

	.section--categories {
		padding-bottom: 32px;
	}

	.section--latest {
		padding-top: 32px;
	}

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

	.single-header {
		padding: 35px 28px;
	}

	.single-layout {
		grid-template-columns: 1fr;
	}

	.download-sidebar {
		position: static;
		grid-row: 1;
	}

	.details-card dl {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 22px;
	}

	.download-box {
		grid-template-columns: auto 1fr;
	}

	.download-box .button {
		grid-column: 1 / -1;
	}

	.footer-main {
		flex-direction: column;
	}

	.footer-menu {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	h1 {
		font-size: 2.7rem;
	}

	.brand__text {
		max-width: 150px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.hero-search {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.hero-search input {
		width: calc(100% - 50px);
	}

	.hero-search button {
		width: 100%;
	}

	.hero__trust {
		gap: 12px;
	}

	.category-grid,
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.category-card {
		min-height: 105px;
	}

	.cta {
		align-items: flex-start;
		flex-direction: column;
		padding: 34px 28px;
	}

	.archive-hero {
		padding: 50px 0 40px;
	}

	.archive-hero__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.archive-hero__count {
		display: flex;
		align-items: baseline;
		gap: 8px;
		min-width: 0;
	}

	.single-header {
		padding: 28px 22px;
	}

	.single-header h1 {
		font-size: 2.25rem;
	}

	.single-layout {
		padding-top: 36px;
	}

	.details-card dl {
		display: block;
	}

	.download-box {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.download-box__icon {
		width: 48px;
		height: 48px;
	}

	.entry-content .download-container {
		min-height: 126px;
		padding: 16px;
	}

	.entry-content #download-inner-container.download-btn,
	.entry-content .download-container .download-btn {
		min-height: 62px;
		padding: 12px 14px;
	}

	.entry-content .download-btn i {
		width: 34px;
		height: 34px;
	}

	.entry-content .download-btn-title {
		margin: 0 8px 0 11px;
		text-align: left;
	}

	.entry-content .countdown {
		column-gap: 12px;
	}

	.entry-content .countdown span {
		width: 62px;
		height: 62px;
		font-size: 1.4rem;
	}

	.entry-content .countdown span::before {
		inset: 6px;
	}

	.comment-form {
		grid-template-columns: 1fr;
	}

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

	.not-found__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.search-form {
		flex-wrap: wrap;
	}

	.search-form .search-submit {
		width: 100%;
	}

	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
