/* ==========================================================================
   Hallingdal PPT – hovedstiler
   Mål og luft følger den gamle Oxygen-siden. Kontraster er kontrollert mot WCAG 2.1 AA.
   ========================================================================== */

:root {
	--green: #0e7360;          /* hvit tekst: 5,8:1 */
	--green-dark: #0a5a4b;     /* hover / tekst på lys bakgrunn */
	--green-tint: #d4e6e4;
	--grey-bg: #f2f2f2;
	--grey-panel: #f9f9f9;
	--grey-line: #adb4b9;
	--text: #333333;           /* på hvit: 12,6:1 */
	--text-muted: #555555;     /* på hvit: 7,5:1 */
	--dark: #333333;
	--white: #ffffff;
	--focus: #1a1a1a;
	--focus-on-dark: #ffffff;

	--font: Verdana, Geneva, "DejaVu Sans", sans-serif;
	--sidebar: 280px;
	--site-max: 2500px;
	--container: 1120px;
	--gutter: 20px;
	--section-y: 75px;
	--radius: 0;
}

@media (max-width: 767px) {
	:root {
		--gutter: 16px;
		--section-y: 48px;
	}
}

/* ---------- Grunnstiler ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text);
	background: var(--grey-bg);
}

@media (min-width: 768px) {
	body { font-size: 1.125rem; } /* 18px */
}

img,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 700;
	color: inherit;
	/* Lange ord (f.eks. «oppfølgingstjenesten») skal brytes på smale skjermer */
	overflow-wrap: break-word;
	hyphens: auto;
}

h1 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); }
h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.5rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }

a {
	color: var(--green-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
	color: var(--text);
}

ul, ol { padding-left: 1.3em; }

/* Synlig fokus for tastaturbrukere */
:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.site-nav :focus-visible,
.hero__box :focus-visible,
.contact-band__box :focus-visible,
.contact-top__info :focus-visible,
.members :focus-visible,
.site-footer__bottom :focus-visible {
	outline-color: var(--focus-on-dark);
}

.site-main:focus {
	outline: none;
}

/* Forsideknappene ligger på lys bakgrunn: mørk ytre ring + hvit indre ring */
.target-card:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	box-shadow: inset 0 0 0 3px var(--white);
}

/* Lange e-postadresser og lenker skal ikke gi vannrett rulling */
.prose,
.job,
.contact-list,
.staff-card {
	overflow-wrap: break-word;
}

.icon {
	width: 1em;
	height: 1em;
	fill: currentColor;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: -0.125em;
}

/* ---------- Hjelpeklasser ---------- */

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--dark);
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
	color: var(--white);
	outline: 3px solid var(--white);
	outline-offset: -6px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 900px;
}

.section {
	padding-block: var(--section-y);
}

.text-center { text-align: center; }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul,
.prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 0.25em; }
.prose h2 { margin-top: 1.4em; }
.prose h3,
.prose h4 { margin-top: 1.2em; margin-bottom: 0.4em; }

/* ---------- Knapper ---------- */

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 1.2em;
	min-height: 44px;
	background: var(--green);
	color: var(--white);
	border: 2px solid var(--green);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: var(--green-dark);
	border-color: var(--green-dark);
	color: var(--white);
}

.button--outline {
	margin-top: 30px;
	padding: 5px 15px;
	background: transparent;
	color: var(--text);
	font-weight: 400;
}

.button--outline .icon {
	color: var(--green);
	width: 0.9em;
}

.button--outline:hover {
	background: var(--green);
	color: var(--white);
}

.button--outline:hover .icon {
	color: var(--white);
}

/* ==========================================================================
   Layout: sidemeny til venstre, maks 2500px bredde
   ========================================================================== */

.site {
	max-width: var(--site-max);
	margin-inline: auto;
	min-height: 100vh;
	background: var(--white);
}

@media (min-width: 1024px) {
	.site {
		display: grid;
		grid-template-columns: var(--sidebar) minmax(0, 1fr);
	}
}

.site-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

/* ---------- Header / sidemeny ---------- */

.site-header {
	background: var(--green);
	color: var(--white);
	z-index: 50;
}

