/* DLB recipe card — quiet, editorial, inherits the theme's fonts and colours. */
.dlbc {
	--dlbc-accent: #a33a22;
	--dlbc-line: color-mix(in srgb, currentColor 14%, transparent);
	--dlbc-soft: color-mix(in srgb, currentColor 60%, transparent);
	margin: 0 0 2.75rem;
	padding: 1.5rem 0 0;
	border-top: 2px solid currentColor;
	font-variant-numeric: tabular-nums;
	line-height: 1.55;
	container-type: inline-size;
}
.dlbc * { box-sizing: border-box; }
.dlbc h2, .dlbc h3, .dlbc h4, .dlbc p, .dlbc ul, .dlbc ol, .dlbc dl, .dlbc dd { margin: 0; padding: 0; }

.dlbc-kicker {
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dlbc-accent);
	font-weight: 600;
}
.dlbc .dlbc-title {
	margin: .45rem 0 .5rem;
	font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
	line-height: 1.15;
	letter-spacing: -.012em;
	font-weight: 700;
}
.dlbc-desc {
	max-width: 62ch;
	color: var(--dlbc-soft);
}

.dlbc-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	margin: 1.5rem 0 0 !important;
	border-top: 1px solid var(--dlbc-line);
	border-bottom: 1px solid var(--dlbc-line);
}
.dlbc-meta > div { padding: .85rem 1rem .8rem 0; }
.dlbc-meta > div + div { padding-left: 1rem; border-left: 1px solid var(--dlbc-line); }
.dlbc-meta dt {
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dlbc-soft);
}
.dlbc-meta dd { font-size: 1.1rem; font-weight: 600; margin-top: .15rem !important; }

.dlbc-body {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 3rem;
	margin-top: 1.75rem;
}
.dlbc .dlbc-body h3 {
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	padding-bottom: .6rem !important;
	border-bottom: 1px solid currentColor;
}
.dlbc .dlbc-ingr h4 {
	margin: 1.25rem 0 .1rem;
	font-size: .95rem;
	font-weight: 600;
	color: var(--dlbc-accent);
}
.dlbc-ingr ul { list-style: none; }
.dlbc-ingr li {
	list-style: none;
	margin: 0;
	padding: .55rem 0;
	border-bottom: 1px solid var(--dlbc-line);
}
.dlbc-ingr li::before, .dlbc-steps li::marker { content: none; }
.dlbc-q { font-weight: 600; white-space: nowrap; }

.dlbc-steps ol { list-style: none; counter-reset: dlbc; }
.dlbc-steps li {
	list-style: none;
	counter-increment: dlbc;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	margin: 0;
	padding: .9rem 0;
	border-bottom: 1px solid var(--dlbc-line);
}
.dlbc-steps li::before {
	content: counter(dlbc, decimal-leading-zero);
	font-size: .8rem;
	font-weight: 600;
	color: var(--dlbc-accent);
	padding-top: .2rem;
}
.dlbc-steps strong { font-weight: 650; }
.dlbc-set {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	font-size: .92em;
	padding: .05em .4em;
	border-radius: 3px;
	background: color-mix(in srgb, var(--dlbc-accent) 9%, transparent);
	color: inherit;
}

.dlbc-tip {
	margin: 1.75rem 0 0 !important;
	padding-left: 1rem !important;
	border-left: 2px solid var(--dlbc-accent);
	max-width: 70ch;
}
.dlbc-tip span {
	display: block;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dlbc-accent);
	font-weight: 600;
	margin-bottom: .2rem;
}

.dlbc-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem 1.5rem;
	margin-top: 1.75rem;
	padding: .9rem 0;
	border-top: 1px solid var(--dlbc-line);
	border-bottom: 1px solid var(--dlbc-line);
	font-size: .8rem;
	color: var(--dlbc-soft);
}
.dlbc-foot p:empty { display: none; }
.dlbc-print {
	margin-left: auto;
	font: inherit;
	font-size: .8rem;
	color: inherit;
	background: none;
	border: 1px solid var(--dlbc-line);
	border-radius: 3px;
	padding: .35rem .9rem;
	cursor: pointer;
}
.dlbc-print:hover { border-color: currentColor; color: var(--dlbc-accent); }

/* Layout follows the width of the article column, not the screen. */
@container (max-width: 700px) {
	.dlbc-body { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.dlbc-ingr ul { columns: 2; column-gap: 2rem; }
	.dlbc-ingr li { break-inside: avoid; }
}
@container (max-width: 460px) {
	.dlbc-ingr ul { columns: 1; }
	.dlbc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dlbc-meta > div + div { border-left: 0; padding-left: 0; }
	.dlbc-meta > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--dlbc-line); }
	.dlbc-meta > div:nth-child(n+3) { border-top: 1px solid var(--dlbc-line); }
	.dlbc-print { margin-left: 0; }
}

/* Summary and author box, harmonised with the card (overrides the file's inline styles). */
.dlb-tldr {
	background: none !important;
	border: 0 !important;
	border-left: 2px solid var(--dlbc-accent, #a33a22) !important;
	border-radius: 0 !important;
	padding: .15rem 0 .15rem 1.1rem !important;
}
.dlb-tldr > p:first-child {
	font-size: .72rem !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dlbc-accent, #a33a22);
	font-weight: 600 !important;
}
.dlb-author {
	background: none !important;
	border: 0 !important;
	border-top: 2px solid currentColor !important;
	border-radius: 0 !important;
	padding: 1.25rem 0 0 !important;
}
.dlb-author:not(.wp-block-group) > div:first-of-type {
	background: none !important;
	color: inherit !important;
	border: 1px solid currentColor;
	font-weight: 600 !important;
	font-size: 1rem !important;
}
.dlb-author a { color: var(--dlbc-accent, #a33a22); }

/* Block version of the author box (group block). */
.wp-block-group.dlb-author { display: flow-root; }
.wp-block-group.dlb-author p { margin: 0 0 .5rem; }
.wp-block-group.dlb-author p:first-of-type { font-weight: 700; margin-bottom: .1rem; }
.wp-block-group.dlb-author p:nth-of-type(2) { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.wp-block-group.dlb-author p:last-of-type { font-size: .85rem; margin-bottom: 0; }
.dlb-author-photo { float: left; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 1rem .5rem 0; }
.wp-block-group.dlb-tldr p { margin: 0; }
.wp-block-group.dlb-tldr p + p { margin-top: .35rem; }

@media print {
	body * { visibility: hidden !important; }
	.dlbc, .dlbc * { visibility: visible !important; }
	.dlbc { position: absolute; inset: 0 auto auto 0; width: 100%; color: #000; }
	.dlbc-print { display: none; }
	.dlbc-body { grid-template-columns: 2fr 3fr; gap: 2rem; }
}
