/* Site-wide header and footer polish, so every page (including Elementor ones) matches. */
:root {
	--dg-ink: #0B2536;
	--dg-brand: #0B426A;
	--dg-mid: #2F6F98;
	--dg-sky: #D6E6F0;
	--dg-mist: #F1F5F8;
	--dg-muted: #4D6474;
	--dg-line: #D9E2E8;
	--dg-wrap: 1320px;
	--dg-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-header,
.site-footer {
	font-family: var(--dg-font);
}

/* Wider page grid than the theme default; header, footer and our sections share it. */
.site-header .ast-container,
.site-footer .ast-container {
	max-width: calc(var(--dg-wrap) + 40px);
}

.site-header .ast-primary-header-bar {
	border-bottom: 1px solid var(--dg-line);
	background: #fff;
}

.site-header .site-title a,
.site-header .site-title a:hover {
	color: var(--dg-ink);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.site-header .main-header-menu .menu-link {
	color: var(--dg-ink);
	font-weight: 500;
	font-size: 15px;
}

.site-header .main-header-menu .menu-item:hover > .menu-link,
.site-header .main-header-menu .current-menu-item > .menu-link,
.site-header .main-header-menu .current-menu-ancestor > .menu-link {
	color: var(--dg-brand);
}

.site-header .main-header-menu .current-menu-item > .menu-link {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

.site-header a:focus-visible,
.site-footer a:focus-visible {
	outline: 2px solid var(--dg-brand);
	outline-offset: 3px;
}

.site-footer .ast-builder-grid-row-container,
.site-footer .site-below-footer-wrap {
	background: var(--dg-ink);
	color: #B9CAD6;
	border: 0;
}

.site-footer a {
	color: #fff;
}

/* Hide the theme's empty widget row; our footer block replaces it. */
.site-footer .site-primary-footer-wrap:not(:has(.widget)) {
	display: none;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	color: #8FA6B6;
	font-size: 14px;
}

.site-footer .site-below-footer-wrap {
	border-top: 1px solid rgba(214, 230, 240, .14);
}

.dg-footer {
	background: var(--dg-ink);
	color: #B9CAD6;
	font-family: var(--dg-font);
	font-size: 15px;
	line-height: 1.6;
}

.dg-footer__inner {
	max-width: var(--dg-wrap);
	margin: 0 auto;
	padding: 64px 20px 48px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
}

.dg-footer p {
	margin: 0;
}

.dg-footer__name {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 6px !important;
}

.dg-footer__h {
	color: #fff;
	font-weight: 600;
	margin-bottom: 12px !important;
}

.dg-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dg-footer li {
	margin: 0 0 8px;
}

.dg-footer a {
	color: #B9CAD6;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.dg-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dg-footer a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 760px) {
	.dg-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 48px 20px 36px;
	}
}

#ast-scroll-top {
	background-color: var(--dg-brand);
	border-radius: 6px;
}

/* Mobile dropdown overlays the page: give it an edge so it does not blend into the content below. */
.ast-mobile-header-content {
	border-bottom: 1px solid #E2E8F0;
	box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
	padding-bottom: 8px;
}
