/*
Theme Name: Biosfera Blog
Theme URI: https://biosfera-club.ru/articles/
Author: Biosfera Club
Description: Самостоятельная тема блога /articles/. Не дочерняя к twentytwentyone: родитель отдаёт свой CSS, переключатель тёмной темы и скрипты навигации, которые конфликтуют с шапкой клуба и добавляют вес. Цвета, шрифт PT Sans Caption, шапка и подвал повторяют тему biosfera основного сайта. Ссылки разделов клуба абсолютные.
Version: 1.1.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: biosfera-blog
*/

/* PT Sans Caption — те же файлы, что в теме клуба. SIL Open Font License. */
@font-face {
	font-family: "PT Sans Caption";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/pt-sans-caption/pt-sans-caption-regular.woff2") format("woff2");
}
@font-face {
	font-family: "PT Sans Caption";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/pt-sans-caption/pt-sans-caption-700.woff2") format("woff2");
}

:root {
	--bf-ink: #2a2520;
	--bf-muted: #6d675f;
	--bf-gold: #958058;
	--bf-gold-hover: #a59067;
	--bf-gold-deep: #7a6844;
	--bf-cream: #faf7f2;
	--bf-line: rgba(42, 37, 32, 0.1);
	--bf-bg: #f6f3ee;
	--bf-header-h: 72px;
	--bf-measure: 72ch;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bf-bg);
	color: var(--bf-ink);
	font: 400 17px/1.65 "PT Sans Caption", Arial, sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--bf-gold-deep); }
a:hover { color: var(--bf-gold); }

