/*!
 * Chambers Blog design system — cb.css
 * Scope: blog hub, single post, archives (category, tag, author, date, search).
 * Every selector is prefixed `cb-` so it never collides with the theme's Tailwind build.
 */

/* ---------------------------------------------------------------------------
 * 1. Fonts (subset WOFF2, swap)
 * ------------------------------------------------------------------------- */
@font-face { font-family: "ArticulatCF"; src: url("../../fonts/articulatcf-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ArticulatCF"; src: url("../../fonts/articulatcf-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "ArticulatCF"; src: url("../../fonts/articulatcf-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ArticulatCF"; src: url("../../fonts/articulatcf-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------------------
 * 2. Tokens
 * ------------------------------------------------------------------------- */
:root {
	/* Brand */
	--cb-red: #c9101c;          /* 5.9:1 on white */
	--cb-red-700: #a30c16;      /* hover / pressed, 7.9:1 on white */
	--cb-red-100: #f9dadc;
	--cb-red-50: #fdf2f3;

	/* Neutrals (warm-neutral ink, matches footer #131313 and text #1E1E1E) */
	--cb-ink: #131313;
	--cb-ink-900: #1e1e1e;      /* headings */
	--cb-ink-700: #383838;      /* body copy, 11.6:1 */
	--cb-ink-500: #5c5c5c;      /* secondary text, 6.7:1 */
	--cb-ink-400: #767676;      /* placeholder / disabled, 4.5:1 */
	--cb-line: #e7e7e7;
	--cb-line-strong: #d2d2d2;
	--cb-surface: #fafafa;
	--cb-surface-2: #f3f3f3;
	--cb-white: #ffffff;

	/* Semantic (callouts) */
	--cb-tip-bg: #eef6f0;   --cb-tip-fg: #1f6b3a;
	--cb-warn-bg: #fff6e6;  --cb-warn-fg: #8a5300;
	--cb-info-bg: #eef3f9;  --cb-info-fg: #1d4f86;

	/* Type */
	--cb-font: "ArticulatCF", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cb-fs-xs: 0.8125rem;   /* 13 */
	--cb-fs-sm: 0.875rem;    /* 14 */
	--cb-fs-base: 1rem;      /* 16 */
	--cb-fs-md: 1.125rem;    /* 18 — body copy */
	--cb-fs-lg: 1.25rem;     /* 20 — lead */
	--cb-fs-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);           /* 20 → 24 */
	--cb-fs-2xl: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);        /* 24 → 30 */
	--cb-fs-3xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);         /* 28 → 40 */
	--cb-fs-4xl: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);         /* 34 → 56 */
	--cb-fs-5xl: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);           /* 40 → 72 */
	--cb-lh-tight: 1.05;
	--cb-lh-snug: 1.2;
	--cb-lh-body: 1.7;
	--cb-track-display: -0.025em;
	--cb-track-heading: -0.015em;
	--cb-track-caps: 0.12em;
	--cb-measure: 68ch;

	/* Space (4px base) */
	--cb-s-1: 4px;  --cb-s-2: 8px;  --cb-s-3: 12px; --cb-s-4: 16px;
	--cb-s-5: 20px; --cb-s-6: 24px; --cb-s-8: 32px; --cb-s-10: 40px;
	--cb-s-12: 48px; --cb-s-16: 64px; --cb-s-20: 80px; --cb-s-24: 96px;
	--cb-section: clamp(56px, 4vw + 32px, 112px);

	/* Layout: matches the theme's .page-container (1442px, 16px gutters) */
	--cb-container: 1442px;
	--cb-gutter: 16px;
	--cb-col-gap: clamp(16px, 1.6vw, 24px);

	/* Shape */
	--cb-r-sm: 8px;
	--cb-r: 12px;
	--cb-r-lg: 20px;
	--cb-r-pill: 999px;
	--cb-cut: 28px;            /* signature diagonal corner cut */

	/* Elevation */
	--cb-shadow-1: 0 1px 2px rgb(19 19 19 / 0.06), 0 1px 1px rgb(19 19 19 / 0.04);
	--cb-shadow-2: 0 2px 4px rgb(19 19 19 / 0.04), 0 12px 28px -10px rgb(19 19 19 / 0.18);
	--cb-shadow-3: 0 24px 56px -20px rgb(19 19 19 / 0.32);

	/* Motion */
	--cb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--cb-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--cb-dur-1: 120ms;
	--cb-dur-2: 200ms;
	--cb-dur-3: 360ms;

	/* Focus */
	--cb-focus: 0 0 0 2px var(--cb-white), 0 0 0 4px var(--cb-ink-900);
}

/* ---------------------------------------------------------------------------
 * 3. Base (scoped to .cb)
 * ------------------------------------------------------------------------- */
.cb {
	font-family: var(--cb-font);
	color: var(--cb-ink-700);
	font-size: var(--cb-fs-base);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
}
.cb *, .cb *::before, .cb *::after { box-sizing: border-box; }
.cb :where(h1, h2, h3, h4, h5, h6) {
	color: var(--cb-ink-900);
	font-weight: 800;
	line-height: var(--cb-lh-snug);
	letter-spacing: var(--cb-track-heading);
	text-transform: none;      /* the theme capitalises every heading; blog respects authored case */
	text-wrap: balance;
	margin: 0;
}
.cb :where(p) { margin: 0; text-wrap: pretty; }
.cb :where(img, svg, video) { display: block; max-width: 100%; }
.cb :where(img) { height: auto; }
.cb :where(a) { color: inherit; text-decoration: none; }
.cb :where(button) { font: inherit; }
.cb :where(:focus-visible) { outline: 2px solid var(--cb-ink-900); outline-offset: 3px; border-radius: 4px; }
.cb-dark :where(:focus-visible) { outline-color: var(--cb-white); }

.cb-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cb-skip {
	position: absolute; left: var(--cb-s-4); top: -100px; z-index: 100;
	background: var(--cb-ink); color: var(--cb-white); padding: 12px 20px; border-radius: var(--cb-r-pill);
	font-weight: 700;
}
.cb-skip:focus { top: var(--cb-s-4); }

/* Icons: 24px grid, 1.75 stroke, currentColor */
.cb-icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cb-icon--sm { width: 16px; height: 16px; }
.cb-icon--md { width: 20px; height: 20px; }
.cb-icon--lg { width: 24px; height: 24px; }
.cb-icon--fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------------
 * 4. Layout
 * ------------------------------------------------------------------------- */
.cb-container { width: 100%; max-width: var(--cb-container); margin-inline: auto; padding-inline: var(--cb-gutter); }
@media (min-width: 1536px) { .cb-container { padding-inline: 0; } }

.cb-section { padding-block: var(--cb-section); }
.cb-section--surface { background: var(--cb-surface); }
.cb-section--tight { padding-block: clamp(40px, 3vw + 24px, 72px); }

.cb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cb-col-gap); row-gap: var(--cb-s-10); }
.cb-span-12 { grid-column: span 12; }
.cb-span-8 { grid-column: span 12; }
.cb-span-4 { grid-column: span 12; }
.cb-span-6 { grid-column: span 12; }
@media (min-width: 768px) { .cb-span-6 { grid-column: span 6; } }
@media (min-width: 1024px) {
	.cb-span-8 { grid-column: span 8; }
	.cb-span-4 { grid-column: span 4; }
}

/* Card grid: 1 → 2 → 3 columns, equal rows */
.cb-cards { display: grid; gap: var(--cb-s-10) var(--cb-col-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cb-stack { display: flex; flex-direction: column; gap: var(--cb-s-4); }
.cb-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cb-s-3); }

/* Section heading */
.cb-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--cb-s-4) var(--cb-s-8); margin-bottom: var(--cb-s-10); }
.cb-section-head h2 { font-size: var(--cb-fs-3xl); line-height: var(--cb-lh-tight); letter-spacing: var(--cb-track-display); }
.cb-section-head p { color: var(--cb-ink-500); font-size: var(--cb-fs-md); max-width: 52ch; margin-top: var(--cb-s-3); }

/* ---------------------------------------------------------------------------
 * 5. Atoms
 * ------------------------------------------------------------------------- */

