/* Print-friendly guides — open in Chrome → Ctrl+P → Save as PDF */
@page {
    size: A4;
    margin: 18mm 16mm;
}
* { box-sizing: border-box; }
body {
    font-family: "Segoe UI", Tahoma, "GE SS Two", Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.65;
    color: #1a1a2e;
    max-width: 210mm;
    margin: 0 auto;
    padding: 12mm;
}
body.rtl { direction: rtl; text-align: right; }
body.ltr { direction: ltr; text-align: left; }

.cover {
    page-break-after: always;
    text-align: center;
    padding: 40mm 10mm;
    border: 3px solid #16B19B;
    border-radius: 8px;
    margin-bottom: 20mm;
}
.cover h1 { font-size: 22pt; color: #0D8A78; margin: 0 0 8mm; }
.cover .meta { color: #555; font-size: 10pt; }
.cover .pdf-hint {
    margin-top: 15mm; padding: 4mm 6mm; background: #f0faf8;
    border-radius: 6px; font-size: 9.5pt; text-align: start;
}

h2 { color: #0D8A78; font-size: 14pt; margin: 10mm 0 4mm; page-break-after: avoid; border-bottom: 2px solid #bce3de; padding-bottom: 2mm; }
h3 { color: #374261; font-size: 12pt; margin: 6mm 0 3mm; page-break-after: avoid; }
h4 { font-size: 11pt; margin: 4mm 0 2mm; color: #0D8A78; }

.toc { page-break-after: always; }
.toc ol { line-height: 1.9; }
.toc a { color: #0D8A78; text-decoration: none; }

table.data {
    width: 100%; border-collapse: collapse; margin: 3mm 0 6mm; font-size: 9.5pt;
    page-break-inside: avoid;
}
table.data th, table.data td {
    border: 1px solid #ccc; padding: 2.5mm 3mm; vertical-align: top;
}
table.data th { background: #e8f7f4; font-weight: 700; }

.kbd, code {
    font-family: Consolas, monospace; font-size: 9pt;
    background: #f4f4f4; padding: 1px 4px; border-radius: 3px;
}
.btn-doc {
    display: inline-block; background: #16B19B; color: #fff;
    padding: 1mm 3mm; border-radius: 4px; font-size: 9pt; font-weight: 600;
}
.note { background: #fff8e6; border-inline-start: 4px solid #FFCC00; padding: 3mm 4mm; margin: 4mm 0; }
.warn { background: #fde8ee; border-inline-start: 4px solid #E9335F; padding: 3mm 4mm; margin: 4mm 0; }
.step { counter-increment: step; margin: 3mm 0; padding-inline-start: 8mm; position: relative; }
.steps { counter-reset: step; }
.step::before {
    content: counter(step); position: absolute; inset-inline-start: 0;
    width: 6mm; height: 6mm; background: #16B19B; color: #fff;
    border-radius: 50%; text-align: center; font-size: 8pt; line-height: 6mm; font-weight: 700;
}

ul, ol { margin: 2mm 0 4mm; padding-inline-start: 6mm; }
li { margin: 1.5mm 0; }

.screen-no-print { margin-bottom: 8mm; padding: 4mm; background: #eee; border-radius: 6px; }
@media print {
    .screen-no-print { display: none !important; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
    h2, h3 { page-break-after: avoid; }
    .section-block { page-break-inside: avoid; }
}

.section-block { margin-bottom: 8mm; }
