/* All sheet typography is scoped: browsing and annotations keep their own UI. */
.record-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 210mm;
  margin: 0 auto;
  padding: 14mm;
  background: white;
  color: #20271d;
  font:
    10pt/1.48 Arial,
    Helvetica,
    sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}
.record-sheet * {
  box-sizing: border-box;
}
.record-sheet p {
  margin: 0 0 3mm;
  color: inherit;
  font: inherit;
}
.record-sheet a {
  color: #34512b;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.sheet-header {
  display: table;
  width: 100%;
  padding-bottom: 4mm;
  border-bottom: 1px solid #8c9a82;
}
.sheet-brand {
  display: table-cell;
  font:
    bold 18pt Georgia,
    serif;
}
.sheet-brand span {
  font:
    8pt Arial,
    sans-serif;
  letter-spacing: 1.5px;
  margin-left: 3mm;
}
.sheet-document {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  font-size: 7pt;
  letter-spacing: 1.5px;
  color: #65725c;
}
.record-sheet .sheet-source {
  margin: 6mm 0 2mm;
  font-size: 9pt;
  color: #526847;
}
.record-sheet h1 {
  margin: 0 0 6mm;
  font:
    22pt/1.15 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.3px;
  color: #20271d;
}
.sheet-lead {
  display: table;
  table-layout: fixed;
  width: 100%;
  break-inside: avoid;
}
.sheet-lead-photo {
  display: table-cell;
  vertical-align: top;
  width: 57%;
  padding-right: 6mm;
}
.sheet-lead-facts {
  display: table-cell;
  vertical-align: top;
}
.sheet-photo {
  margin: 0;
  break-inside: avoid;
}
.sheet-photo img {
  display: block;
  width: 100%;
  height: 62mm;
  object-fit: contain;
  background: #f6f6f0;
}
.sheet-photo figcaption {
  margin-top: 2mm;
  font-size: 7pt;
  line-height: 1.4;
  color: #65725c;
}
.sheet-price {
  font:
    22pt Georgia,
    "Times New Roman",
    serif;
  margin-bottom: 2mm;
}
.record-sheet .sheet-price-context {
  font-size: 8pt;
  color: #65725c;
}
.sheet-facts {
  margin: 4mm 0 0;
}
.sheet-facts dt {
  font-size: 7pt;
  color: #65725c;
  margin-top: 2mm;
}
.sheet-facts dd {
  margin: 0;
  font-size: 9pt;
}
.record-sheet .sheet-notice {
  margin: 5mm 0;
  padding: 3mm;
  font-size: 8pt;
  background: #eef1e8;
  border-left: 2px solid #8c9a82;
}
.sheet-section {
  margin-top: 5mm;
}
.record-sheet h2 {
  margin: 0 0 3mm;
  padding-top: 3mm;
  border-top: 1px solid #d8dfd2;
  font:
    bold 8pt Arial,
    sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  break-after: avoid;
}
.sheet-preserve {
  white-space: pre-wrap;
}
.record-sheet blockquote {
  margin: 2mm 0 3mm;
  padding: 2mm 3mm;
  border-left: 2px solid #8c9a82;
  background: #f6f7f1;
  font: inherit;
}
.record-sheet .sheet-small {
  font-size: 8pt;
  color: #65725c;
}
.sheet-provenance,
.sheet-attributes {
  margin: 0;
}
.sheet-provenance dt,
.sheet-attributes dt {
  float: left;
  clear: left;
  width: 29mm;
  margin: 0;
  color: #65725c;
  font-size: 8pt;
}
.sheet-provenance dd,
.sheet-attributes dd {
  margin: 0 0 2mm 32mm;
  min-height: 4mm;
  font-size: 8pt;
  overflow-wrap: anywhere;
}
.record-sheet .sheet-code {
  font-family: "Courier New", monospace;
  font-size: 7pt;
}
.sheet-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
}
.sheet-photo-grid .sheet-photo img {
  height: 53mm;
}
.sheet-footer {
  margin-top: 6mm;
  padding-top: 3mm;
  border-top: 1px solid #8c9a82;
  font-size: 7pt;
  color: #65725c;
}
.record-print-export {
  margin: 0;
  padding: 6mm;
  background: #e9e9e1;
}
#record-print-root {
  display: none;
}
@media screen and (max-width: 650px) {
  .record-sheet {
    padding: 20px;
    font-size: 12px;
  }
  .record-sheet h1 {
    font-size: 24px;
  }
  .sheet-header,
  .sheet-brand,
  .sheet-document {
    display: block;
    text-align: left;
  }
  .sheet-document {
    margin-top: 8px;
  }
  .sheet-lead,
  .sheet-lead-photo,
  .sheet-lead-facts {
    display: block;
    width: 100%;
    padding: 0;
  }
  .sheet-lead-photo {
    margin-bottom: 20px;
  }
  .sheet-photo img {
    height: 190px;
  }
  .sheet-photo-grid {
    grid-template-columns: 1fr;
  }
}
@page {
  size: A4;
  margin: 14mm;
  @bottom-left {
    content: "COLLECTOR ARCHIVE / UNREVIEWED SOURCE RECORD";
    font:
      6pt Arial,
      sans-serif;
    color: #65725c;
  }
  @bottom-right {
    content: counter(page) " / " counter(pages);
    font:
      7pt Arial,
      sans-serif;
    color: #65725c;
  }
}
@media print {
  .record-print-export {
    padding: 0;
    margin: 0;
    background: white;
  }
  .record-sheet {
    padding: 0;
    max-width: none;
    box-shadow: none;
    border: 0;
    print-color-adjust: exact;
  }
  .record-sheet p {
    orphans: 3;
    widows: 3;
  }
  .sheet-personal {
    break-inside: auto;
  }
  .sheet-provenance,
  .sheet-attributes {
    break-inside: auto;
  }
  body[data-record-print] {
    margin: 0;
    padding: 0;
    overflow: visible;
    background: white;
  }
  body[data-record-print] > :not(#record-print-root) {
    display: none !important;
  }
  body[data-record-print] #record-print-root {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: white !important;
  }
  body[data-record-print] dialog::backdrop {
    display: none !important;
  }
}
