/* Restore the original BACTIF copyright, disclaimer and privacy footer. */
.bactif-footer-ribbon {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  padding: 4px clamp(12px, 2vw, 32px) clamp(12px, 2vw, 20px) !important;
  color: #788b86;
  font-size: 8px;
}

/* Fixed lower navigation ribbon for the most-used clinical sections. */
.bactif-bottom-ribbon {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 16px;
  min-height: 34px;
  padding: 5px 16px;
  color: #e9fff8;
  background: linear-gradient(110deg, #075f53, #118b73 55%, #0a6a61);
  border-top: 1px solid rgba(173, 255, 225, 0.34);
  box-shadow: 0 -5px 18px rgba(5, 70, 60, 0.24);
}

.bactif-bottom-ribbon a,
.bactif-bottom-ribbon button {
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 3px 2px;
  font-size: 10px;
  line-height: 1.2;
  text-decoration: none;
}

.bactif-bottom-ribbon a:hover,
.bactif-bottom-ribbon a:focus-visible,
.bactif-bottom-ribbon button:hover,
.bactif-bottom-ribbon button:focus-visible {
  color: #dff45a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .bactif-bottom-ribbon {
    bottom: 70px;
    gap: 1px 8px;
    min-height: 30px;
    padding: 4px 8px;
  }

  .bactif-bottom-ribbon a,
  .bactif-bottom-ribbon button {
    font-size: 8px;
  }
}


.bactif-footer-disclaimer {
  flex: 0 0 100%;
  margin: 0 0 7px;
  color: #22423f;
  font-size: clamp(8px, 1.5vw, 9.5px);
  line-height: 1.5;
  background: linear-gradient(105deg, #e8f7f4 0%, #e4f1fb 55%, #eefaf6 100%);
  border: 1px solid rgba(23, 108, 92, 0.18);
  border-left: 3px solid #17a08c;
  border-radius: 8px;
  padding: clamp(6px, 1.6vw, 10px) clamp(8px, 2vw, 14px);
  box-shadow: 0 1px 2px rgba(16, 60, 54, 0.06);
}

.bactif-footer-disclaimer strong {
  color: #0f5f52;
}

/* Canonical clinical navigation for the footer ribbon. */
.bactif-footer-ribbon > nav[data-bactif-footer-ribbon] {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 100%;
  order: 2;
}

.bactif-footer-ribbon > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bactif-footer-ribbon button,
.bactif-footer-ribbon a {
  color: #4f736c;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 4px;
  font-size: 8px;
  text-decoration: none;
}

.bactif-footer-ribbon button:hover,
.bactif-footer-ribbon button:focus-visible,
.bactif-footer-ribbon a:hover,
.bactif-footer-ribbon a:focus-visible {
  color: #176c5c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Restore the official reference link buttons in the authentic-source layer. */
.evidence .source-links {
  display: grid !important;
} 

@media (max-width: 850px) {
  .bactif-footer-ribbon {
    padding: 2px 12px 16px !important;
  }
}

@media (max-width: 590px) {
  .bactif-footer-ribbon {
    padding: 2px 10px 14px !important;
    gap: 4px 10px;
  }

  .bactif-footer-ribbon > div {
    order: 3;
    width: 100%;
  }
}

/* Print / PDF: the safety notice must always print above the copyright line. */
@media print {
  .bactif-footer-ribbon {
    display: block !important;
    visibility: visible !important;
    color: #333 !important;
    font-size: 9px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .bactif-footer-disclaimer {
    display: block !important;
    visibility: visible !important;
    color: #222 !important;
    font-size: 9px;
    margin-bottom: 6px;
  }
}
