/**
 * Coinlocally site styles — mobile-first, RTL-safe.
 *
 * @package Coinlocally_Sahifa_Child
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/* Coinlocally-inspired palette (light flat UI) */
	--cl-primary: #22c55e;
	--cl-primary-dark: #16a34a;
	--cl-primary-soft: #dcfce7;
	--cl-accent: #84cc16;
	--cl-bg: #eef2f7;
	--cl-surface: #ffffff;
	--cl-surface-muted: #f3f6fa;
	--cl-text: #111827;
	--cl-muted: #6b7280;
	--cl-border: #e5e7eb;
	--cl-radius: 0.875rem;
	--cl-radius-lg: 1.25rem;
	--cl-radius-pill: 999px;
	--cl-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
	--cl-shadow-soft: 0 4px 16px rgba(17, 24, 39, 0.06);
	--cl-shadow-cta: 0 8px 22px rgba(34, 197, 94, 0.28);
	--cl-container: 73.75rem;
	--cl-gap: 1rem;
	--cl-gap-lg: 1.5rem;
	--cl-section-y: 2.75rem;
	--cl-sticky-height: 4.25rem;
	--cl-header-height: 5rem;
	--cl-font-family: "Yekan Bakh", Tahoma, Arial, sans-serif;
}

/* ==========================================================================
   2. Global base (site-wide)
   ========================================================================== */

body.coinlocally-site {
	color: var(--cl-text);
	background-color: var(--cl-bg);
	font-family: var(--cl-font-family);
	line-height: 1.7;
}

body.coinlocally-site .clm-site,
body.coinlocally-site .clm-site button,
body.coinlocally-site .clm-site input,
body.coinlocally-site .clm-site textarea,
body.coinlocally-site .clm-site select {
	font-family: var(--cl-font-family);
}

body.coinlocally-flat {
	background: var(--cl-bg);
}

body.coinlocally-flat #theme-header,
body.coinlocally-flat #top-nav,
body.coinlocally-flat .theme-header,
body.coinlocally-flat .background-cover,
body.coinlocally-flat #slide-out,
body.coinlocally-flat #slide-out-open,
body.coinlocally-flat .wrapper-outer > .background-cover {
	display: none !important;
}

body.coinlocally-flat .clm-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.coinlocally-flat .clm-main {
	flex: 1;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
}

/* ==========================================================================
   2b. Flat site header & footer
   ========================================================================== */

.clm-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--cl-border);
	backdrop-filter: blur(10px);
}

.clm-site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--cl-header-height);
}

.clm-site-header__brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.clm-site-header__logo-img {
	display: block;
	width: auto;
	max-width: 15rem;
	height: 3.15rem;
}

.clm-site-header__logo-text {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--cl-text);
}

.clm-nav-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.clm-site-header__menu-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.4rem;
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	background: var(--cl-surface);
	cursor: pointer;
}

.clm-site-header__menu-btn span {
	display: block;
	height: 2px;
	background: var(--cl-text);
	border-radius: 2px;
}

.clm-site-header__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex: 1;
	min-width: 0;
}

.clm-site-header__nav {
	flex: 1;
	min-width: 0;
}

.clm-nav,
.clm-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.clm-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.clm-nav > li > a,
.clm-nav > li > span {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1rem;
	border-radius: var(--cl-radius-pill);
	color: var(--cl-text);
	font-size: 0.925rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.clm-nav > li > a:hover,
.clm-nav > li > a:focus,
.clm-nav > li.current-menu-item > a,
.clm-nav > li.current_page_item > a {
	background: var(--cl-primary-soft);
	color: var(--cl-primary-dark);
}

.clm-nav--placeholder span {
	color: var(--cl-muted);
	font-size: 0.85rem;
}

.clm-site-header__actions {
	flex-shrink: 0;
}

.clm-site-footer {
	margin-top: auto;
	padding: 1.5rem 0 2rem;
	background: var(--cl-surface);
	border-top: 1px solid var(--cl-border);
}

.clm-site-footer__inner {
	text-align: center;
}

.clm-site-footer__copy,
.clm-site-footer__risk {
	margin: 0;
	color: var(--cl-muted);
	font-size: 0.875rem;
	line-height: 1.75;
}

.clm-site-footer__risk {
	margin-top: 0.5rem;
	max-width: 42rem;
	margin-inline: auto;
}

/* Inner pages inside flat shell */
.clm-main .content {
	width: 100%;
	max-width: var(--cl-container);
	margin: 0 auto;
	padding: 2rem 1rem;
	float: none;
}

.clm-main .entry {
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius-lg);
	box-shadow: var(--cl-shadow-soft);
	padding: 1.5rem;
}

