/*
 * Blog and news (index, archives, posts), search results and the 404 page: the mockups Blog and BlogPost.
 * Adapted from wpcc-2026's blog.css and recolored to the cloud palette.
 *
 * House rule: a rounded element gets a ring on all four sides or none. The current chip, page and table-of-contents
 * entry show with a fill, a text color or a dot. Quotes and code blocks drop the side bars WordPress gives them.
 */

/* ---------------------------------------------------------------------------------------------------------------
 * Sky band: title, lead, topic chips, search
 * ------------------------------------------------------------------------------------------------------------- */

/* The band's content sits in a .wrap, like the sections below, so both start on the same line at every width. */
.sky > .sky__inner {
	padding-right: 0;
	padding-left: 0;
}

.blog-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.blog-hero__title {
	max-width: 800px;
	font-size: clamp(40px, 4.8cqi, 68px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.025em;
	overflow-wrap: break-word;
}

.blog-hero__title--query {
	max-width: 960px;
}

.blog-hero__title em,
.post-hero__title em,
.blog-cta__title em {
	font-style: italic;
	font-weight: 500;
	color: var(--accent);
}

.blog-hero__lead {
	max-width: 600px;
	font-size: 19px;
	line-height: 1.6;
	color: #3F4966;
}

.blog-hero__page {
	font-size: 15px;
	font-weight: 700;
	color: #3F4966;
}

.blog-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 14px;
	color: #3F4966;
}

.blog-crumbs a {
	color: #3F4966;
	text-decoration: none;
}

.blog-crumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.blog-crumbs .blog-crumbs__topic {
	font-weight: 700;
	color: var(--ink);
}

/* Topic chips: links to the category archives. */
.blog-chips {
	max-width: 100%;
}

.blog-chips ul,
.nf-links ul,
.blog-empty__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms ease, color 150ms ease;
}

.blog-chip:hover {
	background: #FFFFFF;
	color: var(--ink);
}

.blog-chip[aria-current='page'] {
	background: var(--ink);
	box-shadow: none;
	color: #FFFFFF;
}

/* Search field (search results and 404). */
.blog-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	max-width: 600px;
}

.blog-search__input {
	flex: 1 1 260px;
	min-width: 0;
	min-height: 54px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.12), 0 14px 30px -22px rgba(38, 32, 70, 0.45);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	-webkit-appearance: none;
	appearance: none;
}

.blog-search__input::placeholder {
	color: #5D6684;
	opacity: 1;
}

.blog-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.blog-search__btn {
	flex: none;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Lists of posts: the featured card, the grid, page links
 * ------------------------------------------------------------------------------------------------------------- */

.blog-list-band {
	padding: clamp(32px, 4cqi, 56px) 0 clamp(72px, 9cqi, 120px);
}

.blog-list {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 4cqi, 48px);
}

.blog-list__empty {
	font-size: 17px;
	color: var(--ink-2);
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
	gap: clamp(36px, 3.4cqi, 44px) clamp(20px, 2.6cqi, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-grid__item {
	display: flex;
	min-width: 0;
}

.blog-card {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.blog-card__cover {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	overflow: hidden;
	border-radius: 26px;
	background: #E9E2FF;
}

.blog-card .blog-card__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.blog-card:hover .blog-card__photo {
	transform: scale(1.03);
}

.blog-card .blog-card__plush {
	display: block;
	width: auto;
	height: 90%;
	max-width: 92%;
	object-fit: contain;
}

/* The pastel tints of the mockup's covers. */
.tint-lilac {
	background: #E9E2FF;
}

.tint-sky {
	background: #DFEBFD;
}

.tint-pink {
	background: #F4E4FC;
}

.tint-butter {
	background: #FFF1CC;
}

.tint-mint {
	background: #E2F4EB;
}

.tint-periwinkle {
	background: #E4E8FF;
}

.blog-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.blog-card__label {
	padding: 5px 12px;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.08);
	color: #3F2AA8;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
}

.blog-card__title {
	font-size: 23px;
	font-weight: 600;
	line-height: 1.18;
	overflow-wrap: break-word;
}

.blog-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.blog-card__title a:hover {
	color: var(--ink);
}

/* The title link covers the whole card. */
.blog-card__title a::after {
	content: '';
	position: absolute;
	z-index: 1;
	inset: 0;
	border-radius: 26px;
}

.blog-card:hover .blog-card__title a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.blog-card .blog-card__title a:focus-visible {
	outline: none;
}

.blog-card .blog-card__title a:focus-visible::after {
	outline: 3px solid rgba(75, 45, 197, 0.45);
	outline-offset: 4px;
}

.blog-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink-2);
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin-top: auto;
	font-size: 14px;
	color: #5D6684;
}

