/*
Theme Name: Bill of Fare
Theme URI: https://example.com
Author: Anant Mundhra
Description: A menu-board-and-nutrition-label inspired theme, built out for Taco Bell: menu, nutrition facts, a build-a-meal calculator, and a Canada locations page all live in this theme (no separate plugins required). Every dish carries its price and calories on a folded corner tab; nutrition facts read like an actual label. Recolor it from Customizer > Bill of Fare Colors.
Version: 3.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bof
*/

/* =========================================================
   0. Tokens
   ========================================================= */
:root {
	--bof-ink: #201A17;
	--bof-cream: #FBF3E6;
	--bof-paper: #FFFFFF;

	/* Brand tokens — editable from Customizer > Bill of Fare Colors */
	--bof-primary: #68298C;
	--bof-primary-dark: #4B1D64;
	--bof-secondary: #9E7FBA;

	/* Semantic tokens — intentionally NOT Customizer-editable. An allergen
	   "contains" warning must stay visually alarming regardless of brand
	   color, so these never move with a rebrand. */
	--bof-warn: #C1352B;
	--bof-warn-dark: #8F2620;
	--bof-safe: #4C7A52;

	--bof-stone: #746656;
	--bof-line: #E7DCC9;

	--bof-font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--bof-font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--bof-font-mono: "Space Mono", "Courier New", monospace;

	--bof-max: 1180px;
	--bof-radius: 14px;
}

/* =========================================================
   1. Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bof-cream);
	color: var(--bof-ink);
	font-family: var(--bof-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--bof-font-display);
	font-weight: 800;
	line-height: 0.95;
	margin: 0 0 0.4em;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.bof-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--bof-ink);
	color: var(--bof-cream);
	padding: 12px 20px;
	z-index: 1000;
}
.bof-skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
	outline: 3px solid var(--bof-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.bof-eyebrow {
	display: inline-block;
	font-family: var(--bof-font-mono);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bof-primary);
}
.bof-eyebrow--on-dark { color: var(--bof-secondary); }

/* =========================================================
   2. Layout helpers
   ========================================================= */
.bof-section__inner {
	max-width: var(--bof-max);
	margin: 0 auto;
	padding: 0 24px;
}
.bof-section {
	padding: 56px 0;
}
.bof-section--panel { padding-top: 0; }
.bof-prose { max-width: 760px; }

/* =========================================================
   Homepage widget areas (Appearance > Widgets)
   ========================================================= */
.bof-home-widget:not(:last-child) { margin-bottom: 28px; }
.bof-home-widget img { max-width: 100%; height: auto; }

.bof-page-header { margin-bottom: 64px; }
@media (min-width: 782px) {
	.bof-page-header { text-align: center; }
}
.bof-page-header h1 { margin-bottom: 8px; }
.bof-prose p { margin-bottom: 1.2em; }

/* =========================================================
   3. Header / nav
   ========================================================= */
.bof-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bof-cream);
	border-bottom: 1px solid var(--bof-line);
}
.bof-header__inner {
	max-width: var(--bof-max);
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.bof-brand {
	display: flex;
	align-items: baseline;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}
.bof-brand img { max-height: 48px; width: auto; }
.bof-brand__name {
	font-family: var(--bof-font-display);
	font-weight: 800;
	font-size: 1.6rem;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--bof-ink);
}
.bof-brand__tagline {
	font-family: var(--bof-font-mono);
	font-size: 0.7rem;
	color: var(--bof-stone);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.bof-nav__list {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}
.bof-nav__list a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	position: relative;
	padding-bottom: 4px;
}
.bof-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--bof-secondary);
	transition: right 0.2s ease;
}
.bof-nav__list a:hover::after,
.bof-nav__list .current-menu-item a::after { right: 0; }

.bof-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: 1px solid var(--bof-line);
	border-radius: 8px;
	cursor: pointer;
}
.bof-nav-toggle__bar {
	display: block;
	height: 2px;
	width: 20px;
	margin: 0 auto;
	background: var(--bof-ink);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.bof-nav-toggle.is-open .bof-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bof-nav-toggle.is-open .bof-nav-toggle__bar:nth-child(2) { opacity: 0; }
.bof-nav-toggle.is-open .bof-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
	.bof-header__inner { gap: 10px; }
	.bof-brand { flex: 1 1 auto; min-width: 0; }
	.bof-nav-toggle { display: flex; flex-shrink: 0; }
	.bof-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bof-cream);
		border-bottom: 1px solid var(--bof-line);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.bof-nav.is-open { max-height: 400px; }
	.bof-nav__list { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
	.bof-nav__list a { display: block; padding: 10px 0; }
	.bof-btn { padding: 8px 14px; font-size: 0.8rem; }
}

