/*
Adding print support. The print styles are based on the the great work of
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Margins & paddings
# Typography
# Page breaks
# Links
# Visibility
--------------------------------------------------------------*/
@media print {

	/* Margins & paddings */
	@page {
		margin: 2cm;
	}
    
    .site-content.main {
        margin-top: -150px;
    }
    /*.site-content.blog {
        margin-top: -155px;
    }*/
    
    header,
    #first-screen__home .row-block,
    #about__home h1:nth-of-type(1),
    #ingredients__home, .blog img,
    #advantages__home, #order__home,
    #links__control .control_link .img-block,
    #results__home, #blog__home, footer,
    .faq_element > div, .open__answer,
    .site-content.blog figure, .breads,
    .site-content.blog picture, .link_blog,
    div.question-block:not(.active) ~ div.answer-block,
    .swiper-slider, .noprint, .animation__part
    {
        display: none !important;
    }
    
    .first-screen .content-block, 
    .first-screen .text-block
    {
        padding: 0;
        margin: 0;
    }
    .first-screen h1 {
        color: black;
        display:block !important;
    }
.blog_posts, 
.blog_posts > article,
.type-post div, 
.control .row-block > div {
    flex-basis: 100% !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
}
.blog_posts{
    flex-wrap:nowrap !important;
}
.blog div.row-block,
.blog .row-block,
.blog_posts > article .entry-header 
{
    display:block !important;
    /*flex-direction:row !important;*/
}
    .blog_posts
    {
        margin-left: -30px !important;
    }
    /*.post > div:first-child, .blog_posts {
        margin-top: -30px !important;
    }*/
    h2, .control_line, h1 {
        margin-bottom: 10px !important;
    }
    h1.page-title {
        margin-bottom: 35px !important;
    }
    .control .row-block.links__control {
        margin-top: 0px !important;
    }
    .control_link .text-block .title_control {
        margin-top: -30px !important;
        margin-bottom: 0;
    }
    #ingredients__home .content-block {
        /*padding-top: 0 !important;
        margin-top: -50px !important;*/
    }
    .text_ingredient,
    #faq__home div.row-block,
    div.question-block:not(.active) ~ div.answer-block,
    .faq_element > div:first-child
    {
        display: block !important;
    }
    .question-block p {
        font-weight: bold !important;
    }

	.entry .entry-header,
	.entry,
	.single .site-main > article > .entry-footer {
		margin-top: 0;
		margin-bottom: 0;
	}

	.site-footer .site-info {
		margin: 0;
	}

	.site-header,
    .faq_list
    {
		padding: 0;
        margin-top: -90px !important;
	}

    .faq_element
    {
        height: auto !important;
	}

	/* Fonts */
	body {
		font: 13pt Georgia, "Times New Roman", Times, serif;
		font: 13pt var(--global--font-secondary, Georgia, "Times New Roman", Times, serif);
		line-height: 1.3;
		background: #fff !important;
		color: #000;
	}

	.has-background-dark * {
		color: #000 !important;
	}

	h1,
	.entry-title,
	.singular .entry-title,
	.page-title {
		font-size: 22pt;
		font-weight: bold;
	}

	h2,
	h3,
	h4,
	.has-regular-font-size,
	.has-large-font-size,
	h2.author-title,
	p.author-bio,
	.comments-title,
	.archive-description {
		font-size: 14pt;
		margin-top: 25px;
	}

	.comment-meta,
	.comment-meta .comment-author .fn {
		font-size: 13pt;
	}

	/* Page breaks */
	a {
		page-break-inside: avoid;
	}

	blockquote {
		page-break-inside: avoid;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		page-break-after: avoid;
		page-break-inside: avoid;
	}

	img {
		page-break-inside: avoid;
		page-break-after: avoid;
	}

	table,
	pre,
	figure {
		page-break-inside: avoid;
	}

	ul,
	ol,
	dl {
		page-break-before: avoid;
	}

	/* Links */
	a:link,
	a:visited,
	a {
		background: transparent;
		font-weight: bold;
		text-decoration: underline;
		text-align: left;
	}

	a[href^=http]:after {
		content: " < " attr(href) "> ";
	}

	a:after > img {
		content: "";
	}

	article a[href^="#"]:after {
		content: "";
	}

	a:not(:local-link):after {
		content: " < " attr(href) "> ";
	}

	.entry-title a:after {
		content: "\a< " attr(href) "> ";
		white-space: pre;
		font-size: 14pt;
	}

	.cat-links a:after,
	.tags-links a:after,
	.byline a:after,
	.comment-metadata a:after,
	.wp-block-calendar a:after,
	.wp-block-tag-cloud a:after,
	.page-links a:after {
		content: "";
	}

	/* Visibility */
	.primary-navigation,
	.site-title + .primary-navigation,
	.footer-navigation,
	.entry-footer,
	.post-navigation,
	.navigation.pagination,
	.widget-area,
	.edit-link,
	.more-link,
	.comment-reply,
	.reply,
	.comment .comment-metadata .edit-link,
	.comment-respond,
	#dark-mode-toggler {
		display: none !important;
	}

	.entry .entry-content .wp-block-button .wp-block-button__link,
	.entry .entry-content .button,
	.entry .entry-content .wp-block-file__button {
		color: #000;
		background: none;
	}
}
