/*
 * Canada Cool & Heat look (November 2026). Loaded after csk-site and
 * csk-blog; see includes/class-csk-design.php for what each part is for.
 *
 * Colours come from the palette variables (--ch-*), which CSK_Palette prints
 * from the Elementor kit. The fallbacks here are the logo palette.
 */

:root {
	--csk-d-brand: var(--ch-brand, #1d4ed8);
	--csk-d-brand-dark: var(--ch-brand-dark, #1e3a8a);
	--csk-d-accent: var(--ch-heat, #ea580c);
	--csk-d-accent-ink: var(--ch-heat-ink, #0f172a);
	--csk-d-ink: var(--ch-ink, #0f172a);
	--csk-d-muted: var(--ch-muted, #5b6b7c);
	--csk-d-line: var(--ch-line, #e2e8f0);
	--csk-d-wash: #dbeafe;
	--csk-d-sky: #60a5fa;
	--csk-d-night: #0b1220;
}

/* --- Links ---------------------------------------------------------------
 * Hello Elementor's reset colours every link #c36 (crimson). Nothing set a
 * site link colour, so text links came out crimson in the footer and in
 * articles. Two element selectors beat the reset's one; any class-based
 * rule (widgets, buttons, the kit's own link colour) still wins over this.
 */
body a { color: var(--csk-d-brand); }
body a:hover,
body a:focus-visible { color: var(--csk-d-brand-dark); }

/* =========================================================================
 * Blog posts widget
 * ====================================================================== */

/*
 * Spotlight without holes.
 *
 * Three columns with a 2x2 lead left an empty cell whenever the number of
 * posts was not 3, 6 or 9: five posts put two cards in the last row and
 * nothing in the third column. Six tracks instead of three, every card two
 * tracks wide, and the last row shares its width between whatever is left:
 * two cards take half each, a single card takes the whole row.
 */
.csk-posts.csk-posts-spotlight { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.csk-posts.csk-posts-spotlight > .csk-post { grid-column: span 2; }
.csk-posts.csk-posts-spotlight > .csk-post.is-lead { grid-column: span 4; grid-row: span 2; }

/* Lead and one other: no second row for the lead to span. */
.csk-posts.csk-posts-spotlight > .csk-post.is-lead:nth-last-child(2) { grid-row: auto; }
/* Lead alone. */
.csk-posts.csk-posts-spotlight > .csk-post.is-lead:only-child { grid-column: 1 / -1; }

/* Cards 4, 7, 10… start a row under the lead. */
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2),
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) + .csk-post { grid-column: span 3; }
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child { grid-column: 1 / -1; }

/*
 * The lead filled two rows of height with one short excerpt, leaving a
 * white gap above "Read more". The photo takes up the slack instead.
 * Selector is long on purpose: the widget's "Image shape" control writes
 * aspect-ratio with Elementor's four-class wrapper selector.
 */
.csk-posts.csk-posts-spotlight > .csk-post.is-lead > .csk-post-thumb {
	position: relative;
	flex: 1 1 auto;
	aspect-ratio: auto;
	min-height: 240px;
}
.csk-posts.csk-posts-spotlight > .csk-post.is-lead > .csk-post-thumb img {
	position: absolute;
	inset: 0;
}
.csk-posts.csk-posts-spotlight > .csk-post.is-lead > .csk-post-body { flex: 0 0 auto; }
.csk-posts.csk-posts-spotlight > .csk-post.is-lead .csk-post-title { font-size: 1.55rem; }

/* A card alone on the last row goes side by side, not one huge photo. */
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child:not(.is-lead) { flex-direction: row; }
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child:not(.is-lead) > .csk-post-thumb,
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child:not(.is-lead)::before {
	flex: 0 0 36%;
	aspect-ratio: auto;
	min-height: 200px;
}

/* Half-width cards in the last row: a shorter photo, so they are not twice
 * the height of the cards above them. */
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) > .csk-post-thumb,
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) + .csk-post > .csk-post-thumb,
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2):not(:has(> .csk-post-thumb))::before,
.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) + .csk-post:not(:has(> .csk-post-thumb))::before { aspect-ratio: 1 / .42; }

/*
 * The photo fills its box. `.elementor img { height: auto }` from Elementor's
 * frontend CSS has the same specificity as csk-blog's `.csk-post-thumb img`
 * and loads later, so on the live site the lead photo kept its own height
 * and left a grey band under it. These selectors outrank it.
 */
.csk-posts .csk-post > .csk-post-thumb img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.csk-posts.csk-posts-spotlight > .csk-post.is-lead > .csk-post-thumb > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Titles two lines at most, excerpts three, so cards in a row line up. */
.csk-posts:not(.csk-posts-minimal) .csk-post-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.csk-posts:not(.csk-posts-minimal) .csk-post-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/*
 * A post without a featured image had no picture box at all, so its card
 * was a different shape from the ones beside it. It gets a brand-coloured
 * box with a house, the same size a photo would be.
 */
.csk-posts:not(.csk-posts-minimal) > .csk-post:not(:has(> .csk-post-thumb))::before {
	content: "";
	display: block;
	aspect-ratio: 1 / .62;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' fill-opacity='.92' d='M32 9 7 30h7v25h13V41h10v14h13V30h7z'/%3E%3C/svg%3E") center / 56px no-repeat,
		linear-gradient(135deg, var(--csk-d-sky), var(--csk-d-brand));
}
.csk-posts.csk-posts-spotlight > .csk-post.is-lead:not(:has(> .csk-post-thumb))::before {
	flex: 1 1 auto;
	aspect-ratio: auto;
	min-height: 240px;
	background-size: 96px, auto;
}
.csk-posts.csk-posts-list > .csk-post:not(:has(> .csk-post-thumb))::before {
	flex: 0 0 34%;
	aspect-ratio: auto;
}

/* Category as a small pill, the date beside it in grey. */
.csk-posts .csk-post-cat {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--csk-d-wash);
	color: var(--csk-d-brand-dark);
}

@media (max-width: 1024px) {
	.csk-posts.csk-posts-spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csk-posts.csk-posts-spotlight > .csk-post,
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2),
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) + .csk-post,
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child { grid-column: auto; }
	.csk-posts.csk-posts-spotlight > .csk-post.is-lead { grid-column: 1 / -1; grid-row: auto; }
	.csk-posts.csk-posts-spotlight > .csk-post.is-lead > .csk-post-thumb { min-height: 0; aspect-ratio: 1 / .5; }
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) > .csk-post-thumb,
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) + .csk-post > .csk-post-thumb,
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2):not(:has(> .csk-post-thumb))::before,
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):nth-last-child(2) + .csk-post:not(:has(> .csk-post-thumb))::before { aspect-ratio: 1 / .62; }
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child:not(.is-lead) { flex-direction: column; }
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child:not(.is-lead) > .csk-post-thumb,
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(3n+4):last-child:not(.is-lead)::before { flex: none; aspect-ratio: 1 / .62; min-height: 0; }
	/* Two columns under a full-width lead: an odd card out spans the row. */
	.csk-posts.csk-posts-spotlight > .csk-post:nth-child(2n+2):last-child:not(.is-lead) { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
	.csk-posts.csk-posts-spotlight { grid-template-columns: minmax(0, 1fr); }
	.csk-posts.csk-posts-spotlight > .csk-post.is-lead > .csk-post-thumb { aspect-ratio: 1 / .62; }
	.csk-posts.csk-posts-spotlight > .csk-post.is-lead .csk-post-title { font-size: 1.25rem; }
	.csk-posts.csk-posts-list > .csk-post:not(:has(> .csk-post-thumb))::before { flex: none; aspect-ratio: 1 / .55; }
}

