/* دفترچهٔ برند ابرک (/brand). فقط همین صفحه این فایل را می‌آورد؛ در bundle سراسری نیست.
   سه فونت رسمی برند (فلسفه، ایران‌سنس ایکس، کلمه) تا خرید مجوز وب‌فونت بار نمی‌شوند؛
   نمونه‌ها با فونت انجمن (AnjomanMax، بارشده در site.css) نمایش داده می‌شوند. */

.ab-brand {
  --brand-navy: var(--ab-brand-navy, #032c72);
  --brand-cyan: var(--ab-brand-cyan, #6ee7ff);
  --brand-amber: var(--ab-brand-amber, #f4b26b);
  --brand-cyan-ink: var(--ab-brand-cyan-ink, #0e6f84);
  --brand-amber-ink: var(--ab-brand-amber-ink, #8a4b0a);
  --brand-soft: var(--ab-brand-navy-soft, #e6f9ff);
  --brand-ink: var(--color-text, #111827);
  --brand-muted: var(--color-text-muted, #475467);
  --brand-line: var(--color-border, #e4e7ec);
  --brand-paper: var(--color-surface, #fff);
  font-family: "AnjomanMax", Vazirmatn, Tahoma, sans-serif;
  color: var(--brand-ink);
  background: var(--brand-paper);
  line-height: 1.9;
}
.ab-brand .ab-container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.ab-brand h1, .ab-brand h2 {
  font-family: "AnjomanMax", Vazirmatn, Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-navy);
  margin: 0 0 12px;
}
.ab-brand h1 { font-size: clamp(32px, 5vw, 48px); }
.ab-brand h2 { font-size: clamp(24px, 3.4vw, 32px); }
.ab-brand h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.ab-brand p { margin: 0 0 12px; }
.ab-brand code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  direction: ltr;
  unicode-bidi: isolate;
}

.ab-brand-hero {
  background: linear-gradient(180deg, var(--brand-soft), var(--brand-paper));
  padding: 56px 0 32px;
}
.ab-brand-kicker { color: var(--brand-cyan-ink); font-weight: 700; margin-bottom: 4px; }
.ab-brand-lead { font-size: 18px; max-width: 60ch; color: var(--brand-muted); }
.ab-brand-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ab-brand-toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-paper);
  color: var(--brand-navy); text-decoration: none; font-weight: 700;
}
.ab-brand-toc a:hover, .ab-brand-toc a:focus-visible { border-color: var(--brand-navy); }

.ab-brand-sec { padding: 40px 0; border-top: 1px solid var(--brand-line); }
@media (min-width: 768px) { .ab-brand-sec { padding: 64px 0; } }

.ab-brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.ab-brand-logo-card {
  margin: 0; padding: 32px 16px; border: 1px solid var(--brand-line); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--brand-paper); min-height: 180px;
}
.ab-brand-logo-card img { max-width: 100%; height: auto; }
.ab-brand-logo-card figcaption { font-size: 14px; color: var(--brand-muted); text-align: center; }
.ab-brand-logo-card.is-dark { background: var(--brand-navy); border-color: var(--brand-navy); }
.ab-brand-logo-card.is-dark figcaption { color: #fff; }
.ab-brand-mono { color: var(--brand-ink); }

.ab-brand-rules { padding-inline-start: 20px; margin: 8px 0 0; }
.ab-brand-rules li { margin-bottom: 6px; }

.ab-brand-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.ab-brand-swatch {
  border-radius: 16px; padding: 20px 16px; min-height: 120px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
}
.ab-brand-swatch.is-light { border: 1px solid var(--brand-line); }
.ab-brand-swatch b { font-size: 16px; }
.ab-brand-swatch code { font-size: 13px; opacity: .9; }
.ab-brand-swatch small { font-size: 12px; opacity: .85; direction: ltr; text-align: end; }

.ab-brand-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.ab-brand-table caption { text-align: start; font-weight: 700; margin-bottom: 8px; color: var(--brand-navy); }
.ab-brand-table th, .ab-brand-table td { padding: 10px 12px; border-bottom: 1px solid var(--brand-line); text-align: start; }
.ab-brand-table th { color: var(--brand-muted); font-weight: 700; font-size: 14px; }
.ab-brand-note { font-size: 14px; color: var(--brand-muted); }

.ab-brand-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; }
.ab-brand-type-card { border: 1px solid var(--brand-line); border-radius: 16px; padding: 20px; }
.ab-brand-type-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ab-brand-type-card header h3 { margin: 0; }
.ab-brand-type-card header span { font-size: 13px; color: var(--brand-cyan-ink); font-weight: 700; }
.ab-brand-type-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 14px; }
.ab-brand-type-card dt { color: var(--brand-muted); }
.ab-brand-type-card dd { margin: 0; }
.ab-brand-sample { margin: 0 0 8px; line-height: 1.5; color: var(--brand-ink); }
.ab-brand-sample-falsafeh { font-family: "AnjomanMax", Vazirmatn, Tahoma, sans-serif; font-weight: 700; font-size: 34px; color: var(--brand-navy); }
.ab-brand-sample-falsafeh.is-light { font-weight: 300; font-size: 26px; }
.ab-brand-sample-iransansx { font-family: "AnjomanMax", Vazirmatn, Tahoma, sans-serif; font-size: 16px; line-height: 1.9; }
.ab-brand-sample-iransansx.is-bold { font-weight: 700; }
.ab-brand-sample-kalameh { font-family: "AnjomanMax", Vazirmatn, Tahoma, sans-serif; font-size: 22px; }
.ab-brand-sample-kalameh.is-black { font-weight: 900; font-size: 56px; color: var(--brand-navy); line-height: 1.2; }
.ab-brand-sample-kalameh.is-thin { font-weight: 100; font-size: 28px; }

.ab-brand-ui { display: grid; gap: 16px; margin: 16px 0; }
.ab-brand-ui-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ab-brand .ab-btn-ghost { border: 1px solid var(--brand-navy); color: var(--brand-navy); background: transparent; }
.ab-brand-card {
  flex: 1 1 180px; border: 1px solid var(--brand-line); border-radius: 16px; padding: 20px;
  background: var(--brand-paper);
}
.ab-brand-card.is-accent { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.ab-brand-card-num { font-family: "AnjomanMax", Vazirmatn, Tahoma, sans-serif; font-weight: 900; font-size: 40px; line-height: 1.1; margin: 0; }
.ab-brand-card.is-accent .ab-brand-card-num { color: var(--brand-cyan); }
.ab-brand-card-label { margin: 4px 0 0; font-size: 14px; color: var(--brand-muted); }
.ab-brand-card.is-accent .ab-brand-card-label { color: #fff; }
.ab-brand-alert {
  flex: 2 1 260px; border-radius: 10px; padding: 14px 16px; background: var(--brand-soft);
  color: var(--brand-navy); border-inline-start: 4px solid var(--brand-cyan-ink); align-self: center;
}

.ab-brand-voice { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.ab-brand-voice-col { border-radius: 16px; padding: 16px 20px; background: var(--brand-soft); }
.ab-brand-voice-col h3 { margin-top: 0; color: var(--brand-cyan-ink); }
.ab-brand-voice-col.is-bad { background: #fff4e8; }
.ab-brand-voice-col.is-bad h3 { color: var(--brand-amber-ink); }
.ab-brand-voice-col ul { margin: 0; padding-inline-start: 20px; }

.ab-brand-downloads { padding-inline-start: 20px; columns: 2; column-gap: 24px; }
.ab-brand-downloads li { margin-bottom: 6px; break-inside: avoid; }
.ab-brand-downloads a { color: var(--brand-navy); font-weight: 700; }


@page { size: A4; margin: 15mm; }
@media print {
  .ab-header, header.ab-header, footer, .ab-footer, .ab-brand-toc, .ab-brand-downloads { display: none !important; }
  .ab-brand { background: #fff; color: #111; }
  .ab-brand-sec { break-before: page; border-top: 0; padding: 0 0 24px; }
  .ab-brand-hero { padding: 0 0 24px; background: none; }
  .ab-brand-logo-card, .ab-brand-swatch, .ab-brand-type-card, .ab-brand-card { break-inside: avoid; }
  .ab-brand-logo-card.is-dark, .ab-brand-swatch, .ab-brand-card.is-accent { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ab-brand a { text-decoration: none; color: inherit; }
}