button,
input { font-family: inherit; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bf-skip {
	position: absolute;
	left: 12px;
	top: -40px;
	z-index: 10000;
	background: #fff;
	color: var(--bf-ink);
	padding: 8px 12px;
	border-radius: 8px;
}
.bf-skip:focus { top: 8px; }

/* ===== Header (тема клуба) ===== */
.bf-site-header {
	position: sticky;
	top: 0;
	z-index: 5000;
	background: #fff;
	border-bottom: 1px solid var(--bf-line);
	font-family: "PT Sans Caption", Arial, sans-serif;
}
.bf-site-header__bar {
	position: relative;
	max-width: 1680px;
	margin: 0 auto;
	padding: 0 32px;
	min-height: var(--bf-header-h);
	display: flex;
	align-items: center;
	gap: 22px;
}
.bf-site-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	margin-right: 16px;
	text-decoration: none;
}
.bf-site-header__brand img {
	display: block;
	width: 140px;
	height: 40px;
	object-fit: contain;
}
.bf-site-nav { flex: 1 1 auto; min-width: 0; }
.bf-site-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bf-site-nav__item { position: relative; }
.bf-site-nav__item.is-mega { position: static; }
.bf-site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	color: #2f2f2f;
	font: 700 13.75px/1.25 "PT Sans Caption", Arial, sans-serif;
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	border-radius: 8px;
}
.bf-site-nav__link:hover,
.bf-site-nav__link:focus,
.bf-site-nav__link[aria-expanded="true"],
.bf-site-nav__item.is-active > .bf-site-nav__link {
	color: var(--bf-gold);
	background: var(--bf-cream);
	outline: 0;
}
.bf-site-nav__dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 260px;
	padding: 10px;
	border: 1px solid var(--bf-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 56px rgba(42, 37, 32, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	z-index: 20;
}
.bf-site-nav__item:hover > .bf-site-nav__dropdown,
.bf-site-nav__item:focus-within > .bf-site-nav__dropdown,
.bf-site-nav__dropdown.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.bf-site-nav__dropdown--mega {
	left: 20px;
	right: 20px;
	min-width: 0;
	padding: 18px 20px 20px;
}
.bf-site-nav__drop-head {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: var(--bf-cream);
	color: var(--bf-gold-deep);
	font: 700 12px/1.2 "PT Sans Caption", Arial, sans-serif;
	text-decoration: none;
}
.bf-site-nav__drop-list a,
.bf-mega__list a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: #333;
	font: 400 13px/1.35 "PT Sans Caption", Arial, sans-serif;
	text-decoration: none;
}
.bf-site-nav__drop-list a:hover,
.bf-mega__list a:hover { background: var(--bf-cream); color: var(--bf-gold); }
.bf-mega__grid { column-count: 4; column-gap: 26px; }
.bf-mega__col {
	break-inside: avoid;
	display: inline-block;
	width: 100%;
	padding: 2px 0 12px;
}
.bf-mega__title {
	display: block;
	padding: 6px 10px;
	margin-bottom: 4px;
	border-radius: 8px;
	color: var(--bf-ink);
	font: 700 14px/1.3 "PT Sans Caption", Arial, sans-serif;
	text-decoration: none;
}
a.bf-mega__title:hover { background: var(--bf-cream); color: var(--bf-gold); }
.bf-mega__title--plain {
	color: var(--bf-gold);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.bf-mega__list {
	list-style: none;
	margin: 0 0 0 10px;
	padding: 0 0 0 10px;
	border-left: 1px solid rgba(149, 128, 88, 0.28);
}
.bf-site-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
}
.bf-phone-block { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.bf-phone-block__num,
.bf-site-header__phone-mobile,
a.LINKS_PHONES {
	color: var(--bf-ink);
	font: 700 14px/1.2 "PT Sans Caption", Arial, sans-serif;
	text-decoration: none;
	white-space: nowrap;
}
.bf-phone-block__num { display: inline-flex; align-items: center; gap: 7px; }
.bf-phone-block__num:hover,
.bf-site-header__phone-mobile:hover,
a.LINKS_PHONES:hover { color: var(--bf-gold); }
.bf-phone-text { white-space: nowrap; }
.bf-phone-block__callback {
	margin: 0;
	padding: 0 0 0 21px;
	border: 0;
	background: transparent;
	color: var(--bf-gold);
	font: 400 12px/1.2 "PT Sans Caption", Arial, sans-serif;
	cursor: pointer;
	text-decoration: none;
}
.bf-personal {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bf-ink);
	text-decoration: none;
}
.bf-personal__text { display: flex; flex-direction: column; }
.bf-personal__name { font: 700 14px/1.15 "PT Sans Caption", Arial, sans-serif; }
.bf-personal__title { font: 400 12px/1.15 "PT Sans Caption", Arial, sans-serif; color: #888; }
.bf-site-header__phone-mobile { display: none; }
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 24px;
	padding: 10px 18px;
	border: 1px solid var(--bf-gold);
	background: var(--bf-gold);
	color: #fff;
	font: 700 14px/1.2 "PT Sans Caption", Arial, sans-serif;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.btn:hover { background: var(--bf-gold-hover); border-color: var(--bf-gold-hover); color: #fff; }
.btn.white {
	background: #fff;
	color: var(--bf-gold-deep);
	border-color: rgba(149, 128, 88, 0.35);
}
.btn.white:hover { background: var(--bf-gold-hover); color: #fff; border-color: var(--bf-gold-hover); }
.bf-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f5f2ed;
	cursor: pointer;
}
.bf-burger__lines,
.bf-burger__lines::before,
.bf-burger__lines::after {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--bf-ink);
	border-radius: 2px;
}
.bf-burger__lines { position: relative; }
.bf-burger__lines::before,
.bf-burger__lines::after { content: ""; position: absolute; left: 0; }
.bf-burger__lines::before { top: -6px; }
.bf-burger__lines::after { top: 6px; }
.bf-burger[aria-expanded="true"] .bf-burger__lines { background: transparent; }
.bf-burger[aria-expanded="true"] .bf-burger__lines::before { top: 0; transform: rotate(45deg); background: var(--bf-gold); }
.bf-burger[aria-expanded="true"] .bf-burger__lines::after { top: 0; transform: rotate(-45deg); background: var(--bf-gold); }

.bf-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 9997;
	background: rgba(42, 37, 32, 0.48);
	opacity: 0;
	visibility: hidden;
}
.bf-mobile-overlay.is-open { opacity: 1; visibility: visible; }
.bf-mobile-menu {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	width: min(400px, 92vw);
	padding: 14px 18px 28px;
	overflow-y: auto;
	background: #fff;
	transform: translateX(105%);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.bf-mobile-menu.is-open { transform: none; }
.bf-mobile-menu__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--bf-line);
}
.bf-mobile-menu__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f5f2ed;
	cursor: pointer;
}
.bf-personal--menu { margin: 8px 0; padding: 12px 0; border-bottom: 1px solid var(--bf-line); }
.bf-mobile-group { border-bottom: 1px solid rgba(42, 37, 32, 0.08); }
.bf-mobile-group__row,
.bf-mobile-sub__row { display: flex; align-items: center; min-height: 48px; }
.bf-mobile-group__row > a,
.bf-mobile-sub__row > a,
.bf-mobile-sub__row > span {
	flex: 1;
	color: var(--bf-ink);
	font-weight: 700;
	text-decoration: none;
}
.bf-mobile-group__row > button,
.bf-mobile-sub__row > button {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.bf-mobile-submenu,
.bf-mobile-sub__list { display: grid; padding: 0 0 12px 8px; }
.bf-mobile-submenu[hidden],
.bf-mobile-sub__list[hidden] { display: none; }
.bf-mobile-submenu > a,
.bf-mobile-sub__list a {
	padding: 8px 12px;
	color: #555;
	text-decoration: none;
	font-weight: 400;
	font-size: 14px;
}
.bf-mobile-menu__actions { display: grid; gap: 10px; margin: 18px 0; }
.bf-mobile-menu__actions .btn { min-height: 48px; }
.bf-mobile-menu__contacts { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bf-line); color: #888; font-size: 13px; }
body.bf-menu-open { overflow: hidden; }

@media (min-width: 1600px) {
	.bf-site-header__bar { padding: 0 40px; gap: 28px; max-width: 1760px; }
	.bf-site-nav__link { font-size: 14px; padding: 11px 16px; }
}
@media (max-width: 1599px) {
	.bf-site-header__bar { padding: 0 20px; gap: 14px; }
	.bf-site-header__actions { gap: 12px; }
	.bf-site-nav__link { padding: 8px 8px; font-size: 13px; }
	.bf-phone-block__callback { display: none; }
	.bf-personal__title { display: none; }
}
@media (max-width: 1279px) {
	:root { --bf-header-h: 57px; }
	.bf-site-header__bar { min-height: 56px; padding: 0 12px; gap: 10px; }
	.bf-site-header__brand { margin-right: auto; }
	.bf-site-header__brand img { width: 112px; height: 32px; }
	.bf-site-nav,
	.bf-phone-block--desktop,
	.bf-personal--desktop,
	.bf-site-header__cta { display: none !important; }
	.bf-site-header__phone-mobile,
	.bf-burger { display: inline-flex; }
	.bf-mega__grid { column-count: 1; }
}
.bf-site-header--nav-overflow .bf-site-nav,
.bf-site-header--nav-overflow .bf-phone-block--desktop,
.bf-site-header--nav-overflow .bf-personal--desktop,
.bf-site-header--nav-overflow .bf-site-header__cta { display: none !important; }
.bf-site-header--nav-overflow .bf-site-header__phone-mobile,
.bf-site-header--nav-overflow .bf-burger { display: inline-flex; }

/* ===== Blog ===== */
.bf-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.bf-wrap--wide { width: min(1200px, calc(100% - 48px)); }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; }

