/* Sketch Landing — Availability timeline. A horizontal rail on desktop with the
   practice-open span shaded; a vertical rail on phones. */

.sklpl__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
	margin-bottom: clamp(36px, 4.5vw, 64px);
}
.sklpl__intro-copy { display: grid; gap: 18px; padding-top: clamp(52px, 5vw, 72px); }

.sklpl__rail-wrap {
	padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2.2vw, 32px) clamp(20px, 2.2vw, 28px);
	border-radius: var(--lp-radius-lg);
	background: #fff;
	border: 1px solid var(--lp-line);
}
.sklpl--dark .sklpl__rail-wrap { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.sklpl .sklpl__rail {
	--sklpl-dot: 16px;
	--sklpl-line: 44px; /* y of the rail inside each moment */
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--sklpl-n, 6), minmax(0, 1fr));
	grid-template-rows: auto;
	gap: 0 8px;
}
.sklpl .sklpl__rail::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--sklpl-line) - 1px);
	height: 2px;
	background: var(--lp-line-2);
	border-radius: 2px;
}
.sklpl--dark .sklpl__rail::before { background: rgba(255, 255, 255, 0.16); }
/* Practice-open span. The band occupies the grid cells from the opening moment
   up to (not including) the closing one, i.e. --sklpl-span columns; the marker
   of each moment sits at the centre of its cell, so the shaded bar runs from
   half a column in on the left to half a column past the band's right edge. */
.sklpl__band {
	--sklpl-span: 2;
	grid-row: 1;
	position: relative;
	align-self: start;
	height: calc(var(--sklpl-line) + 10px);
	pointer-events: none;
}
.sklpl__band::before {
	content: "";
	position: absolute;
	left: calc(100% / var(--sklpl-span) * 0.5);
	right: calc(100% / var(--sklpl-span) * -0.5);
	top: calc(var(--sklpl-line) - 6px);
	height: 12px;
	border-radius: 6px;
	background: rgba(101, 82, 255, 0.14);
}
.sklpl__band span {
	position: absolute;
	left: calc(100% * (var(--sklpl-span) + 1) / (2 * var(--sklpl-span)));
	top: 2px;
	transform: translateX(-50%);
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--lp-lilac);
	color: var(--lp-indigo);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.sklpl--dark .sklpl__band::before { background: rgba(212, 249, 80, 0.14); }
.sklpl--dark .sklpl__band span { background: rgba(212, 249, 80, 0.16); color: var(--lp-lime); }

.sklpl__moment {
	grid-row: 1;
	position: relative;
	display: grid;
	justify-items: center;
	padding-top: calc(var(--sklpl-line) - var(--sklpl-dot) / 2);
	min-width: 0;
}
.sklpl__dot {
	position: relative;
	z-index: 1;
	width: var(--sklpl-dot);
	height: var(--sklpl-dot);
	border-radius: 50%;
	background: var(--lp-indigo);
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(101, 82, 255, 0.25);
}
.sklpl--dark .sklpl__dot { box-shadow: 0 0 0 4px var(--lp-ink-2), 0 0 0 5px rgba(255, 255, 255, 0.2); }
.sklpl__moment--open .sklpl__dot,
.sklpl__moment--close .sklpl__dot { background: #fff; border: 2px solid var(--lp-soft); box-shadow: 0 0 0 4px #fff; }
.sklpl--dark .sklpl__moment--open .sklpl__dot,
.sklpl--dark .sklpl__moment--close .sklpl__dot { background: var(--lp-ink-2); box-shadow: 0 0 0 4px var(--lp-ink-2); }
.sklpl__card {
	display: grid;
	justify-items: center;
	gap: 3px;
	margin-top: 14px;
	text-align: center;
	max-width: 100%;
}
.sklpl__time {
	font-size: clamp(16px, 1.35vw, 20px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--lp-ink);
	font-variant-numeric: tabular-nums;
	text-wrap: balance;
}
.sklpl--dark .sklpl__time { color: #fff; }
.sklpl__label { font-size: 13.5px; line-height: 1.35; color: var(--lp-muted); text-wrap: balance; }
.sklpl--dark .sklpl__label { color: rgba(255, 255, 255, 0.66); }
.sklpl__moment--lead .sklpl__label { color: var(--lp-indigo); font-weight: 600; }
.sklpl--dark .sklpl__moment--lead .sklpl__label { color: var(--lp-lime); }
.sklpl__moment--open .sklpl__time,
.sklpl__moment--close .sklpl__time { color: var(--lp-muted); font-weight: 600; }

/* Closing statement, optionally beside a photo. */
.sklpl__close {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	margin-top: clamp(40px, 5vw, 72px);
}
.sklpl--with-image .sklpl__close { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); }
.sklpl__statement { max-width: 22ch; }
.sklpl__photo { aspect-ratio: 4 / 5; max-width: 480px; }

@media (max-width: 980px) {
	.sklpl__intro { grid-template-columns: 1fr; align-items: start; }
	.sklpl__intro-copy { padding-top: 0; }
	.sklpl--with-image .sklpl__close { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	/* Vertical: one moment per row, rail down the left. */
	.sklpl .sklpl__rail { grid-template-columns: 1fr; gap: 0; --sklpl-line: 0px; }
	.sklpl .sklpl__rail::before { left: calc(var(--sklpl-dot) / 2 - 1px); right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
	.sklpl__band { display: none; }
	.sklpl__moment { grid-row: auto; grid-column: 1 !important; grid-template-columns: var(--sklpl-dot) minmax(0, 1fr); column-gap: 16px; justify-items: start; align-items: start; padding: 0 0 18px; }
	.sklpl__dot { margin-top: 3px; }
	.sklpl__card { margin-top: 0; justify-items: start; text-align: left; }
	.sklpl__moment--open,
	.sklpl__moment--close { padding-bottom: 14px; }
	.sklpl__moment:last-child { padding-bottom: 0; }
	.sklpl__rail-wrap { padding: 22px 20px; }
}
