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

.institutional-page {
  background: #f5f9fc;
}

.institutional-page .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.institutional-page .skip-link:focus,
.institutional-page .skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border: 2px solid var(--green);
  border-radius: 8px;
  outline: 3px solid rgba(0, 157, 103, 0.24);
  outline-offset: 2px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(2, 30, 66, 0.18);
}

/* Compatibilidade da rota local de blog já existente. */
.page-header {
  padding: 18px max(24px, calc((100% - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border-bottom: 1px solid #dce6ec;
}

.page-header img {
  width: 90px;
}

.page-header a:last-child {
  color: #007c59;
  font-weight: 800;
}

body:not(.institutional-page) {
  margin: 0;
  min-width: 300px;
  color: #0b2d56;
  background: #f5f9fb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body:not(.institutional-page) > main {
  width: min(760px, calc(100% - 32px));
  margin: 52px auto;
  padding: 36px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(7, 44, 89, 0.09);
}

body:not(.institutional-page) > main h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.05;
}

body:not(.institutional-page) > main p {
  color: #526a83;
  font-size: 17px;
  line-height: 1.6;
}

body:not(.institutional-page) > main .eyebrow {
  color: #008b63;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body:not(.institutional-page) > main .notice {
  margin-top: 28px;
  padding: 16px;
  border-left: 4px solid #ffc423;
  border-radius: 8px;
  background: #fff8df;
}

body:not(.institutional-page) > footer {
  padding: 30px 16px;
  color: #667b90;
  font-size: 13px;
  text-align: center;
}

.institutional-page .footer-brand {
  display: flex;
  width: min(148px, 100%);
  max-width: 100%;
  align-self: start;
}

.institutional-page .footer-brand img {
  display: block;
  width: 100%;
  max-width: 148px;
  height: auto;
  object-fit: contain;
}

.document-main,
.content-main {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 92% 6%, rgba(34, 202, 163, 0.09), transparent 30%),
    linear-gradient(180deg, #f3f9fd 0%, #ffffff 300px);
}

.document-shell,
.content-shell {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
  border: 1px solid #e0e9ef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(7, 44, 89, 0.09);
}

.document-hero,
.content-hero {
  padding: 52px 64px 38px;
  border-bottom: 1px solid #e4ecf1;
  background: linear-gradient(135deg, #f1faff 0%, #f1fcf8 100%);
  border-radius: 22px 22px 0 0;
}

.document-eyebrow,
.content-eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-hero h1,
.content-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 5.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.document-version,
.content-intro {
  margin: 18px 0 0;
  color: #48627d;
  font-size: 17px;
  line-height: 1.6;
}

.document-content,
.content-body {
  padding: 34px 64px 58px;
}

.document-content h2,
.content-body h2 {
  margin: 42px 0 14px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.document-content section:first-child h2,
.content-body > :first-child {
  margin-top: 0;
}

.document-content h3,
.content-body h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
}

.document-content p,
.document-content li,
.content-body p,
.content-body li,
.content-body summary {
  color: #3f5872;
  font-size: 17px;
  line-height: 1.72;
}

.document-content p,
.content-body p {
  margin: 0 0 16px;
}

.document-content ul,
.content-body ul {
  margin: 4px 0 22px;
  padding-left: 25px;
}

.document-content li + li,
.content-body li + li {
  margin-top: 7px;
}

.document-content a,
.content-body a {
  color: #006de2;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.official-information,
.notice-card {
  margin: 24px 0 30px;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  border-radius: 8px 14px 14px 8px;
  background: #effbf7;
}

.official-information p,
.notice-card p {
  margin-bottom: 0;
}

.content-body {
  display: grid;
  gap: 38px;
}

.content-section {
  scroll-margin-top: 102px;
}

.content-section h2 {
  margin-top: 0;
}

.content-section + .content-section {
  padding-top: 34px;
  border-top: 1px solid #e3ebf0;
}

.step-list,
.safety-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.step-list {
  margin: 24px 0 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 46px;
  padding-left: 58px;
  counter-increment: steps;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 1px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.safety-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.safety-item {
  padding: 22px;
  border: 1px solid #dfe8ee;
  border-radius: 16px;
  background: #fbfdfe;
}

.safety-item p {
  margin-bottom: 0;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.contact-card {
  padding: 20px;
  border: 1px solid #dfe8ee;
  border-radius: 14px;
  background: #fbfdfe;
}

.contact-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid #dfe8ee;
  border-radius: 14px;
  background: #fbfdfe;
}

.faq-list summary {
  padding: 18px 52px 18px 20px;
  position: relative;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  color: var(--green);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p,
.faq-list details ul {
  margin-inline: 20px;
}

.faq-list details > :last-child {
  margin-bottom: 20px;
}

@media (max-width: 700px) {

  .document-main,
  .content-main {
    padding: 24px 0 42px;
  }

  .document-shell,
  .content-shell {
    width: min(100% - 28px, 920px);
    border-radius: 17px;
  }

  .document-hero,
  .content-hero {
    padding: 34px 24px 28px;
    border-radius: 17px 17px 0 0;
  }

  .document-hero h1,
  .content-hero h1 {
    font-size: clamp(33px, 10vw, 44px);
  }

  .document-version,
  .content-intro {
    font-size: 16px;
  }

  .document-content,
  .content-body {
    padding: 27px 24px 40px;
  }

  .document-content h2,
  .content-body h2 {
    margin-top: 34px;
    font-size: 22px;
  }

  .document-content p,
  .document-content li,
  .content-body p,
  .content-body li,
  .content-body summary {
    font-size: 16px;
  }

  .safety-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .institutional-page .footer-brand {
    width: min(132px, 100%);
  }

  .institutional-page .footer-brand img {
    max-width: 132px;
  }

  body:not(.institutional-page) > main {
    margin-block: 24px;
    padding: 24px;
  }

  .page-header img {
    width: 72px;
  }
}

@media (max-width: 380px) {
  .document-hero,
  .content-hero,
  .document-content,
  .content-body {
    padding-inline: 20px;
  }
}
