/*
Theme Name: Comparix Theme
Theme URI: https://devshujon.com/comparix-theme/
Author: Dev Shujon
Author URI: https://devshujon.com
Description: Lightweight WordPress theme with Elementor and Gutenberg support. Optimized as a companion for Comparix Pro comparison sites and works as a standalone theme for blogs and business sites.
Version: 2.0.0-rc.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comparix-theme
Tags: blog, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, one-column, block-styles, wide-blocks, translation-ready
*/


:root {
	--cx-theme-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cx-theme-font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

	--cx-theme-container: 1200px;
	--cx-theme-gutter: clamp(1rem, 3vw, 1.5rem);
	--cx-theme-header-h: 64px;
	--cx-theme-header-h-scrolled: 56px;
	--cx-theme-header-icon: 40px;
	--cx-theme-header-icon-mobile: 36px;
	--cx-theme-header-gap: 0.5rem;
	--cx-theme-announcement-h: 0px;

	--cx-theme-primary: #2563eb;
	--cx-theme-primary-hover: #1d4ed8;
	--cx-theme-accent: #0ea5e9;

	--cx-theme-bg: #ffffff;
	--cx-theme-surface: #f8fafc;
	--cx-theme-text: #0f172a;
	--cx-theme-text-muted: #64748b;
	--cx-theme-border: #e2e8f0;
	--cx-theme-link: var(--cx-theme-primary);
	--cx-theme-link-hover: var(--cx-theme-primary-hover);

	--cx-theme-radius: 8px;
	--cx-theme-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
	--cx-theme-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
	--cx-theme-transition: 0.2s ease;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	html:not(.cx-theme-scheme-light):not(.cx-theme-scheme-dark),
	body:not(.cx-theme-scheme-light):not(.cx-theme-scheme-dark) {
		--cx-theme-bg: #0b1120;
		--cx-theme-surface: #111827;
		--cx-theme-text: #f1f5f9;
		--cx-theme-text-muted: #94a3b8;
		--cx-theme-border: #1e293b;
		--cx-theme-link: #60a5fa;
		--cx-theme-link-hover: #93c5fd;
		--cx-theme-primary: #3b82f6;
		--cx-theme-primary-hover: #60a5fa;
		--cx-theme-accent: #38bdf8;
		--cx-theme-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
		--cx-theme-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

		color-scheme: dark;
	}
}

html.cx-theme-scheme-dark,
body.cx-theme-scheme-dark {
	--cx-theme-bg: #0b1120;
	--cx-theme-surface: #111827;
	--cx-theme-text: #f1f5f9;
	--cx-theme-text-muted: #94a3b8;
	--cx-theme-border: #1e293b;
	--cx-theme-link: #60a5fa;
	--cx-theme-link-hover: #93c5fd;
	--cx-theme-primary: #3b82f6;
	--cx-theme-primary-hover: #60a5fa;
	--cx-theme-accent: #38bdf8;
	--cx-theme-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	--cx-theme-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
	color-scheme: dark;
}

html.cx-theme-scheme-light,
body.cx-theme-scheme-light {
	--cx-theme-bg: #ffffff;
	--cx-theme-surface: #f8fafc;
	--cx-theme-text: #0f172a;
	--cx-theme-text-muted: #64748b;
	--cx-theme-border: #e2e8f0;
	--cx-theme-link: var(--cx-theme-primary);
	--cx-theme-link-hover: var(--cx-theme-primary-hover);
	--cx-theme-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
	--cx-theme-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
	color-scheme: light;
}

/* ==========================================================================
   Base — avoid html/body height:100% (breaks Comparix compare scroll).
   ========================================================================== */

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

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	font-family: var(--cx-theme-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cx-theme-text);
	background: var(--cx-theme-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--cx-theme-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--cx-theme-transition);
}

a:hover,
a:focus-visible {
	color: var(--cx-theme-link-hover);
}

:focus-visible {
	outline: 2px solid var(--cx-theme-primary);
	outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.cx-theme-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
}

.cx-theme-main {
	flex: 1 0 auto;
	width: 100%;
}

.cx-theme-container {
	width: 100%;
	max-width: var(--cx-theme-container);
	margin-inline: auto;
	padding-inline: var(--cx-theme-gutter);
}

