/**
 * Craftique Print Stylesheet
 * Dedicated printer-friendly formatting for crochet & craft patterns
 */

@media print {
  /* Hide non-printable elements */
  .cq-site-header,
  .cq-mobile-drawer,
  .cq-share-bar,
  .cq-post-nav,
  .cq-related-section,
  .cq-site-footer,
  .cq-search-toggle,
  .comments-area,
  .screen-reader-text,
  .cq-materials-hint,
  .bp-hero-form,
  #respond {
    display: none !important;
  }

  /* Reset layout for paper */
  body, html {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  .cq-container,
  .cq-container-narrow,
  .cq-entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .cq-single-article {
    padding: 0 !important;
  }

  /* Header adjustments */
  .cq-article-title {
    font-size: 22pt !important;
    color: #000 !important;
    margin-bottom: 8pt !important;
  }

  .cq-article-category {
    border: 1px solid #999 !important;
    color: #333 !important;
    background: #f9f9f9 !important;
    padding: 2pt 8pt !important;
  }

  /* Pattern Specs Card */
  .cq-pattern-card {
    border: 1.5pt solid #333 !important;
    padding: 12pt !important;
    margin: 14pt 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .cq-specs-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8pt !important;
  }

  .cq-spec-item {
    background: #f9f9f9 !important;
    border: 0.5pt solid #ccc !important;
    padding: 6pt !important;
  }

  .cq-spec-label {
    color: #333 !important;
    font-size: 8pt !important;
  }

  .cq-spec-val {
    color: #000 !important;
    font-size: 10pt !important;
  }

  /* Materials & Checklist */
  .cq-materials-box {
    border: 1pt solid #ccc !important;
    background: #fff !important;
    padding: 10pt !important;
    page-break-inside: avoid;
  }

  .cq-checklist li {
    padding: 4pt 0 4pt 20pt !important;
  }

  .cq-checklist li::before {
    border: 1pt solid #000 !important;
    width: 12pt !important;
    height: 12pt !important;
    top: 4pt !important;
  }

  /* Tables */
  .cq-abbrevs-table {
    border: 1pt solid #999 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .cq-abbrevs-table th {
    background-color: #eee !important;
    color: #000 !important;
    border-bottom: 1pt solid #000 !important;
  }

  .cq-abbrevs-table td {
    border-bottom: 0.5pt solid #ccc !important;
  }

  /* Links */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }

  /* Images */
  img {
    max-width: 70% !important;
    margin: 10pt auto !important;
    page-break-inside: avoid;
  }

  /* Page break rules */
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  .cq-round-item {
    page-break-inside: avoid;
    border-left: 2pt solid #000 !important;
  }
}
