/*
 * Page sections shared by the templates (the prototype's Section/Container),
 * and the product detail page (PageProduct.jsx).
 */

/* ── Bands and container ───────────────────────────────────────── */

main.wp-block-group { margin: 0; }
main.wp-block-group > * { margin-block: 0; }
.hb-band { margin: 0; padding: 80px 0; }
.hb-band.is-white { background: var(--hb-white); }
.hb-band.is-cloud { background: var(--hb-cloud); }
.hb-band.is-sunken { background: var(--hb-mist-200); }
.hb-band.is-navy { background: var(--hb-navy); color: var(--hb-white); }
.hb-band.is-tight { padding: 48px 0; }
.hb-container.wp-block-group { box-sizing: content-box; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hb-container > * { margin-block: 0; }

/* Breadcrumbs (core/breadcrumbs), as the design's Breadcrumb component. */
.wp-block-breadcrumbs { font-size: 15px; line-height: 1.55; }
.wp-block-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; margin: 0; padding: 0; list-style: none; }
.wp-block-breadcrumbs li { display: flex; align-items: center; margin: 0; }
.wp-block-breadcrumbs li:not(:last-child)::after { margin: 0 8px; opacity: 1; color: var(--hb-slate-300); }
.wp-block-breadcrumbs a {
	color: var(--hb-slate);
	text-decoration: none;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: var(--hb-transition-color);
}
.wp-block-breadcrumbs a:hover { color: var(--hb-navy); text-decoration-line: underline; }
.wp-block-breadcrumbs a:focus-visible { outline: 2px solid var(--hb-focus-ring); outline-offset: 2px; border-radius: var(--hb-radius-xs); }
.wp-block-breadcrumbs [aria-current="page"] { font-weight: 600; color: var(--hb-navy); }

/* ── Product detail ────────────────────────────────────────────── */

.hb-pdp__crumbs { padding: 24px 0; }
.hb-pdp__hero { padding: 32px 0; }
.hb-pdp__grid.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}
.hb-pdp__grid > * { margin: 0; min-width: 0; }
.hb-pdp__summary > * { margin-block: 0; }

/* Gallery */
/*
 * Borderless, as on Ariana Nila: the photos sit on a soft cloud tint (their
 * white backgrounds blend into it), previous/next arrows fade in on hover and
 * are always shown on touch screens; the arrow keys step while focus is in
 * the gallery (view.js).
 */
