/* Learn Tracks (learn/tracks/*.htm, generated by tools/build_tracks.py). Colors come from kirupa.css tokens, so
   every site style and dark mode theme these the same way they theme the Learn hubs. The stage inks match the
   stage colors in the track maps (tools/track_figures.py) and the milestone figures. */
#mainContent p.trackFor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 0;
	margin-bottom: 18px;
	padding: 12px 16px;
	border: 2px solid var(--structureBorder);
	border-radius: 12px;
	background: var(--primaryLightest);
	color: var(--darkText);
	font-weight: 700;
}
#mainContent p.trackFor .trackForIcon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	max-width: none;
	margin: 0;
	image-rendering: pixelated;
}
#mainContent ol.trackStops {
	margin-top: 0;
	margin-bottom: 28px;
	padding: 0;
	list-style: none;
}
#mainContent ol.trackStops > li.trackStop {
	--stageInk: var(--darkTextSecondary);
	display: grid;
	grid-template-columns: 30px 32px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--structureBorder);
	background: none;
	list-style: none;
}
#mainContent ol.trackStops > li.trackStop::before {
	content: none;
}
#mainContent ol.trackStops > li.trackStop:last-child {
	border-bottom: 1px solid var(--structureBorder);
}
#mainContent ol.trackStops > li[data-stage="1"] { --stageInk: #0a64b8; }
#mainContent ol.trackStops > li[data-stage="2"] { --stageInk: #3d7a26; }
#mainContent ol.trackStops > li[data-stage="3"] { --stageInk: #8a6a12; }
#mainContent ol.trackStops > li[data-stage="4"] { --stageInk: #5b3fa8; }
html.theme_dark #mainContent ol.trackStops > li[data-stage="1"] { --stageInk: #8cc8ff; }
html.theme_dark #mainContent ol.trackStops > li[data-stage="2"] { --stageInk: #9fd884; }
html.theme_dark #mainContent ol.trackStops > li[data-stage="3"] { --stageInk: #ecc75c; }
html.theme_dark #mainContent ol.trackStops > li[data-stage="4"] { --stageInk: #c4b0f5; }
#mainContent .trackStops .trackNumber {
	display: grid;
	place-content: center;
	width: 30px;
	height: 30px;
	border: 3px solid var(--stageInk);
	border-radius: 50%;
	color: var(--darkText);
	font: 700 14px/1 kirupaCode, monospace;
}
#mainContent .trackStops .trackIco {
	width: 32px;
	height: 32px;
	max-width: none;
	margin: 0;
	image-rendering: pixelated;
}
#mainContent .trackStops .trackText {
	display: grid;
	gap: 4px;
	min-width: 0;
}
#mainContent .trackStops a.trackTitle {
	color: var(--darkText);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}
#mainContent .trackStops a.trackTitle:is(:hover, :focus-visible) {
	color: var(--primary);
	text-decoration: underline;
}
#mainContent .trackStops .trackMeta {
	color: var(--stageInk);
	font: 13px/1.5 kirupaCode, monospace;
}
#mainContent .trackStops .trackWhy {
	color: var(--bodyText);
	font-size: 16px;
	line-height: 1.55;
}
#mainContent .trackStops a.trackQuiz {
	margin-left: 4px;
	color: var(--linkForeground);
	font-weight: 700;
	white-space: nowrap;
}
/* The wrapper takes the article's side margins (lists of this kind reset theirs), and the grid fills it. */
#mainContent .trackGridWrap {
	margin-top: 8px;
	margin-bottom: 32px;
}
@media (max-width: 600px) {
	#mainContent ol.trackStops > li.trackStop {
		grid-template-columns: 30px minmax(0, 1fr);
	}
	#mainContent .trackStops .trackIco {
		display: none;
	}
	#mainContent ul.libGrid.trackGrid {
		grid-template-columns: minmax(0, 1fr);
	}
}
