* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--fmz-bg);
	color: var(--fmz-text);
	font-family: var(--fmz-font-family);
	font-size: var(--fmz-body-font-size);
	line-height: var(--fmz-body-line-height);
	letter-spacing: 0;
}

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

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

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

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: #000;
	color: #fff;
	clip: auto;
}

.fmz-wrap,
.site-footer__inner {
	width: min(100% - 32px, var(--fmz-site-width));
	margin-inline: auto;
}

.site-header__inner {
	width: min(100% - 32px, var(--fmz-header-width));
	margin-inline: auto;
}

.fmz-narrow {
	width: min(100% - 32px, var(--fmz-content-width));
}

.site-header {
	position: var(--fmz-header-position);
	top: 0;
	z-index: 100;
	background: var(--fmz-header-bg);
	border-bottom: 1px solid var(--fmz-border);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr minmax(220px, 320px);
	align-items: center;
	gap: 24px;
	min-height: 56px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	min-width: 160px;
}

.site-brand__logo {
	display: block;
	max-width: 220px;
	max-height: 48px;
	object-fit: contain;
}

.site-brand__text {
	font-size: 22px;
	font-weight: 800;
}

.site-nav ul {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 18px 0;
	font-weight: 700;
	font-size: var(--fmz-header-menu-font-size);
}

.site-nav a:hover {
	color: var(--fmz-accent);
}

.site-search {
	display: grid;
	grid-template-columns: 1fr 42px;
	align-items: center;
}

.site-search input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--fmz-border);
	background: var(--fmz-surface);
	font: inherit;
}

.site-search button {
	height: 40px;
	border: 0;
	background: #53606b;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.site-nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--fmz-border);
	background: #fff;
	cursor: pointer;
}

.site-nav-toggle__bar,
.site-nav-toggle__bar::before,
.site-nav-toggle__bar::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--fmz-text);
	content: "";
}

.site-nav-toggle__bar::before {
	transform: translateY(-7px);
}

.site-nav-toggle__bar::after {
	transform: translateY(5px);
}

.site-nav-backdrop {
	display: none;
}

.site-nav-close {
	display: none;
}

.fmz-page-header {
	padding: 32px 0 20px;
	border-bottom: 1px solid var(--fmz-border);
}

.fmz-page-header h1 {
	margin: 0;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.25;
}

.fmz-page-header p,
.fmz-archive-description {
	margin: 8px 0 0;
	color: var(--fmz-muted);
}

.fmz-section {
	padding: 28px 0 56px;
}

.fmz-section-title {
	margin: 28px 0 16px;
	font-size: 22px;
}

.fmz-term-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin-bottom: 24px;
	border: 1px solid var(--fmz-border);
}

.fmz-term-tab {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 14px;
	border-right: 1px solid var(--fmz-border);
	border-bottom: 1px solid var(--fmz-border);
	background: #eee;
	font-weight: 700;
}

.fmz-term-tab.is-active,
.fmz-term-tab:hover {
	background: #000;
	color: #fff;
}

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

.fmz-category-section {
	background: var(--fmz-category-inner-bg, transparent);
}

.fmz-home-section {
	background: var(--fmz-home-inner-bg, transparent);
}

.fmz-category-section .fmz-post-grid {
	grid-template-columns: repeat(var(--fmz-category-columns, var(--fmz-desktop-columns)), minmax(0, 1fr));
	gap: var(--fmz-category-card-gap, var(--fmz-card-gap));
}

.fmz-home-section .fmz-post-grid {
	grid-template-columns: repeat(var(--fmz-home-columns, var(--fmz-desktop-columns)), minmax(0, 1fr));
	gap: var(--fmz-home-card-gap, var(--fmz-card-gap));
}

.fmz-card {
	margin: 0;
	background: var(--fmz-card-bg);
	border-radius: var(--fmz-card-radius);
	overflow: hidden;
}

.fmz-category-section .fmz-card {
	background: var(--fmz-category-card-bg, var(--fmz-card-bg));
	border-radius: var(--fmz-category-card-radius, var(--fmz-card-radius));
}

.fmz-home-section .fmz-card {
	background: var(--fmz-home-card-bg, var(--fmz-card-bg));
	border-radius: var(--fmz-home-card-radius, var(--fmz-card-radius));
}

