/* =========================================================================
   Credit Sidekick AI — main theme stylesheet
   Brand tokens (from logo + live Elementor kit):
   navy #0c314b · teal #0c8a90 · orange #f97d2c · slate #64748b
   Prefix: .csk-
   ========================================================================= */

:root {
	--csk-navy:        #0c314b;
	--csk-navy-deep:   #08202e;
	--csk-teal:        #0c8a90;
	--csk-teal-dark:   #096b70;
	--csk-teal-bright: #2fb9bf;
	--csk-teal-soft:   #e7f5f6;
	--csk-orange:      #f97d2c;
	--csk-orange-dark: #d96a1f;
	--csk-orange-soft: #feefe3;
	--csk-slate:       #64748b;
	--csk-line:        #e2e8f0;
	--csk-soft:        #f5f8fc;
	--csk-white:       #ffffff;
	--csk-radius:    14px;
	--csk-radius-lg: 22px;
	--csk-shadow:    0 10px 30px rgba(12, 49, 75, .08);
	--csk-shadow-lg: 0 24px 60px rgba(12, 49, 75, .16);
	--csk-font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--csk-max:       1200px;
}

body {
	font-family: var(--csk-font);
	color: var(--csk-navy);
	background: var(--csk-white);
	font-size: 16px;
	line-height: 1.65;
}

/* Kill any horizontal scroll from rotated/scaled decorative elements
   (marquee, tilted card). `clip` contains overflow WITHOUT creating a
   scroll container, so the sticky header keeps working. */
html, body { overflow-x: clip; max-width: 100%; }

/* ---------- Buttons (explicit link states so theme blue never leaks) ---------- */

.csk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.csk-btn:link, .csk-btn:visited { text-decoration: none; }
.csk-btn:hover, .csk-btn:focus, .csk-btn:active { text-decoration: none; }

.csk-btn--pri { background: var(--csk-teal); border-color: var(--csk-teal); }
.csk-btn--pri:link, .csk-btn--pri:visited { color: var(--csk-white); }
.csk-btn--pri:hover, .csk-btn--pri:focus, .csk-btn--pri:active {
	background: var(--csk-teal-dark);
	border-color: var(--csk-teal-dark);
	color: var(--csk-white);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(12, 138, 144, .32);
}

.csk-btn--ghost { background: transparent; border-color: var(--csk-line); }
.csk-btn--ghost:link, .csk-btn--ghost:visited { color: var(--csk-navy); }
.csk-btn--ghost:hover, .csk-btn--ghost:focus, .csk-btn--ghost:active {
	border-color: var(--csk-teal);
	color: var(--csk-teal);
	background: var(--csk-teal-soft);
}

.csk-btn--light { background: var(--csk-white); border-color: var(--csk-white); }
.csk-btn--light:link, .csk-btn--light:visited { color: var(--csk-navy); }
.csk-btn--light:hover, .csk-btn--light:focus, .csk-btn--light:active {
	background: var(--csk-teal-soft);
	border-color: var(--csk-teal-soft);
	color: var(--csk-navy);
	transform: translateY(-1px);
}

.csk-btn--orange { background: var(--csk-orange); border-color: var(--csk-orange); color: var(--csk-white); }
.csk-btn--orange:hover, .csk-btn--orange:focus, .csk-btn--orange:active {
	background: var(--csk-orange-dark);
	border-color: var(--csk-orange-dark);
	color: var(--csk-white);
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(249, 125, 44, .38);
}

/* =========================================================================
   HEADER
   ========================================================================= */

.csk-hdr {
	background: var(--csk-white);
	border-bottom: 1px solid var(--csk-line);
	padding: 10px 40px;
	position: sticky;
	top: 0;
	z-index: 50;
	transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, padding .25s ease;
}
.csk-hdr.is-scrolled { box-shadow: 0 6px 24px rgba(12, 49, 75, .08); }

/* ---- Transparent overlay header (front page only) ----
   The hero is light, so the header simply drops its own background until the
   user scrolls, then turns solid white with a shadow. The real (color) logo
   and dark nav stay unchanged in both states. Body class set in setup.php. */
body.csk-has-transparent-header .csk-hdr {
	position: fixed;
	left: 0;
	right: 0;
}
body.csk-has-transparent-header .csk-hdr:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
	padding-top: 16px;
	padding-bottom: 16px;
}
/* Keep it solid while the mobile menu panel is open (panel is white). */
body.csk-has-transparent-header .csk-hdr:has(.csk-hdr__toggle-input:checked) {
	background: var(--csk-white);
	border-bottom-color: var(--csk-line);
}