/* Eyebrow: uppercase label with the brand red tick */
.cb-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase;
	color: var(--cb-red);
}
.cb-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; transform: skewX(-24deg); }
.cb-dark .cb-eyebrow { color: #ff5a64; } /* 5.1:1 on #131313 */

/* Highlight span inside headings (site convention: red words) */
.cb :where(h1, h2, h3) span, .cb-accent { color: var(--cb-red); }
.cb-dark :where(h1, h2, h3) span { color: #ff5a64; }

/* Buttons: pill, 48px tall (≥44px target) */
.cb-btn {
	--_bg: var(--cb-ink); --_fg: var(--cb-white); --_bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 26px;
	border-radius: var(--cb-r-pill); border: 2px solid var(--_bd);
	background: var(--_bg); color: var(--_fg);
	font-weight: 800; font-size: var(--cb-fs-base); line-height: 1; letter-spacing: -0.005em;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color var(--cb-dur-2) var(--cb-ease), color var(--cb-dur-2) var(--cb-ease), border-color var(--cb-dur-2) var(--cb-ease), transform var(--cb-dur-1) var(--cb-ease);
}
.cb-btn:hover { --_bg: #2b2b2b; }
.cb-btn:active { transform: translateY(1px); }
.cb-btn--primary { --_bg: var(--cb-red); }
.cb-btn--primary:hover { --_bg: var(--cb-red-700); }
.cb-btn--ghost { --_bg: transparent; --_fg: var(--cb-red); --_bd: var(--cb-red); }
.cb-btn--ghost:hover { --_bg: var(--cb-red); --_fg: var(--cb-white); }
.cb-btn--light { --_bg: var(--cb-white); --_fg: var(--cb-ink-900); }
.cb-btn--light:hover { --_bg: var(--cb-surface-2); }
.cb-btn--sm { min-height: 44px; padding: 10px 20px; font-size: var(--cb-fs-sm); }
.cb-btn .cb-icon { width: 18px; height: 18px; transition: transform var(--cb-dur-2) var(--cb-ease); }
.cb-btn:hover .cb-icon--nudge { transform: translateX(3px); }

/* Text link with animated underline */
.cb-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 800; color: var(--cb-red);
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	padding-bottom: 2px;
	transition: background-size var(--cb-dur-3) var(--cb-ease);
}
.cb-link:hover { background-size: 100% 2px; }
.cb-link .cb-icon { width: 18px; height: 18px; transition: transform var(--cb-dur-2) var(--cb-ease); }
.cb-link:hover .cb-icon { transform: translateX(3px); }

/* Chips (category filters) */
.cb-chips { display: flex; flex-wrap: wrap; gap: var(--cb-s-2); list-style: none; margin: 0; padding: 0; }
.cb-chip {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 10px 18px;
	border-radius: var(--cb-r-pill); border: 1.5px solid var(--cb-line-strong);
	background: var(--cb-white); color: var(--cb-ink-900);
	font-size: var(--cb-fs-sm); font-weight: 700; line-height: 1;
	transition: border-color var(--cb-dur-2) var(--cb-ease), background-color var(--cb-dur-2) var(--cb-ease), color var(--cb-dur-2) var(--cb-ease);
}
.cb-chip:hover { border-color: var(--cb-ink-900); }
.cb-chip { white-space: nowrap; }
.cb-chip[aria-current="page"], .cb-chip.is-active { background: var(--cb-ink-900); border-color: var(--cb-ink-900); color: var(--cb-white); }
.cb-chip__count { font-weight: 500; color: var(--cb-ink-500); font-variant-numeric: tabular-nums; }
.cb-chip[aria-current="page"] .cb-chip__count, .cb-chip.is-active .cb-chip__count { color: #c9c9c9; }

/* Category tag (small, inside cards) */
.cb-tag {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: var(--cb-r-pill);
	background: var(--cb-red-50); color: var(--cb-red-700);
	font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
}
/* All-caps labels: centre the cap height optically, not the line box (ascender space made the top look larger) */
/* text-box-trim only applies to block containers, so the label is inline-block (flex only when it holds an icon) */
.cb-tag { display: inline-block; padding: 5px 12px 7px; white-space: nowrap; }

@supports (text-box: trim-both cap alphabetic) {
	.cb-tag { padding: 7px 12px; text-box: trim-both cap alphabetic; }
}
.cb-tag--solid { background: var(--cb-red); color: var(--cb-white); }
.cb-tag--dark { background: var(--cb-ink); color: var(--cb-white); }

/* Meta row: date · reading time */
.cb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--cb-ink-500); font-size: var(--cb-fs-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.cb-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.cb-meta__item .cb-icon { width: 16px; height: 16px; color: var(--cb-ink-400); }
.cb-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--cb-line-strong); }

/* Avatar (brand mark or initials) */
.cb-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--cb-ink); color: var(--cb-white); font-weight: 800; font-size: var(--cb-fs-sm); overflow: hidden; }
.cb-avatar--lg { width: 72px; height: 72px; font-size: var(--cb-fs-lg); }
.cb-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Form field: search */
.cb-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 440px; }
.cb-search__icon { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--cb-ink-500); pointer-events: none; }
.cb-search__input {
	width: 100%; min-height: 52px; padding: 14px 128px 14px 50px;
	border: 1.5px solid var(--cb-line-strong); border-radius: var(--cb-r-pill);
	background: var(--cb-white); color: var(--cb-ink-900);
	font: 500 var(--cb-fs-base)/1.2 var(--cb-font);
	transition: border-color var(--cb-dur-2) var(--cb-ease), box-shadow var(--cb-dur-2) var(--cb-ease);
}
.cb-search__input::placeholder { color: var(--cb-ink-400); }
.cb-search__input:hover { border-color: var(--cb-ink-500); }
.cb-search__input:focus { outline: none; border-color: var(--cb-ink-900); box-shadow: 0 0 0 4px rgb(19 19 19 / 0.08); }
.cb-search__submit { position: absolute; right: 4px; min-height: 44px; padding: 10px 20px; }

/* ---------------------------------------------------------------------------
 * 6. Molecules
 * ------------------------------------------------------------------------- */

/* Breadcrumbs */
.cb-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: var(--cb-fs-sm); font-weight: 500; color: var(--cb-ink-500); }
.cb-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.cb-breadcrumbs li + li::before {
	content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: 0.6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cb-breadcrumbs a { color: var(--cb-ink-700); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--cb-dur-2) var(--cb-ease), color var(--cb-dur-2); }
.cb-breadcrumbs a:hover { color: var(--cb-red); text-decoration-color: currentColor; }
.cb-breadcrumbs [aria-current="page"] { color: var(--cb-ink-500); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Media frame with the signature diagonal red corner */
.cb-media { position: relative; overflow: hidden; border-radius: var(--cb-r); background: var(--cb-surface-2); aspect-ratio: 16 / 10; isolation: isolate; }
.cb-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--cb-ease); }
.cb-media--cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cb-cut)), calc(100% - var(--cb-cut)) 100%, 0 100%); }
.cb-media--cut::after {
	content: ""; position: absolute; right: 0; bottom: 0; width: calc(var(--cb-cut) * 2.4); height: calc(var(--cb-cut) * 2.4);
	background: var(--cb-red); clip-path: polygon(100% 0, 100% 58%, 58% 100%, 0 100%);
	z-index: 1; pointer-events: none;
}
.cb-media--wide { aspect-ratio: 16 / 9; }
.cb-media--tall { aspect-ratio: 4 / 5; }

/* Post card. The title link is stretched over the whole card (one tab stop). */
.cb-card { position: relative; display: flex; flex-direction: column; gap: var(--cb-s-5); height: 100%; }
.cb-card__media { --cb-cut: 22px; }
.cb-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.cb-card__body { display: flex; flex-direction: column; gap: var(--cb-s-3); flex: 1; }
.cb-card__title { font-size: var(--cb-fs-xl); line-height: var(--cb-lh-snug); font-weight: 800; }
.cb-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--cb-dur-3) var(--cb-ease), color var(--cb-dur-2); }
.cb-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--cb-r); }
.cb-card__excerpt { color: var(--cb-ink-500); font-size: var(--cb-fs-base); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--cb-s-4); margin-top: auto; padding-top: var(--cb-s-2); }
.cb-card__cue { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--cb-line-strong); color: var(--cb-ink-900); transition: background-color var(--cb-dur-2) var(--cb-ease), border-color var(--cb-dur-2) var(--cb-ease), color var(--cb-dur-2), transform var(--cb-dur-2) var(--cb-ease); }
.cb-card:hover .cb-media img, .cb-card:focus-within .cb-media img { transform: scale(1.04); }
.cb-card:hover .cb-card__title a { color: var(--cb-red); background-size: 100% 2px; }
.cb-card:hover .cb-card__cue { background: var(--cb-red); border-color: var(--cb-red); color: var(--cb-white); transform: rotate(-45deg); }
.cb-card:focus-within .cb-card__title a::after { outline: 2px solid var(--cb-ink-900); outline-offset: 6px; }
.cb-card__title a:focus-visible { outline: none; }