.cx-theme-main--full .cx-theme-container,
.cx-theme-main--full .cx-theme-content {
	max-width: none;
	padding-inline: 0;
}

.cx-theme-content {
	padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Header
   ========================================================================== */

.cx-theme-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--cx-theme-bg) 88%, transparent);
	border-bottom: 1px solid transparent;
	box-shadow: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease;
}

.cx-theme-header--scrolled {
	border-bottom-color: var(--cx-theme-border);
	box-shadow: var(--cx-theme-shadow);
	background: color-mix(in srgb, var(--cx-theme-bg) 96%, transparent);
}

.cx-theme-header--scrolled .cx-theme-header__inner {
	min-height: var(--cx-theme-header-h-scrolled);
}

.cx-theme-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--cx-theme-header-gap);
	min-height: var(--cx-theme-header-h);
	transition: min-height 0.25s ease;
}

.cx-theme-header__brand {
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 1 1 auto;
}

.cx-theme-header__actions {
	display: flex;
	align-items: center;
	gap: var(--cx-theme-header-gap);
	flex-shrink: 0;
	margin-left: auto;
}

.cx-theme-header__tools {
	display: flex;
	align-items: center;
	gap: var(--cx-theme-header-gap);
	flex-shrink: 0;
}

/* Unified header icon buttons (menu, search, theme). */
.cx-theme-header__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--cx-theme-header-icon);
	height: var(--cx-theme-header-icon);
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--cx-theme-border) 85%, transparent);
	border-radius: calc(var(--cx-theme-radius) - 2px);
	background: color-mix(in srgb, var(--cx-theme-surface) 65%, transparent);
	color: var(--cx-theme-text-muted);
	cursor: pointer;
	flex-shrink: 0;
	transition:
		background var(--cx-theme-transition),
		border-color var(--cx-theme-transition),
		color var(--cx-theme-transition),
		transform var(--cx-theme-transition);
}

.cx-theme-header__icon-btn:hover,
.cx-theme-header__icon-btn:focus-visible {
	border-color: color-mix(in srgb, var(--cx-theme-primary) 35%, var(--cx-theme-border));
	color: var(--cx-theme-primary);
	background: var(--cx-theme-surface);
}

.cx-theme-header__icon-btn svg {
	display: block;
	flex-shrink: 0;
}

.cx-theme-header__search-toggle[aria-expanded="true"] {
	background: var(--cx-theme-primary);
	border-color: var(--cx-theme-primary);
	color: #fff;
}

.cx-theme-announcement {
	position: relative;
	z-index: 101;
	background: linear-gradient(90deg, var(--cx-theme-primary), var(--cx-theme-accent));
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.35;
	border-bottom: 1px solid color-mix(in srgb, #000 12%, transparent);
}

.cx-theme-announcement[hidden] {
	display: none !important;
}

.cx-theme-announcement__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 2.5rem;
	padding-block: 0.5rem;
}

.cx-theme-announcement__text {
	margin: 0;
	color: #fff;
	text-decoration: none;
	text-align: center;
	font-weight: 500;
}

.cx-theme-announcement__text:hover,
.cx-theme-announcement__text:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.cx-theme-announcement__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.cx-theme-announcement__close:hover,
.cx-theme-announcement__close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

body.cx-theme-has-announcement:not(.cx-theme-announcement-dismissed) {
	--cx-theme-announcement-h: 2.5rem;
}

body.cx-theme-announcement-dismissed {
	--cx-theme-announcement-h: 0px;
}

.cx-theme-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 100%;
	min-width: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--cx-theme-text);
	text-decoration: none;
	flex-shrink: 1;
}

.cx-theme-brand:hover,
.cx-theme-brand:focus-visible {
	color: var(--cx-theme-text);
	text-decoration: none;
}

.cx-theme-brand__logo,
.custom-logo {
	max-height: 40px;
	width: auto;
}

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

.cx-theme-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.cx-theme-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.125rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cx-theme-nav__list a {
	display: block;
	padding: 0.5rem 0.75rem;
	color: var(--cx-theme-text);
	text-decoration: none;
	border-radius: var(--cx-theme-radius);
	font-size: 0.9375rem;
	font-weight: 500;
	transition: background var(--cx-theme-transition), color var(--cx-theme-transition);
}

