/* Single post template — Figma 1009:12470 (desktop) / 1009:13850 (mobile).
   Title (1009:12477), eyebrow (1009:12473), content typography (1009:12482).
   Whole post (eyebrow + title + featured image + content) lives inside a
   single 870px-max inner container. */

.rw-single-post__article {
	background: var(--rw-color-bg-gray);
}

.rw-single-post__article.rw-section {
	padding-bottom: 0;
}

.rw-single-post__inner {
	max-width: 54.375rem; /* 870px */
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: var(--rw-space-2xl);
}

/* ===== Header (eyebrow + title) — Figma 1009:12473 + 1009:12477 ===== */
.rw-single-post__header {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.rw-single-post__eyebrow {
	align-self: flex-start;
}

/* Meta group (date + title + author) — Figma 1159:14419, 24px column gap */
.rw-single-post__meta-group {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
}

/* Date with calendar icon — Figma 1159:14420 */
.rw-single-post__date {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-family: var(--rw-font-text);
	font-weight: 600;
	font-size: 1rem;
	line-height: 0.875rem;
	color: var(--rw-color-grey-01, #646971);
}
.rw-single-post__date-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: var(--rw-color-grey-01, #646971);
}
.rw-single-post__date-icon svg { display: block; }

/* Author row — Figma 1159:14426 */
.rw-single-post__author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.rw-single-post__author-avatar {
	display: inline-flex;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--rw-color-bg-mist, #f4f4f4);
}
.rw-single-post__author-image,
.rw-single-post__author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}
.rw-single-post__author-text {
	display: inline-flex;
	flex-direction: column;
	font-family: var(--rw-font-text);
	font-size: 1rem;
	line-height: 1.25rem;
	letter-spacing: -0.016em;
}
.rw-single-post__author-name {
	font-weight: 700;
	color: var(--rw-color-primary-green);
}
.rw-single-post__author-role {
	font-weight: 400;
	color: #6d6d6d;
}

.rw-single-post__title {
	/* Figma 1009:12477 — 44px/50px, weight 700, #093B4D, tracking -1.76px (-0.04em) */
	font-family: var(--rw-font-text);
	font-weight: 700;
	font-size: var(--rw-h3-size);
	line-height: var(--rw-h3-line);
	letter-spacing: var(--rw-h3-tracking);
	color: var(--rw-color-primary-green);
	margin: 0;
}

/* ===== Featured image — Figma 1009:12478 ===== */
.rw-single-post__featured-frame {
	margin: 0;
	overflow: hidden;
	border-radius: var(--rw-radius-lg);
	background: var(--rw-color-bg-mist);
	aspect-ratio: 16 / 9;
}

.rw-single-post__featured-image,
.rw-single-post__featured-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ===== Content — Gutenberg core blocks rendered by the_content() ===== */
.post-content {
	font-family: var(--rw-font-text);
	color: var(--rw-color-primary-green);
}

/* Headings — Figma 1009:12482 — H2 24px/24px, weight 700, #093B4D, -0.012em tracking.
   H3 follows same scale (slightly smaller). */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
	font-family: var(--rw-font-text);
	font-weight: 700;
	color: var(--rw-color-primary-green);
	letter-spacing: -0.012em;
	margin: var(--rw-space-xl) 0 var(--rw-space-md);
}
.post-content h1 { font-size: 1.75rem;  line-height: 1.15; }
.post-content h2 { font-size: 1.5rem;   line-height: 1; }
.post-content h3 { font-size: 1.25rem;  line-height: 1.2; }
.post-content h4 { font-size: 1.125rem; line-height: 1.3; }
.post-content h5 { font-size: 1rem;     line-height: 1.4; }
.post-content h6 { font-size: 0.9375rem; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.04em; }

.post-content > *:first-child {
	margin-top: 0;
}

/* Body copy */
.post-content p {
	font-size: var(--rw-p1-size);
	line-height: var(--rw-p1-line);
	letter-spacing: var(--rw-p1-tracking);
	margin: 0 0 var(--rw-space-md);
}

