/*
 * Captrit Insights: listing, featured article, filter bar, cards, article page.
 * Mirrors the React blog pages.
 */

.cb-wrap {
	box-sizing: border-box;
	max-width: calc(1200px + 2 * clamp(20px, 3vw, 40px));
	margin-inline: auto;
	padding-inline: clamp(20px, 3vw, 40px);
}
.cb-label,
.cb-faint {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.01em;
	line-height: 1.4;
	color: var(--wp--preset--color--on-paper-faint);
}
.cb-label { margin: 0; }
.cb-label a { color: inherit; text-decoration: none; }

/* ---------- Listing masthead ---------- */

.cb-masthead { padding-block: 56px 64px; }
@media (min-width: 640px) { .cb-masthead { padding-block: 96px; } }
@media (min-width: 1024px) { .cb-masthead { padding-block: 112px; } }
.cb-masthead .c-intro { align-items: end; }

.cb-masthead h1 { margin-top: 24px; }
@media (min-width: 640px) { .cb-masthead h1 { margin-top: 32px; } }
@media (max-width: 639px) { .cb-masthead h1 mark { display: block; } }

/* ---------- Featured ---------- */

.cb-featured { padding-block: 64px 80px; }
@media (min-width: 640px) { .cb-featured { padding-top: 80px; } }
@media (min-width: 1024px) { .cb-featured { padding-bottom: 96px; } }
.cb-featured-link {
	display: grid;
	gap: 32px;
	margin-top: 40px;
	color: inherit;
	text-decoration: none;
}
@media (min-width: 1024px) {
	.cb-featured-link { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; }
	.cb-featured-img { grid-column: 1 / span 7; }
	.cb-featured-text { grid-column: 8 / span 5; }
}
.cb-featured-link:hover { text-decoration: none; }
.cb-featured-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--wp--preset--color--paper-2); }
.cb-featured-img img,
.cb-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cb-featured-link:hover .cb-featured-img img,
.cb-card:hover .cb-card-img img,
.cb-grid li:hover .wp-block-post-featured-image img { transform: scale(1.02); }
.cb-featured-text { display: flex; flex-direction: column; }
.cb-featured-title {
	margin: 20px 0 0;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
	color: var(--wp--preset--color--on-paper);
}
@media (min-width: 640px) { .cb-featured-title { font-size: 38px; } }
.cb-featured-link:hover .cb-featured-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.cb-featured-summary {
	margin: 24px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--wp--preset--color--on-paper-muted);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cb-featured-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--paper-line);
}
@media (min-width: 1024px) { .cb-featured-foot { margin-top: auto; } }
.cb-read { flex: none; font-size: 15px; font-weight: 500; color: var(--wp--preset--color--on-paper); }
.cb-featured-link:hover .cb-read { text-decoration: underline; text-underline-offset: 4px; }

.cb-author > p { margin: 0; }
.cb-author-name { font-size: 15px; font-weight: 500; color: var(--wp--preset--color--on-paper); }
.cb-author-role { margin-top: 2px !important; font-size: 14px; color: var(--wp--preset--color--on-paper-faint); }
.cb-author.is-inline { margin: 0; font-size: 14px; color: var(--wp--preset--color--on-paper-faint); }
.cb-author.is-inline .cb-author-name { font-size: 14px; font-weight: 400; }

/* ---------- Filter bar ---------- */

