/**
 * Iltizaz / E-Lezzet — Single-Page Print Stylesheet
 * Strips all web chrome and arranges only essential recipe data into a crisp,
 * ink-saving single A4 page.
 */
@page {
  size: A4 portrait;
  margin: 1cm 1.1cm;
}

@media print {
  /* Hide all non-recipe navigation, chrome, media, comments, and actions */
  #wpadminbar,
  .site-header,
  .site-footer,
  .recipe-top-strip,
  .recipe-byline-bar,
  .recipe-hero-frame,
  .recipe-step-figure,
  .recipe-media-caption,
  .action-bar,
  .servings-bar,
  .panel-subtitle,
  .panel--method .panel-header .btn,
  .panel--method .cluster,
  [data-grocery-btn],
  #comments,
  #related-recipes,
  .carousel-controls,
  .skip-link,
  .mobile-menu-trigger,
  .cta-banner,
  .modal-dialog,
  .search-popover,
  .svg-sprite {
    display: none !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html {
    font-size: 13px;
  }

  body {
    background-color: #ffffff !important;
    color: #111111 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
  }

  main {
    min-height: 0;
    padding-top: 0 !important;
  }

  .container {
    max-width: 100%;
    padding-inline: 0;
  }

  .recipe-article {
    padding-bottom: 0;
  }

  /* Compact Header */
  .recipe-header {
    gap: 0.25rem;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #222222;
  }

  .recipe-title {
    font-size: 1.5rem;
    line-height: 1.15;
    color: #000000;
  }

  .recipe-summary {
    font-size: 0.85rem;
    color: #333333;
    max-width: 100%;
  }

  .recipe-hero {
    margin: 0 0 0.625rem;
  }

  .kitchen-secret {
    margin-top: 0;
    padding: 0.375rem 0.625rem;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-left: 3px solid #222222;
    font-size: 0.8rem;
    color: #222222;
  }

  .kitchen-secret .icon {
    display: none;
  }

  /* Single-Page 2-Column Recipe Sheet */
  .editorial-grid {
    display: grid !important;
    grid-template-columns: 33% minmax(0, 1fr) !important;
    gap: 0.875rem !important;
    align-items: start;
  }

  .editorial-sidebar {
    position: static;
    gap: 0.5rem;
  }

  .editorial-main {
    gap: 0.5rem;
  }

  /* Compact Quick Facts Bar (Süre | Porsiyon | Zorluk) */
  .recipe-facts {
    border: 1px solid #cccccc;
    background-color: #ffffff;
  }

  .metrics-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background-color: #cccccc;
  }

  .metric-tile {
    padding: 0.35rem 0.25rem;
    gap: 0.1rem;
    background-color: #ffffff;
  }

  .metric-icon {
    display: none;
  }

  .metric-label {
    font-size: 0.625rem;
    color: #444444;
  }

  .metric-value {
    font-size: 0.825rem;
    color: #000000;
  }

  .recipe-facts-sub {
    padding: 0.25rem 0.4rem;
    background-color: #ffffff;
    font-size: 0.7rem;
    color: #333333;
  }

  /* Compact Panels */
  .panel,
  .panel--method,
  .panel--accent,
  .panel--tinted {
    padding: 0.625rem 0.75rem;
    background-color: #ffffff !important;
    border: 1px solid #cccccc;
  }

  .panel-header {
    padding-bottom: 0.35rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid #cccccc;
  }

  .panel-title,
  .panel-title--lg {
    font-size: 1.05rem;
    color: #000000;
  }

  .mt-md,
  .mt-lg,
  .mt-xl {
    margin-top: 0.4rem !important;
  }

  /* Compact Printable Ingredients with Hand-Tick Checkboxes */
  .ingredient-group {
    margin-top: 0.35rem;
  }

  .ingredient-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #000000;
    padding-bottom: 0.15rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #999999;
  }

  .ingredient-list {
    gap: 0;
  }

  .ingredient-item {
    border-bottom: 1px dotted #dddddd;
  }

  .ingredient-label {
    min-block-size: 0;
    padding-block: 0.2rem;
    gap: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .ingredient-checkbox {
    inline-size: 0.7rem;
    block-size: 0.7rem;
    border: 1px solid #444444;
    border-radius: 0;
  }

  /* Compact Method & Steps */
  .prose {
    gap: 0.4rem;
    font-size: 0.85rem;
    line-height: 1.42;
    color: #111111;
  }

  .prose h2,
  .prose h3 {
    font-size: 0.95rem;
    margin-top: 0.35rem;
    color: #000000;
  }

  .prose img {
    display: none;
  }

  .step-list {
    gap: 0.35rem;
    margin-top: 0.35rem;
  }

  .step-item {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid #dddddd;
    break-inside: avoid;
  }

  .step-item:first-child {
    padding-top: 0.15rem;
    border-top: 0;
  }

  .step-number {
    font-size: 1rem;
    line-height: 1.1;
    color: #000000;
  }

  .step-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #111111;
  }

  a {
    color: #000000;
    text-decoration: none;
  }
}