.fmz-card__link {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 12px 16px;
	color: var(--fmz-card-text);
	font-weight: 700;
	line-height: 1.45;
}

.fmz-category-section .fmz-card__link {
	min-height: var(--fmz-category-card-height, 54px);
	padding: var(--fmz-category-card-padding-y, 12px) var(--fmz-category-card-padding-x, 16px);
	color: var(--fmz-category-card-text, var(--fmz-card-text));
}

.fmz-home-section .fmz-card__link {
	min-height: var(--fmz-home-card-height, 54px);
	padding: var(--fmz-home-card-padding-y, 12px) var(--fmz-home-card-padding-x, 16px);
	color: var(--fmz-home-card-text, var(--fmz-card-text));
}

.fmz-category-section .fmz-card__title {
	display: block;
	margin: var(--fmz-category-title-margin-y, 0) var(--fmz-category-title-margin-x, 0);
	font-size: var(--fmz-category-title-font-size, inherit);
	line-height: var(--fmz-category-title-line-height, 1.45);
	color: var(--fmz-category-card-text, var(--fmz-card-text));
}

.fmz-home-section .fmz-card__title {
	display: block;
	margin: var(--fmz-home-title-margin-y, 0) var(--fmz-home-title-margin-x, 0);
	font-size: var(--fmz-home-title-font-size, inherit);
	line-height: var(--fmz-home-title-line-height, 1.45);
	color: var(--fmz-home-card-text, var(--fmz-card-text));
}

.fmz-card__link:hover {
	filter: brightness(0.92);
}

.fmz-single-header {
	padding: 24px 0 20px;
	border-bottom: 1px solid var(--fmz-border);
	text-align: center;
}

.fmz-single-header .fmz-narrow {
	width: min(100% - 32px, var(--fmz-title-width));
}

.fmz-single-header h1 {
	margin: 8px 0 12px;
	font-size: clamp(28px, 3vw, var(--fmz-title-font-size));
	line-height: var(--fmz-title-line-height);
}

.fmz-single-header .fmz-block-post-title {
	margin-top: 8px;
	margin-bottom: 12px;
}

.fmz-breadcrumbs {
	color: #d44d6d;
	font-size: 13px;
}

.fmz-single-layout {
	display: grid;
	grid-template-columns: minmax(0, var(--fmz-content-width)) var(--fmz-sidebar-width);
	justify-content: center;
	align-items: start;
	gap: 24px;
	padding-top: 28px;
	padding-bottom: 60px;
}

.fmz-single-layout--page {
	display: block;
	width: min(100% - 32px, var(--fmz-content-width));
}

.fmz-single-layout--one-column {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	width: min(100% - 32px, var(--fmz-content-width));
	margin-inline: auto;
}

.fmz-single-layout--wide {
	width: min(100% - 32px, 1080px);
}

.fmz-single-layout--one-column .fmz-entry {
	width: 100%;
	max-width: var(--fmz-content-width);
	margin-inline: auto;
}

.fmz-single-layout--wide .fmz-entry {
	max-width: 1080px;
}

.fmz-entry {
	min-width: 0;
}

.fmz-entry p {
	margin: 20px 0 0;
	padding-inline: 10px;
}