/* The first post of an index: one wide white card. */
.blog-card--featured {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(20px, 4cqi, 48px);
	padding: clamp(16px, 2cqi, 24px);
	border-radius: 32px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.05), 0 44px 90px -60px rgba(45, 32, 110, 0.5);
}

.blog-card--featured .blog-card__cover {
	flex: 1 1 420px;
	min-width: 0;
	height: clamp(240px, 26cqi, 340px);
	border-radius: 24px;
}

.blog-card--featured .blog-card__plush {
	height: 92%;
}

.blog-card--featured .blog-card__body {
	flex: 1 1 380px;
	padding: 8px;
}

.blog-card--featured .blog-card__label {
	background: #F1EDFF;
	box-shadow: none;
}

.blog-card--featured .blog-card__title {
	font-size: clamp(28px, 2.8cqi, 40px);
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.blog-card--featured .blog-card__title a::after {
	border-radius: 32px;
}

.blog-card--featured .blog-card__excerpt {
	font-size: 17px;
	line-height: 1.6;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.blog-card--featured .blog-card__meta {
	margin-top: 0;
}

/* Keep reading: cover and title. */
.blog-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 32px 24px;
}

.blog-card--compact {
	gap: 12px;
}

.blog-card--compact .blog-card__cover {
	height: 190px;
	border-radius: 24px;
}

.blog-card--compact .blog-card__body {
	gap: 8px;
}

.blog-card--compact .blog-card__title {
	font-size: 21px;
	line-height: 1.2;
}

.blog-card--compact .blog-card__title a::after {
	border-radius: 24px;
}

/* Page links. */
.blog-pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.blog-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 48px;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.12);
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: box-shadow 150ms ease, background-color 150ms ease;
}

.blog-pager a.page-numbers:hover {
	box-shadow: 0 0 0 1px rgba(75, 45, 197, 0.45);
	color: var(--ink);
}

.blog-pager .page-numbers.current {
	background: var(--ink);
	box-shadow: none;
	color: #FFFFFF;
}

.blog-pager .page-numbers.dots {
	min-width: 20px;
	padding: 0;
	background: none;
	box-shadow: none;
	color: #5D6684;
}

.blog-pager .prev,
.blog-pager .next {
	padding: 0 22px;
}

.blog-pager .prev svg {
	transform: rotate(180deg);
}

/* ---------------------------------------------------------------------------------------------------------------
 * The closing band of the lists
 * ------------------------------------------------------------------------------------------------------------- */

.blog-cta-band {
	padding: 0 0 clamp(72px, 9cqi, 120px);
}

.blog-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(26px, 4cqi, 48px);
	border-radius: 32px;
	background: #E9E2FF;
}

.blog-cta__copy {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.blog-cta__title {
	font-size: clamp(28px, 3cqi, 40px);
	font-weight: 600;
	line-height: 1.08;
}

.blog-cta__text {
	font-size: 17px;
	line-height: 1.6;
	color: #3F4966;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Search: the empty state
 * ------------------------------------------------------------------------------------------------------------- */

.blog-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 760px;
	padding: clamp(24px, 4cqi, 40px);
	border-radius: 28px;
	background: #FFFFFF;
	box-shadow: var(--shadow-card);
}

.blog-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: #F1EDFF;
	color: var(--accent);
}

.blog-empty__title {
	font-size: clamp(24px, 2.2cqi, 28px);
	font-weight: 600;
	line-height: 1.2;
}

.blog-empty__text {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-2);
}

/* ---------------------------------------------------------------------------------------------------------------
 * 404
 * ------------------------------------------------------------------------------------------------------------- */

.nf-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px clamp(32px, 5cqi, 64px);
}

.nf-hero__copy {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.nf-hero__art {
	flex: 0 1 340px;
	min-width: 0;
	max-width: 340px;
	margin: 0 auto;
}

.nf-hero__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------------------------------------------------------
 * A post: sky band
 * ------------------------------------------------------------------------------------------------------------- */

.post-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px clamp(32px, 5cqi, 64px);
}