.site-header__brand {
	background: var(--white);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 12px var(--gutter);
	border-bottom: 1px solid var(--green-tint);
}

.site-logo {
	display: block;
	color: var(--green);
	width: 170px;
}

.site-logo svg {
	display: block;
	width: 100%;
	height: auto;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0.5rem 1rem;
	background: var(--green);
	color: var(--white);
	border: 0;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.menu-toggle:hover {
	background: var(--green-dark);
}

.menu-toggle .icon {
	width: 1.1em;
	height: 1.1em;
}

.menu-toggle__open,
.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.site-nav {
	padding: 24px var(--gutter) 32px;
}

/* Mørkere grønn på den åpne mobilmenyen (hvit tekst: ca. 10:1) */
@media (max-width: 1023px) {
	.site-nav {
		background: #084a3e;
	}
}

/* Skjul menyen på mobil bare når JavaScript er tilgjengelig */
.js .site-nav[data-collapsed="true"] {
	display: none;
}

.site-nav__label {
	margin: 0 0 4px;
	padding-left: 3px;
	font-size: 0.875rem;
	font-weight: 700;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list--malgruppe {
	margin-bottom: 36px;
}

.site-nav__list a {
	display: flex;
	align-items: center;
	gap: 0.35em;
	padding: 3px;
	min-height: 36px;
	color: var(--white);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	font-weight: 300;
}

.site-nav__list--malgruppe a {
	font-size: 1.1875rem; /* 19px */
}

.site-nav__list--malgruppe a::before {
	content: "-";
	content: "-" / "";
}

.site-nav__list--hoved a {
	font-size: 1.0625rem; /* 17px */
}

.site-nav__list a:hover {
	color: var(--white);
	border-bottom-color: rgb(255 255 255 / 0.5);
}

.site-nav__list a[aria-current="page"] {
	border-bottom-color: var(--white);
}

@media (min-width: 1024px) {
	.site-header {
		position: sticky;
		top: 0;
		height: 100vh;
		overflow-y: auto;
		display: flex;
		flex-direction: column;
	}

	.site-header__brand {
		display: flex;
		justify-content: center;
		min-height: 145px;
		padding: 20px 30px;
		border-bottom: 0;
	}

	.site-logo {
		width: 220px;
	}

	.menu-toggle {
		display: none;
	}

	.site-nav,
	.js .site-nav[data-collapsed="true"] {
		display: block;
		padding: 40px 30px;
	}
}

/* ==========================================================================
   Forside
   ========================================================================== */

.front-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(480px, 80vh, 717px);
	padding: 60px var(--gutter);
	background: var(--grey-bg);
	overflow: hidden;
}

.front-hero__media {
	position: absolute;
	inset: 0;
}

.front-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.front-hero__inner {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
}

.target-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
}

@media (min-width: 700px) {
	.target-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.target-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 117px;
	height: 100%;
	padding: 30px 20px;
	background: var(--green);
	color: var(--white);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.target-card:hover {
	background: var(--green-dark);
	color: var(--white);
}

.target-card:hover .target-card__title {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

.target-card__title {
	position: relative;
	display: inline-block;
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); /* 26px */
	font-weight: 500;
	line-height: 1.2;
}

.target-card__icon {
	position: absolute;
	left: calc(100% + 0.35em);
	top: 0.2em;
	width: 0.6em;
	height: 0.9em;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.target-card:hover .target-card__icon,
.target-card:focus-visible .target-card__icon {
	opacity: 1;
	transform: none;
}

.target-card__sub {
	margin-top: 4px;
	font-size: 0.875rem;
}

.about-intro {
	padding-inline: 0;
}

/* Overskrift med linje på hver side */
.divider-heading {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 16px 0 20px;
	font-size: 1.5rem;
	font-weight: 400;
	text-align: center;
}

.divider-heading::before,
.divider-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--text);
}

.feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.feature {
	flex: 0 0 100%;
	padding: 20px;
	text-align: center;
}

/* Fast kolonnebredde (en tredjedel), midtstilt når det er færre enn tre punkter */
@media (min-width: 768px) {
	.feature {
		flex-basis: 33.333%;
	}
}

