/* Lean Timelines. Inherits your theme's fonts and text colour; override the custom properties below to restyle. */

.tlite-wrap { container: tlite / inline-size; }

.tlite {
	--tlite-accent: #ff6b6b;
	--tlite-surface: #fff; /* Ring around markers; set to your page background on dark themes. */
	--tlite-line: #d4d4d4;
	--tlite-muted: #6b6b6b;
	--tlite-card: rgba(127, 127, 127, .07);
	--tlite-gap: 2.5em;
	margin: 2em 0;
}
@supports (color: color-mix(in srgb, red, blue)) {
	.tlite {
		--tlite-line: color-mix(in srgb, currentColor 22%, transparent);
		--tlite-muted: color-mix(in srgb, currentColor 65%, transparent);
	}
}

.tlite__list { list-style: none; margin: 0; padding: 0; }
.tlite__list > li { margin: 0; }
.tlite .tlite__title { margin: 0 0 .5em; font-size: 1.5em; line-height: 1.2; }
.tlite__date {
	display: block;
	color: var(--tlite-muted);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
}
.tlite__img { margin: 0 0 1em; }
.tlite__img img { display: block; max-width: 100%; height: auto; border-radius: 5px; }
.tlite__text > :first-child { margin-top: 0; }
.tlite__text > :last-child { margin-bottom: 0; }
.tlite :focus-visible { outline: 3px solid var(--tlite-accent); outline-offset: 3px; }
.tlite-empty { padding: .75em 1em; border: 1px dashed currentColor; opacity: .7; }

/* ---------- Vertical layouts (1, 2, 3, 7): shared mobile-first base ---------- */

.tlite--vertical-1 .tlite__item,
.tlite--vertical-2 .tlite__item,
.tlite--vertical-3 .tlite__item,
.tlite--vertical-7 .tlite__item {
	display: grid;
	grid-template-columns: var(--tlite-rail, 20px) minmax(0, 1fr);
	column-gap: 1.25em;
}
.tlite__marker { position: relative; grid-column: 1; grid-row: 1 / span 2; }
.tlite__item > .tlite__date,
.tlite__item > .tlite__side { grid-column: 2; grid-row: 1; margin-bottom: .5em; }
.tlite__item > .tlite__side { margin-bottom: 1em; }
.tlite__body > .tlite__date { margin-bottom: .5em; }
.tlite__item > .tlite__body { grid-column: 2; grid-row: 2; padding-bottom: var(--tlite-gap); }
.tlite__item:last-child > .tlite__body { padding-bottom: 0; }

/* Dot and dashed line. */
.tlite__marker::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 50%;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--tlite-accent);
	box-shadow: 0 0 0 3px var(--tlite-surface);
	transform: translateX(-50%);
}
.tlite__marker::after {
	content: "";
	position: absolute;
	top: 22px;
	bottom: -2px;
	left: 50%;
	border-left: 1px dashed var(--tlite-line);
}
.tlite__item:last-child > .tlite__marker::after { display: none; }

/* Vertical 2: dates in their own column. */
@container tlite (min-width: 640px) {
	.tlite--vertical-2 .tlite__item { grid-template-columns: minmax(7em, 22%) 20px minmax(0, 1fr); }
	.tlite--vertical-2 .tlite__marker { grid-column: 2; grid-row: 1; }
	.tlite--vertical-2 .tlite__item > .tlite__date { grid-column: 1; grid-row: 1; margin: 0; padding-top: .2em; text-align: right; }
	.tlite--vertical-2 .tlite__item > .tlite__body { grid-column: 3; grid-row: 1; }
}

/* Vertical 3 and 7: alternating sides. */
@container tlite (min-width: 782px) {
	.tlite--vertical-3 .tlite__item,
	.tlite--vertical-7 .tlite__item { grid-template-columns: minmax(0, 1fr) var(--tlite-rail, 20px) minmax(0, 1fr); column-gap: 2em; }
	.tlite--vertical-3 .tlite__marker,
	.tlite--vertical-7 .tlite__marker { grid-column: 2; grid-row: 1; }
	.tlite--vertical-3 .tlite__item > .tlite__date,
	.tlite--vertical-7 .tlite__item > .tlite__date { grid-row: 1; grid-column: 1; margin: 0; padding-top: .2em; text-align: right; }
	.tlite--vertical-3 .tlite__item > .tlite__body,
	.tlite--vertical-7 .tlite__item > .tlite__body { grid-row: 1; grid-column: 3; }

	.tlite--vertical-3 .tlite__item:nth-child(even) > .tlite__date,
	.tlite--vertical-7 .tlite__item:nth-child(even) > .tlite__date { grid-column: 3; text-align: left; }
	.tlite--vertical-3 .tlite__item:nth-child(even) > .tlite__body,
	.tlite--vertical-7 .tlite__item:nth-child(even) > .tlite__body { grid-column: 1; text-align: right; }
	.tlite--vertical-3 .tlite__item:nth-child(even) .tlite__img img { margin-left: auto; }

	/* Images opposite the text: the image sits where the date would be. */
	.tlite--split .tlite__item > .tlite__side { grid-row: 1; grid-column: 1; margin: 0 0 var(--tlite-gap); }
	.tlite--split .tlite__item:last-child > .tlite__side { margin-bottom: 0; }
	.tlite--split .tlite__item:nth-child(even) > .tlite__side { grid-column: 3; }
	.tlite--split .tlite__item:nth-child(odd) > .tlite__side img { margin-left: auto; }
	.tlite--split .tlite__item:nth-child(even) > .tlite__side img { margin-left: 0; }
}

