/* Dahlheimer Enhancements front-end styles. */

/*
 * The SVG overhangs the adjacent section by --nwd-curve-overlap and paints
 * above it, so sub-pixel rounding at the curve's flat edge never shows the
 * divider background as a hairline.
 */
.nwd-curve-divider {
	--nwd-curve-overlap: 2px;
	position: relative;
	z-index: 1;
	width: 100%;
	background-color: #07151F;
	line-height: 0;
}

.nwd-curve-divider__svg {
	display: block;
	width: 100%;
	height: calc(93px + var(--nwd-curve-overlap));
	margin-bottom: calc(-1 * var(--nwd-curve-overlap));
}

.nwd-curve-divider__shape {
	fill: #fff;
}

.nwd-curve-divider--top .nwd-curve-divider__svg {
	transform: scaleY(-1);
	margin-top: calc(-1 * var(--nwd-curve-overlap));
	margin-bottom: 0;
}

.nwd-timeline {
	color: inherit;
}

.nwd-timeline__navigation {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) max-content;
	align-items: center;
	gap: 12px;
}

.nwd-timeline__tablist {
	position: relative;
	display: flex;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: thin;
}

.nwd-timeline__tab {
	position: relative;
	flex: 1 0 auto;
	padding: 12px 16px 14px;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease;
}

.nwd-timeline__arrow {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	flex: 0 0 auto;
	aspect-ratio: 1 / 1;
	border: 1px solid currentColor;
	-webkit-appearance: none;
	appearance: none;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.nwd-timeline__arrow::before,
.nwd-timeline__arrow::after {
	display: none !important;
	content: none !important;
}

.nwd-timeline__icon {
	display: inline-flex;
	width: 1em;
	height: 1em;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
}

.nwd-timeline__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor !important;
}

.nwd-timeline__icon svg * {
	fill: currentColor !important;
}

.nwd-timeline__arrow:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.nwd-timeline__viewport {
	overflow: hidden;
	touch-action: pan-y;
}

.nwd-timeline__track {
	display: flex;
	transition: transform 420ms cubic-bezier(0.22, 0.68, 0, 1);
}

.nwd-timeline__slide {
	flex: 0 0 100%;
	min-width: 0;
	padding: 40px 0;
}

.nwd-timeline__panel {
	display: grid;
	grid-template-columns: minmax(0, var(--nwd-timeline-copy-ratio, 1fr)) minmax(0, 1fr);
	align-items: var(--nwd-timeline-align, center);
	gap: 48px;
}

.nwd-timeline__slide:not(.nwd-timeline__slide--has-image) .nwd-timeline__panel {
	grid-template-columns: minmax(0, 1fr);
}

.nwd-timeline__copy,
.nwd-timeline__media {
	min-width: 0;
}

.nwd-timeline__heading {
	margin: 0 0 24px;
	color: inherit;
}

.nwd-timeline__body {
	color: inherit;
}

.nwd-timeline__body > :first-child {
	margin-top: 0;
}

.nwd-timeline__body > :last-child {
	margin-bottom: 0;
}

.nwd-timeline__media {
	position: relative;
}

.nwd-timeline__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 75vh;
	aspect-ratio: 1.08 / 1;
	object-fit: cover;
}

.nwd-timeline__overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: calc(100% - 32px);
	padding: 4px 12px;
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	text-align: center;
	transform: translate(-50%, -50%);
}

.nwd-timeline__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nwd-timeline :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.nwd-timeline__panel {
		grid-template-columns: minmax(0, 1fr);
		align-items: stretch;
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.nwd-timeline__navigation {
		grid-template-columns: max-content minmax(0, 1fr) max-content;
		gap: 6px;
	}

	.nwd-timeline__tab {
		padding: 10px 12px 12px;
	}

	.nwd-timeline__slide {
		padding: 28px 0;
	}

	.nwd-timeline__panel {
		gap: 24px;
	}

	.nwd-timeline__image {
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nwd-timeline__tab::after,
	.nwd-timeline__tab,
	.nwd-timeline__arrow,
	.nwd-timeline__track {
		transition: none;
	}
}
