/* HESAMPEDIA typography v1.8: the same Estedad family used by BERIMJA.
 * The font binary is copied from the user's *local* BERIMJA project during
 * the installer. No external font service, tracking, or runtime requests.
 * Original Estedad: https://github.com/aminabedi68/Estedad (SIL OFL 1.1).
 */
@font-face {
  font-family: "HesampediaEstedad";
  src: url("../fonts/estedad/Estedad-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --hesampedia-ui-font: "HesampediaEstedad", Tahoma, "Segoe UI", sans-serif;
}
html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] select,
html[lang="fa"] textarea,
html[lang="fa"] option {
  font-family: var(--hesampedia-ui-font) !important;
  letter-spacing: normal;
}
html[lang="fa"] :is(h1,h2,h3,h4,h5,h6,.wiki-article-title,.wiki-side-nav,.nav,.ecu-title,.ecu-card strong,.portal-index span,.research-kpi span) {
  font-family: var(--hesampedia-ui-font) !important;
  letter-spacing: normal;
}
html[lang="fa"] body { line-height: 2; }
html[lang="fa"] :is(h1,h2) { line-height: 1.56; }
html[lang="fa"] :is(h3,h4,h5,h6) { line-height: 1.7; }
/* Keep identifiers and the HESAMPEDIA Latin wordmark visually distinct. */
html[lang="fa"] :is(.brand-mark,.brand-text strong,.research-target-ref,code,pre,kbd,samp) {
  font-family: ui-monospace, Consolas, "Liberation Mono", monospace !important;
  letter-spacing: normal;
}
html[lang="fa"] .brand-text strong {
  font-family: Arial, "Segoe UI", sans-serif !important;
  letter-spacing: 1px;
}
/* Buttons and placeholders must use the same Persian face. */
html[lang="fa"] :is(button,input,select,textarea)::placeholder {
  font-family: var(--hesampedia-ui-font);
}