.fmz-entry a:not(.wp-block-button__link) {
	color: var(--fmz-accent);
	word-break: break-all;
	background-image: linear-gradient(to right, #09203f, #537895);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 0.2em;
	transition: all 0.2s ease;
}

.fmz-entry a:not(.wp-block-button__link):hover {
	color: #fff;
	background-size: 100% 100%;
	border-radius: 8px;
}

.fmz-entry h2 {
	position: relative;
	display: block;
	margin: 24px 0 12px;
	padding: 10px 15px;
	border: 0;
	background: var(--fmz-heading-bg);
	color: var(--fmz-heading-text);
	font-size: 1.5em;
	line-height: 1.4;
}

.fmz-entry h3 {
	margin: 1em 0 0.65em;
	border-bottom: 1px solid rgba(53, 86, 129, 0.3);
	color: #355681;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.6;
}

.fmz-entry h4 {
	display: inline-block;
	padding: 2px 8px;
	background: #eee;
	border-radius: 8px;
}

.fmz-entry figure {
	margin: 20px 0;
}

.fmz-sidebar {
	position: static;
	align-self: stretch;
	display: grid;
	align-content: start;
	gap: 24px;
}

.fmz-sidebar-item {
	min-width: 0;
}

.fmz-sidebar-item--sticky {
	position: sticky;
	top: 84px;
	align-self: start;
	z-index: 2;
}

.site-footer {
	border-top: 1px solid var(--fmz-border);
	padding: 28px 0;
	color: var(--fmz-muted);
	font-size: 14px;
}

.nav-links,
.page-links {
	margin-top: 28px;
}

.fmz-app-cta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
	padding: 24px 28px;
	border: 1px solid rgba(62, 88, 152, 0.08);
	border-radius: 16px;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015), 0 2px 8px rgba(36, 48, 68, 0.01);
}

.fmz-app-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--fmz-accent, #3e5898) 0%, #5373c4 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(62, 88, 152, 0.18);
}

.fmz-app-cta__body {
	min-width: 0;
}

