/* ==========================================================================
   Cosmick blog — index, post archives, single article, comments.
   Ported from the approved Replit reference (BlogIndex / TaxonomyArchive /
   Post): index.css + styles/entire-site.css (.blog-index, .blog-lead,
   .blog-list, .archive-summary, .article-detail, .article-image,
   .article-reading, .reading-body .prose-cm, .contents-nav, .article-share)
   and the Tailwind utilities on that markup, resolved to computed values.

   Printed at wp_body_open by inc/cm-blog.php, i.e. AFTER cosmick-2026.css and
   cm-interior.css. Every selector is namespaced .cm-bl-*. The ONLY
   !important declarations are the phone block that neutralises
   mobile-adjustments.css's own !important offsets (see there); everything
   else settles on specificity and source order.
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens */
.cm-bl-page,
.cm-bl-archive,
.cm-bl-comments {
	--cm-bl-rule:   #d5c8bd;            /* --studio-rule */
	--cm-bl-line:   #e4dcd4;            /* --color-line */
	--cm-bl-ink:    #262423;
	--cm-bl-body:   #4a4542;
	--cm-bl-prose:  #34302e;
	--cm-bl-stone:  #6b6460;
	--cm-bl-brand:  #ff675b;
	--cm-bl-link:   #b8352b;
	--cm-bl-sand:   #f3ede7;
	--cm-bl-panel:  #f0e7de;
	--cm-bl-ease:   cubic-bezier(.22, .8, .24, 1);
}

/* The page-hero background (.blog-index .page-hero #eaded2) is applied by
   cm-interior.css for body.blog and body.page-template-page-blog. */

/* Heading band details the shared .cm-page-head does not carry yet
   (reference: `.page-hero nav ol { font-size: 12px }`, and on phones
   `.page-hero h1 { font-size: clamp(32px, 8.5vw, 47px) }`). */
.cm-bl-page .cm-page-head .cm-crumbs ol { font-size: 12px; line-height: 1.65; }

/* Post archives: the reference's .taxonomy-index .page-hero is #eee0d4. The
   stone crumbs would fall to 4.49:1 there, so they take #67605c (4.77:1) and
   the eyebrow the hover ink (5.81:1), as cm-interior.css does on the index. */
body.archive #primary.cm-bl-page .cm-page-head { background: #eee0d4; }
body.archive #primary.cm-bl-page .cm-page-head .cm-crumbs ol { color: #67605c; }
body.archive #primary.cm-bl-page .cm-page-head .cm-eyebrow { color: #9c2c23; }

/* The reference's hero carries a coral wedge on the right edge
   (.page-hero::before) and hides the orbital rings. */
.cm-bl-page .cm-page-head > .cm-orbital { display: none; }

.cm-bl-page .cm-page-head::before {
	content: "";
	position: absolute;
	top: 0;
	right: -100px;
	z-index: -1;
	width: 180px;
	height: 100%;
	background: var(--cm-bl-brand);
	clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);
	opacity: .72;
	pointer-events: none;
}

@media (min-width: 768px) {
	.cm-bl-page .cm-page-head::before { width: 300px; right: -160px; }
}

@media (max-width: 767px) {
	.cm-bl-page .cm-page-head::before { opacity: .36; }
}

@media (max-width: 767px) {
	.cm-bl-page .cm-page-head h1 { font-size: clamp(32px, 8.5vw, 47px); }
}

/* --------------------------------------------------------------------------
   Neutralise the pre-2026 phone offsets in mobile-adjustments.css (§9, §10).
   That file pads body.blog / category / tag / single-post #primary, AND every
   <article> on a single post, by 100px !important (for a fixed header that no
   longer exists), and pads <body> by 20px under the footer. They are
   !important, so only !important answers them; scoped to the blog surfaces.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	/* mobile-adjustments.css pads #primary 100px on body.archive.category /
	   body.archive.tag (1,2,1); the extra html and .cm-main take this to
	   (1,3,2) on every blog surface, so category/tag archives lose the gap too. */
	html body #primary.cm-main.cm-bl-page { padding-top: 0 !important; padding-bottom: 0 !important; }
	body.single-post .cm-bl-page article.cm-bl-post,
	body.single-post .cm-bl-page article.cm-bl-card { padding-top: 0 !important; }
	body.single-post .cm-bl-comments article.comment-body { padding-top: 24px !important; }
	html body.blog,
	html body.archive.category,
	html body.archive.tag { padding-bottom: 0 !important; }
}

