/* Printed and PDF copies of an article: a clean Kovara Bîr page for researchers and teachers.
   Loaded with media="print", so the screen never downloads more than this small file. */
@page {
  size: A4;
  margin: 20mm 19mm 22mm;
  @bottom-left { content: "kovarabir.com"; font: 500 8pt 'DM Sans', Arial, sans-serif; color: #115463; }
  @bottom-right { content: counter(page) " / " counter(pages); font: 8pt 'DM Sans', Arial, sans-serif; color: #555; }
}

/* Only the article prints: no header, menu, footer, popups, players or anything added later by scripts. */
html, body { background: #fff !important; color: #111 !important; }
body > *:not(main), main > *:not(.longread),
.longread .backlink, .series-badge, .topic-links, .read-total, .translation-note:empty,
.reading-aside, .reading-tools, .article-end, .article-rail, .longread > .section,
.longread audio, .longread iframe, .video-player, .views-note-mark, .fn-pop,
[data-quote-pop], #sharePop, .share-pop, dialog { display: none !important; }
main, .longread, .article-layout, .article-column { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; }
.longread, .longread * { color: #111 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }

/* Masthead: the wordmark with its orange full stop, as on the site and the share cards. */
.print-masthead { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12pt; border-bottom: .6pt solid #115463; padding-bottom: 6pt; margin-bottom: 16pt; }
.print-wordmark { font: 600 19pt/1 'Source Serif 4', Georgia, serif; letter-spacing: -.3pt; }
.longread .print-wordmark span { color: #ffa62b !important; }
.print-tagline { font: 600 6.5pt 'DM Sans', Arial, sans-serif; letter-spacing: 1.2pt; text-transform: uppercase; }
.longread .print-tagline { color: #115463 !important; }

/* Heading: category, title, summary, author, date and reading time. */
.article-heading { max-width: none; margin: 0; }
.article-heading .eyebrow { margin: 0 0 6pt; font: 600 7.5pt 'DM Sans', Arial, sans-serif; letter-spacing: 1.2pt; text-transform: uppercase; }
.longread .article-heading .eyebrow, .longread .article-heading .eyebrow a, .longread .credit-label { color: #115463 !important; }
.article-heading h1 { font: 600 22pt/1.18 'Source Serif 4', Georgia, serif !important; letter-spacing: -.3pt !important; margin: 0 0 8pt !important; break-after: avoid; }
.standfirst { font: 400 12pt/1.5 'Source Serif 4', Georgia, serif !important; max-width: none; margin: 0 0 10pt; }
.longread .standfirst { color: #333 !important; }
/* Author and date: one quiet line under the summary, no boxed block. */
.article-credit { display: block !important; border: 0 !important; padding: 0 !important; margin: 0 0 12pt; font: 9pt 'DM Sans', Arial, sans-serif; }
.article-credit > div { display: inline !important; }
.credit-label, .article-date span { display: none !important; }
.article-credit strong { font-size: 9pt; font-weight: 600; }
.article-credit a { text-decoration: none; }
.article-date { display: inline !important; font-size: 9pt; }
.article-date::before { content: " · "; }
.longread .article-date, .longread .article-date time { color: #555 !important; }
/* Pictures that fail to load are left out rather than printing their alt text. */
.print-broken { display: none !important; }

/* Body: clean serif text; headings stay with what follows, pictures stay on the page with their captions. */
.article-body { font: 400 10.5pt/1.55 'Source Serif 4', Georgia, serif !important; --reading-size: 10.5pt; overflow-wrap: break-word; }
.article-body p { margin: 0 0 7pt !important; orphans: 3; widows: 3; }
.article-body h2, .article-body h3, .article-body h4 { font-family: 'Source Serif 4', Georgia, serif !important; break-after: avoid; break-inside: avoid; }
.article-body h2 { font-size: 14pt !important; line-height: 1.3 !important; margin: 16pt 0 6pt !important; }
.article-body h3, .article-body h4 { font-size: 11.5pt !important; margin: 12pt 0 5pt !important; }
.article-body blockquote { margin: 10pt 0 10pt 12pt !important; padding: 0 0 0 10pt !important; border-left: 1.5pt solid #115463 !important; font-style: italic; break-inside: avoid; }
.article-body .question { border-left: 1.5pt solid #115463 !important; padding-left: 9pt !important; }
.article-body ul, .article-body ol { margin: 0 0 7pt; padding-left: 16pt; }
.article-body .has-dropcap::first-letter { font-size: 3.1em; line-height: .85; }
.article-portrait, .article-body figure { margin: 0 0 12pt !important; max-width: 100% !important; break-inside: avoid; }
.article-portrait img, .article-body img { display: block; max-width: 100% !important; max-height: 105mm !important; width: auto !important; height: auto !important; object-fit: contain; margin: 0 auto; break-inside: avoid; }
.longread figcaption { font: 7.5pt/1.4 'DM Sans', Arial, sans-serif !important; padding-top: 3pt !important; break-before: avoid; }
.longread figcaption, .longread sup a { color: #555 !important; }
.article-body a { text-decoration: none; }
.longread .article-body a, .longread .article-source a { color: #115463 !important; }
/* Outside links show where they lead, small and muted; footnote and in-page links do not. */
.article-body a[href^="http"]:not([href*="kovarabir.com"])::after,
.article-source a[href^="http"]:not([href*="kovarabir.com"])::after { content: " (" attr(href) ")"; font: 7pt 'DM Sans', Arial, sans-serif; word-break: break-all; }
.longread .article-body a[href^="http"]::after, .longread .article-source a[href^="http"]::after { color: #777 !important; }
.article-source { margin-top: 12pt !important; padding: 6pt 0 !important; font-size: 8.5pt; break-inside: avoid; }

/* Closing: the views note, a citation line and the motto. */
.views-note { display: block !important; margin: 14pt 0 0 !important; padding: 0 0 0 8pt !important; border: 0 !important; border-left: 1.5pt solid #115463 !important; border-radius: 0 !important; break-inside: avoid; }
.views-note p { margin: 0; font: italic 8.5pt/1.45 'Source Serif 4', Georgia, serif; }
.print-colophon { display: block !important; margin-top: 12pt; padding-top: 7pt; border-top: .6pt solid #115463; break-inside: avoid; }
.print-cite { margin: 0 0 8pt; font: 8pt/1.5 'DM Sans', Arial, sans-serif; overflow-wrap: anywhere; }
.longread .print-cite strong { color: #115463 !important; }
.print-motto { margin: 0; font: italic 9pt 'Source Serif 4', Georgia, serif; text-align: center; letter-spacing: .3pt; }
.longread .print-motto { color: #115463 !important; }

/* Glossary words print as plain text and are listed before the citation. */
.article-body .gloss { all: unset; }
.print-glossary { display: block !important; margin-top: 12pt; break-inside: avoid; }
.print-glossary h2 { font: 600 7.5pt 'DM Sans', Arial, sans-serif; letter-spacing: 1.2pt; text-transform: uppercase; margin: 0 0 4pt; }
.longread .print-glossary h2 { color: #115463 !important; }
.print-glossary dl { margin: 0; font: 8.5pt/1.45 'Source Serif 4', Georgia, serif; }
.print-glossary dt { font-weight: 600; float: left; margin-right: 4pt; }
.print-glossary dt::after { content: ":"; }
.print-glossary dd { margin: 0 0 2pt; }
