/* Shared Persian typography for the application, patient portal and dialogs. */
@font-face {
  font-family: Estedad;
  src: url('../fonts/Estedad-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: Vazirmatn, Tahoma, sans-serif;
  --font-heading: Estedad, Vazirmatn, Tahoma, sans-serif;
}

html, body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea, option, summary, dialog, kbd {
  font-family: var(--font-ui);
}

h1, h2, h3, h4, h5, h6,
.brand, .page-heading h1, .section-title h2, .card h2,
.stat strong, .activity-total strong, .login-visual h2,
.rad-message-box__title, .rad-message-box__heading {
  font-family: var(--font-heading);
  font-synthesis: none;
}

h1 { font-weight: 750; line-height: 1.5; }
h2, h3 { font-weight: 700; line-height: 1.6; }

label, legend, th, .nav-caption, .eyebrow {
  font-family: var(--font-ui);
}

th { font-weight: 650; }
button, .button, [role="button"] { font-weight: 650; }

input, select, textarea {
  line-height: 1.7;
  font-weight: 450;
}

input::placeholder, textarea::placeholder {
  font-family: var(--font-ui);
  font-weight: 400;
}

table, .table-wrap, .rad-message-box, .rad-toast {
  font-family: var(--font-ui);
}

td[dir="ltr"], input[dir="ltr"], input[type="number"],
.stat strong, .activity-total strong, .print-meta, .report-totals {
  font-variant-numeric: tabular-nums;
}

.chart-label, .chart-count { font-family: var(--font-ui); }

@media print {
  html, body, table, input, textarea { font-family: var(--font-ui) !important; }
  h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading) !important; }
}