/* ==========================================================================
   Count strip (.archive-summary)
   ========================================================================== */
.cm-bl-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--cm-bl-rule);
	font-size: 13px;
	line-height: 1.65;
	color: #6b5b50;
}

.cm-bl-summary strong {
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 13px;
	line-height: normal;
	font-weight: 700;
	color: #292725;
}

/* ==========================================================================
   Shared card pieces
   ========================================================================== */
.cm-bl-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--cm-bl-sand);
	border-radius: 4px;
}

.cm-bl-frame img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center;
	border: 0;
	border-radius: 0;
	transform: none;
}

.cm-bl-meta {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--cm-bl-stone);
}

/* No featured image: a branded placeholder in the frame (decorative, pure
   CSS - two orbital rings and the coral mark on sand). In flow at 16:9 so
   the lead frame never collapses to the text height; min-height lets it
   still fill a taller row. */
.cm-bl-frame-ph {
	position: relative;
	display: block;
	width: 100%;
	min-height: 100%;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 50% 50%, var(--cm-bl-brand) 0 9px, transparent 10px),
		radial-gradient(circle at 50% 50%, transparent 0 41px, rgba(184, 53, 43, .32) 42px 43.5px, transparent 44.5px),
		radial-gradient(circle at 50% 50%, transparent 0 77px, rgba(184, 53, 43, .18) 78px 79.5px, transparent 80.5px),
		linear-gradient(135deg, #f3ede7 0%, #eadcd0 100%);
}

.cm-bl-frame-ph-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	margin: -48px 0 0 24px;
	border-radius: 50%;
	background: #b8352b;
}

/* Title link stretched over the whole card: one click target and one tab
   stop, like the reference's card-sized <a>. */
.cm-bl-card,
.cm-bl-lead { position: relative; }

.cm-bl-card .cm-bl-card-link,
.cm-bl-lead .cm-bl-card-link {
	color: inherit;
	text-decoration: none;
	outline: none;
}

.cm-bl-card .cm-bl-card-link::after,
.cm-bl-lead .cm-bl-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

/* Keyboard focus: the reference outlines the whole card with a square 3px
   #b8352b ring 3px out, and the title stays ink (red is for hover only). */
.cm-bl-card .cm-bl-card-link:focus-visible::after,
.cm-bl-lead .cm-bl-card-link:focus-visible::after {
	outline: 3px solid var(--cm-bl-link);
	outline-offset: 3px;
	border-radius: 0;
}

.cm-bl-card:hover .cm-bl-card-link,
.cm-bl-lead:hover .cm-bl-card-link { color: var(--cm-bl-link); }

.cm-bl-card .cm-bl-card-title,
.cm-bl-lead .cm-bl-lead-title { padding: 0; }

/* "More from the blog": the reference's .section-head .h-section tracking. */
.cm-bl-related .cm-section-head .cm-h-section { letter-spacing: -.035em; }

.cm-bl-excerpt {
	margin: 0;
	color: var(--cm-bl-body);
}

/* ==========================================================================
   Lead story (.blog-lead)
   card + grid md:grid-cols-[1.2fr_1fr], parchment surface
   ========================================================================== */
.cm-bl-lead {
	display: grid;
	overflow: hidden;
	margin-bottom: 32px;
	background: #efe3d7;
	border: 1px solid #d8c4b3;
	border-radius: 5px;
	transition: border-color .2s var(--cm-bl-ease), transform .2s var(--cm-bl-ease);
}

.cm-bl-lead:hover { border-color: #cdbfb3; }

.cm-bl-lead > .cm-bl-frame {
	margin: 12px;
	min-height: 220px;
	border-radius: 3px;
}

.cm-bl-lead-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px;
}

.cm-bl-lead .cm-bl-meta { font-size: 13.5px; }

.cm-bl-lead-title {
	margin: 8px 0 0;
	font-size: clamp(24px, 3vw, 37px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.04em;
}

.cm-bl-lead .cm-bl-excerpt {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.65;
}

.cm-bl-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	margin-top: 20px;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.65;
	color: var(--cm-bl-link);
	text-decoration: underline transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	transition: text-decoration-color .18s var(--cm-bl-ease);
}

