/**
 * Slide Menu
 *
 * Buttons and links share the .slm-btn reset below. It must beat theme and kit button
 * styles (e.g. Hello's "[type=button]:hover"), so every state is listed and the values
 * come from private --_* variables: component rules set those variables instead of
 * the properties, and Elementor controls (more specific) can still set properties directly.
 */

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

.slm {
	display: flex;
}

.slm .slm-btn,
.slm .slm-btn:hover,
.slm .slm-btn:focus,
.slm .slm-btn:active,
.slm .slm-btn:visited {
	-webkit-appearance: none;
	appearance: none;
	width: var(--_width, auto);
	min-height: 0;
	margin: 0;
	padding-block: var(--_py, 0);
	padding-inline: var(--_ps, 0) var(--_pe, 0);
	border: 0 solid currentColor;
	border-radius: var(--_radius, 0);
	background-color: var(--_bg, transparent);
	box-shadow: none;
	color: var(--_color, inherit);
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: start;
	text-decoration: var(--_deco, none);
	text-transform: inherit;
	white-space: normal;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
	-webkit-user-select: auto;
	user-select: auto;
	-webkit-tap-highlight-color: transparent;
}

.slm .slm-btn:focus-visible {
	outline: 2px solid var(--slm-focus-color, currentColor);
	outline-offset: -2px;
	box-shadow: none;
}

/* Icons ------------------------------------------------------------------ */

.slm-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
}

.slm-icon {
	display: block;
	width: 1em;
	height: 1em;
	stroke-width: var(--slm-stroke, 1.5);
	stroke-linecap: square;
	stroke-linejoin: miter;
}

.slm-icon-wrap > svg:not(.slm-icon) {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.slm-icon-wrap > i {
	font-size: 1em;
	line-height: 1;
}

[dir="rtl"] .slm-icon--chevron-left,
[dir="rtl"] .slm-icon--chevron-right {
	transform: scaleX(-1);
}

/* Open button -------------------------------------------------------------- */

.slm .slm-trigger {
	--_py: 6px;
	--_ps: 6px;
	--_pe: 6px;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	line-height: 1.2;
}

.slm-trigger-text-before .slm .slm-trigger {
	flex-direction: row-reverse;
}

.slm-trigger__icon {
	font-size: 28px;
}

/* Dialog, backdrop and panel ----------------------------------------------- */

.slm-dialog {
	--slm-gutter: 28px;
	--slm-header-height: 64px;
	--slm-item-py: 16px;
	--slm-indent: 0px;
	--slm-media-size: 32px;
	--slm-template-spacing: 16px;
	--slm-open-duration: 400ms;
	--slm-open-easing: cubic-bezier(0.22, 1, 0.36, 1);
	--slm-level-duration: 350ms;
	--slm-level-easing: cubic-bezier(0.22, 1, 0.36, 1);
	--slm-parallax: -30%;
	--slm-dir: 1;
	position: fixed;
	inset: 0;
	z-index: 100000;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	/* "clip", not just "hidden": a hidden box can still be scrolled by the browser, e.g. to
	   reveal the element focused by showModal() inside a panel that is still off-screen,
	   which made the panel appear at once instead of sliding in. */
	overflow: hidden;
	overflow: clip;
	overscroll-behavior: contain;
}

.slm-dialog:not([open]) {
	display: none !important;
}

/* Elementor Pro's sticky effect inserts a hidden clone of the header, taken whenever it
   re-sticks (e.g. on resize). A clone made while the menu is open would show a dead copy. */
.elementor-sticky__spacer .slm-dialog {
	display: none !important;
}

.slm-dialog::backdrop {
	background: transparent;
}

[dir="rtl"] .slm-dialog {
	--slm-dir: -1;
}

.slm-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity var(--slm-open-duration) ease;
}

.slm-drawer {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	background-color: #fff;
	overflow: hidden;
	overflow: clip;
	transition:
		transform var(--slm-open-duration) var(--slm-open-easing),
		opacity var(--slm-open-duration) var(--slm-open-easing);
}

.slm-position-right .slm-drawer {
	left: auto;
	right: 0;
}

/* Closed state of each opening effect. */
.slm-open-slide-left .slm-drawer {
	transform: translateX(-100%);
}

.slm-open-slide-right .slm-drawer {
	transform: translateX(100%);
}

.slm-open-slide-top .slm-drawer {
	transform: translateY(-100%);
}

.slm-open-slide-bottom .slm-drawer {
	transform: translateY(100%);
}

.slm-open-fade .slm-drawer {
	opacity: 0;
}

.slm-open-scale .slm-drawer {
	opacity: 0;
	transform: scale(0.96);
}

