/* =========================================================================
   BHS Algolia Search — header opener, overlay, autocomplete panel,
   results page. Black & white; theme fonts with system fallbacks.
   Theme facts reused: [id='header'] z-index 99; .search-header rule;
   .card / .card-img / .card-title / .underline-style; icomoon glyphs.
   ========================================================================= */

:root {
	--bhs-sans: 'sofia_pro', 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif;
	--bhs-serif: 'ogg_roman', 'Times New Roman', 'Times', 'Baskerville', 'Georgia', serif;
	--bhs-black: #000;
	--bhs-ink: #333;
	--bhs-ink-soft: #565656;
	--bhs-muted: #8a8a8a;
	--bhs-rule: #dcdcdc;
	--bhs-rule-soft: #ececec;
	--bhs-paper: #fff;
	--bhs-paper-soft: #f7f7f7;
	--bhs-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--bhs-z-overlay: 100000;
}

/* Hidden attribute safety (theme reset may not define it). */
.bhs-search[hidden],
.bhs-search__fallback[hidden],
#bhs-search-opener-tpl[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
   1. Header opener (lives inside ul.header-links, before the cart li)
   ---------------------------------------------------------------------- */

.header-links .bhs-search-li {
	display: block;
	margin: 0 15px 0 0;
}
@media (min-width: 768px) {
	.header-links .bhs-search-li {
		margin: 0 0 0 15px;
	}
}
.header-links .search-holder {
	position: relative;
	line-height: 1;
}
.header-links .search-holder > a.opener {
	position: relative;
	z-index: 10;
	display: inline-block;
	line-height: 1;
	color: var(--bhs-black);
	text-decoration: none;
	transition: opacity 0.3s ease-in-out;
}
.header-links .search-holder > a.opener:hover,
.header-links .search-holder > a.opener:focus-visible {
	opacity: 0.7;
}
.header-links .search-holder > a.opener:focus-visible {
	outline: 1px solid var(--bhs-black);
	outline-offset: 4px;
}
.header-links .search-holder > a.opener .icon-search {
	display: inline-block;
	font-size: 1em;
	line-height: 1;
	vertical-align: middle;
	transform: translateY(-1px);
}
/* Fallback container when the theme has no ul.header-links at all. */
ul.header-links.bhs-header-links--generated {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* -------------------------------------------------------------------------
   2. Overlay
   ---------------------------------------------------------------------- */

html.bhs-search-open,
html.bhs-search-open body {
	overflow: hidden !important;
}

.bhs-search {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--bhs-z-overlay);
	display: block;
	font-family: var(--bhs-sans);
	color: var(--bhs-ink);
	opacity: 0;
	transition: opacity 0.25s var(--bhs-ease);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.bhs-search.is-open {
	opacity: 1;
}
.bhs-search__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(255, 255, 255, 0.96);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.bhs-search__backdrop {
		background: rgba(255, 255, 255, 0.9);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}
}
.bhs-search__inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
.bhs-search__container {
	position: relative;
	width: 100%;
	max-width: 1210px;
	margin: 0 auto;
	padding: 18px 15px 40px;
	transform: translateY(-8px);
	transition: transform 0.3s var(--bhs-ease);
}
.bhs-search.is-open .bhs-search__container {
	transform: translateY(0);
}
@media (min-width: 1024px) {
	.bhs-search__container {
		padding-top: 34px;
	}
}

.bhs-search__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
	margin: 0 0 12px;
}
.bhs-search__eyebrow {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bhs-ink-soft);
}
.bhs-search__close {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bhs-black);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.3s ease-in-out;
}
@media (min-width: 480px) {
	.bhs-search__close {
		font-size: 20px;
	}
}
.bhs-search__close:hover {
	opacity: 0.6;
}
.bhs-search__close:focus-visible {
	outline: 1px solid var(--bhs-black);
	outline-offset: 2px;
}
/* Glyph fallback if icomoon is not present. */
.bhs-search__close:not(.icon-close):before {
	content: '\00d7';
	font-family: var(--bhs-serif);
	font-size: 1.6em;
}

/* Field wrapper reuses the theme's .search-header (position:relative; 1px #dcdcdc bottom rule). */
.bhs-search__field {
	position: relative;
	border-bottom: 1px solid var(--bhs-black);
}

/* -------------------------------------------------------------------------
   3. Autocomplete (@algolia/autocomplete-js v1) — scoped to the overlay
   ---------------------------------------------------------------------- */

