/* ============================================
   Datasheet page — A4-oriented printable sheet
   ============================================ */

body.ds-page { background: #eef2f7; margin: 0; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; }

/* ---- screen toolbar ---- */
.ds-toolbar { background: #0a1628; color: #fff; padding: 12px 0; }
.ds-toolbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ds-back { color: rgba(255, 255, 255, .82); font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ds-back:hover { color: #fff; }
.ds-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.ds-tools .btn { text-decoration: none; padding: 9px 18px; font-size: 13px; }

/* ---- the sheet ---- */
.ds-sheet {
    background: #fff;
    width: 100%;
    max-width: 860px;
    margin: 28px auto 60px;
    padding: 44px 52px 40px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .10);
    border-radius: 4px;
}

.ds-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 24px; padding-bottom: 20px; border-bottom: 2px solid #0a1628; margin-bottom: 28px;
}
.ds-brand { display: flex; align-items: center; gap: 12px; }
.ds-brand i { font-size: 30px; color: #0a66c2; }
.ds-brand strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #0a1628; line-height: 1.1; }
.ds-brand span { display: block; font-size: 9.5px; letter-spacing: 2.4px; color: #94a3b8; margin-top: 2px; }
.ds-meta { text-align: right; }
.ds-meta-title { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #0a66c2; margin-bottom: 6px; }
.ds-meta-co { font-size: 12px; color: #475569; font-weight: 500; margin-bottom: 4px; }
.ds-meta-line { font-size: 11.5px; color: #94a3b8; line-height: 1.6; }

.ds-block { margin-bottom: 30px; }
.ds-block h2 {
    font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: #0a1628; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0;
}

/* identity block */
.ds-identity { display: grid; grid-template-columns: 1fr 150px; gap: 32px; align-items: start; }
.ds-cat {
    display: inline-block; font-size: 11px; font-weight: 600; color: #0a66c2;
    background: #f0f6ff; border-radius: 20px; padding: 3px 12px; margin-bottom: 12px;
}
.ds-id-text h1 { font-size: 25px; font-weight: 700; line-height: 1.3; color: #0a1628; margin-bottom: 12px; }
.ds-ov { font-size: 14px; color: #475569; line-height: 1.8; }
.ds-id-img {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 120px;
}
.ds-id-img img { max-width: 100%; height: auto; display: block; }

.ds-contact p { font-size: 13.5px; color: #475569; line-height: 1.8; margin-bottom: 14px; }
.ds-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ds-contact-grid div { font-size: 13px; color: #334155; display: flex; align-items: center; gap: 9px; }
.ds-contact-grid i { color: #0a66c2; width: 15px; text-align: center; }

.ds-footer { border-top: 1px solid #e2e8f0; padding-top: 16px; margin-top: 8px; }
.ds-footer p { font-size: 11px; color: #94a3b8; line-height: 1.7; font-style: italic; }

/* missing state */
.ds-missing { padding: 90px 0; text-align: center; }
.ds-missing h2 { font-size: 22px; font-weight: 700; color: #0a1628; margin-bottom: 10px; }
.ds-missing p { font-size: 14px; color: #64748b; margin-bottom: 22px; }
.ds-missing .btn { text-decoration: none; }

/* ---- print ---- */
@media print {
    @page { size: A4; margin: 14mm; }
    body.ds-page { background: #fff; }
    .no-print, .ds-toolbar { display: none !important; }
    .ds-sheet {
        max-width: none; width: auto; margin: 0; padding: 0;
        box-shadow: none; border-radius: 0;
    }
    .ds-header { margin-bottom: 20px; }
    .ds-block { margin-bottom: 22px; break-inside: avoid; }
    .spec-row { break-inside: avoid; }
    .ds-id-img { border-color: #cbd5e1; }
    a { color: inherit; text-decoration: none; }
}

@media (max-width: 768px) {
    .ds-sheet { padding: 26px 20px 28px; margin: 16px 10px 40px; }
    .ds-header { flex-direction: column; gap: 14px; }
    .ds-meta { text-align: left; }
    .ds-identity { grid-template-columns: 1fr; }
    .ds-contact-grid { grid-template-columns: 1fr; }
}