.csk-hdr__inner {
	max-width: var(--csk-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.csk-hdr__logo img { height: 44px; width: auto; }
@media (max-width: 600px) { .csk-hdr__logo img { height: 36px; } }
.csk-hdr__logo .custom-logo-link { display: inline-flex; }

.csk-hdr__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.01em;
}
.csk-hdr__brand:link, .csk-hdr__brand:visited { color: var(--csk-navy); text-decoration: none; }
.csk-hdr__brand:hover, .csk-hdr__brand:focus, .csk-hdr__brand:active { color: var(--csk-teal); text-decoration: none; }
.csk-hdr__brand-mark { display: inline-flex; }

.csk-hdr__panel {
	display: flex;
	align-items: center;
	gap: 28px;
}

.csk-hdr__nav { display: flex; }
.csk-hdr__menu {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.csk-hdr__menu a { font-size: 15.5px; font-weight: 600; }
.csk-hdr__menu a:link, .csk-hdr__menu a:visited { color: var(--csk-navy); text-decoration: none; }
.csk-hdr__menu a:hover, .csk-hdr__menu a:focus, .csk-hdr__menu a:active { color: var(--csk-teal); text-decoration: none; }

.csk-hdr__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--csk-teal);
	font-size: 15px;
	font-weight: 700;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.csk-hdr__cta:link, .csk-hdr__cta:visited { color: var(--csk-white); text-decoration: none; }
.csk-hdr__cta:hover, .csk-hdr__cta:focus, .csk-hdr__cta:active {
	background: var(--csk-teal-dark);
	color: var(--csk-white);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(12, 138, 144, .3);
}
.csk-hdr__cta-arrow { transition: transform .15s ease; }
.csk-hdr__cta:hover .csk-hdr__cta-arrow { transform: translateX(3px); }

/* Burger — hidden on desktop */
.csk-hdr__toggle-input { display: none; }
.csk-hdr__toggle { display: none; }

@media (max-width: 900px) {
	.csk-hdr { padding: 12px 20px; }

	.csk-hdr__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 10px;
		cursor: pointer;
	}
	.csk-hdr__toggle-bars {
		display: flex;
		flex-direction: column;
		gap: 5px;
		width: 22px;
	}
	.csk-hdr__toggle-bars span {
		height: 2.5px;
		border-radius: 2px;
		background: var(--csk-navy);
		transition: transform .2s ease, opacity .2s ease;
	}
	.csk-hdr__toggle-input:checked ~ .csk-hdr__toggle .csk-hdr__toggle-bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.csk-hdr__toggle-input:checked ~ .csk-hdr__toggle .csk-hdr__toggle-bars span:nth-child(2) { opacity: 0; }
	.csk-hdr__toggle-input:checked ~ .csk-hdr__toggle .csk-hdr__toggle-bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

	.csk-hdr__panel {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--csk-white);
		border-bottom: 1px solid var(--csk-line);
		box-shadow: 0 20px 40px rgba(12, 49, 75, .12);
		padding: 8px 20px 20px;
	}
	.csk-hdr__toggle-input:checked ~ .csk-hdr__panel { display: flex; }

	.csk-hdr__nav, .csk-hdr__menu { display: block; }
	.csk-hdr__menu li { border-bottom: 1px solid var(--csk-soft); }
	.csk-hdr__menu a { display: block; padding: 14px 4px; font-size: 16px; }

	.csk-hdr__cta { justify-content: center; margin-top: 14px; padding: 14px 22px; }
}

/* =========================================================================
   PRE-FOOTER CTA
   ========================================================================= */

