/*
 * Blog-only styles for the Ucartz Blog theme. Header, footer, buttons and brand colours come from
 * theme.min.css, the same compiled stylesheet www.ucartz.com uses. Reading surfaces get their own
 * tokens below so text stays high-contrast and calm in both light and dark mode.
 */

:root,
[data-bs-theme="light"] {
	--ucz-page: #f4f6fa;
	--ucz-card: #ffffff;
	--ucz-text: #1a2230;       /* body text, 15:1 on card */
	--ucz-head: #0a0f1c;       /* headings, near black */
	--ucz-muted: #4a5568;      /* meta, captions, 7.5:1 */
	--ucz-line: #e2e7ef;
	--ucz-link: #5424d6;       /* 7.4:1 on card */
	--ucz-link-hover: #c2410c;
	--ucz-tint: rgba(99, 54, 244, .07);
	--ucz-code-bg: #1b2232;
	--ucz-code-text: #e9edf6;
	--ucz-code-line: transparent;
	--ucz-inline-bg: #efeafe;
	--ucz-inline-text: #4a1fc4;
	--ucz-th-bg: #f1eeff;
	--ucz-zebra: #fafbfd;
	--ucz-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 28px rgba(15, 23, 42, .06);
	--ucz-img-filter: none;
	--ucz-btn: #6336f4;        /* white text on this is 6.2:1 in both modes */
	--ucz-btn-hover: #4d27d1;
}

[data-bs-theme="dark"] {
	--ucz-page: #0d1424;
	--ucz-card: #161f33;
	--ucz-text: #e2e8f3;       /* 12:1 on card */
	--ucz-head: #f7f9fd;
	--ucz-muted: #a9b5c9;      /* 7:1 */
	--ucz-line: #2a3750;
	--ucz-link: #b9a8ff;       /* 8:1 */
	--ucz-link-hover: #ffb18f;
	--ucz-tint: rgba(157, 136, 255, .10);
	--ucz-code-bg: #0c1220;
	--ucz-code-text: #e2e8f3;
	--ucz-code-line: #2a3750;
	--ucz-inline-bg: rgba(157, 136, 255, .16);
	--ucz-inline-text: #d8ceff;
	--ucz-th-bg: #1d2943;
	--ucz-zebra: rgba(255, 255, 255, .025);
	--ucz-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 28px rgba(0, 0, 0, .25);
	--ucz-img-filter: brightness(.93) contrast(1.02);
}

/* ------------------------------------------------------------ surfaces */
.ucz-hero { background: var(--ucz-card); }
.ucz-article-bg { background: var(--ucz-page); }
.ucz-blog-lead { max-width: 640px; color: var(--ucz-muted); }

/* ----------------------------------------------------- chips and pills */
.ucz-cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.ucz-cat-chip {
	display: inline-flex; align-items: center; padding: .38rem .95rem; border-radius: 999px;
	font-size: .875rem; font-weight: 500; line-height: 1.3; color: var(--ucz-text);
	background: var(--ucz-card); border: 1px solid var(--ucz-line); text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.ucz-cat-chip:hover, .ucz-cat-chip.active { color: #fff; background: var(--ucz-btn); border-color: var(--ucz-btn); }
.ucz-cat-pill {
	display: inline-block; align-self: flex-start; padding: .22rem .7rem; border-radius: 999px;
	font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
	color: var(--ucz-link); background: var(--ucz-tint);
}
.ucz-cat-pill:hover { color: #fff; background: var(--ucz-btn); }
.ucz-eyebrow { display: block; margin-bottom: .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gk-cta-text, var(--gk-cta)); }
.ucz-section-title { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--ucz-head); }

/* ----------------------------------------------------------- post cards */
.ucz-post-card {
	display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem;
	background: var(--ucz-card); border: 1px solid var(--ucz-line);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.ucz-post-card:hover { transform: translateY(-3px); box-shadow: var(--ucz-shadow); border-color: transparent; }
.ucz-post-card-media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--ucz-tint); }
.ucz-post-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ucz-post-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; color: var(--gk-primary); opacity: .45; }
.ucz-post-card-body { display: flex; flex: 1; flex-direction: column; gap: .7rem; padding: 1.25rem 1.35rem 1.35rem; }
.ucz-post-card-title { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.ucz-post-card-title a { color: var(--ucz-head); text-decoration: none; }
.ucz-post-card-title a:hover { color: var(--ucz-link); }
.ucz-post-card-excerpt { margin: 0; color: var(--ucz-muted); font-size: 1rem; line-height: 1.6; }
.ucz-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem; margin-top: auto; font-size: .875rem; color: var(--ucz-muted); }

