/* ==========================================================================
   FAÇADE by Sara Bensalem - Curatorial Exhibition Dossier Print Stylesheet
   Calibrated for ISO A4 (210 x 297 mm) and North American Letter.
   Strictly Zero Em Dashes (unicode 8212). Two-page bounded format.
   ========================================================================== */

@page {
  size: A4 portrait;
  margin: 12mm 14mm 12mm 14mm;
}

@page :first {
  margin-top: 10mm;
}

:root {
  --dossier-max-height: 273mm;
  --print-ink: #111111;
  --print-sub: #555555;
  --print-hairline: #D0D0D0;
  --print-brass: #9E7D3B;
  --print-bg: #FFFFFF;
}

body {
  background: var(--print-bg);
  color: var(--print-ink);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* --------------------------------------------------------------------------
   Dossier Page Containers (Strictly 2 Pages)
   -------------------------------------------------------------------------- */
.dossier-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 210mm;
  min-height: 273mm;
  max-height: 273mm;
  margin: 0 auto;
  padding: 10mm 12mm;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.dossier-page:first-child {
  page-break-after: always;
  break-after: page;
}

.dossier-page:last-child {
  page-break-after: avoid;
  break-after: avoid;
}

/* --------------------------------------------------------------------------
   Header Block
   -------------------------------------------------------------------------- */
.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #000000;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.dossier-brand-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28pt;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1;
}

.dossier-brand-artist {
  font-size: 10pt;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--print-brass);
}

.dossier-meta-stamp {
  font-family: 'Geist Mono', monospace;
  font-size: 8pt;
  color: var(--print-sub);
  text-align: right;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Curatorial Statement & Tectonic Scope
   -------------------------------------------------------------------------- */
.statement-lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 11pt;
  line-height: 1.5;
  color: #222222;
  margin-bottom: 14px;
}

.statement-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 8.5pt;
  line-height: 1.55;
  color: #333333;
  margin-bottom: 18px;
  text-align: justify;
}

/* --------------------------------------------------------------------------
   Plates Overview Grid (Page 1 Showcase)
   -------------------------------------------------------------------------- */
.plates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.plate-thumb-card {
  border: 1px solid var(--print-hairline);
  padding: 4px;
  background: #fafafa;
  text-align: center;
}

.plate-thumb-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.plate-thumb-num {
  font-family: 'Geist Mono', monospace;
  font-size: 7pt;
  font-weight: 600;
  margin-top: 4px;
}

.plate-thumb-city {
  font-size: 7pt;
  color: var(--print-sub);
}

/* --------------------------------------------------------------------------
   Catalogue Raisonné Table (Page 2 Specifications)
   -------------------------------------------------------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8pt;
  margin-bottom: 16px;
}

.spec-table th {
  border-bottom: 1.5px solid #000000;
  text-align: left;
  padding: 6px 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 7pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f4f4f4;
}

.spec-table td {
  border-bottom: 1px solid var(--print-hairline);
  padding: 7px 8px;
  vertical-align: top;
  line-height: 1.4;
}

.spec-piece-num {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
}

.spec-geo {
  font-family: 'Geist Mono', monospace;
  font-size: 6.5pt;
  color: var(--print-sub);
}

.spec-price {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Framing and Certificate of Authenticity Section
   -------------------------------------------------------------------------- */
.dossier-section-title {
  font-family: 'Geist Mono', monospace;
  font-size: 8.5pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #000;
  padding-bottom: 4px;
  margin: 14px 0 8px 0;
}

.specs-callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  font-size: 8pt;
  line-height: 1.45;
  margin-bottom: 14px;
}

.callout-box {
  border: 1px solid var(--print-hairline);
  padding: 8px;
  background: #fafafa;
}

.callout-label {
  font-family: 'Geist Mono', monospace;
  font-size: 6.5pt;
  color: var(--print-sub);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.callout-val {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Acquisition Terms & Direct Studio Contact
   -------------------------------------------------------------------------- */
.dossier-footer {
  position: absolute;
  bottom: 8mm;
  left: 12mm;
  right: 12mm;
  border-top: 1px solid var(--print-hairline);
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5pt;
  color: var(--print-sub);
}

.dossier-footer-page {
  font-family: 'Geist Mono', monospace;
}

/* --------------------------------------------------------------------------
   Interactive Toolbar & Print Controls
   -------------------------------------------------------------------------- */
.print-toolbar {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.print-btn {
  background: #c5a059;
  color: #000;
  border: none;
  font-family: 'Geist Mono', monospace;
  font-size: 8pt;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.print-btn:hover {
  background: #dfb970;
}

.back-link {
  color: #fff;
  font-family: 'Geist Mono', monospace;
  font-size: 8pt;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   @media print Rules (Hides interactive UI and enforces strict pagination)
   -------------------------------------------------------------------------- */
@media print {
  .print-toolbar,
  nav,
  button,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff !important;
  }

  .dossier-page {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 273mm !important;
    height: 100% !important;
  }
}