/* =========================================================================
 * Article text, any theme
 * ====================================================================== */

/*
 * Centre the text column and measure it once. csk-blog.css centres each
 * child of .csk-prose, but its own `p` and `h2` rules reset the side margins
 * with higher specificity, and `max-width: var(--measure)` in ch resolves
 * against each child's own font size, so headings and quotes were wider and
 * started further left than the paragraphs. The column takes the measure;
 * its children fill it. (On Hello the article layout below overrides this.)
 */
body .csk-prose {
	max-width: var(--csk-measure, 68ch);
	margin-left: auto;
	margin-right: auto;
}
body .csk-prose > * { max-width: 100%; margin-left: auto; margin-right: auto; }

/* `.csk-prose h2` was turning the contents box's small label into a
 * full-size section heading. */
.csk-prose .csk-toc .csk-toc-heading {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-size: .78rem;
	line-height: 1.4;
	letter-spacing: .07em;
}

/* =========================================================================
 * The article page (body.csk-article-v2, Hello Elementor only)
 *
 *   .csk-article-wrap        1120px, centred
 *     .csk-article-head      breadcrumb, category, title, byline, cover
 *     .csk-article-grid      main (text) | side (sticky contents + share)
 *     .csk-related           Read next
 *
 * Every width below is in px or rem, not ch: ch follows each element's own
 * font size, which is how headings and quotes ended up wider than the text.
 * ====================================================================== */