/* ==========================================================================
   2c. Flat single blog post
   ========================================================================== */

.clm-single {
	padding-block: 1.5rem 2.5rem;
}

.clm-article__wrap {
	width: min(100% - 1.5rem, 52rem);
}

.clm-article {
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius-lg);
	box-shadow: var(--cl-shadow-soft);
	padding: clamp(1.25rem, 3vw, 2.5rem);
}

.clm-article__header {
	margin-bottom: 1.5rem;
}

.clm-article__cat {
	display: inline-block;
	margin-bottom: 0.85rem;
	padding: 0.3rem 0.85rem;
	border-radius: var(--cl-radius-pill);
	background: var(--cl-primary-soft);
	color: var(--cl-primary-dark);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.clm-article__title {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.4;
	color: var(--cl-text);
}

.clm-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: var(--cl-muted);
	font-size: 0.9rem;
}

.clm-article__meta-sep {
	opacity: 0.6;
}

.clm-article__thumb {
	margin: 0 0 1.75rem;
	border-radius: var(--cl-radius);
	overflow: hidden;
}

.clm-article__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.clm-article__body {
	font-size: 1.05rem;
	line-height: 2.1;
	color: #1f2937;
}

.clm-article__body p {
	margin: 0 0 1.35rem;
}

.clm-article__body h2 {
	margin: 2.25rem 0 1rem;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--cl-text);
	padding-inline-start: 0.75rem;
	border-inline-start: 4px solid var(--cl-primary);
}

.clm-article__body h3 {
	margin: 1.75rem 0 0.85rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--cl-text);
}

.clm-article__body h4 {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--cl-text);
}

.clm-article__body a {
	color: var(--cl-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.clm-article__body a:hover,
.clm-article__body a:focus {
	color: var(--cl-primary);
}

.clm-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--cl-radius);
	margin: 1rem 0;
}

.clm-article__body ul,
.clm-article__body ol {
	margin: 0 0 1.35rem;
	padding-inline-start: 1.5rem;
}

.clm-article__body li {
	margin-bottom: 0.6rem;
}

.clm-article__body ul li {
	list-style: none;
	position: relative;
	padding-inline-start: 1.25rem;
}

.clm-article__body ul li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.85rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--cl-primary);
}

.clm-article__body ol {
	list-style: decimal;
}

.clm-article__body blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-inline-start: 4px solid var(--cl-primary);
	background: var(--cl-surface-muted);
	border-radius: var(--cl-radius);
	color: #374151;
}

.clm-article__body blockquote p:last-child {
	margin-bottom: 0;
}

.clm-article__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95rem;
}

.clm-article__body th,
.clm-article__body td {
	border: 1px solid var(--cl-border);
	padding: 0.65rem 0.85rem;
	text-align: right;
}

.clm-article__body th {
	background: var(--cl-surface-muted);
	font-weight: 700;
}

.clm-article__body pre,
.clm-article__body code {
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 0.5rem;
	direction: ltr;
	text-align: left;
}

.clm-article__body code {
	padding: 0.15rem 0.4rem;
	font-size: 0.9em;
}

.clm-article__body pre {
	padding: 1rem 1.25rem;
	overflow-x: auto;
	margin: 1.5rem 0;
}

.clm-article__body pre code {
	padding: 0;
	background: transparent;
}

.clm-article__tags {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--cl-border);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.clm-article__tags a {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: var(--cl-radius-pill);
	background: var(--cl-surface-muted);
	border: 1px solid var(--cl-border);
	color: var(--cl-muted);
	font-size: 0.825rem;
	text-decoration: none;
}

.clm-article__tags a:hover,
.clm-article__tags a:focus {
	background: var(--cl-primary-soft);
	color: var(--cl-primary-dark);
	border-color: var(--cl-primary-soft);
}

.clm-article__pages {
	margin-top: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.clm-article__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.clm-article__nav a {
	display: inline-block;
	padding: 0.7rem 1rem;
	border-radius: var(--cl-radius);
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	box-shadow: var(--cl-shadow-soft);
	color: var(--cl-text);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	max-width: 100%;
}

.clm-article__nav a:hover,
.clm-article__nav a:focus {
	border-color: var(--cl-primary);
	color: var(--cl-primary-dark);
}

/* Breadcrumb (visual only) */
.clm-breadcrumb {
	margin-bottom: 1rem;
}

.clm-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	color: var(--cl-muted);
}

