/* Base RTL + Persian font (MihanWP) */
html{direction:rtl;}
body{direction:rtl;text-align:right;overflow-x:hidden;}
body,p,h1,h2,h3,h4,h5,h6,li,td,th,dd,dt,blockquote,figcaption,label,input,textarea,select,button,.button,.wp-block-heading{font-family:'Vazirmatn',Tahoma,'Iranian Sans',sans-serif !important;}
/* MihanWP responsive + legibility safety */
img,figure,video,iframe{max-width:100%!important;height:auto;}
figure{margin-inline:0;}
.wp-block-cover{overflow:hidden;}
.wp-block-cover__image-background{object-fit:cover!important;}
.wp-block-cover__inner-container,.wp-block-group__inner-container{max-width:1240px;margin-inline:auto;width:100%;}
.wp-block-group.alignfull{padding-inline:max(1.25rem,calc((100% - 1240px) / 2));}
.wp-block-columns.alignfull,.wp-block-columns.alignwide{max-width:1240px;margin-inline:auto;}
.wp-block-cover .wp-block-cover__inner-container{text-shadow:0 1px 4px rgba(0,0,0,.5);}
@media (max-width:781px){.wp-block-columns{flex-wrap:wrap!important;}.wp-block-column{flex-basis:100%!important;min-width:0!important;}.wp-block-media-text{grid-template-columns:1fr!important;}}

/* rtlcss-flipped theme styles */
/*
Theme Name: Booknest
Theme URI: https://themeshaper.com/booknest
Author: Automattic
Author URI: https://automattic.com
Description: A clean, user-friendly WordPress theme designed for book clubs and readers. Easily organize events, share reviews, and build a vibrant community of literature lovers.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: booknest
Tags: block-styles, two-columns, wide-blocks, featured-images, full-site-editing, rtl-language-support, sticky-post, style-variations, threaded-comments, translation-ready

/* Progresive enhancement to reduce widows and orphans.
/* https://github.com/WordPress/gutenberg/issues/55190
*/

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--secondary);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}

/*
 * Legacy content safety net.
 * Block themes handle <pre> overflow via core/code, core/preformatted,
 * and core/verse block styles. This rule covers raw <pre> content
 * imported from classic-editor posts or pasted HTML, which bypasses
 * the block style system and can otherwise push the page width.
 * See Theme Unit Test: "Markup: HTML Tags and Formatting".
 */
pre {
	overflow-x: auto;
	max-width: 100%;
}