/* Vertical 7: icon discs on a solid rail, content in cards. */
.tlite--vertical-7 { --tlite-rail: 44px; }
.tlite--vertical-7 .tlite__marker::before { top: 0; width: 44px; height: 44px; box-shadow: 0 0 0 4px var(--tlite-surface); }
.tlite--vertical-7 .tlite__marker::after { top: 44px; bottom: 0; border-left: 3px solid var(--tlite-line); transform: translateX(-1px); }
.tlite--vertical-7 .tlite__item:last-child > .tlite__marker::after { display: block; bottom: auto; height: 1.5em; }
.tlite--vertical-7 .tlite__marker > * {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 50%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	transform: translateX(-50%);
}
.tlite--vertical-7 .tlite__item > .tlite__date { padding-top: .9em; }
.tlite--vertical-7 .tlite__item > .tlite__body {
	margin-bottom: var(--tlite-gap);
	padding: 1.25em 1.5em;
	border-radius: 6px;
	background: var(--tlite-card);
}
.tlite--vertical-7 .tlite__item:last-child > .tlite__body { margin-bottom: 0; }
.tlite--vertical-7 .tlite__item > .tlite__body { align-self: start; } /* Cards hug their content. */
@container tlite (min-width: 782px) {
	.tlite--vertical-7 .tlite__item:nth-child(even) .tlite__img img { margin-left: auto; }
}

