/*
 * Blue Fringes redesign (2026) — single templates.
 * Uses the tokens from redesign.css.
 */

.bf-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.bf-muted { color: var(--bf-stone); font-size: 15px; }

.bf-label,
.bf-eyebrow {
	font-family: var(--bf-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bf-thread);
}

.bf-label { font-size: 11px; color: var(--bf-stone); margin-right: 4px; }
.bf-eyebrow--light { color: #A9C2E6; }

.bf-pill {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--bf-line-strong);
	background: var(--bf-white);
	color: var(--bf-indigo);
	font-family: var(--bf-sans);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}

body a.bf-pill:hover { border-color: var(--bf-thread); color: var(--bf-indigo); }
.bf-pill--sky { background: var(--bf-sky); border-color: #C9D6EA; }

.bf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border-radius: var(--bf-radius);
	font-family: var(--bf-sans);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	box-sizing: border-box;
}

body a.bf-btn--brass { background: var(--bf-brass); color: var(--bf-white); width: 100%; }
body a.bf-btn--brass:hover { background: var(--bf-brass-dark); color: var(--bf-white); }

/* ---------- Title band ---------- */
.bf-titleband {
	background: var(--bf-parchment);
	border-bottom: 1px solid var(--bf-line);
	padding: 26px 0 36px;
}

.bf-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: var(--bf-stone);
}

.bf-crumbs a { color: var(--bf-indigo); text-decoration: underline; }

.bf-titleband-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
}

.bf-titleband-main { flex: 1 1 520px; min-width: 0; }

body .bf-titleband h1.bf-title {
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.1;
	margin: 12px 0 8px;
}

.bf-hebrew {
	font-family: var(--bf-serif);
	font-size: 26px;
	color: #3D4250;
	text-align: left;
}

.bf-pills,
.bf-jumpbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.bf-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	padding: 14px 18px;
}

.bf-badge-num { font-family: var(--bf-serif); font-size: 36px; line-height: 1; color: var(--bf-indigo); }
.bf-badge-num span { font-size: 18px; color: var(--bf-stone); }
.bf-badge-label { font-size: 14px; color: var(--bf-stone); line-height: 1.35; max-width: 150px; }

/* ---------- Layout ---------- */
body .bf-content { padding-top: 40px; }

.bf-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
	padding-bottom: 56px;
}

.bf-main { flex: 999 1 600px; min-width: 0; }
.bf-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.bf-hero-figure { margin: 0 0 28px; }
.bf-hero-figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.bf-hero-figure figcaption { font-size: 14px; color: var(--bf-stone); margin-top: 8px; }

.bf-note {
	background: var(--bf-sky);
	border-radius: var(--bf-radius-card);
	padding: 16px 20px;
	margin-bottom: 28px;
	font-size: 15px;
}

.bf-note p, .bf-note li { font-size: 15px; }
.bf-note ul { margin: 6px 0 0 18px; }

.bf-prose { max-width: none; }
.bf-prose p { margin: 0 0 18px; }
.bf-rtl { text-align: right; font-family: var(--bf-serif); font-size: 19px; }

.bf-section { margin-top: 40px; }

body .bf-main h2,
body .bf-band h2,
body .bf-connected h2 {
	font-size: 30px;
	line-height: 1.2;
	margin: 0 0 14px;
}

.bf-anchor { position: relative; top: -110px; }

/* Older helper output (tables, video grids, lists) inside the new layout */
.bf-legacy-blocks h2 { margin-top: 40px; }

.bf-legacy-blocks table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
	font-size: 16px;
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	overflow: hidden;
}

.bf-legacy-blocks th {
	text-align: left;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--bf-stone);
	font-weight: 700;
	padding: 12px 14px;
	background: var(--bf-parchment);
	border-bottom: 1px solid #DDD6C6;
}

.bf-legacy-blocks td {
	padding: 12px 14px;
	border-bottom: 1px solid #EAE5DA;
	vertical-align: top;
}

.bf-legacy-blocks tr:nth-child(even) td { background: #FBFAF6; }

.bf-details,
.user-testimony {
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	margin-bottom: 10px;
	background: var(--bf-white);
}

.bf-details summary,
.user-testimony summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	font-weight: 700;
}

.user-testimony-date { color: var(--bf-stone); font-weight: 400; font-size: 14px; }
.user-testimony-content { padding: 0 18px 14px; }

/* ---------- Sidebar ---------- */
.bf-card {
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	padding: 22px 24px;
}

body .bf-side .bf-card h2 { font-size: 22px; margin: 0 0 4px; }

.bf-facts dl { margin: 0; }

.bf-facts dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--bf-line);
	font-size: 15px;
}

.bf-facts dl > div:last-child { border-bottom: 0; }
.bf-facts dt { color: var(--bf-stone); flex: 0 0 auto; }
.bf-facts dd { margin: 0; font-weight: 700; text-align: right; }

.bf-cta {
	background: var(--bf-indigo);
	color: var(--bf-white);
	border-radius: var(--bf-radius-card);
	padding: 22px 24px;
}

.bf-cta p { color: #D5DEEE; font-size: 15px; margin: 8px 0 16px; }
.bf-cta .bf-cta-title { font-family: var(--bf-serif); font-size: 21px; color: var(--bf-white); margin: 8px 0; }

/* Movedo's own sidebar (ads, widgets) keeps working inside the new column. */
.bf-legacy-sidebar #grve-sidebar {
	width: 100%;
	float: none;
	padding: 0;
	margin: 0;
}

/* ---------- Connected block ---------- */
.bf-connected { margin-top: 48px; }

.bf-conn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.bf-conn {
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	padding: 18px 20px;
}

body .bf-conn h3 {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 20px;
	margin: 0 0 8px;
}

.bf-conn h3 span { font-family: var(--bf-sans); font-size: 14px; color: var(--bf-stone); font-weight: 400; }
.bf-conn ul { list-style: none; margin: 0; padding: 0; }
.bf-conn li { margin: 0; padding: 0; }
.bf-conn li::before { display: none; }

.bf-conn li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid #EFEBE2;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	color: var(--bf-indigo);
}

.bf-conn li a img,
.bf-conn li a i {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	object-fit: cover;
	border-radius: 6px;
	background: #F1EEE7;
}

/* ---------- Full-width band (related wearers) ---------- */
.bf-band {
	background: var(--bf-parchment);
	padding: 56px 0 64px;
	margin-top: 8px;
}

/* ---------- Flip cards ---------- */
.bf-flip-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.bf-flip {
	perspective: 1200px;
	display: block;
	text-decoration: none;
	color: var(--bf-ink);
}

.bf-flip-in {
	position: relative;
	height: 100%;
	transition: transform .5s;
	transform-style: preserve-3d;
}