/* =========================================================
   4. Hero
   ========================================================= */
.bof-hero {
	background: var(--bof-ink);
	color: var(--bof-cream);
	padding: 90px 0 70px;
	text-align: center;
	position: relative;
	/* No overflow:hidden here -- the ::after gradient bar below doesn't
	   need it (it's already exactly sized to the box), and clipping was
	   also cutting off the [tb_menu_search] results dropdown, which
	   needs to visually extend below the hero. */
}
.bof-hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--bof-primary), var(--bof-secondary));
}
.bof-hero__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 24px;
}
.bof-hero__heading {
	font-size: clamp(2.75rem, 7vw, 5rem);
	text-transform: uppercase;
	margin: 8px 0 20px;
	color: var(--bof-cream);
}
.bof-hero__sub {
	font-size: 1.1rem;
	color: #E6DCCB;
	max-width: 520px;
	margin: 0 auto 32px;
}
.bof-hero__search { margin-bottom: 32px; }
.bof-hero__arrow {
	display: inline-flex;
	color: var(--bof-secondary);
	animation: bof-bounce 2.2s ease-in-out infinite;
}
@keyframes bof-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(8px); }
}

/* =========================================================
   5. Section head
   ========================================================= */
.bof-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.bof-section__title {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	text-transform: uppercase;
}
.bof-section__title--sm {
	font-size: 1.5rem;
	text-transform: uppercase;
	margin-bottom: 20px;
}

/* =========================================================
   6. Category grid ([tb_menu] shortcode markup)
   ========================================================= */
.bof-category-grid {
	display: grid;
	grid-template-columns: repeat(var(--bof-columns, 4), 1fr);
	gap: 22px;
}
@media (max-width: 900px) { .bof-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bof-category-grid { grid-template-columns: 1fr; } }

.bof-category-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 220px;
	background: var(--bof-paper);
	border: 1px solid var(--bof-line);
	border-radius: var(--bof-radius);
	padding: 26px 20px 22px;
	text-align: left;
	text-decoration: none;
	color: var(--bof-ink);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bof-category-card::before {
	content: "";
	position: absolute;
	top: 0; right: 0;
	width: 0; height: 0;
	border-style: solid;
	border-width: 0 34px 34px 0;
	border-color: transparent var(--bof-secondary) transparent transparent;
	transition: border-width 0.18s ease;
	z-index: 2;
}
.bof-category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(32, 26, 23, 0.1);
}
.bof-category-card:hover::before {
	border-width: 0 42px 42px 0;
}

/* Image cards: a framed photo in a fixed, sensible 4:3 box at the top
   (not stretched to fill whatever height the card happens to be, so
   cropping stays minimal and predictable), with a clean white area
   below for the name and item count. */
.bof-category-card--has-image {
	padding: 0;
	min-height: 0;
}
.bof-category-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.25s ease;
}
.bof-category-card--has-image:hover .bof-category-card__image {
	transform: scale(1.04);
}
.bof-category-card__body {
	position: relative;
	z-index: 2;
}
.bof-category-card--has-image .bof-category-card__body {
	background: var(--bof-paper);
	padding: 18px 20px 20px;
}

.bof-category-card__title {
	font-family: var(--bof-font-display);
	font-weight: 700;
	font-size: 1.35rem;
	text-transform: uppercase;
	margin-bottom: 6px;
	display: block;
}
.bof-category-card__desc {
	font-size: 0.85rem;
	color: var(--bof-stone);
	margin-bottom: 10px;
	line-height: 1.4;
	display: block;
}
.bof-category-card__count {
	font-family: var(--bof-font-mono);
	font-size: 0.78rem;
	color: var(--bof-stone);
	display: block;
}

/* =========================================================
   7. Dish grid (theme's own markup on category/archive pages)
   ========================================================= */
.bof-dish-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
@media (max-width: 980px) { .bof-dish-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .bof-dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bof-dish-grid { grid-template-columns: 1fr; } }