.post-hero__copy {
	flex: 1 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.post-hero__title {
	font-size: clamp(36px, 4.2cqi, 58px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}

.post-hero__title--long {
	font-size: clamp(32px, 3.4cqi, 46px);
	line-height: 1.08;
}

.post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 15px;
	color: #3F4966;
}

.post-hero__media {
	flex: 0 1 420px;
	min-width: 0;
	max-width: 420px;
}

.post-hero__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 28px;
	background: #E9E2FF;
	box-shadow: 0 34px 60px -40px rgba(38, 32, 70, 0.55);
}

.post-hero__media--plush {
	flex-basis: 320px;
	max-width: 320px;
}

.post-hero__plush {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------------------------------------------------------
 * A post: body, author, rail
 * ------------------------------------------------------------------------------------------------------------- */

.post-band {
	padding: clamp(24px, 3cqi, 40px) 0 clamp(72px, 9cqi, 120px);
}

.post-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(32px, 5cqi, 72px);
}

.post-main {
	flex: 999 1 560px;
	min-width: 0;
	max-width: 740px;
	display: flex;
	flex-direction: column;
	gap: 44px;
}

.post-rail {
	position: sticky;
	top: 24px;
	flex: 1 1 260px;
	max-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Author box. */
.post-author {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.06);
}

.post-author .post-author__avatar {
	flex: none;
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 999px;
	background: #E9E2FF;
	object-fit: cover;
}

.post-author__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 600;
}

.post-author__copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.post-author__name {
	font-size: 16px;
	color: var(--ink);
}

.post-author__bio {
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-2);
}

/* Table of contents. */
.post-toc {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border-radius: 24px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.06);
}

.post-toc__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-2);
}

/* Long lists scroll inside the card, so the product card below stays on screen. */
.post-toc__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: max(140px, calc(100vh - 520px));
	margin: 0 0 0 -14px;
	padding: 0 4px 0 14px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	scrollbar-width: thin;
}

.post-toc__sub {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0 0 0 14px;
	list-style: none;
}

.post-toc a {
	position: relative;
	display: block;
	color: #2E3754;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
}

.post-toc__sub a {
	color: var(--ink-2);
	font-size: 14px;
}

.post-toc a:hover {
	color: var(--accent);
}

/* blog.js marks the edges that have more entries beyond them: they fade out. */
.post-toc__list.is-clipped {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}

.post-toc__list.is-clipped-top {
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px);
	mask-image: linear-gradient(to bottom, transparent, #000 28px);
}

.post-toc__list.is-clipped.is-clipped-top {
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 36px), transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 36px), transparent);
}

/* The section being read: accent color and a dot. */
.post-toc a[aria-current='true'] {
	color: var(--accent);
	font-weight: 700;
}

.post-toc a[aria-current='true']::before {
	content: '';
	position: absolute;
	left: -12px;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--accent);
}

/* Product card of the rail. */
.post-promo {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border-radius: 24px;
	background: #1B1747;
	color: #F7F5FF;
}

.post-promo__img {
	display: block;
	width: 150px;
	height: auto;
	align-self: center;
}

.ccc26 .post-promo__title {
	color: #F7F5FF;
	font-family: var(--serif);
	font-variation-settings: 'SOFT' 100, 'WONK' 0;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
}

.post-promo__text {
	color: #CBC6EC;
	font-size: 15px;
	line-height: 1.5;
}

.post-promo__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 150ms ease;
}

.ccc26 .post-promo__btn:hover {
	background: var(--accent-tint);
	color: var(--ink);
}

.ccc26 .post-promo__btn:focus-visible {
	outline-color: #FFFFFF;
}

/* Keep reading. */
.post-more {
	padding: 0 0 clamp(72px, 9cqi, 120px);
}

.post-more__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.post-more__title {
	font-size: clamp(28px, 2.8cqi, 38px);
	font-weight: 600;
	line-height: 1.1;
}

/* ---------------------------------------------------------------------------------------------------------------
 * A post: the content as WordPress renders it (blocks and classic HTML)
 * ------------------------------------------------------------------------------------------------------------- */

