/* Compact the empty skip-link target used between the EGD hero and news section. */
.elementor > .elementor-top-section#hovedinnhold:not(:has(.elementor-widget)):has(+ .elementor-top-section .egd-news) {
	margin-block: 1.25rem .5rem;
}

.egd-news {
	--egd-primary: #002a4e;
	--egd-ink: #171717;
	--egd-line: #d9dee2;
	--egd-muted: #4a5159;
	--egd-row-tint: rgba(0, 42, 78, .055);
	color: var(--egd-ink);
	font-family: "Cormorant Garamond", Georgia, serif;
}

.egd-news .egd-news__visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.egd-news .egd-news__section-title {
	margin: 0 0 1.25rem;
	color: var(--egd-primary);
	font-family: inherit;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.18;
}

.egd-news .egd-news__archive-jump {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	min-height: 44px;
	margin-block-end: .25rem;
	color: var(--egd-primary);
	font-size: 1.0625rem;
	text-decoration: underline;
	text-underline-offset: .16em;
}

.egd-news :is(.egd-news__cards, .egd-news__rows) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.egd-news .egd-news__cards {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.875rem);
}

.egd-news .egd-news__card {
	grid-column: span 2;
	min-width: 0;
	margin: 0;
}

.egd-news .egd-news__card--large {
	grid-column: span 3;
}

.egd-news :is(.egd-news__card-link, .egd-news__row) {
	color: inherit;
	text-decoration: none;
}

.egd-news .egd-news__card-link {
	position: relative;
	display: block;
}

.egd-news .egd-news__card--large .egd-news__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.egd-news .egd-news__media {
	aspect-ratio: 1.83;
	overflow: hidden;
	background-color: #e9edf0;
}

.egd-news .egd-news__card--large .egd-news__media {
	aspect-ratio: 3 / 2;
}

.egd-news .egd-news__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.egd-news .egd-news__date-badge {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	padding: .5em .85em;
	background: var(--egd-primary);
	color: #fff;
	font-size: 1rem;
	line-height: 1.35;
}

.egd-news .egd-news__card-title {
	margin: .85em 0 0;
	color: inherit;
	font-family: inherit;
	font-size: clamp(1.05rem, 1.7vw, 1.25rem);
	font-weight: 500;
	line-height: 1.38;
	letter-spacing: .08em;
	text-transform: uppercase;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.egd-news .egd-news__card--large .egd-news__card-title {
	margin-block-start: clamp(1rem, 2.4vw, 1.75rem);
	font-size: clamp(1.2rem, 2vw, 1.375rem);
	letter-spacing: .1em;
}

.egd-news .egd-news__card--large .egd-news__date-badge {
	font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.egd-news .egd-news__excerpt {
	margin: .7rem 0 0;
	color: #615e5e;
	font-size: clamp(1.125rem, 1.8vw, 1.25rem);
	font-weight: 500;
	line-height: 1.45;
}

.egd-news .egd-news__more {
	display: inline-flex;
	align-items: baseline;
	gap: .5em;
	align-self: flex-start;
	margin-block-start: auto;
	padding-block-start: 1rem;
	color: var(--egd-primary);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.5;
}

.egd-news .egd-news__arrow {
	display: inline-block;
	color: var(--egd-primary);
}

.egd-news .egd-news__archive {
	margin-block-start: clamp(2rem, 5vw, 4rem);
	padding-block-start: clamp(1.5rem, 3vw, 2rem);
	border-block-start: 1px solid var(--egd-line);
	scroll-margin-block-start: 8rem;
}

.egd-news .egd-news__archive:first-child {
	margin-block-start: 0;
}

.egd-news .egd-news__year {
	display: grid;
	grid-template-columns: minmax(4rem, 1fr) minmax(0, 8fr);
	gap: .5rem 1.5rem;
	margin-block-start: 1.35rem;
}

.egd-news .egd-news__year-title {
	margin: .35rem 0 0;
	color: var(--egd-primary);
	font-family: inherit;
	font-size: 1.6rem;
	line-height: 1.15;
}

.egd-news .egd-news__row {
	display: grid;
	grid-template-columns: minmax(5.75rem, auto) minmax(0, 1fr) auto;
	align-items: baseline;
	gap: .35rem .75rem;
	min-height: 44px;
	box-sizing: border-box;
	padding: .6rem .75rem;
	border-block-end: 1px solid var(--egd-line);
	font-size: 1.2rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.egd-news .egd-news__row time {
	color: var(--egd-muted);
	font-size: 1rem;
}

.egd-news .egd-news__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	margin-block-start: 1.25rem;
}

.egd-news .egd-news__pagination a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--egd-primary);
	font-size: 1.15rem;
	text-decoration: underline;
}

