/*
 * Nettsmed Innlandet Energi — main.css
 * Portert fra prototype-v2.html med design-tokens i :root.
 */

:root {
	/* Farger */
	--c-primary:        #0D7377;
	--c-primary-light:  #14919B;
	--c-primary-subtle: #E8F4F5;
	--c-heading:        #111111;
	--c-body:           #444444;
	--c-muted:          #717171;
	--c-bg:             #FFFFFF;
	--c-bg-soft:        #F7F7F5;
	--c-border:         #E5E5E3;
	--c-white:          #FFFFFF;

	/* Typografi */
	--ff-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ff-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Layout */
	--container: 1280px;
	--gutter:    48px;
	--gutter-sm: 24px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
	font-family: var(--ff-body);
	color: var(--c-body);
	background: var(--c-bg);
	line-height: 1.7;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-variant-numeric: tabular-nums;
	position: relative;
}

/* Subtil noise-tekstur globalt — gir personlighet uten å distrahere */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1000;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
	opacity: 0.035;
	mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) {
	body::before { opacity: 0.02; }
}

/* ─── LOKALE TEKSTURER (Nordic Textures — IEH) ─── */
.has-texture {
	position: relative;
	isolation: isolate;
}
.has-texture > * {
	position: relative;
	z-index: 2;
}

/*
 * Rolig — statisk mesh-blooms + korn
 * IEH-tilpasning: store, jevne blooms langs kanter (institusjonell ro),
 * bloom 2 bruker primary-light #14919B (20,145,155) for svak tonevariant.
 */
.texture-rolig::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(ellipse 56% 52% at 10% 18%, rgba(13, 115, 119, 0.10), transparent 72%),
		radial-gradient(ellipse 52% 56% at 90% 14%, rgba(20, 145, 155, 0.08), transparent 76%),
		radial-gradient(ellipse 58% 54% at 72% 96%, rgba(13, 115, 119, 0.07), transparent 72%);
}
.texture-rolig::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.48;
	mix-blend-mode: soft-light;
}

/*
 * Papir — kun korn, ingen fargedyp
 * Brukes på dokumentseksjoner og finansielle flater — gir papir/arkiv-kvalitet
 * uten at teal-farge konkurrerer med tabeller og tall.
 */
.texture-papir::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
	opacity: 0.42;
	mix-blend-mode: soft-light;
}

@media (prefers-reduced-motion: reduce) {
	.texture-rolig::before,
	.texture-rolig::after,
	.texture-papir::before { opacity: 0; }
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; }

/* ─── A11Y ─── */
.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--c-heading);
	color: var(--c-white);
	padding: 0.5rem 1rem;
	z-index: 200;
	border-radius: 4px;
}
.skip-link.screen-reader-text:focus {
	left: 1rem;
	top: 1rem;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
}
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ─── DEV BANNER (blog_public=0) ─── */
body.is-dev::before {
	content: 'DEV — energi.nettsmed.dev (ikke offentlig)';
	display: block;
	background: #FEF3C7;
	color: #78350F;
	text-align: center;
	font-size: 0.75rem;
	padding: 0.25rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.5px;
}

