/* Yarl Samayal — printable A4 recipe card */
:root { --ys-primary: #B3261E; --ys-primary-dark: #8E1B12; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body.ys-print-body { background: #EDE7E0; font-family: 'Catamaran', 'Noto Sans Tamil', sans-serif; color: #1E1A17; }
.ys-print-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 794px; margin: 20px auto 12px; font-size: 14px; font-weight: 700; }
.ys-print-tools a { color: #1E1A17; }
.ys-print-tools button { min-height: 40px; padding: 0 18px; border-radius: 20px; border: 0; background: var(--ys-primary); color: #fff; font: inherit; cursor: pointer; }
.ys-a4 {
	width: 794px; min-height: 1123px; margin: 0 auto 40px; box-sizing: border-box; padding: 44px 48px 40px; background: #fff;
	font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 4px 30px rgba(0,0,0,.12);
}
.ys-a4-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #1E1A17; padding-bottom: 10px; }
.ys-a4-brand { display: flex; align-items: center; gap: 10px; }
.ys-a4-brand b { font-family: 'Noto Serif Display', 'Noto Serif Tamil', serif; font-weight: 800; font-size: 17px; }
.ys-a4-brand small, .ys-a4-url { font-size: 12px; color: #6B625B; font-weight: 600; }
.ys-a4-head { display: flex; gap: 22px; align-items: stretch; }
.ys-a4-title { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ys-a4-cat { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ys-primary); }
.ys-a4 h1 { margin: 0; font-family: 'Noto Serif Display', 'Noto Serif Tamil', serif; font-weight: 800; font-size: 32px; line-height: 1.25; }
.ys-a4-alt { font-size: 14px; font-weight: 600; color: #6B625B; }
.ys-a4-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; margin-top: 8px; padding: 10px 12px; border: 1px solid #DDD3C8; border-radius: 10px; }
.ys-a4-img { flex: 0 0 180px; width: 180px; height: 180px; border-radius: 16px; overflow: hidden; display: block; }
.ys-a4-img img, .ys-a4-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ys-a4-cols { display: flex; gap: 26px; flex: 1; min-height: 0; }
.ys-a4-ings { flex: 0 0 250px; display: flex; flex-direction: column; gap: 4px; }
.ys-a4 h2 { margin: 0 0 4px; font-family: 'Noto Serif Display', 'Noto Serif Tamil', serif; font-weight: 800; font-size: 17px; border-bottom: 1px solid #DDD3C8; padding-bottom: 4px; }
.ys-a4-group { font-size: 12px; font-weight: 800; color: var(--ys-primary); margin-top: 6px; }
.ys-a4-box { margin-top: auto; padding: 10px 12px; border: 1px solid #DDD3C8; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.ys-a4-allergy { font-weight: 700; color: #8A4609; }
.ys-a4-method { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.ys-a4-step { display: flex; gap: 10px; }
.ys-a4-n { flex: 0 0 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--ys-primary); color: var(--ys-primary); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ys-a4-tip { margin-top: 4px; padding: 10px 12px; background: #FBF5EC; border-radius: 10px; }
.ys-a4-tip b { color: var(--ys-primary-dark); }
.ys-a4-qr { flex-direction: row; gap: 14px; align-items: center; }
.ys-a4-qr .ys-qr { flex: 0 0 76px; width: 76px; height: 76px; display: block; }
.ys-a4-qr .ys-qr svg { width: 100%; height: 100%; display: block; }
.ys-a4-qr > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ys-a4-qr b { font-size: 14px; }
.ys-a4-muted { color: #6B625B; }
.ys-a4-foot { display: flex; justify-content: space-between; border-top: 1px solid #DDD3C8; padding-top: 8px; font-size: 12px; color: #6B625B; }
@media screen and (max-width: 820px) {
	.ys-a4 { width: 100%; min-height: 0; padding: 24px 18px; }
	.ys-a4-cols, .ys-a4-head { flex-direction: column; }
	.ys-a4-ings, .ys-a4-img { flex-basis: auto; }
	.ys-print-tools { padding: 0 12px; }
}
@page { size: A4; margin: 0; }
@media print {
	body.ys-print-body { background: #fff; }
	.ys-print-tools { display: none; }
	.ys-a4 { box-shadow: none; margin: 0; width: 210mm; height: 297mm; min-height: 0; overflow: hidden; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
