:root {
	--site-green: #7fd320;
	--site-green-dark: #3f9700;
	--site-cyan: #00a7b5;
	--site-ink: #101417;
	--site-muted: #5c666d;
	--site-line: #dce3e8;
	--site-soft: #f4f7f8;
	--site-surface: #ffffff;
	--site-max: 1180px;
}

html {
	scroll-behavior: smooth;
}

body.malaga3d-theme {
	background: var(--site-surface);
	color: var(--site-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	text-rendering: optimizeLegibility;
}

.malaga3d-theme * {
	box-sizing: border-box;
}

.malaga3d-theme a {
	color: inherit;
}

.screen-reader-text,
.m3d-skip-link {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.m3d-skip-link:focus {
	background: #fff;
	border: 2px solid var(--site-cyan);
	clip: auto;
	clip-path: none;
	color: var(--site-ink);
	height: auto;
	left: 16px;
	padding: 10px 14px;
	top: 16px;
	width: auto;
	z-index: 1000;
}

.m3d-site-header {
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid rgba(220, 227, 232, 0.86);
	backdrop-filter: blur(18px);
	position: sticky;
	top: 0;
	z-index: 50;
}

.m3d-site-header__inner {
	align-items: center;
	display: flex;
	gap: 22px;
	justify-content: space-between;
	margin-inline: auto;
	max-width: calc(var(--site-max) + 80px);
	min-height: 72px;
	padding-inline: clamp(18px, 4vw, 40px);
}

.m3d-brand,
.custom-logo-link {
	align-items: center;
	display: inline-flex;
	gap: 10px;
	min-height: 44px;
	text-decoration: none;
}

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

.m3d-brand__mark {
	align-items: center;
	background: #101417;
	border-radius: 7px;
	color: var(--site-green);
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 900;
	height: 40px;
	justify-content: center;
	width: 54px;
}

.m3d-brand__text {
	color: var(--site-ink);
	font-size: 1.06rem;
	font-weight: 850;
	letter-spacing: 0;
}

.m3d-site-nav {
	align-items: center;
	display: flex;
	margin-left: auto;
}

.m3d-site-nav__list,
.m3d-footer-nav {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.m3d-site-nav__list a {
	border-radius: 8px;
	color: #2f383e;
	display: inline-flex;
	font-size: 0.94rem;
	font-weight: 750;
	min-height: 44px;
	padding: 12px 13px;
	text-decoration: none;
}

.m3d-site-nav__list a:hover,
.m3d-site-nav__list a:focus-visible {
	background: var(--site-soft);
	color: var(--site-ink);
	outline: 0;
}

.m3d-header-cta,
.m3d-page-button {
	align-items: center;
	background: var(--site-ink);
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-weight: 850;
	justify-content: center;
	min-height: 44px;
	padding: 11px 16px;
	text-decoration: none;
}

.m3d-header-cta:hover,
.m3d-page-button:hover {
	background: #000;
}

.m3d-menu-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid var(--site-line);
	border-radius: 8px;
	display: none;
	height: 44px;
	justify-content: center;
	padding: 0;
	position: relative;
	width: 44px;
}

.m3d-menu-toggle span:not(.screen-reader-text) {
	background: var(--site-ink);
	border-radius: 999px;
	display: block;
	height: 2px;
	left: 12px;
	position: absolute;
	transition: transform 180ms ease, opacity 180ms ease;
	width: 20px;
}

.m3d-menu-toggle span:nth-child(1) {
	transform: translateY(-7px);
}

.m3d-menu-toggle span:nth-child(3) {
	transform: translateY(7px);
}

.m3d-site-header.is-open .m3d-menu-toggle span:nth-child(1) {
	transform: rotate(45deg);
}

.m3d-site-header.is-open .m3d-menu-toggle span:nth-child(2) {
	opacity: 0;
}

.m3d-site-header.is-open .m3d-menu-toggle span:nth-child(3) {
	transform: rotate(-45deg);
}

.m3d-site-main {
	min-height: 70dvh;
}

.malaga3d-front .m3d-site-main {
	padding-top: 0;
}

.m3d-content-shell {
	margin-inline: auto;
	max-width: var(--site-max);
	padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 40px);
}

.m3d-entry {
	margin-inline: auto;
	max-width: 840px;
}

.m3d-entry--center {
	text-align: center;
}

.m3d-entry__header {
	margin-bottom: 32px;
}

.m3d-entry__header h1,
.m3d-archive-header h1,
.m3d-fallback h1,
.m3d-fallback h2 {
	color: var(--site-ink);
	font-weight: 820;
	letter-spacing: 0;
	line-height: 1.08;
	margin: 0;
	text-wrap: balance;
}

.m3d-entry__header h1,
.m3d-archive-header h1 {
	font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.m3d-entry__meta,
.m3d-archive-label {
	color: var(--site-green-dark);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.m3d-entry__content {
	color: #2f383e;
	font-size: 1.05rem;
}

.m3d-entry__content > * {
	margin-bottom: 1.25em;
}

.m3d-entry__content img,
.m3d-entry__thumb img,
.m3d-post-card__thumb img {
	border-radius: 8px;
	height: auto;
	max-width: 100%;
}

.m3d-entry__thumb {
	margin: 0 0 28px;
}

.m3d-archive-header {
	margin-bottom: 34px;
	max-width: 820px;
}

.m3d-archive-description {
	color: var(--site-muted);
	font-size: 1.05rem;
	margin-top: 14px;
}

.m3d-post-list {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, 1fr);
}

.m3d-post-card {
	background: #fff;
	border: 1px solid var(--site-line);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	padding: 22px;
}

.m3d-post-card h2 {
	font-size: 1.28rem;
	line-height: 1.2;
	margin: 0 0 12px;
}

.m3d-post-card h2 a,
.m3d-read-more {
	text-decoration: none;
}

.m3d-post-card p {
	color: var(--site-muted);
	margin: 0 0 18px;
}

.m3d-read-more {
	color: #0c6f00;
	font-weight: 850;
	margin-top: auto;
}

.navigation.pagination {
	margin-top: 36px;
}

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

.page-numbers {
	border: 1px solid var(--site-line);
	border-radius: 8px;
	display: inline-flex;
	min-height: 40px;
	min-width: 40px;
	padding: 8px 12px;
	text-decoration: none;
}

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

.m3d-fallback {
	background: #fff;
}

.m3d-fallback-hero {
	align-items: center;
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 36%, rgba(255, 255, 255, 0.38) 72%, rgba(255, 255, 255, 0.08) 100%),
		var(--fallback-hero);
	background-position: center;
	background-size: cover;
	display: flex;
	min-height: min(760px, 90dvh);
	padding: clamp(72px, 11vw, 138px) clamp(20px, 5vw, 72px);
}

.m3d-fallback-hero__content {
	max-width: 720px;
}

.m3d-fallback-eyebrow {
	color: var(--site-green-dark);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.m3d-fallback h1 {
	font-size: clamp(2.7rem, 6vw, 6.2rem);
	max-width: 10.5em;
}

.m3d-fallback h2 {
	font-size: clamp(2rem, 4vw, 4rem);
}

.m3d-fallback-hero p:not(.m3d-fallback-eyebrow) {
	color: #2f383e;
	font-size: clamp(1.05rem, 1.6vw, 1.32rem);
	margin: 22px 0 0;
	max-width: 620px;
}

.m3d-fallback-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.m3d-fallback-button {
	align-items: center;
	background: var(--site-ink);
	border: 1px solid var(--site-ink);
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-weight: 850;
	min-height: 48px;
	padding: 12px 18px;
	text-decoration: none;
}

.m3d-fallback-button--light {
	background: rgba(255, 255, 255, 0.84);
	border-color: rgba(16, 20, 23, 0.16);
	color: var(--site-ink);
}

.m3d-fallback-section,
.m3d-fallback-contact {
	margin-inline: auto;
	max-width: var(--site-max);
	padding: clamp(58px, 8vw, 96px) clamp(20px, 4vw, 40px);
}

.m3d-fallback-section__header {
	margin-bottom: 30px;
	max-width: 760px;
}

.m3d-fallback-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, 1fr);
}

