/*
Theme Name: PayManagerPro
Theme URI: https://paymanagerpro.com/blog/
Author: PayManagerPro
Description: Blog theme for PayManagerPro. Dark navy UI matching the main site (same tokens, nav and footer), category accent colours, generated covers, readable article typography. No external assets.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: paymanagerpro
*/

/* ---------- Tokens (copied from the main site, resources/views/welcome.blade.php) ---------- */
:root {
	--bg-body: #050816;
	--bg-elevated: #0b1020;
	--bg-soft: #10172a;
	--primary: #4f46e5;
	--primary-soft: rgba(79, 70, 229, 0.15);
	--primary-strong: #6366f1;
	--accent: #22c55e;
	--text-main: #f9fafb;
	--text-body: #d1d5db;
	--text-soft: #9ca3af;
	--border-subtle: #1f2937;
	--warning: #facc15;
	--danger: #f97373;
	--radius-xl: 20px;
	--radius-lg: 14px;
	--radius-pill: 999px;
	--shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
	--shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.75);
	--transition-fast: 0.18s ease-out;
	--max-width: 1180px;
	--prose-width: 740px;
	--cat: #6366f1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: radial-gradient(circle at top, #111827 0, #020617 55%) fixed;
	background-color: #020617;
	color: var(--text-main);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 0.6rem; left: 0.6rem; z-index: 100; width: auto; height: auto; clip: auto;
	padding: 0.5rem 0.9rem; background: var(--primary); color: #fff; border-radius: var(--radius-pill);
}
:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Nav (same as main site) ---------- */
.nav {
	position: sticky; top: 0; z-index: 40;
	backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.7));
	border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}
.admin-bar .nav { top: 32px; }
.nav-inner {
	max-width: var(--max-width); margin: 0 auto; padding: 0.75rem 1.25rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo {
	width: 38px; height: 38px; border-radius: 16px;
	background: radial-gradient(circle at 0 0, #4f46e5 0, #22c55e 45%, #111827 100%);
	box-shadow: 0 8px 22px rgba(79, 70, 229, 0.55);
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.1rem; color: #fff;
}
.nav-title { display: flex; flex-direction: column; line-height: 1.3; }
.nav-title-main { font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.95rem; }
.nav-title-sub { font-size: 0.72rem; color: var(--text-soft); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; }
.nav-links a { color: var(--text-soft); position: relative; padding-bottom: 0.2rem; transition: color var(--transition-fast); }
.nav-links a::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 999px;
	background: linear-gradient(to right, var(--primary), var(--accent)); transition: width var(--transition-fast);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 0.65rem; }
.nav-toggle {
	display: none; width: 36px; height: 36px; border-radius: 999px; background: transparent;
	border: 1px solid rgba(75, 85, 99, 0.9); align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.nav-toggle-line, .nav-toggle-line::before, .nav-toggle-line::after {
	display: block; width: 16px; height: 1.6px; background: #e5e7eb; border-radius: 999px; position: relative;
}
.nav-toggle-line::before, .nav-toggle-line::after { content: ""; position: absolute; left: 0; }
.nav-toggle-line::before { top: -5px; }
.nav-toggle-line::after { top: 5px; }
.nav-mobile { display: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	border-radius: var(--radius-pill); padding: 0.55rem 1.2rem; border: 1px solid transparent;
	font-size: 0.85rem; font-weight: 600; cursor: pointer; background: transparent; color: inherit; font-family: inherit;
	transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.btn-outline { border-color: rgba(148, 163, 184, 0.7); color: var(--text-soft); }
.btn-outline:hover { border-color: var(--primary); color: var(--text-main); background: rgba(15, 23, 42, 0.9); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #eef2ff; box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55); }
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 18px 40px rgba(79, 70, 229, 0.7); }

/* ---------- Shared bits ---------- */
.section-label {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #a5b4fc;
}
.section-label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--primary), var(--accent)); }
.cat-pill {
	display: inline-flex; align-items: center; gap: 0.35rem;
	padding: 0.18rem 0.65rem; border-radius: var(--radius-pill);
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
	color: var(--cat); background: color-mix(in srgb, var(--cat) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--cat) 35%, transparent);
}
.cat-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cat); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--text-soft); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #4b5563; }

