@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }

:root {
  --em: #064E3B;
  --em-m: #047857;
  --em-l: #D1FAE5;
  --em-p: #ECFDF5;
  --cu: #B45309;
  --cu-l: #FEF3C7;
  --dk: #1F2937;
  --gr: #6B7280;
  --lg: #F3F4F6;
  --bd: #D1D5DB;
  --wh: #FFF;
  --ff: 'PT Sans', Arial, sans-serif;
  --fd: 'PT Serif', Georgia, serif;
}

body {
  background: #94a3b8;
  font-family: var(--ff);
  font-size: 9.5pt;
  line-height: 1.5;
  color: var(--dk);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Navigation bar */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--em);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.nav-bar a {
  color: var(--wh);
  text-decoration: none;
  font-weight: 600;
  font-size: 10pt;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-bar a:hover {
  color: var(--em-l);
}

.nav-bar .nav-title {
  font-family: var(--fd);
  font-size: 12pt;
  font-weight: 700;
  color: var(--wh);
  letter-spacing: 0.5px;
}

.nav-bar .nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-bar .btn-print {
  background: var(--cu);
  color: var(--wh);
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 9pt;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff);
}

.nav-bar .btn-print:hover {
  background: #92400E;
}

.pages-wrapper {
  padding-top: 58px;
}

/* A4 page */
.pg {
  width: 210mm;
  height: 297mm;
  background: var(--wh);
  margin: 10mm auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
  page-break-after: always;
  break-after: page;
}

.pg-body {
  position: absolute;
  top: 14mm;
  bottom: 16mm;
  left: 20mm;
  right: 20mm;
  overflow: hidden;
}

/* Header */
.hdr {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10mm;
  background: var(--em);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20mm;
  font-weight: 700;
  font-size: 7.5pt;
  letter-spacing: .4px;
  color: var(--wh);
}

.hdr-line {
  position: absolute;
  top: 10mm;
  left: 0;
  right: 0;
  height: 1.2px;
  background: var(--cu);
}

/* Footer */
.ftr {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10mm;
  font-size: 7pt;
  color: var(--gr);
  padding: 0 20mm;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3mm;
}

.ftr::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: .5px;
  background: var(--em-l);
}

.ftr .l { width: 60px }
.ftr .c { flex: 1; text-align: center }
.ftr .r { white-space: nowrap; width: 60px; text-align: right }

/* Cover page */
.cover { background: var(--em) }
.cover .hdr, .cover .hdr-line, .cover .ftr { display: none }
.cover .pg-body {
  top: 0; bottom: 0; left: 0; right: 0;
  padding: 0 24mm;
  display: block;
}

.cv-ct { position: absolute; top: 0; left: 0; right: 0; height: 3mm; background: var(--cu) }
.cv-cb { position: absolute; bottom: 8mm; left: 0; right: 0; height: 1.5mm; background: var(--cu) }
.cv-wrap { padding-top: 95mm }
.cv-t { font-family: var(--fd); font-size: 36pt; font-weight: 700; color: var(--wh); line-height: 1.1; margin-bottom: 8mm; position: relative; z-index: 1 }
.cv-s { font-family: var(--fd); font-style: italic; font-size: 13pt; color: #A7F3D0; margin-bottom: 4mm; position: relative; z-index: 1 }
.cv-y { font-family: var(--ff); font-size: 11pt; color: #A7F3D0; font-weight: 400; margin-bottom: 16mm; position: relative; z-index: 1 }
.cv-ph { font-family: var(--fd); font-style: italic; font-size: 11.5pt; color: #A7F3D0; line-height: 1.65; margin-bottom: 20mm; max-width: 135mm; position: relative; z-index: 1 }
.cv-pa { font-family: var(--ff); font-size: 9.5pt; color: #A7F3D0; line-height: 1.6; position: relative; z-index: 1 }

/* Headings */
.h1 { font-family: var(--fd); font-size: 17pt; font-weight: 700; color: var(--em); margin-bottom: 1mm; margin-top: 1mm }
.h1 .n { color: var(--cu); margin-right: 1.5mm }
.h2 { font-family: var(--fd); font-weight: 700; font-size: 12pt; color: var(--em-m); margin-top: 4mm; margin-bottom: 1.5mm }
.h3 { font-family: var(--fd); font-weight: 700; font-size: 10.5pt; color: var(--dk); margin-top: 3mm; margin-bottom: 1mm }
.hr { height: .5px; background: var(--em-l); margin: 2mm 0 3mm }

/* Text */
p { font-size: 9.5pt; line-height: 1.52; text-align: justify; margin-bottom: 2mm }
.sm { font-size: 8pt; color: var(--gr); font-style: italic; margin-top: 1mm }
.ac { color: var(--cu); font-weight: 700 }
.eg { color: var(--em-m); font-weight: 700 }
.nw { white-space: nowrap }

/* Quote */
.q {
  font-family: var(--fd);
  font-style: italic;
  font-size: 11pt;
  color: var(--em-m);
  text-align: center;
  padding: 3.5mm 10mm;
  margin: 3mm 0;
  line-height: 1.6;
  border-left: 2.5px solid var(--cu);
  border-right: 2.5px solid var(--cu);
  background: var(--em-p);
}

/* Lists */
.bl { list-style: none; padding-left: 4mm; margin-bottom: 1.5mm }
.bl li { position: relative; padding-left: 6mm; margin-bottom: 1.5mm; font-size: 9.5pt; line-height: 1.48 }
.bl li::before { content: '\2022'; position: absolute; left: 0; color: var(--cu); font-weight: 700; font-size: 11pt; line-height: 1.15 }

/* Key results cards */
.kr { display: flex; gap: 3.5mm; justify-content: center; margin: 4mm 0 }
.kp { flex: 1; text-align: center; border-radius: 3px; overflow: hidden; border: .5px solid var(--bd) }
.kp .v { font-family: var(--fd); font-size: 18pt; font-weight: 700; color: var(--em); background: var(--em-l); padding: 2.5mm 1mm }
.kp .l { font-size: 7pt; color: var(--gr); background: var(--lg); padding: 1.5mm 1mm; line-height: 1.35 }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5mm 0 2.5mm; font-size: 8.5pt }
th { background: var(--em); color: var(--wh); font-weight: 700; text-align: center; padding: 2.5mm 3mm; font-size: 8.5pt; white-space: nowrap }
td { padding: 2mm 3mm; border: .4px solid var(--bd); vertical-align: middle }
tr:nth-child(even) td { background: var(--lg) }
tr.t td { background: var(--cu-l); font-weight: 700 }
td:last-child { text-align: right }
td:first-child { text-align: left }
.cc td:not(:first-child):not(:last-child) { text-align: center }

/* TOC */
.toc { font-size: 9.5pt; line-height: 2.1; padding-left: 1mm; border-bottom: .4px dotted var(--bd) }
.toc .n { font-weight: 700; color: var(--cu); display: inline-block; width: 8mm }
.toc a { color: var(--dk); text-decoration: none }
.toc a:hover { color: var(--em-m) }

/* Print */
@page {
  size: A4;
  margin: 0;
}

@media print {
  html, body {
    background: white;
    margin: 0;
    padding: 0;
    width: 210mm;
  }
  .nav-bar { display: none !important }
  .pages-wrapper { padding-top: 0 }
  .pg {
    margin: 0;
    box-shadow: none;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .pg:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}
