/* Loaded only by the existing public profile templates, only for print. */
@page {
  size: A4;
  margin: 14mm;
}

@media print {
  html, body.public-profile-document {
    height: auto !important;
    min-height: 0 !important;
    background: white !important;
  }

  body.public-profile-document {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.5;
    --color-text-secondary: #444;
    --color-text-muted: #555;
  }

  body.public-profile-document > :not(#main-content) {
    display: none !important;
  }

  .public-profile-document #main-content,
  .public-profile-document [data-public-profile-root],
  .public-profile-document .blogger-profile-layout,
  .public-profile-document .blogger-profile-content {
    display: block !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .public-profile-document .public-profile-print-header {
    display: block !important;
    margin-bottom: 6mm;
    font-size: 9pt;
    overflow-wrap: anywhere;
  }

  .public-profile-document .advertisement-detail-breadcrumbs,
  .public-profile-document .blogger-profile-author__actions,
  .public-profile-document .blogger-profile-author__name,
  .public-profile-document .blogger-profile-sections,
  .public-profile-document .blogger-profile-links,
  .public-profile-document .blogger-profile-pagination a,
  .public-profile-document .catalog-card__favorite,
  .public-profile-document .catalog-card__author,
  .public-profile-document .company-profile-case a,
  .public-profile-document [data-public-profile-root] form,
  .public-profile-document [data-public-profile-root] button,
  .public-profile-document [data-public-profile-root] details {
    display: none !important;
  }

  .public-profile-document .blogger-profile-intro,
  .public-profile-document .blogger-profile-author,
  .public-profile-document .blogger-profile-section,
  .public-profile-document .blogger-profile-advertisements,
  .public-profile-document .catalog-card,
  .public-profile-document .company-profile-case,
  .public-profile-document .blogger-profile-channel {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 5mm !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    break-inside: auto;
    overflow-wrap: anywhere;
  }

  .public-profile-document .blogger-profile-author {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 6mm;
    break-inside: avoid;
  }

  .public-profile-document .blogger-profile-author__portrait {
    order: -1;
    margin: 0 !important;
    break-inside: avoid;
  }

  .public-profile-document .blogger-profile-author__avatar {
    width: 28mm !important;
    height: 28mm !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .public-profile-document img {
    max-width: 100% !important;
    max-height: 60mm;
    object-fit: contain;
    break-inside: avoid;
  }

  .public-profile-document .blogger-profile-channel {
    break-inside: avoid;
  }

  .public-profile-document .blogger-profile-section__intro {
    break-after: avoid;
  }

  .public-profile-document .blogger-profile-channel-grid,
  .public-profile-document .company-profile-cases,
  .public-profile-document .blogger-profile-advertisements__list,
  .public-profile-document .catalog-card__body {
    display: block !important;
  }

  .public-profile-document h1 {
    font-size: 22pt !important;
    line-height: 1.2 !important;
  }

  .public-profile-document h2 {
    font-size: 15pt !important;
  }

  .public-profile-document h3 {
    font-size: 12pt !important;
  }

  .public-profile-document h1,
  .public-profile-document h2,
  .public-profile-document h3 {
    margin: 0 0 3mm !important;
    break-after: avoid;
    overflow-wrap: anywhere;
  }

  .public-profile-document p,
  .public-profile-document dl,
  .public-profile-document li {
    orphans: 3;
    widows: 3;
    overflow-wrap: anywhere;
  }

  .public-profile-document .catalog-card__description,
  .public-profile-document .blogger-profile-copy,
  .public-profile-document .company-profile-case p {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }

  .public-profile-document a {
    color: inherit !important;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .public-profile-document a::after {
    content: none !important;
  }
}
