/* E.M.M document and content styles; no default visual header/footer. */
body.emm-ui-active{font-family:emm-site-vazir,Vazirmatn,Tahoma,"Segoe UI",Arial,sans-serif;margin:0;background:#F7EDE3;color:#28351F;direction:rtl}
.emm-search-form input[type=search]{width:100%;min-width:0;border:1px solid #c4b9ad;background:#fffaf4;padding:.6rem .8rem;border-radius:.85rem;color:#28351F}
.emm-search-form button{border:0;border-radius:.85rem;background:#344D23;color:#fff;min-height:42px;padding:.5rem .8rem;cursor:pointer}
.emm-main{box-sizing:border-box;min-width:0;min-height:30vh;padding:1.4rem 0 3rem;background:var(--emm-color-ricotta,#F7EDE3);color:var(--emm-color-text,#28351F)}
.emm-main .emm-container{width:min(calc(100% - 2rem),var(--emm-layout-container));margin-inline:auto}
.emm-main img{max-width:100%;height:auto}
.emm-main a{overflow-wrap:anywhere}
.emm-main :focus-visible{outline:3px solid var(--emm-color-focus);outline-offset:3px}
.emm-main .emm-page-title{font-size:clamp(1.45rem,2.8vw,2rem);color:var(--emm-color-olive);margin:0 0 1.3rem}
.emm-main .emm-entry{min-width:0;overflow-wrap:break-word}
.emm-main .emm-entry-content{max-width:100%;line-height:1.9}
.emm-main .emm-entry-content > *{max-width:100%}
.emm-main .emm-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.emm-main .emm-post-card{border-radius:var(--emm-radius-md);padding:1rem;background:var(--emm-color-surface);box-shadow:var(--emm-shadow-clay)}
.emm-main .emm-post-card h2{font-size:1.1rem;line-height:1.5;margin:.75rem 0}
.emm-main .emm-post-card a{color:var(--emm-color-olive)}
.emm-main .emm-pagination{margin-block:1.5rem;display:flex;gap:.7rem;flex-wrap:wrap}
.emm-main .emm-pagination .page-numbers{padding:.3rem .75rem;background:var(--emm-color-surface);border-radius:.7rem}
.emm-main .emm-comments{margin-block-start:2rem}
.emm-main .emm-comments :is(input:not([type=checkbox]),textarea){max-width:100%;padding:.7rem;border:1px solid var(--emm-color-line);border-radius:var(--emm-radius-sm);background:var(--emm-color-surface)}
.emm-main .emm-comments input[type=submit]{background:var(--emm-color-olive);color:#fff;border:0;min-height:44px;cursor:pointer}
@media(max-width:900px){.emm-main .emm-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.emm-main .emm-post-grid{grid-template-columns:1fr}.emm-main{padding-top:1rem}}

/* WordPress skip link and accessible responsive media. */
.emm-skip-link{position:absolute!important;top:-100px;left:12px;z-index:9999;padding:.65rem 1rem;background:#fff;color:#344D23;display:inline-block}
.emm-skip-link:focus{top:10px;width:auto;height:auto;clip:auto;clip-path:none;overflow:visible;white-space:normal;outline:3px solid #8B522B;outline-offset:3px}
.emm-main .woocommerce :is(input,select,textarea,button){font:inherit}
.emm-main .woocommerce :is(label,button){overflow-wrap:break-word}
.emm-main .woocommerce table{max-width:100%}
.emm-main .woocommerce :is(.woocommerce-product-gallery,.summary,.cart-collaterals){min-width:0}
@media(max-width:600px){.emm-main .woocommerce :is(.woocommerce-checkout,.woocommerce-cart-form){max-width:100%;overflow-wrap:break-word}}

/* AzimiBag browser surfaces: native scrollbars, no scroll interception. */
:root{color-scheme:light;scrollbar-color:#87935a #eee3d6;scrollbar-width:thin}
body,body *{scrollbar-color:#87935a #eee3d6}
::-webkit-scrollbar{width:9px;height:8px}::-webkit-scrollbar-track{background:#eee3d6;border-radius:10px}::-webkit-scrollbar-thumb{background:#87935a;border:2px solid #eee3d6;border-radius:12px}::-webkit-scrollbar-thumb:hover{background:#526b32}::-webkit-scrollbar-corner{background:#eee3d6}

body.emm-ui-active :is(.emm-main,.emm-site-header,.emm-site-footer) :is(input,button,textarea,select){font-family:inherit}
