/**
 * Cassena Care – Blog (archive blocks + single post)
 *
 * Standalone stylesheet (not part of the CodeKit/SCSS build) so it can be
 * edited on the server. Tokens below mirror scss/setup/_variables.scss.
 * Layout uses the theme's own .container (1440px max, 80/40/20px padding).
 */

:root {
	--cb-navy: #232E49;        /* $color-navy – headings, active states */
	--cb-deep-navy: #1E263C;   /* $color-deep-navy */
	--cb-gold: #986E03;        /* $color-dark-gold – labels, links, buttons */
	--cb-ink: #373737;         /* $color-onyx – body text */
	--cb-muted: #6A7076;       /* $color-stone – meta text */
	--cb-line: #DBDDDF;        /* borders used across blocks */
	--cb-cream: #FEFBF1;       /* $body-background ("creamy") */
	--cb-ginseng: #FDF7E3;     /* $color-ginseng-40 */
	--cb-white: #FFFFFF;

	--cb-radius-lg: 16px;
	--cb-radius-md: 12px;
	--cb-radius-sm: 8px;       /* matches .button */
	--cb-shadow: 0 1px 2px rgba(35, 46, 73, 0.06), 0 16px 32px -16px rgba(35, 46, 73, 0.22);

	--cb-section-gap: clamp(60px, 7vw, 120px);

	/* The site header scrolls away (not sticky), so the TOC only needs breathing room. */
	--cb-sticky-offset: 32px;
}

/* The theme sets overflow-x: hidden on both <html> and <body>, which silently
   disables position: sticky. "clip" hides horizontal overflow the same way
   without breaking sticky. Scoped to blog posts only. */
html:has(body.single-post),
body.single-post {
	overflow-x: clip;
}

/* Full-width site header on blog views, matching the theme's rule for
   sub-pages: .page-template-default .container.header { ... } */
.cb-blog-view .container.header {
	max-width: 100%;
	padding: 26px 20px;
}

/* The theme styles bare <header>/<footer> elements site-wide; blog markup
   avoids them, but keep the hero from inheriting a fixed height regardless. */
.cb-single__hero,
.cb-single__footer {
	height: auto;
}

/* ---------------------------------------------------------------------------
 * Shared
 * ------------------------------------------------------------------------ */

.cb-block {
	margin-block: 0 var(--cb-section-gap);
	color: var(--cb-ink);
}

.cb-icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

.cb-archive .screen-reader-text,
.cb-single .screen-reader-text,
.cb-block .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.cb-archive a:focus-visible,
.cb-single a:focus-visible,
.cb-block a:focus-visible,
.cb-block button:focus-visible,
.cb-single button:focus-visible,
.cb-single summary:focus-visible {
	outline: 2px solid var(--cb-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.cb-editor-notice {
	padding: 16px 20px;
	border: 1px dashed var(--cb-line);
	border-radius: var(--cb-radius-sm);
	color: var(--cb-muted);
	font-size: 14px;
}

/* Meta line: category | author | date */
.cb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 12px;
	color: var(--cb-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.cb-meta--small {
	font-size: 0.8125rem;
	margin-bottom: 8px;
}

.cb-meta__sep {
	width: 1px;
	height: 0.9em;
	background: currentColor;
	opacity: 0.35;
}

.cb-meta__category {
	position: relative;
	z-index: 2;
	color: var(--cb-gold);
	font-weight: 600;
	text-decoration: none;
}

a.cb-meta__category:hover {
	text-decoration: underline;
}

/* Badges */
.cb-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--cb-navy);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	backdrop-filter: blur(6px);
}

.cb-badge--solid {
	background: var(--cb-gold);
	color: var(--cb-white);
}

.cb-badge--outline {
	background: transparent;
	border: 1px solid var(--cb-line);
	color: var(--cb-ink);
}

a.cb-badge:hover {
	background: var(--cb-gold);
	color: var(--cb-white);
}

.cb-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cb-gold);
	font-weight: 600;
	text-decoration: none;
}

.cb-text-link .cb-icon {
	transition: transform 0.2s ease;
}

a.cb-text-link:hover .cb-icon {
	transform: translateX(3px);
}

.cb-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: clamp(20px, 3vw, 32px);
}

.cb-section-head__title {
	margin: 0;
	color: var(--cb-navy);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	line-height: 1.2;
}