.slm-dialog.is-open .slm-backdrop {
	opacity: 1;
}

.slm-dialog.is-open .slm-drawer {
	opacity: 1;
	transform: none;
}

.slm-open-none .slm-drawer,
.slm-open-none .slm-backdrop,
.slm-no-anim,
.slm-no-anim * {
	transition: none !important;
}

html.slm-locked {
	overflow: hidden;
	scrollbar-gutter: stable;
}

/* Levels -------------------------------------------------------------------- */

.slm-nav {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.slm-viewport {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	/* Same as .slm-dialog: levels waiting off-screen must never be scrolled into view. */
	overflow: hidden;
	overflow: clip;
}

.slm-level {
	position: absolute;
	inset: 0;
	z-index: var(--slm-depth, 0);
	display: flex;
	flex-direction: column;
	background-color: #fff;
	visibility: hidden;
	transform: translateX(calc(100% * var(--slm-dir)));
	transition:
		transform var(--slm-level-duration) var(--slm-level-easing),
		opacity var(--slm-level-duration) var(--slm-level-easing),
		visibility 0s linear var(--slm-level-duration);
}

/* "inherit", not "visible": a level must stay hidden inside an ancestor hidden by someone else. */
.slm-level.is-active {
	visibility: inherit;
	transform: none;
	transition-delay: 0s;
}

.slm-level.is-behind {
	transform: translateX(calc(var(--slm-parallax) * var(--slm-dir)));
}

/* Levels receive focus after a tap (see focusLevel() in the script); that focus is not for display. */
.slm .slm-level:focus {
	outline: none;
	box-shadow: none;
}

.slm-levels-overlay .slm-level.is-behind {
	transform: none;
}

.slm-levels-fade .slm-level {
	opacity: 0;
	transform: translateX(calc(24px * var(--slm-dir)));
}

.slm-levels-fade .slm-level.is-behind {
	transform: translateX(calc(-24px * var(--slm-dir)));
}

.slm-levels-fade .slm-level.is-active {
	opacity: 1;
	transform: none;
}

.slm-levels-none .slm-level {
	transition: none;
}

.slm-level--sub {
	--slm-indent: 24px;
}

.slm-container {
	width: 100%;
	max-width: var(--slm-content-max, none);
	margin-inline: var(--slm-content-margin, auto);
}

/* Header ------------------------------------------------------------------- */

.slm-level__header {
	flex: 0 0 auto;
	border-bottom: 1px solid #e5e5e5;
}

.slm-header {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: var(--slm-header-height);
	padding-inline: var(--slm-gutter);
}

.slm-header__start,
.slm-header__end {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	min-width: 0;
}

.slm-header__end {
	justify-content: flex-end;
}

.slm-header__center {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.slm-logo-align-left .slm-level--root .slm-header__start {
	display: none;
}

.slm-logo-align-left .slm-level--root .slm-header__center {
	flex: 1 1 auto;
	justify-content: flex-start;
}

.slm-title-align-left .slm-level--sub .slm-header__start,
.slm-title-align-left .slm-level--sub .slm-header__end {
	flex: 0 0 auto;
}

.slm-title-align-left .slm-level--sub .slm-header__center {
	flex: 1 1 auto;
	justify-content: flex-start;
}

.slm .slm-logo {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.slm .slm-logo__img {
	display: block;
	width: auto;
	max-width: none;
	height: 36px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.slm-logo__text {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.slm .slm-level__title {
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.slm .slm-back,
.slm .slm-close {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
}

/* Larger touch target without changing the layout. */
.slm .slm-back::after,
.slm .slm-close::after {
	content: "";
	position: absolute;
	inset: 0 -10px;
}

.slm-back__icon {
	font-size: 26px;
	margin-inline-start: -0.3em;
}

.slm-close__icon {
	font-size: 28px;
	margin-inline-end: -0.2em;
}

/* Body and links ----------------------------------------------------------- */

.slm-level__body {
	flex: 1 1 auto;
	min-height: 0;
	padding-bottom: 32px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.slm .slm-list,
.slm .slm-secondary {
	margin: 0;
	padding: 0;
	list-style: none;
}

.slm .slm-list {
	display: flex;
	flex-direction: column;
	font-size: 18px;
	line-height: 1.3;
}

.slm .slm-item {
	margin: 0;
	padding: 0;
}

.slm .slm-link {
	--_width: 100%;
	--_py: var(--slm-item-py);
	--_ps: calc(var(--slm-gutter) + var(--slm-indent));
	--_pe: var(--slm-gutter);
	display: flex;
	align-items: center;
	gap: 12px;
}

.slm-link__media {
	display: inline-flex;
	flex: 0 0 auto;
}

.slm .slm-link__img {
	display: block;
	width: var(--slm-media-size);
	height: var(--slm-media-size);
	max-width: none;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.slm-link__text {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	min-width: 0;
}

.slm-link__label {
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
}

.slm-link__desc {
	margin-top: 2px;
	font-size: 0.78em;
	font-weight: 400;
	opacity: 0.7;
}

.slm-link__arrow {
	margin-inline-start: auto;
	font-size: 24px;
}

.slm-link__arrow .slm-icon {
	margin-inline-end: -0.3em;
}

.slm-item.is-current > .slm-link .slm-link__label {
	text-decoration-line: underline;
}

@media (hover: hover) {
	.slm-link:hover .slm-link__label {
		text-decoration-line: underline;
	}
}

.slm .slm-see-all {
	--_deco: underline;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
}

.slm-badge {
	display: inline-block;
	flex: 0 0 auto;
	padding: 3px 8px;
	border-radius: 2px;
	background-color: var(--slm-badge-bg, var(--slm-badge-bg-default, #111));
	color: var(--slm-badge-color, var(--slm-badge-color-default, #fff));
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Secondary links ---------------------------------------------------------- */

.slm .slm-secondary {
	--slm-secondary-py: 9px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e5e5;
	font-size: 17px;
	line-height: 1.3;
}

.slm .slm-secondary__link {
	--_width: 100%;
	--_py: var(--slm-secondary-py);
	--_ps: var(--slm-gutter);
	--_pe: var(--slm-gutter);
	display: block;
}

@media (hover: hover) {
	.slm .slm-secondary__link:hover {
		--_deco: underline;
	}
}

/* Contact details and social networks -------------------------------------- */

.slm-extras {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-inline: var(--slm-gutter);
}

.slm-level__body .slm-extras {
	margin-top: 16px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.slm-footer .slm-extras {
	padding-block: 16px;
}

.slm .slm-extras--header {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	margin-inline-end: 16px;
	padding: 0;
}

.slm .slm-contact,
.slm .slm-social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.slm .slm-contact__item,
.slm .slm-social__item {
	margin: 0;
	padding: 0;
}

.slm .slm-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	font-size: 16px;
	line-height: 1.3;
}

.slm .slm-contact--inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 24px;
}

.slm .slm-contact--icons {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.slm .slm-contact__link {
	--_py: 6px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Plain text lines are not links, so the button reset does not pad them. */
.slm span.slm-contact__link {
	padding-block: var(--_py);
}

.slm-contact__icon {
	font-size: 20px;
}

.slm-contact--icons .slm-contact__icon {
	font-size: 22px;
}

/* Icons only: the text stays for screen readers. */
.slm-contact--icons .slm-contact__text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (hover: hover) {
	.slm a.slm-contact__link:hover {
		--_deco: underline;
	}
}

.slm .slm-social {
	--slm-social-pad: 0.55em;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 18px;
}

/* Font size comes from .slm-social (the button reset makes links inherit it). */
.slm .slm-social__link {
	--_width: calc(1em + 2 * var(--slm-social-pad));
	--_radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: calc(1em + 2 * var(--slm-social-pad));
	line-height: 1;
}

.slm-social-shape-rounded .slm .slm-social__link {
	--_radius: var(--slm-social-radius, 8px);
}

.slm-social-shape-square .slm .slm-social__link {
	--_radius: 0;
}

.slm-social-colors-official .slm .slm-social__link {
	--_bg: var(--slm-brand, #111);
	--_color: var(--slm-brand-fg, #fff);
}

.slm-social-colors-brand .slm .slm-social__link {
	--_color: var(--slm-brand, currentColor);
}

@media (hover: hover) {
	.slm .slm-social__link:hover {
		opacity: 0.85;
	}
}

/* Templates and footer ----------------------------------------------------- */

.slm-template--before {
	margin-bottom: var(--slm-template-spacing);
}

.slm-template--after {
	margin-top: var(--slm-template-spacing);
}

.slm-footer {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	border-top: 1px solid #e5e5e5;
	background-color: #fff;
}

/* Editor ------------------------------------------------------------------- */

/* Elementor dims a widget while it re-renders it; the open menu would flash. */
.elementor-edit-area-active .elementor-element.elementor-widget-slide-menu.elementor-loading {
	opacity: 1;
}

.slm-editor-notice {
	width: 100%;
	padding: 12px 16px;
	border: 1px dashed #c2cbd2;
	background: #f9fafa;
	color: #515962;
	font: 13px/1.4 system-ui, -apple-system, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
	.slm-dialog {
		--slm-open-duration: 1ms !important;
		--slm-level-duration: 1ms !important;
	}
}