/* ─── HEADER ─── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow 0.2s, border-bottom-color 0.2s;
}
.site-header.is-scrolled {
	border-bottom-color: transparent;
	box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.header-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.logo {
	text-decoration: none;
	color: var(--c-heading);
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.4px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.logo-mark {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--c-primary);
}
.logo-mark svg {
	display: block;
	width: 26px;
	height: 17px;
}
.logo-text-faded {
	font-weight: 400;
	color: var(--c-muted);
}
.main-nav {
	display: flex;
	gap: 8px;
	align-items: center;
}
.main-nav a {
	text-decoration: none;
	color: var(--c-muted);
	font-size: 0.95rem;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
	font-family: var(--ff-body);
}
.main-nav a:hover {
	color: var(--c-heading);
	background: var(--c-bg-soft);
}
.main-nav .nav-cta {
	background: var(--c-heading);
	color: var(--c-white);
	border-radius: 100px;
	padding: 8px 24px;
	font-weight: 600;
	transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.main-nav .nav-cta:hover {
	background: var(--c-primary);
	color: var(--c-white);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(13, 115, 119, 0.28);
}
.mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--c-heading);
}
.mobile-toggle svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}
.mobile-menu {
	display: none;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
	padding: 12px var(--gutter);
}
.mobile-menu a {
	display: block;
	padding: 12px 0;
	color: var(--c-heading);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid var(--c-border);
	transition: color 0.15s, padding-left 0.15s;
}
.mobile-menu a:hover {
	color: var(--c-primary);
	padding-left: 6px;
}
.mobile-menu a:last-child {
	border-bottom: none;
}
.mobile-menu.is-open {
	display: block;
}

/* ─── HERO ─── */
.hero {
	max-width: var(--container);
	margin: 0 auto;
	padding: 80px var(--gutter) 0;
}
.hero h1 {
	font-family: var(--ff-display);
	font-size: clamp(3rem, 5.5vw, 4.5rem);
	font-weight: 700;
	color: var(--c-heading);
	line-height: 1.05;
	letter-spacing: -1.5px;
	max-width: 800px;
	margin-bottom: 32px;
	text-wrap: balance;
}
.hero-sub {
	font-size: 1.25rem;
	color: var(--c-muted);
	max-width: 600px;
	line-height: 1.65;
	margin-bottom: 56px;
	font-weight: 400;
}
.hero-image {
	width: 100%;
	height: 520px;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	margin: 0;
}
.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
	transition: transform 8s ease-out;
}
.hero-image:hover img {
	transform: scale(1.03);
}
.hero-image-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px;
	background: linear-gradient(0deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.50) 38%, rgba(0,0,0,0.18) 70%, transparent 100%);
	display: flex;
	gap: 48px;
	margin: 0;
	color: var(--c-white);
}
.hero-stat {
	display: flex;
	flex-direction: column;
}
.hero-stat .number {
	font-family: var(--ff-display);
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1;
}
.hero-stat .label {
	font-size: 0.9rem;
	opacity: 0.8;
	margin-top: 6px;
	font-weight: 400;
}
.hero-image-credit {
	font-size: 0.8rem;
	color: var(--c-muted);
	margin-top: 12px;
	font-style: italic;
}

/* ─── SECTIONS ─── */
.section {
	max-width: var(--container);
	margin: 0 auto;
	padding: 120px var(--gutter);
}
/* Sticky header er 72px — gi anchor-lenker plass over headeren */
.section[id],
.owners-bg[id],
.contact-section[id] {
	scroll-margin-top: 88px;
}
.section-no-top {
	padding-top: 0;
}
.section-inner-wide {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.section-label {
	font-family: var(--ff-body);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--c-primary);
	margin-bottom: 16px;
	letter-spacing: 0.5px;
	text-transform: none;
}
.section-title {
	font-family: var(--ff-display);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 700;
	color: var(--c-heading);
	line-height: 1.1;
	letter-spacing: -1px;
	margin-bottom: 20px;
	text-wrap: balance;
}
.section-intro {
	font-size: 1.15rem;
	color: var(--c-muted);
	max-width: 620px;
	line-height: 1.7;
}

/* ─── ABOUT ─── */
.about-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
	margin-top: 64px;
}
.about-text p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--c-body);
	margin-bottom: 24px;
}
.about-diagram {
	background: var(--c-bg-soft);
	border-radius: 20px;
	padding: 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.diagram-node {
	width: 100%;
	padding: 18px 22px;
	border-radius: 14px;
	text-align: left;
	font-family: var(--ff-display);
	background: var(--c-white);
	border: 1px solid var(--c-border);
	color: var(--c-heading);
	display: grid;
	gap: 4px;
	transition: transform 0.25s, box-shadow 0.25s;
}
.diagram-node-soft {
	background: var(--c-bg-soft);
	border-color: var(--c-border);
}
.diagram-node-active {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: var(--c-white);
	box-shadow: 0 12px 30px rgba(13, 115, 119, 0.18);
	position: relative;
	overflow: hidden;
}
.diagram-node-active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: rgba(255, 255, 255, 0.35);
}
.diagram-node:hover {
	transform: translateY(-2px);
}
.diagram-num {
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.diagram-label {
	font-size: 0.95rem;
	font-weight: 600;
	margin-top: 2px;
}
.diagram-node small {
	display: block;
	font-family: var(--ff-body);
	font-weight: 400;
	font-size: 0.8rem;
	margin-top: 2px;
	opacity: 0.78;
	line-height: 1.4;
}
/* Senter-noden er teal — øk kontrast til WCAG AA (var 3.61:1 ved opacity 0.7) */
.diagram-node-active small {
	color: rgba(255, 255, 255, 0.92);
	opacity: 1;
}
.diagram-line {
	position: relative;
	width: 1px;
	height: 20px;
	background: var(--c-border);
	margin-left: 28px;
}
.diagram-line .diagram-dot {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-primary);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.12);
}

