/* ══════════════════════════════════════════════════════════════════════
   CHL STARTER BUSINESS PAGE v3 — two-column hero.

   STRUCTURE
     [ business info panel ][ banner image ]   ← two-column hero
     [       page navigation (tabs)        ]   ← the divider …
     [       page content canvas           ]   ← …and the panel it caps

   The nav rail and the content canvas are ONE white panel joined by a
   hairline: the tabs read as that panel's header, which is what makes them
   a true divider between the business introduction and the active page,
   rather than a third floating block.

   The shell is CHL's, not the business's. The business supplies identity
   (banner, logo, name, category, location, descriptor, later content); CHL
   supplies the interface (background, navigation, type, buttons, borders,
   states). No palette is derived from the business or its image — the only
   per-business style value is the banner's focal point.

   Tokens below are the REAL Explore results values (assets/chl/explore/
   results.css → .chl-exresults), mirrored here so Explore → card → business
   page reads as one continuous CHL surface. Mirrored, not imported: those
   tokens are scoped to .chl-exresults, and this page never loads that file.
   If Explore's palette moves, move these to match.

   Previous layout (v2, floating centred nameplate) is preserved at
   assets/chl/starter-business/starter-business_v2_nameplate.css.bak

   Scope: EVERY rule lives under .sbp-page. Nothing here may restyle the
   surrounding CHL chrome.
   ══════════════════════════════════════════════════════════════════════ */

.sbp-page {
	/* ═══ THE KEEL — the ONE authoritative Business Page token set ═══
	   (design-convergence Pass A; DESIGN_CONVERGENCE_DIAGNOSIS defect #2).
	   starter-sections.css consumes these by cascade — it declares no palette
	   of its own. Warm-paper family: a sibling of the px keel (px.css), never
	   a copy of it. */
	--sbp-ink: #201a14;          /* warm ink                                 */
	--sbp-mut: #6b5f55;          /* secondary — AA 6.19:1 on white           */
	--sbp-canvas: #f7f4ef;       /* warm paper canvas                        */
	--sbp-card: #ffffff;         /* card / band surface                      */
	--sbp-line: #e8e1d8;         /* the one hairline                         */
	--sbp-r: 16px;
	--sbp-r-lg: 18px;
	--sbp-shadow: 0 1px 2px rgba(32, 26, 20, 0.06), 0 8px 24px rgba(32, 26, 20, 0.05);
	/* §5 Orange Law + BP:PALETTE ACCESSIBILITY AMENDMENT.
	   TWO governed orange roles so compact controls meet WCAG AA without
	   flattening the signature:
	     --sbp-org         COMPACT ACTION fill (buttons, text badges). Deep
	                       burnt orange — white text = 4.66:1 (AA). This was
	                       the old hover value, already in the vocabulary.
	     --sbp-org-display DECORATIVE SPARK (open-now dot, nav active
	                       underline, non-text marks). The bright signature
	                       #F26122 lives on here — never behind text. */
	--sbp-org: #c74d17;          /* compact action fill — AA on white         */
	--sbp-org-ink: #a83a0d;      /* action fill darkened for hover            */
	--sbp-org-display: #F26122;  /* bright signature spark — non-text only    */
	--sbp-ok: #1a7f4f;

	/* ── TERRITORY defaults (Amendment A1) — overridden per business via
	      data-driven inline tokens on this root (chl_bp_territory()). The
	      defaults are a warm neutral so an un-territoried page still holds. ── */
	--sbp-acc: #6f6157;          /* AA 5.96:1 on white                       */
	--sbp-acc-soft: #f1ece5;
	--sbp-acc-ink: #554a41;
	--sbp-field-a: hsl(33 30% 86%);   /* light-study field stops (§6/§10)    */
	--sbp-field-b: hsl(36 40% 94%);
	--sbp-field-c: hsl(30 24% 71%);

	/* ── legacy aliases — existing rules still read these names; every value
	      resolves to the keel above. Pass B retires the aliases. ── */
	--sbp-bg: var(--sbp-canvas);
	--sbp-surface: var(--sbp-card);
	--sbp-muted: var(--sbp-mut);
	--sbp-orange: var(--sbp-org);
	--sbp-orange-ink: var(--sbp-org-ink);
	--sbp-orange-soft: #feeee4;              /* pale signature wash (hover)  */
	--sbp-purple-soft: var(--sbp-acc-soft);
	--sbp-focus: color-mix(in srgb, var(--sbp-acc) 65%, transparent);
	--sbp-radius: var(--sbp-r-lg);

	--sbp-canvas-max: 1260px;    /* the page's one content axis */
	--sbp-gutter: clamp(16px, 4vw, 44px);
	--sbp-col-gap: clamp(16px, 1.8vw, 26px);
	--sbp-band-inset: clamp(14px, 3vw, 44px);   /* masthead band side inset */

	background: var(--sbp-canvas);
	color: var(--sbp-ink);
	/* typography is inherited from the CHL theme (body: DM Sans) — this shell
	   never introduces a font of its own */
	padding-bottom: clamp(56px, 8vw, 110px);
}