.csk-precta {
	position: relative;
	background: linear-gradient(135deg, var(--csk-teal-dark), var(--csk-teal) 55%, #d96a1f);
	color: var(--csk-white);
	overflow: hidden;
}
.csk-precta__bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(500px 300px at 80% 10%, rgba(255, 255, 255, .14), transparent 60%);
	pointer-events: none;
}
.csk-precta__inner {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	padding: 68px 24px;
	text-align: center;
}
.csk-precta__title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 0 0 12px;
	color: var(--csk-white);
}
.csk-precta__sub { font-size: 17px; color: #fbe4d1; margin: 0 0 28px; }
.csk-precta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* =========================================================================
   FOOTER
   ========================================================================= */

.csk-ftr { background: var(--csk-navy-deep); color: #b8ccd4; }
.csk-ftr__inner { max-width: var(--csk-max); margin: 0 auto; padding: 64px 24px 28px; }

.csk-ftr__top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(185, 200, 224, .15);
}
@media (max-width: 900px) { .csk-ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .csk-ftr__top { grid-template-columns: 1fr; } }

.csk-ftr__logo { font-size: 20px; font-weight: 800; display: inline-block; margin-bottom: 16px; }
.csk-ftr__logo:link, .csk-ftr__logo:visited { color: var(--csk-white); text-decoration: none; }
.csk-ftr__logo:hover, .csk-ftr__logo:focus, .csk-ftr__logo:active { color: #7fd6da; text-decoration: none; }
.csk-ftr__logo img { max-height: 44px; width: auto; }
/* Dark footer + dark-lettered logo → sit the logo on a light chip (logo unchanged). */
.csk-ftr__logo--chip { background: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .15s ease, box-shadow .15s ease; }
.csk-ftr__logo--chip:hover, .csk-ftr__logo--chip:focus { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.csk-ftr__logo--chip img { max-height: 40px; width: auto; display: block; }
@media (max-width: 560px) { .csk-ftr__logo--chip img { max-height: 34px; } }

.csk-ftr__tag { font-size: 14.5px; line-height: 1.7; margin: 0 0 18px; max-width: 340px; }

.csk-ftr__social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.csk-ftr__sociallink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	transition: background .15s ease, color .15s ease;
}
.csk-ftr__sociallink:link, .csk-ftr__sociallink:visited { color: #b8ccd4; text-decoration: none; }
.csk-ftr__sociallink:hover, .csk-ftr__sociallink:focus, .csk-ftr__sociallink:active { background: var(--csk-teal); color: var(--csk-white); text-decoration: none; }

.csk-ftr__h {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--csk-white);
	margin: 0 0 16px;
}
.csk-ftr__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.csk-ftr__links a { font-size: 14.5px; }
.csk-ftr__links a:link, .csk-ftr__links a:visited { color: #b8ccd4; text-decoration: none; }
.csk-ftr__links a:hover, .csk-ftr__links a:focus, .csk-ftr__links a:active { color: var(--csk-white); text-decoration: underline; }

/* Legal disclaimer strip */
.csk-disclaimer {
	padding: 24px 0 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: #89a5b3;
}
.csk-disclaimer p { margin: 0; }
.csk-disclaimer strong { color: #aec6d0; }

.csk-ftr__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 22px;
	margin-top: 24px;
	border-top: 1px solid rgba(185, 200, 224, .15);
}
.csk-ftr__copy { font-size: 13.5px; margin: 0; }

/* Landing template legal strip (no footer chrome) */
.csk-landing__legal { background: var(--csk-navy-deep); padding: 8px 24px 28px; }
.csk-landing__legal .csk-disclaimer { max-width: var(--csk-max); margin: 0 auto; }

/* =========================================================================
   INNER PAGES / BLOG / ARTICLE / 404
   ========================================================================= */

/* ---- Generic page header (page.php: privacy, terms, contact) ---- */
.csk-pagehead { background: linear-gradient(150deg, var(--csk-navy-deep), var(--csk-navy) 60%, #11525c); color: var(--csk-white); }
.csk-pagehead__inner { max-width: var(--csk-max); margin: 0 auto; padding: 64px 24px; }
.csk-pagehead__title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--csk-white); }
.csk-pagehead__sub { font-size: 17px; color: #c6dbe0; margin: 12px 0 0; max-width: 640px; }
.csk-page__inner { max-width: 760px; margin: 0 auto; padding: 56px 24px; }

/* ---- Meta dot separator ---- */
.csk-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; display: inline-block; flex: 0 0 auto; }

/* ---- Category badge ---- */
.csk-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--csk-teal-soft); }
.csk-badge:link, .csk-badge:visited { color: var(--csk-teal-dark); text-decoration: none; }
.csk-badge:hover, .csk-badge:focus, .csk-badge:active { color: #fff; background: var(--csk-teal); text-decoration: none; }
.csk-badge--overlay { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(12,49,75,.14); }

/* ---- Breadcrumbs (schema.org BreadcrumbList) ---- */
.csk-crumbs { margin: 0 0 18px; }
.csk-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 13px; }
.csk-crumbs__item { display: inline-flex; align-items: center; gap: 6px; color: var(--csk-slate); }
.csk-crumbs__item:not(:last-child)::after { content: "/"; color: #b8c4d2; }
.csk-crumbs a:link, .csk-crumbs a:visited { color: var(--csk-slate); text-decoration: none; }
.csk-crumbs a:hover, .csk-crumbs a:focus { color: var(--csk-teal); text-decoration: underline; }
.csk-crumbs [aria-current="page"] { color: var(--csk-navy); font-weight: 600; }

/* =========================================================================
   BLOG LIST (index.php / archive.php / search.php)
   ========================================================================= */
.csk-blog { background: var(--csk-soft); }
.csk-bloghead { background: linear-gradient(180deg, #eef6f7, var(--csk-soft)); border-bottom: 1px solid var(--csk-line); }
.csk-bloghead__inner { max-width: var(--csk-max); margin: 0 auto; padding: 48px 24px 40px; text-align: center; }
.csk-bloghead .csk-crumbs ol { justify-content: center; }
.csk-bloghead__title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 12px; color: var(--csk-navy); }
.csk-bloghead__title span { color: var(--csk-teal); }
.csk-bloghead__sub { font-size: 17.5px; color: #46586f; max-width: 620px; margin: 0 auto; }
.csk-bloghead__sub p { margin: 0; }
.csk-bloghead__search { max-width: 460px; margin: 22px auto 0; }

.csk-blog__inner { max-width: var(--csk-max); margin: 0 auto; padding: 34px 24px 76px; }

/* Category chips */
.csk-chips { margin: 0 0 30px; }
.csk-chips__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; }
.csk-chip { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--csk-line); background: var(--csk-white); transition: color .15s ease, border-color .15s ease, background .15s ease; }
.csk-chip:link, .csk-chip:visited { color: var(--csk-navy); text-decoration: none; }
.csk-chip:hover, .csk-chip:focus { border-color: var(--csk-teal); color: var(--csk-teal); }
.csk-chip.is-active { background: var(--csk-navy); border-color: var(--csk-navy); color: #fff; }

/* Card grid */
.csk-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0 0 44px; }
@media (max-width: 940px) { .csk-blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .csk-blog__grid { grid-template-columns: 1fr; gap: 20px; } }

/* Post card (content-card.php) */
.csk-postcard { position: relative; display: flex; flex-direction: column; background: var(--csk-white); border: 1px solid var(--csk-line); border-radius: var(--csk-radius-lg); overflow: hidden; box-shadow: var(--csk-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.csk-postcard:hover { transform: translateY(-4px); box-shadow: var(--csk-shadow-lg); }
.csk-postcard__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--csk-teal-soft), var(--csk-orange-soft)); overflow: hidden; }
.csk-postcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csk-postcard__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--csk-teal); opacity: .55; }
.csk-postcard__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.csk-postcard__title { font-size: 19px; font-weight: 800; line-height: 1.32; letter-spacing: -.01em; margin: 0; color: var(--csk-navy); }
.csk-postcard__link:link, .csk-postcard__link:visited { color: inherit; text-decoration: none; }
.csk-postcard__link:hover, .csk-postcard__link:focus { color: inherit; text-decoration: none; }
.csk-postcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.csk-postcard:hover .csk-postcard__title { color: var(--csk-teal); }
.csk-postcard__excerpt { font-size: 14.5px; line-height: 1.6; color: var(--csk-slate); margin: 0; }
.csk-postcard__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--csk-slate); }