/* ─── PURPOSE CARDS ─── */
.purpose-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.purpose-card {
	padding: 28px;
	border-radius: 16px;
	border: 1px solid var(--c-border);
	transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.purpose-card:hover {
	border-color: var(--c-primary-light);
	box-shadow: 0 8px 30px rgba(13, 115, 119, 0.06);
	transform: translateY(-3px);
}
.purpose-card h3 {
	font-family: var(--ff-display);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--c-heading);
	margin-bottom: 10px;
}
.purpose-card p {
	color: var(--c-muted);
	line-height: 1.65;
	font-size: 1rem;
}
.purpose-icon {
	width: 48px;
	height: 48px;
	background: var(--c-primary-subtle);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.purpose-icon svg {
	width: 24px;
	height: 24px;
	stroke: var(--c-primary);
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ─── LANDSCAPE FIGURE (hero-style) ─── */
.landscape-figure {
	position: relative;
	max-width: var(--container);
	margin: 80px auto;
	padding: 0 var(--gutter);
	overflow: visible;
}
.landscape-figure img {
	width: 100%;
	height: clamp(300px, 42vw, 480px);
	object-fit: cover;
	object-position: center 55%;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.landscape-figure-chip {
	position: absolute;
	bottom: 24px;
	left: calc(var(--gutter) + 24px);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 8px 16px;
	border-radius: 100px;
	font-family: var(--ff-display);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--c-heading);
	letter-spacing: 0.01em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
@media (max-width: 768px) {
	.landscape-figure { margin: 56px auto; padding: 0 var(--gutter-sm); }
	.landscape-figure img { border-radius: 10px; height: 240px; }
	.landscape-figure-chip { left: calc(var(--gutter-sm) + 16px); bottom: 16px; }
}

/* ─── OM OSS: FORMÅL (full-bredde rad under 2-kolonne) ─── */
.about-purposes {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 1px solid var(--c-border);
}
.about-purpose-heading {
	margin-bottom: 24px;
	font-family: var(--ff-display);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--c-heading);
}

/* ─── EIERE: INTRO ─── */
.owners-intro {
	max-width: 720px;
	margin: 0 0 32px;
	display: grid;
	gap: 14px;
	color: var(--c-body);
	font-size: 1rem;
	line-height: 1.7;
}

/* ─── STYRENDE ORGANER: ROLLEN TIL STYRET ─── */
.board-role {
	margin: 48px auto 56px;
	max-width: 880px;
	padding: 32px 36px;
	background: var(--c-bg-soft);
	border-left: 4px solid var(--c-primary);
	border-radius: 4px;
}
.board-role h3 {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--c-heading);
	margin-bottom: 8px;
}
.board-role > p {
	margin-bottom: 16px;
	color: var(--c-body);
}
.board-duties {
	list-style: disc;
	padding-left: 20px;
	display: grid;
	gap: 10px;
}
.board-duties li {
	color: var(--c-body);
	line-height: 1.55;
}
@media (max-width: 768px) {
	.board-role { padding: 24px 20px; }
}

/* ─── FINANSIELL INFORMASJON (2-kolonne) ─── */
.section-header-asym {
	text-align: left;
}
.financial-grid {
	margin: 40px 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
}
.financial-text {
	display: grid;
	gap: 18px;
	color: var(--c-body);
	font-size: 1.05rem;
	line-height: 1.75;
}
.financial-reports {
	border-left: 1px solid var(--c-border);
	padding-left: 56px;
}
.financial-reports h3 {
	font-family: var(--ff-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--c-heading);
	letter-spacing: 0;
	margin-bottom: 20px;
}
@media (max-width: 900px) {
	.financial-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.financial-reports {
		border-left: 0;
		padding-left: 0;
		padding-top: 32px;
		border-top: 1px solid var(--c-border);
	}
	.contact-message {
		padding-left: 0;
		border-left-width: 0;
		border-left-style: none;
	}
	.contact-detail { align-items: flex-start; }
}

/* ─── AKTUELT ─── */
.actuelle-grid {
	margin: 40px 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.actuelle-card {
	list-style: none;
}
.actuelle-card a {
	display: block;
	padding: 32px;
	background:
		radial-gradient(ellipse 75% 75% at 100% 100%, rgba(13, 115, 119, 0.07), transparent 55%),
		radial-gradient(ellipse 40% 40% at 0% 0%, rgba(13, 115, 119, 0.04), transparent 50%),
		var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: 14px;
	text-decoration: none;
	color: var(--c-heading);
	transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
	height: 100%;
}
.actuelle-card a:hover,
.actuelle-card a:focus-visible {
	border-color: var(--c-primary-light);
	box-shadow: 0 12px 32px rgba(13, 115, 119, 0.08);
	transform: translateY(-2px);
	outline: none;
}
.actuelle-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.actuelle-card-head svg {
	width: 28px;
	height: 28px;
	stroke: var(--c-primary);
	fill: none;
	stroke-width: 1.5;
}
.actuelle-card h3 {
	font-family: var(--ff-display);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--c-heading);
	margin-bottom: 6px;
}
.actuelle-meta {
	color: var(--c-muted);
	font-size: 0.9rem;
	margin-bottom: 24px;
}
.actuelle-cta {
	display: inline-block;
	font-family: var(--ff-display);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--c-primary);
	letter-spacing: 0.01em;
}
.actuelle-quarter {
	display: inline-block;
	font-family: var(--ff-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-primary);
	background: var(--c-primary-subtle);
	padding: 4px 10px;
	border-radius: 100px;
	font-variant-numeric: tabular-nums;
}
.actuelle-footnote {
	margin: 24px 0 0;
	font-size: 0.9rem;
	color: var(--c-muted);
	text-align: left;
}
.actuelle-footnote a {
	color: var(--c-primary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}
.actuelle-footnote a:hover,
.actuelle-footnote a:focus-visible {
	border-bottom-color: var(--c-primary);
}
@media (max-width: 768px) {
	.actuelle-grid {
		grid-template-columns: 1fr;
	}
	.actuelle-card a { padding: 24px; }
}

/* ─── FAKTURAADRESSE I KONTAKT-SEKSJONEN ─── */
.contact-invoice {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--c-border);
}
.contact-invoice-label {
	font-family: var(--ff-display);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-primary);
	font-weight: 600;
	margin-bottom: 12px;
}

