/*
Theme Name: Cracckk
Theme URI: https://cracckk.com/
Author: Cracckk
Author URI: https://cracckk.com/
Description: A dark, elegant (black · navy · gold), reading-first blog theme for AI news, tools and prompts. Built for AdSense, SEO, AEO and GEO: one H1 per page, automatic table of contents, heading anchors, in-article ad slots, author box, dark mode and gentle scroll animations. Works with Rank Math and Elementor.
Version: 2.4.7
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cracckk
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ==========================================================================
   1. Tokens — dark (black · navy · gold) by default, light "reading mode" optional
   ========================================================================== */
:root {
	--bg: #05070d;
	--bg-2: #0a1020;
	--surface: #0d1323;
	--surface-2: #131a2e;
	--ink: #f5f2ea;
	--ink-2: #b3b9c9;
	--ink-3: #7c8399;
	--line: rgba(255, 255, 255, .09);
	--line-strong: rgba(255, 255, 255, .16);
	--accent: #d9b25f;
	--accent-ink: #ebc878;
	--accent-soft: rgba(217, 178, 95, .14);
	--accent-2: #4c6fff;
	--blue-deep: #0f1f5c;
	--blue-glow: #2341c4;
	--gold-grad: linear-gradient(135deg, #f8e19a 0%, #d9b25f 45%, #a8772a 100%);
	--on-gold: #15110a;
	--glass: rgba(255, 255, 255, .04);
	--blob-1: #1d3bb8;
	--blob-2: #6b4b12;
	--blob-3: #0f2a6b;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .7);
	--shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .85);
	--shadow-gold: 0 10px 40px -12px rgba(217, 178, 95, .45);

	--font-serif: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--radius: 14px;
	--radius-lg: 22px;
	--container: 1240px;
	--narrow: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #faf8f3;
	--bg-2: #f1ede4;
	--surface: #ffffff;
	--surface-2: #f3efe6;
	--ink: #12131a;
	--ink-2: #4d5262;
	--ink-3: #7a7f8e;
	--line: #e6e0d3;
	--line-strong: #d6cebd;
	--accent: #b08227;
	--accent-ink: #8a6418;
	--accent-soft: #f6ecd3;
	--accent-2: #2747d6;
	--glass: rgba(255, 255, 255, .7);
	--blob-1: #b9c8ff;
	--blob-2: #f3d58f;
	--blob-3: #d6e0ff;
	--shadow: 0 1px 2px rgba(18, 19, 26, .05), 0 8px 24px -12px rgba(18, 19, 26, .18);
	--shadow-lg: 0 2px 4px rgba(18, 19, 26, .05), 0 24px 48px -20px rgba(18, 19, 26, .28);
	color-scheme: light;
}

/* Sections that always stay dark (hero, bands, footer) even in light mode */
.is-dark {
	--bg: #05070d;
	--surface: #0d1323;
	--surface-2: #131a2e;
	--ink: #f5f2ea;
	--ink-2: #b3b9c9;
	--ink-3: #7c8399;
	--line: rgba(255, 255, 255, .09);
	--line-strong: rgba(255, 255, 255, .16);
	--accent-ink: #ebc878;
	--accent-soft: rgba(217, 178, 95, .14);
	--glass: rgba(255, 255, 255, .04);
	color: var(--ink);
}
/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--accent-soft); color: var(--ink); }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--bg);
	border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.center { text-align: center; margin-top: 40px; }

.dot {
	display: inline-block;
	width: 3px; height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: .5;
	vertical-align: middle;
	margin-inline: 8px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin-bottom: 14px;
}

/* ==========================================================================
   8. Article
   ========================================================================== */
.article__header { padding: clamp(36px, 5vw, 64px) 0 0; }
.breadcrumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs .sep, .breadcrumbs .separator { margin-inline: 6px; opacity: .6; }
.article__title {
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.1;
	letter-spacing: -.025em;
	margin: 0 0 18px;
	animation: rise-in .8s var(--ease) both;
}
.article__dek { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin-bottom: 20px; }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 14px;
	color: var(--ink-3);
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}
.post-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.post-meta__avatar { border-radius: 50%; }

.article__hero { margin: 32px auto 0; }
.article__hero img {
	width: 100%;
	border-radius: var(--radius-lg);
	aspect-ratio: 16 / 9;
	object-fit: cover;
	box-shadow: var(--shadow-lg);
}

.article__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, var(--narrow));
	justify-content: center;
	gap: 56px;
	padding-top: 40px;
	padding-bottom: 32px;
}
.article__aside { position: relative; }
.article__aside > * { position: sticky; top: calc(var(--header-h) + 24px); }
.article__aside .ad-slot--sidebar { margin-top: 24px; top: auto; position: relative; }
@media (max-width: 1080px) {
	.article__layout { grid-template-columns: minmax(0, var(--narrow)); }
	.article__aside { display: none; }
}

/* TOC */
.toc__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); max-height: calc(100vh - 200px); overflow-y: auto; }
.toc__list li { margin: 0; }
.toc__list a {
	display: block;
	padding: 6px 0 6px 14px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink-3);
	transition: color .2s, border-color .2s;
}
.toc__list .toc-h3 a { padding-left: 28px; font-size: 13px; }
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
.toc--mobile {
	display: none;
	margin-bottom: 28px;
	padding: 14px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.toc--mobile summary { cursor: pointer; font-weight: 600; }
.toc--mobile .toc__list { margin-top: 12px; max-height: none; }
@media (max-width: 1080px) { .toc--mobile:not([hidden]) { display: block; } }

/* ==========================================================================
   9. Entry content typography (also styles Elementor text widgets)
   ========================================================================== */
.entry-content { font-size: 18.5px; line-height: 1.78; color: var(--ink); }
.entry-content > * + *,
.entry-content .elementor-widget-text-editor > * + * { margin-top: 0; }
.entry-content h2 {
	font-size: clamp(26px, 3vw, 32px);
	margin: 2em 0 .6em;
	padding-top: .2em;
}
.entry-content h3 { font-size: clamp(21px, 2.4vw, 24px); margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 19px; margin: 1.4em 0 .4em; font-family: var(--font-sans); font-weight: 700; }
.entry-content h2, .entry-content h3 { position: relative; }
.entry-content .elementor-heading-title { font-family: var(--font-serif); color: var(--ink); }
.entry-content p, .entry-content li { color: var(--ink); }
.entry-content a:not(.btn):not(.wp-block-button__link) {
	color: var(--accent-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
	transition: text-decoration-color .2s, text-decoration-thickness .2s;
}
.entry-content a:not(.btn):hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent); }
.entry-content strong { font-weight: 650; }
.entry-content img { border-radius: var(--radius); margin-inline: auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

.entry-content blockquote {
	margin: 2em 0;
	padding: 6px 0 6px 24px;
	border-left: 3px solid var(--accent);
	font-family: var(--font-serif);
	font-size: 22px;
	line-height: 1.5;
	color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* "Quick answer" / key takeaways — add class "quick-answer" to any group/paragraph */
.entry-content .quick-answer,
.entry-content .key-takeaways {
	position: relative;
	margin: 0 0 2em;
	padding: 22px 24px;
	background: var(--accent-soft);
	border-radius: var(--radius);
	font-size: 17.5px;
}
.entry-content .quick-answer::before,
.entry-content .key-takeaways::before {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-ink);
}
.entry-content .quick-answer::before { content: "Quick answer"; }
.entry-content .key-takeaways::before { content: "Key takeaways"; }
.entry-content .quick-answer > :last-child,
.entry-content .key-takeaways > :last-child { margin-bottom: 0; }

/* Code / prompts */
.entry-content code {
	font-family: var(--font-mono);
	font-size: .88em;
	padding: .15em .4em;
	border-radius: 6px;
	background: var(--surface-2);
}
.entry-content pre {
	position: relative;
	margin: 1.6em 0;
	padding: 20px 22px;
	padding-top: 44px;
	background: #1a1814;
	color: #f2ede4;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: 15px;
	line-height: 1.65;
	white-space: pre-wrap;
	word-break: break-word;
}
.entry-content pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.copy-btn {
	position: absolute;
	top: 10px; right: 10px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	color: #f2ede4;
	font: 600 12px var(--font-sans);
	cursor: pointer;
	transition: background-color .2s, transform .2s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, .14); }
