/* Civilsamhälleskartan: mörk scen över Skåne med tre lägen */

.ntv-csk {
	--csk-natt: #021a20;
	--csk-text: #fff;
	--csk-dov: rgba(255, 255, 255, 0.62);
	--csk-gul: #fed107;
	position: relative;
	flex-basis: 100%;
	width: 100%;
	container-type: inline-size;
	color: var(--csk-text);
	font-family: "IBM Plex Sans", sans-serif;
	margin: 0 0 24px;
}

.ntv-csk__huvud {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 14px;
}

.ntv-csk__rubrik {
	font-family: "Fjalla One", sans-serif;
	font-weight: 400;
	font-size: clamp(30px, 3.6vw, 48px);
	line-height: 1.1;
	margin: 0;
	color: #fff;
}

.ntv-csk__ingress {
	flex-basis: 100%;
	order: 3;
	margin: 0;
	max-width: 760px;
	line-height: 1.55;
}

.ntv-csk__lagen {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
}

.ntv-csk .ntv-csk__lage {
	font: 600 14px/1 "IBM Plex Sans", sans-serif;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	cursor: pointer;
	white-space: nowrap;
}

.ntv-csk .ntv-csk__lage:hover,
.ntv-csk .ntv-csk__lage:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.ntv-csk .ntv-csk__lage.is-aktiv {
	background: var(--csk-gul);
	color: #05395a;
}

/* Scenen */
.ntv-csk__scen {
	position: relative;
	height: clamp(460px, 78cqw, 680px);
	border-radius: 14px;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 65% 40%, #06313b 0%, var(--csk-natt) 70%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.25);
}

.ntv-csk__duk {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.ntv-csk__overst {
	position: absolute;
	left: 24px;
	top: 20px;
	max-width: min(380px, 60%);
	pointer-events: none;
}

.ntv-csk__ar {
	font-family: "Fjalla One", sans-serif;
	font-size: 15px;
	letter-spacing: 0.08em;
	color: var(--csk-gul);
	margin: 0 0 2px;
	min-height: 1.2em;
}

.ntv-csk__tal {
	margin: 0;
	line-height: 1;
}

.ntv-csk__siffra {
	font-family: "Fjalla One", sans-serif;
	font-size: clamp(40px, 5.6vw, 76px);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 30px rgba(254, 209, 7, 0.25);
}

.ntv-csk__enhet {
	display: block;
	font-size: 15px;
	color: var(--csk-dov);
	margin-top: 6px;
}

.ntv-csk__pastaende {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.45;
	color: #fff;
	min-height: 2.9em;
}

.ntv-csk__info {
	position: absolute;
	z-index: 2;
	pointer-events: none;
	min-width: 190px;
	max-width: 260px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(2, 26, 32, 0.92);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.4);
	font-size: 13px;
	line-height: 1.45;
}

.ntv-csk__info strong {
	display: block;
	font-family: "Fjalla One", sans-serif;
	font-weight: 400;
	font-size: 17px;
	margin-bottom: 2px;
}

.ntv-csk__info span {
	color: var(--csk-dov);
}

/* Formerna: räknare och filter */
.ntv-csk__former {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}

.ntv-csk .ntv-csk__form {
	width: 100%;
	height: 100%;
	text-align: left;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2px 8px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(0, 0, 0, 0.18);
	color: #fff;
	cursor: pointer;
	white-space: normal;
	transition: opacity 0.2s, border-color 0.2s;
}

.ntv-csk .ntv-csk__form:hover,
.ntv-csk .ntv-csk__form:focus-visible {
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
}

.ntv-csk .ntv-csk__form:not(.is-pa) {
	opacity: 0.4;
}

.ntv-csk__prick {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--f, #fff);
	box-shadow: 0 0 10px var(--f, #fff);
}

.ntv-csk__formtal {
	font-family: "Fjalla One", sans-serif;
	font-size: 22px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.ntv-csk__formnamn {
	grid-column: 1 / -1;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--csk-dov);
}

.ntv-csk__kalla {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--csk-dov);
}

@container (max-width: 900px) {
	.ntv-csk__former {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@container (max-width: 560px) {
	.ntv-csk__scen {
		height: 600px;
	}

	.ntv-csk__overst {
		left: 16px;
		top: 14px;
		max-width: calc(100% - 32px);
	}

	.ntv-csk__former {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ntv-csk__lagen {
		width: 100%;
	}

	.ntv-csk .ntv-csk__lage {
		flex: 1;
		padding: 10px 8px;
	}
}

/* Förstora: scenen över hela skärmen */
.ntv-csk .ntv-csk__storre {
	position: absolute;
	z-index: 3;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(2, 26, 32, 0.7);
	color: #fff;
	font: 600 13px/1 "IBM Plex Sans", sans-serif;
	cursor: pointer;
	backdrop-filter: blur(4px);
}

.ntv-csk .ntv-csk__storre:hover,
.ntv-csk .ntv-csk__storre:focus-visible {
	background: #fed107;
	border-color: #fed107;
	color: #05395a;
}

.ntv-csk__storre svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.ntv-csk__ikon-stang,
.ntv-csk.is-stor .ntv-csk__ikon-oppna {
	display: none;
}

.ntv-csk.is-stor .ntv-csk__ikon-stang {
	display: block;
}

.ntv-csk.is-stor {
	position: fixed;
	inset: 0;
	z-index: 100000;
	margin: 0;
	width: auto;
	padding: 20px clamp(16px, 3vw, 40px);
	background: radial-gradient(120% 90% at 65% 40%, #06313b 0%, #021a20 70%);
	display: flex;
	flex-direction: column;
	overflow: auto;
}

.ntv-csk.is-stor .ntv-csk__scen {
	flex: 1 0 auto;
	height: auto;
	min-height: max(420px, 72vh);
	box-shadow: none;
	background: transparent;
}

.ntv-csk.is-stor .ntv-csk__former {
	flex: 0 0 auto;
}

html.ntv-csk-oppen,
html.ntv-csk-oppen body {
	overflow: hidden;
}

/* Bransch: tillbaka uppåt i SNI-nivåerna */
.ntv-csk .ntv-csk__tillbaka {
	position: absolute;
	z-index: 3;
	left: 24px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 48px);
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(2, 26, 32, 0.8);
	color: #fff;
	font: 600 13px/1.2 "IBM Plex Sans", sans-serif;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ntv-csk .ntv-csk__tillbaka:hover,
.ntv-csk .ntv-csk__tillbaka:focus-visible {
	background: #fed107;
	border-color: #fed107;
	color: #05395a;
}

.ntv-csk .ntv-csk__tillbaka[hidden] {
	display: none;
}

.ntv-csk__tillbaka-stig {
	font-weight: 400;
	opacity: 0.8;
}
