/*
 * Article layout v2 (2026-12-01).
 * Applies only to posts with the post meta bg_article_v2 = 1 (single.php adds
 * the .bg-article class to .blog_detail), plus the byline v2 row (.bg-meta-v2).
 * One vertical rhythm: 20px between paragraphs and lists, 56px above each H2,
 * 32px above each H3, 40px around figures. Replaces the theme's "p + p"
 * padding, which spaced paragraphs differently after headings than after
 * other paragraphs.
 */

/* Byline v2: published · updated · author, wrapping cleanly on small screens */
.blog_banner .metabox.bg-meta-v2 {
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	row-gap: 6px;
	text-align: center;
}
.blog_banner .metabox.bg-meta-v2 > div {
	flex: 0 1 auto;
	width: auto;
	max-width: 100%;
}
.blog_banner .metabox.bg-meta-v2 time {
	white-space: nowrap;
}
.blog_banner .metabox.bg-meta-v2 .authbox a {
	color: inherit;
	text-decoration: none;
}
.blog_banner .metabox.bg-meta-v2 .authbox a:hover strong {
	color: #3D499F;
}
.blog_banner .metabox.bg-meta-v2 .authbox a[rel="noopener"] {
	color: #3D499F;
	text-decoration: underline;
}

/* Body text */
.bg-article .text_blog {
	max-width: 860px;
}
.bg-article .text_blog p,
.bg-article .text_blog p + p {
	margin: 0 0 20px;
	padding: 0;
	font-size: 19px;
	line-height: 1.6;
}
.bg-article .text_blog a {
	color: #3D499F;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bg-article .text_blog strong {
	font-family: 'Gilroy-SemiBold';
}

/* Headings */
.bg-article .text_blog h2 {
	font-family: 'Gilroy-Bold';
	font-size: 32px;
	line-height: 1.25;
	color: #222961;
	margin: 56px 0 18px;
	padding: 0;
}
.bg-article .text_blog h3 {
	font-family: 'Gilroy-Bold';
	font-size: 22px;
	line-height: 1.35;
	color: #1C1A1A;
	margin: 32px 0 10px;
	padding: 0;
}
.bg-article .text_blog h2 + h3,
.bg-article .text_blog h2 + .bg-fig + h3 {
	margin-top: 20px;
}

/* Lists */
.bg-article .text_blog ul,
.bg-article .text_blog ol {
	margin: 0 0 20px;
	padding-left: 1.6em;
}
.bg-article .text_blog li {
	font-size: 19px;
	line-height: 1.6;
	margin: 0 0 10px;
	padding: 0;
	color: #1C1A1A;
	font-family: 'Gilroy-Regular';
}
.bg-article .text_blog li:last-child {
	margin-bottom: 0;
}

/* Key takeaways box */
.bg-article .bg-takeaways {
	background: #E3FBF6;
	border-left: 5px solid #01DEBD;
	border-radius: 0 14px 14px 0;
	padding: 26px 30px 26px 30px;
	margin: 36px 0 8px;
}
.bg-article .bg-takeaways h2 {
	font-size: 24px;
	margin: 0 0 14px;
}
.bg-article .bg-takeaways ul {
	margin: 0;
}

/* Figures */
.bg-article .text_blog .bg-fig {
	margin: 36px 0 40px;
}
.bg-article .text_blog .bg-fig img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #E3E4EF;
	border-radius: 14px;
}
.bg-article .text_blog .bg-fig figcaption {
	font-family: 'Gilroy-Medium';
	font-size: 15px;
	line-height: 1.5;
	color: #5A5F86;
	margin: 12px 0 0;
	padding: 0 4px;
}

/* Quotes that do have content keep the theme style; spacing evened out */
.bg-article .text_blog blockquote,
.bg-article .text_blog p + blockquote {
	margin: 36px 0;
}

/* Header image */
.bg-article .imagebox {
	margin-bottom: 24px;
}

@media (max-width: 767px) {
	.bg-article .text_blog p,
	.bg-article .text_blog p + p,
	.bg-article .text_blog li {
		font-size: 17px;
	}
	.bg-article .text_blog h2 {
		font-size: 26px;
		margin-top: 44px;
	}
	.bg-article .text_blog h3 {
		font-size: 20px;
		margin-top: 26px;
	}
	.bg-article .bg-takeaways {
		padding: 20px 18px;
	}
	.bg-article .text_blog .bg-fig {
		margin: 28px 0 32px;
	}
}

/* Header image: show the whole illustration instead of a cropped background */
.bg-article .imagebox .imgbox {
	height: auto !important;
	background: none !important;
}
.bg-article .imagebox .imgbox img {
	display: block !important;
	width: 100%;
	height: auto;
	border-radius: 14px;
}
/* Figures open full size when tapped */
.bg-article .text_blog .bg-fig a {
	display: block;
	text-decoration: none;
}

@media (max-width: 767px) {
	/* Byline: one item per line, no dangling separators */
	.blog_banner .metabox.bg-meta-v2 > span {
		display: none;
	}
	.blog_banner .metabox.bg-meta-v2 > div {
		flex-basis: 100%;
	}
}

/* Tables (comparison and checklist tables), scrollable sideways on phones */
.bg-article .text_blog .bg-table-wrap {
	overflow-x: auto;
	margin: 28px 0 32px;
	border: 1px solid #E3E4EF;
	border-radius: 14px;
}
.bg-article .text_blog table.bg-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-family: 'Gilroy-Regular';
	font-size: 16px;
	line-height: 1.45;
	color: #1C1A1A;
}
.bg-article .text_blog table.bg-table th {
	font-family: 'Gilroy-Bold';
	text-align: left;
	background: #222961;
	color: #FFFFFF;
	padding: 14px 16px;
	vertical-align: bottom;
}
.bg-article .text_blog table.bg-table td {
	padding: 13px 16px;
	border-top: 1px solid #E3E4EF;
	vertical-align: top;
}
.bg-article .text_blog table.bg-table tbody tr:nth-child(even) td {
	background: #F6F7FC;
}
.bg-article .text_blog table.bg-table td:first-child {
	font-family: 'Gilroy-SemiBold';
}
.bg-article .text_blog table.bg-table tr.bg-row-hl td {
	background: #E3FBF6;
}
.bg-article .text_blog .bg-note {
	font-size: 15px;
	color: #5A5F86;
}