.csk-article-v2 .site-main {
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}
.csk-article-v2 .site-main .page-content { margin: 0; }

.csk-article-wrap {
	--csk-col: 720px;
	--csk-side: 260px;
	--csk-gap: 56px;
	max-width: calc(var(--csk-col) + var(--csk-side) + var(--csk-gap));
	margin: 0 auto;
}
/* No contents list: one column, centred. */
.csk-article-wrap:not(.has-toc):not(.has-side) { max-width: var(--csk-col); }

/* Reading progress, a thin line along the top of the window. */
.csk-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 10000;
	pointer-events: none;
}
.csk-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--csk-d-sky), var(--csk-d-brand));
	transform: scaleX(0);
	transform-origin: 0 50%;
}
.admin-bar .csk-progress { top: 32px; }

/* --- Header ------------------------------------------------------------- */

.csk-article-head { margin: 28px 0 36px; }
.csk-article-head > :not(.csk-article-hero) { max-width: var(--csk-col); }

.csk-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: .82rem;
	color: var(--csk-d-muted);
}
.csk-crumbs li { margin: 0; }
.csk-crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--csk-d-muted); }
body .csk-crumbs a { color: var(--csk-d-muted); text-decoration: none; }
body .csk-crumbs a:hover { color: var(--csk-d-brand); text-decoration: underline; }

body .csk-article-cat {
	display: inline-block;
	margin-bottom: 14px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--csk-d-wash);
	color: var(--csk-d-brand-dark);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none;
}
body .csk-article-cat:hover { background: var(--csk-d-brand); color: #fff; }

.csk-article-head .csk-article-title {
	margin: 0 0 16px;
	color: var(--csk-d-ink);
	font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem);
	line-height: 1.12;
	font-weight: 750;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.csk-article-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	font-size: .9rem;
	color: var(--csk-d-muted);
}
.csk-article-author { font-weight: 600; color: var(--csk-d-ink); }

.csk-article-hero { margin: 0; }
.csk-article-hero img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .25);
}
.csk-article-hero figcaption {
	margin-top: 8px;
	font-size: .8rem;
	color: var(--csk-d-muted);
}

/* --- Two columns -------------------------------------------------------- */

.csk-article-grid {
	display: grid;
	grid-template-columns: minmax(0, var(--csk-col)) var(--csk-side);
	grid-template-areas: "main side";
	gap: var(--csk-gap);
	align-items: start;
}
.csk-article-wrap:not(.has-toc):not(.has-side) .csk-article-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.csk-article-wrap:not(.has-toc):not(.has-side) .csk-article-side { display: none; }

.csk-article-main { grid-area: main; min-width: 0; }
.csk-article-side {
	grid-area: side;
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}
.admin-bar .csk-article-side { top: 128px; }

