/* Bottles for Earth — blog post page.
   Centred header (back link, category chips, share, date and reading time, big title, subtitle, wide hero),
   a narrow reading column with a "written by" chip on the left and a sticky shop card on the right, then
   "Keep reading". Only on single posts (body.bfe-blog). Type and colours follow the shop: Montserrat, ink #1d1d1b,
   brand green #2bb573, action green #17824f. */

/* The theme's own title banner, byline, share icons and side arrows give way to ours. */
body.bfe-blog #mk-page-introduce,
body.bfe-blog .blog-single-meta,
body.bfe-blog .single-social-section,
body.bfe-blog .mk-post-nav {
	display: none !important;
}

body.bfe-blog .bfe-post__head,
body.bfe-blog .bfe-post__grid,
body.bfe-blog .bfe-more {
	--bfe-ink: #1d1d1b;
	--bfe-muted: #6f6f6f;
	--bfe-line: #ececea;
	--bfe-brand: #2bb573;
	--bfe-action: #17824f;
	--bfe-glass: hsla(0, 0%, 92%, 0.5); /* same tint as the theme's sticky header and the shop filter */
	--bfe-glass-solid: #f1f1f1;
	--bfe-edge: rgba(255, 255, 255, 0.7);
	font-family: "Montserrat", "Inter", sans-serif;
	color: var(--bfe-ink);
	box-sizing: border-box;
}

body.bfe-blog .bfe-post__head *,
body.bfe-blog .bfe-post__grid *,
body.bfe-blog .bfe-more * {
	box-sizing: border-box;
}

/* ---- Header ---- */
body.bfe-blog .bfe-post__head {
	padding: 28px 0 0;
	text-align: center;
}

body.bfe-blog .bfe-post__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin: 0 0 44px;
}

body.bfe-blog .bfe-post__back,
body.bfe-blog .bfe-post__share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--bfe-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

body.bfe-blog .bfe-post__back {
	justify-self: start;
}