/* ─── DAGLIG LEDELSE — UTVIDET KORT ─── */
.dl-company {
	color: var(--c-primary);
	font-weight: 500;
	margin-top: 4px;
}
.dl-description {
	margin-top: 14px;
	color: var(--c-body);
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 640px;
}

/* ─── KONSERNSTRUKTUR ─── */
.konsernstruktur {
	margin: 48px 0 0;
	padding: 32px;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-border);
	border-radius: 12px;
}
.konsernstruktur img {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	cursor: zoom-in;
}
.konsernstruktur-hint {
	display: none;
	font-size: 0.8rem;
	color: var(--c-muted);
	text-align: center;
	margin-top: 10px;
	font-style: italic;
}
@media (max-width: 768px) {
	.konsernstruktur-hint { display: block; }
}
.konsernstruktur figcaption {
	text-align: center;
	font-size: 0.85rem;
	color: var(--c-muted);
	margin-top: 16px;
	font-style: italic;
}
@media (max-width: 768px) {
	.konsernstruktur { padding: 16px; }
}

/* ─── OWNERS ─── */
.owners-bg {
	background: var(--c-bg-soft);
	padding: 120px 0;
}
.owner-layout {
	display: grid;
	grid-template-columns: 0.42fr 0.58fr;
	gap: 80px;
	align-items: start;
}
.owner-text-col {
	position: sticky;
	top: 100px;
}
.owner-text-col .section-title {
	margin-bottom: 24px;
}
.owner-text-col .owners-intro {
	max-width: none;
	margin-bottom: 28px;
}
/* Behol sidebar-CSS tilgjengelig men den brukes ikke lenger */
.owner-sidebar {
	position: sticky;
	top: 100px;
}
.owner-big-number {
	font-family: var(--ff-display);
	font-size: clamp(4rem, 8vw, 6rem);
	font-weight: 700;
	color: var(--c-heading);
	line-height: 0.9;
	letter-spacing: -3px;
	margin-bottom: 8px;
}
.owner-big-label {
	font-size: 1.15rem;
	color: var(--c-muted);
	margin-bottom: 32px;
	font-weight: 400;
}
.owner-sidebar p {
	font-size: 1.05rem;
	color: var(--c-body);
	line-height: 1.75;
}
.owner-table-wrap {
	border-radius: 16px;
	overflow: hidden;
	background: var(--c-white);
	border: 1px solid var(--c-border);
}
.owner-table {
	width: 100%;
	border-collapse: collapse;
}
.owner-table th {
	padding: 16px 28px;
	text-align: left;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--c-muted);
	border-bottom: 1px solid var(--c-border);
	background: var(--c-white);
}
.owner-table th.owner-rank-h {
	width: 56px;
	color: var(--c-muted);
	opacity: 0.7;
}
.owner-table th.owner-share-h,
.owner-table th:last-child {
	text-align: right;
}
.owner-table td {
	padding: 14px 28px;
	border-bottom: 1px solid var(--c-border);
	font-size: 0.95rem;
	transition: background-color 0.15s ease;
}
.owner-table .owner-rank {
	width: 56px;
	color: #6B6B6B; /* WCAG AA: 5.3:1 mot white + 4.9:1 mot hover-wash (#767676 falt til 4.2:1 på hover) */
	font-family: var(--ff-display);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}
