/* Article print edition. Loaded with media="print" only on individual posts. */
@page {
    size: A4;
    margin: 18mm 19mm 20mm;
    background: #fbf7ee;
    @top-left { content: "SERHAT DİKER / NOTLAR"; font: 7pt Arial, sans-serif; letter-spacing: 1.1pt; color: #777; }
    @top-right { content: "TEKNOLOJİ VE ARAŞTIRMA"; font: 6.5pt Arial, sans-serif; letter-spacing: .6pt; color: #888; }
    @bottom-left { content: "serhatdiker.com"; font: 7.5pt Arial, sans-serif; color: #777; }
    @bottom-right { content: counter(page) " / " counter(pages); font: 7.5pt Arial, sans-serif; color: #777; }
}
@page :first { @top-left { content: none; } @top-right { content: none; } }

html, html[data-theme], body { color-scheme: light; background: #fbf7ee !important; color: #202020 !important; margin: 0 !important; padding: 0 !important; }
html { scroll-behavior: auto; }
body { font: 11pt/1.58 Georgia, "Times New Roman", serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body > :not(main), #wpadminbar, .site-header, .site-footer, .skip-link,
.back-link, .article-meta, .article-actions, .reading-sidebar, .related-posts,
.comments-area, #comments, .article-tags, .article-author, .search-dialog,
.code-copy, .sharedaddy, .sd-sharing-enabled, .post-views, .jetpack-likes-widget-wrapper,
.wp-block-jetpack-subscriptions, .jetpack-subscribe-modal, #jp-relatedposts,
.article-content > .wp-block-group:has(.wp-block-jetpack-subscriptions__container),
.article-content iframe, .article-content video, .article-content audio { display: none !important; }

main.wrap.single-main, .full-article, .article-heading, .reading-layout, .reading-layout > div {
    display: block; width: auto; max-width: none; margin: 0; padding: 0;
    overflow: visible; height: auto; min-height: 0; border: 0; box-shadow: none;
}
.full-article { position: relative; isolation: isolate; z-index: 0; }
.print-masthead, .article-heading, .article-cover, .reading-layout, .print-source { position: relative; z-index: 1; }
.article-content pre { position: static; }
.full-article .print-only { display: block !important; }
.print-masthead {
    border-top: 2pt solid #af4e1c; border-bottom: .5pt solid #d9d3cc;
    padding: 3.5mm 0; margin-bottom: 8mm; font: 8pt/1.5 Arial, sans-serif;
}
.print-masthead > strong { font-size: 13pt; font-weight: 700; letter-spacing: -.3pt; }
.print-masthead strong span { font-weight: 400; color: #a14b23; }
.print-masthead > span { float: right; padding-top: 2pt; color: #666; font-size: 7.5pt; }
.article-heading { margin-bottom: 6mm; break-inside: avoid; }
.article-heading > .category-label { display: block; margin: 0 0 3mm; font: 700 8pt/1.4 Arial, sans-serif; letter-spacing: 1.2pt; text-transform: uppercase; color: #a14b23; }
.article-heading h1 { font: 700 28pt/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.7pt; text-wrap: initial; margin: 0 0 4mm; color: #191919; }
.article-heading .print-byline { font: 8.5pt/1.5 Arial, sans-serif; margin: 0; color: #555; }
.print-byline span { padding: 0 2mm; color: #aaa; }
.article-heading .print-abstract { margin: 5mm 0 0; padding-left: 4mm; border-left: 2pt solid #ba5d2b; font: italic 11pt/1.5 Georgia, serif; color: #444; }
.article-cover { display: block; width: 100%; max-width: none; max-height: none; height: auto; aspect-ratio: auto; margin: 0 0 7mm; border-radius: 0; overflow: visible; break-inside: avoid; }
.article-cover img { display: block; width: 100%; height: 57mm; max-height: none; object-fit: cover; object-position: center; }

.article-content { font: 11pt/1.58 Georgia, "Times New Roman", serif; color: #202020; overflow: visible; overflow-wrap: anywhere; }
.article-content p, .article-content li { orphans: 3; widows: 3; }
.article-content p { margin: 0 0 3.5mm; }
.article-content h2, .article-content h3, .article-content h4 {
    font-family: Georgia, "Times New Roman", serif; color: #222; letter-spacing: -.15pt;
    break-after: avoid; page-break-after: avoid; break-inside: avoid;
}
.article-content h2 { font-size: 16pt; line-height: 1.25; margin: 7mm 0 3mm; padding-top: 0; }
.article-content h3 { font-size: 12.5pt; margin: 5mm 0 2.5mm; }
.article-content h4 { font-size: 11pt; margin: 4mm 0 2mm; }
.article-content ul, .article-content ol { margin: 0 0 4mm; padding-left: 5mm; }
.article-content li { margin-bottom: 1.5mm; }
.article-content a { color: #202020; text-decoration: underline; text-decoration-color: #bbb; text-underline-offset: 1.5pt; }
.article-content blockquote { margin: 5mm 0; padding: 2mm 5mm; border-left: 1.5pt solid #ba5d2b; font-style: italic; background: none; color: #333; }
.article-content pre, .article-content code { font-family: Consolas, "Courier New", monospace; }
.article-content pre { font-size: 8pt; line-height: 1.5; margin: 4mm 0; padding: 4mm; white-space: pre-wrap; overflow: visible; word-break: break-word; background: #f6f5f3; color: #222; border: .5pt solid #ddd; border-radius: 0; break-inside: avoid; box-decoration-break: clone; }
.article-content :not(pre) > code { padding: 0 1pt; font-size: .85em; background: #f3f1ee; color: #222; }
.article-content figure:not(.wp-block-table) { break-inside: avoid; margin: 5mm 0; }
.article-content img { max-width: 100%; height: auto; max-height: 180mm; object-fit: contain; border-radius: 0; }
.article-content figcaption { font: 8pt/1.5 Arial, sans-serif; color: #666; margin-top: 2mm; }
.article-content .wp-block-table { margin: 5mm 0; overflow: visible; break-inside: avoid; }
.article-content table { display: table; width: 100%; min-width: 0; max-width: 100%; overflow: visible; margin: 0; border-collapse: collapse; font: 9pt/1.5 Arial, sans-serif; table-layout: fixed; break-inside: avoid; }
.article-content thead { display: table-header-group; }
.article-content tr { break-inside: avoid; }
.article-content th, .article-content td { padding: 2.5mm 3mm; border: .5pt solid #d4d0ca; color: #202020; overflow-wrap: anywhere; }
.article-content th { background: #eeeae4; font-weight: 700; text-align: left; }
.article-content td { background: transparent; }
.print-source { margin-top: 8mm; padding-top: 4mm; border-top: .5pt solid #c9c2b9; font: 7.5pt/1.6 Arial, sans-serif; break-inside: avoid; overflow-wrap: anywhere; }
.print-source strong, .print-source span, .print-source a { display: block; }
.print-source a { color: #555; }

/* The shared vector mark repeats behind the text on every sheet. */
.full-article .print-watermark {
    position: fixed; top: 28%; left: 50%; width: 105mm; margin-left: -52.5mm;
    text-align: center; z-index: 0;
    pointer-events: none; user-select: none; color: #ede5d8;
    font: 700 14pt/1.3 Arial, sans-serif; letter-spacing: 1.5pt;
}
.print-watermark svg { display: block; width: 100%; height: 105mm; fill: #ede5d8; }
.print-watermark path { fill: #ede5d8; }
.print-watermark span { display: block; margin-top: -7mm; }
