/* Baskı / "PDF olarak kaydet" — site.css'in üstüne açık zemin, A4 düzeni */
@page { size: A4; margin: 18mm 16mm 18mm; }

:root, :root[data-theme] {
  --ink: #ffffff;
  --ink-2: #f6f3ec;
  --ink-3: #efe9dc;
  --paper: #15140f;
  --paper-dim: #38352d;
  --muted: #6e695d;
  --line: rgba(21, 20, 15, 0.12);
  --line-strong: rgba(21, 20, 15, 0.26);
  --accent: #b97c0a;
  --accent-ink: #ffffff;
}

html, body { background: #fff !important; color: var(--paper); }
body { font-size: 10.5pt; line-height: 1.6; overflow: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body::before { display: none !important; }

/* ekrana özel parçalar */
.site-header, .read-progress, .draft-banner, .toc, .to-top, .back, .article-bar .btn, .article-end,
.next-post, .menu-toggle, .lightbox, .site-footer { display: none !important; }
.reveal { opacity: 1 !important; transform: none !important; }

.print-brand { display: flex !important; justify-content: space-between; align-items: baseline; margin: 0 0 12mm;
  font-family: var(--f-display); font-weight: 800; font-size: 18pt; letter-spacing: -0.04em; color: var(--paper); }
.print-brand .mono { font-size: 7.5pt; font-weight: 400; letter-spacing: .06em; color: var(--muted); }

.wrap { max-width: none; padding: 0; }
.article-hero { padding: 0 0 8mm; border-bottom: 1px solid var(--line-strong); }
.article-hero h1 { font-size: 30pt; line-height: 1; max-width: none; color: var(--paper); }
.article-dek { font-size: 12pt; color: var(--paper-dim); max-width: none; }
.article-bar { margin-top: 6mm; padding-top: 0; border-top: 0; }
.article-meta { font-size: 7.5pt; color: var(--muted); }
.article-meta .views { display: none; }
.article-cover { margin-top: 8mm; }
.article-cover img { max-height: 110mm; }

.article-layout { display: block; }
.article-layout .prose, .prose { max-width: none; margin: 0; padding: 6mm 0 0; font-size: 10.5pt; line-height: 1.65; color: var(--paper-dim); }
.prose h2 { font-size: 18pt; margin: 9mm 0 3mm; break-after: avoid; color: var(--paper); }
.prose h3 { font-size: 13pt; margin: 7mm 0 2mm; break-after: avoid; }
.prose h3 .n { font-size: 8pt; padding: 1px 5px; }
.prose blockquote { font-size: 14pt; }
.prose a { color: var(--paper); text-decoration: none; }
.prose pre { font-size: 8.5pt; white-space: pre-wrap; break-inside: avoid; }
.prose code { font-size: 8.5pt; }
.prose table { font-size: 9pt; }
.prose figure, .ig, .vs, .prompt, .callout { break-inside: avoid; }
.prose p, .prose li { orphans: 3; widows: 3; }

.ig { padding: 5mm; font-size: 9.5pt; margin: 6mm 0; }
.ig-head strong { font-size: 13pt; }
.ig-stats { grid-template-columns: repeat(3, 1fr) !important; }
.ig-stats.two { grid-template-columns: repeat(2, 1fr) !important; }
.ig-stats b { font-size: 22pt; }
.ig-stats span { font-size: 8.5pt; }
.ig-row, .ig-drow, .ig-div .axis { grid-template-columns: 38% 1fr 16mm !important; }
.ig-row .k, .ig-drow .k { grid-column: auto !important; font-size: 9pt; }
.ig-track, .dtrack { height: 9px; }
.ig-layer { grid-template-columns: 10mm 38mm 1fr !important; padding: 3mm; }
.ig-layer .chips { grid-column: auto !important; }
.chips span { font-size: 8pt; padding: 1px 6px; }
.vs, .ig-pair, .ig-owasp { grid-template-columns: 1fr 1fr !important; }
.ig-321, .ig-check { grid-template-columns: repeat(3, 1fr) !important; }
.ig-321 b { font-size: 28pt; }
.vs { font-size: 9.5pt; }
.prompt { font-size: 8.5pt; }
.sources { font-size: 8.5pt; }
.sources a { word-break: break-all; }

/* kaynak bağlantılarının adresini kâğıtta da göster */
.sources a[href^="http"]::after { content: " (" attr(href) ")"; color: var(--muted); font-size: 7.5pt; }