.cb-filter-row {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-block: 20px;
	border-block: 1px solid var(--wp--preset--color--paper-line);
}
@media (min-width: 1280px) { .cb-filter-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.cb-tabs {
	display: flex;
	gap: 8px 20px;
	margin-inline: -20px;
	padding-inline: 20px;
	overflow-x: auto;
	scrollbar-width: none;
}
.cb-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cb-tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.cb-tab {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding-block: 4px;
	font-size: 14px;
	white-space: nowrap;
	color: var(--wp--preset--color--on-paper-muted);
	text-decoration: none;
	transition: color 0.2s;
}
.cb-tab:hover,
.cb-tab.is-active { color: var(--wp--preset--color--on-paper); text-decoration: none; }
.cb-tab-dot { width: 6px; height: 6px; border-radius: 999px; background: transparent; }
.cb-tab.is-active .cb-tab-dot { background: var(--wp--preset--color--accent); }
.cb-tools { display: flex; flex: none; align-items: center; gap: 24px; }
.cb-search { flex: 1; min-width: 0; margin: 0; }
@media (min-width: 640px) { .cb-search { flex: none; width: 224px; } }
@media (min-width: 1280px) { .cb-search { width: 160px; } }
.cb-sort { flex: none; margin: 0; }
.cb-tools input,
.cb-tools select {
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--paper-line);
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	color: var(--wp--preset--color--on-paper);
}
@media (min-width: 640px) { .cb-tools input, .cb-tools select { font-size: 14px; } }
.cb-tools input::placeholder { color: var(--wp--preset--color--on-paper-faint); }
.cb-tools input:focus,
.cb-tools select:focus { outline: none; border-bottom-color: var(--wp--preset--color--on-paper); }
.cb-tools select { cursor: pointer; padding-right: 4px; }

/* ---------- Grid ---------- */

.cb-listing { padding-block: 0 96px; }
@media (min-width: 640px) { .cb-listing { padding-bottom: 112px; } }
@media (min-width: 1024px) { .cb-listing { padding-bottom: 128px; } }
.cb-count { margin: 0; }
.cb-grid { margin-top: 40px; }
.cb-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: 1fr;
	gap: 64px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) { .cb-grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cb-grid .wp-block-post-template { grid-template-columns: repeat(3, 1fr); } }
.cb-grid .wp-block-post-template > li { display: flex; flex-direction: column; margin: 0; }
.cb-grid .wp-block-post-template > li > * { margin: 0; }
.cb-grid .wp-block-post-featured-image { overflow: hidden; background: var(--wp--preset--color--paper-2); }
.cb-grid .wp-block-post-featured-image img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.cb-grid .cb-label { margin-top: 24px; }
.cb-grid .wp-block-post-title {
	margin-top: 12px;
	min-height: 3.9em;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.02em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cb-grid .wp-block-post-title a { color: inherit; text-decoration: none; }
.cb-grid li:hover .wp-block-post-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cb-grid .wp-block-post-excerpt { margin: 12px 0 20px; color: var(--wp--preset--color--on-paper-muted); }
.cb-grid .wp-block-post-excerpt__excerpt {
	margin: 0;
	min-height: 4.8em;
	font-size: 15px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cb-grid .cb-author.is-inline { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--wp--preset--color--paper-line); }
.cb-grid .wp-block-query-no-results { margin-top: 64px; color: var(--wp--preset--color--on-paper-muted); }

.cb-grid .wp-block-query-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 80px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--paper-line);
	font-size: 15px;
}
.cb-grid .wp-block-query-pagination a { color: var(--wp--preset--color--on-paper); text-decoration: none; }
.cb-grid .wp-block-query-pagination a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cb-grid .wp-block-query-pagination-numbers { display: flex; gap: 4px; }
.cb-grid .wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--on-paper-muted);
}
.cb-grid .wp-block-query-pagination-numbers .page-numbers.current { background: var(--wp--preset--color--on-paper); color: var(--wp--preset--color--paper); }

/* ---------- Article page ---------- */

.cb-article-head { padding-block: 40px 64px; }
@media (min-width: 640px) { .cb-article-head { padding-bottom: 80px; } }
@media (min-width: 1024px) { .cb-article-head { padding-bottom: 96px; } }
.cb-article-head > * { margin-block: 0; }
.cb-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--wp--preset--color--on-ink-muted);
	text-decoration: none;
}
.cb-back a::before { content: "←"; }
.cb-back a:hover { color: #fff; text-decoration: none; }
.cb-article-title-block { margin-top: 56px !important; }
@media (min-width: 1024px) { .cb-article-title-block { margin-top: 80px !important; } }
.cb-article-title-block > * { margin-block: 0; }
.cb-article-title-block .wp-block-post-terms {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--on-ink-faint);
}
.cb-article-title-block .wp-block-post-terms::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
}
.cb-article-title-block .wp-block-post-terms a { color: inherit; text-decoration: none; }
.cb-article-title-block .wp-block-post-title {
	margin-top: 28px;
	font-size: 36px;
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
@media (min-width: 640px) { .cb-article-title-block .wp-block-post-title { font-size: 48px; } }
@media (min-width: 1024px) { .cb-article-title-block .wp-block-post-title { font-size: 56px; } }
.cb-subtitle { margin-top: 24px !important; max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--on-ink-muted); text-wrap: pretty; }
.cb-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px !important;
	padding-top: 24px;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}