.hb-gallery { display: flex; flex-direction: column; gap: 12px; }
.hb-gallery__stage { position: relative; height: 360px; background: var(--hb-cloud); border-radius: var(--hb-radius-md); overflow: hidden; }
.hb-gallery__stage img { mix-blend-mode: multiply; }
.hb-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--hb-navy);
	background: rgb(255 255 255 / 0.9);
	border: 0;
	border-radius: 50%;
	box-shadow: var(--hb-shadow-sm);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity var(--hb-base) var(--hb-ease), background-color var(--hb-fast) var(--hb-ease);
}
.hb-gallery__nav svg { width: 20px; height: 20px; }
.hb-gallery__nav.is-prev { left: 14px; }
.hb-gallery__nav.is-next { right: 14px; }
.hb-gallery__stage:hover .hb-gallery__nav,
.hb-gallery:focus-within .hb-gallery__nav { opacity: 1; }
.hb-gallery__nav:hover { background: var(--hb-white); }
.hb-gallery__nav:focus-visible { outline: 2px solid var(--hb-focus-ring); outline-offset: 2px; }
@media (hover: none) {
	.hb-gallery__nav { opacity: 1; }
}
.hb-gallery__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hb-gallery__stage .wp-block-gallery { display: block; height: 100%; margin: 0; }
/* As specific as core's nested-gallery figure rules (display: flex), so only one image shows. */
.hb-gallery__stage .wp-block-gallery.has-nested-images figure.wp-block-image { display: none; width: 100% !important; height: 100%; margin: 0; }
/* Whole images, never cropped (a tall nutrition label fits the frame). */
.hb-gallery__stage .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100% !important; height: 100%; object-fit: contain; }
.hb-gallery__stage[data-shown="0"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(1),
.hb-gallery__stage[data-shown="1"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(2),
.hb-gallery__stage[data-shown="2"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(3),
.hb-gallery__stage[data-shown="3"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(4),
.hb-gallery__stage[data-shown="4"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(5),
.hb-gallery__stage[data-shown="5"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(6),
.hb-gallery__stage[data-shown="6"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(7),
.hb-gallery__stage[data-shown="7"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(8),
.hb-gallery__stage[data-shown="8"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(9),
.hb-gallery__stage[data-shown="9"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(10),
.hb-gallery__stage[data-shown="10"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(11),
.hb-gallery__stage[data-shown="11"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(12),
.hb-gallery__stage[data-shown="12"] .wp-block-gallery.has-nested-images figure.wp-block-image:nth-of-type(13) { display: block; }
.hb-gallery__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hb-gallery__thumb {
	flex: 0 0 auto;
	width: 76px;
	height: 76px;
	padding: 0;
	overflow: hidden;
	background: var(--hb-cloud);
	border: 2px solid transparent;
	border-radius: var(--hb-radius-sm);
	cursor: pointer;
	transition: border-color var(--hb-base) var(--hb-ease);
}
.hb-gallery__thumb:hover { border-color: var(--hb-mist-200); }
.hb-gallery__thumb.is-active { border-color: var(--hb-green); }
.hb-gallery__thumb:focus-visible { outline: 2px solid var(--hb-focus-ring); outline-offset: 2px; }
.hb-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Summary */
.hb-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px !important; }
.hb-pdp__title.wp-block-post-title { margin: 0 0 16px !important; font-size: 40px; line-height: 1.15; }
.hb-pdp__lead.wp-block-paragraph { margin: 0 0 24px !important; max-width: 46ch; font-size: 18px; line-height: 1.7; color: var(--hb-slate); }
.hb-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0 0 24px !important;
	padding: 20px 0;
	border-top: 1px solid var(--hb-mist);
	border-bottom: 1px solid var(--hb-mist);
	font-variant-numeric: tabular-nums;
}
.hb-facts dt { color: var(--hb-muted); margin-bottom: 6px; }
.hb-facts dd { margin: 0; font-weight: 600; color: var(--hb-navy); }
.hb-tip { position: relative; display: inline-block; border-bottom: 1px dotted var(--hb-harbor); cursor: help; }
.hb-tip__text {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	z-index: 5;
	padding: 6px 10px;
	border-radius: var(--hb-radius-sm);
	background: var(--hb-navy);
	color: var(--hb-white);
	font: 400 13px/1.3 var(--hb-font-sans);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--hb-fast) var(--hb-ease);
}
.hb-tip:hover .hb-tip__text,
.hb-tip:focus-visible .hb-tip__text { opacity: 1; }
.hb-product-actions.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 24px !important; }
.hb-product-actions .wp-block-button { margin: 0; }
.hb-alert { margin: 0; }
.hb-alert p { margin: 0; }
.hb-alert p.hb-alert__title { margin-bottom: 4px; }
.hb-alert__body { color: var(--hb-slate); }

/* Tabs (core/tabs) as the design's Tabs component */
.hb-pdp__details { padding: 80px 0; }
.hb-tabs .wp-block-tab-list {
	display: flex;
	gap: 24px;
	margin: 0 0 32px;
	border-bottom: 1px solid var(--hb-mist);
}
.hb-tabs .wp-block-tab-list button {
	margin: 0 0 -1px;
	padding: 0 0 12px;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	font: 600 15px/1 var(--hb-font-sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hb-muted);
	cursor: pointer;
	transition: var(--hb-transition-color);
}
.hb-tabs .wp-block-tab-list button:hover { color: var(--hb-harbor); }
.hb-tabs .wp-block-tab-list button[aria-selected="true"] { color: var(--hb-navy); border-bottom-color: var(--hb-navy); }
.hb-tabs .wp-block-tab-panels,
.hb-tabs .wp-block-tab-panel { margin: 0; padding: 0; border: 0; background: none; }
.hb-tabs .wp-block-tab-panel:focus-visible { outline: 2px solid var(--hb-harbor); outline-offset: 4px; }

/* The Ingredients card keeps its own height instead of stretching to the spec table's (HAR-26). */
.hb-pdp__spec.wp-block-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.hb-pdp__spec > * { margin: 0; }

/* Spec table (the design's SpecTable) */
.hb-spec-table { border: 1px solid var(--hb-mist); border-radius: var(--hb-radius-lg); overflow: hidden; background: var(--hb-white); }
.hb-spec-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.hb-spec-table caption {
	caption-side: top;
	text-align: left;
	padding: 16px 20px;
	font: 600 12px/1.2 var(--hb-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hb-navy);
	background: var(--hb-white);
}
.hb-spec-table thead th {
	padding: 12px 20px;
	background: var(--hb-mist-200);
	font: 600 12px/1.2 var(--hb-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hb-navy);
	text-align: left;
	border-bottom: 1px solid var(--hb-mist);
	white-space: nowrap;
}
.hb-spec-table tbody th,
.hb-spec-table tbody td { padding: 12px 20px; font-weight: 400; color: var(--hb-slate); text-align: left; border-bottom: 1px solid var(--hb-mist); }
.hb-spec-table tbody tr:last-child > * { border-bottom: 0; }
.hb-spec-table .is-end { text-align: right !important; }

.hb-card.hb-pdp__ingredients { padding: 32px; }
.hb-pdp__ingredients > * { margin-block: 0; }
.hb-pdp__ingredients > .is-style-eyebrow { margin-bottom: 20px; }
.hb-pdp__ingredients .hb-pdp__ingredient-list { font-size: 15px; line-height: 1.7; }
.hb-pdp__ingredients .hb-pdp__contains { margin-top: 16px; font-size: 15px; line-height: 1.7; font-weight: 600; color: var(--hb-navy); }
.hb-pdp__ingredients .hb-pdp__notes { margin-top: 8px; font-size: 15px; line-height: 1.7; }
/* Production and engineering notes read as one paragraph, as in the design. */
.hb-pdp__notes > p { display: inline; margin: 0; }
.hb-pdp__notes > p + p::before { content: " "; }

/* Nutrition */
.hb-nutrition { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hb-nutrition__label { flex: 0 0 420px; max-width: 100%; height: 520px; background: var(--hb-white); border: 1px solid var(--hb-mist); border-radius: var(--hb-radius-md); overflow: hidden; }
.hb-nutrition__label img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hb-nutrition__text { flex: 1 1 260px; min-width: 0; }
.hb-nutrition__text p { margin: 0; }
.hb-nutrition__text p:not(.is-style-eyebrow) { margin-top: 16px; max-width: 44ch; font-size: 15px; line-height: 1.7; }
.hb-nutrition > .hb-alert { max-width: 520px; }

/* Related */
.hb-pdp__related { padding: 48px 0; }
.hb-related__title.is-style-eyebrow { margin: 0 0 20px; }
.hb-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.hb-related__card { position: relative; display: flex; flex-direction: column; padding: 0; margin: 0; overflow: hidden; }
/* Flat photo cards everywhere, as on the listing (see .hb-product-card). */
.hb-related__card.hb-card,
.hb-show-card.hb-card { border: 0; box-shadow: none; transition: box-shadow var(--hb-base) var(--hb-ease), transform var(--hb-base) var(--hb-ease); }
.hb-related__card.hb-card:hover,
.hb-show-card.hb-card:hover { box-shadow: var(--hb-shadow-md); transform: translateY(-2px); }
.hb-related__card > * { margin: 0; }
/* The photo, as on the listing cards (HAR-26). */
.hb-related__image { height: 150px; overflow: hidden; background: var(--hb-cloud); border-radius: var(--hb-radius-lg); }
.hb-related__image img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s var(--hb-ease); }
.hb-related__card:hover .hb-related__image img { transform: scale(1.04); }
.hb-related__body { padding: 16px 16px 20px; }
.hb-related__body > * { margin: 0; }
.hb-related__code { color: var(--hb-muted); margin-bottom: 6px; }
.hb-related__name { margin: 0 0 6px; font: 700 18px/1.3 var(--hb-font-display); }
.hb-related__name a { color: var(--hb-navy); text-decoration: none; }
.hb-related__name a::after { content: ""; position: absolute; inset: 0; }
.hb-related__card:has(a:focus-visible) { outline: 2px solid var(--hb-harbor); outline-offset: 2px; }
.hb-related__name a:focus-visible { outline: none; }
.hb-related__meta { font-size: 15px; color: var(--hb-slate); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
	.hb-pdp__grid.wp-block-group { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.hb-gallery__stage { height: 280px; }
	.hb-pdp__spec.wp-block-group { grid-template-columns: minmax(0, 1fr); }
	.hb-related__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Products listing and category pages (PageProducts.jsx) ────── */

.hb-container.is-narrow.wp-block-group { max-width: 720px; }
.hb-catalog__crumbs { padding: 24px 0; }
.hb-catalog__head { padding: 8px 0; }
.hb-catalog__head .hb-catalog__title { margin: 0 0 12px; font-size: 40px; line-height: 1.15; }
.hb-catalog__head .hb-catalog__intro { margin: 0 0 32px; max-width: 56ch; font-size: 18px; line-height: 1.7; color: var(--hb-slate); }
.hb-cat-hero.wp-block-image { margin: 0 0 24px; aspect-ratio: 1200 / 280; border-radius: var(--hb-radius-lg); overflow: hidden; background: var(--hb-mist-200); }
.hb-cat-hero.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hb-catalog__grid.wp-block-group { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.hb-catalog__grid > * { margin: 0; min-width: 0; }

/* Rail */
.hb-filters { position: sticky; top: calc(var(--hb-header-top) + 24px + var(--hb-header-h)); transition: top var(--hb-base) var(--hb-ease); display: flex; flex-direction: column; gap: 24px; }
.hb-filters > * { margin: 0; }
.hb-filters__cats .hb-label { margin: 0 0 20px; }
.hb-filters__cats ul { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hb-filters__cats li { margin: 0; }
.hb-filters__cat {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	border-radius: var(--hb-radius-sm);
	font: 400 16px/1.4 var(--hb-font-sans);
	color: var(--hb-slate);
	text-decoration: none;
	transition: var(--hb-transition-color);
}
.hb-filters__cat:hover { background: var(--hb-mist-200); color: var(--hb-navy); text-decoration: none; }
.hb-filters__cat.is-current { background: var(--hb-navy-100); color: var(--hb-navy); font-weight: 600; }
.hb-filters__count { color: var(--hb-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
/* On the navy-100 highlight, muted text is 3.96:1; slate passes (6.84:1). */
.hb-filters__cat.is-current .hb-filters__count { color: var(--hb-slate); }
/* Search and categories apply themselves; the Apply button stays visible for anyone who looks for it (review M5). */
.hb-filters__submit.hb-button { align-self: flex-start; }

/* Results */
.hb-catalog__results > * { margin: 0; }
.hb-catalog__bar.wp-block-group { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hb-catalog__bar > * { margin: 0; }
.hb-catalog-count { margin: 0; font-size: 15px; color: var(--hb-muted); }
.hb-catalog__actions.wp-block-group { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.hb-catalog__actions > * { margin: 0; }
.hb-catalog-download { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hb-catalog-download__date { margin: 0; font-size: 13px; color: var(--hb-muted); }
/* Category pages: Request pricing sits under the intro (review 2026-10-08); the results bar keeps the catalog PDF. */
.hb-catalog__head .hb-catalog__intro:has(+ .hb-catalog__pricing) { margin-bottom: 20px; }
.hb-catalog__head .hb-catalog__pricing.wp-block-buttons { margin: 0 0 32px; }

.hb-catalog__query > * { margin: 0; }
.hb-product-grid.wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.hb-product-grid > li { margin: 0; min-width: 0; }
/* 761–1024: a narrower rail and smaller minimum card keep two columns of cards (review M4). */
@media (min-width: 761px) and (max-width: 1024px) {
	.hb-catalog__grid.wp-block-group { grid-template-columns: 200px 1fr; gap: 32px; }
	/* Each category stays on one line in the narrower rail. */
	.hb-filters__cat { padding-inline: 8px; gap: 8px; white-space: nowrap; }
	.hb-product-grid.wp-block-post-template { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
}
.hb-product-card.wp-block-group {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	background: var(--hb-white);
	border: 0;
	border-radius: var(--hb-radius-lg);
	box-shadow: none;
	overflow: hidden;
	transition: box-shadow var(--hb-base) var(--hb-ease), transform var(--hb-base) var(--hb-ease);
}
.hb-product-card > * { margin: 0; }
/* Flat, borderless (as on Ariana Nila): the photo sits on a cloud tint, the card lifts on hover. */
.hb-product-card:hover { box-shadow: var(--hb-shadow-md); transform: translateY(-2px); }
.hb-product-card:has(a:focus-visible) { outline: 2px solid var(--hb-harbor); outline-offset: 2px; }
.hb-product-card__image.wp-block-post-featured-image { height: 150px; margin: 0; overflow: hidden; background: var(--hb-cloud); border-radius: var(--hb-radius-lg); }
.hb-product-card__image img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s var(--hb-ease); }
.hb-product-card:hover .hb-product-card__image img { transform: scale(1.04); }
.hb-product-card__body.wp-block-group { padding: 16px 16px 20px; }
.hb-product-card__body > * { margin: 0; }
.hb-product-card__code.hb-label { margin-bottom: 6px; color: var(--hb-muted); }
.hb-product-card__title.wp-block-post-title { margin: 0 0 12px; font: 700 18px/1.3 var(--hb-font-display); }
.hb-product-card__title a { color: var(--hb-navy); text-decoration: none; }
.hb-product-card__title a::after { content: ""; position: absolute; inset: 0; }
.hb-product-card__title a:focus-visible { outline: none; }
.hb-product-card .hb-pack { margin: 0 0 16px; font-size: 15px; color: var(--hb-slate); font-variant-numeric: tabular-nums; }
.hb-product-card .hb-badges { margin: 0 !important; }
.hb-catalog__empty { font-size: 16px; color: var(--hb-muted); }

/* Catalogs list (All products) */
.hb-catalogs { margin-top: 48px; }
.hb-catalogs h2.is-style-eyebrow { font-size: 12px; }
.hb-catalogs__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hb-catalogs__list li { margin: 0; }
.hb-catalogs__list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; text-decoration: none; }
.hb-catalogs__name { font: 700 18px/1.3 var(--hb-font-display); color: var(--hb-navy); }
.hb-catalogs__meta { font-size: 13px; color: var(--hb-muted); }

/*
 * Allergen band: a calm full-width note with a round icon, instead of the
 * design's narrow warning alert (docs/design-deviations.md).
 */
.hb-allergen-band .hb-alert {
	align-items: center;
	gap: 20px;
	padding: 24px 28px;
	background: var(--hb-warning-100);
	border: 0;
	border-radius: var(--hb-radius-lg);
}
.hb-allergen-band .hb-alert::before {
	content: "";
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background:
		var(--hb-warning) center / 24px no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
}
.hb-allergen-band .hb-alert > * { margin: 0; }
.hb-allergen-band .hb-alert__title { margin-bottom: 4px; font: 700 18px/1.3 var(--hb-font-display); }
.hb-allergen-band .hb-alert__body { font-size: 15px; line-height: 1.6; color: var(--hb-slate); }

/*
 * Phones (HAR-27): the rail becomes a compact bar above the results: search
 * and Apply on one row, then every category as a chip, wrapped onto as many
 * rows as they need (the review asked for them all to show, not a sideways
 * scroll). It bleeds to the screen edges.
 */
@media (max-width: 760px) {
	.hb-catalog__grid.wp-block-group { grid-template-columns: 1fr; gap: 20px; }
	/* The catalog PDF button takes the full width and its long label wraps. */
	.hb-catalog__actions.wp-block-group { flex: 1 1 100%; }
	.hb-catalog-download { flex: 1 1 100%; align-items: stretch; }
	.hb-catalog-download a.hb-button { height: auto; min-height: 40px; padding-block: 8px; white-space: normal; text-align: center; line-height: 1.4; }
	.hb-filters {
		position: static;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px 16px;
		margin: 0 -24px;
		padding: 12px 24px;
		background: var(--hb-white);
		border-bottom: 1px solid var(--hb-mist);
	}
	.hb-filters .hb-field { grid-column: 1; }
	.hb-filters .hb-field label,
	.hb-filters__cats .hb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.hb-filters .hb-field input { height: 40px; text-overflow: ellipsis; }
	.hb-filters .hb-switch { grid-column: 1 / -1; gap: 8px; }
	.hb-filters .hb-switch span { font-size: 14px; line-height: 1.25; }
	.hb-filters__submit.hb-button { grid-column: 2; grid-row: 1; align-self: stretch; }
	.hb-filters__cats { grid-column: 1 / -1; }
	.hb-filters__cats ul {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	.hb-filters__cats li { flex: 0 0 auto; }
	.hb-filters__cat {
		align-items: center;
		gap: 6px;
		min-height: 36px;
		box-sizing: border-box;
		padding: 6px 14px;
		border: 1px solid var(--hb-mist);
		border-radius: 999px;
		font-size: 15px;
		white-space: nowrap;
	}
	.hb-filters__cat.is-current { border-color: var(--hb-navy-100); }
}

/* Below 600 px: two columns of compact cards instead of one column of tall ones. */
@media (max-width: 600px) {
	.hb-product-grid.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hb-product-card__image.wp-block-post-featured-image { height: 120px; }
	.hb-product-card__body.wp-block-group { padding: 12px; }
	.hb-product-card__code.hb-label { margin-bottom: 4px; letter-spacing: 0.08em; overflow-wrap: anywhere; }
	.hb-product-card__title.wp-block-post-title { margin-bottom: 6px; font-size: 15px; overflow-wrap: anywhere; }
	.hb-product-card .hb-pack { margin-bottom: 8px; font-size: 13px; }
}

/* ── Home hero (harvest/hero; PageHome.jsx) ─────────────────────── */

.hb-hero { position: relative; min-height: 660px; margin: 0; background: var(--hb-navy); color: var(--hb-white); overflow: hidden; }
.hb-hero__slides { display: grid; min-height: 660px; }
.hb-hero__slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: 660px; opacity: 0; visibility: hidden; transition: opacity 600ms var(--hb-ease), visibility 0s linear 600ms, transform 600ms var(--hb-ease); }
.hb-hero__slide.is-current { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hb-hero.is-slide .hb-hero__slide { transform: translateX(6%); }
.hb-hero.is-slide .hb-hero__slide.is-current { transform: none; }
.hb-hero__media { position: absolute; inset: 0; margin: 0; }
.hb-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Two protection scrims (brand guide): a left ramp for the copy, a top one for the transparent header. */
.hb-hero__scrims { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(20, 42, 66, .94) 0%, rgba(20, 42, 66, .88) 30%, rgba(20, 42, 66, .55) 52%, rgba(20, 42, 66, .12) 72%, rgba(20, 42, 66, 0) 88%); }
.hb-hero__scrims::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 260px; background: linear-gradient(to bottom, rgba(20, 42, 66, .78) 0%, rgba(20, 42, 66, .62) 55%, rgba(20, 42, 66, 0) 100%); }
/* The prototype's container: width 100% plus padding, so it is exactly as wide as its copy expects. */
.hb-hero__inner { position: relative; box-sizing: content-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 220px 24px 64px; }
.hb-hero__copy { max-width: 46%; min-width: min(100%, 340px); }
.hb-hero__copy > * { margin-top: 0; }
.hb-hero .hb-hero__eyebrow.is-style-eyebrow { color: rgba(255, 255, 255, 0.75); }
.hb-hero .hb-hero__eyebrow.is-style-eyebrow::after { background: rgba(255, 255, 255, 0.35); }
.hb-hero .hb-hero__heading { margin: 0 0 20px; max-width: 26ch; font: 700 52px/1.15 var(--hb-font-display); color: var(--hb-white); text-wrap: balance; }
.hb-hero .hb-hero__text { margin: 0 0 32px; max-width: 44ch; font-size: 18px; line-height: 1.7; color: var(--hb-white); }
.hb-hero .hb-hero__buttons.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0; }
.hb-hero .hb-hero__buttons .wp-block-button { margin: 0; }

/* Poster only (phones, reduced motion): hide the video, show the poster image. */
.hb-hero.is-video .hb-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-hero.is-video .hb-hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-hero.is-poster-only .hb-hero__video { display: none; }

/* Controls: only rendered with two or more slides, or a video. */
.hb-hero__controls { position: absolute; right: max(24px, (100% - 1200px) / 2); bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.hb-hero__arrow,
.hb-hero__pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(20, 42, 66, 0.55);
	color: var(--hb-white);
	font: 400 22px/1 var(--hb-font-sans);
	cursor: pointer;
	transition: var(--hb-transition-color);
}
.hb-hero__arrow:hover,
.hb-hero__pause:hover { background: rgba(20, 42, 66, 0.85); border-color: var(--hb-white); }
.hb-hero__dots { display: flex; gap: 4px; }
.hb-hero__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hb-hero__dot::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; border: 1px solid var(--hb-white); background: transparent; }
.hb-hero__dot.is-current::before { background: var(--hb-white); }
.hb-hero__pause-icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.hb-hero__pause.is-paused .hb-hero__pause-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

@media (max-width: 760px) {
	.hb-hero__inner { padding-top: 150px; }
	/* The design keeps 52 px on phones (eight lines at 375 px); scale it down instead. */
	.hb-hero .hb-hero__heading { margin-bottom: 16px; font-size: clamp(32px, calc(6vw + 10px), 44px); line-height: 1.15; }
	.hb-hero .hb-hero__text { margin-bottom: 28px; font-size: 16px; line-height: 1.6; }
	/* The copy spans the whole photo on phones: an even scrim keeps it 4.5:1 over the brightest parts (HAR-29). */
	.hb-hero__scrims { background: rgba(20, 42, 66, 0.78); }
}
@media (prefers-reduced-motion: reduce) {
	.hb-hero__slide { transition: none; transform: none !important; }
}

/* Editor preview */
.hb-hero.is-editor { display: flex; align-items: center; background-color: var(--hb-navy); }
.hb-hero.is-editor .hb-hero__inner { padding-top: 120px; }

/* ── Home sections (PageHome.jsx) ──────────────────────────────── */

.hb-home, .hb-home__content { margin: 0; }
.hb-home__content > * { margin-block: 0; }
.hb-home__content > .hb-hero { max-width: none; }
p.is-lead { font-size: 18px; line-height: 1.7; color: var(--hb-slate); }
.hb-section-head { margin-bottom: 32px; }
.hb-section-head > * { margin: 0; }
.hb-section-head > .is-style-eyebrow { margin-bottom: 20px; }
.hb-section-head > h2 { margin: 0 0 12px; }
.hb-section-head > .is-lead { max-width: 54ch; }

/* Retailers */
.hb-retailers { padding: 32px 0; border-bottom: 1px solid var(--hb-mist); }
.hb-retailers__row.wp-block-group { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hb-retailers__row > * { margin: 0; }
.hb-retailers__label { color: var(--hb-muted); white-space: nowrap; }
.hb-retailers__logos.wp-block-group { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hb-retailers__logos > * { margin: 0; }
.hb-retailers__logo.wp-block-image { box-sizing: border-box; height: 132px; margin: 0; padding: 12px; background: var(--hb-white); border: 1px solid var(--hb-mist); border-radius: var(--hb-radius-md); overflow: hidden; }
.hb-retailers__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Scrolling strip (Teamatico Starter's strip.js adds the track, a copy of the logos and the pause button). */
.hb-retailers__logos.is-marquee { display: block; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.hb-retailers .tm-strip__track { display: flex; width: max-content; animation: hb-marquee var(--tm-strip-time, 20s) linear infinite; }
.hb-retailers .tm-strip__track > .hb-retailers__logo.wp-block-image { flex: 0 0 200px; margin: 0 24px 0 0; }
.hb-retailers__logos.is-paused .tm-strip__track,
.hb-retailers__logos:hover .tm-strip__track,
.hb-retailers__logos:focus-within .tm-strip__track { animation-play-state: paused; }
@keyframes hb-marquee { to { transform: translateX(-50%); } }
.hb-retailers .tm-strip__pause {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--hb-mist);
	border-radius: 50%;
	background: var(--hb-white);
	color: var(--hb-navy);
	cursor: pointer;
}
.hb-retailers .tm-strip__pause:hover { border-color: var(--hb-navy); }
.hb-retailers .tm-strip__pause::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.hb-retailers .tm-strip__pause.is-paused::before { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* Intro and product attributes */
.hb-home-intro.wp-block-group { display: grid; gap: 16px; max-width: 68ch; margin-bottom: 40px; }
.hb-home-intro > * { margin: 0; }
.hb-attr-tabs.wp-block-tabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.hb-attr-tabs > * { margin: 0; min-width: 0; }
.hb-attr-tabs .wp-block-tab-list { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; margin: 0; border-top: 1px solid var(--hb-mist); border-bottom: 0; gap: 0; }
.hb-attr-tabs .wp-block-tab-list button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	margin: 0;
	padding: 16px;
	text-align: left;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--hb-mist);
	border-left: 3px solid transparent;
	border-radius: 0;
	font: 600 16px/1.3 var(--hb-font-sans);
	letter-spacing: 0;
	text-transform: none;
	color: var(--hb-slate);
	cursor: pointer;
	transition: color var(--hb-base) var(--hb-ease), border-color var(--hb-base) var(--hb-ease);
}
.hb-attr-tabs .wp-block-tab-list button::before { content: none; }
.hb-attr-tabs .wp-block-tab-list button::after { content: "→"; color: var(--hb-muted); opacity: 0.5; }
.hb-attr-tabs .wp-block-tab-list button[aria-selected="true"] { color: var(--hb-navy); border-left-color: var(--hb-green); }
.hb-attr-tabs .wp-block-tab-list button[aria-selected="true"]::after { color: var(--hb-green); opacity: 1; }
.hb-attr-tabs .wp-block-tab-panels,
.hb-attr-tabs .wp-block-tab-panel { margin: 0; padding: 0; border: 0; background: none; }
.hb-card.hb-attr { padding: 32px; }
.hb-attr > * { margin: 0; }
.hb-attr > .is-style-label { margin-bottom: 20px; }
.hb-attr .hb-attr__lead { margin: 12px 0 16px; font: 700 26px/1.3 var(--hb-font-display); color: var(--hb-navy); }
.hb-attr .hb-attr__body { max-width: 58ch; line-height: 1.7; }
.hb-attr__facts.wp-block-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hb-mist); }
.hb-attr__facts > * { margin: 0; }
.hb-attr__fact > * { margin: 0; }
.hb-attr__fact .hb-label { margin-bottom: 4px; color: var(--hb-muted); }
.hb-attr__fact .hb-attr__value { font: 600 16px/1.4 var(--hb-font-sans); color: var(--hb-navy); font-variant-numeric: tabular-nums; }

/* Category grid */
.hb-cat-grid .wp-block-term-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.hb-cat-grid li { margin: 0; }
.hb-cat-card.wp-block-group { position: relative; height: 100%; box-sizing: border-box; background: var(--hb-white); border: 0; border-radius: var(--hb-radius-lg); box-shadow: none; overflow: hidden; transition: box-shadow var(--hb-base) var(--hb-ease), transform var(--hb-base) var(--hb-ease); }
.hb-cat-card > * { margin: 0; }
.hb-cat-card:hover { box-shadow: var(--hb-shadow-md); transform: translateY(-2px); }
.hb-cat-card:has(a:focus-visible) { outline: 2px solid var(--hb-harbor); outline-offset: 2px; }
.hb-cat-card__image.wp-block-image { aspect-ratio: 3 / 2; margin: 0; background: var(--hb-cloud); border-radius: var(--hb-radius-lg); overflow: hidden; }
.hb-cat-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--hb-ease); }
.hb-cat-card:hover .hb-cat-card__image img { transform: scale(1.04); }
.hb-cat-card__body.wp-block-group { padding: 20px; }
.hb-cat-card__body > * { margin: 0; }
.hb-cat-card__title.wp-block-group { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hb-cat-card__title > * { margin: 0; }
.hb-cat-card__title .wp-block-term-name { font: 700 21px/1.3 var(--hb-font-display); color: var(--hb-navy); }
.hb-cat-card__title .wp-block-term-name a { color: inherit; text-decoration: none; }
.hb-cat-card__title .wp-block-term-name a::after { content: ""; position: absolute; inset: 0; }
.hb-cat-card__title .wp-block-term-name a:focus-visible { outline: none; }
.hb-term-items { font-size: 15px; color: var(--hb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-cat-card__blurb { font-size: 15px; color: var(--hb-slate); }

/* Story and business (text + picture) */
.hb-split.wp-block-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hb-split > * { margin: 0; min-width: 0; }
.hb-split__text > * { margin: 0; }
.hb-split__text > .is-style-eyebrow { margin-bottom: 20px; }
.hb-story__title { margin: 0 0 20px !important; }
.hb-story__lead { margin: 0 0 16px !important; max-width: 46ch; }
.hb-story__body { margin: 0 0 32px !important; max-width: 52ch; }
.hb-split__text .wp-block-buttons { margin: 0; }
.hb-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 400px; margin: 32px 0 0 !important; padding: 0; list-style: none; }
.hb-certs__item { box-sizing: border-box; height: 120px; margin: 0; padding: 12px; background: var(--hb-white); border: 1px solid var(--hb-mist); border-radius: var(--hb-radius-md); overflow: hidden; }
.hb-certs__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hb-story__image.wp-block-image { height: 340px; margin: 0; overflow: hidden; }
.hb-story__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hb-business .hb-business__title { margin: 0 0 16px !important; color: var(--hb-white); }
.hb-business .hb-business__text { margin: 0 0 32px !important; max-width: 42ch; color: rgba(255, 255, 255, 0.8); }
.hb-business__image.wp-block-image { aspect-ratio: 4 / 3; margin: 0; background: var(--hb-white); border-radius: var(--hb-radius-md); overflow: hidden; }
.hb-business__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
	.hb-retailers__row.wp-block-group { gap: 20px; }
	.hb-retailers__logos.wp-block-group { grid-template-columns: repeat(2, 1fr); }
	.hb-retailers__logos.is-marquee { flex-basis: calc(100% - 60px); }
	.hb-retailers .tm-strip__track > .hb-retailers__logo.wp-block-image { flex-basis: 150px; height: 100px; margin-right: 16px; }
	.hb-attr-tabs.wp-block-tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.hb-attr__facts.wp-block-group { grid-template-columns: minmax(0, 1fr); }
	.hb-cat-grid .wp-block-term-template { grid-template-columns: minmax(0, 1fr); }
	.hb-split.wp-block-group { grid-template-columns: minmax(0, 1fr); gap: 32px; }

	/* Phone home (HAR-29): tighter bands, and the attribute tabs as one full-width row that scrolls sideways. */
	.hb-home .hb-band:not(.hb-retailers) { padding: 48px 0; }
	.hb-home .hb-band.is-tight { padding: 32px 0; }
	.hb-attr-tabs .wp-block-tab-list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 0;
		margin: 0 -24px;
		padding: 0 24px;
		overflow-x: auto;
		scroll-padding-inline: 24px;
		scrollbar-width: none;
		border-top: 0;
		border-bottom: 1px solid var(--hb-mist);
	}
	.hb-attr-tabs .wp-block-tab-list button {
		flex: 0 0 auto;
		width: auto;
		min-height: 48px;
		padding: 12px 14px;
		white-space: nowrap;
		border-bottom: 3px solid transparent;
		border-left: 0;
	}
	.hb-attr-tabs .wp-block-tab-list button::after { content: none; }
	.hb-attr-tabs .wp-block-tab-list button[aria-selected="true"] { border-bottom-color: var(--hb-green); }
}

/* Below 600 px the home categories are two columns of compact cards (HAR-29). */
@media (max-width: 600px) {
	.hb-cat-grid .wp-block-term-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hb-cat-card__body.wp-block-group { padding: 12px; }
	.hb-cat-card__title.wp-block-group { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 6px; }
	.hb-cat-card__title .wp-block-term-name { font-size: 16px; }
	.hb-term-items { font-size: 13px; }
	.hb-cat-card__blurb { font-size: 13px; line-height: 1.5; }
}
/* The sheet-cake photo is shown whole, as in the design. */
.hb-cat-grid .term-cakes .hb-cat-card__image img { object-fit: contain; }
/* The prototype's picture column never drops below ~495 px (its image slot's
   own width); kept from 900 px up. Narrower, the prototype overflows the page. */
@media (min-width: 900px) {
	.hb-story .hb-split.wp-block-group { grid-template-columns: minmax(0, 1fr) minmax(min(495px, 100%), 1fr); }
}

/* ── Content pages: shared head ─────────────────────────────────── */

.hb-page, .hb-page__content { margin: 0; }
.hb-page__content > * { margin-block: 0; }
.hb-page-head .hb-container > * { margin: 0; }
.hb-page-head .hb-container > .is-style-eyebrow { margin-bottom: 20px; }
.hb-page-head .hb-page-head__title { margin: 0 0 16px; max-width: 26ch; font-size: 40px; line-height: 1.15; }
.hb-page-head .hb-page-head__lead { max-width: 54ch; }

/* ── Contact (PageContact.jsx) ──────────────────────────────────── */

.hb-contact__grid.wp-block-group { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.hb-contact__grid > * { margin: 0; min-width: 0; }
.hb-card.hb-contact__form { padding: 32px; }
.hb-contact__form > * { margin: 0; }
.hb-contact__aside.wp-block-group { display: flex; flex-direction: column; gap: 24px; }
.hb-contact__aside > * { margin: 0; }

/* core/table as the design's SpecTable (caption on top) */
.wp-block-table.hb-spec-table { display: flex; flex-direction: column; margin: 0; }
.wp-block-table.hb-spec-table figcaption {
	order: -1;
	margin: 0;
	padding: 16px 20px;
	text-align: left;
	font: 600 12px/1.2 var(--hb-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hb-navy);
	background: var(--hb-white);
}
.wp-block-table.hb-spec-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.wp-block-table.hb-spec-table thead { border: 0; }
.wp-block-table.hb-spec-table thead th {
	padding: 12px 20px;
	background: var(--hb-mist-200);
	font: 600 12px/1.2 var(--hb-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hb-navy);
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--hb-mist);
}
.wp-block-table.hb-spec-table td { padding: 12px 20px; color: var(--hb-slate); border: 0; border-bottom: 1px solid var(--hb-mist); }
.wp-block-table.hb-spec-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.hb-spec-table .has-text-align-right { text-align: right; }

.hb-find-us > * { margin: 0; }
.hb-find-us > .is-style-eyebrow { margin-bottom: 20px; }
.hb-map { margin-top: 16px; border: 1px solid var(--hb-mist); border-radius: var(--hb-radius-md); overflow: hidden; background: var(--hb-mist-200); }
.hb-map iframe { display: block; width: 100%; height: 220px; border: 0; }
.hb-map iframe[hidden], .hb-map__facade[hidden] { display: none; }
.hb-map__facade { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; height: 220px; padding: 20px 24px; background: linear-gradient(135deg, var(--hb-mist-200), var(--hb-cloud)); }
.hb-map__facade > * { margin: 0; }
.hb-map__pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--hb-navy); transform: rotate(-45deg); }
.hb-map__address { font-weight: 600; color: var(--hb-navy); }
.hb-map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hb-map__link { color: var(--hb-harbor); font-weight: 600; }
.hb-map__note { font-size: 13px; color: var(--hb-muted); }
.hb-contact-address { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--hb-slate); }

/* Form */
.hb-pricing__status > .hb-alert { margin-bottom: 24px; }
.hb-pricing__status > .hb-alert[hidden] { display: none; }
.hb-pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hb-pricing__grid > .is-wide { grid-column: 1 / -1; margin-top: 4px; }
.hb-pricing__grid > .hb-check + .hb-check { margin-top: -8px; }
.hb-field[hidden], .hb-field__error[hidden] { display: none; }
.hb-radios { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.hb-radios legend { margin-bottom: 20px; padding: 0; }
.hb-field > label.hb-check { font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.hb-check > span { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--hb-slate); }
.hb-check .hb-field__hint { font-size: 15px; }
.hb-field__prefixed { position: relative; display: block; }
.hb-field__prefix { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--hb-muted); pointer-events: none; }
.hb-field__prefixed input { padding-left: 34px; }
.hb-pricing__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hb-pricing__note { font-size: 15px; color: var(--hb-muted); }
.hb-pricing__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Toast (the design's green Toast) */
.hb-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; gap: 8px; }
.hb-toast { max-width: 380px; padding: 16px 20px; border-radius: var(--hb-radius-lg); background: var(--hb-green); color: var(--hb-white); box-shadow: var(--hb-shadow-lg); animation: hb-toast-in 280ms var(--hb-ease); }
.hb-toast p { margin: 0; }
.hb-toast__title { font: 600 16px/1.4 var(--hb-font-sans); }
.hb-toast__body { margin-top: 2px !important; font-size: 15px; opacity: 0.85; }
@keyframes hb-toast-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Trade Shows (PageAppearances.jsx) and single show ─────────────── */

.hb-shows-page, .hb-show { margin: 0; }
.hb-band.hb-shows-head { padding: 40px 0; }
.hb-shows-head .hb-container > * { margin: 0; }
.hb-shows-head .hb-container > .is-style-eyebrow { margin-bottom: 20px; }
.hb-shows-head .wp-block-breadcrumbs { margin-bottom: 24px; }
.hb-shows-head .hb-shows-head__title { margin: 0 0 12px; }
.hb-shows-head .hb-shows-head__lead { max-width: 56ch; }
.hb-shows-body .hb-container > * + * { margin-top: 56px; }
.hb-shows-body .hb-container > .hb-shows__ctas { margin-top: 40px; }
.hb-shows__ctas.wp-block-buttons { gap: 12px; }

.hb-shows__title { margin: 0 0 24px; font: 700 24px/1.25 var(--hb-font-display); color: var(--hb-navy); }
.hb-shows__empty { margin: 0; color: var(--hb-slate); }
.hb-shows__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.hb-show-card { position: relative; margin: 0; overflow: hidden; }
.hb-show-card:has(a:focus-visible) { outline: 2px solid var(--hb-harbor); outline-offset: 2px; }
.hb-show-card__image { height: 180px; overflow: hidden; background: var(--hb-cloud); border-radius: var(--hb-radius-lg); }
.hb-show-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--hb-ease); }
.hb-show-card:hover .hb-show-card__image img { transform: scale(1.04); }
.hb-show-card__body { padding: 20px; }
.hb-show-card__body > * { margin: 0; }
.hb-show-card__label.hb-label { margin-bottom: 6px; color: var(--hb-muted); }
.hb-show-card__title { font: 700 18px/1.3 var(--hb-font-display); }
.hb-show-card__title a { color: var(--hb-navy); text-decoration: none; }
.hb-show-card__title a::after { content: ""; position: absolute; inset: 0; }
.hb-show-card__title a:focus-visible { outline: none; }
.hb-show-card__meta { margin-top: 8px !important; font-size: 15px; color: var(--hb-slate); font-variant-numeric: tabular-nums; }
.hb-show-card__meta > * + *::before { content: " · "; }

.hb-show-details { margin-top: 20px !important; }
.hb-show-details__list { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.hb-show-details__row { display: flex; flex-direction: column; gap: 4px; }
.hb-show-details__row dt { color: var(--hb-muted); }
.hb-show-details__row dd { margin: 0; font-size: 17px; color: var(--hb-navy); font-weight: 600; }
.hb-show-details__site { margin: 20px 0 0; }
.hb-show-details__site a { color: var(--hb-harbor); font-weight: 600; }
.hb-show__content { max-width: 68ch; }
.hb-show__content > * { margin-block: 0 16px; }
.hb-show-gallery__title { margin: 0 0 24px; font: 700 24px/1.25 var(--hb-font-display); color: var(--hb-navy); }
.hb-show-gallery .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.hb-show-gallery .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: auto; margin: 0; }
.hb-show-gallery .wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: var(--hb-radius-lg); overflow: hidden; border: 1px solid var(--hb-mist); }
.hb-show-gallery .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ── Shared: button rows under page content ─────────────────────────── */

.hb-page-ctas.wp-block-buttons { gap: 16px; margin: 40px 0 0; }

/* ── Bakery Services (PageServices.jsx) ─────────────────────────────── */

.hb-services-hero.wp-block-cover { min-height: 440px; padding: 0; align-items: flex-end; background: var(--hb-navy); }
.hb-services-hero .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(to top, rgba(20, 42, 66, 0.94) 0%, rgba(20, 42, 66, 0.7) 45%, rgba(20, 42, 66, 0.4) 100%) !important; }
.hb-services-hero .wp-block-cover__inner-container { width: 100%; padding-bottom: 40px; color: var(--hb-white); }
.hb-services-hero .wp-block-cover__inner-container > .hb-container { margin-inline: auto; }
.hb-services-hero .hb-container > * { margin: 0; }
.hb-services-hero .hb-container > .is-style-eyebrow { margin-bottom: 20px; }
.hb-services-hero__title.wp-block-heading { max-width: 22ch; color: var(--hb-white); }
.hb-services .hb-container > * { margin: 0; }
.hb-services .hb-container > .hb-page-ctas { margin-top: 40px; }
.hb-services__intro.is-lead { margin: 0 0 32px; }
ol.hb-numbered { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: hb-step; }
ol.hb-numbered > li { display: grid; grid-template-columns: auto minmax(0, 56ch); justify-content: start; gap: 20px; align-items: start; margin: 0; padding-bottom: 24px; border-bottom: 1px solid var(--hb-mist); color: var(--hb-slate); counter-increment: hb-step; }
ol.hb-numbered > li::before { content: counter(hb-step, decimal-leading-zero); padding-top: 2px; font: 700 18px/1 var(--hb-font-display); color: var(--hb-green); font-variant-numeric: tabular-nums; }

/* ── About (PageAbout.jsx) ──────────────────────────────────────────── */

.hb-about-head .hb-container > * { margin: 0; }
.hb-about-head .hb-container > .is-style-eyebrow { margin-bottom: 20px; }
.hb-about-head__title.wp-block-heading { margin: 0 0 16px; max-width: 24ch; color: var(--hb-white); }
.hb-about-head__lead.is-lead { max-width: 54ch; color: rgba(255, 255, 255, 0.8); }
.hb-about-story__lead.is-lead { max-width: 48ch; margin-bottom: 20px; }
.hb-about-story__body { max-width: 52ch; color: var(--hb-slate); }
.hb-about-story__image.wp-block-image { height: 360px; margin: 0; overflow: hidden; background: var(--hb-mist-200); border: 1px solid var(--hb-mist); border-radius: var(--hb-radius-md); }
.hb-about-story__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-pillars__grid.wp-block-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hb-pillar > * { margin: 0; }
.hb-pillar > .is-style-eyebrow { margin-bottom: 20px; }
.hb-pillar > h3 { margin-bottom: 12px; }
.hb-pillar > p:not(.is-style-eyebrow) { color: var(--hb-slate); }
.hb-safety__title.wp-block-heading { margin: 0 0 16px; }
.hb-safety__text { max-width: 44ch; margin-bottom: 24px !important; color: var(--hb-slate); }
.hb-certs.is-tiles.wp-block-teamatico-logo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: none; margin: 0 !important; padding: 0; list-style: none; }
.hb-certs.is-tiles .hb-certs__item { box-sizing: border-box; height: 120px; margin: 0; padding: 12px; overflow: hidden; background: var(--hb-white); border: 1px solid var(--hb-mist); border-radius: var(--hb-radius-md); }
.hb-certs.is-tiles .hb-certs__item a { display: block; height: 100%; }
.hb-certs.is-tiles img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.hb-cta-band__row.wp-block-group { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.hb-cta-band__row > * { margin: 0; }
.hb-cta-band__text.wp-block-group { flex: 1; min-width: 280px; }
.hb-cta-band__text > * { margin: 0; }
.hb-cta-band__title.wp-block-heading { margin-bottom: 12px; color: var(--hb-white); }
.hb-cta-band__summary { max-width: 44ch; color: rgba(255, 255, 255, 0.8); }
.hb-cta-band__buttons.wp-block-buttons { gap: 16px; margin: 0; flex-wrap: nowrap; }

/* ── FAQ (PageFaq.jsx) ──────────────────────────────────────────────── */

.hb-faq-head .hb-page-head__title { max-width: 28ch; }
.hb-faq-grid.wp-block-group { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.hb-faq-grid > * { margin: 0; min-width: 0; }
.wp-block-accordion.hb-faq { margin: 0; border-top: 1px solid var(--hb-mist); }
.hb-faq > .wp-block-accordion-item { margin: 0; border-bottom: 1px solid var(--hb-mist); }
.hb-faq > .wp-block-accordion-item > * { margin-block: 0; }
.hb-faq .wp-block-accordion-heading { margin: 0; font: 700 18px/1.4 var(--hb-font-display); color: var(--hb-navy); }
.hb-faq .wp-block-accordion-heading__toggle { gap: 24px; padding: 20px 0; }
.hb-faq .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { text-decoration: none; }
.hb-faq .wp-block-accordion-heading__toggle:focus-visible { outline: 2px solid var(--hb-harbor); outline-offset: 2px; }
.hb-faq .wp-block-accordion-heading__toggle-icon { flex: 0 0 auto; width: auto; height: auto; font: 21px/1 var(--hb-font-sans); color: var(--hb-harbor); }
.hb-faq .wp-block-accordion-panel > * { max-width: 62ch; margin: 0 0 20px; color: var(--hb-slate); }
.hb-faq-card.wp-block-group { position: sticky; top: calc(var(--hb-header-top) + 24px + var(--hb-header-h)); transition: top var(--hb-base) var(--hb-ease); padding: 32px; background: var(--hb-mist-200); border-color: var(--hb-mist-200); box-shadow: var(--hb-shadow-sm); }
.hb-faq-card > * { margin: 0; }
.hb-faq-card > .is-style-eyebrow { margin-bottom: 20px; }
.hb-faq-card__line { font-size: 15px; line-height: 1.7; color: var(--hb-slate); }
.hb-faq-card__buttons.wp-block-buttons { margin-top: 20px; }
.hb-faq-card__buttons .wp-block-button { width: 100%; }

/* ── Search, 404, legal ─────────────────────────────────────────────── */

.hb-site-search { max-width: 560px; margin-top: 32px !important; }
.hb-site-search .wp-block-search__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--hb-navy); }
.hb-site-search .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.hb-site-search .wp-block-search__input { flex: 1; min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid var(--hb-border-strong); border-radius: var(--hb-radius-md); background: var(--hb-white); }
.hb-site-search .wp-block-search__button { min-height: 44px; margin: 0; padding: 0 20px; font: 600 14px/1 var(--hb-font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-white); background: var(--hb-navy); border: 0; border-radius: var(--hb-radius-md); cursor: pointer; }
.hb-404 .hb-page-ctas.wp-block-buttons { margin-top: 32px; }
.hb-results .hb-results__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hb-result.wp-block-group { padding: 24px 0; border-bottom: 1px solid var(--hb-mist); }
.hb-result > * { margin: 0; }
.hb-result__type.hb-label { margin-bottom: 6px; color: var(--hb-muted); }
.hb-result__title.wp-block-post-title { font: 700 21px/1.3 var(--hb-font-display); }
.hb-result__title a { color: var(--hb-navy); text-decoration: none; }
.hb-result__title a:hover { text-decoration: underline; }
.hb-result__excerpt { margin-top: 8px !important; color: var(--hb-slate); }
.hb-result__excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.hb-results__pages { margin-top: 32px !important; }
.hb-results__none { margin: 0 0 24px !important; color: var(--hb-slate); }
.hb-prose > * { margin: 0 0 16px; color: var(--hb-slate); }
.hb-prose > h2 { margin: 32px 0 12px; color: var(--hb-navy); }

@media (max-width: 900px) {
	.hb-faq-grid.wp-block-group { grid-template-columns: minmax(0, 1fr); }
	.hb-faq-card.wp-block-group { position: static; }
}

@media (max-width: 760px) {
	.hb-pillars__grid.wp-block-group { grid-template-columns: minmax(0, 1fr); }
	.hb-cta-band__buttons.wp-block-buttons { flex-wrap: wrap; }
	ol.hb-numbered > li { grid-template-columns: auto minmax(0, 1fr); }
	.hb-show-gallery .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hb-contact__grid.wp-block-group { grid-template-columns: minmax(0, 1fr); }
	.hb-pricing__grid { grid-template-columns: minmax(0, 1fr); }
}
