/* SPDX-License-Identifier: GPL-3.0-or-later
   Copyright 2026 miculpionier (https://miculpionier.ro) */
/* Print: the Acts and long pages print as plain documents on A4 paper. */
@page {
  size: A4;
  margin: 18mm 16mm 20mm;
}

@media print {
  :root {
    --text: #000;
    --text-2: #333;
    --bg: #fff;
    --surface: #fff;
    --border: #999;
    --accent: #1b6b3a;
    --link: #000;
  }
  body {
    font-size: 10.5pt;
    line-height: 1.45;
    background: #fff;
    color: #000;
  }
  .skip,
  .notice-strip,
  .main-nav,
  .tools,
  .crumbs,
  .toc,
  .to-top,
  .site-footer .footer-grid,
  .page-meta .tool-btn,
  .search-dialog,
  .figure details,
  .btn-row,
  .menu-btn {
    display: none !important;
  }
  .site-header {
    border: 0;
  }
  .header-bar {
    padding-block: 0 4mm;
    border-bottom: 1pt solid #000;
  }
  .has-toc .page-grid {
    grid-template-columns: 1fr;
  }
  .content {
    max-width: none;
  }
  .page-body,
  .page-head {
    padding-block: 4mm;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #333;
    overflow-wrap: anywhere;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  .figure,
  .callout,
  .facts > li,
  .card,
  .chart-box,
  tr,
  .law .sec > h3,
  .kv dt {
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  tfoot {
    display: table-row-group;
  }
  .table-wrap {
    overflow: visible;
  }
  caption,
  .figure figcaption,
  .kv dt {
    break-after: avoid;
  }
  .figure,
  .page-body,
  .page-head {
    padding-block: 2mm;
  }
  .chart-box {
    height: 75mm !important;
  }
  .site-footer {
    background: #fff;
    color: #000;
    padding: 4mm 0 0;
    border-top: 1pt solid #000;
  }
  .site-footer a {
    color: #000;
  }
  .footer-legal {
    border: 0;
    color: #333;
    margin: 0;
    padding: 0;
  }
  .law :target {
    background: none;
    outline: 0;
  }
}
