/* ==========================================================================
   Screenpartner – temastiler
   Tokens kommer fra theme.json (--wp--preset--*). Ingen hardkodede farger
   utenom det som ikke finnes som token (scrim/rgba).
   ========================================================================== */

:root {
	--sp-blue: var(--wp--preset--color--blue);
	--sp-blue-dark: var(--wp--preset--color--blue-dark);
	--sp-ink: var(--wp--preset--color--ink);
	--sp-paper: var(--wp--preset--color--paper);
	--sp-mute: var(--wp--preset--color--mute);
	--sp-line: var(--wp--preset--color--line);
	--sp-mist: var(--wp--preset--color--mist);
	--sp-mono: var(--wp--preset--font-family--mono);
	--sp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--sp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
	--sp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--sp-blue);
	color: #fff;
}

:where(h1, h2, h3, h4, h5, h6, p) {
	margin-block: 0;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

img {
	height: auto;
	max-width: 100%;
}

/* Bare for skjermlesere (statuslinjene i modellene) */
.sp-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px !important;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	background: var(--sp-paper);
	color: var(--sp-ink);
	display: block;
	padding: 12px 20px;
	z-index: 100000;
}

/* --------------------------------------------------------------------------
   Type-hjelpere
   -------------------------------------------------------------------------- */

.has-display-font-size {
	font-weight: 250 !important;
	line-height: 1.02 !important;
}

.has-h-1-font-size { line-height: 1.167; }
.has-h-2-font-size { line-height: 1.18; }
.has-h-3-font-size { line-height: 1.29; }
.has-lead-font-size { line-height: 1.33; }
.has-small-font-size { line-height: 1.375; }
.has-fine-font-size { line-height: 1.43; }

.is-style-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.33;
}

.is-style-eyebrow,
.has-eyebrow-font-size {
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 400;
}

.is-style-eyebrow:not(.has-text-color) {
	color: var(--sp-mute);
}

.sp-measure { max-width: 60ch; }
.sp-measure-lead { max-width: 640px; }

/* --------------------------------------------------------------------------
   Knapper og lenker (taksonomi låst 2026-05-12)
   -------------------------------------------------------------------------- */

.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), border-color var(--wp--custom--transition);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--sp-ink);
	color: var(--sp-ink);
	padding: 12px 28px;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--sp-ink);
	color: #fff;
}

.wp-block-button.is-style-outline-light > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--sp-paper);
	color: var(--sp-paper);
	box-sizing: border-box;
	height: 44px;
	min-height: 44px;
	padding: 0 24px;
}

.wp-block-button.is-style-outline-light > .wp-block-button__link:hover {
	background: var(--sp-paper);
	color: var(--sp-ink);
}

/* Mono-lenke: én konsolidert pattern for alle ikke-pille-lenker.
   Tekstlenke uten pil og versaler (Petter 2026-11-16): mørk tekst, tynn grå
   strek under, blue-dark ved hover. */
.is-style-mono-link,
.wp-block-button.is-style-mono-link > .wp-block-button__link {
	font-family: var(--sp-mono);
	font-size: 13px;
	line-height: 16px;
	letter-spacing: -0.05em;
	text-transform: none;
	font-weight: 250;
}

.wp-block-button.is-style-mono-link > .wp-block-button__link {
	background: none;
	border: 0;
	padding: 0;
	min-height: 0;
}

.is-style-mono-link a,
.wp-block-button.is-style-mono-link > .wp-block-button__link {
	color: var(--sp-ink);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: var(--sp-line);
	transition: color 150ms, text-decoration-color 150ms;
}

.is-style-mono-link a::after,
.wp-block-button.is-style-mono-link > .wp-block-button__link::after {
	display: none;
}

.is-style-mono-link a:hover,
.wp-block-button.is-style-mono-link > .wp-block-button__link:hover {
	color: var(--sp-blue-dark);
	text-decoration-color: var(--sp-blue-dark);
}

/* Mono-lenke på mørk / blå flate: hvit tekst, strek i hvit 50 % */
.has-blue-background-color .is-style-mono-link a,
.has-ink-background-color .is-style-mono-link a,
.sp-on-dark .is-style-mono-link a,
:is(.has-blue-background-color, .has-ink-background-color, .sp-on-dark) .wp-block-button.is-style-mono-link > .wp-block-button__link {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

.has-blue-background-color .is-style-mono-link a:hover,
.has-ink-background-color .is-style-mono-link a:hover,
.sp-on-dark .is-style-mono-link a:hover,
:is(.has-blue-background-color, .has-ink-background-color, .sp-on-dark) .wp-block-button.is-style-mono-link > .wp-block-button__link:hover {
	color: #fff;
	text-decoration-color: #fff;
}

/* Tag-piller */
.is-style-tag,
.wp-block-list.is-style-tags > li {
	display: inline-flex;
	font-family: var(--sp-mono);
	font-size: 11.5px;
	line-height: 16px;
	letter-spacing: 0.02em; /* uten versaler, samme mål som filterpillene (Petter 24.11, punkt 44) */
	font-weight: 400;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	padding: 7px 14px;
	color: var(--sp-mute);
}

.wp-block-list.is-style-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wp-block-list.is-style-tags > li { margin: 0; }

/* Lister: aldri egne ytterstreker, kun divide mellom rader (låst 2026-09-03). */
.wp-block-list.is-style-divided,
.wp-block-list.is-style-plain {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.wp-block-list.is-style-divided > li {
	padding-block: 14px;
	margin: 0;
}

.wp-block-list.is-style-divided > li + li {
	border-top: 1px solid var(--sp-line);
}

.wp-block-list.is-style-plain > li + li { margin-top: 10px; }

/* Kort */
.wp-block-group.is-style-card {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 5px;
	padding: 24px;
}

/* Bilder */
.wp-block-image img { border-radius: inherit; }

.wp-block-image.is-style-zoom { overflow: hidden; border-radius: 5px; }
.wp-block-image.is-style-zoom img { transition: transform 600ms ease-out; }
.wp-block-image.is-style-zoom:hover img { transform: scale(1.025); }

/* --------------------------------------------------------------------------
   Seksjoner og grid
   12 kolonner, gap 40px, innhold i wide (88rem).
   Skille mellom seksjoner gjøres én gang: fargeskifte ELLER .sp-divider.
   -------------------------------------------------------------------------- */

.sp-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.sp-section--tight {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Divider følger margene (på innholdsboksen), ikke kant til kant. */
.sp-divider > .alignwide:first-child,
.sp-divider-top {
	border-top: 1px solid var(--sp-line);
	padding-top: var(--wp--preset--spacing--70);
}

.sp-divider {
	padding-top: 0 !important;
}

.wp-block-columns.sp-grid {
	gap: 40px;
}

@media (max-width: 781px) {
	.wp-block-columns.sp-grid { gap: 32px; }
}

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

.wp-site-blocks > header.wp-block-template-part:has(.sp-header--solid) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.sp-header {
	/* Mobil: 16 px over og under (25.11). Verdiene ligger i theme.json (custom.header). */
	padding-top: var(--wp--custom--header--padding-y-mobile);
	padding-bottom: var(--wp--custom--header--padding-y-mobile);
	transition: padding 200ms ease, box-shadow 200ms ease;
}

@media (min-width: 782px) {
	.sp-header { padding-top: var(--wp--custom--header--padding-top); padding-bottom: var(--wp--custom--header--padding-bottom); }
}

.sp-header--solid {
	background: var(--sp-paper);
}

.sp-header--solid.is-scrolled {
	padding-top: var(--wp--custom--header--padding-y-scrolled);
	padding-bottom: var(--wp--custom--header--padding-y-scrolled);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sp-header--overlay {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 50;
	color: var(--sp-paper);
}

/* Forsiden: headeren fester seg når den har scrollet ut av heroen (JS
   bytter overlay → solid + is-stuck). Fast posisjon, så siden ikke hopper. */
.sp-header.is-stuck {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 50;
	animation: sp-header-in 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes sp-header-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-header.is-stuck { animation: none; } }
.wp-site-blocks > header.wp-block-template-part:has(.sp-header.is-stuck) { position: static; }

.sp-header__row {
	gap: 32px;
}


.sp-logo a { color: inherit; display: block; }
.sp-logo a:hover { color: inherit; }

/* Montasjen: symbolet i headeren settes sammen bånd for bånd langs sin egen
   vinkel (22°), én gang per besøk. Mønet først, så stammen, så trappen og
   til slutt P-ens bue. */
@media (prefers-reduced-motion: no-preference) {
	.sp-build .sp-logo--build path { transform-box: fill-box; animation: sp-build 900ms cubic-bezier(.2, .7, .1, 1) both; }
	.sp-build .sp-logo--build path:nth-child(1) { --dx: 12px; --dy: -5px; animation-delay: 150ms; }
	.sp-build .sp-logo--build path:nth-child(2) { --dx: -12px; --dy: -5px; animation-delay: 220ms; }
	.sp-build .sp-logo--build path:nth-child(5) { --dx: 0px; --dy: 14px; animation-delay: 340ms; }
	.sp-build .sp-logo--build path:nth-child(3) { --dx: -12px; --dy: 5px; animation-delay: 460ms; }
	.sp-build .sp-logo--build path:nth-child(4) { --dx: -12px; --dy: 5px; animation-delay: 560ms; }
	.sp-build .sp-logo--build path:nth-child(6) { --dx: 12px; --dy: 5px; animation-delay: 660ms; }
}
@keyframes sp-build { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }


/* Hovedmeny */
.sp-header .wp-block-navigation {
	font-size: 16px;
	font-weight: 250;
}

.sp-header--solid .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--sp-mute);
}

.sp-header--solid .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--sp-ink);
}

.sp-header--overlay .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.sp-header .wp-block-navigation__submenu-icon {
	width: 14px;
	height: 14px;
	margin-left: 4px;
}

/* Undermenyer åpnes på klikk/fokus på pil-knappen – aldri på hover (WCAG 2.2). */
.sp-header .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container,
.sp-header .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container {
	visibility: hidden;
	opacity: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	min-width: 0;
}

.sp-header .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	visibility: visible;
	opacity: 1;
	width: auto;
	height: auto;
	overflow: visible;
}

/* Paneler (desktop) */
@media (min-width: 1024px) {
	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
		top: calc(100% + 28px);
		left: 0;
		background: var(--sp-paper);
		color: var(--sp-ink);
		border: 1px solid var(--sp-line);
		border-radius: 5px;
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
		padding: 40px;
		min-width: 360px;
	}

	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: var(--sp-ink);
		padding: 12px;
		margin-inline: -12px;
		font-size: 16px;
		line-height: 22px;
	}

	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		color: var(--sp-blue);
		background: var(--sp-mist);
		text-decoration: none;
	}

	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > li + li {
		border-top: 1px solid var(--sp-line);
	}

	/* Mega-panelet for Tjenester: fire kolonner med kategorien som overskrift. */
	.sp-header .sp-mega > .wp-block-navigation__submenu-container {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 40px;
		width: min(920px, calc(100vw - 2 * var(--wp--custom--gutter))) !important;
		padding: var(--wp--custom--space--48);
	}

	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li + li { border-top: 0 !important; }

	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li {
		display: block;
		align-self: start;
	}

	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li.sp-mega__all {
		grid-column: 1 / -1;
		margin-top: 40px;
		padding-top: 24px;
		border-top: 1px solid var(--sp-line) !important;
	}

	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li.sp-mega__all > .wp-block-navigation-item__content {
		font-family: var(--sp-mono);
		font-size: 13px;
		line-height: 16px;
		font-weight: 250;
		letter-spacing: -0.05em;
		text-transform: none;
		color: var(--sp-ink);
		text-decoration: underline 1px var(--sp-line);
		text-underline-offset: 4px;
		transition: color 150ms, text-decoration-color 150ms;
		margin: 0;
		padding: 0;
		background: none !important;
		display: inline-flex;
		gap: 6px;
		align-items: center;
	}

	/* Tekstlenke uten pil (Petter 2026-11-16). */
	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li.sp-mega__all > .wp-block-navigation-item__content::after { display: none; }
	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li.sp-mega__all > .wp-block-navigation-item__content:hover { color: var(--sp-blue-dark); text-decoration-line: underline; text-decoration-color: var(--sp-blue-dark); }

	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li > .wp-block-navigation-item__content {
		font-size: 22px;
		line-height: 28px;
		margin: 0 0 20px;
		padding: 0;
		background: none !important;
	}

	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li > .wp-block-navigation-submenu__toggle,
	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li > .wp-block-navigation__submenu-icon {
		display: none;
	}

	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		position: static !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
		min-width: 0 !important;
		border: 0;
		box-shadow: none;
		padding: 0;
		background: none;
		border-top: 1px solid var(--sp-line);
		border-bottom: 1px solid var(--sp-line);
		border-radius: 0;
		display: block;
	}

	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container > li {
		display: block;
	}

	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: block;
	}

	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container > li + li {
		border-top: 1px solid var(--sp-line);
	}
}

/* Mobilmeny (overlay) */
.sp-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--sp-paper);
	color: var(--sp-ink);
	padding: 32px var(--wp--custom--gutter);
}

.sp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--sp-ink) !important;
	font-size: 24px;
}

.sp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 16px;
	color: var(--sp-mute) !important;
}

/* «Hva lurer du på?» – som AskEntry
 * lg+: fullt felt 240 px med gnist og ⌘K · md: «Spør oss» · < md: kun ikon */
.sp-ask { margin: 0; }

.sp-ask__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 240px;
	height: 44px;
	padding: 0 8px 0 16px;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	background: var(--sp-paper);
	color: var(--sp-mute);
	font-family: var(--wp--preset--font-family--lausanne);
	font-size: 15px;
	font-weight: 250;
	line-height: 1;
	cursor: pointer;
	transition: border-color 150ms ease, color 150ms ease;
}

.sp-ask__trigger:hover { border-color: var(--sp-blue); color: var(--sp-ink); }
.sp-ask__trigger:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }

.sp-header--overlay .sp-ask__trigger {
	background: transparent;
	border-color: rgba(249, 249, 249, 0.5);
	color: var(--sp-paper);
}

.sp-header--overlay .sp-ask__trigger:hover { border-color: var(--sp-paper); color: var(--sp-paper); }
.sp-header--overlay .sp-ask__trigger:focus-visible { outline-color: var(--sp-paper); }

.sp-ask__icon { display: inline-flex; flex: none; color: var(--sp-blue); }
.sp-header--overlay .sp-ask__icon { color: var(--sp-paper); }

.sp-ask__text { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ask__text--compact { display: none; }

.sp-ask__kbd {
	flex: none;
	font-family: var(--sp-mono);
	font-size: 10px;
	line-height: 1;
	padding: 4px 6px;
	border: 1px solid var(--sp-line);
	border-radius: 4px;
	color: var(--sp-mute);
	background: none;
}

.sp-header--overlay .sp-ask__kbd { border-color: rgba(249, 249, 249, 0.5); color: var(--sp-paper); }

/* md: kompakt pille «Spør oss» */
@media (max-width: 1023px) {
	.sp-ask__trigger { width: auto; padding: 0 16px; }
	.sp-ask__text--full, .sp-ask__kbd { display: none; }
	.sp-ask__text--compact { display: inline; }
}

/* < md: kun ikonet (44 px sirkel) */
@media (max-width: 767px) {
	.sp-ask__trigger { width: 44px; padding: 0; justify-content: center; gap: 0; }
	.sp-ask__text--compact { display: none; }
	.sp-ask__icon svg { width: 20px; height: 20px; }

}

@media (max-width: 599px) {
	.sp-header .sp-header__cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero (forside)
   -------------------------------------------------------------------------- */

.sp-hero.wp-block-cover {
	padding-left: var(--wp--custom--gutter);
	padding-right: var(--wp--custom--gutter);
	/* Fyller skjermen – minus adminlinja når man er innlogget, så play-knappen
	   ikke havner under folden. */
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)) !important;
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)) !important;
	/* Som prototypen: teksten sentreres i flaten UNDER headeren
	   (header = toppluft 40/48 + 64 px logo). */
	padding-top: 104px;
	padding-bottom: 0;
	align-items: center;
}

@media (min-width: 782px) {
	.sp-hero.wp-block-cover { padding-top: var(--wp--custom--space--112); }
}

/* Hero-tekst: 24/28 som i prototypen (ikke ingress-linjehøyden 32) */
.sp-hero .has-lead-font-size { font-size: 24px !important; line-height: 28px; }


.sp-hero .wp-block-cover__background {
	background-image:
		linear-gradient(100deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.34) 44%, rgba(0,0,0,0.08) 74%, rgba(0,0,0,0) 100%),
		linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.22) 100%) !important;
	background-color: transparent !important;
	opacity: 1 !important;
}


/* Undersidehero: tekst | bilde (6/6) på blågrå flate */
.sp-page-hero .wp-block-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Prosjekt-showcase (master–detail)
   Uten JS: første bilde vises, alle navn står i lista.
   -------------------------------------------------------------------------- */

.sp-showcase__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 5px;
	overflow: hidden;
	background: var(--sp-blue);
}

.sp-showcase__media > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transform: scale(1.03);
	transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.sp-showcase__media > .wp-block-image:first-child,
.sp-showcase.is-enhanced .sp-showcase__media > .wp-block-image.is-active {
	opacity: 1;
	transform: none;
}

.sp-showcase.is-enhanced .sp-showcase__media > .wp-block-image:not(.is-active) {
	opacity: 0;
}

.sp-showcase__media > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.sp-showcase__media > .wp-block-image figcaption {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: var(--wp--custom--space--96) var(--wp--custom--space--32) var(--wp--custom--space--28);
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
	color: rgba(255, 255, 255, 0.8);
	text-align: left;
	font-family: var(--sp-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sp-showcase__list {
	border-top: 1px solid var(--sp-line);
}

.sp-showcase__item {
	border-bottom: 1px solid var(--sp-line);
	min-height: 68px;
	padding-block: 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	cursor: default;
}

.sp-showcase__item .sp-showcase__name {
	font-size: 28px;
	line-height: 34px;
	color: var(--sp-mute);
}

.sp-showcase__item .sp-showcase__name a {
	color: inherit;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	text-decoration: none;
}

.sp-showcase__item .sp-showcase__name a::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--sp-blue);
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 150ms ease, transform 150ms ease;
}

.sp-showcase__item .sp-showcase__desc {
	display: none;
	font-size: 15px;
	line-height: 22px;
}

.sp-showcase.is-enhanced .sp-showcase__item.is-active .sp-showcase__name {
	font-size: 15px;
	line-height: 22px;
	font-weight: 500;
	color: var(--sp-ink);
}

.sp-showcase.is-enhanced .sp-showcase__item.is-active {
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
}

.sp-showcase.is-enhanced .sp-showcase__item.is-active .sp-showcase__desc {
	display: inline;
}

.sp-showcase.is-enhanced .sp-showcase__item.is-active .sp-showcase__name a::after,
.sp-showcase__item:hover .sp-showcase__name a::after {
	opacity: 1;
	transform: none;
}

/* Aktiv rad: «Navn: beskrivelse» i én tekstflyt, pil til høyre */
.sp-showcase.is-enhanced .sp-showcase__item.is-active > * { display: inline; }
.sp-showcase.is-enhanced .sp-showcase__item.is-active { display: block; position: relative; padding-right: 40px; }
.sp-showcase.is-enhanced .sp-showcase__item.is-active .sp-showcase__name a { display: inline; }
.sp-showcase.is-enhanced .sp-showcase__item.is-active .sp-showcase__name a::after {
	position: absolute;
	right: 0;
	top: 50%;
	margin-top: -11px;
}
.sp-showcase.is-enhanced .sp-showcase__item.is-active .sp-showcase__name::after { content: ": "; font-weight: 500; }

@media (max-width: 781px) {
	.sp-showcase__item .sp-showcase__name { font-size: 22px; line-height: 28px; }
}

/* Editoren: skriptet kjører ikke her, så alt utenom første bilde og alle
   beskrivelsene ville ligget skjult. Beskrivelsene vises under navnene,
   og velger man et prosjekt (eller et bilde i listevisningen), vises
   bildet som hører til – bilde nr. N hører til rad nr. N. */
.editor-styles-wrapper .sp-showcase__item .sp-showcase__desc {
	display: block;
	margin-top: 6px;
	color: var(--sp-mute);
}
.editor-styles-wrapper .sp-showcase__media > .wp-block-image:is(.is-selected, .has-child-selected),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(1):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(1),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(2):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(2),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(3):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(3),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(4):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(4),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(5):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(5),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(6):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(6),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(7):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(7),
.editor-styles-wrapper .sp-showcase:has(.sp-showcase__item:nth-child(8):is(.is-selected, .has-child-selected)) .sp-showcase__media > .wp-block-image:nth-child(8) {
	opacity: 1;
	transform: none;
	z-index: 2;
}

/* --------------------------------------------------------------------------
   Kundeutsagn (blå seksjon)
   -------------------------------------------------------------------------- */

.sp-reference .wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
	max-width: 900px;
}

.sp-reference .wp-block-quote p {
	font-size: var(--wp--preset--font-size--quote);
	line-height: 1.2;
}

.sp-reference .wp-block-quote cite { display: none; }

.sp-avatar img {
	border-radius: 9999px !important;
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.sp-reference .is-style-tag {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

/* --------------------------------------------------------------------------
   Tjenestekort med ulik høyde (Strategi / Utvikling / Synlighet / Drift)
   -------------------------------------------------------------------------- */

.sp-team-cards {
	align-items: flex-start !important;
	margin-top: clamp(96px, 8.9vw, 128px) !important;
}

.sp-team-cards > .wp-block-column > * { margin-block-start: 0; }

.sp-team-cards .wp-block-image {
	margin: 0;
	overflow: hidden;
	border-radius: 5px;
}

.sp-team-cards .wp-block-image img {
	width: 100%;
	object-fit: cover;
	transition: transform 600ms ease-out;
}

.sp-team-cards .wp-block-image:hover img { transform: scale(1.025); }

.sp-team-cards > .wp-block-column:nth-child(1) img { aspect-ratio: 299 / 295; }
.sp-team-cards > .wp-block-column:nth-child(2) img { aspect-ratio: 298 / 368; }
.sp-team-cards > .wp-block-column:nth-child(3) img { aspect-ratio: 299 / 212; }
.sp-team-cards > .wp-block-column:nth-child(4) img { aspect-ratio: 299 / 295; }

/* Bildetekst: 16/22, vekt 250 (første ord i fet 500), 80 % opasitet */
.sp-team-card__text {
	margin-top: 16px !important;
	font-size: 16px;
	line-height: 22px;
	font-weight: 250;
	opacity: 0.8;
}

.sp-team-card__text strong { font-weight: 500; }

.sp-team-card__link { margin-top: 20px !important; }

/* Parallax-kolonnen (JS setter translateY) */
.sp-team-cards > .wp-block-column { will-change: transform; }

/* Intro over tjenestekortene: faste 44/52 og 24/32 på alle bredder, som
   TjenesterIntro i prototypen (resten av nettstedet bruker clamp). */
.sp-section:has(> .sp-team-cards) > .alignwide > h2 { font-size: 44px; line-height: 52px; }
.sp-section:has(> .sp-team-cards) > .alignwide > .sp-measure-lead { font-size: 24px !important; line-height: 32px; }

/* Som prototypen (grid-cols-2 md:grid-cols-4, gap 16/24): to og to under
   768 px, fire på rad fra 768. Grid i stedet for kjernens flex, så
   kolonneblokkens «stables på mobil» ikke legger kortene under hverandre. */
.wp-block-columns.sp-team-cards {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px !important;
}
.wp-block-columns.sp-team-cards > .wp-block-column { min-width: 0; margin: 0 !important; }
@media (min-width: 768px) {
	.wp-block-columns.sp-team-cards { gap: 24px !important; }
}
/* Fire på rad først fra 1024 px; på nettbrett ble spaltene for smale (Petter 18.11) */
@media (min-width: 1024px) {
	.wp-block-columns.sp-team-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Plattformer
   -------------------------------------------------------------------------- */

.sp-platforms {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px !important;
}

@media (max-width: 599px) {
	.sp-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sp-platforms > * { margin: 0 !important; }

.sp-stack-row + .sp-stack-row {
	border-top: 1px solid var(--sp-line);
	padding-top: 32px;
}

.sp-stack-row { padding-bottom: 32px; }

/* --------------------------------------------------------------------------
   Nøkkeltall (mørk seksjon) – målt mot SystemDashboard (bare)
   -------------------------------------------------------------------------- */

.sp-dashboard-section {
	padding-top: var(--wp--custom--space--80);
	padding-bottom: var(--wp--custom--space--80);
}

@media (min-width: 768px) {
	.sp-dashboard-section { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); }
}

.sp-dashboard-section > * { margin-block-start: 0 !important; }

.sp-dashboard-section__title { margin-bottom: var(--wp--custom--space--48) !important; }
@media (min-width: 768px) { .sp-dashboard-section__title { margin-bottom: var(--wp--custom--space--64) !important; } }

.sp-dashboard,
.sp-dashboard > * { margin-block-start: 0 !important; }

.sp-dashboard { font-family: var(--sp-mono); color: var(--sp-paper); }

.sp-dashboard__head {
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(249, 249, 249, 0.9);
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-stats {
	display: grid !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	gap: 0 !important;
}

.sp-stats--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-stats--secondary { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 768px) {
	.sp-stats--primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sp-stats--secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sp-stats > .sp-stat { margin: 0 !important; }
.sp-stats > .sp-stat > * { margin-block-start: 0 !important; }

/* divide-x */
.sp-stats > .sp-stat + .sp-stat { border-left: 1px solid rgba(255, 255, 255, 0.1); }

.sp-stats--primary > .sp-stat { padding: 24px; }
.sp-stats--secondary > .sp-stat { padding: 20px; }

@media (min-width: 768px) {
	.sp-stats--primary > .sp-stat { padding: 28px; }
	.sp-stats--secondary > .sp-stat { padding: 24px; }
}

@media (max-width: 767px) {
	.sp-stats--secondary > .sp-stat + .sp-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

.sp-stat__label {
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(249, 249, 249, 0.5);
}

.sp-stats > .sp-stat > .sp-stat__label:first-child { margin-bottom: 12px !important; }
.sp-stats > .sp-stat > .sp-stat__detail { margin-top: 12px !important; }

.sp-stat__value {
	font-family: var(--sp-mono);
	font-weight: 300;
	line-height: 1;
	color: var(--sp-paper);
	font-variant-numeric: tabular-nums;
	white-space: pre;
}

.sp-stats--primary .sp-stat__value { font-size: 36px; }
.sp-stats--secondary .sp-stat__value { font-size: 24px; }

@media (min-width: 768px) {
	.sp-stats--primary .sp-stat__value { font-size: 48px; }
	.sp-stats--secondary .sp-stat__value { font-size: 30px; line-height: 36px; }
}

.sp-stat__unit { color: rgba(249, 249, 249, 0.4); }
.sp-stats--primary .sp-stat__unit { font-size: 24px; line-height: 32px; margin-left: 2px; }
.sp-stats--secondary .sp-stat__unit { font-size: 18px; line-height: 28px; margin-left: 4px; }

/* --------------------------------------------------------------------------
   Logobånd – målt mot LogoBand (paper-variant)
   Båndet fyller max-w-wide uten sidemarg; fade-gradientene ligger i
   gutter-luften, så logoene er borte ved samme linje som innholdet over.
   -------------------------------------------------------------------------- */

.sp-logo-band-section {
	background: var(--sp-paper);
	padding: var(--wp--custom--space--48) 0 var(--wp--custom--space--40) !important;
	border-bottom: 1px solid var(--sp-line);
}

@media (min-width: 768px) {
	.sp-logo-band-section { padding: var(--wp--custom--space--64) 0 var(--wp--custom--space--48) !important; }
}

.sp-logo-band {
	position: relative;
	overflow: hidden;
	max-width: 88rem;
	margin: 0 auto !important;
}

.sp-logo-band::before,
.sp-logo-band::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: 24px;
	pointer-events: none;
}

.sp-logo-band::before { left: 0; background: linear-gradient(to right, var(--sp-paper), transparent); }
.sp-logo-band::after { right: 0; background: linear-gradient(to left, var(--sp-paper), transparent); }

@media (min-width: 768px) { .sp-logo-band::before, .sp-logo-band::after { width: 48px; } }
@media (min-width: 1024px) { .sp-logo-band::before, .sp-logo-band::after { width: 64px; } }

.sp-logo-band__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 64px !important;
	width: max-content;
	margin: 0 !important;
}

.sp-logo-band.is-running .sp-logo-band__track {
	animation: sp-logo-scroll 60s linear infinite; /* 40 s → 60 s (Petter 19.11) */
}

/* Logobåndet stopper ikke ved hover (Anders 12.11.2026). Står stille ved redusert bevegelse (initLogoBand). */

.sp-logo-band__track .wp-block-image { margin: 0 !important; flex: none; line-height: 0; }

.sp-logo-band__track img {
	width: auto !important;
	max-width: none;
	opacity: 0.45;
	filter: grayscale(1) brightness(0);
	border-radius: 0;
}

@keyframes sp-logo-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - 32px)); }
}

/* --------------------------------------------------------------------------
   Artikkel- og prosjektkort (Query Loop)
   -------------------------------------------------------------------------- */

.sp-cards .wp-block-post-featured-image {
	margin-bottom: 20px;
	overflow: hidden;
}

.sp-cards .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 600ms ease-out;
}

.sp-cards .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.025); }

.sp-cards .wp-block-post-title a:hover { color: var(--sp-blue); text-decoration: none; }

.sp-cards .wp-block-post-terms {
	font-family: var(--sp-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-mute);
}

.sp-cards .wp-block-post-terms a { color: inherit; }

.wp-block-read-more {
	font-family: var(--sp-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wp-block-read-more::after {
	content: "";
	width: 11px;
	height: 11px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}

.wp-block-query-pagination {
	font-family: var(--sp-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Tjenesteliste (kategorisidene er fasit)
   -------------------------------------------------------------------------- */

.sp-service-list > .wp-block-group {
	display: grid !important;
	grid-template-columns: 32px 1fr;
	column-gap: 16px;
	padding-block: 28px;
	margin: 0 !important;
}

.sp-service-list > .wp-block-group + .wp-block-group { border-top: 1px solid var(--sp-line); }

.sp-service-list > .wp-block-group > .is-style-eyebrow { grid-row: span 2; padding-top: 10px; }
.sp-service-list > .wp-block-group > p:not(.is-style-eyebrow) { grid-column: 2; max-width: 60ch; font-size: 16px; line-height: 22px; margin-top: 8px; }
.sp-service-list > .wp-block-group > h3 { grid-column: 2; }

.sp-service-list > .wp-block-group:has(a):hover { background: var(--sp-mist); }
.sp-service-list h3 a { color: inherit; }
.sp-service-list h3 a:hover { color: var(--sp-blue); text-decoration: none; }

/* --------------------------------------------------------------------------
   Artikkel (single)
   -------------------------------------------------------------------------- */

.sp-article .wp-block-post-content > * + * { margin-top: 1.2em; }
.sp-article .wp-block-post-content > h2 { font-size: var(--wp--preset--font-size--h-3); margin-top: 2em; }
.sp-article .wp-block-post-content > h3 { font-size: var(--wp--preset--font-size--lead); margin-top: 1.6em; }
.sp-article .wp-block-post-content a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Skjema (kontakt / nyhetsbrev)
   -------------------------------------------------------------------------- */

.sp-form input[type="email"],
.sp-form input[type="text"],
.sp-form input[type="tel"],
.sp-form textarea {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--sp-line);
	border-radius: 5px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: var(--sp-ink);
}

.sp-form textarea { height: auto; min-height: 140px; padding: 12px; }

.sp-form input:focus,
.sp-form textarea:focus {
	outline: none;
	border-color: var(--sp-mute);
}

.sp-newsletter { display: flex; gap: 8px; }

.sp-newsletter button {
	flex: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 5px;
	background: var(--sp-blue);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sp-newsletter button:hover { background: var(--sp-blue-dark); }

.sp-newsletter button::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.sp-footer {
	font-size: 14px;
	line-height: 1.6;
}

.sp-footer a { color: var(--sp-mute); }
.sp-footer a:hover { color: var(--sp-blue-dark); text-decoration: none; }
.sp-footer .sp-footer__strong a,
.sp-footer h2 a { color: var(--sp-ink); }

.sp-footer h2 {
	font-size: 14px;
	line-height: 20px;
	margin-bottom: 16px;
}

.sp-footer .wp-block-list.is-style-plain > li + li { margin-top: 10px; }

.sp-footer__bottom a { color: var(--sp-mute); }

/* --------------------------------------------------------------------------
   Motion – kun når JS kjører, og aldri ved prefers-reduced-motion.
   Speiler framer-motion i prototypen:
     .sp-reveal          hele elementet: opasitet + 16 px opp
     .sp-reveal-stagger  barna etter tur (80 ms mellom), kun opasitet
       + .sp-reveal-up   … og 16 px opp
     .sp-reveal-each     hvert barn trigges for seg når det selv er synlig
       + .sp-slide       … inn fra 8 px til venstre i stedet for opp
   Varighet: .sp-dur-400/500/600 (standard 700). Trinn mellom barn:
   .sp-step-50/60/150 (standard 80). Andel synlig før start: .sp-in-05/10/
   15/20/25/50 (standard 15 %). JS setter --sp-i (barnets nummer).
   -------------------------------------------------------------------------- */

.sp-js .sp-reveal,
.sp-js .sp-reveal-stagger > *,
.sp-js .sp-reveal-each > *,
.sp-js .sp-reveal-each.sp-matrix__cells li {
	opacity: 0;
	transition:
		opacity var(--sp-dur) var(--sp-ease),
		transform var(--sp-dur) var(--sp-ease);
	transition-delay: calc(var(--sp-i, 0) * var(--sp-step) + var(--sp-delay, 0ms));
}

.sp-js .sp-reveal,
.sp-js .sp-reveal-up > *,
.sp-js .sp-reveal-each:not(.sp-slide) > * { transform: translateY(16px); }

.sp-js .sp-reveal-each.sp-slide > *,
.sp-js .sp-reveal-each.sp-slide.sp-matrix__cells li { transform: translateX(-8px); }

/* Matrisen: selve cellene står, det er listepunktene som glir inn */
.sp-js .sp-reveal-each.sp-matrix__cells > * { opacity: 1; transform: none; transition: none; }

:root { --sp-dur: 700ms; --sp-step: 80ms; }

.sp-js .sp-reveal.is-visible,
.sp-js .sp-reveal-stagger.is-visible > *,
.sp-js .sp-reveal-each > .is-visible,
.sp-js .sp-reveal-each li.is-visible,
.sp-js .sp-reveal-each.sp-slide.sp-matrix__cells li.is-visible {
	opacity: 1;
	transform: none;
}

.sp-js .sp-dur-400, .sp-js .sp-dur-400 > *, .sp-js .sp-dur-400 li { --sp-dur: 400ms; }
.sp-js .sp-dur-500, .sp-js .sp-dur-500 > *, .sp-js .sp-dur-500 li { --sp-dur: 500ms; }
.sp-js .sp-dur-600, .sp-js .sp-dur-600 > *, .sp-js .sp-dur-600 li { --sp-dur: 600ms; }
.sp-js .sp-step-50 > *, .sp-js .sp-step-50 li { --sp-step: 50ms; }
.sp-js .sp-step-60 > * { --sp-step: 60ms; }
.sp-js .sp-step-150 > * { --sp-step: 150ms; }
/* framer «easeOut» der prototypen bruker det */
.sp-js .sp-ease-out, .sp-js .sp-ease-out > *, .sp-js .sp-ease-out li { --sp-ease: cubic-bezier(0, 0, 0.58, 1); }

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

	.sp-js .sp-reveal,
	.sp-js .sp-reveal-stagger > *,
	.sp-js .sp-reveal-each > *,
	.sp-js .sp-reveal-each li {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Editoren: vis alt statisk */
.editor-styles-wrapper .sp-reveal,
.editor-styles-wrapper .sp-reveal-stagger > *,
.editor-styles-wrapper .sp-reveal-each > *,
.editor-styles-wrapper .sp-reveal-each li {
	opacity: 1 !important;
	transform: none !important;
}

.editor-styles-wrapper .sp-header--overlay { position: relative; background: var(--sp-ink); }

/* Teknologilogoer: monokrome referanser, aldri partnerbadge */
.sp-tech-logo { margin: 0; }
.sp-tech-logo img { width: auto !important; filter: grayscale(1) brightness(0); opacity: 0.8; border-radius: 0; }

.sp-on-dark .is-style-eyebrow:not(.has-text-color) { color: rgba(255, 255, 255, 0.75); }

.sp-service-list > .wp-block-group > * { margin-block-start: 0; }
.sp-service-list > .wp-block-group > .is-style-eyebrow { padding-top: 12px; }

@media (max-width: 599px) {
	.sp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding-left: 16px !important; padding-top: 8px !important; }
	.sp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { gap: 8px; }
}

/* --------------------------------------------------------------------------
   Justeringer mot prototypen (målt i 1440px, 2026-09-24)
   -------------------------------------------------------------------------- */

/* Sidemarg som prototypen: 24 / 48 (md) / 64 (lg) */
html body { --wp--custom--gutter: 24px; }
@media (min-width: 768px) { html body { --wp--custom--gutter: 48px; } }
@media (min-width: 1024px) { html body { --wp--custom--gutter: 64px; } }

/* Showcase: 12-kolonners grid, 7/5, gap 48 – som ProjectMasterDetail */
.sp-section--showcase {
	padding-top: clamp(64px, 6.67vw, 96px);
	padding-bottom: clamp(64px, 6.67vw, 96px);
}

.sp-section--showcase > h2 { margin-top: 0; }

@media (min-width: 782px) {
	.wp-block-columns.sp-showcase {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 48px;
	}
	.wp-block-columns.sp-showcase > .wp-block-column:first-child { grid-column: span 7; }
	.wp-block-columns.sp-showcase > .wp-block-column:last-child { grid-column: span 5; }
}

.sp-showcase__side {
	display: flex;
	flex-direction: column;
}

.sp-showcase__list > * { margin-block-start: 0 !important; }

.sp-showcase__all {
	margin-top: auto !important;
	padding-top: 32px;
}

.sp-showcase__media > .wp-block-image figcaption {
	padding: var(--wp--custom--space--96) var(--wp--custom--space--32) var(--wp--custom--space--32);
	line-height: 15px;
}

.sp-showcase__media figcaption code {
	display: inline-block;
	font-family: var(--sp-mono);
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 0.1em;
	color: #fff;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 9999px;
	padding: 4px 10px;
	margin: 8px 8px 0 0;
}

.sp-section--showcase > .sp-showcase { margin-top: 0 !important; }
.sp-showcase.is-enhanced .sp-showcase__item.is-active { font-size: 15px; line-height: 22px; }

/* Seksjoner stables uten blockGap – luft styres av seksjonenes egen padding. */
main.wp-block-group > *,
main.wp-block-group > .wp-block-post-content > .alignfull { margin-block-start: 0; }

/* Kundeutsagn – målt mot ReferenceStatement */
.sp-reference.sp-section {
	padding-top: clamp(80px, 7.8vw, 112px);
	padding-bottom: clamp(80px, 7.8vw, 112px);
}

.sp-reference .wp-block-quote { max-width: 896px; }
.sp-reference .wp-block-quote p { margin: 0; }

.sp-reference .is-style-tag {
	border-color: rgba(255, 255, 255, 0.3);
}

.sp-reference__person { line-height: 24px !important; }

.sp-avatar--lg { margin: 0; }
.sp-avatar--lg img {
	width: 64px !important;
	height: 64px !important;
	object-position: 50% 20%;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

@media (min-width: 782px) {
	.sp-avatar--lg img { width: 80px !important; height: 80px !important; }
	.sp-reference__footer > .is-style-mono-link { margin-left: 16px !important; }
	.sp-reference__footer > .is-style-mono-link::before {
		content: "/";
		color: rgba(255, 255, 255, 0.3);
		font-family: var(--wp--preset--font-family--lausanne);
		font-size: 16px;
		margin-right: 32px;
	}
}

/* Showcase-bytte som i prototypen (AnimatePresence mode="wait"):
 * gammelt bilde fader ut til blått (160 ms ease-in), blått står ~120 ms, så fader nytt
 * inn fra blått med lett zoom (300 ms ease-out). */
.sp-showcase.is-enhanced .sp-showcase__media > .wp-block-image,
.sp-showcase.is-enhanced .sp-showcase__media > .wp-block-image:first-child {
	opacity: 0;
	transform: scale(1.03);
	transition: opacity 160ms ease-in, transform 0s linear 160ms;
}

.sp-showcase.is-enhanced .sp-showcase__media > .wp-block-image.is-active {
	opacity: 1;
	transform: none;
	transition: opacity 300ms ease-out 280ms, transform 300ms ease-out 280ms;
}

/* --------------------------------------------------------------------------
   Plattformer – målt mot PlatformStack (1440px)
   -------------------------------------------------------------------------- */

/* Strek kant til kant på seksjonen, som prototypen */
.sp-rule-top { border-top: 1px solid var(--sp-line); }

/* 5/7-deling på 12-kolonners grid, gap 64 */
@media (min-width: 782px) {
	.wp-block-columns.sp-split-5-7 {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 64px;
	}
	.wp-block-columns.sp-split-5-7 > .wp-block-column:first-child { grid-column: span 5; }
	.wp-block-columns.sp-split-5-7 > .wp-block-column:last-child { grid-column: span 7; }
}

.sp-split-5-7 .wp-block-column > * { margin-block-start: 0; }

.sp-stack-row,
.sp-stack-row + .sp-stack-row { padding: 32px 0; margin: 0 !important; }
.sp-stack-row:first-child { padding-top: 0; padding-bottom: 40px; border-bottom: 1px solid var(--sp-line); }
.sp-stack-row:last-child { padding-bottom: 0; }
.sp-stack-row + .sp-stack-row { border-top: 0; }
.sp-stack-row:nth-child(2) { border-bottom: 1px solid var(--sp-line); }
.sp-stack-row > * { margin-block-start: 0 !important; }

.sp-platforms { gap: 32px 24px !important; }
.sp-platform > * { margin-block-start: 0 !important; }
.sp-platform .sp-tech-logo { margin: 0 0 16px !important; line-height: 0; }
.sp-platform__name { font-size: 18px; line-height: 24px; margin: 0 0 6px !important; }
.sp-platform__note { font-size: 10px; line-height: 15px; }



/* --------------------------------------------------------------------------
   Artikler og innsikt + avsluttende CTA – målt mot Insights / FinalCTA
   -------------------------------------------------------------------------- */

.sp-h2-38 { font-size: 38px !important; line-height: 45px !important; }

.sp-insights {
	padding-top: var(--wp--custom--space--80);
	padding-bottom: var(--wp--custom--space--80);
	border-bottom: 1px solid var(--sp-line);
}

@media (min-width: 768px) { .sp-insights { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }

.sp-insights > * { margin-block-start: 0 !important; }
.sp-insights__head { margin-bottom: var(--wp--custom--space--48) !important; gap: 16px !important; }
@media (min-width: 768px) { .sp-insights__head { margin-bottom: var(--wp--custom--space--64) !important; } }

.sp-insights__grid .wp-block-post-template { gap: 24px !important; }
@media (min-width: 768px) { .sp-insights__grid .wp-block-post-template { gap: 32px !important; } }
@media (max-width: 767px) { .sp-insights__grid .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; } }

.sp-insights__grid .wp-block-post > * { margin-block-start: 0 !important; }
.sp-insights__grid .wp-block-post-featured-image { margin: 0 0 20px !important; }
.sp-insights__grid .sp-card__kicker { font-size: 11px; line-height: 16px; margin-bottom: 12px !important; }
.sp-insights__grid .sp-card__title { font-size: 22px; line-height: 28px; margin: 0 0 12px !important; }
.sp-insights__grid .sp-card__lead { font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); margin: 0 0 16px !important; }
.sp-insights__grid .sp-card__lead p { margin: 0; }
.sp-insights__grid .wp-block-read-more { line-height: 16px; }

.sp-final-cta {
	padding-top: var(--wp--custom--space--48);
	padding-bottom: var(--wp--custom--space--80);
}

@media (min-width: 768px) { .sp-final-cta { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--112); } }

.sp-final-cta > * { margin-block-start: 0 !important; }

.sp-final-cta__row { gap: 64px !important; align-items: flex-end !important; }
@media (max-width: 767px) {
	.sp-final-cta__row { flex-direction: column; align-items: flex-start !important; gap: 40px !important; }
}

.sp-final-cta__text { max-width: 640px; }
.sp-final-cta__text > *,
.sp-final-cta__person > * { margin-block-start: 0 !important; }

.sp-final-cta__lead {
	font-size: 22px;
	line-height: 26px;
	color: var(--sp-mute);
	max-width: 600px;
	margin-top: 32px !important;
}

.sp-final-cta__person { flex-shrink: 0; }
.sp-person { gap: 16px !important; }
.sp-person__name { font-size: 16px; line-height: 22px; }
.sp-final-cta__button { margin-top: 24px !important; }

.sp-avatar--zoom { overflow: hidden; border-radius: 9999px; }
.sp-avatar--zoom img { transform: scale(1.35); object-position: 50% 0% !important; box-shadow: none; }

.sp-btn-sm > .wp-block-button__link {
	min-height: 0;
	border: 0;
	font-weight: 250;
	padding: 10px 20px;
	font-size: 14px;
	line-height: 20px;
}

/* --------------------------------------------------------------------------
   Footer – målt mot Footer.tsx
   -------------------------------------------------------------------------- */

@media (min-width: 782px) {
	.sp-footer > .wp-block-columns.sp-grid {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 40px;
	}
	.sp-footer > .wp-block-columns > .wp-block-column:nth-child(1),
	.sp-footer > .wp-block-columns > .wp-block-column:nth-child(4) { grid-column: span 4; }
	.sp-footer > .wp-block-columns > .wp-block-column:nth-child(2),
	.sp-footer > .wp-block-columns > .wp-block-column:nth-child(3) { grid-column: span 2; }
}

.sp-footer .wp-block-column > * { margin-block-start: 0 !important; }
.sp-footer .wp-block-column > .sp-logo { margin-bottom: 40px !important; }

/* Adresse: leading-relaxed + space-y-1 */
.sp-footer .wp-block-column:first-child > p { font-size: 14px; line-height: 26.75px; margin-top: -2px !important; }
.sp-footer .wp-block-column:first-child > p + p { margin-top: 0 !important; }

.sp-footer h2 { margin: 0 0 16px !important; }
.sp-footer .wp-block-list.is-style-plain > li { font-size: 14px; line-height: 20px; }

.sp-footer .wp-block-column:nth-child(4) > p { font-size: 14px; line-height: 22.75px; margin: 0 0 16px !important; }

.sp-newsletter input[type="email"] { box-sizing: border-box; height: 40px; background: #fff; }

/* Footer-symbolet er ikke en lenke, og står i ink som i prototypen */
.sp-footer .sp-logo { color: var(--sp-ink); }

/* Footer: de mørke lenkene (e-post, «Tjenester») blir også blå ved hover */
.sp-footer .sp-footer__strong a:hover,
.sp-footer h2 a:hover { color: var(--sp-blue-dark); }

/* --------------------------------------------------------------------------
   Hero-rundell – som LausanneHero i prototypen
   Blå flate bak bildene (synlig i den korte pausen mellom dem), sveip/dra
   for å bytte, play/pause nederst til høyre. Starter pauset.
   -------------------------------------------------------------------------- */

.sp-hero.wp-block-cover { background-color: var(--sp-blue); user-select: none; -webkit-user-select: none; }

.sp-hero__slides { display: none !important; }

.sp-hero.is-enhanced { cursor: grab; touch-action: pan-y; }
.sp-hero.is-enhanced.is-dragging { cursor: grabbing; }

/* Teksten lar draget gå gjennom til bildet; lenker og knapper er klikkbare */
.sp-hero.is-enhanced .wp-block-cover__inner-container { pointer-events: none; }
.sp-hero.is-enhanced .wp-block-cover__inner-container a,
.sp-hero.is-enhanced .wp-block-cover__inner-container button { pointer-events: auto; }

.sp-hero .sp-hero__slide {
	opacity: 0;
	transition: none;
	will-change: opacity, transform;
	-webkit-user-drag: none;
	pointer-events: none;
}

.sp-hero .sp-hero__slide.is-active { opacity: 1; }

/* Kontroller */
.sp-hero__controls {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 16px;
}

@media (min-width: 768px) { .sp-hero__controls { right: 32px; } }

.sp-hero__play-wrap { position: relative; }

.sp-hero__ping {
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	background: rgba(95, 170, 255, 0.7);
	animation: sp-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
	pointer-events: none;
}

.sp-hero:not(.is-paused) .sp-hero__ping { display: none; }

.sp-hero__play {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: var(--sp-ink);
	cursor: pointer;
	transition: background-color 150ms ease;
}

.sp-hero__play:hover { background: rgba(255, 255, 255, 0.35); }
.sp-hero__play:focus-visible { outline: 2px solid var(--sp-paper); outline-offset: 3px; }

.sp-hero.is-paused .sp-hero__play { animation: sp-hero-pulse 2.2s ease-in-out infinite; }

.sp-hero__play svg { display: block; animation: sp-fade-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.sp-hero__bars { display: inline-flex; align-items: center; gap: 3px; }
.sp-hero__bars span {
	display: block;
	width: 3px;
	height: 12px;
	border-radius: 9999px;
	background: currentColor;
}

.sp-hero.is-paused .sp-hero__bars,
.sp-hero:not(.is-paused) .sp-hero__play svg { display: none; }

@keyframes sp-ping {
	75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes sp-hero-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

@keyframes sp-fade-pulse {
	50% { opacity: 0.5; }
}

/* Editoren: vis ekstrabildene som en stripe, så de kan byttes */
.editor-styles-wrapper .sp-hero__slides {
	display: flex !important;
	margin-top: var(--wp--custom--space--48) !important;
	gap: 8px !important;
	opacity: 0.9;
}
.editor-styles-wrapper .sp-hero__slides .wp-block-image { max-width: 120px; }

/* Logoen trekkes ut så venstremargen bryter midt på symbolet (md+), som prototypen */
@media (min-width: 768px) {
	.sp-header .sp-logo { transform: translateX(-50%); }
}

/* Menysymbolet: asymmetrisk to-streks glyf (28 × 14) som i prototypen */
.sp-header .wp-block-navigation__responsive-container-open {
	position: relative;
	/* Trykkflate 44 × 44 (WCAG), glyfen er fortsatt 28 × 14 på samme sted:
	   negativ marg tar igjen den ekstra flaten (Petter 19.11). */
	width: 44px;
	height: 44px;
	margin: -15px -8px;
	padding: 0;
	color: inherit;
}
.sp-header .wp-block-navigation__responsive-container-open svg { display: none; }
.sp-header .wp-block-navigation__responsive-container-open::before,
.sp-header .wp-block-navigation__responsive-container-open::after {
	content: "";
	position: absolute;
	right: 0;
	height: 1.5px;
	background: currentColor;
}
.sp-header .wp-block-navigation__responsive-container-open::before,
.sp-header .wp-block-navigation__responsive-container-open::after { right: 8px; }
.sp-header .wp-block-navigation__responsive-container-open::before { top: 16.75px; width: 28px; }
.sp-header .wp-block-navigation__responsive-container-open::after { top: 25.75px; width: 19px; }
.sp-header .wp-block-navigation__responsive-container-open:hover { color: var(--sp-blue); }
.sp-header--overlay .wp-block-navigation__responsive-container-open:hover { color: rgba(249, 249, 249, 0.7); }

/* Under lg (1024) er hovedmenyen et menysymbol, som i prototypen.
 * Rekkefølge: logo … søk, «Ta kontakt», meny. */
@media (max-width: 1023px) {
	.sp-header__row > .wp-block-group:first-child { display: contents; }
	.sp-header__row .sp-logo { order: 0; }
	.sp-header__row > .wp-block-group:last-child { order: 1; margin-left: auto; }
	.sp-header__row .wp-block-navigation { order: 2; }
	.sp-header .sp-header__row,
	.sp-header__row > .wp-block-group:last-child { gap: 20px !important; }
}

@media (min-width: 640px) and (max-width: 1023px) {
	.sp-header .sp-header__row,
	.sp-header__row > .wp-block-group:last-child { gap: 24px !important; }
}

@media (min-width: 600px) and (max-width: 1023px) {
	.sp-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.sp-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}

/* --------------------------------------------------------------------------
   Mobilmeny – OffCanvasMenu i prototypen (mørkt panel fra høyre)
   -------------------------------------------------------------------------- */
.sp-ocm[hidden] { display: none; }
.sp-ocm { position: fixed; inset: 0; z-index: 100000; font-family: var(--wp--preset--font-family--lausanne); font-weight: 250; }
.sp-ocm__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 300ms ease; }
.sp-ocm__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: 100%;
	display: flex; flex-direction: column;
	background: rgb(35, 35, 35); color: #fff;
	font-size: 16px; line-height: 24px;
	transform: translateX(100%);
	transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 640px) { .sp-ocm__panel { width: 460px; } }
.sp-ocm.is-open .sp-ocm__backdrop { opacity: 1; }
.sp-ocm.is-open .sp-ocm__panel { transform: none; }
.sp-ocm__top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-shrink: 0; height: 80px; padding: 0 32px; box-sizing: border-box; }
.sp-ocm__close { flex: none; }
.sp-ocm__close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9999px;
	background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer;
	transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-ocm__close:hover { background: rgba(255, 255, 255, 0.2); }
.sp-ocm__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 32px; }
.sp-ocm__view { transition: opacity 250ms cubic-bezier(0, 0, 0.58, 1), transform 250ms cubic-bezier(0, 0, 0.58, 1); }
.sp-ocm__view[hidden] { display: none; }
.sp-ocm__view.is-off[data-sp-ocm-view="main"] { opacity: 0; transform: translateX(-20px); }
.sp-ocm__view.is-off:not([data-sp-ocm-view="main"]) { opacity: 0; transform: translateX(24px); }
.sp-ocm__label, .sp-ocm__back, .sp-ocm__all, .sp-ocm__sig p {
	font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px;
	letter-spacing: 0.1em; text-transform: uppercase;
}
.sp-ocm__label { margin: 0 0 24px; color: rgba(255, 255, 255, 0.4); }
.sp-ocm__item {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	box-sizing: border-box; width: 100%; margin: 0; padding: 16px 0;
	border: 0; border-radius: 0;
	background: none; color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.sp-ocm__item span {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(28px, 5vw, 40px); line-height: 1.1; font-weight: 250;
	transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-ocm__item--sub { padding: 14px 0; }
.sp-ocm__item--sub span { font-size: clamp(24px, 4vw, 34px); }
.sp-ocm__item svg, .sp-ocm__all svg, .sp-ocm__back svg { flex-shrink: 0; transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.sp-ocm__item svg { color: #6E7176; } /* hel farge, ikke gjennomsiktig (Anders 25.11) */
.sp-ocm__item:hover span, .sp-ocm__item:focus-visible span { color: #fff; }
.sp-ocm__item:hover svg, .sp-ocm__item:focus-visible svg { color: #fff; transform: translateX(4px); }
.sp-ocm__back {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 0;
	border: 0; background: none; color: rgba(255, 255, 255, 0.6); cursor: pointer;
	transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-ocm__back:hover { color: #fff; }
.sp-ocm__back:hover svg { transform: translateX(-4px); }
/* Ingen streker mellom punktene (Petter 2026-11-10), men streken over
   «Alle …» står, som i panelene. */
.sp-ocm__foot { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sp-ocm__all {
	display: inline-flex; align-items: center; gap: 6px;
	color: #fff; text-decoration: none; transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-ocm__all:hover { color: rgba(255, 255, 255, 0.7); }
.sp-ocm__all:hover svg { transform: translateX(4px); }
.sp-ocm__cta { padding: 32px 0 24px; } /* inne i rullefeltet (Anders 25.11) */
.sp-ocm__pill {
	display: inline-flex; align-items: center; justify-content: center;
	height: 46px; padding: 0 28px; border-radius: 9999px;
	background: #fff; color: rgb(35, 35, 35); font-size: 16px; line-height: 24px; text-decoration: none;
	transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-ocm__pill:hover { background: rgba(255, 255, 255, 0.9); color: rgb(35, 35, 35); }
.sp-ocm__sig { flex-shrink: 0; padding: 24px 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sp-ocm__sig p { margin: 0; color: rgba(255, 255, 255, 0.4); }
.sp-ocm :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.sp-ocm__backdrop, .sp-ocm__panel, .sp-ocm__view { transition: none; }
}

/* --------------------------------------------------------------------------
   Spør-panelet – som SearchOverlay (kun panelet, ingen svarmotor ennå)
   -------------------------------------------------------------------------- */

.sp-ask-panel[hidden] { display: none; }

/* Spør-panelet (Anders 19.11, variant A): samtalen til venstre med feltet
   nederst, sidene som hører til svaret i en egen kolonne til høyre. På mobil
   fyller panelet skjermen, og sidene ligger som en sveiperad over feltet. */
.sp-ask-panel {
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: var(--wp--preset--font-family--lausanne);
	font-weight: 250;
	color: var(--sp-ink);
}

.sp-ask-panel__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }

.sp-ask-panel__row {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	pointer-events: none;
}

.sp-ask-panel__box {
	pointer-events: auto;
	box-sizing: border-box;
	width: 100%;
	max-width: 1160px;
	height: min(788px, calc(100vh - 48px));
	height: min(788px, calc(100dvh - 48px));
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	grid-template-rows: auto minmax(0, 1fr) auto;
	grid-template-areas: "head side" "body side" "form side";
	overflow: hidden;
	background: var(--sp-paper);
	border-radius: 6px; /* uten kantlinje, så den blå kontaktboksen går helt ut (Anders 19.11) */
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.sp-ask-panel__head {
	grid-area: head;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px 14px 28px;
}

.sp-ask-panel__icon { display: inline-flex; flex: none; color: var(--sp-blue); }

.sp-ask-panel__label {
	flex: 1;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-mute);
}

.sp-ask-panel__new {
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--sp-mono);
	font-size: 13px;
	font-weight: 250;
	color: var(--sp-ink);
	text-decoration: underline 1px var(--sp-line);
	text-underline-offset: 4px;
	cursor: pointer;
}
.sp-ask-panel__new[hidden] { display: none; }
.sp-ask-panel__new:hover { color: var(--sp-blue-dark); text-decoration-color: var(--sp-blue-dark); }

.sp-ask-panel__close {
	flex: none;
	width: 40px;
	height: 40px;
	margin-left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	background: none;
	color: var(--sp-ink);
	cursor: pointer;
}
.sp-ask-panel__close:hover { border-color: var(--sp-blue); color: var(--sp-blue-dark); }

.sp-ask-panel__body {
	grid-area: body;
	position: relative;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 28px;
	display: flex;
	flex-direction: column;
}

/* Starten står nederst, nær feltet; samtalen fyller fra bunnen. */
.sp-ask-panel__start { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

.sp-ask-panel__title {
	margin: 0;
	font-size: 40px;
	line-height: 46px;
	font-weight: 250;
	letter-spacing: -0.02em;
}

.sp-ask-panel__lead { margin: 0 0 14px; max-width: 520px; font-size: 17px; line-height: 26px; color: var(--sp-mute); }

.sp-ask-panel__eyebrow {
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-mute);
	margin: 0;
}

.sp-ask-panel__suggestions { display: flex; flex-wrap: wrap; gap: 8px; }

.sp-ask-panel__suggestion {
	text-align: left;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	background: var(--sp-white, #fff);
	color: var(--sp-ink);
	font: inherit;
	font-size: 15px;
	line-height: 20px;
	cursor: pointer;
	transition: border-color 150ms ease, color 150ms ease;
}

.sp-ask-panel__suggestion:hover { border-color: var(--sp-blue); color: var(--sp-blue); }

.sp-ask-panel__form {
	grid-area: form;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 28px 24px;
	padding: 6px 6px 6px 20px;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	transition: border-color 150ms ease;
}
.sp-ask-panel__form:focus-within { border-color: var(--sp-blue); }

.sp-ask-panel__input {
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	color: var(--sp-ink);
	outline: none;
}

.sp-ask-panel__input::placeholder { color: var(--sp-mute); opacity: 1; }

.sp-ask-panel__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 9999px;
	background: var(--sp-blue);
	color: #fff;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 150ms ease;
}

.sp-ask-panel__submit::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}

.sp-ask-panel__submit:hover { background: var(--sp-blue-dark); }
.sp-ask-panel__submit:focus-visible,
.sp-ask-panel__suggestion:focus-visible,
.sp-ask-panel__close:focus-visible,
.sp-ask-panel__new:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }

/* Høyre kolonne */
.sp-ask-panel__side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	background: var(--sp-mist);
	border-left: 1px solid var(--sp-line);
}

/* Samtalen og søkeresultatene ruller uten synlig rullefelt (Petter 19.11). */
.sp-ask-panel__body,
.sp-ask-panel__side { scrollbar-width: none; }
.sp-ask-panel__body::-webkit-scrollbar,
.sp-ask-panel__side::-webkit-scrollbar { display: none; }

.sp-ask-panel__related:empty { display: none; }
.sp-ask-panel__related { display: flex; flex-direction: column; gap: 24px; }
.sp-ss-side { display: flex; flex-direction: column; gap: 10px; }
.sp-ask-panel__picks { display: flex; flex-direction: column; gap: 10px; }
.sp-ask-panel__box.has-thread .sp-ask-panel__picks { display: none; }

.sp-ask-panel__contact {
	position: sticky;
	bottom: -24px;
	margin: auto -24px -24px;
	padding: 20px 24px 24px;
	background: var(--sp-mist);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
/* Blå kontaktboks med hvit knapp (Petter 19.11) – bare på PC; på mobil er
   «Snakk med oss» en vanlig blå knapp i sveiperaden. */
@media (min-width: 900px) {
	.sp-ask-panel__contact { padding: 28px 24px 28px; background: var(--sp-blue); color: #fff; }
	.sp-ask-panel__contact .sp-ss-contact { background: #fff; color: var(--sp-blue); }
	.sp-ask-panel__contact .sp-ss-contact:hover { background: var(--sp-paper); color: var(--sp-blue-dark); }
	.sp-ask-panel__contact .sp-ss-contact:focus-visible { outline-color: #fff; }
}
.sp-ask-panel__contact p { margin: 0; font-size: 17px; line-height: 24px; text-wrap: pretty; }
/* Én setning per linje (Anders 19.11), så ord ikke blir hengende alene. */
.sp-ask-panel__contact p > span { display: block; }
.sp-ss-a__text, .sp-ss-card__desc { text-wrap: pretty; }

@media (max-width: 899px) {
	.sp-ask-panel__row { padding: 0; align-items: stretch; }
	.sp-ask-panel__box {
		max-width: none;
		height: 100vh;
		height: 100dvh;
		border: 0;
		border-radius: 0;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr) auto auto;
		grid-template-areas: "head" "body" "side" "form";
		background: var(--sp-paper);
	}
	.sp-ask-panel__head { padding: 8px 8px 8px 16px; }
	.sp-ask-panel__close { border: 0; width: 44px; height: 44px; }
	.sp-ask-panel__body { padding: 20px 16px; }
	.sp-ask-panel__title { font-size: 32px; line-height: 38px; }
	.sp-ask-panel__form { margin: 0 12px 14px; }

	/* Sidene som en sveiperad over feltet, bare når det finnes et svar. */
	.sp-ask-panel__side {
		flex-direction: row;
		gap: 10px;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 12px 16px;
		margin-bottom: 10px;
		border-left: 0;
		border-top: 1px solid var(--sp-line);
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
	}
	.sp-ask-panel__box:not(.has-thread) .sp-ask-panel__side { display: none; }
	.sp-ask-panel__related,
	.sp-ss-side,
	.sp-ss-side .sp-ss-cards,
	.sp-ss-side .sp-ss-cards > li { display: contents; }
	.sp-ss-side--earlier,
	.sp-ask-panel__side .sp-ask-panel__eyebrow { display: none; }
	.sp-ask-panel__side .sp-ss-card { flex: 0 0 240px; padding: 12px 14px; scroll-snap-align: start; }
	.sp-ask-panel__side .sp-ss-card__title { font-size: 17px; line-height: 22px; }
	.sp-ask-panel__contact { position: static; margin: 0; padding: 0; border: 0; background: none; flex: none; justify-content: center; }
	.sp-ask-panel__contact p { display: none; }
	.sp-ask-panel__side .sp-ss-card__desc { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

html.sp-ask-open, html.sp-ask-open body { overflow: hidden; }

/* --------------------------------------------------------------------------
   Menypaneler – målt mot MainNav (MegaPanel / OmOssPanel)
   Panelene flukter med innholdsmargen (samme kant som logoraden), ikke med
   menypunktet, og ligger 20 px under menylinjen.
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	.sp-header .sp-header__row { position: relative; }

	.sp-header .sp-header__row .wp-block-navigation,
	.sp-header .sp-header__row .wp-block-navigation__responsive-container,
	.sp-header .sp-header__row .wp-block-navigation__responsive-close,
	.sp-header .sp-header__row .wp-block-navigation__responsive-dialog,
	.sp-header .sp-header__row .wp-block-navigation__responsive-container-content,
	.sp-header .sp-header__row .wp-block-navigation__container,
	.sp-header .sp-header__row .wp-block-navigation__container > .has-child {
		position: static !important;
	}

	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
		top: 100% !important;
		left: 0 !important;
		box-sizing: border-box;
		padding: var(--wp--custom--space--48) !important;
	}

	.sp-header .wp-block-navigation__container > .has-child:not(.sp-mega) > .wp-block-navigation__submenu-container {
		width: min(460px, 100%) !important;
	}

	.sp-header .sp-mega > .wp-block-navigation__submenu-container {
		width: min(920px, 100%) !important;
		padding: var(--wp--custom--space--48) !important;
	}

	/* Kategoritittel 22/28, 20 px over lista */
	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li:not(.sp-mega__all) > .wp-block-navigation-item__content {
		font-size: 22px !important;
		line-height: 28px !important;
		margin: 0 0 20px !important;
		padding: 0 !important;
	}

	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li > .wp-block-navigation-item__content:hover { color: var(--sp-blue); }

	/* «Utforsk …» under hver kolonne: mono-lenke, ikke en listerad */
	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { border-bottom: 0 !important; }
	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container > li:has(+ .sp-mega__explore) { border-bottom: 1px solid var(--sp-line); }
	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container > li.sp-mega__explore { border-top: 0 !important; margin-top: 20px; display: flex !important; padding: 0 !important; line-height: 16px; }

	.sp-header .sp-mega li.sp-mega__explore > .wp-block-navigation-item__content {
		display: inline-flex !important;
		align-items: center;
		gap: 6px;
		padding: 0 !important;
		margin: 0 !important;
		font-family: var(--sp-mono);
		font-size: 11px !important;
		line-height: 16px !important;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--sp-blue) !important;
		background: none !important;
	}

	.sp-header .sp-mega li.sp-mega__explore > .wp-block-navigation-item__content::after {
		content: "";
		width: 11px;
		height: 11px;
		background: currentColor;
		-webkit-mask: var(--sp-arrow) center / contain no-repeat;
		mask: var(--sp-arrow) center / contain no-repeat;
		transition: transform 150ms ease;
	}

	.sp-header .sp-mega li.sp-mega__explore > .wp-block-navigation-item__content:hover { color: var(--sp-blue-dark) !important; }
	.sp-header .sp-mega li.sp-mega__explore > .wp-block-navigation-item__content:hover::after { transform: translateX(4px); }
}

/* Om oss-panelet: tittel 22/28 og forklaring 14/20. Ingen streker; lenkene
   har samme 38 px hover-felt som Tjenester (Petter 2026-11-10). Luften er
   padding, siden WordPress nuller margin på punktene i panelene. */
.sp-header .sp-panel .sp-panel__title,
.sp-header .sp-panel .sp-panel__note { display: none; }

@media (min-width: 1024px) {
	.sp-header .sp-panel > .wp-block-navigation__submenu-container { display: block !important; }
	.sp-header .sp-panel > .wp-block-navigation__submenu-container > li { border: 0 !important; }
	.sp-header .sp-panel .sp-panel__title {
		display: block;
		font-size: 22px;
		line-height: 28px;
		font-weight: 250;
		margin: 0 !important;
		padding: 0 0 20px;
		color: var(--sp-ink);
	}
	.sp-header .sp-panel > .wp-block-navigation__submenu-container > li > .wp-block-navigation-item__content {
		display: block !important;
		padding: 8px 12px !important;
		margin: 0 -12px !important;
		font-weight: 250;
		transition: color 150ms ease, background-color 150ms ease;
	}
	.sp-header .sp-panel .sp-panel__note {
		display: block;
		margin: 0 !important;
		padding-top: 20px;
		max-width: 36ch;
		font-size: 14px;
		line-height: 20px;
		color: var(--sp-mute);
	}
}

/* I mobilmenyen er kategorien selv lenken – «Utforsk …» blir dobbelt */
@media (max-width: 1023px) {
	.sp-header .sp-mega__explore { display: none !important; }
}

/* --------------------------------------------------------------------------
   Menypanelene (Petter 2026-11-10, MainNav.tsx i prototypen)
   Tjenester: fire kategorier med lenkene under og «Alle tjenester» nederst.
   Produkter: fire produkter side om side, uten bilder. Teaserfeltet til
   høyre ligger lenger ned.
   -------------------------------------------------------------------------- */
/* Produkter (Petter 2026-11-10): navnet, hva det er, én setning og «Les om …»
   i panelet; uten logoer og ikoner. Utenfor panelet (smal skjerm) bare navnet. */
.sp-header .sp-prod .sp-prod__desc,
.sp-header .sp-prod .sp-prod__more { display: none; }

/* Seks punkter i hovedmenyen: mellom 1024 og 1279 px blir spørrefeltet et
   ikon, og menypunktene og knappen holdes på én linje. */
.sp-header .wp-block-navigation__container > li > .wp-block-navigation-item__content,
.sp-header .sp-header__cta .wp-block-button__link { white-space: nowrap; }

/* Panelene henger 16 px under menylinja i stedet for å klistre seg til den.
   På forsiden (overlay over heroen) dempes siden bak mens en meny er åpen,
   så panelet skiller seg fra bildet. */
@media (min-width: 1024px) {
	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { top: calc(100% + 16px) !important; }

	/* Bytte fra ett panel til et annet skjer uten overgang, som i
	   prototypen: panelet tones ikke inn, og toningen bak blir stående
	   (html.sp-menu-open settes av initNav i motion.js og slippes litt
	   etter at siste panel er lukket). */
	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { transition: none !important; }

	html.sp-menu-open .sp-header--overlay::before,
	.sp-header--overlay:has(.wp-block-navigation-submenu__toggle[aria-expanded="true"])::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: -1;
		background: linear-gradient(to bottom, rgba(20, 24, 30, 0.72), rgba(20, 24, 30, 0.45) 60%);
		/* Toningen tar imot klikket (det går til headeren), så ingenting
		   under blir truffet; initNav lukker panelet. */
		pointer-events: auto;
		animation: sp-scrim-in 200ms ease both;
	}
}
@keyframes sp-scrim-in { from { opacity: 0; } to { opacity: 1; } }

/* Fokusringen på pil-knappen: bare ved tastatur, med luft rundt pila */
.sp-header .wp-block-navigation-submenu__toggle:focus { outline: none; }
.sp-header .wp-block-navigation-submenu__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }

@media (min-width: 1024px) and (max-width: 1279px) {
	.sp-header .sp-ask__trigger { width: 44px; padding: 0; justify-content: center; gap: 0; }
	.sp-header .sp-ask__text--full, .sp-header .sp-ask__text--compact, .sp-header .sp-ask__kbd { display: none; }
	.sp-header .wp-block-navigation__container { gap: 24px !important; }
}

@media (min-width: 1024px) {
	.sp-header .sp-mega > .wp-block-navigation__submenu-container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 40px;
		padding: var(--wp--custom--space--48) !important;
	}

	/* Kategoritittelen (Petter 2026-11-10, MegaPanel i prototypen): 22/28 i
	   250, strek under med 16 px luft over og 12 px under. Uten nummer. */
	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li:not(.sp-mega__all):not(.sp-teaser) > .wp-block-navigation-item__content {
		display: block !important;
		font-size: 22px !important;
		line-height: 28px !important;
		font-weight: 250;
		margin: 0 0 12px !important;
		padding: 0 0 16px !important;
		border-bottom: 1px solid var(--sp-line);
	}

	/* Lenkene: ingen skillelinjer, 16/22 med 8 px over og under (38 px høyt
	   hover-felt). Hover-feltet går 12 px ut på hver side. */
	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { border-top: 0 !important; }
	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container > li { border: 0 !important; }

	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container > li:not(.sp-mega__explore) > .wp-block-navigation-item__content {
		display: block !important;
		padding: 8px 12px !important;
		margin: 0 -12px !important;
		font-size: 16px;
		line-height: 22px;
		font-weight: 250;
		color: var(--sp-ink);
		background: transparent !important;
		transition: color 150ms ease, background-color 150ms ease;
	}
	.sp-header .sp-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container > li:not(.sp-mega__explore) > .wp-block-navigation-item__content:hover {
		color: var(--sp-blue);
		background: var(--sp-mist) !important;
	}

	/* Fotlinje: «Alle tjenester», 40 px under lenkene og 24 px luft under
	   streken (lenken står i en høyere linje, så den treffer prototypen).
	   Streken går over de fire kolonnene, ikke teaserfeltet. */
	.sp-header .sp-mega > .wp-block-navigation__submenu-container > li.sp-mega__all {
		grid-column: 1 / 5;
		margin-top: 40px !important;
		padding-top: 24px;
		border-top: 1px solid var(--sp-line) !important;
	}

	/* Produkter – samme flate som Tjenester-panelet. Én kolonne per produkt:
	   navnet (22/28), hva det er (16/22), første setning (14/20, dempet) og
	   «Les om …» i mono. Kolonnene deler rader (subgrid), så lenkene flukter
	   når en tekst bryter over flere linjer. Ingen streker mellom kolonnene. */
	.sp-header .wp-block-navigation__container > .has-child.sp-prod > .wp-block-navigation__submenu-container {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: auto auto auto auto;
		column-gap: 40px;
		row-gap: 20px;
		width: min(920px, 100%) !important;
		padding: var(--wp--custom--space--48) !important;
		overflow: hidden !important;
	}

	.sp-header .sp-prod > .wp-block-navigation__submenu-container > li:not(.sp-prod__all):not(.sp-teaser) {
		display: grid;
		grid-row: 1 / span 3;
		grid-template-rows: subgrid;
		border: 0 !important;
	}

	.sp-header .sp-prod > .wp-block-navigation__submenu-container > li:not(.sp-prod__all):not(.sp-teaser) > .wp-block-navigation-item__content {
		display: grid !important;
		grid-row: 1 / span 3;
		grid-template-rows: subgrid;
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
	}

	.sp-header .sp-prod .wp-block-navigation-item__label { display: contents; }

	.sp-header .sp-prod .sp-prod__name {
		display: block;
		font-size: 22px;
		line-height: 28px;
		font-weight: 250;
		color: var(--sp-ink);
		transition: color 150ms ease;
	}

	.sp-header .sp-prod .sp-prod__desc { display: block; }
	.sp-header .sp-prod .sp-prod__tag { display: block; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-ink); }
	.sp-header .sp-prod .sp-prod__text { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 250; color: var(--sp-mute); }

	.sp-header .sp-prod .sp-prod__more {
		display: inline-flex;
		align-self: start;
		justify-self: start;
		align-items: center;
		gap: 6px;
		font-family: var(--sp-mono);
		font-size: 13px;
		line-height: 16px;
		font-weight: 250;
		letter-spacing: -0.05em;
		text-transform: none;
		color: var(--sp-ink);
		text-decoration: underline 1px var(--sp-line);
		text-underline-offset: 4px;
		transition: color 150ms, text-decoration-color 150ms;
	}
	/* Tekstlenke uten pil (Petter 2026-11-16). */
	.sp-header .sp-prod .sp-prod__more::after { display: none; }

	.sp-header .sp-prod .wp-block-navigation-item__content:hover .sp-prod__name { color: var(--sp-blue-dark); }
	.sp-header .sp-prod .wp-block-navigation-item__content:hover .sp-prod__more { color: var(--sp-blue-dark); text-decoration-color: var(--sp-blue-dark); }

	.sp-header .sp-prod > .wp-block-navigation__submenu-container > li.sp-prod__all {
		grid-column: 1 / 5; /* de fire produktkolonnene, ikke teaserfeltet */
		grid-row: 4;
		align-self: start;
		/* Streken 40 px under lenkene (rad-gap 20 + 20) og lenken 32 px under
		   streken, som prototypen (24 px luft og lenken midt i en 24 px
		   linje). Tegnes som bakgrunn i stedet for med margin, som WordPress
		   nullet ut her. */
		border: 0 !important;
		margin: 0 !important;
		padding: 52px 0 0 !important;
		background: linear-gradient(var(--sp-line), var(--sp-line)) 0 20px / 100% 1px no-repeat;
	}

	.sp-header .sp-prod > .wp-block-navigation__submenu-container > li.sp-prod__all > .wp-block-navigation-item__content {
		display: inline-flex !important;
		align-items: center;
		gap: 6px;
		margin: 0 !important;
		padding: 0 !important;
		font-family: var(--sp-mono);
		font-size: 13px;
		line-height: 16px;
		font-weight: 250;
		letter-spacing: -0.05em;
		text-transform: none;
		color: var(--sp-ink);
		text-decoration: underline 1px var(--sp-line);
		text-underline-offset: 4px;
		transition: color 150ms, text-decoration-color 150ms;
		background: none !important;
	}

	/* Tekstlenke uten pil (Petter 2026-11-16). */
	.sp-header .sp-prod > .wp-block-navigation__submenu-container > li.sp-prod__all > .wp-block-navigation-item__content::after { display: none; }

	.sp-header .sp-prod > .wp-block-navigation__submenu-container > li.sp-prod__all > .wp-block-navigation-item__content:hover { color: var(--sp-blue-dark); text-decoration-line: underline; text-decoration-color: var(--sp-blue-dark); }
}

/* Teaserfeltet til høyre i panelene (MenuTeaser i prototypen, Petter
   2026-11-10). Lages i inc/meny-teaser.php: «Siste prosjekt» i Tjenester,
   «Siste artikkel» i Produkter og Om oss. Vises fra 1280 px; da blir
   panelene 1220 px (Om oss 760 px) og feltet tar en egen kolonne på 260 px
   med strek til venstre. Feltets kolonne spenner over alle radene, og den
   siste raden (fotlinja, i Om oss en tom rad) er 1fr og tar opp
   høydeforskjellen, så radene til venstre står tett som før. */
.sp-header .sp-teaser { display: none !important; }

@media (min-width: 1280px) {
	.sp-header .sp-mega > .wp-block-navigation__submenu-container,
	.sp-header .wp-block-navigation__container > .has-child.sp-prod > .wp-block-navigation__submenu-container {
		width: min(1220px, 100%) !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) 260px;
	}
	.sp-header .sp-mega > .wp-block-navigation__submenu-container { grid-template-rows: auto 1fr; }
	.sp-header .wp-block-navigation__container > .has-child.sp-prod > .wp-block-navigation__submenu-container {
		grid-template-rows: auto auto auto 1fr; /* fotraden tar opp høydeforskjellen */
	}

	.sp-header .wp-block-navigation__container > .has-child.sp-panel > .wp-block-navigation__submenu-container {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 260px;
		grid-template-rows: auto auto auto auto auto auto 1fr;
		column-gap: 40px;
		width: min(760px, 100%) !important;
	}
	.sp-header .sp-panel > .wp-block-navigation__submenu-container > li:not(.sp-teaser) { grid-column: 1; }

	.sp-header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > li.sp-teaser {
		display: block !important;
		grid-column: -2 / -1;
		grid-row: 1 / -1;
		align-self: start;
		margin: 0 !important;
		padding: 0 0 0 40px !important;
		border: 0 !important;
		border-left: 1px solid var(--sp-line) !important;
		counter-increment: none;
	}
	.sp-header .sp-teaser aside { display: block; }

	.sp-header .sp-teaser__eyebrow {
		margin: 0 0 16px;
		font-family: var(--sp-mono);
		font-size: 11px;
		line-height: 16px;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--sp-mute);
	}

	.sp-header .sp-teaser .sp-teaser__link {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		color: var(--sp-ink);
		text-decoration: none;
		background: none !important;
	}

	.sp-header .sp-teaser__image {
		display: block;
		aspect-ratio: 4 / 3;
		border-radius: 5px;
		overflow: hidden;
		background: var(--sp-mist);
	}
	.sp-header .sp-teaser__image img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.sp-header .sp-teaser__title {
		display: block;
		margin-top: 16px;
		font-size: 16px;
		line-height: 22px;
		font-weight: 250;
		color: var(--sp-ink);
		transition: color 150ms ease;
	}

	.sp-header .sp-teaser__text {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		line-clamp: 3;
		overflow: hidden;
		margin-top: 8px;
		font-size: 14px;
		line-height: 20px;
		font-weight: 250;
		color: var(--sp-mute);
	}

	.sp-header .sp-teaser__more {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		margin-top: 16px;
		font-family: var(--sp-mono);
		font-size: 13px;
		line-height: 16px;
		font-weight: 250;
		letter-spacing: -0.05em;
		text-transform: none;
		color: var(--sp-ink);
		text-decoration: underline 1px var(--sp-line);
		text-underline-offset: 4px;
		transition: color 150ms, text-decoration-color 150ms;
	}
	/* Tekstlenke uten pil (Petter 2026-11-16). */
	.sp-header .sp-teaser__more::after { display: none; }

	.sp-header .sp-teaser__link:hover .sp-teaser__title { color: var(--sp-blue-dark); }
	.sp-header .sp-teaser__link:hover .sp-teaser__more { color: var(--sp-blue-dark); text-decoration-color: var(--sp-blue-dark); }
	.sp-header .sp-teaser__link:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 4px; border-radius: 5px; }
}

/* Innlogget: adminlinja tar 32 px øverst. Trekk den fra toppluften, så
   hero-teksten står på samme sted på skjermen som for besøkende. */
.admin-bar .sp-hero.wp-block-cover { padding-top: calc(104px - var(--wp-admin--admin-bar--height, 0px)); }
@media (min-width: 782px) {
	.admin-bar .sp-hero.wp-block-cover { padding-top: calc(112px - var(--wp-admin--admin-bar--height, 0px)); }
}

/* ==========================================================================
   Tjenestekategori (TjenesteKategori.tsx) – målt i 1440 px
   ========================================================================== */

.wp-block-post-content > .sp-cat-hero:first-child,
main.wp-block-group > .wp-block-post-content { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; }

/* Hero: blågrå flate, fast høyde fra 768 px som prototypen. På mobil uten
   minstehøyde og 32 px over og under (25.11). Verdiene i theme.json (custom.catHero). */
.sp-cat-hero {
	box-sizing: border-box;
	padding-top: var(--wp--custom--cat-hero--padding-y-mobile);
	padding-bottom: var(--wp--custom--cat-hero--padding-y-mobile);
}

@media (min-width: 768px) { .sp-cat-hero { padding-top: var(--wp--custom--cat-hero--padding-top); padding-bottom: var(--wp--custom--cat-hero--padding-bottom); } }

.sp-cat-hero > .alignwide > * { margin-block-start: 0 !important; }

.sp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px !important;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sp-breadcrumb a { color: var(--sp-mute); text-decoration: none; }
.sp-breadcrumb a:hover { color: var(--sp-blue-dark); text-decoration: none; }
.sp-breadcrumb__sep { color: var(--sp-line); }
.sp-breadcrumb strong { color: var(--sp-blue); font-weight: 500; }

.sp-cat-hero__title { max-width: 900px; margin: 0 0 32px !important; }

.sp-cat-hero__ingress {
	max-width: 720px;
	font-size: 22px;
	line-height: 30px;
	font-weight: 500;
	color: var(--sp-mute);
}

/* Forrige / neste kategori */
.sp-catnav { padding-top: 16px; }
@media (min-width: 768px) { .sp-catnav { padding-top: 20px; } }
.sp-catnav__row { gap: 24px !important; }
.sp-catnav__row > * { margin: 0 !important; }

.sp-catnav a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-blue);
	text-decoration: none;
}

.sp-catnav a:hover { color: var(--sp-blue-dark); text-decoration: none; }

.sp-catnav a::before,
.sp-catnav a::after {
	box-sizing: border-box;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	background:
		linear-gradient(var(--sp-ink), var(--sp-ink)) center / 0 0 no-repeat;
	transition: background-color 150ms ease, border-color 150ms ease;
}

/* Pilen tegnes med maske på et eget lag, så sirkelen kan ha kant */
.sp-catnav__prev a::before { content: ""; order: 2; }
.sp-catnav__next a::before { content: ""; order: 0; }
.sp-catnav a { position: relative; }
.sp-catnav a::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 0;
	border-radius: 0;
	background: var(--sp-ink);
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}
.sp-catnav__prev a::after { right: 12px; transform: scaleX(-1); }
.sp-catnav__next a::after { left: 12px; }
.sp-catnav a:hover::before { background-color: #fff; border-color: var(--sp-blue); }

/* «Det vi gjør» – 4/8 */
.sp-cat-services { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-cat-services { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }

@media (min-width: 782px) {
	.wp-block-columns.sp-split-4-8 {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 40px;
	}
	.wp-block-columns.sp-split-4-8 > .wp-block-column:first-child { grid-column: span 4; }
	.wp-block-columns.sp-split-4-8 > .wp-block-column:last-child { grid-column: span 8; }
}

.sp-split-4-8 .wp-block-column > * { margin-block-start: 0; }

.sp-cat-services__prose {
	margin-top: 24px !important;
	max-width: 40ch;
	font-size: 18px;
	line-height: 28px;
	font-weight: 500;
	color: var(--sp-mute);
}
.sp-cat-services__prose > * { margin: 0; }
.sp-cat-services__prose > * + * { margin-top: 28px !important; }
.sp-cat-services__more { margin-top: 24px !important; }

/* Nummerert tjenesteliste – hele raden er klikkbar */
.sp-svc-list > * { margin: 0 !important; }
.sp-svc-list > .sp-svc-row + .sp-svc-row { border-top: 1px solid var(--sp-line); }

.sp-svc-row {
	position: relative;
	display: flex !important;
	align-items: baseline;
	gap: 24px;
	padding: 24px 12px;
	margin: 0 -12px !important;
	transition: background-color 150ms ease;
}

.sp-svc-row > * { margin: 0 !important; }

.sp-svc-row:has(a):hover { background: var(--sp-mist); }

.sp-svc-row__num {
	flex: none;
	width: 32px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: var(--sp-mute);
}

.sp-svc-row__body { flex: 1; min-width: 0; }
.sp-svc-row__body > * { margin: 0; }

.sp-svc-row__title { font-size: var(--wp--preset--font-size--h-3); line-height: 36px; }
.sp-svc-row__title a { color: inherit; text-decoration: none; transition: color 150ms ease; }
.sp-svc-row__title a::after { content: ""; position: absolute; inset: 0; }
.sp-svc-row:hover .sp-svc-row__title a { color: var(--sp-blue); }
.sp-svc-row__title a:focus-visible { outline: none; }
.sp-svc-row:has(a:focus-visible) { outline: 2px solid var(--sp-blue); outline-offset: -2px; }

.sp-svc-row__teaser {
	margin-top: 8px !important;
	max-width: 60ch;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	color: var(--sp-mute);
}

/* Pil til høyre, midtstilt */
.sp-svc-row:has(a)::after {
	content: "";
	flex: none;
	align-self: center;
	width: 18px;
	height: 18px;
	background: var(--sp-mute);
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
	transition: transform 150ms ease, background-color 150ms ease;
}

.sp-svc-row:has(a):hover::after { background: var(--sp-blue); transform: translateX(4px); }

/* CTA-bjelke (8/4) */
.sp-cta-band { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-cta-band { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-cta-band__row { gap: 40px !important; }
.sp-cta-band__row > * { margin: 0 !important; }

/* Neste fagområde */
.sp-next-cat { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
@media (min-width: 768px) { .sp-next-cat { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); } }
.sp-next-cat__link { position: relative; }
.sp-next-cat__link > * { margin: 0 !important; }
.sp-next-cat__link h2 a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
	transition: color 150ms ease;
}
.sp-next-cat__link h2 a::before { content: ""; position: absolute; inset: 0; }
.sp-next-cat__link h2 a::after {
	content: "";
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
	transition: transform 150ms ease;
}
.sp-next-cat__link:hover h2 a { color: var(--sp-blue); }
.sp-next-cat__link:hover h2 a::after { transform: translateX(4px); }
.sp-next-cat__link p {
	margin-top: 12px !important;
	font-size: 18px;
	line-height: 28px;
	font-weight: 500;
	color: var(--sp-mute);
}

/* Bildekollasj kant til kant, 3:4 */
.sp-collage {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 !important;
}
@media (min-width: 768px) { .sp-collage { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-collage > .wp-block-image { margin: 0 !important; overflow: hidden; }
.sp-collage > .wp-block-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; display: block; }

/* Justert etter måling mot prototypen */
@media (min-width: 768px) {
	.sp-cat-hero { height: var(--wp--custom--cat-hero--height); min-height: 0; overflow: hidden; }
}

.sp-catnav__row > p { display: flex; line-height: 0; }
.sp-catnav a { line-height: 16px; }

/* Strekene mellom radene følger lista (ikke hover-flaten, som går 12 px ut) */
.sp-svc-list > .sp-svc-row + .sp-svc-row { border-top: 0; }
.sp-svc-list > .sp-svc-row + .sp-svc-row::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12px;
	right: 12px;
	border-top: 1px solid var(--sp-line);
}
.sp-svc-list > .sp-svc-row + .sp-svc-row { padding-top: 25px; }

/* ==========================================================================
   Tjenester – oversikt (Tjenester.tsx) – målt i 1440 px
   ========================================================================== */

:root {
	--sp-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
	--sp-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
	--sp-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	--sp-yellow-light: #FFE27A;
	--sp-green: var(--wp--preset--color--green);
}

/* 6/6-deling, gap 40 / 64 fra lg */
@media (min-width: 1024px) {
	.wp-block-columns.sp-split-6-6 {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 64px;
		align-items: center;
	}
	.wp-block-columns.sp-split-6-6 > .wp-block-column { grid-column: span 6; }
}
@media (max-width: 1023px) {
	.wp-block-columns.sp-split-6-6 { flex-wrap: wrap !important; gap: 40px; }
	.wp-block-columns.sp-split-6-6 > .wp-block-column { flex-basis: 100% !important; }
}
.sp-split-6-6 .wp-block-column > * { margin-block-start: 0; }

.sp-tj-hero { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
@media (min-width: 768px) { .sp-tj-hero { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-tj-hero__eyebrow { margin-bottom: 24px !important; }
.sp-tj-hero__title { margin: 0 0 28px !important; }
@media (max-width: 767px) { .sp-tj-hero__title { text-wrap: balance; } .sp-tj-hero__title br { display: none; } }
.sp-tj-hero__intro { max-width: 52ch; font-size: 20px; line-height: 30px; color: var(--sp-mute); }
.sp-tj-hero__cta { margin-top: var(--wp--custom--space--48) !important; }
.sp-btn-24 > .wp-block-button__link { padding: 0 24px; height: 46px; box-sizing: border-box; }
.sp-tj-hero__image { margin: 0; overflow: hidden; border-radius: 5px; }
.sp-tj-hero__image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
@media (min-width: 1024px) { .sp-tj-hero__image img { aspect-ratio: 1 / 1; } }

/* --- Reisen: klebrig kart + fasene --- */
.sp-journey { padding-top: var(--wp--custom--space--48); padding-bottom: var(--wp--custom--space--80); overflow-x: clip; }
@media (min-width: 768px) { .sp-journey { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--112); } }
.sp-journey > * { margin-block-start: 0 !important; }

.sp-journey__map {
	position: sticky;
	top: calc(96px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 10;
	margin: 0 calc(-1 * var(--wp--custom--gutter)) 64px !important;
	padding: 0 var(--wp--custom--gutter);
	max-width: none !important;
	background: var(--sp-paper);
}

.sp-journey__inner { max-width: 88rem; margin: 0 auto; padding: 12px 0 16px; }
@media (min-width: 768px) { .sp-journey__inner { padding: 20px 0 24px; } }

.sp-journey__eyebrow {
	display: none;
	margin: 0 0 20px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-blue);
}
@media (min-width: 768px) { .sp-journey__eyebrow { display: block; } }

.sp-journey__track { position: relative; }
.sp-journey__line,
.sp-journey__progress {
	position: absolute;
	left: 0;
	right: 0;
	top: 11px;
	height: 1px;
	background: var(--sp-line);
}
.sp-journey__progress { background: var(--wp--preset--color--orange); transform-origin: left; transform: scaleX(0); }

/* Fire like spalter på alle bredder, så punktene fordeles over hele
   bredden også på mobil (avvik: prototypen har en tett, scrollbar rad). */
.sp-journey__stops {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	padding: 0;
	margin: 0;
	list-style: none;
	overflow: visible;
}

.sp-journey__stops li { flex-shrink: 0; margin: 0; }

.sp-journey__stop {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
}
@media (min-width: 768px) { .sp-journey__stop { gap: 8px; } }
.sp-journey__stop:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 4px; border-radius: 4px; }

.sp-journey__dot { position: relative; display: flex; align-items: center; width: 22px; height: 22px; }
.sp-journey__dot::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	background: var(--sp-line);
	transition: all 300ms ease;
}
.sp-journey__stop:hover .sp-journey__dot::before { background: rgba(0, 102, 242, 0.4); }
.sp-journey__stop.is-active .sp-journey__dot::before {
	width: 22px;
	height: 22px;
	background: var(--sp-blue);
	box-shadow: 0 0 0 4px rgba(0, 102, 242, 0.15);
}

.sp-journey__num {
	display: none;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
	color: var(--sp-mute);
	transition: color 150ms ease;
}
@media (min-width: 768px) { .sp-journey__num { display: block; } }

.sp-journey__label {
	white-space: nowrap;
	font-size: 16px;
	line-height: 22px;
	font-weight: 250;
	color: var(--sp-mute);
	transition: color 150ms ease;
}
@media (min-width: 768px) { .sp-journey__label { font-size: 18px; line-height: 24px; } }
.sp-journey__stop.is-active .sp-journey__num { color: var(--sp-blue); }
.sp-journey__stop.is-active .sp-journey__label { color: var(--sp-ink); }

/* Fasene: bilde 4 kolonner, tekst 7, én kolonne luft, sikksakk */
.sp-phases > * { margin: 0 !important; }
.sp-phases > .sp-phase + .sp-phase { margin-top: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-phases > .sp-phase + .sp-phase { margin-top: 40px !important; } }

.sp-phase { display: grid !important; gap: 24px; align-items: start; }
.sp-phase > * { margin: 0 !important; }
@media (min-width: 768px) {
	.sp-phase { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; }
	.sp-phase > * { grid-row: 1; }
	.sp-phase--left .sp-phase__figure { grid-column: 1 / span 4; }
	.sp-phase--left .sp-phase__text { grid-column: 6 / span 7; }
	.sp-phase--right .sp-phase__figure { grid-column: 9 / span 4; }
	.sp-phase--right .sp-phase__text { grid-column: 1 / span 7; }
	.sp-phase__text { padding-top: 78px; }
}

.sp-phase__figure { position: relative; aspect-ratio: 1 / 1; }
.sp-phase__figure--tall { aspect-ratio: 383 / 542; }
.sp-phase__figure > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 5px;
	background: #fff;
}
.sp-phase__figure > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* Tittelen: én blå blokk per linje, 36 px høye med 4 px mellom */
.sp-phase__title {
	position: absolute;
	left: -10px;
	bottom: 40px;
	margin: 0 !important;
	font-size: var(--wp--preset--font-size--h-3);
	line-height: 40px;
	color: var(--sp-paper);
	will-change: transform;
	pointer-events: none;
}
.sp-phase__title span {
	background: var(--sp-blue);
	padding: 2px 24px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	white-space: nowrap;
}

.sp-phase__section + .sp-phase__section { margin-top: var(--wp--custom--space--48) !important; }
.sp-phase__section > * { margin: 0; }
.sp-phase__section > p:not(.sp-phase__label) { max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-phase__section > p + p { margin-top: 14px !important; }
.sp-phase__label { margin-bottom: 16px !important; }
.sp-phase__label + p { margin-top: 0 !important; }
.sp-phase__list {
	margin: 16px 0 0 !important;
	padding-left: 20px !important;
	list-style: disc;
	max-width: 65ch;
	font-size: 16px;
	line-height: 22px;
	font-weight: 250;
}
.sp-phase__list > li + li { margin-top: 6px; }

/* --- Leveransematrise (mørk) --- */
.sp-matrix-section { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-matrix-section { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-matrix-section > * { margin-block-start: 0 !important; }
.sp-matrix { font-family: var(--sp-mono); color: var(--sp-paper); }
.sp-matrix > * { margin: 0 !important; }

.sp-matrix__head { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); gap: 16px !important; }
.sp-matrix__head > * { margin: 0 !important; }
.sp-matrix__title {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(249, 249, 249, 0.9);
}
.sp-matrix__title::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: var(--sp-yellow-light);
	box-shadow: 0 0 0 0 rgba(255, 226, 122, 0.75);
	animation: sp-live 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes sp-live {
	0% { box-shadow: 0 0 0 0 rgba(255, 226, 122, 0.75); }
	75%, 100% { box-shadow: 0 0 0 5px rgba(255, 226, 122, 0); }
}
.sp-matrix__count { font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; color: rgba(249, 249, 249, 0.6); }

.sp-matrix__cells { display: grid !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sp-matrix__cells > * { margin: 0 !important; }
@media (min-width: 640px) { .sp-matrix__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-matrix__cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sp-matrix__cell { padding: 24px; }
@media (min-width: 768px) { .sp-matrix__cell { padding: 28px; } }
.sp-matrix__cell > * { margin: 0; }
.sp-matrix__cell + .sp-matrix__cell { border-top: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 640px) {
	.sp-matrix__cell + .sp-matrix__cell { border-top: 0; }
	.sp-matrix__cell:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.1); }
	.sp-matrix__cell:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (min-width: 1024px) {
	.sp-matrix__cell + .sp-matrix__cell { border-left: 1px solid rgba(255, 255, 255, 0.1); }
	.sp-matrix__cell:nth-child(n+3) { border-top: 0; }
}

.sp-matrix__label {
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(249, 249, 249, 0.5);
}
.sp-matrix__cell > .sp-matrix__label:first-child { margin-bottom: 12px !important; }
.sp-matrix__label--sub { margin: 12px 0 24px !important; }

.sp-matrix__num {
	font-size: 36px;
	line-height: 1;
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	color: var(--sp-yellow-light);
}
@media (min-width: 768px) { .sp-matrix__num { font-size: 48px; } }

.sp-matrix__list { list-style: none; margin: 0 !important; padding: 0 !important; font-size: 12px; line-height: 18px; }
.sp-matrix__list > li { padding: 10px 0; margin: 0; color: rgba(249, 249, 249, 0.9); }
.sp-matrix__list > li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.sp-matrix__info { padding: 24px 0; }
@media (min-width: 768px) { .sp-matrix__info { padding: 28px 0; } }
.sp-matrix__info > * { margin: 0 !important; }
.sp-matrix__info > .sp-matrix__label { margin-bottom: 16px !important; }
.sp-matrix__info-row {
	display: grid !important;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 4px 16px;
	align-items: center;
	padding: 10px 0;
	font-size: 12px;
	line-height: 18px;
	font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) { .sp-matrix__info-row { grid-template-columns: 100px minmax(0, 1fr) auto; } }
.sp-matrix__info-row > * { margin: 0 !important; }
.sp-matrix__info-label { color: rgba(249, 249, 249, 0.4); }
.sp-matrix__info-text { color: rgba(249, 249, 249, 0.9); }
.sp-matrix__info-status { grid-column: 2; font-size: 11px; color: var(--sp-green); }
@media (min-width: 640px) { .sp-matrix__info-status { grid-column: auto; } }

/* --- Fire fagområder --- */
.sp-cats { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-cats { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-cats > * { margin-block-start: 0 !important; }
.sp-cats__head { margin-bottom: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-cats__head { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-cats__head > * { max-width: 48rem; margin: 0; }
.sp-cats__intro { margin-top: 24px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 500; color: var(--sp-mute); }

.sp-cats__grid { display: grid !important; gap: 24px; }
@media (min-width: 640px) { .sp-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .sp-cats__grid { gap: 32px; } }
@media (min-width: 1024px) { .sp-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-cats__grid > * { margin: 0 !important; }

.sp-catcard { position: relative; }
.sp-catcard > * { margin: 0; }
.sp-catcard .wp-block-image { margin: 0 0 20px !important; }
.sp-catcard .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sp-catcard:hover .wp-block-image img { transform: scale(1.025); }
.sp-catcard__num { margin-bottom: 8px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; color: var(--sp-mute); }
.sp-catcard__title { margin: 0 0 8px !important; font-size: var(--wp--preset--font-size--h-3); line-height: 36px; }
.sp-catcard__title a { color: inherit; text-decoration: none; transition: color 150ms ease; }
.sp-catcard__title a::after { content: ""; position: absolute; inset: 0; }
.sp-catcard:hover .sp-catcard__title a { color: var(--sp-blue); }
.sp-catcard__text { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--sp-mute); }

/* --- Kundesitat (CustomerQuote) --- */
.sp-quote { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-quote { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-quote > * { margin-block-start: 0 !important; }
.sp-quote__inner { max-width: 900px; }
.sp-quote__inner > * { margin: 0 !important; }
.sp-quote__person { margin-bottom: 40px !important; }
.sp-quote__person .sp-person__name { color: var(--sp-ink); }
.sp-avatar--80 { margin: 0; flex: none; }
.sp-avatar--80 img { width: 80px !important; height: 80px !important; border-radius: 9999px !important; object-fit: cover; }
.sp-quote__heading { margin-bottom: 28px !important; }
.sp-quote__text { font-size: 24px; line-height: 32px; font-weight: 250; }

/* --- Spørsmål vi ofte får --- */
.sp-faq { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-faq { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-faq > * { margin-block-start: 0 !important; }
.sp-faq__heading { margin-bottom: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-faq__heading { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-faq__grid { display: grid !important; gap: 40px; }
@media (min-width: 768px) { .sp-faq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-faq__grid > * { margin: 0 !important; }
.sp-faq__item > * { margin: 0; }
.sp-faq__q { max-width: 40ch; margin-bottom: 12px !important; font-size: 24px; line-height: 30px; }
.sp-faq__a { max-width: 60ch; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--sp-mute); }

/* --- Kontaktskjema (ContactForm) --- */
.sp-contact { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
@media (min-width: 768px) { .sp-contact { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-contact > * { margin-block-start: 0 !important; }

@media (min-width: 782px) {
	.wp-block-columns.sp-split-8-4 {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 40px;
		align-items: start;
	}
	.wp-block-columns.sp-split-8-4 > .wp-block-column:first-child { grid-column: span 7; }
	.wp-block-columns.sp-split-8-4 > .wp-block-column:last-child { grid-column: span 5; }
}
@media (min-width: 1024px) {
	.wp-block-columns.sp-split-8-4 > .wp-block-column:first-child { grid-column: span 8; }
	.wp-block-columns.sp-split-8-4 > .wp-block-column:last-child { grid-column: span 4; }
}
.sp-split-8-4 .wp-block-column > * { margin-block-start: 0; }

.sp-contact__intro { margin: 20px 0 32px !important; font-size: 18px; line-height: 28px; font-weight: 250; }

.sp-contact__form { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .sp-contact__form { gap: 24px; } }
.sp-contact__form > * { margin: 0; }
.sp-contact__required { font-size: 14px; font-weight: 250; color: var(--sp-mute); }
.sp-contact__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .sp-contact__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-contact__form label { display: block; }

.sp-contact__label {
	display: block;
	margin: 0 0 8px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-ink);
}

.sp-contact__form input[type="text"],
.sp-contact__form input[type="email"],
.sp-contact__form input[type="tel"],
.sp-contact__form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--sp-line);
	border-radius: 5px;
	background: #fff;
	font-family: var(--wp--preset--font-family--lausanne);
	font-size: 18px;
	line-height: 28px;
	font-weight: 250;
	color: var(--sp-ink);
	outline: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.sp-contact__form textarea { resize: vertical; display: block; }
.sp-contact__form input::placeholder,
.sp-contact__form textarea::placeholder { color: var(--sp-ink); opacity: 1; }
.sp-contact__form input:focus,
.sp-contact__form textarea:focus { border-color: var(--sp-blue); box-shadow: 0 0 0 2px rgba(0, 102, 242, 0.2); }

.sp-contact__consent { display: flex !important; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; }
.sp-contact__consent input { flex: none; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--sp-blue); }

.sp-contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; font-size: 14px; font-weight: 250; }
.sp-contact__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 28px;
	border: 0;
	border-radius: 9999px;
	background: var(--sp-blue);
	color: #fff;
	font-family: var(--wp--preset--font-family--lausanne);
	font-size: 14px;
	font-weight: 250;
	cursor: pointer;
	transition: background-color 150ms ease;
}
.sp-contact__submit::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}
.sp-contact__submit:hover { background: var(--sp-blue-dark); }
.sp-contact__submit:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 3px; }

.sp-contact__card { padding: 28px; border: 1px solid var(--sp-line); border-radius: 5px; background: #fff; }
@media (min-width: 768px) { .sp-contact__card { position: sticky; top: calc(112px + var(--wp-admin--admin-bar--height, 0px)); } }
.sp-contact__card > * { margin: 0 !important; }
.sp-contact__item { position: relative; padding-left: 28px; }
.sp-contact__item + .sp-contact__item { margin-top: 20px !important; }
.sp-contact__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 16px;
	height: 16px;
	background: var(--sp-blue);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}
.sp-contact__item--phone::before { -webkit-mask-image: var(--sp-icon-phone); mask-image: var(--sp-icon-phone); }
.sp-contact__item--mail::before { -webkit-mask-image: var(--sp-icon-mail); mask-image: var(--sp-icon-mail); }
.sp-contact__item--pin::before { -webkit-mask-image: var(--sp-icon-pin); mask-image: var(--sp-icon-pin); }
.sp-contact__item > * { margin: 0 !important; }
.sp-contact__item .sp-contact__label { margin-bottom: 4px !important; }
.sp-contact__value { font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-contact__value a { color: var(--sp-ink); text-decoration: none; }
.sp-contact__value a:hover { color: var(--sp-blue-dark); text-decoration: none; }
.sp-contact__reply { margin-top: 28px !important; padding-top: 24px; border-top: 1px solid var(--sp-line); }
.sp-contact__reply > * { margin: 0 !important; }
.sp-contact__reply .sp-contact__label { margin-bottom: 8px !important; }
.sp-contact__small { font-size: 16px; line-height: 22px; font-weight: 250; }

/* Skjema: linjehøyder som prototypen (Tailwind: 11px → 16.5, 14px → 21,
   tekstfeltet står på en tekstlinje og får 7 px luft under) */
.sp-contact__label { line-height: 16.5px; }
.sp-contact__required { line-height: 21px; }
.sp-contact__form textarea { display: inline-block; vertical-align: baseline; }
.sp-contact__form label:not(.sp-contact__consent) { font-size: 16px; line-height: 24px; }

/* Utsnitt per fasebilde (som prototypen) */
.sp-phase--01 .sp-phase__figure img { object-position: 72% 100%; }
.sp-phase--02 .sp-phase__figure img { object-position: 50% 40%; }
.sp-phase--03 .sp-phase__figure img { object-position: 38% 50%; }
.sp-phase--04 .sp-phase__figure img { object-position: 78% 50%; }
.sp-js .sp-delay-100 > * { --sp-delay: 100ms; }
.sp-matrix__rows > * { margin: 0 !important; }

/* ==========================================================================
   Tjenestedetalj (TjenesteDetalj.tsx) – målt i 1440 px
   Seksjonene er en fullbredde-gruppe med én wide-boks inni. Boksen bærer
   luften (py 80/112) og eventuell divider på innholdsbredden (.sp-sd--div),
   som prototypen: skille én gang – fargeskifte eller én strek.
   ========================================================================== */

.sp-sd > *,
.sp-cases > *,
.sp-andre > *,
.sp-sd-hero > * { margin-block-start: 0 !important; }

.sp-sd > .alignwide { box-sizing: border-box; padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-sd > .alignwide { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-sd--div > .alignwide:first-child,
.sp-cases--div > .alignwide:first-child { border-top: 1px solid var(--sp-line); }
.sp-sd--model > .alignwide { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
@media (min-width: 768px) { .sp-sd--model > .alignwide { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-sd--cta > .alignwide { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .sp-sd--cta > .alignwide { padding-top: var(--wp--custom--space--48); padding-bottom: var(--wp--custom--space--48); } }

.sp-sd .wp-block-column > *,
.sp-sd .wp-block-group > * { margin-block-start: 0; }

.sp-sd-eyebrow { margin-bottom: 12px !important; }

/* Tekst i seksjonene: body 18/28 i husvekten */
.sp-sd h3 { font-size: var(--wp--preset--font-size--h-3); line-height: 36px; }

/* --- Hero (6/6, gap 40) --- */
.sp-sd-hero { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
@media (min-width: 768px) { .sp-sd-hero { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
@media (min-width: 1024px) { .wp-block-columns.sp-sd-hero__grid { gap: 40px; } }
@media (max-width: 1023px) { .wp-block-columns.sp-sd-hero__grid { gap: 40px; } }
.sp-sd-hero__crumbs { margin-bottom: 32px !important; }
.sp-sd-hero__crumbs strong { font-weight: 400; }
.sp-sd-hero__title { margin: 0 0 28px !important; }
@media (max-width: 767px) { .sp-sd-hero__title { text-wrap: balance; } .sp-sd-hero__title br { display: none; } }
.sp-sd-hero__intro { max-width: 52ch; margin: 0 !important; font-size: 20px; line-height: 30px; font-weight: 250; color: var(--sp-mute); }
.sp-sd-hero__cta { margin-top: var(--wp--custom--space--48) !important; }
.sp-sd-hero__line { margin-top: 20px !important; }
.sp-sd-hero__image { margin: 0 !important; overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); }
.sp-sd-hero__image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 70% 50%; }
@media (min-width: 1024px) { .sp-sd-hero__image img { aspect-ratio: 4 / 3; object-position: 50% 50%; } }

/* Heroen tones inn ved lasting (animate, ikke inView) */
@keyframes sp-load-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sp-load-fade { from { opacity: 0; } to { opacity: 1; } }
.sp-js .sp-load { animation: sp-load-up 500ms var(--sp-ease) both; }
.sp-js .sp-load.sp-load-fade { animation-name: sp-load-fade; }
.sp-js .sp-load-50 { animation-delay: 50ms; }
.sp-js .sp-load-100 { animation-delay: 100ms; }
.sp-js .sp-load-150 { animation-delay: 150ms; }
.sp-js .sp-load-600 { animation-duration: 600ms; }
.editor-styles-wrapper .sp-load { animation: none !important; }

/* --- CTA-rad: pille + kontaktlinje --- */
.sp-cta-row { gap: 16px 32px !important; }
.sp-cta-row > * { margin: 0 !important; }
.sp-cta-row .wp-block-buttons { margin: 0; }

.sp-contactline {
	margin: 0;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-mute);
}
.sp-contactline a {
	display: inline-block;
	padding: 6px 0;
	margin: -6px 0;
	color: var(--sp-ink);
	text-decoration: none;
	transition: color 150ms ease;
}
.sp-contactline a:hover { color: var(--sp-blue-dark); text-decoration: none; }
.sp-contactline .sp-contactline__mail { text-transform: none; letter-spacing: normal; }
.sp-contactline__sep { margin: 0 12px; color: var(--sp-line); }

/* --- «Hva du får» – 4/8, klebrig venstre kolonne --- */
@media (min-width: 782px) {
	.sp-sd-sticky { position: sticky; top: calc(112px + var(--wp-admin--admin-bar--height, 0px)); align-self: start; }
}
.sp-sd-lev__image { display: none; margin: 40px 0 0 !important; }
@media (min-width: 768px) { .sp-sd-lev__image { display: block; } }
.sp-sd-lev__image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: 5px; }

/* Nummererte rader: tallet er en teller, så radene kan redigeres fritt */
.sp-rows { counter-reset: sp-row; }
.sp-rows > * { margin: 0 !important; }
.sp-rows > .sp-row + .sp-row { border-top: 1px solid var(--sp-line); }
.sp-row {
	counter-increment: sp-row;
	position: relative;
	padding: var(--wp--custom--space--24) 0 var(--wp--custom--space--24) var(--wp--custom--space--56);
}
.sp-row::before {
	content: counter(sp-row);
	position: absolute;
	left: 0;
	top: 34px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
	color: var(--sp-mute);
}
.sp-row > * { margin: 0 !important; }
.sp-row > p:not(.is-style-mono-link) { margin-top: 8px !important; max-width: 60ch; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
.sp-row > .is-style-mono-link { margin-top: 12px !important; }

/* Nummerert liste (fit, tilbud) */
.wp-block-list.sp-numlist { list-style: none; margin: 0; padding: 0; counter-reset: sp-num; }
.sp-numlist > li {
	counter-increment: sp-num;
	display: flex;
	align-items: baseline;
	gap: 24px;
	margin: 0;
	padding: 20px 0;
}
.sp-numlist > li + li { border-top: 1px solid var(--sp-line); }
.sp-numlist > li::before {
	content: counter(sp-num);
	flex: none;
	width: 32px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
	color: var(--sp-mute);
}

.sp-fit > li { font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-ink); }
.sp-fit-not {
	position: relative;
	margin: 0 !important;
	padding: var(--wp--custom--space--20) 0 var(--wp--custom--space--20) var(--wp--custom--space--56);
	border-top: 1px solid var(--sp-line);
	font-size: 16px;
	line-height: 22px;
	font-weight: 250;
	color: var(--sp-mute);
}
.sp-fit-not::before {
	content: "–";
	position: absolute;
	left: 0;
	top: 23px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
}
.sp-fit-not { max-width: calc(60ch + 56px); }
.sp-fit-not strong {
	margin-right: 12px;
	font-family: var(--sp-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 400;
}

/* --- Innsiktsmodellen (ModelBreak på paper) --- */
.sp-model__eyebrow { margin-bottom: 12px !important; }
.sp-model__title { font-size: var(--wp--preset--font-size--h-3); line-height: 36px; margin: 0 !important; }
@media (max-width: 767px) { .sp-model__title br { display: none; } }
.sp-model__body { max-width: 40ch; margin-top: 20px !important; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
.sp-model__status {
	margin-top: 24px !important;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: var(--sp-mute);
}
@media (min-width: 768px) { .sp-model__status { margin-top: 32px !important; } }
.sp-insight svg { display: block; width: 100%; height: auto; }
.sp-model__figure > * { margin: 0 !important; }
/* Mobil: tekst → modell → status */
@media (max-width: 781px) {
	.wp-block-columns.sp-model { display: flex !important; flex-direction: column; gap: 0; }
	.sp-model > .sp-model__text { display: contents; }
	.sp-model__text > * { order: 0; }
	.sp-model > .sp-model__figure { order: 1; margin: 32px calc(-1 * var(--wp--custom--gutter)) 0; width: auto; }
	.sp-model__text > .sp-model__status { order: 2; }
}

/* --- Prosjekter: overskrift på innholdsbredden, bilderekke kant til kant --- */
.sp-cases { padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-cases { padding-bottom: var(--wp--custom--space--112); } }
.sp-cases__head {
	gap: 24px !important;
	padding-top: var(--wp--custom--space--80);
	margin-bottom: var(--wp--custom--space--48) !important;
	border-top: 1px solid var(--sp-line);
}
@media (min-width: 768px) { .sp-cases__head { padding-top: var(--wp--custom--space--112); margin-bottom: var(--wp--custom--space--56) !important; } }
.sp-cases__head > * { margin: 0 !important; }
.sp-cases__head h2 { max-width: 600px; }
.sp-cases__head .is-style-mono-link { flex: none; padding-bottom: 4px; }

.sp-deliv {
	display: flex !important;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--wp--custom--gutter);
	padding-inline: var(--wp--custom--gutter);
	scrollbar-width: none;
}
.sp-deliv::-webkit-scrollbar { display: none; }
.sp-deliv > .wp-block-image { flex: none; margin: 0 !important; scroll-snap-align: start; }
.sp-deliv > .wp-block-image a { display: block; overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); }
.sp-deliv img {
	display: block;
	height: 380px !important;
	width: auto !important;
	max-width: 88vw !important;
	object-fit: cover;
	border-radius: 0;
	-webkit-user-drag: none;
}
@media (min-width: 768px) { .sp-deliv img { height: 520px !important; max-width: 80vw !important; } }
@media (min-width: 1024px) { .sp-deliv img { height: 560px !important; } }
.sp-deliv figcaption {
	margin: 12px 0 0 !important;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: left;
	color: var(--sp-mute);
}
.sp-deliv figcaption strong { font-weight: 400; color: var(--sp-ink); transition: color 150ms ease; }
.sp-deliv .wp-block-image:has(a:hover) figcaption strong { color: var(--sp-blue); }
.sp-js .sp-reveal-each.sp-fade > *,
.sp-js .sp-reveal.sp-fade { transform: none; }
.sp-js .sp-step-0 > * { --sp-step: 0ms; }
.sp-js .sp-step-100 > * { --sp-step: 100ms; }

.sp-deliv__nav { display: none; justify-content: flex-end; gap: 12px; margin: 32px 0 0 !important; }
@media (min-width: 768px) { .sp-deliv__nav { display: flex; } }
.sp-deliv__btn {
	position: relative;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	background: transparent;
	color: var(--sp-ink);
	cursor: pointer;
	transition: border-color 150ms ease, color 150ms ease;
}
.sp-deliv__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}
.sp-deliv__btn--prev::after { transform: scaleX(-1); }
.sp-deliv__btn:hover { border-color: var(--sp-blue); color: var(--sp-blue); }
.sp-deliv__btn:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }

/* --- Slik jobber vi (grå) --- */
.sp-gw > * { margin: 0 !important; }
.sp-gw__heading { max-width: 48rem; margin-bottom: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-gw__heading { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-gw__grid { display: grid !important; gap: 40px; }
@media (min-width: 768px) { .sp-gw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-gw__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-gw__grid > * { margin: 0 !important; }
.sp-gw__item > * { margin: 0 !important; }
.sp-gw__item > p:not(.is-style-mono-link) { margin-top: 12px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-gw__item > .is-style-mono-link { margin-top: 12px !important; }

/* --- Sitat med rundt portrett --- */
.sp-sd-quote { display: grid !important; gap: 40px; align-items: center; }
@media (min-width: 768px) {
	.sp-sd-quote { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.sp-sd-quote__portrait { grid-column: span 3; }
	.sp-sd-quote__text { grid-column: 5 / span 8; }
}
.sp-sd-quote > * { margin: 0 !important; }
.sp-sd-quote__portrait { max-width: 232px; overflow: hidden; border-radius: 9999px; background: var(--wp--preset--color--surface-3); }
@media (min-width: 768px) { .sp-sd-quote__portrait { max-width: none; } }
.sp-sd-quote__portrait img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9999px; }
.wp-block-quote.sp-sd-quote__text { margin: 0; padding: 0; border: 0; }
.sp-sd-quote__text p {
	max-width: 40ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--h-3);
	line-height: 36px;
	font-weight: 250;
	font-style: normal;
	text-wrap: balance;
}
.sp-sd-quote__text cite {
	display: block;
	margin-top: 24px;
	font-size: 16px;
	line-height: 22px;
	font-weight: 250;
	font-style: normal;
	color: var(--sp-ink);
}
.sp-sd-quote__text cite .sp-mute { color: var(--sp-mute); }
.sp-js .sp-reveal.sp-up-12 { transform: translateY(12px); }
.sp-js .sp-reveal.sp-up-12.is-visible { transform: none; }
.sp-js .sp-reveal.sp-delay-100 { --sp-delay: 100ms; }

/* --- Tilbud --- */
.sp-offer__body { max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.wp-block-list.sp-offer__points { max-width: 65ch; margin-top: 32px !important; }
.sp-offer__points > li { padding: 16px 0; font-size: 16px; line-height: 22px; font-weight: 250; }
.sp-offer__note { margin-top: 24px !important; line-height: 16.5px; }
.sp-offer__cta { margin-top: 40px !important; }

/* --- Reisekart (JourneyMap, full + markør) --- */
.sp-sd-journey > * { margin: 0 !important; }
.sp-sd-journey__heading { margin-bottom: var(--wp--custom--space--48) !important; }
@media (min-width: 768px) { .sp-sd-journey__heading { margin-bottom: var(--wp--custom--space--64) !important; } }

.sp-jmap__steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) { .sp-jmap__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; } }
.sp-jmap__steps > li { position: relative; margin: 0; border-top: 2px solid var(--sp-line); transition: border-color 300ms ease; }
.sp-jmap__steps > li.is-here { border-top-color: var(--sp-blue); }
.sp-jmap__steps button {
	display: block;
	width: 100%;
	padding: 24px 24px 0 0;
	border: 0;
	background: none;
	text-align: left;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.sp-jmap__steps button:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 4px; }
.sp-jmap__node {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border: 2px solid var(--sp-line);
	border-radius: 9999px;
	background: var(--sp-paper);
	transform: translateY(-50%);
	transition: border-color 150ms ease;
}
.sp-jmap__steps button:hover .sp-jmap__node { border-color: var(--sp-mute); }
.is-here .sp-jmap__node { width: 16px; height: 16px; border: 0; background: var(--sp-blue); }
.is-here .sp-jmap__node::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(85, 158, 255, 0.7);
	animation: sp-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.sp-jmap__num {
	display: block;
	font-family: var(--sp-mono);
	font-size: clamp(40px, 4.5vw, 56px);
	line-height: 1;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	color: var(--sp-mute);
	transition: color 150ms ease;
}
.sp-jmap__title {
	display: block;
	max-width: 18ch;
	margin-top: 12px;
	font-size: 16px;
	line-height: 22px;
	font-weight: 250;
	color: var(--sp-mute);
	transition: color 150ms ease;
}
.sp-jmap__steps button:hover .sp-jmap__num,
.sp-jmap__steps button:hover .sp-jmap__title,
.is-here .sp-jmap__title { color: var(--sp-ink); }
.is-here .sp-jmap__num { color: var(--sp-blue); }
@media (max-width: 767px) { .sp-jmap__title { white-space: nowrap; } }
.sp-jmap__here {
	display: block;
	margin-top: 8px;
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-blue);
}

.sp-jmap__rail { display: none; position: relative; margin-top: var(--wp--custom--space--48); border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-jmap__rail { display: block; } }
.sp-jmap__marker {
	position: absolute;
	top: -7px;
	left: 0;
	z-index: 1;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 7px solid var(--sp-blue);
	transition: left 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-jmap__details { padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) {
	.sp-jmap__details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; border-top: 0; }
}
.sp-jmap__detail { list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .sp-jmap__detail { grid-row: 1; padding-right: 24px; } }
.sp-jmap__detail[hidden] { display: none; }
.sp-jmap__detail.is-entering { animation: sp-jmap-in 300ms cubic-bezier(0, 0, 0.58, 1) both; }
.sp-jmap__detail.is-leaving { opacity: 0; transition: opacity 150ms cubic-bezier(0.42, 0, 1, 1); }
@keyframes sp-jmap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sp-jmap__detail > li { margin: 0; border-top: 1px solid var(--sp-line); font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-ink); }
.sp-jmap__detail > li > a,
.sp-jmap__detail > li > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	color: inherit;
	text-decoration: none;
	transition: color 150ms ease;
}
.sp-jmap__detail > li > span .sp-jmap__here { margin: 0; }
.sp-jmap__detail > li > a::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--sp-mute);
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
	transition: transform 150ms ease, background-color 150ms ease;
}
.sp-jmap__detail > li > a:hover { color: var(--sp-blue-dark); text-decoration: none; }
.sp-jmap__detail > li > a:hover::after { background: var(--sp-blue-dark); transform: translateX(4px); }

/* --- FAQ (tjenestesidene: svaret i body 18/28 ink) --- */
.sp-sd-faq > * { margin: 0 !important; }
.sp-sd-faq__heading { margin-bottom: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-sd-faq__heading { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-sd-faq__grid { display: grid !important; gap: 40px; } /* gap 40 som gridet (Petter 2026-11-10) */
@media (min-width: 768px) { .sp-sd-faq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-sd-faq__grid > *,
.sp-sd-faq__item > * { margin: 0 !important; }
.sp-sd-faq__item h3 { font-size: 24px; line-height: 30px; }
.sp-sd-faq__item p { margin-top: 12px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }

/* --- Andre tjenester i kategorien --- */
.sp-andre { padding-top: var(--wp--custom--space--48); padding-bottom: var(--wp--custom--space--48); }
@media (min-width: 768px) { .sp-andre { padding-top: var(--wp--custom--space--56); padding-bottom: var(--wp--custom--space--56); } }
.sp-andre__row { align-items: baseline !important; gap: 12px 40px !important; }
.sp-andre__row > * { margin: 0 !important; }
.sp-andre__label { line-height: 16.5px; }
.wp-block-list.sp-andre__list { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-andre__list > li { margin: 0; }
.sp-andre__list a { color: var(--sp-ink); text-decoration: none; transition: color 150ms ease; }
.sp-andre__list a:hover { color: var(--sp-blue); text-decoration: none; }

/* --- Teamstripe kant til kant --- */
.sp-teamband { display: grid !important; grid-template-columns: 1fr; gap: 0 !important; }
@media (min-width: 768px) { .sp-teamband { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-teamband > .wp-block-image { margin: 0 !important; overflow: hidden; background: var(--wp--preset--color--surface-3); }
.sp-teamband img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
@media (min-width: 768px) { .sp-teamband img { aspect-ratio: 3 / 2; } }
.sp-teamband > :nth-child(1) img { object-position: center 40%; }
.sp-teamband > :nth-child(2) img { object-position: center 45%; }
.sp-teamband > :nth-child(3) img { object-position: center 45%; }

#hva-du-far, #kontakt-skjema, #cases { scroll-margin-top: 96px; }

/* Justert etter måling (tjenestedetalj): prototypen har bare mono 400+,
   så arvet 250 tegnes som 400 der – ikke vår 300. */
.sp-contactline,
.sp-deliv figcaption,
.sp-model__status,
.sp-row::before,
.sp-numlist > li::before,
.sp-fit-not::before,
.sp-fit-not strong,
.sp-jmap__here { font-weight: 400; }
.sp-row > .is-style-mono-link,
.sp-gw__item > .is-style-mono-link { line-height: 24px; }
.sp-numlist > li::before { line-height: inherit; }
.wp-block-list.sp-offer__points { font-size: 16px; }
.sp-cases > .sp-deliv__nav { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.sp-teamband { margin-top: 0 !important; margin-bottom: 0 !important; }
.sp-fit-not { max-width: none; padding-right: max(0px, calc(100% - 60ch - 56px)); }
.sp-row > .is-style-mono-link a,
.sp-gw__item > .is-style-mono-link a { line-height: 16.5px; }
/* JetBrains fra Google (prototypen) har litt høyere ascent: +1 px per rad */
.sp-numlist > li { padding-bottom: 21px; }
.sp-offer__points > li { padding-bottom: 17px; }
.sp-fit-not { padding-bottom: 21px; }
.sp-row > .is-style-mono-link,
.sp-gw__item > .is-style-mono-link { font-size: 16px; }
.sp-sd-hero__crumbs { line-height: 16.5px; }
@media (max-width: 781px) { .sp-model > .sp-model__figure { align-self: stretch !important; } }

/* Prototypens h2/h3-tokens er faste (44/52, 28/36), også på mobil */
.sp-sd h2, .sp-cases h2, .sp-contact__heading { font-size: 44px; line-height: 52px; }
.sp-sd h3:not(.sp-sd-faq__item h3), .sp-sd-quote__text p { font-size: 28px; line-height: 36px; }
@media (max-width: 781px) {
	.sp-sd .wp-block-columns.sp-split-4-8 { gap: 40px; }
	.sp-model > .sp-model__figure { flex: none !important; }
}
@media (max-width: 767px) { .sp-jmap__details { margin-top: 0; } }
@media (max-width: 781px) {
	.sp-sd .wp-block-columns.sp-model { gap: 0; }
	.sp-sd .sp-model > .sp-model__figure { flex: 0 0 auto !important; }
}
.sp-insight { aspect-ratio: 3 / 2; }
@media (max-width: 781px) {
	.sp-sd .sp-model > .sp-model__figure { width: calc(100% + 2 * var(--wp--custom--gutter)); }
}

/* Bilderekka kan dras med mus */
@media (hover: hover) and (pointer: fine) {
	.sp-deliv { cursor: grab; }
	.sp-deliv a { cursor: grab; }
}
.sp-deliv.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.sp-deliv.is-dragging a,
.sp-deliv.is-dragging img { cursor: grabbing; pointer-events: none; }
.sp-deliv.is-moving { scroll-snap-type: none; scroll-behavior: auto; }
.sp-deliv.is-dragging { user-select: none; }

/* Reisekart: den blå streken fyller skinnen fram til valgt fase (fra md) */
.sp-jmap__steps { position: relative; }
.sp-jmap__bar { display: none; }
@media (min-width: 768px) {
	.sp-jmap.has-bar .sp-jmap__steps > li.is-here { border-top-color: var(--sp-line); }
	.sp-jmap__bar {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		height: 2px;
		background: var(--sp-blue);
		pointer-events: none;
		transition: width 450ms cubic-bezier(0.22, 1, 0.36, 1);
	}
	.sp-jmap__node { z-index: 1; }
}
@media (prefers-reduced-motion: reduce) { .sp-jmap__bar { transition: none; } }

/* --- Modell på blått band (ModelBreak tone «blue») --- */
.sp-sd--blue { color: var(--sp-paper); }
.sp-sd--blue .sp-model__eyebrow,
.sp-sd--blue .sp-model__title,
.sp-sd--blue .sp-model__body,
.sp-sd--blue .sp-model__status { color: var(--sp-paper); }
.sp-cases--nodiv .sp-cases__head { border-top: 0; }

/* --- Bildeutsnitt per side (klasser på bildeblokken) --- */
.sp-sd-hero__image.sp-hpos-workshop img { object-position: 35% 45%; }
@media (min-width: 1024px) { .sp-sd-hero__image.sp-hpos-workshop img { object-position: 50% 45%; } }
.sp-sd-lev__image.sp-pos-top-10 img { object-position: 50% 10%; }
.sp-teamband > .sp-pos-y35 img { object-position: center 35%; }
.sp-teamband > .sp-pos-y40 img { object-position: center 40%; }
.sp-teamband > .sp-pos-y45 img { object-position: center 45%; }
.sp-fit > li { padding-right: max(0px, calc(100% - 60ch - 56px)); }

/* Forsiden, teamkortene: kolonnene har både reveal (opasitet) og parallax
   (transform fra JS). Reveal-overgangen gjaldt også transform, så hver
   parallax-oppdatering ble animert over 700 ms med forsinkelse – bildene
   hang etter og flyttet seg først når man sluttet å scrolle. Bare opasitet
   skal ha overgang her. */
.sp-js .sp-team-cards.sp-reveal-stagger > .wp-block-column { transition-property: opacity; }

/* ==========================================================================
   Prosjekter (Prosjekter.tsx) – målt i 1440 px
   ========================================================================== */
.sp-proj-hero, .sp-proj-list, .sp-proj-cta { margin-block-start: 0 !important; }
.sp-proj-hero > *, .sp-proj-list > *, .sp-proj-cta > * { margin-block-start: 0 !important; }
.sp-proj-hero { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--48); }
@media (min-width: 768px) { .sp-proj-hero { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--64); } }
.sp-proj-hero .alignwide > * { margin: 0; }
.sp-proj-hero__title { max-width: 24ch; }
.sp-proj-hero__intro { max-width: 65ch; margin-top: 32px !important; font-size: 24px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }

.sp-proj-list { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
/* 56 px over pillene og 96 px fra pillene til oppslaget fra 768 px, så
   midtspalten (som starter 50 px høyere) ikke går opp i pillene (Petter
   2026-11-10). */
@media (min-width: 768px) { .sp-proj-list { padding-top: var(--wp--custom--space--56); padding-bottom: var(--wp--custom--space--96); } }
@media (min-width: 768px) { .sp-proj-list .sp-case-filter { margin-bottom: var(--wp--custom--space--96) !important; } }
.sp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sp-proj-list .alignwide > * { margin: 0; }

/* Filterpiller */
.sp-case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--wp--custom--space--48) !important; }
.sp-case-filter:empty { display: none; }
.sp-case-filter button {
	padding: 6px 14px;
	border: 1px solid var(--sp-line);
	border-radius: 9999px;
	background: #fff;
	color: var(--sp-mute);
	font-family: var(--sp-mono);
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 0.02em; /* uten versaler (Petter 24.11, punkt 44) */
	font-weight: 400;
	cursor: pointer;
	transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.sp-case-filter button:hover { color: var(--sp-ink); }
.sp-case-filter button[aria-pressed="true"] { background: var(--sp-ink); border-color: var(--sp-ink); color: var(--sp-paper); }
.sp-case-filter button:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }

/* Mobil: én filterknapp som åpner lista (motion.js initCases) */
.sp-case-filter-toggle { display: none; }
@media (max-width: 767px) {
	.sp-case-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		height: 44px;
		padding: 0 18px;
		margin: 0 0 var(--wp--custom--space--48);
		border: 1px solid var(--sp-ink);
		border-radius: 9999px;
		background: #fff;
		color: var(--sp-ink);
		font-family: var(--sp-mono);
		font-size: 11px;
		line-height: 16px;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		font-weight: 400;
		cursor: pointer;
	}
	.sp-case-filter-toggle__label { color: var(--sp-mute); }
	.sp-case-filter-toggle::after {
		content: "";
		width: 12px;
		height: 12px;
		background: currentColor;
		-webkit-mask: var(--sp-chevron) center / contain no-repeat;
		mask: var(--sp-chevron) center / contain no-repeat;
		transition: transform 200ms ease;
	}
	.sp-case-filter-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
	.sp-case-filter-toggle:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
	/* Margin med !important: .sp-proj-list .alignwide > * nullstiller marginene ellers */
	.sp-case-filter-toggle { margin-bottom: var(--wp--custom--space--48) !important; }
	.sp-case-filter-toggle[aria-expanded="true"] { margin-bottom: 16px !important; }
	.sp-case-filter.is-collapsible:not(.is-open) { display: none; }
	.sp-case-filter.is-collapsible.is-open { margin-bottom: var(--wp--custom--space--48) !important; }
}

/* Kortgrid */
.sp-cases-grid { display: grid !important; gap: 64px 40px; }
@media (min-width: 768px) { .sp-cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-cases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-cases-grid > * { margin: 0 !important; }
.sp-case { position: relative; }
.sp-case.is-hidden { display: none; }
.sp-case > * { margin: 0 !important; }
.sp-case__image { overflow: hidden; border-radius: 5px; margin-bottom: 20px !important; background: var(--sp-flash, var(--sp-mist)); }
.sp-case__image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; transition: opacity 400ms ease-out, transform 500ms cubic-bezier(0.4, 0, 0.2, 1); }
.sp-js .sp-case__image.is-waiting img { opacity: 0; }
.sp-case:hover .sp-case__image img { transform: scale(1.03); }
.sp-case__kicker { margin-bottom: 6px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--sp-mute); }
.sp-case__title { margin-bottom: 12px !important; font-size: 28px; line-height: 36px; font-weight: 500; }
.sp-case__title a { color: inherit; text-decoration: none; }
.sp-case__title a::after { content: ""; position: absolute; inset: 0; }
.sp-case__title a:focus-visible { outline: none; }
.sp-case:has(a:focus-visible) { outline: 2px solid var(--sp-blue); outline-offset: 4px; border-radius: 5px; }
.sp-case__text { max-width: 65ch; margin-bottom: 20px !important; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--sp-mute); }
.sp-case__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--sp-blue); transition: color 150ms ease; }
.sp-case__more::after { content: ""; width: 11px; height: 11px; background: currentColor; -webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat; transition: transform 150ms ease; }
.sp-case:hover .sp-case__more { color: var(--sp-blue-dark); }
.sp-case:hover .sp-case__more::after { transform: translateX(4px); }

/* Kortene glir inn etter tur ved lasting og ved hvert filterbytte */
@keyframes sp-case-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sp-js .sp-case.is-entering { animation: sp-case-in 500ms var(--sp-ease) both; animation-delay: calc(var(--sp-i, 0) * 60ms); }
.editor-styles-wrapper .sp-case__image img { opacity: 1 !important; }

.sp-cases-empty { display: none; padding: var(--wp--custom--space--48) 0; border-top: 1px solid var(--sp-line); text-align: center; font-size: 18px; line-height: 28px; font-weight: 500; color: var(--sp-mute); }
.sp-cases-empty.is-shown { display: block; }

/* CTA: strek kant til kant, 8/4 */
/* Streken over avslutningen ligger på innholdsbredden (gridregelen), ikke
   kant til kant (Prosjekter.tsx). */
.sp-proj-cta { padding-top: 0; padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-proj-cta { padding-bottom: var(--wp--custom--space--112); } }
.sp-proj-cta__row { display: grid !important; gap: 40px; align-items: end; padding-top: var(--wp--custom--space--80); border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-proj-cta__row { padding-top: var(--wp--custom--space--112); } }
@media (min-width: 768px) {
	.sp-proj-cta__row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.sp-proj-cta__row > h2 { grid-column: span 8; }
	.sp-proj-cta__action { grid-column: span 4; justify-content: flex-end; }
}
.sp-proj-cta__row > * { margin: 0 !important; }
.sp-proj-cta__row h2 { max-width: 1000px; font-size: 44px; line-height: 52px; }
.sp-btn-arrow > .wp-block-button__link { gap: 8px; height: 46px; padding: 0 28px; box-sizing: border-box; }
.sp-btn-arrow > .wp-block-button__link::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat; }
/* Linjeboksen rundt «Les saken» (inline-flex) følger prototypens 16/24 */
.sp-case { font-size: 16px; line-height: 24px; }
/* Aktiv pille har ingen kant i prototypen (2 px smalere) */
.sp-case-filter button[aria-pressed="true"] { border: 0; padding: 7px 14px; }

/* Reisekart: alle fase-listene ligger i samme celle, skjulte med
   visibility (ikke display), så området alltid er like høyt som den
   lengste lista – knappen og seksjonene under hopper ikke ved bytte. */
.sp-jmap__details { display: grid; }
.sp-jmap__detail { grid-row: 1; }
.sp-jmap__detail[hidden] { display: block; visibility: hidden; }
@media (max-width: 767px) {
	.sp-jmap__details { grid-template-columns: minmax(0, 1fr); }
	.sp-jmap__detail { grid-column: 1 !important; }
}
/* Stående hero (heroAspect «portrait»): 4:5 også fra lg */
@media (min-width: 1024px) { .sp-sd-hero__image.sp-hero-portrait img { aspect-ratio: 4 / 5; } }
.sp-sd-hero__image.sp-hero-portrait img { object-position: 50% 50%; }
.sp-sd-lev__image.sp-pos-center img { object-position: 50% 50%; }
.sp-teamband > .sp-pos-y30 img { object-position: center 30%; }

/* --- Regelverksmodul (legal) --- */
.sp-legal__intro { max-width: 40ch; margin-top: 24px !important; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-legal__note { margin-top: 24px !important; line-height: 16.5px; }
.sp-legal__link { margin-top: 24px !important; }

/* --- Grupperte leveranser («Hva du får» med mono-etikett per gruppe) --- */
.sp-rows-groups { display: flex !important; flex-direction: column; gap: 56px; }
.sp-rows-groups > *, .sp-rows-group > * { margin: 0 !important; }
.sp-rows-group__label { margin-bottom: 8px !important; line-height: 16.5px; }

/* --- Referanse (ReferenceBlock uten tall) på grå flate --- */
.sp-ref__eyebrow { margin-bottom: 24px !important; line-height: 16.5px; }
.wp-block-group.sp-sd-quote__text > * { margin: 0 !important; }
.wp-block-quote.sp-ref__quote { margin: 0; padding: 0; border: 0; }
.sp-ref__quote p { max-width: 40ch; margin: 0; font-size: 28px; line-height: 36px; font-weight: 250; font-style: normal; text-wrap: balance; }
.sp-ref__quote cite { display: block; margin-top: 24px; font-size: 16px; line-height: 22px; font-weight: 250; font-style: normal; color: var(--sp-ink); }
.sp-ref__quote cite .sp-mute { color: var(--sp-mute); }
.sp-sd-quote__portrait.sp-pos-top-20 img { object-position: 50% 20%; }

.sp-sd-hero__image.sp-hpos-ux img { object-position: 55% 40%; }
@media (min-width: 1024px) { .sp-sd-hero__image.sp-hpos-ux img { object-position: 50% 40%; } }
.sp-sd-lev__image.sp-pos-60-50 img { object-position: 60% 50%; }
.sp-sd-quote__text .sp-ref__eyebrow { max-width: none; font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; font-weight: 400; text-wrap: wrap; }
.sp-legal__link { font-size: 16px; line-height: 24px; }
.sp-legal__link a { font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; }
.wp-block-group.sp-sd-quote__text > .sp-ref__eyebrow { margin-bottom: 24px !important; }

/* Kategorisidene: prototypens faste h2/h3 (44/52, 28/36) også på mobil */
.sp-cat-services h2, .sp-cta-band h2, .sp-next-cat h2 { font-size: 44px; line-height: 52px; }
.sp-svc-row__title { font-size: 28px; }
@media (max-width: 781px) { .sp-cat-services .wp-block-columns.sp-split-4-8 { gap: 40px; } }

/* --- Hero med eget mobilbilde (<picture> i prototypen) --- */
.sp-sd-hero__image.sp-hero-d { display: none; }
.sp-sd-hero__image.sp-hero-m img { object-position: 50% 50%; }
@media (min-width: 1024px) {
	.sp-sd-hero__image.sp-hero-d { display: block; }
	.sp-sd-hero__image.sp-hero-m { display: none; }
}
.sp-sd-hero__image.sp-hpos-boco img { object-position: 50% 45%; }
.sp-sd-quote__portrait.sp-pos-top-30 img { object-position: 50% 30%; }
.sp-ref__link { margin-top: 32px !important; }

/* --- Plattformvalg (4/8): tekst | rader med logo til høyre --- */
.sp-pv__intro { max-width: 40ch; margin-top: 14px !important; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-pv__intro { margin-top: 14px !important; }
h2 + .sp-pv__intro { margin-top: 24px !important; }
.sp-pv__ref { margin-top: 24px !important; }
.sp-pv__outro { max-width: 60ch; margin-top: 32px !important; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
.sp-pv__cta { margin-top: 40px !important; }
.sp-row--logo { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.sp-row--logo > h3 { grid-column: 1; }
.sp-row--logo > p { grid-column: 1; }
.sp-row--logo > .sp-row__logo { display: none; grid-column: 2; grid-row: 1 / span 2; align-self: start; margin: 0 !important; padding-top: 6px; }
@media (min-width: 640px) { .sp-row--logo > .sp-row__logo { display: block; } }
.sp-row__logo img { display: block; width: auto !important; }

/* --- Grunnsteiner i to kolonner (columns: 2) --- */
@media (min-width: 1024px) { .sp-gw__grid.sp-gw__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-sd-quote__text .sp-ref__link,
.sp-pv__ref { max-width: none; font-size: 16px; line-height: 24px; font-weight: 250; text-wrap: wrap; }
.sp-sd-quote__text .sp-ref__link a,
.sp-pv__ref a { font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; }
@media (max-width: 639px) { .sp-row--logo { grid-template-columns: minmax(0, 1fr); column-gap: 0; } }
.sp-sd-hero__image.sp-hpos-bergdahl img { object-position: 50% 55%; }
.sp-sd-hero__image.sp-mpos-50-30 img { object-position: 50% 30%; }
.sp-sd-lev__image.sp-pos-50-30 img { object-position: 50% 30%; }
.sp-teamband > .sp-pos-55-40 img { object-position: 55% 40%; }
.sp-sd-hero__image.sp-mpos-50-20 img { object-position: 50% 20%; }
.sp-sd-lev__image.sp-pos-50-20 img { object-position: 50% 20%; }
.sp-teamband > .sp-pos-45-50 img { object-position: 45% 50%; }
.wp-block-group.sp-sd-quote__text > .sp-ref__link { margin-top: 32px !important; }
.sp-teamband > .sp-pos-center img { object-position: center; }

/* ==========================================================================
   Egne produkter (Produkter.tsx) – hero 6/6, produktrader 4/8, «Flere er på vei»
   ========================================================================== */
.sp-prod-hero__eyebrow { margin: 0 0 32px !important; }
.sp-sd-hero__image.sp-prod-pos-top img, .sp-prod__image.sp-prod-pos-top img { object-position: 50% 0%; }
@media (min-width: 1024px) { .sp-sd-hero__image.sp-prod-pos-top img { object-position: 50% 0%; } }
.sp-prod-hero__cta { column-gap: 32px; row-gap: 16px; }
.sp-prod > * { margin-block-start: 0 !important; }
.sp-prod__head { margin: 0 0 var(--wp--custom--space--64) !important; }
@media (min-width: 768px) { .sp-prod__head { margin-bottom: var(--wp--custom--space--80) !important; } }
.sp-prod__intro { margin: 0 !important; font-size: 18px; line-height: 28px; font-weight: 250; max-width: 65ch; }
.sp-prod__list > * { margin: 0 !important; }
.sp-prod__item { padding: var(--wp--custom--space--48) 0; }
@media (min-width: 768px) { .sp-prod__item { padding: var(--wp--custom--space--64) 0; } }
.sp-prod__item + .sp-prod__item { border-top: 1px solid var(--sp-line); }
.sp-prod__item .wp-block-columns { margin: 0 !important; align-items: flex-start !important; }
@media (max-width: 781px) { .sp-prod__item .wp-block-columns, .sp-prod__head.wp-block-columns { gap: 40px; } }
.sp-prod__image { margin: 0 !important; overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-2, #F1F3F5); }
.sp-prod__image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.sp-prod__item { scroll-margin-top: 112px; }
/* Synn har ikke skjermbilde ennå: blå flate med navnet */
.sp-prod__ph { aspect-ratio: 4 / 3; background: var(--sp-blue) !important; color: var(--sp-paper); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; box-sizing: border-box; }
.sp-prod__ph > * { margin: 0 !important; }
.sp-prod__ph-name { font-size: 64px; line-height: 1; font-weight: 250; letter-spacing: -0.01em; }
.sp-prod__ph-note { margin-top: 12px !important; color: var(--sp-paper) !important; }
.sp-prod__eyebrow { color: var(--sp-mute) !important; margin: 0 0 12px !important; font-variant-numeric: tabular-nums; }
.sp-sd h3.sp-prod__name { margin: 0 !important; font-size: 44px !important; line-height: 52px !important; }
.sp-prod__tagline { margin: 12px 0 0 !important; font-size: 28px; line-height: 36px; font-weight: 250; }
.sp-prod__body { margin: 16px 0 0 !important; font-size: 18px; line-height: 28px; font-weight: 250; max-width: 65ch; }
.sp-prod__body--first { margin-top: 20px !important; }
.sp-prod__byline { margin: 8px 0 0 !important; font-size: 16px; line-height: 22px; font-weight: 250; max-width: 60ch; color: var(--sp-mute); }
.sp-prod__facts { color: var(--sp-mute) !important; margin: 24px 0 0 !important; }
.sp-prod__links { margin: 24px 0 0 !important; column-gap: 32px; row-gap: 12px; }
.sp-prod__links > * { margin: 0 !important; }
.sp-steps__intro { margin: 24px 0 0 !important; font-size: 18px; line-height: 28px; font-weight: 250; max-width: 40ch; }
.sp-steps > * { margin: 0 !important; }
.sp-steps__item { display: flex; align-items: baseline; gap: 24px; padding: 24px 0; }
.sp-steps__item + .sp-steps__item { border-top: 1px solid var(--sp-line); }
.sp-steps__item > * { margin: 0 !important; }
.sp-steps__num { width: 32px; flex-shrink: 0; color: var(--sp-mute) !important; font-variant-numeric: tabular-nums; }
.sp-steps__body { flex: 1; }
.sp-steps__body h3 { margin: 0 !important; }
.sp-steps__text { margin: 8px 0 0 !important; font-size: 16px; line-height: 22px; font-weight: 250; max-width: 60ch; color: var(--sp-mute); }
.sp-prod-hero__eyebrow, .sp-prod__eyebrow, .sp-prod__facts, .sp-prod__links .is-style-mono-link, .sp-prod-hero__cta .is-style-mono-link, .sp-steps__num { line-height: 16.5px !important; }
.sp-sd-hero__image.sp-hpos-yoann img { object-position: 35% 45%; }
@media (min-width: 1024px) { .sp-sd-hero__image.sp-hpos-yoann img { object-position: 50% 40%; } }
.sp-sd-lev__image.sp-pos-50-40 img { object-position: 50% 40%; }
.sp-offer__outro { margin: 20px 0 0 !important; max-width: 65ch; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
@media (min-width: 1024px) { .sp-sd-hero__image.sp-hpos-55-40 img { object-position: 55% 40%; } }
.sp-sd-hero__image.sp-mpos-50-40 img { object-position: 50% 40%; }
.sp-sd-hero__image.sp-hpos-50-40 img { object-position: 50% 40%; }
@media (min-width: 1024px) { .sp-sd-hero__image.sp-hpos-50-40 img { object-position: 50% 40%; } }
.wp-block-group.sp-sd-quote__text > .sp-ref__link { line-height: 16.5px; }
/* Bruddvideo (VideoBreak) – full-bleed 16:9, ingen luft, fargeskiftet er skillet */
.wp-block-group.sp-videobreak { margin-top: 0 !important; margin-bottom: 0 !important; padding: 0; }
.sp-videobreak__figure { margin: 0; }
.sp-videobreak__frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--wp--preset--color--surface-3, #EEF1F4); }
.sp-videobreak__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-sd-hero__image.sp-hpos-bb img { object-position: 40% 50%; }
@media (min-width: 1024px) { .sp-sd-hero__image.sp-hpos-bb img { object-position: 50% 50%; } }
.sp-js .sp-dur-700, .sp-js .sp-dur-700 > * { --sp-dur: 700ms; }

/* ==========================================================================
   Artikler (Artikler.tsx) – hero, fremhevet artikkel, filter + kort, CTA
   ========================================================================== */
.sp-art-hero, .sp-art-featsec, .sp-art-list, .sp-art-cta { margin-top: 0 !important; margin-bottom: 0 !important; }
.sp-art-hero > *, .sp-art-featsec > *, .sp-art-list > *, .sp-art-cta > * { margin-block-start: 0 !important; }
.sp-art-hero { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--48); }
@media (min-width: 768px) { .sp-art-hero { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--64); } }
.sp-art-hero__title { margin: 0 !important; max-width: 20ch; font-size: 60px !important; line-height: 68px !important; font-weight: 250; }
.sp-art-hero__intro { margin: 32px 0 0 !important; max-width: 65ch; font-size: 24px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-art-kicker, .sp-art-meta, .sp-art-more, .sp-art-draft { font-family: var(--sp-mono); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 400; }
.sp-art-kicker { font-size: 11px; line-height: 16.5px; color: var(--sp-mute); }
.sp-art-meta { display: flex; flex-wrap: wrap; align-items: center; color: var(--sp-mute); }
.sp-art-meta > span + span { margin-left: 1ch; } /* mellomrommet etter kommaet */
.sp-art-more { font-size: 11px; line-height: 16.5px; color: var(--sp-blue); display: inline-flex; align-items: center; gap: 6px; transition: color 150ms ease; }
.sp-art-more::after { content: ""; width: 11px; height: 11px; background: currentColor; -webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat; transition: transform 150ms ease; }
/* Fremhevet: 7/5, bunnjustert */
.sp-art-featsec { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .sp-art-featsec { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); } }
.sp-art-featsec > .alignwide { position: relative; }
.wp-block-columns.sp-art-feat { margin: 0 !important; gap: 32px; }
@media (min-width: 768px) {
	.wp-block-columns.sp-art-feat { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: end; }
	.sp-art-feat > .sp-art-feat__media { grid-column: span 7; }
	.sp-art-feat > .sp-art-feat__text { grid-column: span 5; }
}
@media (max-width: 767px) { .wp-block-columns.sp-art-feat { flex-direction: column; } .sp-art-feat > .wp-block-column { flex-basis: auto !important; width: 100%; } }
.sp-art-feat .wp-block-column > * { margin-block-start: 0; }
.sp-art-feat__image { margin: 0 !important; }
.sp-art-feat__image, .sp-art-card__image { overflow: hidden; border-radius: 5px; background: #fff; }
.sp-art-feat__image img, .sp-art-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 700ms ease; }
.sp-art-feat__kicker { margin-bottom: 16px !important; }
.sp-art-feat__title { margin: 0 0 20px !important; font-size: 38px !important; line-height: 45px !important; font-weight: 250; }
.sp-art-feat__title a, .sp-art-card__title a { color: inherit; text-decoration: none; }
.sp-art-feat__title a::after, .sp-art-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sp-art-feat__lead { margin: 0 0 28px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-art-feat__meta { margin: 0 0 28px !important; font-size: 12px; line-height: 16px; column-gap: 20px; row-gap: 12px; }
.sp-art-featsec .alignwide:hover .sp-art-feat__image img, .sp-art-card:hover .sp-art-card__image img { transform: scale(1.02); }
.sp-art-featsec .alignwide:hover .sp-art-more, .sp-art-card:hover .sp-art-more { color: var(--wp--preset--color--blue-dark, #0052CC); }
.sp-art-featsec .alignwide:hover .sp-art-more::after, .sp-art-card:hover .sp-art-more::after { transform: translateX(4px); }
/* Liste: filter og rutenett */
.sp-art-list { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-art-list { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-art-list .alignwide > * { margin-block-start: 0 !important; }
.sp-case-filter.sp-art-filter { gap: 6px; margin-bottom: 40px !important; }
.sp-art-filter button { border-radius: 5px; padding: 6px 12px; line-height: 15px; }
.sp-art-filter button[aria-pressed="true"] { border: 0; padding: 7px 12px; }
.sp-art-grid { display: grid !important; grid-template-columns: minmax(0, 1fr); column-gap: 32px; row-gap: 48px; }
@media (min-width: 640px) { .sp-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-art-grid > * { margin: 0 !important; }
.sp-art-card { position: relative; display: flex !important; flex-direction: column; height: 100%; }
.sp-art-card > * { margin: 0 !important; }
.sp-art-card.is-hidden { display: none !important; }
.sp-art-card__image { margin-bottom: 20px !important; }
.sp-art-card__kicker { margin-bottom: 12px !important; }
.sp-art-card__title { margin: 0 0 12px !important; font-size: 22px !important; line-height: 28px !important; font-weight: 250; transition: color 150ms ease; }
.sp-art-card:hover .sp-art-card__title { color: var(--sp-blue); }
.sp-art-card__lead { margin: 0 0 16px !important; font-size: 16px; line-height: 24px; font-weight: 250; color: var(--sp-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-art-card__meta { margin: auto 0 16px !important; font-size: 10px; line-height: 15px; column-gap: 12px; row-gap: 8px; }
.sp-art-card .sp-art-more { align-self: flex-start; }
.sp-art-draft { position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0 !important; font-size: 10px; line-height: 15px; background: var(--wp--preset--color--orange, #FF6600); color: #232323; padding: 4px 10px; border-radius: 9999px; pointer-events: none; }
.sp-art-empty { display: none; margin: 0 !important; padding: var(--wp--custom--space--48) 0; text-align: center; border-top: 1px solid var(--sp-line); font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-art-empty.is-shown { display: block; }
/* CTA-bjelken */
.sp-art-cta { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-art-cta { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-art-cta__row { gap: 32px; }
.sp-art-cta__row > * { margin: 0 !important; }
.sp-art-cta__title { max-width: 1000px; font-size: 38px !important; line-height: 45px !important; font-weight: 250; }
.sp-js .sp-art-card.is-entering { animation: sp-case-in 400ms cubic-bezier(0.42, 0, 0.58, 1) both; animation-delay: calc(var(--sp-i, 0) * 60ms); }
.sp-art-card .sp-art-more, .sp-art-feat .sp-art-more { margin-top: 3.5px !important; margin-bottom: 3.5px !important; }

/* ==========================================================================
   Om oss (OmOss.tsx) – målt i 1440 px og 390 px
   ========================================================================== */
.sp-om { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-om { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-om > *, :where(.sp-om [class*="__in"]) > * { margin-block-start: 0 !important; }
.sp-om--rule { border-top: 1px solid var(--sp-line); }
.sp-om-h2 { margin: 0 !important; font-size: 44px !important; line-height: 52px !important; font-weight: 250; }
.sp-om-eyebrow { margin: 0 0 12px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue); }

/* Hero + bildebanner (mist) */
.sp-om-hero { padding-bottom: var(--wp--custom--space--48); }
@media (min-width: 768px) { .sp-om-hero { padding-bottom: var(--wp--custom--space--64); } }
.sp-om-hero__title { margin: 0 !important; max-width: 24ch; font-size: clamp(48px, 5.2vw, 72px) !important; line-height: 1.07 !important; font-weight: 250; }
.sp-om-hero__intro { margin: 32px 0 0 !important; max-width: 65ch; font-size: 24px; line-height: 34px; font-weight: 250; }
.sp-om-banner { padding-top: 0; padding-bottom: 32px; }
@media (min-width: 768px) { .sp-om-banner { padding-top: 0; padding-bottom: var(--wp--custom--space--48); } }
.sp-om-banner__image { margin: 0 !important; border-radius: 5px; overflow: hidden; aspect-ratio: 16 / 7; }
.sp-om-banner__image img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.sp-om-banner__caption { margin: 12px 0 0 !important; font-size: 16px; line-height: 22px; font-weight: 250; }

/* 5/7-rutenett */
.wp-block-columns.sp-om-5-7 { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 32px !important; margin: 0 !important; align-items: start; }
.wp-block-columns.sp-om-5-7--wide { gap: 40px !important; }
.sp-om-5-7 > .wp-block-column { margin: 0 !important; min-width: 0; }
.sp-om-5-7 > .wp-block-column > * { margin-block-start: 0; }
@media (min-width: 768px) {
	.wp-block-columns.sp-om-5-7 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px !important; }
	.wp-block-columns.sp-om-5-7--wide { gap: 64px !important; }
	.sp-om-5-7 > .sp-om-col5 { grid-column: span 5; }
	.sp-om-5-7 > .sp-om-col7 { grid-column: span 7; }
}
.sp-om-side__intro { margin: 24px 0 0 !important; max-width: 40ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-om-side__link { margin: 24px 0 0 !important; }

/* Teamet */
.sp-om-team__head { max-width: 768px; margin-bottom: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-om-team__head { margin-bottom: var(--wp--custom--space--80) !important; } }
.sp-om-team__head > * { margin-block-start: 0 !important; }
.sp-om-team__intro { margin: 24px 0 0 !important; max-width: 65ch; font-size: 22px; line-height: 30px; font-weight: 250; }
.sp-om-team__grid { display: grid; gap: 48px 24px; }
@media (min-width: 640px) { .sp-om-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-om-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-om-team__grid > * { margin: 0 !important; }
.sp-om-member > * { margin: 0 !important; }
.sp-om-member__image { border-radius: 5px; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 20px !important; }
.sp-om-member__image img { width: 100%; height: 100% !important; object-fit: cover; object-position: center top; display: block; }
.sp-om-member__role { margin-bottom: 12px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue); }
.sp-om-member__name { margin-bottom: 12px !important; font-size: 24px !important; line-height: 30px !important; font-weight: 250; }
.sp-om-member__bio { margin-bottom: 16px !important; font-size: 16px; line-height: 22px; font-weight: 250; }
.sp-om-member__mail { font-size: 16px; line-height: 24px; }
.sp-om-member__mail a { font-family: var(--sp-mono); font-size: 12px; line-height: 16px; }
.sp-om-member__mail a { color: var(--sp-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--sp-line); transition: text-decoration-color 150ms ease; }
.sp-om-member__mail a:hover { text-decoration-color: var(--wp--preset--color--orange, #ff5a1f); }

/* Tallenes tale (blå) */
.sp-om-num, .sp-om-num .sp-om-h2 { color: var(--sp-paper); }
.sp-om-num__head { max-width: 896px; margin-bottom: var(--wp--custom--space--56) !important; }
.sp-om-num__head > * { margin-block-start: 0 !important; }
.sp-om-num__eyebrow { margin: 0 0 16px !important; font-family: var(--sp-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.sp-om-num__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
@media (min-width: 768px) { .sp-om-num__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sp-om-num__grid > * { margin: 0 !important; }
.sp-om-num__item { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 20px; }
@media (min-width: 768px) { .sp-om-num__item { padding-top: 28px; padding-right: 16px; } }
.sp-om-num__item > * { margin: 0 !important; }
.sp-om-num__value { margin-bottom: 16px !important; font-family: var(--sp-mono); font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--sp-paper); }
.sp-om-num__label { font-family: var(--sp-mono); font-size: 11px; line-height: 1.375; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }

/* Korte avstander + bildegrid */
.wp-block-columns.sp-om-how__cols { margin-bottom: var(--wp--custom--space--128) !important; }
@media (min-width: 768px) { .wp-block-columns.sp-om-how__cols { margin-bottom: 160px !important; } .sp-om-how__text { padding-top: 12px; } }
.sp-om-how__text { max-width: 720px; }
.sp-om-how__p { margin: 0 !important; font-size: 22px; line-height: 30px; font-weight: 250; }
.sp-om-how__p + .sp-om-how__p { margin-top: 20px !important; }
.sp-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (min-width: 768px) { .sp-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.sp-pgrid > * { margin: 0 !important; will-change: transform; }
.sp-js .sp-pgrid.sp-reveal-stagger > * { transition-property: opacity; }
.sp-pgrid__item { display: flex; flex-direction: column; gap: 12px; }
.sp-pgrid__item > * { margin: 0 !important; }
.sp-pgrid__image { border-radius: 5px; overflow: hidden; }
.sp-pgrid__image img { width: 100%; height: auto !important; object-fit: cover; display: block; transition: transform 600ms ease-out; }
.sp-pgrid__image:hover img { transform: scale(1.025); }
.sp-pgrid__caption { font-size: 16px; line-height: 22px; font-weight: 250; }

/* Radlister (Slik jobber vi / Egne produkter) */
.sp-om-rows > * { margin: 0 !important; }
.sp-om-rows > * + * { border-top: 1px solid var(--sp-line); }
.sp-om-row { display: flex; align-items: baseline; gap: 24px; padding: 24px 0; }
.sp-om-row > * { margin: 0 !important; }
.sp-om-row__num { width: 32px; flex: none; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); font-variant-numeric: tabular-nums; }
.sp-om-row__body { flex: 1; min-width: 0; }
.sp-om-row__body > *, .sp-om-prod > * { margin: 0 !important; }
.sp-om-row__title { font-size: 22px !important; line-height: 28px !important; font-weight: 250; }
.sp-om-row__text { margin-top: 8px !important; max-width: 60ch; font-size: 16px; line-height: 22px; font-weight: 250; }
.sp-om-row__body > .sp-om-row__link, .sp-om-prod > .sp-om-row__link { margin-top: 12px !important; }
.sp-om-prod { padding: 24px 0; }
.sp-om-prod__eyebrow { margin-bottom: 8px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-om-prod__text { margin-top: 8px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }

/* Visitech-sitat: lenke under */
.sp-quote__inner > .sp-quote__link { margin-top: 40px !important; }

/* Historikk (hvit) */
.sp-om-history__cols { align-items: start; }
.sp-om-history__image { margin: 0 !important; border-radius: 5px; overflow: hidden; aspect-ratio: 4 / 3; }
.sp-om-history__image img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.sp-om-history__title { margin-bottom: 28px !important; }
.sp-om-history__p { margin: 0 !important; max-width: 720px; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-om-history__p + .sp-om-history__p { margin-top: 20px !important; }

/* Fem ting */
.sp-om-why__head { max-width: 768px; margin-bottom: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-om-why__head { margin-bottom: var(--wp--custom--space--80) !important; } }
.sp-om-why__head > * { margin: 0 !important; }
.sp-om-why__grid { display: grid; column-gap: 40px; }
@media (min-width: 768px) { .sp-om-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-om-why__grid > * { margin: 0 !important; }
.sp-om-why__item { border-top: 1px solid var(--sp-line); }
.sp-om-why__box { height: 100%; margin: 0 -16px !important; padding: 28px 16px; transition: background-color 150ms ease; }
.sp-om-why__box:hover { background: var(--sp-mist); }
.sp-om-why__box > * { margin: 0 !important; }
.sp-om-why__top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 12px !important; }
.sp-om-why__top > * { margin: 0 !important; }
.sp-om-why__num { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue); font-variant-numeric: tabular-nums; }
.sp-om-why__title { font-size: 22px !important; line-height: 28px !important; font-weight: 250; }
.sp-om-why__text { max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
/* Mono-lenkene står i en 16/24-linje i prototypen (p/div med brødtekst rundt inline-flex) */
.sp-om .is-style-mono-link { font-size: 16px; line-height: 24px; }
/* … men «Alle produktene» og Visitech-lenken er inline-flex med egen marg rett i en div:
   linjen er like høy som lenken */
.sp-om .is-style-mono-link.sp-om-side__link, .sp-quote__inner > .sp-quote__link { font-size: 11px; line-height: 16.5px; }
.sp-om .is-style-mono-link a { line-height: 16.5px; }
.sp-quote__link a { font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; }
.sp-om-quote .sp-quote__heading { font-size: 44px !important; line-height: 52px !important; }
.sp-om-num__value .sp-stat__unit { color: inherit; opacity: 1; font-size: inherit; font-weight: inherit; margin: 0; }
.sp-pgrid > :nth-child(4n+1) img, .sp-pgrid > :nth-child(4n+4) img { aspect-ratio: 299 / 295; }
.sp-pgrid > :nth-child(4n+2) img { aspect-ratio: 298 / 368; }
.sp-pgrid > :nth-child(4n+3) img { aspect-ratio: 299 / 212; }

/* ==========================================================================
   Techpilot (TechPilot.tsx) – bygger på tjenestedetaljens sp-sd-seksjoner
   ========================================================================== */
.sp-tp .is-style-eyebrow, .sp-tp-hero__eyebrow, .sp-tp-hero__note { line-height: 16.5px; }
.sp-tp-hero__note { color: var(--sp-mute); }
.sp-tp-side__intro { margin: 24px 0 0 !important; max-width: 40ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-tp .is-style-mono-link.sp-tp-after { margin-top: 24px !important; font-size: 16px; line-height: 24px; }
.sp-tp .sp-tp-after a { line-height: 16.5px; }
/* Når passer dette? – teksten er 65ch her (60ch på tjenestesidene) */
.sp-fit.sp-fit--65 > li { padding-right: max(0px, calc(100% - 65ch - 56px)); }
.sp-fit > li.sp-fit__dash { color: var(--sp-mute); }
.sp-fit.sp-fit--65 > li { padding-bottom: 20px; }
.sp-fit.sp-fit--65 > li::before { line-height: 16.5px; }
.sp-fit > li.sp-fit__dash::before { content: "–"; }
/* Bruddfoto, full bredde */
.wp-block-image.sp-tp-break { margin-top: 0 !important; margin-bottom: 0 !important; overflow: hidden; background: var(--wp--preset--color--surface-3); }
.sp-tp-break img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 768px) { .sp-tp-break img { aspect-ratio: 21 / 9; } }
/* Slik jobber vi som techpilot */
.wp-block-columns.sp-tp-steps__head { margin: 0 0 var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .wp-block-columns.sp-tp-steps__head { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-tp-steps__intro { margin: 0 !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-tp-steps { display: grid; gap: 48px 40px; }
@media (min-width: 768px) { .sp-tp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-tp-steps > *, .sp-tp-steps__item > * { margin: 0 !important; }
.sp-tp-steps__item > .sp-tp-steps__text { margin-top: 12px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
/* Bilderekka: overskriftsraden er 4/8 */
.sp-tp-cases .sp-cases__head { margin-bottom: var(--wp--custom--space--128) !important; gap: 40px !important; }
@media (min-width: 768px) {
	.sp-tp-cases .sp-cases__head { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 40px !important; align-items: end; margin-bottom: 160px !important; }
	.sp-tp-cases .sp-cases__head h2 { grid-column: span 4; max-width: none; }
	.sp-tp-cases .sp-cases__head .is-style-mono-link { grid-column: span 8; justify-self: start; padding-bottom: 0; }
}
.sp-tp-cases .sp-cases__head .is-style-mono-link { line-height: 16.5px; }
/* Referanse med tallrekke: 4:3-bilde i 4 kolonner, teksten i 8, toppjustert */
.sp-sd-quote--facts { align-items: start; }
@media (min-width: 768px) {
	.sp-sd-quote--facts .sp-ref__image { grid-column: span 4; }
	.sp-sd-quote--facts .sp-sd-quote__text { grid-column: span 8; }
}
.sp-ref__image { margin: 0 !important; overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); }
.sp-ref__image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.wp-block-group.sp-sd-quote__text > .sp-ref__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--sp-line); }
.sp-ref__fact > * { margin: 0 !important; }
.sp-ref__fact-value { font-family: var(--sp-mono); font-size: 28px; line-height: 36px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--sp-ink); }
.sp-sd-quote__text .sp-ref__fact-value { font-size: 28px; line-height: 36px; max-width: none; }
.sp-ref__fact > .sp-ref__fact-label { margin-top: 6px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--sp-mute); }
/* KI-rader: 2/6 av 8 kolonner */
.sp-tp-ki > * { margin: 0 !important; }
.sp-tp-ki > * + * { border-top: 1px solid var(--sp-line); }
.sp-tp-ki__row { display: grid; gap: 24px; padding: 24px 0; }
@media (min-width: 768px) {
	.sp-tp-ki__row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.sp-tp-ki__row > h3 { grid-column: span 2; }
	.sp-tp-ki__row > p { grid-column: span 6; }
}
.sp-tp-ki__row > * { margin: 0 !important; }
.sp-tp-ki__text { max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
/* FAQ som trekkspill (ett åpent om gangen) */
.sp-tp-faq { counter-reset: sp-faq; }
.sp-tp-faq > * { margin: 0 !important; }
.sp-tp-faq > * + * { border-top: 1px solid var(--sp-line); }
.sp-tp-faq__item summary { display: flex; align-items: baseline; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 28px; line-height: 36px; font-weight: 250; color: var(--sp-ink); transition: color 150ms ease; }
.sp-tp-faq__item summary::-webkit-details-marker { display: none; }
.sp-tp-faq__item summary::marker { content: ""; }
.sp-tp-faq__item summary:hover { color: var(--sp-blue); }
.sp-tp-faq__item summary::before { counter-increment: sp-faq; content: counter(sp-faq); flex: none; width: 32px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; font-weight: 400; color: var(--sp-mute); font-variant-numeric: tabular-nums; }
.sp-tp-faq__item summary::after { content: "+"; flex: none; margin-left: auto; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; font-weight: 400; color: var(--sp-mute); }
.sp-tp-faq__item[open] summary::after { content: "–"; }
.sp-tp-faq__item > p, .sp-tp-faq__body > p { margin: 0 !important; padding: 0 0 var(--wp--custom--space--24) var(--wp--custom--space--56); max-width: 65ch; box-sizing: border-box; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-tp-faq__item > * { margin: 0 !important; }
.sp-tp-faq__item .sp-tp-faq__body { overflow: hidden; }

/* ==========================================================================
   Kontakt (Kontakt.tsx) – bygger på kontaktskjemaets sp-contact-klasser
   ========================================================================== */
.sp-kt-hero + .sp-kt, .sp-kt + .sp-kt-office { margin-top: 0 !important; }
.sp-contact.sp-kt { margin-top: 0 !important; margin-bottom: 0 !important; }
@media (min-width: 782px) { .wp-block-columns.sp-kt-grid { gap: 40px; } }
@media (min-width: 768px) { .wp-block-columns.sp-kt-grid { gap: 64px; } }
@media (max-width: 781px) { .wp-block-columns.sp-kt-grid { gap: 40px; } }
.sp-kt-h2 { font-size: 38px !important; line-height: 45px !important; font-weight: 250; }
.sp-kt-form__title { margin: 0 0 32px !important; }
.sp-kt .sp-contact__form { gap: 24px; }
.sp-kt .sp-contact__label { color: var(--sp-mute); }
.sp-kt .sp-contact__form input::placeholder,
.sp-kt .sp-contact__form textarea::placeholder { color: var(--sp-mute); }
.sp-kt .sp-contact__actions > span { color: var(--sp-mute); }
.sp-kt .sp-contact__submit { font-weight: 500; }
.sp-kt .sp-contact__submit::after { width: 16px; height: 16px; }
/* Temavalg: radioknapper som piller */
.sp-kt-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.sp-kt-topics > legend.sp-contact__label { float: left; width: 100%; margin: 0 0 12px; padding: 0; }
.sp-kt-topics__list { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-kt .sp-contact__form label.sp-kt-pill { display: inline-flex; position: relative; font-size: 11px; line-height: 16.5px; }
.sp-kt-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sp-kt-pill span { display: block; padding: 8px 12px; border: 1px solid var(--sp-line); border-radius: 5px; background: #fff; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); transition: color 150ms ease, background-color 150ms ease; }
.sp-kt-pill:hover span { color: var(--sp-ink); }
.sp-kt-pill input:checked + span { border: 0; background: var(--sp-ink); color: var(--sp-paper); }
.sp-kt-pill input:focus-visible + span { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-kt .sp-contact__card .sp-contact__label { color: var(--sp-mute); }
/* Kontoret */
.sp-kt-office { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-kt-office { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-kt-office > * { margin-block-start: 0 !important; }
.wp-block-columns.sp-kt-office__grid { margin: 0 !important; gap: 40px; }
@media (min-width: 768px) {
	.wp-block-columns.sp-kt-office__grid { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px; align-items: center; }
	.sp-kt-office__grid > .sp-kt-office__media { grid-column: span 7; }
	.sp-kt-office__grid > .sp-kt-office__body { grid-column: span 5; }
}
.sp-kt-office__grid > .wp-block-column { margin: 0 !important; min-width: 0; }
.sp-kt-office__grid .wp-block-column > * { margin: 0 !important; }
.sp-kt-office__image { overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); }
.sp-kt-office__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sp-kt-office__body > .sp-kt-office__title { margin-bottom: 20px !important; }
.sp-kt-office__body > .sp-kt-office__text { margin-bottom: 28px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-kt-office__link a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sp-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-ink); text-decoration: none; transition: color 150ms ease; }
.sp-kt-office__link a::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat; }
.sp-kt-office__link a:hover { color: var(--sp-blue-dark); }
.sp-kt .sp-contact__actions { line-height: 21px; }

/* ==========================================================================
   Artikkel (innlegg) – ArticleLayout i prototypen, og varianten med grå
   topp og kontaktskjema (Techpilot-artikkelen). Innholdsbredde 72rem.
   ========================================================================== */
.sp-artpage > * { margin-block-start: 0 !important; }
.sp-arthead, .sp-artbody, .sp-rel, .sp-artcta { margin-top: 0 !important; margin-bottom: 0 !important; }
.sp-artpage .alignwide.sp-art-content { max-width: 72rem !important; }
.sp-art-content > * { margin-block-start: 0; }

/* Topp */
.sp-arthead { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--48); }
@media (min-width: 768px) { .sp-arthead { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--64); } }
.sp-art-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-art-crumbs a { color: var(--sp-mute); text-decoration: none; transition: color 150ms ease; }
.sp-art-crumbs a:hover { color: var(--sp-blue-dark); }
.sp-art-crumbs__sep { color: var(--sp-line); }
.sp-art-crumbs__current { color: var(--sp-blue); }
.sp-arthead--feature .sp-art-crumbs__current { font-weight: 600; }
.sp-arthead__title { margin: 0 0 32px !important; max-width: 20ch; font-size: 60px !important; line-height: 68px !important; font-weight: 250; }
.sp-arthead__lead { margin: 0 0 40px !important; }
.sp-arthead__lead p { margin: 0; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-arthead--feature .sp-arthead__title { text-wrap: balance; max-width: 900px; font-size: 72px !important; line-height: 80px !important; }
/* Mobil: artikkeltitler i samme størrelse som casetitlene (40px), ikke 60/72px. */
@media (max-width: 767px) {
	.sp-arthead__title,
	.sp-arthead--feature .sp-arthead__title,
	.sp-art-hero__title { font-size: 40px !important; line-height: 1.15 !important; text-wrap: balance; }
}
.sp-arthead--feature .sp-arthead__lead p { max-width: 720px; font-size: 22px; line-height: 30px; }
.sp-art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.02em; color: var(--sp-mute); } /* uten versaler (Petter 25.11) */
.sp-art-byline > span { display: inline-flex; align-items: center; gap: 8px; }
.sp-art-byline svg { flex: none; }

/* Brødtekst */
.sp-artbody { padding-bottom: var(--wp--custom--space--48); }
@media (min-width: 768px) { .sp-artbody { padding-bottom: var(--wp--custom--space--64); } }
.sp-artbody--feature { padding-top: var(--wp--custom--space--48); background: #fff; }
@media (min-width: 768px) { .sp-artbody--feature { padding-top: var(--wp--custom--space--64); } }
.sp-artbody__image { margin: 0 0 var(--wp--custom--space--48) !important; overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); }
@media (min-width: 768px) { .sp-artbody__image { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-artbody__image img { display: block; width: 100%; object-fit: cover; }
.sp-no-header-image .sp-artbody__image { display: none; }
.sp-art-draftnote { box-sizing: border-box; font-size: 16px; line-height: 24px; max-width: 720px; margin: 0 0 var(--wp--custom--space--48) !important; padding: 24px; border: 1px solid var(--sp-line); border-radius: 5px; background: #fff; }
@media (min-width: 768px) { .sp-art-draftnote { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-art-draftnote__badge { display: inline-block; margin-bottom: 16px; padding: 4px 10px; border-radius: 9999px; background: var(--wp--preset--color--orange, #FF6600); color: #232323; font-family: var(--sp-mono); font-size: 10px; line-height: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-art-draftnote p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 250; }

/* Flyt: vanlig marg-kollaps, som seksjonene i prototypen (mb 64/80,
   avsnitt 20 mellom, h2 28 over teksten, sitat/bilde 48/64 over og under). */
.sp-art-body { display: block; padding-bottom: var(--wp--custom--space--64); --sp-sec: 64px; --sp-brk: 48px; --sp-gap: 20px; }
@media (min-width: 768px) { .sp-art-body { padding-bottom: var(--wp--custom--space--80); --sp-sec: 80px; --sp-brk: 64px; } }
.sp-artbody--feature .sp-art-body { --sp-gap: 24px; }
.sp-art-body > * { max-width: 720px; margin: var(--sp-gap) 0 0 !important; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-art-body > :first-child { margin-top: 0 !important; }
.sp-art-body > h2 { max-width: 24ch; margin: var(--sp-sec) 0 28px !important; font-size: clamp(32px, 1.6rem + 1.6vw, 38px) !important; line-height: 1.18 !important; font-weight: 250; }
/* Mobil: de bevisste linjeskiftene i titlene gjelder bare desktop, og titlene balanseres (Petter 2026-11-16). */
@media (max-width: 767px) {
	.sp-art-body h2 br { display: none; }
	.sp-art-body h2 { text-wrap: balance; }
}
.sp-art-body > h2:first-child { margin-top: 0 !important; }
.sp-art-body > h2 + * { margin-top: 28px !important; }
.sp-art-body > h2 + .is-style-checklist { margin-top: 32px !important; }
.sp-art-body > h2 + .is-style-steps { margin-top: 32px !important; margin-bottom: 32px !important; }
.sp-art-body > :is(.is-style-pull, .sp-art-personquote, .sp-art-figure, .sp-art-intro) { margin-top: var(--sp-brk) !important; margin-bottom: var(--sp-brk) !important; }
.sp-art-body > .sp-art-cards { margin-top: var(--wp--custom--space--48) !important; margin-bottom: var(--wp--custom--space--48) !important; }
.sp-art-body > :not(h2, .is-style-pull, .sp-art-personquote, .sp-art-figure, .sp-art-intro, .sp-art-cards):has(+ :is(.is-style-pull, .sp-art-personquote, .sp-art-figure, .sp-art-intro, .sp-art-cards)) { margin-bottom: var(--sp-sec) !important; }
.sp-art-body > :is(.is-style-pull, .sp-art-personquote, .sp-art-figure, .sp-art-intro, .sp-art-cards) + h2 { margin-top: 0 !important; }
.sp-art-body > .sp-art-figure:first-child { margin-top: var(--sp-brk) !important; }
.sp-no-header-image .sp-artbody { padding-top: var(--wp--custom--space--48); }
@media (min-width: 768px) { .sp-no-header-image .sp-artbody { padding-top: var(--wp--custom--space--64); } }
.sp-art-body a:not(.wp-element-button) { color: var(--sp-blue); }
.sp-art-body strong { font-weight: 500; }

/* Bilde med bildetekst (full innholdsbredde) */
.sp-art-body > .sp-art-figure { max-width: none; }
.sp-art-figure img { display: block; width: 100%; height: auto; border-radius: 5px; }
.sp-art-figure figcaption { margin: 16px 0 0 !important; text-align: left; font-family: var(--wp--preset--font-family--lausanne); letter-spacing: normal; text-transform: none; font-size: 16px; line-height: 22px; font-weight: 250; opacity: 0.8; color: var(--sp-ink); }
.sp-art-figure--mute figcaption { margin-top: 12px !important; opacity: 1; color: var(--sp-mute); }

/* Innledning (fet første avsnitt) */
.sp-art-intro > * { margin: 0 !important; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-art-intro > .sp-art-intro__lead { margin-bottom: 32px !important; font-weight: 250; }
.sp-art-intro > * + *:not(:last-child) { margin-bottom: 24px !important; }

/* Uthevet sitat */
.wp-block-quote.is-style-pull, .sp-art-personquote { box-sizing: border-box; padding: 32px 0; border: 0; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
@media (min-width: 768px) { .wp-block-quote.is-style-pull, .sp-art-personquote { padding: 40px 0; } }
.wp-block-quote.is-style-pull > p, .sp-art-personquote .wp-block-quote > p { margin: 0; font-size: 22px; line-height: 30px; font-weight: 250; font-style: normal; color: var(--sp-ink); }
.wp-block-quote.is-style-pull cite { display: block; margin-top: 20px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; color: var(--sp-mute); }
.sp-art-personquote > * { margin: 0 !important; }
.sp-art-personquote .wp-block-quote.is-style-pull { margin-top: 32px !important; padding: 0; border: 0; }
.sp-art-person { display: flex; align-items: center; gap: 16px; }
.sp-art-person > * { margin: 0 !important; }
.sp-art-person__image { flex: none; width: 80px; height: 80px; overflow: hidden; border-radius: 9999px; background: var(--wp--preset--color--surface-3); }
.sp-art-person__image img { display: block; width: 80px; height: 80px; object-fit: cover; }
.sp-art-person__name { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--sp-mute); }
.sp-art-person__name strong { color: var(--sp-ink); }

/* Faktaliste */
:where(.sp-art-body) > .is-style-fact { margin-bottom: 8px !important; }
.sp-art-body .wp-block-list.is-style-fact { list-style: none; padding: 0; border-top: 1px solid var(--sp-line); counter-reset: sp-fact; }
.is-style-fact > li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; margin: 0; padding: 20px 0; font-size: 16px; line-height: 24px; color: var(--sp-mute); counter-increment: sp-fact; }
.is-style-fact > li + li { border-top: 1px solid var(--sp-line); }
.is-style-fact > li::before { grid-row: span 2; content: ""; width: 6px; height: 6px; margin-top: 11px; border-radius: 1px; background: var(--sp-blue); }
ol.is-style-fact > li::before { width: auto; height: auto; margin-top: 0; padding-top: 6px; border-radius: 0; background: none; content: counter(sp-fact); font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; color: var(--sp-blue); }
.is-style-fact > li > strong { display: block; margin-bottom: 6px; font-size: 20px; line-height: 26px; font-weight: 250; color: var(--sp-ink); }

/* Nummererte steg */
:where(.sp-art-body) > .is-style-steps { margin-bottom: 0 !important; }
.sp-art-body .wp-block-list.is-style-steps { list-style: none; padding: 0; counter-reset: sp-step; display: flex; flex-direction: column; gap: 28px; }
.is-style-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 20px; align-items: start; margin: 0; font-size: 18px; line-height: 28px; color: var(--sp-mute); counter-increment: sp-step; }
.is-style-steps > li::before { grid-row: span 2; padding-top: 9.5px; content: counter(sp-step); font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; font-weight: 600; color: var(--sp-blue); font-variant-numeric: tabular-nums; }
.is-style-steps > li > strong { display: block; margin-bottom: 8px; font-size: 22px; line-height: 28px; font-weight: 250; color: var(--sp-ink); }

/* Vanlig punktliste */
/* Artikler importert fra den gamle siden (2026-11-12): trekkspill med
   spørsmål og svar som FAQ-en på Techpilot-siden, spalter og media-tekst
   med artikkelens typografi. */
.sp-art-body > .wp-block-accordion { max-width: 720px; border-bottom: 1px solid var(--sp-line); }
.sp-art-body .wp-block-accordion-item { margin: 0 !important; border-top: 1px solid var(--sp-line); }
.sp-art-body .wp-block-accordion-heading { margin: 0 !important; font-size: inherit; }
.sp-art-body .wp-block-accordion-heading__toggle { display: flex; align-items: baseline; gap: 24px; width: 100%; padding: 20px 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; font-size: 22px; line-height: 28px; font-weight: 250; color: var(--sp-ink); transition: color 150ms ease; }
.sp-art-body .wp-block-accordion-heading__toggle:hover { color: var(--sp-blue); }
.sp-art-body .wp-block-accordion-heading__toggle:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-art-body .wp-block-accordion-heading__toggle-title strong { font-weight: inherit; }
.sp-art-body .wp-block-accordion-heading__toggle-icon { flex: none; margin-left: auto; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; color: var(--sp-mute); }
.sp-art-body .wp-block-accordion-panel { padding: 0 0 24px; }
.sp-art-body .wp-block-accordion-panel > * { margin: 0 !important; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-art-body .wp-block-accordion-panel > * + * { margin-top: 16px !important; }
.sp-art-body > :is(.wp-block-columns, .wp-block-media-text) { max-width: none; margin-top: var(--sp-brk) !important; margin-bottom: var(--sp-brk) !important; gap: 40px; }
/* Spalter med tekst holder seg innenfor tekstspalten (720 px); spalter med bare bilder går over hele bredden. */
.sp-art-body > :is(.wp-block-columns, .wp-block-media-text):has(p, h2, h3, h4, blockquote, ul, ol, .wp-block-buttons) { max-width: 720px; }
.sp-art-body :is(.wp-block-column, .wp-block-media-text__content) > * { margin: 0 !important; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-art-body :is(.wp-block-column, .wp-block-media-text__content) > * + * { margin-top: 20px !important; }
.sp-art-body :is(.wp-block-column, .wp-block-media-text__content) > h2 { font-size: 28px; line-height: 36px; }
.sp-art-body :is(.wp-block-column, .wp-block-media-text__content) > h3 { font-size: 22px; line-height: 28px; }
.sp-art-body .wp-block-media-text__content { padding: 0; }
.sp-art-body :is(.wp-block-column, .wp-block-media-text) img { display: block; width: 100%; height: auto; border-radius: 5px; }
.sp-art-body > .wp-block-buttons { margin-top: 32px !important; }
.sp-art-body > .wp-block-separator { max-width: 720px; margin-top: var(--sp-brk) !important; margin-bottom: 0 !important; border: 0; border-top: 1px solid var(--sp-line); }
.sp-art-body > h3 { font-size: 22px; line-height: 28px; font-weight: 250; }
.sp-art-body :is(h2, h3, h4) strong { font-weight: inherit; }
.sp-art-body > ol.wp-block-list:not([class*="is-style-"]) { padding-left: 24px; }
.sp-art-body > ol.wp-block-list:not([class*="is-style-"]) > li + li { margin-top: 8px; }
.sp-art-body > ol.wp-block-list:not([class*="is-style-"]) > li::marker { color: var(--sp-blue); font-family: var(--sp-mono); font-size: 13px; }
.sp-art-body > .wp-block-table { max-width: 720px; margin-top: 32px !important; margin-bottom: 32px !important; overflow-x: auto; }
.sp-art-body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 22px; }
.sp-art-body .wp-block-table :is(th, td) { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; padding: 12px 16px 12px 0; border: 0; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: top; }
.sp-art-body .wp-block-table thead :is(th, td), .sp-art-body .wp-block-table tr:first-child strong { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--sp-mute); }
.sp-art-body .wp-block-table thead { border-bottom: 1px solid var(--sp-line); }
.sp-art-body > ul.wp-block-list:not([class*="is-style-"]) { padding-left: 20px; list-style: disc; }
.sp-art-body > ul.wp-block-list:not([class*="is-style-"]) > li + li { margin-top: 8px; }
.sp-art-body > ul.wp-block-list:not([class*="is-style-"]) > li::marker { color: var(--sp-blue); }

/* Innebygd artikkellenke */
.sp-art-inlinelink a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sp-mono); font-size: 12px; line-height: 28px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sp-blue); text-decoration: none; transition: color 150ms ease; }
.sp-art-inlinelink a::after { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat; transition: transform 150ms ease; }
.sp-art-inlinelink a:hover { color: var(--sp-blue-dark); }
.sp-art-inlinelink a:hover::after { transform: translateX(4px); }

/* Tilnærmingskort */
.sp-art-body > .sp-art-cards { max-width: none; display: grid; gap: 24px; }
@media (min-width: 768px) { .sp-art-body > .sp-art-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.sp-art-cards > * { margin: 0 !important; }
.sp-art-cardbox { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--sp-line); border-radius: 5px; background: #fff; }
.sp-art-cardbox > * { margin: 0 !important; }
.sp-art-cardbox h3 { font-size: 22px !important; line-height: 28px !important; font-weight: 250; }
.sp-art-cardbox p { font-size: 16px; line-height: 22px; font-weight: 250; }

/* Huskeliste (avkrysning, JS bygger knappene) */
:where(.sp-art-body) > .is-style-checklist { margin-bottom: 32px !important; }
.sp-art-body .wp-block-list.is-style-checklist { list-style: none; padding: 0; border-radius: 5px; overflow: hidden; }
.is-style-checklist > li { margin: 0; padding: 16px 20px; background: #F5F7FA; font-size: 16px; line-height: 26px; font-weight: 500; color: var(--sp-ink); }
.is-style-checklist > li:nth-child(even) { background: #fff; }
.is-style-checklist > li + li { border-top: 1px solid #E5EAEF; }
@media (min-width: 768px) { .is-style-checklist > li { padding: 16px 24px; font-size: 18px; line-height: 28px; } }
.sp-check { display: flex; align-items: center; gap: 20px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sp-check__box { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid #B5BCC4; border-radius: 5px; transition: background-color 150ms ease, border-color 150ms ease; }
.sp-check[aria-checked="true"] .sp-check__box { border-color: var(--sp-blue); background: var(--sp-blue); }
.sp-check__box::after { content: ""; width: 14px; height: 14px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); opacity: 0; transition: transform 200ms ease-out, opacity 200ms ease-out; }
.sp-check[aria-checked="true"] .sp-check__box::after { transform: scale(1); opacity: 1; }
.sp-check[aria-checked="true"] .sp-check__text { font-weight: 500; }
.sp-art-body > .sp-check-transfer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sp-check-transfer button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 28px; box-sizing: border-box; border: 1px solid #B5BCC4; border-radius: 9999px; background: var(--sp-paper); color: var(--sp-ink); font-family: var(--wp--preset--font-family--lausanne); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.sp-check-transfer button::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat; transform: rotate(90deg); }
.sp-check-transfer button:not(:disabled):hover { border-color: var(--sp-blue); background: var(--sp-blue); color: #fff; }
.sp-check-transfer button:not(:disabled):active { border-color: var(--sp-blue-dark); background: var(--sp-blue-dark); }
.sp-check-transfer button:disabled { opacity: 0.5; cursor: not-allowed; }
.sp-check-transfer .sp-check-transfer__count { font-family: var(--sp-mono); }
.sp-check-transfer > span { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--sp-mute); }

/* Les også / Relaterte artikler */
.sp-rel { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-rel { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-rel--grey { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); border-top: 0; }
@media (min-width: 768px) { .sp-rel--grey { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-rel > * > * { margin-block-start: 0 !important; }
.sp-rel__head { gap: 16px; margin-bottom: 40px !important; }
@media (min-width: 768px) { .sp-rel__head { margin-bottom: var(--wp--custom--space--48) !important; } }
.sp-rel--grey .sp-rel__head { margin-bottom: var(--wp--custom--space--48) !important; }
.sp-rel__head > *, .sp-rel__headtext > * { margin: 0 !important; }
.sp-rel__eyebrow { margin-bottom: 12px !important; }
.sp-rel__heading { font-size: 38px !important; line-height: 45px !important; font-weight: 250; }
.sp-rel__all { line-height: 16.5px; }
.sp-rel__query > * { margin: 0 !important; }
.sp-rel__grid { display: grid; margin: 0; padding: 0; list-style: none; gap: 48px 32px; }
@media (min-width: 640px) { .sp-rel--plain .sp-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-rel--plain .sp-rel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-rel--grey .sp-rel__grid { gap: 32px; }
@media (min-width: 768px) { .sp-rel--grey .sp-rel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-rel__grid > li { position: relative; display: flex; flex-direction: column; margin: 0; }
.sp-rel__grid > li > * { margin: 0 !important; }
.sp-rel__grid > li > .sp-rel__image { overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); margin-bottom: 20px !important; }
.sp-rel__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.sp-rel--grey .sp-rel__image img { transition-duration: 500ms; }
.sp-rel__grid > li:hover .sp-rel__image img { transform: scale(1.02); }
.sp-rel--grey .sp-rel__grid > li:hover .sp-rel__image img { transform: scale(1.025); }
.sp-rel__grid > li > .sp-rel__kicker { margin-bottom: 12px !important; }
.sp-rel__grid > li > .sp-rel__title { margin-bottom: 12px !important; font-size: 22px !important; line-height: 28px !important; font-weight: 250; transition: color 150ms ease; }
.sp-rel__title a { color: inherit; text-decoration: none; }
.sp-rel__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sp-rel--plain .sp-rel__grid > li:hover .sp-rel__title { color: var(--sp-blue); }
.sp-rel--grey .sp-rel__grid > li > .sp-rel__title { font-size: 24px !important; line-height: 30px !important; }
.sp-rel__grid > li > .sp-rel__lead { margin-bottom: 16px !important; }
.sp-rel__lead p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 250; color: var(--sp-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-rel--grey .sp-rel__grid > li > .sp-rel__lead { margin-bottom: 20px !important; }
.sp-rel--grey .sp-rel__lead p { font-size: 15px; line-height: 22px; font-weight: 250; display: block; overflow: visible; }
.sp-rel__grid > li > .sp-rel__more { margin-top: auto !important; align-self: flex-start; }
.sp-rel--grey .sp-rel__grid > li > .sp-rel__more { margin-top: 0 !important; }
.sp-rel__grid > li:hover .sp-rel__more { color: var(--sp-blue-dark); }
.sp-rel__grid > li:hover .sp-rel__more::after { transform: translateX(4px); }

/* Avslutning */
.sp-artcta { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-artcta { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-artcta > * { margin-block-start: 0 !important; }
.sp-artcta__row { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 768px) { .sp-artcta__row { flex-direction: row; align-items: flex-end; gap: 64px; } }
.sp-artcta__row > * { margin: 0 !important; }
.sp-artcta__title { max-width: 640px; font-size: 38px !important; line-height: 45px !important; font-weight: 250; }
.sp-artcta__buttons { flex: none; }
/* Artikler som spørringsløkker (innlegg) */
.sp-art-featq, .sp-art-gridq { margin: 0 !important; }
.sp-art-featq > .wp-block-post-template, .sp-art-featq li { margin: 0; padding: 0; list-style: none; }
ul.sp-art-grid { margin: 0; padding: 0; list-style: none; }
.sp-art-grid > li { display: flex; margin: 0 !important; }
.sp-art-grid > li > .sp-art-card { flex: 1; }
.sp-art-grid > li.is-hidden { display: none !important; }
.sp-js .sp-art-grid > li.is-entering { animation: sp-case-in 400ms cubic-bezier(0.42, 0, 0.58, 1) both; animation-delay: calc(var(--sp-i, 0) * 60ms); }
.sp-art-card__tags { display: none !important; }
.sp-art-feat__lead p, .sp-art-card__lead p { margin: 0; }
.sp-art-feat__lead { margin: 0 0 28px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-art-card__lead p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-art-card__lead { display: block !important; -webkit-line-clamp: unset !important; }
.sp-art-feat__image img, .sp-art-card__image img { height: auto !important; }
.sp-art-feat .wp-block-post-title a, .sp-art-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.sp-art-featq .wp-block-post { position: relative; }
/* Variant «Artikkel med relaterte uten bilder» (Velge digital løsning) */
.sp-rel--text { padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-rel--text { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-rel--text .sp-rel__head { margin-bottom: var(--wp--custom--space--48) !important; }
.sp-rel--text .sp-rel__grid { gap: 32px; }
@media (min-width: 768px) { .sp-rel--text .sp-rel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-rel--text .sp-rel__grid > li > .sp-rel__lead { margin-bottom: 20px !important; }
.sp-rel--text .sp-rel__lead p { font-size: 16px; line-height: 22px; display: block; overflow: visible; }
.sp-rel--text .sp-rel__grid > li > .sp-rel__more { margin-top: 0 !important; }
.sp-artcta--text .sp-artcta__row { display: grid; gap: 32px; align-items: end; }
@media (min-width: 768px) {
	.sp-artcta--text .sp-artcta__row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
	.sp-artcta--text .sp-artcta__text { grid-column: span 8; }
	.sp-artcta--text .sp-artcta__buttons { grid-column: span 4; justify-content: flex-end; }
}
.sp-artcta__text > * { margin: 0 !important; }
.sp-artcta--text .sp-artcta__title { max-width: 1000px; }
.sp-artcta__text > .sp-artcta__intro { margin-top: 20px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
/* Innfading i artikler (motion.js: initArticleMotion) */
.sp-js .sp-am { opacity: 0; transform: translateY(var(--sp-am-y, 16px)); transition: opacity var(--sp-am-d, 400ms) var(--sp-am-e, var(--sp-ease)), transform var(--sp-am-d, 400ms) var(--sp-am-e, var(--sp-ease)); transition-delay: var(--sp-am-dl, 0ms); }
.sp-js .sp-am.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sp-js .sp-am { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   Casesider (/prosjekter/<slug>) – components/case i prototypen.
   Seksjonene: full bredde med tone, innholdsboksen (88rem) bærer luft
   (80/112) og eventuell strek. tools/gen_case.py.
   ========================================================================== */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/inter-tight/inter-tight-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight/inter-tight-latin-700-normal.woff2") format("woff2"); }

.sp-cs, .sp-cs-hero, .sp-cs-bleed { margin-top: 0 !important; margin-bottom: 0 !important; }
.sp-cs > *, .sp-cs-hero > *, .sp-cs-bleed > * { margin-block-start: 0 !important; }
.sp-cs__box { box-sizing: border-box; padding-top: var(--wp--custom--space--80); padding-bottom: var(--wp--custom--space--80); }
@media (min-width: 768px) { .sp-cs__box { padding-top: var(--wp--custom--space--112); padding-bottom: var(--wp--custom--space--112); } }
.sp-cs--div > .sp-cs__box { border-top: 1px solid var(--sp-line); }
.sp-cs__box > * { margin-block-start: 0 !important; }
.sp-cs[id] { scroll-margin-top: 144px; }
.sp-cs .wp-block-group > *, .sp-cs .wp-block-column > * { margin-block-start: 0; }
@media (max-width: 767px) { .sp-casepage br.sp-md, .sp-cs br.sp-md, .sp-cs-hero br.sp-md { display: none; } }

.sp-cs-eyebrow { margin: 0 0 12px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue); }
.sp-cs--blue .sp-cs-eyebrow { color: var(--sp-paper); }
.sp-cs-h2 { margin: 0 !important; font-size: 44px !important; line-height: 52px !important; font-weight: 250; }
.sp-cs-caption { margin: 12px 0 0 !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }

/* Hero – bleed */
.sp-cs-hero--bleed { position: relative; }
.sp-cs-hero--bleed > .sp-cs-hero__image { position: relative; max-width: none !important; width: 100%; height: 60vh; min-height: 420px; margin: 0 !important; overflow: hidden; background: var(--sp-ink); }
@media (min-width: 768px) { .sp-cs-hero--bleed > .sp-cs-hero__image { height: 72vh; min-height: 520px; } }
.sp-cs-hero--bleed > .sp-cs-hero__image img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
@media (min-width: 768px) { .sp-cs-hero--bleed > .sp-cs-hero__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.90) 100%); } }
.sp-cs-hero__inner { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.sp-cs-hero__inner > * { margin: 0 !important; }
@media (min-width: 768px) {
	.sp-cs-hero--bleed > .sp-cs-hero__inner { position: absolute; left: var(--wp--style--root--padding-left); right: var(--wp--style--root--padding-right); bottom: 0; margin: 0 auto !important; box-sizing: border-box; padding-top: 0; padding-bottom: var(--wp--custom--space--80); grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; color: #fff; }
	.sp-cs-hero--bleed .sp-cs-hero__text { grid-column: span 8; }
	.sp-cs-hero--bleed .sp-cs-hero__site { grid-column: span 4; justify-self: end; }
}
.sp-cs-hero__text > * { margin: 0 !important; }
.sp-cs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-cs-crumbs a { color: var(--sp-mute); text-decoration: none; transition: color 150ms ease; }
.sp-cs-crumbs a:hover { color: var(--sp-blue-dark); }
.sp-cs-crumbs__sep { color: var(--sp-line); }
.sp-cs-crumbs__current { color: var(--sp-blue); }
.sp-cs-hero__title { margin-bottom: 24px !important; font-size: clamp(40px, 5vw, 60px) !important; line-height: 1.167 !important; font-weight: 250; }
.sp-cs-hero__intro { max-width: 52ch; font-size: 24px; line-height: 32px; font-weight: 250; color: var(--sp-mute); }
@media (max-width: 767px) { .sp-cs-hero__title { text-wrap: balance; } }
@media (min-width: 768px) {
	.sp-cs-hero--bleed .sp-cs-crumbs a { color: var(--sp-paper); }
	.sp-cs-hero--bleed .sp-cs-crumbs a:hover { color: #fff; }
	.sp-cs-hero--bleed .sp-cs-crumbs__sep { color: rgba(255, 255, 255, 0.4); }
	.sp-cs-hero--bleed .sp-cs-crumbs__current { color: #fff; }
	.sp-cs-hero--bleed .sp-cs-hero__title { color: #fff; }
	.sp-cs-hero--bleed .sp-cs-hero__intro { color: rgba(255, 255, 255, 0.9); }
	.sp-cs-hero--bleed .sp-cs-hero__site a { color: #fff; }
	.sp-cs-hero--bleed .sp-cs-hero__site a:hover { color: var(--sp-paper); }
}
.sp-cs-hero__site { font-family: var(--wp--preset--font-family--lausanne); font-size: 16px; line-height: 24px; letter-spacing: normal; text-transform: none; }
.sp-cs-hero__site a { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-cs-ext a::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E"); }
.sp-cs-ext a:hover::after { transform: translate(2px, -2px) !important; }

/* Seksjonsnavigasjon */
.sp-cs-nav { position: sticky; top: calc(96px + var(--wp-admin--admin-bar--height, 0px)); z-index: 20; margin-top: 0 !important; margin-bottom: 0 !important; background: var(--sp-paper); transition: opacity 300ms ease, transform 300ms ease; }
.sp-cs-nav.is-done { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.sp-cs-nav__in { position: relative; max-width: 88rem; margin: 0 auto; border-bottom: 1px solid var(--sp-line); }
.sp-cs-nav ul { display: flex; gap: 32px; margin: 0; padding: 16px 0; list-style: none; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.sp-cs-nav ul::-webkit-scrollbar { display: none; }
.sp-cs-nav li { flex: none; margin: 0; font-size: 16px; line-height: 26px; }
.sp-cs-nav a { display: inline-block; padding: 4px 0; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); text-decoration: none; transition: color 150ms ease; }
.sp-cs-nav a:hover, .sp-cs-nav a[aria-current] { color: var(--sp-ink); }
.sp-cs-nav__marker { display: none; position: absolute; bottom: -1px; left: 0; z-index: 1; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 7px solid var(--sp-blue); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
@media (min-width: 768px) { .sp-cs-nav__marker { display: block; } }
.sp-cs-nav__marker.is-on { opacity: 1; }

/* Fakta */
.sp-cs-meta > .sp-cs__box { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .sp-cs-meta > .sp-cs__box { padding-top: var(--wp--custom--space--48); padding-bottom: var(--wp--custom--space--48); } }
dl.sp-cs-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 0; }
@media (min-width: 768px) { dl.sp-cs-meta { grid-template-columns: repeat(12, minmax(0, 1fr)); } dl.sp-cs-meta > div { grid-column: span 3; } }
dl.sp-cs-meta dt { margin-bottom: 8px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
dl.sp-cs-meta dd { margin: 0; font-size: 16px; line-height: 22px; font-weight: 250; }

/* Kapittel med bilde og ruter */
.sp-cs-topics__top { display: grid; gap: 40px; }
@media (min-width: 768px) { .sp-cs-topics__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-cs-topics__top > * { margin: 0 !important; }
.sp-cs-topics__head > * { margin: 0 !important; }
.sp-cs-topics__head > .sp-cs-eyebrow { margin-bottom: 12px !important; }
.sp-cs-topics__intro { margin-top: 24px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-cs-topics__intro--more { margin-top: 16px !important; }
.sp-cs-fig { margin: 0 !important; }
.sp-cs-fig img { display: block; width: 100%; height: auto !important; border-radius: 5px; object-fit: cover; background: var(--wp--preset--color--surface-3); }
.sp-cs-fig--4-3 img { aspect-ratio: 4 / 3; }
.sp-cs-fig--4-5 img { aspect-ratio: 4 / 5; }
.sp-cs-fig--16-9 img { aspect-ratio: 16 / 9; }
.sp-cs-fig--16-10 img { aspect-ratio: 16 / 10; }
.sp-cs-fig figcaption { margin: 12px 0 0 !important; text-align: left; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-topics__grid { display: grid; gap: 40px; margin-top: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-cs-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--wp--custom--space--64) !important; } }
.sp-cs-topics__grid > *, .sp-cs-topic > * { margin: 0 !important; }
.sp-cs-topic__title { font-size: 24px !important; line-height: 30px !important; font-weight: 250; }
.sp-cs-topic > .sp-cs-topic__text { margin-top: 12px !important; max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }

/* Liste – kort */
.sp-cs-list__head { margin-bottom: var(--wp--custom--space--48) !important; }
@media (min-width: 768px) { .sp-cs-list__head { max-width: calc((100% - 440px) / 12 * 8 + 280px); margin-bottom: var(--wp--custom--space--56) !important; } }
.sp-cs-list__head > * { margin: 0 !important; }
.sp-cs-list__head > .sp-cs-eyebrow { margin-bottom: 12px !important; }
.sp-cs-list__intro { margin-top: 20px !important; max-width: 40ch; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
.sp-cs-list--cards .sp-cs-list__intro { max-width: 60ch; }
.sp-cs-cards { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .sp-cs-cards--2, .sp-cs-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Tre kort i bredden først fra 1024 px; på nettbrett ble teksten 133 px bred (Petter 18.11) */
@media (min-width: 1024px) { .sp-cs-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-cs-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-cs-card { display: flex; flex-direction: column; margin: 0; padding: 32px; border-radius: 5px; background: var(--sp-mist); }
.sp-cs--grey .sp-cs-card { background: #fff; }
.sp-cs-card__mark { display: flex; align-items: center; height: 28px; margin-bottom: 32px; }
.sp-cs-logo { display: flex; align-items: center; gap: 10px; }
.sp-cs-logo img { display: block; width: auto; }
/* Kortene som blokker (gruppe > merke, tittel, tekst): ingen blokkavstand mellom delene. */
.sp-cs-cards > *, .sp-cs-card > *, .sp-cs-card__mark > * { margin-block: 0; }
.sp-cs-card > .sp-cs-card__text { margin-top: 12px; }
.sp-cs-logo .wp-block-image { margin: 0; }
/* Høyden på teknologilogoene. !important fordi editoren gir bildeblokken egne mål (height: auto, width: 100 %). */
.sp-cs-logo .wp-block-image img { width: auto !important; max-width: none !important; }
.sp-cs-logo--h26 img { height: 26px !important; } .sp-cs-logo--h22 img { height: 22px !important; } .sp-cs-logo--h14 img { height: 14px !important; }
.sp-cs-logo__label, .sp-cs-num { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-card__title { margin: 0; font-size: 28px; line-height: 36px; font-weight: 250; }
.sp-cs-card__text { margin: 12px 0 0; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }

/* Skjermbilder */
.sp-cs-screens__head { display: grid; gap: 40px; margin-bottom: var(--wp--custom--space--48) !important; }
@media (min-width: 768px) { .sp-cs-screens__head { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: var(--wp--custom--space--64) !important; } .sp-cs-screens__title { grid-column: span 4; } .sp-cs-screens__head > .sp-cs-screens__intro { grid-column: span 8; } }
.sp-cs-screens__head > *, .sp-cs-screens__title > * { margin: 0 !important; }
.sp-cs-screens__title > .sp-cs-eyebrow { margin-bottom: 12px !important; }
.sp-cs-screens__head > .sp-cs-screens__intro { margin-top: 20px !important; max-width: 40ch; font-size: 16px; line-height: 22px; font-weight: 250; }
figure.sp-cs-screens { margin: 0; }
.sp-cs-frame { overflow: hidden; border: 1px solid var(--sp-line); border-radius: 5px; background: var(--sp-paper); }
.sp-cs-frame > img { display: block; width: 100%; height: auto; }
.sp-cs-frame--16-10 { aspect-ratio: 16 / 10; }
.sp-cs-frame--16-10 > img { height: 100%; object-fit: cover; }
.sp-cs-screens__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 768px) {
	.sp-cs-screens__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
	.sp-cs-span-4 { grid-column: span 4; } .sp-cs-span-6 { grid-column: span 6; } .sp-cs-span-8 { grid-column: span 8; } .sp-cs-span-12 { grid-column: span 12; }
}
.sp-cs-screen__under { margin-top: 12px; }
.sp-cs-screen__url { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.025em; color: var(--sp-mute); }
.sp-cs-screen__note { margin: 6px 0 0; max-width: 52ch; font-size: 14px; line-height: 20px; font-weight: 250; color: var(--sp-mute); }

/* Levende «Trust your equipment»-plate (a-ss.no, kundens CSS og font) */
.sp-cs-livebg--ass { display: flex; align-items: center; justify-content: center; background: #31332E; padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px); }
@media (min-width: 768px) { .sp-cs-livebg--ass { justify-content: flex-end; } }
.sp-ass-seal { position: relative; display: flex; align-items: center; box-sizing: border-box; width: clamp(300px, 34vw, 520px); aspect-ratio: 1 / 1.05; padding: clamp(36px, 4vw, 56px) clamp(32px, 3.5vw, 52px); overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #DC4D1A 0%, #7A1F12 100%); box-shadow: 6px 6px 20px rgba(0,0,0,.15); transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transform-style: preserve-3d; transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; isolation: isolate; user-select: none; }
.sp-ass-seal.is-tilting { box-shadow: 14px 24px 48px rgba(0,0,0,.3), 6px 6px 20px rgba(0,0,0,.15); transition-duration: 80ms, 320ms; }
.sp-ass-seal__shine { position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22) 0, rgba(255,255,255,.08) 30%, transparent 60%); opacity: 0; transition: opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.sp-ass-seal.is-tilting .sp-ass-seal__shine { opacity: 1; }
.sp-ass-seal__frame { position: absolute; inset: clamp(12px, 1.1vw, 16px); z-index: 3; border: 1.5px dashed rgba(255,255,255,.55); border-radius: 6px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); pointer-events: none; }
.sp-ass-seal__text { flex: none; position: relative; z-index: 2; color: #fff; text-transform: uppercase; font-family: "Inter Tight", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; font-weight: 900; font-size: clamp(36px, 4.4vw, 68px); letter-spacing: -0.02em; line-height: 0.95; }
.sp-ass-seal__text > span { display: block; }
.sp-ass-seal__text sup { margin-left: 0.08em; font-size: 0.42em; font-weight: 700; letter-spacing: 0; vertical-align: 1em; line-height: 0; }
@media (prefers-reduced-motion: reduce) { .sp-ass-seal { transform: none !important; transition: none; } .sp-ass-seal__shine { display: none; } }

/* Bruddbilde */
.sp-cs-bleed { background: var(--sp-paper); }
.sp-cs-bleed > .sp-cs-bleed__image { margin-top: 0 !important; margin-bottom: 0 !important; overflow: hidden; background: var(--sp-ink); }
.sp-cs-bleed__image img { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) { .sp-cs-bleed__image img { aspect-ratio: 21 / 9; } .sp-cs-bleed__image--tall img { aspect-ratio: 16 / 9; } }
.sp-cs-bleed > .sp-cs-bleed__cap { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 12px; }

/* 4/8 med rader (tjenester) */
.sp-cs-split { display: grid; gap: 40px; }
@media (min-width: 768px) { .sp-cs-split { grid-template-columns: repeat(12, minmax(0, 1fr)); } .sp-cs-split__left { grid-column: span 4; } .sp-cs-split > .wp-block-html, .sp-cs-split > dl, .sp-cs-split > ol, .sp-cs-split > :is(.sp-cs-brief__list, .sp-cs-scope, .sp-cs-statgrid) { grid-column: span 8; } }
.sp-cs-split > * { margin: 0 !important; }
.sp-cs-split__left > * { margin: 0 !important; }
.sp-cs-split__left > .sp-cs-eyebrow { margin-bottom: 12px !important; }
.sp-cs-split__left > .sp-cs-list__intro { margin-top: 20px !important; }
.sp-cs-scope { margin: 0; }
.sp-cs-scope > *, .sp-cs-scope__row > * { margin-block: 0; }
.sp-cs-scope__row { padding: 20px 0; }
.sp-cs-scope__row + .sp-cs-scope__row { border-top: 1px solid var(--sp-line); }
@media (min-width: 768px) { .sp-cs-scope__row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 40px; } .sp-cs-scope__row :is(dt, .sp-cs-scope__label) { grid-column: span 2; grid-row: span 2; padding-top: 4px; margin-bottom: 0 !important; } .sp-cs-scope__row :is(dd, .sp-cs-scope__value, .sp-cs-scope__note) { grid-column: 3 / span 6; } .sp-cs-scope__row { row-gap: 0; } }
.sp-cs-scope__row :is(dt, .sp-cs-scope__label) { margin-bottom: 8px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-scope__row :is(dd, .sp-cs-scope__value) { margin: 0; font-size: 16px; line-height: 22px; font-weight: 250; }
.sp-cs-scope__row :is(dd, .sp-cs-scope__value) a { color: var(--sp-ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--sp-line); text-underline-offset: 4px; transition: color 150ms ease, text-decoration-color 150ms ease; }
.sp-cs-scope__row :is(dd, .sp-cs-scope__value) a:hover { color: var(--sp-blue-dark); text-decoration-color: var(--sp-blue-dark); }
.sp-cs-scope__sep { color: var(--sp-mute); }
.sp-cs-scope__note { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--sp-mute); }

/* Spørsmål og svar */
.sp-cs-faq__heading { margin-bottom: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-cs-faq__heading { margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-cs-faq__grid { margin-top: 0 !important; }

/* Flere prosjekter */
.sp-cs-related__head { gap: 24px; margin-bottom: var(--wp--custom--space--48) !important; }
@media (min-width: 768px) { .sp-cs-related__head { margin-bottom: var(--wp--custom--space--56) !important; } }
.sp-cs-related__head > * { margin: 0 !important; }
.sp-cs-related__all { flex: none; padding-bottom: 4px; line-height: 16.5px; }
.sp-cs-related__grid { display: grid !important; gap: 40px; }
@media (min-width: 768px) { .sp-cs-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Sveip på mobil (Petter 18.11): kortene på én rad, 82 % av bredden så neste
   stikker fram, og snapper på plass. Fra 768 px: de tre første. */
@media (max-width: 767px) {
	.sp-cs-related__grid {
		grid-auto-flow: column;
		grid-auto-columns: 82%;
		gap: 16px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--wp--style--root--padding-left, 24px);
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 24px)) !important;
		padding-inline: var(--wp--style--root--padding-left, 24px);
		scrollbar-width: none;
	}
	.sp-cs-related__grid::-webkit-scrollbar { display: none; }
	.sp-cs-related__grid > .sp-case { scroll-snap-align: start; margin: 0 !important; }
}
@media (min-width: 768px) {
	.sp-cs-related__grid > .sp-case:nth-child(n+4) { display: none; }
}

/* Avslutning */
.sp-cs-cta__row { display: grid; gap: 40px; align-items: end; }
@media (min-width: 768px) { .sp-cs-cta__row { grid-template-columns: repeat(12, minmax(0, 1fr)); } .sp-cs-cta__text { grid-column: span 8; } .sp-cs-cta__buttons { grid-column: span 4; justify-content: flex-end; } }
.sp-cs-cta__row > *, .sp-cs-cta__text > * { margin: 0 !important; }
.sp-cs-cta__text > .sp-cs-cta__body { margin-top: 24px !important; max-width: 50ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-cs-nav { box-sizing: border-box; padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }
.sp-cs-screens__cell { min-width: 0; }
@media (max-width: 767px) { .sp-cs-cta__buttons { flex-direction: column; align-items: stretch !important; } .sp-cs-cta__buttons .wp-block-button__link { width: 100%; justify-content: center; } }
/* Bildeutsnitt for bildeblokker (gen_case: pos) */
.sp-objpos-0-0 img { object-position: 0% 0% !important; }
.sp-objpos-0-5 img { object-position: 0% 5% !important; }
.sp-objpos-0-10 img { object-position: 0% 10% !important; }
.sp-objpos-0-15 img { object-position: 0% 15% !important; }
.sp-objpos-0-20 img { object-position: 0% 20% !important; }
.sp-objpos-0-25 img { object-position: 0% 25% !important; }
.sp-objpos-0-30 img { object-position: 0% 30% !important; }
.sp-objpos-0-35 img { object-position: 0% 35% !important; }
.sp-objpos-0-40 img { object-position: 0% 40% !important; }
.sp-objpos-0-45 img { object-position: 0% 45% !important; }
.sp-objpos-0-50 img { object-position: 0% 50% !important; }
.sp-objpos-0-55 img { object-position: 0% 55% !important; }
.sp-objpos-0-60 img { object-position: 0% 60% !important; }
.sp-objpos-0-65 img { object-position: 0% 65% !important; }
.sp-objpos-0-70 img { object-position: 0% 70% !important; }
.sp-objpos-0-75 img { object-position: 0% 75% !important; }
.sp-objpos-0-80 img { object-position: 0% 80% !important; }
.sp-objpos-0-85 img { object-position: 0% 85% !important; }
.sp-objpos-0-90 img { object-position: 0% 90% !important; }
.sp-objpos-0-95 img { object-position: 0% 95% !important; }
.sp-objpos-0-100 img { object-position: 0% 100% !important; }
.sp-objpos-25-0 img { object-position: 25% 0% !important; }
.sp-objpos-25-5 img { object-position: 25% 5% !important; }
.sp-objpos-25-10 img { object-position: 25% 10% !important; }
.sp-objpos-25-15 img { object-position: 25% 15% !important; }
.sp-objpos-25-20 img { object-position: 25% 20% !important; }
.sp-objpos-25-25 img { object-position: 25% 25% !important; }
.sp-objpos-25-30 img { object-position: 25% 30% !important; }
.sp-objpos-25-35 img { object-position: 25% 35% !important; }
.sp-objpos-25-40 img { object-position: 25% 40% !important; }
.sp-objpos-25-45 img { object-position: 25% 45% !important; }
.sp-objpos-25-50 img { object-position: 25% 50% !important; }
.sp-objpos-25-55 img { object-position: 25% 55% !important; }
.sp-objpos-25-60 img { object-position: 25% 60% !important; }
.sp-objpos-25-65 img { object-position: 25% 65% !important; }
.sp-objpos-25-70 img { object-position: 25% 70% !important; }
.sp-objpos-25-75 img { object-position: 25% 75% !important; }
.sp-objpos-25-80 img { object-position: 25% 80% !important; }
.sp-objpos-25-85 img { object-position: 25% 85% !important; }
.sp-objpos-25-90 img { object-position: 25% 90% !important; }
.sp-objpos-25-95 img { object-position: 25% 95% !important; }
.sp-objpos-25-100 img { object-position: 25% 100% !important; }
.sp-objpos-50-0 img { object-position: 50% 0% !important; }
.sp-objpos-50-5 img { object-position: 50% 5% !important; }
.sp-objpos-50-10 img { object-position: 50% 10% !important; }
.sp-objpos-50-15 img { object-position: 50% 15% !important; }
.sp-objpos-50-20 img { object-position: 50% 20% !important; }
.sp-objpos-50-25 img { object-position: 50% 25% !important; }
.sp-objpos-50-30 img { object-position: 50% 30% !important; }
.sp-objpos-50-35 img { object-position: 50% 35% !important; }
.sp-objpos-50-40 img { object-position: 50% 40% !important; }
.sp-objpos-50-45 img { object-position: 50% 45% !important; }
.sp-objpos-50-55 img { object-position: 50% 55% !important; }
.sp-objpos-50-60 img { object-position: 50% 60% !important; }
.sp-objpos-50-65 img { object-position: 50% 65% !important; }
.sp-objpos-50-70 img { object-position: 50% 70% !important; }
.sp-objpos-50-75 img { object-position: 50% 75% !important; }
.sp-objpos-50-80 img { object-position: 50% 80% !important; }
.sp-objpos-50-85 img { object-position: 50% 85% !important; }
.sp-objpos-50-90 img { object-position: 50% 90% !important; }
.sp-objpos-50-95 img { object-position: 50% 95% !important; }
.sp-objpos-50-100 img { object-position: 50% 100% !important; }
.sp-objpos-60-0 img { object-position: 60% 0% !important; }
.sp-objpos-60-5 img { object-position: 60% 5% !important; }
.sp-objpos-60-10 img { object-position: 60% 10% !important; }
.sp-objpos-60-15 img { object-position: 60% 15% !important; }
.sp-objpos-60-20 img { object-position: 60% 20% !important; }
.sp-objpos-60-25 img { object-position: 60% 25% !important; }
.sp-objpos-60-30 img { object-position: 60% 30% !important; }
.sp-objpos-60-35 img { object-position: 60% 35% !important; }
.sp-objpos-60-40 img { object-position: 60% 40% !important; }
.sp-objpos-60-45 img { object-position: 60% 45% !important; }
.sp-objpos-60-50 img { object-position: 60% 50% !important; }
.sp-objpos-60-55 img { object-position: 60% 55% !important; }
.sp-objpos-60-60 img { object-position: 60% 60% !important; }
.sp-objpos-60-65 img { object-position: 60% 65% !important; }
.sp-objpos-60-70 img { object-position: 60% 70% !important; }
.sp-objpos-60-75 img { object-position: 60% 75% !important; }
.sp-objpos-60-80 img { object-position: 60% 80% !important; }
.sp-objpos-60-85 img { object-position: 60% 85% !important; }
.sp-objpos-60-90 img { object-position: 60% 90% !important; }
.sp-objpos-60-95 img { object-position: 60% 95% !important; }
.sp-objpos-60-100 img { object-position: 60% 100% !important; }
.sp-objpos-75-0 img { object-position: 75% 0% !important; }
.sp-objpos-75-5 img { object-position: 75% 5% !important; }
.sp-objpos-75-10 img { object-position: 75% 10% !important; }
.sp-objpos-75-15 img { object-position: 75% 15% !important; }
.sp-objpos-75-20 img { object-position: 75% 20% !important; }
.sp-objpos-75-25 img { object-position: 75% 25% !important; }
.sp-objpos-75-30 img { object-position: 75% 30% !important; }
.sp-objpos-75-35 img { object-position: 75% 35% !important; }
.sp-objpos-75-40 img { object-position: 75% 40% !important; }
.sp-objpos-75-45 img { object-position: 75% 45% !important; }
.sp-objpos-75-50 img { object-position: 75% 50% !important; }
.sp-objpos-75-55 img { object-position: 75% 55% !important; }
.sp-objpos-75-60 img { object-position: 75% 60% !important; }
.sp-objpos-75-65 img { object-position: 75% 65% !important; }
.sp-objpos-75-70 img { object-position: 75% 70% !important; }
.sp-objpos-75-75 img { object-position: 75% 75% !important; }
.sp-objpos-75-80 img { object-position: 75% 80% !important; }
.sp-objpos-75-85 img { object-position: 75% 85% !important; }
.sp-objpos-75-90 img { object-position: 75% 90% !important; }
.sp-objpos-75-95 img { object-position: 75% 95% !important; }
.sp-objpos-75-100 img { object-position: 75% 100% !important; }
.sp-objpos-100-0 img { object-position: 100% 0% !important; }
.sp-objpos-100-5 img { object-position: 100% 5% !important; }
.sp-objpos-100-10 img { object-position: 100% 10% !important; }
.sp-objpos-100-15 img { object-position: 100% 15% !important; }
.sp-objpos-100-20 img { object-position: 100% 20% !important; }
.sp-objpos-100-25 img { object-position: 100% 25% !important; }
.sp-objpos-100-30 img { object-position: 100% 30% !important; }
.sp-objpos-100-35 img { object-position: 100% 35% !important; }
.sp-objpos-100-40 img { object-position: 100% 40% !important; }
.sp-objpos-100-45 img { object-position: 100% 45% !important; }
.sp-objpos-100-50 img { object-position: 100% 50% !important; }
.sp-objpos-100-55 img { object-position: 100% 55% !important; }
.sp-objpos-100-60 img { object-position: 100% 60% !important; }
.sp-objpos-100-65 img { object-position: 100% 65% !important; }
.sp-objpos-100-70 img { object-position: 100% 70% !important; }
.sp-objpos-100-75 img { object-position: 100% 75% !important; }
.sp-objpos-100-80 img { object-position: 100% 80% !important; }
.sp-objpos-100-85 img { object-position: 100% 85% !important; }
.sp-objpos-100-90 img { object-position: 100% 90% !important; }
.sp-objpos-100-95 img { object-position: 100% 95% !important; }
.sp-objpos-100-100 img { object-position: 100% 100% !important; }

/* --- Casesider, flere moduler (K2): rader, modell, tall, kundesitat, galleri --- */
.sp-cs-logo img { filter: grayscale(1) brightness(0); opacity: 0.8; }
@media (min-width: 768px) { .sp-cs-topics__top--rev > .sp-cs-topics__fig { order: -1; } }

/* Liste – rader (4/8) */
ol.sp-cs-rows { margin: 0; padding: 0; list-style: none; }
.sp-cs-row { display: flex; align-items: baseline; gap: 24px; margin: 0; padding: 24px 0; }
.sp-cs-row + .sp-cs-row { border-top: 1px solid var(--sp-line); }
.sp-cs-row__mark { flex: none; width: 32px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--sp-mute); }
.sp-cs-rows--wide .sp-cs-row__mark { width: 56px; }
.sp-cs-row__body { flex: 1; min-width: 0; }
.sp-cs-row__title { margin: 0; font-size: 28px; line-height: 36px; font-weight: 250; }
.sp-cs-row__text { margin: 8px 0 0; max-width: 60ch; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
.sp-cs-row__logo { display: none; flex: none; align-self: flex-start; padding-top: 6px; }
@media (min-width: 640px) { .sp-cs-row__logo { display: flex; align-items: center; } }
.sp-cs-list--rows > .sp-cs-split__left > .sp-cs-list__intro { max-width: 40ch; }

/* Modell (ModelBreak) i casene: 64/96 luft, kant til kant på mobil */
.sp-cs-model > .sp-cs__box { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
@media (min-width: 768px) { .sp-cs-model > .sp-cs__box { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-cs-model .sp-model__eyebrow { margin: 0 0 12px !important; }
@media (max-width: 781px) {
	.sp-cs-model .wp-block-columns.sp-model { gap: 0; }
	.sp-cs-model .sp-model > .sp-model__figure { flex: 0 0 auto !important; width: calc(100% + 2 * var(--wp--custom--gutter)); }
}

/* Tall (CaseStats) på blått */
.sp-cs-stats > .sp-cs__box { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); }
@media (min-width: 768px) { .sp-cs-stats > .sp-cs__box { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-cs-split--center { align-items: center; }
.sp-cs--blue, .sp-cs--blue .sp-cs-h2, .sp-cs--blue .sp-cs-list__intro { color: var(--sp-paper); }
.sp-cs-split__left > .sp-cs-stats__source { margin-top: 24px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; }
@media (min-width: 768px) { .sp-cs-split__left > .sp-cs-stats__source { margin-top: 32px !important; } }
.sp-cs-statgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 0; }
@media (min-width: 768px) { .sp-cs-statgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-cs-stat { font-family: var(--sp-mono); }
.sp-cs-statgrid > * { margin-block: 0; }
.sp-cs-stat__label { margin: 0 0 12px; font-size: 10px; line-height: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-cs-stat__num { margin: 0; font-size: 36px; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .sp-cs-stat__num { font-size: 48px; } }
.sp-cs-stat__unit { margin-left: 2px; font-size: 24px; line-height: 32px; }
.sp-cs--blue .sp-cs-stat__unit { color: rgba(249, 249, 249, 0.75); }
.sp-cs-stat__sub { margin: 12px 0 0; font-size: 10px; line-height: 15px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Kundesitat (CaseCustomerQuote) */
.sp-cs-cq { display: grid; gap: 40px; align-items: center; }
@media (min-width: 768px) { .sp-cs-cq { grid-template-columns: repeat(12, minmax(0, 1fr)); } .sp-cs-quote__portrait { grid-column: span 3; } .sp-cs-cq > .sp-cs-quote__text { grid-column: 5 / span 8; } }
.sp-cs-cq > * { margin: 0 !important; }
.sp-cs-quote__portrait { max-width: 232px; aspect-ratio: 1; overflow: hidden; border-radius: 9999px; background: var(--wp--preset--color--surface-3); }
@media (min-width: 768px) { .sp-cs-quote__portrait { max-width: none; } }
.sp-cs-quote__portrait img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.wp-block-quote.sp-cs-quote__text { margin: 0; padding: 0; border: 0; }
.sp-cs-quote__text p { margin: 0 !important; max-width: 40ch; font-size: 28px; line-height: 36px; font-weight: 250; font-style: normal; text-wrap: balance; }
.sp-cs-quote__text cite { display: block; margin-top: 24px; font-family: var(--wp--preset--font-family--lausanne); font-size: 16px; line-height: 22px; font-weight: 250; font-style: normal; letter-spacing: normal; text-transform: none; color: var(--sp-ink); }
.sp-cs-quote__text cite span { color: var(--sp-mute); }

/* Galleri (CaseGallery): 3 spalter, 1-spaltere 3/4 setter radhøyden */
.sp-cs-gal { display: grid; gap: 40px; }
@media (min-width: 768px) { .sp-cs-gal { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; } .sp-cs-gal__item--1 { grid-column: span 4; } .sp-cs-gal__item--2 { grid-column: span 8; } .sp-cs-gal__item--3 { grid-column: span 12; } }
.sp-cs-gal > * { margin: 0 !important; }
.sp-cs-gal__item { overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); }
.sp-cs-gal__item img { display: block; width: 100%; height: auto !important; object-fit: cover; aspect-ratio: 16 / 10; }
.sp-cs-gal__item--1 img { aspect-ratio: 3 / 4; }
/* Som prototypen: 2-spalteren står i bildets eget format (raden blir like høy som den) */
@media (min-width: 768px) { .sp-cs-gal__item--2 img { aspect-ratio: auto; } .sp-cs-gal__item--3 img { aspect-ratio: 21 / 9; } }

/* Avslutning med liten linje under knappen */
@media (min-width: 768px) { .sp-cs-cta__action { grid-column: span 4; display: flex; flex-direction: column; align-items: flex-end; } }
.sp-cs-cta__action > * { margin: 0 !important; }
.sp-cs-cta__action > .sp-cs-cta__note { margin-top: 12px !important; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-model .sp-model__title { font-size: 28px; }
/* Heroen går kant til kant (seksjonen har global luft), bildeteksten under bruddbildet følger innholdsbredden */
.sp-cs-hero--bleed > .sp-cs-hero__image { width: auto; margin-left: calc(-1 * var(--wp--style--root--padding-left)) !important; margin-right: calc(-1 * var(--wp--style--root--padding-right)) !important; }
.sp-cs-bleed > .sp-cs-bleed__cap { margin-left: auto !important; margin-right: auto !important; }

/* --- Casesider (Visitech): hero wide, split 6/6, sitat på blått --- */
.sp-cs-hero--wide > .sp-cs__box { padding-top: var(--wp--custom--space--48); padding-bottom: 40px; }
@media (min-width: 768px) { .sp-cs-hero--wide > .sp-cs__box { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--56); } }
.sp-cs-hero--wide .sp-cs-hero__text { margin-bottom: var(--wp--custom--space--48) !important; }
@media (min-width: 768px) { .sp-cs-hero--wide .sp-cs-hero__text { max-width: calc((100% - 440px) / 12 * 8 + 280px); margin-bottom: var(--wp--custom--space--64) !important; } }
.sp-cs-hero--wide .sp-cs-hero__title { margin-bottom: 28px !important; }
.sp-cs-hero--wide .sp-cs-hero__image { margin: 0 !important; overflow: hidden; border-radius: 5px; background: var(--wp--preset--color--surface-3); }
.sp-cs-hero--wide .sp-cs-hero__image img { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 768px) { .sp-cs-hero--wide .sp-cs-hero__image img { aspect-ratio: 16 / 9; } }
.sp-cs-hero--wide .sp-cs-hero__image video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 768px) { .sp-cs-hero--wide .sp-cs-hero__image video { aspect-ratio: 16 / 9; } }
.sp-cs-hero--wide .sp-cs-hero__image--contain { background: #fff; }
.sp-cs-hero--wide .sp-cs-hero__image--contain :is(img, video) { object-fit: contain; }

.sp-cs-split6 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 768px) { .sp-cs-split6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-cs-split6--rev > .sp-cs-split6__fig { order: 2; } }
.sp-cs-split6 > *, .sp-cs-split6__body > * { margin: 0 !important; }
.sp-cs-split6__body > .sp-cs-eyebrow { margin-bottom: 12px !important; }
.sp-cs-split6__body > .sp-cs-split6__title { margin-bottom: 20px !important; font-size: 28px !important; line-height: 36px !important; font-weight: 250; }
.sp-cs-split6__text { max-width: 65ch; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-cs-split6__body > .sp-cs-split6__text + .sp-cs-split6__text { margin-top: 20px !important; }
.sp-cs-split6__link a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sp-mono); font-size: 11px; line-height: 28px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue); text-decoration: none; transition: color 150ms ease; }
.sp-cs-split6__link a:hover { color: var(--sp-blue-dark); }

.sp-cs--blue .sp-cs-quote__text p, .sp-cs--blue .sp-cs-quote__text cite, .sp-cs--blue .sp-cs-quote__text cite span { color: var(--sp-paper); }

/* --- Casesider (Foreldreutvalgene): tette rader, flere lenker i split --- */
.sp-cs-rows--dense .sp-cs-row { padding: 16px 0; }
.sp-cs-rows--dense .sp-cs-row__title { font-size: 18px; line-height: 28px; }
.sp-cs-split6__links { display: flex; flex-direction: column; gap: 8px; }
.sp-cs-split6__links br { display: none; }

/* --- Casesider (Skagerak): bilde over hele bredden i kapitlet, to bilder i split, zoom i portrett --- */
.sp-cs-fig--1-1 img { aspect-ratio: 1 / 1; }
.sp-cs__box > .sp-cs-topics__fig--wide { margin-top: var(--wp--custom--space--56) !important; }
@media (min-width: 768px) { .sp-cs__box > .sp-cs-topics__fig--wide { margin-top: var(--wp--custom--space--64) !important; } }
.sp-cs-split6__fig--pair > * { margin: 0 !important; }
.sp-cs-split6__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.sp-cs-split6__pair > * { margin: 0 !important; }
.sp-cs-split6__fig--pair > .sp-cs-split6__cap { margin-top: 12px !important; }
.sp-cs-quote__portrait.sp-cs-zoom-150 img { transform: scale(1.5); }

/* ==========================================================================
   Personvern (Personvern.tsx) – hero 4/8 på mist, så ett 4/8-par per avsnitt
   ========================================================================== */
.sp-pv-hero { padding-top: var(--wp--custom--space--96) !important; padding-bottom: var(--wp--custom--space--96) !important; margin-top: 0 !important; }
.sp-pv-hero + .sp-pv { margin-top: 0 !important; }
.sp-pv-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 40px; }
.sp-pv-row > * { margin: 0 !important; min-width: 0; }
.sp-pv-hero__left, .sp-pv-art__left { grid-column: span 4; }
.sp-pv-hero__right, .sp-pv-art__right { grid-column: span 8; }
.sp-pv-hero__right { padding-top: var(--wp--custom--space--64); }
.sp-pv-row > * > * { margin-top: 0; margin-bottom: 0; }
.sp-pv-eyebrow { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue); margin: 0 0 32px !important; }
.sp-pv-title { margin: 0 !important; }
.sp-pv-intro { font-size: 20px; line-height: 30px; font-weight: 250; color: var(--sp-mute); max-width: 52ch; margin: 0 !important; }
.sp-pv-date { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); margin: 32px 0 0 !important; }
.wp-block-list.sp-pv-toc { list-style: none; margin: 40px 0 0 !important; padding: 0; display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 8px; }
.sp-pv-toc > li { margin: 0; padding: 0; box-sizing: border-box; height: 29.5px; }
.sp-pv-toc a { display: inline-block; padding: 6px 0; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue); text-decoration: none; transition: color 150ms; }
.sp-pv-toc a:hover { color: var(--sp-blue-dark); }
.sp-pv { margin-top: 0 !important; }
.sp-pv-list > * { margin: 0 !important; }
.sp-pv-art { padding: var(--wp--custom--space--80) 0; scroll-margin-top: 96px; }
.sp-pv-art + .sp-pv-art { border-top: 1px solid var(--sp-line); }
.sp-pv-h2 { font-size: 44px !important; line-height: 52px !important; font-weight: 250; margin: 0 !important; }
.sp-pv-p { font-size: 18px; line-height: 28px; font-weight: 250; max-width: 65ch; margin: 0 !important; }
.sp-pv-p + .sp-pv-p { margin-top: 20px !important; }
.sp-pv-items { margin: 32px 0 0 !important; counter-reset: sp-pv; }
.sp-pv-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 24px; padding: 24px 0; margin: 0 !important; counter-increment: sp-pv; }
.sp-pv-item + .sp-pv-item { border-top: 1px solid var(--sp-line); }
.sp-pv-item::before { content: counter(sp-pv); grid-column: 1; grid-row: 1; align-self: baseline; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; color: var(--sp-mute); font-variant-numeric: tabular-nums; }
.sp-pv-item > * { grid-column: 2; margin: 0 !important; }
.sp-pv-item__title { grid-row: 1; align-self: baseline; font-size: 28px !important; line-height: 36px !important; font-weight: 250; }
.sp-pv-item__body { font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); max-width: 60ch; margin-top: 8px !important; }
@media (max-width: 767px) {
	.sp-pv-hero { padding-top: var(--wp--custom--space--64) !important; padding-bottom: var(--wp--custom--space--64) !important; }
	.sp-pv-row { grid-template-columns: minmax(0, 1fr); }
	.sp-pv-hero__left, .sp-pv-art__left, .sp-pv-hero__right, .sp-pv-art__right { grid-column: 1 / -1; }
	.sp-pv-hero__right { padding-top: 0; }
	.sp-pv-art { padding: var(--wp--custom--space--56) 0; }
}

/* ==========================================================================
   Prosjekter 2 (test) – fullskjerm med uendelig karusell (gen_prosjekter2.py)
   Hvert prosjekt er en gruppe .sp-ps__item med vanlige blokker (bilde,
   stikkord, tittel, tekst, tags, knapp) og redigeres i WordPress.
   motion.js initProjectStage bygger scenen av gruppene (.is-enhanced):
   bildet fyller skjermen, også bak headeren og miniatyrene.
   Uten JS og i editoren: prosjektene står som en liste.
   ========================================================================== */
.sp-ps {
	--ps-tw: 150px;          /* miniatyrbredde */
	--ps-gap: 16px;
	--ps-active: 1.4;        /* skalering på den aktive */
	--ps-rail: 176px;        /* høyden på karusellstripa */
	--ps-dur: 7000ms;        /* autoavspilling */
	margin-top: 0 !important; margin-bottom: 0 !important;
	background: #0d0d0d;
	color: #f9f9f9;
}
.sp-ps__item > * { margin: 0; }
.sp-ps__kicker, .sp-ps__tags li, .sp-ps__count {
	font-family: var(--sp-mono); font-size: 11px; line-height: 16px;
	letter-spacing: 0.1em; text-transform: uppercase;
}
.sp-ps__kicker { color: rgba(249, 249, 249, 0.85); margin-bottom: 16px; }
.sp-ps__title {
	font-family: var(--wp--preset--font-family--lausanne);
	font-size: clamp(40px, 5.4vw, 78px) !important; line-height: 1.02 !important; font-weight: 250 !important; letter-spacing: normal;
	color: #f9f9f9;
}
.sp-ps__title a { color: inherit; text-decoration: none; }
.sp-ps__text {
	margin-top: 20px !important; max-width: 52ch;
	font-size: 18px !important; line-height: 28px !important; font-weight: 250; color: rgba(249, 249, 249, 0.88);
}
.sp-ps__tags { list-style: none; padding: 0 !important; margin-top: 24px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-ps__tags li { font-size: 11.5px; line-height: 16px; padding: 7px 14px; margin: 0 !important; border: 1px solid rgba(249, 249, 249, 0.45); border-radius: 9999px; color: #f9f9f9; }
.sp-ps__actions { margin-top: 28px !important; }
.sp-ps .sp-ps__cta .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 24px; box-sizing: border-box;
	border: 1px solid #f9f9f9; border-radius: 9999px; background: transparent; color: #f9f9f9;
	font-size: 14px; line-height: 1; font-weight: 500; text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}
.sp-ps .sp-ps__cta .wp-block-button__link::after {
	content: ""; width: 12px; height: 12px; background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat;
	transition: transform 150ms ease;
}
.sp-ps .sp-ps__cta .wp-block-button__link:hover { background: #f9f9f9; color: var(--sp-ink); }
.sp-ps .sp-ps__cta .wp-block-button__link:hover::after { transform: translateX(3px); }
.sp-ps .sp-ps__cta .wp-block-button__link:focus-visible, .sp-ps__title a:focus-visible { outline: 2px solid #f9f9f9; outline-offset: 3px; }

/* Liste (uten JS og i editoren): bilde til venstre, tekst til høyre */
.sp-ps:not(.is-enhanced) {
	padding: 120px var(--wp--custom--gutter) 64px !important; box-sizing: border-box;
}
.sp-ps:not(.is-enhanced) .sp-ps__item {
	display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 40px; align-content: start;
	max-width: 88rem; margin: 0 auto; padding: 40px 0; border-top: 1px solid rgba(249, 249, 249, 0.18);
}
.sp-ps:not(.is-enhanced) .sp-ps__item > * { grid-column: 2; }
.sp-ps:not(.is-enhanced) .sp-ps__item > .sp-ps__img { grid-column: 1; grid-row: 1 / span 8; align-self: start; }
.sp-ps:not(.is-enhanced) .sp-ps__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.sp-ps:not(.is-enhanced) .sp-ps__title { font-size: 44px !important; }
/* Med JS: skjul lista til scenen er bygget, så den ikke blinker */
.sp-js .sp-ps:not(.is-enhanced):not(.is-list) { visibility: hidden; height: 100vh; height: 100svh; overflow: hidden; }
.sp-js .sp-ps:not(.is-enhanced):not(.is-list) .sp-ps__item ~ .sp-ps__item { display: none; } /* ingen lasting av de andre bildene før scenen er klar */

/* Scenen */
.sp-ps.is-enhanced {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 600px;
	overflow: hidden;
	isolation: isolate;
	padding: 0 !important;
}
.sp-ps.is-enhanced > * { margin: 0 !important; }
.sp-ps__stage { position: absolute; inset: 0; z-index: 0; }
.sp-ps.is-enhanced .sp-ps__bg { position: absolute; inset: 0; margin: 0; opacity: 0; display: none; transition: opacity 900ms var(--sp-ease); }
.sp-ps.is-enhanced .sp-ps__bg.is-near { display: block; }
.sp-ps.is-enhanced .sp-ps__bg.is-active { opacity: 1; z-index: 1; }
.sp-ps.is-enhanced .sp-ps__bg img {
	display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
	transform: scale(1.08);
	transition: transform 9s cubic-bezier(0.2, 0, 0.3, 1);
}
.sp-ps.is-enhanced .sp-ps__bg.is-active img { transform: scale(1); }
/* Toning: øverst for headeren, nederst for tekst og miniatyrer */
.sp-ps__shade {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0) 24%),
		linear-gradient(to top, rgba(0, 0, 0, 0.82) 0, rgba(0, 0, 0, 0.5) 32%, rgba(0, 0, 0, 0) 66%),
		linear-gradient(to right, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.35) 34%, rgba(0, 0, 0, 0) 62%);
}
.sp-ps__inner {
	position: absolute; left: 0; right: 0; bottom: var(--ps-rail); z-index: 3;
	box-sizing: border-box; width: 100%; max-width: calc(88rem + 2 * var(--wp--custom--gutter));
	margin: 0 auto !important; padding: 0 var(--wp--custom--gutter) 24px;
	pointer-events: none;
}
.sp-ps__info { max-width: 640px; pointer-events: auto; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }
.sp-ps.is-enhanced .sp-ps__item[hidden] { display: none; }
.sp-ps__count { color: rgba(249, 249, 249, 0.6); margin-bottom: 20px !important; font-variant-numeric: tabular-nums; }
.sp-ps__count span { color: #f9f9f9; }
/* Teksten kommer inn trinnvis når prosjektet skifter */
.sp-ps__item.is-entering > * { animation: sp-ps-in 600ms var(--sp-ease) both; }
.sp-ps__item.is-entering > :nth-child(2) { animation-delay: 40ms; }
.sp-ps__item.is-entering > :nth-child(3) { animation-delay: 80ms; }
.sp-ps__item.is-entering > :nth-child(4) { animation-delay: 120ms; }
.sp-ps__item.is-entering > :nth-child(5) { animation-delay: 160ms; }
.sp-ps__item.is-entering > :nth-child(6) { animation-delay: 200ms; }
@keyframes sp-ps-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Karusellstripa */
.sp-ps__rail {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: var(--ps-rail);
	display: flex; align-items: center; gap: 16px; padding: 0 var(--wp--custom--gutter); box-sizing: border-box;
}
.sp-ps__track {
	position: relative; flex: 1; align-self: stretch; overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
	touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.sp-ps__track.is-dragging { cursor: grabbing; }
.sp-ps__thumb {
	display: block; position: absolute; left: 50%; top: 50%;
	width: var(--ps-tw); aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden;
	margin-left: calc(var(--ps-tw) / -2); margin-top: calc(var(--ps-tw) / -3);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); background: #222;
	will-change: transform; -webkit-user-drag: none;
}
.sp-ps__thumb img {
	display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
	filter: brightness(0.7) saturate(0.85); transition: filter 300ms ease;
}
.sp-ps__thumb:hover img, .sp-ps__thumb.is-active img { filter: none; }
.sp-ps__thumb.is-active { box-shadow: 0 0 0 1.5px #f9f9f9, 0 14px 36px rgba(0, 0, 0, 0.5); }
.sp-ps__thumb:focus-visible { outline: 2px solid #f9f9f9; outline-offset: 3px; }
/* Fremdrift for autoavspilling på den aktive */
.sp-ps__thumb::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
	background: #f9f9f9; transform: scaleX(0); transform-origin: left;
}
.sp-ps__thumb.is-playing::after { animation: sp-ps-progress var(--ps-dur) linear forwards; }
.sp-ps.is-paused .sp-ps__thumb.is-playing::after { animation-play-state: paused; }
@keyframes sp-ps-progress { to { transform: scaleX(1); } }
.sp-ps__arrow {
	flex: none; width: 44px; height: 44px; padding: 0; border-radius: 9999px; cursor: pointer;
	border: 1px solid rgba(249, 249, 249, 0.5); background: rgba(0, 0, 0, 0.15); color: #f9f9f9;
	display: inline-flex; align-items: center; justify-content: center;
	transition: border-color 150ms ease, background-color 150ms ease;
}
.sp-ps__arrow::before {
	content: ""; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat;
}
.sp-ps__arrow--prev::before { transform: scaleX(-1); }
.sp-ps__arrow:hover { border-color: #f9f9f9; background: rgba(0, 0, 0, 0.35); }
.sp-ps__arrow:focus-visible { outline: 2px solid #f9f9f9; outline-offset: 3px; }

@media (max-width: 767px) {
	.sp-ps { --ps-tw: 96px; --ps-gap: 10px; --ps-active: 1.35; --ps-rail: 124px; }
	.sp-ps:not(.is-enhanced) { padding-top: var(--wp--custom--space--96) !important; }
	.sp-ps:not(.is-enhanced) .sp-ps__item { grid-template-columns: minmax(0, 1fr); }
	.sp-ps:not(.is-enhanced) .sp-ps__item > * { grid-column: 1; }
	.sp-ps:not(.is-enhanced) .sp-ps__item > .sp-ps__img { grid-row: auto; margin-bottom: 20px; }
	.sp-ps__arrow { display: none; }
	.sp-ps__rail { padding: 0; }
	.sp-ps__track { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); }
	.sp-ps__count { margin-bottom: 14px !important; }
	.sp-ps__kicker { margin-bottom: 10px; }
	.sp-ps__title, .sp-ps:not(.is-enhanced) .sp-ps__title { font-size: 36px !important; line-height: 1.08 !important; }
	.sp-ps__text { margin-top: 14px !important; font-size: 16px !important; line-height: 24px !important; }
	.sp-ps.is-enhanced .sp-ps__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.sp-ps.is-enhanced .sp-ps__tags { display: none; }
	.sp-ps__actions { margin-top: 18px !important; }
	.sp-ps .sp-ps__cta .wp-block-button__link { height: 40px; }
}
@media (max-height: 700px) and (min-width: 768px) {
	.sp-ps.is-enhanced .sp-ps__tags { display: none; }
	.sp-ps.is-enhanced .sp-ps__text { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.sp-ps.is-enhanced .sp-ps__bg { transition-duration: 200ms; }
	.sp-ps.is-enhanced .sp-ps__bg img, .sp-ps.is-enhanced .sp-ps__bg.is-active img { transform: none; transition: none; }
	.sp-ps__item.is-entering > * { animation: none; }
}

/* ==========================================================================
   Prosjekt-bånd (forsiden, mønsteret prosjekt-baand). .sp-pf-fig er ett
   prosjektbilde med navn og type under; .sp-pf-head er overskriftsraden.
   ========================================================================== */

.sp-pf-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: var(--wp--custom--space--56);
}

.sp-pf-head > * {
	margin: 0;
}

/* Ett prosjekt: bilde + navn og type. */
.sp-pf-fig {
	margin: 0;
}

.sp-pf-fig a {
	display: block;
	overflow: hidden;
	border-radius: 5px;
	background: var(--sp-mist);
}

.sp-pf-fig img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 900ms var(--sp-ease);
}

.sp-pf-fig a:hover img,
.sp-pf-fig a:focus-visible img {
	transform: scale(1.04);
}

.sp-pf-fig a:focus-visible {
	outline: 2px solid var(--sp-blue);
	outline-offset: 3px;
}

.sp-pf-fig figcaption {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 14px 0 0;
	text-align: left;
	font-family: var(--sp-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-mute);
}

.sp-pf-fig figcaption strong {
	font-family: var(--wp--preset--font-family--lausanne);
	font-weight: inherit;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sp-ink);
}

/* Båndet */

.sp-pf-band .sp-pf-band__row {
	overflow: hidden;
	margin-top: 0;
}

.sp-pf-band .sp-pf-band__row + .sp-pf-band__row {
	margin-top: 32px;
}

.sp-pf-band__track {
	display: flex;
	gap: 24px;
	width: max-content;
	margin: 0 !important;
}

.sp-pf-band {
	--sp-pf-h: clamp(240px, 26vw, 400px);
}

.sp-pf-band .sp-pf-fig {
	flex: none;
	margin: 0 !important;
	width: calc(var(--sp-pf-h) * 4 / 3);
}

.sp-pf-band .sp-pf-fig--p {
	width: calc(var(--sp-pf-h) * 3 / 4);
}

.sp-pf-band .sp-pf-fig a {
	height: var(--sp-pf-h);
}

.sp-pf-band .sp-pf-fig figcaption {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.sp-pf-band__row.is-running .sp-pf-band__track {
	animation: sp-pf-band 90s linear infinite;
}

.sp-pf-band__row--reverse.is-running .sp-pf-band__track {
	animation-direction: reverse;
	animation-duration: 110s;
}

.sp-pf-band__row.is-running:hover .sp-pf-band__track,
.sp-pf-band__row.is-running:focus-within .sp-pf-band__track {
	animation-play-state: paused;
}

@keyframes sp-pf-band {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - 12px)); }
}

/* Uten bevegelse: radene scrolles for hånd. */
@media (prefers-reduced-motion: reduce) {
	.sp-pf-band .sp-pf-band__row {
		overflow-x: auto;
		padding-inline: var(--wp--style--root--padding-left, 24px);
	}
}

@media (max-width: 767px) {
	.sp-pf-band {
		--sp-pf-h: 220px;
	}
	.sp-pf-band__track {
		gap: 16px;
	}
}

@media (max-width: 639px) {
	.sp-pf-head {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 32px;
	}
}

/* ==========================================================================
   Prosjektoversikten som oppslag (Prosjekter-siden). initCasesSpread i
   motion.js fordeler kortene på spalter (4/4/4 fra 1024 px, 6/6 fra 768)
   og legger på .is-spread. Gap 40 mellom spaltene og 64 mellom kortene;
   bildet har format etter motivet, så oppslaget er spaltestabler, ikke
   rader. Spaltene starter forskjøvet 0 / −50 / +25 px (--sp-shift) og
   glir på plass mens toppen av oppslaget går fra bunnen til toppen av
   vinduet. Kortene er de samme som på forsiden (se .sp-tiles).
   ========================================================================== */

.sp-proj-list .sp-cases-grid.is-spread {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
	align-items: start;
}

@media (min-width: 1024px) {
	.sp-proj-list .sp-cases-grid.is-spread {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sp-cases-col {
	display: flex;
	flex-direction: column;
	gap: 64px;
	transform: translateY(var(--sp-shift, 0));
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.sp-cases-col {
		transform: none;
	}
}

/* Blå boks i prosjektoversikten (.sp-case-promo). Én per filter; skriptet
   viser den som hører til valgt filter (.is-shown). Uten JS vises boksen
   for «Alle»; i editoren vises alle, så de kan redigeres. Utseendet er
   .sp-tile-promo, som på forsiden: uten eyebrow, bare blå, teksten i full
   paper, lys pille og mono-lenke med understrek ved hover. */
.sp-case-promo {
	display: none !important;
}

html:not(.sp-js) .sp-case-promo.sp-promo-alle,
.sp-case-promo.is-shown,
.editor-styles-wrapper .sp-case-promo {
	display: flex !important;
}

.sp-js .sp-case-promo.is-shown {
	animation: sp-case-in 500ms var(--sp-ease) both;
}

@media (prefers-reduced-motion: reduce) {
	.sp-js .sp-case-promo.is-shown {
		animation: none;
	}
}

/* ==========================================================================
   Prosjekter på forsiden – rutenett (ProjectGrid/ProjectTile i prototypen,
   Petter 2026-11-10). Mønsteret prosjekter-forside. Tre spalter fra
   1024 px, to fra 768, én på mobil; gap 40 × 64. Fem prosjekter og den blå
   boksen som nummer 4 (nederst til venstre). Under 1024 px vises tre
   prosjekter: boksen som nummer 3 (768–1023 og mobil).
   initTiles i motion.js legger på spalteforskyvningen (translate) og
   inntoningen (.is-waiting → .is-in).
   ========================================================================== */
.sp-home-proj { padding-top: var(--wp--custom--space--64); padding-bottom: var(--wp--custom--space--64); margin-block-start: 0 !important; }
@media (min-width: 768px) { .sp-home-proj { padding-top: var(--wp--custom--space--96); padding-bottom: var(--wp--custom--space--96); } }
.sp-home-proj > * { margin-block-start: 0 !important; }

.sp-home-proj__head { display: grid; gap: 40px; align-items: end; margin-bottom: var(--wp--custom--space--48) !important; }
.sp-home-proj__head > * { margin: 0 !important; }
@media (min-width: 768px) {
	.sp-home-proj__head { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: var(--wp--custom--space--64) !important; }
	.sp-home-proj__head > h2 { grid-column: 1 / span 8; }
	.sp-home-proj__head > .is-style-mono-link { grid-column: 9 / span 4; justify-self: end; }
}

.sp-tiles { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 64px 40px; }
@media (min-width: 768px) { .sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-tiles > * { margin: 0 !important; }
@media (max-width: 1023px) {
	.sp-tiles > :nth-child(n+5) { display: none !important; }
}
@media (max-width: 1023px) {
	.sp-tiles > :nth-child(3) { order: 1; } /* boksen før tredje prosjekt, også på mobil (Anders 18.11) */
}

/* Kortet: bilde etter motivet (liggende 4/3, .is-tall 4/5) i 5 px-ramme,
   overskrift i h3 (250, blå ved hover), tekst 16/22 i 250 og «Les saken».
   Uten eyebrow. Hover forstørrer bildet 1,03 i rammen; bildet glir litt
   i rammen ved scroll der nettleseren støtter det. Samme kort på forsiden
   (.sp-tiles) og /prosjekter (.sp-cases-grid). */
:is(.sp-tiles, .sp-cases-grid) .sp-case { display: flex; flex-direction: column; }
:is(.sp-tiles, .sp-cases-grid) .sp-case.is-hidden { display: none; } /* filteret på /prosjekter */
:is(.sp-tiles, .sp-cases-grid) .sp-case > * { margin: 0 !important; }
:is(.sp-tiles, .sp-cases-grid) .sp-case__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; background: var(--sp-mist); }
:is(.sp-tiles, .sp-cases-grid) .sp-case.is-tall .sp-case__image { aspect-ratio: 4 / 5; }
/* «Flere prosjekter» på casesidene: alltid 4/3 (Petter 2026-11-10). */
.sp-cs-related__grid .sp-case.is-tall .sp-case__image { aspect-ratio: 4 / 3; }
:is(.sp-tiles, .sp-cases-grid) .sp-case__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	transform: none;
	scale: 1;
	transition: scale 700ms ease-out;
}
:is(.sp-tiles, .sp-cases-grid) .sp-case:hover .sp-case__image img { transform: none; scale: 1.03; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		:is(.sp-tiles, .sp-cases-grid) .sp-case__image img { animation: sp-tile-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
	}
}
@keyframes sp-tile-drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }

:is(.sp-tiles, .sp-cases-grid) .sp-case__title {
	margin-top: 20px !important;
	font-size: var(--wp--preset--font-size--h-3);
	line-height: 1.28571;
	font-weight: 250;
	text-wrap: balance;
	transition: color 150ms ease;
}
:is(.sp-tiles, .sp-cases-grid) .sp-case__title br { display: none; }
@media (min-width: 1280px) {
	:is(.sp-tiles, .sp-cases-grid) .sp-case__title { text-wrap: wrap; }
	:is(.sp-tiles, .sp-cases-grid) .sp-case__title br { display: inline; }
}
:is(.sp-tiles, .sp-cases-grid) .sp-case:hover .sp-case__title { color: var(--sp-blue); }
:is(.sp-tiles, .sp-cases-grid) .sp-case__text { max-width: 60ch; margin-top: 12px !important; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
:is(.sp-tiles, .sp-cases-grid) .sp-case__more { align-self: flex-start; margin-top: 20px !important; }
:is(.sp-tiles, .sp-cases-grid) .sp-case:has(.sp-case__title a:focus-visible) { outline: none; }
:is(.sp-tiles, .sp-cases-grid) .sp-case:has(.sp-case__title a:focus-visible) .sp-case__image { outline: 2px solid var(--sp-blue); outline-offset: 3px; }

/* Inntoning: kortet løfter seg 24 px og tones inn når 15 % er synlig. */
:is(.sp-js .sp-tiles > .sp-case, .sp-js .sp-cases-grid .sp-case) { transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1); }
:is(.sp-js .sp-tiles > .sp-case, .sp-js .sp-cases-grid .sp-case).is-waiting { opacity: 0; transform: translateY(24px); }

/* Den blå boksen: fyller radens høyde, teksten nederst. Uten eyebrow. */
.sp-tile-promo {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 400px;
	padding: 32px;
	border-radius: 5px;
}
@media (min-width: 1024px) { .sp-tile-promo { min-height: 460px; padding: 40px; } }
.sp-tile-promo > * { margin: 0 !important; }
.sp-tile-promo > :first-child { margin-top: auto !important; padding-top: 40px; }
.sp-tile-promo__title { max-width: 18ch; font-size: var(--wp--preset--font-size--h-3); line-height: 1.28571; font-weight: 250; color: var(--sp-paper); text-wrap: balance; }
.sp-tile-promo__text { max-width: 38ch; margin-top: 16px !important; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-paper); }
.sp-tile-promo__actions { margin-top: 32px !important; column-gap: 32px; row-gap: 16px; }
.sp-tile-promo a:focus-visible { outline: 2px solid var(--sp-paper); outline-offset: 2px; }
.sp-tile-promo__actions { align-items: center; }

/* Knapp: lys pille med blå tekst (på blå flate). */
.wp-block-button.is-style-light > .wp-block-button__link {
	box-sizing: border-box;
	gap: 8px;
	height: 46px;
	min-height: 46px;
	padding: 0 28px;
	background: var(--sp-paper);
	color: var(--sp-blue);
	font-size: 14px;
	font-weight: 500;
}
.wp-block-button.is-style-light > .wp-block-button__link::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: #fff; color: var(--sp-blue); }

/* ==========================================================================
   Casemal 2026 (pilot: A-SS). Toppen står alene på mobil: kundenavn i H1,
   sammendrag og faktalinje før bildet. Resultatet (.sp-cs-proof) rett etter.
   .sp-cs-todo markerer fakta som må komme fra kunden – skal aldri ut.
   ========================================================================== */

/* Toppen */
.sp-cs-hero--lead > .sp-cs__box { padding-top: 32px; }
@media (min-width: 768px) { .sp-cs-hero--lead > .sp-cs__box { padding-top: var(--wp--custom--space--56); } }
.sp-cs-hero--lead .sp-cs-hero__title { font-size: clamp(32px, 1.4rem + 2.4vw, 56px); line-height: 1.08; margin-bottom: 20px !important; text-wrap: balance; }
.sp-cs-hero--lead .sp-cs-hero__intro { max-width: 60ch; }
.sp-cs-hero--lead .sp-cs-hero__text { margin-bottom: 40px !important; }
@media (min-width: 768px) { .sp-cs-hero--lead .sp-cs-hero__text { max-width: none; } }
.sp-cs-hero--lead .sp-cs-hero__text > * { margin: 0; }
.sp-cs-hero--lead .sp-cs-hero__site { margin-top: 24px !important; }
.sp-cs-hero--lead .sp-cs-hero__image img { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .sp-cs-hero--lead .sp-cs-hero__image img { aspect-ratio: 16 / 9; } }

dl.sp-cs-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 24px;
	margin: 28px 0 0 !important;
	padding-top: 20px;
	border-top: 1px solid var(--sp-line);
}
@media (min-width: 1024px) { dl.sp-cs-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
dl.sp-cs-facts > div { min-width: 0; }
dl.sp-cs-facts dt { margin-bottom: 4px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
dl.sp-cs-facts dd { margin: 0; font-size: 15px; line-height: 21px; font-weight: 250; }

/* Resultatet: nøkkeltall merket Nytt/Bedring, sitat under */
.sp-cs-proof__head > * { margin: 0 !important; }
.sp-cs-proof__head > .sp-cs-eyebrow { margin-bottom: 12px !important; }
.sp-cs-proof__head .sp-cs-list__intro { margin-top: 20px !important; max-width: 60ch; }
dl.sp-cs-proof__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; margin: 40px 0 0; }
@media (min-width: 1024px) { dl.sp-cs-proof__figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } dl.sp-cs-proof__figs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.sp-cs-proof__fig { display: flex; flex-direction: column; min-width: 0; padding-top: 16px; border-top: 1px solid var(--sp-line); }
.sp-cs-proof__tag { order: -1; margin-bottom: 16px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-proof__tag--nytt, .sp-cs-proof__tag--bedring { color: var(--sp-blue); }
.sp-cs-proof__fig dt { margin: 0 0 12px; font-size: clamp(40px, 1.8rem + 2vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--sp-blue); font-variant-numeric: tabular-nums; }
.sp-cs-proof__fig dd { margin: 0; font-size: 15px; line-height: 21px; font-weight: 250; }
.sp-cs-proof__note { display: block; margin-top: 8px; color: var(--sp-mute); font-size: 13px; line-height: 18px; }
.sp-cs-proof__quote { margin: var(--wp--custom--space--56) 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--sp-blue); max-width: 46rem; }
.sp-cs-proof__quote p { margin: 0 0 16px; font-size: clamp(20px, 1.1rem + 0.5vw, 24px); line-height: 1.35; font-weight: 250; }
.sp-cs-proof__quote cite { font-style: normal; font-family: var(--sp-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }

/* Hero i full bredde (variant lead): bildet eller filmen etter teksten */
.sp-cs-hero--lead > .sp-cs__box { padding-bottom: 40px; }
@media (min-width: 768px) { .sp-cs-hero--lead > .sp-cs__box { padding-bottom: var(--wp--custom--space--56); } }
.sp-cs-hero--lead .sp-cs-hero__text { margin-bottom: 0 !important; }
.sp-cs-hero--lead .sp-cs-hero__client { margin: 0 0 12px !important; }
.sp-cs-herobleed { margin: 0 !important; background: var(--sp-paper); }
.sp-cs-herobleed > .sp-cs-hero__media { margin: 0 !important; overflow: hidden; background: var(--sp-ink); }
.sp-cs-hero__media img, .sp-cs-hero__media video { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) { .sp-cs-hero__media img, .sp-cs-hero__media video { aspect-ratio: 21 / 9; } }

/* Bildene som viser: glir rolig i rammen */
.sp-drift { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
	/* Bare bilder: film zoomes ikke (Petter 19.11). */
	.sp-drift img { animation: sp-drift 24s ease-in-out infinite alternate; transform-origin: 50% 50%; }
	.sp-cs-gal .sp-drift:nth-child(2n) img { animation-delay: -8s; animation-direction: alternate-reverse; }
}
@keyframes sp-drift { from { transform: scale(1.06) translate3d(-1.2%, 0, 0); } to { transform: scale(1.06) translate3d(1.2%, -0.6%, 0); } }

/* Galleriet i ny mal: faste proporsjoner, så radene står like høye */
@media (min-width: 768px) { .sp-cs-gal--bold { gap: 24px; } .sp-cs-gal--bold .sp-cs-gal__item--2 img, .sp-cs-gal--bold .sp-cs-gal__item--2.sp-cs-ph { aspect-ratio: 16 / 10; } .sp-cs-gal--bold .sp-cs-gal__item--1 img, .sp-cs-gal--bold .sp-cs-gal__item--1.sp-cs-ph { aspect-ratio: 4 / 5; } }

/* I bruk: tredje skjermbilde under paret, samme seksjon */
.sp-cs-screens__more { margin-top: 40px; }
.sp-cs-frame--16-9 img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; display: block; }

/* Plassholder for bilde eller film som mangler */
.sp-cs-ph { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; margin: 0; padding: 20px; aspect-ratio: 16 / 10; border: 1px dashed var(--sp-mute); border-radius: 5px; background: var(--sp-mist); }
.sp-cs-ph--4-3 { aspect-ratio: 4 / 3; }
.sp-cs-ph--4-5 { aspect-ratio: 4 / 5; }
/* Seksjon som hører til malen, men mangler innhold (gen_case.py arrange). */
.sp-cs-ph--slot { aspect-ratio: auto; min-height: 160px; margin-top: 40px !important; }
.sp-cs-placeholder .sp-cs-eyebrow + .sp-cs-ph--slot { margin-top: 20px !important; }
.sp-cs--blue .sp-cs-ph { border-color: rgba(255, 255, 255, 0.7); color: var(--sp-ink); }
.sp-cs-contact__portrait.sp-cs-ph { box-sizing: border-box; }
.sp-cs-gal__item--1.sp-cs-ph { aspect-ratio: 3 / 4; }
.sp-cs-gal__item--3.sp-cs-ph { aspect-ratio: 21 / 9; }
.sp-cs-ph > * { margin: 0; }
.sp-cs-ph__kind { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-ph .sp-cs-todo { white-space: normal; }
/* Kundesitat uten portrett: rund ramme i samme størrelse som bildet. */
.sp-cs-quote__portrait.sp-cs-ph { box-sizing: border-box; aspect-ratio: 1; border-radius: 9999px; align-items: center; justify-content: center; text-align: center; }
/* Resultatet uten tall: plassholderen står på tallets plass. */
.sp-cs-stat__num .sp-cs-todo { font-size: 13px; vertical-align: middle; }

/* Kort fortalt (Petter 2026-11-10, CaseMeta «brief» i prototypen): 4/8,
   «Kort fortalt» i h3-størrelse til venstre, radene til høyre med etikett
   (mono 11) og verdi (16/22, 250) på samme linje, etikettkolonnen 208 px.
   Strek bare mellom radene. Strek over seksjonen (mot heroen) alltid, strek
   under bare når seksjonen under har samme tone (.sp-cs--below). */
.sp-cs-brief > .sp-cs__box { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .sp-cs-brief > .sp-cs__box { padding-top: var(--wp--custom--space--48); padding-bottom: var(--wp--custom--space--48); } }
.sp-cs-brief.sp-cs--below > .sp-cs__box { border-bottom: 1px solid var(--sp-line); }
.sp-cs-brief .sp-cs-split { gap: 24px 40px; }
.sp-cs-brief .sp-cs-brief__title { margin: 0 !important; font-size: var(--wp--preset--font-size--h-3) !important; line-height: 1.28571 !important; font-weight: 250; }
.sp-cs-brief__list { margin: 0; }
.sp-cs-brief__list > *, .sp-cs-brief__row > * { margin-block: 0; }
.sp-cs-brief__row { display: grid; gap: 4px 40px; padding: 12px 0; }
.sp-cs-brief__row:first-child { padding-top: 0; }
.sp-cs-brief__row:last-child { padding-bottom: 0; }
.sp-cs-brief__row + .sp-cs-brief__row { border-top: 1px solid var(--sp-line); }
@media (min-width: 640px) { .sp-cs-brief__row { grid-template-columns: 208px minmax(0, 1fr); align-items: baseline; } }
.sp-cs-brief__row :is(dt, .sp-cs-brief__label) { font-family: var(--sp-mono); font-size: 11px; line-height: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-brief__row :is(dd, .sp-cs-brief__value, .sp-cs-brief__results) { margin: 0; font-size: 16px; line-height: 22px; font-weight: 250; }
.sp-cs-brief__sep { color: var(--sp-mute); }
.sp-cs-brief__row :is(dd, .sp-cs-brief__value, .sp-cs-brief__results) a { color: inherit; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--sp-line); text-underline-offset: 4px; transition: color 150ms ease, text-decoration-color 150ms ease; }
.sp-cs-brief__row :is(dd, .sp-cs-brief__value, .sp-cs-brief__results) a:hover { color: var(--sp-blue-dark); text-decoration-color: var(--sp-blue-dark); }
.sp-cs-brief__row :is(dd, .sp-cs-brief__value, .sp-cs-brief__results) a.sp-cs-ext { display: inline-flex; align-items: center; gap: 4px; }
.sp-cs-brief__row :is(dd, .sp-cs-brief__value, .sp-cs-brief__results) a.sp-cs-ext::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 150ms ease; }
.sp-cs-brief__row :is(dd, .sp-cs-brief__value, .sp-cs-brief__results) a.sp-cs-ext:hover::after { transform: translate(2px, -2px); }
.sp-cs-brief__links, .sp-cs-brief__results { margin: 0; padding: 0; list-style: none; }
.sp-cs-brief__results li { position: relative; padding-left: 18px; }
.sp-cs-brief__results li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--sp-blue); }

/* Navigatoren i casemalen (slide, Petter 2026-11-10): står ikke i flyten.
   Ligger skjult under toppmenyen og glir ned når plassen etter «Kort
   fortalt» (sentinel) er scrollet forbi, og opp igjen etter siste kapittel
   (initCaseNav). «Kontakt <fornavn>» med pil ned helt til høyre. */
.sp-cs-nav-sentinel { height: 0; margin: 0 !important; }
.sp-cs-nav.sp-cs-nav--slide { position: fixed; left: 0; right: 0; top: calc(96px + var(--wp-admin--admin-bar--height, 0px)); transition: opacity 300ms ease, transform 300ms ease, visibility 300ms; }
.sp-cs-nav.sp-cs-nav--slide.is-away { opacity: 0; transform: translateY(-100%); visibility: hidden; pointer-events: none; }
.sp-cs-nav__row { display: flex; align-items: center; column-gap: 32px; }
.sp-cs-nav__row > ul { flex: 1; min-width: 0; }
a.sp-cs-nav__action { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--sp-blue); white-space: nowrap; }
a.sp-cs-nav__action:hover { color: var(--sp-blue-dark); }
a.sp-cs-nav__action::after { content: ""; width: 11px; height: 11px; background: currentColor; -webkit-mask: var(--sp-arrow) center / contain no-repeat; mask: var(--sp-arrow) center / contain no-repeat; transform: rotate(90deg); transition: transform 150ms ease; }
a.sp-cs-nav__action:hover::after { transform: rotate(90deg) translateX(2px); }
@media (prefers-reduced-motion: reduce) { .sp-cs-nav.sp-cs-nav--slide { transition: none; } }

/* Film i nettleservindu (BrowserFilm i prototypen): nøytral ramme med
   adresselinje, uten flate bak. Egen pauseknapp (initFilms). */
.sp-browser { overflow: hidden; border: 1px solid var(--sp-line); border-radius: 5px; background: var(--sp-paper); box-shadow: 0 18px 40px -22px rgba(26, 26, 26, 0.35); }
.sp-browser__bar { display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--sp-line); background: #fff; }
@media (min-width: 768px) { .sp-browser__bar { height: 32px; } }
.sp-browser__dots { display: flex; flex: none; gap: 6px; }
.sp-browser__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-line); }
@media (min-width: 768px) { .sp-browser__dots span { width: 10px; height: 10px; } }
.sp-browser__url { display: flex; flex: 1; min-width: 0; justify-content: center; }
.sp-browser__url span { max-width: 60%; overflow: hidden; padding: 0 12px; border-radius: 9999px; background: var(--sp-paper); color: var(--sp-mute); font-family: var(--sp-mono); font-size: 10px; line-height: 20px; letter-spacing: 0.025em; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .sp-browser__url span { font-size: 11px; } }
.sp-browser__end { flex: none; width: 42px; }
.sp-browser__screen { position: relative; margin: 0; }
.sp-browser > * { margin-block: 0; }
.wp-block-video.sp-browser__screen { aspect-ratio: 16 / 9; } /* 16:9 (Petter 19.11) */
.sp-browser__adr { margin: 0; padding: 8px 12px; font-family: var(--sp-mono); font-size: 11px; color: var(--sp-mute); }
.sp-browser__screen video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-film__toggle { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(26, 26, 26, 0.55); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color 150ms ease; }
.sp-film__toggle:hover { background: var(--sp-blue); }
.sp-film-host { position: relative; }
.sp-film__full { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(26, 26, 26, 0.55); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color 150ms ease; }
.sp-film__full:hover { background: var(--sp-blue); }
.sp-film__toggle ~ .sp-film__full { right: 56px; } /* ved siden av pauseknappen */
.sp-film__full:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-film__full::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat; }
video:fullscreen { object-fit: contain; background: #000; }
.sp-film__toggle:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-film__toggle::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='4' width='4' height='16' rx='1'/%3E%3Crect x='6' y='4' width='4' height='16' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='4' width='4' height='16' rx='1'/%3E%3Crect x='6' y='4' width='4' height='16' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.sp-film__toggle.is-paused::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E"); }
.sp-cs-topics__fig--film { margin: 0 !important; }
.sp-cs-topics__fig--film :is(figcaption, .sp-cs-fig__caption) { margin-top: 20px; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }

/* Kontaktperson (CaseContact, Petter 2026-11-10): 3 + 8 kolonner, teksten
   fra kolonne 5, gap 40. På mobil står teksten først og portrettet under. */
.sp-cs-contact { display: grid; gap: 40px; }
.sp-cs-contact > *, .sp-cs-contact__person > *, .sp-cs-contact__body > * { margin: 0 !important; }
.sp-cs-contact__person { order: 2; }
.sp-cs-contact__body { order: 1; }
@media (min-width: 768px) {
	.sp-cs-contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.sp-cs-contact__person { order: 0; grid-column: 1 / span 3; }
	.sp-cs-contact__body { order: 0; grid-column: 5 / span 8; }
}
.sp-cs-contact__portrait { max-width: 232px; overflow: hidden; border-radius: 5px; background: #fff; }
@media (min-width: 768px) { .sp-cs-contact__portrait { max-width: none; } }
.sp-cs-contact__portrait img { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; }
.sp-cs-contact__name { margin: 16px 0 0 !important; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--sp-ink); }
.sp-cs-contact__role { margin: 0 !important; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-mute); }
.sp-cs-contact__lines { margin: 16px 0 0 !important; font-family: var(--sp-mono); font-size: 11px; line-height: 24px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-cs-contact__lines a { display: inline-block; padding: 6px 0; margin: -6px 0; color: var(--sp-ink); text-decoration: none; transition: color 150ms ease; }
.sp-cs-contact__lines a:hover { color: var(--sp-blue-dark); }
.sp-cs-contact__lines a.sp-cs-contact__mail { text-transform: none; letter-spacing: normal; }
.sp-cs-contact .sp-cs-contact__heading { font-size: var(--wp--preset--font-size--h-2) !important; line-height: 1.18 !important; text-wrap: balance; }
@media (min-width: 768px) { .sp-cs-contact .sp-cs-contact__heading { text-wrap: wrap; } }
.sp-cs-contact__text { max-width: 50ch; margin-top: 16px !important; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-ink); }
.sp-cs-contact__heading + .sp-cs-contact__text { margin-top: 24px !important; }
.sp-cs-contact__action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px !important; }
.sp-cs-contact__action > * { margin: 0 !important; }
.sp-cs-contact__body > .sp-cs-contact__actions { margin-top: 40px !important; }
.sp-cs-contact__note { font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }

/* Seksjonsingressen (Petter 2026-11-10, INTRO_TEXT i prototypen): første
   avsnitt i alle casemodulene er lead, som ingressen i heroen: 20–24 px,
   linjehøyde 1,33, 250, dempet, maks 52ch. Resten er brødtekst 18/28. */
.sp-cs .sp-cs-topics__intro:not(.sp-cs-topics__intro--more),
.sp-cs .sp-cs-list__intro,
.sp-cs .sp-cs-screens__head > .sp-cs-screens__intro {
	max-width: 52ch !important;
	margin-top: 24px !important;
	font-size: clamp(20px, 1.2rem + 0.6vw, 24px) !important;
	line-height: 1.33333 !important;
	font-weight: 250;
	color: var(--sp-mute);
}
.sp-cs--blue .sp-cs-list__intro, .sp-cs--blue .sp-cs-topics__intro { color: var(--sp-paper) !important; }
.sp-cs .sp-cs-topics__intro--more { max-width: 65ch; margin-top: 16px !important; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-ink); }

/* Resultatet på blått */
.sp-cs--blue .sp-cs-proof__fig { border-top-color: rgba(249, 249, 249, 0.35); }
.sp-cs--blue .sp-cs-proof__tag, .sp-cs--blue .sp-cs-proof__tag--nytt, .sp-cs--blue .sp-cs-proof__tag--bedring { color: rgba(249, 249, 249, 0.8); }
.sp-cs--blue .sp-cs-proof__fig dt, .sp-cs--blue .sp-cs-proof__fig dd { color: var(--sp-paper); }
.sp-cs--blue .sp-cs-proof__note { color: rgba(249, 249, 249, 0.8); }
.sp-cs--blue .sp-cs-proof__quote { border-left-color: var(--sp-paper); color: var(--sp-paper); }
.sp-cs--blue .sp-cs-proof__quote cite { color: rgba(249, 249, 249, 0.8); }

/* Kontaktperson */
.sp-cs-person { display: grid; gap: 28px; align-items: center; }
@media (min-width: 768px) { .sp-cs-person { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.sp-cs-person > * { margin: 0 !important; }
.sp-cs-person__portrait { overflow: hidden; border-radius: 5px; max-width: 160px; }
@media (min-width: 768px) { .sp-cs-person__portrait { max-width: 360px; } }
.sp-cs-person__portrait img { display: block; width: 100%; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }
.sp-cs-person__text > * { margin: 0 !important; }
.sp-cs-person__role { margin: 12px 0 4px !important; font-size: 15px; line-height: 21px; font-weight: 250; color: var(--sp-mute); }
.sp-cs-person__name { margin: 0 0 16px !important; font-size: clamp(28px, 1.2rem + 1.6vw, 40px); line-height: 1.1; font-weight: 250; }
.sp-cs-person__lines { margin: 0 0 20px !important; padding: 0; list-style: none; font-size: 18px; line-height: 28px; font-weight: 250; }
.sp-cs-person__lines a { color: var(--sp-ink); text-decoration: none; }
.sp-cs-person__lines a:hover { color: var(--sp-blue-dark); text-decoration: underline; }
.sp-cs-person__about { max-width: 52ch; margin-bottom: 28px !important; font-size: 16px; line-height: 24px; font-weight: 250; }

/* Flere prosjekter: tekstene kuttes etter to linjer i sveiperaden på mobil
   i den nye malen (.sp-cs-hero--lead). Selve sveipet gjelder alle prosjektsider. */
@media (max-width: 767px) {
	body:has(.sp-cs-hero--lead) .sp-cs-related__grid .sp-case__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Plassholder for fakta fra kunden. Synlig med vilje – fjernes før publisering. */
.sp-cs-todo {
	display: inline-block;
	padding: 4px 8px;
	border: 1px dashed var(--sp-mute);
	border-radius: 5px;
	background: var(--sp-mist);
	color: var(--sp-ink);
	font-family: var(--sp-mono);
	font-size: 11px;
	line-height: 16.5px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	vertical-align: middle;
}
.sp-cs-proof__fig dt .sp-cs-todo { font-size: 11px; letter-spacing: 0.04em; }

/* ==========================================================================
   404: «Denne siden falt fra hverandre». Logoens seks bånd ligger spredt og
   kan dras på plass (initBrokenLogo i motion.js), med feilrapport, søk og
   veier videre. Logoen venstrestilles i scenen.
   ========================================================================== */
/* 404 (Petter 2026-11-10, IkkeFunnet i prototypen): 6/6 med gap 40,
   rapporten med strek bare mellom radene og verdiene i Lausanne,
   søket åpner spør-panelet med teksten, mono-lenker med pil. */
.sp-404 { padding-top: var(--wp--custom--space--48) !important; padding-bottom: var(--wp--custom--space--96) !important; }
@media (min-width: 768px) { .sp-404 { padding-top: var(--wp--custom--space--80) !important; padding-bottom: var(--wp--custom--space--128) !important; } }
.sp-404__grid { display: grid; gap: 40px; grid-template-areas: "head" "stage" "rest"; }
@media (min-width: 1024px) { .sp-404__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "head stage" "rest stage"; align-items: start; } }
.sp-404__grid > * { margin: 0 !important; min-width: 0; }
.sp-404__head { grid-area: head; }
.sp-404__rest { grid-area: rest; }
.sp-404-stage { grid-area: stage; }
.sp-404__head > * { margin: 0 !important; }
.sp-404__title { margin-top: 20px !important; max-width: 14ch; text-wrap: balance; }
.sp-404__lead { margin-top: 24px !important; max-width: 46ch; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
.sp-404__rest > * { margin: 0 !important; }
dl.sp-404-report { margin: 0 !important; }
.sp-404-report > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.sp-404-report > div + div { border-top: 1px solid var(--sp-line); }
.sp-404-report dt { font-family: var(--sp-mono); font-size: 11px; line-height: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-404-report dd { margin: 0; font-size: 16px; line-height: 22px; font-weight: 250; color: var(--sp-ink); overflow-wrap: anywhere; }
.sp-404__rest > .sp-404-search { display: flex; gap: 12px; margin-top: 32px !important; }
.sp-404-search input { flex: 1; min-width: 0; height: 46px; box-sizing: border-box; padding: 0 16px; border: 1px solid var(--sp-line); border-radius: 5px; background: var(--sp-paper); color: var(--sp-ink); font-family: inherit; font-size: 16px; font-weight: 250; }
.sp-404-search input::placeholder { color: var(--sp-mute); }
.sp-404-search input:focus { outline: none; border-color: var(--sp-blue); }
.sp-404-search button { flex: none; height: 46px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--sp-blue); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color var(--wp--custom--transition); }
.sp-404-search button:hover { background: var(--sp-blue-dark); }
.sp-404-search button:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 3px; }
.sp-404__rest > .sp-404-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px !important; padding: 0; list-style: none; }
.sp-404-links li { margin: 0; }

.sp-404-stage { position: relative; background: var(--sp-mist); border-radius: 5px; overflow: hidden; touch-action: none; }
.sp-404-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.sp-404-ghost path { fill: none; stroke: var(--sp-ink); stroke-opacity: 0.22; stroke-width: 0.6; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.sp-404-piece { cursor: grab; transform-box: fill-box; transform-origin: center; transition: transform 180ms cubic-bezier(.2, .7, .1, 1); }
.sp-404-piece path { fill: var(--sp-ink); }
.sp-404-piece:hover path { fill: var(--sp-blue); }
.sp-404-piece.is-drag { cursor: grabbing; transition: none; }
.sp-404-piece.is-drag path { fill: var(--sp-blue); }
.sp-404-piece.is-placed { cursor: default; }
.sp-404-piece.is-placed path, .sp-404-piece.is-placed:hover path { fill: var(--sp-ink); }
.sp-404-stage.is-auto .sp-404-piece { transition: transform 750ms cubic-bezier(.2, .7, .1, 1); }
.sp-404-stage.is-whole .sp-404-ghost { opacity: 0; transition: opacity 400ms ease; }
.sp-404-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 0 20px 20px; }
.sp-404-hint { margin: 0; font-family: var(--sp-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-mute); }
.sp-404-btn { height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--sp-ink); background: transparent; color: var(--sp-ink); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.sp-404-btn:hover { background: var(--sp-ink); color: var(--sp-paper); }
.sp-404-btn:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 3px; }
.sp-404-done { margin: 0; padding: 0 20px 20px; font-size: 16px; line-height: 24px; font-weight: 250; }
.sp-404-done:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .sp-404-piece, .sp-404-stage.is-auto .sp-404-piece { transition: none; } }

/* ---------------------------------------------------------------------------
   Ingresser: én størrelse overalt (Petter 2026-11-16, som prototypen).
   Lead-tokenet (clamp 20–24 px), linjehøyde 1,33 og vekt 250. Bredde, marger
   og farge står hos hver klasse.
   ------------------------------------------------------------------------- */
.has-lead-font-size,
.sp-hero .has-lead-font-size,
.sp-section:has(> .sp-team-cards) > .alignwide > .sp-measure-lead,
.sp-cs-hero__intro,
.sp-cs-topics__intro,
.sp-cs-list__intro,
.sp-proj-hero__intro,
.sp-art-hero__intro,
.sp-om-hero__intro,
.sp-cat-hero__ingress,
.sp-om-team__intro,
.sp-om-how__p,
.sp-sd-hero__intro,
.sp-tj-hero__intro,
.sp-pv-intro,
.sp-om-side__intro,
.sp-tp-side__intro,
.sp-legal__intro,
.sp-cats__intro,
.sp-steps__intro {
	font-size: var(--wp--preset--font-size--lead) !important;
	line-height: 1.33 !important;
	font-weight: 250 !important;
}

/* ---------------------------------------------------------------------------
   Produkter: hovedbilde og skjermbilder under (core/gallery .sp-prod__thumbs),
   og pilene i bildeforstørringen (Petter 2026-11-16).
   ------------------------------------------------------------------------- */
.sp-prod__thumbs { margin-top: 24px !important; }
:is(.sp-prod__thumbs, .sp-prod__image) img { box-sizing: border-box; border: 1px solid var(--sp-line); }

/* Pilene som .sp-deliv__btn på prosjektsidene: runde, tynn kant, pil, blå ved hover. */
.wp-lightbox-overlay :is(.wp-lightbox-navigation-button-prev, .wp-lightbox-navigation-button-next) {
	width: 40px;
	height: 40px;
	min-width: 0;
	min-height: 0;
	padding: 0 !important;
	border: 1px solid var(--sp-line) !important;
	border-radius: 9999px;
	background: var(--sp-paper) !important;
	color: var(--sp-ink);
	transition: border-color 150ms ease, color 150ms ease;
}
.wp-lightbox-overlay :is(.wp-lightbox-navigation-button-prev, .wp-lightbox-navigation-button-next) > * { display: none !important; }
.wp-lightbox-overlay :is(.wp-lightbox-navigation-button-prev, .wp-lightbox-navigation-button-next)::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--sp-arrow) center / contain no-repeat;
	mask: var(--sp-arrow) center / contain no-repeat;
}
.wp-lightbox-overlay .wp-lightbox-navigation-button-prev::after { transform: scaleX(-1); }
.wp-lightbox-overlay :is(.wp-lightbox-navigation-button-prev, .wp-lightbox-navigation-button-next):hover { border-color: var(--sp-blue) !important; color: var(--sp-blue); }
.wp-lightbox-overlay :is(.wp-lightbox-navigation-button-prev, .wp-lightbox-navigation-button-next):focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
/* Stor skjerm: like ved siden av bildet i stedet for helt ytterst i vinduet. */
@media (min-width: 960px) {
	.wp-lightbox-overlay .wp-lightbox-navigation-button-prev { left: max(calc(env(safe-area-inset-left) + 16px), calc(50% - var(--wp--lightbox-container-width, 100vw) / 2 - 64px)); }
	.wp-lightbox-overlay .wp-lightbox-navigation-button-next { right: max(calc(env(safe-area-inset-right) + 16px), calc(50% - var(--wp--lightbox-container-width, 100vw) / 2 - 64px)); }
}

/* ---------------------------------------------------------------------------
   Tekstlenker – felles stil på hele nettstedet (Petter 2026-11-16, etter pilot
   på forsiden). Gjelder lenker som bare er tekst; knapper, piller, tags og
   etiketter beholder sin stil. Tags (.sp-art-card__tags) arver ikke dette.
   Erstatter tidligere pil (::after), versaler/sperring, blå tekst i hvile,
   vekt 400 på .sp-contactline og den orange hoveren på .sp-om-member__mail.
   ------------------------------------------------------------------------- */

/* 1. Mono-lenker, e-post og telefon: 13px, ingen versaler, ingen pil */
.is-style-mono-link a,
.wp-block-read-more,
.sp-case__more,
.sp-art-inlinelink a,
.sp-kt-office__link a,
.sp-cs-contact__lines a,
.sp-contactline a,
.sp-om-member__mail a,
.sp-breadcrumb a,
.sp-cs-crumbs a,
.sp-catnav__prev a,
.sp-catnav__next a,
.sp-pv-toc a,
.sp-mega__all > a,
.sp-prod__all > a,
.sp-ocm__all {
	font-family: var(--sp-mono);
	font-size: 13px;
	font-weight: 250;
	letter-spacing: -0.05em;
	text-transform: none;
}

.is-style-mono-link a::after,
.wp-block-read-more::after,
.sp-case__more::after,
.sp-art-inlinelink a::after,
.sp-kt-office__link a::after,
.sp-mega__all > a::after,
.sp-prod__all > a::after,
.sp-ocm__all::after {
	display: none;
}

/* 2. Strek og farge: mono-lenkene over + lenker i verdifelt og løpende tekst.
      Lenker i verdifelt og løpende tekst beholder skrift og størrelse. */
.is-style-mono-link a,
.wp-block-read-more,
.sp-case__more,
.sp-art-inlinelink a,
.sp-kt-office__link a,
.sp-cs-contact__lines a,
.sp-contactline a,
.sp-om-member__mail a,
.sp-breadcrumb a,
.sp-cs-crumbs a,
.sp-catnav__prev a,
.sp-catnav__next a,
.sp-pv-toc a,
.sp-mega__all > a,
.sp-prod__all > a,
.sp-cs-scope__value a,
.sp-cs-brief__value a,
.sp-contact__value a,
.sp-art-body a:not([class]),
.sp-art-intro__lead a,
.sp-pv-p a {
	color: var(--sp-ink);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: var(--sp-line);
	transition: color 150ms, text-decoration-color 150ms;
}

.is-style-mono-link a:hover,
.wp-block-read-more:hover,
.sp-case:hover .sp-case__more,
.sp-art-inlinelink a:hover,
.sp-kt-office__link a:hover,
.sp-cs-contact__lines a:hover,
.sp-contactline a:hover,
.sp-om-member__mail a:hover,
.sp-breadcrumb a:hover,
.sp-cs-crumbs a:hover,
.sp-catnav__prev a:hover,
.sp-catnav__next a:hover,
.sp-pv-toc a:hover,
.sp-mega__all > a:hover,
.sp-prod__all > a:hover,
.sp-cs-scope__value a:hover,
.sp-cs-brief__value a:hover,
.sp-contact__value a:hover,
.sp-art-body a:not([class]):hover,
.sp-art-intro__lead a:hover,
.sp-pv-p a:hover {
	color: var(--sp-blue-dark);
	text-decoration-line: underline;
	text-decoration-color: var(--sp-blue-dark);
}

/* 3. På blått og mørkt (blått band, mørke seksjoner, mobilmenyen): hvit tekst, halvgjennomsiktig strek */
.sp-on-dark .is-style-mono-link a,
.has-blue-background-color .is-style-mono-link a,
.has-ink-background-color .is-style-mono-link a,
.sp-ocm__all {
	color: #fff;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: rgba(255, 255, 255, 0.5);
	transition: text-decoration-color 150ms;
}

.sp-on-dark .is-style-mono-link a:hover,
.has-blue-background-color .is-style-mono-link a:hover,
.has-ink-background-color .is-style-mono-link a:hover,
.sp-ocm__all:hover {
	color: #fff;
	text-decoration-color: #fff;
}

/* 4. Titler på kort og lenkelister (bunnteksten, Andre tjenester, reisekartet):
      ingen strek, blue-dark ved hover */
.sp-case__title a,
.sp-card__title a,
.sp-rel__title a,
.sp-art-card__title a,
.sp-art-feat__title a,
.sp-svc-row__title a,
.sp-catcard__title a,
.sp-jmap__detail a,
.sp-andre__list a,
.sp-footer a {
	text-decoration: none;
	transition: color 150ms;
}

.sp-case__title a:hover,
.sp-card__title a:hover,
.sp-rel__title a:hover,
.sp-art-card__title a:hover,
.sp-art-feat__title a:hover,
.sp-svc-row__title a:hover,
.sp-catcard__title a:hover,
.sp-jmap__detail a:hover,
.sp-andre__list a:hover,
.sp-footer a:hover {
	color: var(--sp-blue-dark);
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Bildetekster (Petter 2026-11-17)
   ------------------------------------------------------------------------- */

/* Lange bildetekster (mer enn én setning) – ikke versaler. Klassen
   sp-caption-long settes på figuren i innholdet; korte beholder stilen fra
   theme.json. Samme stil som tekstlenkene, uten understrek. */
.sp-caption-long .wp-element-caption,
.sp-caption-long figcaption {
	font-family: var(--sp-mono);
	font-size: 13px;
	font-weight: 250;
	line-height: 19.5px; /* Petter 18.11: midt mellom 18 og 21 */
	letter-spacing: -0.05em;
	text-transform: none;
	color: var(--sp-ink);
}

/* Ledeord i bildetekster («Berg & Dahl:») i 500, også i de korte (Petter 18.11) */
.wp-element-caption strong,
figcaption strong,
.sp-cs-fig__caption strong { font-weight: 500; }

/* Bildetekst i galleriet på prosjektsidene: sp-drift skalerer bildet til
   1,06, så teksten legges over med egen bakgrunn og 12 px luft. Lange tekster
   holdes innenfor 720 px (Petter 18.11). */
.sp-cs-gal__item:has(figcaption) { background: transparent; }
.sp-cs-gal__item figcaption {
	position: relative;
	z-index: 1;
	background: var(--sp-paper);
	margin-top: 0;
	padding-top: 12px;
	box-sizing: border-box;
	padding-right: max(0px, calc(100% - 720px));
}

/* Bildetekst i toppfeltet på tjenestesidene: ingen grå plassholderbakgrunn
   bak teksten, hjørnene ligger på selve bildet eller videoen. */
.sp-sd-hero__image:has(figcaption) {
	background: transparent;
	border-radius: 0;
	overflow: visible;
}

.sp-sd-hero__image:has(figcaption) :is(img, video) {
	display: block;
	border-radius: 5px;
}

/* ---------------------------------------------------------------------------
   Produktlogoer i Produkter-panelet (Petter 2026-11-18): symbolet venstrestilt
   over navnet, 32 × 32, 16 px ned til navnet. Filene er fra produktenes egne
   nettsteder (assets/images/produkter/meny/). Brandville lenker til
   /produkter/brandville (fra 23.11; før /tjenester/synlighet/bildebank, derfor også «bildebank»).
   ------------------------------------------------------------------------- */
.sp-header .sp-prod .sp-prod__name::before {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 16px;
	background: center / contain no-repeat;
}
.sp-header .sp-prod a[href*="/produkter/synn"] .sp-prod__name::before { background-image: url("../images/produkter/meny/synn.svg"); }
.sp-header .sp-prod a[href*="/produkter/brandville"] .sp-prod__name::before,
.sp-header .sp-prod a[href*="bildebank"] .sp-prod__name::before { background-image: url("../images/produkter/meny/brandville.svg"); }
.sp-header .sp-prod a[href*="/produkter/humla"] .sp-prod__name::before { background-image: url("../images/produkter/meny/humla.png"); }
.sp-header .sp-prod a[href*="/produkter/vordr"] .sp-prod__name::before { background-image: url("../images/produkter/meny/vordr.svg"); }

/* ---------------------------------------------------------------------------
   Søk (Petter 2026-11-18): på mobil ligger søket i menyen, ikke i headeren.
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.sp-header .sp-ask { display: none !important; }
}
.sp-ocm__search {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 9px 20px; /* på linje med lukkeknappen (Anders 25.11) */
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 9999px;
	background: none;
	color: rgba(255, 255, 255, 0.7);
	font: inherit;
	font-size: 17px;
	line-height: 22px;
	font-weight: 250;
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms, color 150ms;
}
.sp-ocm__search svg { flex: none; color: #fff; }
.sp-ocm__search:hover, .sp-ocm__search:focus-visible { border-color: #fff; color: #fff; }
.sp-ocm__search:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 768px) {
	.sp-ocm__search { display: none; } /* søkeknappen står i headeren fra 768 px */
}

/* ---------------------------------------------------------------------------
   Markering på nummererte lister og rader (2026-11-18). Velges i editoren
   (assets/js/editor-markering.js): uten klasse 01, 02; sp-mark-1 = 1, 2;
   sp-mark-dot = punkt; sp-mark-none = ingen.
   ------------------------------------------------------------------------- */
.sp-rows.sp-mark-1 > .sp-row::before { content: counter(sp-row); }
.sp-numlist.sp-mark-1 > li::before { content: counter(sp-num); }
.is-style-steps.sp-mark-1 > li::before { content: counter(sp-step); }
ol.is-style-fact.sp-mark-1 > li::before { content: counter(sp-fact); }
.sp-tp-faq.sp-mark-1 .sp-tp-faq__item summary::before { content: counter(sp-faq); }
.sp-pv-items.sp-mark-1 > .sp-pv-item::before { content: counter(sp-pv); }

.sp-rows.sp-mark-dot > .sp-row::before,
.sp-numlist.sp-mark-dot > li::before,
.is-style-steps.sp-mark-dot > li::before,
ol.is-style-fact.sp-mark-dot > li::before,
.sp-tp-faq.sp-mark-dot .sp-tp-faq__item summary::before,
.sp-pv-items.sp-mark-dot > .sp-pv-item::before {
	content: "•";
	font-size: 18px;
	letter-spacing: 0;
}

.sp-rows.sp-mark-none > .sp-row::before,
.sp-numlist.sp-mark-none > li::before,
.is-style-steps.sp-mark-none > li::before,
ol.is-style-fact.sp-mark-none > li::before,
.sp-tp-faq.sp-mark-none .sp-tp-faq__item summary::before,
.sp-pv-items.sp-mark-none > .sp-pv-item::before { display: none; }
.sp-rows.sp-mark-none > .sp-row { padding-left: 0; }
.is-style-steps.sp-mark-none > li,
ol.is-style-fact.sp-mark-none > li,
.sp-pv-items.sp-mark-none > .sp-pv-item { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
.sp-pv-items.sp-mark-none > .sp-pv-item > * { grid-column: 1; }

/* ---------------------------------------------------------------------------
   Smartsøk: svarene i «Hva lurer du på?»-panelet (assets/js/smartsok.js)
   ------------------------------------------------------------------------- */
.sp-ask-panel__box.has-thread .sp-ask-panel__start { display: none; }
.sp-ss-thread { margin-top: auto; display: flex; flex-direction: column; gap: 22px; }
.sp-ss-q { align-self: flex-end; max-width: 80%; margin: 0; padding: 11px 20px; border-radius: 24px; background: var(--sp-blue); color: #fff; font-size: 16px; line-height: 22px; }
.sp-ss-a { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.sp-ss-a__text { font-size: 17px; line-height: 26px; }
.sp-ss-a.is-old .sp-ss-a__text { font-size: 16px; line-height: 24px; color: var(--sp-mute); }
.sp-ss-a__text > * { margin: 0 0 12px; }
.sp-ss-a__text > :last-child { margin-bottom: 0; }
.sp-ss-a__text ul { padding-left: 20px; }
.sp-ss-a__text strong { font-weight: 500; }
.sp-ss-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sp-ss-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--sp-line); border-radius: 6px; color: var(--sp-ink); text-decoration: none; transition: border-color 150ms; }
.sp-ss-card:hover { border-color: var(--sp-blue); color: var(--sp-ink); }
.sp-ss-card:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-ss-card__type { font-family: var(--sp-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-blue-dark); }
.sp-ss-card__title { font-size: 19px; line-height: 25px; }
.sp-ss-card__desc { font-size: 14px; line-height: 20px; color: var(--sp-mute); }
/* Kortene i høyre kolonne: logo (produkter) ved siden av type og tittel,
   beskrivelsen under over hele bredden, maks tre linjer. */
.sp-ask-panel__side .sp-ss-card:not(.sp-ss-card--row) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; row-gap: 4px; column-gap: 0; }
.sp-ask-panel__side .sp-ss-card:not(.sp-ss-card--row) > .sp-ss-card__type { grid-column: 2; grid-row: 1; }
.sp-ask-panel__side .sp-ss-card:not(.sp-ss-card--row) > .sp-ss-card__title { grid-column: 2; grid-row: 2; }
.sp-ask-panel__side .sp-ss-card:not(.sp-ss-card--row) > .sp-ss-card__desc { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
.sp-ask-panel__side .sp-ss-card:not(.sp-ss-card--row)::before { grid-column: 1; grid-row: 1 / span 2; width: 36px !important; height: 36px !important; margin: 0 12px 0 0 !important; }
.sp-ask-panel__side .sp-ss-card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.sp-ss-card--row { padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; }
.sp-ss-card--row > span { grid-column: 2; }
.sp-ask-panel__side .sp-ss-card--row::before { grid-row: 1 / span 2; margin: 0 !important; width: 40px !important; height: 40px !important; }
.sp-ss-card--row .sp-ss-card__title { font-size: 17px; line-height: 22px; }
/* Produktlogoer, som i toppmenyen */
.sp-ask-panel__side a[href*="/produkter/synn"]::before,
.sp-ask-panel__side a[href*="/produkter#synn"]::before,
.sp-ask-panel__side a[href*="/produkter/humla"]::before,
.sp-ask-panel__side a[href*="/produkter#humla"]::before,
.sp-ask-panel__side a[href*="/produkter/vordr"]::before,
.sp-ask-panel__side a[href*="/produkter#vordr"]::before,
.sp-ask-panel__side a[href*="bildebank"]::before,
.sp-ask-panel__side a[href*="/produkter/brandville"]::before,
.sp-ask-panel__side a[href*="/produkter#brandville"]::before { content: ""; display: block; width: 32px; height: 32px; margin-bottom: 6px; background: center / contain no-repeat; }
.sp-ask-panel__side a[href*="/produkter/synn"]::before,
.sp-ask-panel__side a[href*="/produkter#synn"]::before { background-image: url("../images/produkter/meny/synn.svg"); }
.sp-ask-panel__side a[href*="/produkter/humla"]::before,
.sp-ask-panel__side a[href*="/produkter#humla"]::before { background-image: url("../images/produkter/meny/humla.png"); }
.sp-ask-panel__side a[href*="/produkter/vordr"]::before,
.sp-ask-panel__side a[href*="/produkter#vordr"]::before { background-image: url("../images/produkter/meny/vordr.svg"); }
.sp-ask-panel__side a[href*="bildebank"]::before,
.sp-ask-panel__side a[href*="/produkter/brandville"]::before,
.sp-ask-panel__side a[href*="/produkter#brandville"]::before { background-image: url("../images/produkter/meny/brandville.svg"); }
.sp-ss-contact { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 9999px; background: var(--sp-blue); color: #fff; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sp-ss-contact:hover { background: var(--sp-blue-dark); color: #fff; }
.sp-ss-contact:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-ss-wait { margin: 0; font-size: 15px; color: var(--sp-mute); }
/* Tre prikker i høyre kolonne mens svaret lages (Anders 19.11). */
.sp-ss-dots { display: flex; gap: 8px; padding: 6px 0; }
.sp-ss-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--sp-blue); animation: sp-ss-dot 1.2s ease-in-out infinite; }
.sp-ss-dots span:nth-child(2) { animation-delay: 0.15s; }
.sp-ss-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes sp-ss-dot {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
	30% { transform: translateY(-6px); opacity: 1; }
}
@media (max-width: 899px) { .sp-ss-dots { align-self: center; padding: 18px 8px; } }

/* ===========================================================================
   Fra Petters stilblokker på stage (anders-pakke-2026-11-19, 0.9.68)
   Lagt sist i fila, så resultatet er det samme som med stilblokkene på
   sidene i dag. Stilblokkene sp-passer-, sp-tjeneste-, sp-produkt-test-,
   sp-ramme- og sp-ref-art-midlertidig kan slettes når dette er ute.
   Tallene uten null foran (punkt 1 i fila) er gjort i tellerne over.
   ========================================================================= */

/* --------------------------------------------------------------------------
   2. Avkrysning i lister uten rekkefølge, og «Passer ikke» i egen boks
   Petter 19.11.: «Innarbeid denne modellen på alle produkt og tjeneste sider».
   Brukes i «… passer når du vil:» og tilbudslista på 22 sider.
   Stilblokk: sp-passer-midlertidig (20 sider).
   Merk: Kall ikke klassen sp-check. Den finnes alt i temaet (knapp med flex).
   -------------------------------------------------------------------------- */
.sp-numlist.sp-avkrys > li::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 7px;
  margin-right: 20px;
  border-left: 1.5px solid var(--sp-blue);
  border-bottom: 1.5px solid var(--sp-blue);
  transform: translateY(-6px) rotate(-45deg);
}

/* Rader med hake i stedet for tall (Nettbutikk, «Nettbutikken og systemene rundt») */
.sp-rows--avkrys > .sp-row::before {
  content: "";
  top: 37px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--sp-blue);
  border-bottom: 1.5px solid var(--sp-blue);
  transform: rotate(-45deg);
}

/* «Passer ikke»: hvit boks med kryss. Overstyrer dagens .sp-fit-not i temaet. */
p.sp-fit-not {
  margin: 32px 0 0 !important;
  padding: var(--wp--custom--space--24) var(--wp--custom--space--28) var(--wp--custom--space--24) var(--wp--custom--space--56);
  border: 1px solid var(--sp-line);
  border-radius: 5px;
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  color: var(--sp-ink);
  max-width: calc(60ch + 84px);
}
p.sp-fit-not strong {
  display: block;
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 250;
  color: var(--sp-ink);
}
p.sp-fit-not::before {
  content: "";
  top: 32px;
  left: 22px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(45deg, transparent 45%, var(--sp-ink) 45%, var(--sp-ink) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--sp-ink) 45%, var(--sp-ink) 55%, transparent 55%);
}

/* Linjeskift i overskrifter som bare skal gjelde fra 768 px */
@media (max-width: 767px) {
  .sp-sd br.sp-md { display: none; }
}


/* --------------------------------------------------------------------------
   3. «Hva du får»: mer luft mellom spaltene og lavere rader
   Stilblokker: sp-tjeneste-midlertidig (18 sider) og
   sp-produkt-test-midlertidig (4 produktsider).
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Høyre spalte starter én kolonne senere: 4 | 1 tom | 7 */
  .wp-block-columns.sp-split-4-8.sp-split-luft > .wp-block-column:last-child {
    grid-column: 6 / span 7;
  }
}
.sp-rows--kompakt > .sp-row { padding: var(--wp--custom--space--20) 0 var(--wp--custom--space--20) var(--wp--custom--space--56); }
.sp-rows--kompakt > .sp-row::before { top: 27px; }
/* Temaets .sp-sd h3:not(.sp-sd-faq__item h3) er sterkere enn en vanlig klasse,
   derfor .sp-sd foran. */
.sp-sd .sp-rows--kompakt > .sp-row > h3 { font-size: 22px; line-height: 30px; }
.sp-rows--kompakt > .sp-row > p:not(.is-style-mono-link) { margin-top: 6px !important; }


/* --------------------------------------------------------------------------
   4. «Slik kommer du i gang» / «Slik jobber vi»: steg i hvite kort
   Petter satte opp taggen selv i DevTools 19.11. kl. 10.49 («Jeg tror vi gjør
   det sånn»): 36 × 36 px, lys blågrå, 3 px hjørner, mono 12 px, vekt 500,
   uten null, toppjustert, 16 px foran overskriften.
   sp-gw__grid--num = kort med tall. sp-gw__grid--kort = kort uten tall
   (Serviceavtale og Nettside, der punktene er områder og ikke steg).
   -------------------------------------------------------------------------- */
.sp-gw__grid--num { counter-reset: sp-gw; }
.sp-gw__grid--num > .sp-gw__item { counter-increment: sp-gw; }
.sp-gw__grid--num > .sp-gw__item,
.sp-gw__grid--kort > .sp-gw__item {
  padding: 32px;
  background: #fff;
  border-radius: 5px;
}
.sp-gw__grid--num > .sp-gw__item > .wp-block-heading:first-child {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.sp-gw__grid--num > .sp-gw__item > .wp-block-heading:first-child::before {
  content: counter(sp-gw);
  flex: 0 0 auto;
  display: inline-block;
  width: 36px;
  height: 36px;
  text-align: center;
  font-family: var(--sp-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--sp-mute);
  background: var(--wp--preset--color--mist);
  border-radius: 3px;
}


/* --------------------------------------------------------------------------
   5. Produktsidene: tilbudet, sitatet og spørsmål og svar
   Stilblokk: sp-produkt-test-midlertidig (84, 896, 897, 898).
   -------------------------------------------------------------------------- */
/* «Utviklet og driftet av Screenpartner.» o.l. under tilbudslista (Synn, Brandville) */
.sp-offer > p.sp-offer__trial {
  margin-top: 24px !important;
  font-size: 16px;
  line-height: 24px;
  color: var(--sp-ink);
}
/* Vilkår i liten grå tekst (Humla Cloud, prøveperioden på Brandville) */
.sp-offer > p.sp-offer__fine {
  margin-top: 24px !important;
  max-width: 60ch;
  font-size: 14px;
  line-height: 20px;
  color: var(--sp-mute);
}
/* Rett under knapperaden står vilkårene tett på (Brandville) */
.sp-offer > .sp-offer__cta + p.sp-offer__fine { margin-top: 8px !important; }
/* «Les mer på synn.no» under knapperaden */
.sp-offer > p.sp-offer__ref { margin-top: 24px !important; }
/* «Les mer på humla.team» under spørsmål og svar */
p.sp-sd-faq__ref { margin-top: var(--wp--custom--space--48) !important; }

/* Linje under sitatet (Humla: «Vi bruker Humla til workshops …») */
.sp-sd-quote > p.sp-sd-quote__note {
  grid-column: 5 / span 8;
  margin: 24px 0 0 !important;
  font-size: 16px;
  line-height: 24px;
  color: var(--sp-mute);
}
@media (max-width: 781px) {
  .sp-sd-quote > p.sp-sd-quote__note { grid-column: 1 / -1; }
}
@media (min-width: 782px) {
  .sp-sd-quote > .sp-sd-quote__text { grid-row: 1; }
  .sp-sd-quote > p.sp-sd-quote__note { grid-row: 1; align-self: end; margin: 0 !important; }
}

/* Hvit ramme rundt skjermbilder. Stilblokk sp-ramme-midlertidig på Synn, Humla
   og Vordr. Brandville (84) og Skreddersøm (43) bruker sp-ramme uten denne
   overstyringen. Bør bli én felles .sp-ramme i temaet. */
.sp-ramme {
  background: #fff !important;
  padding: 6px;
  border-radius: 12px !important;
  box-sizing: border-box;
}
.sp-ramme img { border-radius: 6px !important; outline: 0; }

/* Toppbildet på mobil (4:5) viser venstre del av skjermbildet i stedet for
   70 % fra venstre, så kanten ikke går gjennom overskriften på skjermbildet.
   Står i dag som sideregler på Brandville (0 50 %) og Vordr (12 % 50 %).
   Forslag: utilityklasser som sp-mpos-0-50 og sp-mpos-12-50 på figuren,
   som sp-mpos-50-30 på Skreddersøm. */


/* --------------------------------------------------------------------------
   6. Forsiden: referansen med portrett på det blå båndet
   Stilblokk: sp-ref-art-midlertidig (forsiden, side 256).
   -------------------------------------------------------------------------- */
.sp-ref-art .sp-art-personquote { max-width: 880px; margin: 0; padding: 40px 0; border-top: 0; border-bottom: 0; }
.sp-ref-art .sp-art-person { display: flex; align-items: center; gap: 24px; margin: 0; }
.sp-reference.sp-ref-art .sp-art-person .sp-art-person__image { margin: 0; flex: none; width: auto !important; height: auto !important; }
.sp-reference.sp-ref-art .sp-art-person .sp-art-person__image img { display: block; width: 120px !important; height: 120px !important; max-width: none; border-radius: 9999px; object-fit: cover; }
.sp-ref-art .sp-art-person__name { margin: 0; font-size: 16px; line-height: 22px; color: rgba(249, 249, 249, .8); }
.sp-ref-art .sp-art-person__name strong { color: #F9F9F9; font-weight: 500; }
.sp-ref-art .wp-block-quote.is-style-pull { margin: 32px 0 0; padding: 0; border: 0; }
.sp-ref-art .wp-block-quote.is-style-pull p { margin: 0; font-size: 28px; line-height: 36px; font-weight: 250; color: #F9F9F9; text-wrap: pretty; }
.sp-ref-art .sp-ref-art__more { margin-top: 32px; }
@media (max-width: 767px) {
  .sp-reference.sp-ref-art .sp-art-person .sp-art-person__image img { width: 88px !important; height: 88px !important; }
  .sp-ref-art .wp-block-quote.is-style-pull p { font-size: 22px; line-height: 30px; }
}


/* ===========================================================================
   Fra Petters pakke 19.11 _02 (0.9.69): del 7–11 av stilblokkene
   (sp-galleri-, sp-faq-, sp-tp-steg-, sp-bevis- og sp-galleri-hoyde-
   midlertidig). Bildestiene ../images/ er relative til denne fila.
   ========================================================================= */

/* --------------------------------------------------------------------------
   7. Galleriet på prosjektsidene: halv bredde og midtstilt
   Petter 19.11.: «Fjern de tomme rammene». Når et galleri har færre bilder,
   går ikke radene opp i 4 + 8. halv = 6 av 12 kolonner (to bilder side om
   side), midt = 8 kolonner midtstilt (ett bredt bilde alene på raden).
   Stilblokk: sp-galleri-midlertidig på Regroup (302), Prozeed (301),
   Gen2 Energy (296) og Wilfa (306).
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .sp-cs-gal__item--halv { grid-column: span 6; }
  .sp-cs-gal__item--midt { grid-column: 3 / span 8; }
  .sp-cs-gal__item--halv img,
  .sp-cs-gal__item--midt img { aspect-ratio: auto; }
}


/* --------------------------------------------------------------------------
   8. Vanlige spørsmål: trekkspill i to like spalter
   Petter 19.11.: «Bedre FAQ nå! Ta bort tallene og gjør +-tegnet større»,
   «har du light versjon av +-tegnet?» og «Ja, rull ut på alle sider som
   har FAQ». Bygger på temaets .sp-tp-faq (Techpilot). Markupen: en gruppe
   med klassen sp-faq-to rundt en Kolonner-blokk sp-faq-to__cols med to
   kolonner, hver med en .sp-tp-faq-gruppe av Detaljer-blokker.
   Stilblokk: sp-faq-midlertidig på 24 sider (22 produkt- og tjenestesider,
   Techpilot 94 og Tjenester 7).
   Uten tall: Hvis temaet heller vil ha dette som standard for .sp-tp-faq,
   kan ::before-telleren tas helt ut der.
   -------------------------------------------------------------------------- */
.sp-faq-to .sp-tp-faq__item summary { font-size: 22px; line-height: 30px; }
.sp-faq-to .sp-tp-faq__item summary::before { content: none; display: none; }
/* + og – tegnet med to linjer på 1 px (Lausanne 200 var for lik 250) */
.sp-faq-to .sp-tp-faq__item summary::after {
  content: "" !important;
  align-self: flex-start;
  width: 20px;
  height: 30px;
  margin-top: 2px;
  color: var(--sp-ink);
  background:
    linear-gradient(currentColor, currentColor) center / 20px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 20px no-repeat;
}
.sp-faq-to .sp-tp-faq__item[open] > summary::after {
  background: linear-gradient(currentColor, currentColor) center / 20px 1px no-repeat;
}
.sp-faq-to .sp-tp-faq__item summary:hover::after { color: var(--sp-blue); }
.sp-faq-to .sp-tp-faq__item > p,
.sp-faq-to .sp-tp-faq__body > p { padding-left: 0; padding-right: var(--wp--custom--space--48); }
@media (min-width: 782px) {
  .sp-faq-to .sp-faq-to__cols {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
  }
}
@media (max-width: 781px) {
  .sp-faq-to .sp-faq-to__cols { gap: 0; }
  .sp-faq-to .sp-faq-to__cols > .wp-block-column + .wp-block-column .sp-tp-faq {
    border-top: 1px solid var(--sp-line);
  }
}


/* --------------------------------------------------------------------------
   9. Techpilot, «Slik jobber vi som techpilot»: tall i tag foran overskriften
   Petter 19.11.: «samme nummerdesign som på Brandville, Slik kommer du i gang
   (men da med hvit BG på tallboksene)» og «Ikke hvit BG på tallboksene, men
   grå som BG på siden». Som del 4: stegene i hvite kort, taggen i mist.
   Stilblokk: sp-tp-steg-midlertidig på Techpilot (94).
   -------------------------------------------------------------------------- */
.sp-tp-steps { counter-reset: sp-tp-steg; }
.sp-tp-steps > .sp-tp-steps__item { counter-increment: sp-tp-steg; }
.sp-tp-steps > .sp-tp-steps__item {
  padding: 32px;
  background: #fff;
  border-radius: 5px;
}
.sp-tp-steps > .sp-tp-steps__item > .wp-block-heading:first-child {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.sp-tp-steps > .sp-tp-steps__item > .wp-block-heading:first-child::before {
  content: counter(sp-tp-steg);
  flex: 0 0 auto;
  display: inline-block;
  width: 36px;
  height: 36px;
  text-align: center;
  font-family: var(--sp-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--sp-mute);
  background: var(--wp--preset--color--mist);
  border-radius: 3px;
}


/* --------------------------------------------------------------------------
   10. Techpilot, «Vi bygger selv»: produktsymbolet til venstre for navnet
   Petter 19.11.: «legg inn logoene og lenke til de respektive undersidene».
   Samme symbol og mål som i Produkter-panelet (32 × 32, 16 px ned til
   navnet). Klassen sp-logo-<produkt> står på hver .sp-row.
   Stilblokk: sp-bevis-midlertidig på Techpilot (94).
   NB: Ikke bruk kortformen background i fellesregelen. Den nullstiller
   background-image fra regelen per produkt.
   -------------------------------------------------------------------------- */
/* Petter 19.11. kl. 16: «Legg logoene til venstre for hvert navn så det ikke
   bygger så mye i høyden». */
.sp-row[class*="sp-logo-"] > .wp-block-heading:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sp-row[class*="sp-logo-"] > .wp-block-heading:first-child::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.sp-logo-synn > .wp-block-heading:first-child::before { background-image: url(../images/produkter/meny/synn.svg); }
.sp-logo-brandville > .wp-block-heading:first-child::before { background-image: url(../images/produkter/meny/brandville.svg); }
.sp-logo-humla > .wp-block-heading:first-child::before { background-image: url(../images/produkter/meny/humla.png); }
.sp-logo-vordr > .wp-block-heading:first-child::before { background-image: url(../images/produkter/meny/vordr.svg); }


/* --------------------------------------------------------------------------
   11. Galleriet på prosjektsidene: like høye rader
   Bredbildet (--2, span 8) har i dag bildets egen høyde, mens det smale
   (--1, span 4) er låst til 3:4. Med 16:9-bilder blir bredbildet 70 px lavere
   enn naboen. Her fyller bredbildet samme høyde, med object-fit: cover.
   Gjelder bilder uten bildetekst.
   Stilblokk: sp-galleri-hoyde-midlertidig på Skagerak Consulting (138).
   Forslag: la det gjelde alle gallerier.
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .sp-cs-gal > .sp-cs-gal__item--2:not(:has(figcaption)) {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }
  .sp-cs-gal > .sp-cs-gal__item--2:not(:has(figcaption)) > .wp-lightbox-container {
    flex: 1 1 auto;
    display: flex;
  }
  .sp-cs-gal > .sp-cs-gal__item--2:not(:has(figcaption)) img {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* --------------------------------------------------------------------------
   «Les artikkelen» på /artikler i tekstlenkestil (Petter 18.11, 13b).
   Stilblokk: sp-art-more-midlertidig på /artikler (88).
   -------------------------------------------------------------------------- */
.sp-art-more { font-family: var(--sp-mono); font-size: 13px; font-weight: 250; letter-spacing: -0.05em; text-transform: none; color: var(--sp-ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--sp-line); transition: color 150ms, text-decoration-color 150ms; }
.sp-art-more::after { display: none; }
.sp-art-card:hover .sp-art-more, .sp-art-feat:hover .sp-art-more { color: var(--sp-blue-dark); text-decoration-color: var(--sp-blue-dark); }

/* --------------------------------------------------------------------------
   4/8-seksjonene mellom 768 og 1199 px: venstre spalte er smal (272 px ved
   1024), så h2 i 44 px brytes i tre–fem linjer. Der får den mobilstørrelsen
   (Petter 19.11, punkt 12).
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
	.wp-block-columns.sp-split-4-8 > .wp-block-column:first-child h2 { font-size: 32px; line-height: 38px; }
}

/* --------------------------------------------------------------------------
   Petters punkter 23.11 (0.9.77)
   -------------------------------------------------------------------------- */

/* 31. Galleriet: bredbildet (--2) med bildetekst ble 1500 px høyt på desktop
   (lysboksen er en flex-kolonne, og bildet har aspect-ratio: auto). Med
   bildetekst holdes det i 4:3, som Petter satte for hånd på Krem. */
@media (min-width: 768px) {
	.sp-cs-gal > .sp-cs-gal__item--2:has(figcaption) img {
		aspect-ratio: 4 / 3;
		height: auto !important;
		object-fit: cover;
	}
	.sp-cs-gal > .sp-cs-gal__item--2:has(figcaption) .wp-lightbox-container > img { flex: none; }
}

/* 28. Bildetekstene: samme regler som Petters stilblokk sp-caption-long-
   midlertidig (Krem, Fru Timian, Pinse Ung, Stories by Kine), også teksten
   under filmen på prosjektsidene (p.sp-cs-fig__caption.sp-caption-long).
   body foran gir samme styrke som stilblokken. */
body .sp-caption-long .wp-element-caption,
body .sp-caption-long figcaption,
body .sp-cs-fig__caption.sp-caption-long { font-family: var(--sp-mono); font-size: 13px; font-weight: 250; line-height: 19.5px; letter-spacing: -0.05em; text-transform: none; color: var(--sp-ink); max-width: 720px; }
body .sp-cs-gal__item:has(figcaption) { background: transparent; }
body .sp-cs-gal__item figcaption { position: relative; z-index: 1; background: var(--sp-paper); margin-top: 0; padding-top: 12px; max-width: none !important; box-sizing: border-box; padding-right: max(0px, calc(100% - 720px)); }
/* Grå seksjon: bildeteksten får seksjonens farge, ikke papirfarge (Petter 24.11, punkt 43) */
.sp-cs--grey .sp-cs-gal__item figcaption { background: var(--sp-mist); }
body .wp-element-caption strong,
body figcaption strong,
body .sp-cs-fig__caption strong { font-weight: 500; }

/* 30. Om oss: avkrysning i stedet for tall i «Dette er det vi holder oss til»
   og «Fem ting kundene våre nevner» – samme hake som sp-avkrys.
   Fra stilblokken sp-avkrys-om-midlertidig (side 92). */
p.sp-avkrys-ikon { font-size: 0; line-height: 0; min-height: 0; }
p.sp-avkrys-ikon::before { content: ""; display: block; width: 12px; height: 7px; border-left: 1.5px solid var(--sp-blue); border-bottom: 1.5px solid var(--sp-blue); transform: rotate(-45deg); margin-top: 8px; }
p.sp-om-row__num.sp-avkrys-ikon::before { margin-top: 5px; }

/* 32. Lange kundesitater: ingressen i sitatstørrelse, resten i brødtekst.
   Fra stilblokken sp-sitat-ingress-midlertidig (Stories by Kine, side 2056). */
.sp-cs-quote__text p.sp-cs-quote__rest { font-size: 18px; line-height: 28px; max-width: 62ch; text-wrap: pretty; margin-top: 24px !important; }

/* --------------------------------------------------------------------------
   Ingressen øverst: største bredde 640 px på alle sidetypene (Petter 18.11).
   Tønsbergs test (.sp-intro-smal, 580 px) i stilblokken kan slettes.
   -------------------------------------------------------------------------- */
.sp-sd-hero__intro,
.sp-tj-hero__intro,
.sp-cat-hero__ingress,
.sp-cs-hero__intro,
.sp-om-hero__intro,
.sp-proj-hero__intro,
.sp-art-hero__intro { max-width: 640px; }

/* --------------------------------------------------------------------------
   Forstørr-knappen i bildene (kjernens lightbox): 24 × 24 (WCAG 2.2, 2.5.8)
   -------------------------------------------------------------------------- */
.wp-lightbox-container button { min-width: 24px; min-height: 24px; }

/* --------------------------------------------------------------------------
   Linjeregelen (Petter 18.11, motion.js initLinjeregel): på mobil skal en
   h1/h2 ikke ende med ett ord alene etter en lang linje.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.sp-h-mobil-balanse br { display: none; }
	.sp-h-mobil-balanse { text-wrap: balance; }
}

/* ===========================================================================
   Petters tillegg 20.11 (0.9.70)
   ========================================================================= */

/* 24. Kontrast: liten tekst minst 4,5:1 (WCAG 1.4.3). På det blå båndet
   full farge, på den mørke flaten minst 0,5. */
.sp-om-num__eyebrow,
.sp-om-num__label { color: #fff; }
.sp-ref-art .sp-art-person__name { color: #F9F9F9; }
.sp-stat__unit,
.sp-matrix__info-label { color: rgba(249, 249, 249, 0.5); }

/* 25. Streker mellom seksjoner følger innholdsbredden, ikke hele skjermen.
   Streken tegnes som bakgrunn øverst i seksjonen, like bred som innholdet
   (88rem, minus margene). Tre streker rett etter et fargeskifte tas bort. */
.sp-rule-top,
.sp-om--rule,
.sp-kt-office,
.sp-art-list,
.sp-art-cta {
	border-top: 0;
	background-image: linear-gradient(var(--sp-line), var(--sp-line));
	background-repeat: no-repeat;
	background-position: top center;
	background-size: min(var(--wp--style--global--wide-size, 88rem), calc(100% - 2 * var(--wp--custom--gutter, 64px))) 1px;
}
.sp-om-how.sp-om--rule,
.sp-cats.sp-rule-top,
.sp-faq.sp-rule-top { background-image: none; }

/* 26. Matrisen på Tjenester: tallene og statusen i papirfarge (gul er et
   uløst forslag, grønn er bare for Voks og suksess). */
.sp-matrix__num,
.sp-matrix__info-status { color: var(--sp-paper); }

/* 35. Toppmenyen viker for kapittelmenyen på prosjektsidene (initCaseNav):
   html.sp-hdr-hidden skjuler headeren og løfter kapittelmenyen opp. */
.wp-site-blocks > header.wp-block-template-part:has(.sp-header--solid) { transition: transform 200ms ease; }
html.sp-hdr-hidden .wp-site-blocks > header.wp-block-template-part:has(.sp-header--solid) { transform: translateY(-100%); }
.sp-cs-nav.sp-cs-nav--slide { transition: opacity 300ms ease, transform 200ms ease, visibility 300ms; }
html.sp-hdr-hidden .sp-cs-nav:not(.is-away):not(.is-done) { transform: translateY(-96px); }
.sp-cs[id] { scroll-margin-top: calc(var(--sp-cs-fixed, 157px) + 24px); }
@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks > header.wp-block-template-part:has(.sp-header--solid),
	.sp-cs-nav { transition: none !important; }
}

/* 36. Prosjektkortene: kundenavnet på egen linje over overskriften, i
   lenkestil uten understrek, og overskriften over to linjer (Petter 23.11).
   Fra stilblokken sp-case-kunde-midlertidig (32 sider). Den høye
   spesifisiteten trengs mot :is(.sp-tiles, .sp-cases-grid) .sp-case__title. */
.sp-case__kunde { display: block; font-family: var(--wp--preset--font-family--mono); font-size: 13px; line-height: 16.5px; letter-spacing: -0.05em; font-weight: 250; color: var(--sp-blue); margin-bottom: 8px; }
/* Petter 24.11, punkt 38–40 */
/* 38: «Siste prosjekt» i Tjenester-menyen – kundenavn over kortoverskriften */
.sp-header .sp-teaser__kunde { margin-top: 16px; margin-bottom: 8px; }
.sp-header .sp-teaser__kunde + .sp-teaser__title { margin-top: 0; }
/* 40: filterpillene i 11,5 px (32 px høye, før 29 px). Artikkelsiden bruker
   de samme runde pillene som /prosjekter, ikke firkantede tagger (Petter 25.11). */
.sp-case-filter button { font-size: 11.5px; line-height: 16px; padding: 7px 14px; }
.sp-case-filter button[aria-pressed="true"] { padding: 8px 14px; }
.sp-case-filter.sp-art-filter { gap: 8px; }
.sp-case-filter.sp-art-filter button { border-radius: 9999px; }
/* Én rad som ruller sidelengs når pillene ikke får plass (motion.js
   initFilterScroll). Luft rundt pillene så fokusrammen ikke klippes. */
.sp-case-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px; margin-left: -4px; margin-right: -4px; }
.sp-case-filter::-webkit-scrollbar { display: none; }
.sp-case-filter button { flex: none; white-space: nowrap; }
.sp-case-filter.has-more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.sp-case-filter.has-more-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.sp-case-filter.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
h3.wp-block-heading.sp-case__title { text-wrap: balance; max-width: max(66.667%, 300px); }
h3.wp-block-heading.sp-case__title.sp-case__title--bred { max-width: none; }
h3.sp-case__title br.sp-case-br { display: none; }
@media (min-width: 1440px) {
	h3.wp-block-heading.sp-case__title { max-width: none; }
	h3.sp-case__title br.sp-case-br { display: inline; }
}

/* 42: Zoom på kortbilder (Petter 24.11). Klasser på bildeblokken (figure):
   sp-kz-NNN gir zoom (sp-kz-110 = 1,1), sp-kzx-NN og sp-kzy-NN gir punktet det
   zoomes mot (standard 50 % 50 %). Eks.: sp-kz-130 sp-kzx-55 sp-kzy-80.
   Bruker scale, siden innlastingsanimasjonen låser transform. Hover gir +3 %. */
:is(.sp-tiles, .sp-cases-grid) .sp-case__image[class*="sp-kz-"] img { scale: var(--sp-kz, 1); transform-origin: var(--sp-kz-ox, 50%) var(--sp-kz-oy, 50%); }
:is(.sp-tiles, .sp-cases-grid) .sp-case:hover .sp-case__image[class*="sp-kz-"] img { scale: calc(var(--sp-kz, 1) * 1.03); }
.sp-kz-105 { --sp-kz: 1.05; }
.sp-kz-110 { --sp-kz: 1.1; }
.sp-kz-112 { --sp-kz: 1.12; }
.sp-kz-115 { --sp-kz: 1.15; }
.sp-kz-120 { --sp-kz: 1.2; }
.sp-kz-125 { --sp-kz: 1.25; }
.sp-kz-130 { --sp-kz: 1.3; }
.sp-kz-140 { --sp-kz: 1.4; }
.sp-kz-150 { --sp-kz: 1.5; }
.sp-kzx-0 { --sp-kz-ox: 0%; }
.sp-kzx-5 { --sp-kz-ox: 5%; }
.sp-kzx-10 { --sp-kz-ox: 10%; }
.sp-kzx-15 { --sp-kz-ox: 15%; }
.sp-kzx-20 { --sp-kz-ox: 20%; }
.sp-kzx-25 { --sp-kz-ox: 25%; }
.sp-kzx-30 { --sp-kz-ox: 30%; }
.sp-kzx-35 { --sp-kz-ox: 35%; }
.sp-kzx-40 { --sp-kz-ox: 40%; }
.sp-kzx-45 { --sp-kz-ox: 45%; }
.sp-kzx-50 { --sp-kz-ox: 50%; }
.sp-kzx-55 { --sp-kz-ox: 55%; }
.sp-kzx-60 { --sp-kz-ox: 60%; }
.sp-kzx-65 { --sp-kz-ox: 65%; }
.sp-kzx-70 { --sp-kz-ox: 70%; }
.sp-kzx-75 { --sp-kz-ox: 75%; }
.sp-kzx-80 { --sp-kz-ox: 80%; }
.sp-kzx-85 { --sp-kz-ox: 85%; }
.sp-kzx-90 { --sp-kz-ox: 90%; }
.sp-kzx-95 { --sp-kz-ox: 95%; }
.sp-kzx-100 { --sp-kz-ox: 100%; }
.sp-kzy-0 { --sp-kz-oy: 0%; }
.sp-kzy-5 { --sp-kz-oy: 5%; }
.sp-kzy-10 { --sp-kz-oy: 10%; }
.sp-kzy-15 { --sp-kz-oy: 15%; }
.sp-kzy-20 { --sp-kz-oy: 20%; }
.sp-kzy-25 { --sp-kz-oy: 25%; }
.sp-kzy-30 { --sp-kz-oy: 30%; }
.sp-kzy-35 { --sp-kz-oy: 35%; }
.sp-kzy-40 { --sp-kz-oy: 40%; }
.sp-kzy-45 { --sp-kz-oy: 45%; }
.sp-kzy-50 { --sp-kz-oy: 50%; }
.sp-kzy-55 { --sp-kz-oy: 55%; }
.sp-kzy-60 { --sp-kz-oy: 60%; }
.sp-kzy-65 { --sp-kz-oy: 65%; }
.sp-kzy-70 { --sp-kz-oy: 70%; }
.sp-kzy-75 { --sp-kz-oy: 75%; }
.sp-kzy-80 { --sp-kz-oy: 80%; }
.sp-kzy-85 { --sp-kz-oy: 85%; }
.sp-kzy-90 { --sp-kz-oy: 90%; }
.sp-kzy-95 { --sp-kz-oy: 95%; }
.sp-kzy-100 { --sp-kz-oy: 100%; }
/* 44 (forts.): Ny stil på alle piller og lenketekster – uten versaler og med
   0,02em bokstavavstand (Petter 24.11: «ny stil gjelder alle piller og
   lenketekster»). Størrelse og farge står. Etiketter, overtitler og
   navigasjon (kapittelmeny, brødsmuler) er ikke med. */
.sp-case-filter-toggle,
.sp-kt-pill span,
.sp-ps__tags li,
.sp-case__more,
.wp-block-read-more,
.sp-ocm__all,
.sp-kt-office__link a,
.sp-art-inlinelink a,
.sp-cs-hero__site a,
.sp-cs-split6__link a,
.sp-header .sp-mega li.sp-mega__explore > .wp-block-navigation-item__content { text-transform: none; letter-spacing: 0.02em; }
/* Skjemaene sender til HubSpot (inc/skjema.php): status, takk og honningkrukke */
.sp-contact__form .sp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sp-contact__status { font-size: 14px; line-height: 20px; color: var(--sp-mute); }
.sp-contact__status:empty { display: none; }
.sp-contact__status.is-error { color: #B42318; }
.sp-contact__submit:disabled { opacity: 0.6; cursor: progress; }
/* Takk-boksen (Stian 25.11: «litt anonym»): blå hake, overskrift og tekst, uten strek (Anders 25.11) */
.sp-contact__done { position: relative; max-width: 720px; margin: 0; padding: var(--wp--custom--space--32) var(--wp--custom--space--32) var(--wp--custom--space--32) var(--wp--custom--space--96); border-radius: 5px; background: var(--sp-mist); color: var(--sp-ink); }
.sp-contact__done:focus { outline: none; }
.sp-contact__done { scroll-margin-top: 136px; }
.sp-contact__done > p { margin: 0; }
.sp-contact__done-mark { position: absolute; left: 32px; top: 32px; width: 40px; height: 40px; border-radius: 9999px; background: var(--sp-blue); }
.sp-contact__done-mark::after { content: ""; position: absolute; left: 14px; top: 9px; width: 10px; height: 18px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.sp-contact__done-title { font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -0.01em; }
.sp-contact__done-text { margin-top: 8px !important; font-size: 18px; line-height: 28px; font-weight: 250; color: var(--sp-mute); }
@media (max-width: 639px) {
	.sp-contact__done { padding: var(--wp--custom--space--24) var(--wp--custom--space--24) var(--wp--custom--space--24) 76px; }
	.sp-contact__done-mark { left: 24px; top: 24px; width: 36px; height: 36px; }
	.sp-contact__done-mark::after { left: 13px; top: 8px; width: 9px; height: 16px; }
	.sp-contact__done-title { font-size: 24px; line-height: 30px; }
	.sp-contact__done-text { font-size: 16px; line-height: 24px; }
}
/* 45: «Les mer» er tatt ut av Relaterte artikler i malene; skjult også der
   en mal er lagret i databasen (Petter 24.11) */
.sp-rel__more { display: none; }
/* 47: luft over knappen i kontorseksjonen på /kontakt/ (Petter 24.11) */
.sp-kt-office__grid .wp-block-column > .sp-kt-office__actions { margin-top: 32px !important; }
/* 48: teambåndet på mobil – bare det stående bildet (sp-teamband__mobil, 4:5);
   fra 768 px de tre som før (Petter 24.11) */
@media (max-width: 767.98px) {
	.sp-teamband:has(> .sp-teamband__mobil) > .wp-block-image:not(.sp-teamband__mobil) { display: none; }
	.sp-teamband > .sp-teamband__mobil img { aspect-ratio: 4 / 5; }
}
@media (min-width: 768px) { .sp-teamband > .sp-teamband__mobil { display: none; } }
/* 49: Bilde som rulles sidelengs i galleriet (.sp-scrollbilde, Petter 24.11).
   HTML-blokk: figure.sp-cs-gal__item.sp-scrollbilde > div.sp-scrollbilde__ramme
   (tabindex, role="region", aria-label) > img, span.sp-scrollbilde__hint, figcaption.
   Rammen er 4:3, og 21:9 fra 768 px på plass --3. Bildet fyller høyden og
   rulles sidelengs. Pillen «rull sidelengs →» tones ut etter 12 % rulling der
   nettleseren støtter rulledrevne animasjoner, ellers blir den stående.
   Selektoren på bildet slår galleriets 4:3-regel for --2 med bildetekst. */
.sp-cs-gal .sp-scrollbilde { position: relative; timeline-scope: --sp-rull; }
.sp-cs-gal .sp-scrollbilde .sp-scrollbilde__ramme { overflow-x: auto; overflow-y: hidden; aspect-ratio: 4 / 3; border-radius: 5px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(35, 35, 35, 0.35) transparent; scroll-timeline: --sp-rull x; }
@media (min-width: 768px) { .sp-cs-gal .sp-scrollbilde.sp-cs-gal__item--3 .sp-scrollbilde__ramme { aspect-ratio: 21 / 9; } }
.sp-cs-gal > .sp-cs-gal__item.sp-scrollbilde:is(figure) .sp-scrollbilde__ramme > img {
	display: block;
	height: 100% !important; /* galleriets bilder har height: auto !important */
	width: auto;
	max-width: none;
	aspect-ratio: auto;
	object-fit: fill;
	border-radius: 0;
	animation: none;
	transform: none;
}
.sp-cs-gal .sp-scrollbilde .sp-scrollbilde__ramme:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: -2px; }
.sp-cs-gal .sp-scrollbilde .sp-scrollbilde__hint { position: absolute; top: 16px; right: 16px; z-index: 2; pointer-events: none; font-family: var(--sp-mono); font-size: 11.5px; line-height: 16px; letter-spacing: 0.02em; font-weight: 400; padding: 7px 14px; border-radius: 9999px; background: var(--sp-paper); color: var(--sp-ink); }
@supports (animation-timeline: --sp-rull) {
	.sp-cs-gal .sp-scrollbilde .sp-scrollbilde__hint { animation: sp-rull-ut linear both; animation-timeline: --sp-rull; animation-range: 0% 12%; }
}
@keyframes sp-rull-ut { to { opacity: 0; } }
/* objpos:auto start */
/* Bildeutsnitt som ikke finnes i standardsettet (gen_case.py sync_objpos_css) */
.sp-objpos-40-50 img { object-position: 40% 50% !important; transform-origin: 40% 50%; }
.sp-objpos-50-18 img { object-position: 50% 18% !important; transform-origin: 50% 18%; }
.sp-objpos-50-28 img { object-position: 50% 28% !important; transform-origin: 50% 28%; }
.sp-objpos-70-50 img { object-position: 70% 50% !important; transform-origin: 70% 50%; }
/* objpos:auto end */