/* Entrance, added by timeline.js to items below the fold only. */
.tlite--vertical-7 .tlite__item.is-hidden > * { opacity: 0; }
.tlite--vertical-7 .tlite__item.is-in > .tlite__marker { animation: tlite-pop .5s ease-out both; }
.tlite--vertical-7 .tlite__item.is-in > :not(.tlite__marker) { animation: tlite-rise .6s ease-out both; }
@keyframes tlite-pop { 0% { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes tlite-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Vertical 9: expandable list (native <details>, no JS) ---------- */

.tlite--vertical-9 .tlite__item {
	position: relative;
	padding: 0 0 1.25em 2em;
	border-left: 2px solid var(--tlite-line);
}
.tlite--vertical-9 .tlite__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tlite--vertical-9 .tlite__item::before {
	content: "";
	position: absolute;
	top: .25em;
	left: -9px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--tlite-accent);
	border-radius: 50%;
	background: var(--tlite-surface);
}
.tlite--vertical-9 .tlite__item:has(details[open])::before { background: var(--tlite-accent); }
.tlite--vertical-9 summary {
	position: relative;
	display: block;
	padding-right: 2em;
	cursor: pointer;
	list-style: none;
}
.tlite--vertical-9 summary::-webkit-details-marker { display: none; }
.tlite--vertical-9 summary .tlite__title { margin: .15em 0 0; }
.tlite--vertical-9 summary::after {
	content: "";
	position: absolute;
	top: .5em;
	right: .4em;
	width: .55em;
	height: .55em;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform .2s;
}
.tlite--vertical-9 details[open] summary::after { transform: translateY(.25em) rotate(-135deg); }
.tlite--vertical-9 .tlite__body { padding-top: .75em; }

/* ---------- Horizontal 6: image panels that widen on hover or focus ---------- */

.tlite--horizontal-6 .tlite__panels {
	display: flex;
	min-height: var(--tlite-panel-height, 600px);
	overflow: hidden;
	background: #111;
	color: #fff;
}
.tlite__panel {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	background: center / cover no-repeat;
	transition: flex-grow .5s ease;
}
.tlite__panel::before,
.tlite__panel::after { content: ""; position: absolute; inset: 0; transition: opacity .5s ease; }
.tlite__panel::after { background: rgba(3, 22, 37, .85); }
.tlite__panel::before { z-index: 1; opacity: 0; background: linear-gradient(to bottom, transparent 20%, #000 85%); }
.tlite__panel > * { position: relative; z-index: 2; }
.tlite__panel > .tlite__date {
	padding: clamp(2rem, 10vh, 5rem) 1em 0;
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	letter-spacing: .05em;
	text-align: center;
	transition: opacity .4s;
}
.tlite__panel > .tlite__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 1.5em;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .5s ease .15s, transform .5s ease .15s;
}
.tlite__panel .tlite__title { color: inherit; }
.tlite__panel:focus-visible { outline-offset: -3px; }
.tlite__panel:hover,
.tlite__panel:focus-within { flex-grow: 1.6; }
.tlite__panel:hover::after,
.tlite__panel:focus-within::after { opacity: 0; }
.tlite__panel:hover::before,
.tlite__panel:focus-within::before { opacity: .85; }
.tlite__panel:hover > .tlite__body,
.tlite__panel:focus-within > .tlite__body { opacity: 1; transform: none; }
.tlite__panel:hover > .tlite__date,
.tlite__panel:focus-within > .tlite__date { opacity: .9; }

/* Touch screens and narrow screens: stack, and always show the text. */
@container tlite (max-width: 700px) {
	.tlite--horizontal-6 .tlite__panels { flex-direction: column; min-height: 0; }
	.tlite__panel { min-height: 340px; }
	.tlite__panel::after { opacity: .35; }
	.tlite__panel::before { opacity: .85; }
	.tlite__panel > .tlite__date { padding-top: 1.25em; text-align: left; padding-left: 1.5rem; }
	.tlite__panel > .tlite__body { opacity: 1; transform: none; }
}
@media (hover: none) {
	.tlite--horizontal-6 .tlite__panels { flex-direction: column; min-height: 0; }
	.tlite__panel { min-height: 340px; }
	.tlite__panel::after { opacity: .35; }
	.tlite__panel::before { opacity: .85; }
	.tlite__panel > .tlite__date { padding-top: 1.25em; text-align: left; padding-left: 1.5rem; }
	.tlite__panel > .tlite__body { opacity: 1; transform: none; }
}

/* ---------- Horizontal 9: date tabs ---------- */

.tlite__tabs { display: none; }
.tlite--horizontal-9.is-ready .tlite__tabs {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 2em;
	overflow-x: auto;
	/* The rail through the dots; "local" makes it scroll with the tabs. */
	background: linear-gradient(var(--tlite-line), var(--tlite-line)) 0 calc(1.25rem + 15px) / 100% 2px no-repeat local;
}
.tlite__tab {
	display: flex;
	flex: 1 0 6em;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 0 .25em;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.tlite__tab::before {
	content: "";
	order: 2;
	width: 12px;
	height: 12px;
	border: 2px solid var(--tlite-accent);
	border-radius: 50%;
	background: var(--tlite-surface);
	transition: transform .2s, background .2s;
}
.tlite__tab-date { order: 1; height: 1.25rem; font-size: .8rem; font-weight: 700; line-height: 1.25rem; letter-spacing: .08em; }
.tlite__tab-title { order: 3; max-width: 11em; color: var(--tlite-muted); font-size: .8rem; line-height: 1.3; text-align: center; }
.tlite__tab[aria-selected="true"]::before { background: var(--tlite-accent); transform: scale(1.35); }
.tlite__tab[aria-selected="true"] .tlite__tab-date { color: var(--tlite-accent); }
.tlite__tab:focus-visible { outline-offset: 2px; }
@container tlite (max-width: 600px) { .tlite__tab-title { display: none; } }

.tlite__pane { display: grid; gap: 1.5em 2em; margin-bottom: 2em; }
.tlite__pane[hidden] { display: none; }
.tlite__pane:has(.tlite__img) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.tlite__pane .tlite__img { margin: 0; }
.tlite__pane .tlite__date { margin-bottom: .4em; }
.tlite--horizontal-9.is-ready .tlite__pane { margin-bottom: 0; animation: tlite-fade .3s ease-out; }
@keyframes tlite-fade { from { opacity: 0; } to { opacity: 1; } }
@container tlite (max-width: 600px) { .tlite__pane:has(.tlite__img) { grid-template-columns: 1fr; } }


/* =====================================================================================
   2.0: sections, subtitles, media (all layouts)
   ===================================================================================== */

.tlite__subtitle { margin: -.25em 0 .75em; color: var(--tlite-muted); font-size: .9em; }
.tlite__media { margin: 0 0 1em; }
.tlite__media > * + * { margin-top: .75em; }
.tlite__media .tlite__img { margin: 0; }
.tlite__gallery { display: grid; grid-template-columns: repeat(var(--tlite-cols, 2), minmax(0, 1fr)); gap: .75em; }
.tlite__gallery .tlite__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tlite__video iframe, .tlite__video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.tlite__audio audio, .tlite__audio iframe { display: block; width: 100%; }
.tlite__pane .tlite__media { margin: 0; }

.tlite__group { margin: 0 0 1.5em; }
.tlite__list + .tlite__group { margin-top: var(--tlite-gap); }
.tlite .tlite__group-title {
	display: inline-block;
	margin: 0;
	padding: .3em .9em;
	border-radius: 6px;
	background: var(--tlite-group, #181818);
	color: var(--tlite-group-text, #fff);
	font-size: .95rem;
	line-height: 1.3;
}
@container tlite (min-width: 782px) {
	.tlite--vertical-3 .tlite__group,
	.tlite--vertical-7 .tlite__group { text-align: center; }
}

/* =====================================================================================
   Card layouts. Each design choice is a class (tlite--is-outline, tlite--shape-square…), so any
   combination works. The five presets are just starting values. Measurements follow Bold Timeline's.
   Mobile first: line on the left. From 782px the centre layouts alternate (and may overlap).
   ===================================================================================== */

.tlite--cards {
	--tlite-accent: #008ed4;
	--tlite-sticker: #27b6fd;
	--tlite-line: #eee;
	--tlite-frame: #eee;
	--tlite-group: #181818;
	--tlite-x: 20px;          /* Line position. */
	--tlite-gut: 48px;        /* Space between the line and the cards. */
	--tlite-mk: 30px;         /* Marker height, from the top of the card. */
	--tlite-line-w: 2px;
	--tlite-frame-w: 2px;
	--tlite-radius: 15px;
	--tlite-sticker-radius: 5px;
	--tlite-icon-radius: 50%;
	--tlite-title: 1.4em;
	--tlite-gfont: .9rem;
	--tlite-gcircle: 4.8em;
	--tlite-gradius: 15px;
	--tlite-gframe-w: 2px;
	position: relative;
}

/* ---- Option values ---- */
.tlite--lt-thin { --tlite-line-w: 1px; }
.tlite--lt-thick { --tlite-line-w: 4px; }
.tlite--frame-thin { --tlite-frame-w: 1px; }
.tlite--frame-thick { --tlite-frame-w: 4px; }
.tlite--shape-square { --tlite-radius: 0; --tlite-sticker-radius: 0; }
.tlite--shape-soft_rounded { --tlite-radius: 5px; }
.tlite--shape-circle { --tlite-radius: 30px; }
.tlite--icon-square { --tlite-icon-radius: 0; }
.tlite--icon-soft_rounded { --tlite-icon-radius: 5px; }
.tlite--title-small { --tlite-title: 1.1em; }
.tlite--title-large { --tlite-title: 1.8em; }
.tlite--gshape-square { --tlite-gradius: 0; }
.tlite--gshape-soft_rounded { --tlite-gradius: 5px; }
.tlite--gframe-thin { --tlite-gframe-w: 1px; }
.tlite--gframe-thick { --tlite-gframe-w: 4px; }
.tlite--gsize-normal { --tlite-gfont: 1.15rem; --tlite-gcircle: 5.4em; }
.tlite--gsize-large { --tlite-gfont: 1.4rem; --tlite-gcircle: 5.8em; }
.tlite--is-outline_top, .tlite--is-clear { --tlite-mk: 0px; }
.tlite--is-filled_header, .tlite--is-filled_header_outline { --tlite-mk: 28px; }

/* ---- The line ---- */
.tlite--cards::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: var(--tlite-line-end, 0); /* timeline.js ends the line at the last marker. */
	left: var(--tlite-x);
	width: 0;
	border-left: var(--tlite-line-w) var(--tlite-line-style, solid) var(--tlite-line);
	transform: translateX(-50%);
}
.tlite--noline::before { content: none; }
.tlite--cards .tlite__list { position: relative; }
.tlite--cards .tlite__item { position: relative; margin-bottom: var(--tlite-gap); padding-left: var(--tlite-gut); }
.tlite--cards .tlite__list:last-child > .tlite__item:last-child { margin-bottom: 0; }
.tlite--noline .tlite__item { padding-left: 0; }
.tlite--noline .tlite__item::before, .tlite--noline .tlite__marker { display: none; }

/* ---- Connectors: line, triangle (an arrow on the card's edge) or none ---- */
.tlite--cards .tlite__item::before {
	content: "";
	position: absolute;
	top: var(--tlite-mk);
	left: var(--tlite-x);
	width: calc(var(--tlite-gut) - var(--tlite-x));
	border-top: 1px solid var(--tlite-connector, var(--tlite-line));
}
.tlite--cards .tlite--conn-none::before { content: none; }
.tlite--cards .tlite--conn-triangle { --tlite-gut: 60px; } /* Room for the arrow beside the marker or icon. */
.tlite--iconpos-opposite .tlite--conn-triangle { --tlite-gut: 116px; }
.tlite--cards .tlite--conn-triangle::before {
	left: calc(var(--tlite-gut) - 10px);
	width: 0;
	border: 10px solid transparent;
	border-right-color: var(--tlite-frame);
	border-left: 0;
	transform: translateY(-50%);
}

/* ---- Markers: a zero-size point on the line; the dot, ring or icon is centred on it ---- */
.tlite--cards .tlite__marker { position: absolute; z-index: 1; top: var(--tlite-mk); left: var(--tlite-x); width: 0; height: 0; }
.tlite--cards .tlite__marker::after { content: none; }
.tlite--cards .tlite__marker::before {
	top: 0;
	left: 0;
	width: 12px;
	height: 12px;
	box-shadow: 0 0 0 3px var(--tlite-surface);
	transform: translate(-50%, -50%);
}
.tlite--mk-circle .tlite__marker::before { width: 16px; height: 16px; border: 2px solid var(--tlite-accent); background: var(--tlite-surface); box-sizing: border-box; }
.tlite--mk-circle_small .tlite__marker::before { width: 10px; height: 10px; border: 3px solid var(--tlite-accent); background: var(--tlite-surface); }
.tlite--mk-none .tlite__marker::before { content: none; }
.tlite--cards .has-icon .tlite__marker::before { content: none; }

/* ---- Icons: shape, style (outline, filled, shadow), on the line or on the opposite side ---- */
.tlite--cards .tlite__marker > * {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border: 2px solid var(--tlite-icon, var(--tlite-accent));
	border-radius: var(--tlite-icon-radius);
	background: var(--tlite-surface);
	color: var(--tlite-icon, var(--tlite-accent));
	font-size: 19px;
	line-height: 1;
	transform: translate(-50%, -50%);
}
.tlite--iconst-filled .tlite__marker > * { border: 0; background: var(--tlite-icon, var(--tlite-accent)); color: #fff; }
.tlite--iconst-shadow .tlite__marker > * { width: 34px; height: 34px; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); font-size: 14px; }
/* Opposite: the marker stays on the line and the icon sits on the other side of it. */
.tlite--iconpos-opposite .has-icon .tlite__marker::before { content: ""; }
.tlite--iconpos-opposite .tlite__marker > * { transform: translate(calc(-100% - 14px), -50%); }
.tlite--iconpos-opposite.tlite--left, .tlite--iconpos-opposite.tlite--center { --tlite-x: 76px; --tlite-gut: 104px; }

/* ---- The card ---- */
.tlite--cards .tlite__card {
	position: relative;
	container-type: inline-size; /* So media beside the text can stack in narrow cards. */
	border: var(--tlite-frame-w) solid var(--tlite-frame);
	border-radius: var(--tlite-radius);
	background: var(--tlite-card-bg, var(--tlite-surface));
}
.tlite--cards .tlite__head { padding: 1em; }
.tlite--cards .tlite__content { padding: 0 1em 1em; }
.tlite--cards .tlite__title { margin: 0; font-size: var(--tlite-title); line-height: 1.25; }
.tlite--cards .tlite__subtitle { margin: .5em 0 0; font-size: .85em; }
.tlite--cards .tlite__sticker { margin: 0 0 .35em; color: var(--tlite-muted); font-size: .8rem; line-height: 1.4; }
.tlite--cards .tlite__media { margin: 1em 0 0; }
.tlite--cards .tlite__img img { width: 100%; border-radius: 0; }

/* Card styles. */
.tlite--is-outline_full .tlite__head { border-bottom: var(--tlite-frame-w) solid var(--tlite-frame); }
.tlite--is-outline_full .tlite__content { padding-top: 1em; }
.tlite--is-outline_top .tlite__card { border-width: var(--tlite-frame-w) 0 0; border-radius: 0; background: none; }
.tlite--is-outline_top .tlite__head { padding-bottom: 0; }
.tlite--is-outline_top .tlite__content { padding-top: 1em; }
.tlite--is-clear .tlite__card { border: 0; border-radius: 0; background: none; }
.tlite--is-shadow .tlite__card { border: 0; box-shadow: 0 3px 18px rgba(0, 0, 0, .12); }
.tlite--is-filled .tlite__card { border: 0; background: var(--tlite-frame); color: var(--tlite-head-text, #181818); }
.tlite--is-filled_header .tlite__card { border: 0; }
.tlite--is-filled_header .tlite__head,
.tlite--is-filled_header_outline .tlite__head {
	border-radius: calc(var(--tlite-radius) - var(--tlite-frame-w)) calc(var(--tlite-radius) - var(--tlite-frame-w)) 0 0;
	background: var(--tlite-frame);
	color: var(--tlite-head-text, #181818);
}
.tlite--is-filled_header .tlite__content, .tlite--is-filled_header_outline .tlite__content { padding-top: 1em; }
.tlite--is-filled .tlite__sticker, .tlite--is-filled .tlite__subtitle,
.tlite--is-filled_header .tlite__head :is(.tlite__sticker, .tlite__subtitle),
.tlite--is-filled_header_outline .tlite__head :is(.tlite__sticker, .tlite__subtitle) { color: inherit; opacity: .8; }

/* Supertitle as a sticker on the card's top edge (or inside a filled header). */
.tlite--sup-sticker .tlite__sticker { position: absolute; top: 0; left: 1em; margin: 0; transform: translateY(-50%); }
.tlite--sup-sticker .tlite__sticker span {
	display: inline-block;
	padding: 0 .55em;
	border-radius: var(--tlite-sticker-radius);
	background: var(--tlite-sticker);
	color: var(--tlite-sticker-text, #fff);
	font-size: .8rem;
	line-height: 1.6;
}
.tlite--sup-sticker:is(.tlite--is-filled, .tlite--is-filled_header, .tlite--is-filled_header_outline) .tlite__sticker { position: static; margin-bottom: .45em; transform: none; opacity: 1; }

/* Media above the heading, or beside the text. */
.tlite--cards .tlite__card > .tlite__media:first-child { margin: 0; }
.tlite--cards .tlite__card > .tlite__media:first-child .tlite__img img { border-radius: calc(var(--tlite-radius) - var(--tlite-frame-w)) calc(var(--tlite-radius) - var(--tlite-frame-w)) 0 0; }
.tlite__beside { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1em; align-items: start; }
.tlite__beside > .tlite__media { margin: 0; }
.tlite--media-right .tlite__beside { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.tlite--media-right .tlite__beside > .tlite__media { order: 2; }
@container (max-width: 380px) { .tlite__beside { grid-template-columns: 1fr; } .tlite--media-right .tlite__beside > .tlite__media { order: 0; } }

/* Alignment. "Default" puts the text against the line. */
.tlite--align-left .tlite__card { text-align: left; }
.tlite--align-center .tlite__card { text-align: center; }
.tlite--align-right .tlite__card, .tlite--right .tlite--align-default .tlite__card { text-align: right; }

/* Opening and closing (content "hide"). */
.tlite--cards summary { position: relative; display: block; cursor: pointer; list-style: none; }
.tlite--cards summary::-webkit-details-marker { display: none; }
.tlite--cards summary .tlite__head { padding-right: 2.75em; }
.tlite--cards summary::after {
	content: "";
	position: absolute;
	top: 1.35em;
	right: 1.2em;
	width: .5em;
	height: .5em;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform .2s;
}
.tlite--cards :is(.tlite--is-filled_header, .tlite--is-filled_header_outline) summary::after { border-color: var(--tlite-head-text, #181818); }
.tlite--cards details[open] summary::after { transform: translateY(.25em) rotate(-135deg); }
.tlite--cards summary:focus-visible { outline-offset: -3px; }

/* ---- Section headings on the line: filled, outline or clear; any shape; three sizes ---- */
.tlite--cards .tlite__group { position: relative; z-index: 1; margin: 0 0 var(--tlite-gap); }
.tlite--cards .tlite__list + .tlite__group { margin-top: 0; }
.tlite--cards .tlite__group-title { padding: .3em .8em; border: var(--tlite-gframe-w) solid var(--tlite-group); border-radius: var(--tlite-gradius); font-size: var(--tlite-gfont); }
.tlite--gshape-circle .tlite__group-title {
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	width: min-content; /* As wide as the longest word, so titles wrap instead of being clipped. */
	min-width: var(--tlite-gcircle);
	aspect-ratio: 1;
	padding: .6em;
	border-radius: 50%;
	line-height: 1.15;
	text-align: center;
}
.tlite--gstyle-outline .tlite__group-title { background: var(--tlite-surface); color: var(--tlite-group); }
.tlite__group.tlite--gstyle-clear { background: var(--tlite-surface); } /* Covers the start of the line. */
.tlite--gstyle-clear .tlite__group-title { display: inline-block; width: auto; min-width: 0; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-size: calc(var(--tlite-gfont) * 1.15); }

/* ---- Line on the right ---- */
.tlite--right::before { left: auto; right: var(--tlite-x); transform: translateX(50%); }
.tlite--right .tlite__item { padding: 0 var(--tlite-gut) 0 0; }
.tlite--right .tlite__item::before { left: auto; right: var(--tlite-x); }
.tlite--right .tlite__item.tlite--conn-triangle::before { left: auto; right: calc(var(--tlite-gut) - 10px); border-width: 10px 0 10px 10px; border-color: transparent transparent transparent var(--tlite-frame); }
.tlite--right .tlite__marker { left: calc(100% - var(--tlite-x)); }
.tlite--right.tlite--iconpos-opposite { --tlite-x: 76px; --tlite-gut: 104px; }
.tlite--right.tlite--iconpos-opposite .tlite__marker > * { transform: translate(14px, -50%); }
.tlite--right .tlite__group { text-align: right; }

/* ---- Centre layouts on wider columns ---- */
@container tlite (min-width: 782px) {
	.tlite.tlite--center { --tlite-x: 50%; }
	.tlite--center .tlite__group { text-align: center; }
	.tlite--center .tlite__item { box-sizing: border-box; width: 50%; padding: 0 var(--tlite-gut) 0 0; }
	.tlite--center .tlite__item:nth-child(even) { margin-left: 50%; padding: 0 0 0 var(--tlite-gut); }
	.tlite--center .tlite__item::before { left: auto; right: 0; width: var(--tlite-gut); }
	.tlite--center .tlite__item:nth-child(even)::before { left: 0; right: auto; }
	.tlite--center .tlite__item.tlite--conn-triangle:nth-child(odd)::before { left: auto; right: calc(var(--tlite-gut) - 10px); width: 0; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent var(--tlite-frame); }
	.tlite--center .tlite__item.tlite--conn-triangle:nth-child(even)::before { left: calc(var(--tlite-gut) - 10px); width: 0; }
	.tlite--center .tlite__marker { left: 100%; }
	.tlite--center .tlite__item:nth-child(even) .tlite__marker { left: 0; }
	.tlite--center.tlite--iconpos-opposite { --tlite-gut: 48px; }
	.tlite--center.tlite--iconpos-opposite .tlite__item:nth-child(odd) .tlite__marker > * { transform: translate(14px, -50%); }

	/* Default alignment: text against the line. */
	.tlite--center .tlite__item.tlite--align-default:nth-child(odd) .tlite__card { text-align: right; }

	/* Overlap: timeline.js positions items so each side packs up under the one before it. */
	.tlite--overlap .tlite__list.is-packed { margin-bottom: var(--tlite-gap); }
	.tlite--overlap .tlite__list.is-packed:last-child { margin-bottom: 0; }
	.tlite--overlap .tlite__list.is-packed > .tlite__item { position: absolute; left: 0; margin-bottom: 0; }
}

/* ---- Snake: items on alternating sides of one winding line (timeline.js draws it) ---- */
.tlite__snake { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.tlite__snake path { fill: none; stroke: var(--tlite-line); stroke-width: var(--tlite-line-w); stroke-linecap: round; stroke-linejoin: round; }
.tlite--ls-dotted .tlite__snake path { stroke-width: calc(var(--tlite-line-w) * 2.5); stroke-dasharray: 0 calc(var(--tlite-line-w) * 5); }
.tlite--ls-dashed .tlite__snake path { stroke-dasharray: calc(var(--tlite-line-w) * 5) calc(var(--tlite-line-w) * 4); }
.tlite__snake circle { fill: var(--tlite-surface); stroke: var(--tlite-accent); stroke-width: 3; }
.tlite--snake.is-snaked::before { content: none; } /* The drawn path replaces the straight line. */
.tlite--snake.is-snaked .tlite__item { margin-right: 32%; margin-bottom: 88px; }
.tlite--snake.is-snaked .tlite__item.is-right { margin-right: 0; margin-left: 32%; padding: 0 var(--tlite-gut) 0 0; }
.tlite--snake.is-snaked .tlite__item.is-right::before { left: auto; right: var(--tlite-x); }
.tlite--snake.is-snaked .tlite__item.is-right.tlite--conn-triangle::before { left: auto; right: calc(var(--tlite-gut) - 10px); border-width: 10px 0 10px 10px; border-color: transparent transparent transparent var(--tlite-frame); }
.tlite--snake.is-snaked .tlite__item.is-right .tlite__marker { left: calc(100% - var(--tlite-x)); }
.tlite--snake.is-snaked .tlite__item.is-right.tlite--align-default .tlite__card { text-align: right; }
.tlite--snake.is-snaked.tlite--iconpos-opposite .tlite__item.is-right .tlite__marker > * { transform: translate(14px, -50%); }
.tlite--snake.is-snaked .tlite__group { position: relative; z-index: 1; margin-bottom: 88px; text-align: center; }

/* Entrance on scroll, added by timeline.js to items below the fold. */
.tlite--anim .tlite__item.is-hidden { opacity: 0; }
.tlite--anim .tlite__item.is-in { animation: tlite-fade .6s ease-out both; }
.tlite--anim .tlite__item.tlite--anim-fade_up.is-in { animation-name: tlite-rise; }
.tlite--anim .tlite__item.tlite--anim-fade.is-in { animation-name: tlite-fade; }
.tlite--anim .tlite__item.tlite--anim-none { opacity: 1 !important; animation: none !important; } /* This item appears straight away. */

/* Images that open in the lightbox. */
.tlite__zoom { display: block; width: fit-content; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in; }
.tlite__zoom img { display: block; }
.tlite__zoom:focus-visible { outline: 3px solid var(--tlite-accent); outline-offset: 3px; }
.tlite--cards .tlite__zoom, .tlite__gallery .tlite__zoom { width: 100%; }
@container tlite (min-width: 782px) {
	.tlite--vertical-3 .tlite__item:nth-child(even) .tlite__zoom,
	.tlite--split .tlite__item:nth-child(odd) > .tlite__side .tlite__zoom { margin-left: auto; }
	.tlite--split .tlite__item:nth-child(even) > .tlite__side .tlite__zoom { margin-left: 0; }
}

/* Formatted item text (from the editor): headings, lists, links. Everything else comes from the theme. */
.tlite__text h4, .tlite__text h5 { margin: 1.1em 0 .4em; line-height: 1.3; }
.tlite__text h4 { font-size: 1.1em; }
.tlite__text h5 { font-size: 1em; }
.tlite__text > h4:first-child, .tlite__text > h5:first-child { margin-top: 0; }
.tlite__text ul, .tlite__text ol { margin: .6em 0; padding-left: 1.4em; }
.tlite__text li + li { margin-top: .25em; }
.tlite__text a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.tlite__text a:hover { color: var(--tlite-accent); }
/* Images added to item text with "Add Media". Themes don't always style WordPress's alignment classes. */
.tlite__text img { max-width: 100%; height: auto; }
.tlite__text .alignleft { float: left; margin: .3em 1em .6em 0; }
.tlite__text .alignright { float: right; margin: .3em 0 .6em 1em; }
.tlite__text .aligncenter { display: block; margin-right: auto; margin-left: auto; }
.tlite__text .wp-caption { max-width: 100%; }
.tlite__text .wp-caption-text { margin: .3em 0 0; color: var(--tlite-muted); font-size: .85em; }
.tlite__text::after { content: ""; display: table; clear: both; } /* Keep floated images inside the card. */
/* Right-aligned text (left-hand items in the clean and CV layouts, even items in "alternating sides"): keep bullets beside the text. */
@container tlite (min-width: 782px) {
	.tlite--center .tlite__item.tlite--align-default:nth-child(odd) .tlite__text :is(ul, ol),
	.tlite--vertical-3 .tlite__item:nth-child(even) .tlite__text :is(ul, ol),
	.tlite--vertical-7 .tlite__item:nth-child(even) .tlite__text :is(ul, ol) { padding-left: 0; list-style-position: inside; }
}

/* =====================================================================================
   Card layouts as a horizontal slider (Bold Timeline Pro's "line at the top/bottom").
   A row of cards that scrolls sideways and snaps; works without JavaScript.
   ===================================================================================== */

.tlite.tlite--slider {
	--tlite-gap-x: 24px;
	--tlite-n: 1;                /* Cards visible now; grows with the column (below). */
	--tlite-rail: 64px;          /* Height of the strip holding the line and markers. */
	--tlite-x: 40px;             /* Marker position along each card. */
	--tlite-mk: 50%;
	--tlite-r: 9px;              /* Marker radius, so connectors stop at its edge. */
}
.tlite.tlite--slider.has-groups { --tlite-rail: 108px; }
.tlite--slider.tlite--gap-small { --tlite-gap-x: 12px; }
.tlite--slider.tlite--gap-large { --tlite-gap-x: 40px; }
@container tlite (min-width: 560px) { .tlite.tlite--slider { --tlite-n: min(2, var(--tlite-per, 3)); } }
@container tlite (min-width: 860px) { .tlite.tlite--slider { --tlite-n: min(3, var(--tlite-per, 3)); } }
@container tlite (min-width: 1100px) { .tlite.tlite--slider { --tlite-n: var(--tlite-per, 3); } }

.tlite--slider::before { content: none; } /* No vertical line. */
.tlite__stage { position: relative; }
.tlite__viewport {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.tlite__viewport:focus-visible { outline: 3px solid var(--tlite-accent); outline-offset: 4px; }
.tlite__track { position: relative; display: flex; align-items: flex-start; gap: var(--tlite-gap-x); margin: 0; padding: 0 0 12px; list-style: none; }
.tlite__slide {
	position: relative;
	display: flex;
	flex: 0 0 calc((100% - (var(--tlite-n) - 1) * var(--tlite-gap-x)) / var(--tlite-n));
	flex-direction: column;
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}
.tlite--line-bottom .tlite__track { align-items: flex-end; } /* Lines meet up whatever each card's height. */
.tlite--line-bottom .tlite__slide { flex-direction: column-reverse; }
.tlite__slide.has-icon { --tlite-r: 22px; }

/* The strip with the line, the marker, and a short connector down (or up) to the card. */
.tlite__rail { position: relative; flex: none; height: var(--tlite-rail); }
.tlite__rail::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: calc(-1 * var(--tlite-gap-x)); /* Joins up with the next card's line. */
	border-top: var(--tlite-line-w, 2px) var(--tlite-line-style, solid) var(--tlite-line);
	transform: translateY(-50%);
}
.tlite__slide:last-child .tlite__rail::before { right: 0; }
.tlite__rail::after {
	content: "";
	position: absolute;
	top: calc(50% + var(--tlite-r));
	bottom: 0;
	left: var(--tlite-x);
	border-left: 2px solid var(--tlite-connector, var(--tlite-line));
	transform: translateX(-1px);
}
.tlite--line-bottom .tlite__rail::after { top: 0; bottom: calc(50% + var(--tlite-r)); }

/* Section heading: a label above (or below) the first marker of its section. */
.tlite__slide-group {
	position: absolute;
	top: 0;
	left: calc(var(--tlite-x) - 22px);
	max-width: calc(100% - var(--tlite-x));
	overflow: hidden;
	padding: .15em .6em;
	background: var(--tlite-group, #181818);
	color: var(--tlite-group-text, #fff);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.tlite--line-bottom .tlite__slide-group { top: auto; bottom: 0; }

/* Clean and CV cards: the connector meets the card's top rule. */

/* Arrows at the ends of the line, as in Bold Timeline. Added by timeline.js. */
.tlite__arrow {
	position: absolute;
	z-index: 2;
	top: calc(var(--tlite-rail) / 2);
	display: grid;
	place-items: center;
	width: var(--tlite-arrow, 44px);
	height: var(--tlite-arrow, 44px);
	padding: 0;
	border: 2px solid var(--tlite-nav, var(--tlite-accent));
	border-radius: var(--tlite-arrow-radius, 50%);
	background: var(--tlite-surface);
	color: var(--tlite-nav, var(--tlite-accent));
	cursor: pointer;
	transform: translateY(-50%);
}
.tlite--line-bottom .tlite__arrow { top: auto; bottom: calc(var(--tlite-rail) / 2); transform: translateY(50%); }
.tlite__arrow::before { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 2px 2px; }
.tlite__arrow--prev { left: 0; }
.tlite__arrow--prev::before { transform: translateX(2px) rotate(45deg); }
.tlite__arrow--next { right: 0; }
.tlite__arrow--next::before { transform: translateX(-2px) rotate(-135deg); }
.tlite__arrow:hover:not(:disabled) { background: var(--tlite-nav, var(--tlite-accent)); color: var(--tlite-surface); }

/* Arrow styles, shapes and sizes (Bold Timeline Pro's options). */
.tlite--arrows-filled .tlite__arrow { background: var(--tlite-nav, var(--tlite-accent)); color: #fff; }
.tlite--arrows-filled .tlite__arrow:hover:not(:disabled) { filter: brightness(1.12); color: #fff; }
.tlite--arrows-shadow .tlite__arrow { border-color: transparent; box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.tlite--arrowshape-hard_rounded { --tlite-arrow-radius: 12px; }
.tlite--arrowshape-soft_rounded { --tlite-arrow-radius: 5px; }
.tlite--arrowshape-square { --tlite-arrow-radius: 0; }
.tlite--arrowsize-small { --tlite-arrow: 34px; }
.tlite--arrowsize-large { --tlite-arrow: 56px; }
.tlite--arrowsize-large .tlite__arrow::before { width: 13px; height: 13px; }

/* Equal height: every card in the row as tall as the tallest. */
.tlite--height-equal .tlite__track, .tlite--height-equal.tlite--line-bottom .tlite__track { align-items: stretch; }
.tlite--height-equal .tlite__slide > .tlite__card { flex: 1; }

/* Fade: one card at a time, fading between them (timeline.js). */
.tlite--fade .tlite__viewport { transition: opacity .22s ease; }
.tlite--fade .tlite__viewport.is-fading { opacity: 0; }
.tlite__arrow:disabled { opacity: .35; cursor: default; }
.tlite__arrow[hidden] { display: none; }
.tlite__arrow:focus-visible, .tlite__dots button:focus-visible { outline: 3px solid var(--tlite-accent); outline-offset: 2px; }
.tlite--slider.has-arrows.is-ready .tlite__stage { padding: 0 calc(var(--tlite-arrow, 44px) + 12px); }
/* Narrow columns: arrows sit at the very ends and the markers move in to make room. */
@container tlite (max-width: 559px) {
	.tlite--slider.has-arrows.is-ready .tlite__stage { padding: 0; }
	.tlite.tlite--slider.has-arrows.is-ready { --tlite-x: 72px; }
	.tlite__arrow { width: min(var(--tlite-arrow, 44px), 40px); height: min(var(--tlite-arrow, 44px), 40px); }
}

/* With arrows or dots to navigate, the scrollbar isn't needed. */
.tlite--slider.has-nav .tlite__viewport { scrollbar-width: none; }
.tlite--slider.has-nav .tlite__viewport::-webkit-scrollbar { display: none; }
.tlite--slider.has-nav .tlite__track { padding-bottom: 0; }

.tlite__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.tlite__dots[hidden] { display: none; }
.tlite__dots button {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 2px solid var(--tlite-nav, var(--tlite-accent));
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.tlite__dots button[aria-current="true"] { background: var(--tlite-nav, var(--tlite-accent)); }

@media (prefers-reduced-motion: reduce) {
	.tlite *, .tlite *::before, .tlite *::after { transition: none !important; animation: none !important; }
}