.copy-btn.is-copied { background: #22a06b; border-color: #22a06b; transform: scale(1.05); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content th { background: var(--surface-2); font-weight: 650; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content tbody tr { transition: background-color .2s; }
.entry-content tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }

/* FAQ (Rank Math FAQ block + <details>) */
.entry-content details,
.entry-content .rank-math-faq-item {
	margin: 0 0 12px;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .2s, box-shadow .2s;
}
.entry-content details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.entry-content summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after {
	content: "+";
	position: absolute;
	right: 0; top: -2px;
	font-size: 22px;
	color: var(--accent-ink);
	transition: transform .3s var(--ease);
}
.entry-content details[open] summary::after { transform: rotate(45deg); }
.entry-content .rank-math-question { font-size: 19px; margin: 0 0 8px; }
.entry-content .rank-math-answer > :last-child { margin-bottom: 0; }

/* Elementor inside the reading column */
.entry-content .elementor-section-boxed > .elementor-container,
.entry-content .e-con-boxed > .e-con-inner { max-width: 100% !important; }
.entry-content .e-con, .entry-content .elementor-section { --padding-left: 0; --padding-right: 0; padding-inline: 0 !important; }
.entry-content .elementor-widget-text-editor { font-size: inherit; line-height: inherit; color: inherit; }
.entry-content .elementor-widget:not(:last-child) { margin-block-end: 0; }
.builder-content { width: 100%; }

/* WP block alignments */
.entry-content .alignwide { margin-inline: -60px; max-width: calc(100% + 120px); }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 900px) { .entry-content .alignwide { margin-inline: 0; max-width: 100%; } }

/* ==========================================================================
   10. After-article blocks
   ========================================================================== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 36px 0 0; padding: 0; }
.tags a {
	display: block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--surface-2);
	font-size: 13.5px;
	color: var(--ink-2);
	transition: background-color .2s, color .2s;
}
.tags a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 32px 0;
	padding: 18px 0;
	border-block: 1px solid var(--line);
}
.share__label { font-weight: 600; font-size: 14px; margin-right: 6px; }
.share__btn {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink-2);
	font: 500 13.5px var(--font-sans);
	cursor: pointer;
	transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.share__btn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }

.author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 26px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.author-box__avatar { border-radius: 50%; flex-shrink: 0; }
.author-box__eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.author-box__name { font-size: 22px; margin: 0 0 8px; }
.author-box__bio { color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.author-box__link { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
@media (max-width: 520px) { .author-box { flex-direction: column; } }

.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .2s, transform .3s var(--ease);
}
.post-navigation a:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.post-nav__title { font-family: var(--font-serif); font-weight: 600; font-size: 17px; line-height: 1.35; }
@media (max-width: 620px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

.related { padding: clamp(48px, 6vw, 80px) 0; background: var(--surface-2); margin-top: 40px; }
.related .section-title { margin-bottom: 28px; }

/* Newsletter */
.newsletter {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin: clamp(48px, 7vw, 88px) 0;
	padding: clamp(36px, 5vw, 64px);
	border-radius: 28px;
	background: var(--ink);
	color: var(--bg);
	text-align: center;
}
.newsletter__glow {
	position: absolute;
	inset: -40%;
	z-index: -1;
	background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent), transparent 40%, color-mix(in srgb, var(--accent-2) 45%, transparent), transparent 75%);
	animation: spin 18s linear infinite;
	filter: blur(50px);
	opacity: .55;
}
.newsletter__title { font-size: clamp(26px, 3.4vw, 38px); color: inherit; margin-bottom: 10px; }
.newsletter__text { opacity: .75; margin-bottom: 24px; }
.newsletter .search-form { margin-inline: auto; background: var(--bg); border-color: transparent; }
.newsletter .search-form button { background: var(--accent); color: #1b1915; }

/* Comments */
.comments { margin-top: 48px; }
.comments__title { font-size: 26px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--ink-3); }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form p { margin-bottom: 16px; }
.comment-form .submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 15px var(--font-sans); cursor: pointer; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 500;
	font-size: 15px;
	transition: border-color .2s, background-color .2s, color .2s;
}
a.page-numbers:hover { border-color: var(--accent); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.page-numbers.dots { border: 0; }

.empty { text-align: center; padding: 48px 0; color: var(--ink-2); }

/* Ads — reserve space so ads don't shift the layout (CLS) */
.ad-slot { margin: 2em auto; text-align: center; min-height: 100px; }
.ad-slot::before {
	content: "Advertisement";
	display: block;
	margin-bottom: 6px;
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.ad-slot--article { min-height: 280px; }
.ad-slot--sidebar { min-height: 600px; }
.ad-slot--feed { min-height: 120px; }
.ad-slot .widget { margin: 0; }

.shop-content { padding-block: 48px; }

/* ==========================================================================
   3. Buttons, chips, forms
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: 600 15px/1 var(--font-sans);
	cursor: pointer;
	white-space: nowrap;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn--gold,
.search-form button,
.wp-block-button__link,
.comment-form .submit {
	background: var(--gold-grad);
	color: var(--on-gold);
	box-shadow: var(--shadow-gold);
}
.btn--gold:hover,
.search-form button:hover { box-shadow: 0 14px 44px -10px rgba(217, 178, 95, .65); color: var(--on-gold); }

.btn--ghost {
	background: var(--glass);
	border-color: var(--line-strong);
	color: var(--ink);
	backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.search-form button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	font: 600 15px/1 var(--font-sans);
	cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.search-form button:hover { transform: translateY(-1px); }

.chip {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
	color: var(--accent-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	margin-bottom: 12px;
	transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--accent); color: var(--on-gold); }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--glass);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	backdrop-filter: blur(8px);
}
.pill__tag {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--gold-grad);
	color: var(--on-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 15px;
	color: var(--accent-ink);
	white-space: nowrap;
}
.link-arrow span, .link-arrow svg { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span, .link-arrow:hover svg { transform: translateX(4px); }

.gold-text {
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 16px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	box-shadow: var(--shadow);
	max-width: 560px;
	transition: border-color .2s, box-shadow .2s;
}
.search-form > svg { flex-shrink: 0; color: var(--ink-3); }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-form input {
	flex: 1;
	min-width: 0;
	padding: 10px 6px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 16px var(--font-sans);
	outline: none;
}
.search-form input::placeholder { color: var(--ink-3); }

input[type="text"], input[type="email"], input[type="url"], textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font: 16px var(--font-sans);
}

.icon-badge {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	flex-shrink: 0;
	border-radius: 12px;
	background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
	color: var(--accent-ink);
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	transform-origin: 0 50%;
	transform: scaleX(0);
	background: var(--gold-grad);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--bg) 72%, transparent);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, background-color .3s, transform .35s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .custom-logo { width: auto; max-height: 42px; }
.brand__mark {
	display: inline-grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 10px;
	background: var(--gold-grad);
	color: var(--on-gold);
	font: 800 18px/1 var(--font-serif);
	box-shadow: var(--shadow-gold);
}
.brand__name { font-family: var(--font-serif); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--ink); }
.brand .custom-logo-link ~ .brand__mark { display: none; }

.nav { margin-left: 8px; flex: 1; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list li { position: relative; }
.nav__list a {
	position: relative;
	display: block;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink-2);
	border-radius: 999px;
	transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: var(--ink); background: var(--glass); }
.nav__list .current-menu-item > a,
.nav__list .current-menu-parent > a,
.nav__list .current_page_item > a { color: var(--accent-ink); }
.nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 6px); left: 0;
	min-width: 230px;
	padding: 8px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav__list .sub-menu a { border-radius: 8px; }
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color .2s, border-color .2s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--glass); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.92); }
.header-cta { margin-left: 6px; }

[data-theme-toggle] .i-moon { display: none; }
:root[data-theme="light"] [data-theme-toggle] .i-moon { display: block; }
:root[data-theme="light"] [data-theme-toggle] .i-sun { display: none; }

.menu-toggle { display: none; }
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 18px; height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.menu-toggle { display: inline-grid; }
	.header-cta { display: none; }
	.nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		margin: 0;
		padding: 24px var(--gutter);
		background: var(--bg);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s, transform .3s var(--ease), visibility .25s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a {
		padding: 16px 4px;
		font-family: var(--font-serif);
		font-size: 22px;
		font-weight: 700;
		color: var(--ink);
		border-bottom: 1px solid var(--line);
		border-radius: 0;
	}
	.nav__list a:hover { background: none; color: var(--accent-ink); }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
	.nav__list .sub-menu a { font-size: 17px; }
	body.nav-open { overflow: hidden; }
}

/* Search overlay */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: start center;
	padding: 18vh var(--gutter) 0;
	background: color-mix(in srgb, var(--bg) 75%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	animation: fade-in .2s var(--ease);
}
.search-overlay[hidden] { display: none; }
.search-overlay__panel { width: 100%; max-width: 680px; animation: rise-in .35s var(--ease); }
.search-form--big { max-width: none; }
.search-form--big input { font-size: 20px; padding: 14px 8px; }
.search-overlay__hint { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   5. Shared section scaffolding
   ========================================================================== */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section-head--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	max-width: none;
	text-align: left;
	align-items: end;
}
.section-head--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	max-width: none;
	text-align: left;
}
.section-title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.section-sub { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); margin: 14px 0 0; }
.section-head--split .section-sub { margin: 0; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; gap: 14px; } }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }

.glow-line {
	height: 1px;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
	border: 0;
	margin: 0;
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.grid > .ad-slot { grid-column: 1 / -1; }

/* Glass card base */
.glass {
	position: relative;
	background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), var(--surface));
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.glass::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 45%, transparent), transparent 35%, transparent 70%, color-mix(in srgb, var(--accent-2) 40%, transparent));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: .55;
	pointer-events: none;
	transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }

/* ==========================================================================
   6. Cards
   ========================================================================== */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card-fallback {
	display: grid;
	place-items: center;
	width: 100%; height: 100%;
	font: 800 60px var(--font-serif);
	color: var(--accent-ink);
	background:
		radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--accent-2) 45%, transparent), transparent 55%),
		radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 50%),
		var(--surface-2);
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__body .chip { align-self: flex-start; }
.card__title { font-size: 19px; font-weight: 700; line-height: 1.32; letter-spacing: -.01em; margin-bottom: 8px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a { transition: color .2s; }
.card:hover .card__title a { color: var(--accent-ink); }
.card .chip { position: relative; z-index: 2; }
.card__excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.card__meta { margin-top: auto; display: flex; align-items: center; font-size: 13px; color: var(--ink-3); }
.card__more { margin-left: auto; color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* Overlay card — image on top fading into a dark body, chip overlapping the image (blog page) */
.card--overlay { background: #0b1121; border-color: rgba(255, 255, 255, .07); color: #f5f2ea; }
.card--overlay .card__media { aspect-ratio: 4 / 3; }
.card--overlay .card__media img { object-position: center top; }
.card--overlay .card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 17, 33, 0) 55%, #0b1121 100%);
}
.card--overlay .card__body { position: relative; margin-top: -44px; padding: 0 22px 22px; }
.card--overlay .chip { background: rgba(255, 255, 255, .94); color: #15110a; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); }
.card--overlay .chip:hover { background: var(--accent); }
.card--overlay .card__title { font-size: 19px; color: #fff; }
.card--overlay:hover .card__title a { color: #f8e19a; }
.card--overlay .card__excerpt {
	color: rgba(245, 242, 234, .74);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 12px;
}
.card--overlay .card__meta { color: rgba(245, 242, 234, .55); }

/* List item (sidebar Featured / Latest) */
.mini {
	position: relative;
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	align-items: center;
	padding: 10px;
	margin: 0 -10px;
	border-radius: 16px;
	transition: background-color .25s;
}
.mini:hover { background: var(--glass); }
.mini__media { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mini:hover .mini__media img { transform: scale(1.08); }
.mini__media .card-fallback { font-size: 30px; }
.mini__date { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.mini__title { font-family: var(--font-serif); font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0; }
.mini__title a::after { content: ""; position: absolute; inset: 0; }
.mini:hover .mini__title { color: var(--accent-ink); }

/* ==========================================================================
   7. HOME — Hero
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(56px, 8vw, 104px) 0 0;
	text-align: center;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--blue-glow) 75%, transparent), transparent 70%),
		radial-gradient(ellipse 50% 40% at 85% 30%, rgba(217, 178, 95, .16), transparent 70%),
		linear-gradient(180deg, #071036 0%, #05070d 78%);
}
.hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
	animation: grid-pan 30s linear infinite;
}
.hero__stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__stars i {
	position: absolute;
	width: 2px; height: 2px;
	border-radius: 50%;
	background: #f8e19a;
	box-shadow: 0 0 6px #f8e19a;
	opacity: 0;
	animation: twinkle 4s ease-in-out infinite;
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero .pill { margin-bottom: 24px; animation: rise-in .8s var(--ease) both; }
.hero__title {
	font-size: clamp(40px, 7vw, 84px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.04em;
	margin: 0 0 22px;
	max-width: 15ch;
	color: #fff;
}
.hero__title .word { display: inline-block; margin-inline: .1em; animation: word-in .9s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 120ms); }
.hero__title .word.is-gold {
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-right: .04em;
}
.hero__subtitle { max-width: 640px; font-size: clamp(16px, 1.8vw, 19px); color: #b3b9c9; margin-bottom: 30px; animation: rise-in .9s var(--ease) .45s both; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: rise-in .9s var(--ease) .55s both; }
.hero__trust { margin: 18px 0 0; font-size: 13px; color: #7c8399; animation: rise-in .9s var(--ease) .65s both; }

/* Hero showcase (floating UI made of real posts) */
.showcase {
	position: relative;
	width: 100%;
	max-width: 1040px;
	margin: clamp(44px, 6vw, 72px) auto 0;
	padding: 0 8px;
	animation: rise-in 1.1s var(--ease) .7s both;
	perspective: 1600px;
}
.showcase__frame {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 18px;
	padding: 18px;
	border-radius: 26px 26px 0 0;
	background: linear-gradient(180deg, rgba(19, 26, 46, .92), rgba(10, 15, 30, .96));
	border: 1px solid rgba(255, 255, 255, .1);
	border-bottom: 0;
	box-shadow: 0 -20px 80px -20px rgba(35, 65, 196, .55);
	text-align: left;
	transform: rotateX(8deg);
	transform-origin: 50% 100%;
	transition: transform .8s var(--ease);
}
.showcase:hover .showcase__frame { transform: rotateX(0deg); }
.showcase__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 4px 6px; color: #7c8399; font-size: 12.5px; }
.showcase__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.showcase__bar i:first-child { background: #d9b25f; }
.showcase__bar span { margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.showcase__lead { position: relative; display: block; border-radius: 18px; overflow: hidden; min-height: 300px; isolation: isolate; }
.showcase__lead img, .showcase__lead .card-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.showcase__lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(5, 7, 13, .92)); }
.showcase__lead-body { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.showcase__lead-body h3 { font-size: clamp(17px, 2vw, 22px); line-height: 1.3; margin: 8px 0 0; color: #fff; }
.showcase__list { display: flex; flex-direction: column; gap: 10px; }
.showcase__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ebc878; margin: 2px 0 4px; display: flex; align-items: center; gap: 8px; }
.showcase__item {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	align-items: center;
	padding: 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .07);
	color: #f5f2ea;
	transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.showcase__item:hover { background: rgba(217, 178, 95, .08); border-color: rgba(217, 178, 95, .4); transform: translateX(4px); }
.showcase__thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #131a2e; }
.showcase__thumb img, .showcase__thumb .card-fallback { width: 100%; height: 100%; object-fit: cover; font-size: 24px; }
.showcase__item strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.showcase__item small { color: #7c8399; font-size: 12px; }
.float-chip {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(13, 19, 35, .85);
	border: 1px solid rgba(255, 255, 255, .12);
	backdrop-filter: blur(10px);
	box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8);
	color: #f5f2ea;
	font-size: 13px;
	text-align: left;
	animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 15px; }
.float-chip small { color: #7c8399; }
.float-chip--left { left: -24px; top: 34%; }
.float-chip--right { right: -20px; top: 12%; animation-delay: -3s; }
.float-chip--gold { background: var(--gold-grad); color: var(--on-gold); border: 0; }
.float-chip--gold small { color: rgba(21, 17, 10, .7); }
@media (max-width: 860px) {
	.showcase__frame { grid-template-columns: 1fr; transform: none; }
	.showcase__lead { min-height: 220px; }
	.float-chip { display: none; }
}

/* Topics marquee (under hero) */
.marquee {
	position: relative;
	padding: 28px 0;
	border-block: 1px solid var(--line);
	background: var(--bg);
	overflow: hidden;
}
.marquee__label { text-align: center; font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.marquee__track {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__items { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__items { animation-play-state: paused; }
.marquee__items span {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ink-3);
	white-space: nowrap;
	transition: color .2s;
}
.marquee__items span:hover { color: var(--accent-ink); }

/* ==========================================================================
   8. HOME — Feature cards, "What is", reasons, carousel, numbers, CTA, FAQ
   ========================================================================== */
.feature {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
	min-height: 420px;
	text-align: center;
}
.feature__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.feature__text { color: var(--ink-2); max-width: 420px; margin: 0 auto 20px; }
.feature .btn { align-self: center; margin-bottom: 26px; }
.feature__visual {
	position: relative;
	margin-top: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 12px;
	border-radius: 16px 16px 0 0;
	background: var(--bg);
	border: 1px solid var(--line);
	border-bottom: 0;
	margin-bottom: calc(clamp(24px, 3vw, 36px) * -1);
	transform: translateY(10px);
	transition: transform .6s var(--ease);
}
.feature:hover .feature__visual { transform: translateY(0); }
.feature__visual a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.feature__visual img, .feature__visual .card-fallback { width: 100%; height: 100%; object-fit: cover; font-size: 28px; }
.feature__code {
	margin-top: auto;
	padding: 18px 20px;
	border-radius: 16px 16px 0 0;
	background: #070a14;
	border: 1px solid var(--line);
	border-bottom: 0;
	margin-bottom: calc(clamp(24px, 3vw, 36px) * -1);
	text-align: left;
	font: 13.5px/1.75 var(--font-mono);
	color: #b3b9c9;
	white-space: pre-wrap;
	min-height: 170px;
}
.feature__code .k { color: #ebc878; }
.feature__code .s { color: #8fb3ff; }
.feature__code .caret { display: inline-block; width: 8px; height: 1.1em; background: #ebc878; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }

.about-cards { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 18px; margin-top: 8px; }
.about-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.about-card h3 { font-size: 19px; font-weight: 700; margin: 0; }
.about-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.about-card .link-arrow { margin-top: auto; }
.about-card--accent {
	background:
		radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--blue-glow) 70%, transparent), transparent 60%),
		linear-gradient(160deg, #0f1f5c, #0a1020);
	color: #f5f2ea;
}
.about-card--accent p { color: #b3b9c9; }
@media (max-width: 960px) { .about-cards { grid-template-columns: 1fr; } }

.band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(ellipse 70% 80% at 50% 0%, rgba(35, 65, 196, .55), transparent 70%),
		linear-gradient(180deg, #081236, #05070d);
	color: #f5f2ea;
}
.band .section-sub { color: #b3b9c9; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.reason {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .09);
	font-weight: 600;
	font-size: 15px;
	transition: background-color .25s, border-color .25s, transform .35s var(--ease);
}
.reason:hover { background: rgba(217, 178, 95, .07); border-color: rgba(217, 178, 95, .45); transform: translateY(-3px); }
.reason small { display: block; font-weight: 400; color: #7c8399; font-size: 13px; margin-top: 2px; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* Carousel */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.tab {
	padding: 9px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--ink-2);
	font: 500 14px var(--font-sans);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); border-color: var(--accent); }
.tab.is-active { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; font-weight: 600; }
.carousel { position: relative; }
.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 22px) / 3);
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 6px 2px 18px;
	scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track > [hidden] { display: none; }
@media (max-width: 960px) { .carousel__track { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 620px) { .carousel__track { grid-auto-columns: 86%; } }
.carousel__nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel__btn {
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease);
}
.carousel__btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: scale(1.06); }
.carousel__btn:disabled { opacity: .35; cursor: default; transform: none; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 12px; }
.stat__num small { font-size: .45em; margin-left: 4px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.stat__label { color: var(--ink-2); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) {
	.stats { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.cta-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin-top: 22px;
	padding: clamp(36px, 5vw, 64px);
	border-radius: 28px;
	text-align: center;
	background:
		radial-gradient(ellipse 60% 120% at 50% 120%, rgba(217, 178, 95, .28), transparent 60%),
		radial-gradient(ellipse 80% 100% at 50% -20%, rgba(35, 65, 196, .7), transparent 65%),
		#060b22;
	border: 1px solid rgba(255, 255, 255, .08);
	color: #f5f2ea;
}
.cta-band__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; color: #fff; }
.cta-band__text { color: #b3b9c9; max-width: 560px; margin: 0 auto 26px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band .search-form { margin: 0 auto 6px; }
.cta-band__orbit {
	position: absolute;
	inset: -50%;
	z-index: -1;
	background: conic-gradient(from 0deg, transparent 0 70%, rgba(217, 178, 95, .25) 80%, transparent 90%);
	animation: spin 14s linear infinite;
}

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	font-family: var(--font-serif);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--gold-grad);
	color: var(--on-gold);
	font: 600 20px/1 var(--font-sans);
	transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 22px; color: var(--ink-2); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   9. BLOG listing (posts page, categories, search) — hero + grid + sidebar
   ========================================================================== */
.page-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 72px);
	text-align: center;
	background:
		radial-gradient(ellipse 70% 70% at 50% -10%, rgba(35, 65, 196, .5), transparent 70%),
		linear-gradient(180deg, #071036, var(--bg));
}
:root[data-theme="light"] .page-hero { background: radial-gradient(ellipse 70% 70% at 50% -10%, rgba(39, 71, 214, .14), transparent 70%), var(--bg); }
.page-hero__pattern {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .5;
	background-image: repeating-radial-gradient(circle at 50% 120%, transparent 0 38px, var(--line) 39px 40px);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
	animation: pulse-rings 12s ease-in-out infinite alternate;
}
.page-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.page-hero__tag {
	display: inline-block;
	padding: 6px 14px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: var(--glass);
	border: 1px solid var(--line-strong);
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-ink);
	animation: rise-in .7s var(--ease) both;
}
.page-hero__title { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.035em; margin: 0 0 16px; animation: rise-in .8s var(--ease) .05s both; }
.page-hero__desc { max-width: 720px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); animation: rise-in .8s var(--ease) .12s both; }
.page-hero__desc p:last-child { margin-bottom: 0; }
.page-hero .search-form { width: 100%; margin-top: 28px; animation: rise-in .8s var(--ease) .2s both; }
.page-hero__avatar { border-radius: 50%; margin-bottom: 16px; border: 2px solid var(--accent); }
.page-hero__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; animation: rise-in .8s var(--ease) .28s both; }
.page-hero__cats a { display: block; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: border-color .2s, color .2s; }
.page-hero__cats a:hover, .page-hero__cats .is-current a { border-color: var(--accent); color: var(--accent-ink); }
.page-hero--simple { padding: clamp(48px, 6vw, 80px) 0 24px; }
.page-hero--404 { padding-bottom: 104px; }
.page-hero--404 .search-form { margin: 24px auto; }
.big-404 { font: 800 clamp(96px, 20vw, 200px)/1 var(--font-serif); margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: float 6s ease-in-out infinite; }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 1040px) { .blog-layout { grid-template-columns: 1fr; } }
.line-title { display: flex; align-items: center; gap: 18px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 26px; }
.line-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.blog-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 36px; }
.blog-sidebar .line-title { font-size: 22px; margin-bottom: 14px; }
.blog-sidebar .mini + .mini { margin-top: 6px; }
@media (max-width: 1040px) { .blog-sidebar { position: static; } }
.blog-grid .card--overlay:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; min-height: 380px; }
.blog-grid .card--overlay:first-child .card__media { order: 2; aspect-ratio: auto; height: 100%; }
.blog-grid .card--overlay:first-child .card__media::after { background: linear-gradient(90deg, #0b1121 0%, rgba(11, 17, 33, 0) 35%); }
.blog-grid .card--overlay:first-child .card__body { margin: 0; padding: 36px; justify-content: center; }
.blog-grid .card--overlay:first-child .card__title { font-size: clamp(24px, 2.6vw, 34px); }
.blog-grid .card--overlay:first-child .card__excerpt { -webkit-line-clamp: 3; font-size: 16px; }
@media (max-width: 760px) {
	.blog-grid .card--overlay:first-child { display: flex; min-height: 0; }
	.blog-grid .card--overlay:first-child .card__media { order: 0; aspect-ratio: 4 / 3; height: auto; }
	.blog-grid .card--overlay:first-child .card__media::after { background: linear-gradient(180deg, rgba(11, 17, 33, 0) 55%, #0b1121 100%); }
	.blog-grid .card--overlay:first-child .card__body { margin-top: -44px; padding: 0 22px 22px; }
}
.blog-grid.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1240px) { .blog-grid.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .blog-grid.grid--3 { grid-template-columns: 1fr; } }

.sidebar-cta { padding: 24px; text-align: center; }
.sidebar-cta h3 { font-size: 20px; margin-bottom: 8px; }
.sidebar-cta p { color: var(--ink-2); font-size: 14.5px; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(56px, 8vw, 96px) 0 28px;
	background:
		radial-gradient(ellipse 60% 70% at 15% 0%, rgba(35, 65, 196, .45), transparent 70%),
		linear-gradient(180deg, #071036, #04060c);
	color: #f5f2ea;
}
.site-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 44px; margin-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__big { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0; display: inline-flex; align-items: center; gap: 18px; color: #fff; }
.site-footer__big .arrow {
	display: inline-grid;
	place-items: center;
	width: clamp(48px, 6vw, 72px);
	height: clamp(48px, 6vw, 72px);
	border-radius: 50%;
	background: var(--gold-grad);
	color: var(--on-gold);
	transition: transform .4s var(--ease);
}
.site-footer__big:hover .arrow { transform: rotate(-45deg); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
.site-footer .brand__name { color: #fff; }
.site-footer__about p { color: #b3b9c9; font-size: 15px; max-width: 400px; margin-top: 14px; }
.site-footer__title { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ebc878; margin-bottom: 16px; }
.footer-menu, .social { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 11px; }
.footer-menu a { font-size: 15px; color: #b3b9c9; transition: color .2s; }
.footer-menu a:hover { color: #ebc878; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social a { display: block; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-size: 13.5px; color: #b3b9c9; transition: border-color .2s, color .2s; }
.social a:hover { border-color: #d9b25f; color: #ebc878; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #7c8399; }
.site-footer__bottom p { margin: 0; }
.to-top:hover { color: #ebc878; }

/* Newsletter (used on single posts) */
.newsletter { background: #060b22; color: #f5f2ea; border: 1px solid rgba(255, 255, 255, .08); }
.newsletter .search-form { background: #0d1323; }

/* Ads */
.ad-slot { margin: 2em auto; text-align: center; min-height: 100px; }
.ad-slot::before { content: "Advertisement"; display: block; margin-bottom: 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ad-slot--article { min-height: 280px; }
.ad-slot--sidebar { min-height: 600px; }
.ad-slot--feed { min-height: 120px; }
.ad-slot .widget { margin: 0; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 500; font-size: 15px; transition: border-color .2s, background-color .2s, color .2s; }
a.page-numbers:hover { border-color: var(--accent); color: var(--accent-ink); }
.page-numbers.current { background: var(--gold-grad); border-color: transparent; color: var(--on-gold); font-weight: 700; }
.page-numbers.dots { border: 0; }
.empty { text-align: center; padding: 48px 0; color: var(--ink-2); }
.center { text-align: center; margin-top: 40px; }
.shop-content { padding-block: 48px; }
.builder-content { width: 100%; }

/* Extra keyframes for v2 */
@keyframes grid-pan { to { background-position: 64px 64px; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-rings { from { transform: scale(1); } to { transform: scale(1.08); } }
/* ==========================================================================
   12. Scroll reveal + keyframes
   ========================================================================== */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-6px); }

@keyframes word-in {
	from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); }
	to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(6vmax, 4vmax) scale(1.08); }
	100% { transform: translate(-4vmax, 6vmax) scale(.96); }
}
@keyframes ping {
	0% { transform: scale(1); opacity: .7; }
	100% { transform: scale(2.8); opacity: 0; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.js .reveal { opacity: 1; transform: none; }
}

/* Print: clean article only */
@media print {
	.site-header, .site-footer, .article__aside, .share, .related, .newsletter, .ad-slot, .progress, .post-navigation, .comments { display: none !important; }
	body { background: #fff; color: #000; }
}

/* v2 article polish */
.article__title { font-weight: 800; letter-spacing: -.03em; }
.entry-content h2, .entry-content h3 { font-weight: 700; letter-spacing: -.02em; }
.entry-content pre { background: #070a14; border: 1px solid rgba(255, 255, 255, .08); }
.related { background: var(--bg-2); }

/* News-bot editor reminders (visible only to logged-in editors) */
.entry-content .editor-note {
	padding: 12px 16px;
	border: 2px dashed #e0a52b;
	border-radius: 12px;
	background: rgba(224, 165, 43, .12);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
}

/* ==========================================================================
   Fix the Business with Cracckk
   ========================================================================== */
.fix-hero { padding-bottom: clamp(56px, 8vw, 96px); }
.fix-hero__title { max-width: none; }
.fix-hero__with {
	display: block;
	margin-top: .15em;
	font-size: .42em;
	font-weight: 700;
	letter-spacing: -.01em;
	color: #b3b9c9;
	animation: rise-in .9s var(--ease) .4s both;
}
.fix-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	max-width: 720px;
	margin-top: 40px;
	animation: rise-in .9s var(--ease) .7s both;
}
.fix-stats div {
	padding: 18px 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .1);
}
.fix-stats strong {
	display: block;
	font: 800 clamp(30px, 4vw, 44px)/1 var(--font-serif);
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.fix-stats span { font-size: 13.5px; color: #b3b9c9; }
@media (max-width: 520px) { .fix-stats { gap: 8px; } .fix-stats div { padding: 14px 6px; } }

/* Flip card */
.flip {
	display: block;
	width: 100%;
	max-width: 620px;
	min-height: 300px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	perspective: 1400px;
}
.flip__inner {
	position: relative;
	display: block;
	min-height: 300px;
	transform-style: preserve-3d;
	transition: transform .8s var(--ease);
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(24px, 4vw, 40px);
	border-radius: 26px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow: var(--shadow-lg);
}
.flip__front {
	background:
		radial-gradient(circle at 90% 10%, rgba(35, 65, 196, .55), transparent 55%),
		linear-gradient(160deg, #101a3d, #0a1020);
	border: 1px solid rgba(255, 255, 255, .1);
	color: #f5f2ea;
}
.flip__back {
	transform: rotateY(180deg);
	background: var(--gold-grad);
	color: var(--on-gold);
}
.flip__front .chip { align-self: flex-start; }
.flip__q { font: 800 clamp(22px, 3vw, 30px)/1.25 var(--font-serif); letter-spacing: -.02em; }
.flip__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .7; margin-top: auto; }
.flip__score { font: 800 64px/1 var(--font-serif); letter-spacing: -.04em; }
.flip__score small { font-size: 22px; opacity: .6; }
.flip__label { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.flip__fix { font-size: 17px; line-height: 1.55; }
.flip:hover .flip__front { border-color: rgba(217, 178, 95, .5); }
.flip:not(.is-flipped):hover .flip__inner { transform: rotateY(-6deg); }

/* Legend */
.fix-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.fix-legend__item { padding: 10px 16px; border-radius: 999px; font-size: 14px; color: #f5f2ea; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.fix-legend__item b { margin-right: 6px; }
.fix-legend__item--hot b { color: #7be3a7; }
.fix-legend__item--good b { color: #ebc878; }
.fix-legend__item--think b { color: #b3b9c9; }
.fix-note { text-align: center; color: #7c8399; font-size: 13.5px; margin: 18px auto 0; max-width: 640px; }
.fix-how { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1100px; }
@media (max-width: 960px) { .fix-how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fix-how { grid-template-columns: 1fr; } }

/* Filters */
.fix-filters { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.fix-chips { justify-content: flex-start; margin: 0; }
.fix-chips .tab small { margin-left: 4px; opacity: .6; font-size: 11.5px; }
.fix-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fix-search { flex: 1; min-width: 240px; max-width: none; cursor: text; }
.fix-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.fix-sort select {
	padding: 11px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: 500 14px var(--font-sans);
}

/* Cards */
.fix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1040px) { .fix-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fix-grid { grid-template-columns: 1fr; } }
.fix-grid > [hidden] { display: none !important; }
.fix-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
	scroll-margin-top: calc(var(--header-h) + 24px);
}
.fix-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.fix-card.is-highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg); }
.fix-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fix-card__top .chip { margin: 0; }
.fix-card__q { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; margin: 4px 0 0; }
.fix-card__who { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin: 0; }
.fix-card__label { align-self: flex-start; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fix-card__label--hot { background: rgba(34, 160, 107, .15); color: #4cd28b; }
.fix-card__label--good { background: var(--accent-soft); color: var(--accent-ink); }
.fix-card__label--think { background: var(--glass); color: var(--ink-2); border: 1px solid var(--line); }
:root[data-theme="light"] .fix-card__label--hot { color: #137a4c; }

/* Score ring */
.fix-score {
	--c: var(--accent);
	position: relative;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0);
}
.fix-score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.fix-score__num { position: relative; font: 800 17px var(--font-serif); }
.fix-score--hot { --c: #3ccf86; }
.fix-score--think { --c: #7c8399; }

/* Meters */
.fix-meters { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.fix-meters li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.fix-meters__bar { display: inline-flex; gap: 3px; }
.fix-meters__bar i { width: 16px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.fix-meters__bar i.on { background: var(--gold-grad); }

/* Fix details */
.fix-card__fix { margin-top: 4px; border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.fix-card__fix summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); list-style: none; }
.fix-card__fix summary::-webkit-details-marker { display: none; }
.fix-card__fix[open] summary { margin-bottom: 8px; }
.fix-card__fix p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; }
.fix-card__fix p strong { color: var(--ink); }
.fix-card__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.fix-card__tools span { padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); }
.fix-card__actions { display: flex; gap: 14px; margin-top: auto; padding-top: 6px; font-size: 13px; }
.fix-card__actions a, .fix-card__actions button { padding: 0; border: 0; background: none; color: var(--ink-3); font: inherit; cursor: pointer; transition: color .2s; }
.fix-card__actions a:hover, .fix-card__actions button:hover { color: var(--accent-ink); }
.carousel .fix-card { height: 100%; }

.fix-submit { color: #f5f2ea; text-align: left; }
.fix-credit { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 28px; }

/* Fix the Business v2: quick solution + AI prompt */
.fix-card__solution {
	margin-top: 4px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.fix-card__solution p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.fix-card__solution p:last-child { margin-bottom: 0; }
.fix-card__solution-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-ink) !important;
}
.fix-card__prompt-help { font-size: 13.5px !important; color: var(--ink-3) !important; }
.fix-card__prompt {
	max-height: 260px;
	overflow: auto;
	margin: 0 0 10px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #070a14;
	border: 1px solid rgba(255, 255, 255, .08);
	color: #dfe3ee;
	font: 12.5px/1.6 var(--font-mono);
	white-space: pre-wrap;
	word-break: break-word;
}
.fix-card__prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fix-card__prompt-actions .btn { padding: 8px 14px; font-size: 13px; }
.fix-card__prompt-actions .btn.is-copied { background: #22a06b; color: #fff; box-shadow: none; }

/* ==========================================================================
   v2.3 — Responsive posts + elegant light mode
   ========================================================================== */

/* ---------- Post images: never bigger than the reading column ---------- */
.article__hero {
	width: 100%;
	max-width: calc(var(--narrow) + var(--gutter) * 2);
	margin: 28px auto 0;
}
.article__hero img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	max-height: 440px;
	object-fit: cover;
	border-radius: var(--radius-lg);
}
.entry-content img,
.entry-content .wp-block-image img,
.entry-content .elementor-widget-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 520px;
	margin-inline: auto;
	object-fit: contain;
	border-radius: var(--radius);
}
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .elementor-widget-image { max-width: 100%; margin: 1.8em auto; text-align: center; }
.entry-content .alignleft,
.entry-content .alignright { float: none; margin-inline: auto; }
.entry-content iframe,
.entry-content video,
.entry-content embed { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.entry-content .wp-block-embed__wrapper { position: relative; }
.entry-content { overflow-wrap: break-word; }
.entry-content a { overflow-wrap: anywhere; }

/* Tables from any builder scroll inside their box instead of breaking the page */
.entry-content table { max-width: none; }
.entry-content .elementor-widget-container:has(table),
.entry-content .uael-table-wrap,
.entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.entry-content .elementor-widget-container:has(> table),
.entry-content .wp-block-table { border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Mobile reading comfort ---------- */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.site-header__inner { gap: 12px; }
	.brand .custom-logo { max-height: 34px; }
	.brand__name { font-size: 19px; }
	.header-actions { gap: 2px; }
	.icon-btn { width: 38px; height: 38px; }

	.article__header { padding-top: 24px; }
	.breadcrumbs { font-size: 13px; margin-bottom: 12px; }
	.article__title { font-size: clamp(27px, 7.4vw, 32px); line-height: 1.15; margin-bottom: 12px; }
	.article__dek { font-size: 16.5px; line-height: 1.55; margin-bottom: 14px; }
	.post-meta { font-size: 13px; padding-bottom: 18px; }
	.article__hero { margin-top: 18px; }
	.article__hero img { border-radius: 14px; max-height: 260px; }
	.article__layout { padding-top: 24px; }

	.entry-content { font-size: 17px; line-height: 1.72; }
	.entry-content h2 { font-size: 23px; margin-top: 1.7em; }
	.entry-content h3 { font-size: 19.5px; }
	.entry-content img { max-height: 380px; border-radius: 12px; }
	.entry-content .quick-answer,
	.entry-content .key-takeaways { padding: 16px 18px; font-size: 16px; }
	.entry-content pre { font-size: 13.5px; padding: 40px 16px 16px; }
	.entry-content blockquote { font-size: 19px; padding-left: 16px; }
	.entry-content th, .entry-content td { padding: 10px 12px; font-size: 14.5px; }

	.toc--mobile { padding: 12px 16px; }
	.share { gap: 6px; }
	.share__btn { padding: 7px 12px; font-size: 13px; }
	.author-box { padding: 20px; }
	.post-navigation .nav-next { text-align: left; }

	.page-hero__title { font-size: clamp(30px, 8vw, 40px); }
	.page-hero__desc { font-size: 16px; }
	.section-title { font-size: clamp(26px, 7vw, 34px); }
	.hero__title { font-size: clamp(36px, 10vw, 48px); }
	.card__title { font-size: 18px; }
}

/* ==========================================================================
   LIGHT MODE — warm ivory, deep navy text, gold accents
   ========================================================================== */
:root[data-theme="light"] {
	--bg: #fbf9f4;
	--bg-2: #f3efe6;
	--surface: #ffffff;
	--surface-2: #f8f5ef;
	--ink: #14161f;
	--ink-2: #4a4f5e;
	--ink-3: #7b8090;
	--line: #e9e3d6;
	--line-strong: #d9d0bd;
	--accent: #b0822a;
	--accent-ink: #8a6114;
	--accent-soft: #f7edd6;
	--accent-2: #2747d6;
	--glass: rgba(255, 255, 255, .78);
	--gold-text: linear-gradient(120deg, #c4902c 0%, #9a6a17 60%, #7d5410 100%);
	--shadow: 0 1px 2px rgba(20, 22, 31, .04), 0 10px 28px -14px rgba(20, 22, 31, .16);
	--shadow-lg: 0 2px 6px rgba(20, 22, 31, .05), 0 28px 56px -24px rgba(20, 22, 31, .24);
	--shadow-gold: 0 10px 30px -12px rgba(176, 130, 42, .45);
	color-scheme: light;
}

/* Sections that are dark in dark mode become light, airy versions in light mode
   (footer and the CTA band stay deep navy for contrast). */
:root[data-theme="light"] .hero.is-dark,
:root[data-theme="light"] .band.is-dark {
	--bg: #fbf9f4;
	--surface: #ffffff;
	--surface-2: #f8f5ef;
	--ink: #14161f;
	--ink-2: #4a4f5e;
	--ink-3: #7b8090;
	--line: #e9e3d6;
	--line-strong: #d9d0bd;
	--accent-ink: #8a6114;
	--accent-soft: #f7edd6;
	--glass: rgba(255, 255, 255, .78);
	color: var(--ink);
}

/* Hero */
:root[data-theme="light"] .hero {
	background:
		radial-gradient(ellipse 70% 55% at 50% -8%, rgba(70, 104, 255, .16), transparent 70%),
		radial-gradient(ellipse 45% 40% at 88% 22%, rgba(217, 178, 95, .22), transparent 70%),
		radial-gradient(ellipse 40% 35% at 8% 40%, rgba(217, 178, 95, .12), transparent 70%),
		linear-gradient(180deg, #f4f1ea 0%, #fbf9f4 70%);
}
:root[data-theme="light"] .hero__grid {
	background-image:
		linear-gradient(rgba(20, 22, 31, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(20, 22, 31, .05) 1px, transparent 1px);
}
:root[data-theme="light"] .hero__stars { display: none; }
:root[data-theme="light"] .hero__title { color: #14161f; }
:root[data-theme="light"] .hero__title .word.is-gold,
:root[data-theme="light"] .gold-text,
:root[data-theme="light"] .big-404 { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .hero__subtitle { color: #4a4f5e; }
:root[data-theme="light"] .hero__trust { color: #7b8090; }
:root[data-theme="light"] .hero .pill { background: rgba(255, 255, 255, .8); border-color: #e2dac8; color: #4a4f5e; }
:root[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, .85); border-color: #d9d0bd; color: #14161f; }
:root[data-theme="light"] .btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
:root[data-theme="light"] .showcase__frame { box-shadow: 0 -10px 60px -20px rgba(39, 71, 214, .35), 0 30px 60px -30px rgba(20, 22, 31, .35); }

/* Fix the Business hero bits */
:root[data-theme="light"] .fix-hero__with { color: #4a4f5e; }
:root[data-theme="light"] .fix-stats div { background: #ffffff; border-color: #e9e3d6; box-shadow: var(--shadow); }
:root[data-theme="light"] .fix-stats strong { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .fix-stats span { color: #4a4f5e; }

/* Band ("Why Cracckk", score explainer) */
:root[data-theme="light"] .band {
	background:
		radial-gradient(ellipse 70% 80% at 50% 0%, rgba(70, 104, 255, .10), transparent 70%),
		linear-gradient(180deg, #eef1fb 0%, #f6f3ec 100%);
	color: #14161f;
}
:root[data-theme="light"] .band .section-sub { color: #4a4f5e; }
:root[data-theme="light"] .reason { background: #ffffff; border-color: #e6e0d2; box-shadow: var(--shadow); color: #14161f; }
:root[data-theme="light"] .reason:hover { background: #fffdf8; border-color: rgba(176, 130, 42, .5); }
:root[data-theme="light"] .reason small { color: #7b8090; }
:root[data-theme="light"] .fix-legend__item { background: #ffffff; border-color: #e6e0d2; color: #14161f; }
:root[data-theme="light"] .fix-legend__item--hot b { color: #13804f; }
:root[data-theme="light"] .fix-legend__item--good b { color: #8a6114; }
:root[data-theme="light"] .fix-legend__item--think b { color: #4a4f5e; }
:root[data-theme="light"] .fix-note { color: #7b8090; }

/* Cards, glass panels */
:root[data-theme="light"] .card { box-shadow: var(--shadow); }
:root[data-theme="light"] .glass { background: linear-gradient(180deg, #ffffff, #fbf9f4); box-shadow: var(--shadow); }
:root[data-theme="light"] .glass::before { opacity: .35; }
:root[data-theme="light"] .feature__visual { background: #f3efe6; }
:root[data-theme="light"] .card-fallback {
	background:
		radial-gradient(circle at 25% 20%, rgba(70, 104, 255, .18), transparent 55%),
		radial-gradient(circle at 80% 90%, rgba(217, 178, 95, .28), transparent 50%),
		#f6f2ea;
}

/* Blog page overlay cards */
:root[data-theme="light"] .card--overlay { background: #ffffff; border-color: #e9e3d6; color: #14161f; }
:root[data-theme="light"] .card--overlay .card__media::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #ffffff 100%); }
:root[data-theme="light"] .card--overlay .card__title { color: #14161f; }
:root[data-theme="light"] .card--overlay:hover .card__title a { color: var(--accent-ink); }
:root[data-theme="light"] .card--overlay .card__excerpt { color: #4a4f5e; }
:root[data-theme="light"] .card--overlay .card__meta { color: #7b8090; }
:root[data-theme="light"] .card--overlay .chip { background: #ffffff; color: #8a6114; border: 1px solid #ecdcb6; }
:root[data-theme="light"] .blog-grid .card--overlay:first-child .card__media::after { background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 35%); }
@media (max-width: 760px) {
	:root[data-theme="light"] .blog-grid .card--overlay:first-child .card__media::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #ffffff 100%); }
}

/* Page hero (blog, categories, search, 404) */
:root[data-theme="light"] .page-hero {
	background:
		radial-gradient(ellipse 70% 70% at 50% -10%, rgba(70, 104, 255, .12), transparent 70%),
		radial-gradient(ellipse 40% 50% at 90% 10%, rgba(217, 178, 95, .16), transparent 70%),
		#f6f3ec;
}

/* Header, chips, search */
:root[data-theme="light"] .site-header { background: color-mix(in srgb, #fbf9f4 80%, transparent); }
:root[data-theme="light"] .site-header.is-scrolled { background: color-mix(in srgb, #fbf9f4 92%, transparent); box-shadow: 0 6px 24px -18px rgba(20, 22, 31, .35); }
:root[data-theme="light"] .chip { border-color: #ecdcb6; }
:root[data-theme="light"] .search-form { box-shadow: 0 8px 24px -16px rgba(20, 22, 31, .25); }
:root[data-theme="light"] .tab:not(.is-active) { background: #ffffff; }
:root[data-theme="light"] .marquee__items span { color: #9aa0ad; }
:root[data-theme="light"] .marquee__items span:hover { color: var(--accent-ink); }
:root[data-theme="light"] .stats { background: #ffffff; }

/* Article details in light */
:root[data-theme="light"] .entry-content pre { background: #10131d; }
:root[data-theme="light"] .entry-content details,
:root[data-theme="light"] .faq details { background: #ffffff; }
:root[data-theme="light"] .related { background: #f3efe6; }
:root[data-theme="light"] .progress__bar { background: linear-gradient(90deg, #c4902c, #2747d6); }
:root[data-theme="light"] .fix-card { background: #ffffff; box-shadow: var(--shadow); }
:root[data-theme="light"] .fix-card__prompt { background: #10131d; }
:root[data-theme="light"] .fix-score::before { background: #ffffff; }
:root[data-theme="light"] .ad-slot::before { color: #9aa0ad; }

/* Smooth colour change when switching modes */
body, .site-header, .card, .glass, .fix-card, .reason, .page-hero, .hero, .band, .search-form {
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* Keep the navy accent card dark in light mode */
:root[data-theme="light"] .about-card--accent {
	background:
		radial-gradient(circle at 100% 0%, rgba(35, 65, 196, .75), transparent 60%),
		linear-gradient(160deg, #0f1f5c, #0a1020);
	color: #f5f2ea;
	--ink: #f5f2ea;
	--ink-2: #c9cede;
	--accent-ink: #ebc878;
	--accent-soft: rgba(217, 178, 95, .16);
}

/* ==========================================================================
   Prompt Library
   ========================================================================== */

/* Hero */
.prompt-hero { text-align: left; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.prompt-hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.prompt-hero .pill { margin-bottom: 18px; }
.prompt-hero__title { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 14px; color: var(--ink); }
.prompt-hero__desc { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 560px; margin-bottom: 22px; }
.prompt-hero__search { max-width: 520px; cursor: text; }
.prompt-hero__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.prompt-hero__stats strong { color: var(--accent-ink); font-weight: 800; }
.prompt-hero .breadcrumbs { margin-bottom: 14px; }
.prompt-hero__stack { position: relative; height: 300px; }
.prompt-hero__tile {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 190px;
	aspect-ratio: 3 / 4;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	transform: translate(-50%, -50%) translateX(calc((var(--i) - 2) * 74px)) rotate(calc((var(--i) - 2) * 6deg)) translateY(calc(var(--i) * 0px));
	transition: transform .5s var(--ease);
	animation: fade-in .8s var(--ease) both;
	animation-delay: calc(var(--i) * 90ms + 200ms);
}
.prompt-hero__stack:hover .prompt-hero__tile { transform: translate(-50%, -50%) translateX(calc((var(--i) - 2) * 92px)) rotate(calc((var(--i) - 2) * 8deg)); }
.prompt-hero__tile img, .prompt-hero__tile .pcard-art { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
	.prompt-hero__inner { grid-template-columns: 1fr; }
	.prompt-hero__stack { height: 220px; }
	.prompt-hero__tile { width: 140px; }
}
@media (max-width: 520px) { .prompt-hero__stack { display: none; } }

/* Designed thumbnail (when no example image is uploaded) */
.pcard-art {
	--mc: #c4902c;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 18px;
	overflow: hidden;
	isolation: isolate;
	color: #f5f2ea;
	background:
		radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--mc) 70%, transparent), transparent 55%),
		radial-gradient(circle at 10% 95%, rgba(217, 178, 95, .25), transparent 50%),
		linear-gradient(160deg, #111a33 0%, #0a0f1f 100%);
}
.pcard-art::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.pcard-art__glow {
	position: absolute;
	top: -30%;
	right: -20%;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: color-mix(in srgb, var(--mc) 55%, transparent);
	filter: blur(40px);
	z-index: -1;
	transition: transform .8s var(--ease);
}
.pcard:hover .pcard-art__glow { transform: translate(-12%, 12%) scale(1.15); }
.pcard-art__icon {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	backdrop-filter: blur(6px);
}
.pcard-art__cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ebc878; }
.pcard-art__snip {
	font: 500 13px/1.55 var(--font-mono);
	color: rgba(245, 242, 234, .82);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pcard-art--big { padding: 32px; gap: 12px; }
.pcard-art--big .pcard-art__icon { width: 64px; height: 64px; top: 24px; right: 24px; border-radius: 16px; }
.pcard-art--big .pcard-art__cat { font-size: 13px; }
.pcard-art--big .pcard-art__snip { font-size: 15px; -webkit-line-clamp: 8; }

/* Card */
.pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__model {
	--mc: #c4902c;
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: rgba(8, 10, 18, .72);
	border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
}
.pcard__model::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mc); box-shadow: 0 0 8px var(--mc); }
.pcard__model--static { position: static; background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); font-size: 13px; padding: 6px 12px 6px 10px; }
.pcard__free {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--gold-grad);
	color: var(--on-gold);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .02em;
}
.pcard__rank {
	position: absolute;
	left: 10px;
	bottom: 8px;
	font: 800 34px/1 var(--font-serif);
	color: #fff;
	text-shadow: 0 4px 18px rgba(0, 0, 0, .55);
}
.pcard__body { padding: 14px 16px 16px; }
.pcard__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard:hover .pcard__title a { color: var(--accent-ink); }
.pcard__meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin: 0; }

.prompt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.prompt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .prompt-grid, .prompt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .pcard__title { font-size: 15px; } .pcard__body { padding: 12px; } }
@media (max-width: 420px) { .pcard-art { padding: 12px; } .pcard-art__snip { -webkit-line-clamp: 3; font-size: 11.5px; } .pcard-art__icon { width: 34px; height: 34px; top: 10px; right: 10px; } }
.prompt-grid > [hidden] { display: none !important; }
.prompt-track { grid-auto-columns: calc((100% - 3 * 22px) / 4); }
@media (max-width: 1100px) { .prompt-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 780px) { .prompt-track { grid-auto-columns: 62%; } }

/* Category tiles */
.prompt-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .prompt-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prompt-cat {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 2px 10px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.prompt-cat:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.prompt-cat__name { font-weight: 700; font-family: var(--font-serif); }
.prompt-cat__count { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.prompt-cat svg { grid-row: 1 / span 2; grid-column: 2; color: var(--accent-ink); transition: transform .25s var(--ease); }
.prompt-cat:hover svg { transform: translateX(4px); }

/* Filters */
.prompt-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.prompt-types { margin: 0; justify-content: flex-start; }
.prompt-selects { display: flex; flex-wrap: wrap; gap: 12px; }

/* Single prompt */
.prompt-single__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	padding-top: clamp(28px, 4vw, 48px);
	padding-bottom: 28px;
	align-items: start;
}
@media (max-width: 900px) { .prompt-single__top { grid-template-columns: 1fr; } }
.prompt-single__visual { position: sticky; top: calc(var(--header-h) + 20px); border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); background: var(--surface-2); }
@media (max-width: 900px) { .prompt-single__visual { position: relative; top: 0; } }
.prompt-single__visual > img, .prompt-single__visual > .pcard-art { width: 100%; height: 100%; object-fit: cover; }
.prompt-single__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 14px; font-size: 12px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); }
.prompt-single__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.prompt-single__badges .chip { margin: 0; }
.prompt-single__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.prompt-single__dek { font-size: 17px; color: var(--ink-2); margin-bottom: 20px; }
.prompt-single__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; color: var(--ink-3); font-size: 14px; }
.prompt-single__free { font: 800 40px/1 var(--font-serif); color: var(--ink); letter-spacing: -.03em; }
.prompt-single__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.prompt-single__actions .btn.is-copied, .prompt-box__head .btn.is-copied { background: #22a06b; color: #fff; box-shadow: none; }
.prompt-single__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.prompt-single__stats strong { color: var(--ink); }
.prompt-single__body { padding-bottom: 40px; }

.prompt-box { margin: 12px 0 28px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.prompt-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.prompt-box__head h2 { font-size: 18px; margin: 0; }
.prompt-box__text {
	margin: 0;
	padding: 20px 22px;
	background: #070a14;
	color: #e7e9f1;
	font: 14.5px/1.75 var(--font-mono);
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 520px;
	overflow: auto;
}
.prompt-example { white-space: normal; }
.prompt-example::before { content: "Example output" !important; }
.prompt-variations li::marker { content: "↳  "; }

/* Light mode touches */
:root[data-theme="light"] .prompt-hero {
	background:
		radial-gradient(ellipse 60% 70% at 85% 10%, rgba(70, 104, 255, .14), transparent 70%),
		radial-gradient(ellipse 50% 60% at 10% 90%, rgba(217, 178, 95, .18), transparent 70%),
		#f6f3ec;
}
:root[data-theme="light"] .prompt-hero.is-dark { --ink: #14161f; --ink-2: #4a4f5e; --ink-3: #7b8090; --line: #e9e3d6; --line-strong: #d9d0bd; --surface: #fff; --accent-ink: #8a6114; --glass: rgba(255, 255, 255, .8); color: #14161f; }
:root[data-theme="light"] .pcard { box-shadow: var(--shadow); }
:root[data-theme="light"] .prompt-cat { box-shadow: 0 1px 2px rgba(20, 22, 31, .04); }
:root[data-theme="light"] .prompt-box__text { background: #10131d; }

/* Topic cluster guide box (v2.4.6) */
.cluster-box {
	margin: 2.5rem 0 1rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--accent);
	border-left-width: 4px;
	border-radius: 12px;
	background: var(--accent-soft);
}
.cluster-box p { margin: 0; }
.cluster-box__eyebrow {
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent-ink);
	font-weight: 700;
}
.cluster-box__hub { margin-top: .3rem !important; font-size: 1.15rem; font-weight: 700; }
.cluster-box__hub a { text-decoration: none; }
.cluster-box__label { margin-top: .9rem !important; font-size: .9rem; font-weight: 600; opacity: .85; }
.cluster-box__list { margin: .4rem 0 0; padding-left: 1.1rem; }
.cluster-box__list li { margin: .25rem 0; }
