﻿/*
Theme Name: Sheetz Menu
Theme URI: https://example.com
Author: Anant Mundhra
Description: A menu-board-and-nutrition-label inspired theme built out for Sheetz: full menu with dish pages, nutrition facts, a build-a-meal calculator, and a store locator (OpenStreetMap-powered, with amenities like fuel, EV charging, and car wash) 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 > Sheetz Menu Colors.
Version: 7.20.1
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: #1A1A1A;
	--bof-cream: #F2F2F2;
	--bof-paper: #FFFFFF;

	/* Brand tokens -- editable from Customizer > Sheetz Menu Colors.
	   Secondary is a true mid-gray (not a near-black charcoal) so it
	   reads as visibly distinct from --bof-ink -- a dark charcoal here
	   would blend into the black text/backgrounds and make the whole
	   palette read as "black and white" instead of "red and gray". */
	--bof-primary: #DD132C;
	--bof-primary-dark: #A80E22;
	--bof-secondary: #4B5157;

	/* 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: #5B5F60;
	--bof-line: #DEDEDE;

	--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-ink); }

/* =========================================================
   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 {
	font-size: 1.125rem;
	line-height: 1.75;
}
/* Always its own inner div nested inside a plain .bof-section__inner
   (never combined with .bof-section__inner's own max-width/padding on
   the same element -- two competing max-widths on one element, resolved
   only by CSS source order, was fragile and made this reading column
   center inconsistently relative to a full-width sibling like the post
   title header). This way it centers unambiguously within that outer
   1180px track every time. */
.bof-prose--capped { max-width: 860px; margin-left: auto; margin-right: auto; }
/* :where(.bof-prose) carries zero specificity for the .bof-prose part, so
   any shortcode/component's own heading class (e.g. .bof-section__title--sm
   on the nutrition calculator's "Your Meal" <h2>, or .bof-location-card__name
   on a location card's <h3>) naturally wins over these defaults without a
   specificity fight -- .bof-prose is now applied on every page (even ones
   built mostly out of wide components like the calculator or fuel widget),
   so these rules must only ever style genuine block-editor content, never
   reach into a widget's own internal headings. */
:where(.bof-prose) > *:first-child { margin-top: 0; }
:where(.bof-prose) h2, :where(.bof-prose) h3, :where(.bof-prose) h4 {
	line-height: 1.2;
	margin-top: 2em;
	margin-bottom: 0.6em;
}
:where(.bof-prose) h2 { font-size: 1.9rem; }
:where(.bof-prose) h3 { font-size: 1.5rem; }
:where(.bof-prose) h4 { font-size: 1.2rem; }
:where(.bof-prose) p { margin: 0 0 1.4em; }
:where(.bof-prose) ul, :where(.bof-prose) ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
	list-style: revert;
}
:where(.bof-prose) ul { list-style-type: disc; }
:where(.bof-prose) ol { list-style-type: decimal; }
:where(.bof-prose) li { margin-bottom: 0.5em; }
:where(.bof-prose) li > ul, :where(.bof-prose) li > ol { margin-top: 0.5em; margin-bottom: 0; }
:where(.bof-prose) blockquote {
	margin: 0 0 1.4em;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--bof-primary);
	color: var(--bof-stone);
	font-style: italic;
}
:where(.bof-prose) a { color: var(--bof-primary); text-decoration: underline; text-underline-offset: 2px; }
:where(.bof-prose) img { border-radius: var(--bof-radius); margin: 0.4em 0 1.4em; }
:where(.bof-prose) hr { border: none; border-top: 1px solid var(--bof-line); margin: 2em 0; }
:where(.bof-prose) table { margin: 0 0 1.4em; }

/* =========================================================
   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; }

/* =========================================================
   3. Header / nav
   ========================================================= */