.cb-empty {
	padding: 40px;
	border-radius: var(--cb-radius-md);
	background: var(--cb-cream);
	color: var(--cb-muted);
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * Blog Header block
 * ------------------------------------------------------------------------ */

.cb-header {
	padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 40px);
}

.cb-header--bg-tint {
	background: var(--cb-cream);
}

.cb-header--bg-brand {
	background: var(--cb-navy);
	color: var(--cb-white);
}

.cb-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.cb-header__text {
	flex: 1 1 520px;
	max-width: 760px;
}

.cb-header--center .cb-header__inner {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cb-header--center .cb-header__text {
	flex-basis: auto;
}

/* Same treatment as the theme's .intro-label */
.cb-header__eyebrow {
	margin: 0 0 16px;
	color: var(--cb-gold);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cb-header__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.cb-header__eyebrow a:hover {
	text-decoration: underline;
}

.cb-header__title {
	margin: 0;
	color: var(--cb-navy);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.cb-header--bg-brand .cb-header__title {
	color: inherit;
}

.cb-header__intro {
	margin: 16px 0 0;
	max-width: 62ch;
	color: var(--cb-muted);
	font-size: 1.125rem;
	line-height: 1.6;
}

.cb-header--center .cb-header__intro {
	margin-inline: auto;
}

.cb-header--bg-brand .cb-header__eyebrow,
.cb-header--bg-brand .cb-header__intro {
	color: inherit;
	opacity: 0.85;
}

/* Search */
.cb-search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 380px;
	padding: 6px 6px 6px 16px;
	border: 1px solid var(--cb-line);
	border-radius: 999px;
	background: var(--cb-white);
	color: var(--cb-muted);
}

.cb-search:focus-within {
	border-color: var(--cb-gold);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-gold) 20%, transparent);
}

.cb-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--cb-ink);
	font: inherit;
	padding: 8px 0;
	outline: none;
}

.cb-search__button {
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--cb-gold);
	color: var(--cb-white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Category filter */
.cb-filter {
	margin-top: clamp(28px, 4vw, 40px);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
	mask-image: linear-gradient(90deg, #000 90%, transparent);
}

.cb-filter::-webkit-scrollbar {
	display: none;
}

.cb-header--center .cb-filter__list {
	justify-content: center;
}

.cb-filter__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0 40px 4px 0;
	list-style: none;
}

.cb-filter__link {
	display: block;
	padding: 9px 16px;
	border: 1px solid var(--cb-line);
	border-radius: 999px;
	background: var(--cb-white);
	color: var(--cb-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cb-filter__link:hover {
	border-color: var(--cb-gold);
}

.cb-filter__link[aria-current="page"] {
	border-color: var(--cb-gold);
	background: var(--cb-gold);
	color: var(--cb-white);
}

/* ---------------------------------------------------------------------------
 * Featured Post block
 * ------------------------------------------------------------------------ */

.cb-featured__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(14px, 1.6vw, 20px);
	border-radius: var(--cb-radius-lg);
	background: var(--cb-white);
	box-shadow: var(--cb-shadow);
}

.cb-featured--image-right .cb-featured__media {
	order: 2;
}

.cb-featured__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--cb-radius-lg) - 8px);
	background: var(--cb-cream);
}

.cb-featured__image,
.cb-featured__media .cb-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cb-featured__card:hover .cb-featured__image {
	transform: scale(1.03);
}

.cb-featured__label {
	position: absolute;
	top: 16px;
	left: 16px;
}

.cb-featured__body {
	padding: 8px clamp(4px, 2vw, 24px) 8px 0;
}

.cb-featured--image-right .cb-featured__body {
	padding: 8px 0 8px clamp(4px, 2vw, 24px);
}

.cb-featured__title {
	margin: 0 0 16px;
	font-size: clamp(1.625rem, 3vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.cb-featured__excerpt {
	margin: 0 0 24px;
	color: var(--cb-muted);
	font-size: 1.0625rem;
	line-height: 1.65;
}

/* ---------------------------------------------------------------------------
 * Cards + grid
 * ------------------------------------------------------------------------ */

.cb-grid {
	display: grid;
	gap: clamp(20px, 2.5vw, 32px);
	grid-template-columns: repeat(var(--cb-cols, 3), minmax(0, 1fr));
}

.cb-grid--cols-2 {
	--cb-cols: 2;
}

.cb-grid--cols-3 {
	--cb-cols: 3;
}

.cb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--cb-radius-md);
	background: var(--cb-white);
}