.cm-bl-more svg { width: 16px; height: 16px; transition: transform .2s var(--cm-bl-ease); }
.cm-bl-lead:hover .cm-bl-more { text-decoration-color: currentColor; }
.cm-bl-lead:hover .cm-bl-more svg { transform: translateX(3px); }

@media (min-width: 768px) {
	.cm-bl-lead { grid-template-columns: 1.2fr 1fr; }
	.cm-bl-lead > .cm-bl-frame { aspect-ratio: auto; }
}

/* ==========================================================================
   Story list (.blog-list): open cards on a ruled grid, two up from 768px
   ========================================================================== */
.cm-bl-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px 24px;
}

@media (min-width: 768px) {
	.cm-bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

.cm-bl-list > .cm-bl-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-bottom: 1px solid var(--cm-bl-rule);
	transition: transform .2s var(--cm-bl-ease), border-color .2s var(--cm-bl-ease);
}

.cm-bl-list > .cm-bl-card:hover { border-bottom-color: #cdbfb3; }

.cm-bl-list .cm-bl-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 0 26px;
}

.cm-bl-list .cm-bl-meta time {
	font-size: 11px;
	color: #8c4536;
}

.cm-bl-list .cm-bl-card-title {
	margin: 6px 0 0;
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 700;
	line-height: 1.375;
	letter-spacing: -.03em;
}

.cm-bl-list .cm-bl-excerpt {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	font-size: 14.5px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* Lift on hover, as .card-link does in the reference. */
@media (hover: hover) and (pointer: fine) {
	.cm-bl-lead:hover,
	.cm-bl-card:hover { transform: translateY(-3px); }
}

/* ==========================================================================
   Pagination (site-ui Pagination)
   ========================================================================== */
.cm-bl-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.cm-bl-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 0;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--cm-bl-line);
	border-radius: 12px;
	background: #fffdfb;
	color: var(--cm-bl-ink);
	font-family: var(--cm26-font-body, Poppins, sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.65;
	text-decoration: none;
	transition: border-color .15s var(--cm-bl-ease), background-color .15s var(--cm-bl-ease);
}

.cm-bl-pagination a.page-numbers:hover { border-color: var(--cm-bl-stone); color: var(--cm-bl-ink); }

.cm-bl-pagination .page-numbers.current {
	background: var(--cm-bl-ink);
	border-color: var(--cm-bl-ink);
	color: #fbf8f5;
}

.cm-bl-pagination .page-numbers.dots { border-color: transparent; background: transparent; min-width: 24px; padding: 0; }

/* Previous / Next are .btn.btn-secondary.btn-sm in the reference. */
.cm-bl-pagination .page-numbers.prev,
.cm-bl-pagination .page-numbers.next {
	display: inline-flex;
	gap: 8px;
	min-height: 40px;
	height: auto;
	padding: 0 16px;
	border: 1.5px solid #cfc5bc;
	border-radius: 6px;
	background: transparent;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .005em;
}

.cm-bl-pagination .page-numbers.prev:hover,
.cm-bl-pagination .page-numbers.next:hover {
	border-color: #3c3c3c;
	background: var(--cm-bl-sand);
}

/* ==========================================================================
   Empty state
   ========================================================================== */
.cm-bl-empty {
	padding: 56px 24px;
	border: 1px dashed #d8c4b3;
	border-radius: 5px;
	background: #f0e4d8;
	text-align: center;
}

.cm-bl-empty-title {
	margin: 0;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 20px;
	font-weight: 700;
	color: var(--cm-bl-ink);
}

.cm-bl-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 20px;
	padding: 0 22px;
	border: 1.5px solid #cfc5bc;
	border-radius: 6px;
	color: var(--cm-bl-ink);
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.cm-bl-empty-btn:hover { border-color: #3c3c3c; background: var(--cm-bl-sand); color: var(--cm-bl-ink); }

/* ==========================================================================
   Post archives (.taxonomy-section-title)
   ========================================================================== */
.cm-bl-archive .cm-bl-archive-desc { margin-bottom: 32px; }

.cm-bl-section-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
	padding-top: 0;
	padding-bottom: 17px;
	border-bottom: 1px solid var(--cm-bl-rule);
	font-size: 19px;
	font-weight: 700;
	/* The reference sets `font: 700 19px var(--font-display)`, and the
	   shorthand resets line-height to normal (41px rule incl. padding). */
	line-height: normal;
	letter-spacing: -.02em;
}