#bhs-search {
	--aa-font-family: var(--bhs-sans);
	--aa-font-size: 16px;
	--aa-text-color-rgb: 0, 0, 0;
	--aa-primary-color-rgb: 0, 0, 0;
	--aa-muted-color-rgb: 86, 86, 86;
	--aa-icon-color-rgb: 0, 0, 0;
	--aa-icon-color-alpha: 1;
	--aa-input-border-color-rgb: 0, 0, 0;
	--aa-input-border-color-alpha: 0;
	--aa-input-background-color-rgb: 255, 255, 255;
	--aa-input-background-color-alpha: 0;
	--aa-panel-border-color-rgb: 220, 220, 220;
	--aa-panel-border-color-alpha: 0;
	--aa-background-color-rgb: 255, 255, 255;
	--aa-background-color-alpha: 0;
	--aa-selected-color-rgb: 0, 0, 0;
	--aa-selected-color-alpha: 0.04;
	--aa-description-highlight-background-color-alpha: 0;
	--aa-panel-shadow: none;
	--aa-panel-max-height: none;
	--aa-search-input-height: 64px;
	--aa-spacing: 0px;
	--aa-spacing-half: 0px;
}

#bhs-search .aa-Autocomplete,
#bhs-search .aa-Form {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	font-family: var(--bhs-sans);
}
#bhs-search .aa-Form {
	display: flex;
	align-items: center;
	min-height: 64px;
	outline: none;
}
#bhs-search .aa-Form:focus-within {
	box-shadow: none;
	border-color: transparent;
}
#bhs-search .aa-InputWrapperPrefix,
#bhs-search .aa-InputWrapperSuffix {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	height: auto;
	order: 0;
}
#bhs-search .aa-InputWrapperPrefix {
	order: 2;
}
#bhs-search .aa-InputWrapperSuffix {
	order: 1;
}
#bhs-search .aa-InputWrapper {
	order: 0;
	flex: 1 1 auto;
	min-width: 0;
}
#bhs-search .aa-Label,
#bhs-search .aa-LoadingIndicator {
	position: static;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	width: auto;
	height: auto;
}
#bhs-search .aa-Label[hidden],
#bhs-search .aa-LoadingIndicator[hidden],
#bhs-search .aa-ClearButton[hidden] {
	display: none;
}
#bhs-search .aa-SubmitButton,
#bhs-search .aa-ClearButton,
#bhs-search .aa-LoadingIndicator {
	position: static;
	top: auto;
	right: auto;
	left: auto;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bhs-black);
	cursor: pointer;
	transition: opacity 0.3s ease-in-out;
}
#bhs-search .aa-SubmitButton:hover,
#bhs-search .aa-ClearButton:hover {
	opacity: 0.6;
}
#bhs-search .aa-SubmitButton:focus-visible,
#bhs-search .aa-ClearButton:focus-visible {
	outline: 1px solid var(--bhs-black);
	outline-offset: 2px;
}
#bhs-search .aa-SubmitIcon,
#bhs-search .aa-ClearIcon,
#bhs-search .aa-LoadingIcon {
	width: 20px;
	height: 20px;
	color: var(--bhs-black);
	fill: currentColor;
}
#bhs-search .aa-ClearIcon {
	width: 16px;
	height: 16px;
}
#bhs-search .aa-ClearButton {
	color: var(--bhs-ink-soft);
}

#bhs-search .aa-Input,
#bhs-search .bhs-search__fallback-input {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 100%;
	height: 64px;
	margin: 0;
	padding: 0 8px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: var(--bhs-black);
	font-family: var(--bhs-sans);
	font-size: 22px;
	font-weight: 300;
	line-height: 64px;
	letter-spacing: 0.01em;
}
@media (min-width: 480px) {
	#bhs-search .aa-Input,
	#bhs-search .bhs-search__fallback-input {
		height: 80px;
		line-height: 80px;
		font-size: 26px;
	}
}
@media (min-width: 1024px) {
	#bhs-search .aa-Input,
	#bhs-search .bhs-search__fallback-input {
		height: 96px;
		line-height: 96px;
		font-size: 34px;
	}
}
#bhs-search .aa-Input::placeholder,
#bhs-search .bhs-search__fallback-input::placeholder {
	color: var(--bhs-muted);
	opacity: 1;
	font-weight: 300;
}
#bhs-search .aa-Input::-webkit-search-decoration,
#bhs-search .aa-Input::-webkit-search-cancel-button,
#bhs-search .bhs-search__fallback-input::-webkit-search-decoration,
#bhs-search .bhs-search__fallback-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
#bhs-search .aa-Input:focus,
#bhs-search .bhs-search__fallback-input:focus {
	outline: none;
	box-shadow: none;
}

