/*
 * Impressão / PDF — A4, uma folha só.
 * Este ficheiro é aplicado também no Ctrl+P/Mozilla (scale 100%); por isso a tipografia
 * tem de caber em ~1 página a scale=1 — o Playwright ajusta `scale` em cima disso.
 * Fluidez + preenchimento: zoom ligeiro no elemento raíz só no pipeline de impressão.
 */
@page {
  size: A4;
  margin: 5mm 6mm;
}

html {
  /* Encolhe só o necessário para Chromium/Mozilla caber em 1×A4 a 100% escala */
  zoom: 0.94;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  background: #fff !important;
}

body {
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif !important;
}

.resume {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: block !important;
}

h1 {
  font-size: 18px !important;
  line-height: 1.12 !important;
  margin: 0 0 4px !important;
}

.hero h1 .lang-switch {
  display: none !important;
}

.hero-brand-mark {
  display: none !important;
}

.hero-social {
  display: none !important;
}

h2 {
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
  line-height: 1.15 !important;
  margin: 0 0 5px !important;
}

h3 {
  font-size: 10.2px !important;
  line-height: 1.18 !important;
  margin: 0 0 3px !important;
}

p,
li,
a,
.contacts,
.links {
  font-size: 9.6px !important;
  line-height: 1.26 !important;
}

.hero .headline {
  font-size: 9.1px !important;
  line-height: 1.22 !important;
  margin-top: 5px !important;
}

.contacts,
.links {
  margin-top: 5px !important;
}

.links-second-row {
  margin-top: 2px !important;
}

.section + .section {
  margin-top: 0 !important;
  padding-top: 8px !important;
}

.entry + .entry {
  margin-top: 5px !important;
}

.grid-two {
  gap: 11px !important;
}

ul {
  margin-top: 3px !important;
  padding-left: 14px !important;
}

li + li {
  margin-top: 3px !important;
}

.entry p {
  margin: 0 !important;
}

.focus {
  margin-bottom: 3px !important;
  font-size: 9.4px !important;
  font-style: italic !important;
  line-height: 1.26 !important;
}

.section,
.entry {
  break-inside: auto;
  page-break-inside: auto;
}

/* Bullets podem partir; não forçamos avoid em cada li para não empurrar pág. 2 */
li {
  break-inside: auto !important;
  page-break-inside: auto !important;
}
