
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* One display voice for titles and figures in both scripts. */
h1, h2, h3,
.page__title,
.auth__title,
.topbar__title,
.sidebar__name,
.stat-card__value {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}

:is(h1, h2, h3, .page__title, .auth__title, .topbar__title, .sidebar__name, .stat-card__value):lang(ar) {
  letter-spacing: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* A link inside running text must not rely on color alone (WCAG 1.4.1). */
:where(p, li, small, dd, td, .auth__footer) > a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: .18em;
}

.app-icon {
  width: 1.12em;
  height: 1.12em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.16em;
}

.nav__icon,
.mobile-nav__icon,
.topbar__menu-icon,
.notif-bell__icon,
.notif__icon,
.notif-live__icon,
.stat-card__icon,
.certificate-card__seal,
.certificate__seal {
  color: currentColor;
}

