/* Nook Checklist 1.1.0 — printable checklist block (.sn-check) and Save-button rules. */

.sn-check {
	--nc-accent: var(--wp--preset--color--marigold, var(--wp--preset--color--sage, #F6C744));
	--nc-ink: var(--wp--preset--color--ink, #1E2723);
	--nc-muted: var(--wp--preset--color--muted, #3E4A44);
	--nc-line: var(--wp--preset--color--sand, #E8E1D4);
	position: relative;
	margin: 36px 0 !important;
	padding: 28px 32px 26px !important;
	background: var(--wp--preset--color--white, #fff);
	border: 2px solid var(--nc-line);
	border-top: 10px solid var(--nc-accent);
	border-radius: 28px;
	color: var(--nc-ink);
	box-sizing: border-box;
}
.sn-check--kitchen { --nc-accent: var(--wp--preset--color--coral, #E4572E); }
.sn-check--closet { --nc-accent: var(--wp--preset--color--pine-soft, #2C5047); }
.sn-check--bathroom { --nc-accent: #7FB3B0; }
.sn-check--pets { --nc-accent: var(--wp--preset--color--coral-deep, #C8431F); }
.sn-check--apartment, .sn-check--renter { --nc-accent: var(--wp--preset--color--pine, #1E3A34); }
.sn-check--holiday { --nc-accent: #B5483A; }

.sn-check .sn-script { margin: 0 0 2px !important; font-size: 28px; line-height: 1.1; color: var(--wp--preset--color--coral, var(--wp--preset--color--sage-deep, #E4572E)); }
.sn-check .sn-check-title {
	margin: 0 0 6px !important;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: clamp(24px, 3.2vw, 32px);
	line-height: 1.15;
	font-weight: 700;
}
.sn-check .sn-check-sub { margin: 0 0 18px !important; color: var(--nc-muted); font-size: 16px; }

.sn-check .sn-check-list {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	counter-reset: nc;
	columns: 2 340px;
	column-gap: 28px;
}
.sn-check .sn-check-list li { break-inside: avoid; margin: 0 0 4px !important; padding: 0 !important; }
.sn-check .sn-check-list li::before { content: none !important; }
.sn-check .sn-check-list label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 9px 4px;
	border-bottom: 1px dashed var(--nc-line);
	cursor: pointer;
	font-size: 17px;
	line-height: 1.4;
}
.sn-check .sn-check-list input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin: 1px 0 0;
	border: 2px solid var(--nc-ink);
	border-radius: 7px;
	background: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.sn-check .sn-check-list input[type="checkbox"]::after {
	content: "";
	width: 12px;
	height: 7px;
	border-left: 3px solid var(--nc-ink);
	border-bottom: 3px solid var(--nc-ink);
	transform: rotate(-45deg) translate(1px, -1px);
	opacity: 0;
}
.sn-check .sn-check-list input[type="checkbox"]:checked { background: var(--nc-accent); }
.sn-check .sn-check-list input[type="checkbox"]:checked::after { opacity: 1; }
.sn-check .sn-check-list input[type="checkbox"]:focus-visible { outline: 3px solid var(--nc-accent); outline-offset: 2px; }
.sn-check .sn-check-list input:checked + span { text-decoration: line-through; color: var(--nc-muted); }

.sn-check .sn-check-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 0 !important; }
.sn-check .sn-check-print,
.sn-check .sn-check-pin {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font: 700 16px/1 var(--wp--preset--font-family--body, system-ui, sans-serif);
	text-decoration: none !important;
	cursor: pointer;
}
.sn-check .sn-check-print { background: var(--nc-ink); color: #fff !important; border: 0; }
.sn-check .sn-check-print::before { content: "\2399"; font-size: 18px; }
.sn-check .sn-check-pin { background: #fff; color: #E60023 !important; border: 2px solid #E60023; }
.sn-check .sn-check-reset { background: none; border: 0; padding: 6px; color: var(--nc-muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.sn-check .sn-check-foot { display: none; }

@media (max-width: 600px) {
	.sn-check { padding: 22px 18px 20px !important; border-radius: 22px; }
	.sn-check .sn-check-list label { font-size: 16px; }
	.sn-check .sn-check-print, .sn-check .sn-check-pin { flex: 1 1 auto; justify-content: center; }
}

/* Print only the checklist when the Print button is used: checklist.js copies it into #nc-print-root. */
#nc-print-root { display: none; }
@media print {
	body.nc-printing > *:not(#nc-print-root) { display: none !important; }
	body.nc-printing #nc-print-root { display: block !important; }
	#nc-print-root .sn-check { margin: 0 !important; border: 2px solid #999 !important; border-top: 10px solid #999 !important; }
	#nc-print-root .sn-check-list { columns: 1 !important; }
	#nc-print-root .sn-check-list label { font-size: 15pt; padding: 10px 4px; }
	#nc-print-root .sn-check-actions { display: none !important; }
	#nc-print-root .sn-check-foot { display: block !important; margin-top: 16px; font-size: 10pt; color: #555; }
	#nc-print-root input[type="checkbox"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Pinterest Save only on tall, pin-shaped images (see checklist.js). */
figure.nc-no-save > .sn-pin-save { display: none !important; }

/* The Fresh Nook palette (sage site). */
.nc-site-freshnook .sn-check { --nc-accent: var(--wp--preset--color--sage, #7E9C88); }
.nc-site-freshnook .sn-check .sn-script { color: var(--wp--preset--color--sage-deep, #4F6E5A); }
.nc-site-freshnook .sn-check--kitchen { --nc-accent: #E9A86B; }
.nc-site-freshnook .sn-check--bathroom { --nc-accent: #7FB3B0; }
.nc-site-freshnook .sn-check--laundry { --nc-accent: #8FA8D8; }
.nc-site-freshnook .sn-check--floors { --nc-accent: #C9A57A; }
.nc-site-freshnook .sn-check--pets { --nc-accent: #D98C7A; }
.nc-site-freshnook .sn-check--routines { --nc-accent: var(--wp--preset--color--sage-deep, #4F6E5A); }
.nc-site-freshnook .sn-check--holiday { --nc-accent: #B5483A; }

/* Phones: a shorter hero photo, so the title, quick answer and checklist come sooner. */
@media (max-width: 781px) {
	.single-post .wp-block-post-featured-image img {
		aspect-ratio: 16 / 10 !important;
		height: auto !important;
		object-fit: cover;
	}
}
