/* Citerank, report typography for printed and downloaded client reports.
 *
 * The client report, hub report and shared report are web pages that double as
 * the document a client keeps. Their own print blocks handle layout; this gives
 * them the same type, tables and page footer as every other Citerank report
 * (_report-doc.js), so a customer's PDFs read as one product. Load it last,
 * media="print". */
@media print {
  html, body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
    color: #111827;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body { font-size: 10pt; line-height: 1.5; background: #fff !important; }
  h1 { font-size: 22pt; line-height: 1.15; letter-spacing: -0.02em; color: #111827 !important; }
  h2 { font-size: 13pt; color: #111827 !important; break-after: avoid; page-break-after: avoid; }
  h3 { font-size: 11pt; color: #111827 !important; break-after: avoid; page-break-after: avoid; }
  table { width: 100% !important; border-collapse: collapse; font-size: 9pt; }
  thead { display: table-header-group; }
  th {
    text-align: left;
    font-size: 7.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4b5563 !important;
    border-bottom: 1.5px solid #111827 !important;
    padding: 6px;
  }
  td { border-bottom: 1px solid #e5e7eb; padding: 7px 6px; vertical-align: top; overflow-wrap: anywhere; }
  tr, img, svg, canvas { break-inside: avoid; page-break-inside: avoid; }
  img, svg, canvas { max-width: 100% !important; }
  a { color: #1f2937 !important; text-decoration: none !important; }
  /* Screen controls that float over the page. */
  #cr-theme-toggle, #cr-chat-root, .cr-chat-widget, .no-print { display: none !important; }

  @page {
    size: auto;
    margin: 16mm 14mm 18mm;
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8pt/1 Inter, Arial, sans-serif; color: #6b7280; }
  }
}