.egd-news :is(.egd-news__card-link, .egd-news__row):focus-visible :is(.egd-news__card-title, .egd-news__row-title) {
	text-decoration: underline;
	text-underline-offset: .16em;
}

.egd-news .egd-news__row:focus-visible {
	background-color: var(--egd-row-tint);
}

.egd-news a:focus-visible {
	outline: 2px solid var(--egd-primary);
	outline-offset: 3px;
}

@media (hover: hover) {
	.egd-news .egd-news__row:hover {
		background-color: var(--egd-row-tint);
	}

	.egd-news :is(.egd-news__card-link, .egd-news__row):hover :is(.egd-news__card-title, .egd-news__row-title) {
		color: var(--egd-primary);
		text-decoration: underline;
		text-underline-offset: .16em;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.egd-news .egd-news__row {
		transition: background-color 160ms ease-out;
	}

	.egd-news .egd-news__arrow {
		transition: transform 180ms ease-out;
	}

	.egd-news .egd-news__card--large .egd-news__media img {
		transition: transform 280ms ease-out;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.egd-news :is(.egd-news__card-link, .egd-news__row):hover .egd-news__arrow {
		transform: translateX(3px);
	}

	.egd-news .egd-news__card--large .egd-news__card-link:hover .egd-news__media img {
		transform: scale(1.025);
	}
}

@media (max-width: 600px) {
	.elementor > .elementor-top-section#hovedinnhold:not(:has(.elementor-widget)):has(+ .elementor-top-section .egd-news) {
		margin-block: .5rem 0;
	}

	.egd-news .egd-news__cards,
	.egd-news .egd-news__year {
		grid-template-columns: minmax(0, 1fr);
	}

	.egd-news .egd-news__card {
		grid-column: 1;
	}

	.egd-news .egd-news__card:not(.egd-news__card--large) .egd-news__card-link {
		display: grid;
		grid-template-columns: minmax(6rem, 29%) minmax(0, 1fr);
		grid-template-areas: 'photo title' 'photo date';
		align-items: center;
		gap: .2rem .75rem;
	}

	.egd-news .egd-news__card:not(.egd-news__card--large) .egd-news__media {
		grid-area: photo;
	}

	.egd-news .egd-news__card:not(.egd-news__card--large) .egd-news__card-title {
		grid-area: title;
		align-self: end;
		margin: 0;
		letter-spacing: .015em;
		text-transform: none;
	}

	.egd-news .egd-news__card:not(.egd-news__card--large) .egd-news__date-badge {
		position: static;
		grid-area: date;
		align-self: start;
		justify-self: start;
		padding: .2em .55em;
		font-size: .9375rem;
	}

	.egd-news .egd-news__row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: 'date arrow' 'title arrow';
		align-items: center;
		gap: .15rem .65rem;
		padding-inline: .5rem;
	}

	.egd-news .egd-news__row > :first-child {
		grid-area: date;
	}

	.egd-news .egd-news__row-title {
		grid-area: title;
		hyphens: auto;
	}

	.egd-news .egd-news__row .egd-news__arrow {
		grid-area: arrow;
	}
}