.bf-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6000;
	height: 2px;
	pointer-events: none;
}
.bf-progress > span {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--bf-gold);
	transform: scaleX(0);
	transform-origin: left center;
}

.bf-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #fff;
	background: #1c1916;
}
.bf-cover--home { min-height: 640px; }
.bf-cover--archive { min-height: 340px; }
.bf-cover--article { min-height: 520px; }
.bf-cover__img,
.bf-cover > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bf-cover__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(18, 14, 10, 0.18) 0%, rgba(18, 14, 10, 0.28) 38%, rgba(18, 14, 10, 0.78) 100%);
}
.bf-cover__inner {
	position: relative;
	z-index: 1;
	width: min(1200px, calc(100% - 48px));
	margin: 0 auto;
	padding: 72px 0 40px;
}
.bf-cover h1 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(48px, 6vw, 84px);
	line-height: 0.98;
	font-weight: 400;
}
.bf-cover--archive h1 {
	max-width: 16ch;
	font-size: clamp(36px, 4.4vw, 60px);
	line-height: 1.05;
}
.bf-cover--article h1 {
	max-width: 18em;
	font-size: clamp(34px, 4vw, 56px);
	line-height: 1.08;
}
.bf-cover__lead {
	margin: 0 0 22px;
	max-width: 36ch;
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	line-height: 1.5;
}
.bf-cover .bf-kicker { color: #e4d3b4; }
.bf-cover .bf-kicker a { color: inherit; text-decoration: none; }
.bf-cover .bf-crumbs,
.bf-cover .bf-crumbs a { color: rgba(255, 255, 255, 0.78); }
.bf-cover .bf-crumbs { margin-top: 0; }
.bf-cover .bf-byline { color: rgba(255, 255, 255, 0.82); }
.bf-cover .bf-byline a { color: #fff; }

.bf-cover .bf-search input {
	border: 0;
	background: rgba(255, 255, 255, 0.96);
}
.bf-cover .bf-cats a {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}
.bf-cover .bf-cats a:hover,
.bf-cover .bf-cats a.is-current {
	background: #fff;
	border-color: #fff;
	color: var(--bf-ink);
}

.bf-kicker {
	margin: 0 0 8px;
	color: var(--bf-gold-deep);
	font: 700 12px/1.2 "PT Sans Caption", Arial, sans-serif;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.bf-hero { padding: 48px 0 8px; }
.bf-hero h1,
.bf-page-title {
	margin: 0 0 12px;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.05;
}
.bf-lead { margin: 0 0 22px; max-width: 42ch; color: var(--bf-muted); font-size: 18px; }
.bf-search {
	position: relative;
	display: block;
	max-width: 520px;
	width: 100%;
}
.bf-search input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 48px 0 18px;
	border: 1px solid var(--bf-line);
	border-radius: 999px;
	background: #fff;
	font-size: 16px;
	line-height: 48px;
	appearance: none;
	-webkit-appearance: none;
}
.bf-search input::-webkit-search-decoration,
.bf-search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.bf-search__submit {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bf-gold-deep);
	cursor: pointer;
}
.bf-search__submit:hover { color: var(--bf-gold); background: rgba(149, 128, 88, 0.1); }
.bf-search__submit .bf-ico { display: block; }

.bf-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.bf-cats a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--bf-line);
	color: var(--bf-ink);
	text-decoration: none;
	font-size: 14px;
}
.bf-cats a:hover,
.bf-cats a.is-current { background: var(--bf-ink); color: #fff; border-color: var(--bf-ink); }

.bf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	padding: 48px 0 72px;
}
.bf-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(42, 37, 32, 0.05);
	box-shadow: 0 12px 32px rgba(42, 37, 32, 0.05);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.bf-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(42, 37, 32, 0.1);
}
.bf-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: #e7dfd2;
	overflow: hidden;
}
.bf-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
.bf-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.bf-card__cat {
	color: var(--bf-gold-deep);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.bf-card__body h2 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 400; }