.cb-article-meta > * { margin: 0; }
.cb-article-meta .cb-author-name { color: var(--wp--preset--color--on-ink); }
.cb-article-meta .cb-author-role,
.cb-article-meta .cb-label { color: var(--wp--preset--color--on-ink-faint); }
.cb-article-meta-right { display: flex; align-items: center; gap: 24px; }
.cb-article-meta-right > * { margin: 0; }
.cb-copy {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	color: var(--wp--preset--color--on-ink);
	cursor: pointer;
}
.cb-copy:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.cb-lead-image { box-sizing: border-box; max-width: calc(1040px + 2 * clamp(20px, 3vw, 40px)); margin: 0 auto; padding: 48px clamp(20px, 3vw, 40px) 0; }
@media (min-width: 640px) { .cb-lead-image { padding-top: 64px; } }
.cb-lead-image .wp-block-post-featured-image { margin: 0; overflow: hidden; background: var(--wp--preset--color--paper-2); }

/* Article body: 700px reading column */
.cb-body { padding-block: 56px 96px; }
@media (min-width: 640px) { .cb-body { padding-top: 64px; } }
.cb-body .wp-block-post-content { font-size: 17px; line-height: 1.75; color: var(--wp--preset--color--on-paper); }
.cb-body .wp-block-post-content > * { margin-block: 0; }
.cb-body .wp-block-post-content > * + * { margin-top: 24px; }
.cb-body .wp-block-post-content > h2 {
	margin-top: 56px;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}
.cb-body .wp-block-post-content > h3 { margin-top: 40px; font-size: 22px; }
.cb-body .wp-block-post-content a { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: 3px; }
.cb-body .wp-block-post-content ul,
.cb-body .wp-block-post-content ol { padding-left: 1.2em; }
.cb-body .wp-block-post-content li + li { margin-top: 8px; }
.cb-body .wp-block-post-content li::marker { color: var(--wp--preset--color--accent); }
.cb-body .wp-block-post-content code:not(pre code) {
	padding: 1px 5px;
	background: var(--wp--preset--color--paper-2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85em;
}
.cb-body .wp-block-code {
	margin-inline: 0;
	padding: 20px 24px;
	overflow-x: auto;
	background: #0A0C0F;
	color: #ECEEF1;
	border: 0;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.7;
}
.cb-body .wp-block-code code { white-space: pre; }
.cb-body .wp-block-code.is-mermaid { background: #fff; color: inherit; border: 1px solid var(--wp--preset--color--paper-line); text-align: center; }
.cb-body .wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--wp--preset--color--accent);
	font-size: 22px;
	line-height: 1.45;
	letter-spacing: -0.015em;
}
.cb-body .wp-block-quote cite { display: block; margin-top: 12px; font-family: var(--wp--preset--font-family--mono); font-size: 12px; font-style: normal; color: var(--wp--preset--color--on-paper-faint); }
.cb-body .wp-block-table { margin-inline: 0; overflow-x: auto; }
.cb-body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.cb-body .wp-block-table th,
.cb-body .wp-block-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--wp--preset--color--paper-line); text-align: left; vertical-align: top; }
.cb-body .wp-block-table thead { border-bottom: 0; }
.cb-body .wp-block-table th { font-weight: 500; border-bottom-color: var(--wp--preset--color--on-paper); }