.feature__icon {
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 auto 15px;
}

.feature__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(260px, 30vw, 419px);
	padding: 75px var(--gutter);
	overflow: hidden;
}

.banner__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.banner__text {
	position: relative;
	width: 100%;
	max-width: calc(var(--container) - 2 * var(--gutter));
	margin: 0 auto;
	color: var(--white);
	font-size: clamp(1.75rem, 1rem + 2.5vw, 2.5rem);
	line-height: 1.5;
	text-transform: uppercase;
}

.banner__text span,
.banner__text {
	text-shadow: 0 1px 3px rgb(0 0 0 / 0.6), 0 0 12px rgb(0 0 0 / 0.45);
}

/* ==========================================================================
   Toppseksjon (hero) på undersider
   ========================================================================== */

.hero {
	position: relative;
}

.hero__media {
	background: var(--grey-bg);
}

.hero__media img {
	width: 100%;
	height: clamp(220px, 30vw, 400px);
	object-fit: cover;
	object-position: center;
}

.hero__box {
	background: var(--green);
	color: var(--white);
	padding: 20px 30px;
}

.hero__box a {
	color: var(--white);
}

.hero__title {
	margin: 0;
	font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem);
}

.hero__text {
	margin-top: 12px;
	font-size: 1rem;
	line-height: 1.5;
}

/* Variant: grønn boks over illustrasjonen (målgruppesider, samarbeidspartnere) */
.hero--boks .hero__box {
	padding: 24px var(--gutter);
}

@media (min-width: 900px) {
	.hero--boks.hero--har-bilde {
		display: flex;
		align-items: flex-end;
		justify-content: flex-end;
		min-height: 630px;
		padding-top: 100px;
		background: var(--grey-bg);
	}

	.hero--boks .hero__media {
		position: absolute;
		inset: 0;
	}

	.hero--boks .hero__media img {
		height: 100%;
		object-position: left center;
	}

	.hero--boks.hero--har-bilde .hero__box {
		position: relative;
		z-index: 2;
		width: 50%;
		max-width: 560px;
		margin: 0 10px -100px 0;
		padding: 20px 30px 30px;
	}

	/* Plass til boksen som stikker ned i neste seksjon */
	.hero--boks.hero--har-bilde + .section,
	.hero--boks.hero--har-bilde + .info-section {
		padding-top: 130px;
	}
}

@media (min-width: 1700px) {
	.hero--boks.hero--har-bilde .hero__box {
		margin-right: calc((100% - var(--container)) / 2);
	}
}

/* Variant: grønt bånd med tittel til venstre og ingress til høyre */
.hero--band .hero__box {
	padding: 40px var(--gutter);
}

@media (min-width: 900px) {
	.hero--band .hero__box {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: center;
		padding: 40px max(0px, calc((100% - var(--container)) / 2));
	}

	.hero--band .hero__title {
		padding: 10px 30px;
		text-align: right;
		font-size: 1.75rem; /* 28px */
	}

	.hero--band .hero__text {
		margin: 0;
		padding: 10px 30px;
		border-left: 1px solid var(--white);
		min-height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.hero--band .hero__text > * {
		width: 100%;
	}

	/* Om oss har tittelen i en smalere kolonne */
	.mal-om-oss .hero--band .hero__box {
		grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
	}
}

/* ==========================================================================
   Målgruppesider: rader med overskrift og tekst
   ========================================================================== */

.info-section {
	padding-top: 75px;
	padding-bottom: 75px;
}

.info-section + .info-section {
	padding-top: 0;
}

.info-section .container {
	padding-inline: 10px;
}

.section-title {
	display: inline-block;
	margin: 0 0 0 20px;
	padding-bottom: 2px;
	color: var(--green);
	font-size: 1.875rem; /* 30px */
	border-bottom: 3px solid var(--green);
}

.section-title--line {
	display: block;
	margin: 0 0 15px;
	padding-bottom: 6px;
	font-size: 1.4375rem; /* 23px */
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-bottom-width: 2px;
	border-bottom-color: var(--grey-line);
}

.info-rows {
	margin-top: 20px;
}

.info-row {
	display: grid;
}

.info-row + .info-row {
	margin-top: 20px;
}

@media (min-width: 768px) {
	.info-row {
		grid-template-columns: 35% 65%;
	}
}

.info-row__title {
	margin: 0;
	padding: 30px 20px 0;
	font-size: 1rem;
}

.info-row__text {
	padding: 10px 20px;
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.info-row__text { font-size: 0.9375rem; }
}

.info-row__text strong:first-child {
	display: inline-block;
}

/* ==========================================================================
   Samarbeidspartnere: faner og trekkspill
   ========================================================================== */

.partner-tabs {
	padding-top: 75px;
}

.hero--boks.hero--har-bilde + .partner-tabs {
	padding-top: 75px;
}

@media (min-width: 900px) {
	.hero--boks.hero--har-bilde + .partner-tabs {
		padding-top: 130px;
	}
}

.partner-tabs .container {
	padding-inline: 10px;
}

.tabs__list {
	display: none;
}

.js .tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 15px;
}

