/* ==========================================================================
   Post Engine by Kosmeron Intellect: Udemy-blog style front end
   Colours: Post Engine > Settings > Accent colour (or edit the tokens below).
   ========================================================================== */

@font-face { font-family: "PE Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PE Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.cbe-page {
	--cbe-bg: #f6f7f9;
	--cbe-text: #2d2f31;
	--cbe-muted: #6a6f73;
	--cbe-line: #d1d2e0;
	--cbe-soft: #f7f9fa;
	--cbe-accent: #6d28d2;
	--cbe-accent-dark: #5624d0;
	--cbe-accent-tint: #f0e9fb;
	--cbe-dark: #171717;
	--cbe-dark-card: #2a2a2a;
	--cbe-radius: 24px;
	--cbe-h1-size: 42px;       /* article title */
	--cbe-h2-size: 34px;       /* section headings */
	--cbe-h3-size: 23px;       /* sub-headings */
	--cbe-p-size: 16.5px;      /* paragraph text */
	--cbe-p-lh: 1.6;
	--cbe-takeaway: #2563eb;   /* key takeaways tick colour (blue) */
	--cbe-sticky-top: 110px; /* raise if your Astra header is sticky and tall */
	--cbe-vw: 100vw;         /* set by JS to the exact page width */
	--cbe-font: "PE Inter", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cbe-hero-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 910 512' preserveAspectRatio='none'%3E%3Cpath d='M22.4 372.6 L43.7 395.8 L72.4 420.3 L64.0 424.3 L57.3 428.8 L45.8 440.3 L37.7 454.3 L33.6 469.7 L88.5 512.0 L190.7 512.0 L405.0 338.0 L259.7 504.7 L292.7 512.0 L367.3 512.0 L575.0 300.0 L419.8 512.0 L526.9 512.0 L700.0 352.0 L561.0 512.0 L587.3 512.0 L627.2 503.0 L677.5 487.9 L720.6 470.9 L714.8 480.2 L710.9 490.5 L709.1 501.3 L709.4 512.0 L885.6 512.0 L894.7 499.2 L899.9 486.0 L902.0 472.0 L900.8 457.9 L896.5 444.4 L889.2 432.3 L879.3 422.1 L867.4 414.4 L854.1 409.6 L842.0 408.0 L829.9 408.8 L818.1 412.0 L822.9 408.0 L740.0 438.0 L856.5 373.9 L862.4 366.6 L871.0 354.5 L882.1 335.8 L890.8 316.7 L897.0 297.3 L899.8 284.3 L901.9 264.6 L901.9 251.4 L899.8 231.7 L893.9 208.2 L590.0 268.0 L881.5 179.2 L871.0 161.5 L857.6 143.4 L842.0 125.9 L821.1 106.6 L823.0 93.9 L821.9 80.7 L817.8 68.1 L811.0 56.7 L801.8 47.2 L790.7 40.0 L778.2 35.5 L764.0 34.0 L761.0 24.7 L756.0 15.1 L749.6 6.5 L743.1 0.0 L693.8 0.0 L330.0 160.0 L620.0 2.8 L609.4 0.6 L600.0 0.0 L590.6 0.6 L580.5 2.7 L565.0 0.0 L315.0 0.0 L280.5 6.5 L3.7 169.8 L0.0 176.3 L0.0 324.2 L235.0 214.0 L10.3 356.4 L22.4 372.6Z M782.7 446.3 L780.9 451.3 L772.3 449.5 L764.0 449.0 L790.6 432.5 L782.7 446.3Z'/%3E%3C/svg%3E");
	background: var(--cbe-bg);
	overflow-x: clip;
}

/* Neutralise Astra wrappers so the article can use the full width */
body.cbe-page .site-content,
body.cbe-page #content { background: transparent; }
body.cbe-page .site-content > .ast-container,
body.cbe-page #content > .ast-container { display: block; max-width: none; padding: 0; }
body.cbe-page #primary { padding: 0; margin: 0; width: 100%; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.cbe-wrap, .cbe-wrap *, .cbe-catbar, .cbe-catbar * { box-sizing: border-box; }