.cx-theme-nav__list .current-menu-item > a,
.cx-theme-nav__list .current_page_item > a {
	font-weight: 600;
}

@media (max-width: 768px) {
	.custom-logo {
		max-height: 32px;
	}
}

.cx-theme-nav__list a:hover,
.cx-theme-nav__list a:focus-visible,
.cx-theme-nav__list .current-menu-item > a,
.cx-theme-nav__list .current_page_item > a {
	background: var(--cx-theme-surface);
	color: var(--cx-theme-primary);
	text-decoration: none;
}

.cx-theme-nav-details {
	position: relative;
}

.cx-theme-nav-details > summary {
	list-style: none;
}

.cx-theme-nav-details > summary::-webkit-details-marker {
	display: none;
}

@media (max-width: 768px) {
	:root {
		--cx-theme-header-h: 48px;
		--cx-theme-header-h-scrolled: 42px;
		--cx-theme-header-icon: var(--cx-theme-header-icon-mobile);
		--cx-theme-header-gap: 0.375rem;
		--cx-theme-gutter: max(0.875rem, 3vw);
	}

	.cx-theme-header__inner {
		padding-block: 0;
		justify-content: flex-start;
		gap: 0.5rem;
	}

	.cx-theme-header__brand {
		align-self: center;
	}

	.cx-theme-brand {
		align-items: center;
		gap: 0.4375rem;
		max-width: 100%;
	}

	.cx-theme-header__actions {
		gap: 0.3125rem;
		margin-left: auto;
		flex-shrink: 0;
	}

	.cx-theme-header__tools {
		display: flex;
		align-items: center;
		gap: 0.3125rem;
		flex-shrink: 0;
	}

	.cx-theme-brand__text {
		font-size: clamp(0.875rem, 3.6vw, 1rem);
		font-weight: 700;
		line-height: 1.1;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: min(10.5rem, 44vw);
		letter-spacing: -0.02em;
	}

	.cx-theme-header--scrolled .cx-theme-brand__text {
		font-size: clamp(0.8125rem, 3.2vw, 0.9375rem);
		max-width: min(9.75rem, 42vw);
	}

	.cx-theme-brand__mark {
		width: 1.5rem;
		height: 1.5rem;
		font-size: 0.6875rem;
		border-radius: 0.375rem;
	}

	.cx-theme-header--scrolled .cx-theme-brand__mark {
		width: 1.375rem;
		height: 1.375rem;
		font-size: 0.625rem;
	}

	.custom-logo,
	.cx-theme-brand__logo {
		max-height: 1.75rem;
	}

	.cx-theme-header--scrolled .custom-logo,
	.cx-theme-header--scrolled .cx-theme-brand__logo {
		max-height: 1.5rem;
	}

	.cx-theme-header__icon-btn {
		border-color: color-mix(in srgb, var(--cx-theme-border) 55%, transparent);
		background: color-mix(in srgb, var(--cx-theme-surface) 40%, transparent);
		color: color-mix(in srgb, var(--cx-theme-text-muted) 88%, var(--cx-theme-text));
	}

	.cx-theme-header__icon-btn svg {
		width: 17px;
		height: 17px;
		opacity: 0.92;
	}

	.cx-theme-nav-toggle {
		display: inline-flex;
	}

	.cx-theme-nav-toggle__icon {
		display: block;
		width: 16px;
		height: 2px;
		background: currentColor;
		position: relative;
	}

	.cx-theme-nav-toggle__icon::before,
	.cx-theme-nav-toggle__icon::after {
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: currentColor;
	}

	.cx-theme-nav-toggle__icon::before {
		top: -5px;
	}

	.cx-theme-nav-toggle__icon::after {
		top: 5px;
	}

	.cx-theme-nav-details {
		position: static;
	}

	.cx-theme-nav-details .cx-theme-nav {
		position: fixed;
		z-index: 99;
		top: calc(var(--cx-theme-header-h) + var(--cx-theme-announcement-h, 0px));
		left: var(--cx-theme-gutter);
		right: var(--cx-theme-gutter);
		min-width: 0;
		max-height: min(70vh, 24rem);
		overflow-y: auto;
		flex-direction: column;
		align-items: stretch;
		padding: 0.625rem;
		background: var(--cx-theme-bg);
		border: 1px solid var(--cx-theme-border);
		border-radius: var(--cx-theme-radius);
		box-shadow: var(--cx-theme-shadow-lg);
	}

	body.cx-theme-header-scrolled .cx-theme-nav-details .cx-theme-nav,
	body.cx-theme-nav-open .cx-theme-nav-details .cx-theme-nav {
		top: calc(var(--cx-theme-header-h-scrolled) + var(--cx-theme-announcement-h, 0px));
	}

	.cx-theme-nav-details:not([open]) .cx-theme-nav {
		display: none;
	}

	.cx-theme-nav__list {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.cx-theme-nav__list a {
		padding: 0.6875rem 0.75rem;
	}
}

@media (max-width: 430px) {
	.cx-theme-brand__text {
		max-width: min(10rem, 40vw);
	}
}

@media (max-width: 390px) {
	.cx-theme-brand__text {
		max-width: min(9.25rem, 39vw);
	}
}

@media (max-width: 360px) {
	.cx-theme-brand__text {
		max-width: min(9.5rem, 38vw);
	}

	.cx-theme-header__tools {
		gap: 0.25rem;
	}

	:root {
		--cx-theme-header-icon-mobile: 34px;
	}
}

@media (max-width: 320px) {
	.cx-theme-brand__text {
		max-width: 7.75rem;
	}
}

@media (min-width: 769px) {
	.cx-theme-header__inner {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
	}

	.cx-theme-header__brand {
		grid-column: 1;
		flex: none;
	}

	.cx-theme-header__actions {
		grid-column: 2;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		margin-left: 0;
		min-width: 0;
	}

	.cx-theme-nav-details {
		grid-column: 1;
		justify-self: center;
		position: relative;
	}

	.cx-theme-header__tools {
		grid-column: 2;
		display: flex;
		align-items: center;
		gap: var(--cx-theme-header-gap);
	}

	.cx-theme-nav-details > summary {
		display: none;
	}

	.cx-theme-nav-details .cx-theme-nav {
		display: flex;
		position: static;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
		min-width: auto;
		max-height: none;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.cx-theme-footer {
	flex-shrink: 0;
	margin-top: auto;
	background: var(--cx-theme-surface);
	border-top: 1px solid var(--cx-theme-border);
}

.cx-theme-footer__widgets {
	padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.cx-theme-footer__widgets .cx-theme-container {
	display: grid;
	gap: 2rem;
}

@media (min-width: 640px) {
	.cx-theme-footer__widgets .cx-theme-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.cx-theme-footer__widgets .cx-theme-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

.cx-theme-footer__widgets .widget-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
}

.cx-theme-footer__widgets .widget {
	margin: 0;
}

.cx-theme-footer__col .widget {
	margin: 0;
}

.cx-theme-footer__col .widget-title {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cx-theme-text-muted);
}

.cx-theme-footer__bottom {
	padding-block: 1.25rem;
	border-top: 1px solid var(--cx-theme-border);
	font-size: 0.875rem;
	color: var(--cx-theme-text-muted);
}

.cx-theme-footer__bottom .cx-theme-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.cx-theme-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.cx-theme-footer__menu a {
	color: var(--cx-theme-text-muted);
	text-decoration: none;
}

.cx-theme-footer__menu a:hover,
.cx-theme-footer__menu a:focus-visible {
	color: var(--cx-theme-text);
}

/* ==========================================================================
   Content — posts, pages, archives (not Comparix product UI)
   ========================================================================== */

.cx-theme-entry__header {
	margin-bottom: 1.5rem;
}

.cx-theme-entry__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.cx-theme-entry__meta {
	font-size: 0.875rem;
	color: var(--cx-theme-text-muted);
}

.cx-theme-entry__content > :first-child {
	margin-top: 0;
}

.cx-theme-entry__content > :last-child {
	margin-bottom: 0;
}

.cx-theme-entry__content h2,
.cx-theme-entry__content h3,
.cx-theme-entry__content h4 {
	margin-top: 1.75em;
	margin-bottom: 0.5em;
	line-height: 1.3;
}

.cx-theme-entry__content p,
.cx-theme-entry__content ul,
.cx-theme-entry__content ol {
	margin-block: 1em;
}

.cx-theme-entry__content blockquote {
	margin: 1.5em 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--cx-theme-primary);
	background: var(--cx-theme-surface);
	border-radius: 0 var(--cx-theme-radius) var(--cx-theme-radius) 0;
}

.cx-theme-entry__content pre,
.cx-theme-entry__content code {
	font-family: var(--cx-theme-font-mono);
	font-size: 0.875em;
}

.cx-theme-entry__content pre {
	overflow-x: auto;
	padding: 1rem;
	background: var(--cx-theme-surface);
	border-radius: var(--cx-theme-radius);
	border: 1px solid var(--cx-theme-border);
}

.cx-theme-entry__thumbnail {
	margin-bottom: 1.5rem;
	border-radius: var(--cx-theme-radius);
	overflow: hidden;
}

.cx-theme-posts {
	display: grid;
	gap: 2rem;
}

.cx-theme-post-card {
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--cx-theme-border);
}

.cx-theme-post-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.cx-theme-post-card__title a {
	color: var(--cx-theme-text);
	text-decoration: none;
}

.cx-theme-post-card__title a:hover,
.cx-theme-post-card__title a:focus-visible {
	color: var(--cx-theme-primary);
}

.cx-theme-post-card__excerpt {
	color: var(--cx-theme-text-muted);
	margin: 0;
}

.cx-theme-pagination {
	margin-top: 2rem;
}

.cx-theme-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cx-theme-pagination a,
.cx-theme-pagination span {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--cx-theme-border);
	border-radius: var(--cx-theme-radius);
	text-decoration: none;
	color: var(--cx-theme-text);
}

