/* --------------------------------------------------------------------------
   Blog: archive, single post, author box, related posts
   -------------------------------------------------------------------------- */

/* ---- Archive header ---- */
.bfr-archive__head {
	background: var(--bfr-off-white);
	padding: 48px 0 44px;
}

@media (min-width: 992px) {
	.bfr-archive__head { padding-top: var(--logo-clear, 150px); }
}

.bfr-archive__head h1 { margin: 0 0 12px; }
.bfr-archive__head .bfr-lede { color: #444; font-size: 17px; max-width: 720px; margin: 0; }

/* ---- Card grid ---- */
.bfr-archive { padding: 56px 0 72px; }

.bfr-postgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

@media (max-width: 991.98px) { .bfr-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .bfr-postgrid { grid-template-columns: 1fr; } }

.bfr-card {
	background: #fff;
	border: 1px solid #e6e6e0;
	border-top: 6px solid var(--bfr-yellow);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
}

.bfr-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, .1); }

.bfr-card__media {
	aspect-ratio: 16 / 10;
	background: var(--bfr-off-white);
	display: block;
	overflow: hidden;
}
.bfr-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bfr-card__placeholder {
	align-items: center;
	background: #1c1c1c;
	background-image: radial-gradient(circle at 50% 45%, rgba(255, 211, 0, .16) 0, rgba(255, 211, 0, 0) 60%);
	color: var(--bfr-yellow);
	display: flex;
	height: 100%;
	justify-content: center;
}

.bfr-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.bfr-card__cat {
	color: #8a7400;
	font-family: var(--font-body);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 1.4px;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.bfr-card__title {
	font-size: 21px;
	line-height: 1.22;
	margin: 0 0 10px;
}

.bfr-card__title a { color: var(--bfr-ink); text-decoration: none; }
.bfr-card__title a:hover { text-decoration: underline; text-decoration-color: var(--bfr-yellow); text-decoration-thickness: 3px; }

.bfr-card__excerpt { color: #555; font-size: 14.5px; margin: 0 0 16px; }

.bfr-card__meta {
	color: #777;
	display: flex;
	font-size: 12.5px;
	gap: 7px;
	margin-top: auto;
}

/* Feature variant, if a card is ever given more room */
.bfr-card--feature .bfr-card__title { font-size: 26px; }

/* ---- Pagination ---- */
.bfr-archive .navigation.pagination { margin-top: 44px; }
.bfr-archive .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.bfr-archive .page-numbers {
	align-items: center;
	background: #fff;
	border: 2px solid #111;
	color: #111;
	display: inline-flex;
	font-family: var(--font-heading);
	font-weight: 900;
	justify-content: center;
	min-height: 46px;
	padding: 10px 16px;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}

.bfr-archive .page-numbers:hover { background: #111; color: var(--bfr-yellow); }
.bfr-archive .page-numbers.current { background: var(--bfr-yellow); }

.bfr-noresults { max-width: 620px; padding: 20px 0 40px; }

/* ---- Single post ---- */
.bfr-post__head { background: var(--bfr-off-white); padding: 44px 0 40px; }

@media (min-width: 992px) {
	.bfr-post__head { padding-top: var(--logo-clear, 150px); }
}

.bfr-post__head-inner { max-width: 820px; }
.bfr-post__head h1 { margin: 0 0 22px; }

/* ---- Byline and author card ---- */
.bfr-post__meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: space-between;
}

.bfr-post__dates { color: #666; font-size: 13.5px; display: flex; gap: 8px; }

.bfr-author { align-items: center; display: flex; gap: 14px; }

.bfr-author__photo {
	border: 2px solid var(--bfr-yellow);
	border-radius: 50%;
	flex: 0 0 auto;
	height: 56px;
	object-fit: cover;
	width: 56px;
}

.bfr-author__by { color: #666; font-family: var(--font-body); font-size: 13px; font-weight: 600; }

.bfr-author__name {
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 900;
	line-height: 1.2;
}

.bfr-author__name a {
	color: var(--bfr-ink);
	text-decoration: underline;
	text-decoration-color: var(--bfr-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.bfr-author__name a:hover { color: #5e5e5e; }
.bfr-author__title { color: #666; font-size: 13px; }

/* Full variant, shown at the end of a post */
.bfr-author--full {
	align-items: flex-start;
	background: var(--bfr-off-white);
	border-left: 6px solid var(--bfr-yellow);
	gap: 24px;
	margin-top: 52px;
	padding: 28px;
}

.bfr-author--full .bfr-author__photo { height: 96px; width: 96px; }

.bfr-author--full .bfr-author__eyebrow {
	color: #8a7400;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 1.4px;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.bfr-author--full .bfr-author__name { font-family: var(--font-heading); font-size: 24px; }
.bfr-author--full .bfr-author__title { margin-bottom: 10px; }
.bfr-author__bio { color: #444; font-size: 15.5px; margin: 0 0 14px; }

@media (max-width: 575.98px) {
	.bfr-author--full { flex-direction: column; gap: 16px; }
}

/* ---- Table of contents ---- */
.bfr-toc {
	background: var(--bfr-off-white);
	border-left: 6px solid var(--bfr-yellow);
	margin: 0 0 36px;
	padding: 22px 26px;
}

.bfr-toc__title {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 1.6px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.bfr-toc ol { margin: 0; padding-left: 1.2em; }
.bfr-toc li { margin-bottom: 6px; }
.bfr-toc li:last-child { margin-bottom: 0; }
.bfr-toc a { color: var(--bfr-ink); font-size: 15px; text-decoration-color: var(--bfr-yellow); }
.bfr-toc a:hover { color: #5e5e5e; }

/* Anchored headings should not land under the sticky header */
.entry-content h2[id] { scroll-margin-top: 120px; }

/* ---- Related ---- */
.bfr-related { padding: 56px 0; }
.bfr-related h2 { margin-bottom: 26px; }
.bfr-related .bfr-card__title { font-size: 18px; }

/* ---- Closing CTA ---- */
.bfr-post__cta { padding: 56px 0; }
.bfr-post__cta h2 { margin-bottom: 12px; }
.bfr-post__cta p { color: #2b2b2b; margin: 0 auto 24px; max-width: 580px; }

.bfr-lnk {
	align-items: center;
	border-bottom: 3px solid var(--bfr-yellow);
	color: var(--bfr-ink);
	display: inline-flex;
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 900;
	gap: 8px;
	padding-bottom: 3px;
	text-decoration: none;
	text-transform: uppercase;
}

.bfr-lnk:hover { gap: 13px; color: #5e5e5e; }

@media (prefers-reduced-motion: reduce) {
	.bfr-card, .bfr-lnk { transition: none; }
}