.bof-dish-card {
	display: flex;
	flex-direction: column;
	background: var(--bof-paper);
	border: 1px solid var(--bof-line);
	border-radius: var(--bof-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--bof-ink);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bof-dish-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(32, 26, 23, 0.1);
}
.bof-dish-card__media {
	position: relative;
	height: 160px;
	background: var(--bof-line);
}
.bof-dish-card__media img,
.bof-dish-card__media-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bof-dish-card__media-placeholder {
	background: repeating-linear-gradient(135deg, var(--bof-line), var(--bof-line) 10px, #f1e8d6 10px, #f1e8d6 20px);
}
.bof-dish-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bof-dish-card__title {
	font-family: var(--bof-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	text-transform: uppercase;
	line-height: 1.05;
}
.bof-dish-card__price {
	font-family: var(--bof-font-mono);
	font-weight: 700;
	color: var(--bof-primary);
}

/* --- The nutrition tab: this theme's signature element --- */
.bof-tab {
	position: absolute;
	top: 0;
	right: 14px;
	background: var(--bof-secondary);
	color: var(--bof-ink);
	font-family: var(--bof-font-mono);
	font-weight: 700;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	padding: 8px 10px 10px;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 4px 8px rgba(32, 26, 23, 0.18);
	transform: rotate(2deg);
	transition: transform 0.18s ease;
}
.bof-dish-card:hover .bof-tab,
.bof-category-card:hover .bof-tab { transform: rotate(6deg) translateY(2px); }
.bof-tab__num { font-size: 1rem; }
.bof-tab__unit { font-size: 0.55rem; letter-spacing: 0.08em; }
.bof-tab--lg {
	right: 24px;
	padding: 14px 16px 16px;
	border-radius: 0 0 10px 10px;
}
.bof-tab--lg .bof-tab__num { font-size: 1.6rem; }
.bof-tab--lg .bof-tab__unit { font-size: 0.68rem; }

/* =========================================================
   8. Breadcrumb
   ========================================================= */
.bof-breadcrumb {
	padding-top: 24px;
	padding-bottom: 12px;
	font-family: var(--bof-font-mono);
	font-size: 0.78rem;
	color: var(--bof-stone);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.bof-breadcrumb a { text-decoration: none; color: var(--bof-stone); }
.bof-breadcrumb a:hover { color: var(--bof-secondary); }
.bof-breadcrumb__sep { margin: 0 8px; opacity: 0.5; }
.bof-breadcrumb__current { color: var(--bof-ink); }

/* =========================================================
   9. Category head (archive page)
   ========================================================= */
.bof-category-head { padding-top: 6px; padding-bottom: 32px; }
.bof-category-head__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.bof-category-head__title { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; margin: 0; }
.bof-category-head__count { flex-shrink: 0; white-space: nowrap; }
.bof-category-head__desc { color: var(--bof-stone); max-width: 640px; margin-top: 8px; }

/* =========================================================
   10. Single dish page
   ========================================================= */
.bof-dish__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
	padding-top: 12px;
	padding-bottom: 48px;
	align-items: start;
}
@media (max-width: 860px) {
	.bof-dish__top { grid-template-columns: 1fr; }
}
.bof-dish__media {
	position: relative;
	border-radius: var(--bof-radius);
	overflow: hidden;
	background: var(--bof-line);
}
.bof-dish__media img { width: 100%; height: 360px; object-fit: cover; }
.bof-dish__media-placeholder {
	height: 360px;
	background: repeating-linear-gradient(135deg, var(--bof-line), var(--bof-line) 12px, #f1e8d6 12px, #f1e8d6 24px);
}
.bof-dish__title {
	font-size: clamp(2rem, 4vw, 2.9rem);
	text-transform: uppercase;
}
.bof-dish__badges {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 14px 0 20px;
}
.bof-badge {
	font-family: var(--bof-font-mono);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--bof-paper);
	border: 1px solid var(--bof-line);
}
.bof-badge--price { background: var(--bof-primary); color: var(--bof-cream); border-color: var(--bof-primary); }
.bof-badge--muted { color: var(--bof-stone); }

.bof-dish__description { color: var(--bof-ink); max-width: 52ch; }

.bof-jump-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}
.bof-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--bof-ink);
	background: var(--bof-paper);
	border: 2px solid var(--bof-ink);
	border-radius: 999px;
	padding: 9px 18px;
	transition: background 0.15s ease, color 0.15s ease;
}
.bof-pill:hover { background: var(--bof-ink); color: var(--bof-cream); }

/* Nutrition Facts / Allergen Info / Ingredients / related-items sections
   share the site-wide .bof-section 56px top+bottom padding, which stacks
   to a 112px gap between each on this page -- tightened here without
   touching .bof-section itself, since that class is also used for
   homepage/category sections where the wider spacing is still wanted. */