/* The text fills the main column; the measure is the column. */
body .csk-article-main .csk-prose {
	max-width: none;
	margin: 0;
	color: #1e293b;
}
body .csk-article-main .csk-prose > * { max-width: 100%; margin-left: 0; margin-right: 0; }
.csk-article-main .csk-prose > p:first-child {
	font-size: 1.12em;
	line-height: 1.65;
	color: var(--csk-d-ink);
}
.csk-article-v2 .csk-prose h2,
.csk-article-v2 .csk-prose h3 { color: var(--csk-d-ink); }
.csk-article-v2 .csk-prose h2 {
	margin-top: 2em;
	padding-top: 1.2em;
	border-top: 1px solid var(--csk-d-line);
	scroll-margin-top: 100px;
}
.csk-article-v2 .csk-prose h3 { scroll-margin-top: 100px; }
.csk-article-v2 .csk-prose a {
	color: var(--csk-d-brand);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.csk-article-v2 .csk-prose a:hover { color: var(--csk-d-brand-dark); text-decoration-thickness: 2px; }
.csk-article-v2 .csk-prose ul li::marker { color: var(--csk-d-brand); }
.csk-article-v2 .csk-prose ol li::marker { color: var(--csk-d-brand); font-weight: 700; }
.csk-article-v2 .csk-prose blockquote {
	margin: 1.8em 0;
	padding: 16px 20px;
	border-left: 4px solid var(--csk-d-accent);
	border-radius: 0 10px 10px 0;
	background: #fffbeb;
	font-size: 1.08em;
}
.csk-article-v2 .csk-prose figure { margin: 2em 0; }
.csk-article-v2 .csk-prose figure img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	border-radius: 12px;
}
.csk-article-v2 .csk-prose figcaption { margin-top: 8px; font-size: .8rem; color: var(--csk-d-muted); }

/* --- Side column: contents, share, small card --------------------------- */

.csk-side-label,
.csk-article-side .csk-toc .csk-toc-heading {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--csk-d-muted);
}

.csk-article-side .csk-toc {
	max-width: none;
	margin: 0;
	padding: 0 0 0 2px;
	background: none;
	border: 0;
	border-radius: 0;
}
.csk-article-side .csk-toc ol { border-left: 2px solid var(--csk-d-line); }
.csk-article-side .csk-toc li { margin: 0; }
body .csk-article-side .csk-toc a {
	display: block;
	margin-left: -2px;
	padding: 6px 0 6px 14px;
	border-left: 2px solid transparent;
	color: var(--csk-d-muted);
	font-size: .88rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease;
}
body .csk-article-side .csk-toc a:hover { color: var(--csk-d-ink); }
body .csk-article-side .csk-toc a.is-active {
	color: var(--csk-d-brand-dark);
	border-left-color: var(--csk-d-brand);
	font-weight: 600;
}
.csk-article-side .csk-toc-l3 a { padding-left: 26px; font-size: .84rem; }

.csk-share ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.csk-share li { margin: 0; }
body .csk-share a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--csk-d-line);
	border-radius: 999px;
	color: var(--csk-d-ink);
	font-size: .8rem;
	font-weight: 500;
	text-decoration: none;
}
body .csk-share a:hover { border-color: var(--csk-d-brand); color: var(--csk-d-brand); }

.csk-side-card {
	padding: 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f0f9ff, var(--csk-d-wash));
	border: 1px solid #bae6fd;
}
.csk-side-card p { margin: 0 0 10px; font-size: .86rem; color: #334155; line-height: 1.5; }
.csk-side-card .csk-side-card-title { margin-bottom: 4px; font-size: .98rem; font-weight: 700; color: var(--csk-d-ink); }
body .csk-side-card a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--csk-d-brand);
	color: #fff;
	font-size: .86rem;
	font-weight: 600;
	text-decoration: none;
}
body .csk-side-card a:hover { background: var(--csk-d-brand-dark); color: #fff; }

/* --- After the text ----------------------------------------------------- */

.csk-article-note {
	margin: 40px 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid var(--csk-d-line);
	font-size: .88rem;
	line-height: 1.55;
	color: #334155;
}
.csk-article-note p { margin: 0; }
.csk-article-note strong { color: var(--csk-d-ink); }
.csk-article-note .csk-article-note-date { margin-top: 6px; font-size: .8rem; color: var(--csk-d-muted); }

.csk-article-cta {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 24px 0 0;
	padding: 24px 28px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--csk-d-brand), #0c4a6e);
	color: #dbeafe;
}
.csk-article-cta-text { flex: 1 1 280px; }
.csk-article-cta p { margin: 0; font-size: .92rem; line-height: 1.5; color: #dbeafe; }
.csk-article-cta .csk-article-cta-title {
	margin-bottom: 4px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 700;
}
body .csk-article-cta-button {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--csk-d-accent);
	color: var(--csk-d-accent-ink);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	white-space: nowrap;
}
body .csk-article-cta-button:hover,
body .csk-article-cta-button:focus-visible { background: #fb923c; color: var(--csk-d-accent-ink); }

/* Read next: cards, full width of the page. */
.csk-article-wrap .csk-related {
	margin: 56px 0 8px;
	padding-top: 36px;
	border-top: 1px solid var(--csk-d-line);
}
.csk-article-wrap .csk-related-heading { font-size: 1.4rem; color: var(--csk-d-ink); }
.csk-article-wrap .csk-related-list { gap: 24px; }
body .csk-article-wrap .csk-related-item a {
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--csk-d-line);
	border-radius: 14px;
	background: #fff;
	color: var(--csk-d-ink);
	transition: border-color .18s ease, box-shadow .18s ease;
}
body .csk-article-wrap .csk-related-item a:hover {
	border-color: #bae6fd;
	box-shadow: 0 8px 24px -12px rgba(15, 23, 42, .25);
}
.csk-article-wrap .csk-related-item img { border-radius: 0; max-width: none; height: auto; }
.csk-article-wrap .csk-related-title { padding: 14px 16px 18px; }
/* Read next: three across on a wide screen, never one card left alone
 * under two; titles read as headings, not as underlined links. */
