/* SE1 article print edition. No effect on screen layouts. */
@media screen { .se1-print-only { display: none !important; } }
@media print {
    @page { size: auto; margin: 17mm 18mm; }
    html:has(body.post-template.se1-heritage), body.post-template.se1-heritage {
        background: white !important; color: black !important;
        height: auto !important; overflow: visible !important;
    }
    body.post-template.se1-heritage {
        --background-color: #fff; --color-primary-text: #000;
        --color-secondary-text: #333; --color-border: #bbb;
        --se1-blue: #000; --se1-editorial: #000;
        margin: 0 !important; padding: 0 !important;
        font-size: 11pt; color-scheme: light;
    }
    /* Keep only the article path through the theme's main layout. */
    body.post-template > :not(.gh-viewport),
    body.post-template .gh-viewport > :not(.gh-main),
    body.post-template .gh-viewport > .gh-main > :not(.gh-article),
    body.post-template .gh-article :is(.gh-button-share,.gh-article-author-image,.gh-comments,.gh-cta,.gh-social-links,.se1-topic-icon,.kg-signup-card,.kg-button-card,.kg-video-card,.kg-audio-card,.kg-product-card,.kg-embed-card,iframe,video,audio,button,form,ins.adsbygoogle,.adsbygoogle,[data-ad-client],[data-ad-slot],[data-google-query-id],.google-auto-placed,.google-auto-ads,.ad-container,.ad-slot,.ad-wrapper,.advertisement,.advertising,.se1-ad,.se1-ad-slot,.ad-banner,[id^="google_ads"],[id^="aswift_"]) {
        display: none !important;
    }
    body.post-template.se1-heritage :is(.gh-viewport,.gh-main,.gh-article,.gh-article-header,.gh-content) {
        display: block !important; width: auto !important; max-width: none !important;
        min-height: 0 !important; height: auto !important; position: static !important;
        overflow: visible !important; margin: 0 !important; padding: 0 !important;
        background: white !important; color: black !important;
        box-shadow: none !important; transform: none !important;
    }
    body.post-template.se1-heritage .gh-article::after { content: none !important; }
    body.post-template .se1-print-only { display: block !important; }
    body.post-template .se1-print-brand {
        margin: 0 0 15pt !important; padding-bottom: 9pt;
        border-bottom: 1pt solid #333; break-inside: avoid;
        font: bold 19pt Arial, sans-serif;
    }
    body.post-template .se1-print-brand img { display: block; max-width: 55mm; max-height: 16mm; width: auto; height: auto; object-fit: contain; }
    body.post-template.se1-heritage .gh-article-tag { font: 600 9pt Arial,sans-serif; color: #333 !important; text-transform: uppercase; }
    body.post-template.se1-heritage .gh-article-title { font: 700 25pt/1.12 var(--se1-sans) !important; letter-spacing: -.02em; margin: 5pt 0 8pt !important; break-after: avoid; }
    body.post-template.se1-heritage .gh-meta-share { display: block; margin: 0 0 9pt !important; padding: 0 0 7pt !important; border-bottom: .5pt solid #aaa; }
    body.post-template .gh-article-meta { font: 9pt/1.35 Arial,sans-serif !important; }
    body.post-template .gh-article-author-name { font: 600 10pt Arial,sans-serif !important; margin: 0; }
    body.post-template.se1-heritage .gh-article-header .gh-article-excerpt { font: 600 13pt/1.35 var(--se1-serif) !important; margin: 8pt 0 12pt !important; break-after: avoid; }
    body.post-template.se1-heritage .gh-content { font: 11.5pt/1.45 var(--se1-serif) !important; letter-spacing: 0; }
    body.post-template .gh-content > * { margin: 0 0 8pt !important; max-width: 100% !important; }
    body.post-template .gh-content :is(p,li,blockquote) { orphans: 3; widows: 3; }
    body.post-template.se1-heritage .gh-content :is(h2,h3,h4,h5,h6) { font-family: var(--se1-sans); font-size: 14pt; line-height: 1.2; margin: 14pt 0 5pt !important; break-after: avoid; }
    body.post-template .gh-content :is(ul,ol) { padding-left: 18pt; }
    body.post-template .gh-content blockquote { border-left: 1pt solid #aaa; padding-left: 10pt; }
    body.post-template .gh-article :is(figure,.kg-gallery-card,.kg-image-card) { break-inside: avoid; max-width: 100% !important; }
    body.post-template .gh-article-image { margin: 8pt 0 14pt !important; }
    body.post-template .gh-article :is(.gh-article-image img,.gh-content img) { max-width: 100% !important; max-height: 95mm; width: auto; height: auto; object-fit: contain; border-radius: 0; }
    body.post-template .gh-article figcaption { font: 9pt/1.35 Arial,sans-serif !important; color: #444 !important; margin: 4pt 0 0; }
    body.post-template .gh-content table { display: table; width: 100%; font-size: 9pt; border-collapse: collapse; }
    body.post-template .gh-content tr { break-inside: avoid; }
    body.post-template .gh-content thead { display: table-header-group; }
    /* Preserve linked words, never print link destinations or link styling. */
    body.post-template.se1-heritage .gh-article a { color: inherit !important; text-decoration: none !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
    body.post-template .gh-article a::after, body.post-template .gh-article a::before { content: none !important; }
    body.post-template.se1-heritage .gh-article :is(h1,h2,h3,h4,h5,h6,p,li,span,time) { color: #000 !important; }
    body.post-template .gh-content > .se1-article-footer:has(.se1-topic-list li) { display: block !important; margin: 15pt 0 0 !important; padding: 8pt 0 0 !important; border: 0; border-top: .5pt solid #aaa; break-inside: avoid; }
    body.post-template .se1-topics { display: block !important; }
    body.post-template .se1-footer-label { font: 700 9pt Arial,sans-serif; margin-right: 5pt; }
    body.post-template .se1-article-footer .se1-topic-list { display: inline !important; padding: 0; }
    body.post-template .se1-topic-list li { display: inline; font: 10pt/1.5 Arial,sans-serif; }
    body.post-template .se1-topic-list li:not(:last-child)::after { content: " · "; }
    body.post-template .se1-topic-list a { display: inline !important; min-height: 0; padding: 0; font: inherit; }
    body.post-template .se1-print-source { border-top: .5pt solid #aaa; margin: 10pt 0 0; padding: 8pt 0 0; break-inside: avoid; font: 10pt/1.4 Arial,sans-serif; overflow-wrap: anywhere; }
    body.post-template .se1-print-source strong { display: block; margin-bottom: 3pt; }
    /* Print metadata: publication date first, followed by the author. */
    body.post-template.se1-heritage .gh-article-meta { display: block !important; }
    body.post-template.se1-heritage .gh-article-meta-wrapper { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: baseline; gap: 0 6pt; }
    body.post-template.se1-heritage .gh-article-meta-content { order: -1; display: inline-flex !important; align-items: baseline; gap: 6pt; margin: 0 !important; font: 9pt/1.35 Arial,sans-serif !important; }
    body.post-template.se1-heritage .gh-article-meta-content::after { content: "|"; color: #666; }
    body.post-template.se1-heritage .gh-article-author-name { margin: 0 !important; font: 600 9pt/1.35 Arial,sans-serif !important; }
    /* Centre editorial photography, without disturbing multi-image gallery rows. */
    body.post-template.se1-heritage .gh-article :is(.gh-article-image,.kg-image-card) { text-align: center; }
    body.post-template.se1-heritage .gh-article :is(.gh-article-image img,.gh-content img:not(.kg-gallery-image img)) { display: block !important; float: none !important; margin-left: auto !important; margin-right: auto !important; }
    body.post-template.se1-heritage .gh-article .kg-gallery-row { justify-content: center; }
    body.post-template.se1-heritage .gh-article :is(.gh-article-image,.kg-image-card,.kg-gallery-card) figcaption { text-align: center; }
}