.bf-card__body h2 a { color: var(--bf-ink); text-decoration: none; }
.bf-card__body h2 a:hover { color: var(--bf-gold-deep); }
.bf-card__excerpt { margin: 0; color: var(--bf-muted); font-size: 15px; line-height: 1.55; }
.bf-card__meta { margin-top: auto; color: #8a847c; font-size: 13px; }

.bf-card--feature {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	min-height: 380px;
}
.bf-card--feature .bf-card__media { aspect-ratio: auto; height: 100%; min-height: 280px; }
.bf-card--feature .bf-card__body { justify-content: center; padding: 36px 40px; gap: 14px; }
.bf-card--feature h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.12; }

.bf-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 0 80px; }
.bf-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--bf-line);
	color: var(--bf-ink);
	text-decoration: none;
}
.bf-pagination .page-numbers.current { background: var(--bf-ink); color: #fff; border-color: var(--bf-ink); }
.bf-pagination a.page-numbers:hover { border-color: var(--bf-gold); color: var(--bf-gold-deep); }

.bf-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; color: var(--bf-muted); font-size: 13px; }
.bf-crumbs a { color: var(--bf-muted); text-decoration: none; }
.bf-crumbs a:hover { color: var(--bf-gold-deep); }

.bf-byline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; }
.bf-byline a { color: inherit; font-weight: 700; text-decoration: none; }