.bf-flip:hover .bf-flip-in,
.bf-flip:focus-visible .bf-flip-in,
.bf-flip.is-flipped .bf-flip-in {
	transform: rotateY(180deg);
}

.bf-flip-f,
.bf-flip-b {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: var(--bf-radius-card);
	overflow: hidden;
	box-sizing: border-box;
}

.bf-flip-f {
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.bf-flip-f img,
.bf-flip-noimg {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 25%;
	display: block;
	background: #F1EEE7;
}

.bf-flip-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; }
.bf-flip-name { font-family: var(--bf-serif); font-size: 18px; line-height: 1.25; color: var(--bf-indigo); }
.bf-flip-role { font-size: 14px; color: var(--bf-stone); line-height: 1.35; }
.bf-flip-hint { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--bf-thread); }
.bf-flip-hint::before { content: "↻ "; }

.bf-flip-b {
	position: absolute;
	inset: 0;
	transform: rotateY(180deg);
	background: var(--bf-indigo);
	color: var(--bf-white);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bf-flip-b .bf-flip-name { color: var(--bf-white); font-size: 17px; }
.bf-flip-b ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bf-flip-b li { font-size: 14px; line-height: 1.35; color: var(--bf-white); margin: 0; }
.bf-flip-b li::before { display: none; }
.bf-flip-b b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #A9C2E6; }
.bf-flip-more { margin-top: auto; font-weight: 700; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	.bf-flip-in { transition: none; }
}

.bf-comments { margin-top: 32px; }
.bf-backto { margin: 24px 0 40px; font-weight: 700; }

/* ---------- Tying method: gallery and source quote ---------- */
.bf-gallery {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 12px;
	margin-bottom: 28px;
}

.bf-gallery-main { grid-row: span 2; display: block; }
.bf-gallery:not(:has(.bf-gallery-item)) { grid-template-columns: minmax(0, 1fr); }

.bf-gallery img {
	width: 100%;
	height: 100%;
	max-height: 640px;
	object-fit: contain;
	background: #F1EEE7;
	border-radius: 12px;
	display: block;
}

.bf-gallery-item { position: relative; display: block; }
.bf-gallery-item img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--bf-white); border: 1px solid var(--bf-line); }