.cm-bl-section-title span {
	font-size: 11px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: inherit;
	color: #8b4738;
}

/* Archive cards: the reference's taxonomy cards carry the same `.blog-list h2`
   clamp(20px, 2vw, 25px) as the index (its text-[18px] utility loses to it),
   and the card body is a plain block (p-5), not a flex column. */
.cm-bl-archive .cm-bl-list .cm-bl-card-title { font-size: clamp(20px, 2vw, 25px); }
.cm-bl-archive .cm-bl-list .cm-bl-card-body { display: block; }

/* Archive heading band: the reference's `.page-hero .lede` sits 22px under
   the H1 on a 58ch measure (cosmick-2026.css has 16px / 62ch site-wide). */
body.category .cm-page-head .cm-lede,
body.tag .cm-page-head .cm-lede,
body.author .cm-page-head .cm-lede,
body.date .cm-page-head .cm-lede { margin-top: 22px; max-width: 58ch; }

/* ==========================================================================
   Single article (.article-detail)
   ========================================================================== */
.cm-bl-post { padding-bottom: 30px; }

.cm-bl-post-head {
	padding-top: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--cm-bl-rule);
}

@media (min-width: 768px) {
	.cm-bl-post-head { padding-top: 56px; }
}

.cm-bl-crumb {
	margin-bottom: 20px;
	font-size: 13.5px;
	color: var(--cm-bl-stone);
}

.cm-bl-post-head .cm-bl-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.65;
	color: var(--cm-bl-link);
	text-decoration: underline transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	transition: text-decoration-color .18s var(--cm-bl-ease);
}

.cm-bl-post-head .cm-bl-back:hover,
.cm-bl-post-head .cm-bl-back:focus-visible { color: var(--cm-bl-link); text-decoration-color: currentColor; }
.cm-bl-back svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s var(--cm-bl-ease); }
.cm-bl-back:hover svg { transform: translateX(-3px); }

.cm-bl-post-head .cm-bl-post-title {
	margin: 0;
	max-width: none;
	font-size: clamp(33px, 4.6vw, 57px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.05em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.cm-bl-post-head .cm-bl-post-meta {
	margin: 16px 0 0;
	font-size: 12px;
	line-height: 1.65;
	color: var(--cm-bl-stone);
}

/* Featured picture (.article-image): plate 1160 incl. gutters, letterboxed */
.cm-bl-post .cm-bl-post-image {
	max-width: 1160px;
	margin-top: 32px;
	margin-bottom: 0;
}

.cm-bl-post-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 650px;
	object-fit: contain;
	background: #eee3d8;
	border: 1px solid var(--cm-bl-line);
	border-radius: 4px;
	transform: none;
}

.cm-bl-post-image figcaption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--cm-bl-stone);
}

/* Reading grid (.article-reading) */
.cm-bl-post .cm-bl-reading {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 5px;
	max-width: 1160px;
	margin-top: 40px;
}

@media (min-width: 768px) {
	.cm-bl-post .cm-bl-reading { gap: 32px; }
}

@media (min-width: 1024px) {
	.cm-bl-post .cm-bl-reading { grid-template-columns: 220px minmax(0, 1fr); gap: 65px; }
	.cm-bl-reading .cm-bl-toc { position: sticky; top: 100px; align-self: start; margin: 0; }
	.cm-bl-reading .cm-bl-body { grid-column: 2; }
}

.cm-bl-body {
	min-width: 0;
	max-width: 70ch;
}

/* Contents disclosure (.contents-nav) */
.cm-bl-toc {
	margin-bottom: 24px;
	padding: 18px 0;
	border-top: 3px solid var(--cm-bl-brand);
	border-bottom: 1px solid var(--cm-bl-rule);
}

@media (min-width: 768px) {
	.cm-bl-toc { margin-bottom: 32px; }
}

.cm-bl-toc summary {
	min-height: 26px;
	line-height: normal;
	cursor: pointer;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cm-bl-ink);
}

.cm-bl-toc ol {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 14px 0 0;
	list-style: none;
	counter-reset: cm-bl-contents;
}

.cm-bl-toc li { margin: 0; counter-increment: cm-bl-contents; }