.owner-table .owner-name {
	position: relative;
}
.owner-type-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 12px;
	vertical-align: middle;
	transform: translateY(-1px);
}
.owner-type-dot.is-municipality {
	background: var(--c-primary);
	opacity: 0.85;
}
.owner-type-dot.is-company {
	background: transparent;
	border: 1.5px solid var(--c-primary);
	opacity: 0.85;
}
.owner-table-legend {
	display: inline-flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 32px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--c-body);
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: 8px;
	padding: 10px 18px;
}
.owner-table-legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
}
.owner-ext {
	color: var(--c-muted);
	font-size: 0.8em;
	margin-left: 6px;
	opacity: 0.5;
	transition: opacity 0.15s;
	display: inline-block;
}
.owner-table .owner-share {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	color: var(--c-heading);
	min-width: 180px;
}
.owner-share-num {
	display: inline-block;
	min-width: 70px;
	text-align: right;
}
.owner-share-bar {
	display: inline-block;
	width: 80px;
	height: 4px;
	background: var(--c-border);
	border-radius: 2px;
	margin-left: 14px;
	vertical-align: middle;
	overflow: hidden;
}
.owner-share-fill {
	display: block;
	height: 100%;
	background: var(--c-primary);
	opacity: 0.7;
	border-radius: 2px;
	transition: width 0.4s ease;
}
.owner-table tbody tr:last-child td {
	border-bottom: none;
}
.owner-table tbody tr:hover td {
	background: rgba(13, 115, 119, 0.06);
}
.owner-table tbody tr:hover .owner-ext {
	opacity: 1;
}
.owner-table .row-major .owner-rank {
	color: var(--c-primary);
	opacity: 1;
}
.owner-table .row-major td {
	position: relative;
}
.owner-table .row-major td:first-child::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--c-primary);
}
.owner-table .major,
.owner-table .row-major .owner-name {
	font-weight: 600;
	color: var(--c-heading);
}
.owner-table a {
	color: var(--c-heading);
	text-decoration: none;
	border-bottom: 1px dashed transparent;
	transition: border-color 0.15s;
}
.owner-table a:hover,
.owner-table a:focus-visible {
	border-bottom-color: var(--c-primary);
}
@media (max-width: 768px) {
	.owner-table .owner-share-bar { display: none; }
	.owner-table .owner-share { min-width: auto; }
	.owner-table th, .owner-table td { padding: 12px 14px; }
	.owner-table .owner-rank { width: 36px; }
}

