/* Demoz one-page brochure (A4), English and Amharic. Same navy, paper and payslip as the website. */
:root {
    --navy: #001A36; --navy-2: #0B2A4E; --on-navy-2: #B9C7DA;
    --paper: #F5F7FA; --ink: #14233A; --ink-2: #4A5A70; --ink-3: #6E7B90;
    --rule: #DDE2EA; --rule-2: #C6CFDB; --net: #17663F; --minus: #A3341F;
}
@page { size: A4; margin: 0; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #D5DAE1; }
body {
    font-family: 'IBM Plex Sans', 'Noto Sans Ethiopic', system-ui, sans-serif;
    color: var(--ink); font-size: 9.6pt; line-height: 1.45; -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
body.am { font-size: 9.2pt; line-height: 1.5; }
.page {
    width: 210mm; height: 297mm; margin: 24px auto; background: #fff; position: relative; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0, 26, 54, .18);
}
@media print {
    html, body { background: #fff; }
    .page { margin: 0; box-shadow: none; }
}

.top { display: flex; justify-content: space-between; align-items: center; padding: 8mm 16mm 6mm; }
.top img { height: 9mm; width: auto; display: block; }
.top span { color: var(--ink-2); font-size: 9pt; }

.mast { background: var(--navy); color: #fff; padding: 9mm 16mm 0; display: grid; grid-template-columns: 1fr 74mm; gap: 9mm; }
.mast h1 { font-size: 25pt; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4mm; }
body.am .mast h1 { font-size: 20pt; line-height: 1.3; letter-spacing: 0; }
.mast p { color: var(--on-navy-2); font-size: 10.5pt; line-height: 1.5; padding-bottom: 8mm; }
body.am .mast p { font-size: 9.8pt; }

/* the payslip: the same sheet as on the website */
.slip {
    background: #fff; color: var(--ink); border-radius: 1.5mm; padding: 5mm 5mm 4mm; margin-bottom: -42mm;
    box-shadow: 0 6mm 12mm rgba(0, 10, 25, .28); align-self: start; position: relative; z-index: 1;
}
.slip header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 2.5mm; border-bottom: .6mm solid var(--navy); }
.slip header b { color: var(--navy); font-size: 9.6pt; font-weight: 600; display: block; }
.slip header small { color: var(--ink-2); font-size: 7.6pt; }
.slip header .month { text-align: right; font-weight: 600; font-size: 8.6pt; white-space: nowrap; }
.slip dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 3mm; padding: 2mm 0; border-bottom: .25mm solid var(--rule); }
.slip dt { font-size: 8.6pt; }
.slip dt small { display: block; color: var(--ink-3); font-size: 7pt; }
.slip dd { font-weight: 500; font-size: 9pt; white-space: nowrap; }
.slip .minus { color: var(--minus); }
.slip .net { border-bottom: .6mm solid var(--navy) !important; padding: 2.6mm 0 !important; }
.slip .net dt { font-weight: 600; font-size: 9.4pt; }
.slip .net dd { color: var(--net); font-weight: 700; font-size: 14pt; }
.slip .er { border-bottom: 0 !important; padding-bottom: 0 !important; }
.slip .er dt, .slip .er dd { color: var(--ink-2); font-size: 7.6pt; font-weight: 400; }
.slip p { color: var(--ink-3); font-size: 6.6pt; margin-top: 2mm; line-height: 1.4; }

.body { padding: 7mm 16mm 0; }
.body h2 { font-size: 12.5pt; font-weight: 600; color: var(--ink); margin-bottom: 3.5mm; letter-spacing: -0.01em; }
body.am .body h2 { font-size: 11.5pt; letter-spacing: 0; }

.steps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4mm 6mm; counter-reset: s; width: calc(100% - 84mm); }
.month h2 { width: calc(100% - 84mm); margin-bottom: 5mm; }
.steps li { counter-increment: s; border-top: .5mm solid var(--rule); padding-top: 3.5mm; position: relative; }
.steps li::before {
    content: counter(s); position: absolute; top: -2.6mm; left: 0; width: 5mm; height: 5mm; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 7pt; font-weight: 600; display: grid; place-items: center;
}
.steps b { display: block; font-size: 9pt; margin: .5mm 0 1mm; }
.steps span { color: var(--ink-2); font-size: 8pt; line-height: 1.4; display: block; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 9mm; margin-top: 6mm; }
.groups div { display: grid; grid-template-columns: 25mm 1fr; gap: 3mm; padding: 1.1mm 0; border-top: .25mm solid var(--rule); }
.groups div:last-child { border-bottom: .25mm solid var(--rule); }
.groups b { color: var(--navy); font-weight: 600; font-size: 8.6pt; }
.groups span { color: var(--ink-2); font-size: 8.2pt; }
body.am .groups div { grid-template-columns: 24mm 1fr; }
.facts { list-style: none; }
.facts li { padding: 1.1mm 0; border-top: .25mm solid var(--rule); font-size: 8.4pt; }
.facts li:last-child { border-bottom: .25mm solid var(--rule); }
.facts b { font-weight: 600; }
.facts span { color: var(--ink-2); }
.facts + h2 { margin-top: 5mm; }

.foot { background: var(--navy); color: #fff; padding: 6mm 16mm; display: flex; justify-content: space-between; align-items: center; gap: 8mm; margin-top: auto; }
.foot b { font-size: 13pt; font-weight: 600; display: block; margin-bottom: 1mm; }
body.am .foot b { font-size: 12pt; }
.foot span { color: var(--on-navy-2); font-size: 9pt; }
.foot .contact { text-align: right; font-size: 10pt; line-height: 1.6; white-space: nowrap; }
.foot .contact strong { color: #fff; font-weight: 600; }
body.am .slip p { font-size: 6.1pt; }
