/**
 * Instructor cards, used on the About page and the instructor archive.
 */

.sk-instructors {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: 28px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sk-instructor {
	max-width: 240px;
	justify-self: center;
	width: 100%;
	text-align: center;
}

.sk-instructor__photo {
	margin: 0 0 14px;
	border: 2px solid var(--sk-line);
	border-radius: 50%;
	overflow: hidden;
}

.sk-instructor__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sk-instructor__name {
	font-family: var(--sk-font-body);
	font-size: 15px;
	font-weight: 800;
	color: var(--sk-ink);
}

.sk-instructor__role {
	display: block;
	margin: 2px 0 6px;
	color: var(--sk-kin-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.sk-instructor__bio {
	font-size: var(--sk-text-xs);
	color: var(--sk-text-dim);
}

/* --- Lead instructors --------------------------------------------------- */

.sk-instructors--featured {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 28px;
}

.sk-instructors--featured .sk-instructor {
	max-width: 560px;
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	overflow: hidden;
	background: var(--sk-card);
	border: 1px solid var(--sk-line);
	border-radius: var(--sk-radius);
	box-shadow: var(--sk-shadow-card);
	text-align: left;
}

.sk-instructors--featured .sk-instructor__photo {
	margin: 0;
	border: 0;
	border-radius: 0;
	min-height: 200px;
}

.sk-instructors--featured .sk-instructor__body {
	padding: 26px;
}

.sk-instructors--featured .sk-instructor__name {
	font-family: var(--sk-font-display);
	font-size: var(--sk-text-h3);
	margin-bottom: 4px;
}

.sk-instructors--featured .sk-instructor__role {
	font-size: var(--sk-text-xs);
	margin-bottom: 12px;
}

.sk-instructors--featured .sk-instructor__bio {
	font-size: var(--sk-text-base);
}

@media (max-width: 720px) {
	.sk-instructors--featured .sk-instructor {
		grid-template-columns: 1fr;
	}
}

/* --- Lineage timeline --------------------------------------------------- */

.sk-timeline {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	padding: 0 0 0 28px;
	list-style: none;
	counter-reset: milestone;
}

/* The spine. Decorative, so it is drawn rather than marked up. */
.sk-timeline::before {
	content: '';
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 5px;
	width: 2px;
	background: var(--sk-line);
}

.sk-milestone {
	position: relative;
	padding-bottom: 32px;
}

.sk-milestone::before {
	content: '';
	position: absolute;
	top: 6px;
	left: -28px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--sk-kin);
	border-radius: 50%;
	background: var(--sk-bg-alt);
}

.sk-milestone--era::before {
	background: var(--sk-kin);
}

.sk-milestone__when {
	margin-bottom: 6px;
	color: var(--sk-kin-text);
	font-size: var(--sk-text-sm);
	font-weight: 700;
	letter-spacing: 0.5px;
}

.sk-milestone__body {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 18px;
	align-items: start;
	padding: 20px 22px;
	background: var(--sk-card);
	border: 1px solid var(--sk-line);
	border-radius: var(--sk-radius);
	box-shadow: var(--sk-shadow-card);
}

.sk-milestone--era .sk-milestone__body {
	border-left: 4px solid var(--sk-kin);
}

.sk-milestone__photo {
	border-radius: 50%;
	overflow: hidden;
}

.sk-milestone h3 {
	font-family: var(--sk-font-body);
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 6px;
}

.sk-milestone p {
	font-size: var(--sk-text-base);
	color: var(--sk-text-dim);
}

@media (max-width: 560px) {
	.sk-milestone__body {
		grid-template-columns: 1fr;
	}

	.sk-milestone__photo {
		width: 96px;
	}
}

/* --- About: the timeline beside the prose -------------------------------- */

.sk-about-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

/*
 * A centred heading belongs to a full-width section. In a column it reads as
 * the column's own title, so it sits left and takes the column's width.
 */
.sk-about-split .sk-section-head {
	max-width: none;
	margin: 0 0 24px;
	text-align: left;
}

.sk-about-split .sk-timeline {
	max-width: none;
	margin: 0;
}

/* Three cards across half a page is unreadable; they stack instead. */
.sk-about-split .sk-grid--3 {
	grid-template-columns: 1fr;
}

@media (max-width: 980px) {
	.sk-about-split {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	/* Stacked, the prose introduces the lineage — so it comes first. */
	.sk-about-split__content {
		order: -1;
	}
}