.post-body {
	color: #2E3754;
	font-size: 18px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.post-body::after {
	content: '';
	display: table;
	clear: both;
}

.ccc26 .post-body > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ccc26 .post-body > * + * {
	margin-top: 22px;
}

.ccc26 .post-body > p:first-child {
	color: var(--ink);
	font-size: 21px;
	line-height: 1.6;
}

.ccc26 .post-body h2,
.ccc26 .post-body h3,
.ccc26 .post-body h4,
.ccc26 .post-body h5,
.ccc26 .post-body h6 {
	color: var(--ink);
	font-weight: 600;
	scroll-margin-top: 24px;
}

.ccc26 .post-body h2 {
	margin-top: 44px;
	font-size: clamp(28px, 2.6cqi, 34px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.ccc26 .post-body h3 {
	margin-top: 34px;
	font-size: clamp(22px, 2cqi, 25px);
	line-height: 1.22;
}

.ccc26 .post-body h4,
.ccc26 .post-body h5,
.ccc26 .post-body h6 {
	margin-top: 28px;
	font-family: var(--sans);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
}

.ccc26 .post-body > :first-child {
	margin-top: 0;
}

.ccc26 .post-body h2 + *,
.ccc26 .post-body h3 + *,
.ccc26 .post-body h4 + *,
.ccc26 .post-body h5 + *,
.ccc26 .post-body h6 + * {
	margin-top: 12px;
}

.post-body a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.post-body a:hover {
	color: var(--accent-hover);
	text-decoration-thickness: 2px;
}

.post-body strong,
.post-body b {
	color: var(--ink);
}

.post-body p:empty {
	display: none;
}

/* Lists. */
.post-body ul,
.post-body ol {
	padding-left: 22px;
}

.post-body li + li,
.post-body li > ul,
.post-body li > ol {
	margin-top: 8px;
}

.post-body li > p {
	margin: 0;
}

.post-body li > p + p {
	margin-top: 8px;
}

.post-body li::marker {
	color: var(--accent);
	font-weight: 700;
}

/* Tables: a white card that scrolls sideways when the table is wider than the column. */
.ccc26 .post-body .wp-block-table,
.ccc26 .post-body .post-table {
	overflow-x: auto;
	margin-right: 0;
	margin-left: 0;
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.06);
	-webkit-overflow-scrolling: touch;
}

.post-body table {
	width: 100%;
	margin: 0 !important; /* Some posts carry an inline margin on the table. */
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
	line-height: 1.5;
}

.post-body .wp-block-table thead,
.post-body .wp-block-table tfoot {
	border: 0;
}

.post-body th,
.post-body td,
.post-body .wp-block-table th,
.post-body .wp-block-table td {
	min-width: 7.5em;
	padding: 12px 14px;
	border: 0;
	text-align: left;
	vertical-align: top;
}

.post-body thead th,
.post-body tr:first-child > th {
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 800;
}

.post-body tbody th {
	color: var(--ink);
	font-weight: 700;
}

.post-body tbody tr:nth-child(odd) > td,
.post-body tbody tr:nth-child(odd) > th {
	background: #F8F6FF;
}

.post-body tbody tr:first-child:has(> th:only-child, > th + th) > th {
	background: none;
}

.post-body .wp-block-table figcaption,
.post-body .wp-block-table .wp-element-caption {
	margin: 0;
	padding: 10px 14px 14px;
}

/* Quotes: a lilac card, no side bar. */
.ccc26 .post-body blockquote,
.ccc26 .post-body .wp-block-quote,
.ccc26 .post-body .wp-block-pullquote {
	margin-right: 0;
	margin-left: 0;
	padding: 24px 28px;
	border: 0;
	border-radius: 22px;
	background: #E9E2FF;
	color: var(--ink);
	font-family: var(--serif);
	font-variation-settings: 'SOFT' 100, 'WONK' 0;
	font-size: 22px;
	line-height: 1.45;
	text-align: left;
}

.ccc26 .post-body blockquote p,
.ccc26 .post-body .wp-block-pullquote p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.ccc26 .post-body blockquote p + p {
	margin-top: 12px;
}

.post-body blockquote cite,
.post-body .wp-block-quote cite,
.post-body .wp-block-pullquote cite {
	display: block;
	margin-top: 12px;
	color: var(--ink-2);
	font-family: var(--sans);
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
}

/* Images and captions. */
.post-body img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

.post-body figure {
	margin-right: 0;
	margin-left: 0;
}

.post-body figcaption,
.post-body .wp-element-caption,
.post-body .wp-caption-text {
	margin-top: 8px;
	color: #5D6684;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.post-body .wp-caption {
	max-width: 100%;
}

.post-body .aligncenter {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.post-body .alignleft {
	float: left;
	max-width: 50%;
	margin: 6px 24px 12px 0;
}

.post-body .alignright {
	float: right;
	max-width: 50%;
	margin: 6px 0 12px 24px;
}

.post-body .alignwide,
.post-body .alignfull {
	max-width: 100%;
}

/* Code. */
.post-body code,
.post-body kbd {
	padding: 2px 6px;
	border-radius: 6px;
	background: #F1EDFF;
	color: var(--ink);
	font-family: var(--mono);
	font-size: 0.86em;
	overflow-wrap: anywhere;
}

.ccc26 .post-body pre,
.ccc26 .post-body .wp-block-code {
	overflow-x: auto;
	padding: 20px 22px;
	border: 0;
	border-radius: 18px;
	background: var(--night);
	color: #E8E4FF;
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.65;
	white-space: pre;
	tab-size: 2;
}

.post-body pre code,
.post-body .wp-block-code code {
	padding: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	overflow-wrap: normal;
	white-space: inherit;
}

/* Separators and embeds. */
.ccc26 .post-body hr,
.ccc26 .post-body .wp-block-separator {
	height: 1px;
	margin-top: 40px;
	margin-bottom: 40px;
	border: 0;
	background: var(--line);
	opacity: 1;
}

.post-body iframe,
.post-body video,
.post-body embed,
.post-body object {
	max-width: 100%;
}

.post-body .wp-block-embed iframe {
	border-radius: 18px;
}

/* The product card inside a post. */
.post-body .post-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 22px;
	padding: 22px 24px;
	border-radius: 24px;
	background: #E9E2FF;
}

.post-card__copy {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ccc26 .post-body .post-card__title {
	color: var(--ink);
	font-family: var(--serif);
	font-variation-settings: 'SOFT' 100, 'WONK' 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.ccc26 .post-body .post-card__text {
	color: #3F4966;
	font-size: 16px;
	line-height: 1.6;
}

.ccc26 .post-body .post-card .post-card__btn {
	min-height: 48px;
	padding: 0 20px;
	color: #FFFFFF;
	font-size: 16px;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Narrower screens
 * ------------------------------------------------------------------------------------------------------------- */

@container page (max-width: 1060px) {
	.post-rail {
		display: none;
	}

	.post-main {
		max-width: 760px;
	}
}

@container page (max-width: 900px) {
	.post-hero__media {
		flex-basis: 100%;
		max-width: 560px;
	}

	.post-hero__photo {
		aspect-ratio: 16 / 10;
	}

	.post-hero__media--plush {
		max-width: 280px;
	}
}

@container page (max-width: 600px) {
	.post-body {
		font-size: 17px;
	}

	.ccc26 .post-body > p:first-child {
		font-size: 19px;
	}

	.post-body table {
		font-size: 13px;
	}

	.post-body th,
	.post-body td,
	.post-body .wp-block-table th,
	.post-body .wp-block-table td {
		padding: 10px 8px;
	}

	.post-body .alignleft,
	.post-body .alignright {
		float: none;
		max-width: 100%;
		margin: 0;
	}

	.ccc26 .post-body blockquote,
	.ccc26 .post-body .wp-block-quote,
	.ccc26 .post-body .wp-block-pullquote {
		padding: 20px 22px;
		font-size: 20px;
	}

	.post-author {
		align-items: flex-start;
	}

	.post-author .post-author__avatar {
		width: 56px;
		height: 56px;
	}

	.blog-card__cover {
		height: 200px;
	}

	.blog-search__btn {
		flex: 1 1 100%;
	}

	.nf-hero__art {
		max-width: 220px;
	}
}

@container page (max-width: 520px) {
	/* Many topics would take many rows: one swipeable row instead, bleeding to the screen edges. */
	.blog-chips {
		width: calc(100% + 2 * var(--gutter));
		max-width: none;
		margin: 0 calc(-1 * var(--gutter));
	}

	.blog-chips ul {
		flex-wrap: nowrap;
		padding: 2px var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.blog-chips ul::-webkit-scrollbar {
		display: none;
	}

	.blog-pager .page-numbers {
		min-width: 44px;
		min-height: 44px;
		padding: 0 12px;
	}

	.blog-pager .prev,
	.blog-pager .next {
		padding: 0 14px;
	}

	/* Arrows only; the words stay for screen readers. */
	.blog-pager__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}