/* Share: a glass pill, like the shop's Filter pill. */
body.bfe-blog .bfe-post__share {
	justify-self: end;
	padding: 10px 16px;
	border: 1px solid var(--bfe-edge);
	border-radius: 999px;
	background: var(--bfe-glass);
	-webkit-backdrop-filter: saturate(100%) blur(5px);
	backdrop-filter: saturate(100%) blur(5px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

body.bfe-blog .bfe-post__back:hover,
body.bfe-blog .bfe-post__share:hover {
	color: var(--bfe-action);
}

body.bfe-blog .bfe-post__chips {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

body.bfe-blog .bfe-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #e6f6ee;
	color: #0f6b3f;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

body.bfe-blog .bfe-chip + .bfe-chip {
	background: #efefec;
	color: var(--bfe-ink);
}

body.bfe-blog .bfe-post__meta {
	margin: 0 0 18px;
	color: var(--bfe-muted);
	font-size: 13px;
	line-height: 1.4;
}

body.bfe-blog .bfe-post__meta span[aria-hidden] {
	margin: 0 6px;
}

body.bfe-blog .bfe-post__title {
	max-width: 840px;
	margin: 0 auto 16px;
	padding: 0;
	color: var(--bfe-ink);
	font-family: inherit;
	font-size: clamp(30px, 4.4vw, 48px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-align: center;
	text-transform: none;
}

body.bfe-blog .bfe-post__dek {
	max-width: 640px;
	margin: 0 auto;
	color: #555;
	font-size: 18px;
	line-height: 1.5;
}

body.bfe-blog .bfe-post__hero {
	margin: 40px 0 0;
	overflow: hidden;
	border-radius: 12px;
	background: #f2f2f2;
	aspect-ratio: 16 / 9;
}

body.bfe-blog .bfe-post__hero img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

/* Square or portrait hero photos: still fill the frame (cover), in a slightly taller 3:2 frame so less is cropped. */
body.bfe-blog .bfe-post__hero--tile {
	aspect-ratio: 3 / 2;
}

body.bfe-blog .bfe-post__hero--tile img {
	object-fit: cover;
	object-position: center 35%;
}

/* ---- Columns: written by | reading column | shop card ---- */
body.bfe-blog .bfe-post__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 640px minmax(0, 1fr);
	column-gap: 32px;
	align-items: start;
	margin-top: 56px;
}

body.bfe-blog .bfe-post__toc {
	grid-column: 1;
	position: sticky;
	top: var(--bfe-blog-top, 160px); /* JS sets this from the theme's floating header: its bottom edge + a clear gap */
	justify-self: start;
	width: 100%;
	max-width: 230px;
}

body.bfe-blog .bfe-post__body {
	grid-column: 2;
	min-width: 0;
}

body.bfe-blog .bfe-post__cta {
	grid-column: 3;
	position: sticky;
	top: var(--bfe-blog-top, 160px);
	justify-self: end;
	width: 100%;
	max-width: 240px;
}

/* ---- Table of contents: floating glass, like the shop filter ---- */
body.bfe-blog .bfe-post__toc[hidden] {
	display: none;
}

body.bfe-blog .bfe-toc {
	max-height: calc(100vh - var(--bfe-blog-top, 160px) - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	padding: 20px 18px;
	border: 1px solid var(--bfe-edge);
	border-radius: 28px;
	background: var(--bfe-glass);
	-webkit-backdrop-filter: saturate(100%) blur(5px);
	backdrop-filter: saturate(100%) blur(5px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.bfe-blog .bfe-toc::-webkit-scrollbar {
	display: none;
}

body.bfe-blog .bfe-toc__title {
	display: block;
	margin: 0 0 12px;
	color: var(--bfe-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.2;
	list-style: none;
	text-transform: uppercase;
	cursor: default;
}

body.bfe-blog .bfe-toc__title::-webkit-details-marker {
	display: none;
}

body.bfe-blog .bfe-toc__list,
body.bfe-blog .bfe-toc__list ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.bfe-blog .bfe-toc__list li {
	margin: 0;
	padding: 0;
}

body.bfe-blog .bfe-toc__list ol {
	margin: 2px 0 6px 12px;
}

body.bfe-blog .bfe-toc__list a {
	display: block;
	padding: 6px 0 6px 12px;
	border-left: 2px solid transparent;
	color: var(--bfe-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
	body.bfe-blog .bfe-toc__list a:hover {
		color: var(--bfe-ink);
	}
}

body.bfe-blog .bfe-toc__list a.is-active {
	border-left-color: var(--bfe-brand);
	color: var(--bfe-ink);
	font-weight: 600;
}

/* Jump targets stop below the sticky header. */
body.bfe-blog .bfe-post__body :is(h2, h3, h4)[id] {
	scroll-margin-top: calc(var(--bfe-blog-top, 160px) - 12px);
}

/* ---- Reading column ---- */
body.bfe-blog .bfe-post__body {
	color: #1b1a1a;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
}

body.bfe-blog .bfe-post__body p {
	margin: 0 0 1.25em;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Heading scale for the article text (body 17px, steps of about 1.25): H2 32, H3 25, H4 20, then two small caps
   labels, H5 15 and H6 13. The title above the article (H1) is 48. Phones step each level down a little. */
body.bfe-blog .bfe-post__body h2,
body.bfe-blog .bfe-post__body h3,
body.bfe-blog .bfe-post__body h4,
body.bfe-blog .bfe-post__body h5,
body.bfe-blog .bfe-post__body h6 {
	margin: 1.8em 0 0.55em;
	padding: 0;
	color: var(--bfe-ink);
	font-family: inherit;
	font-weight: 600;
	text-transform: none;
}

body.bfe-blog .bfe-post__body h2 {
	font-size: 32px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.bfe-blog .bfe-post__body h3 {
	margin-top: 1.6em;
	font-size: 25px;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

body.bfe-blog .bfe-post__body h4 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 20px;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

body.bfe-blog .bfe-post__body h5,
body.bfe-blog .bfe-post__body h6 {
	margin-top: 1.6em;
	margin-bottom: 0.4em;
	text-transform: uppercase;
	line-height: 1.4;
}

body.bfe-blog .bfe-post__body h5 {
	font-size: 15px;
	letter-spacing: 0.08em;
}

body.bfe-blog .bfe-post__body h6 {
	color: var(--bfe-muted);
	font-size: 13px;
	letter-spacing: 0.1em;
}

/* A heading straight after another, or first in the column, needs less air above it. */
body.bfe-blog .bfe-post__body :is(h2, h3, h4, h5, h6) + :is(h3, h4, h5, h6) {
	margin-top: 0.8em;
}

body.bfe-blog .bfe-post__body > :first-child:is(h2, h3, h4, h5, h6),
body.bfe-blog .bfe-post__body .wpb_wrapper > :first-child:is(h2, h3, h4, h5, h6) {
	margin-top: 0;
}

body.bfe-blog .bfe-post__body ul,
body.bfe-blog .bfe-post__body ol {
	margin: 0 0 1.25em;
	padding-left: 1.3em;
}

body.bfe-blog .bfe-post__body li {
	margin: 0 0 0.4em;
}

body.bfe-blog .bfe-post__body a {
	color: var(--bfe-action);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Quotes: a soft brand-green panel with a green edge, in the article's own type (the theme's grey box, quote icon
   and Inter text are replaced). */
body.bfe-blog .bfe-post__body blockquote {
	position: relative;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	margin: 2em 0;
	padding: 22px 26px;
	border: 0;
	border-left: 3px solid var(--bfe-brand);
	border-radius: 0 12px 12px 0;
	background: #f3faf6;
	color: var(--bfe-ink);
	font-family: inherit;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1.6;
	quotes: none;
}

body.bfe-blog .bfe-post__body blockquote::before,
body.bfe-blog .bfe-post__body blockquote::after {
	content: none !important;
	display: none !important;
}

body.bfe-blog .bfe-post__body blockquote p {
	margin: 0 0 0.8em;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	line-height: inherit;
}

body.bfe-blog .bfe-post__body blockquote > :last-child {
	margin-bottom: 0;
}

body.bfe-blog .bfe-post__body blockquote cite,
body.bfe-blog .bfe-post__body blockquote footer {
	display: block;
	margin-top: 12px;
	color: var(--bfe-muted);
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.02em;
}

body.bfe-blog .bfe-post__body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* WPBakery rows are built for the full page width; inside the reading column they sit flush. */
body.bfe-blog .bfe-post__body .vc_row,
body.bfe-blog .bfe-post__body .wpb_row {
	left: 0 !important;
	width: auto !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.bfe-blog .bfe-post__body .vc_column_container > .vc_column-inner {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.bfe-blog .bfe-post__body .wpb_content_element {
	margin-bottom: 1.25em;
}

/* ---- Shop card: the same floating glass as the shop filter ---- */
body.bfe-blog .bfe-cta {
	padding: 24px 20px 22px;
	border: 1px solid var(--bfe-edge);
	border-radius: 28px;
	background: var(--bfe-glass);
	-webkit-backdrop-filter: saturate(100%) blur(5px);
	backdrop-filter: saturate(100%) blur(5px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
	color: var(--bfe-ink);
	text-align: center;
}

/* The brand logo, centred above the line. */
body.bfe-blog .bfe-cta__logo {
	display: block;
	width: 56px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

body.bfe-blog .bfe-cta__title {
	margin: 14px 0 18px;
	color: var(--bfe-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

body.bfe-blog .bfe-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--bfe-action);
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.25s ease;
}

body.bfe-blog .bfe-cta__btn:hover {
	background: #0f6b3f;
}

@supports not ((backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px))) {
	body.bfe-blog .bfe-cta,
	body.bfe-blog .bfe-post__share,
	body.bfe-blog .bfe-toc {
		background: var(--bfe-glass-solid);
	}
}

/* ---- Keep reading ---- */
body.bfe-blog .bfe-more {
	margin: 96px 0 40px;
	padding-top: 48px;
	border-top: 1px solid var(--bfe-line);
}

body.bfe-blog .bfe-more__title {
	margin: 0 0 28px;
	color: var(--bfe-ink);
	font-family: inherit;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-transform: none;
}

body.bfe-blog .bfe-more__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

body.bfe-blog .bfe-more__card {
	display: block;
	color: var(--bfe-ink);
	text-decoration: none;
}

body.bfe-blog .bfe-more__media {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #f2f2f2;
	aspect-ratio: 4 / 3;
}

body.bfe-blog .bfe-more__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
	body.bfe-blog .bfe-more__card:hover .bfe-more__media img {
		transform: scale(1.05);
	}
}

body.bfe-blog .bfe-more__meta {
	display: block;
	margin: 14px 0 6px;
	color: var(--bfe-muted);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.bfe-blog .bfe-more__name {
	display: block;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

/* ---- Narrower screens: one column, shop card after the text ---- */
@media (max-width: 1100px) {
	body.bfe-blog .bfe-post__grid {
		grid-template-columns: minmax(0, 640px);
		justify-content: center;
		row-gap: 28px;
	}

	body.bfe-blog .bfe-post__toc,
	body.bfe-blog .bfe-post__body,
	body.bfe-blog .bfe-post__cta {
		grid-column: 1;
	}

	/* Under 1100px the contents become a collapsed glass pill above the text. */
	body.bfe-blog .bfe-post__toc {
		position: static;
		max-width: none;
	}

	body.bfe-blog .bfe-toc {
		max-height: none;
		padding: 0;
		border-radius: 24px;
	}

	body.bfe-blog .bfe-toc__title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 16px 20px;
		color: var(--bfe-ink);
		font-size: 12px;
		cursor: pointer;
	}

	body.bfe-blog .bfe-toc__title::after {
		content: "";
		width: 7px;
		height: 7px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
		transition: transform 0.2s;
	}

	body.bfe-blog .bfe-toc[open] .bfe-toc__title::after {
		transform: rotate(-135deg);
	}

	body.bfe-blog .bfe-toc__list {
		padding: 0 20px 16px;
	}

	body.bfe-blog .bfe-post__cta {
		position: static;
		justify-self: stretch;
		max-width: none;
	}
}

@media (max-width: 767px) {
	body.bfe-blog .bfe-post__head {
		padding-top: 12px;
	}

	body.bfe-blog .bfe-post__bar {
		grid-template-columns: 1fr auto;
		margin-bottom: 28px;
	}

	body.bfe-blog .bfe-post__chips {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: flex-start;
	}

	body.bfe-blog .bfe-post__meta {
		margin-top: 4px;
	}

	body.bfe-blog .bfe-post__dek {
		font-size: 16px;
	}

	body.bfe-blog .bfe-post__hero {
		margin-top: 28px;
		border-radius: 8px;
		aspect-ratio: 4 / 3;
	}

	body.bfe-blog .bfe-post__grid {
		margin-top: 32px;
	}

	body.bfe-blog .bfe-post__body {
		font-size: 16px;
	}

	body.bfe-blog .bfe-post__body h2 {
		font-size: 26px;
	}

	body.bfe-blog .bfe-post__body h3 {
		font-size: 21px;
	}

	body.bfe-blog .bfe-post__body h4 {
		font-size: 18px;
	}

	body.bfe-blog .bfe-post__body blockquote {
		padding: 18px 20px;
		font-size: 16px;
	}

	body.bfe-blog .bfe-post__body h3 {
		font-size: 20px;
	}

	body.bfe-blog .bfe-more {
		margin-top: 64px;
	}

	body.bfe-blog .bfe-more__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.bfe-blog .bfe-more__media img,
	body.bfe-blog .bfe-cta__btn {
		transition: none;
	}

	body.bfe-blog .bfe-more__card:hover .bfe-more__media img {
		transform: none;
	}
}