.sbp-page *,
.sbp-page *::before,
.sbp-page *::after {
	box-sizing: border-box;
}

.sbp-shell {
	max-width: calc(var(--sbp-canvas-max) + 2 * var(--sbp-gutter));
	margin-inline: auto;
	padding-inline: var(--sbp-gutter);
	padding-top: clamp(16px, 2.4vw, 28px);
}

/* ── IDENTITY MASTHEAD ───────────────────────────────────────────────────
   The signature object (diagnosis defects #3/#4): media + identity band as
   ONE composition. The banner is a wide header strip; the band is a white
   card that overlaps its bottom edge, carrying crest → name → meta → open
   status → descriptor → action row; the local nav caps the band below. */
.sbp-masthead {
	position: relative;
}

.sbp-masthead__band {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px clamp(16px, 2vw, 24px);
	align-items: center;
	margin: clamp(-72px, -5vw, -44px) var(--sbp-band-inset) 0;
	padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 32px);
	background: var(--sbp-card);
	border: 1px solid var(--sbp-line);
	border-radius: var(--sbp-r-lg);
	box-shadow: var(--sbp-shadow);
}

/* When the local nav follows, it IS the band's bottom edge: the band opens
   downwards and the nav closes the shape. */
.sbp-masthead__band--capped {
	border-bottom: 0;
	border-radius: var(--sbp-r-lg) var(--sbp-r-lg) 0 0;
	padding-bottom: clamp(14px, 1.8vw, 20px);
}

/* The crest: uploaded logo, or a monogram tile in the TERRITORY accent —
   never CHL orange (§5: decoration belongs to the territory). */
.sbp-crest {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: var(--sbp-r);
	background: var(--sbp-acc);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: 0.03em;
	user-select: none;
	flex: 0 0 auto;
}

/* A real uploaded logo is the business's own asset — CHL only frames it. */
.sbp-crest--img {
	object-fit: cover;
	background: var(--sbp-card);
	box-shadow: 0 0 0 1px var(--sbp-line);
}

/* The identity column */
.sbp-info {
	min-width: 0;
}

/* primary — the first thing read: a business page title, not a list item */
.sbp-info__name {
	margin: 0;
	min-width: 0;
	font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.022em;
	color: var(--sbp-ink);
	text-wrap: balance;        /* wraps into even lines rather than an orphan word */
	overflow-wrap: anywhere;   /* long single-word names never overflow the band */
}

/* secondary — one compact line, plain text rather than decorative pills */
.sbp-info__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 7px 0 0;
	font-size: 0.88rem;
	line-height: 1.3;
	color: var(--sbp-mut);
}

.sbp-info__cat {
	color: var(--sbp-ink);
	font-weight: 700;
	white-space: nowrap;
}

.sbp-info__sep {
	color: var(--sbp-line);
	font-weight: 700;
}

.sbp-info__loc {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.sbp-info__loc .bi {
	margin: 0;                       /* guard against theme-wide anchor>i margins */
	font-size: 0.9rem;
	color: var(--sbp-acc);           /* decoration = territory, not signature */
}

/* tertiary — clamped so a long slogan can never balloon the band */
.sbp-info__descriptor {
	margin: 8px 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--sbp-mut);
	max-width: 64ch;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* actions: the ONE solid orange primary + territory ghost pills */
.sbp-info__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	align-self: center;
}

.sbp-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;      /* visually light, but still a real touch target */
	padding: 8px 16px;
	border-radius: 999px;
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--sbp-acc) 34%, transparent);
	color: var(--sbp-acc-ink);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sbp-action .bi {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1;
	color: var(--sbp-acc);
	transition: color 0.16s ease;
}

