/**
 * 23 Project Theme — Blog, Single Post & Annual Letter Styles
 * Mintlify-inspired clean blog design.
 *
 * @package flavor23
 */

/* ==============================
   Blog Index — Hero
   ============================== */
.blog-hero {
	position: relative;
	padding: 8rem 1.5rem 3rem;
	text-align: center;
	background: var(--wp--preset--color--primary-dark, #2A2F42);
	color: #fff;
	overflow: hidden;
}

.blog-hero__eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--accent, #DD9F33);
	margin: 0 0 0.5rem;
}

.blog-hero__title {
	font-size: clamp(2rem, 4vw, 3.3rem);
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	margin-bottom: 0.75rem;
}

.blog-hero__subtitle {
	color: rgba(255, 255, 255, 0.85);
	max-width: 520px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.7;
}

/* Blog hero entrance animation */
.blog-hero__eyebrow,
.blog-hero__title,
.blog-hero__subtitle {
	opacity: 0;
	animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.blog-hero__eyebrow { animation-delay: 0.15s; }
.blog-hero__title    { animation-delay: 0.35s; }
.blog-hero__subtitle { animation-delay: 0.55s; }

/* Blog hero parallax z-index */
.blog-hero > *:not(.parallax-bg) {
	position: relative;
	z-index: 1;
}

/* ==============================
   Blog Index — Category Tabs
   ============================== */
.blog-tabs {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 2rem 1.5rem 0;
	max-width: 1200px;
	margin: 0 auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.blog-tabs::-webkit-scrollbar { display: none; }

.blog-tabs__link {
	display: inline-block;
	padding: 0.45rem 1rem;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.blog-tabs__link:hover {
	background: #F7F8FA;
	color: var(--wp--preset--color--body-text, #1A1A2E);
}

.blog-tabs__link--active {
	background: var(--wp--preset--color--primary-dark, #2A2F42);
	color: #fff;
}

.blog-tabs__link--active:hover {
	background: var(--wp--preset--color--primary-dark, #2A2F42);
	color: #fff;
}

/* ==============================
   Blog Index — Featured Post
   ============================== */
.blog-featured {
	max-width: 1200px;
	margin: 2rem auto 0;
	padding: 0 1.5rem 1.5rem;
}

.blog-featured__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: stretch;
	background: #F7F8FA;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s ease;
}

.blog-featured__card:hover {
	box-shadow: 0 8px 32px rgba(42, 47, 66, 0.1);
	color: inherit;
}

.blog-featured__image-wrap {
	overflow: hidden;
}

.blog-featured__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.blog-featured__card:hover .blog-featured__image-wrap img {
	transform: scale(1.03);
}

.blog-featured__image-placeholder {
	width: 100%;
	height: 100%;
	min-height: 280px;
	background: rgba(93, 121, 146, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

.blog-featured__body {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.blog-featured__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.blog-featured__category {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent, #DD9F33);
}

.blog-featured__reading-time {
	font-size: 0.75rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

.blog-featured__meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary-text, #6B7280);
	opacity: 0.5;
}

.blog-featured__title {
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	line-height: 1.3;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
}

.blog-featured__excerpt {
	font-size: 0.9rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	line-height: 1.7;
	margin-bottom: 1.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-featured__excerpt p { margin: 0; }

.blog-featured__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.blog-featured__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.blog-featured__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-featured__author-name {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
}

.blog-featured__author-date {
	font-size: 0.7rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

/* ==============================
   Blog Index — Card Grid
   ============================== */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.blog-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid rgba(42, 47, 66, 0.06);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
	box-shadow: 0 6px 24px rgba(42, 47, 66, 0.08);
	border-color: rgba(42, 47, 66, 0.12);
}

.blog-card__image-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.blog-card__image-link img,
.blog-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__image-link img,
.blog-card:hover .blog-card__image {
	transform: scale(1.03);
}

.blog-card__image-placeholder {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	background: #F7F8FA;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

.blog-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.blog-card__category {
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent, #DD9F33);
}

.blog-card__category a {
	color: inherit;
	text-decoration: none;
}

.blog-card__reading-time {
	font-size: 0.7rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

.blog-card__meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary-text, #6B7280);
	opacity: 0.5;
}

.blog-card__title {
	font-size: 1.15rem;
	line-height: 1.35;
	margin-bottom: 0.5rem;
}

.blog-card__title a {
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	text-decoration: none;
}

.blog-card__title a:hover {
	color: var(--wp--preset--color--primary, #5D7992);
}

.blog-card__excerpt {
	font-size: 0.85rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	line-height: 1.65;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__excerpt p { margin: 0; }

.blog-card__footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.blog-card__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.blog-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__author-name {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
}

.blog-card__date {
	font-size: 0.7rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

/* Hide old "Read more" link */
.blog-card__link { display: none; }

/* Empty state */
.blog-empty {
	text-align: center;
	padding: 4rem 1.5rem;
}

.blog-empty__icon {
	color: rgba(93, 121, 146, 0.15);
	margin-bottom: 1.5rem;
}

.blog-empty__title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.blog-empty__text {
	color: var(--wp--preset--color--secondary-text, #6B7280);
	max-width: 420px;
	margin: 0 auto 2rem;
}

/* Pagination */
.blog-pagination {
	padding: 3rem 0 0;
	border-top: 1px solid rgba(93, 121, 146, 0.15);
	margin-top: 1rem;
}

/* ==============================
   Single Post — Back Link
   ============================== */
.single-back {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 1.5rem 0;
}

.single-back__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	text-decoration: none;
	transition: color 0.15s;
}

.single-back__link:hover {
	color: var(--wp--preset--color--primary-dark, #2A2F42);
}

.single-back__link svg {
	width: 16px;
	height: 16px;
}

/* ==============================
   Single Post — Two-Column Layout
   ============================== */
.single-layout {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 4rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
	align-items: start;
}

/* ==============================
   Single Post — Header
   ============================== */
.single-header {
	margin-bottom: 2rem;
	padding: 0;
	background: none;
	text-align: left;
}

.single-header__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	justify-content: flex-start;
}

.single-header__category {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: none;
	padding: 0;
	margin-bottom: 0;
}

.single-header__category a {
	color: var(--wp--preset--color--accent, #DD9F33);
	text-decoration: none;
}

.single-header__meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary-text, #6B7280);
	opacity: 0.5;
}

.single-header__reading-time {
	font-size: 0.75rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

.single-header__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.2;
	margin-bottom: 0.75rem;
	letter-spacing: -0.02em;
	max-width: none;
	text-align: left;
}

.single-header__date {
	font-size: 0.85rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

/* ==============================
   Single Post — Featured Image
   ============================== */
.single-featured {
	margin-bottom: 2.5rem;
	border-radius: 10px;
	overflow: hidden;
	max-width: none;
	padding: 0;
	position: static;
	z-index: auto;
}

.single-featured img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	aspect-ratio: auto;
	object-fit: cover;
	box-shadow: none;
}

/* ==============================
   Single Post — Content Typography
   ============================== */
.single-content {
	padding: 0;
}

.single-content .entry-content {
	max-width: none;
	margin: 0;
	font-size: 1.0125rem;
	line-height: 1.8;
	color: var(--wp--preset--color--body-text, #1A1A2E);
}

.single-content .entry-content > * + * {
	margin-top: 1.5rem;
}

.single-content .entry-content h2 {
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 0.75rem;
	line-height: 1.3;
}

.single-content .entry-content h3 {
	font-size: 1.2rem;
	margin-top: 2.5rem;
	margin-bottom: 0.5rem;
	line-height: 1.35;
}

.single-content .entry-content h4 {
	font-size: 1.05rem;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

.single-content .entry-content p {
	font-size: 1.0625rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.single-content .entry-content a {
	color: var(--wp--preset--color--primary, #5D7992);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.single-content .entry-content a:hover {
	color: var(--wp--preset--color--accent, #DD9F33);
}

.single-content .entry-content strong {
	font-weight: 600;
}

.single-content .entry-content blockquote {
	border-left: 3px solid var(--wp--preset--color--primary-dark, #2A2F42);
	padding: 1rem 0 1rem 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	background: #F7F8FA;
	border-radius: 0 8px 8px 0;
}

.single-content .entry-content blockquote p {
	font-size: 1.05rem;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	margin-bottom: 0.5rem;
}

.single-content .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.single-content .entry-content ul,
.single-content .entry-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.single-content .entry-content li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
}

.single-content .entry-content li::marker {
	color: var(--wp--preset--color--accent, #DD9F33);
}

.single-content .entry-content img {
	border-radius: 10px;
	margin: 2rem 0;
}

.single-content .entry-content figure {
	margin: 2rem 0;
}

.single-content .entry-content figcaption {
	font-size: 0.8rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	text-align: center;
	margin-top: 0.5rem;
}

.single-content .entry-content hr {
	border: none;
	height: 1px;
	background: rgba(93, 121, 146, 0.15);
	margin: 3rem 0;
}

.single-content .entry-content pre {
	background: var(--wp--preset--color--primary-dark, #2A2F42);
	color: #e2e8f0;
	padding: 1.25rem 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 2rem 0;
}

.single-content .entry-content code {
	background: #F7F8FA;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	font-size: 0.875em;
}

.single-content .entry-content pre code {
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
}

.single-content .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 0.925rem;
}

.single-content .entry-content th,
.single-content .entry-content td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(93, 121, 146, 0.15);
	text-align: left;
}

.single-content .entry-content th {
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	background: #F7F8FA;
}

/* ==============================
   Single Post — Sticky Sidebar
   ============================== */
.single-sidebar {
	position: sticky;
	top: 100px;
}

.single-sidebar__author {
	margin-bottom: 1.5rem;
}

.single-sidebar__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.single-sidebar__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-sidebar__name {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	margin: 0 0 0.15rem;
}

.single-sidebar__role {
	font-size: 0.8rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	line-height: 1.4;
	margin: 0;
}

.single-sidebar__share {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(93, 121, 146, 0.15);
}

.single-sidebar__share-label {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	margin: 0 0 0.75rem;
}

.single-sidebar__share-links {
	display: flex;
	gap: 0.5rem;
}

.single-sidebar__share-btn {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid rgba(42, 47, 66, 0.1);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	cursor: pointer;
}

.single-sidebar__share-btn:hover {
	background: #F7F8FA;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	border-color: rgba(42, 47, 66, 0.2);
}

.single-sidebar__share-btn svg {
	width: 16px;
	height: 16px;
}

/* ==============================
   Single Post — Author (inline, below content on mobile)
   ============================== */
.single-author {
	max-width: none;
	margin: 0;
	padding: 2rem 0;
	border-top: 1px solid rgba(93, 121, 146, 0.15);
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.single-author__avatar { flex-shrink: 0; }

.single-author__avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.single-author__info { flex: 1; }

.single-author__label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	margin: 0 0 0.125rem;
}

.single-author__name {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	margin: 0;
}

/* ==============================
   Single Post — Navigation
   ============================== */
.single-nav {
	max-width: none;
	margin: 0;
	display: flex;
	gap: 1.5rem;
	padding: 2rem 0 0;
	border-top: 1px solid rgba(93, 121, 146, 0.15);
}

.single-nav__link {
	flex: 1;
	padding: 1rem;
	border-radius: 8px;
	border: 1px solid rgba(42, 47, 66, 0.08);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-width: none;
	transition: background 0.15s, border-color 0.15s;
}

.single-nav__link:hover {
	background: #F7F8FA;
	border-color: rgba(42, 47, 66, 0.15);
}

.single-nav__link--next { text-align: right; margin-left: auto; }

.single-nav__label {
	font-family: 'Inter', sans-serif;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--secondary-text, #6B7280);
}

.single-nav__title {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	line-height: 1.4;
}

.single-nav__link:hover .single-nav__title {
	color: var(--wp--preset--color--primary, #5D7992);
}

/* ==============================
   Single Post — Related Posts
   ============================== */
.single-related {
	background: #F7F8FA;
	border-top: 1px solid rgba(93, 121, 146, 0.15);
}

.single-related .section__eyebrow { display: none; }

.single-related .section__title {
	text-align: left;
	font-size: 1.5rem;
}

.single-related .section__title::after { display: none; }

.single-related__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

/* ==============================
   Single Post — Newsletter CTA
   ============================== */
.single-newsletter {
	background: #F7F8FA;
	text-align: center;
}

/* ==============================
   Annual Letter styles (kept from previous version)
   ============================== */
.letter-hero {
	padding: 8rem 1.5rem 5rem;
	text-align: center;
	background: var(--wp--preset--color--primary-dark, #2A2F42);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.letter-hero > *:not(.parallax-bg) {
	position: relative;
	z-index: 1;
}

.letter-hero::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: 48px;
	background: rgba(255, 255, 255, 0.15);
	z-index: 1;
}

.letter-hero__eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--accent, #DD9F33);
	margin: 0 0 1rem;
}

.letter-hero__title {
	font-size: 3rem;
	line-height: 1.15;
	max-width: 700px;
	margin: 0 auto 1.25rem;
	color: #fff;
}

.letter-hero__date {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.125rem;
	font-style: italic;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* Letter hero entrance animation */
.letter-hero__eyebrow,
.letter-hero__title,
.letter-hero__date {
	opacity: 0;
	animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.letter-hero__eyebrow { animation-delay: 0.15s; }
.letter-hero__title    { animation-delay: 0.35s; }
.letter-hero__date     { animation-delay: 0.55s; }

.letter-salutation {
	max-width: 680px;
	margin: 0 auto;
	padding: 4rem 1.5rem 0;
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.375rem;
	font-style: italic;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	text-align: center;
}

.letter-content { padding: 3rem 1.5rem 2rem; }

.letter-content .entry-content {
	max-width: 680px;
	margin: 0 auto;
}

.letter-content .entry-content p {
	font-size: 1.0625rem;
	line-height: 1.9;
	margin-bottom: 1.75rem;
}

.letter-content .entry-content p:first-of-type::first-letter {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 3.25rem;
	font-weight: 700;
	float: left;
	line-height: 1;
	margin: 0.05em 0.15em 0 0;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
}

.letter-content .entry-content h2 {
	font-size: 1.625rem;
	margin-top: 3rem;
	margin-bottom: 1.25rem;
	text-align: center;
}

.letter-content .entry-content h2::after {
	content: '';
	display: block;
	width: 36px;
	height: 2px;
	background: var(--wp--preset--color--accent, #DD9F33);
	margin: 0.75rem auto 0;
	border-radius: 2px;
}

.letter-content .entry-content h3 {
	font-size: 1.25rem;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}

.letter-content .entry-content blockquote {
	border: none;
	border-left: 3px solid var(--wp--preset--color--accent, #DD9F33);
	padding: 1.5rem 2rem;
	margin: 2.5rem -1rem;
	background: #F7F8FA;
	border-radius: 0 6px 6px 0;
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.125rem;
	font-style: italic;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	line-height: 1.7;
}

.letter-content .entry-content blockquote p {
	margin-bottom: 0;
	font-size: 1.125rem;
}

.letter-content .entry-content img { border-radius: 6px; margin: 2.5rem 0; }

.letter-content .entry-content a {
	color: var(--wp--preset--color--primary, #5D7992);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.letter-content .entry-content a:hover {
	color: var(--wp--preset--color--primary-mid, #4A5F72);
}

.letter-content .entry-content ul,
.letter-content .entry-content ol { margin-bottom: 1.75rem; }

.letter-content .entry-content li { margin-bottom: 0.5rem; line-height: 1.8; }

.letter-signature {
	max-width: 680px;
	margin: 0 auto;
	padding: 1rem 1.5rem 3rem;
}

.letter-signature__closing {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.25rem;
	font-style: italic;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	margin: 0 0 0.5rem;
}

.letter-signature__name {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	margin: 0 0 0.125rem;
}

.letter-signature__role {
	font-size: 0.875rem;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	margin: 0;
}

.letter-share {
	max-width: 680px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	border-top: 1px solid rgba(93, 121, 146, 0.15);
	text-align: center;
}

.letter-share__label {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--secondary-text, #6B7280);
	margin: 0 0 1rem;
}

.letter-share__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.letter-share__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #F7F8FA;
	color: var(--wp--preset--color--primary-dark, #2A2F42);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.letter-share__link:hover {
	background: var(--wp--preset--color--primary, #5D7992);
	color: #fff;
}

.letter-cta {
	background: var(--wp--preset--color--primary-dark, #2A2F42);
	color: #fff;
	text-align: center;
}

.letter-cta h2 { color: #fff; margin-bottom: 1rem; }

.letter-cta p {
	color: rgba(255, 255, 255, 0.85);
	max-width: 560px;
	margin: 0 auto 2.5rem;
}

.letter-cta__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.letter-archive { text-align: center; }

.letter-archive__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.letter-archive__link {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary, #5D7992);
	padding: 0.5rem 1.25rem;
	border: 1px solid rgba(93, 121, 146, 0.15);
	border-radius: 50px;
	transition: all 0.2s ease;
}

.letter-archive__link:hover {
	background: var(--wp--preset--color--primary, #5D7992);
	color: #fff;
	border-color: var(--wp--preset--color--primary, #5D7992);
}

.letter-archive__link.is-current {
	background: var(--wp--preset--color--primary, #5D7992);
	color: #fff;
	border-color: var(--wp--preset--color--primary, #5D7992);
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 900px) {
	.single-layout {
		grid-template-columns: 1fr;
		gap: 0;
		max-width: 720px;
	}

	/* Reorder: sidebar above content on mobile */
	.single-sidebar {
		position: static;
		order: -1;
		display: flex;
		align-items: center;
		gap: 1.5rem;
		padding-bottom: 1.5rem;
		margin-bottom: 1.5rem;
		border-bottom: 1px solid rgba(93, 121, 146, 0.15);
	}

	.single-sidebar__author {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		margin-bottom: 0;
		min-width: 0;
	}

	.single-sidebar__avatar {
		width: 40px;
		height: 40px;
		flex-shrink: 0;
		margin-bottom: 0;
		aspect-ratio: 1 / 1;
	}

	.single-sidebar__share {
		padding-top: 0;
		border-top: none;
		margin-left: auto;
	}

	.single-sidebar__share-label { display: none; }
}

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

	.blog-featured__body { padding: 1.5rem; }

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.single-header__title { font-size: 1.75rem; }

	.single-related__grid { grid-template-columns: 1fr; }

	.single-nav { flex-direction: column; }
	.single-nav__link--next { text-align: left; }

	.letter-hero__title { font-size: 2.25rem; }
	.letter-content .entry-content p:first-of-type::first-letter { font-size: 2.75rem; }
	.letter-content .entry-content blockquote { margin-left: 0; margin-right: 0; padding: 1.25rem 1.5rem; }
}

@media (max-width: 640px) {
	.blog-hero { padding: 2.5rem 1.25rem 0; }
	.blog-hero__title { font-size: 1.75rem; }
	.blog-featured__body { padding: 1.25rem; }
	.blog-card__title { font-size: 1.05rem; }

	.single-header__title { font-size: 1.5rem; }

	/* Align the content edges with the header's logo and hamburger on mobile.
	   The header's .container-wide lives outside .site-main, so it keeps the
	   default 1.5rem inset — match it here. */
	.single-back,
	.single-layout {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.single-layout { padding-top: 1.5rem; padding-bottom: 3rem; }

	.single-author { flex-direction: column; text-align: center; gap: 0.75rem; }

	.letter-hero { padding: 3.5rem 1.25rem 3rem; }
	.letter-hero__title { font-size: 1.875rem; }
	.letter-salutation { font-size: 1.125rem; padding-top: 3rem; }
	.letter-content { padding: 2rem 1.25rem 1.5rem; }
	.letter-cta__actions { flex-direction: column; }
	.letter-cta__actions .btn { width: 100%; max-width: 280px; }
	.letter-archive__links { flex-direction: column; gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	.blog-card, .blog-featured__card { transition: none; }
	.blog-card:hover { transform: none; }
	.blog-featured__image-wrap img,
	.blog-card__image-link img { transition: none; }
}
