/*
 * A page of numbered sections (template-document.php): sizes and pieces the compiled Tailwind CSS does not have.
 * The head matches the about page's (about.css).
 */

.sst-doc-head {
	padding-top: 8rem;
	padding-bottom: 3.5rem;
}

.sst-doc-note {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.sst-doc-lead {
	max-width: 40rem;
	font-size: 15.5px;
	line-height: 1.6;
	text-wrap: pretty;
}

.sst-doc-lead > * + * {
	margin-top: 0.8em;
}

.sst-doc-main {
	padding-top: 3.5rem;
}

.sst-doc-grid {
	display: grid;
	gap: 1.5rem;
}

/* The contents: only on wide screens, a card that stays in view beside the sections. */
.sst-doc-toc {
	display: none;
}

.sst-doc-toc-link {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	border-radius: 1rem;
	padding: 0.6rem 0.75rem;
	color: rgb(12 11 10 / 0.72);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	transition: background-color 150ms, color 150ms;
}

.sst-doc-toc-link:hover {
	background: rgb(219 185 243 / 0.35);
	color: var(--color-ink, #0c0b0a);
}

.sst-doc-toc-num {
	display: grid;
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	place-items: center;
	margin-top: -0.1rem;
	border-radius: 0.5rem;
	background: rgb(219 185 243 / 0.45);
	color: var(--color-forest, #154618);
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 600;
}

/* A section's slip. */
.sst-doc-card {
	padding: 1.75rem 1.5rem 2rem;
	scroll-margin-top: 6.5rem;
}

.sst-doc-key {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.85rem;
	box-shadow: 0 4px 0 #62bb39;
	font-size: 17px;
	line-height: 1;
}

.sst-doc-title {
	font-size: clamp(1.05rem, 4.4vw, 1.4rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.sst-doc-body {
	margin-top: 1.25rem;
	font-size: 15px;
	line-height: 1.65;
}

/* Lists as the team section's: a lime tick on a deep green dot. */
.sst-doc-body ul {
	display: grid;
	gap: 0.7rem;
	padding-left: 0;
	list-style: none;
}

.sst-doc-body ul li {
	position: relative;
	padding-left: 2rem;
}

.sst-doc-body ul li + li {
	margin-top: 0;
}

.sst-doc-body ul li::before {
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 9999px;
	background: var(--color-forest, #154618) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23adee68' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
	content: "";
}

@media (min-width: 40rem) {
	.sst-doc-head {
		padding-top: 10rem;
		padding-bottom: 5rem;
	}

	.sst-doc-lead {
		font-size: 17.5px;
		line-height: 1.65;
	}

	.sst-doc-main {
		padding-top: 5rem;
	}

	.sst-doc-card {
		padding: 2.5rem 2.75rem 2.75rem;
	}

	.sst-doc-body {
		margin-top: 1.5rem;
		padding-left: 3.5rem;
		font-size: 16px;
	}
}

@media (min-width: 64rem) {
	.sst-doc-grid {
		grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
		align-items: start;
		gap: 2rem;
	}

	.sst-doc-toc {
		position: sticky;
		top: 7rem;
		display: block;
		border-radius: 1.75rem;
		background: #fffdf8;
		padding: 0.75rem;
		box-shadow: 0 1px 2px rgb(40 20 70 / 0.05), 0 24px 44px -30px rgb(40 20 70 / 0.45);
	}

	.sst-doc-card {
		padding: 2.75rem 3.5rem 3rem;
	}
}
