/*
Theme Name:   ChatAI Guide
Theme URI:    https://chatai.guide/
Description:  Child theme of Blocksy for chatai.guide. Adds brand colors (Indigo / Violet / Amber), typography (DM Sans / Inter / JetBrains Mono), and the "not affiliated with OpenAI" footer disclaimer.
Author:       ChatAI Guide
Author URI:   https://chatai.guide/
Template:     blocksy
Version:      1.1.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  blocksy-child
*/

:root {
	--cg-primary: #4F46E5;
	--cg-secondary: #7C3AED;
	--cg-accent: #0F766E;

	--cg-ink: #111827;
	--cg-text: #374151;
	--cg-muted: #6B7280;
	--cg-border: #E5E7EB;
	--cg-surface: #FAFAF9;
	--cg-link: #4338CA;

	--cg-font-heading: 'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cg-font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cg-font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Map Blocksy palette tokens to brand colors so existing theme styles inherit them */
	--theme-palette-color-1: #4F46E5;
	--theme-palette-color-2: #7C3AED;
	--theme-palette-color-3: #0F766E;
}

body,
body.ct-loaded {
	font-family: var(--cg-font-body);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
	font-family: var(--cg-font-heading);
}

code, pre, kbd, samp,
.wp-block-code,
.wp-block-preformatted {
	font-family: var(--cg-font-code);
}

a { color: var(--cg-primary); }
a:hover,
a:focus { color: var(--cg-secondary); }