.bof-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bof-paper);
	border-top: 4px solid var(--bof-primary);
	border-bottom: 1px solid var(--bof-line);
}
.bof-header__inner {
	max-width: var(--bof-max);
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	flex-direction: row;
	direction: ltr;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.bof-header__inner .bof-brand { order: 1; margin-right: auto; }
.bof-header__inner .bof-nav-toggle { order: 2; }
.bof-header__inner .bof-nav { order: 3; }
.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: 12px;
	flex-wrap: wrap;
}
.bof-nav__list a {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 7px 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
/* (hover: hover) keeps this off touchscreens -- without it, tapping a
   link on mobile leaves it "stuck" hovered until something else is
   tapped, which is exactly what looked like a wrong current-page
   indicator on a page the visitor had already navigated away from. */
@media (hover: hover) and (pointer: fine) {
	.bof-nav__list a:hover { border-color: var(--bof-primary); }
}
.bof-nav__list .current-menu-item a {
	background: var(--bof-primary);
	border-color: var(--bof-primary);
	color: var(--bof-paper);
}

/* ---- Dropdown submenus ---- */
.bof-nav__list li { position: relative; }
.bof-nav__list .sub-menu {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* The link's own right padding (7px 16px, sized for its pill shape) is
   what was pushing the toggle so far from the label -- tighten it only
   when a toggle actually follows, rather than shrinking every link. */
.bof-nav__list .menu-item-has-children > a { padding-right: 6px; }
.bof-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	margin-left: 0;
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	vertical-align: middle;
}
.bof-submenu-toggle::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.menu-item-has-children.is-open > .bof-submenu-toggle::after { transform: rotate(-135deg); }

@media (min-width: 721px) {
	.bof-nav__list .sub-menu {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		min-width: 210px;
		background: var(--bof-paper);
		border: 1px solid var(--bof-line);
		border-radius: 10px;
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
		padding: 6px;
		z-index: 20;
	}
	.bof-nav__list .sub-menu li { width: 100%; }
	.bof-nav__list .sub-menu a { display: block; border-radius: 8px; padding: 8px 14px; }
	.bof-nav__list .sub-menu .sub-menu { top: -6px; left: calc(100% + 8px); }
	.bof-nav__list .menu-item-has-children:hover > .sub-menu,
	.bof-nav__list .menu-item-has-children:focus-within > .sub-menu,
	.bof-nav__list .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}
}

.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); }
.bof-nav-toggle.is-open .bof-nav-toggle__bar { background: var(--bof-paper); }
.bof-nav-toggle.is-open { background: var(--bof-primary); border-color: var(--bof-primary); }

@media (max-width: 720px) {
	.bof-header__inner {
		gap: 10px;
		justify-content: space-between !important;
	}
	.bof-header__inner .bof-brand {
		order: 1 !important;
		flex: 1 1 auto;
		min-width: 0;
		margin-right: auto !important;
		text-align: left !important;
	}
	.bof-header__inner .bof-nav-toggle {
		order: 2 !important;
		display: flex;
		flex-shrink: 0;
	}
	.bof-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bof-paper);
		border-bottom: 1px solid var(--bof-line);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.bof-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.bof-nav__list { flex-direction: column; gap: 6px; padding: 8px 24px 20px; }
	.bof-nav__list li { display: flex; align-items: center; flex-wrap: wrap; }
	.bof-nav__list a { display: block; flex: 1 1 auto; padding: 10px 16px; border-radius: 10px; }
	/* Rounded rectangle here, not the desktop pill -- a 999px radius on a
	   full-width block just rounds the far left/right ends, which reads
	   oddly on a stacked mobile list. */
	.bof-nav__list .current-menu-item a { border-radius: 10px; }
	.bof-nav__list .sub-menu {
		flex: 1 1 100%;
		padding-left: 16px;
		margin: 4px 0 4px 10px;
		border-left: 2px solid var(--bof-line);
	}
	.bof-nav__list .menu-item-has-children.is-open > .sub-menu { display: block; }
	.bof-btn { padding: 8px 14px; font-size: 0.8rem; }
}

/* =========================================================
   4. Hero
   ========================================================= */
