/* Print layout for US Letter. The footer sentence matches FOOTER in src/case.mjs. */

.print-only { display: none; }
.source-url, .hash { overflow-wrap: anywhere; }

@media print {
  @page {
    size: letter;
    margin: 0.7in 0.7in 0.95in;
    @bottom-left {
      content: "Prepared for review by an Illinois-licensed attorney. Not an appraisal and not legal advice. Figures are from Cook County public data as of the dates shown.";
      font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
      font-size: 7.5pt;
      color: #5f6876;
      vertical-align: top;
      padding-top: 10pt;
    }
    @bottom-right {
      content: counter(page);
      font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
      font-size: 8.5pt;
      color: #1a1d23;
      vertical-align: top;
      padding-top: 10pt;
    }
  }

  html, body {
    display: block !important;
    background: #fff !important;
    color: #1a1d23;
    font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .app, .surface, .case, .sheet-stack {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }

  .no-print, .nav, .topbar, .rail, .dock-wrap, .toasts, .landing, .skip, dialog {
    display: none !important;
  }

  .sheet { display: none !important; }
  .print-only { display: block !important; }
  #print-document { display: block !important; }

  #print-document .print-section + .print-section { break-before: page; page-break-before: always; }
  #print-document tr,
  #print-document li,
  tr,
  li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #print-document h2,
  #print-document h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
  #print-document thead { display: table-header-group; }
  #print-document table {
    width: 100%;
    margin: 6pt 0 10pt;
    border-collapse: collapse;
    font-size: 9pt;
    font-variant-numeric: tabular-nums;
  }
  #print-document th, #print-document td {
    text-align: left;
    padding: 4pt 6pt 4pt 0;
    border-bottom: 0.75pt solid #e2e5ea;
    vertical-align: top;
  }
  #print-document thead th {
    color: #5f6876;
    font-size: 8pt;
    font-weight: 500;
    border-bottom: 1pt solid #1a1d23;
  }
  #print-document td + td,
  #print-document th + th {
    text-align: right;
  }
  #print-comps td:nth-child(3),
  #print-comps th:nth-child(3),
  #print-worksheet table:first-of-type tbody td:nth-child(2),
  #print-worksheet table:first-of-type thead th:nth-child(2) {
    text-align: left;
  }
  #print-document h2 {
    margin: 0 0 6pt;
    padding-bottom: 4pt;
    border-bottom: 2pt solid #2b4fb4;
    font-size: 15pt;
    line-height: 1.25;
    font-weight: 600;
  }
  #print-document h2 + h2,
  #print-document table + h2,
  #print-document p + h2 {
    margin-top: 16pt;
  }
  #print-document p {
    margin: 0 0 5pt;
    max-width: 6.6in;
  }
  #print-document .quiet {
    color: #5f6876;
    font-size: 8.5pt;
  }
  #print-document ul {
    margin: 6pt 0 0;
    padding: 0;
    list-style: none;
  }
  #print-document li {
    padding: 4pt 0;
    border-bottom: 0.75pt solid #e2e5ea;
    font-size: 9pt;
  }
  #print-document li span {
    display: block;
  }
  #print-document .hash,
  #print-document .source-url {
    color: #5f6876;
    font-size: 8pt;
  }

  #print-cover {
    padding-top: 1.4in;
  }
  #print-cover h2 {
    font-size: 26pt;
    border-bottom-width: 3pt;
    padding-bottom: 8pt;
    margin-bottom: 14pt;
  }
  #print-cover .cover-pin {
    font-size: 20pt;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
  #print-cover .cover-address {
    margin-bottom: 2pt;
    font-size: 13pt;
    font-weight: 500;
  }
  #print-cover > p:nth-of-type(1) {
    margin-top: 18pt;
  }

  a { color: inherit; text-decoration: none; }
  /* The page footer carries the disclaimer on every page. It also closes the
     document once, so a browser without page margin boxes still prints it. */
  .foot {
    display: none !important;
  }
  #print-document::after {
    content: "Prepared for review by an Illinois-licensed attorney. Not an appraisal and not legal advice. Figures are from Cook County public data as of the dates shown.";
    display: block;
    margin-top: 18pt;
    padding-top: 8pt;
    border-top: 0.75pt solid #e2e5ea;
    color: #5f6876;
    font-size: 8pt;
  }
  #print-document table.stamps {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #print-document table.stamps td,
  #print-document table.stamps th {
    font-size: 8pt;
    text-align: left;
  }
  #print-document h3 {
    margin: 14pt 0 4pt;
    font-size: 11pt;
    font-weight: 600;
  }
}