.cbe-wrap {
	font-family: var(--cbe-font);
	color: var(--cbe-text);
	display: block;
	width: 100%;
	flex: 1 1 100%;
	max-width: 1290px;
	margin-left: auto;
	margin-right: auto;
	padding: 20px 20px 0;
	-webkit-font-smoothing: antialiased;
}
.cbe-wrap a { color: inherit; }
.cbe-wrap img { max-width: 100%; height: auto; }
.cbe-wrap :focus-visible, .cbe-catbar :focus-visible { outline: 2px solid var(--cbe-accent); outline-offset: 2px; }
.cbe-icon { flex: 0 0 auto; vertical-align: middle; }

/* ---------- Reading progress ---------- */
.cbe-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; }
.cbe-progress span { display: block; height: 100%; width: 0; background: var(--cbe-accent); }

/* ---------- Category bar ---------- */
.cbe-catbar { font-family: var(--cbe-font); border-bottom: 1px solid var(--cbe-line); background: #fff; }
.cbe-catbar__inner { max-width: 1290px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cbe-catbar__inner::-webkit-scrollbar { display: none; }
.cbe-catbar__link { flex: 0 0 auto; padding: 14px 12px; font-size: 14px; font-weight: 600; color: var(--cbe-text); text-decoration: none; border-bottom: 3px solid transparent; }
.cbe-catbar__link:hover { color: var(--cbe-accent-dark); }
.cbe-catbar__link.is-current { border-bottom-color: var(--cbe-text); }

/* ---------- Breadcrumbs (purple, underlined, like Udemy) ---------- */
.cbe-breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; color: var(--cbe-muted); }
.cbe-breadcrumbs li { margin: 0; }
.cbe-breadcrumbs li + li::before { content: "\203A"; margin: 0 9px; color: var(--cbe-muted); }
.cbe-breadcrumbs a { color: var(--cbe-accent); text-decoration: underline; text-underline-offset: 3px; }
.cbe-breadcrumbs a:hover { color: var(--cbe-accent-dark); }

/* ---------- Hero card ---------- */
.cbe-hero-card { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); align-items: stretch; background: #fff; border-radius: var(--cbe-radius); padding: 14px; margin: 0 0 40px; }
.cbe-hero-card--noimg { grid-template-columns: minmax(0, 1fr); }
.cbe-hero-card__media { position: relative; aspect-ratio: 910 / 512; align-self: center; margin: 0; }
.cbe-wrap img.cbe-hero-card__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; -webkit-mask: var(--cbe-hero-mask) center / 100% 100% no-repeat; mask: var(--cbe-hero-mask) center / 100% 100% no-repeat; }
.cbe-hero-card__text { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 26px 34px 20px 18px; min-width: 0; }
.cbe-hero-card--noimg .cbe-hero-card__text { padding: 34px 40px; }

.cbe-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; font-size: 16px; color: var(--cbe-muted); }
.cbe-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cbe-title { margin: 0; font-size: min(var(--cbe-h1-size), max(26px, 3.1vw)); line-height: 1.2; font-weight: var(--cbe-h1-weight, 300); letter-spacing: -0.015em; color: var(--cbe-h1-color, var(--cbe-text)); overflow-wrap: anywhere; }
.cbe-title--long { font-size: min(calc(var(--cbe-h1-size) - 9px), max(24px, 2.6vw)); line-height: 1.25; }

.cbe-byline { display: flex; align-items: center; gap: 14px; }
.cbe-avatar { display: block; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--cbe-soft); }
.cbe-avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: #1c1d1f; color: #fff; font-weight: 600; font-size: 22px; }
.cbe-byline__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cbe-byline__name { font-weight: 600; font-size: 18px; text-decoration: none; color: var(--cbe-text); }
.cbe-byline__name:hover { text-decoration: underline; }
.cbe-byline__role { font-size: 15px; color: var(--cbe-muted); }