/* Featured card (hub lead story) */
.cb-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cb-s-8); align-items: center; }
.cb-feature .cb-media { aspect-ratio: 16 / 10; --cb-cut: 40px; }
.cb-feature__body { display: flex; flex-direction: column; gap: var(--cb-s-5); }
.cb-feature__title { font-size: var(--cb-fs-4xl); line-height: var(--cb-lh-tight); letter-spacing: var(--cb-track-display); }
.cb-feature__excerpt { font-size: var(--cb-fs-lg); line-height: 1.6; color: var(--cb-ink-500); max-width: 52ch; }
@media (min-width: 1024px) { .cb-feature { grid-template-columns: 7fr 5fr; gap: var(--cb-s-16); } }

/* Compact list item (sidebar "popular" / related) */
.cb-mini { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--cb-s-4); align-items: center; }
.cb-mini .cb-media { aspect-ratio: 1; border-radius: var(--cb-r-sm); }
.cb-mini__title { font-size: var(--cb-fs-base); font-weight: 700; line-height: 1.3; color: var(--cb-ink-900); }
.cb-mini__title a::after { content: ""; position: absolute; inset: 0; }
.cb-mini:hover .cb-mini__title { color: var(--cb-red); }

/* Pagination */
.cb-pagination { display: flex; justify-content: center; margin-top: var(--cb-s-16); }
.cb-pagination ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--cb-s-2); list-style: none; margin: 0; padding: 0; }
.cb-page {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 48px; height: 48px; padding: 0 14px; border-radius: var(--cb-r-pill);
	font-weight: 800; font-size: var(--cb-fs-base); color: var(--cb-ink-900); font-variant-numeric: tabular-nums;
	border: 1.5px solid transparent;
	transition: background-color var(--cb-dur-2) var(--cb-ease), border-color var(--cb-dur-2) var(--cb-ease), color var(--cb-dur-2);
}
.cb-page:hover { border-color: var(--cb-line-strong); }
.cb-page[aria-current="page"] { background: var(--cb-red); color: var(--cb-white); }
.cb-page--nav { border-color: var(--cb-line-strong); padding: 0 20px; }
.cb-page--nav:hover { border-color: var(--cb-ink-900); }
.cb-page--gap { min-width: 24px; padding: 0; color: var(--cb-ink-500); }
.cb-page[aria-disabled="true"] { color: var(--cb-ink-400); pointer-events: none; }

/* ---------------------------------------------------------------------------
 * 7. Organisms
 * ------------------------------------------------------------------------- */

/* Page hero (hub + archives) */
.cb-hero { position: relative; overflow: hidden; background: var(--cb-white); border-bottom: 1px solid var(--cb-line); }
.cb-hero__inner { position: relative; z-index: 1; display: grid; gap: var(--cb-s-8); padding-block: clamp(40px, 4vw + 16px, 96px) clamp(40px, 3vw + 24px, 80px); }
.cb-hero__title { font-size: var(--cb-fs-5xl); line-height: 0.98; letter-spacing: var(--cb-track-display); max-width: 16ch; }
.cb-hero__lead { font-size: var(--cb-fs-lg); line-height: 1.6; color: var(--cb-ink-500); max-width: 56ch; }
.cb-hero__bg { position: absolute; inset: 0 0 0 auto; width: min(46vw, 640px); pointer-events: none; color: var(--cb-surface-2); }
.cb-hero__bg svg { width: 100%; height: 100%; }
@media (max-width: 1023px) { .cb-hero__bg { width: 70vw; opacity: 0.7; } }

/* Split hero: copy (6 cols) | real photo with the site's diagonal mask, bleeding to the viewport edge */
.cb-hero--split { border-bottom: 0; overflow: clip; }
.cb-hero__grid { display: grid; gap: var(--cb-s-10); padding-top: clamp(28px, 3vw + 12px, 56px); }
.cb-hero__copy { display: grid; gap: var(--cb-s-6); align-content: center; justify-items: start; }
.cb-hero__copy .cb-search { margin-top: var(--cb-s-2); }
.cb-hero__visual { position: relative; aspect-ratio: 4 / 3; margin-inline: calc(var(--cb-gutter) * -1); }
.cb-hero__photo { position: absolute; inset: 0; overflow: hidden; background: var(--cb-surface-2); clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
.cb-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cb-hero__slash { display: none; position: absolute; inset: 0; background: var(--cb-red); pointer-events: none; }
.cb-hero__rating {
	position: absolute; left: var(--cb-gutter); bottom: var(--cb-s-4); z-index: 1;
	display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px;
	border-radius: var(--cb-r-lg); background: var(--cb-white); box-shadow: 0 1px 2px rgb(19 19 19 / 0.08), 0 6px 16px -8px rgb(19 19 19 / 0.16);
	font-size: var(--cb-fs-sm); line-height: 1.3; color: var(--cb-ink-500); font-weight: 500;
}
.cb-hero__rating-logo { width: 32px; height: 32px; flex: none; }
.cb-hero__rating-score { display: flex; align-items: center; gap: 8px; font-size: var(--cb-fs-xl); font-weight: 800; color: var(--cb-ink-900); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
	.cb-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cb-col-gap); padding-top: 0; min-height: clamp(560px, 42vw, 680px); }
	.cb-hero__copy { grid-column: 1 / span 6; padding-block: var(--cb-s-16) var(--cb-s-20); }
	.cb-hero__visual { grid-column: 7 / span 6; aspect-ratio: auto; margin-inline: 0 min(calc(var(--cb-gutter) * -1), calc((var(--cb-container) - 100vw) / 2)); }
	.cb-hero__photo { clip-path: polygon(30% 0, 100% 0, 100% 100%, 4% 100%); }
	.cb-hero__slash { display: block; clip-path: polygon(11.2% 60%, 14.4% 60%, 4% 100%, 0.8% 100%); }
	.cb-hero__rating { left: 10%; bottom: var(--cb-s-12); }
}
.cb-hero--compact .cb-hero__grid { min-height: 0; }
@media (min-width: 1024px) {
	.cb-hero--compact .cb-hero__grid { min-height: clamp(400px, 30vw, 480px); }
	.cb-hero--compact .cb-hero__copy { grid-column: 1 / span 7; padding-block: var(--cb-s-12) var(--cb-s-16); }
	.cb-hero--compact .cb-hero__visual { grid-column: 8 / span 5; }
	.cb-hero--compact .cb-hero__title { font-size: var(--cb-fs-4xl); }
}
@media (forced-colors: active) { .cb-hero__slash { display: none; } .cb-hero__rating { border: 1px solid CanvasText; } }

/* Trust strip (Google rating + licence) */
.cb-trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cb-s-4) var(--cb-s-8); font-size: var(--cb-fs-sm); color: var(--cb-ink-500); font-weight: 500; }
.cb-trust__item { display: inline-flex; align-items: center; gap: 10px; }
.cb-trust__score { font-size: var(--cb-fs-xl); font-weight: 800; color: var(--cb-ink-900); font-variant-numeric: tabular-nums; }
.cb-stars { display: inline-flex; gap: 2px; color: #f5a623; }
.cb-stars svg { width: 16px; height: 16px; }
.cb-trust__badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cb-red); color: var(--cb-white); }

/* Toolbar (filters + search) */
.cb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cb-s-4) var(--cb-s-8); padding-block: var(--cb-s-6); border-bottom: 1px solid var(--cb-line); }
.cb-toolbar__label { font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase; color: var(--cb-ink-500); margin-right: var(--cb-s-2); }

