/**
 * Print stylesheet for recipe pages.
 * Clean A4 layout optimized for printing recipes.
 */

@media print {

	/* Hide non-essential elements */
	header,
	footer,
	nav,
	aside,
	.sidebar,
	.site-header,
	.site-footer,
	.site-navigation,
	.main-navigation,
	.comments-area,
	.comment-respond,
	.share-buttons,
	.social-share,
	.related-posts,
	.post-navigation,
	.breadcrumbs,
	.elementor-location-header,
	.elementor-location-footer,
	#wpadminbar,
	.admin-bar,
	.no-print {
		display: none !important;
	}

	/* Reset page */
	body {
		margin: 0;
		padding: 0;
		background: #fff !important;
		color: #000 !important;
		font-family: "David", "Noto Sans Hebrew", "Arial", sans-serif;
		font-size: 12pt;
		line-height: 1.6;
		direction: rtl;
	}

	/* Page margins */
	@page {
		margin: 2cm;
		size: A4;
	}

	/* Recipe title */
	.entry-title,
	h1 {
		font-size: 22pt;
		margin-bottom: 0.3cm;
		border-bottom: 2pt solid #000;
		padding-bottom: 0.3cm;
		page-break-after: avoid;
	}

	/* Recipe meta (time, servings, difficulty) */
	.recipe-meta {
		display: flex;
		gap: 2em;
		font-size: 11pt;
		margin-bottom: 0.5cm;
		padding: 0.3cm 0;
		border-bottom: 1pt solid #ccc;
		page-break-after: avoid;
	}

	/* Introduction */
	.recipe-intro {
		font-style: italic;
		margin-bottom: 0.5cm;
		page-break-after: avoid;
	}

	/* Section headings */
	h2 {
		font-size: 16pt;
		margin-top: 0.5cm;
		margin-bottom: 0.3cm;
		page-break-after: avoid;
	}

	/* Ingredients list */
	.recipe-ingredients {
		page-break-inside: avoid;
		margin-bottom: 0.5cm;
	}

	.recipe-ingredients table {
		width: 100%;
		border-collapse: collapse;
	}

	.recipe-ingredients td {
		padding: 0.15cm 0.3cm;
		border-bottom: 0.5pt solid #eee;
		font-size: 11pt;
	}

	/* Steps */
	.recipe-steps {
		margin-bottom: 0.5cm;
	}

	.recipe-steps ol {
		padding-right: 1.5em;
		padding-left: 0;
	}

	.recipe-steps li {
		margin-bottom: 0.4cm;
		font-size: 11pt;
		page-break-inside: avoid;
	}

	/* Hide step photos in print */
	.recipe-steps img {
		display: none !important;
	}

	/* Personal notes */
	.recipe-notes {
		margin-top: 0.5cm;
		padding: 0.3cm;
		border: 1pt solid #ccc;
		background: #f9f9f9 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		page-break-inside: avoid;
	}

	/* Source */
	.recipe-source {
		margin-top: 0.3cm;
		font-size: 10pt;
		color: #555 !important;
	}

	/* Links — show as plain text */
	a {
		color: #000 !important;
		text-decoration: none !important;
	}

	/* Images — hide featured image, keep inline images small */
	.post-thumbnail,
	.wp-post-image {
		display: none !important;
	}

	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}
}
