/**
 * Profile print / PDF one-pager (#2554)
 * Linked on profile pages; only affects print media — screen unchanged.
 */

/* Screen: modest print control near share row */
.pb-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #222;
  text-decoration: none;
}
.pb-print-btn:hover,
.pb-print-btn:focus-visible {
  border-color: #222;
  outline: none;
}

.pb-print-only {
  display: none;
}

@media print {
  /* Hide global chrome */
  header,
  footer,
  nav,
  .header,
  .footer,
  #top,
  #menu,
  .navbar,
  .pb-profile-tabs,
  .pb-profile-sticky-cta,
  .pb-sticky-aside,
  .pb-print-btn,
  .pb-share-row,
  [data-pb-no-print],
  .pb-ai-card,
  #report-modal,
  .pb-report-modal,
  .pb-similar,
  .pb-tools-rail,
  .pb-lead-form,
  .pb-claim-box,
  .pb-profile-crumbs,
  .pb-profile-actions,
  button:not(.pb-print-keep),
  .cookie,
  .alert {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  .pb-profile {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .pb-print-only {
    display: block !important;
    margin-bottom: 12pt;
    padding-bottom: 8pt;
    border-bottom: 1pt solid #ccc;
    font-size: 9pt;
    color: #444;
  }
  .pb-print-only strong {
    color: #000;
  }

  .pb-profile-hero {
    display: block !important;
    box-shadow: none !important;
    border: 1pt solid #ddd !important;
    page-break-inside: avoid;
  }

  .pb-profile-avatar {
    width: 72pt !important;
    height: 72pt !important;
    float: left;
    margin-right: 12pt;
  }

  .pb-profile-grid {
    display: block !important;
  }

  .pb-profile-card {
    box-shadow: none !important;
    border: 1pt solid #eee !important;
    page-break-inside: avoid;
    margin-bottom: 10pt;
  }

  .pb-profile-stats {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Cap listings to visual density — still in DOM */
  .pb-listing-grid .pb-listing-card:nth-child(n + 4) {
    display: none !important;
  }

  .pb-listing-photo {
    max-height: 80pt;
  }

  a[href]::after {
    content: none !important;
  }

  .pb-profile-hero h1 {
    font-size: 18pt !important;
  }

  @page {
    margin: 12mm;
  }
}