/* Results line (archives, search) */
.cb-results { font-size: var(--cb-fs-sm); color: var(--cb-ink-500); font-weight: 500; font-variant-numeric: tabular-nums; }
.cb-results strong { color: var(--cb-ink-900); }

/* Empty state */
.cb-empty { display: grid; justify-items: center; text-align: center; gap: var(--cb-s-4); padding: var(--cb-s-16) var(--cb-s-6); border: 1.5px dashed var(--cb-line-strong); border-radius: var(--cb-r-lg); }
.cb-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cb-red-50); color: var(--cb-red); }
.cb-empty h2 { font-size: var(--cb-fs-2xl); }
.cb-empty p { color: var(--cb-ink-500); max-width: 46ch; }

/* CTA band (dark, brand diagonal) */
.cb-cta { position: relative; overflow: hidden; border-radius: var(--cb-r-lg); background: var(--cb-ink); color: #d6d6d6; isolation: isolate; }
/* Photo panel: diagonal mask + red seam, mirrors the home hero */
.cb-cta__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.cb-cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.cb-cta__inner { position: relative; display: grid; gap: var(--cb-s-6); padding: var(--cb-s-6) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 64px); align-content: center; }
.cb-cta h2 { color: var(--cb-white); font-size: var(--cb-fs-4xl); line-height: var(--cb-lh-tight); letter-spacing: var(--cb-track-display); max-width: 16ch; }
.cb-cta p { font-size: var(--cb-fs-lg); line-height: 1.6; max-width: 44ch; margin-top: var(--cb-s-4); }
.cb-cta__actions { display: flex; flex-wrap: wrap; gap: var(--cb-s-3); }
@media (min-width: 1024px) {
	.cb-cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: 400px; }
	.cb-cta__inner { grid-column: 1 / span 7; grid-row: 1; padding: clamp(48px, 4vw, 72px); }
	.cb-cta__media { grid-column: 7 / -1; grid-row: 1; aspect-ratio: auto; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
	.cb-cta::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--cb-red); clip-path: polygon(61.5% 0, 64.6% 0, 49.6% 100%, 46.5% 100%); }
}
@media (min-width: 640px) and (max-width: 1023px) { .cb .cb-cta__actions .cb-btn { flex: 1 1 200px; } }
@media (max-width: 639px) {
	.cb .cb-cta__actions { flex-direction: column; }
	.cb .cb-cta__actions .cb-btn { flex: none; width: 100%; }
}

/* ---------------------------------------------------------------------------
 * 8. Single post
 * ------------------------------------------------------------------------- */

/* Reading progress: CSS scroll-driven animation, no JS (progressive enhancement) */
.cb-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--cb-red); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.cb-progress { animation: cb-progress linear both; animation-timeline: scroll(root block); }
	}
}
@keyframes cb-progress { to { transform: scaleX(1); } }

.cb-article-head { padding-block: clamp(32px, 3vw + 16px, 72px) var(--cb-s-10); }
.cb-article-head__inner { display: grid; gap: var(--cb-s-6); max-width: 980px; }
.cb-article-title { font-size: var(--cb-fs-4xl); line-height: var(--cb-lh-tight); letter-spacing: var(--cb-track-display); }
.cb-article-deck { font-size: var(--cb-fs-xl); line-height: 1.5; color: var(--cb-ink-500); font-weight: 400; max-width: 60ch; }
.cb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cb-s-4) var(--cb-s-6); padding-top: var(--cb-s-6); border-top: 1px solid var(--cb-line); }
.cb-byline__who { display: flex; align-items: center; gap: var(--cb-s-3); }
.cb-byline__name { font-weight: 800; color: var(--cb-ink-900); }
.cb-byline__role { display: inline-flex; align-items: center; gap: 6px; font-size: var(--cb-fs-sm); color: var(--cb-ink-500); }
.cb-byline__role .cb-icon { width: 16px; height: 16px; color: var(--cb-red); }
.cb-byline .cb-meta { margin-left: auto; }
@media (max-width: 767px) { .cb-byline .cb-meta { margin-left: 0; } }

.cb-article-hero { margin-bottom: clamp(32px, 4vw, 64px); }
.cb-article-hero .cb-media { aspect-ratio: 21 / 9; --cb-cut: 48px; border-radius: var(--cb-r-lg); }
@media (max-width: 767px) { .cb-article-hero .cb-media { aspect-ratio: 16 / 10; --cb-cut: 28px; } }
.cb-article-hero figcaption { margin-top: var(--cb-s-3); font-size: var(--cb-fs-sm); color: var(--cb-ink-500); }

/* Article layout: two columns — prose (8) | sticky sidebar (4: TOC, share, booking) */
.cb-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cb-s-10); }
@media (min-width: 1024px) {
	.cb-article { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cb-col-gap); }
	.cb-article__body { grid-column: 1 / span 8; }
	.cb-article__aside { grid-column: 9 / span 4; padding-left: var(--cb-s-8); }
}
.cb-aside { display: grid; gap: var(--cb-s-6); }
.cb-aside__toc { display: grid; gap: var(--cb-s-5); padding: var(--cb-s-6); border: 1px solid var(--cb-line); border-radius: var(--cb-r-lg); background: var(--cb-white); }
.cb-aside__toc .cb-share { padding-top: var(--cb-s-5); border-top: 1px solid var(--cb-line); }
.cb-book--compact { padding: var(--cb-s-6); gap: var(--cb-s-4); }
.cb-book--compact h2 { font-size: var(--cb-fs-xl); }
.cb-book--compact .cb-stack { gap: var(--cb-s-2); }
@media (max-width: 1023px) { .cb-article__aside .cb-aside__toc { display: none; } .cb-aside.cb-sticky { position: static; } }
.cb-sticky { position: sticky; top: var(--cb-sticky-top, 24px); }

/* Table of contents */
.cb-toc { font-size: var(--cb-fs-sm); }
.cb-toc__title { display: flex; align-items: center; gap: 8px; font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase; color: var(--cb-ink-500); margin-bottom: var(--cb-s-4); }
.cb-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: cb-toc; display: grid; gap: 2px; }
.cb-toc li { counter-increment: cb-toc; }
.cb-toc a {
	position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px;
	padding: 9px 12px 9px 10px; border-radius: var(--cb-r-sm);
	color: var(--cb-ink-700); font-weight: 500; line-height: 1.35;
	transition: background-color var(--cb-dur-2) var(--cb-ease), color var(--cb-dur-2);
}
.cb-toc a::before { content: counter(cb-toc, decimal-leading-zero); color: var(--cb-ink-400); font-weight: 700; font-variant-numeric: tabular-nums; }
.cb-toc a:hover { background: var(--cb-surface-2); color: var(--cb-ink-900); }
.cb-toc a[aria-current="true"] { background: var(--cb-red-50); color: var(--cb-red-700); font-weight: 700; }
.cb-toc a[aria-current="true"]::before { color: var(--cb-red); }
.cb-toc .cb-toc__sub a { grid-template-columns: 28px minmax(0, 1fr); padding-left: 38px; font-size: var(--cb-fs-sm); }
.cb-toc .cb-toc__sub a::before { content: "–"; }

/* Mobile TOC: native disclosure */
.cb-toc-mobile { border: 1.5px solid var(--cb-line); border-radius: var(--cb-r); background: var(--cb-white); }
.cb-toc-mobile summary { display: flex; align-items: center; justify-content: space-between; gap: var(--cb-s-3); min-height: 56px; padding: 14px 18px; font-weight: 800; color: var(--cb-ink-900); cursor: pointer; list-style: none; }
.cb-toc-mobile summary::-webkit-details-marker { display: none; }
.cb-toc-mobile summary .cb-icon { transition: transform var(--cb-dur-2) var(--cb-ease); }
.cb-toc-mobile[open] summary .cb-icon { transform: rotate(180deg); }
.cb-toc-mobile .cb-toc { padding: 0 10px 14px; }
@media (min-width: 1024px) { .cb-toc-mobile { display: none; } }
@media (max-width: 1023px) { .cb-toc--rail { display: none; } }