/* ─── ORG ─── */
.org-header {
	margin-bottom: 64px;
}
.org-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.org-card {
	border: 1px solid var(--c-border);
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow 0.25s, border-color 0.2s;
}
.org-card:hover {
	box-shadow: 0 4px 24px rgba(0,0,0,0.04);
	border-color: #ccc;
}
.org-card-header {
	padding: 28px 28px 20px;
	border-bottom: 1px solid var(--c-border);
}
.org-card-header h3 {
	font-family: var(--ff-display);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--c-heading);
}
.org-card-header .meta {
	font-size: 0.85rem;
	color: var(--c-muted);
	margin-top: 4px;
}
.org-card-body {
	padding: 8px 28px 28px;
}
.org-person {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--c-border);
	gap: 16px;
}
.org-person:last-child {
	border-bottom: none;
}
.org-person .name {
	font-weight: 500;
	color: var(--c-heading);
	font-size: 0.95rem;
}
.org-person .role {
	font-size: 0.8rem;
	color: var(--c-muted);
}
.org-person .role-leader {
	color: var(--c-primary);
	font-weight: 600;
}
.dl-card {
	margin-top: 24px;
	padding: 36px;
	border-radius: 16px;
	background: var(--c-bg-soft);
	border-left: 4px solid var(--c-primary);
	display: flex;
	gap: 24px;
	align-items: center;
}
.dl-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--c-primary);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 4px;
}
.dl-card h3 {
	font-family: var(--ff-display);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--c-heading);
}
.dl-card p {
	font-size: 0.95rem;
	color: var(--c-muted);
	margin-top: 4px;
}

/* ─── DOKUMENTER + FINANS ─── */
.docs-intro {
	max-width: 720px;
}
.docs-intro-lead {
	font-size: 1.1rem;
	color: var(--c-body);
	line-height: 1.75;
	margin-top: 12px;
}
.docs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	margin-top: 64px;
}
.info-block h3 {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--c-heading);
	margin-bottom: 16px;
}
.info-note {
	color: var(--c-muted);
	font-size: 0.95rem;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--c-border);
}
.doc-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.doc-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: var(--c-bg-soft);
	border-radius: 12px;
	text-decoration: none;
	color: var(--c-heading);
	font-weight: 500;
	transition: background 0.2s, box-shadow 0.2s;
}
.doc-list a:hover,
.doc-list a:focus-visible {
	background: var(--c-primary-subtle);
	box-shadow: 0 2px 12px rgba(13, 115, 119, 0.06);
}
.doc-list a svg {
	width: 20px;
	height: 20px;
	stroke: var(--c-primary);
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}
.doc-list .doc-title {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.3;
	font-size: 0.95rem;
}
.doc-list .doc-meta {
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--c-muted);
	letter-spacing: 0.1px;
}
.doc-list .tag {
	font-size: 0.7rem;
	color: var(--c-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

/* ─── KONTAKT (frosted kort på teal) ─── */
.contact-section {
	position: relative;
	overflow: hidden;
	background: var(--c-primary);
	color: var(--c-white);
}
/* Subtilt mønster-overlay for å løfte teal-flaten */
.contact-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
		radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.10) 0%, transparent 50%);
	pointer-events: none;
}
.contact-content {
	position: relative;
	z-index: 1;
	padding: 120px 0;
}
.contact-header {
	margin-bottom: 56px;
}
.contact-section .section-label {
	color: rgba(255, 255, 255, 0.95); /* WCAG AA: 5.21:1 mot teal (var 4.21 før) */
}
.contact-section .section-title {
	color: var(--c-white);
}
.contact-section .section-intro {
	color: rgba(255, 255, 255, 0.92); /* WCAG AA: 4.97:1 mot teal */
}
.contact-layout {
	background: var(--c-white);
	color: var(--c-body);
	border-radius: 20px;
	padding: 56px 64px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.18),
		0 2px 8px rgba(0, 0, 0, 0.06);
}
@media (max-width: 900px) {
	.contact-layout {
		grid-template-columns: 1fr;
		padding: 36px 28px;
		gap: 40px;
	}
	.contact-content { padding: 80px 0; }
}
.contact-info h3 {
	font-family: var(--ff-display);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--c-heading);
	margin-bottom: 4px;
}
.contact-role {
	font-size: 0.85rem;
	color: var(--c-primary);
	font-weight: 600;
	margin-bottom: 24px;
}
.contact-detail {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	font-size: 1.05rem;
}
.contact-detail svg {
	width: 20px;
	height: 20px;
	stroke: var(--c-primary);
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}
.contact-detail a {
	color: var(--c-heading);
	text-decoration: none;
	font-weight: 500;
}
.contact-detail a:hover,
.contact-detail a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.contact-message {
	padding-left: 40px;
	border-left: 1px solid var(--c-border);
}
.contact-detail a,
.contact-detail > span {
	overflow-wrap: break-word;
	word-break: break-word;
	min-width: 0;
	flex: 1;
}
.contact-message h3 {
	font-family: var(--ff-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--c-heading);
	margin-bottom: 16px;
}
.contact-message p {
	color: var(--c-muted);
	line-height: 1.7;
	margin-bottom: 28px;
}
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--c-heading);
	color: var(--c-white);
	padding: 14px 32px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	font-family: var(--ff-body);
	transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover,