.bf-gallery-cap {
	position: absolute;
	left: 8px;
	bottom: 8px;
	background: rgba(20, 36, 74, .82);
	color: var(--bf-white);
	font-size: 13px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.bf-source-quote {
	margin: 32px 0 0;
	background: var(--bf-parchment);
	border: 0;
	border-radius: 12px;
	padding: 24px 28px;
	font-family: var(--bf-serif);
	font-size: 21px;
	line-height: 1.8;
	text-align: right;
	quotes: none;
}

.bf-source-quote p { font-size: 21px; line-height: 1.8; margin: 0 0 12px; text-align: right; }
.bf-source-quote::before, .bf-source-quote::after { content: none; }

@media (max-width: 640px) {
	.bf-gallery { grid-template-columns: minmax(0, 1fr); }
	.bf-gallery-main { grid-row: auto; }
}

/* ---------- Textual source ---------- */
.bf-byline { margin-top: 10px; font-size: 16px; color: #3D4250; }

.bf-bottomline {
	background: var(--bf-sky);
	border-radius: 12px;
	padding: 22px 24px;
	margin-bottom: 28px;
}

body .bf-bottomline h2.bf-label { margin: 0 0 8px; font-size: 11px; color: var(--bf-indigo); }
.bf-bottomline-body { font-family: var(--bf-serif); font-size: 18px; line-height: 1.6; }
.bf-bottomline-body p, .bf-bottomline-body li { font-family: var(--bf-serif); font-size: 18px; }
.bf-bottomline-body.is-clamped { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

.bf-link-btn {
	margin-top: 8px;
	border: 0;
	background: none;
	padding: 0;
	min-height: 36px;
	font: inherit;
	font-weight: 700;
	color: var(--bf-indigo);
	text-decoration: underline;
	cursor: pointer;
}

.bf-text { margin-top: 8px; --bf-text-step: 0; }

.bf-text-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

body .bf-text-head h2 { margin: 0; }
.bf-text-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bf-thread-tools { display: flex; gap: 8px; }
.bf-thread-tools[hidden] { display: none; }

.bf-seg { display: inline-flex; border: 1.5px solid var(--bf-indigo); border-radius: 8px; overflow: hidden; }

.bf-seg button {
	min-height: 40px;
	padding: 0 14px;
	border: 0;
	background: var(--bf-white);
	color: var(--bf-indigo);
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.bf-seg button[aria-pressed="true"] { background: var(--bf-indigo); color: var(--bf-white); }

.bf-tool,
.bf-btn-line {
	min-height: 40px;
	min-width: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--bf-line-strong);
	border-radius: 8px;
	background: var(--bf-white);
	color: var(--bf-indigo);
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.bf-btn-line { border-color: var(--bf-indigo); }
.bf-btn-block { width: 100%; }

.bf-text-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px;
}

.bf-text[data-view="orig"] .bf-text-cols,
.bf-text[data-view="en"] .bf-text-cols { grid-template-columns: minmax(0, 1fr); }
.bf-text[data-view="orig"] [data-col="en"],
.bf-text[data-view="en"] [data-col="orig"] { display: none; }
.bf-text[data-view="orig"] .bf-text-col,
.bf-text[data-view="en"] .bf-text-col { max-width: none; }

.bf-col-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	border-bottom: 2px solid var(--bf-indigo);
	padding-bottom: 6px;
	margin-bottom: 16px;
}

.bf-col-head .bf-label { color: var(--bf-indigo); }

.bf-text-content { font-family: var(--bf-serif); }

.bf-text-ltr,
.bf-text-ltr p,
.bf-text-ltr li {
	font-family: var(--bf-serif);
	font-size: calc(19px + var(--bf-text-step) * 2px);
	line-height: 1.7;
	color: #2A2F3B;
}

.bf-text-rtl,
.bf-text-rtl p,
.bf-text-rtl li {
	font-family: var(--bf-serif);
	font-size: calc(22px + var(--bf-text-step) * 2px);
	line-height: 1.85;
	text-align: right;
}

.bf-text-content img { max-width: 100%; height: auto; border-radius: 8px; }
.bf-text-content figure, .bf-text-content .wp-caption { max-width: 100%; }

.bf-footnotes { margin-top: 12px; }
.bf-footnotes > div { padding: 0 18px 12px; }
.bf-footnotes .bf-text-ltr, .bf-footnotes .bf-text-ltr p { font-size: 16px; }
.bf-footnotes .bf-text-rtl, .bf-footnotes .bf-text-rtl p { font-size: 18px; }

/* Collapse */
.bf-text-body { position: relative; }
.bf-text-body.is-collapsed { max-height: var(--bf-collapse-h, 1100px); overflow: hidden; }

.bf-text-body.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 160px;
	background: linear-gradient(rgba(255, 255, 255, 0), #FFFFFF 85%);
	pointer-events: none;
}

.bf-expand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.bf-expand[hidden], .bf-collapse-bar[hidden] { display: none; }

.bf-btn-brass {
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--bf-radius);
	background: var(--bf-brass);
	color: var(--bf-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.bf-btn-brass:hover { background: var(--bf-brass-dark); }

.bf-collapse-bar {
	position: sticky;
	bottom: 16px;
	z-index: 5;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: 100%;
	margin: 14px auto 0;
	background: var(--bf-indigo);
	color: var(--bf-white);
	border-radius: 999px;
	padding: 6px 8px 6px 18px;
	box-shadow: 0 6px 18px rgba(20, 36, 74, .25);
	font-size: 14px;
}

.bf-collapse-bar button {
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	border: 0;
	background: var(--bf-white);
	color: var(--bf-indigo);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Threads */
.bf-msg {
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	margin-bottom: 12px;
	background: var(--bf-white);
	overflow: hidden;
}

.bf-msg summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 16px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	font-family: var(--bf-sans);
}

.bf-msg summary::-webkit-details-marker { display: none; }
.bf-msg summary:hover { background: #FBFAF6; }
.bf-msg-from { font-weight: 700; font-size: 16px; color: var(--bf-ink); }
.bf-msg-date { font-size: 14px; color: var(--bf-stone); white-space: nowrap; }
.bf-msg-date::after { content: " ▼"; font-size: 11px; }
.bf-msg[open] .bf-msg-date::after { content: " ▲"; }
.bf-msg-subj { grid-column: 1 / -1; font-size: 15px; color: #3D4250; }
.bf-msg-body { padding: 4px 18px 10px; border-top: 1px solid #EFEBE2; }
.bf-msg-body p { margin: 12px 0; }
.bf-msg-body .bf-msg-header,
.bf-msg-body .bf-msg-header * { font-family: var(--bf-sans); font-size: 13px; color: var(--bf-stone); margin: 2px 0; }
.bf-msg-count { margin: 0 0 12px; }

.bf-card--parchment { background: var(--bf-parchment); border-color: var(--bf-line); }
.bf-card p { font-size: 15px; }
.bf-cite-text { background: var(--bf-parchment); border-radius: 8px; padding: 10px 12px; font-size: 14px; word-break: break-word; }

.bf-details-body { padding: 0 18px 14px; }

@media (max-width: 899px) {
	.bf-text-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Movedo styles every <button> (blue, uppercase); restore ours. */
body #grve-theme-wrapper .bf-seg button,
body #grve-theme-wrapper .bf-tool,
body #grve-theme-wrapper .bf-btn-line,
body #grve-theme-wrapper .bf-btn-brass,
body #grve-theme-wrapper .bf-link-btn,
body #grve-theme-wrapper .bf-collapse-bar button {
	font-family: var(--bf-sans);
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	line-height: 1.2;
	height: auto;
}

body #grve-theme-wrapper .bf-seg button { background: var(--bf-white); color: var(--bf-indigo); font-size: 14px; font-weight: 700; padding: 0 14px; min-height: 40px; border: 0; border-radius: 0; }
body #grve-theme-wrapper .bf-seg button[aria-pressed="true"] { background: var(--bf-indigo); color: var(--bf-white); }
body #grve-theme-wrapper .bf-tool { background: var(--bf-white); color: var(--bf-indigo); border: 1.5px solid var(--bf-line-strong); border-radius: 8px; font-size: 14px; font-weight: 700; padding: 0 12px; min-height: 40px; }
body #grve-theme-wrapper .bf-btn-line { background: var(--bf-white); color: var(--bf-indigo); border: 1.5px solid var(--bf-indigo); border-radius: 8px; font-size: 14px; font-weight: 700; padding: 0 12px; min-height: 40px; }
body #grve-theme-wrapper .bf-btn-brass { background: var(--bf-brass); color: var(--bf-white); border: 0; border-radius: var(--bf-radius); font-size: 16px; font-weight: 700; padding: 0 22px; min-height: 46px; }
body #grve-theme-wrapper .bf-btn-brass:hover { background: var(--bf-brass-dark); }
body #grve-theme-wrapper .bf-link-btn { background: none; color: var(--bf-indigo); border: 0; padding: 0; font-size: 16px; font-weight: 700; text-decoration: underline; min-height: 36px; }
body #grve-theme-wrapper .bf-collapse-bar button { background: var(--bf-white); color: var(--bf-indigo); border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; padding: 0 14px; min-height: 36px; }

/* ---------- Notable Wearers directory ---------- */
/* 100vw includes the scrollbar; --bf-sbw (set by redesign-flip.js) takes it back out
   so full-bleed bands are centred. */
.bf-fullbleed {
	margin-left: calc(50% - 50vw + var(--bf-sbw, 0px) / 2);
	margin-right: calc(50% - 50vw + var(--bf-sbw, 0px) / 2);
}

.bf-dir-intro { margin: 0; font-size: 19px; color: #3D4250; }

.bf-dir-search {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 0 1 340px;
	font-size: 14px;
	font-weight: 600;
}

.bf-dir-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	align-items: flex-start;
	padding: 36px 0 56px;
}

.bf-dir-filters { flex: 1 1 230px; min-width: 0; position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; }
.bf-dir-results { flex: 999 1 640px; min-width: 0; }

.bf-dir-filters-head { display: flex; justify-content: space-between; align-items: baseline; }
body .bf-dir-filters-head h2 { font-size: 22px; margin: 0 0 8px; }

.bf-dir-facet { border-top: 1px solid var(--bf-line); padding: 10px 0; }
.bf-dir-facet[hidden] { display: none; }
.bf-dir-facet summary { cursor: pointer; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--bf-stone); padding: 6px 0; }
.bf-dir-options { display: flex; flex-direction: column; max-height: 320px; overflow: auto; }

.bf-dir-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; font-weight: 400; margin: 0; }
.bf-dir-opt input { width: 18px; height: 18px; accent-color: var(--bf-indigo); margin: 0; flex: 0 0 auto; }
.bf-dir-opt span { flex: 1 1 auto; }
.bf-dir-opt em { font-style: normal; color: var(--bf-stone); font-size: 13px; }

.bf-dir-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	margin-bottom: 12px;
	border-bottom: 1px solid #EFEBE2;
	position: sticky;
	top: 100px;
	background: var(--bf-white);
	z-index: 4;
}

.bf-dir-count { font-weight: 700; }
.bf-dir-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bf-dir-chips:empty { display: none; }

body #grve-theme-wrapper .bf-chip {
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--bf-indigo);
	color: var(--bf-white);
	border: 0;
	font-family: var(--bf-sans);
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.bf-dir-empty { padding: 32px; border: 1px dashed var(--bf-line-strong); border-radius: var(--bf-radius-card); text-align: center; }
.bf-dir-empty[hidden], .bf-dir-group[hidden], .bf-dir-item[hidden], .bf-dir-az[hidden], .bf-dir-bygroup[hidden] { display: none; }

.bf-dir-group { margin-bottom: 40px; }
body .bf-dir-group-title { font-size: 26px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.bf-dir-group-count { font-family: var(--bf-sans); font-size: 15px; color: var(--bf-stone); font-weight: 400; }

.bf-dir .bf-flip-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 0; }
.bf-dir .bf-flip-name { font-size: 17px; }

/* Ads and notes placed between groups keep breathing room. */
.bf-dir-bygroup > *:not(.bf-dir-group) { margin-bottom: 32px; }
.bf-dir-filtered-hide { display: none; }
.bf-dir.is-filtered .bf-dir-bygroup > *:not(.bf-dir-group) { display: none; }

@media (max-width: 899px) {
	.bf-dir-filters { position: static; max-height: none; }
	.bf-dir-toolbar { top: 60px; }
}

.bf-dir-layout { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
body .bf-dir h1.bf-title, body .bf-dir .bf-titleband { text-align: left; }
.bf-dir .bf-note { margin-bottom: 28px; }
.bf-dir-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: var(--bf-sky); border-radius: var(--bf-radius-card); padding: 16px 20px; }
body a.bf-btn--inline { width: auto; }
.bf-note-small { font-size: 15px; color: var(--bf-stone); }

body .bf-dir h1.bf-title { padding-left: 0; margin-left: 0; text-indent: 0; }

/* ---------- Price list ---------- */
.bf-currency { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.bf-pair { margin: 8px 0 36px; }
body .bf-pair h2 { font-size: 30px; margin: 6px 0 18px; }
.bf-pair-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.bf-pair-card { flex: 1 1 170px; background: var(--bf-white); border: 1px solid var(--bf-line); border-radius: var(--bf-radius-card); padding: 18px 20px; }
.bf-pair-desc { font-weight: 600; margin-top: 4px; }
.bf-pair-price { margin-top: 6px; font-family: var(--bf-serif); font-size: 30px; color: var(--bf-indigo); line-height: 1.2; }
.bf-pair-price .bf-muted { font-family: var(--bf-sans); font-size: 14px; }
.bf-pair-op { align-self: center; font-family: var(--bf-serif); font-size: 28px; color: var(--bf-stone); }
.bf-pair-total { background: var(--bf-indigo); border-color: var(--bf-indigo); color: var(--bf-white); flex-basis: 200px; }
.bf-pair-total .bf-label { color: #A9C2E6; }
.bf-pair-total .bf-pair-price { color: var(--bf-white); }
.bf-pair-total .bf-pair-price span:first-child { font-family: var(--bf-sans); font-size: 14px; color: #D5DEEE; }
.bf-pair-cur { font-family: var(--bf-sans); font-size: 15px; }

/* Price page intro notes */
.bf-price-note { background: var(--bf-parchment); border-radius: var(--bf-radius-card); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.bf-price-note img { max-width: 220px; height: auto; border-radius: 8px; }
.bf-price-note p { flex: 1 1 320px; margin: 0; font-size: 15px; }

/* WPBakery accordion as clean cards */
body .vc_tta.vc_general .vc_tta-panel {
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--bf-white);
}

body .vc_tta.vc_general .vc_tta-panel-heading {
	background: var(--bf-white);
	border: 0;
}

body .vc_tta.vc_general .vc_tta-panel-title > a {
	font-family: var(--bf-serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--bf-indigo);
	padding: 16px 20px;
	text-transform: none;
	letter-spacing: 0;
}

body .vc_tta.vc_general .vc_tta-panel.vc_active .vc_tta-panel-heading { background: var(--bf-parchment); }
body .vc_tta.vc_general .vc_tta-panel-body { border: 0; background: var(--bf-white); padding: 18px 20px; }

/* TablePress */
.bf-table-scroll { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--bf-line); border-radius: var(--bf-radius-card); }

body table.tablepress { margin: 0; border-collapse: collapse; width: 100%; background: var(--bf-white); font-size: 16px; }
body table.tablepress thead th,
body table.tablepress tfoot th {
	background: var(--bf-parchment);
	color: var(--bf-stone);
	font-family: var(--bf-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 12px 14px;
	border-bottom: 1px solid #DDD6C6;
	white-space: nowrap;
}

body table.tablepress tbody td { padding: 12px 14px; border-top: 1px solid #EAE5DA; vertical-align: top; font-family: var(--bf-sans); color: var(--bf-ink); }
body table.tablepress tbody tr:nth-child(even) td { background: #FBFAF6; }
body table.tablepress .bf-price-col { font-weight: 700; color: var(--bf-indigo); white-space: nowrap; font-variant-numeric: tabular-nums; }
body table.tablepress thead th.bf-price-col { color: var(--bf-stone); }
body table.tablepress [hidden] { display: none; }
body table.tablepress img { max-width: 90px; height: auto; border-radius: 6px; }

/* Shipping */
.bf-shipping { margin: 40px 0 8px; }
body .bf-shipping h2 { font-size: 30px; margin: 6px 0 18px; }
.bf-ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.bf-ship-card { background: var(--bf-white); border: 1px solid var(--bf-line); border-radius: var(--bf-radius-card); padding: 20px 24px; }
.bf-ship-card h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; margin: 0 0 6px; }
.bf-ship-card h3 small { font-family: var(--bf-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--bf-stone); }
.bf-ship-card dl { margin: 0; }
.bf-ship-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #EAE5DA; }
.bf-ship-card dl > div:last-child { border-bottom: 0; }
.bf-ship-card dt { font-weight: 700; }
.bf-ship-card dt span { display: block; font-weight: 400; font-size: 14px; color: var(--bf-stone); }
.bf-ship-card dd { margin: 0; font-weight: 700; color: var(--bf-indigo); white-space: nowrap; }
.bf-ship-foot { font-size: 15px; color: var(--bf-stone); margin-top: 14px; }

.bf-order-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--bf-indigo); color: var(--bf-white); border-radius: 12px; padding: 28px 32px; margin: 36px 0 12px; }
body .bf-order-band h2 { color: var(--bf-white); font-size: 28px; margin: 0 0 6px; }
.bf-order-band p { color: #D5DEEE; margin: 0; }

/* Movedo accordion (price list sections) as clean cards */
body .grve-accordion-wrapper > li {
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--bf-white);
	list-style: none;
}

body .grve-accordion-wrapper > li::before { display: none; }

body #grve-theme-wrapper .grve-accordion-wrapper .grve-title-wrapper {
	background: var(--bf-white);
	border: 0;
	padding: 16px 20px;
	cursor: pointer;
}

body #grve-theme-wrapper .grve-accordion-wrapper .grve-title-wrapper.active { background: var(--bf-parchment); }

body #grve-theme-wrapper .grve-accordion-wrapper .grve-title-wrapper .grve-title {
	font-family: var(--bf-serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--bf-indigo);
	text-transform: none;
	letter-spacing: 0;
	margin: 0;
}

body #grve-theme-wrapper .grve-accordion-wrapper .grve-accordion-arrow i { color: var(--bf-indigo); }
body .grve-accordion-wrapper .grve-accordion-content { padding: 18px 20px; border: 0; }

/* ---------- Homepage ---------- */
.bf-home-hero { background: var(--bf-white); padding: 64px 0 56px; }
.bf-home-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.bf-home-hero-text { flex: 1 1 460px; min-width: 0; }
body .bf-home-title { font-size: clamp(38px, 5vw, 58px); line-height: 1.08; margin: 14px 0 18px; color: var(--bf-indigo); text-align: left; }
.bf-home-lede { font-size: 20px; color: #3D4250; margin: 0 0 26px; max-width: 560px; }
.bf-home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body a.bf-btn--line { border: 1.5px solid var(--bf-indigo); color: var(--bf-indigo); background: var(--bf-white); }
body a.bf-btn--line:hover { background: var(--bf-sky); color: var(--bf-indigo); }
.bf-home-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--bf-line); }
.bf-home-stat-num { font-family: var(--bf-serif); font-size: 32px; line-height: 1; color: var(--bf-indigo); }
.bf-home-hero-figure { flex: 1 1 420px; min-width: 0; margin: 0; }
.bf-home-hero-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }

.bf-home-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 56px; }
.bf-path { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--bf-white); border: 1px solid var(--bf-line); border-radius: var(--bf-radius-card); text-decoration: none; color: var(--bf-ink); }
body a.bf-path:hover { border-color: var(--bf-thread); color: var(--bf-ink); }
.bf-path-title { font-family: var(--bf-serif); font-size: 26px; color: var(--bf-indigo); }
.bf-path-text { color: #3D4250; }
.bf-path-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--bf-indigo); }

.bf-home-prices { background: var(--bf-parchment); padding: 64px 0; margin: 24px 0; }
.bf-home-prices-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
body .bf-home-prices h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 6px 0 0; text-align: left; }
.bf-home-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.bf-home-price { background: var(--bf-white); border: 1px solid var(--bf-line); border-radius: var(--bf-radius-card); padding: 26px; }
.bf-home-price-name { font-weight: 700; font-size: 18px; }
.bf-home-price-num { margin: 16px 0 4px; font-family: var(--bf-serif); font-size: 44px; line-height: 1; color: var(--bf-indigo); }
.bf-home-price-num .bf-muted { font-family: var(--bf-sans); font-size: 14px; }
.bf-home-price-cur { font-family: var(--bf-sans); font-size: 14px; font-weight: 700; color: var(--bf-stone); }
.bf-home-prices-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

