:root {
	--tt-ink: #161a18;
	--tt-graphite: #242a27;
	--tt-paper: #f4f2eb;
	--tt-card: #fff;
	--tt-muted: #68706b;
	--tt-line: #d9ddd7;
	--tt-accent: #f26b21;
	--tt-accent-dark: #bd4310;
	--tt-green: #263b30;
	--tt-radius: 3px;
	--tt-shadow: 0 16px 45px rgba(16, 25, 20, 0.1);
}

.testteam-site,
.testteam-site * {
	box-sizing: border-box;
}

.testteam-site {
	background: var(--tt-paper);
	color: var(--tt-ink);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.55;
}

.testteam-site a {
	color: inherit;
	text-decoration: none;
}

.testteam-shell {
	margin-inline: auto;
	max-width: 1240px;
	padding-inline: 24px;
	width: 100%;
}

.testteam-hero {
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
		var(--tt-ink);
	color: #fff;
	overflow: hidden;
	padding: 72px 0 56px;
	position: relative;
}

.testteam-hero::after {
	background: var(--tt-accent);
	content: "";
	height: 280px;
	position: absolute;
	right: -120px;
	top: -150px;
	transform: rotate(32deg);
	width: 280px;
}

.testteam-hero__intro {
	max-width: 920px;
	position: relative;
	z-index: 1;
}

