/* Currículos em HTML: estilos compartilhados, sem dependências externas. */
:root {
  color-scheme: light;
  --ink: #17283b;
  --muted: #536477;
  --soft: #5e6c7e;
  --accent: #235b8d;
  --accent-dark: #17456c;
  --line: #dae3ec;
  --paper: #fff;
  --canvas: #eff3f8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0d3759; }
a:focus-visible {
  outline: 3px solid #3187ce;
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { top: 12px; }

.topbar {
  border-bottom: 1px solid #e1e8f0;
  background: #fff;
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 64px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.topbar-label {
  font-weight: 680;
  font-size: 13px;
  letter-spacing: .02em;
}

.topbar-label span { color: #5e6c7e; padding: 0 6px; }

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.language-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d7e1ea;
  border-radius: 7px;
  background: #f8fafc;
}

.language-nav a {
  padding: 4px 7px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.language-nav a:hover { background: #eaf1f7; color: var(--accent-dark); }
.language-nav a[aria-current="page"] { background: var(--accent-dark); color: #fff; }

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: var(--accent-dark);
  border: 1px solid #bfd3e5;
  border-radius: 6px;
  background: #f4f8fc;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.download-link:hover { background: #e7f2fc; }
.download-link .contact-icon { width: 16px; height: 16px; margin: 0; }

.back-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.sheet {
  max-width: 1060px;
  margin: 38px auto 72px;
  padding: 60px 66px 38px;
  background: var(--paper);
  border: 1px solid #e3eaf1;
  box-shadow: 0 18px 55px rgba(31, 55, 78, .07);
}

.identity {
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow span { color: #5e6c7e; margin: 0 4px; }

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  margin-bottom: 4px;
  font-size: clamp(34px, 5vw, 49px);
  line-height: 1.1;
  font-weight: 730;
  letter-spacing: -.045em;
}

.position {
  margin: 0 0 13px;
  color: var(--accent-dark);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.02em;
}

.positioning {
  max-width: 760px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact { font-style: normal; }

.contact ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.contact li { display: inline-flex; align-items: flex-start; gap: 6px; overflow-wrap: anywhere; }
.contact a { display: inline-flex; align-items: flex-start; gap: 6px; color: inherit; }
.contact-icon { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.contact .contact-email-whatsapp { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }

.profile {
  padding: 31px 0 34px;
  border-bottom: 1px solid var(--line);
}

.profile p { max-width: 860px; margin: 0 0 12px; }
.profile p:last-child { margin-bottom: 0; }

h2 {
  margin-bottom: 19px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 780;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 56px;
  padding-top: 34px;
}

.main-column, .side-column { min-width: 0; }

.career-entry {
  padding: 0 0 23px 18px;
  margin: 0 0 23px;
  border-left: 2px solid var(--line);
  position: relative;
}

.career-entry::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px #a9bdd0;
}

.career-entry:last-child { margin-bottom: 0; padding-bottom: 0; }

.entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-bottom: 12px;
}

.entry-heading h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 720;
  letter-spacing: -.025em;
}

.date {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.role { padding-top: 13px; }
.role:first-of-type { padding-top: 0; }

.role-heading { margin-bottom: 6px; }

.role-heading h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.4;
}

.role > p { margin-bottom: 8px; color: #34485c; font-size: 14px; line-height: 1.6; }

.role-highlights {
  margin: 7px 0 0;
  padding-left: 19px;
  color: #34485c;
  font-size: 13px;
  line-height: 1.5;
}

.role-highlights li { margin-bottom: 7px; }
.role-highlights li:last-child { margin-bottom: 0; }
.role-highlights li::marker { color: var(--accent); }

.role p:last-child, .compact > p, .additional {
  margin-bottom: 0;
  color: #34485c;
  font-size: 14px;
  line-height: 1.6;
}

.additional {
  margin-top: 13px;
  padding: 11px 13px;
  background: #f2f6fa;
  border-left: 2px solid #a6bfd5;
}

.compact .entry-heading { margin-bottom: 7px; }
.compact .entry-heading h3 { font-size: 17px; }

.side-column .section { margin-bottom: 35px; }
.side-column .section:last-child { margin-bottom: 0; }

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 8px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 13px;
  line-height: 1.55;
  color: #34485c;
}

.plain-list li:first-child { padding-top: 0; }
.plain-list li:last-child { border-bottom: 0; }

.tech-list { margin: 0; }
.tech-list div { margin-bottom: 15px; }
.tech-list div:last-child { margin-bottom: 0; }

.tech-list dt {
  margin-bottom: 3px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 740;
  letter-spacing: .03em;
}

.tech-list dd {
  margin: 0;
  color: #34485c;
  font-size: 13px;
  line-height: 1.5;
}

.independent p {
  margin: 0;
  color: #34485c;
  font-size: 13px;
  line-height: 1.6;
}

.projects {
  padding: 0;
  margin: 0;
  list-style: none;
}

.projects li { margin-bottom: 19px; }
.projects li:last-child { margin-bottom: 0; }

.projects h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 730;
}

.projects h3 a { text-decoration: none; }
.projects h3 a:hover { text-decoration: underline; }

.projects p {
  margin: 0;
  font-size: 13px;
  color: #34485c;
  line-height: 1.55;
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
}

.resume-footer a { color: var(--accent-dark); }

@media (max-width: 820px) {
  .sheet { padding: 44px 36px 30px; margin: 20px 18px 50px; }
  .columns { grid-template-columns: 1fr; gap: 32px; }
  .side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 30px; }
  .side-column .section { margin-bottom: 20px; }
  .side-column .section:last-child { margin-bottom: 20px; }
}

@media (max-width: 580px) {
  body { font-size: 14px; }
  .topbar-inner { padding: 10px 20px; flex-direction: column; align-items: flex-start; gap: 7px; }
  .topbar-label { font-size: 12px; }
  .topbar-actions { width: 100%; justify-content: flex-start; gap: 6px 12px; }
  .language-nav { order: 3; }
  .download-link { font-size: 12px; }
  .back-link { font-size: 12px; }
  .sheet { margin: 0; padding: 32px 21px 28px; border: 0; box-shadow: none; }
  .position { font-size: 18px; }
  .positioning { font-size: 14px; }
  .contact ul { flex-direction: column; gap: 5px; }
  .contact .contact-email-whatsapp { gap: 5px 12px; }
  .profile { padding: 26px 0; }
  .columns { padding-top: 28px; }
  .side-column { display: block; }
  .entry-heading { display: block; }
  .entry-heading .date { margin-top: 3px; }
  .role p:last-child, .compact > p, .additional { font-size: 13px; }
  .resume-footer { margin-top: 30px; }
}

@page {
  size: A4;
  margin: 13mm 15mm;
}

@media print {
  :root { --ink: #152537; --muted: #425368; --accent: #1a527d; --line: #d2dbe5; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 9.5pt; line-height: 1.37; }
  .topbar, .skip-link { display: none !important; }

  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .identity { padding-bottom: 4mm; }
  .eyebrow { margin-bottom: 2mm; font-size: 8pt; }
  h1 { font-size: 26pt; line-height: 1.05; margin-bottom: 1mm; }
  .position { font-size: 13pt; margin-bottom: 2mm; }
  .positioning { font-size: 9pt; margin-bottom: 3mm; }
  .contact ul { font-size: 8pt; column-gap: 5mm; row-gap: 1mm; }
  .contact-icon { width: 11px; height: 11px; flex-basis: 11px; margin-top: 1px; }

  .profile { padding: 5mm 0; }
  .profile p { margin-bottom: 2mm; }
  /* Evita títulos com letras separadas na extração de texto do PDF/ATS. */
  h2 { font-size: 9pt; margin-bottom: 3mm; letter-spacing: normal; text-transform: none; }

  .columns { display: block; padding-top: 5mm; }
  .career-entry { padding: 0 0 2mm 3.5mm; margin-bottom: 4mm; }
  .career-entry::before { width: 7px; height: 7px; left: -4.5px; top: 4px; }
  .entry-heading { margin-bottom: 2mm; }
  .entry-heading h3 { font-size: 12pt; }
  .compact .entry-heading h3 { font-size: 11pt; }
  .date { font-size: 8pt; }
  .role { padding-top: 2mm; }
  .role-heading { margin-bottom: 1mm; }
  .role-heading h4 { font-size: 9.5pt; }
  .role p:last-child, .compact > p, .additional { font-size: 9pt; line-height: 1.37; }
  .role > p, .role-highlights { font-size: 9pt; line-height: 1.37; }
  .role > p { margin-bottom: 1.5mm; }
  .role-highlights { margin-top: 1mm; padding-left: 5mm; }
  .role-highlights li { margin-bottom: 1.2mm; }
  .additional { margin-top: 2mm; padding: 1.5mm 2mm; background: #f5f7f9; }

  /* O PDF segue o fluxo do DOM em coluna única para preservar
     a sequência cronológica e a leitura por extratores de texto/ATS. */
  .side-column {
    display: block;
    padding-top: 5mm;
    border-top: 1px solid var(--line);
  }
  .side-column .section, .side-column .section:last-child { margin-bottom: 2mm; }
  .plain-list li { font-size: 8.5pt; padding: 1mm 0; }
  .tech-list div { margin-bottom: 2mm; }
  .tech-list dt { font-size: 8pt; }
  .tech-list dd, .independent p, .projects p { font-size: 8.5pt; }
  .projects li { margin-bottom: 2mm; }
  .projects h3 { font-size: 9pt; }
  .resume-footer { margin-top: 4mm; padding-top: 2mm; font-size: 8pt; }

  a { color: inherit; text-decoration: none; }
  .contact a, .resume-footer a, .projects h3 a { color: var(--accent-dark); }

  .career-entry, .role, .side-column .section, .projects li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