.clm-breadcrumb__list li {
	margin: 0;
	padding: 0;
}

.clm-breadcrumb__link {
	color: var(--cl-muted);
	text-decoration: none;
}

.clm-breadcrumb__link:hover,
.clm-breadcrumb__link:focus {
	color: var(--cl-primary-dark);
}

.clm-breadcrumb__current {
	color: var(--cl-text);
	font-weight: 600;
}

.clm-breadcrumb__sep {
	opacity: 0.55;
}

.clm-article__author {
	text-decoration: none;
	color: var(--cl-primary-dark);
	font-weight: 600;
}

.clm-article__author:hover,
.clm-article__author:focus {
	color: var(--cl-primary);
	text-decoration: underline;
}

/* Blockquote with quote icon */
.clm-article__body blockquote {
	position: relative;
	padding-top: 2.5rem;
}

.clm-article__body blockquote::before {
	content: "";
	position: absolute;
	top: 0.85rem;
	inset-inline-start: 1.25rem;
	width: 1.75rem;
	height: 1.75rem;
	background-color: var(--cl-primary);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7.17 6A5.17 5.17 0 0 0 2 11.17V18h6.83v-6.83H5.5A1.67 1.67 0 0 1 7.17 9.5V6zm10 0A5.17 5.17 0 0 0 12 11.17V18h6.83v-6.83H15.5A1.67 1.67 0 0 1 17.17 9.5V6z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7.17 6A5.17 5.17 0 0 0 2 11.17V18h6.83v-6.83H5.5A1.67 1.67 0 0 1 7.17 9.5V6zm10 0A5.17 5.17 0 0 0 12 11.17V18h6.83v-6.83H15.5A1.67 1.67 0 0 1 17.17 9.5V6z'/></svg>") center / contain no-repeat;
	opacity: 0.85;
}

/* ==========================================================================
   2d. Easy Table of Contents override
   ========================================================================== */

.clm-article__body #ez-toc-container {
	background: var(--cl-surface-muted);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	box-shadow: none;
	padding: 1.1rem 1.25rem;
	margin: 0 0 1.75rem;
}

.clm-article__body #ez-toc-container .ez-toc-title {
	color: var(--cl-text);
	font-weight: 800 !important;
	font-size: 1.05rem !important;
}

.clm-article__body #ez-toc-container nav ul,
.clm-article__body #ez-toc-container nav ul ul {
	margin: 0.5rem 0 0;
	padding-inline-start: 1rem;
}

.clm-article__body #ez-toc-container nav ul li {
	list-style: none !important;
	position: static;
	padding-inline-start: 0;
	margin-bottom: 0.35rem;
}

/* Remove the theme's content bullets from TOC items */
.clm-article__body #ez-toc-container nav ul li::before {
	content: none !important;
	display: none !important;
}

.clm-article__body #ez-toc-container nav ul li a {
	color: var(--cl-muted);
	font-weight: 600 !important;
	text-decoration: none;
}

.clm-article__body #ez-toc-container nav ul li a:hover,
.clm-article__body #ez-toc-container nav ul li a:focus,
.clm-article__body #ez-toc-container nav ul li a.active {
	color: var(--cl-primary-dark);
}

/* ==========================================================================
   2e. Comments (flat, override Sahifa orange)
   ========================================================================== */

.clm-single #comments {
	margin-top: 1.5rem;
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius-lg);
	box-shadow: var(--cl-shadow-soft);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.clm-single #comments .comment-reply-title,
.clm-single #comments #reply-title,
.clm-single #comments .comments-title {
	float: none;
	clear: both;
	margin: 0 0 1.25rem;
	font-family: var(--cl-font-family);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.6;
	color: var(--cl-text);
	text-align: right;
	border: 0;
	padding: 0;
}

.clm-single #comments .comment-reply-title small a {
	color: var(--cl-muted);
	font-weight: 500;
}

.clm-single #comments .logged-in-as,
.clm-single #comments .comment-notes {
	color: var(--cl-muted);
	font-size: 0.9rem;
	line-height: 1.8;
}

.clm-single #comments .logged-in-as a {
	color: var(--cl-primary-dark);
	text-decoration: none;
}

.clm-single #comments .comment-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	color: var(--cl-text);
}