.cm-bl-toc a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-height: 40px;
	padding: 7px 0;
	font-size: 13px;
	line-height: 1.55;
	color: #51443b;
	text-decoration: none;
}

.cm-bl-toc a::before {
	content: counter(cm-bl-contents, decimal-leading-zero);
	flex-shrink: 0;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 10px;
	font-weight: 600;
	color: #a13228;
}

.cm-bl-toc a:hover { color: #a13228; text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1024px) {
	.cm-bl-toc ol {
		max-height: 58dvh;
		overflow-y: auto;
		padding-right: 12px;
		scrollbar-width: thin;
		scrollbar-color: #bda28e transparent;
	}
}

/* ---------------------------------------------------------- Body typography
   .prose-cm + .reading-body .prose-cm. Scoped through .cm-bl-body so it
   outranks the shared .cm-prose rules without touching other templates. */
.cm-bl-body .cm-prose {
	max-width: 72ch;
	font-size: 16px;
	line-height: 1.85;
	color: var(--cm-bl-prose);
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	.cm-bl-body .cm-prose { font-size: 16.5px; line-height: 1.9; }
}

.cm-bl-body .cm-prose > * { margin-top: 0; margin-bottom: 0; }
.cm-bl-body .cm-prose > * + * { margin-top: 1.05em; }
.cm-bl-body .cm-prose :is(div, section) > * + * { margin-top: 1.05em; }

.cm-bl-body .cm-prose p { margin-bottom: 0; }
.cm-bl-body .cm-prose p:empty,
.cm-bl-body .cm-prose div:empty { display: none; }

.cm-bl-body .cm-prose :is(h2, h3, h4, h5, h6) {
	margin-bottom: 0;
	padding-bottom: 0; /* style.css gives h3 27px */
	color: var(--cm-bl-ink);
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-weight: 700;
	scroll-margin-top: 110px;
	text-wrap: balance;
	text-transform: none;
}

.cm-bl-body .cm-prose h2 {
	margin-top: 1.8em;
	padding-top: 16px;
	border-top: 1px solid var(--cm-bl-rule);
	font-size: clamp(23px, 2.6vw, 33px);
	line-height: 1.2;
	letter-spacing: -.035em;
}

.cm-bl-body .cm-prose > h2:first-child { margin-top: 0; }

.cm-bl-body .cm-prose h3 {
	margin-top: 1.6em;
	font-size: 21px;
	line-height: inherit; /* the reference inherits the body's 1.9 */
	letter-spacing: -.015em;
}

.cm-bl-body .cm-prose :is(h4, h5, h6) {
	margin-top: 1.4em;
	font-size: 18px;
	line-height: inherit;
	letter-spacing: -.015em;
}

.cm-bl-body .cm-prose :is(div, section) > :is(h2, h3, h4) { margin-top: 1.8em; }

.cm-bl-body .cm-prose a {
	color: var(--cm-bl-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.cm-bl-body .cm-prose a:hover { color: #9c2c23; }

.cm-bl-body .cm-prose strong,
.cm-bl-body .cm-prose b { color: var(--cm-bl-ink); font-weight: 700; }

.cm-bl-body .cm-prose ul,
.cm-bl-body .cm-prose ol { margin-bottom: 0; padding-left: 1.3em; }
.cm-bl-body .cm-prose ul { list-style: disc outside; }
.cm-bl-body .cm-prose ol { list-style: decimal outside; }
.cm-bl-body .cm-prose li { margin: 0; padding: 0; }
.cm-bl-body .cm-prose li + li { margin-top: .45em; }
.cm-bl-body .cm-prose li::marker { color: var(--cm-bl-brand); }
.cm-bl-body .cm-prose li > :is(ul, ol) { margin-top: .45em; }

.cm-bl-body .cm-prose blockquote {
	margin-inline: 0;
	padding: 22px;
	border: 0;
	border-left: 4px solid var(--cm-bl-brand);
	background: #f0e5da;
	color: var(--cm-bl-body);
	font-size: inherit;
	font-style: italic;
	line-height: inherit;
}

.cm-bl-body .cm-prose blockquote > * + * { margin-top: 1.05em; }
.cm-bl-body .cm-prose blockquote p { margin: 0; font-size: inherit; }
.cm-bl-body .cm-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--cm-bl-stone); }

.cm-bl-body .cm-prose img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--cm-bl-line);
	border-radius: 10px;
	transform: none;
}