/* Movedo section headings ("slogans"): gradient display titles become the serif style. */
body .grve-slogan .grve-slogan-title,
body .grve-slogan .grve-slogan-title span {
	font-family: var(--bf-serif);
	font-weight: 500;
	font-size: clamp(30px, 3.4vw, 42px);
	line-height: 1.15;
	color: var(--bf-indigo);
	background: none;
	-webkit-text-fill-color: currentColor;
	text-transform: none;
	letter-spacing: 0;
	text-shadow: none;
}

body .grve-slogan .grve-leader-text,
body .grve-slogan .grve-leader-text * {
	font-family: var(--bf-sans);
	font-size: 18px;
	color: #3D4250;
	text-shadow: none;
}

body .grve-divider { border-color: var(--bf-line); }

/* ---------- Legacy card grids (generateThumbs) site-wide ---------- */
body .grve-text:has(> .generateThumbsBox),
body .grve-element:has(> .generateThumbsBox) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 20px;
	align-items: stretch;
}

body .grve-text:has(> .generateThumbsBox) > :not(.generateThumbsBox),
body .grve-element:has(> .generateThumbsBox) > :not(.generateThumbsBox) {
	grid-column: 1 / -1;
}

body .generateThumbsBox {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .15s;
}

body .generateThumbsBox:hover { border-color: var(--bf-thread); }
body .generateThumbsBox > div,
body .generateThumbsBox > div > div { height: 100%; display: flex; flex-direction: column; background: transparent; border: 0; }

body .generateThumbsBox .tying-method-image,
body .generateThumbsBox .image_wrapper {
	background: #F4F1EA;
	margin: 0;
	padding: 0;
	border: 0;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

body .generateThumbsBox .image_wrapper a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
body .generateThumbsBox .image_wrapper img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; max-width: none; }
body .generateThumbsBox .readmorefront,
body .generateThumbsBox .readmore { display: none; }
body .generateThumbsBox .hideme { display: none; }

body .generateThumbsBox .tying-method-title {
	background: var(--bf-white);
	padding: 14px 16px 16px;
	margin: 0;
	text-align: left;
	flex: 1 1 auto;
	border: 0;
}

body .generateThumbsBox .tying-method-title a {
	font-family: var(--bf-serif);
	font-size: 18px;
	line-height: 1.3;
	color: var(--bf-indigo);
	text-decoration: none;
}

body .wrapperSeeMore { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 4px; }
body .wrapperSeeMore h2.tying-methods { font-size: 26px; margin: 0; }
body .wrapperSeeMore h2.tying-methods:empty { display: none; }
body .wrapperSeeMore > a { font-weight: 700; text-decoration: none; }

/* Legacy card widths ("four-col" etc.) would shrink cards inside the grid. */
body .grve-element .generateThumbsBox,
body .grve-element .generateThumbsBox[class*="-col"] {
	width: auto;
	max-width: none;
	min-width: 0;
	float: none;
	margin: 0;
}

/* Old navy ".alt-color" bands become parchment bands. */
body .alt-color {
	background-color: var(--bf-parchment);
	border-radius: 0;
}

body .alt-color,
body .alt-color p,
body .alt-color li,
body .alt-color .grve-leader-text,
body .alt-color .grve-leader-text * {
	color: #3D4250;
}