.tabs__tab {
	min-height: 48px;
	padding: 20px;
	font: inherit;
	font-size: 1.125rem;
	background: var(--green-tint);
	color: var(--green-dark);
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Mindre faner på små skjermer, slik at de får plass på én linje */
@media (max-width: 599px) {
	.js .tabs__list {
		gap: 0 4px;
	}

	.tabs__tab {
		flex: 1 1 auto;
		min-height: 44px;
		padding: 10px 8px;
		font-size: 0.9375rem;
	}

	.tabs__panel {
		padding: 16px 12px;
	}
}

.tabs__tab:hover {
	background: var(--white);
	box-shadow: inset 0 0 0 2px var(--green-tint);
}

.tabs__tab[aria-selected="true"] {
	background: var(--grey-panel);
	box-shadow: none;
	color: var(--text);
	text-decoration: none;
}

.tabs__panel {
	background: var(--grey-panel);
	padding: 20px;
}

.tabs__panel + .tabs__panel {
	margin-top: 20px;
}

.js .tabs__panel + .tabs__panel {
	margin-top: 0;
}

.js .tabs__fallback-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.tabs__intro {
	margin-bottom: 10px;
	font-size: 0.875rem;
	font-style: italic;
	text-align: right;
}

.accordion__item {
	border-bottom: 1px solid var(--green);
}

.accordion__heading {
	margin: 0;
	font-size: inherit;
}

.accordion__button {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 12px 0;
	background: none;
	border: 0;
	text-align: left;
	font: inherit;
	color: var(--text);
	cursor: pointer;
}

.accordion__button:hover .accordion__title {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.accordion__icon {
	width: 18px;
	height: 22px;
	margin-top: 3px;
	color: var(--green);
}

.accordion__icon--close,
.accordion__button[aria-expanded="true"] .accordion__icon--open {
	display: none;
}

.accordion__button[aria-expanded="true"] .accordion__icon--close {
	display: inline-block;
}

.no-js .accordion__icon {
	display: none;
}

.accordion__label {
	display: flex;
	flex-direction: column;
}

.accordion__title {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.accordion__subtitle {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--text-muted);
}

.accordion__panel {
	padding: 10px 30px 30px;
	font-size: 0.9375rem;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.accordion__panel {
		padding-left: 30px;
		padding-right: 60px;
	}
}

.accordion__panel[hidden] {
	display: none;
}

/* ==========================================================================
   Om oss
   ========================================================================== */

.org-section {
	padding-block: 40px;
}

.org-section--tint {
	background: var(--green-tint);
}

.org-section__title {
	margin: 0;
	padding: 0 0 10px 20px;
	font-size: 1.5rem; /* 24px */
}

.two-col {
	display: grid;
	gap: 20px 0;
	font-size: 1rem;
	line-height: 1.5;
}

.two-col__col {
	padding: 0 20px;
}

@media (min-width: 900px) {
	.two-col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.two-col__col + .two-col__col {
		border-left: 1px solid var(--text);
	}
}

.members {
	padding-block: 75px;
	background: var(--green);
	color: var(--white);
}

.members__title {
	margin: 0 0 40px;
	padding-bottom: 10px;
	font-size: 1.375rem; /* 22px */
}

.table-wrap {
	overflow-x: auto;
}

.table-wrap + .table-wrap {
	margin-top: 60px;
}

.members-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	font-size: 1rem;
	table-layout: fixed;
}

.members-table caption {
	margin-bottom: 4px;
	font-size: 1.25rem;
	text-align: left;
}

.members-table th,
.members-table td {
	padding: 5px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgb(255 255 255 / 0.55);
	font-weight: 300;
}

.members-table thead th {
	font-size: 0.8125rem;
	font-weight: 400;
}

.members__note {
	margin: 20px 0 0;
	font-size: 0.9375rem;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-top {
	display: grid;
	max-width: var(--container);
	margin-inline: auto;
	padding: 0 var(--gutter) 60px;
}

@media (min-width: 900px) {
	.contact-top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 450px;
		padding-bottom: 100px;
	}
}

.contact-top__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 30px 20px;
	background: var(--green);
	color: var(--white);
	text-align: center;
}