/* Share */
.cb-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cb-s-2); }
.cb-share__label { font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase; color: var(--cb-ink-500); margin-right: var(--cb-s-2); }
.cb-share__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--cb-line-strong); background: var(--cb-white); color: var(--cb-ink-900); cursor: pointer; transition: background-color var(--cb-dur-2) var(--cb-ease), border-color var(--cb-dur-2), color var(--cb-dur-2); }
.cb-share__btn:hover { background: var(--cb-ink-900); border-color: var(--cb-ink-900); color: var(--cb-white); }
.cb-share__btn .cb-icon { width: 18px; height: 18px; }

/* Sidebar booking card */
.cb-book { position: relative; overflow: hidden; border-radius: var(--cb-r-lg); background: var(--cb-ink); color: #d6d6d6; padding: var(--cb-s-8) var(--cb-s-6); display: grid; gap: var(--cb-s-5); isolation: isolate; }
.cb-book::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; background: var(--cb-red); clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: -1; }
.cb-book h2, .cb-book h3 { color: var(--cb-white); font-size: var(--cb-fs-2xl); line-height: var(--cb-lh-tight); }
.cb-book p { font-size: var(--cb-fs-base); line-height: 1.55; }
.cb-book ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--cb-fs-sm); font-weight: 500; color: var(--cb-white); }
.cb-book li { display: flex; align-items: center; gap: 10px; }
.cb-book li .cb-icon { width: 18px; height: 18px; color: #ff5a64; }
.cb-book .cb-btn { width: 100%; }
.cb-book__media { margin: calc(var(--cb-s-8) * -1) calc(var(--cb-s-6) * -1) 0; aspect-ratio: 16 / 10; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.cb-book--compact .cb-book__media { margin: calc(var(--cb-s-6) * -1) calc(var(--cb-s-6) * -1) 0; }
.cb-book__media img { width: 100%; height: 100%; object-fit: cover; }

/* Author / reviewer box (E-E-A-T) */
.cb-author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--cb-s-5); padding: var(--cb-s-8); border-radius: var(--cb-r-lg); background: var(--cb-surface); border: 1px solid var(--cb-line); }
.cb-author__label { font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase; color: var(--cb-ink-500); }
.cb-author__name { font-size: var(--cb-fs-xl); font-weight: 800; color: var(--cb-ink-900); margin-top: 4px; }
.cb-author p { margin-top: var(--cb-s-3); line-height: 1.6; }
.cb-author__creds { display: flex; flex-wrap: wrap; gap: var(--cb-s-2); margin-top: var(--cb-s-4); }
.cb-cred { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--cb-r-pill); background: var(--cb-white); border: 1px solid var(--cb-line); font-size: var(--cb-fs-xs); font-weight: 700; color: var(--cb-ink-900); }
.cb-cred .cb-icon { width: 14px; height: 14px; color: var(--cb-red); }
@media (max-width: 639px) { .cb-author { grid-template-columns: minmax(0, 1fr); } }

/* Previous / next */
.cb-adjacent { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cb-s-4); }
@media (min-width: 768px) { .cb-adjacent { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cb-adjacent a { position: relative; display: grid; gap: 6px; padding: var(--cb-s-6); border-radius: var(--cb-r); border: 1.5px solid var(--cb-line); transition: border-color var(--cb-dur-2) var(--cb-ease), box-shadow var(--cb-dur-2) var(--cb-ease); }
.cb-adjacent a:hover { border-color: var(--cb-ink-900); }
.cb-adjacent__dir { display: inline-flex; align-items: center; gap: 6px; font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase; color: var(--cb-red); }
.cb-adjacent__title { font-weight: 800; font-size: var(--cb-fs-lg); line-height: 1.3; color: var(--cb-ink-900); }
.cb-adjacent__next { text-align: right; justify-items: end; }

/* ---------------------------------------------------------------------------
 * 9. Prose — full rich-text coverage (classic editor + Gutenberg core blocks)
 * ------------------------------------------------------------------------- */
.cb-prose { font-size: var(--cb-fs-md); line-height: var(--cb-lh-body); color: var(--cb-ink-700); max-width: var(--cb-measure); hanging-punctuation: first; overflow-wrap: break-word; }
.cb-prose > * + * { margin-top: 1.25em; }
.cb-prose > :first-child { margin-top: 0; }

/* Lead paragraph */
.cb-prose > p:first-of-type, .cb-prose .cb-lead, .cb-prose .is-style-lead { font-size: var(--cb-fs-lg); line-height: 1.65; color: var(--cb-ink-900); }

/* Headings: rhythm + anchor target offset */
.cb-prose :where(h2, h3, h4, h5, h6) { scroll-margin-top: 96px; color: var(--cb-ink-900); }
.cb-prose h2 { font-size: var(--cb-fs-3xl); line-height: 1.12; letter-spacing: var(--cb-track-display); margin-top: 2.2em; }
.cb-prose h3 { font-size: var(--cb-fs-2xl); line-height: 1.2; margin-top: 1.9em; }
.cb-prose h4 { font-size: var(--cb-fs-xl); line-height: 1.3; font-weight: 700; margin-top: 1.7em; }
.cb-prose h5 { font-size: var(--cb-fs-md); font-weight: 700; margin-top: 1.6em; }
.cb-prose h6 { font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase; color: var(--cb-ink-500); margin-top: 1.6em; }
.cb-prose :where(h2, h3, h4, h5, h6) + * { margin-top: 0.6em; }
.cb-prose h2 + h3 { margin-top: 0.8em; }

/* Inline */
.cb-prose a { color: var(--cb-red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgb(201 16 28 / 0.35); transition: text-decoration-color var(--cb-dur-2) var(--cb-ease), color var(--cb-dur-2); }
.cb-prose a:hover { color: var(--cb-red-700); text-decoration-color: currentColor; }
.cb-prose a[href^="tel:"] { white-space: nowrap; }
.cb-prose :where(strong, b) { font-weight: 700; color: var(--cb-ink-900); }
.cb-prose :where(em, i, cite) { font-style: italic; }
.cb-prose mark { background: linear-gradient(transparent 55%, var(--cb-red-100) 55%); color: inherit; padding: 0 2px; }
.cb-prose small { font-size: var(--cb-fs-sm); }
.cb-prose :where(sub, sup) { font-size: 0.7em; line-height: 0; }
.cb-prose abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.cb-prose :where(del, s) { color: var(--cb-ink-500); }
.cb-prose ins { text-decoration: none; background: var(--cb-tip-bg); }
.cb-prose kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--cb-line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--cb-white); font: 600 0.85em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--cb-ink-900); }
.cb-prose :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--cb-surface-2); font: 500 0.88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--cb-ink-900); }

/* Lists */
.cb-prose :where(ul, ol) { padding-left: 1.4em; }
.cb-prose li { padding-left: 0.35em; }
.cb-prose li + li { margin-top: 0.5em; }
.cb-prose :where(li > ul, li > ol) { margin-top: 0.5em; }
.cb-prose ul { list-style: none; padding-left: 1.6em; }
.cb-prose ul > li { position: relative; }
.cb-prose ul > li::before { content: ""; position: absolute; left: -1.15em; top: 0.72em; width: 8px; height: 8px; background: var(--cb-red); transform: rotate(45deg) scale(0.8); border-radius: 1px; }
.cb-prose ul ul > li::before { background: transparent; border: 1.5px solid var(--cb-red); }
.cb-prose ol { list-style: none; counter-reset: cb-ol; padding-left: 2.4em; }
.cb-prose ol > li { position: relative; counter-increment: cb-ol; }
.cb-prose ol > li::before { content: counter(cb-ol); position: absolute; left: -2.2em; top: 0.12em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--cb-ink-900); color: var(--cb-white); font-size: 0.78em; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.cb-prose ol ol { counter-reset: cb-ol2; }
.cb-prose ol ol > li { counter-increment: cb-ol2; }
.cb-prose ol ol > li::before { content: counter(cb-ol2, lower-alpha); background: var(--cb-surface-2); color: var(--cb-ink-900); }
.cb-prose :where(ul.is-style-checks, ul.cb-checks) > li::before { width: 20px; height: 20px; left: -1.6em; top: 0.25em; transform: none; border: 0; border-radius: 50%; background: var(--cb-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cb-prose :where(ul.is-style-checks, ul.cb-checks) { padding-left: 2em; }

/* Description list */
.cb-prose dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--cb-line); }
.cb-prose dt { font-weight: 800; color: var(--cb-ink-900); padding-top: var(--cb-s-4); }
.cb-prose dd { margin: 4px 0 0; padding-bottom: var(--cb-s-4); border-bottom: 1px solid var(--cb-line); color: var(--cb-ink-500); }