.sbp-action:focus-visible {
	outline: 2px solid var(--sbp-focus);
	outline-offset: 2px;
}

/* ── The masthead media — a wide header strip the band flows into ────── */

/* Reserved dimensions (§9): the aspect clamp holds the space before the
   image arrives; the focal crop is the one per-business style value. */
.sbp-banner {
	position: relative;
	min-width: 0;
	aspect-ratio: 21 / 7;
	min-height: 220px;
	max-height: 400px;
	width: 100%;
	border-radius: var(--sbp-r-lg);
	overflow: hidden;
	background: var(--sbp-field-b);          /* territory air, while it loads */
}

/* The image is allowed to breathe: no dark veil, no text overlay — the
   identity lives in the band below, so nothing needs a scrim. */
.sbp-banner__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;                       /* never distorted */
	object-position: var(--sbp-hero-focal, 50% 40%);
}

/* ── The tab bubble — the ONE white floating container ───────────────── */

/* Centred beneath the whole hero composition — relative to the page's content
   container, not to the left metadata column. */
.sbp-nav {
	display: flex;
	justify-content: center;
	margin-top: clamp(20px, 2.2vw, 30px);
	min-width: 0;
}

.sbp-nav__rail {
	position: relative;
	max-width: 100%;                          /* sized to its tabs, never stretched */
	background: var(--sbp-surface);
	border: 1px solid var(--sbp-line);
	border-radius: 999px;
	box-shadow: 0 14px 32px -24px rgba(28, 25, 48, 0.5);   /* restrained lift */
	padding: 5px;
}

.sbp-nav__scroller {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border-radius: 999px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.sbp-nav__scroller::-webkit-scrollbar {
	display: none;
}

.sbp-nav__list {
	display: flex;
	min-width: max-content;     /* one row; scrolls when it cannot fit */
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sbp-nav__item {
	margin: 0;
	padding: 0;
}

/* Site navigation, not call-to-action buttons: the tab IS its label; the
   only chrome is the active marker and a quiet hover wash. */
.sbp-nav__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 14px clamp(16px, 1.5vw, 24px) 16px;
	border-radius: 999px;
	color: var(--sbp-muted);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.005em;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.16s ease, background-color 0.16s ease;
}

/* active marker: a short orange underline set INSIDE the bubble (a flush rail
   would be clipped by the pill's curve) — the active state never relies on
   colour alone (weight + marker) */
.sbp-nav__tab::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 9px;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--sbp-org-display);   /* bright signature underline (non-text) */
	transform: translateX(-50%) scaleX(0);
	transition: transform 0.18s ease;
}

.sbp-nav__tab.is-active {
	color: var(--sbp-ink);
	font-weight: 700;
}

.sbp-nav__tab.is-active::after {
	transform: translateX(-50%) scaleX(1);
}

.sbp-nav__tab:focus-visible {
	outline: 2px solid var(--sbp-focus);
	outline-offset: -2px;      /* inset: the bubble has little padding to spare */
}

@media (hover: hover) and (pointer: fine) {
	.sbp-action:hover {
		background: var(--sbp-acc-soft);
		border-color: color-mix(in srgb, var(--sbp-acc) 45%, transparent);
		color: var(--sbp-acc-ink);
	}
	.sbp-nav__tab:hover {
		color: var(--sbp-ink);
		background: var(--sbp-purple-soft);        /* the pale supporting tint */
	}
	.sbp-nav__tab:hover::after {
		transform: translateX(-50%) scaleX(0.4);
		background: var(--sbp-line);
	}
	.sbp-nav__tab.is-active:hover {
		background: var(--sbp-orange-soft);        /* active stays orange, never lavender */
	}
	.sbp-nav__tab.is-active:hover::after {
		transform: translateX(-50%) scaleX(1);
		background: var(--sbp-org-display);
	}
}

/* edge cues while more tabs sit off-screen (toggled by JS; pure
   enhancement — without JS a peeking half-tab is the affordance) */
.sbp-nav__rail::before,
.sbp-nav__rail::after {
	content: "";
	position: absolute;
	top: 5px;
	bottom: 5px;
	width: 34px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 2;
}

.sbp-nav__rail::before {
	left: 5px;
	border-radius: 999px 0 0 999px;
	background: linear-gradient(to right, var(--sbp-surface) 25%, rgba(255, 255, 255, 0));
}