.cm-bl-body .cm-prose figure { margin-inline: 0; max-width: 100%; }
.cm-bl-body .cm-prose figure img { display: block; }

.cm-bl-body .cm-prose figcaption,
.cm-bl-body .cm-prose .wp-caption-text {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.9; /* .prose-cm figcaption inherits the prose's 1.9 (26.6px) */
	color: var(--cm-bl-stone);
	text-align: left;
}

.cm-bl-body .cm-prose .wp-caption { max-width: 100%; }
.cm-bl-body .cm-prose .aligncenter { margin-inline: auto; }
.cm-bl-body .cm-prose .alignleft,
.cm-bl-body .cm-prose .alignright { max-width: 100%; }

@media (min-width: 768px) {
	.cm-bl-body .cm-prose .alignleft { float: left; max-width: 50%; margin: .3em 1.5em 1em 0; }
	.cm-bl-body .cm-prose .alignright { float: right; max-width: 50%; margin: .3em 0 1em 1.5em; }
}

.cm-bl-body .cm-prose::after { content: ""; display: table; clear: both; }

/* Embeds: responsive 16:9 unless the block says otherwise. */
.cm-bl-body .cm-prose iframe,
.cm-bl-body .cm-prose embed,
.cm-bl-body .cm-prose object,
.cm-bl-body .cm-prose video {
	display: block;
	max-width: 100%;
	border: 0;
}

.cm-bl-body .cm-prose .wp-block-embed__wrapper,
.cm-bl-body .cm-prose .wp-block-embed { margin-inline: 0; }

.cm-bl-body .cm-prose .wp-block-embed iframe,
.cm-bl-body .cm-prose > iframe,
.cm-bl-body .cm-prose p > iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: var(--cm-bl-sand);
}

.cm-bl-body .cm-prose .wp-embed-aspect-4-3 iframe { aspect-ratio: 4 / 3; }
.cm-bl-body .cm-prose .wp-embed-aspect-1-1 iframe { aspect-ratio: 1; }
.cm-bl-body .cm-prose .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before { display: none; }
.cm-bl-body .cm-prose .wp-block-embed.wp-has-aspect-ratio iframe { position: static; }

/* Tables scroll inside the column rather than widening the page. */
.cm-bl-body .cm-prose table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	background: #fdf9f4;
	font-size: 15px;
	line-height: 1.6;
}

.cm-bl-body .cm-prose .wp-block-table { margin-inline: 0; overflow-x: auto; }
.cm-bl-body .cm-prose th,
.cm-bl-body .cm-prose td { padding: 8px 10px; border: 1px solid var(--cm-bl-line); text-align: left; vertical-align: top; }
.cm-bl-body .cm-prose th { background: #e9dacd; font-weight: 600; color: var(--cm-bl-ink); }
.cm-bl-body .cm-prose tr:nth-child(even) { background: #f3ebe3; }

.cm-bl-body .cm-prose hr { margin-block: 2em; border: 0; border-top: 1px solid var(--cm-bl-line); }

.cm-bl-body .cm-prose :is(pre, code) { overflow-wrap: anywhere; }
.cm-bl-body .cm-prose pre { overflow-x: auto; padding: 16px; border-radius: 8px; background: var(--cm-bl-sand); font-size: 14px; }

.cm-bl-page-links { margin-top: 32px; font-size: 14px; color: var(--cm-bl-stone); }
.cm-bl-page-links a { margin-left: 8px; color: var(--cm-bl-link); }

/* Share row (.article-share): left-aligned on the plate, as rendered. */
.cm-bl-post .cm-bl-share-wrap {
	max-width: 1160px;
	padding-bottom: 24px;
}

.cm-bl-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	max-width: 72ch;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--cm-bl-line);
	font-size: 14.5px;
	line-height: 1.65;
}

.cm-bl-share-label {
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-weight: 700;
	color: var(--cm-bl-ink);
}

.cm-bl-share .cm-bl-share-tag {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 6px;
	background: var(--cm-bl-sand);
	color: var(--cm-bl-body);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.65;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .15s var(--cm-bl-ease);
}

.cm-bl-share .cm-bl-share-tag:hover { background: var(--cm-bl-line); color: var(--cm-bl-body); }