.bf-article-hero {
	background: var(--bf-cream);
	color: var(--bf-ink);
	padding: 28px 0 0;
}
.bf-article-hero .bf-kicker { color: var(--bf-gold-deep); }
.bf-article-hero .bf-kicker a { color: inherit; text-decoration: none; }
.bf-article-hero h1 {
	margin: 0 0 12px;
	max-width: 18em;
	color: var(--bf-ink);
	font-size: clamp(32px, 3.4vw, 52px);
	line-height: 1.12;
	font-weight: 400;
	overflow-wrap: break-word;
}
.bf-article-hero .bf-byline { color: var(--bf-muted); }
.bf-article-hero .bf-byline a { color: var(--bf-ink); }
.bf-article-hero__media {
	margin: 28px 0 0;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #e7dfd2;
}
.bf-article-hero__media img,
.bf-article-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.bf-article-body { padding-top: 32px; }
.bf-tldr {
	max-width: 740px;
	margin: 0 0 28px;
	padding: 18px 22px;
	border-left: 2px solid var(--bf-gold);
	background: #fff;
	border-radius: 0 16px 16px 0;
}
.bf-tldr strong {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bf-gold-deep);
}
.bf-tldr p { margin: 0; }

.bf-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 740px) 280px;
	column-gap: clamp(40px, 5vw, 80px);
	justify-content: space-between;
	align-items: start;
	padding-bottom: 12px;
}
.bf-content { max-width: 740px; min-width: 0; font-size: 18px; line-height: 1.7; }
.bf-content > *:first-child { margin-top: 0; }
.bf-content h2 { margin: 1.7em 0 0.45em; font-size: 32px; line-height: 1.2; font-weight: 400; }
.bf-content h3 { margin: 1.4em 0 0.35em; font-size: 22px; line-height: 1.3; font-weight: 400; }
.bf-content h2,
.bf-content h3 {
	scroll-margin-top: calc(var(--bf-header-h) + 12px);
}
.bf-content p { margin: 0 0 1em; }
.bf-content ul, .bf-content ol { margin: 0 0 1em; padding-left: 1.2em; }
.bf-content img { border-radius: 16px; }
.bf-content table { width: 100%; border-collapse: collapse; background: #fff; }
.bf-content th, .bf-content td { border: 1px solid var(--bf-line); padding: 8px 10px; text-align: left; }
.bf-content th { background: var(--bf-cream); }

.bf-toc {
	position: sticky;
	top: calc(var(--bf-header-h) + 12px);
	padding: 16px 16px 12px;
	background: #fff;
	border-radius: 18px;
	border: 1px solid rgba(42, 37, 32, 0.06);
	box-shadow: 0 10px 28px rgba(42, 37, 32, 0.04);
}
.bf-toc__toggle {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	font: 700 12px/1.2 "PT Sans Caption", Arial, sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bf-gold-deep);
	cursor: default;
}
.bf-toc ol { margin: 0; padding: 0; list-style: none; }
.bf-toc a { display: block; padding: 7px 0; color: var(--bf-ink); text-decoration: none; font-size: 14px; line-height: 1.35; }
.bf-toc a:hover,
.bf-toc a.is-active { color: var(--bf-gold-deep); }
.bf-toc .is-h3 { padding-left: 12px; color: var(--bf-muted); }

