/* ============================================================
   One-page printable deal sheet — light "paper" treatment.
   Hidden on screen; replaces the app when printing.
   ============================================================ */

#deal-sheet { display: none; }

@media print {
  @page { size: letter portrait; margin: 0; }

  html, body { background: #fff !important; }
  .app-header, .layout, #tweaks-root { display: none !important; }

  #deal-sheet {
    display: block;
    padding: 0.55in;
    color: #1C1813;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ds-num {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
  }

  /* Header */
  .ds-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 14px;
    border-bottom: 2.5px solid #1C1813;
  }
  .ds-wordmark .ds-the {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 4px;
    color: #6B6354;
    display: block;
  }
  .ds-wordmark .ds-name { font-size: 21px; letter-spacing: 0.5px; }
  .ds-wordmark .ds-name strong { font-weight: 700; }
  .ds-wordmark .ds-name span { font-weight: 300; color: #6B6354; letter-spacing: 1.5px; }
  .ds-doc { text-align: right; }
  .ds-doc-title {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
  }
  .ds-doc-date { font-size: 10.5px; color: #6B6354; margin-top: 2px; }

  /* Property line */
  .ds-property {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 14px 0 12px;
    border-bottom: 1px solid #D8D2C4;
  }
  .ds-address { display: flex; flex-direction: column; gap: 3px; }
  .ds-addr-street {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .ds-addr-locality {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6B6354;
  }
  .ds-addr-locality i { color: #B3402F; font-style: normal; margin: 0 1px; }
  .ds-specs {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 10.5px;
    color: #6B6354;
    white-space: nowrap;
  }

  /* Verdict strip */
  .ds-verdict {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 0;
    margin: 16px 0;
    border: 1.5px solid #1C1813;
  }
  .ds-stat { padding: 11px 14px 12px; border-left: 1px solid #D8D2C4; }
  .ds-stat:first-child { border-left: none; }
  .ds-stat-label {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #6B6354;
    margin-bottom: 3px;
  }
  .ds-stat-value {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
  }
  .ds-stat-value.small { font-size: 16px; }
  .ds-verdict-tag {
    display: inline-block;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 2px 0;
  }
  .ds-good { color: #2E7D4F; }
  .ds-warn { color: #9C6F1C; }
  .ds-bad  { color: #B3402F; }

  /* Two-column tables */
  .ds-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 16px;
  }
  .ds-col-title {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6B6354;
    border-bottom: 1.5px solid #1C1813;
    padding-bottom: 5px;
    margin-bottom: 2px;
  }
  .ds-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4.5px 0;
    border-bottom: 1px solid #E5E0D4;
    font-size: 11px;
  }
  .ds-row .ds-k { color: #4A443A; }
  .ds-row .ds-v {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .ds-row.ds-em { font-weight: 700; border-bottom: 1.5px solid #1C1813; }
  .ds-row.ds-em .ds-k { color: #1C1813; }
  .ds-row.ds-indent .ds-k { padding-left: 12px; color: #6B6354; }

  /* Gauge */
  .ds-gauge { margin: 4px 0 18px; }
  .ds-gauge-top {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #6B6354;
    margin-bottom: 5px;
  }
  .ds-gauge-bar-wrap {
    height: 8px;
    background: #EEEAE0;
    border: 1px solid #C9C2B2;
    border-radius: 99px;
    overflow: hidden;
  }
  .ds-gauge-bar { height: 100%; border-radius: 99px; background: #2E7D4F; }
  .ds-gauge-bar.over { background: #B3402F; }
  .ds-gauge-note {
    font-size: 10px;
    margin-top: 5px;
    font-family: "IBM Plex Mono", Consolas, monospace;
  }

  /* Footer */
  .ds-footer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #D8D2C4;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 8.5px;
    color: #8A8170;
    line-height: 1.5;
  }
}