.cg-disclaimer {
	text-align: center;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
	padding: 14px 16px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
	font-family: var(--cg-font-body);
}
.cg-disclaimer strong { color: #374151; }

/* ------------------------------------------------------------------
   Header branding
   - The real <img class="default-logo"> renders the wordmark.
   - Hide the site-title text so it doesn't sit alongside the logo.
   ------------------------------------------------------------------ */
.ct-header .site-logo-container img,
.ct-header .custom-logo {
	max-height: 44px;
	width: auto;
	height: auto;
}
@media (max-width: 480px) {
	.ct-header .site-logo-container img,
	.ct-header .custom-logo { max-height: 36px; }
}

.ct-header .site-title-container,
.ct-header .site-description {
	display: none !important;
}

/* ==================================================================
   FRONT PAGE
   ================================================================== */
.cg-front {
	color: #1F2937;
}
.cg-front h1,
.cg-front h2,
.cg-front h3 {
	color: #111827;
	letter-spacing: -0.02em;
}

/* ----- HERO (light) ------------------------------------------------- */
.cg-hero {
	position: relative;
	padding: clamp(80px, 11vw, 144px) 24px clamp(64px, 9vw, 104px);
	background: #FBFBFD;
	color: #0F172A;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid #EEF1F5;
}
.cg-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
.cg-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(15, 118, 110, 0.045) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 80%);
}
.cg-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.45;
}
.cg-hero__glow--a {
	width: 520px; height: 520px;
	top: -180px; left: -120px;
	background: radial-gradient(circle, #99F6E4 0%, transparent 70%);
}
.cg-hero__glow--b {
	width: 640px; height: 640px;
	bottom: -260px; right: -140px;
	background: radial-gradient(circle, #C7D2FE 0%, transparent 70%);
}
.cg-hero__inner {
	max-width: 1040px;
	margin: 0 auto;
	text-align: center;
	position: relative;
}
.cg-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #E5E7EB;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.01em;
	margin-bottom: 28px;
	color: #475569;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cg-hero__eyebrow-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #14B8A6;
	box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
	animation: cg-hero-pulse 2.4s ease-in-out infinite;
}
@keyframes cg-hero-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.10); }
	50%      { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0.22); }
}
.cg-hero__title {
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 700;
	line-height: 1.08;
	margin: 0 0 24px;
	color: #0B1120;
	letter-spacing: -0.025em;
}
.cg-hero__title span {
	background: linear-gradient(95deg, #0F766E 0%, #6366F1 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.cg-hero__lead {
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.55;
	margin: 0 auto 36px;
	max-width: 720px;
	color: #475569;
}
.cg-hero__actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 56px;
}
.cg-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	max-width: 760px;
	margin: 0 auto;
	list-style: none;
	padding: 0;
}
.cg-hero__stats li {
	background: #fff;
	border: 1px solid #EEF1F5;
	border-radius: 14px;
	padding: 22px 18px;
	text-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.cg-hero__stats li:hover {
	border-color: rgba(15, 118, 110, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -10px rgba(15, 118, 110, 0.16);
}
.cg-hero__stats strong {
	display: block;
	font-family: var(--cg-font-heading);
	font-size: clamp(26px, 3.2vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	color: #0B1120;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.cg-hero__stats span {
	display: block;
	font-size: 12.5px;
	color: #64748B;
	margin-top: 6px;
	letter-spacing: 0.01em;
}

/* ----- BUTTONS ------------------------------------------------------ */
.cg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 10px;
	font-family: var(--cg-font-heading);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	border: 1px solid transparent;
	cursor: pointer;
}
.cg-btn--primary {
	background: #0F766E;
	color: #fff;
	box-shadow: 0 4px 12px -4px rgba(15, 118, 110, 0.35);
}
.cg-btn--primary:hover {
	background: #115E59;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px -6px rgba(15, 118, 110, 0.5);
}
.cg-btn--ghost {
	background: transparent;
	color: #0F172A;
	border-color: #CBD5E1;
}
.cg-btn--ghost:hover {
	background: #fff;
	border-color: #0F766E;
	color: #0F766E;
}
.cg-btn--ghost-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}
.cg-btn--ghost-light:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* ----- SECTION FRAMES ---------------------------------------------- */
.cg-section {
	padding: clamp(64px, 8vw, 112px) 24px;
	max-width: 1200px;
	margin: 0 auto;
}
.cg-section__head {
	text-align: center;
	margin-bottom: 56px;
}
.cg-section__head--left {
	text-align: left;
	margin-bottom: 40px;
	max-width: 720px;
}
.cg-section__head--row {
	max-width: 1200px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.cg-section__kicker {
	display: inline-block;
	font-family: var(--cg-font-heading);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #0F766E;
	margin-bottom: 10px;
}
.cg-section__head h2 {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	margin: 0 0 12px;
	letter-spacing: -0.025em;
}
.cg-section__head p {
	font-size: 17px;
	color: #4B5563;
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.5;
}
.cg-section__head--left p { margin: 0; }

/* ----- FEATURED EDITORIAL ------------------------------------------ */
.cg-featured {
	background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
	padding: clamp(56px, 7vw, 96px) 24px;
}
.cg-featured__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.cg-featured__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 28px;
	align-items: stretch;
}
@media (max-width: 900px) {
	.cg-featured__grid { grid-template-columns: 1fr; }
}
.cg-featured__lead {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 18px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cg-featured__lead:hover {
	transform: translateY(-3px);
	border-color: rgba(15, 118, 110, 0.3);
	box-shadow: 0 18px 50px -22px rgba(15, 23, 42, 0.18);
	color: inherit;
}
.cg-featured__lead-thumb {
	background: #EEF2FF;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}
.cg-featured__lead-thumb img {
	width: 100%; height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.cg-featured__lead:hover .cg-featured__lead-thumb img { transform: scale(1.03); }
.cg-featured__lead-body {
	padding: 28px 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.cg-featured__lead-title {
	font-family: var(--cg-font-heading);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.2;
	margin: 4px 0 6px;
	color: #0F172A;
	letter-spacing: -0.02em;
}
.cg-featured__lead-excerpt {
	font-size: 15.5px;
	line-height: 1.55;
	color: #4B5563;
	margin: 0;
	flex: 1;
}
.cg-featured__lead-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #F1F5F9;
	font-size: 13px;
	color: #94A3B8;
}
.cg-featured__lead-read {
	color: #0F766E;
	font-weight: 600;
}
.cg-featured__side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cg-featured__pick {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	flex: 1;
}
.cg-featured__pick:hover {
	transform: translateY(-2px);
	border-color: rgba(15, 118, 110, 0.35);
	box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.12);
	color: inherit;
}
.cg-featured__pick h4 {
	margin: 4px 0 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	color: #0F172A;
	letter-spacing: -0.01em;
}
.cg-featured__pick-arrow {
	position: absolute;
	top: 22px; right: 22px;
	color: #CBD5E1;
	transition: color 0.18s ease, transform 0.18s ease;
}
.cg-featured__pick:hover .cg-featured__pick-arrow {
	color: #0F766E;
	transform: translateX(2px);
}

/* ----- CURRENT LINEUP CARD ----------------------------------------- */
.cg-lineup {
	background: #F8FAFC;
	padding: clamp(56px, 7vw, 96px) 24px;
}
.cg-lineup__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.cg-lineup__grid {
	display: grid;
	gap: 1px;
	background: #E5E7EB;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.cg-lineup__row {
	display: grid;
	grid-template-columns: 180px 1fr 2fr auto;
	gap: 18px;
	align-items: center;
	padding: 18px 24px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
	font-size: 15px;
}
a.cg-lineup__row:hover {
	background: #F0FDFA;
	color: inherit;
}
.cg-lineup__tier {
	font-family: var(--cg-font-heading);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0F766E;
}
.cg-lineup__name {
	font-family: var(--cg-font-code);
	font-size: 14px;
	font-weight: 500;
	color: #0F172A;
}
.cg-lineup__desc {
	color: #475569;
	font-size: 14.5px;
	line-height: 1.45;
}
.cg-lineup__arrow {
	color: #CBD5E1;
	transition: color 0.15s ease, transform 0.15s ease;
}
a.cg-lineup__row:hover .cg-lineup__arrow {
	color: #0F766E;
	transform: translateX(2px);
}
@media (max-width: 760px) {
	.cg-lineup__row {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"tier arrow"
			"name arrow"
			"desc desc";
		gap: 4px 12px;
		padding: 16px 18px;
	}
	.cg-lineup__tier { grid-area: tier; }
	.cg-lineup__name { grid-area: name; }
	.cg-lineup__desc { grid-area: desc; margin-top: 4px; }
	.cg-lineup__arrow { grid-area: arrow; align-self: start; }
}

/* ----- INTENT CARDS ------------------------------------------------ */
.cg-intents {
	padding: clamp(56px, 7vw, 96px) 24px;
}
.cg-intents__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.cg-intents__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.cg-intent {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 26px 24px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	position: relative;
}
.cg-intent:hover {
	transform: translateY(-3px);
	border-color: rgba(15, 118, 110, 0.35);
	box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.18);
	color: inherit;
}
.cg-intent__icon {
	display: inline-flex;
	width: 44px; height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: linear-gradient(135deg, #ECFDF5 0%, #EEF2FF 100%);
	color: #0F766E;
	margin-bottom: 8px;
}
.cg-intent__icon svg { width: 22px; height: 22px; }
.cg-intent__eyebrow {
	font-family: var(--cg-font-heading);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #0F766E;
}
.cg-intent__title {
	margin: 4px 0 6px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: #0F172A;
	letter-spacing: -0.015em;
}
.cg-intent__body {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #4B5563;
	flex: 1;
}
.cg-intent__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid #F1F5F9;
	font-size: 13px;
	font-weight: 600;
	color: #0F766E;
}
.cg-intent__arrow { transition: transform 0.18s ease; }
.cg-intent:hover .cg-intent__arrow { transform: translateX(3px); }

/* ----- LATEST NEWS STRIP (light) ----------------------------------- */
.cg-news {
	background: #FBFBFD;
	padding: clamp(56px, 7vw, 96px) 24px;
	color: #1E293B;
	border-top: 1px solid #EEF1F5;
	border-bottom: 1px solid #EEF1F5;
}
.cg-news__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.cg-news__more {
	font-family: var(--cg-font-heading);
	font-weight: 600;
	font-size: 14px;
	color: #0F766E;
	text-decoration: none;
	transition: color 0.15s ease;
}
.cg-news__more:hover { color: #115E59; }
.cg-news__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.cg-news__item {
	display: grid;
	grid-template-columns: 70px 1.4fr 1.5fr;
	gap: 24px;
	padding: 18px 0;
	border-top: 1px solid #E5E7EB;
	align-items: baseline;
}
.cg-news__item:last-child { border-bottom: 1px solid #E5E7EB; }
.cg-news__date {
	font-family: var(--cg-font-code);
	font-size: 13px;
	color: #0F766E;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
.cg-news__title {
	font-family: var(--cg-font-heading);
	font-size: 17px;
	font-weight: 600;
	color: #0B1120;
	text-decoration: none;
	line-height: 1.35;
	letter-spacing: -0.015em;
	transition: color 0.15s ease;
}
.cg-news__title:hover { color: #0F766E; }
.cg-news__excerpt {
	color: #64748B;
	font-size: 14.5px;
	line-height: 1.5;
}
@media (max-width: 800px) {
	.cg-news__item {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 16px 0;
	}
	.cg-news__excerpt { display: none; }
}

/* ----- TRUST PILLARS ----------------------------------------------- */
.cg-trust {
	padding: clamp(56px, 7vw, 96px) 24px;
}
.cg-trust__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.cg-trust__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 800px) {
	.cg-trust__grid { grid-template-columns: 1fr; }
}
.cg-trust__pillar {
	padding: 28px 26px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	border-top: 3px solid #0F766E;
}
.cg-trust__num {
	font-family: var(--cg-font-code);
	font-size: 13px;
	font-weight: 600;
	color: #0F766E;
	letter-spacing: 0.05em;
	display: block;
	margin-bottom: 10px;
}
.cg-trust__pillar h3 {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 600;
	color: #0F172A;
	letter-spacing: -0.015em;
}
.cg-trust__pillar p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: #475569;
}

/* ----- TOPIC LIBRARY ----------------------------------------------- */
.cg-grid {
	display: grid;
	gap: 16px;
}
.cg-grid--cards {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cg-card {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 18px;
	border-radius: 13px;
	background: #fff;
	border: 1px solid #E5E7EB;
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	min-height: 160px;
}
.cg-card:hover {
	transform: translateY(-2px);
	border-color: rgba(15, 118, 110, 0.35);
	box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.14);
	color: inherit;
}
.cg-card__title {
	margin: 0 0 8px;
	font-size: 17.5px;
	font-weight: 600;
	color: #0F172A;
	letter-spacing: -0.015em;
}
.cg-card__desc {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #4B5563;
	flex: 1;
}
.cg-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: #0F766E;
}
.cg-card__arrow { transition: transform 0.18s ease; }
.cg-card:hover .cg-card__arrow { transform: translateX(3px); }

/* Posts grid (kept for related-articles aside on single posts) */
.cg-grid--posts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cg-post {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #E5E7EB;
	display: flex;
	flex-direction: column;
}
.cg-post__thumb img { width: 100%; height: auto; display: block; }
.cg-post__body { padding: 20px; }
.cg-post__cat {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #F0FDFA;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0F766E;
	text-decoration: none;
}
.cg-post__title { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.cg-post__title a { color: #0F172A; text-decoration: none; }
.cg-post__title a:hover { color: #0F766E; }
.cg-post__date { margin: 0; font-size: 13px; color: #6B7280; }

/* ----- FINAL CTA (light) -------------------------------------------- */
.cg-cta {
	padding: clamp(64px, 9vw, 112px) 24px;
	background:
		radial-gradient(800px 400px at 85% 20%, rgba(20, 184, 166, 0.08), transparent 60%),
		radial-gradient(700px 400px at 15% 80%, rgba(99, 102, 241, 0.06), transparent 60%),
		linear-gradient(180deg, #FBFBFD 0%, #F1F5F9 100%);
	color: #0F172A;
	position: relative;
	overflow: hidden;
	border-top: 1px solid #EEF1F5;
}
.cg-cta__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	position: relative;
}
.cg-cta__kicker {
	display: inline-block;
	font-family: var(--cg-font-heading);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #0F766E;
	margin-bottom: 14px;
}
.cg-cta h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	color: #0B1120;
	margin: 0 0 16px;
	letter-spacing: -0.025em;
}
.cg-cta p {
	font-size: 17px;
	color: #475569;
	margin: 0 0 32px;
	line-height: 1.55;
}
.cg-cta__actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}
.cg-cta .cg-btn--ghost-light {
	background: #fff;
	color: #0F172A;
	border-color: #CBD5E1;
}
.cg-cta .cg-btn--ghost-light:hover {
	background: #F1F5F9;
	color: #0F766E;
	border-color: #0F766E;
}

/* Mobile tweaks */
@media (max-width: 600px) {
	.cg-hero__stats { grid-template-columns: 1fr; gap: 12px; }
	.cg-hero__stats li { padding: 16px 12px; }
	.cg-section__head { margin-bottom: 36px; }
}

/* ------------------------------------------------------------------
   Header navigation polish
   ------------------------------------------------------------------ */
.ct-header [data-id="menu"] .menu > li > a {
	font-family: var(--cg-font-heading);
	font-weight: 500;
	font-size: 15px;
	color: #1F2937;
	letter-spacing: -0.01em;
	transition: color 0.15s ease;
}
.ct-header [data-id="menu"] .menu > li > a:hover,
.ct-header [data-id="menu"] .menu > li.current-menu-item > a,
.ct-header [data-id="menu"] .menu > li.current-cat > a {
	color: var(--cg-primary);
}
.ct-header [data-id="search"] {
	color: #4B5563;
	transition: color 0.15s ease;
}
.ct-header [data-id="search"]:hover { color: var(--cg-primary); }

/* ------------------------------------------------------------------
   Footer — hide Blocksy's default copyright row, render our own
   ------------------------------------------------------------------ */
footer.ct-footer { display: none !important; }

.cg-footer {
	background: linear-gradient(180deg, #111827 0%, #0B1120 100%);
	color: #D1D5DB;
	font-family: var(--cg-font-body);
	font-size: 14px;
	line-height: 1.6;
}
.cg-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 32px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
}
.cg-footer__brand {
	max-width: 420px;
}
.cg-footer__logo {
	display: inline-block;
	margin-bottom: 18px;
}
.cg-footer__logo img {
	max-width: 220px;
	height: auto;
	filter: brightness(0) invert(1);
}
.cg-footer__tagline {
	color: #9CA3AF;
	margin: 0 0 18px;
	font-size: 15px;
}
.cg-footer__disclaimer {
	color: #6B7280;
	font-size: 12px;
	margin: 0;
	border-left: 2px solid var(--cg-accent);
	padding-left: 12px;
}
.cg-footer__col h4 {
	font-family: var(--cg-font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #F9FAFB;
	margin: 0 0 16px;
}
.cg-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cg-footer__menu li { margin: 0 0 10px; }
.cg-footer__menu a {
	color: #9CA3AF;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.15s ease;
}
.cg-footer__menu a:hover { color: #fff; }

.cg-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #6B7280;
	font-size: 12px;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 800px) {
	.cg-footer__inner {
		grid-template-columns: 1fr;
		gap: 36px;
		padding-top: 48px;
	}
	.cg-footer__bottom { justify-content: center; text-align: center; }
}

/* ------------------------------------------------------------------
   Reading-progress bar (article pages)
   ------------------------------------------------------------------ */
.cg-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, #0F766E 0%, #5EEAD4 100%);
	z-index: 9999;
	transition: width 0.06s linear;
	pointer-events: none;
}

/* ------------------------------------------------------------------
   Single article (post)
   ------------------------------------------------------------------ */
.cg-article {
	background: var(--cg-surface);
	padding: 48px 24px 80px;
	color: var(--cg-text);
}
.cg-article__inner {
	max-width: 760px;
	margin: 0 auto;
}

.cg-article__breadcrumbs {
	font-size: 13px;
	color: var(--cg-muted);
	margin-bottom: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-family: var(--cg-font-body);
}
.cg-article__breadcrumbs a {
	color: var(--cg-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
.cg-article__breadcrumbs a:hover { color: var(--cg-link); }
.cg-article__breadcrumbs span[aria-hidden] { color: #D1D5DB; padding: 0 2px; }
.cg-article__breadcrumbs > span:last-child {
	color: var(--cg-text);
	font-weight: 500;
}

.cg-article__header { margin-bottom: 32px; }
.cg-article__cat {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: #F0FDFA;
	color: #0F766E;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	margin-bottom: 18px;
	transition: background 0.15s ease;
}
.cg-article__cat:hover { background: #CCFBF1; color: #0F766E; }

.cg-article__title {
	font-family: var(--cg-font-heading);
	font-size: clamp(30px, 4.4vw, 46px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--cg-ink);
	margin: 0 0 16px;
}
.cg-article__lead {
	font-size: 19px;
	line-height: 1.55;
	color: #4B5563;
	margin: 0 0 28px;
	max-width: 680px;
}

.cg-article__byline {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--cg-border);
	border-bottom: 1px solid var(--cg-border);
}
.cg-article__avatar { border-radius: 50%; flex-shrink: 0; }
.cg-article__avatar--brand {
	border-radius: 0;
	flex-shrink: 0;
	display: block;
}
.cg-article__byline-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.4;
}
.cg-article__author {
	font-size: 14px;
	color: var(--cg-ink);
	font-weight: 500;
	font-family: var(--cg-font-body);
}
.cg-article__author a {
	color: var(--cg-ink);
	text-decoration: none;
}
.cg-article__author a:hover { color: var(--cg-link); }
.cg-article__meta {
	font-size: 13px;
	color: var(--cg-muted);
	font-family: var(--cg-font-body);
}
.cg-article__updated {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--cg-accent);
	font-weight: 600;
}
.cg-article__updated::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cg-accent);
	display: inline-block;
}
.cg-article__sep { margin: 0 8px; color: #D1D5DB; }

.cg-article__hero {
	margin: 32px 0 8px;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}
.cg-article__hero img {
	width: 100%;
	height: auto;
	display: block;
}
.cg-article__hero figcaption {
	padding: 10px 14px;
	font-size: 13px;
	color: var(--cg-muted);
	text-align: center;
}

/* Table of contents (rendered between byline and article body) */
.cg-toc {
	margin: 32px 0 8px;
	padding: 22px 26px;
	background:
		linear-gradient(180deg, #FFFFFF 0%, #FAFAFE 100%);
	border: 1px solid var(--cg-border);
	border-left: 3px solid var(--cg-primary);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}
.cg-toc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #F1F2F6;
}
.cg-toc__icon {
	color: var(--cg-primary);
	flex-shrink: 0;
}
.cg-toc__title {
	font-family: var(--cg-font-heading);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--cg-muted);
	margin: 0;
}
.cg-toc__list {
	list-style: none;
	counter-reset: cg-toc;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}
.cg-toc__item {
	counter-increment: cg-toc;
	margin: 0;
	border-top: 1px dashed #EEF0F4;
}
.cg-toc__item:first-child { border-top: 0; }
.cg-toc__item a {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 10px 4px;
	color: var(--cg-text);
	text-decoration: none;
	font-family: var(--cg-font-body);
	font-size: 15.5px;
	line-height: 1.45;
	transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
	border-radius: 6px;
}
.cg-toc__item a::before {
	content: counter(cg-toc, decimal-leading-zero);
	color: var(--cg-primary);
	font-family: var(--cg-font-heading);
	font-weight: 700;
	font-size: 12px;
	flex-shrink: 0;
	min-width: 22px;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	transition: color 0.15s ease;
}
.cg-toc__item a:hover {
	color: var(--cg-link);
	background: #F8F7FF;
	padding-left: 10px;
}
.cg-toc__item a:hover::before {
	color: var(--cg-link);
}
@media (min-width: 720px) {
	.cg-toc__list {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 24px;
	}
	.cg-toc__item {
		border-top: 0;
	}
	.cg-toc__item a { padding: 8px 4px; }
}

/* ------------------------------------------------------------------
   Inline citations — <sup class="cg-cite"><a href="#cg-source-N">[N]</a></sup>
   Rendered by [cg_cite n="N"] shortcode in chatai-guide-tools plugin.
   ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

.cg-cite {
	font-size: 0.7em;
	line-height: 0;
	margin: 0 1px 0 2px;
	vertical-align: super;
	white-space: nowrap;
}
.cg-cite a {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 4px;
	background: #EEF2FF;
	color: var(--cg-link);
	text-decoration: none;
	font-family: var(--cg-font-heading);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cg-cite a:hover,
.cg-cite a:focus {
	background: var(--cg-primary);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}
.cg-cite a:active { transform: translateY(0); }

/* ------------------------------------------------------------------
   Sources panel — rendered by [cg_sources] shortcode at end of articles.
   ------------------------------------------------------------------ */
.cg-sources {
	margin: 56px 0 0;
	padding: 28px 32px;
	background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFE 100%);
	border: 1px solid var(--cg-border);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
	font-family: var(--cg-font-body);
}
.cg-sources__head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 6px;
}
.cg-sources__icon {
	color: var(--cg-primary);
	flex-shrink: 0;
}
.cg-sources__head h2 {
	font-family: var(--cg-font-heading);
	font-size: 22px;
	font-weight: 700;
	color: var(--cg-ink);
	margin: 0;
	flex: 1;
	letter-spacing: -0.01em;
	scroll-margin-top: 80px;
}
.cg-sources__count {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cg-link);
	background: #EEF2FF;
	padding: 5px 12px;
	border-radius: 999px;
}
.cg-sources__lede {
	margin: 8px 0 22px;
	color: var(--cg-muted);
	font-size: 14.5px;
	line-height: 1.6;
}
.cg-sources__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: cg-source;
}
.cg-source {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 14px;
	padding: 14px 12px;
	border-top: 1px solid #F1F2F6;
	scroll-margin-top: 80px;
	border-radius: 8px;
	transition: background 0.2s ease;
}
.cg-source:first-child { border-top: 0; }
.cg-source:target {
	animation: cg-source-flash 2.6s ease forwards;
}
@keyframes cg-source-flash {
	0%   { background: rgba(79, 70, 229, 0.16); }
	60%  { background: rgba(79, 70, 229, 0.10); }
	100% { background: transparent; }
}
.cg-source__num {
	font-family: var(--cg-font-heading);
	font-weight: 700;
	font-size: 14px;
	color: var(--cg-link);
	background: #EEF2FF;
	border-radius: 8px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}