/* ---------- Two column layout ---------- */
.cbe-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.cbe-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cbe-main { min-width: 0; }
@media (min-width: 1024px) {
	.cbe-layout { grid-template-columns: 366px minmax(0, 860px); column-gap: 56px; justify-content: center; }
	.cbe-layout--no-side { grid-template-columns: minmax(0, 860px); }
	.cbe-side { position: sticky; top: var(--cbe-sticky-top); max-height: calc(100vh - var(--cbe-sticky-top) - 16px); overflow-y: auto; scrollbar-width: thin; }
}

.cbe-side-card { background: #fff; border-radius: var(--cbe-radius); padding: 24px 28px; }
.cbe-side-card__title { margin: 0 0 14px; font-size: 16px; font-weight: 400; color: var(--cbe-text); }

/* Table of contents */
.cbe-toc { padding: 0; }
.cbe-toc__title { list-style: none; cursor: pointer; margin: 0; font-size: 16px; font-weight: 400; display: flex; justify-content: space-between; align-items: center; }
.cbe-toc__title::-webkit-details-marker { display: none; }
.cbe-toc__title::after { content: "+"; font-size: 22px; line-height: 1; }
.cbe-toc[open] > .cbe-toc__title { margin-bottom: 14px; }
.cbe-toc[open] > .cbe-toc__title::after { content: "\2212"; }
.cbe-toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--cbe-line); }
.cbe-toc__item { margin: 0; padding: 0; }
.cbe-toc__item a { display: block; margin-left: -1px; padding: 9px 0 9px 18px; font-size: 15.5px; line-height: 1.4; color: #5f6377; text-decoration: none; border-left: 3px solid transparent; }
.cbe-toc__item--l3 a { padding-left: 32px; font-size: 14px; }
.cbe-toc__item a:hover { color: var(--cbe-text); }
.cbe-toc__item a.is-active { color: var(--cbe-text); font-weight: 600; border-left-color: #1c1d1f; }
@media (min-width: 1024px) { .cbe-toc__title { cursor: default; } .cbe-toc__title::after { display: none; } }

/* Article topics */
.cbe-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cbe-chips--spaced { margin-top: 16px; }
.cbe-chips li { margin: 0; }
.cbe-chip { display: inline-block; padding: 5px 11px; border: 1px solid var(--cbe-line); border-radius: 4px; font-size: 12.5px; line-height: 1.3; color: #3e4143; text-decoration: none; background: #fff; }
a.cbe-chip:hover { border-color: var(--cbe-text); background: var(--cbe-soft); }

/* ---------- Listen player ---------- */
.cbe-listen { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; margin: 0 0 24px; border: 1px solid var(--cbe-line); border-radius: 999px; max-width: 540px; background: #fff; }
.cbe-listen[hidden] { display: none; }
.cbe-listen__btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #1c1d1f; color: #fff; cursor: pointer; padding: 0; }
.cbe-listen__btn:hover { background: var(--cbe-accent-dark); }
.cbe-listen .cbe-i-pause { display: none; }
.cbe-listen.is-playing .cbe-i-play { display: none; }
.cbe-listen.is-playing .cbe-i-pause { display: block; }
.cbe-listen__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cbe-listen__label { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cbe-listen__status { font-size: 12.5px; color: var(--cbe-muted); }
.cbe-listen__bar { flex: 1 1 60px; height: 6px; border-radius: 3px; background: var(--cbe-line); cursor: pointer; overflow: hidden; min-width: 40px; }
.cbe-listen__bar span { display: block; height: 100%; width: 0; background: var(--cbe-accent); transition: width .25s linear; }
.cbe-listen__speed { flex: 0 0 auto; border: 1px solid var(--cbe-line); background: #fff; color: var(--cbe-text); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cbe-listen__speed:hover { border-color: var(--cbe-text); }
.cbe-speaking { background: var(--cbe-accent-tint); box-shadow: -6px 0 0 var(--cbe-accent-tint), 6px 0 0 var(--cbe-accent-tint); border-radius: 2px; }
@media (max-width: 520px) { .cbe-listen { border-radius: 20px; flex-wrap: wrap; } .cbe-listen__bar { order: 5; flex-basis: 100%; } }

/* ---------- Summary ---------- */
.cbe-summary { border: 1px solid var(--cbe-line); border-radius: var(--cbe-radius); padding: 24px 28px 26px; margin: 0 0 32px; }
.cbe-summary__title { margin: 0 0 12px; font-size: 22px; font-weight: 500; line-height: 1.3; }
.cbe-summary p { margin: 0; font-size: var(--cbe-p-size); line-height: var(--cbe-p-lh); color: var(--cbe-p-color, var(--cbe-text)); }

/* ---------- Article body ---------- */
.cbe-content { font-size: var(--cbe-p-size); line-height: var(--cbe-p-lh); color: var(--cbe-p-color, var(--cbe-text)); font-weight: var(--cbe-p-weight, 400); }
.cbe-content > * { max-width: 100%; }
.cbe-content p { margin: 0 0 1.1em; }
.cbe-content h2, .cbe-content h3, .cbe-content h4, .cbe-takeaways h2, .cbe-faq h2, .cbe-sources h2, .cbe-about h2 { scroll-margin-top: calc(var(--cbe-sticky-top) - 10px); }
.cbe-content h2 { font-size: min(var(--cbe-h2-size), max(24px, 3vw)); line-height: 1.22; font-weight: var(--cbe-h2-weight, 400); letter-spacing: -0.015em; margin: 1.5em 0 .55em; color: var(--cbe-h2-color, var(--cbe-text)); }
.cbe-content h3 { font-size: min(var(--cbe-h3-size), max(19px, 2.4vw)); line-height: 1.3; font-weight: var(--cbe-h2-weight, 500); margin: 1.5em 0 .5em; color: var(--cbe-h2-color, var(--cbe-text)); }
.cbe-content h4 { font-size: calc(var(--cbe-p-size) + 1.5px); font-weight: 600; margin: 1.4em 0 .4em; color: var(--cbe-h2-color, var(--cbe-text)); }
.cbe-content a { color: var(--cbe-accent); text-decoration: underline; text-underline-offset: 3px; }
.cbe-content a:hover { color: var(--cbe-accent-dark); }
.cbe-content strong a, .cbe-content a strong { font-weight: 700; }
.cbe-content ul, .cbe-content ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.cbe-content li { margin: 0 0 .5em; padding-left: 4px; }
.cbe-content sup { font-size: .7em; }
.cbe-content img { border-radius: 16px; }
.cbe-content figure { margin: 1.7em 0; }
.cbe-content figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--cbe-muted); }
.cbe-content blockquote { margin: 1.7em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cbe-text); font-size: calc(var(--cbe-p-size) + 3px); line-height: 1.5; font-weight: 400; }
.cbe-content blockquote p { margin: 0 0 .6em; }
.cbe-content table { width: 100%; border-collapse: collapse; margin: 1.7em 0; font-size: calc(var(--cbe-p-size) - 1px); display: block; overflow-x: auto; background: #fff; border-radius: 12px; }
.cbe-content th, .cbe-content td { border: 1px solid var(--cbe-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.cbe-content th { background: var(--cbe-soft); font-weight: 600; }
.cbe-content pre { background: #1c1d1f; color: #f7f9fa; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.cbe-content code { font-size: .9em; background: #ececf0; padding: 2px 6px; border-radius: 4px; }
.cbe-content pre code { background: none; padding: 0; }
.cbe-content hr { border: 0; border-top: 1px solid var(--cbe-line); margin: 2.2em 0; }
.cbe-content iframe { max-width: 100%; border-radius: 12px; }

/* ---------- Promo box ("Your path to ...") ---------- */
.cbe-promo { margin: 2em 0; padding: 24px 16px 18px; background: #ececf0; border-radius: var(--cbe-radius); position: relative; }
.cbe-promo__head { display: flex; justify-content: center; align-items: center; margin: 0 0 18px; padding: 0 36px; min-height: 28px; position: relative; }
.cbe-content .cbe-promo__heading, .cbe-promo__heading { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; font-weight: 300; text-align: center; color: var(--cbe-text); }
.cbe-promo__icon { position: absolute; right: 0; top: 0; width: 28px; height: 28px; object-fit: contain; border-radius: 0 !important; }
.cbe-content .cbe-promo__card, .cbe-promo__card { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 20px; background: #fff; border-radius: 20px; padding: 12px; max-width: none; margin: 0; text-decoration: none; color: var(--cbe-text); transition: box-shadow .15s ease; }
.cbe-content a.cbe-promo__card:hover, a.cbe-promo__card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.10); color: var(--cbe-text); }
.cbe-promo__media { display: block; border-radius: 12px; overflow: hidden; background: var(--cbe-soft); align-self: start; }
.cbe-promo__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 !important; }
.cbe-promo__text { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 4px 0; min-width: 0; }
.cbe-promo__title { display: block; margin: 0; font-size: 19px; line-height: 1.3; font-weight: 400; text-decoration: none; }
.cbe-promo__sub { display: block; margin: 0; font-size: 13px; color: var(--cbe-muted); }
.cbe-promo__chips { margin: auto 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cbe-promo__chip { margin: 0; padding: 3px 9px; border: 1px solid var(--cbe-line); border-radius: 4px; font-size: 12px; line-height: 1.4; display: inline-flex; align-items: center; gap: 4px; }
.cbe-promo__chip.is-hl { background: #c7f0f2; border-color: #c7f0f2; font-weight: 700; color: #0b4a50; }
.cbe-promo__btn { display: inline-block; align-self: flex-start; margin-top: 10px; padding: 9px 18px; border-radius: 4px; background: #1c1d1f; color: #fff; font-weight: 600; font-size: 14px; }
.cbe-promo__card:hover .cbe-promo__btn { background: var(--cbe-accent-dark); }
@media (max-width: 640px) { .cbe-content .cbe-promo__card, .cbe-promo__card { grid-template-columns: minmax(0, 1fr); gap: 12px; } .cbe-promo { padding: 20px 12px 22px; } .cbe-promo__head { padding: 0 8px; } .cbe-promo__icon { display: none; } }

/* ---------- Key takeaways ---------- */
.cbe-takeaways { margin: 44px 0 0; padding: 28px 30px; background: #fff; border-radius: var(--cbe-radius); scroll-margin-top: var(--cbe-sticky-top); }
.cbe-takeaways__title { margin: 0 0 16px; font-size: 26px; font-weight: 400; line-height: 1.3; }
.cbe-takeaways ul { list-style: none; margin: 0; padding: 0; }
.cbe-takeaways li { position: relative; margin: 0 0 14px; padding-left: 34px; font-size: var(--cbe-p-size); line-height: var(--cbe-p-lh); color: var(--cbe-p-color, var(--cbe-text)); }
.cbe-takeaways li:last-child { margin-bottom: 0; }
.cbe-takeaways li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cbe-takeaway) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.6 5.4 12.5l-1.4 1.4 5.5 5.5L20 8.9l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 17px no-repeat; }

/* ---------- FAQ ---------- */
.cbe-faq { margin: 44px 0 0; scroll-margin-top: var(--cbe-sticky-top); }
.cbe-faq__title, .cbe-sources__title { margin: 0 0 16px; font-size: 26px; font-weight: 400; line-height: 1.3; }
.cbe-faq__item { background: #fff; border-radius: 16px; margin: 0 0 10px; }
.cbe-faq__item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-size: calc(var(--cbe-p-size) + 1px); font-weight: 500; line-height: 1.45; position: relative; }
.cbe-faq__item summary::-webkit-details-marker { display: none; }
.cbe-faq__item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.cbe-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.cbe-faq__a { padding: 0 22px 20px; font-size: var(--cbe-p-size); line-height: var(--cbe-p-lh); color: #3e4143; }
.cbe-faq__a p { margin: 0 0 .8em; }

/* ---------- Sources ---------- */
.cbe-sources { margin: 44px 0 0; scroll-margin-top: var(--cbe-sticky-top); }
.cbe-sources ol { margin: 0; padding-left: 1.4em; font-size: calc(var(--cbe-p-size) - .5px); line-height: 1.6; color: var(--cbe-muted); }
.cbe-sources li { margin: 0 0 6px; }
.cbe-sources a { color: var(--cbe-accent); text-underline-offset: 3px; word-break: break-word; }

/* ---------- Author card (like Udemy) ---------- */
.cbe-about { margin: 44px 0 0; }
.cbe-about__title { margin: 0 0 14px; font-size: 24px; font-weight: 500; line-height: 1.3; }
.cbe-author-card { background: #fff; border-radius: var(--cbe-radius); padding: 22px 24px 26px; }
.cbe-author-card__top { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.cbe-author-card__photo { width: 137px; height: 137px; flex: 0 0 auto; border-radius: 16px; object-fit: cover; background: var(--cbe-soft); display: block; }
.cbe-author-card__photo--initial { display: inline-flex; align-items: center; justify-content: center; background: #1c1d1f; color: #fff; font-size: 48px; font-weight: 500; }
.cbe-author-card__name { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; line-height: 1.2; }
.cbe-author-card__name a { text-decoration: none; }
.cbe-author-card__name a:hover { text-decoration: underline; }
.cbe-author-card__role { margin: 0; font-size: 16px; color: var(--cbe-muted); }
.cbe-author-card__bio { margin: 0 0 14px; font-size: var(--cbe-p-size); line-height: var(--cbe-p-lh); }
.cbe-author-card__bio a { color: var(--cbe-accent); text-underline-offset: 3px; }
.cbe-author-card__links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cbe-circle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #1c1d1f; border-radius: 50%; background: transparent; color: #1c1d1f; cursor: pointer; padding: 0; text-decoration: none; font: inherit; }
.cbe-circle:hover, .cbe-circle.is-copied { background: #1c1d1f; color: #fff; }
@media (max-width: 520px) { .cbe-author-card__top { flex-direction: column; align-items: flex-start; } .cbe-author-card__photo { width: 110px; height: 110px; } }

/* ---------- Share card ---------- */
.cbe-share { margin: 16px 0 0; background: #fff; border-radius: var(--cbe-radius); padding: 24px 28px 26px; }
.cbe-share__title { margin: 0 0 14px; font-size: 16px; font-weight: 400; }
.cbe-share__list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Comments ---------- */
.cbe-comments { margin-top: 16px; background: #fff; border-radius: var(--cbe-radius); padding: 28px; font-size: 16px; line-height: 1.6; }
.cbe-comments .comments-title, .cbe-comments .comment-reply-title { font-size: 26px; font-weight: 400; line-height: 1.3; margin: 0 0 18px; }
.cbe-comments ol, .cbe-comments ul { list-style: none; margin: 0; padding: 0; }
.cbe-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--cbe-line); }
.cbe-comments input[type="text"], .cbe-comments input[type="email"], .cbe-comments input[type="url"], .cbe-comments textarea { width: 100%; max-width: 100%; padding: 11px 13px; border: 1px solid var(--cbe-line); border-radius: 8px; font: inherit; background: #fff; }
.cbe-comments .submit, .cbe-comments input[type="submit"] { padding: 12px 24px; border: 0; border-radius: 4px; background: #1c1d1f; color: #fff; font-weight: 600; cursor: pointer; }
.cbe-comments .submit:hover { background: var(--cbe-accent-dark); }

/* ---------- Editor-only hints ---------- */
.cbe-hint-box { margin: 0 0 24px; padding: 12px 16px; border: 1px dashed var(--cbe-accent); border-radius: 12px; background: var(--cbe-accent-tint); font-size: 14px; line-height: 1.5; color: #1c1d1f; }

/* ---------- Dark band: related, topics, follow ---------- */
.cbe-dark { margin-top: 72px; margin-left: calc(50% - var(--cbe-vw) / 2); width: var(--cbe-vw); background: var(--cbe-dark); color: #fff; border-radius: 32px 32px 0 0; padding: 56px 20px 36px; }
.cbe-dark__inner { max-width: 1076px; margin: 0 auto; }
.cbe-dark .cbe-section-title { margin: 0 0 24px; font-size: clamp(28px, 3vw, 38px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
.cbe-dark a { color: #fff; }
.cbe-related__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.cbe-related__grid .cbe-card { grid-column: span 4; }
.cbe-related__grid .cbe-card--wide { grid-column: span 9; }
.cbe-related__grid .cbe-card--wide + .cbe-card { grid-column: span 3; }
.cbe-related__more { display: flex; justify-content: center; margin: 32px 0 0; }
.cbe-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 4px; font: 600 14px/1.2 var(--cbe-font); cursor: pointer; }
.cbe-btn--light { background: transparent; color: #fff; border: 1px solid #fff; }
.cbe-btn--light:hover { background: #fff; color: #171717; }
.cbe-btn[hidden] { display: none; }

.cbe-topics-grid { margin-top: 56px; }
.cbe-topics-grid__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cbe-topic { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid #3a3a3a; border-radius: 16px; text-decoration: none; background: var(--cbe-dark-card); }
.cbe-topic:hover { border-color: #fff; }
.cbe-topic__name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cbe-topic__count { font-size: 13px; color: #b5b6ba; }

.cbe-follow { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin: 56px 0 0; font-size: 14px; font-weight: 600; }
.cbe-follow__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cbe-follow__list a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; }
.cbe-follow__list a:hover { background: #333; }
.cbe-dark .cbe-hint-box { color: #1c1d1f; }

/* ---------- Cards (archives, author page, related) ---------- */
.cbe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cbe-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: #fff; border-radius: var(--cbe-radius); padding: 12px; color: var(--cbe-text); }
.cbe-card[hidden] { display: none; }
.cbe-card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--cbe-soft); }
.cbe-wrap img.cbe-card__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cbe-card__media--empty { background: linear-gradient(135deg, var(--cbe-accent-tint), #e9eaf0); }
.cbe-card__body { display: flex; flex-direction: column; flex: 1; padding: 2px 8px 8px; }
.cbe-wrap a.cbe-card__cat { font-size: 13px; font-weight: 600; color: var(--cbe-accent); text-decoration: none; margin-bottom: 6px; }
.cbe-card__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 500; }
.cbe-card__title a { text-decoration: none; color: inherit; }
.cbe-card__title a:hover { text-decoration: underline; }
.cbe-card__excerpt { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #4a4d50; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cbe-card__meta { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--cbe-muted); }
.cbe-card__meta span { display: inline-flex; align-items: center; gap: 6px; }

.cbe-grid--archive .cbe-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: center; }
.cbe-grid--archive .cbe-card--feature .cbe-card__title { font-size: 32px; font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }

/* dark variant (related articles) */
.cbe-dark .cbe-card { background: var(--cbe-dark-card); color: #fff; gap: 14px; }
.cbe-dark .cbe-card__media { border-radius: 12px; background: #3a3a3a; }
.cbe-dark .cbe-card__media--empty { background: linear-gradient(135deg, #3a3350, #2f2f33); }
.cbe-dark .cbe-card__cat, .cbe-dark .cbe-card__excerpt { display: none; }
.cbe-dark .cbe-card__body { padding: 0 6px 6px; }
.cbe-dark .cbe-card__title { font-size: 19px; line-height: 1.3; font-weight: 400; }
.cbe-dark .cbe-card__meta { color: #fff; font-size: 13px; }
.cbe-dark .cbe-card--wide { flex-direction: row; gap: 16px; }
.cbe-dark .cbe-card--wide .cbe-card__media { flex: 0 0 58%; align-self: flex-start; }
.cbe-dark .cbe-card--wide .cbe-card__body { justify-content: space-between; padding: 14px 10px 6px 0; }
.cbe-dark .cbe-card--wide .cbe-card__title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 400; line-height: 1.2; }

/* ---------- Archive + author headers ---------- */
.cbe-archive-head { margin: 8px 0 32px; max-width: 800px; }
.cbe-archive-title { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; font-weight: 300; letter-spacing: -0.015em; }
.cbe-archive-desc { font-size: 18px; line-height: 1.55; color: #3e4143; }
.cbe-archive-desc p { margin: 0 0 .8em; }
.cbe-author-head { display: flex; gap: 28px; align-items: center; margin: 8px 0 40px; background: #fff; border-radius: var(--cbe-radius); padding: 24px; }
.cbe-author-head .cbe-author-card__photo { width: 160px; height: 160px; }
.cbe-author-head .cbe-archive-title { font-size: clamp(28px, 3vw, 38px); margin-bottom: 4px; }
.cbe-section-title { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 20px; }
.cbe-empty { padding: 32px 0; font-size: 17px; color: var(--cbe-muted); }
.cbe-wrap > .cbe-topics-grid { margin-bottom: 56px; }

/* ---------- Pagination ---------- */
.cbe-wrap .navigation.pagination { margin-top: 40px; }
.cbe-wrap .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cbe-wrap .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--cbe-line); border-radius: 8px; background: #fff; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--cbe-text); }
.cbe-wrap a.page-numbers:hover { border-color: var(--cbe-text); }
.cbe-wrap .page-numbers.current { background: #1c1d1f; border-color: #1c1d1f; color: #fff; }
.cbe-wrap .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.cbe-hero-card { grid-template-columns: minmax(0, 1fr); padding: 12px; }
	.cbe-hero-card__text { padding: 22px 14px 14px; gap: 22px; }
	.cbe-main { margin-top: 8px; }
	.cbe-related__grid .cbe-card, .cbe-related__grid .cbe-card--wide, .cbe-related__grid .cbe-card--wide + .cbe-card { grid-column: span 6; }
	.cbe-related__grid .cbe-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.cbe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cbe-grid--archive .cbe-card--feature { grid-template-columns: 1fr; }
	.cbe-topics-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cbe-dark .cbe-card--wide { flex-direction: column; }
	.cbe-dark .cbe-card--wide .cbe-card__media { flex-basis: auto; align-self: stretch; }
	.cbe-related__grid .cbe-card, .cbe-related__grid .cbe-card--wide + .cbe-card { grid-column: 1 / -1; }
	.cbe-author-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
	.cbe-grid { grid-template-columns: 1fr; }
	.cbe-content { font-size: calc(var(--cbe-p-size) - 1px); }
	.cbe-summary, .cbe-side-card, .cbe-takeaways, .cbe-share, .cbe-author-card { padding-left: 20px; padding-right: 20px; }
	.cbe-follow { justify-content: center; flex-wrap: wrap; }
}

/* "Explore by topic" on archive pages (light version of the dark-band tiles) */
.cbe-explore-light .cbe-topic { background: #fff; border-color: transparent; color: var(--cbe-text); }
.cbe-explore-light .cbe-topic:hover { border-color: #1c1d1f; }
.cbe-explore-light .cbe-topic__count { color: var(--cbe-muted); }
.cbe-explore-light .cbe-section-title { color: var(--cbe-text); }
.cbe-explore-light { margin-bottom: 56px; }

/* A single related article uses the full row */
.cbe-related__grid .cbe-card--wide:only-child { grid-column: 1 / -1; }
