:root {
  --ds-navy: #0a2540;
  --ds-navy-2: #12385a;
  --ds-cyan: #0e9fc2;
  --ds-ink: #172635;
  --ds-muted: #566b7d;
  --ds-line: #cbd7e1;
  --ds-soft: #eef6f9;
  --ds-paper: #fff;
}

* { box-sizing: border-box; }
html { background: #dfe7ed; }
body {
  margin: 0;
  background: #dfe7ed;
  color: var(--ds-ink);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  line-height: 1.48;
}
.ltr { direction: ltr; unicode-bidi: embed; }

.ds-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: rgba(10, 37, 64, .97);
}
.ds-toolbar a,
.ds-toolbar button {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  padding: 8px 14px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.ds-toolbar .primary { background: var(--ds-cyan); border-color: var(--ds-cyan); }

.ds-document { padding: 14px 0 32px; }
.ds-page {
  box-sizing: border-box;
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 14px;
  padding: 11.5mm 11mm 15.5mm;
  overflow: hidden;
  background: var(--ds-paper);
  box-shadow: 0 8px 28px rgba(18, 38, 54, .14);
  break-after: page;
}

.ds-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ds-navy);
}
.ds-brand { display: flex; align-items: center; gap: 9px; }
.ds-brand img { width: 39px; height: 39px; object-fit: contain; }
.ds-brand-fa { font-size: 13.2px; font-weight: 800; color: var(--ds-navy); }
.ds-brand-en {
  font: 700 8px/1.3 Inter, Arial, sans-serif;
  color: var(--ds-muted);
  letter-spacing: .25px;
}
.ds-doc-meta {
  border-collapse: collapse;
  direction: ltr;
  font: 700 7.6px/1.2 Inter, Arial, sans-serif;
}
.ds-doc-meta td { border: 1px solid var(--ds-line); padding: 3.8px 5.8px; }
.ds-doc-meta td:first-child { background: #f5f8fa; color: var(--ds-muted); }

.ds-title-band {
  margin: 8px 0 7px;
  padding: 8px 11px;
  color: #fff;
  background: linear-gradient(120deg, var(--ds-navy), var(--ds-navy-2));
  border-right: 5px solid var(--ds-cyan);
}
.ds-title-band h1 { margin: 0; font-size: 16.6px; line-height: 1.3; }
.ds-title-band p { margin: 2px 0 0; color: #d6edf4; text-align: right; }
.ds-title-en {
  margin-top: 2px;
  font: 800 11px/1.3 Inter, Arial, sans-serif;
  letter-spacing: .55px;
}
.ds-title-spec {
  margin-top: 4px;
  color: #cdeaf1;
  font: 700 8.2px/1.3 Inter, Arial, sans-serif;
}
.ds-kicker {
  margin: 8px 0 4px;
  color: var(--ds-cyan);
  font: 800 8.4px/1.35 Inter, Arial, sans-serif;
  letter-spacing: .75px;
}
.ds-page h2 {
  margin: 0 0 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ds-line);
  color: var(--ds-navy);
  font-size: 12.5px;
}
.ds-page h3 { margin: 0 0 3px; color: var(--ds-navy); font-size: 10.7px; }
.ds-page p { margin: 0 0 6px; font-size: 9px; text-align: justify; }

.ds-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ds-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ds-box {
  padding: 7px;
  border: 1px solid var(--ds-line);
  border-top: 3px solid var(--ds-cyan);
  background: #fff;
}
.ds-box p { font-size: 8.2px; text-align: right; }

.ds-table-wrap {
  width: 100%;
  margin: 5px 0 8px;
  overflow-x: auto;
  border: 1px solid var(--ds-line);
  -webkit-overflow-scrolling: touch;
}
.ds-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 8.55px;
  line-height: 1.34;
}
.ds-table th {
  padding: 4px 5px;
  color: #fff;
  background: var(--ds-navy);
  border: 1px solid var(--ds-navy);
  text-align: right;
}
.ds-table td {
  padding: 4px 5px;
  border: 1px solid var(--ds-line);
  vertical-align: top;
}
.ds-table tr:nth-child(even) td { background: #f7fafc; }
.ds-table td:first-child { font-weight: 700; color: var(--ds-navy); }
.ds-tech-table {
  direction: ltr;
  font-family: Inter, Arial, sans-serif;
  font-size: 7.7px;
  font-variant-numeric: tabular-nums;
  min-width: 760px;
}
.ds-tech-table th,
.ds-tech-table td { text-align: center; }
.ds-tech-table td:first-child { text-align: left; min-width: 100px; }
.ds-table-caption {
  margin: 8px 0 3px;
  color: var(--ds-navy);
  font-size: 10px;
  font-weight: 800;
}
.ds-table-caption span {
  display: inline-block;
  margin-left: 6px;
  color: var(--ds-cyan);
  font: 800 7.7px/1 Inter, Arial, sans-serif;
  letter-spacing: .5px;
}

.ds-note {
  margin: 6px 0;
  padding: 6px 8px;
  color: #2f4658;
  background: var(--ds-soft);
  border-right: 3px solid var(--ds-cyan);
  font-size: 8.25px;
}
.ds-note.en { direction: ltr; text-align: left; font-family: Inter, Arial, sans-serif; }
.ds-list { margin: 0; padding: 0 17px 0 0; font-size: 8.6px; }
.ds-list li { margin: 0 0 3px; }
.ds-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
  margin: 6px 0 8px;
  padding: 0;
  list-style: none;
}
.ds-checklist li {
  padding: 5px 7px;
  border: 1px solid var(--ds-line);
  background: #f9fbfc;
  font-size: 8.45px;
}

