/* Версия для печати (/print/) */
.print-body { font-family: 'PT Serif', Georgia, serif; font-size: 19px; line-height: 1.65; color: #000; margin: 0; padding: 0; }

/* Оглавление */
.print-header { margin-bottom: 70px; }
.print-toc { max-width: 900px; margin: 0 auto; padding: 0 20px 40px; list-style: none; }
.print-toc li { font-size: 17px; line-height: 1.4; padding: 3px 0; }
.print-toc--num { display: inline-block; min-width: 40px; text-align: right; margin-right: 8px; color: #999; font-weight: 300; }
.print-toc--date { display: inline-block; min-width: 150px; color: #555; font-weight: 300; }
.print-toc--total { max-width: 900px; margin: 0 auto; padding: 0 20px 40px; color: #555; font-weight: 300; }
.print-toc a { color: #1c5a3f; text-decoration: none; }
.print-toc a:hover { text-decoration: underline; }

/* Шапка над постом: оригинальная шапка 1200px, уменьшена до ширины текста (860px) */
.print-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-header--post { width: 1200px; zoom: 0.7167; margin: 0 auto 70px; }

/* Публикация */
.print-post { max-width: 860px; margin: 0 auto; padding: 24px; }
.print-post--title { font-size: 36px; line-height: 1.2; font-weight: 700; margin: 0 0 28px; color: #741a19; }
.print-post--date { font-size: 18px; font-weight: 400; color: #666; white-space: nowrap; }

/* Единый крупный читаемый шрифт: перебиваем inline-стили старого редактора (Arial 10-14pt) */
.print-post .ptz--typo-0 { font-size: 19px; line-height: 1.65; color: #222; }
.print-post .ptz--typo-0 *:not(img):not(sup):not(sub):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-family: 'PT Serif', Georgia, serif !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.print-post .ptz--typo-0 p { font-size: 19px !important; line-height: 1.65 !important; color: #222; margin: 0 0 14px; }
.print-post .ptz--typo-0 sup, .print-post .ptz--typo-0 sub { font-size: 70% !important; }
.print-post .ptz--typo-0 h1, .print-post .ptz--typo-0 h2, .print-post .ptz--typo-0 h3,
.print-post .ptz--typo-0 h4, .print-post .ptz--typo-0 h5, .print-post .ptz--typo-0 h6 {
  font-family: 'PT Serif', Georgia, serif !important; font-weight: 700; background: none; padding: 0; margin: 26px 0 12px; line-height: 1.3;
}
.print-post .ptz--typo-0 h1 { font-size: 30px; } .print-post .ptz--typo-0 h2 { font-size: 26px; }
.print-post .ptz--typo-0 h3 { font-size: 23px; } .print-post .ptz--typo-0 h4 { font-size: 21px; }
.print-post .ptz--typo-0 h5, .print-post .ptz--typo-0 h6 { font-size: 19px; }
.print-post .ptz--typo-0 a { color: #1c5a3f; }
.print-post .ptz--typo-0 table { max-width: 100%; }

/* Фотографии: отдельный блок по центру, текст всегда выше или ниже (классы ставит скрипт в print_base) */
.print-post img.pi {
  display: block; float: none !important; margin: 22px auto !important;
  max-width: 100%; height: auto !important; max-height: 245mm; width: auto; object-fit: contain;
  page-break-inside: avoid;
}
.print-post img.pi-wide { width: 100%; }
.print-post a:has(> img.pi) { display: block; }

/* Подвал с контактами (в конце каждой публикации) */
.print-footer {
  position: relative; max-width: 860px; margin: 50px auto 30px; padding: 0 24px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; page-break-inside: avoid;
}
.print-footer--line { height: 8px; background: #62b59e; border-radius: 4px 4px 0 0; }
.print-footer--body {
  background: url(/eastflower.ru/desks_bg.jpg); border: 1px solid #d5d5d5; border-top: 0; border-radius: 0 0 12px 12px;
  padding: 22px 230px 24px 28px; min-height: 130px;
}
.print-footer--name { font-size: 28px; font-weight: 700; color: #741a19; line-height: 1.2; }
.print-footer--name span { font-size: 18px; font-weight: 400; color: #666; }
.print-footer--text { font-size: 19px; color: #363636; margin: 8px 0 14px; line-height: 1.4; }
.print-footer--item { font-size: 17px; color: #363636; line-height: 1.6; }
.print-footer--label { display: inline-block; min-width: 140px; font-size: 14px; color: #741a19; text-transform: uppercase; letter-spacing: .04em; }
.print-footer a { color: #1e6548; text-decoration: none; font-weight: 700; }
.print-footer--flowers { position: absolute; right: 50px; bottom: 1px; width: 200px; height: 65px; background: url(/eastflower.ru/flower_bottom_right.png) no-repeat; }

/* Комментарии */
.print-comments { margin-top: 30px; border-top: 1px solid #ccc; padding-top: 10px; }
.print-comments--title { font-size: 24px; font-weight: 700; font-weight: 400; margin: 0 0 15px; }
.print-comment { border-left: 3px solid #ddd; padding: 4px 0 4px 10px; margin-bottom: 10px; page-break-inside: avoid; }
.print-comment--head { font-size: 14px; color: #777; margin-bottom: 3px; }
.print-comment--head b { color: #000; font-size: 16px; }
.print-comment--body { font-size: 16px; line-height: 1.55; }
.print-comment--body img { max-width: 100%; height: auto; }

@media print {
  /* Повёрнутые тени плашки меню в PDF превращаются в чёрные полосы - заменяем простой тенью */
  .print-header .app-header--sub-header:before,
  .print-header .app-header--sub-header:after { display: none; }
  .print-header .app-header--sub-header { box-shadow: 0 4px 6px rgba(0,0,0,.22); }
  .print-header--post { zoom: 0.56; margin-bottom: 60px; }
  .print-post .ptz--typo-0, .print-post .ptz--typo-0 p { font-size: 13pt !important; }
  .print-post--title { font-size: 26pt; }
  .print-post img.pi { max-height: 215mm; }
  .print-toc a { color: #000; }
  .print-post { padding: 0; max-width: none; }
  .print-post img { page-break-inside: avoid; }
  h1, h2 { page-break-after: avoid; }
  @page { margin: 15mm; }
}