/* Plain fallback form (only shown when autocomplete-js is unavailable). */
.bhs-search__fallback {
	display: flex;
	align-items: center;
	margin: 0;
}
.bhs-search__fallback-submit {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bhs-black);
	font-size: 20px;
	cursor: pointer;
}
.bhs-search--fallback #bhs-autocomplete {
	display: none;
}

/* Panel: rendered inside #bhs-search-panel, forced into normal flow. */
#bhs-search .aa-Panel {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	z-index: auto;
	font-family: var(--bhs-sans);
}
#bhs-search .aa-PanelLayout,
#bhs-search .aa-Panel--scrollable {
	max-height: none;
	overflow: visible;
	padding: 0;
	margin: 0;
}
#bhs-search .aa-Source {
	position: relative;
}
#bhs-search .aa-SourceHeader {
	margin: 0;
	padding: 22px 0 8px;
}
#bhs-search .aa-SourceHeader:before,
#bhs-search .aa-SourceHeader:after {
	display: none;
}
#bhs-search .aa-SourceHeader .autocomplete-header {
	margin: 0;
	line-height: 1;
	border: 0;
}
#bhs-search .aa-SourceHeader .autocomplete-header-title {
	float: none;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bhs-ink-soft);
}
#bhs-search .aa-List {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	width: 100%;
	max-width: 100%;
}
#bhs-search .aa-Item {
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 768px) {
	#bhs-search .aa-List {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 40px;
	}
}
#bhs-search .aa-Item {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	min-height: 0;
	cursor: pointer;
}
#bhs-search .aa-Item[aria-selected='true'] {
	background: transparent;
}
#bhs-search .aa-Item[aria-selected='true'] .bhs-aa-item__link {
	background: rgba(0, 0, 0, 0.035);
}
#bhs-search .aa-Item[aria-selected='true'] .bhs-aa-item__title {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.bhs-aa-item {
	display: block;
}
.bhs-aa-item__link,
#bhs-search .aa-Item .bhs-aa-item__link,
#bhs-search .aa-Item a.suggestion-link {
	display: flex !important;
	align-items: center;
	gap: 16px;
	margin: 0 -8px;
	padding: 10px 8px !important;
	border-bottom: 1px solid var(--bhs-rule-soft);
	text-decoration: none;
	color: var(--bhs-ink);
	transition: background-color 0.2s ease-in-out;
}
.bhs-aa-item__link:hover {
	background: rgba(0, 0, 0, 0.035);
	text-decoration: none;
}
.bhs-aa-item__link:hover .bhs-aa-item__title {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.bhs-aa-item__media,
#bhs-search .aa-Item .bhs-aa-item__media {
	display: block !important;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	background: var(--bhs-paper-soft);
}
.bhs-aa-item__img,
#bhs-search .aa-Item .suggestion-post-thumbnail,
#bhs-search .aa-Item .suggestion-user-thumbnail {
	display: block;
	float: none;
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
}
.bhs-aa-item__body,
#bhs-search .aa-Item .bhs-aa-item__body {
	display: flex !important;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}
.bhs-aa-item__title,
#bhs-search .aa-Item .suggestion-post-title {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: var(--bhs-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--bhs-black);
	letter-spacing: 0.005em;
}
.bhs-aa-item__title em,
.bhs-aa-item__title mark,
#bhs-search .aa-Item .suggestion-post-title em,
#bhs-search .aa-Item .suggestion-post-title mark {
	font-style: normal;
	font-weight: 600;
	color: inherit;
	background: transparent;
	box-shadow: none;
	padding: 0;
}
.bhs-aa-item__subtitle {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--bhs-ink-soft);
}

/* Label chip — shared by autocomplete and results. */
.bhs-label {
	display: inline-block;
	align-self: flex-start;
	font-family: var(--bhs-sans);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bhs-ink-soft);
}
.bhs-aa-item__label {
	margin: 0 0 1px;
}

/* Monogram placeholder */
.bhs-monogram {
	display: block;
	width: 100%;
	height: 100%;
}