.btn-primary:focus-visible {
	background: #333;
	transform: translateY(-1px);
}
.btn-primary svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ─── FOOTER ─── */
.site-footer {
	border-top: 1px solid var(--c-border);
	padding: 64px var(--gutter);
	max-width: var(--container);
	margin: 0 auto;
}
.footer-inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 64px;
}
.footer-brand {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--c-heading);
	margin-bottom: 16px;
}
.footer-brand span {
	font-weight: 400;
	color: var(--c-muted);
}
.footer-desc {
	font-size: 0.95rem;
	color: var(--c-muted);
	line-height: 1.6;
	max-width: 340px;
}
.footer-orgnr {
	font-size: 0.85rem;
	color: var(--c-muted);
	margin-top: 12px;
	font-variant-numeric: tabular-nums;
}
.footer-col h4 {
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--c-heading);
	margin-bottom: 16px;
}
.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer-col a {
	color: var(--c-muted);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.2s;
}
.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--c-heading);
}
.footer-bottom {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--c-border);
	font-size: 0.85rem;
	color: var(--c-muted);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.footer-credit a {
	color: var(--c-heading);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, color 0.2s;
}
.footer-credit a:hover,
.footer-credit a:focus-visible {
	color: var(--c-primary);
	border-bottom-color: var(--c-primary);
}
@media (max-width: 600px) {
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* ─── LIGHTBOX ─── */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	cursor: zoom-out;
	animation: lb-fade-in 0.2s ease;
}
.lightbox-overlay[hidden] {
	display: none;
}
@keyframes lb-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.lightbox-overlay img {
	max-width: 100%;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
	cursor: default;
}
.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	font-family: var(--ff-body);
	line-height: 1;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.lightbox-overlay { animation: none; }
}

/* ─── REVEAL ─── */
@media (prefers-reduced-motion: no-preference) {
	.reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s ease, transform 0.7s ease;
	}
	.reveal.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
	.hero { padding: 48px var(--gutter-sm) 0; }
	.section { padding: 80px var(--gutter-sm); }
	.header-inner { padding: 0 var(--gutter-sm); }
	.section-inner-wide { padding: 0 var(--gutter-sm); }
	.about-layout,
	.owner-layout,
	.org-grid,
	.docs-grid,
	.contact-layout,
	.footer-inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.purpose-grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
	.docs-grid { gap: 32px; }
	.org-grid { gap: 24px; }
	.owner-text-col { position: static; }
	.owners-bg { padding: 80px 0; }
	.main-nav { display: none; }
	.mobile-toggle { display: block; }
	.hero-image { height: 320px; border-radius: 16px; }
	.hero h1 { letter-spacing: -0.5px; }
	.hero-image-caption { gap: 24px; padding: 24px; }
	.hero-stat .number { font-size: 1.75rem; }
	.landscape-break { height: 280px; }
	.site-footer { padding: 48px var(--gutter-sm); }
	.about-diagram { padding: 32px; }
}

@media (max-width: 600px) {
	.section { padding: 60px var(--gutter-sm); }
	.owners-bg { padding: 60px 0; }
	.hero-image-caption { flex-wrap: wrap; gap: 16px; padding: 20px; }
	.hero-image { height: 260px; }
	.landscape-break { height: 200px; }
	.owner-table { font-size: 0.88rem; }
	.owner-share-num { min-width: 55px; }
	.owner-table th,
	.owner-table td { padding: 10px 12px; }
	.dl-card { padding: 24px; }
	.purpose-grid { grid-template-columns: 1fr; gap: 12px; }
}