.csk-article-wrap .csk-related-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
body .csk-article-wrap .csk-related-item a,
body .csk-article-wrap .csk-related-item a:hover { text-decoration: none; }
.csk-article-wrap .csk-related-title { color: var(--csk-d-ink); }
.csk-article-wrap .csk-related-item a:hover .csk-related-title { color: var(--csk-d-brand); }
/* On a phone the side column holds only share and the card, which are
 * hidden there; an empty column should take no room. */
.csk-article-side:empty { display: none; }

/* Tags and comments line up with the text column. */
.csk-article-v2 .post-tags,
.csk-article-v2 .comments-area {
	box-sizing: border-box;
	max-width: 1036px; /* --csk-col + --csk-side + --csk-gap */
	margin-left: auto;
	margin-right: auto;
}
.csk-article-v2 .comments-area {
	margin-top: 48px;
	margin-bottom: 56px;
}
.csk-article-v2 .comments-area > * { max-width: 720px; }
.csk-article-v2 .comment-respond {
	padding: 24px 28px;
	border: 1px solid var(--csk-d-line);
	border-radius: 14px;
	background: #f8fafc;
}
.csk-article-v2 .comment-reply-title { margin-top: 0; font-size: 1.2rem; }
.csk-article-v2 .comments-area input[type="text"],
.csk-article-v2 .comments-area input[type="email"],
.csk-article-v2 .comments-area input[type="url"],
.csk-article-v2 .comments-area textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	font-size: .95rem;
}
.csk-article-v2 .comments-area input:focus,
.csk-article-v2 .comments-area textarea:focus {
	outline: 2px solid var(--csk-d-brand);
	outline-offset: 1px;
	border-color: var(--csk-d-brand);
}
.csk-article-v2 .comments-area .comment-notes,
.csk-article-v2 .comments-area .comment-form-cookies-consent { font-size: .84rem; color: var(--csk-d-muted); }
.csk-article-v2 .comments-area .comment-form-cookies-consent input { width: auto; margin-right: 6px; }
.csk-article-v2 .comments-area [type="submit"] {
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--csk-d-brand);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.csk-article-v2 .comments-area [type="submit"]:hover { background: var(--csk-d-brand-dark); }

/* --- Narrower screens --------------------------------------------------- */

@media (max-width: 1024px) {
	.csk-article-wrap,
	.csk-article-wrap:not(.has-toc):not(.has-side) { max-width: var(--csk-col); }
	.csk-article-grid,
	.csk-article-wrap:not(.has-toc):not(.has-side) .csk-article-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "side" "main";
		gap: 28px;
	}
	/* Contents above the text, as an open box; share and card are at the
	 * end of the article anyway. */
	.csk-article-side { position: static; max-height: none; overflow: visible; }
	.csk-article-side .csk-share,
	.csk-article-side .csk-side-card { display: none; }
	.csk-article-wrap:not(.has-toc) .csk-article-side { display: none; }
	.csk-article-side .csk-toc {
		padding: 16px 18px;
		border: 1px solid #bae6fd;
		border-radius: 12px;
		background: #f0f9ff;
	}
	.csk-article-side .csk-toc ol { border-left: 0; }
	body .csk-article-side .csk-toc a { margin-left: 0; padding-left: 0; border-left: 0; color: var(--csk-d-ink); }
	.csk-article-v2 .post-tags,
	.csk-article-v2 .comments-area { max-width: 720px; }
}