/* Related (.article-detail > section): sand band, boxed cards, 3 up */
.cm-bl-related {
	border-top: 1px solid var(--cm-bl-line);
	background: rgba(243, 237, 231, .5);
}

.cm-bl-related-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 768px) {
	.cm-bl-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cm-bl-card--boxed {
	overflow: hidden;
	background: #fffdfb;
	border: 1px solid var(--cm-bl-line);
	border-radius: 14px;
	box-shadow: none;
	transition: border-color .2s var(--cm-bl-ease), transform .2s var(--cm-bl-ease);
}

.cm-bl-card--boxed:hover { border-color: #cdbfb3; }

.cm-bl-card--boxed > .cm-bl-frame {
	margin: 12px 12px 0;
	border-radius: 10px;
}

.cm-bl-card--boxed .cm-bl-card-body { padding: 20px; }

.cm-bl-card--boxed .cm-bl-card-title {
	margin: 4px 0 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.375;
	letter-spacing: -.015em;
}

/* ==========================================================================
   Comments — "Join the conversation." (reference journal-comments idiom)
   ========================================================================== */
.cm-bl-post .cm-bl-comments-wrap { max-width: 1160px; }

.cm-bl-comments {
	max-width: 72ch;
	margin-top: 16px;
	padding-top: 30px;
	border-top: 1px solid #292725;
	font-size: 14.5px;
	line-height: 1.65;
	scroll-margin-top: 120px;
}

.cm-bl-comments .cm-bl-comments-title {
	margin: 0 0 13px;
	padding: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.04em;
}

.cm-bl-comments .cm-bl-comments-lede {
	margin: 0 0 25px;
	font-size: 13px;
	line-height: 1.85;
	color: #665b55;
}

.cm-bl-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cm-bl-ink);
}

.cm-bl-kicker::before { content: ""; width: 24px; height: 3px; background: var(--cm-bl-brand); }

.cm-bl-comments .comment-list,
.cm-bl-comments .comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-bl-comments .comment-list { margin: 20px 0 30px; }
.cm-bl-comments .comment-list .children { margin-left: 24px; border-left: 2px solid var(--cm-bl-rule); padding-left: 18px; }

.cm-bl-comments .comment-list > li,
.cm-bl-comments .comment-list .children > li { margin: 0; padding: 0; }

.cm-bl-comments .comment-body {
	padding: 24px 0;
	border-top: 1px solid var(--cm-bl-rule);
}

.cm-bl-comments .comment-author {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 16px;
	font-size: 13px;
}

.cm-bl-comments .comment-avatar { display: none; }

.cm-bl-comments .comment-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.cm-bl-comments .comment-author-name,
.cm-bl-comments .comment-author-name a { font-weight: 700; color: var(--cm-bl-ink); }

.cm-bl-comments .comment-author-badge {
	padding: 2px 8px;
	border: 1px solid #cdbfb4;
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cm-bl-body);
}

.cm-bl-comments .comment-meta a,
.cm-bl-comments .comment-meta time { font-size: 11px; color: #73645c; text-decoration: none; }
.cm-bl-comments .comment-meta a:hover { text-decoration: underline; }

.cm-bl-comments .comment-content {
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--cm-bl-prose);
	overflow-wrap: anywhere;
}

.cm-bl-comments .comment-content > * + * { margin-top: .9em; }
.cm-bl-comments .comment-content p { margin-bottom: 0; }
.cm-bl-comments .comment-content a { color: var(--cm-bl-link); text-decoration: underline; text-underline-offset: 3px; }

.cm-bl-comments .comment-awaiting-moderation {
	margin: 12px 0 0;
	padding: 12px 16px;
	border-left: 3px solid #68705b;
	background: #eee9dc;
	font-size: 12px;
}

.cm-bl-comments .comment-actions { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; }

.cm-bl-comments .comment-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-weight: 600;
	color: var(--cm-bl-link);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.cm-bl-comments .comment-navigation,
.cm-bl-comments .comments-navigation { margin: 16px 0; font-size: 12px; }
.cm-bl-comments .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.cm-bl-comments .nav-links a { color: var(--cm-bl-link); }

.cm-bl-comments-empty,
.cm-bl-comments-closed {
	margin: 0 0 20px;
	padding: 23px;
	border: 1px solid #cdbfb4;
	font-size: 13px;
	line-height: 1.85;
	color: var(--cm-bl-body);
}