.cg-source__body { min-width: 0; }
.cg-source__title {
	display: inline-block;
	font-weight: 500;
	color: var(--cg-ink);
	text-decoration: none;
	font-size: 16px;
	line-height: 1.45;
	word-break: break-word;
	transition: color 0.15s ease;
}
.cg-source__title:hover,
.cg-source__title:focus {
	color: var(--cg-link);
	text-decoration: underline;
	text-decoration-color: rgba(67, 56, 202, 0.4);
	text-underline-offset: 3px;
}
.cg-source__meta {
	margin-top: 5px;
	font-size: 13px;
	color: var(--cg-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: center;
	line-height: 1.4;
}
.cg-source__publisher {
	font-weight: 500;
	color: var(--cg-text);
}
.cg-source__domain {
	font-family: var(--cg-font-code);
	font-size: 12px;
	background: #F3F4F6;
	color: var(--cg-text);
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0;
}
.cg-source__date {
	font-style: normal;
	color: var(--cg-muted);
}
.cg-sources__note {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--cg-border);
	font-size: 13px;
	color: var(--cg-muted);
	line-height: 1.6;
}

@media (max-width: 600px) {
	.cg-sources { padding: 22px 18px; }
	.cg-sources__head h2 { font-size: 19px; }
	.cg-source { grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 8px; }
	.cg-source__num { width: 32px; height: 32px; font-size: 13px; }
}