.clm-single #comments .comment-form input[type="text"],
.clm-single #comments .comment-form input[type="email"],
.clm-single #comments .comment-form input[type="url"],
.clm-single #comments .comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	background: var(--cl-surface-muted);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	color: var(--cl-text);
	font-family: var(--cl-font-family);
	font-size: 0.95rem;
	line-height: 1.8;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.clm-single #comments .comment-form input:focus,
.clm-single #comments .comment-form textarea:focus {
	outline: none;
	border-color: var(--cl-primary);
	box-shadow: 0 0 0 3px var(--cl-primary-soft);
}

.clm-single #comments .comment-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.clm-single #comments .form-submit {
	margin: 0;
}

.clm-single #comments .form-submit #submit,
.clm-single #comments input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1.5rem;
	background: linear-gradient(135deg, var(--cl-primary), var(--cl-primary-dark));
	color: #fff;
	border: 0;
	border-radius: var(--cl-radius-pill);
	box-shadow: var(--cl-shadow-cta);
	font-family: var(--cl-font-family);
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.clm-single #comments .form-submit #submit:hover,
.clm-single #comments .form-submit #submit:focus,
.clm-single #comments input[type="submit"]:hover,
.clm-single #comments input[type="submit"]:focus {
	background: linear-gradient(135deg, var(--cl-primary-dark), #15803d);
	color: #fff;
	transform: translateY(-1px);
}

.clm-single #comments .commentlist,
.clm-single #comments ol.commentlist,
.clm-single #comments ul.commentlist {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.clm-single #comments .commentlist li {
	list-style: none;
	margin-bottom: 1rem;
	padding: 1rem;
	background: var(--cl-surface-muted);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
}

.clm-single #comments .comment-author cite,
.clm-single #comments .comment-author .fn {
	color: var(--cl-text);
	font-weight: 700;
	font-style: normal;
}

.clm-single #comments .comment-meta,
.clm-single #comments .comment-metadata,
.clm-single #comments .comment-meta a {
	color: var(--cl-muted);
	font-size: 0.85rem;
}

.clm-single #comments .comment-content {
	margin-top: 0.5rem;
	color: var(--cl-text);
	line-height: 1.9;
}

.clm-single #comments .reply a,
.clm-single #comments .comment-reply-link {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.3rem 0.9rem;
	background: var(--cl-primary-soft);
	color: var(--cl-primary-dark);
	border-radius: var(--cl-radius-pill);
	font-size: 0.825rem;
	font-weight: 700;
	text-decoration: none;
}

/* Remove Sahifa's orange bars/stripes under comments on flat pages */
.clm-single #comments .stripe-line,
.clm-single #comments .block-head {
	background: none;
	border: 0;
}

.clm-single #comments #respond,
.clm-single #comments .comment-respond,
.clm-single #comments #commentform,
.clm-single #comments .comment-form,
.clm-single #comments .form-submit,
.clm-single #comments .comment-form-cookies-consent,
.clm-single #comments .comment-form > p {
	border: 0 !important;
	background-image: none !important;
	box-shadow: none !important;
}

.clm-single #comments #respond::before,
.clm-single #comments #respond::after,
.clm-single #comments .comment-form::before,
.clm-single #comments .comment-form::after,
.clm-single #comments .form-submit::before,
.clm-single #comments .form-submit::after {
	display: none !important;
}

.clm-single #comments {
	border: 1px solid var(--cl-border) !important;
}

@media (max-width: 900px) {
	.clm-site-header__menu-btn {
		display: inline-flex;
	}

	.clm-site-header__panel {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding: 1rem;
		background: var(--cl-surface);
		border-bottom: 1px solid var(--cl-border);
		box-shadow: var(--cl-shadow);
	}

	.clm-nav-toggle:checked ~ .clm-site-header__panel {
		display: flex;
	}

	.clm-nav {
		flex-direction: column;
		align-items: stretch;
	}

	.clm-nav > li > a {
		justify-content: center;
	}

	.clm-site-header__actions {
		display: flex;
		justify-content: center;
	}

	.clm-site-header__bar {
		position: relative;
		flex-wrap: wrap;
	}
}


/* ==========================================================================
   3. Sahifa homepage wrapper overrides
   ========================================================================== */

body.coinlocally-home #main-content.container,
body.coinlocally-flat #main-content.container,
body.coinlocally-home .clm-main,
body.coinlocally-flat .clm-main {
	width: 100%;
	max-width: none;
	padding-inline: 0;
}

body.coinlocally-home #main-content .content,
body.coinlocally-home .cl-home,
body.coinlocally-home .clm-home,
body.coinlocally-flat .clm-home {
	width: 100%;
	float: none;
	margin: 0;
	padding: 0;
}

