/* Scoped to the native blog templates; calculator presentation is unchanged. */
.bck-blog { overflow-wrap: anywhere; }
.bck-blog .bc-page-header h1 { max-width: 24ch; }
.bck-blog-meta { color: var(--bc-muted); font-size: .94rem; }
.bck-blog-meta a { color: var(--bc-link); }
.bck-blog-preview { padding: .8rem 1rem; border-inline-start: 3px solid var(--bc-accent); background: var(--bc-soft); }
.bck-blog .bc-entry-content { font-size: 1.02rem; line-height: 1.72; }
.bck-blog .bc-entry-content h2 { margin: 2.5rem 0 .8rem; font-size: clamp(1.5rem,3vw,1.95rem); line-height: 1.25; letter-spacing: -.025em; }
.bck-blog .bc-entry-content :is(p,ul,ol) { margin: 0 0 1.2rem; }
.bck-blog .bc-entry-content :is(ul,ol) { padding-inline-start: 1.45rem; }
.bck-blog .bc-entry-content li + li { margin-top: .45rem; }
.bck-blog .bc-entry-content a { color: var(--bc-link); text-underline-offset: .15em; }
.bck-blog a:focus-visible { outline: 3px solid var(--bc-focus); outline-offset: 3px; }
.bck-blog-formula { padding: 1rem 1.1rem; margin: 1.5rem 0; border-inline-start: 3px solid var(--bc-accent); background: var(--bc-soft); font-variant-numeric: tabular-nums; }
.bck-blog .bck-blog-formula p { margin: 0; }
.bck-blog .bck-blog-formula p + p { margin-top: .5rem; }
.bck-blog-measurements { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; line-height: 1.5; table-layout: fixed; }
.bck-blog-measurements caption { text-align: left; padding-bottom: .7rem; font-weight: 700; }
.bck-blog-measurements :is(th,td) { text-align: left; padding: .75rem; border: 1px solid var(--bc-line); vertical-align: top; }
.bck-blog-measurements thead { background: var(--bc-soft); }
.bck-blog-measurements th:first-child { width: 39%; }
.bck-blog-measurements tbody th { font-weight: 600; }
@media (max-width: 480px) {
	.bck-blog-measurements { font-size: .86rem; }
	.bck-blog-measurements :is(th,td) { padding: .55rem .4rem; }
	.bck-blog-measurements th:first-child { width: 34%; }
}

/* Real photographs, native attachment srcset, no duplicate featured image in single.php. */
.bck-blog .bc-entry-content .bck-blog-photo { max-width: 100%; margin: 1.8rem 0 2.2rem; }
.bck-blog .bc-entry-content .bck-blog-photo img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: .25rem; }
.bck-blog .bc-entry-content .bck-blog-photo--curb { max-width: 600px; }
.bck-blog .bc-entry-content .bck-blog-photo figcaption { margin-top: .7rem; color: var(--bc-muted); font-size: .9rem; line-height: 1.55; }
/* Compact editorial row: photograph left, title and excerpt right. */
.bck-blog .bck-blog-card--has-image { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.bck-blog-card__body { min-width: 0; }
.bck-blog-card__image { margin: 0; }
.bck-blog-card__image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .25rem; }
.bck-blog .bck-blog-card__body h2 { line-height: 1.3; }
.bck-blog .bck-blog-card__body p { line-height: 1.55; }
@media (max-width: 680px) {
 .bck-blog .bck-blog-card--has-image { grid-template-columns: 160px minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 480px) {
 .bck-blog .bck-blog-card { padding: 1rem; }
 .bck-blog .bck-blog-card--has-image { grid-template-columns: 96px minmax(0, 1fr); gap: .75rem; }
 .bck-blog .bck-blog-card__body h2 { font-size: 1.0625rem; }
 .bck-blog .bck-blog-card__body p { font-size: .9375rem; }
}
@media (max-width: 360px) {
 .bck-blog .bck-blog-card--has-image { grid-template-columns: 80px minmax(0, 1fr); }
}

/* Photo layout for the wallpaper buying guide. */
.postid-415 .bc-entry-content .bck-wallpaper-cover {
	margin: 1.8rem 0 2.2rem;
}

.postid-415 .bc-entry-content .bck-wallpaper-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: .25rem;
}

.postid-415 .bc-entry-content .bck-wallpaper-float.alignright {
	display: block;
	float: none;
	width: 100%;
	margin: 1.3rem 0 1.2rem;
}

.postid-415 .bc-entry-content .bck-wallpaper-float.alignright figcaption {
	display: block;
	text-align: start;
}

@media (min-width: 700px) {
	.postid-415 .bc-entry-content .bck-wallpaper-cover img {
		aspect-ratio: 16 / 9;
		object-fit: cover;
		object-position: center bottom;
	}

	.postid-415 .bc-entry-content .bck-wallpaper-float.alignright {
		float: right;
		width: 37%;
		margin: .2rem 0 .5rem 20px;
	}

	.postid-415 .bc-entry-content .bck-wallpaper-float.alignright figcaption {
		margin-bottom: 0;
	}

	.postid-415 .bc-entry-content h2 {
		clear: both;
	}
}
