/* Global header, navigation and footer. */

.th-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--th-radius-sm);
	background: var(--th-navy);
	color: var(--th-white);
	font-weight: 600;
	transform: translateY(-200%);
}

.th-skip-link:focus {
	transform: none;
	color: var(--th-white);
}

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

.th-header {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid var(--th-border);
	background: var(--th-white);
}

.th-header__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding-block: 16px;
}

.th-header__logo img {
	display: block;
	width: 87px;
	height: 48px;
}

.th-nav__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
}

.th-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--th-fs-sm);
	font-weight: 500;
}

.th-nav__list a {
	text-decoration: none;
}

.th-nav__list .current-menu-item > a,
.th-nav__list a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--th-blue);
}

.th-nav__cta {
	padding: 12px 20px;
	font-size: var(--th-fs-sm);
}

.th-nav__toggle {
	display: none;
}

@media (max-width: 860px) {
	/* Without JS the menu just wraps; with JS it collapses behind the button. */
	.js .th-nav__toggle {
		display: inline-flex;
		gap: 10px;
		align-items: center;
		padding: 10px 14px;
		border: 1.5px solid var(--th-border-strong);
		border-radius: var(--th-radius-sm);
		background: var(--th-white);
		color: var(--th-navy);
		font: 600 var(--th-fs-sm) / 1 var(--th-font-body);
		cursor: pointer;
	}

	.th-nav__toggle-icon,
	.th-nav__toggle-icon::before,
	.th-nav__toggle-icon::after {
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 1px;
		background: currentColor;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.th-nav__toggle-icon {
		position: relative;
	}

	.th-nav__toggle-icon::before,
	.th-nav__toggle-icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.th-nav__toggle-icon::before {
		top: -6px;
	}

	.th-nav__toggle-icon::after {
		top: 6px;
	}

	.th-nav__toggle[aria-expanded="true"] .th-nav__toggle-icon {
		background: transparent;
	}

	.th-nav__toggle[aria-expanded="true"] .th-nav__toggle-icon::before {
		transform: translateY(6px) rotate(45deg);
	}

	.th-nav__toggle[aria-expanded="true"] .th-nav__toggle-icon::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.js .th-nav__menu {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		gap: 20px;
		align-items: stretch;
		padding: 8px var(--th-gutter) 24px;
		border-bottom: 1px solid var(--th-border);
		background: var(--th-white);
		box-shadow: 0 12px 24px rgb(2 27 91 / 0.08);
	}

	.js .th-nav.is-open .th-nav__menu {
		display: flex;
	}

	.js .th-nav__list {
		flex-direction: column;
		gap: 0;
		font-size: var(--th-fs-body-lg);
	}

	.js .th-nav__list a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--th-border);
	}

	.js .th-nav__cta {
		text-align: center;
	}
}

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

.th-footer {
	--th-link: var(--th-on-dark-muted);
	--th-link-hover: var(--th-on-dark);

	background: var(--th-navy-dark);
	color: var(--th-on-dark-muted);
	font-size: 0.875rem;
	line-height: 1.7;
}

.th-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	justify-content: space-between;
	padding-top: 48px;
	padding-bottom: 32px;
}

.th-footer__brand {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 8px;
}

.th-footer__brand img {
	width: 73px;
	height: 40px;
}

.th-footer__brand address {
	font-style: normal;
}

.th-footer__brand address a {
	color: var(--th-on-dark);
}

.th-footer__col {
	display: flex;
	flex: 1 1 180px;
	flex-direction: column;
}

.th-footer__heading {
	margin-bottom: 4px;
	color: var(--th-on-dark);
	font-weight: 600;
}

.th-footer__links + .th-footer__heading {
	margin-top: 12px;
}

.th-footer__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	padding-block: 20px 28px;
	border-top: 1px solid var(--th-on-dark-line);
	font-size: var(--th-fs-xs);
}

.th-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
