/* Wisemattic blog: home, archive and single post templates (classes wmb-*) */
:root {
	--wmb-brand: #4f46e5;
	--wmb-brand-dark: #4338ca;
	--wmb-ink: #0f172a;
	--wmb-text: #334155;
	--wmb-muted: #64748b;
	--wmb-line: #e2e8f0;
	--wmb-soft: #f7f8ff;
	--wmb-tint: #eef2ff;
	--wmb-radius: 18px;
}

/* ---------- Shared ---------- */
.wmb-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.wmb-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: #fff; border: 1px solid var(--wmb-line); box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
	font-size: 14px; font-weight: 700; color: var(--wmb-ink); line-height: 1.2;
}
.wmb-pill i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #9333ea); display: block; }
.wmb-grad { background: linear-gradient(90deg, #4f46e5 0%, #9333ea 55%, #ff5b24 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wmb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.wmb-cats .wp-block-post-terms__separator { display: none; }
.wmb-cats a {
	display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--wmb-tint); color: var(--wmb-brand);
	font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
}
.wmb-cats a:hover { background: var(--wmb-brand); color: #fff; }
.wmb-cats a[href$="/category/blog/"] { display: none; }

.wmb-date { color: var(--wmb-muted); font-size: 14px; font-weight: 600; margin: 0; }
.wmb-date time + .wmb-read::before { content: "·"; margin: 0 8px; color: #cbd5e1; }

/* ---------- Hero (home and archive) ---------- */
.wmb-hero {
	background:
		radial-gradient(900px 420px at 10% 0%, rgba(99, 102, 241, .13), transparent 70%),
		radial-gradient(760px 420px at 92% 10%, rgba(255, 91, 36, .08), transparent 70%),
		linear-gradient(180deg, #f7f8ff 0%, #ffffff 100%);
	padding: 64px 0 40px; margin: 0; text-align: center;
}
.wmb-hero h1, .wmb-hero .wmb-hero-title {
	font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800;
	color: var(--wmb-ink); margin: 22px auto 0; max-width: 900px;
}
.wmb-hero .wmb-lead, .wmb-hero .wp-block-term-description { font-size: 19px; line-height: 1.6; color: var(--wmb-muted); max-width: 680px; margin: 18px auto 0; }
.wmb-hero .wp-block-term-description p { margin: 0; }
.wmb-hero .wmb-search { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; max-width: 520px; margin: 30px auto 0; background: #fff; border: 1px solid var(--wmb-line); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); box-sizing: border-box; }
.wmb-hero .wmb-search input[type="search"] { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; margin: 0; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 16px; padding: 0 12px; color: var(--wmb-ink); }
.wmb-hero .wmb-search button { flex: none; display: inline-flex; align-items: center; height: 44px; margin: 0; border: 0; border-radius: 10px; background: var(--wmb-brand) !important; color: #fff !important; font: inherit; font-weight: 700; font-size: 15px; line-height: 1; padding: 0 20px; cursor: pointer; }
.wmb-hero .wmb-search button:hover { background: var(--wmb-brand-dark) !important; }
.wmb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; }
.wmb-chips a {
	padding: 8px 16px; border-radius: 999px; border: 1px solid var(--wmb-line); background: #fff; color: var(--wmb-text);
	font-size: 14.5px; font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
.wmb-chips a:hover { border-color: var(--wmb-brand); color: var(--wmb-brand); }
.wmb-chips a.is-active { background: var(--wmb-ink); border-color: var(--wmb-ink); color: #fff; }

/* ---------- Post grid ---------- */
.wmb-main { margin: 0; padding: 24px 0 72px; }
.wmb-query { max-width: 1200px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.wmb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wmb-grid > li { margin: 0; display: flex; }
.wmb-card {
	display: flex; flex-direction: column; width: 100%; margin: 0; background: #fff; border: 1px solid var(--wmb-line);
	border-radius: var(--wmb-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wmb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .10); border-color: #c7d2fe; }
.wmb-thumb { margin: 0 !important; overflow: hidden; background: var(--wmb-tint); }
.wmb-thumb a { display: block; }
.wmb-thumb img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .35s ease; }
.wmb-card:hover .wmb-thumb img { transform: scale(1.03); }
.wmb-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 24px; margin: 0 !important; }
.wmb-body > * { margin: 0 !important; }
.wmb-title { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; color: var(--wmb-ink); }
.wmb-title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease, color .2s; }
.wmb-card:hover .wmb-title a { color: var(--wmb-brand); background-size: 100% 2px; }
.wmb-excerpt p { margin: 0; color: var(--wmb-muted); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wmb-excerpt .wp-block-post-excerpt__more-text { display: none; }
.wmb-body .wmb-date { margin-top: auto !important; padding-top: 4px; font-size: 13.5px; }

/* First post of each page as a large featured card */
.wmb-query--feature .wmb-grid > li:first-child { grid-column: 1 / -1; }
.wmb-query--feature .wmb-grid > li:first-child .wmb-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.wmb-query--feature .wmb-grid > li:first-child .wmb-thumb { margin: 16px !important; border-radius: 14px; }
.wmb-query--feature .wmb-grid > li:first-child .wmb-body { justify-content: center; padding: 28px 40px 28px 24px; gap: 16px; }
.wmb-query--feature .wmb-grid > li:first-child .wmb-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; }
.wmb-query--feature .wmb-grid > li:first-child .wmb-excerpt p { font-size: 17px; -webkit-line-clamp: 4; }
.wmb-query--feature .wmb-grid > li:first-child .wmb-body .wmb-date { margin-top: 6px !important; }

/* Pagination */
.wmb-pagination { margin: 56px 0 0 !important; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.wmb-pagination .page-numbers, .wmb-pagination .wp-block-query-pagination-previous, .wmb-pagination .wp-block-query-pagination-next {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; box-sizing: border-box;
	border: 1px solid var(--wmb-line); border-radius: 12px; background: #fff; color: var(--wmb-text); font-weight: 700; font-size: 15px; text-decoration: none; margin: 0;
}
.wmb-pagination .wp-block-query-pagination-numbers { display: flex; gap: 8px; margin: 0; }
.wmb-pagination a:hover { border-color: var(--wmb-brand); color: var(--wmb-brand); }
.wmb-pagination .page-numbers.current { background: var(--wmb-brand); border-color: var(--wmb-brand); color: #fff; }
.wmb-pagination .page-numbers.dots { border: 0; background: none; min-width: 20px; }

/* Bottom call to action */
.wmb-cta-band { padding: 0 0 80px; margin: 0; }
.wmb-cta {
	position: relative; overflow: hidden; border-radius: 24px; padding: 48px 52px; color: #fff;
	background: radial-gradient(520px 320px at 88% 0%, rgba(99, 102, 241, .55), transparent 70%), linear-gradient(135deg, #0a0d1c 0%, #111a3e 60%, #1e2a6b 100%);
	display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
}
.wmb-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.wmb-cta p { color: #c3cdf5; font-size: 17px; line-height: 1.6; margin: 12px 0 0; }
.wmb-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.wmb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-weight: 800; font-size: 15.5px; line-height: 1; text-decoration: none; transition: transform .15s, background .15s; }
.wmb-btn:hover { transform: translateY(-2px); }
.wmb-btn-primary { background: #ffd23f; color: #1e1b0b; }
.wmb-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* ---------- Single post ---------- */
.wmb-single { margin: 0; padding: 0; }
.wmb-top {
	margin: 0; padding: 48px 24px 0;
	background:
		radial-gradient(900px 420px at 10% 0%, rgba(99, 102, 241, .13), transparent 70%),
		radial-gradient(760px 420px at 92% 10%, rgba(255, 91, 36, .08), transparent 70%),
		linear-gradient(180deg, #f7f8ff 0%, #ffffff 78%);
}
.wmb-head { max-width: 860px; margin: 0 auto !important; text-align: center; }
.wmb-head > * { margin-top: 0; margin-bottom: 0; }
.wmb-crumbs { display: flex; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--wmb-muted); margin-bottom: 18px !important; }
.wmb-crumbs a { color: var(--wmb-muted); text-decoration: none; }
.wmb-crumbs a:hover { color: var(--wmb-brand); }
.wmb-head .wmb-cats { justify-content: center; }
.wmb-h1 { font-size: clamp(32px, 4.4vw, 52px) !important; line-height: 1.12 !important; letter-spacing: -.028em !important; font-weight: 800 !important; color: var(--wmb-ink); margin-top: 18px !important; }
.wmb-dek { margin-top: 18px !important; }
.wmb-dek p { font-size: 19px; line-height: 1.6; color: var(--wmb-muted); margin: 0; }
.wmb-dek .wp-block-post-excerpt__more-text { display: none; }
.wmb-byline { justify-content: center; align-items: center; gap: 10px !important; margin-top: 24px !important; font-size: 15px; }
.wmb-byline .wp-block-avatar img { border-radius: 50%; display: block; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.wmb-byline .wp-block-post-author-name { font-weight: 700; color: var(--wmb-ink); text-transform: none; }
.wmb-byline .wp-block-post-author-name::after { content: "·"; margin-left: 10px; color: #cbd5e1; font-weight: 400; }
.wmb-byline .wmb-date { font-size: 15px; white-space: nowrap; }
.wmb-read { white-space: nowrap; }
.wmb-cover { max-width: 1100px; margin: 36px auto 0 !important; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .16); }
.wmb-cover img { display: block; width: 100%; height: auto; }

.wmb-layout { max-width: 1180px; margin: 56px auto 0 !important; padding-inline: 24px; display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 64px; justify-content: center; align-items: start; box-sizing: border-box; }
.wmb-layout.no-toc { grid-template-columns: minmax(0, 760px); }
.wmb-layout.no-toc .wmb-toc { display: none; }
.wmb-toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow: auto; margin: 0; font-size: 14px; }
.wmb-toc-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wmb-muted); margin: 0 0 10px; }
.wmb-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--wmb-line); }
.wmb-toc li { margin: 0; }
.wmb-toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--wmb-muted); text-decoration: none; line-height: 1.4; font-weight: 600; }
.wmb-toc a:hover { color: var(--wmb-ink); }
.wmb-toc a.is-active { border-left-color: var(--wmb-brand); color: var(--wmb-brand); }
.wmb-share { display: flex; gap: 8px; align-items: center; margin-top: 24px; }
.wmb-share-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wmb-muted); margin-right: 4px; }
.wmb-share a, .wmb-share button {
	width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--wmb-line); background: #fff; color: var(--wmb-text);
	display: inline-grid; place-items: center; cursor: pointer; padding: 0; text-decoration: none; transition: border-color .15s, color .15s;
}
.wmb-share a:hover, .wmb-share button:hover { border-color: var(--wmb-brand); color: var(--wmb-brand); }
.wmb-share svg { width: 16px; height: 16px; fill: currentColor; }
.wmb-share button.is-copied { border-color: #16a34a; color: #16a34a; }
.wmb-share--inline { display: none; margin: 40px 0 0; }

.wmb-article { margin: 0 !important; min-width: 0; }

/* Article typography */
.wmb-content { color: var(--wmb-text); }
.wmb-content > * { max-width: 100%; }
.wmb-content p, .wmb-content li { line-height: 1.75; color: var(--wmb-text); }
.wmb-content h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.22; font-weight: 800; letter-spacing: -.022em; color: var(--wmb-ink); margin: 2.1em 0 .6em; scroll-margin-top: 100px; }
.wmb-content h3 { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; color: var(--wmb-ink); margin: 1.8em 0 .5em; scroll-margin-top: 100px; }
.wmb-content h4 { font-size: 18px; font-weight: 800; color: var(--wmb-ink); }
.wmb-content > :first-child { margin-top: 0; }
.wmb-content a:not(.wp-block-button__link) { color: var(--wmb-brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(79, 70, 229, .35); }
.wmb-content a:not(.wp-block-button__link):hover { color: var(--wmb-brand-dark); text-decoration-color: currentColor; }
.wmb-content strong { color: var(--wmb-ink); }
.wmb-content ul, .wmb-content ol { padding-left: 1.3em; }
.wmb-content li { margin: .45em 0; font-size: 18px; }
.wmb-content li::marker { color: var(--wmb-brand); font-weight: 700; }
.wmb-content figure.wp-block-image { margin: 2em 0; }
.wmb-content figure.wp-block-image img { border-radius: 14px; border: 1px solid var(--wmb-line); height: auto; }
.wmb-content figcaption, .wmb-content .wp-element-caption { text-align: center; color: var(--wmb-muted); font-size: 14px; line-height: 1.5; margin-top: 10px; }
.wmb-content .wp-block-table { margin: 2em 0; overflow-x: auto; }
.wmb-content .wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--wmb-line); border-radius: 14px; overflow: hidden; font-size: 15.5px; }
.wmb-content .wp-block-table th { background: var(--wmb-soft); color: var(--wmb-ink); font-weight: 800; text-align: left; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--wmb-line); }
.wmb-content .wp-block-table td { padding: 13px 16px; border: 0; border-top: 1px solid var(--wmb-line); line-height: 1.55; vertical-align: top; }
.wmb-content .wp-block-table tbody tr:first-child td { border-top: 0; }
.wmb-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #fafbff; }
.wmb-content .wp-block-table.is-style-stripes { border-bottom: 0; }
.wmb-content details.wp-block-details { border: 1px solid var(--wmb-line); border-radius: 14px; background: #fff; padding: 0; margin: 12px 0; transition: border-color .15s, box-shadow .15s; }
.wmb-content details.wp-block-details[open] { border-color: #c7d2fe; box-shadow: 0 10px 26px rgba(79, 70, 229, .08); }
.wmb-content details.wp-block-details summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 800; font-size: 17px; color: var(--wmb-ink); position: relative; line-height: 1.4; }
.wmb-content details.wp-block-details summary::-webkit-details-marker { display: none; }
.wmb-content details.wp-block-details summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--wmb-tint); color: var(--wmb-brand); display: grid; place-items: center; font-size: 20px; font-weight: 700; line-height: 1; }
.wmb-content details.wp-block-details[open] summary::after { content: "−"; }
.wmb-content details.wp-block-details > :not(summary) { margin: 0 20px 18px; }
.wmb-content pre.wp-block-code { background: #0f172a; color: #e2e8f0; border: 0; border-radius: 12px; padding: 18px 22px; overflow-x: auto; }
.wmb-content pre.wp-block-code code { color: inherit; background: none; font-size: 15px; }
.wmb-content :not(pre) > code { background: var(--wmb-tint); color: var(--wmb-brand-dark); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.wmb-content blockquote { border-left: 4px solid var(--wmb-brand); background: var(--wmb-soft); margin: 2em 0; padding: 18px 24px; border-radius: 0 14px 14px 0; }
.wmb-content hr.wp-block-separator { border: 0; border-top: 1px solid var(--wmb-line); margin: 3em 0; }
.wmb-content .wp-block-buttons { margin: 2em 0; }
.wmb-content .wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid var(--wmb-brand); color: var(--wmb-brand); background: transparent; }

/* Author box and CTA inside the article */
.wmb-author { display: flex; gap: 18px; align-items: flex-start; margin: 56px 0 0; padding: 26px 28px; border: 1px solid var(--wmb-line); border-radius: var(--wmb-radius); background: var(--wmb-soft); }
.wmb-author img { width: 56px; height: 56px; border-radius: 14px; flex: none; background: #fff; border: 1px solid var(--wmb-line); }
.wmb-author-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wmb-muted); margin: 0; }
.wmb-author h3 { font-size: 20px; font-weight: 800; color: var(--wmb-ink); margin: 2px 0 6px; letter-spacing: -.01em; }
.wmb-author p { font-size: 15.5px; line-height: 1.65; color: var(--wmb-text); margin: 0; }
.wmb-author a { color: var(--wmb-brand); font-weight: 700; text-decoration: none; }
.wmb-article .wmb-cta { margin-top: 32px; grid-template-columns: 1fr; padding: 36px 36px; }