.bof-dish .bof-section { padding: 32px 0; }
.bof-dish .bof-section--panel { padding-top: 0; }

/* =========================================================
   11. Nutrition label (literal FDA-label styling)
   ========================================================= */
.bof-nutrition-label {
	max-width: 380px;
	background: var(--bof-paper);
	border: 1px solid var(--bof-ink);
	padding: 16px 18px 18px;
}
.bof-nutrition-label__title {
	font-family: var(--bof-font-display);
	font-weight: 900;
	font-size: 1.8rem;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}
.bof-nutrition-label__rule { border-bottom: 1px solid var(--bof-ink); margin: 8px 0; }
.bof-nutrition-label__rule--thick { border-bottom-width: 8px; margin: 6px 0 10px; }
.bof-nutrition-label__calories {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-family: var(--bof-font-mono);
}
.bof-nutrition-label__calories span { font-weight: 700; text-transform: uppercase; font-size: 1rem; }
.bof-nutrition-label__calories strong { font-family: var(--bof-font-display); font-size: 2.6rem; line-height: 1; }
.bof-nutrition-label__table { width: 100%; border-collapse: collapse; font-family: var(--bof-font-mono); font-size: 0.9rem; }
.bof-nutrition-label__table td { padding: 6px 0; border-bottom: 1px solid var(--bof-line); }
.bof-nutrition-label__table td:last-child { text-align: right; font-weight: 700; }

/* =========================================================
   12. Allergen chips
   ========================================================= */
.bof-chip-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	max-width: 720px;
}
.bof-chip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.9rem;
	border: 1px solid var(--bof-line);
}
.bof-chip span { font-family: var(--bof-font-mono); font-size: 0.78rem; text-transform: uppercase; }
.bof-chip--contains { border-color: var(--bof-warn); }
.bof-chip--contains span { color: var(--bof-warn-dark); }
.bof-chip--clear { border-color: var(--bof-safe); }
.bof-chip--clear span { color: var(--bof-safe); }
.bof-disclaimer { margin-top: 16px; color: var(--bof-stone); font-size: 0.85rem; max-width: 640px; }

/* =========================================================
   13. Ingredients
   ========================================================= */
.bof-paper-card {
	background: var(--bof-paper);
	border: 1px solid var(--bof-line);
	border-radius: var(--bof-radius);
	padding: 22px 24px;
	max-width: 720px;
	color: var(--bof-stone);
}

/* =========================================================
   14. Footer
   ========================================================= */
