/* WordPress adds block gap between direct children of .wp-site-blocks */
.wp-site-blocks > main {
	margin-block-start: 0 !important;
	padding-top: 0 !important;
}

.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
	margin-block-end: 0;
}

@media screen and (max-width: 991px) {
	.wp-site-blocks > .wp-block-template-part:has( .theme-header ),
	.wp-site-blocks > header.wp-block-template-part {
		margin-block-start: 0;
		margin-block-end: 0;
	}

	.wp-site-blocks > main .wp-block-post-content > :first-child.startsida-hero,
	.wp-site-blocks > main .wp-block-post-content > :first-child.undersida-hero,
	.wp-site-blocks > main .wp-block-post-content > :first-child.undersida-hero.theme-section,
	.wp-site-blocks > main > :first-child.undersida-hero,
	.wp-site-blocks > main > :first-child.undersida-hero.theme-section {
		padding-block: calc(var(--theme-mobile-header-height, 4.5rem) + 2rem) 3.5rem;
	}
}

.theme-header {
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--blue-900, #0c2033);
}

.theme-header__inner {
	flex-wrap: nowrap;
	gap: 1rem;
	padding-block: 0.7rem;
	align-items: center;
}

.theme-header__logo {
	flex-shrink: 0;
	margin: 0;
	line-height: 0;
}

.theme-header__logo .theme-logo__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.theme-header__logo .theme-logo__link:has(.theme-logo__img),
.theme-header__logo .theme-logo__link:has(.theme-logo__picture) {
	line-height: 0;
}

.theme-header__logo .theme-logo__text {
	font-size: var(--wp--preset--font-size--nav, 0.875rem);
	font-weight: 300;
	line-height: 1.2;
}

.theme-header__logo .theme-logo__picture {
	display: block;
	line-height: 0;
}

.theme-header__logo .theme-logo__img {
	display: block;
	width: auto;
	height: clamp(2.25rem, 4vw, 3.25rem);
	max-width: min(14rem, 55vw);
	object-fit: contain;
}

@media (max-width: 991px) {
	.theme-header__logo .theme-logo__img {
		height: 2.5rem;
		width: 2.5rem;
		max-width: 2.5rem;
	}
}

.theme-header__nav {
	margin-left: auto;
	flex-shrink: 0;
}

.theme-header__nav.wp-block-navigation {
	gap: 2.5rem;
}

.theme-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--blue-700, #133453);
	font-size: var(--wp--preset--font-size--nav, 0.875rem);
	font-weight: 300;
	line-height: 1.4;
	text-decoration: none;
}

.theme-header__nav .wp-block-navigation-item__content:hover,
.theme-header__nav .wp-block-navigation-item__content:focus-visible,
.theme-header__nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--blue-900, #0c2033);
}

.theme-header__nav .wp-block-navigation-item__content,
.theme-footer__nav .wp-block-navigation-item__content {
	position: relative;
}

.theme-header__nav .wp-block-navigation-item__content::before,
.theme-footer__nav .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	bottom: var(--theme-underline-offset);
	left: 0;
	width: 100%;
	height: var(--theme-underline-thickness);
	background-color: currentColor;
	transition: transform var(--theme-underline-duration) var(--theme-ease);
	transform-origin: right;
	transform: scaleX(0) rotate(0.001deg);
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.theme-header__nav .wp-block-navigation-item__content:hover::before,
	.theme-header__nav .wp-block-navigation-item__content:focus-visible::before,
	.theme-footer__nav .wp-block-navigation-item__content:hover::before,
	.theme-footer__nav .wp-block-navigation-item__content:focus-visible::before {
		transform-origin: left;
		transform: scaleX(1) rotate(0.001deg);
	}
}

.theme-header__nav .current-menu-item > .wp-block-navigation-item__content::before,
.theme-footer__nav .current-menu-item > .wp-block-navigation-item__content::before {
	transform-origin: left;
	transform: scaleX(1) rotate(0.001deg);
}

.theme-footer {
	background: var(--wp--preset--color--blue-900, #0c2033);
	color: var(--wp--preset--color--white, #fff);
	padding-bottom: 3rem;
}

.theme-footer__inner {
	align-items: flex-start;
	gap: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.theme-footer__brand-wrap {
	flex: 0 1 auto;
	max-width: 18rem;
	padding-left: 0;
}

.theme-footer__logo {
	margin: 0;
	line-height: 0;
}

.theme-footer__logo .theme-logo__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.theme-footer__logo .theme-logo__link:has(.theme-logo__img),
.theme-footer__logo .theme-logo__link:has(.theme-logo__picture) {
	line-height: 0;
}

.theme-footer__logo .theme-logo__text {
	font-size: var(--wp--preset--font-size--body, 1.125rem);
	font-weight: 300;
	line-height: 1.2;
}

.theme-footer__logo .theme-logo__img {
	display: block;
	width: auto;
	height: clamp(3rem, 5vw, 4rem);
	max-width: min(18rem, 70vw);
}

.theme-footer__menus,
.theme-footer__menus.is-layout-flex {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: clamp(2rem, 5vw, 4.5rem);
	margin-left: auto;
}

.theme-footer__menus > .theme-footer__column {
	align-self: flex-start;
	margin-block: 0;
}

.theme-footer__column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	min-width: 9rem;
	text-align: left;
}

.theme-footer__column > * {
	margin-inline: 0;
	max-width: none;
}

.theme-footer__column-title {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--orange-100, #fec5ae);
	font-size: var(--wp--preset--font-size--subheading, 1.5rem);
	font-weight: 200;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
	width: 100%;
}

.theme-footer__nav {
	margin: 0;
	width: 100%;
}

.theme-footer__nav .wp-block-navigation__responsive-container,
.theme-footer__nav .wp-block-navigation__container {
	justify-content: flex-start;
}

.theme-footer__nav .wp-block-navigation__container {
	align-items: flex-start;
	gap: 0.75rem;
}

.theme-footer__nav .wp-block-navigation-item {
	margin: 0;
	padding: 0;
}

.theme-footer__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white, #fff);
	font-size: var(--wp--preset--font-size--body, 1.125rem);
	font-weight: 300;
	line-height: 1.4;
	text-decoration: none;
}

.theme-footer__nav .wp-block-navigation-item__content:hover,
.theme-footer__nav .wp-block-navigation-item__content:focus-visible,
.theme-footer__nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white, #fff);
}

@media (max-width: 991px) {
	.theme-header__inner {
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
	}

	.theme-header__logo {
		min-width: 0;
	}

	.theme-header__nav {
		margin-left: auto;
		width: auto;
		align-self: center;
	}
}

@media (max-width: 781px) {
	.theme-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.theme-footer__menus,
	.theme-footer__menus.is-layout-flex {
		flex-wrap: wrap;
		margin-left: 0;
		width: 100%;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: 2rem 1.5rem;
	}

	.theme-footer__column {
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.theme-footer__menus {
		grid-template-columns: 1fr;
	}
}