/* Links */
.post-content a {
	color: var(--rw-color-primary-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.post-content a:hover {
	color: var(--rw-color-primary-green);
}

/* Lists */
.post-content ul,
.post-content ol {
	font-size: var(--rw-p1-size);
	line-height: var(--rw-p1-line);
	letter-spacing: var(--rw-p1-tracking);
	margin: 0 0 var(--rw-space-md);
	padding-left: 1.5rem;
}
.post-content li + li {
	margin-top: var(--rw-space-xs);
}
.post-content li > ul,
.post-content li > ol {
	margin: var(--rw-space-xs) 0 0;
}

/* Blockquote */
.post-content blockquote,
.post-content .wp-block-quote {
	margin: var(--rw-space-xl) 0;
	padding: var(--rw-space-md) var(--rw-space-lg);
	border-left: 3px solid var(--rw-color-primary-yellow);
	font-style: italic;
	color: var(--rw-color-primary-green);
	background: transparent;
}
.post-content blockquote p,
.post-content .wp-block-quote p {
	font-size: 1.125rem;
	line-height: 1.5;
}
.post-content blockquote cite,
.post-content .wp-block-quote cite {
	display: block;
	margin-top: var(--rw-space-sm);
	font-style: normal;
	font-size: var(--rw-p2-size);
	color: var(--rw-color-grey-01);
}

/* Images / figures */
.post-content img,
.post-content .wp-block-image img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--rw-radius-lg);
}
.post-content figure,
.post-content .wp-block-image {
	margin: var(--rw-space-xl) 0;
}
.post-content figcaption,
.post-content .wp-block-image figcaption {
	margin-top: var(--rw-space-sm);
	font-size: var(--rw-p2-size);
	line-height: var(--rw-p2-line);
	color: var(--rw-color-grey-01);
	text-align: center;
}

/* Embeds */
.post-content iframe,
.post-content .wp-block-embed iframe {
	max-width: 100%;
}
.post-content .wp-block-embed {
	margin: var(--rw-space-xl) 0;
}

/* Code */
.post-content code {
	font-family: var(--rw-font-mono);
	font-size: 0.9375em;
	padding: 0.1em 0.35em;
	background: var(--rw-color-bg-mist);
	border-radius: var(--rw-radius-sm);
}
.post-content pre,
.post-content .wp-block-code {
	font-family: var(--rw-font-mono);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: var(--rw-space-xl) 0;
	padding: var(--rw-space-md) var(--rw-space-lg);
	background: var(--rw-color-bg-mist);
	border-radius: var(--rw-radius-lg);
	overflow-x: auto;
}
.post-content pre code,
.post-content .wp-block-code code {
	padding: 0;
	background: transparent;
	border-radius: 0;
}

/* Separator */
.post-content hr,
.post-content .wp-block-separator {
	border: 0;
	height: 1px;
	background: var(--rw-color-border);
	margin: var(--rw-space-2xl) 0;
}

/* Alignment helpers (core block alignments) */
.post-content .alignleft  { float: left;  margin: 0 var(--rw-space-md) var(--rw-space-md) 0; }
.post-content .alignright { float: right; margin: 0 0 var(--rw-space-md) var(--rw-space-md); }
.post-content .aligncenter { margin-left: auto; margin-right: auto; }

/* ===== Embedded blocks inside single content =====
   Benefits Grid: fill the 870px content column edge-to-edge (no side padding)
   and force a 2-col desktop grid since 3+ cols are too tight at this width. */
.post-content .rw-block-benefits-grid.rw-section {
	padding-inline: 0;
	width: 100%;
}
.post-content .rw-block-benefits-grid .rw-container {
	max-width: none;
	padding-inline: 0;
}
@media (min-width: 1024px) {
	.post-content .rw-block-benefits-grid .benefits,
	.post-content .rw-block-benefits-grid[data-layout="4-3"] .benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.post-content .rw-block-benefits-grid[data-layout="4-3"] .benefit:nth-child(-n+4),
	.post-content .rw-block-benefits-grid[data-layout="4-3"] .benefit:nth-child(n+5) {
		grid-column: span 1;
	}
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
	.rw-single-post__inner {
		gap: var(--rw-space-xl);
	}
	.rw-single-post__featured-frame {
		aspect-ratio: 4 / 3;
	}
	.post-content h1,
	.post-content h2,
	.post-content h3,
	.post-content h4,
	.post-content h5,
	.post-content h6 {
		margin-top: var(--rw-space-lg);
	}
}