/* Quotes */
.cb-prose blockquote, .cb-prose .wp-block-quote {
	position: relative; margin-inline: 0; padding: var(--cb-s-8) var(--cb-s-8) var(--cb-s-8) calc(var(--cb-s-8) + 36px);
	border-radius: var(--cb-r-lg); background: var(--cb-surface); font-size: var(--cb-fs-lg); line-height: 1.6; color: var(--cb-ink-900); font-weight: 500;
}
.cb-prose blockquote::before { content: ""; position: absolute; left: var(--cb-s-6); top: var(--cb-s-8); width: 32px; height: 26px; background: var(--cb-red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='M0 26V15.6C0 6.9 4.6 1.7 13.3 0l1.3 3.6C9.8 5 7.4 7.9 7 12h6.3v14H0Zm18.4 0V15.6C18.4 6.9 23 1.7 31.7 0L33 3.6c-4.8 1.4-7.2 4.3-7.6 8.4h6.3v14H18.4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='M0 26V15.6C0 6.9 4.6 1.7 13.3 0l1.3 3.6C9.8 5 7.4 7.9 7 12h6.3v14H0Zm18.4 0V15.6C18.4 6.9 23 1.7 31.7 0L33 3.6c-4.8 1.4-7.2 4.3-7.6 8.4h6.3v14H18.4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.cb-prose blockquote > * + * { margin-top: 0.8em; }
.cb-prose blockquote :where(cite, footer) { display: block; margin-top: var(--cb-s-4); font-size: var(--cb-fs-sm); font-style: normal; font-weight: 700; color: var(--cb-ink-500); }
.cb-prose blockquote :where(cite, footer)::before { content: "— "; }
.cb-prose .wp-block-pullquote, .cb-prose .cb-pullquote { margin-block: 2em; padding: var(--cb-s-8) 0; border-block: 3px solid var(--cb-ink-900); text-align: left; }
.cb-prose .wp-block-pullquote blockquote, .cb-prose .cb-pullquote blockquote { padding: 0; background: none; font-size: var(--cb-fs-3xl); line-height: 1.15; font-weight: 800; letter-spacing: var(--cb-track-display); }
.cb-prose .wp-block-pullquote blockquote::before, .cb-prose .cb-pullquote blockquote::before { display: none; }

/* Figures, images, alignment (classic + block) */
.cb-prose :where(figure, .wp-caption) { margin-inline: 0; max-width: 100%; }
.cb-prose :where(figure, .wp-caption) img { border-radius: var(--cb-r); }
.cb-prose > img, .cb-prose p > img:only-child { border-radius: var(--cb-r); }
.cb-prose :where(figcaption, .wp-caption-text, .wp-element-caption) { margin-top: var(--cb-s-3); font-size: var(--cb-fs-sm); line-height: 1.5; color: var(--cb-ink-500); text-align: left; }
.cb-prose :where(.alignleft) { float: left; margin: 0.4em var(--cb-s-8) var(--cb-s-4) 0; max-width: 45%; }
.cb-prose :where(.alignright) { float: right; margin: 0.4em 0 var(--cb-s-4) var(--cb-s-8); max-width: 45%; }
.cb-prose :where(.aligncenter) { margin-inline: auto; display: block; }
.cb-prose :where(.alignwide, .alignfull) { width: 100%; }
.cb-prose::after { content: ""; display: table; clear: both; }
@media (max-width: 639px) { .cb-prose :where(.alignleft, .alignright) { float: none; max-width: 100%; margin: 0; } }

/* Gallery */
.cb-prose :where(.wp-block-gallery, .gallery) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--cb-s-3); }
.cb-prose :where(.wp-block-gallery, .gallery) img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--cb-r-sm); }

/* Tables: scroll box on small screens, tabular numbers */
.cb-prose :where(.wp-block-table, .cb-table) { overflow-x: auto; border: 1px solid var(--cb-line); border-radius: var(--cb-r); -webkit-overflow-scrolling: touch; }
.cb-prose table { width: 100%; border-collapse: collapse; font-size: var(--cb-fs-base); line-height: 1.45; font-variant-numeric: tabular-nums lining-nums; }
.cb-prose > table { display: block; overflow-x: auto; border: 1px solid var(--cb-line); border-radius: var(--cb-r); }
.cb-prose :where(th, td) { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cb-line); }
.cb-prose thead th { background: var(--cb-ink); color: var(--cb-white); font-size: var(--cb-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.cb-prose tbody tr:nth-child(even) { background: var(--cb-surface); }
.cb-prose tbody tr:last-child :where(td, th) { border-bottom: 0; }
.cb-prose tbody th, .cb-prose tbody td:first-child { font-weight: 700; color: var(--cb-ink-900); }
.cb-prose :where(td.is-num, th.is-num, .has-text-align-right) { text-align: right; white-space: nowrap; }
.cb-prose table caption, .cb-prose .wp-block-table figcaption { caption-side: bottom; padding: var(--cb-s-3) var(--cb-s-4); font-size: var(--cb-fs-sm); color: var(--cb-ink-500); text-align: left; }

/* Separator */
.cb-prose hr, .cb-prose .wp-block-separator { height: 0; border: 0; margin-block: 3em; overflow: visible; text-align: center; }
.cb-prose hr::before { content: ""; display: inline-block; width: 48px; height: 6px; background: var(--cb-red); transform: skewX(-24deg); border-radius: 1px; }

/* Code block */
.cb-prose pre { overflow-x: auto; padding: var(--cb-s-6); border-radius: var(--cb-r); background: var(--cb-ink); color: #ededed; font: 500 0.875rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }

/* Embeds: responsive 16:9 */
.cb-prose :where(.wp-block-embed__wrapper, .cb-embed) { position: relative; aspect-ratio: 16 / 9; border-radius: var(--cb-r); overflow: hidden; background: var(--cb-ink); }
.cb-prose :where(.wp-block-embed__wrapper, .cb-embed) iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Buttons inside content */
.cb-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--cb-s-3); }
.cb-prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 26px; border-radius: var(--cb-r-pill); background: var(--cb-red); color: var(--cb-white); font-weight: 800; text-decoration: none; }
.cb-prose .wp-block-button__link:hover { background: var(--cb-red-700); color: var(--cb-white); }

/* FAQ: native details/summary (works without JS) */
.cb-prose :where(details, .wp-block-details) { border: 1.5px solid var(--cb-line); border-radius: var(--cb-r); background: var(--cb-white); transition: border-color var(--cb-dur-2) var(--cb-ease); }
.cb-prose :where(details, .wp-block-details) + :where(details, .wp-block-details) { margin-top: var(--cb-s-3); }
.cb-prose details[open] { border-color: var(--cb-ink-900); }
.cb-prose summary { position: relative; display: block; padding: 18px 64px 18px 22px; font-weight: 800; color: var(--cb-ink-900); cursor: pointer; list-style: none; line-height: 1.4; }
.cb-prose summary::-webkit-details-marker { display: none; }
.cb-prose summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--cb-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform var(--cb-dur-2) var(--cb-ease), background-color var(--cb-dur-2); }
.cb-prose details[open] summary::after { transform: rotate(45deg); background-color: var(--cb-red-50); }
.cb-prose details > :not(summary) { margin: 0; padding: 0 22px 20px; }
.cb-prose details > :not(summary) + :not(summary) { padding-top: 0; }

/* Callouts: block style variants or classic-editor classes */
.cb-prose :where(.cb-callout, .is-style-tip, .is-style-warning, .is-style-info) {
	display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--cb-s-4);
	padding: var(--cb-s-6); border-radius: var(--cb-r); background: var(--cb-info-bg); color: var(--cb-ink-900); font-size: var(--cb-fs-base); line-height: 1.6;
}
.cb-callout__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cb-white); color: var(--cb-info-fg); }
.cb-callout__title { display: block; font-weight: 800; margin-bottom: 4px; color: var(--cb-info-fg); }
.cb-callout > :not(.cb-callout__icon) { grid-column: 2; }
.cb-callout--tip { background: var(--cb-tip-bg); }
.cb-callout--tip .cb-callout__icon, .cb-callout--tip .cb-callout__title { color: var(--cb-tip-fg); }
.cb-callout--warning { background: var(--cb-warn-bg); }
.cb-callout--warning .cb-callout__icon, .cb-callout--warning .cb-callout__title { color: var(--cb-warn-fg); }

