.tm-header {
	--tm-header-bg: #fff;
	--tm-header-text: #111827;
	--tm-header-hover: #0ea5e9;
	--tm-header-border: #e5e7eb;
	--tm-header-cta: #0f172a;
	--tm-header-cta-hover: #0ea5e9;
	--tm-header-cta-text: #fff;
	--tm-header-cta-hover-text: #fff;
	--tm-header-action-border: transparent;
	--tm-header-action-hover-border: transparent;
	--tm-menu-divider-color: #d1d5db;
	--tm-menu-divider-gap: 10px;
	--tm-menu-divider-height: 18px;
	--tm-topbar-bg: #0f172a;
	--tm-topbar-text: #f8fafc;
	--tm-topbar-hover: #7dd3fc;
	--tm-topbar-label-bg: #ef4444;
	--tm-topbar-label-text: #fff;
	background: var(--tm-header-bg);
	border-bottom: 1px solid var(--tm-header-border);
	color: var(--tm-header-text);
	direction: rtl;
	position: relative;
	z-index: 50;
}

.tm-header__sticky-spacer[hidden] {
	display: none;
}

.tm-header.is-sticky-active {
	inset-block-start: var(--tm-sticky-offset, 0);
	inset-inline: 0;
	position: fixed;
	inline-size: 100%;
	z-index: 999;
}

.tm-header--glass {
	backdrop-filter: blur(18px);
	background: color-mix(in srgb, var(--tm-header-bg) 86%, transparent);
}

.tm-header--minimal {
	border-bottom-color: transparent;
}

.tm-header.is-scrolled {
	box-shadow: 0 14px 36px rgba(15, 23, 42, .09);
}

.tm-header a {
	color: inherit;
	text-decoration: none;
}

.tm-header__topbar {
	background: var(--tm-topbar-bg);
	color: var(--tm-topbar-text);
	font-size: 12px;
	line-height: 1.5;
}

.tm-header__top-inner,
.tm-header__inner {
	inline-size: min(100% - 32px, 1240px);
	margin-inline: auto;
}

.tm-header__top-inner {
	align-items: center;
	display: flex;
	gap: 10px;
	padding-block: 4px;
}

.tm-header__top-label {
	background: var(--tm-topbar-label-bg);
	border-radius: 999px;
	color: var(--tm-topbar-label-text);
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	white-space: nowrap;
}

