:root {
  color-scheme: light;
}

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

::selection {
  background: rgba(185, 106, 167, .28);
}

html,
body {
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.top-link,
.mobile-link {
  color: #173b2d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}

.top-link {
  border-radius: 999px;
  padding: .75rem 1rem;
}

.top-link:hover,
.top-link.active {
  background: #eef3e9;
  color: #2f6f4e;
}

.mobile-link {
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: #f7f6f0;
}

.stat-card {
  border-left: 1px solid rgba(47, 111, 78, .18);
  padding: 1rem 1.5rem;
}

.stat-card span {
  display: block;
  color: #2f6f4e;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.stat-card p {
  margin-top: .65rem;
  color: rgba(23, 59, 45, .68);
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: .8rem;
}

.nav-link {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  border: 1px solid rgba(47, 111, 78, .13);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .78);
  padding: 1rem;
  color: #173b2d;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 10px 30px rgba(23, 59, 45, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 78, .4);
  box-shadow: 0 16px 40px rgba(23, 59, 45, .11);
}

.doc-content {
  font-size: 1.04rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.doc-title {
  margin: 0 0 2rem;
  color: #173b2d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: .98;
  text-align: center;
}

.doc-heading {
  scroll-margin-top: 7rem;
  margin: 4rem 0 1.35rem;
  border-top: 1px solid rgba(47, 111, 78, .16);
  padding-top: 2rem;
  color: #2f6f4e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
}

.doc-heading + .doc-heading {
  margin-top: 1rem;
}

.support-card {
  scroll-margin-top: 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 1.5rem;
  align-items: stretch;
  margin: 3rem 0 4rem;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 78, .16);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(185, 106, 167, .14), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #f1f6ec 100%);
  box-shadow: 0 18px 60px rgba(23, 59, 45, .11);
}

.support-card__content {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.support-card__eyebrow {
  margin-bottom: .9rem;
  color: #2f6f4e;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.support-card h2 {
  max-width: 14ch;
  color: #173b2d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
}

.support-card__content p:last-child {
  max-width: 34rem;
  margin-top: 1rem;
  color: rgba(23, 59, 45, .72);
  font-weight: 600;
  line-height: 1.7;
}

.support-card__pix {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  background: #173b2d;
  padding: clamp(1.5rem, 4vw, 2.1rem);
  color: white;
}

.support-card__label,
.support-card__name {
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.support-card__pix strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
}

.references-section {
  scroll-margin-top: 7rem;
  margin: 4rem 0 1rem;
  border-radius: 1.5rem;
  background: #f7f6f0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.references-section__header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(47, 111, 78, .16);
  padding-bottom: 1.25rem;
}

.references-section__header p {
  color: #2f6f4e;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.references-section__header h2 {
  margin-top: .35rem;
  color: #173b2d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.reference-card {
  position: relative;
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 78, .13);
  border-radius: 1.1rem;
  background: white;
  padding: 1.2rem;
  box-shadow: 0 12px 36px rgba(23, 59, 45, .07);
}

.reference-card--wide {
  grid-column: 1 / -1;
}

.reference-card span {
  color: rgba(47, 111, 78, .28);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.reference-card h3 {
  margin-top: .55rem;
  color: #173b2d;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.15;
}

.reference-card p {
  margin: .7rem 0 1rem;
  color: rgba(23, 59, 45, .68);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.55;
}

.reference-card a {
  align-self: flex-start;
  border-radius: 999px;
  background: #eef3e9;
  padding: .55rem .85rem;
  color: #2f6f4e;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.reference-card a:hover {
  transform: translateY(-1px);
  background: #2f6f4e;
  color: white;
}

.references-seal {
  margin: 1rem auto 0;
  max-width: 9rem;
  overflow: hidden;
  border-radius: 1rem;
  opacity: .86;
}

.references-seal img {
  display: block;
  width: 100%;
}

.doc-paragraph {
  margin: 1.05rem 0;
  color: rgba(23, 59, 45, .84);
}

.doc-paragraph.text-center {
  color: rgba(23, 59, 45, .76);
  font-weight: 600;
}

.doc-figure {
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #f7f6f0;
  box-shadow: 0 18px 60px rgba(23, 59, 45, .12);
}

.doc-figure img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.inline-doc-image {
  display: inline-block;
  max-width: min(100%, 220px);
  max-height: 180px;
  margin: .4rem .7rem;
  vertical-align: middle;
  border-radius: .8rem;
}

.doc-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  padding: 0 0 .35rem;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.doc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 78, .14);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 18px 60px rgba(23, 59, 45, .08);
}