/* Callout and stat blocks (block styles on Group) */
.cb-body .is-style-callout {
	padding: 20px 24px;
	background: var(--wp--preset--color--paper-2);
	border-left: 2px solid var(--wp--preset--color--accent);
}
.cb-body .is-style-callout > * { margin: 0; }
.cb-body .is-style-callout > * + * { margin-top: 12px; }
.cb-body .is-style-stat { padding-block: 24px; border-block: 1px solid var(--wp--preset--color--paper-line); }
.cb-body .is-style-stat > * { margin: 0; }
.cb-body .is-style-stat > :first-child {
	font-size: clamp(44px, 8vw, 64px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--accent);
}
.cb-body .is-style-stat > :last-child { margin-top: 12px; color: var(--wp--preset--color--on-paper-muted); }

.cb-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 64px !important; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--paper-line); }
.cb-topics > * { margin: 0 !important; }
.cb-topics .wp-block-post-terms { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.cb-topics .wp-block-post-terms a { color: var(--wp--preset--color--on-paper-muted); text-decoration: none; }
.cb-topics .wp-block-post-terms a:hover { color: var(--wp--preset--color--on-paper); }
.cb-topics .wp-block-post-terms__separator { display: none; }

/* ---------- Related ---------- */

.cb-related { padding-block: 80px; border-top: 1px solid var(--wp--preset--color--paper-line); }
@media (min-width: 640px) { .cb-related { padding-block: 96px; } }
.cb-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cb-related-head > div > * { margin: 0; }
.cb-related-head .c-h2 { margin-top: 24px; font-size: 32px; }
@media (min-width: 640px) { .cb-related-head .c-h2 { font-size: 40px; } }
.cb-more { flex: none; font-size: 15px; font-weight: 500; color: var(--wp--preset--color--on-paper); text-decoration: none; }
.cb-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.cb-related-list {
	display: grid;
	gap: 48px 40px;
	margin: 48px 0 0;
	padding: 40px 0 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--paper-line);
}
@media (min-width: 768px) { .cb-related-list { grid-template-columns: repeat(3, 1fr); } }
.cb-card { display: block; color: inherit; text-decoration: none; }
.cb-card:hover { text-decoration: none; }
.cb-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--wp--preset--color--paper-2); }
.cb-card .cb-label { margin-top: 20px; }
.cb-card-title {
	margin: 8px 0 0;
	min-height: 3.9em;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.015em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cb-card:hover .cb-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Homepage "Recent writing" uses the same byline block */
.c-insights .cb-label { margin-top: 0; }
.c-insights__lead .cb-label { margin-top: 24px; }
.c-insights__side .cb-label + .wp-block-post-title { margin-top: 8px !important; }
.c-insights__side .wp-block-post-title + .cb-label { margin-top: 12px; }

/* Code block header (added by article.js) */
.cb-body .cb-code { margin-top: 32px; background: #0A0C0F; }
.cb-body .cb-code .wp-block-code { margin: 0; }
.cb-code-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--on-ink-faint);
}
.cb-code-head button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.cb-code-head button:hover { color: #fff; }
.cb-body .cb-code .wp-block-code { padding: 20px; }

/* Mermaid diagram */
.cb-body .cb-diagram { margin: 32px 0 0; padding: 24px; background: #fff; border: 1px solid var(--wp--preset--color--paper-line); }
.cb-body .cb-diagram svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.cb-body .cb-diagram figcaption { margin-top: 16px; font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--on-paper-faint); }

/* Table header like React: mono, faint, hairline */
.cb-body .wp-block-table thead th {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--wp--preset--color--on-paper-faint);
	border-top: 1px solid var(--wp--preset--color--paper-line);
	border-bottom-color: var(--wp--preset--color--paper-line);
}
.cb-body .wp-block-table td:first-child { font-weight: 500; }
.cb-body .wp-block-table td { color: var(--wp--preset--color--on-paper-muted); }
.cb-body .wp-block-table td:first-child { color: var(--wp--preset--color--on-paper); }

