/* ==========================================================================
   Blog (2026) — home.php, archive.php, search.php, single.php, author.php.
   Built on sx-system.css tokens. Prefix: .sxbl-
   ========================================================================== */

.sxbl { background: #fff; color: var(--sx-ink); font-family: var(--sx-font-body); }
.sxbl .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sxbl h1, .sxbl h2, .sxbl h3 { text-transform: none; }
.sxbl-section { position: relative; isolation: isolate; padding: clamp(48px, 6vw, 88px) 0; }
.sxbl-section--tint { background: var(--sx-canvas); }
.sxbl .sxbl-h2 { margin: 0 0 clamp(22px, 3vw, 34px); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; }

.sxbl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--sx-muted); font-size: 13.5px; }
.sxbl-crumbs a { color: var(--sx-muted) !important; text-decoration: none !important; }
.sxbl-crumbs a:hover { color: var(--sx-brand) !important; }
.sxbl-crumbs [aria-current] { color: var(--sx-ink); font-weight: 600; }

/* ── Listing hero ───────────────────────────────────────────────────────── */

.sxbl-hero { position: relative; isolation: isolate; padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--sx-line); background: var(--sx-canvas); }
.sxbl-hero__inner { position: relative; z-index: 1; }
.sxbl-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.sxbl .sxbl-hero__title { margin: 10px 0 0; font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.sxbl-hero__lead { max-width: 760px; margin: 18px 0 0; color: var(--sx-muted); font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.65; }

.sxbl-search { position: relative; display: flex; align-items: center; flex: 0 1 380px; min-width: 260px; }
.sxbl-search svg { position: absolute; left: 18px; color: var(--sx-muted); pointer-events: none; }
.sxbl-search input[type="search"] { box-sizing: border-box; width: 100%; height: 52px; margin: 0; padding: 0 18px 0 46px !important; border: 1px solid var(--sx-line) !important; border-radius: 999px; background: #fff; color: var(--sx-ink); font: inherit; font-size: 16px; box-shadow: 0 1px 2px rgba(35, 28, 80, .04); }
.sxbl-search input[type="search"]:focus { outline: none; border-color: var(--sx-brand) !important; box-shadow: 0 0 0 4px rgba(101, 88, 153, .16); }

.sxbl-cats { margin-top: clamp(22px, 3vw, 34px); }
.sxbl-cats ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sxbl-cats li { margin: 0; }
.sxbl-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--sx-line); border-radius: 999px; background: #fff; color: var(--sx-ink) !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; transition: border-color .2s ease, background-color .2s ease; }
.sxbl-cats a:hover { border-color: var(--sx-brand); }
.sxbl-cats a[aria-current] { border-color: var(--sx-brand-deep); background: var(--sx-brand-deep); color: #fff !important; }
.sxbl-cats__n { color: var(--sx-muted); font-weight: 500; }
.sxbl-cats a[aria-current] .sxbl-cats__n { color: rgba(255, 255, 255, .7); }

.sxbl-before { padding-top: clamp(28px, 3vw, 40px); }
.sxbl-before > * { margin: 0 !important; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.sxbl-label { margin: 0 0 14px; color: var(--sx-brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sxbl-featured { margin-bottom: clamp(40px, 5vw, 64px); }
.sxbl-list__title { margin-top: 0; }
.sxbl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.sxbl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); background: #fff; transition: border-color .25s var(--sx-ease), box-shadow .25s var(--sx-ease), transform .25s var(--sx-ease); }
.sxbl-card:hover { border-color: rgba(101, 88, 153, .5); box-shadow: 0 22px 40px -30px rgba(47, 39, 83, .55); transform: translateY(-3px); }
.sxbl-card:focus-within { border-color: var(--sx-brand); box-shadow: 0 0 0 3px rgba(101, 88, 153, .25); }
.sxbl-card__media { aspect-ratio: 16 / 9; margin: 10px 10px 0; overflow: hidden; border-radius: 18px; background: var(--sx-tint); }
.sxbl-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sx-ease); }
.sxbl-card:hover .sxbl-card__media img { transform: scale(1.03); }
.sxbl-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 22px 22px; }
.sxbl-pill { position: relative; z-index: 2; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--sx-tint); color: var(--sx-brand-deep) !important; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-decoration: none !important; text-transform: uppercase; }
.sxbl-pill:hover { background: var(--sx-lime); }
.sxbl .sxbl-card__title { margin: 0; font-family: var(--sx-font-body); font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.005em; }
.sxbl-card__link { color: var(--sx-ink) !important; text-decoration: none !important; }
.sxbl-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* whole card clickable, one link */
.sxbl-card__link:focus-visible { outline: none; }
.sxbl-card__excerpt { margin: 0; color: var(--sx-muted); font-size: 15px; line-height: 1.6; }
.sxbl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding-top: 4px; color: var(--sx-muted); font-size: 13.5px; font-weight: 600; }
.sxbl-meta__item { display: inline-flex; align-items: center; gap: 7px; }
.sxbl-meta__item svg { flex: 0 0 auto; color: var(--sx-brand); }