/* Featured card (horizontal on desktop) */
.csk-postcard--featured { flex-direction: row; margin-bottom: 36px; }
.csk-postcard--featured .csk-postcard__media { flex: 1 1 55%; aspect-ratio: auto; min-height: 340px; }
.csk-postcard--featured .csk-postcard__body { flex: 1 1 45%; justify-content: center; padding: 40px; gap: 14px; }
.csk-postcard--featured .csk-postcard__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.csk-postcard--featured .csk-postcard__excerpt { font-size: 16px; }
@media (max-width: 820px) { .csk-postcard--featured { flex-direction: column; } .csk-postcard--featured .csk-postcard__media { aspect-ratio: 16/10; min-height: 0; } .csk-postcard--featured .csk-postcard__body { padding: 24px; } }

/* =========================================================================
   ARTICLE (single.php)
   ========================================================================= */
/* Reading-progress bar */
.csk-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; background: transparent; }
.csk-progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--csk-teal), var(--csk-orange)); }

.csk-article { background: var(--csk-white); }
.csk-article__head { background: linear-gradient(180deg, #f3f9fa, var(--csk-white)); border-bottom: 1px solid var(--csk-line); }
.csk-article__head-inner { max-width: 820px; margin: 0 auto; padding: 40px 24px 34px; }
.csk-article__head .csk-badge { margin-bottom: 16px; }
.csk-article__title { font-size: clamp(30px, 4.8vw, 48px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 16px; color: var(--csk-navy); }
.csk-article__dek { font-size: 19px; line-height: 1.6; color: #46586f; margin: 0 0 24px; }
.csk-article__byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* Author meta */
.csk-artmeta { display: flex; align-items: center; gap: 12px; }
.csk-artmeta__avatar { flex: 0 0 auto; line-height: 0; }
.csk-artmeta__img, .csk-artmeta img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.csk-artmeta__author:link, .csk-artmeta__author:visited { color: var(--csk-navy); font-weight: 700; font-size: 15px; text-decoration: none; }
.csk-artmeta__author:hover, .csk-artmeta__author:focus { color: var(--csk-teal); }
.csk-artmeta__sub { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--csk-slate); margin-top: 2px; }

/* Share buttons */
.csk-share { display: inline-flex; align-items: center; gap: 8px; }
.csk-share__label { font-size: 13px; font-weight: 600; color: var(--csk-slate); }
.csk-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--csk-line); background: var(--csk-white); color: var(--csk-navy); cursor: pointer; position: relative; transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.csk-share__btn:link, .csk-share__btn:visited { color: var(--csk-navy); text-decoration: none; }
.csk-share__btn:hover, .csk-share__btn:focus { border-color: var(--csk-teal); color: var(--csk-teal); transform: translateY(-2px); }
.csk-share__copied { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--csk-navy); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.csk-share__copy.is-copied .csk-share__copied { opacity: 1; }

/* Featured hero image = LCP */
.csk-article__hero { max-width: 1040px; margin: 0 auto; }
.csk-article__heroimg { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.csk-article__herocap { max-width: 820px; margin: 10px auto 0; padding: 0 24px; font-size: 13px; color: var(--csk-slate); text-align: center; }
@media (min-width: 1041px) { .csk-article__hero { border-radius: 0 0 var(--csk-radius-lg) var(--csk-radius-lg); overflow: hidden; } }

/* Layout: sticky rail (TOC + share) + prose */
.csk-article__layout { max-width: 1100px; margin: 0 auto; padding: 44px 24px 8px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.csk-article__railsticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.csk-article__main { min-width: 0; max-width: 720px; }

/* Table of contents */
.csk-toc { border-left: 2px solid var(--csk-line); padding-left: 16px; }
.csk-toc__title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--csk-slate); margin: 0 0 12px; }
.csk-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.csk-toc__item--l3 { padding-left: 14px; }
.csk-toc a:link, .csk-toc a:visited { color: var(--csk-slate); text-decoration: none; font-size: 13.5px; line-height: 1.4; display: block; transition: color .15s ease; }
.csk-toc a:hover, .csk-toc a.is-active { color: var(--csk-teal); font-weight: 600; }
.csk-article__rail .csk-share { flex-wrap: wrap; }

@media (max-width: 1040px) {
	.csk-article__layout { grid-template-columns: 1fr; gap: 26px; max-width: 760px; }
	.csk-article__railsticky { position: static; }
	.csk-article__rail .csk-share { display: none; }
	.csk-toc { border-left: none; border: 1px solid var(--csk-line); border-radius: var(--csk-radius); padding: 16px 18px; background: var(--csk-soft); }
}

/* ---- Prose (highly readable measure + rhythm) ---- */
.csk-prose { font-size: 18px; line-height: 1.75; color: #2a3b52; }
.csk-prose > * { margin: 0 0 1.35em; }
.csk-prose > *:last-child { margin-bottom: 0; }
.csk-prose h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--csk-navy); margin: 1.8em 0 .55em; scroll-margin-top: 100px; }
.csk-prose h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; line-height: 1.25; color: var(--csk-navy); margin: 1.5em 0 .45em; scroll-margin-top: 100px; }
.csk-prose h4 { font-size: 18px; font-weight: 700; color: var(--csk-navy); margin: 1.3em 0 .4em; }
.csk-prose :is(h2, h3, h4) + * { margin-top: 0; }
.csk-prose p { margin: 0 0 1.35em; }
.csk-prose a:link, .csk-prose a:visited { color: var(--csk-teal-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.csk-prose a:hover, .csk-prose a:focus { color: var(--csk-teal); text-decoration-thickness: 2px; }
.csk-prose ul, .csk-prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.csk-prose ul { list-style: disc; }
.csk-prose ol { list-style: decimal; }
.csk-prose li { margin-bottom: .5em; padding-left: .2em; }
.csk-prose li::marker { color: var(--csk-teal); }
.csk-prose blockquote { margin: 1.7em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--csk-teal); font-size: 20px; line-height: 1.55; font-style: italic; color: var(--csk-navy); }
.csk-prose blockquote p:last-child { margin-bottom: 0; }
.csk-prose figure { margin: 1.8em 0; }
.csk-prose img, .csk-prose figure img { border-radius: var(--csk-radius); width: 100%; height: auto; }
.csk-prose figcaption { font-size: 13.5px; color: var(--csk-slate); text-align: center; margin-top: 8px; }
.csk-prose hr { border: 0; height: 1px; background: var(--csk-line); margin: 2.4em 0; }
.csk-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--csk-soft); border: 1px solid var(--csk-line); border-radius: 6px; padding: 2px 6px; }
.csk-prose pre { background: var(--csk-navy-deep); color: #e6eef7; border-radius: var(--csk-radius); padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.csk-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.csk-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.csk-prose th, .csk-prose td { border: 1px solid var(--csk-line); padding: 10px 14px; text-align: left; }
.csk-prose th { background: var(--csk-soft); font-weight: 700; color: var(--csk-navy); }

/* ---- Inline conversion CTA (mid-article + end) ---- */
.csk-inlinecta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 2.4em 0; padding: 28px 30px; border-radius: var(--csk-radius-lg); background: linear-gradient(135deg, var(--csk-navy), #0e4b52); color: #fff; }
.csk-inlinecta__glow { position: absolute; inset: 0; background: radial-gradient(400px 200px at 92% 8%, rgba(249,125,44,.4), transparent 60%); pointer-events: none; }
.csk-inlinecta__text { position: relative; }
.csk-inlinecta__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--csk-teal-bright); margin: 0 0 6px; }
.csk-inlinecta__title { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 6px; color: #fff; }
.csk-inlinecta__sub { font-size: 14.5px; line-height: 1.55; color: #c6dbe0; margin: 0; max-width: 460px; }
.csk-inlinecta__btn { position: relative; flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) { .csk-inlinecta { padding: 24px; } .csk-inlinecta__btn { width: 100%; } }

/* ---- Tags ---- */
.csk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 34px 0 0; }
.csk-tags__label { font-size: 13px; font-weight: 700; color: var(--csk-slate); }
.csk-tag { font-size: 13.5px; padding: 6px 12px; border-radius: 8px; background: var(--csk-soft); border: 1px solid var(--csk-line); }
.csk-tag:link, .csk-tag:visited { color: var(--csk-slate); text-decoration: none; }
.csk-tag:hover, .csk-tag:focus { color: var(--csk-teal); border-color: var(--csk-teal); }

/* ---- Author box ---- */
.csk-authorbox { display: flex; gap: 20px; align-items: flex-start; margin: 36px 0 0; padding: 26px; border: 1px solid var(--csk-line); border-radius: var(--csk-radius-lg); background: var(--csk-soft); }
.csk-authorbox__avatar { line-height: 0; flex: 0 0 auto; }
.csk-authorbox__avatar img { width: 72px; height: 72px; border-radius: 50%; display: block; }
.csk-authorbox__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--csk-teal); margin: 0 0 4px; }
.csk-authorbox__name { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.csk-authorbox__name a:link, .csk-authorbox__name a:visited { color: var(--csk-navy); text-decoration: none; }
.csk-authorbox__name a:hover, .csk-authorbox__name a:focus { color: var(--csk-teal); }
.csk-authorbox__bio { font-size: 15px; line-height: 1.6; color: var(--csk-slate); margin: 0; }
@media (max-width: 560px) { .csk-authorbox { flex-direction: column; gap: 14px; } }

/* ---- Per-article disclaimer ---- */
.csk-article__disclaimer { margin: 32px 0 0; padding: 20px 22px; border-radius: var(--csk-radius); background: var(--csk-soft); border: 1px solid var(--csk-line); }
.csk-article__disclaimer .csk-disclaimer { color: var(--csk-slate); }
.csk-article__disclaimer .csk-disclaimer strong { color: #3d4f68; }

/* ---- Prev / next ---- */
.csk-postnav { margin: 36px 0 0; }
.csk-postnav .nav-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.csk-postnav .nav-previous, .csk-postnav .nav-next { flex: 1 1 45%; min-width: 0; }
.csk-postnav .nav-next { text-align: right; }
.csk-postnav a { display: block; padding: 16px 18px; border: 1px solid var(--csk-line); border-radius: var(--csk-radius); background: var(--csk-white); transition: border-color .15s ease, box-shadow .15s ease; }
.csk-postnav a:link, .csk-postnav a:visited { text-decoration: none; }
.csk-postnav a:hover, .csk-postnav a:focus { border-color: var(--csk-teal); box-shadow: var(--csk-shadow); }
.csk-postnav__label { display: block; font-size: 12.5px; font-weight: 700; color: var(--csk-slate); margin-bottom: 4px; }
.csk-postnav__title { display: block; font-size: 15px; font-weight: 700; color: var(--csk-navy); }

/* ---- Related posts ---- */
.csk-related { background: var(--csk-soft); border-top: 1px solid var(--csk-line); }
.csk-related__inner { max-width: var(--csk-max); margin: 0 auto; padding: 60px 24px; }
.csk-related__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--csk-navy); margin: 0 0 28px; text-align: center; }
.csk-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .csk-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .csk-related__grid { grid-template-columns: 1fr; } }

