/*
Theme Name: Peoplewisher Blog
Theme URI: https://peoplewisher.com/blog/
Author: Peoplewisher
Author URI: https://peoplewisher.com
Description: A clean, fast blog theme for Peoplewisher, matching peoplewisher.com. Built-in Peoplewisher calls to action, and ads from Mission Control › Ads (sidebar, in-article and post-list cards) when "Ads on the blog" is on.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: peoplewisher-blog
*/

/* ── Tokens (same as peoplewisher.com) ─────────────────────────────── */
:root {
  --ink: #0b0b0f;
  --ink-2: #3a3a44;
  --mute: #6b6b78;
  --line: #ececf1;
  --paper: #ffffff;
  --cloud: #f7f7fa;
  --brand-50: #f6f3ff;
  --brand-100: #ede7ff;
  --brand-200: #ddd1ff;
  --brand-500: #8b5cf6;
  --brand-600: #7c3aed;
  --brand-700: #6528d3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 16, 32, .04), 0 8px 24px -12px rgba(16, 16, 32, .12);
  --shadow-lg: 0 2px 4px rgba(16, 16, 32, .04), 0 24px 48px -20px rgba(40, 20, 90, .22);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--brand-200); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-700); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--mute); font-size: 13.5px; }
.section-title { margin: 56px 0 20px; font-size: 22px; letter-spacing: -.02em; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.12); }
.btn--primary:hover { background: #26262e; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #26262e; }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { background: var(--cloud); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-50); }
.btn--outline-light { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--outline-light:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.icon-btn:hover { border-color: #d9d9e3; color: var(--ink); background: var(--cloud); }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img, .custom-logo { width: auto; height: 32px; }
.site-header__section { padding-left: 12px; border-left: 1px solid var(--line); color: var(--mute); font-size: 15px; font-weight: 500; }
.site-header__section:hover { color: var(--ink); }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 450; transition: background .2s, color .2s; }
.site-nav__list a:hover { background: var(--cloud); color: var(--ink); }
.site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a { color: var(--ink); font-weight: 500; }
.site-nav__actions { display: flex; align-items: center; gap: 6px; }
.site-header__tools { display: flex; gap: 8px; margin-left: auto; }
.site-header__toggle { display: none; }
@media (min-width: 1024px) { .site-header__tools { order: 3; margin-left: 0; } .site-nav { order: 2; } }
@media (max-width: 1023px) {
  .site-header__toggle { display: inline-grid; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - var(--header-h)); overflow: auto; padding: 16px 16px 24px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
  .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: 12px; font-size: 16px; }
  .site-nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .site-nav__actions .btn { height: 46px; }
}
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 16px 0; }
.search-form { position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; height: 52px; padding: 0 6px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.search-form:focus-within { border-color: var(--brand-200); box-shadow: 0 0 0 4px var(--brand-50); }
.search-form > .icon { color: var(--mute); }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.read-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-500), #c084fc); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Hero (blog home / archives) ───────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; z-index: -1; height: 520px; background: radial-gradient(closest-side, rgba(139, 92, 246, .14), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(192, 132, 252, .12), transparent 70%); pointer-events: none; }
.hero--compact { padding: 56px 0 24px; }
.hero__title { max-width: 820px; margin-top: 14px; font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -.04em; line-height: 1.02; }
.hero--compact .hero__title { font-size: clamp(30px, 4.2vw, 44px); }
.hero__text { max-width: 620px; margin-top: 18px; color: var(--mute); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; text-wrap: pretty; }
.hero__search { margin-top: 28px; }
.chips { display: flex; gap: 8px; margin-top: 32px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: #d9d9e3; color: var(--ink); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ── Cards & grid ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cloud); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-50), #fff 60%, var(--brand-100)); color: var(--brand-500); }
.card__body { display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.card:hover .card__title a { background-size: 100% 1px; }
.card__excerpt { color: var(--mute); font-size: 16px; line-height: 1.6; }
.featured { margin-top: 16px; }
.card--lg { gap: 24px; }
@media (min-width: 900px) {
  .card--lg { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
}
.card--lg .card__media { aspect-ratio: 16 / 9.5; border-radius: 20px; box-shadow: var(--shadow-lg); }
.card--lg .card__title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.1; }
.card--lg .card__body { gap: 14px; }

/* ── Pagination ────────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 56px 0 8px; }
.pagination .page-numbers, .pagination > span, .pagination > a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.pagination a:hover { border-color: #d9d9e3; background: var(--cloud); }
.pagination .current { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination .dots { border: 0; }

/* ── Empty state ───────────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; gap: 12px; padding: 64px 0; color: var(--mute); text-align: center; }
.empty__title { color: var(--ink); font-size: 20px; font-weight: 600; }

/* ── Article ───────────────────────────────────────────────────────── */
.article__head { max-width: 860px; padding-top: 56px; text-align: center; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--mute); font-size: 13.5px; font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.crumbs > span > span { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.article__title { margin-top: 18px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.04em; line-height: 1.05; }
.article__lede { max-width: 680px; margin: 20px auto 0; color: var(--mute); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; text-wrap: pretty; }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; text-align: left; }
.byline__avatar, .byline img { width: 40px; height: 40px; border-radius: 50%; }
.byline__name { display: block; font-size: 14.5px; font-weight: 600; }
.byline .meta { font-size: 13px; }
.article__hero { max-width: 1200px; margin-top: 40px; }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }

.article__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 48px; }
@media (min-width: 1080px) { .article__layout { grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 48px; } }
@media (min-width: 1240px) { .article__layout { grid-template-columns: 220px minmax(0, 700px) 300px; justify-content: space-between; } }
.article__body { min-width: 0; }
.article__toc, .article__side { display: none; }
@media (min-width: 1080px) {
  .article__toc { display: block; }
  .article__toc > * { position: sticky; top: calc(var(--header-h) + 32px); }
  .article__side { display: block; }
  .article__side-sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
}
.toc { margin-bottom: 28px; }
.toc__title { margin-bottom: 12px; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); list-style: none; }
.toc a { display: block; margin-left: -13px; padding: 5px 0 5px 12px; border-left: 1px solid transparent; color: var(--mute); font-size: 13.5px; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--brand-600); color: var(--ink); font-weight: 500; }
.toc .toc__sub a { padding-left: 24px; font-size: 13px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share .toc__title { flex-basis: 100%; margin-bottom: 4px; }
.share .is-copied { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-700); }
.article__toc .toc + .share { position: static; }

