@page {
    margin: 0.3in !important;
}

@media print {
    html,
    body.post-template {
        color: #000 !important;
        background: #fff !important;
    }

    body.post-template {
        margin: 0 !important;
        padding: 0 0.4in !important;
        overflow: visible !important;
        font-size: 11pt;
        line-height: 1.55;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.post-template > header,
    body.post-template > footer,
    body.post-template #ticker,
    body.post-template #announcement-bar-root,
    body.post-template #scroll-to-top,
    body.post-template .site-search-popover,
    body.post-template .section-post-content-post-share,
    body.post-template .section-post-content-post-tags,
    body.post-template .post-toc,
    body.post-template .sticky-subscribe-form,
    body.post-template .common-subscribe-form,
    body.post-template .common-cta,
    body.post-template .content-cta,
    body.post-template .post-comments,
    body.post-template #ghost-comments-root,
    body.post-template .gh-comments,
    body.post-template .section-read-more,
    body.post-template .kg-signup-card,
    body.post-template ins.adsbygoogle,
    body.post-template [data-ad-slot],
    body.post-template .advertisement,
    body.post-template .ad-container,
    body.post-template .sponsored-content,
    body.post-template [class^="gh-portal"],
    body.post-template [class*=" gh-portal"] {
        display: none !important;
    }

    body.post-template .fixed,
    body.post-template .sticky,
    body.post-template [style*="position: fixed"],
    body.post-template [style*="position:fixed"],
    body.post-template [style*="position: sticky"],
    body.post-template [style*="position:sticky"] {
        position: static !important;
        inset: auto !important;
        transform: none !important;
    }

    body.post-template main,
    body.post-template .section-post-content,
    body.post-template .section-post-content .wrapper,
    body.post-template .section-post-content .max-w-5xl {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.post-template .section-post-content .max-w-5xl > .grid {
        display: block !important;
        margin: 1.25rem 0 0 !important;
    }

    body.post-template .section-post-content {
        padding: 0.35in 0 !important;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    body.post-template .article-print-header,
    body.post-template .article-print-footer {
        display: block !important;
    }

    body.post-template .article-print-header {
        display: flex !important;
        align-items: center;
        gap: 0.18in;
        margin: 0 0 0.3in;
        padding: 0 0 0.12in;
        border-bottom: 3px solid var(--ghost-accent-color, #c6003d);
    }

    body.post-template .article-print-logo {
        display: block;
        width: auto !important;
        max-width: 0.85in !important;
        height: 0.85in !important;
        object-fit: contain !important;
    }

    body.post-template .article-print-publication {
        display: flex;
        flex-direction: column;
        gap: 0.03in;
        color: #333;
        font-size: 9pt;
        line-height: 1.3;
    }

    body.post-template .article-print-publication strong {
        color: #000;
        font-family: var(--gh-font-heading, var(--font-primary));
        font-size: 20pt;
        font-weight: 700;
        line-height: 1.15;
    }

    body.post-template .section-post-content-title {
        margin: 0 !important;
        color: #000 !important;
        font-size: 28pt !important;
        line-height: 1.12 !important;
    }

    body.post-template .section-post-content-custom-excerpt {
        color: #333 !important;
        font-size: 14pt !important;
        line-height: 1.4 !important;
    }

    body.post-template .section-post-content-post-meta,
    body.post-template .section-post-content-post-meta * {
        color: #333 !important;
    }

    body.post-template .section-post-content-author-images {
        display: flex !important;
    }

    body.post-template .section-post-content-author-images img,
    body.post-template .section-post-content-author-no-img {
        width: 0.42in !important;
        height: 0.42in !important;
        border-radius: 50% !important;
    }

    body.post-template .section-post-content-img,
    body.post-template .post-page-content img {
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    body.post-template .post-page-content {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        color: #000 !important;
        font-size: 11pt !important;
        line-height: 1.55 !important;
        overflow: visible !important;
    }

    body.post-template .post-page-content .kg-card,
    body.post-template .post-page-content .kg-width-wide,
    body.post-template .post-page-content .kg-width-full {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .post-page-content .kg-width-wide,
    body.post-template .post-page-content .kg-width-full {
        width: 100% !important;
    }

    body.post-template .post-page-content .kg-toggle-content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.post-template .section-post-content-img {
        width: auto !important;
        max-height: 4.3in !important;
        margin-right: auto !important;
        margin-left: auto !important;
        margin-top: 0.25in !important;
        border-radius: 4px !important;
    }

    body.post-template .post-page-content .kg-image-card img {
        display: block !important;
        width: auto !important;
        max-height: 7in !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    body.post-template .post-page-content a {
        color: var(--ghost-accent-color, #c6003d) !important;
        text-decoration: underline;
    }

    body.post-template .post-page-content iframe {
        display: none !important;
    }

    body.post-template .post-page-content video,
    body.post-template .post-page-content audio {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    body.post-template .post-page-content .kg-embed-card .js-reframe {
        display: none !important;
    }

    body.post-template .article-print-embed {
        display: block !important;
        overflow: hidden;
        color: #111 !important;
        text-decoration: none !important;
        border: 1px solid #d4d4d4;
        border-radius: 6px;
        background: #fff;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .article-print-youtube-media {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #ededed;
    }

    body.post-template .article-print-youtube-media img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

    body.post-template .article-print-youtube-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.62in;
        height: 0.43in;
        border-radius: 0.1in;
        background: #f00;
        transform: translate(-50%, -50%);
    }

    body.post-template .article-print-youtube-icon::after {
        position: absolute;
        top: 50%;
        left: 53%;
        width: 0;
        height: 0;
        border-top: 0.1in solid transparent;
        border-bottom: 0.1in solid transparent;
        border-left: 0.16in solid #fff;
        content: "";
        transform: translate(-50%, -50%);
    }

    body.post-template .article-print-embed-details {
        display: flex;
        flex-direction: column;
        gap: 0.04in;
        padding: 0.14in 0.17in;
        line-height: 1.3;
    }

    body.post-template .article-print-embed-type {
        color: #c00;
        font-size: 9pt;
        font-weight: 700;
        text-transform: uppercase;
    }

    body.post-template .article-print-embed-details strong {
        color: #111;
        font-size: 12pt;
    }

    body.post-template .article-print-embed-url {
        color: #555;
        font-size: 9pt;
        overflow-wrap: anywhere;
    }

    body.post-template .post-page-content h1,
    body.post-template .post-page-content h2,
    body.post-template .post-page-content h3,
    body.post-template .post-page-content h4,
    body.post-template .post-page-content h5,
    body.post-template .post-page-content h6 {
        color: #000 !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    body.post-template .post-page-content h2 {
        font-size: 18pt !important;
        line-height: 1.25 !important;
    }

    body.post-template .post-page-content h3 {
        font-size: 15pt !important;
        line-height: 1.3 !important;
    }

    body.post-template .post-page-content p,
    body.post-template .post-page-content li {
        orphans: 3;
        widows: 3;
    }

    body.post-template .post-page-content img,
    body.post-template .post-page-content figure,
    body.post-template .post-page-content blockquote,
    body.post-template .post-page-content table {
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .post-page-content table,
    body.post-template .post-page-content pre {
        max-width: 100% !important;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    /* Keep Ghost Editor cards recognizable while making them printable. */
    body.post-template .post-page-content .kg-button-card a.kg-btn,
    body.post-template .post-page-content .kg-button-card a.kg-btn-accent {
        flex-direction: column;
        height: auto !important;
        min-height: 2.4em;
        padding-top: 0.08in !important;
        padding-bottom: 0.08in !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    body.post-template .article-print-link-url {
        display: block !important;
        max-width: 100%;
        margin-top: 0.04in;
        color: #555 !important;
        font-size: 8pt;
        font-weight: 400;
        line-height: 1.25;
        overflow-wrap: anywhere;
        text-decoration: none !important;
    }

    body.post-template .post-page-content .kg-button-card .article-print-link-url,
    body.post-template .post-page-content .kg-file-card .article-print-link-url,
    body.post-template .post-page-content .kg-product-card-button .article-print-link-url,
    body.post-template .post-page-content .kg-cta-button .article-print-link-url {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    body.post-template figcaption .article-print-link-url {
        display: inline !important;
        margin: 0 0 0 0.04in;
    }

    body.post-template .post-page-content .kg-bookmark-card a.kg-bookmark-container {
        display: flex !important;
        min-height: 1.35in;
        overflow: hidden;
        color: #222 !important;
        text-decoration: none !important;
        background: #fff !important;
        border: 1px solid #d7dce0 !important;
    }

    body.post-template .post-page-content .kg-bookmark-content {
        min-width: 0;
        padding: 0.16in !important;
    }

    body.post-template .post-page-content .kg-bookmark-title,
    body.post-template .post-page-content .kg-bookmark-description,
    body.post-template .post-page-content .kg-bookmark-metadata,
    body.post-template .post-page-content .kg-bookmark-author {
        color: #222 !important;
    }

    body.post-template .post-page-content .kg-bookmark-thumbnail {
        position: relative !important;
        flex: 0 0 34% !important;
        min-width: 34% !important;
        padding: 0 !important;
    }

    body.post-template .post-page-content .kg-bookmark-thumbnail img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

    body.post-template .post-page-content .kg-bookmark-icon {
        position: static !important;
        width: 0.2in !important;
        height: 0.2in !important;
        margin: 0 0.06in 0 0 !important;
        object-fit: contain !important;
    }

    body.post-template .post-page-content .kg-gallery-card {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    body.post-template .post-page-content .kg-gallery-container {
        display: block !important;
        width: 100% !important;
    }

    body.post-template .post-page-content .kg-gallery-row {
        display: flex !important;
        width: 100% !important;
        gap: 0.08in !important;
        margin: 0 0 0.08in !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .post-page-content .kg-gallery-row:last-child {
        margin-bottom: 0 !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    body.post-template .post-page-content .kg-gallery-image {
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.post-template .post-page-content .kg-gallery-image > a {
        display: block !important;
        height: 100% !important;
    }

    body.post-template .post-page-content .kg-gallery-image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

    body.post-template .post-page-content .kg-gallery-card figcaption {
        margin: 0.05in 0 0 !important;
        padding: 0 !important;
        break-before: avoid-page;
        page-break-before: avoid;
    }

    body.post-template .post-page-content .kg-cta-card {
        overflow: hidden;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .post-page-content .kg-cta-content {
        min-width: 0;
        gap: 0.18in !important;
        padding: 0.18in !important;
    }

    body.post-template .post-page-content .kg-cta-content-inner {
        min-width: 0;
        flex: 1 1 auto;
        gap: 0.12in !important;
    }

    body.post-template .post-page-content .kg-cta-image-container img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: 3in !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    body.post-template .post-page-content .kg-cta-minimal .kg-cta-image-container,
    body.post-template .post-page-content .kg-cta-minimal .kg-cta-image-container a {
        display: block !important;
        flex: 0 0 0.8in !important;
        width: 0.8in !important;
        height: 0.8in !important;
    }

    body.post-template .post-page-content .kg-cta-minimal .kg-cta-image-container img {
        width: 0.8in !important;
        height: 0.8in !important;
        object-fit: cover !important;
    }

    body.post-template .post-page-content a.kg-cta-button {
        flex-direction: column;
        align-self: flex-start;
        width: max-content !important;
        max-width: 100%;
        height: auto !important;
        min-height: 2.5em;
        padding-top: 0.07in !important;
        padding-bottom: 0.07in !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    body.post-template .post-page-content .kg-header-card {
        min-height: 0 !important;
        overflow: hidden;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .post-page-content .kg-header-card:not(.kg-v2) {
        padding: 0.5in 0.35in !important;
    }

    body.post-template .post-page-content .kg-header-card.kg-v2 {
        display: block !important;
        padding: 0 !important;
    }

    body.post-template .post-page-content .kg-layout-split .kg-header-card-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    body.post-template .post-page-content .kg-header-card-content > picture {
        display: block !important;
        min-width: 0;
    }

    body.post-template .post-page-content .kg-header-card-content .kg-header-card-image {
        display: block !important;
        width: 100% !important;
        height: 2.45in !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

    body.post-template .post-page-content .kg-header-card-text {
        min-height: 2.45in !important;
        padding: 0.3in !important;
    }

    body.post-template .post-page-content .kg-header-card.kg-style-dark h2,
    body.post-template .post-page-content .kg-header-card.kg-style-dark h3,
    body.post-template .post-page-content .kg-header-card.kg-style-dark p,
    body.post-template .post-page-content .kg-header-card.kg-style-accent h2,
    body.post-template .post-page-content .kg-header-card.kg-style-accent h3,
    body.post-template .post-page-content .kg-header-card.kg-style-accent p,
    body.post-template .post-page-content .kg-header-card.kg-style-image h2,
    body.post-template .post-page-content .kg-header-card.kg-style-image h3,
    body.post-template .post-page-content .kg-header-card.kg-style-image p {
        color: #fff !important;
    }

    body.post-template .post-page-content .kg-header-card a.kg-header-card-button {
        flex-direction: column;
        width: auto;
        max-width: 100%;
        height: auto !important;
        min-height: 2.5em;
        padding-top: 0.07in !important;
        padding-bottom: 0.07in !important;
        text-decoration: none !important;
    }

    body.post-template .post-page-content .kg-header-card-button .article-print-link-url {
        color: currentColor !important;
        opacity: 0.75;
    }

    body.post-template .post-page-content .kg-file-card a.kg-file-card-container {
        color: #fff !important;
        text-decoration: none !important;
    }

    body.post-template .post-page-content .kg-file-card-title,
    body.post-template .post-page-content .kg-file-card-caption,
    body.post-template .post-page-content .kg-file-card-metadata,
    body.post-template .post-page-content .kg-file-card-filename,
    body.post-template .post-page-content .kg-file-card-filesize {
        color: #fff !important;
    }

    body.post-template .post-page-content .kg-file-card-contents {
        min-width: 0;
    }

    body.post-template .post-page-content .kg-file-card-icon {
        width: 0.75in !important;
        min-width: 0.75in !important;
        min-height: 0.75in !important;
    }

    body.post-template .post-page-content .kg-file-card-icon svg {
        width: 0.38in !important;
        height: 0.38in !important;
    }

    body.post-template .post-page-content .kg-product-card {
        display: flex !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .post-page-content .kg-product-card-container {
        width: 100% !important;
        max-width: 5.1in !important;
        padding: 0.18in !important;
    }

    body.post-template .post-page-content .kg-product-card-image {
        display: block !important;
        width: auto !important;
        max-height: 2.8in !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    body.post-template .post-page-content .kg-product-card a.kg-product-card-button,
    body.post-template .post-page-content .kg-product-card a.kg-product-card-btn-accent {
        flex-direction: column;
        height: auto !important;
        min-height: 38px;
        padding-top: 0.07in !important;
        padding-bottom: 0.07in !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    body.post-template .article-print-footer {
        margin-top: 0.35in;
        padding-top: 0.15in;
        border-top: 1px solid #777;
        color: #333;
        font-size: 9pt;
        line-height: 1.4;
        overflow-wrap: anywhere;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    body.post-template .article-print-footer p {
        margin: 0 0 0.04in;
    }
}