.cx-theme-pagination a:hover,
.cx-theme-pagination a:focus-visible {
	border-color: var(--cx-theme-primary);
	color: var(--cx-theme-primary);
}

.cx-theme-pagination .current {
	background: var(--cx-theme-primary);
	border-color: var(--cx-theme-primary);
	color: #fff;
}

/* ==========================================================================
   Search form
   ========================================================================== */

.cx-theme-search-form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.cx-theme-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--cx-theme-border);
	border-radius: var(--cx-theme-radius);
	background: var(--cx-theme-bg);
	color: var(--cx-theme-text);
	font: inherit;
}

.cx-theme-search-form button {
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: var(--cx-theme-radius);
	background: var(--cx-theme-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.cx-theme-search-form button:hover,
.cx-theme-search-form button:focus-visible {
	background: var(--cx-theme-primary-hover);
}

/* ==========================================================================
   404 & empty states
   ========================================================================== */

.cx-theme-not-found {
	text-align: center;
	padding-block: clamp(2rem, 6vw, 4rem);
}

.cx-theme-not-found__code {
	font-size: clamp(3rem, 10vw, 6rem);
	font-weight: 800;
	line-height: 1;
	color: var(--cx-theme-text-muted);
	margin: 0 0 0.5rem;
}

.cx-theme-not-found__title {
	margin: 0 0 1rem;
}

.cx-theme-not-found__text {
	color: var(--cx-theme-text-muted);
	margin: 0 0 1.5rem;
}

.cx-theme-button {
	display: inline-block;
	padding: 0.625rem 1.25rem;
	border-radius: var(--cx-theme-radius);
	background: var(--cx-theme-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.cx-theme-button:hover,
.cx-theme-button:focus-visible {
	background: var(--cx-theme-primary-hover);
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.cx-theme-skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--cx-theme-primary);
	color: #fff;
	text-decoration: none;
}

.cx-theme-skip-link:focus-visible {
	top: 0;
}

.screen-reader-text {
	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 !important;
}

/* ==========================================================================
   Elementor & Comparix coexistence
   ========================================================================== */

.elementor-page .cx-theme-content {
	padding-block: 0;
}

/* Comparix Pro plugin integration (CSS variable aliases for theme-integration.css). */
:root {
	--mobobd-font: var(--cx-theme-font);
	--mobobd-font-mono: var(--cx-theme-font-mono);
	--mobobd-container: var(--cx-theme-container);
	--mobobd-gutter: var(--cx-theme-gutter);
	--mobobd-header-h: var(--cx-theme-header-h);
	--mobobd-primary: var(--cx-theme-primary);
	--mobobd-primary-hover: var(--cx-theme-primary-hover);
	--mobobd-accent: var(--cx-theme-accent);
	--mobobd-bg: var(--cx-theme-bg);
	--mobobd-surface: var(--cx-theme-surface);
	--mobobd-text: var(--cx-theme-text);
	--mobobd-text-muted: var(--cx-theme-text-muted);
	--mobobd-border: var(--cx-theme-border);
	--mobobd-link: var(--cx-theme-link);
	--mobobd-link-hover: var(--cx-theme-link-hover);
	--mobobd-radius: var(--cx-theme-radius);
	--mobobd-shadow: var(--cx-theme-shadow);
	--mobobd-transition: var(--cx-theme-transition);
}

body.admin-bar .cx-theme-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .cx-theme-header {
		top: 46px;
	}
}

body.cx-theme-nav-open {
	overflow: hidden;
}

.cx-theme-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, var(--cx-theme-primary), var(--cx-theme-accent));
	color: #fff;
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	flex-shrink: 0;
}

