/*
Theme Name: ClasiFly
Theme URI: https://clasifly.com/
Author: ClasiFly
Author URI: https://clasifly.com/
Description: Tema moderno, responsive y de ancho completo para directorios comerciales y anuncios clasificados. Incluye integración visual para Directorist y GeoDirectory.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: clasifly
Tags: directory, classifieds, full-width-template, custom-logo, custom-menu, featured-images, responsive-layout
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--cf-primary: #2457f5;
	--cf-primary-dark: #173ec4;
	--cf-secondary: #ffb020;
	--cf-accent: #12b886;
	--cf-ink: #14213d;
	--cf-muted: #667085;
	--cf-line: #e7eaf1;
	--cf-surface: #ffffff;
	--cf-soft: #f5f7fb;
	--cf-danger: #dc3545;
	--cf-radius-sm: 10px;
	--cf-radius: 16px;
	--cf-radius-lg: 24px;
	--cf-shadow-sm: 0 6px 18px rgba(20, 33, 61, .07);
	--cf-shadow: 0 16px 42px rgba(20, 33, 61, .11);
	--cf-container: 1480px;
	--cf-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding: 0 !important;
	color: var(--cf-ink);
	background: var(--cf-soft);
	font: 400 16px/1.65 var(--cf-font);
	text-rendering: optimizeLegibility;
}
body.directorist-content-active,
body.geodir-page {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}
body.cf-menu-open { overflow: hidden; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cf-primary); text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
a:hover { color: var(--cf-primary-dark); }
button, input, select, textarea { font: inherit; }
button, [type="button"], [type="submit"], [type="reset"] { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid rgba(36, 87, 245, .25);
	outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .65em; color: var(--cf-ink); line-height: 1.18; letter-spacing: -.025em; }
p { margin: 0 0 1.15em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 18px;
	clip: auto; color: var(--cf-ink); background: #fff; border-radius: 8px; box-shadow: var(--cf-shadow);
}
.cf-container { width: min(100% - 40px, var(--cf-container)); margin-inline: auto; }
.cf-main { min-height: 58vh; }
.cf-main--standard { padding-block: clamp(28px, 4vw, 64px); }
.cf-plugin-shell {
	width: 100%;
	max-width: none;
	overflow: clip;
}
.cf-plugin-content {
	width: 100%;
	max-width: none;
}
.cf-plugin-content > .entry-content {
	width: 100%;
	max-width: none;
}
body.clasifly-theme > .copyright,
body.clasifly-theme > #SEO {
	display: none !important;
}
.cf-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.cf-card { background: var(--cf-surface); border: 1px solid var(--cf-line); border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-sm); }

/* Header */
.site-header {
	position: sticky;
	z-index: 999;
	top: 0;
	width: 100%;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid rgba(231, 234, 241, .9);
	backdrop-filter: blur(16px);
}
.cf-header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; }
.custom-logo-link, .cf-brand { display: inline-flex; align-items: center; }
.custom-logo, .cf-brand img { width: auto; max-width: 190px; max-height: 64px; object-fit: contain; }
.cf-brand-text { font-weight: 850; font-size: 1.65rem; letter-spacing: -.05em; color: var(--cf-ink); }
.cf-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.cf-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cf-nav li { position: relative; }
.cf-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 13px; color: #273552; border-radius: 10px; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.cf-nav a:hover, .cf-nav .current-menu-item > a, .cf-nav .current-menu-ancestor > a { color: var(--cf-primary); background: #edf2ff; }
.cf-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; display: block; min-width: 230px; padding: 8px;
	visibility: hidden; opacity: 0; transform: translateY(6px); background: #fff; border: 1px solid var(--cf-line);
	border-radius: 13px; box-shadow: var(--cf-shadow); transition: .2s ease;
}
.cf-nav li:hover > .sub-menu, .cf-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.cf-nav .sub-menu a { width: 100%; }
.cf-header-actions { display: flex; align-items: center; gap: 10px; }
.cf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px;
	color: #fff; background: var(--cf-primary); font-weight: 750; line-height: 1.2; box-shadow: 0 8px 18px rgba(36, 87, 245, .18);
}
.cf-btn:hover { color: #fff; background: var(--cf-primary-dark); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(36, 87, 245, .24); }
.cf-btn--secondary { color: var(--cf-ink); background: #fff; border-color: var(--cf-line); box-shadow: none; }
.cf-btn--secondary:hover { color: var(--cf-primary); background: #f7f9ff; border-color: #cfd8ff; box-shadow: none; }
.cf-btn--accent { color: #17213b; background: var(--cf-secondary); box-shadow: 0 8px 18px rgba(255, 176, 32, .25); }
.cf-btn--accent:hover { color: #17213b; background: #ffc14d; }
.cf-menu-toggle {
	position: relative;
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--cf-line);
	border-radius: 13px;
	background: #fff;
	color: var(--cf-ink);
	box-shadow: 0 4px 14px rgba(20, 33, 61, .06);
}
.cf-menu-icon,
.cf-menu-icon::before,
.cf-menu-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	display: block;
	width: 21px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
	transform: translateX(-50%);
	transition: transform .22s ease, opacity .18s ease, top .22s ease;
}
.cf-menu-icon { top: 23px; }
.cf-menu-icon::before { top: -7px; }
.cf-menu-icon::after { top: 7px; }
.cf-menu-toggle[aria-expanded="true"] .cf-menu-icon { background: transparent; }
.cf-menu-toggle[aria-expanded="true"] .cf-menu-icon::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.cf-menu-toggle[aria-expanded="true"] .cf-menu-icon::after { top: 0; transform: translateX(-50%) rotate(-45deg); }
.cf-mobile-nav-head,
.cf-mobile-nav-search,
.cf-mobile-nav-actions,
.cf-menu-backdrop { display: none; }

/* Hero */
.cf-hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(54px, 7vw, 104px) 0 clamp(64px, 8vw, 112px);
	color: #fff; background:
		radial-gradient(circle at 78% 15%, rgba(255, 176, 32, .30), transparent 27%),
		radial-gradient(circle at 15% 80%, rgba(18, 184, 134, .18), transparent 30%),
		linear-gradient(125deg, #102253 0%, #2457f5 62%, #356af9 100%);
}
.cf-hero::after {
	content: ""; position: absolute; z-index: -1; inset: auto -8% -170px -8%; height: 260px;
	background: var(--cf-soft); border-radius: 50% 50% 0 0 / 35% 35% 0 0;
}
.cf-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(36px, 6vw, 92px); align-items: center; }
.cf-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .88rem; font-weight: 750; }
.cf-hero h1 { max-width: 820px; color: #fff; font-size: clamp(2.35rem, 5.2vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.cf-hero-copy { max-width: 710px; margin-bottom: 28px; color: rgba(255,255,255,.84); font-size: clamp(1.03rem, 1.5vw, 1.25rem); }
.cf-search-box { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(180px, .75fr) auto; gap: 10px; padding: 10px; background: #fff; border-radius: 17px; box-shadow: 0 22px 60px rgba(7, 19, 52, .28); }
.cf-field { position: relative; }
.cf-field svg { position: absolute; z-index: 1; top: 50%; left: 16px; width: 20px; transform: translateY(-50%); color: #7b8498; pointer-events: none; }
.cf-search-box input { width: 100%; min-height: 54px; padding: 12px 14px 12px 46px; color: var(--cf-ink); background: #f7f8fb; border: 1px solid transparent; border-radius: 11px; outline: 0; }
.cf-search-box input:focus { background: #fff; border-color: var(--cf-primary); box-shadow: 0 0 0 4px rgba(36, 87, 245, .1); }
.cf-search-box .cf-btn { min-height: 54px; padding-inline: 25px; }
.cf-hero-search { max-width: 720px; }
.cf-hero-search .search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	padding: 10px;
	background: #fff;
	border-radius: 17px;
	box-shadow: 0 22px 60px rgba(7, 19, 52, .28);
}
.cf-hero-search .search-form label { min-width: 0; margin: 0; }
.cf-hero-search .search-field {
	width: 100%;
	min-height: 54px;
	padding: 12px 17px !important;
	color: var(--cf-ink);
	background: #f7f8fb;
	border: 1px solid transparent !important;
	border-radius: 11px;
	font-size: 16px;
}
.cf-hero-search .search-field:focus {
	background: #fff;
	border-color: var(--cf-primary) !important;
	box-shadow: 0 0 0 4px rgba(36, 87, 245, .1);
}
.cf-hero-search .search-submit {
	min-width: 132px;
	min-height: 54px !important;
	padding: 12px 24px !important;
	color: #fff;
	background: var(--cf-primary);
	border: 0;
	border-radius: 11px !important;
	font-weight: 800;
}
.cf-hero-search .search-submit:hover { background: var(--cf-primary-dark); }
.cf-hero-links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 18px; font-size: .92rem; }
.cf-hero-links span { color: rgba(255,255,255,.65); }
.cf-hero-links a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.35); }
.cf-hero-panel { padding: 26px; color: var(--cf-ink); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.65); border-radius: var(--cf-radius-lg); box-shadow: 0 30px 70px rgba(7,19,52,.28); }
.cf-hero-panel h2 { margin-bottom: 8px; font-size: 1.45rem; }
.cf-hero-panel > p { color: var(--cf-muted); }
.cf-publish-grid { display: grid; gap: 12px; margin-top: 20px; }
.cf-publish-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 16px; color: var(--cf-ink); background: #f7f9ff; border: 1px solid #e5eaff; border-radius: 14px; }
.cf-publish-card:hover { color: var(--cf-ink); background: #fff; border-color: #bfcaff; transform: translateY(-2px); box-shadow: var(--cf-shadow-sm); }
.cf-publish-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--cf-primary); background: #e7edff; border-radius: 13px; font-size: 1.35rem; }
.cf-publish-card strong, .cf-publish-card small { display: block; }
.cf-publish-card small { color: var(--cf-muted); font-size: .82rem; }
.cf-arrow { color: var(--cf-primary); font-size: 1.35rem; }

/* Sections and content */
.cf-section { padding-block: clamp(45px, 6vw, 88px); }
.cf-section--white { background: #fff; }
.cf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cf-section-head h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.cf-section-head p { max-width: 680px; margin: 8px 0 0; color: var(--cf-muted); }
.cf-section-kicker {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--cf-primary);
	font-size: .78rem;
	font-weight: 850;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.cf-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cf-quick-card { padding: 24px; color: var(--cf-ink); background: #fff; border: 1px solid var(--cf-line); border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-sm); }
.cf-quick-card:hover { color: var(--cf-ink); border-color: #c9d2f4; transform: translateY(-4px); box-shadow: var(--cf-shadow); }
.cf-quick-card span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; background: #edf2ff; border-radius: 14px; font-size: 1.45rem; }
.cf-quick-card h3 { margin-bottom: 6px; font-size: 1.08rem; }
.cf-quick-card p { margin: 0; color: var(--cf-muted); font-size: .92rem; }
.cf-page-header { padding: clamp(35px, 5vw, 72px) 0; color: #fff; background: linear-gradient(125deg, #102253, #2457f5); }
.cf-page-header h1 {
	max-width: 1120px;
	margin: 0;
	color: #fff;
	font-size: clamp(1.75rem, 3.3vw, 3.15rem);
	line-height: 1.08;
	overflow-wrap: anywhere;
}
.cf-breadcrumbs { margin-top: 10px; color: rgba(255,255,255,.72); font-size: .9rem; }
.cf-breadcrumbs a { color: #fff; }
.entry-card { padding: clamp(22px, 4vw, 48px); }
.entry-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -4px 0 24px; color: var(--cf-muted); font-size: .88rem; }
.entry-thumbnail { overflow: hidden; margin: 0 0 28px; border-radius: var(--cf-radius); }
.entry-content { overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 12px; }
.entry-content iframe { max-width: 100%; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 11px; border: 1px solid var(--cf-line); }
.wp-block-button__link { border-radius: 11px; }
.wp-block-image figcaption { color: var(--cf-muted); font-size: .85rem; }
.alignwide { width: min(1120px, 100%); margin-inline: auto; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.cf-post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cf-post-card { overflow: hidden; background: #fff; border: 1px solid var(--cf-line); border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-sm); }
.cf-post-card:hover { transform: translateY(-3px); box-shadow: var(--cf-shadow); }
.cf-post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf5; }
.cf-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cf-post-card:hover .cf-post-thumb img { transform: scale(1.035); }
.cf-post-body { padding: 22px; }
.cf-post-body h2 { margin-bottom: 9px; font-size: 1.25rem; }
.cf-post-body h2 a { color: var(--cf-ink); }
.cf-post-body p { color: var(--cf-muted); }
.cf-pagination { margin-top: 32px; }
.cf-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; background: #fff; border: 1px solid var(--cf-line); border-radius: 10px; }
.cf-pagination .current { color: #fff; background: var(--cf-primary); border-color: var(--cf-primary); }
.widget-area { display: grid; gap: 20px; }
.widget { padding: 22px; background: #fff; border: 1px solid var(--cf-line); border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-sm); }
.widget-title { font-size: 1.05rem; }
.widget ul { margin: 0; padding-left: 20px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--cf-line); border-radius: 10px; }
.search-form input[type="submit"] { min-height: 48px; padding: 10px 16px; color: #fff; background: var(--cf-primary); border: 0; border-radius: 10px; font-weight: 700; }

/* Forms: mobile-first ergonomics */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
select, textarea {
	width: 100%; max-width: 100%; min-height: 50px; padding: 12px 14px; color: var(--cf-ink);
	background: #fff; border: 1px solid #d7dce7; border-radius: 11px; outline: none;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cf-primary); box-shadow: 0 0 0 4px rgba(36,87,245,.1); }
input[type="file"] { min-height: 52px; padding: 8px; background: #f7f9fc; border: 1px dashed #aeb8cd; border-radius: 11px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 9px 13px; color: #fff; background: var(--cf-primary); border: 0; border-radius: 8px; font-weight: 700; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--cf-primary); }
label { font-weight: 650; }
.wp-editor-wrap, .mce-container { max-width: 100%; }

/* Directorist y GeoDirectory se integran en hojas separadas dentro de assets/css. */

/* Footer */
.site-footer { color: rgba(255,255,255,.73); background: #101b35; }
.cf-footer-main { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 38px; padding-block: 58px; }
.cf-footer-brand img { max-width: 180px; max-height: 60px; margin-bottom: 16px; object-fit: contain; }
.cf-footer-brand p { max-width: 390px; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.cf-footer-bottom { padding-block: 19px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.cf-footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; }

/* Responsive */
@media (max-width: 1180px) {
	.cf-nav a { padding-inline: 9px; font-size: .88rem; }
	.cf-header-actions .cf-login { display: none; }
	.cf-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
	body.admin-bar .site-header { top: 46px; }
	.site-header { backdrop-filter: none; }
	.cf-header-inner { min-height: 72px; }
	.cf-menu-toggle {
		z-index: 1003;
		display: block;
		flex: 0 0 auto;
		margin-left: auto;
	}
	.cf-nav {
		position: fixed;
		z-index: 1002;
		inset: 0 0 0 auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		width: min(90vw, 410px);
		margin: 0;
		padding: 0;
		overflow-y: auto;
		background: #fff;
		border-left: 1px solid var(--cf-line);
		box-shadow: -24px 0 70px rgba(12, 24, 53, .22);
		transform: translateX(105%);
		visibility: hidden;
		transition: transform .28s cubic-bezier(.22, .75, .25, 1), visibility .28s ease;
		overscroll-behavior: contain;
	}
	.cf-nav.is-open { transform: none; visibility: visible; }
	.admin-bar .cf-nav { padding-top: 46px; }
	.cf-mobile-nav-head {
		display: block;
		padding: 28px 72px 22px 24px;
		color: #fff;
		background:
			radial-gradient(circle at 90% 10%, rgba(255,176,32,.34), transparent 32%),
			linear-gradient(130deg, #102253, #2457f5);
	}
	.cf-mobile-nav-head strong,
	.cf-mobile-nav-head small { display: block; }
	.cf-mobile-nav-head strong { font-size: 1.2rem; }
	.cf-mobile-nav-head small { margin-top: 3px; color: rgba(255,255,255,.76); font-size: .82rem; }
	.cf-mobile-nav-search {
		display: block;
		padding: 14px 14px 0;
	}
	.cf-mobile-nav-search .search-form {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 48px;
		gap: 7px;
	}
	.cf-mobile-nav-search .search-form label { min-width: 0; margin: 0; }
	.cf-mobile-nav-search .search-field {
		min-height: 48px !important;
		padding: 10px 13px !important;
		background: #f4f6fa;
		border: 1px solid #dfe4ee;
		border-radius: 10px;
		font-size: 16px;
	}
	.cf-mobile-nav-search .search-submit {
		min-width: 48px;
		width: 48px;
		min-height: 48px;
		padding: 0 !important;
		overflow: hidden;
		color: transparent;
		background:
			var(--cf-primary)
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E")
			center / 20px no-repeat;
		border: 0;
		border-radius: 10px;
	}
	.cf-nav > ul,
	.cf-nav > .menu { display: block; width: 100%; padding: 16px 14px 10px; }
	.cf-nav li { width: 100%; }
	.cf-nav a {
		width: 100%;
		min-height: 50px;
		padding: 12px 13px;
		color: var(--cf-ink);
		border-bottom: 1px solid #eef1f6;
		border-radius: 10px;
		font-size: .98rem;
		white-space: normal;
	}
	.cf-nav a:hover,
	.cf-nav .current-menu-item > a,
	.cf-nav .current-menu-ancestor > a {
		color: var(--cf-primary);
		background: #edf2ff;
		border-color: transparent;
	}
	.cf-nav .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin: 2px 0 8px 12px;
		padding: 0 0 0 10px;
		visibility: visible;
		opacity: 1;
		transform: none;
		border: 0;
		border-left: 2px solid #dfe6f6;
		border-radius: 0;
		box-shadow: none;
	}
	.cf-nav .sub-menu a { min-height: 44px; padding-block: 9px; font-size: .9rem; }
	.cf-mobile-nav-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: auto;
		padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
		background: #f6f8fc;
		border-top: 1px solid var(--cf-line);
	}
	.cf-mobile-nav-actions .cf-btn { width: 100%; min-height: 50px; }
	.cf-mobile-account {
		display: inline-flex !important;
		justify-content: center;
		min-height: 44px !important;
		color: var(--cf-primary) !important;
		background: transparent !important;
		border: 0 !important;
		font-size: .9rem !important;
	}
	.cf-menu-backdrop {
		position: fixed;
		z-index: 1001;
		inset: 0;
		display: block;
		visibility: hidden;
		opacity: 0;
		background: rgba(8, 18, 39, .54);
		backdrop-filter: blur(3px);
		transition: opacity .25s ease, visibility .25s ease;
	}
	.cf-menu-backdrop.is-visible { visibility: visible; opacity: 1; }
	.cf-header-actions { margin-left: 0; }
	.cf-header-actions { display: none; }
	.cf-hero-grid { grid-template-columns: 1fr; }
	.cf-hero-panel { max-width: 680px; }
	.cf-content-grid { grid-template-columns: 1fr; }
	.widget-area { grid-template-columns: repeat(2, 1fr); }
	.cf-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cf-footer-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.cf-container { width: min(100% - 28px, var(--cf-container)); }
	.custom-logo, .cf-brand img { max-width: 150px; max-height: 56px; }
	.cf-hero { padding-top: 42px; }
	.cf-hero h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
	.cf-hero-search .search-form { grid-template-columns: 1fr; padding: 9px; }
	.cf-hero-search .search-field,
	.cf-hero-search .search-submit { width: 100%; min-height: 52px !important; }
	.cf-publish-card { grid-template-columns: 44px 1fr auto; padding: 13px; }
	.cf-publish-icon { width: 44px; height: 44px; }
	.cf-section-head { display: block; }
	.cf-section-head .cf-btn { margin-top: 18px; }
	.cf-quick-grid, .cf-post-list, .widget-area, .cf-footer-main { grid-template-columns: 1fr; }
	.cf-quick-card { padding: 20px; }
	.cf-footer-main { gap: 28px; padding-block: 44px; }
	.cf-footer-bottom-inner { display: block; text-align: center; }
	.entry-card { border-radius: 12px; }
	.sws_superaction { display: none !important; }
}
@media (max-width: 360px) {
	.cf-container { width: min(100% - 20px, var(--cf-container)); }
	.cf-header-inner { gap: 10px; }
	.custom-logo, .cf-brand img { max-width: 132px; }
	.cf-hero-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
