.rox-tl {
	--rox-tl-bg: transparent;
	--rox-tl-eyebrow: #b39b6e;
	--rox-tl-heading: #f7f1e6;
	--rox-tl-accent: #d9c7a7;
	--rox-tl-text: #b4a595;
	--rox-tl-max: 900px;
	--rox-tl-radius: 4px;
	--rox-tl-pad: 0px;
	--rox-tl-time-col: 96px;
	--rox-tl-rail: 44px;
	--rox-tl-text-max: 56ch;
	--rox-tl-serif: Georgia, "Times New Roman", serif;
	--rox-tl-rule: color-mix(in oklch, var(--rox-tl-accent) 30%, transparent);

	/* Type: overridable per element from Rox Widgets → Timeline. */
	--rox-tl-eyebrow-font: inherit;
	--rox-tl-eyebrow-size: 13px;
	--rox-tl-eyebrow-weight: 600;
	--rox-tl-title-font: var(--rox-tl-serif);
	--rox-tl-title-size: clamp(30px, 5vw, 42px);
	--rox-tl-title-weight: 400;
	--rox-tl-item-title-font: var(--rox-tl-serif);
	--rox-tl-item-title-size: 19px;
	--rox-tl-item-title-weight: 400;
	--rox-tl-time-font: var(--rox-tl-serif);
	--rox-tl-time-size: 17px;
	--rox-tl-time-weight: 400;
	--rox-tl-text-font: inherit;
	--rox-tl-text-size: 15px;
	--rox-tl-text-weight: 400;

	box-sizing: border-box;
	max-width: var(--rox-tl-max);
	margin-inline: auto;
	padding: var(--rox-tl-pad);
	background: var(--rox-tl-bg);
	border-radius: var(--rox-tl-radius);
	color: var(--rox-tl-text);
}

.rox-tl *,
.rox-tl *::before,
.rox-tl *::after {
	box-sizing: inherit;
}

/* ---------- header ---------- */

.rox-tl-head {
	margin-bottom: clamp(28px, 5vw, 52px);
}

/*
 * Themes such as Avada style every h2/h3 globally, sometimes with !important.
 * The type properties below are the ones the widget owns, so they claim them
 * outright — everything else stays overridable from the theme or custom CSS.
 */
.rox-tl .rox-tl-eyebrow {
	margin: 0 0 10px;
	font-family: var(--rox-tl-eyebrow-font) !important;
	font-size: var(--rox-tl-eyebrow-size) !important;
	font-weight: var(--rox-tl-eyebrow-weight) !important;
	line-height: 1.4;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: var(--rox-tl-eyebrow) !important;
}

.rox-tl .rox-tl-title {
	margin: 0;
	font-family: var(--rox-tl-title-font) !important;
	font-style: italic !important;
	font-weight: var(--rox-tl-title-weight) !important;
	font-size: var(--rox-tl-title-size) !important;
	line-height: 1.15;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-wrap: balance;
	color: var(--rox-tl-heading) !important;
}

/* Upright and softer, so the emphasised word reads as a second voice. */
.rox-tl .rox-tl-title em,
.rox-tl .rox-tl-title i {
	font-style: normal !important;
	color: var(--rox-tl-accent) !important;
}

/* ---------- list ---------- */

.rox-tl-list {
	margin: 0;
	padding: 0;
	padding-inline-start: clamp(16px, 4vw, 40px);
	list-style: none;
	border-inline-start: 1px solid var(--rox-tl-rule);
}

.rox-tl-item {
	display: grid;
	grid-template-columns: var(--rox-tl-time-col) var(--rox-tl-rail) minmax(0, 1fr);
	align-items: start;
}

.rox-tl-item + .rox-tl-item {
	margin-top: 26px;
}

.rox-tl .rox-tl-time {
	grid-column: 1;
	font-family: var(--rox-tl-time-font) !important;
	font-style: normal !important;
	font-weight: var(--rox-tl-time-weight) !important;
	font-size: var(--rox-tl-time-size) !important;
	line-height: 1.45;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: end;
	color: var(--rox-tl-accent) !important;
}

.rox-tl-rail {
	grid-column: 2;
	display: flex;
	justify-content: center;
}

.rox-tl-dot {
	width: 9px;
	height: 9px;
	margin-top: 0.5em;
	border-radius: 50%;
	background: color-mix(in oklch, var(--rox-tl-accent) 55%, transparent);
	box-shadow: 0 0 0 1px color-mix(in oklch, var(--rox-tl-accent) 25%, transparent);
}

.rox-tl-body {
	grid-column: 3;
}

.rox-tl .rox-tl-item-title {
	margin: 0;
	font-family: var(--rox-tl-item-title-font) !important;
	font-style: normal !important;
	font-weight: var(--rox-tl-item-title-weight) !important;
	font-size: var(--rox-tl-item-title-size) !important;
	line-height: 1.3;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--rox-tl-heading) !important;
}

.rox-tl .rox-tl-item--italic .rox-tl-item-title {
	font-style: italic !important;
}

.rox-tl .rox-tl-text {
	margin: 7px 0 0;
	max-width: var(--rox-tl-text-max);
	font-family: var(--rox-tl-text-font) !important;
	font-size: var(--rox-tl-text-size) !important;
	font-weight: var(--rox-tl-text-weight) !important;
	line-height: 1.6;
	color: var(--rox-tl-text) !important;
	text-wrap: pretty;
}

/* ---------- reveal ---------- */

.rox-tl--motion .rox-tl-head,
.rox-tl--motion .rox-tl-item {
	opacity: 0;
	transform: translateY(8px);
}

.rox-tl--motion.is-revealed .rox-tl-head,
.rox-tl--motion.is-revealed .rox-tl-item {
	opacity: 1;
	transform: none;
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.rox-tl--motion.is-revealed .rox-tl-item {
	transition-delay: calc(120ms + var(--rox-tl-i, 0) * 90ms);
}

/* Phone: no rail, everything centred, the time stacked above its entry. */
@media (max-width: 600px) {
	.rox-tl {
		/* keeps a set padding from eating a phone screen, and leaves 0 at 0 */
		padding: min(var(--rox-tl-pad), 6vw);
		text-align: center;

		/* Inline sizes are set on the element itself, so a chosen number still wins here. */
		--rox-tl-time-size: 15px;
		--rox-tl-item-title-size: 18px;
	}

	.rox-tl-list {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.rox-tl-item {
		display: block;
	}

	.rox-tl-item + .rox-tl-item {
		margin-top: 30px;
	}

	.rox-tl-rail {
		display: none;
	}

	.rox-tl .rox-tl-time {
		display: block;
		margin-bottom: 3px;
		text-align: center;
	}

	.rox-tl .rox-tl-text {
		margin-inline: auto;
		text-wrap: balance;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rox-tl--motion .rox-tl-head,
	.rox-tl--motion .rox-tl-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
