/* ==========================================================================
   Cloudy Thoughts — theme styles
   Palette is taken from the logo: its deep sky ground and its cloud blue.
   ========================================================================== */

:root {
	/* Colours follow Elementor → Site Settings → Global Colors when Elementor is active. */
	--sky: var(--e-global-color-primary, #08587D);          /* logo background */
	--sky-2: #0B6A96;
	--strato: var(--e-global-color-secondary, #062F45);       /* night layer: footer, code */
	--cloud: var(--e-global-color-accent, #23A8E6);        /* logo cloud */
	--mist: var(--e-global-color-ctmist, #F2F7FA);         /* reading background */
	--white: #FFFFFF;
	--ink: var(--e-global-color-text, #0B2A3B);
	--ink-2: #40596A;
	--line: #D5E3EB;
	--link: #0A6699;
	--sun: var(--e-global-color-ctsun, #FFC94D);

	/* Fonts follow Elementor → Site Settings → Global Fonts (Primary = headings, Text = body). */
	--font-display: var(--e-global-typography-primary-font-family, "Bricolage Grotesque"), "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: var(--e-global-typography-text-font-family, "Atkinson Hyperlegible"), "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
	--font-code: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 18px;
	--px: 8px; /* pixel-art grid unit */

	/* Stepped "cloud bank" edge, tiles horizontally. */
	--bank-mist: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='48' shape-rendering='crispEdges'%3E%3Cpath fill='%23F2F7FA' d='M0 32h16v-8h8v-8h16v-8h16v8h8v8h8v-8h16v-8h24v8h8v8h8v8h16v-8h8v-8h16v8h8v8h16v16H0z'/%3E%3C/svg%3E");
	--bank-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='48' shape-rendering='crispEdges'%3E%3Cpath fill='%2323A8E6' fill-opacity='.35' d='M0 24h24v-8h16V8h24v8h16v8h24v-8h8V8h32v8h16v8h24v-8h24V8h16v8h16v8h16v24H0z'/%3E%3C/svg%3E");
	--bank-strato: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='48' shape-rendering='crispEdges'%3E%3Cpath fill='%23062F45' d='M0 32h16v-8h8v-8h16v-8h16v8h8v8h8v-8h16v-8h24v8h8v8h8v8h16v-8h8v-8h16v8h8v8h16v16H0z'/%3E%3C/svg%3E");
}

/* Elementor puts its global variables on the body (.elementor-kit-N), so
   re-declare the tokens there for them to pick up Site Settings. */
body[class*="elementor-kit-"] {
	--sky: var(--e-global-color-primary, #08587D);
	--strato: var(--e-global-color-secondary, #062F45);
	--cloud: var(--e-global-color-accent, #23A8E6);
	--mist: var(--e-global-color-ctmist, #F2F7FA);
	--ink: var(--e-global-color-text, #0B2A3B);
	--sun: var(--e-global-color-ctsun, #FFC94D);
	--font-display: var(--e-global-typography-primary-font-family, "Bricolage Grotesque"), "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: var(--e-global-typography-text-font-family, "Atkinson Hyperlegible"), "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--sky); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 .5em; }

.ct-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ct-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.ct-skip:focus { top: 12px; }

.ct-h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; }
.ct-h3 { font-size: 1.4rem; }
.ct-lead { font-size: 1.2rem; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.ct-link { font-weight: 700; color: var(--link); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.ct-link:hover { color: var(--sky); }
.ct-link--light { color: var(--white); }
.ct-link--light:hover { color: var(--cloud); }
.ct-empty { padding: 48px 0; color: var(--ink-2); font-size: 1.15rem; }

/* ---------- Buttons ---------- */

.ct-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: 0 20px; border-radius: 12px; border: 2px solid transparent;
	font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.ct-btn--cloud { background: var(--cloud); color: var(--strato); }
.ct-btn--cloud:hover { background: #4DBCF0; color: var(--strato); }
.ct-btn--sky { background: var(--sky); color: var(--white); }
.ct-btn--sky:hover { background: var(--sky-2); color: var(--white); }
.ct-btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.ct-btn--ghost:hover { background: var(--ink); color: var(--white); }

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

.ct-header { background: var(--sky); color: var(--white); position: relative; z-index: 20; }
.ct-header__bar { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.ct-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.ct-logo__img { display: block; width: auto; height: 52px; image-rendering: auto; }
.ct-header__logo .ct-logo__img { height: 56px; }

.ct-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.ct-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.ct-nav__list a { display: block; padding: 10px 14px; border-radius: 10px; color: #D7ECF7; text-decoration: none; font-weight: 700; }
.ct-nav__list a:hover, .ct-nav__list .current-menu-item > a, .ct-nav__list .current_page_item > a { color: var(--white); background: rgba(255,255,255,.1); }
.ct-nav__list li { position: relative; }
.ct-nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--strato); border-radius: 12px; display: none; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.ct-nav__list li:hover > .sub-menu, .ct-nav__list li:focus-within > .sub-menu { display: block; }

.ct-search { display: flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 12px; padding: 0 4px 0 14px; }
.ct-search input { background: transparent; border: 0; color: var(--white); font: inherit; width: 150px; min-height: 42px; outline: none; }
.ct-search input::placeholder { color: #B8D7E8; }
.ct-search button { background: transparent; border: 0; color: var(--white); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.ct-search:focus-within { box-shadow: 0 0 0 3px var(--sun); }
.ct-search--big { background: var(--white); max-width: 560px; padding: 6px 6px 6px 18px; margin-top: 24px; }
.ct-search--big input { color: var(--ink); width: 100%; font-size: 1.1rem; }
.ct-search--big input::placeholder { color: #6B8494; }

.ct-navtoggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); cursor: pointer; }
.ct-navtoggle__bars, .ct-navtoggle__bars::before, .ct-navtoggle__bars::after { display: block; width: 22px; height: 3px; background: var(--white); margin: 0 auto; position: relative; content: ""; }
.ct-navtoggle__bars::before { position: absolute; top: -7px; }
.ct-navtoggle__bars::after { position: absolute; top: 7px; }

@media (max-width: 960px) {
	.ct-navtoggle { display: block; }
	.ct-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sky); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); }
	.ct-nav.is-open { display: flex; }
	.ct-nav__list { flex-direction: column; }
	.ct-nav__list .sub-menu { position: static; display: block; background: transparent; box-shadow: none; padding-left: 16px; }
	.ct-search input { width: 100%; }
	.ct-header__cta { align-self: flex-start; }
}

/* ---------- Sky band + drifting pixel clouds ---------- */

.ct-hero, .ct-band { position: relative; background: var(--sky); color: var(--white); overflow: hidden; isolation: isolate; }
.ct-hero { background: linear-gradient(180deg, var(--sky) 0%, #0A6390 70%, #0E74A6 100%); }
.ct-band { background: linear-gradient(180deg, var(--sky) 0%, #0B6894 100%); }

.ct-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ct-sky__cloud { position: absolute; display: block; }
.ct-sky__cloud svg { display: block; image-rendering: pixelated; }
.ct-sky .c1 { top: 12%; left: 6%; width: 144px; opacity: .14; }
.ct-sky .c2 { top: 64%; left: 38%; width: 112px; opacity: .25; }
.ct-sky .c3 { top: 22%; left: 72%; width: 204px; opacity: .1; }
.ct-sky .c4 { top: 76%; left: 82%; width: 160px; opacity: .3; }
.ct-sky .c5 { top: 40%; left: 92%; width: 96px; opacity: .16; }
.ct-sky .c1 svg, .ct-sky .c2 svg, .ct-sky .c3 svg, .ct-sky .c4 svg, .ct-sky .c5 svg { width: 100%; }

@keyframes ct-drift { from { transform: translateX(0); } to { transform: translateX(-130vw); } }
@keyframes ct-enter { from { transform: translateX(30vw); } to { transform: translateX(0); } }
.ct-sky.is-drifting .ct-sky__cloud { animation: ct-drift linear infinite; }
.ct-sky.is-drifting .c1 { animation-duration: 160s; animation-delay: -20s; left: 100%; }
.ct-sky.is-drifting .c2 { animation-duration: 110s; animation-delay: -70s; left: 100%; }
.ct-sky.is-drifting .c3 { animation-duration: 210s; animation-delay: -150s; left: 100%; }
.ct-sky.is-drifting .c4 { animation-duration: 130s; animation-delay: -10s; left: 100%; }
.ct-sky.is-drifting .c5 { animation-duration: 180s; animation-delay: -110s; left: 100%; }
.ct-sky.is-paused .ct-sky__cloud { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
	.ct-sky.is-drifting .ct-sky__cloud { animation: none; }
	.ct-sky.is-drifting .c1 { left: 6%; } .ct-sky.is-drifting .c2 { left: 38%; } .ct-sky.is-drifting .c3 { left: 72%; } .ct-sky.is-drifting .c4 { left: 82%; } .ct-sky.is-drifting .c5 { left: 92%; }
}

/* The stepped cloud-bank edge where the sky meets the page. */
.ct-bank { position: relative; height: 48px; margin-top: -1px; background: var(--bank-mist) repeat-x left bottom, var(--bank-back) repeat-x 40px bottom; image-rendering: pixelated; }

/* ---------- Home hero ---------- */

.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: 32px; }
.ct-hero__title { color: var(--white); font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.6rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.035em; margin: 0 0 22px; max-width: 13ch; text-wrap: balance; }
.ct-hero__text { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.6; color: #D3E8F4; max-width: 46ch; margin: 0 0 30px; }
.ct-hero__form { max-width: 520px; }

@media (max-width: 900px) {
	.ct-hero__grid { grid-template-columns: 1fr; }
	.ct-hero__title { max-width: 16ch; }
}

/* ---------- Feature (latest post) ---------- */

.ct-feature { background: var(--white); color: var(--ink); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -32px rgba(3, 28, 43, .65); }
.ct-feature__media { display: block; }
.ct-feature__media .ct-cover { aspect-ratio: 16 / 9; }
.ct-feature__body { padding: 24px 28px 26px; }
.ct-feature__kicker { margin: 0 0 8px; font-weight: 700; color: var(--sky); display: flex; align-items: center; gap: 8px; }
.ct-feature__kicker::before { content: ""; width: 10px; height: 10px; background: var(--cloud); box-shadow: 10px 0 0 var(--cloud), 0 -10px 0 transparent; margin-right: 10px; }
.ct-feature__title { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.ct-feature__title a { color: inherit; text-decoration: none; }
.ct-feature__title a:hover { text-decoration: underline; text-decoration-color: var(--cloud); text-decoration-thickness: 3px; }
.ct-feature__excerpt { color: var(--ink-2); margin: 0 0 14px; }

/* In listings the feature runs wide. */
.ct-feature--wide .ct-feature, .ct-listing .ct-feature { flex-direction: row; margin: 8px 0 32px; box-shadow: none; border: 1px solid var(--line); }
.ct-feature--wide .ct-feature__media, .ct-listing .ct-feature__media { flex: 0 0 56%; }
.ct-feature--wide .ct-feature__media .ct-cover, .ct-listing .ct-feature__media .ct-cover { height: 100%; aspect-ratio: auto; min-height: 300px; }
.ct-feature--wide .ct-feature__body, .ct-listing .ct-feature__body { align-self: center; padding: 32px 36px; }
@media (max-width: 860px) {
	.ct-listing .ct-feature { flex-direction: column; }
	.ct-listing .ct-feature__media .ct-cover { min-height: 0; aspect-ratio: 16 / 9; }
	.ct-listing .ct-feature__body { padding: 24px; }
}

/* ---------- Covers (featured image or generated pixel sky) ---------- */

.ct-cover { position: relative; overflow: hidden; background: var(--sky); aspect-ratio: 16 / 9; }
.ct-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-cover--generated { background: linear-gradient(170deg, var(--sky-a, #08587D) 0%, var(--sky-b, #0E7FB3) 100%); }
.ct-cover__cloud { position: absolute; width: 20%; transform-origin: left top; }
.ct-cover__cloud svg { width: 100%; display: block; }
.ct-cover__label { position: absolute; left: 16px; bottom: 14px; color: var(--white); font: 800 clamp(1.1rem, .9rem + .8vw, 1.6rem)/1.1 var(--font-display); letter-spacing: -0.01em; text-shadow: 0 2px 0 rgba(0,0,0,.15); max-width: 80%; }

/* ---------- Sections, chips, grid ---------- */

.ct-section { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.ct-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ct-section__head .ct-h2 { margin: 0; }

.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.ct-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.ct-chip:hover { border-color: var(--sky); color: var(--sky); }
.ct-chip.is-current { background: var(--sky); border-color: var(--sky); color: var(--white); }

.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.ct-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ct-card__media { display: block; }
.ct-card__body { padding: 18px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ct-card__title { font-size: 1.28rem; line-height: 1.25; margin: 0 0 8px; }
.ct-card__title a { color: var(--ink); text-decoration: none; }
.ct-card__title a:hover { text-decoration: underline; text-decoration-color: var(--cloud); text-decoration-thickness: 3px; }
.ct-card__excerpt { margin: 0; color: var(--ink-2); font-size: 1rem; }
.ct-card .ct-meta { order: -1; margin-bottom: 8px; }

.ct-meta { margin: 0; color: var(--ink-2); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 0 .35em; align-items: baseline; }
.ct-meta__cat { color: var(--sky); font-weight: 700; text-decoration: none; }
.ct-meta__cat:hover { text-decoration: underline; }
.ct-meta__time { flex-basis: 100%; }

/* Earlier posts list */
.ct-archive { margin-top: 56px; }
.ct-archive__title { font-size: 1.35rem; margin-bottom: 8px; }
.ct-rows { list-style: none; margin: 0 0 24px; padding: 0; border-top: 2px solid var(--ink); }
.ct-row { border-bottom: 1px solid var(--line); }
.ct-row__link { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 16px 0; color: var(--ink); text-decoration: none; }
.ct-row__title { font: 700 1.12rem/1.35 var(--font-display); flex: 1 1 420px; }
.ct-row__link:hover .ct-row__title { color: var(--sky); text-decoration: underline; text-decoration-color: var(--cloud); text-decoration-thickness: 3px; }
.ct-row__meta { color: var(--ink-2); font-size: .95rem; }

/* Pagination */
.ct-pagination { margin-top: 48px; }
.ct-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.ct-pagination .page-numbers.current { background: var(--sky); color: var(--white); border-color: var(--sky); }

/* ---------- Listing band ---------- */

.ct-band__inner { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 24px; }
.ct-band__title { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.ct-band__text { color: #D3E8F4; font-size: 1.2rem; max-width: 56ch; margin: 0; }

/* ---------- About ---------- */

.ct-about { padding: 24px 0 clamp(56px, 7vw, 104px); }
.ct-about__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ct-about__portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.ct-about__placeholder { aspect-ratio: 4 / 5; border-radius: 24px; background: linear-gradient(170deg, var(--sky), #0E7FB3); display: grid; place-items: center; }
.ct-about__placeholder svg { width: 55%; image-rendering: pixelated; }
.ct-certs { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ct-certs a, .ct-certs span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.ct-certs a::before, .ct-certs span::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: conic-gradient(#F25022 0 25%, #7FBA00 0 50%, #FFB900 0 75%, #00A4EF 0); clip-path: polygon(0 0, 47% 0, 47% 47%, 53% 47%, 53% 0, 100% 0, 100% 47%, 53% 47%, 53% 53%, 100% 53%, 100% 100%, 53% 100%, 53% 53%, 47% 53%, 47% 100%, 0 100%, 0 53%, 47% 53%, 47% 47%, 0 47%); }
.ct-certs a:hover { border-color: var(--sky); color: var(--sky); }
@media (max-width: 760px) { .ct-about__grid { grid-template-columns: 1fr; } .ct-about__portrait { max-width: 280px; } }

/* ---------- Single post ---------- */

.ct-band--post .ct-band__inner { padding-bottom: 32px; }
.ct-post-head { max-width: calc(860px + 2 * var(--gutter)); margin-left: 0; }
@media (min-width: 1100px) { .ct-post-head { margin-left: max(0px, calc((100% - var(--wrap) - 2 * var(--gutter)) / 2)); } }
.ct-crumbs { margin: 0 0 14px; }
.ct-crumbs a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: var(--white); text-decoration: none; font-weight: 700; }
.ct-crumbs a:hover { background: var(--cloud); color: var(--strato); }
.ct-post-head__title { color: var(--white); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.ct-post-head__dek { color: #D3E8F4; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 58ch; margin: 0 0 24px; }
.ct-byline { display: flex; align-items: center; gap: 14px; }
.ct-byline__avatar { border-radius: 50%; border: 2px solid var(--cloud); }
.ct-byline p { margin: 0; }
.ct-byline__name { font-weight: 700; color: var(--white); }
.ct-byline__meta { color: #BFDDEE; font-size: .95rem; }

.ct-post-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 280px); gap: clamp(32px, 5vw, 72px); padding-top: 24px; padding-bottom: 64px; align-items: start; }
.ct-post-layout--left { grid-template-columns: minmax(0, 280px) minmax(0, 760px); }
.ct-post-layout--left .ct-side { grid-column: 1; grid-row: 1; }
.ct-post-layout--left .ct-article { grid-column: 2; grid-row: 1; }
.ct-article__hero { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; }
.ct-article__hero img { display: block; width: 100%; }
/* The sidebar stretches the full height of the post so the table of contents
   (last in the sidebar) can stay pinned without covering the widgets above it. */
.ct-side { position: relative; align-self: stretch; display: flex; flex-direction: column; gap: 24px; }
.ct-side__widgets { display: flex; flex-direction: column; gap: 20px; }
.ct-toc { position: sticky; top: 24px; padding: 16px 18px 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; max-height: calc(100vh - 48px); overflow-y: auto; }
.ct-toc__title { font-size: 1rem; color: var(--ink-2); margin: 0 0 10px; }
.ct-toc ol { list-style: none; margin: 0; padding: 0; }
.ct-toc li { margin: 0; }
.ct-toc a { display: block; padding: 6px 0 6px 12px; color: var(--ink-2); text-decoration: none; line-height: 1.35; font-size: .97rem; border-left: 3px solid transparent; }
.ct-toc a:hover { color: var(--sky); }
.ct-toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--cloud); }
.ct-widget { margin-top: 0; }
.ct-widget__title { font-size: 1.05rem; }
.ct-footer .ct-widget, .ct-footer__widgets .ct-widget { margin-top: 0; }
@media (max-width: 1000px) {
	.ct-post-layout, .ct-post-layout--left { grid-template-columns: minmax(0, 1fr); }
	/* Phones/tablets: contents above the article, other widgets below it. */
	.ct-side { display: contents; }
	.ct-post-layout--left .ct-article, .ct-post-layout--left .ct-side { grid-column: auto; grid-row: auto; }
	.ct-toc { position: static; order: -1; max-height: none; }
	.ct-article { order: 0; }
	.ct-side__widgets { order: 1; }
}

/* Article typography */
.ct-prose { font-size: 1.125rem; line-height: 1.75; color: #13303F; }
.ct-prose > * { max-width: 72ch; }
.ct-prose > .alignwide, .ct-prose > .alignfull, .ct-prose > pre, .ct-prose > .wp-block-code, .ct-prose > figure, .ct-prose > .wp-block-table, .ct-prose > table { max-width: none; }
.ct-prose p, .ct-prose ul, .ct-prose ol, .ct-prose dl { margin: 0 0 1.25em; }
.ct-prose h2 { font-size: clamp(1.55rem, 1.25rem + .9vw, 1.95rem); font-weight: 800; letter-spacing: -0.02em; margin: 2.2em 0 .6em; scroll-margin-top: 24px; }
.ct-prose h3 { font-size: 1.35rem; margin: 1.8em 0 .5em; scroll-margin-top: 24px; }
.ct-prose h4 { font-size: 1.12rem; margin: 1.6em 0 .4em; }
.ct-prose > :first-child { margin-top: 0; }
.ct-prose li { margin: .35em 0; }
.ct-prose li::marker { color: var(--sky); font-weight: 700; }
.ct-prose a { color: var(--link); }
.ct-prose strong { color: var(--ink); }
.ct-prose hr { border: 0; height: 8px; margin: 3em 0; background: linear-gradient(90deg, var(--cloud) 0 8px, transparent 8px 16px) repeat-x; background-size: 16px 8px; opacity: .6; }
.ct-prose img { border-radius: 12px; }
.ct-prose figure { margin: 2em 0; }
.ct-prose figcaption { font-size: .92rem; color: var(--ink-2); margin-top: .6em; }
.ct-prose blockquote { margin: 2em 0; padding: 18px 24px; background: var(--white); border-left: 6px solid var(--cloud); border-radius: 0 14px 14px 0; font-size: 1.15rem; }
.ct-prose blockquote p:last-child { margin-bottom: 0; }

.ct-prose code { font-family: var(--font-code); font-size: .86em; background: #E1EDF4; color: #0B3C55; padding: .12em .38em; border-radius: 6px; overflow-wrap: anywhere; }
.ct-prose pre, .ct-prose .wp-block-code {
	position: relative; margin: 1.8em 0; padding: 22px 24px; background: var(--strato); color: #E3F0F8;
	border-radius: 14px; overflow-x: auto; font: 400 .9rem/1.65 var(--font-code); tab-size: 4;
	border-top: 8px solid var(--sky);
}
.ct-prose pre code, .ct-prose .wp-block-code code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.ct-copy { position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #CFE6F3; font: 700 .8rem/1 var(--font-body); cursor: pointer; }
.ct-copy:hover { background: var(--cloud); color: var(--strato); border-color: var(--cloud); }

.ct-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--white); border-radius: 12px; overflow: hidden; }
.ct-prose .wp-block-table { overflow-x: auto; margin: 1.8em 0; }
.ct-prose th, .ct-prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ct-prose th { background: #E6F1F7; font-weight: 700; }

.ct-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 36px 0 0; }
.ct-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #E1EDF4; color: var(--sky); text-decoration: none; font-weight: 700; font-size: .92rem; }

.ct-authorbox { display: flex; gap: 18px; align-items: flex-start; margin: 48px 0 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ct-authorbox__avatar { border-radius: 50%; flex-shrink: 0; }
.ct-authorbox p { margin: 0; color: var(--ink-2); }
.ct-authorbox .ct-authorbox__name { font: 700 1.15rem var(--font-display); color: var(--ink); margin-bottom: 4px; }

.ct-postnews { position: relative; overflow: hidden; margin: 28px 0 0; padding: 32px; border-radius: 22px; background: var(--sky); color: #D3E8F4; }
.ct-postnews__cloud { position: absolute; right: 24px; bottom: 18px; width: 120px; opacity: .3; image-rendering: pixelated; }
.ct-postnews__title { color: var(--white); font-size: 1.7rem; font-weight: 800; margin: 0 0 6px; }
.ct-postnews p { margin: 0 0 18px; max-width: 46ch; }

.ct-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; }
.ct-postnav__link { display: block; padding: 18px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 700 1.05rem/1.35 var(--font-display); }
.ct-postnav__link span { display: block; font: 400 .9rem var(--font-body); color: var(--ink-2); margin-bottom: 4px; }
.ct-postnav__link.is-next { text-align: right; grid-column: 2; }
.ct-postnav__link:hover { border-color: var(--sky); }
@media (max-width: 620px) { .ct-postnav { grid-template-columns: 1fr; } .ct-postnav__link.is-next { grid-column: 1; text-align: left; } }

.ct-related { padding-top: 0; }

/* Comments */
.ct-comments { margin-top: 56px; }
.ct-comment-list { list-style: none; padding: 0; }
.ct-comment-list .comment-body { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.ct-comment-list .children { list-style: none; padding-left: 24px; }
.ct-comments textarea, .ct-comments input[type=text], .ct-comments input[type=email], .ct-comments input[type=url] { width: 100%; padding: 12px 14px; border: 1px solid #B9CEDA; border-radius: 10px; font: inherit; background: var(--white); }
.ct-comments .comment-avatar, .ct-comments .avatar { border-radius: 50%; }

/* Pages */
.ct-page__body { padding-top: 24px; padding-bottom: 72px; }
.ct-article--page { max-width: 800px; }

/* Elementor */
.ct-elementor-page { min-height: 40vh; }

/* 404 */
.ct-404__inner { padding-top: clamp(56px, 8vw, 120px); padding-bottom: 32px; }
.ct-404__code { font: 800 clamp(4rem, 2rem + 8vw, 8rem)/1 var(--font-display); color: var(--cloud); margin: 0 0 8px; letter-spacing: -0.04em; }

/* ---------- Newsletter form (Cloudy SES Mailer) ---------- */

.cses-form { max-width: 560px; }
.cses-form .cses-title { font: 700 1.2rem var(--font-display); margin: 0 0 4px; }
.cses-form .cses-text { margin: 0 0 14px; }
.cses-form .cses-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.cses-form .cses-input { flex: 1 1 240px; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent; background: var(--white); color: var(--ink); font: 400 1.05rem var(--font-body); }
.cses-form .cses-input:focus { outline: none; border-color: var(--sun); }
.cses-form .cses-button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--cloud); color: var(--strato); font: 700 1.05rem var(--font-body); cursor: pointer; }
.cses-form .cses-button:hover { background: #4DBCF0; }
.cses-form .cses-button:disabled { opacity: .6; cursor: wait; }
.cses-form .cses-msg { margin: 10px 0 0; min-height: 1.4em; font-weight: 700; }
.cses-form .cses-consent { display: flex; gap: 8px; margin-top: 10px; font-size: .92rem; }
.cses-form .cses-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cses-form.is-done .cses-msg { color: #9FF0B8; }
.cses-form.is-error .cses-msg { color: var(--sun); }
.cses-form.cses-stacked .cses-fields { flex-direction: column; }
/* On light backgrounds */
.ct-prose .cses-form .cses-input, .ct-widget .cses-form .cses-input, .ct-elementor-page .cses-form .cses-input { border-color: #B9CEDA; }
.ct-prose .cses-form.is-done .cses-msg, .ct-widget .cses-form.is-done .cses-msg, .ct-elementor-page .cses-form.is-done .cses-msg { color: #1A7F37; }
.ct-prose .cses-form.is-error .cses-msg, .ct-widget .cses-form.is-error .cses-msg, .ct-elementor-page .cses-form.is-error .cses-msg { color: #B42318; }
.ct-hero .cses-title, .ct-hero .cses-text, .ct-postnews .cses-title, .ct-postnews .cses-text, .ct-footer .cses-title, .ct-footer .cses-text { display: none; }

/* ---------- Footer ---------- */

.ct-footer { position: relative; background: var(--strato); color: #B7D2E2; margin-top: 48px; }
.ct-footer__bank { position: absolute; left: 0; right: 0; top: -47px; height: 48px; background: var(--bank-strato) repeat-x left bottom; image-rendering: pixelated; }
.ct-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.ct-footer__logo { background: var(--sky); padding: 10px 14px; border-radius: 14px; }
.ct-footer__logo .ct-logo__img { height: 52px; }
.ct-footer__brand p { max-width: 40ch; margin: 14px 0 18px; }
.ct-footer__title { color: var(--white); font-size: 1.5rem; margin: 0 0 6px; }
.ct-footer__news p { margin: 0 0 16px; }
.ct-footer__widgets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 8px; }
.ct-footer .ct-widget { margin: 0; }
.ct-footer .ct-widget__title, .ct-footer .wp-block-heading, .ct-footer h2, .ct-footer h3 { color: var(--white); font-size: 1.1rem; margin: 0 0 10px; }
.ct-footer .ct-widget ul { list-style: none; margin: 0; padding: 0; }
.ct-footer .ct-widget li { margin: 0 0 6px; }
.ct-footer .ct-widget a { text-decoration: none; }
.ct-footer .ct-widget a:hover { color: var(--cloud); text-decoration: underline; }
.ct-footer a { color: #D7ECF7; }
.ct-social { display: flex; gap: 8px; }
.ct-social__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); color: #D7ECF7; }
.ct-social__link:hover { background: var(--cloud); color: var(--strato); }
.ct-footer__base { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.ct-footer__base p { margin: 0; }
.ct-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
@media (max-width: 800px) { .ct-footer__grid { grid-template-columns: 1fr; } }

/* ---------- WordPress core alignment & blocks ---------- */

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image img { height: auto; }
.wp-block-button__link { background: var(--sky); color: var(--white); border-radius: 12px; font-weight: 700; }
.wp-caption-text, .wp-element-caption { font-size: .92rem; color: var(--ink-2); }
.sticky .ct-card__title::before { content: "Pinned · "; color: var(--sky); }

@media print {
	.ct-header, .ct-footer, .ct-side, .ct-postnews, .ct-postnav, .ct-related, .ct-sky, .ct-bank { display: none !important; }
	.ct-band { background: none; color: #000; }
	.ct-post-head__title, .ct-byline__name { color: #000; }
}


/* ==========================================================================
   Elementor
   ========================================================================== */

/* Sky effects — add these CSS classes to any Elementor container
   (Advanced → CSS Classes):
     cloudy-sky       drifting pixel clouds behind the content
     cloudy-bank      stepped pixel cloud edge along the bottom
     cloudy-bank-top  stepped edge along the top (sits on the section above) */
.cloudy-sky, .e-con.cloudy-sky { position: relative; overflow: hidden; --overflow: hidden; isolation: isolate; }
html, body { overflow-x: clip; }
.cloudy-sky > .ct-sky { z-index: -1; }
.cloudy-bank, .cloudy-bank-top { position: relative; }
.ct-bank--auto { position: absolute; left: 0; right: 0; height: 48px; pointer-events: none; z-index: 2; margin: 0; }
.ct-bank--bottom { bottom: -1px; }
.ct-bank--top {
	top: -47px; background: none; background-color: inherit;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='48'%3E%3Cpath d='M0 32h16v-8h8v-8h16v-8h16v8h8v8h8v-8h16v-8h24v8h8v8h8v8h16v-8h8v-8h16v8h8v8h16v16H0z'/%3E%3C/svg%3E") repeat-x left bottom / 192px 48px;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='48'%3E%3Cpath d='M0 32h16v-8h8v-8h16v-8h16v8h8v8h8v-8h16v-8h24v8h8v8h8v8h16v-8h8v-8h16v8h8v8h16v16H0z'/%3E%3C/svg%3E") repeat-x left bottom / 192px 48px;
}

/* Header & footer templates */
.ct-el-header { position: relative; z-index: 30; }
.ct-el-footer { margin-top: 0; }
.ct-el-header .ct-logo__img, .ct-el-header img { image-rendering: auto; }
.ct-menu-widget { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.ct-menu-widget .ct-nav { margin-left: 0; }
@media (max-width: 960px) {
	.ct-menu-widget .ct-nav {
		left: auto; right: 0; top: calc(100% + 14px); width: min(92vw, 380px);
		background: var(--ct-mobile-nav-bg, var(--strato)); border-radius: 16px; border: 0;
		padding: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); z-index: 50;
	}
}

/* Elementor pages sit on the mist background; give widgets the theme's look. */
.elementor .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .elementor .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .elementor .ct-grid { grid-template-columns: minmax(0, 1fr); } }
.elementor .ct-chips { margin: 0; }
.elementor .ct-rows { margin: 0; }
.elementor .ct-feature { box-shadow: 0 30px 60px -32px rgba(3, 28, 43, .65); }
.elementor-widget-ct-featured-post { width: 100%; }

/* Newsletter widget schemes */
.ct-nl--dark .cses-title, .ct-nl--dark .cses-text, .ct-nl--light .cses-title, .ct-nl--light .cses-text { display: none; }
.ct-nl--light .cses-form .cses-input { border-color: #B9CEDA; }
.ct-nl--light .cses-form.is-done .cses-msg { color: #1A7F37; }
.ct-nl--light .cses-form.is-error .cses-msg { color: #B42318; }
.ct-nl--light .cses-form .cses-button { background: var(--sky); color: #fff; }

/* Certification list (Icon List widget with the ct-cert-list class) */
.ct-cert-list .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ct-cert-list .elementor-icon-list-item, .ct-cert-list .elementor-icon-list-item > a { display: inline-flex; align-items: center; gap: 10px; }
.ct-cert-list .elementor-icon-list-icon { display: inline-flex; }
.ct-cert-list .elementor-icon-list-icon svg, .ct-cert-list .elementor-icon-list-icon i { width: 16px; height: 16px; font-size: 16px; fill: var(--cloud); color: var(--cloud); flex: 0 0 16px; }
.ct-cert-list .elementor-icon-list-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px !important; margin: 0 10px 10px 0 !important; }
.ct-cert-list .elementor-icon-list-item a { text-decoration: none; font-weight: 700; }
.ct-cert-list .elementor-icon-list-item::after { display: none !important; }
