/**
 * Print / PDF styling for entity_print (the "pdf" view mode).
 *
 * Loaded through the theme's "entity_print" info key, on its own: none of the
 * site's global CSS reaches this page. dompdf supports a limited subset of
 * CSS, so this stays plain (no custom properties, grid or flex).
 */

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

body {
  color: #1d2939;
  font-size: 0.75rem;
  line-height: 1.5;
}

h1,
h2 {
  line-height: 1.25;
}

a {
  color: #0b5394;
}

.field {
  margin-bottom: 0.875rem;
  page-break-inside: avoid;
}

.field__label,
.item-list h3 {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: bold;
}

.field__item + .field__item {
  margin-top: 0.25rem;
}

/* Long rich-text and long tables may split across pages. */
.field--name-body,
.field--type-entity-reference-revisions {
  page-break-inside: auto;
}

.field--name-field-images .field__item {
  display: inline-block;
  width: 48%;
  margin: 0 1% 0.5rem 0;
  vertical-align: top;
}

.page table {
  width: 100%;
  border-collapse: collapse;
}

.page th,
.page td {
  padding: 0.25rem 0.375rem;
  border: 1px solid #d0d5dd;
  text-align: left;
  vertical-align: top;
}

.page th {
  background: #f2f4f7;
}

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

@media print {
  .page {
    padding: 0;
  }
}