body.coinlocally-home .footer-bottom,
body.coinlocally-home #theme-footer {
	position: relative;
	z-index: 1;
}

/* Reserve space for sticky bar + safe area on mobile */
@media (max-width: 767px) {
	body.coinlocally-home {
		padding-bottom: calc(var(--cl-sticky-height) + env(safe-area-inset-bottom, 0px) + 1rem);
	}
}

/* ==========================================================================
   4. Layout — homepage shell (.cl-* aliases .clm-*)
   ========================================================================== */

.cl-home,
.clm-home {
	direction: rtl;
	text-align: right;
}

.cl-container,
.clm-container {
	width: min(100% - 1.5rem, var(--cl-container));
	margin-inline: auto;
}

.cl-section,
.clm-section {
	padding-block: var(--cl-section-y);
}

.cl-section__header,
.clm-section__header {
	margin-bottom: var(--cl-gap-lg);
}

.cl-section__header--row,
.clm-section__header--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--cl-gap);
}

.cl-section__title,
.clm-section__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--cl-text);
}

.cl-section__lead,
.clm-section__lead {
	margin: 0;
	color: var(--cl-muted);
	font-size: 0.975rem;
	line-height: 1.75;
	max-width: 40rem;
}

.cl-link-more,
.clm-link-more {
	color: var(--cl-primary-dark);
	font-weight: 600;
	font-size: 0.925rem;
	text-decoration: none;
	white-space: nowrap;
}

.cl-link-more:hover,
.cl-link-more:focus,
.clm-link-more:hover,
.clm-link-more:focus {
	color: var(--cl-primary);
	text-decoration: underline;
}

/* ==========================================================================
   5. Shared cards
   ========================================================================== */

.cl-card,
.clm-card {
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow-soft);
	padding: 1.25rem;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cl-card:hover,
.clm-card:hover {
	box-shadow: var(--cl-shadow);
	border-color: rgba(13, 148, 136, 0.25);
}

.cl-card__title,
.clm-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
}

.cl-card__desc,
.clm-card__desc {
	margin: 0;
	color: var(--cl-muted);
	font-size: 0.95rem;
	line-height: 1.75;
}

.cl-empty-state,
.clm-empty-state {
	margin: 0;
	padding: 1.25rem;
	background: var(--cl-surface);
	border: 1px dashed var(--cl-border);
	border-radius: var(--cl-radius);
	color: var(--cl-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	text-align: center;
}

/* ==========================================================================
   6. Buttons & CTA variants
   ========================================================================== */

.cl-btn,
.clm-btn,
.clm-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.75rem;
	padding: 0.7rem 1.35rem;
	border-radius: var(--cl-radius-pill);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cl-btn--secondary,
.clm-btn--secondary {
	background: var(--cl-surface);
	color: var(--cl-primary-dark);
	border: 1px solid var(--cl-border);
	box-shadow: var(--cl-shadow-soft);
}

.cl-btn--secondary:hover,
.cl-btn--secondary:focus,
.clm-btn--secondary:hover,
.clm-btn--secondary:focus {
	border-color: var(--cl-primary);
	color: var(--cl-primary-dark);
	background: var(--cl-primary-soft);
}

body.coinlocally-flat a.clm-cta,
.clm-home a.clm-cta,
.clm-home a.clm-cta {
	background: linear-gradient(135deg, var(--cl-primary), var(--cl-primary-dark));
	color: #fff;
	border: 0;
	box-shadow: var(--cl-shadow-cta);
}

body.coinlocally-flat a.clm-cta:hover,
body.coinlocally-flat a.clm-cta:focus,
.clm-home a.clm-cta:hover,
.clm-home a.clm-cta:focus {
	background: linear-gradient(135deg, var(--cl-primary-dark), #15803d);
	color: #fff;
	transform: translateY(-1px);
}

.cl-home a.clm-cta--hero,
.clm-home a.clm-cta--hero {
	min-height: 3rem;
	padding-inline: 1.5rem;
	font-size: 1rem;
}

.cl-home a.clm-cta--banner,
.clm-home a.clm-cta--banner {
	min-width: 11rem;
}

.cl-home a.clm-cta--header,
.clm-home a.clm-cta--header {
	min-height: 2.5rem;
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
}

.cl-home a.clm-cta--inline,
.clm-home a.clm-cta--inline {
	min-height: 2.5rem;
	padding: 0.55rem 1.1rem;
	font-size: 0.9rem;
}

.cl-home a.clm-cta--mobile,
.clm-home a.clm-cta--mobile {
	min-height: 2.5rem;
	padding: 0.55rem 1rem;
	font-size: 0.875rem;
	box-shadow: none;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.cl-hero,
.clm-hero {
	padding-block: 1.25rem 0.5rem;
	background: transparent;
}

.cl-hero__panel,
.clm-hero__panel {
	background: var(--cl-surface-muted);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius-lg);
	box-shadow: var(--cl-shadow-soft);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.cl-hero__grid,
.clm-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cl-gap-lg);
	align-items: center;
}

.cl-hero__visual-card,
.clm-hero__visual-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 16rem;
	padding: 2rem 1.5rem;
	border-radius: var(--cl-radius-lg);
	background:
		radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.25), transparent 45%),
		linear-gradient(145deg, #14532d 0%, #166534 45%, #052e16 100%);
	box-shadow: var(--cl-shadow);
	text-align: center;
	color: #fff;
}