.ucz-post-featured { flex-direction: row; margin-bottom: 2.5rem; }
.ucz-post-featured .ucz-post-card-media { flex: 0 0 64%; aspect-ratio: auto; min-height: 0; }
.ucz-post-featured .ucz-post-card-media img { object-position: left center; }
.ucz-post-featured .ucz-post-card-body { justify-content: center; gap: .6rem; padding: clamp(1.25rem, 2vw, 2rem); }
.ucz-featured-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.ucz-featured-tags .ucz-eyebrow { margin: 0; }
.ucz-post-featured-title { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.25; }
.ucz-post-featured:hover { transform: none; }
@media (max-width: 991.98px) {
	.ucz-post-featured { flex-direction: column; }
	.ucz-post-featured .ucz-post-card-media { flex: none; aspect-ratio: 1200 / 630; min-height: 0; }
}

/* search box */
.ucz-search { max-width: 520px; }

/* --------------------------------------------------------- article page */
.ucz-single-head { max-width: 780px; margin-inline: auto; }
.ucz-single-title { margin: 0 0 .85rem; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; color: var(--ucz-head); text-wrap: balance; }
.ucz-single-meta { margin-top: 0; }
.ucz-author { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ucz-text); }
.ucz-author img { width: 32px; height: 32px; }

.ucz-article {
	max-width: 780px; background: var(--ucz-card); border: 1px solid var(--ucz-line); border-radius: 1.25rem;
	padding: clamp(1.25rem, 4vw, 3.25rem); box-shadow: var(--ucz-shadow);
}
.ucz-article-hero { margin: 0 0 2rem; }
.ucz-article-hero img { display: block; width: 100%; height: auto; border-radius: .9rem; border: 1px solid var(--ucz-line); filter: var(--ucz-img-filter); }

/* reading progress */
.ucz-progress {
	position: fixed; top: 0; left: 0; z-index: 1100; width: 100%; height: 3px; transform: scaleX(0); transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--gk-primary), var(--gk-cta));
}
@supports (animation-timeline: scroll()) {
	.ucz-progress { animation: ucz-grow linear both; animation-timeline: scroll(root); }
	@keyframes ucz-grow { to { transform: scaleX(1); } }
}

/* contents box */
.ucz-toc { margin: 0 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--ucz-line); border-radius: .9rem; background: var(--ucz-tint); }
.ucz-toc summary { cursor: pointer; font-weight: 700; color: var(--ucz-head); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.ucz-toc summary::-webkit-details-marker { display: none; }
.ucz-toc summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--ucz-link); }
.ucz-toc[open] summary::after { content: "\2212"; }
.ucz-toc ol { margin: .85rem 0 0; padding: 0; list-style: none; counter-reset: toc; }
.ucz-toc li { counter-increment: none; margin: 0; }
.ucz-toc li.lvl-2 { counter-increment: toc; }
.ucz-toc a { display: block; padding: .3rem 0; font-size: .95rem; line-height: 1.45; color: var(--ucz-text); text-decoration: none; }
.ucz-toc li.lvl-2 a { display: flex; align-items: baseline; gap: .5rem; }
.ucz-toc li.lvl-2 a::before { content: counter(toc) "."; flex: none; min-width: 1.7em; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ucz-link); } /* fixed-width number column so every title starts at the same x */
.ucz-toc li.lvl-3 a { padding-left: 2.35rem; font-size: .9rem; color: var(--ucz-muted); }
.ucz-toc a:hover { color: var(--ucz-link); }

/* ------------------------------------------------------ article prose */
.ucz-prose {
	font-size: clamp(1.0625rem, 1.02rem + .22vw, 1.1875rem); line-height: 1.8; color: var(--ucz-text);
	overflow-wrap: break-word; text-wrap: pretty; font-kerning: normal;
}
.ucz-prose > :first-child { margin-top: 0; }
.ucz-prose > :last-child { margin-bottom: 0; }
.ucz-prose p, .ucz-prose ul, .ucz-prose ol, .ucz-prose dl { margin: 0 0 1.35em; }
.ucz-prose > p:first-of-type { font-size: 1.07em; color: var(--ucz-head); }
.ucz-prose strong, .ucz-prose b { font-weight: 650; color: var(--ucz-head); }
.ucz-prose h2, .ucz-prose h3, .ucz-prose h4 { color: var(--ucz-head); font-weight: 750; line-height: 1.28; scroll-margin-top: 1.5rem; text-wrap: balance; }
.ucz-prose h2 { margin: 2.6em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--ucz-line); font-size: 1.65em; }
.ucz-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ucz-prose h3 { margin: 2em 0 .55em; font-size: 1.3em; }
.ucz-prose h4 { margin: 1.7em 0 .5em; font-size: 1.1em; }
.ucz-prose a { color: var(--ucz-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.ucz-prose a:hover { color: var(--ucz-link-hover); text-decoration-thickness: 2px; }
.ucz-prose ul, .ucz-prose ol { padding-left: 1.5em; }
.ucz-prose li { margin-bottom: .5em; padding-left: .2em; }
.ucz-prose li::marker { color: var(--ucz-link); font-weight: 600; }
.ucz-prose li > ul, .ucz-prose li > ol { margin: .5em 0 0; }
.ucz-prose mark { padding: .05em .25em; color: inherit; background: rgba(255, 90, 31, .22); border-radius: .2em; }
.ucz-prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--ucz-line); opacity: 1; }
.ucz-prose kbd { padding: .1em .45em; font: 600 .85em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ucz-head); background: var(--ucz-card); border: 1px solid var(--ucz-line); border-bottom-width: 2px; border-radius: .35rem; }
.ucz-prose abbr[title] { text-decoration: underline dotted; }

