/* ЛИСТЫ ДЛЯ ПЕЧАТИ ИЗ СПРАВОЧНИКА (2026-10-01, deploy/build_print.py).
   На экране — лист бумаги на странице сайта; при печати — только лист,
   одна страница US Letter. Цвета при печати — чёрный по белому: лист
   ксерокопируют, и цветной фон превращается в серую кашу. */
.pr-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 10px 0 16px; }
.pr-tools p { margin: 0; font-size: 14.5px; color: var(--fg-2); }
.pr-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 4px 8px 4px 0;
  border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: 3px;
  background: var(--panel); color: inherit; font: 600 15px/1 inherit; text-decoration: none; cursor: pointer;
}
.pr-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pr-sheet {
  background: #fff; color: #111; border: 1px solid var(--line-2);
  padding: 28px 30px; max-width: 8.5in; margin: 0 auto 30px; box-sizing: border-box;
  font-size: 13px; line-height: 1.4;
}
.pr-kick { font: 600 11px/1 var(--f-m, monospace); letter-spacing: .08em; text-transform: uppercase; color: #555; margin: 0 0 8px; }
.pr-sheet h1 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0 0 6px; color: #111; }
.pr-lede { margin: 0 0 14px; font-size: 14px; color: #222; }
.pr-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.pr-table th, .pr-table td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #ccc; }
.pr-table thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #444; border-bottom: 2px solid #111; }
.pr-table tbody th { font-weight: 700; white-space: normal; width: 24%; }
.pr-h2 { font-size: 15px; margin: 6px 0 8px; color: #111; }
.pr-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.pr-pair { border-left: 3px solid #111; padding-left: 10px; }
.pr-pair p { margin: 0 0 3px; }
.pr-lab { display: block; font: 600 10.5px/1.4 var(--f-m, monospace); text-transform: uppercase; letter-spacing: .05em; color: #555; }
.pr-old { color: #555; text-decoration: line-through; text-decoration-color: #999; }
.pr-before { margin-bottom: 6px !important; }
.pr-foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid #ccc; font-size: 10.5px; color: #444; }
.pr-foot p { margin: 0 0 3px; }

@media (max-width: 640px) {
  .pr-sheet { padding: 18px 14px; font-size: 13.5px; }
  .pr-pairs { grid-template-columns: 1fr; }
  .pr-table thead { display: none; }
  .pr-table tr { display: block; border-bottom: 1px solid #ccc; padding: 6px 0; }
  .pr-table th, .pr-table td, .pr-table tbody th { display: block; border: 0; padding: 2px 0; width: auto; }
  .pr-table td:last-child::before { content: "Write: "; font-weight: 700; }
}

@page { size: Letter; margin: 0.45in; }
@media print {
  body { background: #fff !important; }
  body > *:not(main), .pr-screen, .skip-link { display: none !important; }
  main.pr-wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .pr-sheet { border: 0; padding: 0; margin: 0; max-width: none; font-size: 13.5px; }
  .pr-sheet h1 { font-size: 26px; }
  .pr-lede { font-size: 15px; }
  .pr-table th, .pr-table td { padding: 7px 8px !important; }
  .pr-foot { font-size: 11px; }
  .pr-table thead { display: table-header-group; }
  .pr-table tr { display: table-row; }
  .pr-table th, .pr-table td { display: table-cell; padding: 4px 6px; }
  .pr-table td:last-child::before { content: none; }
  .pr-pairs { grid-template-columns: 1fr 1fr; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { .pr-btn { transition: none; } }