.sbp-nav__rail::after {
	right: 5px;
	border-radius: 0 999px 999px 0;
	background: linear-gradient(to left, var(--sbp-surface) 25%, rgba(255, 255, 255, 0));
}

.sbp-nav__rail.sbp-can-left::before {
	opacity: 1;
}

.sbp-nav__rail.sbp-can-right::after {
	opacity: 1;
}

/* ── The page area — open on the background, intentionally blank ─────── */

/* No panel: the space is held by min-height and rhythm, so an empty page reads
   as room for content rather than as a giant empty white box. */
.sbp-outlet {
	min-height: clamp(300px, 38vh, 460px);
	margin-top: clamp(24px, 2.6vw, 36px);
	/* no padding: the heading aligns to the same left edge as the business
	   name and the banner's left column */
}

.sbp-outlet__title {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--sbp-ink);
}

.sbp-outlet__title::before {
	content: "";
	display: block;
	width: 24px;
	height: 3px;
	border-radius: 2px;
	background: var(--sbp-acc);   /* eyebrow rule = territory, not signature */
	margin-bottom: 12px;
}

/* ── Utilities ───────────────────────────────────────────────────────── */

.sbp-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

/* tablet: the action row leaves the crest row and becomes the band's last
   line — the identity keeps the full width it needs */
@media (max-width: 1023px) {
	.sbp-masthead__band {
		grid-template-columns: auto minmax(0, 1fr);
	}
	.sbp-info__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
	.sbp-info__descriptor {
		font-size: 0.86rem;
	}
}

@media (max-width: 767px) {
	.sbp-banner {
		aspect-ratio: 16 / 8;
		min-height: 170px;
	}
	.sbp-masthead__band {
		margin-inline: clamp(10px, 3vw, 18px);
		margin-top: -40px;
	}
}

@media (max-width: 639px) {
	.sbp-crest {
		width: 56px;
		height: 56px;
		font-size: 1.15rem;
		border-radius: 14px;
	}
	.sbp-banner {
		aspect-ratio: 16 / 9;     /* a touch taller in a narrow column */
		min-height: 0;
	}
	.sbp-info__descriptor {
		max-width: none;
	}
	.sbp-nav__rail {
		width: 100%;              /* the bubble spans the column, and scrolls inside */
	}
	.sbp-nav__tab {
		padding-inline: 18px;
	}
	.sbp-outlet {
		min-height: 260px;
	}
}

/* ── Motion preferences ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.sbp-page *,
	.sbp-page *::before,
	.sbp-page *::after {
		transition: none !important;
	}
}

/* ══════════════════════════════════════════════════════════════════════
   MENU PAGE (BP:CHL_STARTER_BUSINESS_MENU v1)
   Two columns beneath the business tabs: a sticky section navigator and the
   menu itself. The navigator mirrors the REAL Explore filter panel
   (assets/chl/explore/results.css → .exm-side: white, 1px --r-line, radius
   18, padding 14/16, sticky top:88px) using the tokens already declared on
   .sbp-page — same language, scoped selectors, no global Explore rules reused.
   No outer white card: the CHL background stays the page canvas.
   ══════════════════════════════════════════════════════════════════════ */

.sbp-page {
	--sbp-sticky-top: 88px;   /* clears the site header, as Explore's sidebar does */
}

.sbp-menu {
	display: grid;
	grid-template-columns: 256px minmax(0, 1fr);
	gap: clamp(18px, 2vw, 28px);
	align-items: start;
}

/* ── Section navigator ───────────────────────────────────────────────── */

.sbp-menu__nav {
	position: sticky;
	top: var(--sbp-sticky-top);
	min-width: 0;
	max-height: calc(100vh - var(--sbp-sticky-top) - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sbp-menu__navcard {
	background: var(--sbp-surface);
	border: 1px solid var(--sbp-line);
	border-radius: var(--sbp-radius);
	padding: 14px 16px 16px;
}

.sbp-menu__navhead {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--sbp-line);
}

.sbp-menu__navhead strong {
	font-size: 1rem;
	color: var(--sbp-ink);
}

.sbp-menu__navcount {
	margin-left: auto;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--sbp-mut);
}