.contact-top__info a {
	color: var(--white);
}

.contact-details {
	display: grid;
	gap: 15px;
	margin: 0;
}

.contact-details dt {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.contact-details dd {
	margin: 2px 0 0;
	font-size: 1.0625rem;
}

.contact-top__map {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	background: var(--grey-bg);
}

.contact-top__map iframe {
	flex: 1;
	width: 100%;
	min-height: 320px;
	border: 0;
	display: block;
}

/* Plassholder før kartet er lastet */
.map-consent {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 30px;
	background: var(--grey-bg);
	text-align: center;
}

.map-consent__inner {
	max-width: 360px;
}

.map-consent__icon {
	width: 32px;
	height: 40px;
	margin-bottom: 12px;
	color: var(--green);
}

.map-consent__text {
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-bottom: 20px;
}

.map-consent__button[hidden] {
	display: none;
}

.contact-top__map-link {
	margin: 0;
	padding: 8px 12px;
	font-size: 0.875rem;
}

.staff {
	padding-top: 40px;
}

.staff-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

@media (min-width: 1000px) {
	.staff-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.staff-card {
	padding: 10px 10px 30px;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.5;
}

.staff-card__img {
	width: 200px;
	height: 200px;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: var(--grey-bg);
}

.staff-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.staff-card__name {
	margin: 10px 0 6px;
	font-size: 1.125rem;
}

.staff-card__role,
.staff-card__areas {
	margin: 0 0 6px;
}

.staff-card__contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.staff-card__mail {
	overflow-wrap: anywhere;
}

/* ==========================================================================
   Skjemaer og lenker
   ========================================================================== */

.mal-skjemaer .section .container,
.mal-stillinger .section .container {
	padding-inline: 30px;
}

.link-section + .link-section {
	margin-top: 80px;
}

.link-section__info {
	margin-bottom: 20px;
	font-size: 0.875rem;
}

.doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.doc-list li {
	margin-bottom: 10px;
}

.doc-list__link {
	display: inline-flex;
	align-items: flex-start;
	gap: 12px;
	padding: 5px;
	color: var(--text);
	font-size: 1rem;
	letter-spacing: 0.5px;
}

@media (min-width: 768px) {
	.doc-list__link { font-size: 1.125rem; }
}

.doc-list__link:hover {
	color: var(--green-dark);
}

.doc-list__icon {
	width: 22px;
	height: 26px;
	color: var(--green);
}

.doc-list__meta {
	font-size: 0.8125rem;
	letter-spacing: 0;
	color: var(--text-muted);
	white-space: nowrap;
}

/* ==========================================================================
   Ledige stillinger
   ========================================================================== */

.job-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.job {
	padding: 30px;
	background: var(--grey-panel);
	border-left: 4px solid var(--green);
}

@media (max-width: 599px) {
	.mal-stillinger .section .container {
		padding-inline: var(--gutter);
	}

	.job {
		padding: 20px 16px;
	}
}

.job + .job {
	margin-top: 30px;
}

.job__title {
	font-size: 1.375rem;
}

.empty-state {
	margin: 0;
	font-size: 1.0625rem;
}

/* ==========================================================================
   Kontaktbånd nederst på undersidene
   ========================================================================== */

.contact-band {
	position: relative;
	min-height: 428px;
	padding: 40px;
	overflow: hidden;
	background: var(--grey-bg);
}

@media (max-width: 599px) {
	.contact-band {
		min-height: 0;
		padding: 40px var(--gutter);
	}
}

.contact-band__media {
	position: absolute;
	inset: 0;
}

.contact-band__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.contact-band__box {
	position: relative;
	width: 100%;
	max-width: 260px;
	padding: 30px;
	background: var(--green);
	color: var(--white);
	text-align: center;
}

@media (min-width: 1700px) {
	.contact-band__box {
		margin-left: calc((100% - var(--container)) / 2);
	}
}

.contact-band__box a {
	color: var(--white);
}

.contact-band__list {
	display: grid;
	gap: 30px;
	margin: 15px 0;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.contact-band__list dt .icon {
	width: 25px;
	height: 25px;
}

.contact-band__list dd {
	margin: 0;
}

.contact-band__extra {
	font-size: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding-top: 60px;
	font-size: 0.9375rem;
	background: var(--white);
}

.site-footer__top {
	display: grid;
	gap: 20px;
	padding: 0 var(--gutter);
}

/* Midtstilt når kolonnene ligger under hverandre */
@media (max-width: 767px) {
	.site-footer__top {
		text-align: center;
	}

	.site-footer .contact-list li,
	.owner-list {
		justify-content: center;
	}
}

@media (min-width: 768px) {
	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		padding: 0;
	}

	.site-footer__contact {
		padding: 20px;
		text-align: right;
		border-right: 1px solid var(--grey-line);
	}

	.site-footer__owners {
		padding: 20px;
	}

	.contact-list li {
		justify-content: flex-end;
	}
}

.site-footer__name {
	margin: 0;
	padding: 2px 0 5px;
	font-size: 1.125rem;
	font-weight: 400;
}

.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 300;
}

.contact-list li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px 0;
}

