/* Print / PDF-friendly recipe sheet */

.recipe-print-body {
  background: #f0f2f7;
  margin: 0;
  color: #222;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.meta-muted { color: #6b728a; }
.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.recipe-print-toolbar {
  background: #fff;
  border-bottom: 1px solid #e0e4ee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.recipe-print-main {
  max-width: 48rem;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1rem;
}

.recipe-print-sheet {
  background: #fff;
  border: 1px solid #e0e4ee;
  border-radius: 0.75rem;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 0.15rem 0.65rem rgba(60, 59, 110, 0.06);
}

.recipe-print-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #2a294f;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.recipe-print-summary {
  color: #5c6278;
  margin: 0 0 1rem;
  font-size: 1rem;
}

.recipe-print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.88rem;
  color: #3c3b6e;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #3c3b6e;
}

.recipe-print-meta span {
  white-space: nowrap;
}

.recipe-print-hero {
  margin: 0 0 1.25rem;
  text-align: center;
}

.recipe-print-hero img {
  max-width: 100%;
  max-height: 12rem;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid #e0e4ee;
}

.recipe-print-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .recipe-print-cols {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 1.75rem;
  }
}

.recipe-print-section h2 {
  font-size: 1rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3c3b6e;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e0e4ee;
}

.recipe-print-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recipe-print-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  break-inside: avoid;
  page-break-inside: avoid;
}

.recipe-print-box {
  flex: 0 0 0.95rem;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.2rem;
  border: 1.5px solid #3c3b6e;
  border-radius: 0.2rem;
  background: #fff;
}

.recipe-print-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pstep;
}

.recipe-print-steps li {
  display: grid;
  grid-template-columns: 0.95rem 1.5rem 1fr;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px dotted #e0e4ee;
  font-size: 0.95rem;
  line-height: 1.45;
  break-inside: avoid;
  page-break-inside: avoid;
}

.recipe-print-steps li:last-child {
  border-bottom: 0;
}

.recipe-print-step-num {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1.5px solid #3c3b6e;
  color: #3c3b6e;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.recipe-print-footer {
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e0e4ee;
  font-size: 0.8rem;
  color: #6b728a;
}

/* —— Actual print / Save as PDF —— */
@media print {
  .no-print {
    display: none !important;
  }

  .recipe-print-body {
    background: #fff;
  }

  .recipe-print-main {
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .recipe-print-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .recipe-print-hero img {
    max-height: 2.75in;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }

  @page {
    margin: 0.6in;
  }
}