body .alt-color .grve-slogan-title,
body .alt-color .grve-slogan-title span,
body .alt-color h2,
body .alt-color h3 {
	color: var(--bf-indigo);
}

/* ---------- Image thumb lists (Additional Images, In the News, galleries) ---------- */
body ul.images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
	margin: 12px 0 24px;
	padding: 0;
}

body ul.images li.image_thumb_wrapper {
	width: auto;
	height: auto;
	margin: 0;
	float: none;
	list-style: none;
}

body ul.images li.image_thumb_wrapper::before { display: none; }

body ul.images li.image_thumb_wrapper div.image_thumb {
	height: 100%;
	padding: 0;
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: left;
}

body ul.images li.image_thumb_wrapper div.image_thumb:hover { border-color: var(--bf-thread); }

body ul.images li.image_thumb_wrapper div.image_thumb div.image_wrapper {
	min-height: 0;
	aspect-ratio: 4 / 3;
	background: #F4F1EA;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

body ul.images li.image_thumb_wrapper div.image_thumb div.image_wrapper > a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }

body ul.images li.image_thumb_wrapper div.image_thumb img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	padding: 8px;
	box-sizing: border-box;
}

body ul.images .readmore,
body ul.images .readmore2 { display: none; }

body ul.images div.titledescwrapper { position: static; width: auto; padding: 12px 14px 14px; }

body ul.images li.image_thumb_wrapper div.title,
body ul.images li.image_thumb_wrapper div.title a {
	background: transparent;
	color: var(--bf-indigo);
	font-family: var(--bf-serif);
	font-size: 16px;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
}

body ul.images li.image_thumb_wrapper div.description,
body ul.images li.image_thumb_wrapper div.description a {
	background: transparent;
	color: var(--bf-stone);
	font-family: var(--bf-sans);
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	margin-top: 4px;
}

/* Section content no longer stretches edge to edge on wide screens. */
body .grve-section:not(.grve-fullwidth) > .grve-container {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

body .bf-dir .grve-container,
body .bf-home-hero .grve-container { max-width: none; padding: 0; }

@media (max-width: 899px) {
	.bf-fullbleed { margin-left: 0; margin-right: 0; }
	.bf-home-prices { border-radius: 12px; }
	.bf-home-prices .bf-wrap { padding-left: 18px; padding-right: 18px; }
}

/* Phones already get a gutter from #grve-main-content; don't double it. */
@media (max-width: 959px) {
	body .grve-section:not(.grve-fullwidth) > .grve-container { padding-left: 0; padding-right: 0; }
}

/* Grids never force cards wider than a phone screen. */
.bf-home-price-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.bf-home-paths { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.bf-flip-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.bf-dir .bf-flip-grid { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.bf-conn-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.bf-ship-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
body ul.images { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
body .grve-text:has(> .generateThumbsBox),
body .grve-element:has(> .generateThumbsBox) { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }

/* ---------------------------------------------------------------
 * Shared single shell (archeology, books, albums, FAQ, authors,
 * audio, debates, polemics, blog)
 * ------------------------------------------------------------ */
.bf-meta-line {
	margin-top: 10px;
	font-size: 16px;
	color: var(--bf-stone);
}
.bf-meta-line a { color: var(--bf-indigo); font-weight: 600; }

/* Fitted hero: wide images fill, tall ones don't take over the screen */
.bf-hero-figure--fit a { display: block; background: var(--bf-white); border: 1px solid var(--bf-line); border-radius: 12px; }
.bf-hero-figure--fit img { max-height: 560px; object-fit: contain; }

/* Book / portrait beside the text */
.bf-book {
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-bottom: 8px;
}
.bf-book:not(:has(.bf-book-cover)) { grid-template-columns: minmax(0, 1fr); }
.bf-book-cover { margin: 0; }
.bf-book-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(20, 36, 74, 0.18);
}
.bf-book-cover--portrait img { border-radius: 12px; }
@media (max-width: 640px) {
	.bf-book { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bf-book-cover { max-width: 220px; }
}

/* FAQ question and answer */
.bf-qa {
	margin: 8px 0 32px;
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	overflow: hidden;
	background: var(--bf-white);
}
.bf-qa > section { padding: 22px 24px; }
.bf-qa-q { background: var(--bf-sky); }
.bf-qa-q .bf-prose { font-family: var(--bf-serif); font-size: 20px; color: var(--bf-indigo); }
.bf-qa-a { border-top: 1px solid var(--bf-line); }
.bf-qa .bf-label { margin-bottom: 8px; }
.bf-qa .bf-prose > :last-child { margin-bottom: 0; }
.bf-qa-src { margin: 10px 0 0; font-size: 14px; }
.bf-qa.bf-rtl .bf-prose { font-family: 'Frank Ruhl Libre', serif; }

/* Debates: question lead + keep the existing response cards */
.bf-da-question { font-size: 19px; }
.bf-da-single .bf-da-responses-wrap > h2 { margin-top: 40px; }

/* Blog extras (tags, about the author, Movedo related posts) */
.bf-post-extras { margin-top: 32px; }
.bf-post-extras:empty { display: none; }
.bf-movedo-related { margin-top: 40px; }
.bf-blog-single .bf-prose img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------------------------------------------------------------
 * Archive directories ([bf-archive])
 * ------------------------------------------------------------ */
.bf-arc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
	gap: 18px;
}
.bf-arc-grid > .bf-dir-item[hidden] { display: none; }
.bf-arc-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bf-white);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-card);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.bf-arc-card:hover { box-shadow: 0 10px 26px rgba(20, 36, 74, .12); transform: translateY(-2px); }
.bf-arc-media-link { display: block; }
.bf-arc-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--bf-parchment);
	overflow: hidden;
}
.bf-arc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-arc-media--cover { aspect-ratio: 3 / 4; padding: 14px; }
.bf-arc-media--cover img { object-fit: contain; box-shadow: 0 6px 16px rgba(20, 36, 74, .2); }
.bf-arc-media--portrait { aspect-ratio: 1 / 1; }
.bf-arc-media--portrait img { object-position: center 20%; }
.bf-arc-media i {
	font-style: normal;
	font-family: var(--bf-serif);
	font-size: 44px;
	color: var(--bf-line-strong);
}
.bf-arc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
body .bf-arc-title { margin: 0; font-family: var(--bf-serif); font-size: 18px; line-height: 1.3; font-weight: 500; }
body #grve-theme-wrapper .bf-arc-title a { color: var(--bf-indigo); text-decoration: none; }
body #grve-theme-wrapper .bf-arc-title a:hover { color: var(--bf-thread); }
.bf-arc-meta { font-size: 14px; color: var(--bf-stone); line-height: 1.4; }
.bf-arc-excerpt { margin: 0; font-size: 15px; line-height: 1.5; color: #3D4250; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bf-arc-details { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--bf-stone); }
.bf-arc-details b { color: var(--bf-ink); font-weight: 600; }
.bf-arc-date { margin-top: auto; font-size: 13px; color: var(--bf-stone); }
.bf-arc-note { margin-bottom: 18px; }

/* Grid: keep cards compact */
.bf-arc:not(.is-list) .bf-arc-excerpt { -webkit-line-clamp: 2; }
.bf-arc:not(.is-list) .bf-arc-details { display: none; }

/* List view */
.bf-arc.is-list .bf-arc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bf-arc.is-list .bf-arc-card { flex-direction: row; align-items: stretch; }
.bf-arc.is-list .bf-arc-card:hover { transform: none; }
.bf-arc.is-list .bf-arc-media-link { flex: 0 0 120px; }
.bf-arc.is-list .bf-arc-media { aspect-ratio: auto; height: 100%; min-height: 96px; }
.bf-arc.is-list .bf-arc-media--cover { padding: 8px; }
.bf-arc.is-list .bf-arc-excerpt { -webkit-line-clamp: 3; }
@media (max-width: 560px) {
	.bf-arc.is-list .bf-arc-media-link { flex-basis: 84px; }
	.bf-arc.is-list .bf-arc-excerpt { -webkit-line-clamp: 4; }
}

/* FAQ: question-first list, no images */
.bf-arc--faq .bf-arc-excerpt { -webkit-line-clamp: 4; }

/* Table view (debates: existing sortable table with XLSX / PDF export) */
.bf-arc.is-table .bf-dir-filters,
.bf-arc.is-table .bf-dir-chips,
.bf-arc.is-table .bf-dir-count { display: none; }
.bf-arc-table { overflow-x: auto; }
.bf-arc-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--bf-line) !important; font-size: 15px; background: var(--bf-white); }
.bf-arc-table th, .bf-arc-table td { border: 0 !important; border-bottom: 1px solid var(--bf-line) !important; padding: 10px 12px !important; text-align: left; vertical-align: top; }
.bf-arc-table thead th { background: var(--bf-parchment); color: var(--bf-ink); }
.bf-arc-table input { width: 100%; min-width: 90px; padding: 6px 8px; border: 1px solid var(--bf-line-strong); border-radius: 6px; font-size: 14px; }
.bf-arc-table td img { width: 64px; height: auto; border-radius: 6px; }
.bf-arc-table button { margin: 0 8px 12px 0; padding: 8px 14px; border: 1px solid var(--bf-indigo); border-radius: 6px; background: var(--bf-white); color: var(--bf-indigo); font-weight: 700; cursor: pointer; }
.bf-arc-group-figure { margin: 0 0 16px; }
.bf-arc-group-figure img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--bf-radius-card); display: block; }
body #grve-theme-wrapper .bf-arc-table button {
	margin: 0 8px 12px 0; padding: 9px 16px; border: 1px solid var(--bf-indigo); border-radius: var(--bf-radius);
	background: var(--bf-white); color: var(--bf-indigo); font: 700 14px/1 var(--bf-sans); letter-spacing: 0; text-transform: none; box-shadow: none;
}
body #grve-theme-wrapper .bf-arc-table button:hover { background: var(--bf-indigo); color: #fff; }
@media (max-width: 560px) {
	.bf-arc:not(.is-list) .bf-arc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.bf-arc:not(.is-list) .bf-arc-body { padding: 10px 12px 12px; }
	body .bf-arc:not(.is-list) .bf-arc-title { font-size: 16px; }
	.bf-arc:not(.is-list) .bf-arc-meta { font-size: 13px; }
	.bf-arc:not(.is-list) .bf-arc-excerpt { display: none; }
	.bf-arc-media--cover { padding: 10px; }
}
body #grve-theme-wrapper .bf-arc-media-link { text-decoration: none; border: 0; }

