/* ===============================
   Go-Sushi — Global + Print Rules
================================ */

/* Print color accuracy */
* {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ===============================
   Base
================================ */
:root {
  --menu-bg: #faf8f5;
}

body {
  font-family: "Epilogue", sans-serif;
  background: var(--menu-bg);
}

/* Optional: keep if you REALLY need it for the exact design.
   If you ever see extra whitespace / blank page in print, remove this first. */
body {
  min-height: max(884px, 100dvh);
}

/* Toggle-based hide (web too) */
.no-admin .no-print {
  display: none !important;
}

/* ===============================
   Print / PDF
================================ */
@media print {
  .no-print {
    display: none !important;
  }

  #addModal {
    display: none !important;
  }

  body {
    background: var(--menu-bg) !important;
  }

  /* Page splitting rules */
  .menu-section {
    break-after: page;
    page-break-after: always;
  }

  /* Avoid ugly splits inside cards/grids */
  .menu-section,
  .menu-grid,
  .menu-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Prevent an extra blank page at the very end */
  .menu-section:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
