/* =========================================================================
   Resto Menu Maker — Print CSS
   Applied both at @media print and on the standalone card-print.php page
   ========================================================================= */

@media print {
	/* Page setup */
	@page {
		size: A4 portrait;
		margin: 0;
	}

	/* Hide everything on the page except the card */
	body, html { margin: 0; padding: 0; background: #fff; }

	.rmm-print-controls,
	.rmm-editor-toolbar,
	#rmm-form-panel,
	#rmm-preview-bar,
	#wpadminbar,
	.site-header,
	.site-footer,
	nav {
		display: none !important;
	}

	/* Reset screen-only layout for the print page */
	.rmm-print-body  { background: #fff; }
	.rmm-print-page  { margin: 0; padding: 0; box-shadow: none; max-width: none; }

	/* The card fills the A4 page exactly */
	.rmm-card {
		width: 210mm;
		min-height: 297mm;
		padding: 18mm 22mm 14mm;
		page-break-after: avoid;
		box-shadow: none;
		border: none;
	}

	/* Ensure no accidental page breaks inside sections */
	.rmm-section { page-break-inside: avoid; }
	.rmm-item     { page-break-inside: avoid; }

	/* Keep colours when printing */
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

	/* Typography tweaks for print */
	.rmm-card-title     { font-size: 26pt; }
	.rmm-restaurant-name { font-size: 8pt; }
	.rmm-card-type-label { font-size: 7pt; }
	.rmm-card-subtitle   { font-size: 11pt; }
	.rmm-section-title   { font-size: 8pt; }
	.rmm-item-name, .rmm-item-price { font-size: 11pt; }
	.rmm-item-desc       { font-size: 9pt; }
}