/* Blog index and term archives */
.bf-index { padding-top: 36px; padding-bottom: 48px; }
.bf-index-section + .bf-index-section { margin-top: 40px; }
.bf-pills--cats .bf-pill span { color: var(--bf-stone); font-weight: 400; margin-left: 4px; }
body #grve-theme-wrapper .bf-pill.is-current { background: var(--bf-indigo); border-color: var(--bf-indigo); color: #fff; }
.bf-index .bf-arc-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.bf-pagination { margin-top: 36px; }
.bf-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body #grve-theme-wrapper .bf-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
	border: 1px solid var(--bf-line); border-radius: var(--bf-radius); background: var(--bf-white); color: var(--bf-indigo); font-weight: 700; text-decoration: none;
}
body #grve-theme-wrapper .bf-pagination .page-numbers.current { background: var(--bf-indigo); border-color: var(--bf-indigo); color: #fff; }
body #grve-theme-wrapper .bf-pagination .page-numbers.dots { border: 0; background: none; }
.bf-pagination .screen-reader-text { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }

/* Main column content fills the column (no reading-width cap, no centring). */
body .bf-main .bf-prose,
body .bf-main #grve-post-content {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}
body .bf-main #grve-post-content { padding-left: 0; padding-right: 0; }
body .bf-main .grve-section > .grve-container { max-width: none; padding-left: 0; padding-right: 0; }
body .bf-main .grve-row { margin-left: 0; margin-right: 0; }
body .bf-main .grve-column.grve-column-1 { padding-left: 0; padding-right: 0; }
body #grve-theme-wrapper .bf-main .grve-section > .grve-container { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
body #grve-theme-wrapper .bf-main #grve-post-content { width: 100% !important; }
.bf-wearing li { text-align: center; }
.bf-wearing-name { font-weight: 700; color: var(--bf-indigo); margin-top: 8px; }

/* ---------------------------------------------------------------
 * Homepage sections ([bf-home-section]): one rhythm for every block
 * ------------------------------------------------------------ */
