.gre-contentmenu .gre-top-image img {
	object-fit: cover;
	aspect-ratio: 4 / 1;
	object-position: center;
}

/* Rubrik */
.gre-submenu .gre-submenu__icon-heading .subheading {
	font-size: 1.3rem;
	line-height: 1.6;
	color: #333333;
	display: flex;
	align-items: center;
}

/* Rubrikikon */
.gre-submenu .gre-submenu__icon-heading .subheading i {
	margin-right: 1rem;
	font-size: 1rem;
}

/* Innehållsförteckningens behållare */
body:not(.sv-editing-mode) .gre-submenu {
	max-height: 100vh;
	max-width: 40rem;
	overflow: auto;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 12;
	padding-left: 4rem;
}

/*
 * Den nya modulens inre nav ska alltid visas.
 * Öppna/stäng hanteras av den yttre nav-taggen.
 */
.gre-submenu .sv-marketplace-sitevision-table-of-contents nav {
	display: block !important;
	position: static !important;
	inset: auto !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
	transform: none !important;
	z-index: auto !important;
}

/* Ta bort modulens listnumrering och standardindrag */
.gre-submenu .sv-marketplace-sitevision-table-of-contents ol,
.gre-submenu .sv-marketplace-sitevision-table-of-contents ul {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.gre-submenu .sv-marketplace-sitevision-table-of-contents li {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* Ta bort modulens egna markeringar */
.gre-submenu .sv-marketplace-sitevision-table-of-contents li::before,
.gre-submenu .sv-marketplace-sitevision-table-of-contents li::after,
.gre-submenu .sv-marketplace-sitevision-table-of-contents li a::before,
.gre-submenu .sv-marketplace-sitevision-table-of-contents li a::after {
	content: none !important;
}

/* Länkar */
.gre-submenu .sv-marketplace-sitevision-table-of-contents li a {
	background: #fff;
	border: 0;
	border-left: 3px solid #c2bda8;
	border-top: 1px solid rgba(151, 151, 151, 0.4);
	border-radius: 0;
	box-sizing: border-box;
	display: inline-block;
	margin: 0;
	padding: 0.6rem 1rem;
	width: 100%;
	color: #333333;
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	text-decoration: none !important;
	box-shadow: none;
	white-space: normal;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.gre-submenu .sv-marketplace-sitevision-table-of-contents li a:hover,
.gre-submenu .sv-marketplace-sitevision-table-of-contents li a.sv-toc-active {
	border-left-color: #285468;
	background: #eefbff;
}

/* Scrollprogress */
.gre-scroll-progress-container {
	position: fixed;
	width: 100%;
	background-color: #fff;
	z-index: 12;
	bottom: 0;
	left: 0;
	padding: 0.5rem;
	box-shadow: 0 0 10px rgb(0 0 0 / 20%);
	box-sizing: border-box;
}

.gre-scroll-progress {
	width: 0;
	height: 5px;
	background-color: #275468;
}

.gre-scroll-progress::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 5px;
	background: #eee;
	z-index: -1;
}

.gre-scroll-progress-top {
	display: flex;
	justify-content: space-between;
}

.gre-scroll-progress-top * {
	font-size: 0.925rem;
	line-height: 1.5rem;
	margin-bottom: 0.2rem;
}

.gre-scroll-progress-text {
	display: block;
	font-weight: 600;
}

/* Knapp för att öppna innehållsförteckningen */
.env-button.env-button--icon:not(.env-button--icon-after):not(
		.env-button--icon-before
	):not(.env-button--icon-around):not(
		.env-button--icon-above
	).gre-submenu__btn--right {
	align-items: center;
	justify-content: center;
	color: #3a71aa !important;
	background-color: #ffffff;
	border-radius: 8px 0 0 8px;
	bottom: 16rem;
	box-sizing: border-box;
	display: flex;
	font-weight: 600;
	margin: 0;
	min-height: 3rem;
	width: 3rem;
	padding: 1rem 1.4rem;
	position: fixed;
	right: 0;
	text-decoration: none;
	transition: background-color 0.3s ease;
	z-index: 10;
	border: 1px solid rgba(151, 151, 151, 0.4);
	border-right: 0;
	box-shadow: 0 0 10px #00000021;
}

/* Visa mer av sidfoten */
.gre-page-footer__bottom {
	padding-bottom: 4rem;
}

/* Anpassa text och radhöjd till det gamla utseendet */
.gre-submenu .sv-marketplace-sitevision-table-of-contents li a {
	display: block;
	font-size: 1rem;
	line-height: 1.875;
	font-weight: 400;
	color: #285468;
}

@media (min-width: 1025px) {
	body:not(.sv-editing-mode) .gre-submenu > nav {
		display: block !important;
	}

	.gre-submenu__btn,
	.gre-submenu__btn--close {
		display: none !important;
	}
}

@media (max-width: 1024px) {
	/* Yttre panel för innehållsförteckningen */
	body:not(.sv-editing-mode) .gre-submenu > nav {
		position: fixed !important;
		right: -330px;
		top: 0;
		background: #f0ebda;
		padding: 1rem 0.5rem;
		height: 100%;
		max-width: 320px;
		width: 100% !important;
		display: none;
		overflow-y: auto;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
		transition: right 0.2s ease;
		box-sizing: border-box;
		z-index: 11;
	}

	body:not(.sv-editing-mode) .gre-submenu > nav.is-open {
		display: block !important;
		right: 0;
	}

	.gre-submenu__btn.is-open {
		right: 0;
	}

	.gre-submenu__btn--close {
		width: 100%;
	}

	.gre-submenu__btn--close i {
		margin-right: 0.5rem;
	}

	.gre-submenu .sv-marketplace-sitevision-table-of-contents {
		margin: 0 -0.5rem;
	}

	/* Bakgrund när panelen är öppen */
	body:not(.sv-editing-mode)::before {
		content: "";
		position: fixed;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		transition: opacity 0.2s ease;
		pointer-events: none;
		height: 100%;
		width: 100%;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 11;
	}

	body:not(.sv-editing-mode).shadow::before {
		opacity: 1;
		pointer-events: auto;
	}
}