/* ------------------------------------------------------------------
   Ad slot — used by future Google AdSense placements. Reserves
   space so unfilled or slow-loading ad units don't cause CLS.
   Wrap each AdSense <ins class="adsbygoogle"> in <div class="cg-ad">.
   ------------------------------------------------------------------ */
.cg-ad {
	display: block;
	margin: 28px auto;
	text-align: center;
	min-height: 100px;
	max-width: 100%;
	overflow: hidden;
	clear: both;
}
.cg-ad::before {
	content: "Advertisement";
	display: block;
	font-family: var(--cg-font-body);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9CA3AF;
	margin-bottom: 6px;
}
.cg-ad--inarticle { min-height: 250px; }
.cg-ad--leaderboard { min-height: 90px; }
.cg-ad--sidebar { min-height: 600px; }

.cg-article__content {
	font-family: var(--cg-font-body);
	font-size: 18px;
	line-height: 1.75;
	color: var(--cg-text);
	margin-top: 32px;
}
.cg-article__content > * { margin: 0 0 1.4em; }
.cg-article__content > *:last-child { margin-bottom: 0; }
.cg-article__content h2 {
	font-family: var(--cg-font-heading);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--cg-ink);
	margin: 2.2em 0 0.7em;
	letter-spacing: -0.01em;
	scroll-margin-top: 80px;
}
.cg-article__content h3 {
	font-family: var(--cg-font-heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--cg-ink);
	margin: 1.8em 0 0.6em;
	scroll-margin-top: 80px;
}
.cg-article__content h4 {
	font-family: var(--cg-font-heading);
	font-size: 18px;
	font-weight: 600;
	color: var(--cg-ink);
	margin: 1.6em 0 0.5em;
}
.cg-article__content p { margin: 0 0 1.4em; }
.cg-article__content a {
	color: var(--cg-link);
	text-decoration: underline;
	text-decoration-color: rgba(67, 56, 202, 0.35);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease;
}
.cg-article__content a:hover { text-decoration-color: var(--cg-link); }
.cg-article__content strong { color: var(--cg-ink); font-weight: 600; }
.cg-article__content blockquote {
	border-left: 3px solid var(--cg-primary);
	padding: 6px 0 6px 20px;
	margin: 1.6em 0;
	color: #4B5563;
	font-style: normal;
	background: rgba(79, 70, 229, 0.04);
	border-radius: 0 6px 6px 0;
}
.cg-article__content blockquote p:last-child { margin-bottom: 0; }
.cg-article__content ul,
.cg-article__content ol {
	padding-left: 1.4em;
	margin: 0 0 1.4em;
}
.cg-article__content li { margin: 0 0 0.5em; }
.cg-article__content li::marker { color: var(--cg-muted); }
.cg-article__content code {
	background: #F3F4F6;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.9em;
	color: var(--cg-ink);
	font-family: var(--cg-font-code);
}
.cg-article__content pre {
	background: #0F172A;
	color: #E5E7EB;
	padding: 18px 20px;
	border-radius: 10px;
	overflow-x: auto;
	line-height: 1.55;
	font-size: 14.5px;
	margin: 1.6em 0;
}
.cg-article__content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
	font-size: inherit;
}
.cg-article__content img {
	border-radius: 10px;
	max-width: 100%;
	height: auto;
}
.cg-article__content figure { margin: 1.6em 0; }
.cg-article__content figcaption {
	font-size: 13px;
	color: var(--cg-muted);
	text-align: center;
	margin-top: 8px;
}
.cg-article__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 15px;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--cg-border);
}
.cg-article__content th,
.cg-article__content td {
	border-bottom: 1px solid var(--cg-border);
	padding: 12px 14px;
	text-align: left;
}
.cg-article__content tr:last-child td { border-bottom: 0; }
.cg-article__content th {
	background: #F9FAFB;
	font-weight: 600;
	color: var(--cg-ink);
	font-size: 14px;
}
.cg-article__content hr {
	border: 0;
	border-top: 1px solid var(--cg-border);
	margin: 2.4em 0;
}

