.market-header, .market-footer {
	font: 500 1rem/1.45 'Plus Jakarta Sans', Arial, sans-serif;
}
.market-header *, .market-footer * { box-sizing: border-box; }
.market-header a, .market-footer a { color: inherit; text-decoration: none; }
.market-nav a:hover, .market-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }

.market-header {
	position: relative;
	z-index: 20;
	color: #1b1a33;
	background: #fff;
	border-bottom: 1px solid #e6e3ee;
	font-weight: 400;
	line-height: 1.3125;
}
.market-header-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: 1256px;
	margin: auto;
	padding: 14px 28px;
}
.market-header .market-brand {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 10px;
	white-space: nowrap;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: normal;
}
.market-header .market-brand img { display: block; flex: none; width: 36px; height: auto; }
.market-menu, .market-nav, .market-tools { display: flex; align-items: center; }
.market-menu { flex: 1; gap: 32px; }
.market-nav { flex: 1; justify-content: center; gap: 28px; }
.market-nav a { white-space: nowrap; padding: 12px 0; }
.market-tools { gap: 10px; white-space: nowrap; }
.market-tools a { display: inline-block; font-weight: 600; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; }
.market-tools .market-login { background: #fff; border-color: #d9d6e6; }
.market-tools .market-signup { padding: 12px 18px; border: 0; color: #fff; background: #1b1a33; }
.market-tools .market-login:hover { color: #a84e20; }
.market-tools .market-signup:hover { color: #f8c89f; }
.market-secondary, .market-toggle { display: none; }
.market-header :focus-visible { outline: 3px solid #8556bd; outline-offset: 3px; }

/* On mesh pages the hero paints the background behind the header as in the original. */
.market-header:has(+ .am-market > div > .mesh:first-child) {
	background: transparent;
	border: 0;
}
.market-header:has(+ .am-market > div > .mesh:first-child) .market-header-inner {
	padding: 30px 42px 12px 50px;
}
@media (min-width: 1121px) {
	.market-header:has(+ .am-market > div > .mesh:first-child) { margin-bottom: calc(-66px - 1.3125rem); }
	.market-header + .am-market > div > .mesh:first-child { padding-top: calc(66px + 1.3125rem); }
}

.market-footer-inner, .market-fine { max-width: 1280px; margin: auto; padding: 18px clamp(16px, 3vw, 42px); }
.market-footer .market-brand { display: flex; align-items: center; align-self: flex-start; gap: 8px; font-size: 1.15rem; font-weight: 750; letter-spacing: -.035em; }
.market-footer .market-brand img { flex: none; width: 38px; height: auto; }
.market-footer { background: #1b1a33; color: #f3f1f8; }
.market-footer-inner { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr)); gap: 32px; padding-top: 54px; padding-bottom: 36px; }
.market-footer h2 { font-family: inherit; font-weight: 700; line-height: 1.5; font-size: 1rem; margin: 0 0 12px; }
.market-footer ul { list-style: none; padding: 0; margin: 0; }
.market-footer li { margin: 0 0 9px; }
.market-fine { display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px solid #444156; font-size: .875rem; }
.market-fine button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* The longer Swedish labels need smaller gaps at compact desktop widths. */
@media (min-width: 1121px) and (max-width: 1200px) {
	.market-header:lang(sv) .market-header-inner, .market-header:lang(sv) .market-menu { gap: 16px; }
	.market-header:lang(sv) .market-nav { gap: 16px; }
}
@media (max-width: 1120px) {
	.market-header-inner { flex-wrap: wrap; justify-content: space-between; gap: 8px; }
	.market-menu { flex: 1 1 100%; }
	.market-menu, .market-nav, .market-secondary { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.market-nav a { padding: 15px 0; border-bottom: 1px solid #eeebf5; font-size: 18px; font-weight: 600; }
	.market-tools { padding-top: 18px; }
	.market-header.is-enhanced:has(+ .am-market > div > .mesh:first-child) { margin-bottom: -88px; }
	.market-header.is-enhanced + .am-market > div > .mesh:first-child { padding-top: 88px; }
	.market-header.is-enhanced .market-menu { display: none; }
	.market-header.is-enhanced .market-menu.is-open {
		display: flex;
		position: absolute;
		top: calc(100% + 6px);
		inset-inline: 28px;
		padding: 6px 22px 22px;
		background: #fff;
		border: 1px solid #d9d6e6;
		border-radius: 16px;
		box-shadow: 0 24px 60px rgba(27,26,51,.18);
	}
	.market-header.is-enhanced .market-toggle {
		display: inline-grid;
		place-items: center;
		width: 46px; height: 46px;
		padding: 0; cursor: pointer;
		color: #1b1a33; background: #fff; border: 1px solid #d9d6e6; border-radius: 12px;
	}
	.market-toggle span, .market-toggle[aria-expanded=true] span::after { display: block; width: 20px; height: 2px; background: currentColor; }
	.market-toggle span { box-shadow: 0 6px currentColor, 0 -6px currentColor; }
	.market-toggle[aria-expanded=true] span { box-shadow: none; transform: rotate(45deg); }
	.market-toggle[aria-expanded=true] span::after { content: ''; transform: rotate(90deg); }
}
@media (max-width: 700px) {
	.market-header-inner, .market-header.is-enhanced .market-menu.is-open { padding-inline: 20px; }
	.market-header:has(+ .am-market > div > .mesh:first-child) .market-header-inner { padding-inline: 42px 34px; }
	.market-header.is-enhanced .market-menu.is-open { inset-inline: 20px; }
}