/* ── Prose ─────────────────────────────────────────────────────────── */
.prose { color: var(--ink-2); font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.2em; color: var(--ink); font-size: 1.6em; letter-spacing: -.03em; line-height: 1.2; }
.prose h3 { margin-top: 1.9em; color: var(--ink); font-size: 1.25em; letter-spacing: -.02em; line-height: 1.3; }
.prose h4 { margin-top: 1.6em; color: var(--ink); font-size: 1.05em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--brand-700); text-decoration: underline; text-decoration-color: var(--brand-200); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand-500); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand-500); color: var(--ink); font-size: 1.08em; }
.prose blockquote cite { display: block; margin-top: 8px; color: var(--mute); font-size: .85em; font-style: normal; }
.prose img, .prose video, .prose iframe { max-width: 100%; border-radius: 14px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 10px; color: var(--mute); font-size: 14px; text-align: center; }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: .15em .4em; border-radius: 6px; background: var(--cloud); color: var(--ink); font: .88em var(--mono); }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: #0f0f15; color: #e8e8f0; font: 14px/1.6 var(--mono); }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--cloud); }
.prose .wp-block-button__link, .prose .wp-element-button { display: inline-flex; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; }
.prose .alignwide { max-width: none; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .wp-block-image img, .prose figure > img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.prose figure.wp-block-image { margin: 2em 0; }
.prose--page { max-width: 760px; margin-inline: auto; font-size: 17px; }
.prose .has-background { padding: 20px 24px; border-radius: 14px; }
@media (max-width: 640px) { .prose { font-size: 17px; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* End-of-article Peoplewisher call to action */
.end-cta { position: relative; display: grid; gap: 20px; margin-top: 56px; padding: 32px; overflow: hidden; border: 1px solid var(--brand-100); border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, var(--brand-100), transparent 55%), linear-gradient(180deg, var(--brand-50), #fff); }
@media (min-width: 720px) { .end-cta { grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 36px 40px; } }
.end-cta__title { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.end-cta__text { margin-top: 8px; color: var(--mute); font-size: 15.5px; }

.author-box { display: flex; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.author-box img { width: 56px; height: 56px; border-radius: 50%; }
.author-box__name { font-weight: 600; }
.author-box__bio { margin-top: 4px; color: var(--mute); font-size: 15px; }

.related { margin-top: 32px; padding: 8px 0 24px; }
.page-article__head { max-width: 760px; padding-top: 56px; padding-bottom: 32px; }
.page-article__head .article__title { margin-top: 0; font-size: clamp(30px, 4vw, 44px); }
.page-article__head .meta { margin-top: 12px; }

/* ── Built-in Peoplewisher card (sidebar) ──────────────────────────── */
.promo { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.promo__badge { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 600; }
.promo__title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.promo__text { color: var(--mute); font-size: 14px; line-height: 1.55; }
.promo__points { display: grid; gap: 6px; margin: 2px 0 6px; padding: 0; list-style: none; color: var(--ink-2); font-size: 13.5px; }
.promo__points li { display: flex; align-items: center; gap: 8px; }
.promo__points .icon { color: var(--brand-600); }

/* ── Mission Control ads ───────────────────────────────────────────── */
.pwb-ad { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pwb-ad__tag { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--mute); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); }
.pwb-ad__media { display: block; overflow: hidden; background: var(--cloud); }
.pwb-ad__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pwb-ad:hover .pwb-ad__media img { transform: scale(1.03); }
.pwb-ad__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.pwb-ad__title { color: var(--ink); font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.pwb-ad__text { color: var(--mute); font-size: 14px; line-height: 1.55; }
.pwb-ad__btn { justify-self: start; margin-top: 6px; }
.pwb-ad__body:empty { display: none; }
.pwb-ad__media + .pwb-ad__body:empty { display: none; }
/* No image: tag sits in the flow */
.pwb-ad:not(:has(.pwb-ad__media)) .pwb-ad__tag { position: static; justify-self: start; margin: 16px 20px -6px; padding: 0; background: none; }
/* Sidebar */
.pwb-ad--sidebar .pwb-ad__media { aspect-ratio: 16 / 10; }
/* In the post list: a full-width row between posts, so the grid's rows stay whole */
.grid { grid-auto-flow: row dense; }
.pwb-ad--feed { grid-column: 1 / -1; background: var(--cloud); border-color: transparent; }
@media (min-width: 700px) {
  .pwb-ad--feed { flex-direction: row; align-items: stretch; min-height: 200px; }
  .pwb-ad--feed .pwb-ad__media { flex: none; width: min(42%, 420px); }
  .pwb-ad--feed .pwb-ad__body { align-content: center; padding: 32px 40px; }
}
.pwb-ad--feed .pwb-ad__media { aspect-ratio: auto; min-height: 180px; }
.pwb-ad--feed .pwb-ad__title { font-size: clamp(19px, 2vw, 24px); letter-spacing: -.025em; }
.pwb-ad--feed .pwb-ad__text { max-width: 560px; font-size: 15px; }
.pwb-ad--feed:not(:has(.pwb-ad__media)) { flex-direction: column; justify-content: center; border: 1px solid var(--brand-100); background: radial-gradient(120% 140% at 100% 0%, var(--brand-100), transparent 55%), linear-gradient(180deg, var(--brand-50), #fff); }
.pwb-ad--feed:not(:has(.pwb-ad__media)) .pwb-ad__body { padding: 8px 40px 32px; }
.pwb-ad--feed:not(:has(.pwb-ad__media)) .pwb-ad__tag { margin: 28px 40px 0; }
/* In an article */
.prose .pwb-ad--inline { margin: 2.2em 0; font-size: 16px; line-height: 1.55; }
.pwb-ad--inline { flex-direction: row; align-items: stretch; background: var(--cloud); border-color: transparent; }
.pwb-ad--inline .pwb-ad__media { flex: none; width: 34%; min-height: 150px; }
.pwb-ad--inline .pwb-ad__body { align-content: center; padding: 22px 24px; }
.pwb-ad--inline .pwb-ad__tag { background: rgba(255,255,255,.92); }
.pwb-ad--inline:not(:has(.pwb-ad__media)) { flex-direction: column; }
.prose .pwb-ad a { color: inherit; text-decoration: none; }
.prose .pwb-ad .pwb-ad__btn { color: #fff; }
.prose .pwb-ad img { border-radius: 0; }
@media (max-width: 560px) { .pwb-ad--inline { flex-direction: column; } .pwb-ad--inline .pwb-ad__media { width: 100%; aspect-ratio: 16 / 9; min-height: 0; } }

/* ── Footer ────────────────────────────────────────────────────────── */
.cta-band { margin-top: 96px; padding: 0 16px; }
.cta-band__inner { position: relative; display: grid; gap: 28px; padding: 48px 28px; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff; }
.cta-band__inner::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 360px; background: radial-gradient(closest-side, rgba(139, 92, 246, .55), transparent 70%); pointer-events: none; }
.cta-band__inner > * { position: relative; }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; padding: 64px; } }
.cta-band__title { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.035em; line-height: 1.08; }
.cta-band__text { max-width: 560px; margin-top: 14px; color: rgba(255,255,255,.7); font-size: 16.5px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--mute); font-size: 14.5px; }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__about { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
@media (min-width: 860px) { .site-footer__about { grid-column: auto; } }
.site-footer__about .brand { justify-self: start; }
.site-footer__social { display: flex; gap: 8px; }
.site-footer__h { margin-bottom: 14px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a:hover { color: var(--ink); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.site-footer__bottom a:hover { color: var(--ink); }

/* ── Comments & widgets ────────────────────────────────────────────── */
.comments { margin-top: 48px; }
.comment-list { padding: 0; list-style: none; }
.comment-list .comment { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.comment-list .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-form { display: grid; gap: 14px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.side-widget { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; }
.side-widget__title { margin-bottom: 12px; font-size: 14px; }
.side-widget ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* WordPress core classes */
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }
.alignnone { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
