/* ==========================================================================
   PRINT STYLESHEET
   Drupal 11 - print.css
   ========================================================================== */

@media print {

  /* ==========================================================================
     RESET & GLOBAL
     ========================================================================== */

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

  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12pt;
    line-height: 1.5;
    margin: 0;
    padding: 0;
  }

  @page {
    margin: 1.5cm;
  }

  /* ==========================================================================
     HIDE NON-PRINTABLE ELEMENTS
     ========================================================================== */

  header,
  footer,
  nav,
  aside,
  .sidebar,
  .region-sidebar-first,
  .region-sidebar-second,
  .breadcrumb,
  .tabs,
  .toolbar,
  .toolbar-bar,
  .toolbar-menu,
  .messages,
  .alert,
  .cookie-banner,
  .cookie-consent,
  .search-form,
  .pager,
  .pagination,
  .share-buttons,
  .social-links,
  .social-media,
  .block-system-breadcrumb-block,
  .block-local-tasks-block,
  .block-local-actions-block,
  .region-header,
  .region-footer,
  .region-navigation,
  .region-highlighted,
  .region-secondary-menu,
  .comment-form,
  .node__links,
  .action-links,
  .contextual,
  .feed-icons,
  .ads,
  .advertisement,
  .video,
  .media-oembed-content,
  iframe,
  video,
  audio,
  button,
  .button,
  input,
  select,
  textarea {
    display: none !important;
  }

  /* ==========================================================================
     LAYOUT
     ========================================================================== */

  .layout-container,
  .dialog-off-canvas-main-canvas,
  .main-content,
  main,
  article,
  .node,
  .container,
  .content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #000 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    margin-top: 1.2em;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 20pt;
  }

  h3 {
    font-size: 16pt;
  }

  p,
  blockquote,
  ul,
  ol,
  dl,
  table {
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  /* ==========================================================================
     LINKS
     ========================================================================== */

  a,
  a:visited {
    color: #000 !important;
    text-decoration: underline;
  }

  /* Print URLs after links */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
    word-break: break-all;
  }

  /* Avoid useless anchors */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  /* ==========================================================================
     IMAGES & MEDIA
     ========================================================================== */

  img,
  svg {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  figure {
    page-break-inside: avoid;
  }

  /* ==========================================================================
     TABLES
     ========================================================================== */

  table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1em;
  }

  th,
  td {
    border: 1px solid #999 !important;
    padding: 6px !important;
    text-align: left;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
  }

  /* ==========================================================================
     CODE BLOCKS
     ========================================================================== */

  pre,
  code {
    border: 1px solid #ccc;
    background: #f5f5f5 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
  }

  pre {
    padding: 10px;
    overflow: visible;
  }

  /* ==========================================================================
     DRUPAL ADMIN
     ========================================================================== */

  body.toolbar-fixed {
    padding-top: 0 !important;
  }

  #toolbar-administration {
    display: none !important;
  }

  /* ==========================================================================
     PAGE BREAK HELPERS
     ========================================================================== */

  .page-break {
    page-break-before: always;
  }

  .avoid-break {
    page-break-inside: avoid;
  }

}