.bf-author-box,
.bf-cta,
.bf-related {
	margin: 28px 0;
	padding: 28px;
	background: #fff;
	border-radius: 22px;
	border: 1px solid rgba(42, 37, 32, 0.06);
	box-shadow: 0 10px 28px rgba(42, 37, 32, 0.04);
}
.bf-related { padding-bottom: 8px; }
.bf-related .bf-grid { padding-top: 18px; padding-bottom: 20px; }
.bf-author-box { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.bf-author-box img,
.bf-author-hero img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 50%;
	background: var(--bf-cream);
}
.bf-author-box h2,
.bf-cta h2,
.bf-related h2 { margin: 0 0 8px; font-size: 28px; font-weight: 400; }
.bf-author-box p,
.bf-cta p { margin: 0 0 8px; }
.bf-role { color: var(--bf-gold-deep); font-weight: 700; }
.bf-cta-actions,
.bf-commerce { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bf-commerce a { color: var(--bf-gold-deep); }

.bf-author-hero {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	max-width: 820px;
	padding: 36px 0 8px;
}
.bf-author-hero img { width: 128px; height: 128px; flex: 0 0 128px; }
.bf-author-hero h1 { margin: 0 0 8px; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.bf-author-hero p { max-width: 62ch; }

.bf-empty { padding: 24px 0 64px; }

.bf-footer { background: #f3f1ee; color: #3a352f; border-top: 1px solid var(--bf-line); margin-top: 8px; }
.bf-footer a { color: var(--bf-ink); text-decoration: none; }
.bf-footer a:hover { color: var(--bf-gold-deep); }
.bf-footer__note { padding: 22px 0 8px; text-align: center; color: #777; font-size: 13px; }
.bf-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
	gap: 28px;
	padding: 12px 0 36px;
}
.bf-footer h2 { margin: 0 0 12px; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.bf-footer ul { margin: 0; padding: 0; list-style: none; }
.bf-footer li { margin: 0 0 8px; font-size: 14px; }
.bf-footer__legal { font-size: 13px; line-height: 1.5; color: #666; }
.bf-footer__bottom { padding: 16px 0 28px; border-top: 1px solid var(--bf-line); font-size: 13px; color: #777; }

.bf-mobile-cta {
	display: none;
}

@media (min-width: 1920px) {
	.bf-wrap--wide { width: min(1200px, calc(100% - 80px)); }
}
@media (max-width: 1099px) {
	.bf-article-layout { grid-template-columns: 1fr; gap: 20px; }
	.bf-toc { position: static; order: -1; }
	.bf-toc__toggle { cursor: pointer; }
	.bf-toc__toggle::after {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-left: 8px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
	}
	.bf-toc__toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
}
@media (min-width: 1100px) {
	.bf-toc ol[hidden] { display: block; }
}
@media (max-width: 1024px) {
	.bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bf-card--feature { grid-template-columns: 1fr 1fr; }
	.bf-footer__grid { grid-template-columns: 1fr 1fr; }
	.bf-cover--home { min-height: 560px; }
	.bf-cover--article { min-height: 460px; }
}
@media (max-width: 1279px) {
	.bf-mobile-cta {
		display: inline-flex;
		position: fixed;
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		z-index: 4500;
		min-height: 48px;
		padding: 0 22px;
		box-shadow: 0 12px 28px rgba(42, 37, 32, 0.18);
	}
	body,
	#bf-content {
		padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}
	.bf-tldr {
		padding-bottom: calc(20px + 56px + env(safe-area-inset-bottom, 0px));
	}
	body.bf-menu-open .bf-mobile-cta { visibility: hidden; }
}
@media (max-width: 700px) {
	.bf-grid,
	.bf-card--feature,
	.bf-footer__grid,
	.bf-author-box { grid-template-columns: 1fr; }
	.bf-card--feature .bf-card__media { aspect-ratio: 3 / 2; height: auto; }
	.bf-card--feature .bf-card__body { padding: 20px; }
	.bf-cover__inner,
	.bf-wrap { width: min(1200px, calc(100% - 32px)); }
	.bf-article-hero { padding-top: 20px; }
	.bf-article-hero h1 { font-size: clamp(28px, 8vw, 36px); }
	.bf-article-hero__media { margin-top: 20px; border-radius: 14px; }
	.bf-cover--home { min-height: 520px; }
	.bf-cover--archive { min-height: 300px; }
	.bf-cover h1 { font-size: 48px; }
	.bf-author-hero { flex-direction: column; align-items: flex-start; }
	.bf-hero { padding-top: 28px; }
}
@media (max-width: 767px) {
	.bf-cover--home { min-height: 360px; }
	.bf-cover--home .bf-cover__inner { padding: 24px 0 18px; }
	.bf-cover--home h1 { font-size: 36px; margin-bottom: 6px; }
	.bf-cover--home .bf-cover__lead { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
	.bf-cover--home .bf-search { max-width: none; }
	.bf-cover--home .bf-cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-top: 14px;
		padding-bottom: 2px;
	}
	.bf-cover--home .bf-cats::-webkit-scrollbar { display: none; }
	.bf-cover--home .bf-cats a { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bf-mobile-menu,
	.bf-card { transition: none; }
}