/* ---- Comments wrapper ---- */
.csk-comments { background: var(--csk-white); }
.csk-comments__inner { max-width: 760px; margin: 0 auto; padding: 20px 24px 60px; }

/* ---- Back to top ---- */
.csk-totop { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--csk-navy); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .15s ease; z-index: 55; box-shadow: 0 8px 24px rgba(12,49,75,.28); }
.csk-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.csk-totop:hover, .csk-totop:focus { background: var(--csk-teal); }

/* =========================================================================
   PAGINATION / NOTHING FOUND / SEARCH / 404
   ========================================================================= */
.pagination, .navigation.pagination { text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--csk-line); background: var(--csk-white); font-weight: 600; font-size: 14.5px; }
.pagination a.page-numbers:link, .pagination a.page-numbers:visited { color: var(--csk-navy); text-decoration: none; }
.pagination a.page-numbers:hover, .pagination a.page-numbers:focus { border-color: var(--csk-teal); color: var(--csk-teal); text-decoration: none; }
.pagination .page-numbers.current { background: var(--csk-teal); border-color: var(--csk-teal); color: var(--csk-white); }

.csk-none { text-align: center; max-width: 520px; margin: 0 auto; padding: 30px 0; }
.csk-none__title { font-size: 24px; font-weight: 800; color: var(--csk-navy); }
.csk-none .csk-searchform { margin: 20px 0 24px; }

.csk-searchform { display: flex; gap: 10px; }
.csk-searchform label { flex: 1; }
.csk-searchform__input { width: 100%; font-family: var(--csk-font); font-size: 15.5px; color: var(--csk-navy); background: var(--csk-white); border: 1.5px solid var(--csk-line); border-radius: 10px; padding: 12px 16px; }
.csk-searchform__input:focus { outline: none; border-color: var(--csk-teal); box-shadow: 0 0 0 3px rgba(12, 138, 144, .15); }
.csk-searchform__submit { padding: 12px 22px; border-radius: 10px; }

.csk-404 { background: var(--csk-soft); }
.csk-404__inner { max-width: 620px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.csk-404__code { font-size: 88px; font-weight: 800; line-height: 1; margin: 0 0 8px; background: linear-gradient(90deg, var(--csk-teal), var(--csk-orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.csk-404__title { font-size: 30px; font-weight: 800; margin: 0 0 10px; color: var(--csk-navy); }
.csk-404__sub { color: var(--csk-slate); margin: 0 0 28px; }
.csk-404__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.csk-404__search { max-width: 420px; margin: 0 auto; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.csk-totop { transition: none; }
}
