/*
 * Medlemssiden /medlemskap/ (mal page-medlemskap-side.php).
 * Bygger paa temaets egne klasser (bg-img, header-bg-blue-overlay, text-shadow,
 * Bootstrap-rutenettet) og temaets farger: groenn #138039, oransje knapp
 * #ef7e1d, linjer #d5d5d5, lys flate #f6f6f6. Rette hjoerner, ingen skygger.
 * Overskrifter og broedtekst arver temaets Montserrat, store bokstaver og stoerrelser.
 */

/*
 * Toppbildet: samme uttrykk som forsiden og /kurs/. Teksten staar oeverst,
 * saa folkene i bildet synes under den.
 */
.nsnf-ms-topp {
	min-height: 640px;
	display: flex;
	background-color: #212934;
	background-position: center 40%;
	color: #fff;
}

.nsnf-ms-topp .header-bg-blue-overlay {
	min-height: 640px;
	padding: 3rem 0;
}

.nsnf-ms-topp-uten-bilde .header-bg-blue-overlay {
	background-color: transparent;
}

.nsnf-ms-topp-boks {
	max-width: 640px;
	margin: 0 auto;
}

.nsnf-ms-topp h1 {
	margin-bottom: 1rem;
}

.nsnf-ms-topp p {
	margin-bottom: 2rem;
}

.nsnf-ms-topp .nsnf-ms-gavelenke {
	margin: 1.5rem 0 0;
	font-size: 1rem;
}

.nsnf-ms-gavelenke a {
	color: #fff;
	border-bottom: 2px solid #fff;
}

.nsnf-ms-gavelenke a:hover,
.nsnf-ms-gavelenke a:focus {
	color: #fff;
	border-bottom-color: #ef7e1d;
}

/* Knapp: temaets oransje knapp, som lenke */
a.nsnf-ms-knapp {
	display: inline-block;
	color: #fff;
	background-color: #ef7e1d;
	padding: 0.6rem 1.2rem;
	font-family: "Montserrat", sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	border: 0;
	border-radius: 0;
}

a.nsnf-ms-knapp.nsnf-ms-knapp-stor {
	font-size: 1.4rem;
}

a.nsnf-ms-knapp:hover,
a.nsnf-ms-knapp:focus {
	color: #fff;
	background-color: #d26201;
}

/* Seksjonene: samme luft som forsiden */
.nsnf-ms-seksjon {
	padding: 6rem 0;
}

.nsnf-ms-seksjon h2 {
	margin-bottom: 2rem;
}

.nsnf-ms-seksjon a:not(.nsnf-ms-knapp) {
	color: #333;
	border-bottom: 2px solid #138039;
}

.nsnf-ms-seksjon a:not(.nsnf-ms-knapp):hover,
.nsnf-ms-seksjon a:not(.nsnf-ms-knapp):focus {
	color: #fff;
	background-color: #138039;
}

/* Prisene */
.nsnf-ms-priser {
	padding-bottom: 4rem;
}

.nsnf-ms-type {
	text-align: center;
	margin-bottom: 2.5rem;
}

.nsnf-ms-type h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.nsnf-ms-type .nsnf-ms-belop {
	font-family: "Montserrat", sans-serif;
	font-size: 2rem;
	font-weight: 700;
	color: #138039;
	margin-bottom: 0.5rem;
}

.nsnf-ms-type .nsnf-ms-hvem {
	font-size: 16px;
	min-height: 3em;
	margin-bottom: 1.25rem;
}

.nsnf-ms-notat {
	font-size: 16px;
	margin: 1rem auto 0;
	max-width: 640px;
}

/* Gave og fordeler: bilde ved siden av teksten */
.nsnf-ms-gave {
	background-color: #f6f6f6;
	scroll-margin-top: 100px;
}

.nsnf-ms-bilde {
	display: block;
	width: 100%;
	height: auto;
}

.nsnf-ms-bildekol {
	margin-bottom: 2rem;
}

.nsnf-ms-regel {
	font-weight: 700;
}

.nsnf-ms-innhold ol,
.nsnf-ms-innhold ul {
	padding-left: 1.25rem;
	margin: 0 0 1.5rem;
}

.nsnf-ms-innhold li {
	font-size: 18px;
	margin-bottom: 0.5rem;
}

.nsnf-ms-innhold p:last-child {
	margin-bottom: 0;
}

.nsnf-ms-gave .nsnf-ms-innhold {
	margin-bottom: 2rem;
}

/* Vanlige spoersmaal */
.nsnf-ms-faq {
	padding-top: 0;
}

.nsnf-ms-fordeler {
	padding-bottom: 4rem;
}

.nsnf-ms-sporsmal {
	border-bottom: 1px solid #d5d5d5;
}

.nsnf-ms-sporsmal:first-of-type {
	border-top: 1px solid #d5d5d5;
}