.bof-hero {
	/* Red is the theme's primary/dominant color, so the hero -- the
	   biggest, first-seen block on the site -- carries it directly
	   instead of black. Black shows up here only as a small, deliberate
	   accent (the eyebrow text and bottom bar below), not as the
	   background itself. */
	background: var(--bof-primary);
	color: var(--bof-paper);
	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: var(--bof-ink);
}
.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-paper);
}
.bof-hero__sub {
	font-size: 1.1rem;
	color: #FFE1E5;
	max-width: 520px;
	margin: 0 auto 32px;
}
.bof-hero__search { margin-bottom: 32px; }
.bof-hero__arrow {
	display: inline-flex;
	color: var(--bof-ink);
	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;
}
/* margin-top/line-height pinned explicitly (not just left to the h1-h4
   reset) so these -- the theme's own UI heading classes, used all over
   shortcode components like the calculator and locations, never the
   block editor -- can't inherit .bof-prose's block-editor heading spacing
   just because .bof-prose is now applied on every page (including wide
   ones built mostly out of components), regardless of selector order. */
.bof-section__title {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	text-transform: uppercase;
	margin-top: 0;
	line-height: 0.95;
}
.bof-section__title--sm {
	font-size: 1.5rem;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 20px;
	line-height: 0.95;
}

/* =========================================================
   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:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(32, 26, 23, 0.1);
}

/* Image cards: a framed photo in a fixed box at the top (not stretched
   to fill whatever height the card happens to be), with a clean white
   area below for the name and item count. Sheetz's own category images
   are 600x600 (square) -- matching that ratio here means object-fit:
   cover has nothing to actually crop, so the full image always shows. */
.bof-category-card--has-image {
	padding: 0;
	min-height: 0;
}
.bof-category-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	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;
	background: var(--bof-line);
}
.bof-dish-card__media img,
.bof-dish-card__media-placeholder {
	display: block;
	width: 100%;
	/* Sheetz's own dish photos are 600x600 (square) -- matching that
	   ratio here means object-fit: cover has nothing to actually crop. */
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.bof-dish-card__media-placeholder {
	background: repeating-linear-gradient(135deg, var(--bof-line), var(--bof-line) 10px, #ECECEC 10px, #ECECEC 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-primary);
	color: var(--bof-paper);
	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-primary); }
.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; }
.bof-category-head__search { margin: 20px 0 0; }
.bof-category-head__search .bof-menu-search { max-width: 440px; margin: 0; }

/* =========================================================
   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);
}
/* Sheetz's own dish photos are 600x600 (square) -- matching that ratio
   here means object-fit: cover has nothing to actually crop. */
.bof-dish__media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.bof-dish__media-placeholder {
	aspect-ratio: 1 / 1;
	background: repeating-linear-gradient(135deg, var(--bof-line), var(--bof-line) 12px, #ECECEC 12px, #ECECEC 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); }

/* =========================================================
   10b. Dish customizer ("Customize This Dish")
   ========================================================= */
.bof-customize {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	align-items: start;
}
@media (max-width: 780px) {
	.bof-customize { grid-template-columns: 1fr; }
}
.bof-customize__options {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.bof-customize__group {
	border: 0;
	margin: 0;
	padding: 0;
}
.bof-customize__group-title {
	font-family: var(--bof-font-display);
	font-weight: 700;
	font-size: 1.1rem;
	text-transform: uppercase;
	margin: 0 0 12px;
	padding: 0;
}
.bof-customize__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 4px;
	border-bottom: 1px solid var(--bof-line);
	cursor: pointer;
}
.bof-customize__option:last-child { border-bottom: none; }
.bof-customize__option input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	accent-color: var(--bof-primary);
	cursor: pointer;
}
.bof-customize__option-name { flex: 1 1 auto; font-weight: 600; }
.bof-customize__option-meta {
	flex-shrink: 0;
	font-family: var(--bof-font-mono);
	font-size: 0.82rem;
	color: var(--bof-stone);
	white-space: nowrap;
}
.bof-customize__summary { position: sticky; top: 90px; }

/* =========================================================
   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 {
	/* Secondary (gray) gets a real, substantial surface here rather than
	   sitting unused -- black stays reserved for body text and small
	   accents so it never competes with red for "the theme's color". */
	background: var(--bof-secondary);
	color: #D9DBDC;
	margin-top: 40px;
}
/* Flex, not a fixed 3-column grid -- .bof-footer__nav only renders when
   a footer menu is actually assigned (footer.php), so a hardcoded
   2fr/1fr/1fr grid was reserving a whole dead column for it whenever
   there wasn't one, leaving most of the row empty next to the brand
   block. Flex lets the brand block actually use that freed-up width,
   and the nav column simply doesn't take up space when absent. */
