/* Native eMJey source. Historical import: ops/maintenance/visual-parity/port-manifest.json. Edit here directly. */
/* Shared reading system, loaded after route styles. Keep icon fonts on their
   own elements; never use an all-descendants font reset. Brand artwork is unchanged. */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
body {
    --site-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --reading-leading: 1.7;
    --heading-leading: 1.35;
    font-family: var(--site-font);
    line-height: var(--reading-leading);
}
html:is([lang^="fa"],[lang^="ar"]) body {
    --site-font: 'Vazirmatn', Tahoma, Arial, sans-serif;
    --reading-leading: 1.8;
    --heading-leading: 1.5;
}
body :is(h1,h2,h3,h4,h5,h6,input,textarea,select,button,.emjey-button) { font-family: var(--site-font); }
body :is(h1,h2,h3,h4,h5,h6) { font-weight: 600; letter-spacing: normal; line-height: var(--heading-leading); }
body h1 { font-size: clamp(26px,2.2vw,32px); }
body h2 { font-size: clamp(22px,1.9vw,26px); }
body h3 { font-size: clamp(19px,1.6vw,22px); }
body h4 { font-size: 18px; }
body h5 { font-size: 16px; }
body h6 { font-size: 15px; }

/* The story title and body share one scale on every language's article pages. */
.emjey-design-preview .emjey-main .emjey-editorial h1 {
    font-size: clamp(26px,2.2vw,32px); line-height: var(--heading-leading);
    font-weight: 600; letter-spacing: normal; margin-block-end: 16px;
}
html[dir="rtl"] .emjey-design-preview .emjey-main .emjey-editorial h1 {
    line-height: var(--heading-leading); letter-spacing: normal;
}
.emjey-design-preview .emjey-main .emjey-editorial [property="text"] {
    font-family: var(--site-font); font-size: 18px; line-height: var(--reading-leading);
    color: #292b29; text-align: start;
}
html[dir="rtl"] .emjey-design-preview .emjey-main .emjey-editorial [property="text"] {
    line-height: var(--reading-leading);
}
.emjey-editorial [property="text"] :is(p,.emjey-legacy-paragraph) { margin-block: 0 1em; }
.emjey-editorial [property="text"] :is(p,div,span,font,li,a):not(.fa):not(.fas):not(.far):not(.fab) {
    font-family: inherit !important;
}
.emjey-editorial [property="text"] :is(font,span[style*="font-size"]) { font-size: inherit !important; line-height: inherit !important; }
.emjey-editorial [property="text"] :is(h2,h3,h4,h5,h6) {
    font-family: var(--site-font); line-height: var(--heading-leading);
    margin-block: 1.5em .55em; font-weight: 600;
}
.emjey-editorial [property="text"] h2 { font-size: 24px; }
.emjey-editorial [property="text"] h3 { font-size: 21px; }
.emjey-editorial [property="text"] h4 { font-size: 19px; }
.emjey-editorial [property="text"] :is(ul,ol) { margin-block: 0 1em; }
.emjey-editorial [property="text"] li + li { margin-block-start: .35em; }
.emjey-design-preview .emjey-editorial [property="text"] :is(figcaption,.emjey-legacy-caption) { line-height: 1.6; }

/* Home news lists stay compact; their heading level does not imply a huge title. */
.emjey-language-home .emjey-article h2.emjey-mod-article-title {
    font-family: var(--site-font); font-size: 16px; line-height: 1.6; font-weight: 600;
}
.emjey-language-home .emjey-article p { line-height: var(--reading-leading); }
html[lang^="fa"] .emjey-language-home .emjey-mobile-home h1 { line-height: 1.45; }
.emjey-design-preview .emjey-main :is(.com-contact,.finder,.com-search,.search,.emjey-tag-intro) h1,
.emjey-account-page .emjey-main :is(.com-users-login,.com-users-registration,.com-users-reset,.com-users-remind) h1 {
    font-size: clamp(26px,2.2vw,32px); line-height: var(--heading-leading);
}
@media (max-width: 639px) {
    .emjey-design-preview .emjey-main .emjey-editorial [property="text"] { font-size: 17px; }
    .emjey-design-preview .emjey-main .emjey-editorial h1 { font-size: 26px; }
    .emjey-editorial [property="text"] h2 { font-size: 22px; }
    .emjey-editorial [property="text"] h3 { font-size: 20px; }
}