.bof-footer {
	background: var(--bof-ink);
	color: #C9BCA9;
	margin-top: 40px;
}
.bof-footer__inner {
	max-width: var(--bof-max);
	margin: 0 auto;
	padding: 44px 24px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 24px;
}
.bof-footer__inner--bordered {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 24px;
}
@media (max-width: 720px) { .bof-footer__inner { grid-template-columns: 1fr; } }
.bof-footer__name {
	font-family: var(--bof-font-display);
	font-weight: 800;
	font-size: 1.3rem;
	text-transform: uppercase;
	color: var(--bof-cream);
}
.bof-footer__note { font-size: 0.85rem; max-width: 42ch; margin-top: 10px; }
.bof-footer__nav ul { display: flex; flex-direction: column; gap: 8px; }
.bof-footer__nav a { text-decoration: none; color: #C9BCA9; }
.bof-footer__nav a:hover { color: var(--bof-secondary); }
.bof-footer__copy { font-family: var(--bof-font-mono); font-size: 0.78rem; align-self: end; }

/* =========================================================
   15. Footer widget columns (Appearance > Widgets)
   ========================================================= */
.bof-footer__widgets {
	display: grid;
	grid-template-columns: repeat(var(--bof-footer-cols, 3), 1fr);
	gap: 24px;
	padding: 40px 0 0;
}
@media (max-width: 720px) { .bof-footer__widgets { grid-template-columns: 1fr; } }
.bof-footer__widget .widget-title,
.bof-footer__widget h2,
.bof-footer__widget h3 {
	font-family: var(--bof-font-display);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	color: var(--bof-cream);
	margin-bottom: 10px;
}
.bof-footer__widget ul { list-style: none; margin: 0; padding: 0; }
.bof-footer__widget li { margin-bottom: 6px; }
.bof-footer__widget a { color: #C9BCA9; text-decoration: none; }
.bof-footer__widget a:hover { color: var(--bof-secondary); }
.bof-footer__widget p { color: #C9BCA9; font-size: 0.9rem; }
.bof-footer__widget img { max-width: 100%; }

/* =========================================================
   16. Announcement bar + buttons
   ========================================================= */
.bof-announcement {
	background: var(--bof-primary);
	color: var(--bof-cream);
	text-align: center;
	font-family: var(--bof-font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	padding: 8px 16px;
}
.bof-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--bof-primary);
	color: var(--bof-cream);
	border: 2px solid var(--bof-primary);
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.bof-btn:hover { background: var(--bof-primary-dark); border-color: var(--bof-primary-dark); transform: translateY(-1px); }
.bof-social-list {
	display: flex;
	align-items: center;
	gap: 10px;
}
.bof-social-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--bof-line);
	color: var(--bof-ink);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bof-social-list a:hover { background: var(--bof-secondary); border-color: var(--bof-secondary); color: var(--bof-ink); }
.bof-social-list svg { width: 16px; height: 16px; fill: currentColor; }

/* On the footer's dark background, the default light-header colors
   (dark icon, light border) would be nearly invisible -- flip both. */
.bof-footer .bof-social-list { margin-top: 16px; }
.bof-footer .bof-social-list a { color: var(--bof-cream); border-color: rgba(255, 255, 255, 0.25); }
.bof-footer .bof-social-list a:hover { background: var(--bof-secondary); border-color: var(--bof-secondary); color: var(--bof-ink); }

/* =========================================================
   17. Blog post cards + single post (featured image / author / date)
   ========================================================= */
.bof-post-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}
@media (max-width: 720px) { .bof-post-grid { grid-template-columns: 1fr; } }

.bof-post-card {
	display: flex;
	flex-direction: column;
	background: var(--bof-paper);
	border: 1px solid var(--bof-line);
	border-radius: var(--bof-radius);
	overflow: hidden;
}
.bof-post-card__media { display: block; }
.bof-post-card__media img { width: 100%; height: 220px; object-fit: cover; }
.bof-post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.bof-post-card__title { font-size: 1.4rem; text-transform: none; }
.bof-post-card__title a { text-decoration: none; color: var(--bof-ink); }
.bof-post-card__title a:hover { color: var(--bof-secondary); }
.bof-post-card__excerpt { color: var(--bof-stone); font-size: 0.95rem; }

.bof-entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--bof-font-mono);
	font-size: 0.78rem;
	color: var(--bof-stone);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.bof-entry-meta__author { display: inline-flex; align-items: center; gap: 6px; }
.bof-entry-meta__author a { color: var(--bof-stone); text-decoration: none; }
.bof-entry-meta__author a:hover { color: var(--bof-secondary); }
.bof-entry-meta__avatar { border-radius: 50%; display: block; }
.bof-entry-meta__sep { opacity: 0.5; }

.bof-single-post__header { padding-top: 24px; padding-bottom: 20px; }
.bof-single-post__title { font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: none; margin-bottom: 12px; }
.bof-single-post__media { margin-bottom: 32px; }
.bof-single-post__media img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--bof-radius); }
.bof-single-post__content { padding-bottom: 24px; }

.bof-related-posts { padding: 24px 0 8px; border-top: 1px solid var(--bof-line); }
.bof-related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 16px;
}
@media (max-width: 720px) { .bof-related-posts__grid { grid-template-columns: 1fr; } }
.bof-related-posts__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--bof-ink);
}
.bof-related-posts__media { border-radius: var(--bof-radius); overflow: hidden; margin-bottom: 10px; background: var(--bof-line); }
.bof-related-posts__media img { width: 100%; height: 160px; object-fit: cover; display: block; }
.bof-related-posts__media-placeholder {
	height: 160px;
	background: repeating-linear-gradient(135deg, var(--bof-line), var(--bof-line) 10px, #f1e8d6 10px, #f1e8d6 20px);
}
.bof-related-posts__title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.bof-related-posts__card:hover .bof-related-posts__title { color: var(--bof-secondary); }
.bof-related-posts__date { font-family: var(--bof-font-mono); font-size: 0.78rem; color: var(--bof-stone); }

.bof-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 0 40px;
	border-top: 1px solid var(--bof-line);
	margin-top: 8px;
	flex-wrap: wrap;
}
.bof-post-nav a { text-decoration: none; font-weight: 600; color: var(--bof-ink); }
.bof-post-nav a:hover { color: var(--bof-secondary); }
.bof-post-nav__next { margin-left: auto; text-align: right; }
.bof-empty-state { color: var(--bof-stone); padding: 40px 0; }