.sbp-menu__navlist {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.sbp-menu__navlink {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 9px;          /* Explore's .exm-row radius */
	font-size: 0.88rem;
	color: var(--sbp-ink);
	text-decoration: none;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.sbp-menu__navnum {
	margin-left: auto;
	font-size: 0.78rem;
	color: var(--sbp-muted);
	font-variant-numeric: tabular-nums;
}

/* current section: a territory rule + heavier text — never colour alone */
.sbp-menu__navlink::before {
	content: "";
	flex: 0 0 auto;
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: transparent;
	transition: background-color 0.12s ease;
}

.sbp-menu__navlink.is-current {
	background: var(--sbp-purple-soft);   /* Explore's pale selection surface */
	font-weight: 700;
}

.sbp-menu__navlink.is-current::before {
	background: var(--sbp-acc);
}

.sbp-menu__navlink.is-current .sbp-menu__navnum {
	color: var(--sbp-acc-ink);
}

.sbp-menu__navlink:focus-visible {
	outline: 2px solid var(--sbp-focus);
	outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
	.sbp-menu__navlink:hover {
		background: var(--sbp-bg);
	}
}

/* ── Menu content ────────────────────────────────────────────────────── */

.sbp-menu__content {
	min-width: 0;
}

.sbp-menu__head {
	margin-bottom: clamp(18px, 2vw, 26px);
}

.sbp-menu__sub {
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: var(--sbp-muted);
}

.sbp-menu__section {
	/* anchor links must not hide the heading behind the sticky navigator */
	scroll-margin-top: calc(var(--sbp-sticky-top) + 16px);
	padding-top: 4px;
}

.sbp-menu__section + .sbp-menu__section {
	margin-top: clamp(26px, 3vw, 40px);
}

.sbp-menu__sectitle {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 14px;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
	font-weight: 800;
	letter-spacing: -0.012em;
	color: var(--sbp-ink);
}

.sbp-menu__seccount {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--sbp-muted);
}

.sbp-menu__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ── Item cards ──────────────────────────────────────────────────────── */

/* Fixed height at every breakpoint: the image is a right-hand crop that fills
   the card, and the TEXT contracts to make room — the card never grows. */
.sbp-menu__item {
	display: flex;
	align-items: stretch;
	min-width: 0;
	height: var(--sbp-card-h, 118px);
	background: var(--sbp-surface);
	border: 1px solid var(--sbp-line);
	border-radius: 14px;
	overflow: hidden;              /* the image meets the card's rounded corners */
	transition: border-color 0.16s ease;
}

.sbp-menu__itemtext {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	flex: 1 1 auto;
	padding: 14px 16px;
}

/* name + price on ONE row */
.sbp-menu__itemhead {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;               /* wraps gracefully on very narrow cards */
	gap: 4px 10px;
	min-width: 0;
}

.sbp-menu__itemname {
	margin: 0;
	min-width: 0;
	font-size: 0.95rem;
	font-weight: 700;              /* the dominant element */
	line-height: 1.25;
	color: var(--sbp-ink);
}

/* quieter than the name: lighter weight, muted ink, sits beside it */
.sbp-menu__itemprice {
	flex: 0 0 auto;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--sbp-muted);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sbp-menu__itemdesc {
	margin: 6px 0 0;
	font-size: 0.83rem;
	line-height: 1.38;
	color: var(--sbp-muted);
	/* clamped to hold the fixed card height — the name and price are never hidden */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* the right-hand image crop: fixed share of the card, full height, no frame */
.sbp-menu__itemimg {
	flex: 0 0 30%;
	width: 30%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	background: var(--sbp-bg);     /* while it loads; never a visible grey box */
}

.sbp-menu__empty {
	margin: 16px 0 0;
	font-size: 0.95rem;
	color: var(--sbp-muted);
}

@media (hover: hover) and (pointer: fine) {
	.sbp-menu__item:hover {
		border-color: color-mix(in srgb, var(--sbp-acc) 40%, transparent);
	}
}

/* ── Menu responsive ─────────────────────────────────────────────────── */

@media (max-width: 1023px) {
	.sbp-menu {
		grid-template-columns: 208px minmax(0, 1fr);
	}
	.sbp-menu__grid {
		grid-template-columns: minmax(0, 1fr);   /* cards get cramped before the sidebar does */
	}
	.sbp-menu__itemimg {
		flex-basis: 26%;                          /* a touch narrower so the text keeps room */
		width: 26%;
	}
}

/* Below this the sidebar stops being useful: it becomes a horizontal strip
   above the menu — one row, scrolling, never a narrow left rail. */
@media (max-width: 767px) {
	.sbp-menu {
		display: block;
	}
	.sbp-menu__nav {
		position: static;
		max-height: none;
		overflow: visible;
		margin-bottom: 18px;
	}
	.sbp-menu__navcard {
		padding: 0;
		border: 0;
		background: transparent;
	}
	.sbp-menu__navhead {
		display: none;                 /* the page heading below already says "Menu" */
	}
	.sbp-menu__navlist {
		display: flex;
		gap: 8px;
		margin: 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-ms-overflow-style: none;
		/* the strip bleeds to the page gutters so the first/last chip can sit flush */
		padding: 2px calc(var(--sbp-gutter)) 2px 0;
	}
	.sbp-menu__navlist::-webkit-scrollbar {
		display: none;
	}
	.sbp-menu__navlist li {
		flex: 0 0 auto;
	}
	.sbp-menu__navlink {
		min-height: 44px;
		padding: 10px 14px;
		background: var(--sbp-surface);
		border: 1px solid var(--sbp-line);
		border-radius: 999px;
		white-space: nowrap;
	}
	.sbp-menu__navlink::before {
		display: none;                 /* the chip itself carries the state */
	}
	.sbp-menu__navlink.is-current {
		background: var(--sbp-acc-soft);
		border-color: color-mix(in srgb, var(--sbp-acc) 50%, transparent);
		color: var(--sbp-acc-ink);
	}
	.sbp-menu__section {
		scroll-margin-top: 16px;       /* nothing is sticky here */
	}
	.sbp-menu__head {
		margin-bottom: 16px;
	}
}

@media (max-width: 639px) {
	.sbp-page {
		--sbp-card-h: 108px;       /* same card, slightly tighter */
	}
	.sbp-menu__itemtext {
		padding: 12px 14px;
	}
	/* a fixed pixel crop reads better than a percentage in a narrow column */
	.sbp-menu__itemimg {
		flex: 0 0 96px;
		width: 96px;
	}
	.sbp-menu__itemname {
		font-size: 0.92rem;
	}
	.sbp-menu__itemdesc {
		font-size: 0.8rem;
	}
}

@media (max-width: 379px) {
	.sbp-menu__itemimg {
		flex-basis: 84px;
		width: 84px;
	}
	.sbp-menu__itemdesc {
		-webkit-line-clamp: 2;
	}
}

/* ============================================================
   CHL:BSITE_CONTENT v1 — Profile / Blog / About tab content.
   Same scoped .sbp- vocabulary; no layout or shell changes.
   ============================================================ */
.sbp-page .sbp-profile{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start;}
.sbp-page .sbp-profile__summary{font-size:1.1rem;line-height:1.6;color:#1f2937;font-weight:500;margin:0 0 14px;}
.sbp-page .sbp-profile__body{font-size:.98rem;line-height:1.75;color:var(--sbp-mut);}
.sbp-page .sbp-profile__empty{color:#6b7280;font-size:.95rem;}
.sbp-page .sbp-profile__facts{border:1px solid var(--sbp-line);border-radius:14px;background:#fff;padding:16px 18px;display:grid;gap:12px;}
.sbp-page .sbp-profile__fact{display:grid;gap:2px;}
.sbp-page .sbp-profile__fact-label{font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9ca3af;}
.sbp-page .sbp-profile__fact-value{font-size:.92rem;color:#111827;overflow-wrap:anywhere;}
.sbp-page .sbp-profile__fact-value a{color:var(--sbp-acc-ink);text-decoration:none;}
.sbp-page .sbp-profile__fact-value a:hover{text-decoration:underline;}
@media (max-width:760px){.sbp-page .sbp-profile{grid-template-columns:1fr;}}

.sbp-page .sbp-blog{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;}
.sbp-page .sbp-blog__card{display:flex;flex-direction:column;gap:6px;border:1px solid var(--sbp-line);border-radius:14px;background:#fff;padding:16px 18px;text-decoration:none;transition:border-color .12s ease,box-shadow .12s ease;}
.sbp-page .sbp-blog__card:hover{border-color:var(--sbp-acc);box-shadow:0 10px 24px -18px rgba(17,24,39,.35);}
.sbp-page .sbp-blog__date{font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#9ca3af;}
.sbp-page .sbp-blog__title{font-size:1.02rem;font-weight:700;color:#111827;line-height:1.35;}
.sbp-page .sbp-blog__summary{font-size:.88rem;color:#4b5563;line-height:1.55;}
.sbp-page .sbp-blog__more{margin-top:auto;font-size:.82rem;font-weight:600;color:var(--sbp-acc-ink);}

.sbp-page .sbp-about__body{max-width:70ch;font-size:.98rem;line-height:1.75;color:var(--sbp-mut);}

/* ═══════════════════════════════════════════════════════════════════════
   BP:COMPOSITION v1 — plan-driven page furniture.
   Governed by CHL_BUSINESS_PAGE_EXPERIENCE_CONSTITUTION_v1 §5 (orange as
   signature), §6 (opening), §8 (local navigation, mobile bar), §9 (perf).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── §6 open status — honest, from stored hours only. The dot is the ONE
      permitted orange live-dot when open (§5 loci budget); the chip itself
      stays a quiet neutral so status reads as fact, not decoration. ── */
.sbp-page .sbp-info__open {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 11px 3px 9px;
	border: 1px solid var(--sbp-line);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sbp-ink);
	background: var(--sbp-card);
}
.sbp-page .sbp-info__open.is-closed { color: var(--sbp-mut); }
.sbp-page .sbp-info__opendot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--sbp-mut);
}
.sbp-page .sbp-info__open.is-open .sbp-info__opendot { background: var(--sbp-org-display); }

/* ── §6 the page's ONE primary action — the one solid orange control ── */
.sbp-page .sbp-action--primary {
	background: var(--sbp-orange);
	border-color: var(--sbp-orange);
	color: #fff;
	font-weight: 700;
}
.sbp-page .sbp-action--primary .bi { color: #fff; }
.sbp-page .sbp-action--primary:hover { background: var(--sbp-orange-ink); border-color: var(--sbp-orange-ink); color: #fff; }

/* ── §6 honest hero fallback — a light-study field, never an orange wall.
      The stops are the business's TERRITORY field tokens (A1) — deterministic
      per business, clearly not photography; the keel declares hsl() defaults
      so the field still reads with no territory set. A soft horizon line
      keeps it a "study", not a flat fill (px precedent). ── */
.sbp-page .sbp-banner--field {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(120% 90% at 78% 8%, var(--sbp-field-b) 0%, transparent 55%),
		radial-gradient(90% 70% at 12% 92%, var(--sbp-field-c) 0%, transparent 60%),
		linear-gradient(180deg, var(--sbp-field-b) 0%, var(--sbp-field-a) 46%, var(--sbp-field-c) 100%);
}
.sbp-page .sbp-banner--field::after {
	content: "";
	position: absolute;
	left: 8%; right: 8%; top: 58%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(32, 26, 20, 0.2), transparent);
}
.sbp-page .sbp-banner__mono {
	font-size: clamp(44px, 6vw, 72px);
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--sbp-acc-ink);
	opacity: 0.5;
	user-select: none;
}

/* ── §8 local navigation — ONE sticky rail generated from the plan. It is
      the masthead band's bottom edge: same white surface, same side inset,
      closed by the band's radius. The active marker is the orange 3px
      underline (px precedent) — the third and last §5 signature locus. ── */
.sbp-page .sbp-localnav {
	position: sticky;
	top: 0;
	z-index: 40;
	margin: 0 var(--sbp-band-inset);
	background: color-mix(in srgb, var(--sbp-card) 96%, transparent);
	backdrop-filter: blur(8px);
	border: 1px solid var(--sbp-line);
	border-top: 1px solid var(--sbp-line);
	border-radius: 0 0 var(--sbp-r-lg) var(--sbp-r-lg);
	box-shadow: var(--sbp-shadow);
}
.sbp-page .sbp-localnav__rail {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	border-radius: inherit;
}
.sbp-page .sbp-localnav__rail::-webkit-scrollbar { display: none; }
.sbp-page .sbp-localnav__list {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0 clamp(10px, 1.6vw, 22px);
	white-space: nowrap;
}
.sbp-page .sbp-localnav__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 2px 13px 0;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--sbp-mut);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.sbp-page .sbp-localnav__link:hover { color: var(--sbp-ink); }
.sbp-page .sbp-localnav__link.is-active {
	color: var(--sbp-ink);
	border-bottom-color: var(--sbp-org-display);
}
.sbp-page .sbp-localnav__link:focus-visible {
	outline: 2px solid var(--sbp-focus);
	outline-offset: -3px;
}

/* narrow viewports: the rail runs edge-to-edge (px precedent) so nothing
   peeks beside its corners once it sticks */
@media (max-width: 767px) {
	.sbp-page .sbp-localnav {
		margin-inline: calc(var(--sbp-gutter) * -1);
		border-inline: 0;
		border-radius: 0;
	}
}

/* anchors land below the sticky rail — never under it */
.sbp-page [data-sbp-anchor],
.sbp-page #bp-top { scroll-margin-top: 76px; }
.sbp-page .sbp-anchor-alias { display: block; height: 0; scroll-margin-top: 76px; }

/* ── §8 compact mobile action bar — real capabilities only ──
   Pass C: breakpoint raised 760 → 768 so the bar covers the full small-tablet
   band the proof matrix tests (390/430/768 must all show the bar). */
.sbp-page .sbp-mobilebar { display: none; }
@media (max-width: 768px) {
	.sbp-page .sbp-mobilebar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 60;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		gap: 8px;
		padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--sbp-surface) 94%, transparent);
		backdrop-filter: blur(10px);
		border-top: 1px solid var(--sbp-line);
	}
	.sbp-page .sbp-mobilebar__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 44px;
		padding: 8px 10px;
		border-radius: 12px;
		background: var(--sbp-surface);
		border: 1px solid var(--sbp-line);
		color: var(--sbp-ink);
		font-size: 0.8rem;
		font-weight: 700;
		text-decoration: none;
		overflow: hidden;
	}
	.sbp-page .sbp-mobilebar__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.sbp-page .sbp-mobilebar__btn .bi { flex: none; }
	.sbp-page .sbp-mobilebar__btn--primary {
		background: var(--sbp-orange);
		border-color: var(--sbp-orange);
		color: #fff;
	}
	.sbp-page .sbp-mobilebar__btn:focus-visible { outline: 2px solid var(--sbp-focus); outline-offset: 2px; }
	/* the bar must never cover the last section or the footer */
	.sbp-page:has(.sbp-mobilebar) { padding-bottom: 120px; }
	/* Pass C: the page padding protects .sbp-page content, but the CHROME
	   footer below <main> still lost its final row behind the fixed bar
	   (witnessed: last footer link fully obscured at 390). Governed exception
	   to the .sbp-page scoping law — existence-gated on the bar via :has(), so
	   it can never apply outside a Business Page that renders the bar. */
	body:has(.sbp-page .sbp-mobilebar) footer { padding-bottom: 90px; }
}

/* §9 — reduced motion: no animated surprises from this shell */
@media (prefers-reduced-motion: reduce) {
	.sbp-page .sbp-localnav__link,
	.sbp-page .sbp-action { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RHYTHM SURFACES (§7 District Law) — the surface vocabulary Pass B section
   grammars compose with. Four registers, so density can alternate instead
   of repeating "heading, three cards, whitespace":
     .sbp-band      full-bleed-of-shell tinted territory band (soft moment)
     .sbp-card-sec  a white card section (px-card register)
     .sbp-proofrow  compact horizontal proof strip (dense register)
     .sbp-imgled    image-led split (media register)
   ═══════════════════════════════════════════════════════════════════════ */

.sbp-page .sbp-band {
	background: var(--sbp-acc-soft);
	border-block: 1px solid color-mix(in srgb, var(--sbp-acc) 12%, transparent);
	border-radius: var(--sbp-r-lg);
	padding: clamp(26px, 4vw, 54px) clamp(18px, 3vw, 44px);
}

.sbp-page .sbp-card-sec {
	background: var(--sbp-card);
	border: 1px solid var(--sbp-line);
	border-radius: var(--sbp-r);
	box-shadow: var(--sbp-shadow);
	padding: clamp(20px, 3vw, 32px);
}

.sbp-page .sbp-proofrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px clamp(18px, 3vw, 40px);
	padding: clamp(14px, 2vw, 20px) 0;
	border-block: 1px solid var(--sbp-line);
}

.sbp-page .sbp-imgled {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 44px);
	align-items: center;
}
.sbp-page .sbp-imgled > img,
.sbp-page .sbp-imgled__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 460px;
	object-fit: cover;
	border-radius: var(--sbp-r-lg);
	display: block;
}
@media (max-width: 860px) {
	.sbp-page .sbp-imgled { grid-template-columns: minmax(0, 1fr); }
}