/* Empty state in the panel */
#bhs-search .aa-SourceNoResults {
	padding: 0;
}
.bhs-aa-empty {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px 0 10px;
	clear: both;
}
.bhs-aa-empty__title {
	font-family: var(--bhs-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--bhs-black);
}
.bhs-aa-empty__title .empty-query {
	font-weight: 400;
	font-style: italic;
}
.bhs-aa-empty__hint {
	font-size: 14px;
	color: var(--bhs-ink-soft);
}

/* Footer: see all results + optional branding */
#bhs-search .aa-SourceFooter {
	margin: 0;
	padding: 0;
}
.bhs-aa-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 0 0;
}
.bhs-aa-footer__all {
	font-family: var(--bhs-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bhs-black);
	text-decoration: none;
}
.bhs-aa-footer__all.underline-style:after {
	background: var(--bhs-black);
	width: 100%;
	height: 1px;
}
.bhs-aa-footer__all.underline-style:hover:after {
	width: 0;
}
.bhs-aa-footer__branding {
	float: none;
	margin: 0;
	padding: 0;
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--bhs-muted);
}
.bhs-aa-footer__branding a {
	color: inherit;
	text-decoration: none;
}
.bhs-aa-footer__branding a:hover {
	color: var(--bhs-black);
}

/* -------------------------------------------------------------------------
   4. Results page (instantsearch.js v4)
   ---------------------------------------------------------------------- */

.bhs-results {
	font-family: var(--bhs-sans);
}
.bhs-results__title h1 span {
	font-style: italic;
	font-family: var(--bhs-serif);
	font-weight: 400;
}
.bhs-results__title h1 span:empty:before {
	content: '\2026';
	font-style: normal;
	color: var(--bhs-muted);
}

.bhs-results__searchbar {
	position: relative;
	margin: 0 0 22px;
	border-bottom: 1px solid var(--bhs-black);
}
.bhs-results__box {
	position: relative;
}
.bhs-results__box .ais-SearchBox-form,
.bhs-results__form {
	display: flex;
	align-items: center;
	position: relative;
	margin: 0;
}
.bhs-results__box .ais-SearchBox-input,
.bhs-results__input {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	flex: 1 1 auto;
	width: 100%;
	height: 60px;
	margin: 0;
	padding: 0 8px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: var(--bhs-black);
	font-family: var(--bhs-sans);
	font-size: 22px;
	font-weight: 300;
	line-height: 60px;
	order: 0;
}
@media (min-width: 1024px) {
	.bhs-results__box .ais-SearchBox-input,
	.bhs-results__input {
		height: 76px;
		line-height: 76px;
		font-size: 28px;
	}
}
.bhs-results__box .ais-SearchBox-input::placeholder {
	color: var(--bhs-muted);
	opacity: 1;
}
.bhs-results__box .ais-SearchBox-input::-webkit-search-decoration,
.bhs-results__box .ais-SearchBox-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.bhs-results__box .ais-SearchBox-input:focus {
	outline: none;
	box-shadow: none;
}
.bhs-results__box .ais-SearchBox-submit,
.bhs-results__box .ais-SearchBox-reset {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bhs-black);
	cursor: pointer;
	transition: opacity 0.3s ease-in-out;
}
.bhs-results__box .ais-SearchBox-submit {
	order: 2;
}
.bhs-results__box .ais-SearchBox-reset {
	order: 1;
	color: var(--bhs-ink-soft);
}
.bhs-results__box .ais-SearchBox-submit:hover,
.bhs-results__box .ais-SearchBox-reset:hover {
	opacity: 0.6;
}
.bhs-results__box .ais-SearchBox-submit[hidden],
.bhs-results__box .ais-SearchBox-reset[hidden],
.bhs-results__box .ais-SearchBox-loadingIndicator[hidden] {
	display: none;
}
.bhs-results__box .ais-SearchBox-submitIcon,
.bhs-results__box .ais-SearchBox-resetIcon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.bhs-results__box .ais-SearchBox-resetIcon {
	width: 12px;
	height: 12px;
}
.bhs-results__noscript {
	display: flex;
	gap: 8px;
	padding: 12px 0;
}

