@page {
  size: 6in 4in;
  margin: 0;
}

@media print {
  [data-screen-only] { display: none !important; }
  html, body {
    margin: 0; padding: 0;
    width: 6in; height: 4in;
    background: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .app { max-width: none; padding: 0; margin: 0; }
  .site-header, .site-footer, .recipe-actions, .back-link,
  .toast, .recipe-notes { display: none !important; }

  .recipe {
    width: 6in; height: 4in;
    padding: 0.2in 0.25in;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    page-break-after: avoid;
  }

  .recipe-header {
    border-bottom: 2px solid #222;
    padding: 0 0 0.06in;
    margin: 0 0 0.1in;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: nowrap;
  }
  .recipe-header > * { margin: 0; }
  .recipe-category {
    order: 2;
    font-size: 7.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #c0392b;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 0 0 0 0.4em;
  }
  .recipe-title {
    order: 1;
    font-family: inherit;
    font-size: 13pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
    flex: 1;
    color: #1a1a1a;
  }
  .recipe-source { display: none; }
  .recipe-meta {
    display: none;
  }

  .recipe-body {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.2in;
    flex: 1;
    min-height: 0;
    padding: 0;
  }
  .ingredients-block { width: 2in; flex-shrink: 0; }
  .steps-block { flex: 1; min-width: 0; border-left: 1px solid #ccc; padding-left: 0.2in; }

  .recipe-body h2 {
    font-family: inherit;
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 0.05in;
    font-weight: 600;
  }

  .ingredients {
    list-style: none;
    font-size: 9pt;
    line-height: 1.55;
    padding: 0;
    margin: 0;
  }
  .ingredients li {
    border: none;
    padding: 0;
    display: list-item;
    color: #1a1a1a !important;
    text-decoration: none !important;
  }
  .ingredients li::before {
    content: "·";
    margin-right: 3px;
    color: #999;
  }
  .ingredients .qty {
    font-weight: 600;
    color: #1a1a1a !important;
    display: inline;
    min-width: 0;
  }
  .ingredients .item { color: #1a1a1a; }

  .steps {
    list-style: none;
    counter-reset: step;
    font-size: 9pt;
    line-height: 1.5;
    padding: 0;
    margin: 0;
  }
  .steps li {
    counter-increment: step;
    margin-bottom: 0.05in;
    padding: 0 0 0 0;
    position: relative;
    padding-left: 1.1em;
  }
  .steps li::before {
    content: counter(step);
    position: static;
    font-family: inherit;
    font-weight: 700;
    font-size: 9.5pt;
    margin-right: 4px;
    color: #c0392b;
    display: inline;
    line-height: inherit;
  }
}
