/**
 * Dragspel (.nnwc-acc) - delas av modulerna Karta (31034) och Infographics (26063).
 * Laddas via nn_accordion_css() i temats functions.php. Beteendet finns i snippet 33985.
 */
.nnwc-acc__panel[hidden] {
	display: none;
}

/* Panelen ska kunna animeras */
.nnwc-acc__panel {
	overflow: hidden;
	height: 0;
	transition: height 250ms ease;
}

.nnwc-acc__trigger,
.nnwc-acc__trigger:active,
.nnwc-acc__trigger:hover,
.nnwc-acc__trigger:focus,
.nnwc-acc__trigger:focus-visible {
	text-decoration: none;
	color: inherit;
}

.nnwc-acc__trigger {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nnwc-acc__trigger[aria-expanded="false"]:before {
	content: 'More';
}

.nnwc-acc__trigger[aria-expanded="true"]:before {
	content: 'Less';
}

html[lang^="sv"] .nnwc-acc__trigger[aria-expanded="false"]:before {
	content: 'Mer';
}

html[lang^="sv"] .nnwc-acc__trigger[aria-expanded="true"]:before {
	content: 'Mindre';
}

.nnwc-acc__trigger[aria-expanded="false"]:after,
.nnwc-acc__trigger[aria-expanded="true"]:after {
	content: '';
	display: inline-block;
	height: 16px;
	width: 16px;
}

.nnwc-acc__trigger[aria-expanded="false"]:after {
	background-image: url(/wp-content/uploads/2025/12/expand-plus.svg);
}

.nnwc-acc__trigger[aria-expanded="true"]:after {
	background-image: url(/wp-content/uploads/2025/12/expand-minus.svg);
}

.nnwc-acc__trigger:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.nnwc-acc__panel-inner {
	margin-top: 90px;
}
