/* Numbered Process Timeline
   Colours and proportions taken from the reference layout. */

.pt-section {
	--pt-bg:      #FAF6EF;
	--pt-circle:  #16273D;
	--pt-number:  #EFE3C4;
	--pt-line:    #E3DDCF;
	--pt-title:   #16273D;
	--pt-text:    #6E757C;
	--pt-size:    44px;   /* circle diameter */
	--pt-gap:     34px;   /* space between columns */
	--pt-pad-y:   0px;    /* vertical breathing room, raise if needed */
	--pt-serif:   "Fraunces", Georgia, "Times New Roman", serif;
	--pt-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	background: var(--pt-bg);
	padding: var(--pt-pad-y) 20px;
	box-sizing: border-box;
	overflow-x: clip;
}

.pt-section *,
.pt-section *::before,
.pt-section *::after { box-sizing: border-box; }

.pt-inner {
	max-width: 1240px;
	margin: 0 auto;
}

/* ---------- Grid ---------- */

.pt-section .pt-timeline {
	display: grid;
	grid-template-columns: repeat(var(--pt-columns, 6), minmax(0, 1fr));
	gap: var(--pt-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.pt-section .pt-timeline > .pt-step {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.pt-section .pt-timeline > .pt-step::marker { content: none; }

/* Connecting line: runs from the edge of each circle across to the next */

.pt-section .pt-timeline > .pt-step::after {
	content: "";
	position: absolute;
	top: calc(var(--pt-size) / 2 - 1px);
	left: var(--pt-size);
	right: calc(var(--pt-gap) * -1);
	height: 2px;
	background: var(--pt-line);
}

.pt-section .pt-timeline > .pt-step--last::after { right: 0; }

/* ---------- Marker ---------- */

.pt-section .pt-marker {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--pt-size);
	height: var(--pt-size);
	border-radius: 50%;
	background: var(--pt-circle);
	color: var(--pt-number);
	font-family: var(--pt-serif);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	letter-spacing: .01em;
	font-optical-sizing: auto;
	font-variation-settings: "opsz" 15, "SOFT" 0, "WONK" 0;
}

/* ---------- Copy ---------- */

.pt-section .pt-title {
	margin: clamp(24px, 2.6vw, 34px) 0 12px;
	padding: 0;
	font-family: var(--pt-sans);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -.005em;
	color: var(--pt-title);
	text-transform: none;
}

.pt-section .pt-text {
	margin: 0;
	padding: 0;
	font-family: var(--pt-sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.65;
	color: var(--pt-text);
	padding-right: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.pt-section .pt-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pt-section .pt-timeline > .pt-step:nth-child(3n)::after { right: 0; }
	.pt-section .pt-timeline > .pt-step:nth-child(n + 4) { margin-top: 18px; }
}

@media (max-width: 780px) {
	.pt-section .pt-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pt-section .pt-timeline > .pt-step:nth-child(3n)::after { right: calc(var(--pt-gap) * -1); }
	.pt-section .pt-timeline > .pt-step:nth-child(2n)::after { right: 0; }
	.pt-section .pt-timeline > .pt-step:nth-child(n + 3) { margin-top: 18px; }
}

@media (max-width: 540px) {
	.pt-section {
		--pt-gap: 0px;
	}

	.pt-section .pt-timeline { grid-template-columns: minmax(0, 1fr); }

	.pt-section .pt-timeline > .pt-step {
		padding-left: calc(var(--pt-size) + 22px);
		padding-bottom: 30px;
		margin-top: 0;
	}

	.pt-section .pt-timeline > .pt-step:last-child { padding-bottom: 0; }

	/* line turns vertical */
	.pt-section .pt-timeline > .pt-step::after {
		top: var(--pt-size);
		bottom: 0;
		left: calc(var(--pt-size) / 2 - 1px);
		right: auto;
		width: 2px;
		height: auto;
	}

	.pt-section .pt-timeline > .pt-step:last-child::after { content: none; }

	.pt-section .pt-marker {
		position: absolute;
		top: 0;
		left: 0;
	}

	.pt-section .pt-title { margin-top: 4px; }
	.pt-section .pt-text { padding-right: 0; }
}