.cg-article__footer {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--cg-border);
}
.cg-article__notice {
	background: #F0FDFA;
	border-left: 3px solid var(--cg-accent);
	padding: 14px 18px;
	border-radius: 0 8px 8px 0;
	font-size: 14px;
	line-height: 1.55;
	color: #134E4A;
	margin: 0 0 32px;
}
.cg-article__notice strong { color: #0F766E; }

.cg-article__author-card {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--cg-border);
	border-radius: 12px;
	padding: 22px;
}
.cg-article__author-card img {
	border-radius: 50%;
	flex-shrink: 0;
}
.cg-article__author-card h3 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: var(--cg-ink);
	font-family: var(--cg-font-heading);
}
.cg-article__author-card p {
	margin: 0;
	font-size: 14px;
	color: #4B5563;
	line-height: 1.6;
}

.cg-article__related {
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}
.cg-article__related h2 {
	font-family: var(--cg-font-heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--cg-ink);
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}

@media (max-width: 600px) {
	.cg-article { padding: 32px 18px 56px; }
	.cg-article__title { font-size: 30px; }
	.cg-article__content { font-size: 17px; line-height: 1.7; }
	.cg-article__content h2 { font-size: 24px; }
	.cg-article__content h3 { font-size: 20px; }
	.cg-article__author-card { flex-direction: column; gap: 12px; }
	.cg-article__related { padding: 40px 18px 56px; }
}