.testteam-kicker {
	color: var(--tt-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.testteam-hero__lead {
	color: #fff;
	font-size: clamp(30px, 4.5vw, 58px);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.02;
	margin: 0 0 16px;
	max-width: 820px;
}

.testteam-hero__byline {
	color: #c8d0cb;
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	max-width: 740px;
}

.testteam-hero__grid {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
	margin-top: 48px;
}

.testteam-hero__feature {
	min-width: 0;
}

.testteam-hero__feature .testteam-card {
	height: auto;
}

.testteam-hero__rail {
	display: grid;
	gap: 10px;
	grid-auto-rows: auto;
	min-width: 0;
}

.testteam-site .testteam-card {
	background: var(--tt-card);
	color: var(--tt-ink);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

/*
 * Hero-kortene får egne, eksplisitte farger. Newspaper/tagDiv har enkelte
 * globale kortregler; denne avgrensningen sikrer god kontrast i heroen.
 */
.testteam-hero .testteam-card {
	background: #fff;
	color: var(--tt-ink);
}

.testteam-hero .testteam-card__title,
.testteam-hero .testteam-card__title a {
	color: var(--tt-ink);
}

.testteam-hero .testteam-card__excerpt {
	color: #535b56;
}

.testteam-hero .testteam-card__source {
	color: var(--tt-muted);
}

.testteam-card__media {
	aspect-ratio: 16 / 10;
	background: #343b37;
	display: block;
	overflow: hidden;
	position: relative;
}

.testteam-card__image {
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
	width: 100%;
}

.testteam-card:hover .testteam-card__image {
	transform: scale(1.025);
}

.testteam-card__fallback {
	align-items: center;
	background:
		linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.06) 55%, transparent 55%),
		var(--tt-green);
	color: rgba(255, 255, 255, 0.58);
	display: flex;
	font-size: clamp(18px, 3vw, 34px);
	font-weight: 900;
	height: 100%;
	justify-content: center;
	letter-spacing: 0.1em;
	width: 100%;
}

.testteam-score {
	background: var(--tt-accent);
	bottom: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	padding: 7px 10px;
	position: absolute;
	right: 0;
}

.testteam-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.testteam-card__eyebrow {
	align-items: center;
	color: var(--tt-muted);
	display: flex;
	font-size: 11px;
	font-weight: 700;
	gap: 10px;
	letter-spacing: 0.045em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.testteam-badge {
	background: var(--tt-green);
	color: #fff !important;
	display: inline-block;
	padding: 5px 7px 4px;
}

.testteam-card__title {
	font-size: clamp(19px, 2vw, 25px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin: 0;
}

.testteam-card__title a:hover,
.testteam-card__title a:focus-visible {
	color: var(--tt-accent-dark);
}

.testteam-card__excerpt {
	color: #535b56;
	font-size: 14px;
	line-height: 1.55;
	margin: 13px 0 0;
}

.testteam-card__source {
	border-top: 1px solid var(--tt-line);
	color: var(--tt-muted);
	font-size: 11px;
	margin: auto 0 0;
	padding-top: 16px;
	text-transform: uppercase;
}

.testteam-card__source span {
	color: var(--tt-ink);
	font-weight: 800;
}

.testteam-card__cta {
	align-items: center;
	border-top: 1px solid var(--tt-line);
	color: var(--tt-accent-dark) !important;
	display: flex;
	font-size: 12px;
	font-weight: 900;
	gap: 8px;
	justify-content: space-between;
	margin-top: 15px;
	padding-top: 13px;
}

.testteam-card__cta:hover,
.testteam-card__cta:focus-visible {
	color: var(--tt-ink) !important;
}

.testteam-card--feature .testteam-card__media {
	aspect-ratio: 16 / 9;
}

.testteam-card--feature .testteam-card__body {
	padding: 28px;
}

.testteam-card--feature .testteam-card__title {
	font-size: clamp(28px, 3vw, 46px);
}

.testteam-card--compact {
	background: #fff !important;
	display: grid !important;
	grid-template-columns: 132px minmax(0, 1fr) !important;
	height: 128px;
	min-height: 128px;
	overflow: hidden;
}

.testteam-card--compact .testteam-card__media {
	aspect-ratio: auto !important;
	height: 128px !important;
	min-height: 128px;
	width: 132px !important;
}

.testteam-card--compact .testteam-card__body {
	background: #fff;
	display: flex;
	justify-content: center;
	min-width: 0;
	padding: 13px 14px;
}

.testteam-card--compact .testteam-card__title {
	color: var(--tt-ink);
	display: -webkit-box;
	font-size: 16px;
	line-height: 1.15;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.testteam-card--compact .testteam-card__title a {
	color: var(--tt-ink);
}

.testteam-card--compact .testteam-card__eyebrow {
	margin-bottom: 8px;
}

.testteam-card--compact .testteam-card__eyebrow time,
.testteam-card--compact .testteam-card__source {
	display: none;
}

.testteam-card--compact .testteam-card__cta {
	border-top: 0;
	font-size: 10px;
	line-height: 1.15;
	margin-top: 7px;
	padding-top: 0;
}

.testteam-card--compact .testteam-badge {
	font-size: 9px;
	padding: 4px 5px 3px;
}

.testteam-card--compact .testteam-score {
	font-size: 10px;
	padding: 5px 7px;
}

.testteam-category-nav {
	background: #fff;
	border-bottom: 1px solid var(--tt-line);
	box-shadow: 0 8px 22px rgba(16, 25, 20, 0.04);
	position: relative;
	z-index: 2;
}

.testteam-category-nav .testteam-shell {
	align-items: center;
	display: flex;
	gap: 24px;
	min-height: 78px;
}

.testteam-category-nav__label {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.testteam-category-nav__items {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-block: 15px;
	scrollbar-width: thin;
}

.testteam-category-nav__items a {
	border: 1px solid var(--tt-line);
	font-size: 13px;
	font-weight: 700;
	padding: 9px 14px;
	white-space: nowrap;
}

.testteam-category-nav__items a:hover,
.testteam-category-nav__items a:focus-visible {
	background: var(--tt-ink);
	border-color: var(--tt-ink);
	color: #fff;
}

.testteam-content {
	padding-bottom: 90px;
	padding-top: 30px;
}

.testteam-section {
	border-top: 1px solid #c7cdc7;
	padding-top: 36px;
	margin-top: 64px;
}

.testteam-section__header {
	align-items: flex-end;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin-bottom: 30px;
}

.testteam-section__number {
	color: var(--tt-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
	margin: 0 0 8px;
}

.testteam-section__header h2 {
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 0.98;
	margin: 0;
}

.testteam-section__header p:not(.testteam-section__number, .testteam-kicker) {
	color: var(--tt-muted);
	margin: 12px 0 0;
}

.testteam-text-link {
	border-bottom: 2px solid var(--tt-accent);
	font-size: 13px;
	font-weight: 800;
	padding: 8px 0;
	white-space: nowrap;
}

.testteam-text-link span {
	color: var(--tt-accent);
}

.testteam-card-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testteam-card-grid .testteam-card {
	box-shadow: var(--tt-shadow);
}

.testteam-latest {
	margin-top: 90px;
}

.testteam-card-grid--latest {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testteam-card-grid--latest .testteam-card__title {
	font-size: 20px;
}

.testteam-card-grid--latest .testteam-card__body {
	padding: 18px;
}

.testteam-pagination {
	margin-top: 42px;
}

.testteam-pagination ul {
	display: flex;
	gap: 6px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.testteam-pagination a,
.testteam-pagination .current {
	align-items: center;
	background: #fff;
	display: flex;
	font-size: 13px;
	font-weight: 800;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 8px 13px;
}

.testteam-pagination .current {
	background: var(--tt-accent);
	color: #fff;
}

.testteam-about {
	background: var(--tt-green);
	color: #fff;
	padding: 72px 0;
}

.testteam-about__inner {
	align-items: start;
	display: grid;
	gap: 70px;
	grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
}

.testteam-about h2 {
	color: #fff;
	font-size: clamp(36px, 6vw, 72px);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 0.95;
	margin: 0;
}

.testteam-about__copy {
	max-width: 680px;
}

.testteam-about__copy p {
	color: #d5ddd8;
	font-size: clamp(18px, 2vw, 24px);
	line-height: 1.45;
	margin: 0 0 28px;
}

.testteam-button {
	background: var(--tt-accent);
	color: #fff !important;
	display: inline-block;
	font-size: 13px;
	font-weight: 900;
	padding: 14px 18px;
}

.testteam-button:hover,
.testteam-button:focus-visible {
	background: #fff;
	color: var(--tt-ink) !important;
}

.testteam-empty {
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin-top: 42px;
	padding: 32px;
}

.testteam-empty h2 {
	color: #fff;
	margin-top: 0;
}

.testteam-article-details {
	background: #f2f3ef;
	border-left: 4px solid var(--tt-accent);
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 28px;
	padding: 18px;
}

.testteam-landing-image {
	background-color: #eef0ec;
	background-image: var(--testteam-landing-image, none);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	display: block !important;
	margin: 0 0 28px;
	min-height: 280px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.testteam-landing-image__img {
	display: block !important;
	height: auto;
	margin: 0;
	max-height: 680px;
	object-fit: contain;
	opacity: 1 !important;
	visibility: visible !important;
	width: 100%;
}

/*
 * Newspaper kan skjule eller høydenullstille innholdsbilder i enkelte
 * desktop-maler. Bakgrunnsbildet på beholderen er en robust reserve.
 */
@media (min-width: 769px) {
	.testteam-landing-image {
		aspect-ratio: 16 / 9;
		height: auto !important;
		max-height: 680px;
		min-height: 360px !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.testteam-landing-image__img {
		height: 100% !important;
		left: 0;
		object-fit: contain !important;
		position: absolute;
		top: 0;
	}
}

.testteam-article-details div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.testteam-article-details span {
	color: var(--tt-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.testteam-article-details strong {
	font-size: 14px;
}

.testteam-article-details__cta {
	align-items: center;
	display: flex !important;
	grid-column: 1 / -1;
	margin-top: 8px;
}

.testteam-article-details__cta .testteam-button {
	color: #fff !important;
}

.testteam-landing-excerpt {
	color: #404843;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.65;
}

.testteam-site a:focus-visible {
	outline: 3px solid var(--tt-accent);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.testteam-hero__grid {
		grid-template-columns: 1fr;
	}

	.testteam-hero__rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.testteam-card--compact {
		grid-template-columns: 120px minmax(0, 1fr) !important;
	}

	.testteam-card--compact .testteam-card__media {
		width: 120px !important;
	}

	.testteam-card-grid--latest {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.testteam-shell {
		padding-inline: 16px;
	}

	.testteam-hero {
		padding: 52px 0 34px;
	}

	.testteam-hero__grid {
		margin-top: 34px;
	}

	.testteam-hero__rail {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.testteam-card--compact {
		flex: 0 0 min(88%, 390px);
		grid-template-columns: 112px minmax(0, 1fr) !important;
		scroll-snap-align: start;
	}

	.testteam-card--compact .testteam-card__media {
		width: 112px !important;
	}

	.testteam-category-nav .testteam-shell {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
		padding-top: 16px;
	}

	.testteam-section {
		margin-top: 50px;
	}

	.testteam-section__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.testteam-card-grid,
	.testteam-card-grid--latest {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.testteam-about__inner {
		gap: 34px;
		grid-template-columns: 1fr;
	}

	.testteam-article-details {
		grid-template-columns: 1fr;
	}

	.testteam-landing-image {
		margin-bottom: 20px;
		min-height: 0;
	}
}

@media (max-width: 520px) {
	.testteam-card-grid,
	.testteam-card-grid--latest {
		grid-template-columns: 1fr;
	}

	.testteam-card__media {
		aspect-ratio: 16 / 9;
	}

	.testteam-content {
		padding-bottom: 62px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.testteam-card__image {
		transition: none;
	}
}