.bhs-results__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0 12px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bhs-ink-soft);
}
.bhs-results__stats .ais-Stats,
.bhs-results__stats .ais-Stats-text {
	position: static;
	font-size: inherit;
	color: inherit;
}
.bhs-results__powered {
	position: static;
	font-size: 11px;
	text-transform: none;
	letter-spacing: 0.02em;
}
.bhs-results__powered .ais-PoweredBy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	opacity: 0.6;
}
.bhs-results__powered .ais-PoweredBy-logo {
	height: 14px;
	width: auto;
}

/* Filters: horizontal pill row (refinementList) */
.bhs-results__filters {
	margin: 0 0 28px;
}
.bhs-pills__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	list-style: none;
	margin: 0 -15px;
	padding: 2px 15px 6px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.bhs-pills__list::-webkit-scrollbar {
	display: none;
}
@media (min-width: 768px) {
	.bhs-pills__list {
		flex-wrap: wrap;
		margin: 0;
		padding: 0;
		overflow: visible;
	}
}
.bhs-pills__item {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}
.bhs-pills__label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 16px;
	border: 1px solid var(--bhs-black);
	border-radius: 999px;
	background: var(--bhs-paper);
	color: var(--bhs-black);
	font-family: var(--bhs-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition:
		background-color 0.25s ease-in-out,
		color 0.25s ease-in-out,
		border-color 0.25s ease-in-out;
}
.bhs-pills__label:hover {
	background: var(--bhs-paper-soft);
}
.bhs-pills__checkbox {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.bhs-pills__label:focus-within {
	outline: 1px solid var(--bhs-black);
	outline-offset: 3px;
}
.bhs-pills__count {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.05em;
	color: var(--bhs-ink-soft);
	margin: 0;
}
.bhs-pills__item--selected .bhs-pills__label {
	background: var(--bhs-black);
	color: var(--bhs-paper);
	border-color: var(--bhs-black);
}
.bhs-pills__item--selected .bhs-pills__count {
	color: rgba(255, 255, 255, 0.7);
}
.bhs-pills .ais-RefinementList-noResults,
.bhs-pills .ais-RefinementList-showMore {
	display: none;
}

/* Hits grid */
.bhs-grid__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) {
	.bhs-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 44px 24px;
	}
}
@media (min-width: 1200px) {
	.bhs-grid__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 56px 32px;
	}
}
.bhs-grid__item {
	margin: 0;
	padding: 0;
	min-width: 0;
}
.bhs-grid__item em,
.bhs-grid__item mark {
	font-style: normal;
	background: transparent;
	border-radius: 0;
	color: inherit;
}