@media (max-width: 600px) {
	.csk-article-v2 .site-main { padding: 0 16px; }
	.csk-article-head { margin-top: 12px; }
	.csk-article-hero { margin: 0 -16px; }
	.csk-article-hero img { border-radius: 0; aspect-ratio: 3 / 2; box-shadow: none; }
	.csk-article-hero figcaption { padding: 0 16px; }
	.csk-article-cta { padding: 20px; }
	.csk-article-v2 .comment-respond { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	body .csk-article-side .csk-toc a,
	body .csk-article-wrap .csk-related-item a { transition: none; }
}

/* =========================================================================
 * Footer
 *
 * These rules fix any footer the kit renders, the old template included:
 * the menu used to inherit the body's dark text on a dark background, and
 * text links got Hello's crimson.
 * ====================================================================== */

.csk-footer { background: var(--csk-d-night); color: #cbd5e1; }

.csk-footer .csk-nav { --csk-nav-color: #e2e8f0; --csk-nav-hover: var(--csk-d-sky); }
.csk-footer .csk-nav--vertical .csk-nav-list a { padding: 5px 0; font-weight: 400; font-size: .95rem; }

body .csk-footer a { color: #e2e8f0; text-decoration: none; }
body .csk-footer a:hover,
body .csk-footer a:focus-visible { color: var(--csk-d-sky); text-decoration: underline; }

/*
 * Text colours set here, not only in the template. On the live site the
 * footer template's own Elementor CSS (its per-widget text colours) did not
 * load, so the about line and the copyright line fell back to the kit's dark
 * body colour on the dark background. These do not depend on it.
 */
.csk-footer .elementor-section { background-color: transparent; }
.csk-footer p,
.csk-footer li,
.csk-footer .elementor-widget-text-editor { color: #cbd5e1; }
.csk-footer .elementor-heading-title { color: #fff; }
/* The last row is the small print, in the old footer as in the new. */
.csk-footer .elementor-top-section:last-child p,
.csk-footer .elementor-top-section:last-child .elementor-widget-text-editor,
.csk-footer .csk-footer-bar p {
	color: #94a3b8;
	font-size: 13px;
	line-height: 1.6;
}
body .csk-footer .elementor-top-section:last-child a { color: #cbd5e1; text-decoration: underline; font-size: 13px; }

/* Column titles as small labels, not page headings. */
.csk-footer .elementor-widget-heading .elementor-heading-title { font-weight: 600; }
.csk-footer h4.elementor-heading-title,
.csk-footer .csk-footer-label .elementor-heading-title {
	margin-bottom: 6px;
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #94a3b8;
}
.csk-footer h3.elementor-heading-title,
.csk-footer .csk-footer-name .elementor-heading-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
}
.csk-footer .csk-footer-about p { max-width: 36ch; font-size: .95rem; line-height: 1.6; }

ul.csk-footer-links { margin: 0; padding: 0; list-style: none; }
ul.csk-footer-links li { margin: 0; padding: 5px 0; font-size: .95rem; }

.csk-footer .csk-footer-cta .elementor-button {
	border-radius: 999px;
	background: var(--csk-d-accent);
	color: var(--csk-d-accent-ink);
	font-weight: 700;
}
.csk-footer .csk-footer-cta .elementor-button:hover { background: #fb923c; color: var(--csk-d-accent-ink); text-decoration: none; }

/* The bottom bar: a hairline above it, then the small print. */
.csk-footer .csk-footer-bar > .elementor-container {
	padding-top: 20px;
	border-top: 1px solid rgba(148, 163, 184, .2);
}
.csk-footer .csk-footer-bar p { margin: 0; }
body .csk-footer .csk-footer-bar a { color: #cbd5e1; text-decoration: underline; }

@media (max-width: 767px) {
	.csk-footer .csk-footer-main .elementor-column { margin-bottom: 20px; }
}