.cb-card--elevated {
	padding: 12px;
	box-shadow: var(--cb-shadow);
}

.cb-card--outlined {
	padding: 12px;
	border: 1px solid var(--cb-line);
}

.cb-card--minimal {
	background: transparent;
}

.cb-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: calc(var(--cb-radius-md) - 4px);
	background: var(--cb-cream);
}

.cb-grid--cols-2 .cb-card__media {
	aspect-ratio: 16 / 9;
}

.cb-card__image,
.cb-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cb-card__placeholder {
	background:
		radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--cb-gold) 18%, transparent), transparent 60%),
		var(--cb-cream);
}

.cb-card:hover .cb-card__image {
	transform: scale(1.04);
}

.cb-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

.cb-card__badge--inline {
	position: relative;
	top: auto;
	left: auto;
	align-self: flex-start;
	margin-bottom: 12px;
	background: var(--cb-cream);
}

.cb-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 8px 10px;
}

.cb-card--minimal .cb-card__body {
	padding-inline: 0;
}

.cb-card__title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.35;
}

.cb-grid--cols-2 .cb-card__title {
	font-size: 1.375rem;
}

/* Whole card is clickable via the title link; badges/category links sit above. */
.cb-card__link {
	color: var(--cb-navy);
	text-decoration: none;
}

.cb-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.cb-card__link:hover,
.cb-featured__card:hover .cb-card__link {
	color: var(--cb-gold);
}

.cb-card__link:focus-visible {
	outline: none;
}

.cb-card:has(.cb-card__link:focus-visible),
.cb-featured__card:has(.cb-card__link:focus-visible) {
	outline: 2px solid var(--cb-gold);
	outline-offset: 3px;
}

.cb-card__excerpt {
	margin: 10px 0 0;
	color: var(--cb-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* Pagination */
.cb-pagination {
	margin-top: clamp(32px, 4vw, 48px);
}

.cb-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--cb-ink);
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
}

.cb-pagination a.page-numbers:hover {
	background: var(--cb-cream);
}

.cb-pagination .page-numbers.current {
	background: var(--cb-gold);
	color: var(--cb-white);
}

.cb-pagination .page-numbers.dots {
	min-width: auto;
}

/* ---------------------------------------------------------------------------
 * Topics block
 * ------------------------------------------------------------------------ */

.cb-topics__inner {
	display: grid;
	grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 48px);
}

.cb-topics--grid .cb-topics__inner {
	grid-template-columns: 1fr;
}

.cb-topics__title {
	margin: 0;
	color: var(--cb-navy);
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.cb-topics__intro {
	margin: 12px 0 0;
	color: var(--cb-muted);
}

.cb-topics__nav {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.cb-topics__nav[hidden] {
	display: none;
}

.cb-round-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--cb-line);
	border-radius: 50%;
	background: var(--cb-white);
	color: var(--cb-ink);
	cursor: pointer;
}

.cb-round-btn:hover:not(:disabled) {
	border-color: var(--cb-gold);
	color: var(--cb-gold);
}

.cb-round-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.cb-topics__list {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 16px;
	list-style: none;
	border-radius: var(--cb-radius-lg);
	background: var(--cb-white);
	box-shadow: var(--cb-shadow);
}