.cx-theme-brand__text {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	min-width: 0;
}

.cx-theme-breadcrumbs {
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
	color: var(--cx-theme-text-muted);
}

.cx-theme-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cx-theme-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.375rem;
	color: var(--cx-theme-text-muted);
}

.cx-theme-breadcrumbs__item a {
	color: var(--cx-theme-text-muted);
	text-decoration: none;
}

.cx-theme-breadcrumbs__item a:hover,
.cx-theme-breadcrumbs__item a:focus-visible {
	color: var(--cx-theme-primary);
}

.cx-theme-breadcrumbs__item--current {
	color: var(--cx-theme-text);
	font-weight: 600;
}

.cx-theme-nav__list .sub-menu {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0.375rem 0 0 0.75rem;
	border-left: 1px solid var(--cx-theme-border);
}

.cx-theme-entry__tags {
	margin: 1.5rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--cx-theme-border);
	font-size: 0.9375rem;
	color: var(--cx-theme-text-muted);
}

.cx-theme-entry__tags a {
	color: var(--cx-theme-primary);
	text-decoration: none;
}

.cx-theme-comments__list .comment {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border: 1px solid var(--cx-theme-border);
	border-radius: var(--cx-theme-radius);
	background: var(--cx-theme-surface);
}

.cx-theme-comments__list .comment-author {
	font-weight: 600;
}