.fmz-app-cta__body strong {
	display: block;
	color: var(--fmz-text, #1e293b);
	font-size: 17.5px;
	font-weight: 800;
	line-height: 1.4;
}

.fmz-app-cta__body p {
	margin: 6px 0 0;
	color: var(--fmz-muted, #64748b);
	font-size: 14px;
	line-height: 1.5;
}

.fmz-entry a.fmz-app-cta__button:not(.wp-block-button__link),
.fmz-app-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 10px;
	background: var(--fmz-accent, #3e5898);
	background-image: none !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
	word-break: keep-all;
	box-shadow: 0 4px 12px rgba(62, 88, 152, 0.15);
	transition: all 0.2s ease;
}

.fmz-entry a.fmz-app-cta__button:not(.wp-block-button__link):visited,
.fmz-entry a.fmz-app-cta__button:not(.wp-block-button__link):hover,
.fmz-entry a.fmz-app-cta__button:not(.wp-block-button__link):focus,
.fmz-app-cta__button:hover,
.fmz-app-cta__button:focus {
	background: #2b4074;
	background-image: none !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(62, 88, 152, 0.25);
	transform: translateY(-1px);
}

.comments-area {
	margin-top: 40px;
	padding: 24px;
	border: 1px solid var(--fmz-border);
	background: #fff;
	color: var(--fmz-text);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 18px;
	font-size: 20px;
	line-height: 1.4;
}

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

.comment-list .children {
	margin: 14px 0 0 28px;
	padding: 0;
	list-style: none;
}

.comment-body {
	position: relative;
	margin-bottom: 14px;
	padding: 16px;
	border: 1px solid var(--fmz-border);
	background: #fafafa;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	font-weight: 700;
}

.comment-author .avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.comment-meta,
.comment-metadata,
.comment-awaiting-moderation,
.logged-in-as,
.comment-notes {
	color: var(--fmz-muted);
	font-size: 13px;
}

.comment-content {
	margin-top: 12px;
	line-height: 1.7;
	word-break: break-word;
}

.reply {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
}

.fmz-entry .comments-area a,
.fmz-entry .comment-respond a {
	color: var(--fmz-accent);
	background-image: none;
	text-decoration: none;
}

.comment-respond {
	margin-top: 24px;
}

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form p {
	margin: 0;
	padding: 0;
}

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

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	border: 1px solid var(--fmz-border);
	background: #fff;
	color: var(--fmz-text);
	font: inherit;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	height: 42px;
	padding: 0 12px;
}

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

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.fmz-comment-submit {
	min-height: 42px;
	padding: 0 18px;
	border: 0;
	background: #333;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.fmz-comment-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 1024px) {
	body.has-mobile-nav {
		overflow: hidden;
	}

	.site-header__inner {
		grid-template-columns: auto auto;
		gap: 14px;
		padding: 8px 0;
	}

	.site-nav-toggle {
		display: block;
		justify-self: end;
		position: relative;
		z-index: 1200;
	}

	.site-nav {
		position: fixed !important;
		top: 0;
		left: 0;
		z-index: 1100;
		display: block !important;
		grid-column: auto;
		width: min(82vw, 320px);
		height: 100vh;
		padding: 0;
		background: #191919;
		border-right: 1px solid var(--fmz-border);
		box-shadow: 18px 0 36px rgba(0, 0, 0, 0.16);
		overflow-y: auto;
		transform: translateX(-105%);
		transition: transform 0.2s ease;
	}

	.site-nav.is-open {
		transform: translateX(0) !important;
	}

	.site-nav-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin: 6px 10px 8px auto;
		border: 0;
		border-radius: 50%;
		background: #000;
		color: #fff;
		font-size: 26px;
		font-weight: 700;
		line-height: 1;
		cursor: pointer;
	}

	.site-nav-backdrop.is-open {
		position: fixed;
		inset: 0;
		z-index: 1000;
		display: block;
		background: rgba(0, 0, 0, 0.32);
	}

	.site-nav ul {
		display: grid;
		gap: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.16);
	}

	.site-nav a {
		padding: 18px 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.16);
		color: #fff;
		font-size: max(16px, var(--fmz-header-menu-font-size));
	}

	.site-search {
		grid-column: 1 / -1;
	}

	.fmz-post-grid {
		grid-template-columns: repeat(var(--fmz-tablet-columns), minmax(0, 1fr));
	}

	.fmz-category-section .fmz-post-grid {
		grid-template-columns: repeat(var(--fmz-tablet-columns), minmax(0, 1fr));
	}

	.fmz-home-section .fmz-post-grid {
		grid-template-columns: repeat(var(--fmz-tablet-columns), minmax(0, 1fr));
	}

	.fmz-single-layout {
		grid-template-columns: minmax(0, var(--fmz-content-width));
	}

	.fmz-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.fmz-wrap,
	.site-footer__inner,
	.fmz-narrow {
		width: min(100% - 20px, var(--fmz-site-width));
	}

	.site-header__inner {
		width: min(100% - 20px, var(--fmz-header-width));
	}

	.site-brand__logo {
		max-width: 180px;
	}

	.fmz-post-grid {
		grid-template-columns: repeat(var(--fmz-mobile-columns), minmax(0, 1fr));
	}

	.fmz-category-section .fmz-post-grid {
		grid-template-columns: repeat(var(--fmz-mobile-columns), minmax(0, 1fr));
	}

	.fmz-home-section .fmz-post-grid {
		grid-template-columns: repeat(var(--fmz-mobile-columns), minmax(0, 1fr));
	}

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

	.fmz-single-header {
		text-align: left;
	}

	.fmz-entry p {
		padding-inline: 0;
	}

	.fmz-app-cta {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 16px;
		padding: 20px;
		border-radius: 14px;
	}

	.fmz-app-cta__icon {
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.fmz-app-cta__body strong {
		font-size: 16px;
	}

	.fmz-app-cta__button {
		grid-column: 1 / -1;
		width: 100%;
		margin-top: 8px;
		min-height: 42px;
	}
}

/* Worldview Related Posts Grid */
.fmz-worldview-related {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--fmz-border, #e2e8f0);
}

.fmz-worldview-related__title {
	margin: 0 0 18px;
	color: var(--fmz-text, #1e293b);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
}

.fmz-worldview-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.fmz-worldview-related__item {
	display: flex;
	align-items: center;
	padding: 18px 20px;
	background: var(--fmz-surface, #f8fafc);
	border: 1px solid var(--fmz-border, #e2e8f0);
	border-radius: 12px;
	color: var(--fmz-text, #1e293b) !important;
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.45;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
	background-image: none !important; /* Prevent standard link background underline */
}

.fmz-worldview-related__item:hover {
	border-color: var(--fmz-accent, #3e5898);
	background: #ffffff;
	box-shadow: 0 8px 20px rgba(62, 88, 152, 0.06);
	transform: translateY(-2px);
	color: var(--fmz-accent, #3e5898) !important;
}

.fmz-worldview-related__post-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 900px) {
	.fmz-worldview-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 560px) {
	.fmz-worldview-related__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.fmz-worldview-related__item {
		padding: 14px 16px;
		font-size: 14px;
	}
}