.ds-schematic {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 8px;
  align-items: stretch;
  margin-top: 6px;
}
.ds-drawing {
  min-height: 118px;
  border: 1px solid var(--ds-line);
  background: linear-gradient(135deg, #f7fbfd, #fff);
  display: grid;
  place-items: center;
}
.ds-drawing svg { width: 100%; height: 118px; }
.ds-drawing-note {
  padding: 8px;
  background: #f6f9fb;
  border: 1px solid var(--ds-line);
  font-size: 8.25px;
}
.ds-drawing-note strong {
  display: block;
  color: var(--ds-navy);
  font-size: 10.5px;
  margin-bottom: 3px;
}
.ds-cta {
  margin-top: 8px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(120deg, var(--ds-navy), var(--ds-navy-2));
  border-right: 5px solid var(--ds-cyan);
}
.ds-cta strong { display: block; font-size: 12.7px; }
.ds-cta span { display: block; margin-top: 4px; font-size: 8.7px; }
.ds-footer {
  position: absolute;
  left: 11mm;
  right: 11mm;
  bottom: 6mm;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--ds-line);
  padding-top: 5px;
  color: var(--ds-muted);
  font-size: 7.3px;
}
.ds-footer-page {
  direction: ltr;
  font-family: Inter, Arial, sans-serif;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ds-document { padding: 0; }
  .ds-page {
    width: 100%;
    min-height: auto;
    margin: 0 0 12px;
    padding: 18px 14px 58px;
    box-shadow: none;
    overflow: visible;
  }
  .ds-header,
  .ds-grid-2,
  .ds-grid-3,
  .ds-grid-4,
  .ds-schematic { grid-template-columns: 1fr; }
  .ds-doc-meta { width: 100%; margin-top: 6px; }
  .ds-footer { position: static; margin-top: 14px; display: block; }
  .ds-checklist { grid-template-columns: 1fr; }
  .ds-title-band h1 { font-size: 17px; }
  .ds-toolbar { position: static; }
  .ds-tech-table { min-width: 720px; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff; }
  .ds-toolbar { display: none; }
  .ds-document { padding: 0; }
  .ds-page {
    margin: 0;
    box-shadow: none;
    width: 210mm;
    min-height: 297mm;
    break-after: page;
    padding: 10.5mm 10mm 14.5mm;
  }
  .ds-page:last-child {
    break-after: auto;
  }
  .ds-table-wrap { overflow: visible; }
  .ds-tech-table { min-width: 0; font-size: 6.85px; }
  .ds-table { font-size: 8.05px; }
  .ds-footer { left: 10mm; right: 10mm; }
}