.tm-header__top-link {
	color: var(--tm-topbar-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tm-header__top-link:hover {
	color: var(--tm-topbar-hover);
}

.tm-header__ticker {
	direction: ltr;
	flex: 1 1 auto;
	min-inline-size: 0;
	overflow: hidden;
	position: relative;
}

.tm-header__ticker::before,
.tm-header__ticker::after {
	content: "";
	inline-size: 32px;
	inset-block: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.tm-header__ticker::before {
	background: linear-gradient(90deg, var(--tm-topbar-bg), transparent);
	inset-inline-start: 0;
}

.tm-header__ticker::after {
	background: linear-gradient(270deg, var(--tm-topbar-bg), transparent);
	inset-inline-end: 0;
}

.tm-header__ticker-track {
	align-items: center;
	animation: tm-header-ticker 32s linear infinite;
	display: flex;
	gap: 28px;
	inline-size: max-content;
	will-change: transform;
}

.tm-header__ticker:hover .tm-header__ticker-track {
	animation-play-state: paused;
}

.tm-header__ticker-item {
	color: var(--tm-topbar-text);
	direction: rtl;
	display: inline-flex;
	position: relative;
	white-space: nowrap;
}

.tm-header__ticker-item::after {
	color: var(--tm-topbar-hover);
	content: "•";
	margin-inline-start: 28px;
}

.tm-header__ticker-item:hover {
	color: var(--tm-topbar-hover);
}

@keyframes tm-header-ticker {
	from {
		transform: translateX(-50%);
	}

	to {
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tm-header__ticker-track {
		animation: none;
		transform: none;
	}
}

.tm-header__inner {
	align-items: center;
	display: grid;
	direction: ltr;
	gap: 22px;
	grid-template-areas: "actions nav brand";
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-block-size: 72px;
	padding-block: 14px;
}

.tm-header__brand {
	align-items: center;
	direction: rtl;
	display: inline-flex;
	flex: 0 0 auto;
	grid-area: brand;
	justify-self: end;
	min-inline-size: 112px;
}

.tm-header__brand img {
	block-size: auto;
	display: block;
	inline-size: auto;
	max-block-size: 44px;
	max-inline-size: 150px;
	object-fit: contain;
}

.tm-header__logo-text {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0;
}

.tm-header__nav {
	direction: rtl;
	grid-area: nav;
	min-inline-size: 0;
}

.tm-header__menu,
.tm-header__mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-header__menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 18px;
}

.tm-header--divider-line .tm-header__menu > li,
.tm-header--divider-dot .tm-header__menu > li,
.tm-header--divider-slash .tm-header__menu > li,
.tm-header--divider-bullet .tm-header__menu > li {
	align-items: center;
	display: inline-flex;
	gap: var(--tm-menu-divider-gap);
}

.tm-header--divider-line .tm-header__menu > li:not(:last-child)::after {
	background: var(--tm-menu-divider-color);
	block-size: var(--tm-menu-divider-height);
	content: "";
	display: inline-block;
	inline-size: 1px;
}

.tm-header--divider-dot .tm-header__menu > li:not(:last-child)::after {
	background: var(--tm-menu-divider-color);
	border-radius: 999px;
	block-size: 4px;
	content: "";
	display: inline-block;
	inline-size: 4px;
}

.tm-header--divider-slash .tm-header__menu > li:not(:last-child)::after {
	color: var(--tm-menu-divider-color);
	content: "/";
	display: inline-block;
	font-weight: 400;
}

.tm-header--divider-bullet .tm-header__menu > li:not(:last-child)::after {
	color: var(--tm-menu-divider-color);
	content: "•";
	display: inline-block;
	font-weight: 700;
}

.tm-header__menu a {
	display: inline-flex;
	font-size: 14px;
	font-weight: 650;
	inline-size: 100%;
	line-height: 1.6;
	padding-block: 8px;
}

.tm-header__menu a:hover,
.tm-header__menu a:focus-visible,
.tm-header__mobile-menu a:hover,
.tm-header__mobile-menu a:focus-visible {
	color: var(--tm-header-hover);
}

.tm-header__menu .menu-item-has-children {
	position: relative;
}

.tm-header__menu .sub-menu {
	background: var(--tm-header-bg);
	border: 1px solid var(--tm-header-border);
	border-radius: 10px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
	inset-inline-start: 0;
	list-style: none;
	margin: 0;
	min-inline-size: 190px;
	opacity: 0;
	padding: 8px;
	position: absolute;
	top: calc(100% + 8px);
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
	visibility: hidden;
	z-index: 4;
}

.tm-header__menu .menu-item-has-children:hover > .sub-menu,
.tm-header__menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.tm-header__menu .sub-menu a {
	border-radius: 8px;
	display: flex;
	padding: 9px 10px;
}

.tm-header__actions {
	align-items: center;
	direction: rtl;
	display: flex;
	gap: 8px;
	grid-area: actions;
	justify-content: flex-end;
}

.tm-header--logo-center .tm-header__inner {
	grid-template-areas: "actions brand nav";
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.tm-header--logo-center .tm-header__brand {
	justify-self: center;
}

.tm-header--logo-left .tm-header__inner {
	grid-template-areas: "brand nav actions";
}

.tm-header--logo-left .tm-header__brand {
	justify-self: start;
}

.tm-header--menu-start .tm-header__menu {
	justify-content: flex-start;
}

.tm-header--menu-center .tm-header__menu {
	justify-content: center;
}

.tm-header--menu-end .tm-header__menu {
	justify-content: flex-end;
}

.tm-header--menu-text-right .tm-header__menu a {
	justify-content: flex-start;
	text-align: right;
}

.tm-header--menu-text-center .tm-header__menu a {
	justify-content: center;
	text-align: center;
}

.tm-header--menu-text-left .tm-header__menu a {
	justify-content: flex-end;
	text-align: left;
}

.tm-header--actions-start .tm-header__actions {
	justify-content: flex-start;
}

.tm-header--actions-center .tm-header__actions {
	justify-content: center;
}

.tm-header--actions-end .tm-header__actions {
	justify-content: flex-end;
}

.tm-header__icon-button,
.tm-header__burger {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid var(--tm-header-border);
	border-radius: 10px;
	color: var(--tm-header-text);
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	min-block-size: 40px;
	min-inline-size: 40px;
	padding: 0;
	transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.tm-header__actions .tm-header__icon-button {
	background: var(--tm-header-cta);
	border: 1px solid var(--tm-header-action-border);
	color: var(--tm-header-cta-text);
}

.tm-header__icon-button:hover,
.tm-header__burger:hover {
	background: rgba(14, 165, 233, .08);
	border-color: var(--tm-header-hover);
	color: var(--tm-header-hover);
}

.tm-header__actions .tm-header__icon-button:hover {
	background: var(--tm-header-cta-hover);
	border-color: var(--tm-header-action-hover-border);
	color: var(--tm-header-cta-hover-text);
}

.tm-header__icon-button svg {
	block-size: 20px;
	fill: currentColor;
	inline-size: 20px;
}

.tm-header a.tm-header__cta {
	background: var(--tm-header-cta);
	border: 1px solid var(--tm-header-action-border);
	border-radius: 999px;
	color: var(--tm-header-cta-text);
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	padding: 13px 16px;
	white-space: nowrap;
}

.tm-header a.tm-header__cta:hover,
.tm-header a.tm-header__cta:focus-visible {
	background: var(--tm-header-cta-hover);
	border-color: var(--tm-header-action-hover-border);
	color: var(--tm-header-cta-hover-text);
}

.tm-header__socials {
	align-items: center;
	display: flex;
	gap: 6px;
}

.tm-header__socials a {
	align-items: center;
	background: rgba(15, 23, 42, .06);
	border-radius: 999px;
	display: inline-flex;
	justify-content: center;
	min-block-size: 28px;
	min-inline-size: 28px;
}

.tm-header__socials svg {
	block-size: 15px;
	fill: currentColor;
	inline-size: 15px;
}

.tm-header__burger {
	display: none;
	flex-direction: column;
	gap: 4px;
}

.tm-header__burger span:not(.screen-reader-text) {
	background: currentColor;
	border-radius: 99px;
	block-size: 2px;
	inline-size: 18px;
}

.tm-header__search {
	background: var(--tm-header-bg);
	border-top: 1px solid var(--tm-header-border);
	box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
	position: relative;
}

.tm-header__search[hidden],
.tm-header__mobile-panel[hidden],
.tm-header__backdrop[hidden] {
	display: none;
}

.tm-header__search form {
	align-items: center;
	display: flex;
	gap: 14px;
	inline-size: min(100% - 32px, 760px);
	margin-inline: auto;
	padding-block: 14px;
	position: relative;
}

.tm-header__search-close {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid var(--tm-header-border);
	border-radius: 10px;
	color: var(--tm-header-text);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	min-block-size: 38px;
	min-inline-size: 38px;
	padding: 0;
}

.tm-header__search-close svg {
	block-size: 18px;
	fill: currentColor;
	inline-size: 18px;
}

.tm-header__search-close:hover {
	border-color: var(--tm-header-hover);
	color: var(--tm-header-hover);
}

.tm-header__search input {
	background: #f8fafc;
	border: 1px solid var(--tm-header-border);
	border-radius: 12px;
	color: #111827;
	flex: 1 1 auto;
	min-block-size: 44px;
	padding-inline: 14px;
}

.tm-header__search button,
.tm-footer__form button {
	background: var(--tm-header-cta);
	border: 0;
	border-radius: 12px;
	color: #fff !important;
	cursor: pointer;
	font-weight: 800;
	padding-inline: 18px;
}

.tm-header__empty-menu {
	background: rgba(239, 68, 68, .08);
	border: 1px dashed rgba(239, 68, 68, .5);
	border-radius: 10px;
	color: #991b1b;
	font-size: 13px;
	padding: 10px 12px;
}

.tm-header__backdrop {
	background: rgba(15, 23, 42, .42);
	inset: 0;
	position: fixed;
	z-index: 60;
}

.tm-header__mobile-panel {
	background: var(--tm-header-bg);
	block-size: 100dvh;
	box-shadow: -20px 0 50px rgba(15, 23, 42, .18);
	color: var(--tm-header-text);
	inline-size: min(86vw, 360px);
	inset-block-start: 0;
	inset-inline-start: 0;
	overflow-y: auto;
	padding: 18px;
	position: fixed;
	transform: translateX(102%);
	transition: transform .2s ease;
	z-index: 70;
}

.tm-header.is-mobile-open .tm-header__mobile-panel {
	transform: translateX(0);
}

.tm-header__mobile-head {
	align-items: center;
	border-bottom: 1px solid var(--tm-header-border);
	display: flex;
	justify-content: space-between;
	margin-block-end: 16px;
	padding-block-end: 16px;
}

.tm-header__mobile-menu a {
	border-bottom: 1px solid var(--tm-header-border);
	display: flex;
	font-weight: 750;
	padding-block: 13px;
}

.tm-header--mobile-menu-text-right .tm-header__mobile-menu a {
	justify-content: flex-start;
	text-align: right;
}

.tm-header--mobile-menu-text-center .tm-header__mobile-menu a {
	justify-content: center;
	text-align: center;
}

.tm-header--mobile-menu-text-left .tm-header__mobile-menu a {
	justify-content: flex-end;
	text-align: left;
}

.tm-header__mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding-inline-start: 14px;
}

.tm-header__mobile-contact {
	align-items: center;
	background: var(--tm-header-cta);
	border: 1px solid var(--tm-header-action-border);
	border-radius: 12px;
	color: #fff !important;
	display: flex;
	font-size: 14px;
	font-weight: 800;
	justify-content: center;
	margin-block-start: 18px;
	min-block-size: 46px;
	padding: 10px 18px;
	text-align: center;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
	width: 100%;
}

.tm-header__mobile-contact:hover,
.tm-header__mobile-contact:focus-visible {
	background: var(--tm-header-cta-hover);
	border-color: var(--tm-header-action-hover-border);
	color: #fff;
	transform: translateY(-1px);
}

:root.techmag-dark-mode .tm-header__menu a,
:root.techmag-dark-mode .tm-header__mobile-menu a,
body.techmag-dark-mode .tm-header__menu a,
body.techmag-dark-mode .tm-header__mobile-menu a,
.tm-header[data-theme="dark"] .tm-header__menu a,
.tm-header[data-theme="dark"] .tm-header__mobile-menu a {
	color: #f8fafc;
}

:root.techmag-dark-mode,
body.techmag-dark-mode {
	background: #070b16;
	color: #e5e7eb;
}

:root.techmag-dark-mode .tm-header,
body.techmag-dark-mode .tm-header,
.tm-header[data-theme="dark"] {
	--tm-header-bg: #0b1020;
	--tm-header-text: #f8fafc;
	--tm-header-hover: #38bdf8;
	--tm-header-border: rgba(148, 163, 184, .24);
	--tm-header-cta: #38bdf8;
	--tm-header-cta-hover: #7dd3fc;
	--tm-header-cta-text: #07111f;
	--tm-header-cta-hover-text: #07111f;
	--tm-menu-divider-color: rgba(248, 250, 252, .52);
	background: var(--tm-header-bg);
	color: var(--tm-header-text);
}

:root.techmag-dark-mode .tm-header__topbar,
body.techmag-dark-mode .tm-header__topbar,
.tm-header[data-theme="dark"] .tm-header__topbar {
	background: var(--tm-topbar-bg);
}

:root.techmag-dark-mode .tm-header__search input,
body.techmag-dark-mode .tm-header__search input,
.tm-header[data-theme="dark"] .tm-header__search input {
	background: #111827;
	color: #f8fafc;
}

:root.techmag-dark-mode .tm-header__socials a,
body.techmag-dark-mode .tm-header__socials a,
.tm-header[data-theme="dark"] .tm-header__socials a {
	background: rgba(248, 250, 252, .08);
}


.techmag-menu-lock {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.tm-header__inner {
		grid-template-areas: "actions spacer brand";
		grid-template-columns: auto 1fr auto;
		min-block-size: 64px;
	}

	.tm-header--logo-center .tm-header__inner,
	.tm-header--logo-left .tm-header__inner {
		grid-template-areas: "actions spacer brand";
		grid-template-columns: auto 1fr auto;
	}

	.tm-header--logo-center .tm-header__brand,
	.tm-header--logo-left .tm-header__brand {
		justify-self: end;
	}

	.tm-header--mobile-layout-logo-center-menu-right .tm-header__inner,
	.tm-header--mobile-layout-logo-center-menu-right.tm-header--logo-center .tm-header__inner,
	.tm-header--mobile-layout-logo-center-menu-right.tm-header--logo-left .tm-header__inner {
		grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr);
	}

	.tm-header--mobile-layout-logo-center-menu-right .tm-header__brand {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
		min-inline-size: 0;
		z-index: 2;
	}

	.tm-header--mobile-layout-logo-center-menu-right .tm-header__actions {
		direction: ltr;
		grid-column: 1 / -1;
		grid-row: 1;
		inline-size: 100%;
		justify-content: flex-start;
		justify-self: stretch;
		position: relative;
	}

	.tm-header--mobile-layout-logo-center-menu-right .tm-header__burger {
		inset-block-start: 50%;
		inset-inline-end: 0;
		position: absolute;
		transform: translateY(-50%);
	}

	.tm-header--mobile-layout-logo-center-menu-right .tm-header__actions > :not(.tm-header__burger) {
		flex: 0 0 auto;
	}

	.tm-header__nav,
	.tm-header__socials,
	.tm-header__cta {
		display: none;
	}

	.tm-header .tm-header__actions > .tm-header__cta,
	.tm-header--mobile-layout-logo-center-menu-right .tm-header__actions > .tm-header__cta {
		display: none;
	}

	.tm-header__burger {
		display: inline-flex;
	}
}

@media (max-width: 640px) {
	.tm-header__top-inner,
	.tm-header__inner {
		inline-size: min(100% - 24px, 1240px);
	}

	.tm-header__brand {
		min-inline-size: 92px;
	}

	.tm-header__brand img {
		max-block-size: 36px;
		max-inline-size: 118px;
	}

	.tm-header__actions {
		gap: 6px;
	}

	.tm-header__icon-button,
	.tm-header__burger {
		min-block-size: 38px;
		min-inline-size: 38px;
	}

	.tm-header__search form {
		display: grid;
		gap: 10px;
		grid-template-columns: 1fr auto auto;
		padding-block-start: 14px;
	}

	.tm-header__search-close {
		min-block-size: 44px;
		min-inline-size: 44px;
	}
}
