.kb-recipe {
	--kb-ink: #253020;
	--kb-olive: #415439;
	--kb-line: #d7ddcb;
	--kb-cream: #fcfaf4;
	--kb-green: #eef2e6;
	--kb-peach: #f9efe5;
	--kb-sand: #f6f1dd;
	display: grid;
	gap: clamp(.85rem, 3vw, 1.3rem);
	margin: 1.8rem 0;
	color: var(--kb-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.kb-recipe *, .kb-recipe *::before { box-sizing: border-box; }
.kb-recipe [hidden], .kb-recipe__actions[hidden] { display: none !important; }
.kb-recipe h2, .kb-recipe h3, .kb-recipe h4 { margin: 0 0 .45rem; color: var(--kb-ink); line-height: 1.2; }
.kb-recipe h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
.kb-recipe h3 { font-size: 1.05rem; }
.kb-recipe p { margin: 0 0 .75rem; }
.kb-recipe p:last-child { margin-bottom: 0; }
.kb-recipe__ingredients, .kb-recipe__method, .kb-recipe__nutrition {
	padding: clamp(1rem, 4vw, 1.65rem);
	border: 1px solid var(--kb-line);
	border-radius: 1rem;
}
.kb-recipe__actions { --kb-olive: #415439; margin-bottom: 1.4rem; }
.kb-recipe__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .8rem; }
.kb-recipe__status { font-size: .85rem; }
.kb-recipe__actions button {
	background: #fff;
	border: 1px solid var(--kb-olive);
	border-radius: .55rem;
	color: var(--kb-olive);
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	min-height: 44px;
	padding: .4rem .8rem;
	text-transform: none;
}
.kb-recipe__actions .kb-recipe__save { background: var(--kb-olive); color: #fff; }
.kb-recipe__actions button:hover { filter: brightness(.9); }
.kb-recipe :is(button,input):focus-visible, .kb-recipe__actions button:focus-visible { outline: 2px solid #332a95; outline-offset: 3px; }
.kb-recipe__facts, .kb-recipe__nutrition dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.15rem), 1fr));
	gap: .55rem;
	margin: 0;
}
.kb-recipe__facts > div, .kb-recipe__nutrition dl > div {
	border-radius: .65rem;
	border: 1px solid var(--kb-line);
	padding: .65rem .75rem;
	background: #f3f5ef;
}
.kb-recipe dt { font-size: .84rem; }
.kb-recipe dd { margin: 0; font-weight: 700; }
.kb-recipe__ingredients { background: var(--kb-green); }
.kb-recipe__ingredients h3 { margin-top: .9rem; }
.kb-recipe__ingredients ul { list-style: none; margin: .55rem 0 0; padding: 0; }
.kb-recipe__ingredients li { margin: 0; padding: 0; }
.kb-recipe__ingredients li + li { border-top: 1px solid #d5dccb; }
.kb-recipe__ingredients li label { display: flex; gap: .65rem; align-items: baseline; padding: .5rem 0; }
.kb-recipe__check { flex: 0 0 auto; accent-color: var(--kb-olive); width: 1rem; height: 1rem; margin: 0; }
.kb-recipe__check:checked + span { text-decoration: line-through; color: #505a4a; }
.kb-recipe__method { background: var(--kb-peach); }
.kb-recipe__method ol { list-style: none; counter-reset: kb-step; margin: .75rem 0 0; padding: 0; }
.kb-recipe__method li {
	position: relative;
	counter-increment: kb-step;
	background: #fffdf9;
	border: 1px solid #e8dbcc;
	border-radius: .65rem;
	margin: 0;
	padding: .85rem .85rem .85rem 3.05rem;
	scroll-margin-top: 6rem;
}
.kb-recipe__method li + li { margin-top: .65rem; }
.kb-recipe__method li::before {
	content: counter(kb-step);
	position: absolute;
	left: .75rem;
	top: .8rem;
	display: grid;
	place-items: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
	background: #ead9c5;
	color: #302719;
	font-weight: 700;
}
.kb-recipe__method figure { margin: .75rem 0 0; }
.kb-recipe__method img { display: block; width: auto; height: auto; max-width: 100%; border-radius: .5rem; }
.kb-recipe__method figcaption { margin-top: .35rem; color: #4a453e; font-size: .85rem; }
.kb-recipe__nutrition { background: var(--kb-sand); }
.kb-recipe__nutrition dl { margin-top: .75rem; }
.kb-recipe__nutrition dl > div, .kb-recipe__facts > .kb-recipe__calories { background: #fffcf0; }
.kb-recipe-print { display: none; }
@media print {
	body.kb-printing-recipe > :not(.kb-recipe-print) { display: none !important; }
	body.kb-printing-recipe { display: block !important; min-width: 0 !important; overflow: visible !important; background: white !important; }
	body.kb-printing-recipe .kb-recipe-print { display: block !important; background: white; }
	.kb-recipe-print .kb-recipe { display: block; margin: 0; color: black; }
	.kb-recipe-print .kb-recipe > * { margin: 0 0 .7rem; }
	.kb-recipe-print .kb-recipe__actions, .kb-recipe-print .kb-recipe__check { display: none !important; }
	.kb-recipe-print .kb-recipe__check:checked + span { text-decoration: none; color: inherit; }
	.kb-recipe-print .kb-recipe__method figure { display: none; }
	.kb-recipe-print .kb-recipe__method li { break-inside: avoid; }
	.kb-recipe-print .kb-recipe__method li::before { border: 1px solid #777; }
}

.kb-recipe-saved ul { list-style: none; padding: 0; margin-left: 0; }
.kb-recipe-saved li { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid #d7ddcb; }
.kb-recipe-saved button { font: inherit; color: #415439; background: #fff; border: 1px solid #415439; border-radius: .45rem; padding: .35rem .65rem; cursor: pointer; min-height: 44px; }
.kb-recipe-saved p:empty, .kb-recipe-saved ul:empty { display: none; }