.nsnf-ms-sporsmal summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 1rem 2.5rem 1rem 0;
	font-size: 18px;
	font-weight: 600;
}

.nsnf-ms-sporsmal summary::-webkit-details-marker {
	display: none;
}

.nsnf-ms-sporsmal summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 0.75rem;
	font-size: 1.5rem;
	line-height: 1;
	color: #138039;
}

.nsnf-ms-sporsmal[open] summary::after {
	content: "\2212";
}

.nsnf-ms-sporsmal .nsnf-ms-innhold {
	padding: 0 0 1rem;
}

.nsnf-ms-kontakt {
	margin-top: 2rem;
}

.nsnf-ms-slutt {
	margin: 3rem 0 0;
}

@media only screen and (min-width: 768px) {
	.nsnf-ms-bildekol {
		margin-bottom: 0;
	}

	.nsnf-ms-gave .nsnf-ms-tekstkol {
		padding-left: 2.5rem;
	}

	.nsnf-ms-fordeler .nsnf-ms-tekstkol {
		padding-right: 2.5rem;
	}
}

@media only screen and (max-width: 767px) {
	.nsnf-ms-topp,
	.nsnf-ms-topp .header-bg-blue-overlay {
		min-height: 560px;
	}

	.nsnf-ms-topp {
		background-position: 30% center;
	}

	.nsnf-ms-topp .header-bg-blue-overlay {
		padding: 2rem 0;
	}

	.nsnf-ms-topp p {
		font-size: 16px;
		margin-bottom: 1.5rem;
	}

	.nsnf-ms-seksjon {
		padding: 3rem 0;
	}

	.nsnf-ms-priser,
	.nsnf-ms-fordeler {
		padding-bottom: 1.5rem;
	}

	.nsnf-ms-faq {
		padding-top: 1.5rem;
	}

	.nsnf-ms-seksjon h2 {
		margin-bottom: 1.5rem;
	}

	.nsnf-ms-type .nsnf-ms-hvem {
		min-height: 0;
	}

	a.nsnf-ms-knapp.nsnf-ms-knapp-stor {
		font-size: 1.1rem;
	}

	.nsnf-ms-innhold li,
	.nsnf-ms-sporsmal summary {
		font-size: 16px;
	}
}

/* «Dette får du som medlem»: gruppebildet er bredt, så det står i full bredde over lista
 * i stedet for i en smal kolonne. Lista står i to kolonner på store skjermer. */
@media only screen and (min-width: 768px) {
	.nsnf-ms-fordeler .nsnf-ms-bildekol,
	.nsnf-ms-fordeler .nsnf-ms-tekstkol {
		flex: 0 0 100%;
		max-width: 100%;
		order: 0 !important;
		padding-right: 15px;
	}

	.nsnf-ms-fordeler .nsnf-ms-bildekol {
		margin-bottom: 2.5rem;
	}

	.nsnf-ms-fordeler .nsnf-ms-bildekol .nsnf-ms-bilde {
		width: 100%;
		aspect-ratio: 21 / 9;
		height: auto;
		object-fit: cover;
		object-position: center 60%;
	}

	.nsnf-ms-fordeler .nsnf-ms-innhold ul {
		column-count: 2;
		column-gap: 3rem;
	}

	.nsnf-ms-fordeler .nsnf-ms-innhold li {
		break-inside: avoid;
	}
}

/* Toppen delt i to: tekst på hvitt til venstre, bildet uten hinne til høyre.
 * Erstatter bildet med mørk hinne og tekst over (overstyrer reglene øverst). */
.nsnf-ms-topp.nsnf-ms-topp-delt {
	display: block;
	min-height: 0;
	padding: 2.5rem 0 4rem;
	background: #fff;
	color: #333;
}

.nsnf-ms-topp-delt h1 {
	margin: 0 0 1rem;
	color: #212934;
	text-align: left;
}

.nsnf-ms-topp-delt .nsnf-ms-topp-ingress {
	margin: 0 0 2rem;
	font-size: 1.15rem;
	line-height: 1.6;
	color: #333;
}

.nsnf-ms-topp-delt .nsnf-ms-gavelenke {
	margin: 1.25rem 0 0;
}

.nsnf-ms-topp-delt .nsnf-ms-gavelenke a {
	color: #138039;
	border-bottom: 2px solid #138039;
}

.nsnf-ms-topp-bilde {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 55%;
}

@media only screen and (min-width: 992px) {
	.nsnf-ms-topp-tekst {
		padding-right: 2.5rem;
	}
}

@media only screen and (max-width: 991px) {
	.nsnf-ms-topp.nsnf-ms-topp-delt {
		padding: 1.5rem 0 3rem;
	}

	.nsnf-ms-topp-bildekol {
		order: -1;
		margin-bottom: 1.75rem;
	}

	.nsnf-ms-topp-delt .nsnf-ms-topp-ingress {
		font-size: 1rem;
	}
}
