/*
 * Mobilmenyn (skiss 5a), markup från elementet st-mobilmeny.
 * Knappen syns bara under 768 px, samma brytpunkt som den gamla hamburgaren.
 */

.st-mobilmeny__oppna {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.6rem;
	width: 4.4rem;
	height: 4.4rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--black);
	cursor: pointer;
}

.st-mobilmeny__oppna span {
	width: 2.6rem;
	height: 0.25rem;
	background: currentColor;
}

@media (max-width: 767px) {
	.st-mobilmeny__oppna {
		display: flex;
	}
}

.st-mobilmeny button:focus-visible,
.st-mobilmeny a:focus-visible {
	outline: 2px solid var(--action);
	outline-offset: 2px;
}

/* Panelen: helskärm, ljusblå. */
.st-mobilmeny__panel {
	width: 100%;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--secondary-ultra-light);
	color: var(--black);
}

.st-mobilmeny__panel[open] {
	display: flex;
	flex-direction: column;
}

.st-mobilmeny__panel::backdrop {
	background: var(--secondary-ultra-light);
}

html:has(.st-mobilmeny__panel[open]) {
	overflow: hidden;
}

.st-mobilmeny__topp {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6.4rem;
	padding: 0 var(--space-s);
}

.st-mobilmeny__logga img {
	display: block;
	width: auto;
	height: 1.7rem;
}

.st-mobilmeny__stang {
	width: 4.4rem;
	height: 4.4rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--black);
	font-size: 3rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

/* Listan */
.st-mobilmeny__nav {
	flex: 1;
	overflow-y: auto;
	padding: 0.8rem var(--space-s) 0;
}

.st-mobilmeny__lista,
.st-mobilmeny__under,
.st-mobilmeny__sprak,
.st-mobilmeny__socialt {
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-mobilmeny__post {
	border-bottom: 1px solid var(--secondary-light);
}

.st-mobilmeny__rad {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 5.6rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--black);
	font: inherit;
	font-size: var(--text-l);
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.st-mobilmeny__post.is-aktiv > .st-mobilmeny__rad {
	color: var(--action);
}

.st-mobilmeny__pil {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.6rem;
	height: 3.6rem;
	color: var(--black);
}

.st-mobilmeny__pil::before {
	content: "";
	width: 0.8rem;
	height: 0.8rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	translate: 0 -0.2rem;
	rotate: 45deg;
}

.st-mobilmeny__rad[aria-expanded="true"] .st-mobilmeny__pil {
	background: var(--black);
	color: var(--white);
}

.st-mobilmeny__rad[aria-expanded="true"] .st-mobilmeny__pil::before {
	translate: 0 0.2rem;
	rotate: 225deg;
}

.st-mobilmeny__rad[aria-expanded="false"] + .st-mobilmeny__under {
	display: none;
}

.st-mobilmeny__under {
	display: flex;
	flex-direction: column;
	padding-bottom: 1.4rem;
}

.st-mobilmeny__underrad {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	min-height: 4.4rem;
	padding-left: 0.2rem;
	color: var(--black);
	font-size: var(--text-m);
	text-decoration: none;
}

.st-mobilmeny__underrad[aria-current] {
	color: var(--action);
	font-weight: 700;
}

.st-mobilmeny__underrad--alla {
	font-weight: 600;
}

.st-mobilmeny__farg {
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	background: var(--farg);
}

.st-mobilmeny__underrad--alla .st-mobilmeny__text {
	padding-left: 2.4rem;
}

.st-mobilmeny__text {
	flex: 1;
}

.st-mobilmeny__meta {
	font-size: var(--text-s);
	color: var(--base-dark);
}

/* Fot */
.st-mobilmeny__fot {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	padding: 1.6rem var(--space-s) 2.8rem;
	border-top: 1px solid var(--secondary-light);
}

.st-mobilmeny__stod {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5.2rem;
	border: 0;
	background: var(--action);
	color: var(--white);
	font: inherit;
	font-size: var(--text-m);
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--transition-duration) var(--transition-timing);
}

@media (hover: hover) and (pointer: fine) {
	.st-mobilmeny__stod:hover {
		background: var(--action-hover);
	}
}

.st-mobilmeny__fotrad {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.st-mobilmeny__sprak {
	display: flex;
	gap: 0.4rem;
}

.st-mobilmeny__sprak a {
	display: block;
	padding: 0.6rem 1rem;
	color: var(--black);
	font-size: var(--text-s);
	font-weight: 600;
	text-decoration: none;
}

.st-mobilmeny__sprak abbr {
	text-decoration: none;
}

.st-mobilmeny__sprak a.is-aktiv {
	background: var(--black);
	color: var(--white);
}

.st-mobilmeny__socialt {
	display: flex;
	gap: 1rem;
}

.st-mobilmeny__socialt a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.4rem;
	height: 4.4rem;
	color: var(--primary);
}

.st-mobilmeny__socialt svg {
	width: 2.6rem;
	height: 2.6rem;
	fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.st-mobilmeny__stod {
		transition: none;
	}
}