/* Key takeaways summary box */
.cb-takeaways { padding: var(--cb-s-8); border-radius: var(--cb-r-lg); border: 1.5px solid var(--cb-ink-900); background: var(--cb-white); }
.cb-takeaways__title { display: flex; align-items: center; gap: 10px; font-size: var(--cb-fs-xs) !important; font-weight: 700; letter-spacing: var(--cb-track-caps); text-transform: uppercase; color: var(--cb-red) !important; margin: 0 0 var(--cb-s-4) !important; }

/* Stat highlight */
.cb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--cb-s-3); }
.cb-stat { padding: var(--cb-s-5); border-radius: var(--cb-r); background: var(--cb-surface); }
.cb-stat__value { display: block; font-size: var(--cb-fs-3xl); font-weight: 800; line-height: 1; letter-spacing: var(--cb-track-display); color: var(--cb-ink-900); font-variant-numeric: tabular-nums; }
.cb-stat__label { display: block; margin-top: var(--cb-s-2); font-size: var(--cb-fs-sm); line-height: 1.4; color: var(--cb-ink-500); }

/* ---------------------------------------------------------------------------
 * 10. Motion: entrance on scroll, CSS-only, opt-in via reduced-motion
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.cb-reveal { animation: cb-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
	}
}
@keyframes cb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.cb *, .cb *::before, .cb *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.cb-card:hover .cb-media img { transform: none; }
}

/* ---------------------------------------------------------------------------
 * 11. Forced colors / print
 * ------------------------------------------------------------------------- */
@media (forced-colors: active) {
	.cb-btn, .cb-chip, .cb-page, .cb-share__btn, .cb-card__cue { border: 1px solid ButtonText; }
	.cb-media--cut::after, .cb-cta::before, .cb-book::after { display: none; }
	.cb-prose ul > li::before, .cb-prose ol > li::before { forced-color-adjust: none; background: CanvasText; color: Canvas; }
}
@media print {
	.cb-progress, .cb-toc, .cb-toc-mobile, .cb-share, .cb-book, .cb-cta, .cb-adjacent, .cb-pagination { display: none !important; }
	.cb-prose { max-width: none; font-size: 11pt; }
	.cb-prose a::after { content: " (" attr(href) ")"; font-weight: 400; color: var(--cb-ink-500); }
}

/* ---------------------------------------------------------------------------
 * 12. Template additions (merged from the approved canvas artboards)
 * ------------------------------------------------------------------------- */

/* Colour guards: the theme's generic link/hover rules must not repaint components */
.cb .cb-btn, .cb .cb-btn:hover { color: var(--_fg); }
.cb .cb-link, .cb .cb-link:hover { color: var(--cb-red); }
.cb .cb-skip, .cb .cb-skip:hover, .cb .cb-skip:focus { color: var(--cb-white); }
.cb .cb-chip:hover { color: var(--cb-ink-900); }
.cb .cb-chip[aria-current="page"], .cb .cb-chip[aria-current="page"]:hover { color: var(--cb-white); }
.cb .cb-page:hover { color: var(--cb-ink-900); }
.cb .cb-page[aria-current="page"], .cb .cb-page[aria-current="page"]:hover { background: var(--cb-ink-900); color: var(--cb-white); }
.cb p a, .cb .cb-card a, .cb .cb-mini a { text-decoration: none; }
.cb .cb-prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgb(201 16 28 / 0.75); }

/* Search input: 3:1 edge and a focus ring that survives forced colours */
.cb-search__input { border-color: var(--cb-ink-400); }
.cb-search__input:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--cb-ink-900); box-shadow: 0 0 0 2px var(--cb-ink-900); }
.cb-search__input::-webkit-search-cancel-button { margin-right: 4px; }

/* Breadcrumbs: links always underlined, 44px hit area */
.cb-breadcrumbs li { min-width: 0; max-width: 100%; }
.cb-breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--cb-ink-400); text-underline-offset: 3px; }
.cb-breadcrumbs a:hover { text-decoration-color: currentColor; }

/* Card tags over photos: neutral pill */
.cb-card__tag { background: var(--cb-white); color: var(--cb-ink-900); }
.cb-card mark { background: linear-gradient(transparent 52%, var(--cb-red-100) 52%, var(--cb-red-100) calc(100% - 2px), transparent calc(100% - 2px)); color: inherit; padding: 0 2px; }
.cb-cards:where(ul, ol) { list-style: none; margin: 0; padding: 0; }

/* Current-state markers that survive forced colours */
@media (forced-colors: active) {
	.cb-chip[aria-current="page"], .cb-page[aria-current="page"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
}

/* Toolbar between a section head and the grid it filters */
.cb-section-head + .cb-toolbar { margin-top: calc(var(--cb-s-10) * -1 + var(--cb-s-4)); }
.cb-toolbar + .cb-cards { margin-top: var(--cb-s-10); }
.cb-toolbar .cb-search { flex: 1 1 320px; max-width: 380px; }
@media (min-width: 1280px) { .cb-toolbar .cb-search { margin-left: auto; } }
@media (max-width: 1279px) { .cb-toolbar .cb-search { max-width: none; flex-basis: 100%; } }
@media (max-width: 767px) {
	.cb-toolbar > nav { display: grid; gap: var(--cb-s-2); width: 100%; min-width: 0; }
	.cb-toolbar .cb-chips { position: relative; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * var(--cb-gutter)); padding-inline: var(--cb-gutter); padding-block: 2px; }
	.cb-toolbar .cb-chips::-webkit-scrollbar { display: none; }
	.cb-toolbar .cb-chip { flex: none; scroll-snap-align: start; }
}

/* Feature on the 12-column grid: image 8 cols, body 4 cols, one stretched link */
.cb-feature__title { font-size: var(--cb-fs-3xl); }
@media (min-width: 1024px) {
	.cb-feature { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cb-col-gap); }
	.cb-feature > .cb-media { grid-column: 1 / span 8; }
	.cb-feature__body { grid-column: 9 / span 4; }
}
.cb-feature__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size var(--cb-dur-3) var(--cb-ease), color var(--cb-dur-2) var(--cb-ease); }
.cb-feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--cb-r); }
.cb-feature__title a:focus-visible { outline: none; }
.cb-feature:focus-within .cb-feature__title a::after { outline: 2px solid var(--cb-ink-900); outline-offset: 8px; }
.cb-feature:hover .cb-feature__title a { color: var(--cb-red); background-size: 100% 3px; }
.cb-feature:hover .cb-media img, .cb-feature:focus-within .cb-media img { transform: scale(1.04); }
.cb-feature:hover .cb-link { background-size: 100% 2px; }
.cb-feature:hover .cb-link .cb-icon { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .cb-feature:hover .cb-media img, .cb-feature:focus-within .cb-media img { transform: none; } }

/* Text link: 44px hit area without moving the underline */
.cb-link { position: relative; }
.cb-link::before { content: ""; position: absolute; inset: -9px 0; }

/* Archive hero meta */
.cb-hero__copy > .cb-results { margin-top: calc(var(--cb-s-2) * -1); }

/* Empty state */
.cb-empty .cb-chips { justify-content: center; }
.cb-empty .cb-btn { margin-top: var(--cb-s-2); }