.m3d-fallback-grid article {
	background: var(--site-soft);
	border: 1px solid var(--site-line);
	border-radius: 8px;
	padding: 24px;
}

.m3d-fallback-grid h3 {
	font-size: 1.15rem;
	margin: 0 0 10px;
}

.m3d-fallback-grid p,
.m3d-fallback-contact p {
	color: var(--site-muted);
	margin: 0;
}

.m3d-fallback-contact {
	border-top: 1px solid var(--site-line);
}

.m3d-fallback-contact a {
	color: var(--site-ink);
	font-weight: 800;
}

.m3d-site-footer {
	background: #101417;
	color: #fff;
	padding: 42px clamp(20px, 4vw, 40px);
}

.m3d-site-footer__inner {
	align-items: center;
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr auto auto;
	margin-inline: auto;
	max-width: var(--site-max);
}

.m3d-site-footer .m3d-brand__mark {
	background: #fff;
	color: var(--site-green-dark);
}

.m3d-site-footer .m3d-brand__text,
.m3d-site-footer .custom-logo-link {
	color: #fff;
}

.m3d-site-footer p {
	color: rgba(255, 255, 255, 0.72);
	margin: 10px 0 0;
}

.m3d-footer-nav {
	gap: 16px;
}

.m3d-footer-nav a {
	color: rgba(255, 255, 255, 0.78);
	font-weight: 750;
	text-decoration: none;
}

