/**
 * GitHub Like Theme: print.
 * The article only: no chrome, wrapped code, link addresses written out.
 */

@page {
    margin: 18mm 16mm;
}

:root,
[data-github-theme] {
    --gh-color-canvas-default: #ffffff;
    --gh-color-canvas-subtle: #f6f8fa;
    --gh-color-fg-default: #000000;
    --gh-color-fg-muted: #444444;
    --gh-color-border-default: #c8c8c8;
    --gh-color-border-muted: #dddddd;
    --gh-color-accent-fg: #0b4fa8;
    --gh-color-neutral-muted: #eeeeee;
    --gh-code-bg: #f6f8fa;
    --gh-code-fg: #000000;
}

.site-header,
.developer-sidebar,
.sidebar-backdrop,
.post-rail,
.toc-inline,
.site-footer,
.back-to-top,
.post-metadata-section,
.related-posts,
.post-navigation,
.comments-area,
.entry-footer,
.code-actions,
.code-expand,
.heading-anchor,
.breadcrumb,
.image-zoom-container,
#wpadminbar {
    display: none !important;
}

html,
body {
    font-size: 11pt;
    background: #ffffff !important;
}

.site-container {
    margin-left: 0 !important;
}

.site-main {
    padding: 0;
}

.post-layout {
    display: block;
}

.article-box {
    padding: 0;
    border: 0;
}

.markdown-body {
    font-size: 11pt;
}

.markdown-body pre,
.code-block-wrapper.is-collapsed pre {
    max-height: none;
    overflow: visible;
    font-size: 8.5pt;
    mask-image: none;
}

.markdown-body pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.code-block-wrapper,
.markdown-body figure,
.markdown-body table,
.markdown-body .callout,
.markdown-body blockquote,
.author-box {
    break-inside: avoid;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    break-after: avoid;
}

.markdown-body table {
    display: table;
    width: 100%;
}

.markdown-body a[href^="http"]::after {
    font-size: 0.8em;
    color: #444444;
    word-break: break-all;
    content: " (" attr(href) ")";
}

.markdown-body .wp-block-image a::after,
.markdown-body a.heading-anchor::after {
    content: none;
}