/* Comments */
.wmb-comments { margin: 56px 0 0 !important; }
.wmb-comments .comment-reply-title, .wmb-comments .wp-block-comments-title { font-size: 22px; font-weight: 800; color: var(--wmb-ink); }
.wmb-comments input[type="text"], .wmb-comments input[type="email"], .wmb-comments input[type="url"], .wmb-comments textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--wmb-line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; }
.wmb-comments input:focus, .wmb-comments textarea:focus { outline: 2px solid #c7d2fe; border-color: var(--wmb-brand); }
.wmb-comments .submit, .wmb-comments input[type="submit"] { background: var(--wmb-brand); color: #fff; border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 800; cursor: pointer; }

/* Related posts */
.wmb-related { margin: 80px 0 0 !important; padding: 64px 0 80px; background: var(--wmb-soft); border-top: 1px solid var(--wmb-line); }
.wmb-related-title { text-align: center; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; color: var(--wmb-ink); margin: 0 0 32px; }
.wmb-rel-query .wmb-grid > li:nth-child(n+4) { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.wmb-layout { grid-template-columns: minmax(0, 760px); }
	.wmb-toc { display: none; }
	.wmb-share--inline { display: flex; }
}
@media (max-width: 960px) {
	.wmb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.wmb-query--feature .wmb-grid > li:first-child .wmb-card { grid-template-columns: 1fr; }
	.wmb-query--feature .wmb-grid > li:first-child .wmb-thumb { margin: 0 !important; border-radius: 0; }
	.wmb-query--feature .wmb-grid > li:first-child .wmb-body { padding: 24px 26px 28px; }
	.wmb-cta { grid-template-columns: 1fr; padding: 36px 32px; }
}
@media (max-width: 640px) {
	.wmb-hero { padding: 44px 0 28px; }
	.wmb-wrap, .wmb-query { padding-inline: 16px; }
	.wmb-grid { grid-template-columns: 1fr; gap: 18px; }
	.wmb-body { padding: 18px 18px 20px; }
	.wmb-title { font-size: 19px; }
	.wmb-top { padding: 32px 16px 0; }
	.wmb-cover { border-radius: 14px; margin-top: 26px !important; }
	.wmb-layout { padding-inline: 16px; margin-top: 36px !important; }
	.wmb-author { flex-direction: column; padding: 22px; }
	.wmb-cta { padding: 30px 22px; border-radius: 18px; }
	.wmb-related { padding: 48px 0 56px; }
	.wmb-search button { padding: 10px 14px; }
}
