/* Printable sections — on the article page. */

.astute-printable {
	position: relative;
	margin: 1.5em 0;
	padding: 1.1em 1.25em 0.6em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.015);
}

.astute-printable__bar {
	display: flex;
	justify-content: flex-end;
	margin: -0.35em 0 0.25em;
}

.astute-printable__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 1.1em;
	border: 0;
	border-radius: 8px;
	background: #1f2937;
	color: #fff;
	font: inherit;
	font-size: 0.95em;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: background 0.15s;
}

.astute-printable__button:hover {
	filter: brightness(0.9);
}

.astute-printable__button:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.astute-printable__icon {
	flex: none;
	width: 1.2em;
	height: 1.2em;
}

/* Tick-box list items, anywhere in the post. */
li.astute-check {
	list-style: none;
	position: relative;
	padding-left: 1.9em;
}

ul > li.astute-check {
	margin-left: -1.2em;
}

.astute-check__box {
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.1em;
	height: 1.1em;
	border: 2px solid currentColor;
	border-radius: 3px;
	opacity: 0.7;
}

li.astute-check.is-done .astute-check__box::after {
	content: "";
	position: absolute;
	left: 0.3em;
	top: 0.05em;
	width: 0.3em;
	height: 0.6em;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

@media print {
	.astute-printable__bar {
		display: none;
	}
}
