header .nav-links a.nav-active:not(.btn-consult) {
  color: #1a56db !important;
  font-weight: 700 !important;
}

header .nav-links a.nav-active:not(.btn-consult)::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 2px !important;
  width: 100% !important;
  height: 2px !important;
  background: #1a56db !important;
  border-radius: 999px !important;
  display: block !important;
}

@media (max-width: 768px) {
  header .nav-links a.nav-active:not(.btn-consult)::after {
    display: none !important;
  }
}

/* Article headers connect directly to the blue title band without a seam. */
body.article-page > header {
  box-shadow: none !important;
  border-bottom: 0 !important;
}

body.article-page > .article-header {
  margin-top: 0 !important;
  border-top: 0 !important;
}

body.article-page header .nav-links a.nav-active:not(.btn-consult)::after {
  display: none !important;
}

/* Shared contact block for every knowledge-base article. */
.article-contact-section {
  padding: 36px 24px 0;
  background: #fff;
  overflow: hidden;
}

.article-contact-section-inner {
  max-width: 840px;
  margin: 0 auto;
}

.article-contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  padding-top: 24px;
}

body.article-page .article-contact-details {
  width: 100vw;
  margin: 34px calc(50% - 50vw) 0 !important;
  padding: 48px 24px 50px !important;
  color: #fff !important;
  text-align: center !important;
  background: #2455c7 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.article-page .article-contact-details > h3,
body.article-page .article-contact-details > strong {
  display: block !important;
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.55 !important;
}

body.article-page .article-contact-details > p {
  max-width: 680px;
  margin: 0 auto 20px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

body.article-page .article-contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.article-page .article-contact-actions > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px !important;
  color: #1a56db !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  background: #fff !important;
  border: 1px solid #fff !important;
  border-radius: 6px !important;
}

body.article-page .article-contact-actions > a:hover {
  background: #f8fbff !important;
  border-color: #fff !important;
}

body.article-page .article-contact-actions > .article-contact-secondary {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.62) !important;
}

body.article-page .article-contact-actions > .article-contact-secondary:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #fff !important;
}

body.article-page > footer {
  margin-top: 0 !important;
  padding: 22px 24px 24px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  background: #1d49ad !important;
  border-top: 0 !important;
}

body.article-page > footer .container {
  max-width: 840px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px 24px !important;
  border: 0 !important;
}

body.article-page > footer p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

body.article-page > footer a {
  color: #fff !important;
}

body.article-page .source-note {
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.article-contact-section .article-contact-qr {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-contact-qr img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.article-contact-qr p {
  margin: 0 !important;
  text-align: center;
}

.article-contact-qr .article-contact-qr-title {
  margin-top: 8px !important;
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.article-contact-qr .article-contact-qr-description {
  margin-top: 2px !important;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 600px) {
  .article-contact-section {
    padding: 30px 16px 0;
  }

  .article-contact-qr {
    margin-top: 18px;
    padding-top: 18px;
  }

  body.article-page .article-contact-details {
    margin-top: 30px !important;
    padding: 36px 16px 40px !important;
  }

  body.article-page .article-contact-details > h3,
  body.article-page .article-contact-details > strong {
    margin-bottom: 8px !important;
    font-size: 18px !important;
  }

  body.article-page .article-contact-details > p {
    margin-bottom: 18px !important;
    font-size: 14px !important;
  }

  body.article-page .article-contact-actions {
    flex-direction: column;
    gap: 10px;
  }

  body.article-page .article-contact-actions > a {
    width: min(100%, 280px);
  }

  body.article-page > footer {
    padding: 20px 16px 22px !important;
  }

  body.article-page > footer .container {
    flex-direction: column !important;
    gap: 6px !important;
  }
}
