@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

:root {
  --clr-white: #f5f5f5;
  --clr-neutral: #444;
  --clr-neutral-deemphasized: #777;
  --clr-dark: #000;

  --font-body: "IBM Plex Sans", sans-serif;
  --font-header: "IBM Plex Serif", serif;

  --align-header: left;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--clr-neutral);
  background-color: var(--clr-white);
  font-family: var(--font-body);
  padding: 0 1rem 10rem 1rem;
  max-width: 650px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s;
}

a:hover {
  filter: brightness(0%);
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

ul li p {
  margin: 0.5em 0 2em 0;
}

header {
  text-align: var(--align-header);
  display: flex;
  flex-direction: column;
}

header#site-header {
  font-size: 0.75rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10rem;
  padding-block: 1rem;
  text-transform: uppercase;
  color: var(--clr-neutral-deemphasized);
}

#gerar-pdf {
  border: 1px solid var(--clr-neutral-deemphasized);
  background-color: transparent;
  color: var(--clr-neutral);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s;
  font-family: var(--font-body);
  border-radius: 2px;
}

#gerar-pdf:hover {
  background-color: var(--clr-neutral-deemphasized);
  color: var(--clr-white);
  border-color: var(--clr-neutral-deemphasized);
}

#gerar-pdf:disabled {
  background-color: var(--clr-neutral-deemphasized);
  cursor: not-allowed;
}

#header-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

main header {
  position: relative;
  padding: 0 0 40px 0;
  gap: 1rem;
  text-align: var(--align-header);
  justify-content: var(--align-header);
}

main header h1:first-of-type {
  font-size: 2em;
  margin: 0;
  font-family: var(--font-header);
}

main header h2:first-of-type {
  font-size: 2em;
  font-weight: normal;
  margin: 0;
  color: var(--clr-neutral-deemphasized);
  font-family: var(--font-header);
}

/* main header h1:first-of-type,
main header h2:first-of-type {
	text-transform: uppercase;
} */

main header #header-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

main header section {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: var(--align-header);
}

main header section span {
  font-size: 0.8em;
  margin: 0;
}

main header nav.table-of-contents {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9em;
  margin-top: 1.5rem;
}

main header nav.table-of-contents a {
  color: inherit;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

section.page-section {
  position: relative;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section.page-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  height: 1px;
  content: "";
  background-color: var(--clr-neutral-deemphasized);
  opacity: 0.4;
}

section.page-section h2:first-child {
  font-family: var(--font-header);
}

section.page-section svg {
  max-width: 11rem;
  margin-bottom: 1rem;
  vertical-align: middle;
  fill: currentColor;
  color: var(--clr-neutral-deemphasized);
}

section.page-section h3 {
  font-size: 1em;
  font-weight: normal;
  margin: 0;
}

section.page-section ul li time {
  font-size: 0.8em;
  color: var(--clr-neutral-deemphasized);
  text-transform: uppercase;
}

section.page-section p {
  color: var(--clr-neutral-deemphasized);
}

html body main section.page-section ul li div.mesma-linha {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  align-items: flex-start;
}

section.page-section ul li address {
  color: var(--clr-neutral-deemphasized);
  font-size: 0.9em;
}

section.page-section ul li address {
  margin: 0em 0 1.5em 0;
}

section#conhecimentos.page-section section h3 {
  font-size: 0.8em;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--clr-neutral-deemphasized);
}

section#conhecimentos.page-section section#conhecimentos-conteudo {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

section#conhecimentos.page-section section#conhecimentos-conteudo section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Estilos específicos para impressão/PDF */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  @page {
    margin: 21mm 18mm 18mm 18mm;
    size: A4;
  }

  body {
    font-size: 14px;
    line-height: 1.4;
    padding: 0;
    max-width: none;
    margin: 0;
    color: var(--clr-neutral);
    background-color: #fff !important;
    font-family: var(--font-body);
  }

  /* Ocultar elementos desnecessários no PDF */
  header#site-header {
    display: none !important;
  }

  main header nav.table-of-contents {
    display: none !important;
  }

  #header-content {
    flex-direction: column-reverse;
  }

  /* Ajustar header principal */
  main header {
    padding: 0 0 15px 0;
    margin-bottom: 0;
  }

  main header h1:first-of-type {
    font-size: 2.5em;
  }

  main header h2:first-of-type {
    font-size: 2.5em;
  }

  main header section {
    gap: 1rem;
    justify-content: space-between;
    color: var(--clr-neutral-deemphasized);
  }

  main header section span {
    font-size: 0.75em;
  }

  main header section a {
    text-decoration: none;
  }

  /* Reduzir espaçamentos das seções */
  section.page-section {
    padding: 20px 0 10px 0;
    gap: 1rem;
  }

  section.page-section::before {
    display: none;
  }

  section.page-section h2:first-child {
    font-size: 1.1em;
    margin-bottom: 0rem;
  }

  section.page-section h3 {
    font-size: 0.9em;
    margin-bottom: 0.2rem;
  }

  section.page-section ul li {
    margin-bottom: 1rem;
  }

  section.page-section ul li p {
    margin: 0.3em 0 0.8em 0;
    font-size: 0.85em;
    line-height: 1.3;
  }

  section.page-section ul li time {
    font-size: 0.7em;
  }

  section.page-section ul li address {
    font-size: 0.75em;
    margin: 0;
  }

  /* Ajustar seção de conhecimentos */
  section#conhecimentos.page-section section#conhecimentos-conteudo {
    gap: 1.2rem;
  }

  section#conhecimentos.page-section section#conhecimentos-conteudo section {
    gap: 0.4rem;
  }

  section#conhecimentos.page-section section h3 {
    font-size: 0.75em;
  }

  section#conhecimentos.page-section section ul li {
    font-size: 0.85em;
    margin-bottom: 0.3rem;
  }

  section#conhecimentos.page-section section#conhecimentos-conteudo {
    flex-direction: row;
    gap: 1.5rem;
    font-size: 0.85em;
  }

  /* Evitar quebras de página inconvenientes */
  section.page-section {
    break-inside: avoid-page;
  }

  section.page-section ul li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
}
