/* ═══════════════════ yazdırma ═══════════════════
   Ekranda #printRoot görünmez; yazdırırken yalnızca o basılır. */
#printRoot { display: none; }

@media print {
  @page { size: A4; margin: 12mm 12mm 14mm; }
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body.is-printing > *:not(#printRoot) { display: none !important; }
  body.is-printing #printRoot { display: block !important; }
  /* koyu temada da çıktı açık renkli olsun */
  html:root, html:root[data-theme="dark"] {
    --text: #0f1d33; --text-2: #3d4b63; --text-3: #6b7890; --line: #dfe4ec; --line-2: #cfd6e2;
    --surface: #fff; --surface-2: #f3f5f9; --surface-3: #e7ebf2; --bg: #fff;
    --accent: var(--navy); --accent-text: var(--navy-2); --accent-soft: #eef2f8; --hot-text: #c8611a; --hot-soft: #fdeee2;
    --info-soft: #eef2f8; --success-soft: #e2f4ec; --warning-soft: #fcf0de; --danger-soft: #fce8ea;
    color-scheme: light;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .pr { color: #0f1d33; font: 10.5pt/1.45 var(--font); }
  .pr__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
  .pr__logo { height: 30px; width: auto; }
  .pr__meta { text-align: right; font-size: 8.5pt; color: #6b7890; }
  .pr__meta b { display: block; color: var(--navy); font-size: 10pt; }
  .pr__title { font: 700 20pt/1.2 var(--display); letter-spacing: -.02em; margin: 12px 0 2px; color: var(--navy); }
  .pr__sub { color: #3d4b63; margin-bottom: 10px; }
  .pr__map { margin: 8px 0 10px; break-inside: avoid; }
  .pr__map img { width: 100%; max-height: 118mm; object-fit: cover; border-radius: 6px; border: 1px solid #dfe4ec; }
  .pr__map figcaption { font-size: 7.5pt; color: #6b7890; margin-top: 3px; }
  .pr__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 8.5pt; margin-bottom: 8px; }
  .pr__legend span { display: inline-flex; align-items: center; gap: 5px; }
  .pr__sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
  .pr__sw--plan { background: linear-gradient(135deg, #f2cf4a, #5aa0e0); }
  .pr__sec { margin-top: 12px; break-inside: avoid-page; }
  .pr__sec > h2 { font: 700 12pt var(--display); color: var(--navy); border-bottom: 1px solid #dfe4ec; padding-bottom: 4px; margin-bottom: 8px; }
  .pr__foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #dfe4ec; display: flex; justify-content: space-between; gap: 12px;
              font-size: 7.5pt; color: #6b7890; }

  .pr .attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pr .attr-table { font-size: 8.5pt; }
  .pr .attr-table th, .pr .attr-table td { padding: 4px 6px; }
  .pr .sec-title { font-size: 9.5pt; margin-bottom: 5px; }
  .pr .sec-title .i, .pr .i { width: 11px; height: 11px; }
  .pr .thumb { width: 100%; max-width: 90mm; height: auto; border-radius: 4px; }
  .pr .plan-read { padding: 8px; break-inside: avoid; }
  .pr .plan-read__body { grid-template-columns: 90mm 1fr; }
  .pr .facts { grid-template-columns: repeat(3, 1fr); }
  .pr .near-grid { grid-template-columns: repeat(4, 1fr); }
  .pr .near b { font-size: 11pt; }
  .pr .hit { padding: 8px; break-inside: avoid; }
  .pr .data-table { font-size: 8pt; }
  .pr .data-table th, .pr .data-table td { padding: 4px 6px; }
  .pr .notice { font-size: 8pt; padding: 6px 8px; }
  .pr .chips { gap: 4px; }
  .pr .chip { height: auto; padding: 2px 8px; font-size: 8pt; }
  .pr .skeleton, .pr .spinner { display: none; }
  .pr .faint { color: #6b7890; }
}