.cl-hero__visual-mark,
.clm-hero__visual-mark {
	width: 4.5rem;
	height: 4.5rem;
	margin-bottom: 1rem;
	border-radius: 1rem;
	background:
		linear-gradient(135deg, var(--cl-primary), var(--cl-accent));
	box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
	position: relative;
}

.cl-hero__visual-mark::before,
.clm-hero__visual-mark::before,
.cl-hero__visual-mark::after,
.clm-hero__visual-mark::after {
	content: "";
	position: absolute;
	background: #fff;
	border-radius: 2px;
}

.cl-hero__visual-mark::before,
.clm-hero__visual-mark::before {
	width: 0.45rem;
	height: 2rem;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.cl-hero__visual-mark::after,
.clm-hero__visual-mark::after {
	width: 2rem;
	height: 0.45rem;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.cl-hero__visual-title,
.clm-hero__visual-title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 800;
}

.cl-hero__visual-sub,
.clm-hero__visual-sub {
	margin: 0;
	font-size: 0.925rem;
	opacity: 0.9;
}

.cl-hero__eyebrow,
.clm-hero__eyebrow {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: rgba(13, 148, 136, 0.1);
	color: var(--cl-primary-dark);
	font-size: 0.85rem;
	font-weight: 700;
}

.cl-hero__title,
.clm-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.55rem, 5vw, 2.35rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.cl-hero__desc,
.clm-hero__desc {
	margin: 0 0 1.5rem;
	color: var(--cl-muted);
	font-size: 0.975rem;
	line-height: 1.85;
	max-width: 36rem;
}

.cl-hero__actions,
.clm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.cl-hero__visual,
.clm-hero__visual {
	order: -1;
}

.cl-hero__card,
.clm-hero__card {
	position: relative;
	overflow: hidden;
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: calc(var(--cl-radius) + 0.15rem);
	box-shadow: var(--cl-shadow);
	padding: 1.5rem;
}

.cl-hero__card::before,
.clm-hero__card::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--cl-primary), var(--cl-accent));
}

.cl-hero__card-icon,
.clm-hero__card-icon {
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(13, 148, 136, 0.12);
	color: var(--cl-primary-dark);
	font-size: 1rem;
	margin-bottom: 0.85rem;
}

.cl-hero__card-title,
.clm-hero__card-title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.cl-hero__card-list,
.clm-hero__card-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cl-hero__card-list li,
.clm-hero__card-list li {
	position: relative;
	padding-inline-start: 1rem;
	margin-bottom: 0.55rem;
	color: var(--cl-muted);
	font-size: 0.925rem;
	line-height: 1.6;
}

.cl-hero__card-list li::before,
.clm-hero__card-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.55rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: var(--cl-accent);
}

/* ==========================================================================
   8. Benefits
   ========================================================================== */

.cl-benefits__grid,
.clm-benefits__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cl-gap);
}

.cl-benefits__item,
.clm-benefits__item {
	height: 100%;
}

/* ==========================================================================
   9. CTA banner
   ========================================================================== */

.cl-cta-banner,
.clm-cta-banner {
	padding-block: 2rem;
}

.cl-cta-banner__inner,
.clm-cta-banner__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cl-gap-lg);
	align-items: center;
	background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(245, 158, 11, 0.06));
	border: 1px solid var(--cl-border);
	border-radius: calc(var(--cl-radius) + 0.15rem);
	box-shadow: var(--cl-shadow);
	padding: 1.5rem;
}