.cm-bl-comments-empty p { margin: 0; }
.cm-bl-comments-empty strong { color: var(--cm-bl-ink); }

/* The form panel (.journal-comment-form) */
.cm-bl-comments .comment-respond {
	margin-top: 20px;
	padding: 27px;
	background: var(--cm-bl-panel);
}

.cm-bl-comments .cm-bl-reply-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.cm-bl-comments .cm-bl-reply-title small { margin-left: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.cm-bl-comments .cm-bl-reply-title small a { color: var(--cm-bl-link); }

.cm-bl-comment-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 18px;
}

@media (min-width: 640px) {
	.cm-bl-comment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-bl-comment-form > * { grid-column: 1 / -1; }
	.cm-bl-comment-form > .cosmick-cf-half { grid-column: auto; }
}

.cm-bl-comment-form .comment-notes,
.cm-bl-comment-form .logged-in-as,
.cm-bl-comment-form .must-log-in {
	margin: 0 0 18px;
	font-size: 12px;
	line-height: 1.8;
	color: #665b55;
}

.cm-bl-comment-form .logged-in-as a,
.cm-bl-comment-form .must-log-in a { color: var(--cm-bl-link); text-decoration: underline; }

.cm-bl-comment-form .cosmick-cf-field { margin: 0 0 20px; }

.cm-bl-comment-form .cosmick-cf-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--cm-bl-ink);
	text-transform: none;
	letter-spacing: normal;
}

.cm-bl-comment-form .required { color: var(--cm-bl-link); }
.cm-bl-comment-form .cosmick-cf-optional { font-weight: 400; color: #665b55; }

.cm-bl-comment-form .cosmick-cf-input,
.cm-bl-comment-form .cosmick-cf-textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 12px;
	border: 1px solid #8f7c6e;
	border-radius: 0;
	background: #fbf8f5;
	box-shadow: none;
	color: var(--cm-bl-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.cm-bl-comment-form .cosmick-cf-textarea { min-height: 160px; resize: vertical; }

.cm-bl-comment-form .cosmick-cf-input::placeholder,
.cm-bl-comment-form .cosmick-cf-textarea::placeholder { color: #7a6d64; opacity: 1; }

.cm-bl-comment-form .cosmick-cf-input:focus-visible,
.cm-bl-comment-form .cosmick-cf-textarea:focus-visible {
	outline: 3px solid var(--cm-bl-link);
	outline-offset: 2px;
	border-color: var(--cm-bl-link);
}

.cm-bl-comment-form .cosmick-cf-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 12px;
	line-height: 1.9;
}

.cm-bl-comment-form .cosmick-cf-checkbox {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 4px 0 0;
	accent-color: var(--cm-bl-link);
}

.cm-bl-comment-form .cosmick-cf-consent-label { margin: 0; font-weight: 400; color: var(--cm-bl-ink); }

.cm-bl-comment-form .form-submit { margin: 0; }

.cm-bl-comments .cm-bl-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 12px 20px;
	border: 1px solid #292725;
	border-radius: 0;
	background: #292725;
	color: #fbf8f5;
	font-family: var(--cm26-font-display, Montserrat, sans-serif);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
}

.cm-bl-comments .cm-bl-button:hover { background: #000; border-color: #000; color: #fbf8f5; }
.cm-bl-comments .cm-bl-button:focus-visible { outline: 3px solid var(--cm-bl-link); outline-offset: 3px; }

/* ==========================================================================
   Phones
   ========================================================================== */
@media (max-width: 767px) {
	.cm-bl-lead > .cm-bl-frame { min-height: 0; }
	.cm-bl-comments .comment-respond { padding: 20px 17px; }
	.cm-bl-comments .comment-list .children { margin-left: 8px; padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-bl-lead,
	.cm-bl-card,
	.cm-bl-more svg,
	.cm-bl-back svg { transition: none; }

	.cm-bl-lead:hover,
	.cm-bl-card:hover,
	.cm-bl-lead:hover .cm-bl-more svg,
	.cm-bl-back:hover svg { transform: none; }
}

/* comments.php marks "(required)" for screen readers with .cosmick-sr-only,
   which only the retired blog.css defined. */
.cm-bl-comments .cosmick-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