/* images, figures, video */
.ucz-prose img, .ucz-prose video, .ucz-prose iframe { max-width: 100%; height: auto; border-radius: .75rem; }
.ucz-prose img { filter: var(--ucz-img-filter); }
.ucz-prose figure { margin: 2rem 0; }
.ucz-prose figure img { display: block; margin: 0 auto; border: 1px solid var(--ucz-line); }
.ucz-prose figcaption, .ucz-prose .wp-element-caption { margin-top: .6rem; font-size: .88rem; line-height: 1.5; text-align: center; color: var(--ucz-muted); }
.ucz-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* quotes */
.ucz-prose blockquote {
	margin: 2rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gk-primary);
	background: var(--ucz-tint); border-radius: 0 .8rem .8rem 0; color: var(--ucz-head);
}
.ucz-prose blockquote p { margin-bottom: .75em; }
.ucz-prose blockquote > :last-child { margin-bottom: 0; }
.ucz-prose blockquote cite, .ucz-prose .wp-block-quote cite { display: block; margin-top: .5rem; font-size: .9em; font-style: normal; color: var(--ucz-muted); }
.ucz-prose .wp-block-pullquote { padding: 1.5rem 0; border-top: 3px solid var(--gk-cta); border-bottom: 3px solid var(--gk-cta); text-align: center; font-size: 1.3em; }

/* details / FAQ */
.ucz-prose details { margin: 1rem 0; padding: .9rem 1.1rem; border: 1px solid var(--ucz-line); border-radius: .75rem; background: var(--ucz-tint); }
.ucz-prose summary { cursor: pointer; font-weight: 650; color: var(--ucz-head); }
.ucz-prose details[open] summary { margin-bottom: .6rem; }

/* inline code */
.ucz-prose :not(pre) > code {
	padding: .12em .42em; font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	color: var(--ucz-inline-text); background: var(--ucz-inline-bg); border-radius: .35rem; overflow-wrap: anywhere; word-break: normal;
}