.bf-hsec { padding: 72px 0; }
.bf-hsec.is-alt { background: var(--bf-parchment); }
.bf-hsec + .bf-hsec:not(.is-alt) { border-top: 1px solid var(--bf-line); }
.bf-hsec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.bf-hsec-titles { max-width: 720px; }
body .bf-hsec-title { margin: 4px 0 0; font-family: var(--bf-serif); font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.15; color: var(--bf-indigo); text-align: left; }
.bf-hsec-intro { margin: 10px 0 0; font-size: 17px; color: var(--bf-stone); line-height: 1.55; }
body #grve-theme-wrapper a.bf-hsec-more {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border: 1px solid var(--bf-indigo);
	border-radius: var(--bf-radius);
	color: var(--bf-indigo);
	font: 700 15px/1 var(--bf-sans);
	text-decoration: none;
}
body #grve-theme-wrapper a.bf-hsec-more:hover { background: var(--bf-indigo); color: #fff; }
.bf-hsec .bf-arc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bf-hsec .bf-arc.is-list .bf-arc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-hsec .bf-flip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bf-hsec .bf-dir-group { margin: 0; }
@media (max-width: 760px) {
	.bf-hsec .bf-arc-grid, .bf-hsec .bf-flip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bf-hsec .bf-arc.is-list .bf-arc-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Homepage cards: compact, all the same height per row. */
.bf-hsec .bf-arc:not(.is-list) .bf-arc-excerpt { display: none; }
.bf-hsec .bf-arc:not(.is-list) .bf-arc-title { font-size: 17px; }
@media (max-width: 899px) {
	.bf-hsec { padding: 48px 0; }
	.bf-hsec.bf-fullbleed { margin-left: 0; margin-right: 0; }
	.bf-hsec.is-alt { border-radius: 12px; padding-left: 0; padding-right: 0; }
	.bf-hsec .bf-wrap { padding-left: 16px; padding-right: 16px; }
}
.bf-hsec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; font-size: 17px; line-height: 1.7; color: #3D4250; }
.bf-hsec-cols p { margin: 0 0 14px; text-align: left !important; }
.bf-hsec-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
@media (max-width: 760px) { .bf-hsec-cols, .bf-hsec-videos { grid-template-columns: minmax(0, 1fr); } }
.bf-hsec .grve-container { padding: 0 !important; max-width: none; }
.bf-hsec ul.images { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.bf-hsec ul.images > li { padding: 0; }
.bf-hsec .tying-method-additional-images > h2:empty { display: none; }
/* List views: an item without a picture gets a slim initial, not a big empty block. */
.bf-arc.is-list .bf-arc-media-link:has(.bf-arc-media > i) { flex-basis: 56px; }
.bf-arc.is-list .bf-arc-media:has(> i) i { font-size: 26px; }

/* Homepage FAQ list ([faqs] output) as question cards */
.bf-hsec .wrapper > ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bf-hsec .wrapper > ul > li { margin: 0; padding: 18px 20px; background: var(--bf-white); border: 1px solid var(--bf-line); border-radius: var(--bf-radius-card); }
.bf-hsec .wrapper > ul > li::marker { content: none; }
.bf-hsec .wrapper > ul > li > br,
.bf-hsec .wrapper > ul > li > hr { display: none; }
body #grve-theme-wrapper .bf-hsec .wrapper > ul > li > a { display: block; margin-bottom: 8px; font-family: var(--bf-serif); font-size: 18px; line-height: 1.35; color: var(--bf-indigo); text-decoration: none; }
body #grve-theme-wrapper .bf-hsec .wrapper > ul > li > a:hover { color: var(--bf-thread); }
.bf-hsec .wrapper .answer, .bf-hsec .wrapper .answer em { font-style: normal; font-size: 15px; line-height: 1.55; color: #3D4250; }
@media (max-width: 760px) { .bf-hsec .wrapper > ul { grid-template-columns: minmax(0, 1fr); } }

/* Testimonials: one centred quote */
.bf-hsec .grve-testimonial { max-width: 780px; margin: 0 auto; text-align: center; }
.bf-hsec .grve-testimonial-thumb { display: flex; justify-content: center; margin-bottom: 14px; }
.bf-hsec .grve-testimonial-content p { font-family: var(--bf-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--bf-ink); }
.bf-hsec .grve-testimonial-name { margin-top: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bf-stone); }
.bf-hsec .grve-testimonial .owl-dots, .bf-hsec .grve-testimonial .grve-carousel-pagination { text-align: center; }
.bf-hsec .wrapper > ul > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Hero images: never taller than ~70% of the screen; tall photos sit in a frame. */
.bf-hero-figure > a { display: block; background: var(--bf-parchment); border-radius: 12px; overflow: hidden; }
.bf-hero-figure img { width: 100%; height: auto; max-height: min(70vh, 600px); object-fit: contain; display: block; margin: 0 auto; border-radius: 0; }
.bf-gallery-main img { max-height: min(70vh, 600px); object-fit: contain; background: var(--bf-parchment); }

/* Legacy Movedo widgets inside the new sidebar (blog: search, categories, recent posts) */
.bf-legacy-sidebar .grve-widget,
.bf-legacy-sidebar .widget { margin: 0 0 20px; padding: 18px 20px; background: var(--bf-white); border: 1px solid var(--bf-line); border-radius: var(--bf-radius-card); }
.bf-legacy-sidebar .grve-widget-title,
.bf-legacy-sidebar .widget-title,
.bf-legacy-sidebar h3 { margin: 0 0 10px; font: 700 11px/1.4 var(--bf-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bf-stone); }
.bf-legacy-sidebar ul { list-style: none; margin: 0; padding: 0; }
.bf-legacy-sidebar li { padding: 7px 0; border-bottom: 1px solid var(--bf-line); font-size: 15px; line-height: 1.4; }
.bf-legacy-sidebar li:last-child { border-bottom: 0; }
body #grve-theme-wrapper .bf-legacy-sidebar li a { color: var(--bf-indigo); text-decoration: none; }
body #grve-theme-wrapper .bf-legacy-sidebar li a:hover { color: var(--bf-thread); }
.bf-legacy-sidebar .post-date, .bf-legacy-sidebar .grve-widget-meta { display: block; font-size: 13px; color: var(--bf-stone); }
.bf-legacy-sidebar form { display: flex; gap: 8px; }
.bf-legacy-sidebar input[type="search"], .bf-legacy-sidebar input[type="text"] { flex: 1; min-width: 0; height: 42px; padding: 8px 12px; border: 1px solid var(--bf-line-strong); border-radius: 8px; font: 400 15px var(--bf-sans); background: #FBFAF6; }
body #grve-theme-wrapper .bf-legacy-sidebar button,
body #grve-theme-wrapper .bf-legacy-sidebar input[type="submit"] { height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--bf-indigo); color: #fff; font: 700 14px var(--bf-sans); }
/* Source pages: the scan above the text is a preview (the text follows), so keep it short. */
.single-textual_sources .bf-hero-figure img { max-height: 380px; }

/* Price tables: product photos as thumbnails so rows stay compact. */
body .tablepress td img { max-height: 96px; width: auto; max-width: 96px; object-fit: contain; border-radius: 6px; display: block; }
/* Archives: four cards across beside the filters on desktop. */
@media (min-width: 1100px) {
	.bf-arc:not(.is-list) .bf-dir-results .bf-arc-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