.bhs-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	line-height: 1.44;
	color: #393e46;
}
.bhs-card__img {
	position: relative;
	overflow: hidden;
	margin: 0 0 14px;
	background: var(--bhs-paper-soft);
}
.bhs-card__img-link {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 100%; /* 1:1 box; plugin thumbnails are 150x150 */
}
.bhs-card__img img,
.bhs-card__placeholder {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s var(--bhs-ease);
}
.bhs-card__img:hover img {
	transform: scale(1.04);
}
.bhs-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bhs-paper-soft);
}
.bhs-card__placeholder .bhs-monogram {
	width: 40%;
	max-width: 96px;
	height: auto;
}
.bhs-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.bhs-card__label {
	margin: 0 0 4px;
}
.bhs-results .card-title.bhs-card__title {
	margin: 0;
	font-family: var(--bhs-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.005em;
}
@media (min-width: 1024px) {
	.bhs-results .card-title.bhs-card__title {
		font-size: 19px;
	}
}
.bhs-results .card-title.bhs-card__title a {
	color: var(--bhs-black);
	font-weight: inherit;
}
.bhs-results .card-title.bhs-card__title a.underline-style:after {
	background: var(--bhs-black);
}
.bhs-results .card-title.bhs-card__title mark {
	font-weight: 600;
}
.bhs-card__subtitle,
.bhs-card__price,
.bhs-card__snippet {
	margin: 0;
}
.bhs-card__subtitle {
	font-size: 13px;
	font-weight: 400;
	color: var(--bhs-ink-soft);
	letter-spacing: 0.01em;
}
.bhs-card__price {
	font-size: 14px;
	font-weight: 500;
	color: var(--bhs-black);
	letter-spacing: 0.02em;
}
.bhs-card__snippet {
	font-size: 13px;
	line-height: 1.5;
	color: var(--bhs-ink-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bhs-card__snippet mark {
	font-weight: 500;
}

/* Store / restaurant thumbnails are often logos: never crop them. */
.bhs-card--store-directory .bhs-card__img img,
.bhs-card--bal-harbour-hotels .bhs-card__img img {
	object-fit: contain;
	padding: 10%;
	box-sizing: border-box;
	background: var(--bhs-paper);
}
.bhs-aa-item--store-directory .bhs-aa-item__img,
.bhs-aa-item--bal-harbour-hotels .bhs-aa-item__img {
	object-fit: contain;
	padding: 4px;
	box-sizing: border-box;
	background: var(--bhs-paper);
}
/* Shopify product shots are portrait on white: keep cover, anchor slightly high. */
.bhs-card--wps_products .bhs-card__img img,
.bhs-aa-item--wps_products .bhs-aa-item__img {
	object-position: center 35%;
	background: var(--bhs-paper);
}

/* Empty state */
.bhs-empty {
	padding: 40px 0 60px;
	border-top: 1px solid var(--bhs-rule);
}
.bhs-empty__title {
	margin: 0 0 8px;
	font-family: var(--bhs-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--bhs-black);
}
@media (min-width: 768px) {
	.bhs-empty__title {
		font-size: 32px;
	}
}
.bhs-empty__title strong {
	font-weight: 400;
	font-style: italic;
}
.bhs-empty__hint {
	margin: 0;
	max-width: 560px;
	font-size: 15px;
	color: var(--bhs-ink-soft);
}

/* Pagination */
.bhs-results__pagination {
	margin: 48px 0 20px;
	padding: 24px 0 0;
	border-top: 1px solid var(--bhs-rule);
}
.bhs-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bhs-pagination__item {
	margin: 0;
	padding: 0;
}
.bhs-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid transparent;
	color: var(--bhs-black);
	font-family: var(--bhs-sans);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition:
		border-color 0.25s ease-in-out,
		background-color 0.25s ease-in-out,
		color 0.25s ease-in-out;
}
.bhs-pagination__link:hover {
	border-color: var(--bhs-black);
}
.bhs-pagination__item--selected .bhs-pagination__link {
	background: var(--bhs-black);
	border-color: var(--bhs-black);
	color: var(--bhs-paper);
}
.bhs-pagination__item--disabled {
	display: none;
}
.bhs-pagination .ais-Pagination-item--previousPage .bhs-pagination__link,
.bhs-pagination .ais-Pagination-item--nextPage .bhs-pagination__link {
	font-size: 16px;
}

/* -------------------------------------------------------------------------
   5. Motion preferences
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.bhs-search,
	.bhs-search__container,
	.bhs-aa-item__link,
	.bhs-card__img img,
	.bhs-pills__label,
	.bhs-pagination__link {
		transition: none !important;
	}
	.bhs-card__img:hover img {
		transform: none;
	}
}


/* -------------------------------------------------------------------------
   6. Broken thumbnails and focus colour overrides
   ---------------------------------------------------------------------- */
#bhs-search .aa-Item .bhs-aa-item__media.is-broken,
.bhs-card__img.is-broken {
	background: var(--bhs-paper-soft, #f2f1ee);
}
#bhs-search .aa-Item .bhs-aa-item__media.is-broken img,
.bhs-card__img.is-broken img {
	visibility: hidden;
}
#bhs-search .aa-Item .bhs-aa-item__media.is-broken::after,
.bhs-card__img.is-broken::after {
	content: 'BHS';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--bhs-serif, Georgia, serif);
	font-size: 11px;
	letter-spacing: 0.18em;
	color: rgba(0, 0, 0, 0.35);
	pointer-events: none;
}
#bhs-search .aa-Item .bhs-aa-item__media {
	position: relative;
}
.bhs-card__img.is-broken::after {
	font-size: 18px;
}
.bhs-results__box .ais-SearchBox-input:focus,
#algolia-search-box .ais-SearchBox-input:focus,
.bhs-results .ais-SearchBox-input:focus {
	border-color: var(--bhs-ink, #000) !important;
	box-shadow: none !important;
	outline: none;
}


/* Logo placeholder (used when a record has no image at all) */
.bhs-monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--bhs-paper-soft, #f7f7f7);
}
.bhs-monogram img {
	width: 60%;
	height: 60%;
	max-width: 120px;
	object-fit: contain;
	opacity: 0.85;
}
#bhs-search .aa-Item .bhs-aa-item__media .bhs-monogram img {
	width: 70%;
	height: 70%;
}