/* code blocks */
.ucz-code { position: relative; margin: 1.75rem 0; }
.ucz-prose pre {
	margin: 1.75rem 0; padding: 1.1rem 1.25rem; overflow-x: auto; tab-size: 2; -webkit-overflow-scrolling: touch;
	font: .9rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: 0;
	color: var(--ucz-code-text); background: var(--ucz-code-bg); border: 1px solid var(--ucz-code-line); border-radius: .85rem;
	text-wrap: nowrap; scrollbar-width: thin;
}
.ucz-code pre { margin: 0; padding-right: 4.5rem; }
.ucz-prose pre code { padding: 0; font: inherit; color: inherit; background: none; border-radius: 0; overflow-wrap: normal; }
.ucz-copy {
	position: absolute; top: .55rem; right: .55rem; padding: .22rem .7rem; font: 600 .75rem/1.5 var(--gk-body-font-family, sans-serif);
	color: #cbd5e1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: .45rem; cursor: pointer;
	opacity: 0; transition: opacity .15s, background-color .15s;
}
.ucz-code:hover .ucz-copy, .ucz-copy:focus-visible { opacity: 1; }
.ucz-copy:hover { background: rgba(255, 255, 255, .16); color: #fff; }
@media (hover: none) { .ucz-copy { opacity: 1; } }

/* tables: wrap text, never let content spill past the cell backgrounds, keep the first column visible while scrolling */
.ucz-table-wrap {
	position: relative; margin: 1.9rem 0; overflow-x: auto; border: 1px solid var(--ucz-line); border-radius: .85rem; -webkit-overflow-scrolling: touch;
	background:
		linear-gradient(to right, var(--ucz-card) 30%, transparent) left / 2rem 100% no-repeat local,
		linear-gradient(to left, var(--ucz-card) 30%, transparent) right / 2rem 100% no-repeat local,
		linear-gradient(to right, rgba(15, 23, 42, .14), transparent) left / .9rem 100% no-repeat scroll,
		linear-gradient(to left, rgba(15, 23, 42, .14), transparent) right / .9rem 100% no-repeat scroll;
}
.ucz-table-wrap:focus-visible { outline: 2px solid var(--gk-primary); outline-offset: 2px; }
/* !important beats WordPress' "has-fixed-layout" (equal-width columns) and any width set in the post itself */
.ucz-prose table {
	table-layout: auto !important; width: 100% !important; max-width: none !important; margin: 0 !important;
	min-width: calc(var(--cols, 3) * 7rem); border-collapse: separate; border-spacing: 0;
	font-size: .95em; line-height: 1.55; font-variant-numeric: tabular-nums;
}
.ucz-prose .wp-block-table { margin: 0; overflow: visible; }
.ucz-prose .wp-block-table figcaption { padding: .6rem 0 0; }
.ucz-prose th, .ucz-prose td {
	padding: .8rem 1rem; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--ucz-line);
	overflow-wrap: normal !important; word-break: normal !important; hyphens: manual; /* whole words only: the table scrolls before it splits one (the site CSS sets break-word on cells) */
}
.ucz-prose td code, .ucz-prose th code, .ucz-prose td a { overflow-wrap: anywhere !important; } /* long URLs and code may still wrap */
.ucz-prose th { font-size: .82em; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ucz-head); background-color: var(--ucz-th-bg); border-bottom: 2px solid var(--ucz-line); }
.ucz-prose td { background-color: var(--ucz-card); }
.ucz-prose tbody tr:nth-child(even) td { background-color: var(--ucz-card); background-image: linear-gradient(var(--ucz-zebra), var(--ucz-zebra)); }
.ucz-prose tbody tr:hover td { background-image: linear-gradient(var(--ucz-tint), var(--ucz-tint)); }
.ucz-prose tbody tr:last-child td { border-bottom: 0; }
.ucz-prose td:first-child { font-weight: 600; color: var(--ucz-head); }
/* first column stays put while a wide table scrolls sideways, so rows never lose their label */
.ucz-prose th:first-child, .ucz-prose td:first-child { position: sticky; left: 0; z-index: 1; border-right: 1px solid var(--ucz-line); }
.ucz-prose caption { padding: .75rem 1rem; caption-side: top; text-align: left; font-weight: 650; color: var(--ucz-head); }
@media (max-width: 575.98px) {
	.ucz-prose th, .ucz-prose td { padding: .65rem .75rem; }
}

/* "Run it on Ucartz" box from the ucartz-product-links mu-plugin */
.ucartz-pl { margin: 2.5rem 0 0 !important; padding: 1.4rem 1.5rem !important; background: var(--ucz-tint) !important; border: 1px solid var(--ucz-line) !important; border-left: 4px solid var(--gk-cta) !important; border-radius: .85rem !important; }
.ucartz-pl-title { margin: 0 0 .35rem !important; font-weight: 750 !important; color: var(--ucz-head) !important; }
.ucartz-pl-text { margin: 0 0 1rem !important; color: var(--ucz-text) !important; font-size: .97em !important; }
.ucartz-pl-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 !important; }
.ucartz-pl-btn { display: inline-block; padding: .55rem 1.1rem !important; font-weight: 600 !important; color: #fff !important; text-decoration: none !important; background: var(--ucz-btn) !important; border: 1px solid var(--ucz-btn) !important; border-radius: .55rem !important; }
.ucartz-pl-btn.ucartz-pl-alt { color: var(--ucz-link) !important; background: transparent !important; }
/* the outline button has a transparent !important background, so its hover must set one too, or the white text vanishes; 9:1 white on this purple */
.ucartz-pl-btn:hover, .ucartz-pl-btn.ucartz-pl-alt:hover { color: #fff !important; background: #4a1fc4 !important; border-color: #4a1fc4 !important; }

/* article footer */
.ucz-article-foot { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--ucz-line); }
.ucz-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ucz-foot-label { min-width: 3.25rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ucz-muted); }
.ucz-author-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border: 1px solid var(--ucz-line); border-radius: .9rem; background: var(--ucz-tint); }
.ucz-author-name { margin: 0 0 .15rem; font-weight: 700; color: var(--ucz-head); }
.ucz-author-bio { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ucz-muted); }

