/* print.css — Chọn Mã UNSPSC print stylesheet
   Wikipedia-style printable articles. Loaded via media="print". */

@media print {
  /* ===== Hide non-content elements ===== */
  .site-header,
  .site-footer,
  .site-nav,
  .site-search,
  .article-toc,
  .article-infobox,
  .infobox,
  .feedback-section,
  .feedback-link,
  .cookie-banner,
  .banner,
  .copy-btn,
  .pagination,
  .home-hero form,
  .search-form-large,
  nav.breadcrumb {
    display: none !important;
  }

  /* ===== Page setup ===== */
  @page {
    margin: 2cm;
    size: A4;
  }

  /* ===== Body & text ===== */
  body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  h1 { font-size: 20pt; margin-top: 0; }
  h2 { font-size: 15pt; border-bottom: 1px solid #999; }
  h3 { font-size: 13pt; }

  /* ===== Show URLs next to links ===== */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #444;
    word-break: break-all;
  }

  /* Skip URL display for anchor links and javascript: */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* ===== Layout: single column ===== */
  .article-layout {
    display: block;
  }

  .article-body {
    max-width: 100%;
  }

  #main-content {
    max-width: 100%;
    padding: 0;
  }

  /* ===== Tables ===== */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
  }
  th, td {
    border: 1px solid #999;
    padding: 4pt 6pt;
    font-size: 10pt;
  }
  th { background: #eee !important; }

  /* ===== Code blocks ===== */
  pre, code {
    font-family: "Courier New", Courier, monospace;
    font-size: 9pt;
    background: #f5f5f5;
    border: 1px solid #ccc;
  }

  pre {
    padding: 8pt;
    white-space: pre-wrap;
    word-wrap: break-word;
    page-break-inside: avoid;
  }

  /* ===== Page breaks ===== */
  h1, h2, h3 { page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }

  /* ===== Article footer in print ===== */
  .article-footer {
    border-top: 1px solid #999;
    padding-top: 8pt;
    font-size: 9pt;
    color: #444;
    display: block;
  }

  /* ===== Breadcrumb (keep for context) ===== */
  .breadcrumb {
    display: block;
    font-size: 9pt;
    color: #444;
    margin-bottom: 12pt;
  }
  .breadcrumb ol {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .breadcrumb li { display: inline; }
  .breadcrumb li + li::before { content: " › "; }
  .breadcrumb a::after { content: ""; } /* suppress URL display in breadcrumb */

  /* ===== Badges ===== */
  .badge { border: 1px solid #999; background: none; }

  /* ===== FAQ ===== */
  .article-faq dt { font-weight: bold; margin-top: 8pt; }
  .article-faq dd { margin-left: 16pt; }

  /* ===== Blockquotes ===== */
  blockquote {
    border-left: 2pt solid #999;
    padding-left: 8pt;
    color: #444;
    background: none;
  }
}