/* Single */
.cb-post { padding-bottom: var(--cb-section); }
.cb-post > .cb-container { padding-top: clamp(24px, 2vw + 12px, 48px); }
.cb-article__body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--cb-s-8); }
.cb-article__body .cb-article-head { padding: 0; }
.cb-article-head__inner { max-width: none; }
.cb-article__body .cb-prose { max-width: none; }
.cb-article-hero { margin: 0; }
.cb-article__body .cb-article-hero .cb-media { aspect-ratio: 16 / 9; --cb-cut: 36px; }
.cb-article__foot { display: grid; gap: var(--cb-s-6); margin-top: var(--cb-s-8); }
.cb-article .cb-prose h2 { font-size: var(--cb-fs-2xl); line-height: 1.15; }
.cb-article .cb-prose h3 { font-size: var(--cb-fs-xl); line-height: 1.25; letter-spacing: var(--cb-track-heading); font-variant-numeric: tabular-nums lining-nums; }
.cb-meta { font-weight: 400; }
@media (max-width: 639px) { .cb-byline .cb-meta__sep { display: none; } .cb-byline .cb-meta { flex-basis: 100%; } }
.cb-toc a { min-height: 44px; align-content: center; }
.cb-toc a::before, .cb-toc a:hover::before { color: var(--cb-ink-500); }
.cb-toc-mobile__count { margin-left: auto; font-size: var(--cb-fs-sm); font-weight: 500; color: var(--cb-ink-500); font-variant-numeric: tabular-nums; }
.cb-mini-list { list-style: none; margin: var(--cb-s-5) 0 0; padding: 0; display: grid; gap: var(--cb-s-4); }
.cb-mini__body { display: grid; gap: 6px; }
.cb-prose > .cb-takeaways + * { margin-top: var(--cb-s-10); }
.cb-prose a :where(strong, b) { color: inherit; }
ul.cb-author__creds { list-style: none; padding: 0; margin-bottom: 0; }
.cb-cred .cb-icon--fill { color: #f5a623; }
.cb-author__body { min-width: 0; }

/* Prose tables: pinned label column when the box scrolls */
.cb-prose :where(.cb-table, .wp-block-table) tbody th[scope="row"], .cb-prose :where(.cb-table, .wp-block-table) thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--cb-white); box-shadow: 1px 0 0 var(--cb-line); }
.cb-prose :where(.cb-table, .wp-block-table) thead th:first-child { background: var(--cb-ink); }
.cb-prose tbody tr:nth-child(even) th[scope="row"] { background: var(--cb-surface); }

/* Mobile action bar (single) */
.cb-actionbar { position: sticky; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cb-s-3); padding: var(--cb-s-3) max(var(--cb-gutter), env(safe-area-inset-right, 0px)) calc(var(--cb-s-3) + env(safe-area-inset-bottom, 0px)) max(var(--cb-gutter), env(safe-area-inset-left, 0px)); background: var(--cb-white); border-top: 1px solid var(--cb-line); }
.cb-actionbar .cb-btn { width: 100%; padding-inline: var(--cb-s-4); }
@media (min-width: 640px) { .cb-actionbar { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; } }
@media (min-width: 1024px) { .cb-actionbar { display: none; } }
@media (max-height: 480px) { .cb-actionbar { position: static; } }
@media print { .cb-actionbar { display: none; } }

@media (max-width: 767px) {
	.cb-prose :where(.wp-block-table, .cb-table) :where(th, td):first-child { min-width: 11rem; }
	.cb-adjacent__next { text-align: left; justify-items: start; }
	.cb-cta h2 { font-size: var(--cb-fs-3xl); max-width: 20ch; }
	.cb-article-head .cb-breadcrumbs li:last-child { display: none; }
}
@media (max-width: 639px) {
	.cb-takeaways { padding: var(--cb-s-6); }
	.cb-author { padding: var(--cb-s-6); border-radius: var(--cb-r); }
	.cb-prose :where(.cb-callout, .is-style-tip, .is-style-warning, .is-style-info) { grid-template-columns: minmax(0, 1fr); row-gap: var(--cb-s-3); padding: var(--cb-s-5); }
	.cb-callout > :not(.cb-callout__icon) { grid-column: 1; }
	.cb-callout__icon { width: 36px; height: 36px; }
}

/* Legacy post markup: images inserted by the classic editor keep their aspect */
.cb-prose img { max-width: 100%; height: auto; }
.cb-prose :where(figure.wp-caption) { width: auto !important; }

/* ---------------------------------------------------------------------------
 * 13. Listing surface, boxed cards, sticky offset under the fixed site header
 * ------------------------------------------------------------------------- */

/* The theme header turns fixed after 25px of scroll; blog.js keeps --cb-header-h in sync */
.cb-sticky { top: calc(var(--cb-header-h, 148px) + var(--cb-s-6)); }
.cb-prose :where(h2, h3, h4, h5, h6) { scroll-margin-top: calc(var(--cb-header-h, 148px) + var(--cb-s-6)); }

/* Posts area sits on a light surface so it separates from the hero */
.cb-listing { background: var(--cb-surface); }
.cb-listing > .cb-section:first-child { padding-top: clamp(40px, 3vw + 24px, 72px); }
.cb-listing .cb-toolbar { border-bottom-color: var(--cb-line-strong); }

/* Boxed card: white panel, photo bleeds to the top edge */
.cb-card { gap: 0; background: var(--cb-white); border: 1px solid var(--cb-line); border-radius: var(--cb-r); transition: border-color var(--cb-dur-2) var(--cb-ease); }
.cb-card__media { border-radius: calc(var(--cb-r) - 1px) calc(var(--cb-r) - 1px) 0 0; }
.cb-card__body { padding: var(--cb-s-6) var(--cb-s-6) var(--cb-s-5); }
.cb-card:hover { border-color: var(--cb-line-strong); }
.cb-card:focus-within .cb-card__title a::after { outline-offset: 2px; }
@media (forced-colors: active) { .cb-card { border: 1px solid CanvasText; } }
.cb-avatar--icon { background: var(--cb-white); color: var(--cb-ink-700); box-shadow: inset 0 0 0 1px var(--cb-line-strong); }
.cb-avatar--icon .cb-icon { width: 24px; height: 24px; }
.cb-avatar--lg.cb-avatar--icon .cb-icon { width: 32px; height: 32px; }

/* Category icons in tags and chips. The tag is a flex row; its text keeps the cap-height trim. */
.cb-tag:has(.cb-icon) { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; }
.cb-tag .cb-icon { width: 17px; height: 17px; stroke-width: 2; }
.cb-tag .cb-label__text { display: block; }
@supports (text-box: trim-both cap alphabetic) {
	.cb-tag:has(.cb-icon) { padding-block: 6px; text-box: normal; }
	.cb-tag .cb-label__text { text-box: trim-both cap alphabetic; }
}
.cb-chip .cb-icon { width: 20px; height: 20px; color: var(--cb-ink-500); transition: color var(--cb-dur-2) var(--cb-ease); }
.cb-chip:hover .cb-icon { color: var(--cb-ink-900); }
.cb-chip[aria-current="page"] .cb-icon { color: var(--cb-white); }

/* Featured story as a boxed card, same treatment as the post cards */
.cb-feature { gap: 0; background: var(--cb-white); border: 1px solid var(--cb-line); border-radius: var(--cb-r); transition: border-color var(--cb-dur-2) var(--cb-ease); }
.cb-feature:hover { border-color: var(--cb-line-strong); }
.cb-feature > .cb-media { border-radius: calc(var(--cb-r) - 1px) calc(var(--cb-r) - 1px) 0 0; }
.cb-feature__body { padding: var(--cb-s-6) var(--cb-s-6) var(--cb-s-8); }
@media (min-width: 1024px) {
	.cb-feature { align-items: stretch; }
	.cb-feature > .cb-media { height: 100%; border-radius: calc(var(--cb-r) - 1px) 0 0 calc(var(--cb-r) - 1px); }
	.cb-feature__body { align-self: center; padding: var(--cb-s-10) var(--cb-s-12) var(--cb-s-10) var(--cb-s-10); }
}
.cb-feature:focus-within .cb-feature__title a::after { outline-offset: 2px; }
@media (forced-colors: active) { .cb-feature { border: 1px solid CanvasText; } }

/* Card label: square red flag with white text and icon */
.cb-card__tag { border-radius: 0; background: var(--cb-red); color: var(--cb-white); top: 16px; left: 16px; }
.cb-card__tag .cb-icon { color: var(--cb-white); }
.cb-feature .cb-tag { border-radius: 0; }
.cb-article-head .cb-tag { border-radius: 0; background: var(--cb-red); color: var(--cb-white); transition: background-color var(--cb-dur-2) var(--cb-ease); }
.cb-article-head .cb-tag .cb-icon { color: var(--cb-white); }
.cb .cb-article-head a.cb-tag:hover { background: var(--cb-red-700); color: var(--cb-white); }