.cb-topics--scroll .cb-topics__list {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.cb-topics--scroll .cb-topics__list::-webkit-scrollbar {
	display: none;
}

.cb-topics--grid .cb-topics__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.cb-topic {
	flex: 0 0 150px;
	scroll-snap-align: start;
}

/* Fallback tile colors when none is chosen. */
.cb-topic:nth-child(6n + 1) { --cb-topic-fallback: #f4c65a; }
.cb-topic:nth-child(6n + 2) { --cb-topic-fallback: #7a5cf0; }
.cb-topic:nth-child(6n + 3) { --cb-topic-fallback: #e8708f; }
.cb-topic:nth-child(6n + 4) { --cb-topic-fallback: #4dbb7a; }
.cb-topic:nth-child(6n + 5) { --cb-topic-fallback: #f09a5c; }
.cb-topic:nth-child(6n + 6) { --cb-topic-fallback: #4a9be0; }

.cb-topic__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 8px;
	border-radius: var(--cb-radius-md);
	color: var(--cb-ink);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.cb-topic__link:hover {
	background: var(--cb-cream);
}

.cb-topic__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 6px;
	border-radius: 20px;
	background: var(--cb-topic-color, var(--cb-topic-fallback, var(--cb-gold)));
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
	box-shadow: 0 10px 20px -10px var(--cb-topic-color, var(--cb-topic-fallback, var(--cb-gold)));
	transition: transform 0.2s ease;
}

.cb-topic__link:hover .cb-topic__icon {
	transform: translateY(-3px) rotate(-3deg);
}

.cb-topic__icon img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.cb-topic__label {
	font-weight: 600;
	line-height: 1.3;
}

.cb-topic__count {
	color: var(--cb-muted);
	font-size: 0.8125rem;
}

/* ---------------------------------------------------------------------------
 * Quick Answer block
 * ------------------------------------------------------------------------ */

.cb-quick-answer {
	margin-block: 0 2em;
	padding: 20px 24px;
	border-left: 4px solid var(--cb-gold);
	border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
	background: var(--cb-cream);
}

.cb-quick-answer--brand {
	border-left-color: transparent;
	border-radius: var(--cb-radius-md);
	background: var(--cb-navy);
	color: var(--cb-white);
}

.cb-quick-answer__label {
	margin: 0 0 6px !important;
	font-weight: 700;
}

.cb-quick-answer__text > :last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * Single post
 * ------------------------------------------------------------------------ */

.cb-single {
	color: var(--cb-ink);
}

.cb-single__hero {
	padding-block: clamp(48px, 8vw, 104px) clamp(36px, 5vw, 56px);
	background: var(--cb-cream);
	text-align: center;
}

.cb-single__hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 1120px;
}

.cb-single__eyebrow {
	justify-content: center;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
}

.cb-single__eyebrow .cb-meta__category {
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cb-single__title {
	margin: 0;
	color: var(--cb-navy);
	font-size: clamp(2.25rem, 5.2vw, 4rem);
	line-height: 1.06;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.cb-single__subtitle {
	max-width: 62ch;
	margin: 20px 0 0;
	color: var(--cb-muted);
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.55;
	text-wrap: pretty;
}

/* Share */
.cb-share {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.cb-share--hero {
	justify-content: center;
	margin-top: 28px;
}

.cb-share__label {
	color: var(--cb-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.cb-share__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--cb-line);
	border-radius: 50%;
	background: var(--cb-white);
	color: var(--cb-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cb-share__link:hover,
.cb-share__link.is-copied {
	border-color: var(--cb-gold);
	background: var(--cb-gold);
	color: var(--cb-white);
}

.cb-share__status {
	color: var(--cb-gold);
	font-size: 0.875rem;
	font-weight: 600;
}

.cb-share__status:empty {
	display: none;
}

/* Featured image */
.cb-single__figure {
	margin-block: clamp(-32px, -3vw, -20px) 0;
}

.cb-single__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--cb-radius-lg);
}

.cb-single__figure figcaption {
	margin-top: 10px;
	color: var(--cb-muted);
	font-size: 0.875rem;
	text-align: center;
}

/* Layout: sticky TOC + article */
.cb-single__layout {
	display: grid;
	grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
	align-items: start;
	gap: clamp(32px, 5vw, 80px);
	padding-block: clamp(40px, 6vw, 72px) var(--cb-section-gap);
}

.cb-single__layout--no-toc {
	grid-template-columns: minmax(0, 1fr);
}

.cb-single__body {
	min-width: 0;
	max-width: 740px;
}

.cb-single__layout--no-toc .cb-single__body {
	margin-inline: auto;
}

/* TOC */
.cb-toc {
	position: sticky;
	top: calc(var(--cb-sticky-offset) + 16px);
	max-height: calc(100vh - var(--cb-sticky-offset) - 32px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.admin-bar .cb-toc {
	top: calc(var(--cb-sticky-offset) + 32px);
	max-height: calc(100vh - var(--cb-sticky-offset) - 64px);
}

.cb-toc__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	color: var(--cb-muted);
	font-size: 0.875rem;
	font-weight: 600;
	list-style: none;
	cursor: default;
}

.cb-toc__title::-webkit-details-marker {
	display: none;
}

.cb-toc__title .cb-icon:last-child {
	display: none;
	margin-left: auto;
	transition: transform 0.2s ease;
}

.cb-toc__list,
.cb-toc__sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-toc__list {
	border-left: 1px solid var(--cb-line);
}

.cb-toc__link {
	position: relative;
	display: block;
	margin-left: -1px;
	padding: 8px 12px 8px 16px;
	border-left: 2px solid transparent;
	border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
	color: var(--cb-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.cb-toc__sublist .cb-toc__link {
	padding-left: 30px;
	font-size: 0.875rem;
}

.cb-toc__link:hover {
	color: var(--cb-ink);
}

.cb-toc__link[aria-current] {
	border-left-color: var(--cb-gold);
	background: var(--cb-cream);
	color: var(--cb-ink);
	font-weight: 600;
}

/* Article typography – light touch so theme styles still apply. */
.cb-prose {
	font-size: 1.125rem;
	line-height: 1.75;
}

.cb-prose > :first-child {
	margin-top: 0;
}

.cb-prose h2,
.cb-prose h3,
.cb-prose h4,
.cb-prose [id] {
	scroll-margin-top: calc(var(--cb-sticky-offset) + 24px);
}

.cb-prose h2 {
	margin: 2.2em 0 0.6em;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.cb-prose h3 {
	margin: 1.8em 0 0.5em;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	line-height: 1.3;
}

.cb-prose h2,
.cb-prose h3,
.cb-prose h4 {
	color: var(--cb-navy);
}

.cb-prose h4 {
	margin: 1.6em 0 0.4em;
	font-size: 1.25rem;
	line-height: 1.35;
}

.cb-prose p,
.cb-prose li {
	color: var(--cb-ink);
	font-size: 1.125rem;
	line-height: 1.7;
}

.cb-prose a {
	color: var(--cb-gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cb-prose a:hover {
	color: var(--cb-navy);
}

.cb-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.cb-prose th,
.cb-prose td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--cb-line);
	text-align: left;
}

.cb-prose .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 1.5em 0;
}

/* Matches the theme's .button (gold outline → navy on hover). */
.cb-prose .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 28px;
	border: 1px solid var(--cb-gold);
	border-radius: var(--cb-radius-sm);
	background: transparent;
	color: var(--cb-gold);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cb-prose .wp-block-button__link:hover,
.cb-prose .wp-block-button__link:focus-visible {
	border-color: var(--cb-navy);
	background: var(--cb-navy);
	color: var(--cb-white);
}

.cb-prose .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 1.5em 0;
	padding: 0;
}

.cb-prose .wp-block-gallery .wp-block-image {
	margin: 0;
	width: auto !important;
}

.cb-prose .wp-block-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--cb-radius-sm);
}

.cb-prose .wp-block-separator {
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--cb-line);
}

.cb-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--cb-radius-md);
}

.cb-prose blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--cb-gold);
	font-size: 1.25rem;
}

.cb-single__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--cb-line);
}

.cb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Related */
.cb-related {
	padding-block: var(--cb-section-gap);
	background: var(--cb-cream);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.cb-grid--cols-3 {
		--cb-cols: 2;
	}

	.cb-single__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.cb-single__body {
		margin-inline: auto;
	}

	/* TOC becomes a collapsible box above the article. */
	.cb-toc {
		position: static;
		max-height: none;
		overflow: visible;
		width: 100%;
		max-width: 740px;
		margin-inline: auto;
	}

	.cb-toc__details {
		border: 1px solid var(--cb-line);
		border-radius: var(--cb-radius-md);
		background: var(--cb-white);
	}

	.cb-toc__title {
		margin: 0;
		padding: 16px 20px;
		color: var(--cb-ink);
		font-size: 1rem;
		cursor: pointer;
	}

	.cb-toc__title .cb-icon:last-child {
		display: inline-block;
	}

	.cb-toc__details[open] .cb-toc__title .cb-icon:last-child {
		transform: rotate(180deg);
	}

	.cb-toc__details nav {
		padding: 0 20px 16px;
	}

	.cb-topics__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.cb-featured__card {
		grid-template-columns: 1fr;
	}

	.cb-featured--image-right .cb-featured__media {
		order: 0;
	}

	.cb-featured__body,
	.cb-featured--image-right .cb-featured__body {
		padding: 4px 8px 12px;
	}
}

@media (max-width: 767px) {
	.cb-grid--cols-2,
	.cb-grid--cols-3 {
		--cb-cols: 1;
	}

	.cb-header__inner {
		align-items: stretch;
	}

	.cb-search {
		flex-basis: 100%;
	}

	.cb-topic {
		flex-basis: 128px;
	}

	.cb-single__footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cb-card__image,
	.cb-featured__image,
	.cb-topic__icon,
	.cb-text-link .cb-icon {
		transition: none !important;
		transform: none !important;
	}
}
