/**
 * Strategic Owner Toolkit - Process Timeline
 *
 * Defaults match the process section on thestrategicowner.com. The widget's
 * Style tab overrides them; colours and sizes arrive as the custom
 * properties declared on .tso-timeline. Child rules are scoped under
 * .tso-timeline so theme / Elementor Kit heading and paragraph styles
 * can't leak in.
 */

.tso-timeline {
	--tso-tl-size: 64px;
	--tso-tl-line-w: 1px;
	--tso-tl-line-1: #1ead73;
	--tso-tl-line-2: #086c69;
	--tso-tl-line-3: rgba(9, 22, 41, .2);
	position: relative;
	display: flex;
	flex-direction: column;
	row-gap: 32px;
}

/* One continuous line from the first box to the end of the last step,
   centred on the boxes and painted behind them. */
.tso-timeline--line::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: calc((var(--tso-tl-size) - var(--tso-tl-line-w)) / 2);
	inset-inline-start: round(calc((var(--tso-tl-size) - var(--tso-tl-line-w)) / 2), 1px); /* whole pixel = crisp line */
	width: var(--tso-tl-line-w);
	background: linear-gradient(var(--tso-tl-line-1), var(--tso-tl-line-2), var(--tso-tl-line-3));
	pointer-events: none;
}

.tso-timeline .tso-timeline__item {
	display: flex;
	align-items: flex-start;
	column-gap: 40px;
}

.tso-timeline .tso-timeline__marker {
	position: relative; /* stacks above the line */
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--tso-tl-size);
	height: var(--tso-tl-size);
	border: 2px solid var(--tso-tl-box-border, rgba(9, 22, 41, .2));
	background-color: var(--tso-tl-box-bg, #fff);
	color: var(--tso-tl-box-color, #091629);
	font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.43;
}

.tso-timeline .is-highlighted > .tso-timeline__marker {
	border-color: var(--tso-tl-hl-border, #1ead73);
	background-color: var(--tso-tl-hl-bg, rgba(30, 173, 115, .1));
	color: var(--tso-tl-hl-color, var(--tso-tl-box-color, #091629));
}

.tso-timeline .tso-timeline__content {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 16px;
	overflow-wrap: break-word;
}

.tso-timeline .tso-timeline__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-bottom: 4px;
}

.tso-timeline .tso-timeline__title {
	margin: 0;
	padding: 0;
	color: #091629;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.556;
	letter-spacing: normal;
	text-transform: none;
}

.tso-timeline .tso-timeline__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}

.tso-timeline .tso-timeline__badge {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid rgba(30, 173, 115, .3);
	color: #1ead73;
	font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.334;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tso-timeline .tso-timeline__desc {
	max-width: 576px;
	margin: 0;
	padding: 0;
	color: #4a5565;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.625;
}

@media (max-width: 767px) {
	.tso-timeline {
		--tso-tl-size: 32px;
	}

	.tso-timeline .tso-timeline__item {
		column-gap: 24px;
	}

	.tso-timeline .tso-timeline__content {
		padding-top: 4px;
	}

	.tso-timeline .tso-timeline__marker {
		font-size: 12px;
		line-height: 1.334;
	}

	.tso-timeline .tso-timeline__title {
		font-size: 16px;
		line-height: 1.5;
	}

	.tso-timeline .tso-timeline__desc {
		font-size: 14px;
	}
}

/* Reveal on scroll (optional). Only active once the script has added
   .tso-timeline--reveal, so content is never hidden without JS. Steps fade
   in only - hiding is instant, so nothing animates out of view. */
.tso-timeline--reveal .tso-timeline__item:not(.is-revealed) {
	opacity: 0;
	transform: translateY(20px);
}

.tso-timeline--reveal .tso-timeline__item.is-revealed {
	transition: opacity .7s cubic-bezier(.23, 1, .32, 1), transform .7s cubic-bezier(.23, 1, .32, 1);
}