/* ---------- Blog hero ---------- */
.blog-hero { padding: 3.2rem 0 1.6rem; }
.blog-hero h1 {
	margin: 0.8rem 0 0.7rem; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
}
.blog-hero h1 .grad { background: linear-gradient(120deg, #a5b4fc, #22c55e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-hero p { margin: 0; max-width: 640px; color: var(--text-soft); font-size: 1rem; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.hero-search { flex: 0 1 320px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chip {
	padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.8rem; color: var(--text-soft);
	border: 1px solid rgba(55, 65, 81, 0.9); background: rgba(15, 23, 42, 0.6); transition: all var(--transition-fast);
}
.chip:hover { color: var(--text-main); border-color: var(--cat); }
.chip.is-active { color: #eef2ff; border-color: var(--cat); background: color-mix(in srgb, var(--cat) 20%, transparent); }
.chip .count { opacity: 0.6; margin-left: 0.25rem; }

/* ---------- Search form ---------- */
.search-form { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.3rem 0.3rem 0.9rem; border-radius: var(--radius-pill); background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(55, 65, 81, 0.9); }
.search-form:focus-within { border-color: var(--primary-strong); }
.search-form input[type="search"] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text-main); font: inherit; font-size: 0.88rem; outline: none; }
.search-form input::placeholder { color: #6b7280; }
.search-form button { padding: 0.42rem 0.95rem; }

/* ---------- Cover (generated when there is no featured image) ---------- */
.cover {
	position: relative; overflow: hidden; aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--cat) 55%, transparent) 0, transparent 55%),
		radial-gradient(circle at 85% 90%, rgba(79, 70, 229, 0.45) 0, transparent 50%),
		linear-gradient(135deg, #0b1020, #111a33);
}
.cover::before {
	content: ""; position: absolute; inset: 0; opacity: 0.35;
	background-image: linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0, transparent 75%); mask-image: radial-gradient(circle at 70% 40%, #000 0, transparent 75%);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-icon {
	position: absolute; right: 8%; bottom: 14%; width: 30%; max-width: 120px; aspect-ratio: 1;
	display: flex; align-items: center; justify-content: center; border-radius: 28%;
	color: var(--cat); background: rgba(2, 6, 23, 0.55); border: 1px solid color-mix(in srgb, var(--cat) 40%, transparent);
	box-shadow: 0 18px 40px color-mix(in srgb, var(--cat) 30%, transparent);
}
.cover-icon svg { width: 46%; height: 46%; }
.cover-label { position: absolute; left: 7%; top: 12%; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: rgba(229, 231, 235, 0.75); }

/* ---------- Cards ---------- */
.featured {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; margin: 1.4rem 0 2rem;
	border-radius: var(--radius-xl); overflow: hidden; background: rgba(11, 16, 32, 0.9);
	border: 1px solid rgba(55, 65, 81, 0.75); box-shadow: var(--shadow-soft); transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.featured:hover { border-color: color-mix(in srgb, var(--cat) 60%, transparent); transform: translateY(-2px); }
.featured .cover { aspect-ratio: auto; min-height: 300px; }
.featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; }
.featured-body h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.22; letter-spacing: -0.01em; }
.featured-body p { margin: 0; color: var(--text-soft); }
.read-more { font-size: 0.85rem; font-weight: 600; color: #a5b4fc; display: inline-flex; align-items: center; gap: 0.35rem; }
.read-more svg { width: 15px; height: 15px; transition: transform var(--transition-fast); }
.featured:hover .read-more svg, .card:hover .read-more svg { transform: translateX(3px); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
	display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
	background: rgba(11, 16, 32, 0.9); border: 1px solid rgba(55, 65, 81, 0.7);
	box-shadow: var(--shadow-subtle); transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.card:hover { border-color: color-mix(in srgb, var(--cat) 60%, transparent); transform: translateY(-3px); }
.card-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.9rem; flex: 1; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.section-head h2 { margin: 0; font-size: 1.2rem; }

.archive-head { padding: 2.8rem 0 1.4rem; }
.archive-head h1 { margin: 0.6rem 0 0.4rem; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; }
.archive-head p { margin: 0; color: var(--text-soft); max-width: 640px; }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--text-soft); border: 1px dashed rgba(55, 65, 81, 0.9); border-radius: var(--radius-lg); }

