/* Master Headline - Frontend Styles */
.mh-banner{
	box-sizing: border-box;
	position: fixed;
	top: var(--mh-admin, 0px);
	left: 0;
	right: 0;
	height: var(--mh-height);
	background: var(--mh-bg);
	color: var(--mh-color);
	z-index: 999999;
	display: flex;
	align-items: center;
	box-shadow: 0 10px 22px rgba(0,0,0,.12);
}


.mh-inner{
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0; /* arrows sit at the very edges */
	display: flex;
	align-items: center;
	justify-content: center;
}

.mh-textwrap{
	width: 100%;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: var(--mh-font);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: .2px;
	user-select: none;
	padding: 0 64px; /* space so text doesn't collide with arrows */
}

.mh-text{
	display: inline-block;
	transform: translateY(0);
	opacity: 1;
	transition: opacity .28s ease, transform .28s ease;
}

.mh-text.mh-out{
	opacity: 0;
	transform: translateY(-6px);
}

.mh-text.mh-in{
	opacity: 0;
	transform: translateY(6px);
}

.mh-btn{
	appearance: none;
	border: 0;
	background: rgba(255,255,255,.12);
	color: inherit;
	width: 36px;
	height: 28px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform .12s ease, background .12s ease;
}

.mh-btn:hover{
	background: rgba(255,255,255,.20);
}


.mh-btn:active{
	background: rgba(255,255,255,.24);
}


.mh-btn svg{
	width: 18px;
	height: 18px;
}

@media (max-width: 520px){
	.mh-inner{
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0; /* arrows sit at the very edges */
	display: flex;
	align-items: center;
	justify-content: center;
}
	.mh-textwrap{
	width: 100%;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: var(--mh-font);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: .2px;
	user-select: none;
	padding: 0 64px; /* space so text doesn't collide with arrows */
}
	.mh-btn{ width: 32px; }
}

/* mh-layout-overrides */
.mh-btn{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}

.mh-prev{ left: 10px; }
.mh-next{ right: 10px; }

@media (max-width: 520px){
	.mh-textwrap{ padding: 0 56px; }
	.mh-prev{ left: 8px; }
	.mh-next{ right: 8px; }
}

/* Master Header integration (your header plugin uses #master-header.mh-sticky { top:0; }) */
:root{ --mh-header-offset: 0px; --mh-admin: var(--mh-admin, 0px); }
#master-header.mh-sticky{
	top: calc(var(--mh-admin, 0px) + var(--mh-height, 0px) + var(--mh-header-offset, 0px)) !important;
}
@supports not (position: sticky){
	#master-header.mh-sticky{
		top: calc(var(--mh-admin, 0px) + var(--mh-height, 0px) + var(--mh-header-offset, 0px)) !important;
	}
}