.cx-theme-comments__list .comment-meta {
	font-size: 0.8125rem;
	color: var(--cx-theme-text-muted);
	margin-bottom: 0.5rem;
}

.cx-theme-comments textarea,
.cx-theme-comments input[type="text"],
.cx-theme-comments input[type="email"],
.cx-theme-comments input[type="url"] {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--cx-theme-border);
	border-radius: var(--cx-theme-radius);
	background: var(--cx-theme-bg);
	color: var(--cx-theme-text);
	font: inherit;
}

body.cx-theme-shell-active .cx-main,
body.cx-theme-shell-active #cx-main {
	width: 100%;
}

body.cx-theme-has-comparix {
	padding-bottom: env(safe-area-inset-bottom, 0);
}

/* WooCommerce layout (presentation only). */
.woocommerce .cx-theme-content,
.woocommerce-page .cx-theme-content {
	max-width: var(--cx-theme-container);
	margin-inline: auto;
}

.woocommerce ul.products {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.woocommerce .button,
.woocommerce a.button {
	border-radius: var(--cx-theme-radius);
}

/* Align wide blocks with theme container */
.alignwide {
	max-width: var(--cx-theme-container);
	margin-inline: auto;
}

.alignfull {
	max-width: none;
	margin-inline: calc(-1 * var(--cx-theme-gutter));
	width: calc(100% + 2 * var(--cx-theme-gutter));
}

/* ==========================================================================
   Comments
   ========================================================================== */

.cx-theme-comments {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--cx-theme-border);
}

.cx-theme-comments__title,
.cx-theme-comments__reply-title {
	margin-top: 0;
	font-size: 1.25rem;
}

.cx-theme-comments__list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.cx-theme-comments__closed {
	color: var(--cx-theme-text-muted);
}