.contact-list a {
	display: inline-block;
	min-height: 24px; /* WCAG 2.2: målstørrelse minst 24px */
}

/* Ikonet står til høyre for teksten, som på den gamle siden */
@media (min-width: 768px) {
	.site-footer .contact-list li {
		flex-direction: row-reverse;
		justify-content: flex-start;
	}
}

.contact-list a {
	color: var(--text);
}

.contact-list .icon {
	width: 15px;
	height: 15px;
	color: var(--text);
}

.owner-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 5px;
}

.owner-list__link {
	display: block;
}

.owner-list__logo {
	width: auto;
	height: 70px;
	max-width: 120px;
	object-fit: contain;
}

.site-footer__nav {
	padding: 20px var(--gutter) 30px;
}

.footer-menu {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 0;
	max-width: 520px;
	font-weight: 300;
}

.footer-menu li + li::before {
	content: "•";
	content: "•" / "";
	margin: 0 12px;
}

/* Skilletegn skjules for punkter som starter en ny linje (settes av main.js) */
.footer-menu li.is-line-start::before,
.bottom-links li.is-line-start::before {
	display: none;
}

.footer-menu a {
	color: var(--text);
}

.site-footer__bottom {
	padding: 20px var(--gutter);
	background: var(--dark);
	color: var(--white);
}

.site-footer__bottom a {
	color: var(--white);
}

.bottom-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	font-size: 0.9rem;
	font-weight: 300;
}

.bottom-links li + li::before {
	content: "|";
	content: "|" / "";
	margin: 0 10px;
}

/* ==========================================================================
   Standardsider (personvern o.l.)
   ========================================================================== */

.mal-default .section,
.page-template-default .section {
	padding-block: 75px;
}

.wp-block-spacer { height: 1rem !important; }

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

.post-list {
	list-style: none;
	padding: 0;
}

/* ==========================================================================
   Redusert bevegelse
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Utskrift
   ========================================================================== */

@media print {
	.site-header .site-nav,
	.menu-toggle,
	.contact-band,
	.skip-link,
	.contact-top__map {
		display: none !important;
	}

	.site {
		display: block;
	}
}
