/**
 * CLAADSS 2026 — Article & Press Release reading experience
 * Multicolour lists · FAQ · headlines · hyperlinks · mid-read more
 */

/* —— Tokens —— */
body.single-format-standard .site-main.post-page,
body.single-post .site-main.post-page,
body.post-template-default .site-main.post-page,
body.claadss-single-article .site-main,
body.claadss-single-press .site-main {
	--ar-ink: #0f172a;
	--ar-body: #334155;
	--ar-muted: #64748b;
	--ar-accent: #4f46e5;
	--ar-accent2: #db2777;
	--ar-line: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #f59e0b, #10b981);
	--ar-max: 100%;
	--ar-radius: 16px;
	--ar-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Press: warm orange / rose palette */
body.claadss-single-press .site-main.post-page,
body.claadss-single-press .site-main {
	--ar-accent: #ea580c;
	--ar-accent2: #db2777;
	--ar-line: linear-gradient(90deg, #f97316, #ea580c, #db2777, #f59e0b, #ec4899);
}
body.claadss-single-press .entry-header .entry-title {
	color: #9a3412 !important;
}
body.claadss-single-press .entry-content h2 {
	color: #c2410c !important;
}
body.claadss-single-press .entry-content > p:first-of-type {
	border-left-color: #f97316;
	background: linear-gradient(90deg, #fff7ed, transparent);
}
body.claadss-single-press .entry-content a {
	color: #c2410c;
	background: linear-gradient(180deg, transparent 62%, rgba(251, 146, 60, 0.35) 62%);
}
body.claadss-single-press .entry-content a:hover {
	color: #be185d;
	background: linear-gradient(180deg, transparent 55%, rgba(244, 114, 182, 0.4) 55%);
}

/* —— Title —— */
.single-post .entry-header .entry-title,
.single-post h1.entry-title,
.post-page .entry-header h1,
body.claadss-single-article .entry-title,
body.claadss-single-press .entry-title {
	font-family: var(--ar-font) !important;
	font-weight: 800 !important;
	font-size: clamp(1.7rem, 3.4vw, 2.45rem) !important;
	line-height: 1.18 !important;
	color: #312e81 !important;
	letter-spacing: -0.025em;
	margin-bottom: 0.35em !important;
}
.single-post .entry-header .entry-title::after,
.post-page .entry-header h1::after {
	content: "";
	display: block;
	width: min(280px, 70%);
	height: 6px;
	margin-top: 16px;
	border-radius: 999px;
	background: var(--ar-line);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Category chips above title */
.entry-header .post-categories a,
.entry-header a[rel="category tag"] {
	display: inline-flex !important;
	align-items: center;
	padding: 5px 12px !important;
	margin: 0 6px 10px 0 !important;
	border-radius: 999px !important;
	font-size: 0.72rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: linear-gradient(135deg, #eef2ff, #fdf2f8) !important;
	color: #4338ca !important;
	border: 1px solid #c7d2fe !important;
	text-decoration: none !important;
}

/* Featured image */
.single-post-image {
	border-radius: 20px;
	overflow: hidden;
	margin: 0 0 1.65rem;
	box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
	border: 1px solid rgba(226, 232, 240, 0.9);
}
.single-post-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* —— Content shell —— */
.single-post .entry-content,
.post-page .entry-content,
body.single .entry-content,
body.claadss-single-article .entry-content,
body.claadss-single-press .entry-content {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-inline: 0;
	box-sizing: border-box;
	color: var(--ar-body);
	font-size: 1.1rem;
	line-height: 1.82;
	font-family: var(--ar-font);
}
.single-post .entry-header,
.single-post .single-post-image,
.post-page .entry-header,
.post-page .single-post-image {
	max-width: none !important;
	width: 100% !important;
}

/* Lead paragraph */
.entry-content > p {
	margin: 0 0 1.2em;
}
.entry-content > p:first-of-type {
	font-size: 1.18rem;
	color: #1e293b;
	border-left: 5px solid #818cf8;
	padding: 0.55rem 0 0.55rem 1.15rem;
	background: linear-gradient(90deg, #eef2ff 0%, transparent 85%);
	border-radius: 0 14px 14px 0;
	font-weight: 500;
}

/* —— Colourful headlines —— */
.entry-content h1 {
	font-family: var(--ar-font);
	color: #5b21b6 !important;
	font-weight: 800;
	font-size: clamp(1.45rem, 2.5vw, 1.75rem);
	margin: 1.75em 0 0.55em;
	letter-spacing: -0.02em;
	background: linear-gradient(105deg, #5b21b6, #db2777);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent !important;
}
.entry-content h2 {
	font-family: var(--ar-font);
	color: #3730a3 !important;
	font-weight: 800;
	font-size: clamp(1.28rem, 2.2vw, 1.48rem);
	margin: 1.7em 0 0.55em;
	padding: 0.15em 0 0.45em;
	letter-spacing: -0.015em;
	position: relative;
	border-bottom: none;
}
/* Long gradient line under H2 */
.entry-content h2::after {
	content: "";
	display: block;
	width: 100%;
	height: 4px;
	margin-top: 10px;
	border-radius: 999px;
	background: var(--ar-line);
	opacity: 0.95;
}
.entry-content h2::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 4px;
	margin-right: 10px;
	background: linear-gradient(135deg, #6366f1, #ec4899, #f59e0b);
	vertical-align: middle;
	box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}
.entry-content h3 {
	font-family: var(--ar-font);
	color: #be185d !important;
	font-weight: 750;
	font-size: 1.15rem;
	margin: 1.4em 0 0.45em;
	padding: 10px 14px;
	border-radius: 12px;
	background: linear-gradient(90deg, #fdf2f8, #eef2ff 70%, transparent);
	border-left: 5px solid #ec4899;
}
.entry-content h4 {
	color: #0d9488 !important;
	font-weight: 750;
	font-size: 1.05rem;
	margin: 1.25em 0 0.4em;
}

/* —— Decorative long HR lines —— */
.entry-content hr,
.entry-content .claadss-long-line {
	border: 0;
	height: 5px;
	margin: 2rem 0;
	border-radius: 999px;
	background: var(--ar-line);
	opacity: 0.9;
	box-shadow: 0 6px 18px rgba(99, 102, 241, 0.2);
}

/* —— Multicolour ordered lists —— */
.entry-content ol {
	list-style: none;
	counter-reset: ar-ol;
	padding-left: 0;
	margin: 0 0 1.4em;
}
.entry-content ol > li {
	counter-increment: ar-ol;
	position: relative;
	padding: 0.55rem 0.75rem 0.55rem 3.1rem;
	margin: 0.45em 0;
	border-radius: 12px;
	background: linear-gradient(90deg, #f8fafc, transparent);
	border: 1px solid #e2e8f0;
}
.entry-content ol > li::before {
	content: counter(ar-ol);
	position: absolute;
	left: 0.55rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.82rem;
	font-weight: 900;
	color: #fff;
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}
/* Rotating multicolour badges */
.entry-content ol > li:nth-child(6n + 1)::before {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.entry-content ol > li:nth-child(6n + 2)::before {
	background: linear-gradient(135deg, #ec4899, #db2777);
}
.entry-content ol > li:nth-child(6n + 3)::before {
	background: linear-gradient(135deg, #f59e0b, #ea580c);
}
.entry-content ol > li:nth-child(6n + 4)::before {
	background: linear-gradient(135deg, #10b981, #059669);
}
.entry-content ol > li:nth-child(6n + 5)::before {
	background: linear-gradient(135deg, #06b6d4, #0284c7);
}
.entry-content ol > li:nth-child(6n + 6)::before {
	background: linear-gradient(135deg, #a855f7, #7c3aed);
}

/* —— Multicolour bullets —— */
.entry-content ul {
	list-style: none;
	padding-left: 0.25rem;
	margin: 0 0 1.4em;
}
.entry-content ul > li {
	position: relative;
	padding: 0.4rem 0.5rem 0.4rem 1.85rem;
	margin: 0.35em 0;
}
.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: 0.35rem;
	top: 0.75rem;
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 4px;
	transform: rotate(45deg);
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}
.entry-content ul > li:nth-child(6n + 1)::before {
	background: linear-gradient(135deg, #6366f1, #818cf8);
	border-radius: 50%;
	transform: none;
}
.entry-content ul > li:nth-child(6n + 2)::before {
	background: linear-gradient(135deg, #ec4899, #f472b6);
}
.entry-content ul > li:nth-child(6n + 3)::before {
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
	border-radius: 2px;
	transform: none;
}
.entry-content ul > li:nth-child(6n + 4)::before {
	background: linear-gradient(135deg, #10b981, #34d399);
	border-radius: 50%;
	transform: none;
}
.entry-content ul > li:nth-child(6n + 5)::before {
	background: linear-gradient(135deg, #06b6d4, #22d3ee);
}
.entry-content ul > li:nth-child(6n + 6)::before {
	background: linear-gradient(135deg, #a855f7, #c084fc);
	border-radius: 50%;
	transform: none;
}
.entry-content li strong,
.entry-content li b {
	color: #1e1b4b;
	font-weight: 750;
}

/* —— Highlight hyperlinks —— */
.entry-content a:not(.cm-more-card):not(.button):not(.claadss-faq__q) {
	color: #4338ca;
	font-weight: 700;
	text-decoration: none;
	background: linear-gradient(180deg, transparent 62%, rgba(129, 140, 248, 0.4) 62%);
	padding: 0 2px;
	border-radius: 3px;
	transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
.entry-content a:not(.cm-more-card):not(.button):not(.claadss-faq__q):hover {
	color: #be185d;
	background: linear-gradient(180deg, transparent 55%, rgba(244, 114, 182, 0.45) 55%);
	box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.12);
}

/* —— Tables —— */
.entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 1.5em 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(79, 70, 229, 0.1);
	font-size: 0.98rem;
}
.entry-content thead th {
	background: linear-gradient(135deg, #4f46e5, #7c3aed, #db2777);
	color: #fff;
	padding: 13px 15px;
	text-align: left;
	font-weight: 750;
}
.entry-content tbody td {
	padding: 12px 15px;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}
.entry-content tbody tr:nth-child(even) td {
	background: #f8fafc;
}
.entry-content tbody tr:hover td {
	background: #eef2ff;
}

/* —— Blockquotes —— */
.entry-content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-left: 6px solid transparent;
	border-image: var(--ar-line) 1;
	background: linear-gradient(135deg, #eef2ff, #fdf2f8 60%, #fff7ed);
	border-radius: 0 16px 16px 0;
	color: #312e81;
	font-weight: 650;
	font-size: 1.05rem;
}

/* —— Interactive FAQ —— */
.entry-content .claadss-faq,
.claadss-faq {
	margin: 1.75rem 0 2rem;
	padding: 1.1rem 1.15rem 1.25rem;
	border-radius: 20px;
	background:
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 50% at 0% 100%, rgba(236, 72, 153, 0.1), transparent 50%),
		#fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}
.claadss-faq__title {
	margin: 0 0 0.85rem !important;
	font-size: 1.25rem !important;
	font-weight: 900 !important;
	background: linear-gradient(105deg, #4f46e5, #db2777) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	color: transparent !important;
}
.claadss-faq__title::before,
.claadss-faq__title::after {
	display: none !important;
}
.claadss-faq__item {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	margin: 0 0 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.claadss-faq__item.is-open {
	border-color: #c7d2fe;
	box-shadow: 0 8px 22px rgba(99, 102, 241, 0.12);
}
.claadss-faq__q {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	text-align: left;
	padding: 14px 16px;
	margin: 0;
	border: 0;
	background: linear-gradient(90deg, #f8fafc, #fff);
	cursor: pointer;
	font-family: var(--ar-font);
	font-size: 1rem;
	font-weight: 750;
	color: #1e1b4b !important;
	line-height: 1.35;
	text-decoration: none !important;
	box-shadow: none !important;
}
.claadss-faq__q:hover {
	background: linear-gradient(90deg, #eef2ff, #fdf2f8);
	color: #4338ca !important;
}
.claadss-faq__q::after {
	content: "+";
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	line-height: 1;
	transition: transform 0.2s ease;
}
.claadss-faq__item.is-open .claadss-faq__q::after {
	content: "−";
	background: linear-gradient(135deg, #ec4899, #f59e0b);
	transform: rotate(180deg);
}
.claadss-faq__a {
	display: none;
	padding: 0 16px 16px;
	color: #475569;
	font-size: 0.98rem;
	line-height: 1.7;
	border-top: 1px dashed #e2e8f0;
}
.claadss-faq__item.is-open .claadss-faq__a {
	display: block;
	animation: ar-faq-in 0.22s ease;
}
@keyframes ar-faq-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Fallback FAQ look before JS runs (h3 after FAQ h2) */
.entry-content h2 + h3 {
	/* kept as colourful subheads; JS converts FAQ blocks */
}

/* —— Mid-article: read other blogs —— */
.claadss-more-blogs,
.entry-content .claadss-more-blogs {
	margin: 2.25rem 0;
	padding: 1.25rem 1.2rem 1.35rem;
	border-radius: 20px;
	background:
		radial-gradient(ellipse 70% 80% at 0% 0%, rgba(99, 102, 241, 0.14), transparent 50%),
		radial-gradient(ellipse 60% 70% at 100% 100%, rgba(236, 72, 153, 0.12), transparent 50%),
		linear-gradient(180deg, #ffffff, #f8fafc);
	border: 1px solid #e2e8f0;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	clear: both;
}
.claadss-more-blogs__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 0.85rem;
	flex-wrap: wrap;
}
.claadss-more-blogs__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6366f1;
}
.claadss-more-blogs__label::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #ec4899);
}
.claadss-more-blogs__title {
	margin: 0 !important;
	font-size: 1.2rem !important;
	font-weight: 900 !important;
	color: #0f172a !important;
	background: none !important;
	-webkit-text-fill-color: #0f172a !important;
}
.claadss-more-blogs__title::before,
.claadss-more-blogs__title::after {
	display: none !important;
}
.claadss-more-blogs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
@media (max-width: 900px) {
	.claadss-more-blogs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.claadss-more-blogs__grid {
		grid-template-columns: 1fr;
	}
}
a.cm-more-card {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	background: #fff !important;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	color: inherit !important;
	padding: 0 !important;
	font-weight: 600;
}
a.cm-more-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(79, 70, 229, 0.14);
	background: #fff !important;
}
.cm-more-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #e2e8f0;
	overflow: hidden;
}
.cm-more-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cm-more-card__body {
	padding: 10px 12px 12px;
}
.cm-more-card__cat {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #7c3aed;
	margin-bottom: 4px;
}
.cm-more-card__title {
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.3;
	color: #0f172a;
	margin: 0;
}

/* Mid ads keep existing look */
.claadss-mid-ad {
	margin: 1.75rem 0;
	padding: 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, #fff7ed, #eef2ff);
	border: 1px dashed #c7d2fe;
	text-align: center;
	clear: both;
}
.claadss-mid-ad__label {
	display: block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 8px;
}

/* —— Hide admin / author name site-wide (front) —— */
body.claadss-hide-admin-author .post-author,
body.claadss-hide-admin-author .post-author-name,
body.claadss-hide-admin-author .post-author-avatar,
body.claadss-hide-admin-author .post-author-avatar-a,
body.claadss-hide-admin-author .amp-king-author,
body.claadss-hide-admin-author .author-name,
body.claadss-hide-admin-author .entry-author,
body.claadss-hide-admin-author .byline,
body.claadss-hide-admin-author .by-author,
body.claadss-hide-admin-author .content-08-author,
body.claadss-hide-admin-author .content-09-author,
body.claadss-hide-admin-author .king-grid-author,
body.claadss-hide-admin-author .article-meta-head .post-author-name,
body.claadss-hide-admin-author .cm-card-author,
body.claadss-hide-admin-author .cl-card-author,
body.single .post-author,
body.single .post-author-name,
body.single .post-author-top,
body.claadss-single-article .post-author,
body.claadss-single-press .post-author {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Images in content */
.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

/* Strong numbers in text */
.entry-content .claadss-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	padding: 0 0.4em;
	border-radius: 8px;
	font-weight: 900;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #db2777);
	font-size: 0.9em;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.single-post .entry-content,
	.post-page .entry-content {
		font-size: 1.04rem;
		line-height: 1.78;
	}
	.entry-content > p:first-of-type {
		font-size: 1.08rem;
	}
	.entry-content ol > li {
		padding-left: 2.9rem;
	}
	.claadss-more-blogs,
	.claadss-faq {
		padding: 1rem 0.9rem;
		border-radius: 16px;
	}
}