.sxbl-card--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.sxbl-card--featured .sxbl-card__media { aspect-ratio: 16 / 10; margin: 12px; }
.sxbl-card--featured .sxbl-card__body { gap: 16px; padding: clamp(22px, 3vw, 44px); }
.sxbl .sxbl-card--featured .sxbl-card__title { font-family: var(--sx-font-title); font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1.05; }
.sxbl-card--featured .sxbl-card__excerpt { font-size: 16.5px; }

/* Pagination */
.sxbl-pager { margin-top: clamp(32px, 4vw, 48px); }
.sxbl-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sxbl-pager li { margin: 0; }
.sxbl-pager li > a, .sxbl-pager li > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-width: 46px; height: 46px; padding: 0 16px; box-sizing: border-box; border: 1px solid var(--sx-line); border-radius: 999px; background: #fff; color: var(--sx-ink) !important; font-weight: 700; text-decoration: none !important; }
.sxbl-pager li > a:hover { border-color: var(--sx-brand); color: var(--sx-brand) !important; }
.sxbl-pager .current { border-color: var(--sx-brand-deep); background: var(--sx-brand-deep); color: #fff !important; }
.sxbl-pager .dots { min-width: 24px; padding: 0 4px; border: 0; background: transparent; }
.sxbl-pager .prev, .sxbl-pager .next { padding: 0 20px; }
.sxbl-empty { color: var(--sx-muted); }
.sxbl-empty a { color: var(--sx-brand) !important; font-weight: 700; }

/* FAQ */
.sxbl-faq { background: var(--sx-canvas); }
.sxbl-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 20px 56px; align-items: start; }
.sxbl-faq__list { display: grid; gap: 10px; }
.sxbl-faq__item { border: 1px solid var(--sx-line); border-radius: 18px; background: #fff; }
.sxbl-faq__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.sxbl-faq__item > summary::-webkit-details-marker { display: none; }
.sxbl-faq__item > summary::after { content: ''; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.sxbl-faq__item[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.sxbl .sxbl-faq__item h3 { margin: 0; font-family: var(--sx-font-body); font-size: 17px; font-weight: 700; line-height: 1.35; }
.sxbl-faq__item p { margin: 0; padding: 0 20px 18px; color: #3a3d48; font-size: 15.5px; line-height: 1.65; }

/* Dark CTA band */
.sxbl-band { background: radial-gradient(120% 140% at 0% 0%, #6d5fae 0%, var(--sx-brand-mid) 35%, var(--sx-brand-deep) 100%); color: #fff; }
.sxbl-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.sxbl-band .sx-eyebrow { color: var(--sx-lime); }
.sxbl .sxbl-band .sxbl-h2 { max-width: 720px; margin-bottom: 12px; color: #fff !important; }
.sxbl-band__text { max-width: 640px; margin: 0; color: rgba(255, 255, 255, .8); font-size: 16.5px; line-height: 1.6; }
.sxbl-band__text p { margin: 0 0 8px; }
.sxbl-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sxbl-band__actions .sx-btn { height: 52px; font-size: 16px; }
.sxbl-band__actions .sx-btn--main { padding: 0 15px 0 26px; font-weight: 700; }
.sxbl-band__actions .sx-btn--glass { padding: 0 24px; }

/* ── Single post ────────────────────────────────────────────────────────── */

.sxbl-post-hero { position: relative; isolation: isolate; padding: clamp(32px, 4.5vw, 64px) 0 clamp(28px, 3vw, 44px); background: var(--sx-canvas); }
.sxbl-post-hero__inner { position: relative; z-index: 1; max-width: 980px; }
.sxbl .sxbl-post-hero__title { margin: 0; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; }
.sxbl-post-hero__lead { max-width: 820px; margin: 18px 0 0; color: var(--sx-muted); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }

.sxbl-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sx-line); }
.sxbl-byline__avatars { display: flex; }
.sxbl-byline__avatars > * + * { margin-left: -12px; }
.sxbl-avatar { display: block; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; background: var(--sx-tint); object-fit: cover; }
.sxbl-avatar--logo { display: grid; place-items: center; color: var(--sx-brand-deep); font-weight: 800; }
.sxbl-byline__text { display: grid; gap: 3px; flex: 1; min-width: 220px; }
.sxbl-byline__names { margin: 0; color: var(--sx-muted); font-size: 15px; }
.sxbl-byline__names a { color: var(--sx-ink) !important; font-weight: 700; text-decoration: none !important; }
.sxbl-byline__names a:hover { color: var(--sx-brand) !important; }
.sxbl-byline .sxbl-meta { margin: 0; padding: 0; font-weight: 500; }

.sxbl-share-group { display: flex; align-items: center; gap: 10px; }
.sxbl-share__label { margin: 0; color: var(--sx-muted); font-size: 14px; }
.sxbl-share { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sxbl-share li { margin: 0; }
.sxbl-share a, .sxbl-share button { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--sx-line); border-radius: 50%; background: #fff; color: var(--sx-brand-deep) !important; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.sxbl-share a:hover, .sxbl-share button:hover { border-color: var(--sx-brand); background: var(--sx-tint); }
.sxbl-share button.is-copied { border-color: var(--sx-lime); background: var(--sx-lime); }

.sxbl-cover { max-width: 1040px; margin: clamp(22px, 3vw, 36px) auto 0; }
.sxbl-cover img { display: block; width: 100%; height: auto; border-radius: var(--sx-radius-lg); }

.sxbl-post-layout { display: grid; grid-template-columns: 280px minmax(0, 760px); justify-content: center; gap: clamp(32px, 4.5vw, 72px); align-items: start; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.sxbl-post-layout--single .sxbl-aside { align-self: start; }
.sxbl-aside { position: sticky; top: calc(var(--sx-bar-h) + 24px); display: grid; gap: 18px; max-height: calc(100vh - var(--sx-bar-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.sxbl-toc__title { margin: 0 0 10px; color: var(--sx-muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sxbl-toc ol { margin: 0; padding: 0; list-style: none; }
.sxbl-toc li { margin: 0; }
.sxbl-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--sx-line); color: var(--sx-muted) !important; font-size: 14px; line-height: 1.4; text-decoration: none !important; transition: border-color .2s ease, color .2s ease; }
.sxbl-toc a:hover { color: var(--sx-ink) !important; }
.sxbl-toc a.is-active { border-left-color: var(--sx-brand); color: var(--sx-brand-deep) !important; font-weight: 700; }

.sxbl-cta { display: grid; gap: 8px; padding: 22px 20px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, #6d5fae 0%, var(--sx-brand-mid) 35%, var(--sx-brand-deep) 100%); color: #fff; }
.sxbl-cta__eyebrow { margin: 0; color: var(--sx-lime); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sxbl-cta__title { margin: 0; font-family: var(--sx-font-title); font-size: 24px; line-height: 1.1; }
.sxbl-cta__text { margin: 0 0 6px; color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.5; }
.sxbl-cta__btn { justify-content: space-between; width: 100%; box-sizing: border-box; height: 48px; padding: 0 12px 0 20px; font-size: 15px; font-weight: 700; }
.sxbl-cta__link { color: rgba(255, 255, 255, .85) !important; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none !important; }
.sxbl-cta__link:hover { color: #fff !important; }

/* Article typography (editor content) */
.sxbl-prose { color: #33363f; font-size: 17.5px; line-height: 1.75; overflow-wrap: break-word; }
.sxbl-prose > *:first-child { margin-top: 0; }
.sxbl-prose p { margin: 0 0 20px; }
.sxbl-prose a { color: var(--sx-brand) !important; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(101, 88, 153, .35); text-underline-offset: 3px; }
.sxbl-prose a:hover { text-decoration-color: currentColor; }
.sxbl-prose strong, .sxbl-prose b { color: var(--sx-ink); }
.sxbl .sxbl-prose h2 { scroll-margin-top: calc(var(--sx-bar-h) + 24px); margin: 52px 0 18px; font-family: var(--sx-font-title); font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.1; color: var(--sx-ink); }
.sxbl .sxbl-prose h3 { margin: 36px 0 12px; font-family: var(--sx-font-body); font-size: 21px; font-weight: 800; line-height: 1.3; color: var(--sx-ink); }
.sxbl .sxbl-prose h4 { margin: 28px 0 10px; font-family: var(--sx-font-body); font-size: 18px; font-weight: 800; color: var(--sx-ink); }
.sxbl-prose ul { margin: 0 0 22px; padding: 0; list-style: none; }
.sxbl-prose ul li { position: relative; margin: 0 0 10px; padding-left: 24px; }
.sxbl-prose ul li::before { content: ''; position: absolute; top: .72em; left: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--sx-brand); }
.sxbl-prose ol { margin: 0 0 22px; padding-left: 24px; }
.sxbl-prose ol li { margin: 0 0 10px; padding-left: 4px; }
.sxbl-prose ol li::marker { color: var(--sx-brand); font-weight: 800; }
.sxbl-prose blockquote, .sxbl-prose .wp-block-quote { margin: 28px 0; padding: 22px 26px; border: 0; border-left: 4px solid var(--sx-lime); border-radius: 0 18px 18px 0; background: var(--sx-canvas); color: var(--sx-ink); font-style: normal; }
.sxbl-prose blockquote p:last-child { margin-bottom: 0; }
.sxbl-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.sxbl-prose figure { margin: 30px 0; }
.sxbl-prose figcaption { margin-top: 8px; color: var(--sx-muted); font-size: 14px; text-align: center; }
.sxbl-prose hr, .sxbl-prose .wp-block-separator { margin: 40px 0; border: 0; border-top: 1px solid var(--sx-line); }
.sxbl-table { margin: 28px 0; overflow-x: auto; border: 1px solid var(--sx-line); border-radius: 16px; }
.sxbl-prose table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sxbl-prose th, .sxbl-prose td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--sx-line); text-align: left; vertical-align: top; }
.sxbl-prose thead th, .sxbl-prose tr:first-child th { background: var(--sx-canvas); color: var(--sx-ink); font-weight: 800; }
.sxbl-prose tr:last-child td { border-bottom: 0; }
.sxbl-prose .wp-block-table { margin: 0; }
.sxbl-prose .wp-block-embed { margin: 28px 0; }

/* YouTube facade */
.sxbl-video { display: block; margin: 28px 0; }
.sxbl-video__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #000; cursor: pointer; }
.sxbl-video__btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .92; transition: opacity .2s ease; }
.sxbl-video__btn:hover img { opacity: 1; }
.sxbl-play { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; border-radius: 50%; background: var(--sx-lime); transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sxbl-play::after { content: ''; position: absolute; top: 50%; left: 54%; border-left: 18px solid var(--sx-brand-deep); border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-radius: 3px; transform: translate(-50%, -50%); }
.sxbl-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; }

.sxbl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.sxbl-tags li { margin: 0; }
.sxbl-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--sx-soft); color: var(--sx-muted) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.sxbl-tags a:hover { background: var(--sx-tint); color: var(--sx-brand-deep) !important; }

.sxbl-authorbox { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; margin-top: 36px; padding: 24px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); background: var(--sx-canvas); }
.sxbl-authorbox__photo img { display: block; width: 112px; height: 112px; border-radius: 22px; background: var(--sx-lime); object-fit: cover; object-position: top; }
.sxbl-authorbox__label { margin: 0; color: var(--sx-brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sxbl-authorbox__name { margin: 4px 0 8px; font-size: 21px; font-weight: 800; }
.sxbl-authorbox__name a { color: var(--sx-ink) !important; text-decoration: none !important; }
.sxbl-authorbox__bio { margin: 0; color: var(--sx-muted); font-size: 15px; line-height: 1.6; }
.sxbl-authorbox__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.sxbl-authorbox__more { color: var(--sx-brand) !important; font-weight: 700; text-decoration: none !important; }

.sxbl-socials { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sxbl-socials li { margin: 0; }
.sxbl-socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--sx-line); border-radius: 50%; background: #fff; color: var(--sx-brand-deep) !important; transition: background-color .2s ease, border-color .2s ease; }
.sxbl-socials a:hover { border-color: var(--sx-brand); background: var(--sx-tint); }

.sxbl-related { background: var(--sx-canvas); }
.sxbl-comments__inner { max-width: 760px; }

/* ── Author profile ─────────────────────────────────────────────────────── */

.sxbl-profile { position: relative; isolation: isolate; padding: clamp(32px, 4.5vw, 64px) 0 clamp(40px, 5vw, 72px); background: var(--sx-canvas); }
.sxbl-profile .sx-wrap { position: relative; z-index: 1; }
.sxbl-profile__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sxbl-profile__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; border-radius: var(--sx-radius-lg); background: var(--sx-lime); object-fit: cover; object-position: top; padding-top: 8%; box-sizing: border-box; box-shadow: 0 30px 60px -40px rgba(35, 28, 80, .6); }
.sxbl .sxbl-profile__name { margin: 10px 0 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.02; }
.sxbl-profile__lead { max-width: 720px; margin: 18px 0 0; color: #3a3d48; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.65; }
.sxbl-profile__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.sxbl-profile__stats li { margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--sx-muted); font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(35, 28, 80, .05); }
.sxbl-profile__stats strong { color: var(--sx-brand-deep); }
.sxbl-profile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.sxbl-profile__actions .sx-btn--main { height: 52px; padding: 0 15px 0 26px; font-size: 16px; font-weight: 700; }
.sxbl-about__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.4fr); gap: 20px 56px; align-items: start; }
.sxbl-about__bio { font-size: 16.5px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .sxbl-post-layout { grid-template-columns: minmax(0, 1fr); }
    /* One column: TOC above the article, the course CTA after it (not in front of the text). */
    .sxbl-aside { display: contents; }
    .sxbl-toc { order: 0; padding: 18px 20px; border: 1px solid var(--sx-line); border-radius: 18px; background: var(--sx-canvas); }
    .sxbl-body { order: 1; }
    .sxbl-cta { order: 2; }
    .sxbl-faq__grid, .sxbl-about__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .sxbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sxbl-card--featured { grid-template-columns: minmax(0, 1fr); }
    .sxbl-profile__grid { grid-template-columns: minmax(0, 1fr); }
    .sxbl-profile__photo { max-width: 300px; }
}

@media (max-width: 640px) {
    .sxbl-grid { grid-template-columns: minmax(0, 1fr); }
    .sxbl-search { flex-basis: 100%; min-width: 0; }
    .sxbl-cats ul { flex-wrap: nowrap; margin-inline: calc(var(--sx-gutter) * -1); padding: 2px var(--sx-gutter) 6px; overflow-x: auto; scrollbar-width: none; }
    .sxbl-cats ul::-webkit-scrollbar { display: none; }
    .sxbl-cats a { white-space: nowrap; }
    .sxbl-prose { font-size: 16.5px; }
    .sxbl-authorbox { grid-template-columns: minmax(0, 1fr); }
    .sxbl-share-group { width: 100%; justify-content: space-between; }
    .sxbl-pager ul { gap: 4px; }
    .sxbl-pager li > a, .sxbl-pager li > span { min-width: 36px; height: 38px; padding: 0 8px; font-size: 14px; }
    .sxbl-pager .prev, .sxbl-pager .next { padding: 0 12px; }
    .sxbl-pager .dots { min-width: 18px; padding: 0; }
    .sxbl-pager__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* arrows only on phones; words stay for screen readers */
    .sxbl-band__actions, .sxbl-band__actions .sx-btn { width: 100%; }
    .sxbl-band__actions .sx-btn { justify-content: center; }
    .sxbl-band__actions .sx-btn--main { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .sxbl * { transition: none !important; }
}
