:root {
  color-scheme: light;
  --navy: #101c31;
  --teal: #11666a;
  --ink: #29374b;
  --muted: #45536a;
  --line: #cbd3dc;
  --paper: #ffffff;
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: #edf0f4; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 11pt;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
a:focus-visible, button:focus-visible, main:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.document-toolbar {
  width: min(210mm, calc(100% - 32px));
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 10.5pt;
}
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.toolbar-link, .document-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 7px;
}
.toolbar-link { color: var(--navy); }
.toolbar-link:hover { background: #e1e6ec; }
.document-toolbar button {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.document-toolbar button:hover { background: #223149; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  transform: translateY(-180%);
  padding: 12px 18px;
  color: #fff;
  background: var(--navy);
}
.skip-link:focus { transform: none; }
.document-stack { max-width: 210mm; margin: 0 auto 36px; }
.sheet {
  width: 210mm;
  min-height: 297mm;
  display: flex;
  flex-direction: column;
  padding: 16mm 17mm 12mm;
  background: var(--paper);
  box-shadow: 0 8px 30px rgb(16 28 49 / 9%), 0 0 0 1px rgb(16 28 49 / 6%);
}
.sheet + .sheet { margin-top: 24px; }
.document-header {
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--line);
  padding-top: 4mm;
  padding-bottom: 4mm;
  margin-bottom: 4mm;
}
.document-label {
  margin: 0 0 2mm;
  color: var(--muted);
  font-size: 10.5pt;
  font-weight: 600;
}
.language-label {
  display: inline-block;
  margin-left: 2mm;
  padding-left: 2mm;
  border-left: 1px solid var(--line);
  font-weight: 400;
}
.document-header h1 {
  margin: 0 0 1.8mm;
  color: var(--navy);
  font-size: 30pt;
  line-height: 1.06;
  letter-spacing: -0.7px;
  font-weight: 700;
}
.document-subtitle {
  margin: 0 0 3mm;
  color: var(--navy);
  font-size: 12.5pt;
  line-height: 1.3;
  font-weight: 500;
}
.contact-line { margin: 0 0 1.2mm; font-size: 10.5pt; color: var(--muted); }
.document-meta { margin: 0; font-size: 10.5pt; line-height: 1.4; color: var(--muted); }
.document-meta a { color: var(--navy); }
.continuation-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6mm;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3mm;
  margin-bottom: 4mm;
  color: var(--muted);
  font-size: 10.5pt;
}
.continuation-header p { margin: 0; }
.continuation-name { color: var(--navy); font-weight: 700; font-size: 14pt; }
.document-body { flex: 1 0 auto; }
.document-body p { margin: 0 0 3mm; orphans: 3; widows: 3; }
.section-title {
  margin: 4.5mm 0 2.6mm;
  padding-left: 2.7mm;
  border-left: 2px solid var(--teal);
  color: var(--navy);
  font-size: 10.5pt;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  break-after: avoid;
}
.document-body > .section-title:first-child { margin-top: 0; }
.entry { break-inside: avoid; page-break-inside: avoid; }
.entry h3 {
  margin: 3.8mm 0 1.4mm;
  color: var(--navy);
  font-size: 12pt;
  line-height: 1.25;
  letter-spacing: -0.12px;
  font-weight: 700;
  break-after: avoid;
}
.profile-copy { color: var(--navy); }
.assessment-note {
  border-top: 1px solid var(--line);
  padding-top: 3mm;
  color: var(--muted);
  font-size: 10.5pt;
  line-height: 1.4;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8mm;
  margin-top: auto;
  padding-top: 6mm;
  color: var(--muted);
  font-size: 10.5pt;
  line-height: 1.25;
}
.page-footer > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.certificate .document-header h1 { font-size: 28pt; }
.certificate .document-header .document-label { font-size: 14pt; color: var(--navy); }
.certificate .document-subtitle { font-size: 12pt; }
.certificate .document-header { margin-bottom: 4mm; }
.certificate .entry h3 { margin-top: 3mm; }
.certificate .document-body p { margin-bottom: 2.7mm; }
@media screen and (max-width: 820px) {
  .document-stack { max-width: 100%; margin-bottom: 20px; }
  .sheet {
    width: 100%;
    min-height: auto;
    padding: 28px 24px;
    box-shadow: none;
  }
  .sheet + .sheet { margin-top: 12px; }
  .document-toolbar { width: calc(100% - 24px); margin: 12px auto; gap: 8px; }
  .toolbar-actions { gap: 4px; }
  .toolbar-link, .document-toolbar button { padding: 9px 10px; }
  .document-header h1 { font-size: clamp(25pt, 7vw, 30pt); }
  .document-header { padding-top: 14px; padding-bottom: 18px; }
  .continuation-header { flex-wrap: wrap; gap: 4px 14px; }
  .page-footer { padding-top: 26px; }
}
@media screen and (max-width: 480px) {
  .document-toolbar { flex-wrap: wrap; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
}
@page { size: A4; margin: 0; }
@media print, screen and (min-width: 821px) {
  .certificate .sheet { padding: 13mm 14mm 11mm; }
  .certificate .document-body { line-height: 1.38; }
  .certificate .document-body p { margin-bottom: 2.4mm; }
  .certificate .section-title { margin-top: 3.8mm; }
  .certificate .page-footer { padding-top: 1mm; }
}
@media print {
  html, body { background: #fff; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  .document-stack { max-width: none; margin: 0; }
  .sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  .sheet + .sheet { margin-top: 0; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  a { color: var(--teal); text-decoration: none; }
}