/* Article title block sits left, like React */
.cb-article-head > .cb-article-title-block { max-width: none !important; }
.cb-article-head > .cb-article-title-block > * { max-width: 880px; }
.cb-article-head > .cb-article-title-block > .cb-subtitle { max-width: 62ch; }

/* Grid card spacing (beats the li > * reset) */
.cb-grid .wp-block-post-template > li > .cb-label { margin-top: 24px; }
.cb-grid .wp-block-post-template > li > .wp-block-post-title { margin-top: 12px; }
.cb-grid .wp-block-post-template > li > .wp-block-post-excerpt { margin: 12px 0 20px; }
.cb-grid .wp-block-post-template > li > .cb-author.is-inline { margin-top: auto; }
.cb-count { padding-top: 40px; }
.cb-listing > .cb-grid { margin-top: 40px !important; }
/* Mobile masthead: the faint line is its own block, so the dot rides inside it */
@media (max-width: 639px) {
	.cb-masthead h1.has-point::after { display: none; }
	.cb-masthead h1 mark::after {
		content: "";
		display: inline-block;
		width: 0.15em;
		height: 0.15em;
		margin-left: 0.05em;
		border-radius: 999px;
		background: var(--wp--preset--color--accent);
	}
}

/* Listing masthead: React text-[clamp(36px,11vw,44px)] sm:64 lg:76, lede 18px */
.cb-masthead h1.c-display { font-size: clamp(36px, 11vw, 44px); }
@media (min-width: 640px) { .cb-masthead h1.c-display { font-size: 64px; } }
@media (min-width: 1024px) { .cb-masthead h1.c-display { font-size: 76px; } }
.cb-masthead .c-lede { font-size: 18px; line-height: 1.6; }
.cb-masthead .c-label.has-dot { margin-top: 5px !important; margin-bottom: 2px !important; }
.cb-author-role { line-height: 20px; }

/* ---------- Article body: React MarkdownRenderer sizes ---------- */
.cb-body .wp-block-post-content { font-size: 17px; line-height: 1.75; }
@media (min-width: 640px) { .cb-body .wp-block-post-content { font-size: 18px; } }
.cb-body .wp-block-post-content > * { margin-block: 0; }
.cb-body .wp-block-post-content > p { margin-block: 24px; color: rgb(14 17 22 / 0.9); }
.cb-body .wp-block-post-content > h2 {
	margin: 64px 0 20px;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.025em;
}
@media (min-width: 640px) { .cb-body .wp-block-post-content > h2 { font-size: 30px; } }
.cb-body .wp-block-post-content > h3 { margin: 40px 0 12px; font-size: 21px; line-height: 1.5; letter-spacing: -0.02em; }
.cb-body .wp-block-post-content > h4 { margin: 32px 0 8px; font-size: 18px; }
.cb-body .wp-block-post-content strong { font-weight: 600; }
.cb-body .wp-block-post-content a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cb-body .wp-block-post-content code:not(pre code) { padding: 0; background: none; font-size: 0.88em; }

/* Lists: blue dot bullets, 10px apart */
.cb-body .wp-block-post-content > ul { margin-block: 20px; padding: 0; list-style: none; color: rgb(14 17 22 / 0.9); }
.cb-body .wp-block-post-content > ul li { position: relative; padding-left: 20px; }
.cb-body .wp-block-post-content > ul li + li { margin-top: 10px; }
.cb-body .wp-block-post-content > ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
}
.cb-body .wp-block-post-content > ol { margin-block: 20px; padding-left: 24px; color: rgb(14 17 22 / 0.9); }
.cb-body .wp-block-post-content > ol li { padding-left: 4px; line-height: 1.625; }
.cb-body .wp-block-post-content > ol li::marker { color: var(--wp--preset--color--on-paper-faint); }
.cb-body .wp-block-post-content > ol li + li { margin-top: 10px; }

/* Code */
.cb-body .wp-block-post-content > .cb-code { margin-block: 32px; }
.cb-code-head { padding: 10px 20px; line-height: 1.4; }
.cb-body .cb-code .wp-block-code { padding: 20px; font-size: 13px; line-height: 1.7; }