/* ---------- Pagination ---------- */
.pagination { margin: 2.4rem 0 0; }
.pagination .nav-links { justify-content: center; gap: 0.4rem; }
.pagination .page-numbers {
	min-width: 38px; height: 38px; padding: 0 0.8rem; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-pill); border: 1px solid rgba(55, 65, 81, 0.9); color: var(--text-soft); font-size: 0.85rem;
}
.pagination .page-numbers::after { display: none; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { color: #fff; border-color: var(--primary-strong); background: var(--primary-soft); }

/* ---------- Single post ---------- */
.post-head { max-width: var(--prose-width); margin: 0 auto; padding: 2.6rem 0 1.4rem; }
.crumbs { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a:hover { color: var(--text-main); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.post-head h1 { margin: 0.9rem 0 0.9rem; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.post-head .lede { margin: 0 0 1.1rem; font-size: 1.08rem; color: var(--text-soft); }
.byline { display: flex; align-items: center; gap: 0.7rem; }
.byline .avatar {
	width: 36px; height: 36px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 0.9rem; background: radial-gradient(circle at 0 0, #4f46e5 0, #22c55e 45%, #111827 100%);
}
.byline strong { display: block; font-size: 0.88rem; }
.post-cover { max-width: 960px; margin: 0.6rem auto 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(55, 65, 81, 0.75); box-shadow: var(--shadow-soft); }
.post-cover .cover { aspect-ratio: 21 / 8; }
.post-cover .cover-icon { max-width: 110px; width: 16%; }

.prose { max-width: var(--prose-width); margin: 2.2rem auto 0; color: var(--text-body); font-size: 1.04rem; line-height: 1.78; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child { font-size: 1.1rem; color: #e5e7eb; }
.prose h2, .prose h3 { color: var(--text-main); line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.18rem; }
.prose > h2 { margin-top: 2.1em; }
.prose > h3 { margin-top: 1.7em; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0.7em; }
.prose a { color: #a5b4fc; text-decoration: underline; text-decoration-color: rgba(165, 180, 252, 0.4); text-underline-offset: 3px; }
.prose a:hover { color: #c7d2fe; text-decoration-color: currentColor; }
.prose strong { color: var(--text-main); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--cat); }
.prose ul.is-style-pmp-checklist { list-style: none; padding-left: 0; }
.prose ul.is-style-pmp-checklist li { position: relative; padding-left: 1.9em; }
.prose ul.is-style-pmp-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15em; height: 1.15em; border-radius: 6px;
	background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
	border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.prose blockquote { margin-left: 0; margin-right: 0; padding: 0.9rem 1.2rem; border-left: 3px solid var(--cat); background: rgba(15, 23, 42, 0.7); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; color: #e5e7eb; font-style: italic; }
.prose blockquote p { margin: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 0.12em 0.4em; border-radius: 6px; background: rgba(31, 41, 55, 0.9); color: #e5e7eb; }
.prose pre { overflow-x: auto; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: #020617; border: 1px solid var(--border-subtle); }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; height: 1px; background: var(--border-subtle); margin: 2.2em 0; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose .wp-block-table { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgba(55, 65, 81, 0.85); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(31, 41, 55, 0.95); }
.prose th { background: rgba(16, 23, 42, 0.95); color: var(--text-main); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: rgba(15, 23, 42, 0.45); }
.prose img { border-radius: var(--radius-lg); }

/* Callouts (seeded as groups with is-style-pmp-note|tip|warning) */
.prose .is-style-pmp-note, .prose .is-style-pmp-tip, .prose .is-style-pmp-warning {
	--c: #818cf8; position: relative; padding: 1rem 1.15rem 1rem 3rem; border-radius: var(--radius-lg);
	background: color-mix(in srgb, var(--c) 10%, rgba(11, 16, 32, 0.9)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
	font-size: 0.97rem;
}
.prose .is-style-pmp-tip { --c: #22c55e; }
.prose .is-style-pmp-warning { --c: #facc15; }
.prose .is-style-pmp-note::before, .prose .is-style-pmp-tip::before, .prose .is-style-pmp-warning::before {
	position: absolute; left: 1rem; top: 1rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; font-style: normal;
	color: #020617; background: var(--c);
}
.prose .is-style-pmp-note::before { content: "i"; }
.prose .is-style-pmp-tip::before { content: "\2713"; }
.prose .is-style-pmp-warning::before { content: "!"; }
.prose .wp-block-group > * + * { margin-top: 0.6em; }
.prose .wp-block-group p { margin: 0; }

.tags { max-width: var(--prose-width); margin: 2rem auto 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags a { font-size: 0.78rem; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); border: 1px solid rgba(55, 65, 81, 0.9); color: var(--text-soft); }
.tags a:hover { color: var(--text-main); border-color: var(--primary-strong); }

.disclaimer { max-width: var(--prose-width); margin: 1.6rem auto 0; font-size: 0.8rem; color: #6b7280; }

/* CTA card (same feel as the main site's cta-card) */
.cta-card {
	max-width: var(--prose-width); margin: 2.4rem auto 0; padding: 1.6rem 1.7rem; border-radius: var(--radius-xl);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
	background: radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.35) 0, transparent 55%), radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.22) 0, transparent 50%), #0b1020;
	border: 1px solid rgba(99, 102, 241, 0.45); box-shadow: var(--shadow-soft);
}
.cta-card h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.cta-card p { margin: 0; color: var(--text-soft); font-size: 0.92rem; max-width: 460px; }
.cta-card.wide { max-width: none; margin-top: 3rem; }

.post-nav { max-width: var(--prose-width); margin: 2.4rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { display: block; padding: 1rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid rgba(55, 65, 81, 0.8); background: rgba(11, 16, 32, 0.8); transition: border-color var(--transition-fast); }
.post-nav a:hover { border-color: var(--primary-strong); }
.post-nav small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-soft); margin-bottom: 0.3rem; }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav strong { font-size: 0.95rem; line-height: 1.35; display: block; }

.related { margin-top: 3.4rem; }

/* ---------- Comments ---------- */
.comments { max-width: var(--prose-width); margin: 3rem auto 0; }
.comments h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.comment-list .children { list-style: none; padding-left: 1.4rem; }
.comment-body { padding: 1rem 1.1rem; margin-bottom: 0.8rem; border-radius: var(--radius-lg); background: rgba(11, 16, 32, 0.85); border: 1px solid rgba(55, 65, 81, 0.75); font-size: 0.93rem; color: var(--text-body); }
.comment-author { display: flex; align-items: center; gap: 0.5rem; color: var(--text-main); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 0.75rem; color: var(--text-soft); margin: 0.2rem 0 0.5rem; }
.reply a { font-size: 0.8rem; color: #a5b4fc; }
.comment-respond { padding: 1.3rem; border-radius: var(--radius-lg); background: rgba(11, 16, 32, 0.85); border: 1px solid rgba(55, 65, 81, 0.75); }
.comment-reply-title { margin: 0 0 0.6rem; font-size: 1.05rem; }
.comment-notes, .logged-in-as { font-size: 0.8rem; color: var(--text-soft); }
.comment-form label { display: block; font-size: 0.8rem; color: var(--text-soft); margin-bottom: 0.25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 0.6rem 0.8rem; border-radius: 10px; font: inherit; font-size: 0.9rem;
	background: #020617; color: var(--text-main); border: 1px solid rgba(55, 65, 81, 0.9);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary-strong); }
.comment-form p { margin: 0 0 0.8rem; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }
.form-submit .submit {
	border: 0; border-radius: var(--radius-pill); padding: 0.6rem 1.3rem; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
	background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #eef2ff; box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 5rem 0 3rem; }
.notfound .big { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, #6366f1, #22c55e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--text-soft); }
.notfound .search-form { max-width: 420px; margin: 1.5rem auto; }

/* ---------- Footer (same as main site, plus links) ---------- */
.footer { margin-top: 4rem; padding: 1.6rem 1.25rem 1.8rem; border-top: 1px solid rgba(31, 41, 55, 0.9); background: #020617; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--text-soft); }
.footer-brand { font-weight: 600; color: #e5e7eb; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-chip { padding: 0.15rem 0.65rem; border-radius: 999px; border: 1px solid rgba(55, 65, 81, 0.9); transition: all var(--transition-fast); }
a.footer-chip:hover { color: var(--text-main); border-color: var(--primary-strong); }

/* ---------- Gutenberg alignment helpers ---------- */
.prose .alignwide { max-width: 960px; margin-left: auto; margin-right: auto; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .wp-element-caption, .prose figcaption { font-size: 0.8rem; color: var(--text-soft); text-align: center; margin-top: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.featured { grid-template-columns: 1fr; }
	.featured .cover { min-height: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 820px) {
	.nav-links, .nav-cta { display: none; }
	.nav-toggle { display: flex; }
	.nav-mobile.open {
		display: flex; flex-direction: column; gap: 0.2rem; padding: 0.4rem 1.25rem 1rem;
		border-top: 1px solid rgba(55, 65, 81, 0.6);
	}
	.nav-mobile a { padding: 0.55rem 0; color: var(--text-soft); border-bottom: 1px solid rgba(31, 41, 55, 0.7); }
	.nav-mobile a.is-active, .nav-mobile a:hover { color: var(--text-main); }
	.nav-mobile .btn { margin-top: 0.6rem; justify-content: center; border-bottom: 1px solid transparent; }
	.nav-mobile .btn-primary { color: #eef2ff; }
}
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 640px) {
	.grid, .grid.cols-2 { grid-template-columns: 1fr; }
	.featured-body { padding: 1.3rem; }
	.blog-hero { padding-top: 2.2rem; }
	.hero-search { flex-basis: 100%; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { grid-column: 1; }
	.prose { font-size: 1rem; }
	.post-cover { border-radius: var(--radius-lg); margin-left: 1.25rem; margin-right: 1.25rem; }
	.post-cover .cover { aspect-ratio: 16 / 8; }
	.cta-card { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