.doc-table td {
  width: auto;
  vertical-align: top;
  border-bottom: 1px solid rgba(47, 111, 78, .1);
  border-right: 1px solid rgba(47, 111, 78, .1);
  padding: .85rem;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-table td:last-child {
  border-right: 0;
}

.doc-table .doc-heading {
  margin: .3rem 0;
  border: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .92rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.doc-table .doc-paragraph {
  margin: .3rem 0;
  font-size: .88rem;
  line-height: 1.55;
}

.doc-table .doc-figure {
  margin: .25rem auto;
  max-width: 120px;
  border-radius: .8rem;
  box-shadow: none;
}

.doc-table .doc-figure img {
  max-height: 110px;
}

@media (max-width: 1024px) {
  header > div {
    height: 4.5rem !important;
  }

  header img {
    height: 3rem !important;
    width: 3rem !important;
  }

  main > section:first-child {
    padding-top: 5.5rem !important;
  }

  main > section:first-child > div {
    min-height: auto !important;
    padding-bottom: 2.5rem !important;
  }

  main > section:first-child h1 {
    font-size: clamp(3rem, 8vw, 5rem) !important;
  }

  main > section:first-child .relative.h-\[58vh\] {
    height: min(54vh, 34rem) !important;
  }

  .doc-heading {
    margin-top: 3rem;
  }

  .support-card {
    grid-template-columns: 1fr;
  }
}

.search-hidden {
  display: none !important;
}

mark.search-mark {
  border-radius: .25rem;
  background: rgba(212, 154, 58, .35);
  padding: .05rem .16rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  header > div {
    gap: .75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #mobileMenu {
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }

  main > section:first-child > div {
    gap: 1.75rem !important;
  }

  main > section:first-child h1 {
    font-size: clamp(2.55rem, 12vw, 4rem) !important;
    line-height: .98 !important;
  }

  main > section:first-child p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  main > section:first-child .mt-8.flex {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  main > section:first-child .mt-8.flex a {
    justify-content: center;
    text-align: center;
  }

  main > section:first-child .relative.h-\[58vh\] {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    border-radius: 1.25rem !important;
  }

  main > section:first-child .absolute.bottom-5 {
    left: .75rem !important;
    right: .75rem !important;
    bottom: .75rem !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
  }

  main > section:first-child .absolute.bottom-5 p:last-child {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  .stat-card span {
    font-size: 2.25rem;
  }

  .summary-grid {
    gap: .65rem;
  }

  .nav-link {
    min-height: 3.6rem;
    border-radius: .9rem;
    padding: .85rem;
    font-size: .86rem;
  }

  .doc-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .doc-title {
    margin-bottom: 1.35rem;
    font-size: clamp(2.25rem, 13vw, 3.25rem);
  }

  .doc-heading {
    scroll-margin-top: 5.75rem;
    margin: 2.6rem 0 1rem;
    padding-top: 1.45rem;
    font-size: clamp(1.65rem, 9vw, 2.4rem);
    line-height: 1.08;
  }

  .support-card {
    border-radius: 1.15rem;
    margin: 2.25rem 0 3rem;
  }

  .support-card h2 {
    max-width: 18ch;
    font-size: clamp(1.8rem, 10vw, 2.55rem);
  }

  .support-card__pix {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .support-card__pix strong {
    font-size: clamp(1.15rem, 6vw, 1.65rem);
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .doc-figure {
    margin: 1.5rem auto;
    border-radius: 1rem;
  }

  .doc-figure img {
    max-height: 62vh;
  }

  .inline-doc-image {
    display: block;
    max-width: min(100%, 12rem);
    max-height: 12rem;
    margin: .75rem auto;
  }

  .doc-table-wrap {
    margin: 1.35rem 0;
  }

  .doc-table {
    min-width: 640px;
  }

  .doc-table td {
    padding: .7rem;
  }

  .doc-table .doc-heading {
    font-size: .82rem;
  }

  .doc-table .doc-paragraph {
    font-size: .82rem;
  }

  .stat-card {
    border-left: 0;
    border-top: 1px solid rgba(47, 111, 78, .18);
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  header > div {
    height: 4rem !important;
  }

  header img {
    height: 2.65rem !important;
    width: 2.65rem !important;
  }

  #menuButton {
    height: 2.55rem !important;
    width: 2.55rem !important;
  }

  main > section:first-child {
    padding-top: 4.9rem !important;
  }

  main > section:first-child > div,
  #conteudo > div,
  #sumario > div,
  #apostila > div {
    padding-left: .9rem !important;
    padding-right: .9rem !important;
  }

  main > section:first-child h1 {
    font-size: clamp(2.25rem, 13vw, 3.2rem) !important;
  }

  main > section:first-child .mb-5.inline-flex,
  main > section:first-child .mt-8.flex a {
    width: 100%;
    justify-content: center;
  }

  #sumario {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  #sumario h2 {
    font-size: 2rem !important;
    line-height: 1.05 !important;
  }

  #apostila {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .doc-content {
    font-size: .97rem;
  }

  .doc-paragraph {
    margin: .9rem 0;
  }

  .doc-title {
    font-size: clamp(2rem, 14vw, 2.85rem);
  }

  .doc-heading {
    font-size: clamp(1.45rem, 10vw, 2.05rem);
  }

  .support-card,
  .references-section {
    border-radius: 1rem;
  }

  .support-card__content,
  .support-card__pix,
  .references-section {
    padding: 1rem;
  }

  .references-grid {
    gap: .75rem;
  }

  .reference-card {
    min-height: auto;
    padding: 1rem;
  }

  .reference-card a {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.25;
  }

  .doc-table {
    min-width: 560px;
  }

  #backToTop {
    right: .9rem !important;
    bottom: .9rem !important;
    height: 2.75rem !important;
    width: 2.75rem !important;
  }
}