/* Callouts (Note / Key figure / Caution) */
.cb-body .wp-block-post-content > .is-style-callout {
	margin-block: 32px;
	padding: 20px 24px;
	border-left: 2px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--paper-2);
	font-size: 16px;
	line-height: 1.65;
}
.cb-body .is-style-callout > .cb-label { margin: 0 0 8px; color: var(--wp--preset--color--on-paper-faint); }
.cb-body .is-style-callout > * + * { margin-top: 0; }

/* Quote */
.cb-body .wp-block-post-content > .wp-block-quote {
	margin-block: 40px;
	padding: 0 0 0 24px;
	border-left: 2px solid var(--wp--preset--color--accent);
}
.cb-body .wp-block-quote p { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; }
.cb-body .wp-block-quote cite { display: block; margin-top: 16px; font-family: inherit; font-size: 15px; font-style: normal; font-weight: 400; color: var(--wp--preset--color--on-paper-faint); }

/* Table */
.cb-body .wp-block-post-content > .wp-block-table { margin-block: 40px; border-top: 1px solid var(--wp--preset--color--paper-line); }
.cb-body .wp-block-table table { font-size: 14px; }
.cb-body .wp-block-table thead th { padding: 12px 24px 12px 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--paper-line); }
.cb-body .wp-block-table td { padding: 12px 24px 12px 0; border: 0; border-top: 1px solid var(--wp--preset--color--paper-line); line-height: 1.6; color: var(--wp--preset--color--on-paper-muted); font-weight: 400; }
.cb-body .wp-block-table tbody tr:first-child td { border-top: 0; }
.cb-body .wp-block-table td:first-child { color: var(--wp--preset--color--on-paper-muted); font-weight: 400; }
.cb-body .wp-block-table strong { color: var(--wp--preset--color--on-paper-muted); }

/* Mermaid diagram spacing like React's viewer */
.cb-body .wp-block-post-content > .cb-diagram { margin-block: 32px; }

/* Article header: title column 880px inside the 1200px container */
.cb-article-head > .cb-article-title-block { max-width: 1200px !important; }
.cb-article-head { padding-bottom: 64px; }
@media (min-width: 640px) { .cb-article-head { padding-bottom: 80px; } }
@media (min-width: 1024px) { .cb-article-head { padding-bottom: 96px; } }
.cb-back a { line-height: 20px; }
.cb-copy { line-height: 20px; }
/* Mermaid figure: React my-10, border-y, white, px-4 py-8 sm:px-8 */
.cb-body .wp-block-post-content > .cb-diagram {
	margin-block: 40px;
	padding: 32px 16px;
	overflow-x: auto;
	border: 0;
	border-block: 1px solid var(--wp--preset--color--paper-line);
	background: #fff;
}
@media (min-width: 640px) { .cb-body .wp-block-post-content > .cb-diagram { padding-inline: 32px; } }
.cb-body .cb-diagram figcaption { margin-top: 24px; line-height: 1.4; }
.cb-body .wp-block-table { overflow-x: auto; }
.cb-body .wp-block-table table.has-fixed-layout { table-layout: auto; }
.cb-body .wp-block-table td,
.cb-body .wp-block-table th { overflow-wrap: normal; word-break: normal; }
/* React reserves space for the hover "#" anchor beside each subheading */
.cb-body .wp-block-post-content > h2 { padding-right: 23px; }
.cb-masthead .wp-block-query-title { margin-top: 24px; }
@media (min-width: 640px) { .cb-masthead .wp-block-query-title { margin-top: 32px; } }
.cb-masthead .wp-block-term-description p { margin: 0; }
.cb-404 { min-height: 60vh; }
.cb-404 > * { max-width: 760px; }
.cb-404 .c-lede { margin-top: 24px; }
.cb-404 a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
h2.cb-count { margin: 0; font-weight: 400; letter-spacing: 0.01em; line-height: 1.4; }
.cb-article-title-block .wp-block-post-terms::before { width: 14px; height: 2px; border-radius: 0; }
.cb-body .is-style-callout > .cb-label { color: #626975 !important; }