.m3d-footer-nav a:hover {
	color: #fff;
}

.m3d-site-footer__copy {
	font-weight: 750;
	margin: 0;
	text-align: right;
}

@media (max-width: 980px) {
	.m3d-menu-toggle {
		display: inline-flex;
		order: 3;
	}

	.m3d-header-cta {
		margin-left: auto;
		order: 2;
	}

	.m3d-site-nav {
		background: #fff;
		border: 1px solid var(--site-line);
		border-radius: 8px;
		box-shadow: 0 18px 45px rgba(16, 20, 23, 0.12);
		display: none;
		left: 18px;
		padding: 10px;
		position: absolute;
		right: 18px;
		top: calc(100% + 8px);
	}

	.m3d-site-header.is-open .m3d-site-nav {
		display: block;
	}

	.m3d-site-nav__list {
		display: grid;
		gap: 2px;
	}

	.m3d-site-nav__list a {
		width: 100%;
	}

	.m3d-post-list,
	.m3d-fallback-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.m3d-site-footer__inner {
		grid-template-columns: 1fr;
	}

	.m3d-site-footer__copy {
		text-align: left;
	}
}

@media (max-width: 680px) {
	.m3d-site-header__inner {
		gap: 10px;
		min-height: 66px;
	}

	.m3d-brand__mark {
		height: 38px;
		width: 50px;
	}

	.m3d-brand__text {
		font-size: 1rem;
	}

	.m3d-header-cta {
		display: none;
	}

	.m3d-fallback-hero {
		background-image:
			linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 54%, rgba(255, 255, 255, 0.55) 100%),
			var(--fallback-hero);
		background-position: 58% center;
		min-height: 690px;
	}

	.m3d-fallback h1 {
		font-size: clamp(2.4rem, 14vw, 4.1rem);
	}

	.m3d-fallback-actions,
	.m3d-fallback-button {
		width: 100%;
	}

	.m3d-post-list,
	.m3d-fallback-grid {
		grid-template-columns: 1fr;
	}

	.m3d-footer-nav {
		flex-direction: column;
		gap: 8px;
	}
}

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

	.m3d-menu-toggle span:not(.screen-reader-text) {
		transition: none;
	}
}