.bof-footer__inner {
	max-width: var(--bof-max);
	margin: 0 auto;
	padding: 44px 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px 40px;
}
.bof-footer__inner--bordered {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 24px;
}
.bof-footer__brand { flex: 1 1 320px; max-width: 560px; }
.bof-footer__nav { flex: 0 1 auto; }
@media (max-width: 720px) {
	.bof-footer__inner { flex-direction: column; }
	.bof-footer__brand { max-width: none; }
}
.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: 60ch; margin-top: 10px; }
.bof-footer__nav-title {
	display: block;
	font-family: var(--bof-font-display);
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--bof-cream);
	margin-bottom: 10px;
}
.bof-footer__nav ul { display: flex; flex-direction: column; gap: 8px; }
.bof-footer__nav a { text-decoration: none; color: #D9DBDC; }
.bof-footer__nav a:hover { color: var(--bof-primary); }

/* A dedicated full-width bar, not just another item stuffed into the
   flex row above -- that was flex's own "align-self: end" pinning it to
   the bottom of whatever the tallest sibling was, which reads as
   floating in a corner rather than sitting where a copyright line
   normally goes: a clearly separate strip along the very bottom. */
.bof-footer__bar {
	max-width: var(--bof-max);
	margin: 0 auto;
	padding: 20px 24px;
	text-align: center;
}
.bof-footer__bar--bordered { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.bof-footer__copy { font-family: var(--bof-font-mono); font-size: 0.78rem; }

/* =========================================================
   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;
	/* Was 1rem -- identical to the body font's own default size, so a
	   heading in the tighter display font actually read smaller than
	   the plain link text underneath it instead of standing above it. */
	font-size: 1.2rem;
	letter-spacing: 0.01em;
	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 { font-size: 0.92rem; color: #D9DBDC; text-decoration: none; }
.bof-footer__widget a:hover { color: var(--bof-primary); }
.bof-footer__widget p { color: #D9DBDC; 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-primary); border-color: var(--bof-primary); color: var(--bof-paper); }
.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-primary); border-color: var(--bof-primary); color: var(--bof-paper); }

/* =========================================================
   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-primary); }
.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-primary); }
.bof-entry-meta__avatar { border-radius: 50%; display: block; }
.bof-entry-meta__sep { opacity: 0.5; }

.bof-single-post__header { padding-top: 6px; padding-bottom: 20px; }
/* Font-size is untouched (2rem-3.2rem, same as ever) -- fitting a long
   title on one line is bought with letter-spacing (a small, purely
   horizontal squeeze) instead of shrinking the type. A slightly taller
   line-height than the site's default 0.95 (see h1-h4 in section 1)
   only matters once a title runs past ~54 characters and wraps to a
   second line -- at one line it's visually a non-event either way. */
.bof-single-post__title {
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: none;
	margin-bottom: 14px;
}

.bof-single-post__media { margin-bottom: 32px; position: relative; }
.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 .bof-eyebrow { display: block; margin-bottom: 8px; }
.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, #ECECEC 10px, #ECECEC 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-primary); }
.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: 32px 0 40px;
	border-top: 1px solid var(--bof-line);
	margin-top: 16px;
	flex-wrap: wrap;
}
.bof-post-nav > div { flex: 1 1 240px; min-width: 0; }
.bof-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	color: var(--bof-ink);
	background: var(--bof-paper);
	border: 1px solid var(--bof-line);
	border-radius: var(--bof-radius);
	padding: 14px 18px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.bof-post-nav a:hover { border-color: var(--bof-primary); transform: translateY(-2px); }
.bof-post-nav__label {
	font-family: var(--bof-font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bof-primary);
}
.bof-post-nav__post-title {
	font-family: var(--bof-font-display);
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.bof-post-nav__next { text-align: right; margin-left: auto; }
.bof-post-nav__next a { align-items: flex-end; }

/* =========================================================
   18. Comments -- WordPress's own default markup (no custom
   comments.php / wp_list_comments() callback exists in this theme),
   styled here purely by the stable core classes/IDs it always
   outputs. Previously completely unstyled: raw browser-default form
   fields and list markup dropped into an otherwise fully custom-
   designed page read as visibly broken/out of place the moment
   comments were open on any post.
   ========================================================= */
#comments { padding-top: 8px; }
.comments-title,
.comment-reply-title {
	font-family: var(--bof-font-display);
	font-weight: 700;
	font-size: 1.5rem;
	text-transform: uppercase;
	margin: 0 0 20px;
}
.comment-reply-title small a { font-size: 0.6em; text-transform: none; color: var(--bof-primary); }

.comment-list { list-style: none; margin: 0 0 8px; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding: 0 0 0 clamp(16px, 5vw, 40px); }
.comment {
	padding: 20px 0;
	border-bottom: 1px solid var(--bof-line);
}
.comment-author.vcard {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}
.comment-author .avatar { border-radius: 50%; display: block; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata {
	font-family: var(--bof-font-mono);
	font-size: 0.75rem;
	color: var(--bof-stone);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 10px;
}
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-metadata a:hover { color: var(--bof-primary); }
.comment-content p { margin-bottom: 0.8em; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation {
	display: block;
	margin-top: 10px;
	font-size: 0.85rem;
	font-style: italic;
	color: var(--bof-stone);
}
.reply { margin-top: 10px; }
.comment-reply-link,
.comment-edit-link {
	display: inline-flex;
	font-family: var(--bof-font-body);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bof-primary);
	text-decoration: none;
}
.comment-reply-link:hover,
.comment-edit-link:hover { text-decoration: underline; }
.comment-edit-link { color: var(--bof-stone); margin-left: 10px; }

.no-comments { color: var(--bof-stone); font-style: italic; padding: 8px 0 24px; }

.comment-respond {
	background: var(--bof-paper);
	border: 1px solid var(--bof-line);
	border-radius: var(--bof-radius);
	padding: 24px;
	margin-top: 24px;
}
.comment-notes,
.logged-in-as,
.must-log-in { font-size: 0.88rem; color: var(--bof-stone); margin-bottom: 16px; }
.logged-in-as a { color: var(--bof-primary); }
.comment-form p { margin-bottom: 16px; }
.comment-form p:last-child { margin-bottom: 0; }
.comment-form label {
	display: block;
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bof-stone);
	margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--bof-line);
	border-radius: 8px;
	background: var(--bof-cream);
	color: var(--bof-ink);
	font-family: var(--bof-font-body);
	font-size: 0.95rem;
	box-sizing: border-box;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
	outline: 3px solid var(--bof-primary);
	outline-offset: 1px;
}
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label {
	margin-bottom: 0;
	text-transform: none;
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--bof-ink);
}
.form-submit { margin-bottom: 0 !important; }
#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bof-font-body);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 11px 26px;
	border-radius: 999px;
	background: var(--bof-primary);
	color: var(--bof-paper);
	border: 2px solid var(--bof-primary);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
#submit:hover { background: var(--bof-primary-dark); border-color: var(--bof-primary-dark); transform: translateY(-1px); }
.bof-empty-state { color: var(--bof-stone); padding: 40px 0; }
