/* navak.emidox.com: one stylesheet, no external fonts, no scripts (CSP default-src 'self'). */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #1d2330;
  --muted: #5a6273;
  --line: #dfe3ea;
  --accent: #1f5fd1;
  --soft: #f4f6f9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --fg: #e6e9ef;
    --muted: #a3abba;
    --line: #2c323d;
    --accent: #7aa7ff;
    --soft: #1a1e26;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
html[lang="fa"] body { font-family: "Vazirmatn", system-ui, sans-serif; line-height: 1.85; }
[lang="en"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.top, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--fg); text-decoration: none; }
.lang { font-size: 0.95rem; }

h1 { font-size: 1.75rem; line-height: 1.3; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.4; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.5rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent); overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.note { color: var(--muted); }

.table { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.95rem; }
th, td { text-align: start; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
th { background: var(--soft); }
tr:last-child td { border-bottom: 0; }

footer { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
footer [aria-current="page"] { color: var(--fg); text-decoration: none; font-weight: 700; }