.ucz-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 780px; margin: 1.5rem auto 0; }
.ucz-postnav-link { display: block; padding: 1rem 1.2rem; font-weight: 650; line-height: 1.4; color: var(--ucz-head); text-decoration: none; background: var(--ucz-card); border: 1px solid var(--ucz-line); border-radius: .9rem; transition: border-color .15s, box-shadow .15s; }
.ucz-postnav-link span { display: block; margin-bottom: .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ucz-muted); }
.ucz-postnav-link.next { grid-column: 2; text-align: right; }
.ucz-postnav-link:hover { border-color: var(--gk-primary); box-shadow: var(--ucz-shadow); }
.ucz-page-links { display: flex; gap: .5rem; margin-top: 1.5rem; }

/* breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .25rem 0; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.breadcrumb-item a { color: var(--ucz-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--ucz-link); }
.breadcrumb-item:last-child a { color: var(--ucz-link); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding: 0 .6rem; color: var(--ucz-muted); opacity: .6; }

/* pagination (the site stylesheet has no pagination component) */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.pagination .page-link, .ucz-pager-compact .page-link {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .85rem;
	font-size: .95rem; font-weight: 600; line-height: 1; color: var(--ucz-text); text-decoration: none;
	background: var(--ucz-card); border: 1px solid var(--ucz-line); border-radius: .75rem; transition: border-color .15s, color .15s, background-color .15s;
}
.pagination a.page-link:hover, .ucz-pager-compact a.page-link:hover { color: var(--ucz-link); border-color: var(--ucz-btn); }
.pagination .page-item.active .page-link, .pagination .page-link.current { color: #fff; background: var(--ucz-btn); border-color: var(--ucz-btn); }
.pagination .page-link.dots { min-width: 1.5rem; padding: 0; background: transparent; border-color: transparent; color: var(--ucz-muted); }
.pagination .fe, .ucz-pager-compact .fe { font-size: 1.1rem; }
.ucz-pager-compact .page-link { gap: .25rem; min-width: 5rem; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* skip link: hidden until keyboard focus */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
	margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ----------------------------------------------------------- small screens */
@media (max-width: 767.98px) {
	.ucz-article { margin-inline: calc(var(--gk-gutter-x, 1.5rem) * -.5); padding: 1.25rem 1.15rem 1.75rem; border-radius: 0; border-inline-width: 0; box-shadow: none; }
	.ucz-prose { line-height: 1.72; }
	.ucz-cat-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-right: -12px; padding-bottom: .35rem; scrollbar-width: none; }
	.ucz-cat-chip { flex: none; }
	.ucz-prose h2 { font-size: 1.45em; }
	.ucz-prose h3 { font-size: 1.2em; }
	.ucz-postnav { grid-template-columns: 1fr; }
	.ucz-postnav-link.next { grid-column: 1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.ucz-post-card, .ucz-post-card:hover { transition: none; transform: none; }
	.ucz-progress { animation: none; }
}

/* Content buttons: the site's dark-mode primary (#9d88ff) gives white text only 2.8:1, so keep the deeper purple here. */
main .btn-primary { --gk-btn-bg: var(--ucz-btn); --gk-btn-border-color: var(--ucz-btn); --gk-btn-hover-bg: var(--ucz-btn-hover); --gk-btn-hover-border-color: var(--ucz-btn-hover); --gk-btn-active-bg: var(--ucz-btn-hover); --gk-btn-color: #fff; --gk-btn-hover-color: #fff; }

/* Larger tap targets for the social icons (24px minimum) */
.footer-social-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }

/* Spacing and layout helpers the site stylesheet does not define but the templates use (scale: 7 = 3rem, 8 = 3.5rem) */
.ucz-search .form-control { min-height: 3rem; font-size: 1.05rem; }
.ucz-search .btn { min-width: 3.5rem; }
@media (min-width: 992px) {
	.py-lg-9 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
	.py-lg-10 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
	.pb-lg-9 { padding-bottom: 4rem !important; }
}
@media (min-width: 1200px) {
	.py-xl-9 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
	.g-xl-5 { --gk-gutter-x: 2rem; --gk-gutter-y: 2rem; }
}

/* ---------------------------------------------------- sticky header
 * The main navigation bar stays at the top while reading; the small support strip above it scrolls away.
 * --ucz-header-h is measured by sticky-header.js (this is the fallback); --ucz-adminbar-h makes room for the WordPress toolbar when someone is logged in. */
:root { --ucz-header-h: 4.75rem; --ucz-adminbar-h: 0px; }
body.admin-bar { --ucz-adminbar-h: 32px; }
@media (max-width: 782px) { body.admin-bar { --ucz-adminbar-h: 46px; } }
@media (max-width: 600px) { body.admin-bar { --ucz-adminbar-h: 0px; } } /* the toolbar scrolls away on small phones */
.ucz-sticky-nav { position: -webkit-sticky; position: sticky; top: var(--ucz-adminbar-h); z-index: 1030; transition: box-shadow .2s ease; }
.ucz-sticky-nav.is-stuck { box-shadow: 0 2px 14px rgba(15, 23, 42, .12); }
[data-bs-theme="dark"] .ucz-sticky-nav.is-stuck { box-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
html { scroll-padding-top: calc(var(--ucz-header-h) + var(--ucz-adminbar-h) + .75rem); } /* jump links, keyboard focus and the contents box never land under the bar */
/* a tall menu scrolls inside the bar instead of running off the screen */
.ucz-sticky-nav .dropdown-menu.show { max-height: calc(100vh - var(--ucz-header-h) - var(--ucz-adminbar-h) - .5rem); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 1199.98px) {
	.ucz-sticky-nav .navbar-collapse { max-height: calc(100vh - var(--ucz-header-h) - var(--ucz-adminbar-h) - 1rem); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
@supports (height: 100dvh) {
	.ucz-sticky-nav .dropdown-menu.show { max-height: calc(100dvh - var(--ucz-header-h) - var(--ucz-adminbar-h) - .5rem); }
	@media (max-width: 1199.98px) { .ucz-sticky-nav .navbar-collapse { max-height: calc(100dvh - var(--ucz-header-h) - var(--ucz-adminbar-h) - 1rem); } }
}
/* menu labels never break: at 1200px wide (a 1440px screen at 120% zoom) the arrow dropped onto a second line under each label */
@media (min-width: 1200px) {
	.ucz-sticky-nav .navbar-nav > .nav-item > .nav-link { white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
	.ucz-sticky-nav .navbar-nav > .nav-item > .nav-link { padding-inline: .4rem; }
}
/* not enough height to spare (phone on its side), or paper: the bar scrolls with the page */
@media (max-height: 520px), print {
	.ucz-sticky-nav { position: relative; box-shadow: none; }
	html { scroll-padding-top: .75rem; }
	.ucz-aside-inner { position: static; max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .ucz-sticky-nav { transition: none; } }

/* ---------------------------------------------------- article sidebar (articles only, desktop only) */
.ucz-aside { display: none; }
@media (min-width: 1200px) {
	/* The reading area spans the full page width (same edges as the header title and the related-articles row).
	 * The sidebar takes about 27% of it; the article card takes the rest. */
	.ucz-read-frame { max-width: none; margin-inline: 0; }
	.ucz-single-head { max-width: none; margin-inline: 0; }
	.ucz-read-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(290px, 27%, 380px); gap: 2.25rem; max-width: none; margin-inline: 0; align-items: start; }
	.ucz-read-grid .ucz-article { margin: 0 !important; max-width: none; /* the text column stays at a readable 46rem; extra card width becomes even side margins */ padding-inline: max(3.25rem, calc((100% - 46rem) / 2)); }
	.ucz-aside { display: block; align-self: stretch; }
	.ucz-postnav { max-width: none; margin: 1.5rem 0 0; }
}
.ucz-aside-inner {
	position: -webkit-sticky; position: sticky; top: calc(var(--ucz-header-h) + var(--ucz-adminbar-h) + 1rem);
	display: flex; flex-direction: column; gap: 1.25rem;
	/* a tall stack of widgets scrolls inside the sidebar instead of being cut off below the screen */
	max-height: calc(100vh - var(--ucz-header-h) - var(--ucz-adminbar-h) - 2rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
@supports (height: 100dvh) { .ucz-aside-inner { max-height: calc(100dvh - var(--ucz-header-h) - var(--ucz-adminbar-h) - 2rem); } }
.ucz-widget { padding: 1.2rem 1.3rem; background: var(--ucz-card); border: 1px solid var(--ucz-line); border-radius: 1rem; box-shadow: var(--ucz-shadow); }
.ucz-widget-title { margin: 0 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ucz-muted); }
.ucz-recent, .ucz-catlist { margin: 0; padding: 0; list-style: none; }
.ucz-recent li { padding: .75rem 0; border-top: 1px solid var(--ucz-line); }
.ucz-recent li:first-child { padding-top: 0; border-top: 0; }
.ucz-recent li:last-child { padding-bottom: 0; }
.ucz-recent a {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--ucz-head); text-decoration: none;
}
.ucz-recent a:hover { color: var(--ucz-link); }
.ucz-recent time { display: block; margin-top: .3rem; font-size: .8rem; color: var(--ucz-muted); }
.ucz-catlist { display: flex; flex-direction: column; gap: .1rem; }
.ucz-catlist a {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 -.6rem; padding: .5rem .6rem;
	font-size: .93rem; line-height: 1.35; color: var(--ucz-text); text-decoration: none; border-radius: .6rem; transition: background-color .15s, color .15s;
}
.ucz-catlist a:hover, .ucz-catlist a.is-current { color: var(--ucz-link); background: var(--ucz-tint); }
.ucz-catlist a.is-current { font-weight: 650; }
.ucz-count { flex: none; padding: .05rem .55rem; font-size: .76rem; font-weight: 600; color: var(--ucz-muted); background: var(--ucz-tint); border-radius: 999px; }

/* CVE numbers never split across lines; titles wrap evenly */
.ucz-nowrap { white-space: nowrap; }
.ucz-post-card-title, .ucz-single-title, .ucz-recent a { text-wrap: balance; }

/* Compact phone pager: Prev | Page X of Y | Next on one line */
.ucz-pager-compact { display: none; }
.ucz-pager-compact .page-link.is-disabled { opacity: .45; pointer-events: none; }
.ucz-pager-count { flex: 1; text-align: center; font-size: .92rem; font-weight: 600; color: var(--ucz-muted); }
@media (max-width: 575.98px) {
	.ucz-pager-full { display: none; }
	.ucz-pager-compact { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
	.ucz-prose { text-wrap: wrap; } /* "pretty" balancing looks ragged in a narrow column */
}

/* ------------------------------------------------------------ article header: compact, full-width title */
.ucz-single-hero { padding: 1.75rem 0 1.5rem; }
.ucz-single-body { padding: 2rem 0 3rem; }          /* room between the header and the article card */
.ucz-single-meta { align-items: center; row-gap: .5rem; }
.ucz-single-meta .ucz-cat-pill { align-self: center; }
@media (min-width: 1200px) {
	.ucz-single-head { max-width: none; }               /* title spans the full 1092px frame, above the article and sidebar */
	.ucz-single-hero { padding: 2rem 0 1.6rem; }
	.ucz-single-body { padding: 2.25rem 0 4rem; }
}
@media (max-width: 575.98px) {
	.ucz-single-hero { padding: 1.25rem 0 1.1rem; }
	.ucz-single-body { padding: 1.5rem 0 2.5rem; }
}

.ucz-single-title { text-wrap: pretty; }   /* fill the whole line, only avoid a lonely last word (balance made it look narrow) */

/* Colour classes the WordPress editor puts into older posts. Black text would vanish on the dark surface, and the
 * bright editor colours need to be lighter there to stay readable. */
[data-bs-theme="dark"] .ucz-prose .has-black-color { color: inherit !important; }
[data-bs-theme="dark"] .ucz-prose .has-vivid-red-color { color: #ff8a8a !important; }
[data-bs-theme="dark"] .ucz-prose .has-vivid-purple-color { color: #c9a0ff !important; }
[data-bs-theme="dark"] .ucz-prose .has-vivid-cyan-blue-color { color: #62c4ff !important; }
.ucz-prose .has-palette-color-1-color, .ucz-prose .has-palette-color-2-color { color: inherit; } /* old theme's navy; use normal text colour */
/* Wide and full-width blocks stay inside the article card instead of stretching past it */
.ucz-prose .alignwide, .ucz-prose .alignfull { width: auto; max-width: 100%; margin-left: 0; margin-right: 0; }
.ucz-prose .wp-block-cover, .ucz-prose .wp-block-media-text { border-radius: .75rem; overflow: hidden; }
.ucz-prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.5rem 0; }
.ucz-prose .wp-block-column { flex: 1 1 14rem; min-width: 0; }
.ucz-prose .wp-block-separator { border: 0; border-top: 1px solid var(--ucz-line); margin: 2.25rem auto; opacity: 1; }
.ucz-prose .wp-block-group { margin: 1.5rem 0; }
.ucz-prose .has-text-align-center { text-align: center; }
.ucz-prose .has-text-align-right { text-align: right; }
.ucz-prose .has-large-font-size { font-size: 1.35em; }
.ucz-prose .has-medium-font-size { font-size: 1.15em; }

/* Contrast: text inside code blocks keeps the code colour (bold text was turning near-black on the dark block) */
.ucz-prose pre strong, .ucz-prose pre b, .ucz-prose pre em { color: inherit; }
/* WordPress "link colour" blocks hard-code a colour that fails on the dark surface */
[data-bs-theme="dark"] .ucz-prose [class*="wp-elements-"] a { color: var(--ucz-link) !important; }
/* Editor colours: bright on white fail contrast, so darken them in light mode */
:root:not([data-bs-theme="dark"]) .ucz-prose .has-vivid-green-cyan-color { color: #00734f !important; }
:root:not([data-bs-theme="dark"]) .ucz-prose .has-luminous-vivid-orange-color { color: #b34700 !important; }
:root:not([data-bs-theme="dark"]) .ucz-prose .has-vivid-cyan-blue-color { color: #0568a6 !important; }
:root:not([data-bs-theme="dark"]) .ucz-prose .has-vivid-purple-color { color: #7430b8 !important; }
.ucz-pager-compact .page-link.is-disabled { opacity: 1; color: var(--ucz-muted); background: transparent; }

/* Highlighted text that carries its own (light) background colour must use dark text in both colour modes */
.ucz-prose mark[style*="background"]:not([style*="rgba(0, 0, 0, 0)"]):not([style*="transparent"]) { color: #1a1a1a !important; }

/* ---------------------------------------------------- finished promotions */
.ucz-offer-ended {
	display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 1.75rem; padding: 1rem 1.25rem;
	color: var(--ucz-text); background: rgba(255, 90, 31, .09); border: 1px solid rgba(255, 90, 31, .35); border-left: 4px solid var(--gk-cta); border-radius: .85rem;
}
.ucz-offer-ended > i { flex: none; font-size: 1.35rem; color: var(--gk-cta); }
.ucz-offer-ended > div { flex: 1 1 18rem; min-width: 0; line-height: 1.5; }
.ucz-offer-ended strong { display: block; color: var(--ucz-head); font-size: 1.05rem; }
.ucz-offer-ended span { color: var(--ucz-text); font-size: .95rem; }
.ucz-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ucz-offer-pill { display: inline-block; padding: .2rem .65rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8a3300; background: rgba(255, 90, 31, .14); border-radius: 999px; }
[data-bs-theme="dark"] .ucz-offer-pill { color: #ffb08a; background: rgba(255, 90, 31, .2); }

/* ------------------------------------------------------------ floating WhatsApp button (bottom right) */
:root { --ucz-float-right: 1rem; --ucz-float-base: 1rem; --ucz-wa-size: 3.25rem; }
@media (min-width: 768px) { :root { --ucz-float-right: 1.5rem; --ucz-float-base: 1.5rem; --ucz-wa-size: 3.5rem; } }
body.ucz-has-livechat { --ucz-float-base: 6rem; } /* a tawk.to bubble (bottom right, 20px offsets) sits underneath */
.ucz-wa-float { position: fixed; right: var(--ucz-float-right); bottom: var(--ucz-float-base); z-index: 1015; width: var(--ucz-wa-size); height: var(--ucz-wa-size); }
.ucz-wa-float[hidden] { display: none; }
@media print { .ucz-wa-float { display: none; } }
.ucz-wa-float-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #25d366; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s ease, box-shadow .2s ease; }
.ucz-wa-float-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.ucz-wa-float-btn:focus-visible { outline: 2px solid #6336f4; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ucz-wa-float-btn, .ucz-wa-float-btn:hover { transition: none; transform: none; } }
.ucz-wa-float-icon { width: 55%; height: 55%; fill: #fff; }
.ucz-wa-float-label { position: absolute; right: calc(100% + .75rem); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: .375rem .75rem; border-radius: 999px; font-size: .875rem; font-weight: 600; color: #1e293b; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(0,0,0,.12); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease; }
.ucz-wa-float-btn:hover .ucz-wa-float-label, .ucz-wa-float-btn:focus-visible .ucz-wa-float-label { opacity: 1; visibility: visible; }
@media (max-width: 767.98px) { .ucz-wa-float-label { display: none; } }
.ucz-wa-float-close { position: absolute; top: -.35rem; left: -.35rem; width: 1.375rem; height: 1.375rem; padding: 0; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #1e293b; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: pointer; }
.ucz-wa-float-close::before { content: ""; position: absolute; inset: -.5rem; }
.ucz-wa-float-close svg { width: .625rem; height: .625rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.ucz-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[data-bs-theme="dark"] .ucz-wa-float-label, [data-bs-theme="dark"] .ucz-wa-float-close { background: #1e293b; color: #e2e8f0; border-color: #334155; }

/* Back-to-top shares the corner: centred above the WhatsApp button; it takes its place when WhatsApp is closed. */
.btn-scroll-top { right: calc(var(--ucz-float-right) + (var(--ucz-wa-size) - 3rem) / 2); bottom: var(--ucz-float-base); }
body:has(.ucz-wa-float:not([hidden])) .btn-scroll-top { bottom: calc(var(--ucz-float-base) + var(--ucz-wa-size) + .75rem); }

/* On phones the stacked WhatsApp + back-to-top buttons are tall; leave room under the last footer row so they never cover a link. */
@media (max-width: 767.98px) {
	.footer { padding-bottom: calc(var(--ucz-float-base) + var(--ucz-wa-size) + .75rem + 3rem + 1rem) !important; }
}