.cl-cta-banner__title,
.clm-cta-banner__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	font-weight: 700;
}

.cl-cta-banner__desc,
.cl-cta-banner__disclosure,
.clm-cta-banner__desc,
.clm-cta-banner__disclosure {
	margin: 0;
	color: var(--cl-muted);
	font-size: 0.95rem;
	line-height: 1.75;
}

.cl-cta-banner__disclosure,
.clm-cta-banner__disclosure {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--cl-border);
	font-size: 0.875rem;
}

.cl-cta-banner__action,
.clm-cta-banner__action {
	justify-self: start;
}

/* ==========================================================================
   10. Stats / features
   ========================================================================== */

.cl-stats__grid,
.clm-stats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cl-gap);
}

.cl-stats__label,
.clm-stats__label {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(13, 148, 136, 0.1);
	color: var(--cl-primary-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

.cl-stats__item,
.clm-stats__item {
	text-align: center;
}

/* ==========================================================================
   11. Intro section
   ========================================================================== */

.cl-intro__grid,
.clm-intro__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cl-gap-lg);
}

.cl-intro__content p,
.clm-intro__content p {
	margin: 0 0 1rem;
	font-size: 0.975rem;
	line-height: 1.85;
	color: var(--cl-text);
}

.cl-intro__risk,
.clm-intro__risk {
	padding: 0.85rem 1rem;
	border-inline-start: 3px solid var(--cl-accent);
	border-radius: var(--cl-radius);
	background: rgba(245, 158, 11, 0.1);
	color: #92400e;
	font-size: 0.9rem;
	line-height: 1.75;
}

.cl-intro__aside,
.clm-intro__aside {
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow-soft);
	padding: 1.25rem;
}

.cl-intro__list,
.clm-intro__list {
	margin: 0;
	padding-inline-start: 1.15rem;
	color: var(--cl-muted);
	font-size: 0.925rem;
	line-height: 1.85;
}

/* ==========================================================================
   12. Post grid
   ========================================================================== */

.cl-post-grid,
.clm-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cl-gap);
}

.cl-post-card,
.clm-post-card {
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow-soft);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cl-post-card:hover,
.clm-post-card:hover {
	box-shadow: var(--cl-shadow);
	transform: translateY(-2px);
}

.cl-post-card__thumb,
.clm-post-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: rgba(13, 148, 136, 0.06);
}

.cl-post-card__thumb img,
.clm-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cl-post-card__body,
.clm-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem;
}

.cl-post-card__title,
.clm-post-card__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
}

.cl-home .cl-post-card__title a,
.cl-home .clm-post-card__title a,
.clm-home .cl-post-card__title a,
.clm-home .clm-post-card__title a {
	color: var(--cl-text);
	text-decoration: none;
}

.cl-home .cl-post-card__title a:hover,
.cl-home .cl-post-card__title a:focus,
.cl-home .clm-post-card__title a:hover,
.cl-home .clm-post-card__title a:focus,
.clm-home .cl-post-card__title a:hover,
.clm-home .cl-post-card__title a:focus,
.clm-home .clm-post-card__title a:hover,
.clm-home .clm-post-card__title a:focus {
	color: var(--cl-primary-dark);
}

.cl-post-card__date,
.clm-post-card__date {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--cl-muted);
	font-size: 0.8rem;
}

.cl-post-card__excerpt,
.clm-post-card__excerpt {
	margin: 0;
	margin-top: auto;
	color: var(--cl-muted);
	font-size: 0.9rem;
	line-height: 1.7;
}

.cl-post-card__more,
.clm-post-card__more {
	display: inline-block;
	margin-top: 0.75rem;
	color: var(--cl-primary-dark);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.cl-home .cl-post-card__more:hover,
.cl-home .cl-post-card__more:focus,
.cl-home .clm-post-card__more:hover,
.cl-home .clm-post-card__more:focus,
.clm-home .cl-post-card__more:hover,
.clm-home .cl-post-card__more:focus,
.clm-home .clm-post-card__more:hover,
.clm-home .clm-post-card__more:focus {
	color: var(--cl-primary);
	text-decoration: underline;
}

.cl-post-card__thumb--placeholder,
.clm-post-card__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.cl-post-card__placeholder,
.clm-post-card__placeholder {
	display: block;
	width: 3rem;
	height: 3rem;
	border-radius: var(--cl-radius);
	background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(245, 158, 11, 0.18));
	border: 1px solid rgba(13, 148, 136, 0.2);
	position: relative;
}

