/* مستندات حسابیار هوشمند زووین — docs.zovin.ir
 *
 * Tokens are copied from web/app/organic.css rather than imported: the guide is
 * a static site served from its own host with no build step and no application
 * behind it, so it cannot reach the app's stylesheet. Keep the values below in
 * step with organic.css when the palette moves.
 */

:root {
  --bg: #f5ead8;
  --surface: #ebddc5;
  --card: #f9f4ed;
  --ink: #201e1d;
  --muted: #645c50;
  --accent: #c67139;
  --accent-ink: #8c491a;
  --accent-100: #fff2eb;
  --green: #7a8a5e;
  --green-100: #e1eecc;
  --green-ink: #3d472b;
  --divider: color-mix(in srgb, #201e1d 16%, transparent);
  --radius: 16px;
  --sidebar: 268px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Vazirmatn, "IRANSans", Tahoma, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.85;
}

/* ── shell ─────────────────────────────────────────────────────────────── */

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: var(--surface);
  border-inline-start: 1px solid var(--divider);
  padding: 22px 18px 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.brand-name { font-weight: 800; font-size: 15.5px; }
.brand-sub { color: var(--muted); font-size: 12px; margin: 0 0 18px; }

.nav-group { margin-bottom: 16px; }
.nav-title {
  font-size: 11.5px; font-weight: 800; color: var(--muted);
  letter-spacing: .02em; margin-bottom: 5px; padding-inline-start: 8px;
}
.nav a {
  display: block; padding: 5px 9px; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-size: 13.5px;
}
.nav a:hover { background: var(--accent-100); color: var(--accent-ink); }

.content { flex: 1; min-width: 0; padding: 40px 44px 96px; max-width: 980px; }

/* ── type ──────────────────────────────────────────────────────────────── */

h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; line-height: 1.4; }
h2 {
  font-size: 21px; font-weight: 800; margin: 46px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--divider);
}
h3 { font-size: 16.5px; font-weight: 800; margin: 26px 0 8px; }
p { margin: 0 0 12px; }
.lede { font-size: 16.5px; color: var(--muted); margin-bottom: 26px; }
a { color: var(--accent-ink); }

ul, ol { margin: 0 0 14px; padding-inline-start: 22px; }
li { margin-bottom: 5px; }

code {
  background: var(--card); border: 1px solid var(--divider);
  border-radius: 6px; padding: 1px 6px; font-size: 13px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  direction: ltr; display: inline-block;
}

/* ── figures ───────────────────────────────────────────────────────────── */

figure { margin: 18px 0 26px; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--divider); border-radius: var(--radius);
  background: #fff;
}
figure.phone img { width: 300px; margin-inline: auto; border-radius: 22px; }
figcaption {
  color: var(--muted); font-size: 12.5px; margin-top: 7px; text-align: center;
}

/* ── notes ─────────────────────────────────────────────────────────────── */

.note, .warn, .tip {
  border-radius: var(--radius); padding: 12px 15px; margin: 16px 0;
  border-inline-start: 3px solid;
}
.note { background: var(--accent-100); border-color: var(--accent); }
.tip  { background: var(--green-100);  border-color: var(--green); }
.warn { background: #fae0d9;           border-color: #93372a; }
.note p:last-child, .tip p:last-child, .warn p:last-child { margin-bottom: 0; }
.note strong, .tip strong, .warn strong { font-weight: 800; }

/* ── steps ─────────────────────────────────────────────────────────────── */

ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps > li {
  counter-increment: s; position: relative;
  padding-inline-start: 38px; margin-bottom: 14px;
}
ol.steps > li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 1px;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}

/* ── say-this cards ────────────────────────────────────────────────────── */

.say {
  background: var(--card); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 12px 15px; margin: 12px 0;
}
.say-label { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.say-text { font-size: 15px; font-weight: 700; }

/* ── tables ────────────────────────────────────────────────────────────── */

table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; }
th, td { padding: 8px 11px; border-bottom: 1px solid var(--divider); text-align: right; }
th { font-weight: 800; background: var(--card); }

/* ── platform pills ────────────────────────────────────────────────────── */

.platforms { display: flex; gap: 7px; margin: 0 0 22px; flex-wrap: wrap; }
.pill {
  font-size: 12px; padding: 3px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--divider); color: var(--muted);
}
.pill.on { background: var(--green-100); border-color: var(--green); color: var(--green-ink); font-weight: 700; }

/* ── small screens ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    border-inline-start: 0; border-bottom: 1px solid var(--divider);
  }
  .content { padding: 26px 20px 64px; }
  figure.phone img { width: 100%; max-width: 300px; }
}