.cl-post-card__placeholder::before,
.clm-post-card__placeholder::before {
	content: "";
	position: absolute;
	inset: 0.65rem;
	border: 2px solid rgba(13, 148, 136, 0.35);
	border-radius: 0.25rem;
}

/* Alternating section backgrounds */
.cl-latest-posts,
.clm-latest-posts {
	background: transparent;
}

.cl-latest-posts--learn,
.clm-latest-posts--learn {
	background: rgba(255, 255, 255, 0.55);
}

.cl-latest-posts--coinlocally-news,
.clm-latest-posts--coinlocally-news {
	background: transparent;
}

.cl-latest-posts--crypto-news,
.clm-latest-posts--crypto-news {
	background: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.cl-faq__list,
.clm-faq__list {
	display: grid;
	gap: 0.75rem;
}

.cl-faq__item,
.clm-faq__item {
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow-soft);
	padding: 0.25rem 1rem;
}

.cl-faq__item[open],
.clm-faq__item[open] {
	border-color: rgba(13, 148, 136, 0.35);
	box-shadow: var(--cl-shadow);
}

.cl-faq__question,
.clm-faq__question {
	cursor: pointer;
	font-size: 0.975rem;
	font-weight: 700;
	padding-block: 0.9rem;
	list-style: none;
	color: var(--cl-text);
}

.cl-faq__question::-webkit-details-marker,
.clm-faq__question::-webkit-details-marker {
	display: none;
}

.cl-faq__answer,
.clm-faq__answer {
	padding-bottom: 1rem;
	color: var(--cl-muted);
	font-size: 0.925rem;
	line-height: 1.8;
}

.cl-faq__answer p,
.clm-faq__answer p {
	margin: 0;
}

/* ==========================================================================
   14. Mobile sticky CTA
   ========================================================================== */

.cl-mobile-sticky,
.clm-mobile-sticky {
	display: none;
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 990;
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid var(--cl-border);
	box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.1);
	backdrop-filter: blur(8px);
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.cl-mobile-sticky__inner,
.clm-mobile-sticky__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: min(100%, var(--cl-container));
	margin-inline: auto;
	min-height: calc(var(--cl-sticky-height) - 1.5rem);
}

.cl-mobile-sticky__text,
.clm-mobile-sticky__text {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--cl-text);
}

/* ==========================================================================
   15. Breakpoints
   ========================================================================== */

/* 480px — small phones landscape / large phones */
@media (min-width: 480px) {
	.cl-container,
	.clm-container {
		width: min(100% - 2rem, var(--cl-container));
	}

	.cl-hero__actions,
	.clm-hero__actions {
		gap: 0.85rem;
	}
}

/* 768px — tablet */
@media (min-width: 768px) {
	:root {
		--cl-section-y: 3.25rem;
		--cl-gap: 1.15rem;
	}

	.cl-hero,
	.clm-hero {
		padding-block: 3rem 3.5rem;
	}

	.cl-hero__visual,
	.clm-hero__visual {
		order: 0;
	}

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

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

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

	.cl-cta-banner__action,
	.clm-cta-banner__action {
		justify-self: end;
	}
}

/* 1024px — desktop */
@media (min-width: 1024px) {
	.cl-hero__grid,
	.clm-hero__grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 2.5rem;
	}

	.cl-benefits__grid,
	.clm-benefits__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cl-stats__grid,
	.clm-stats__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.cl-intro__grid,
	.clm-intro__grid {
		grid-template-columns: 1.45fr 0.75fr;
		align-items: start;
	}

	.cl-cta-banner__inner,
	.clm-cta-banner__inner {
		grid-template-columns: 1fr auto;
		padding: 2rem;
	}

	.cl-post-grid,
	.clm-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 1240px — wide desktop */
@media (min-width: 1240px) {
	.cl-container,
	.clm-container {
		width: min(100% - 2.5rem, var(--cl-container));
	}

	.cl-section,
	.clm-section {
		padding-block: 3.5rem;
	}

	.cl-hero__grid,
	.clm-hero__grid {
		gap: 3rem;
	}
}

/* Hide sticky bar on tablet/desktop; show only on mobile */
@media (min-width: 768px) {
	.cl-mobile-sticky,
	.clm-mobile-sticky {
		display: none;
	}

	body.coinlocally-home {
		padding-bottom: 0;
	}
}

@media (max-width: 767px) {
	.cl-mobile-sticky,
	.clm-mobile-sticky {
		display: block;
	}
}
