/* Final readability overrides loaded last.
   Odoo themes can override anchors and buttons aggressively, so these selectors
   intentionally use strong scoping and !important for critical text contrast. */

.oca-site .oca-nav,
.oca-site .oca-nav * {
  text-shadow: none !important;
}

.oca-site .oca-nav .oca-nav__brand,
.oca-site .oca-nav .oca-nav__brand:visited {
  color: #f8f7f9 !important;
}

.oca-site .oca-nav .oca-nav__brand span {
  color: #bdeeed !important;
}

.oca-site .oca-nav .oca-nav__links a,
.oca-site .oca-nav .oca-nav__links a:visited {
  color: rgba(255, 255, 255, 0.82) !important;
}

.oca-site .oca-nav .oca-nav__links a:hover,
.oca-site .oca-nav .oca-nav__links a.is-active {
  color: #ffffff !important;
}

.oca-site a.oca-btn,
.oca-site .oca-btn,
.oca-site a.oca-btn:visited,
.oca-site .oca-btn:visited,
.oca-site .oca-nav a.oca-btn,
.oca-site .oca-nav a.oca-btn:visited {
  background-color: #714b67 !important;
  background-image: none !important;
  border-color: #714b67 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28) !important;
}

.oca-site a.oca-btn:hover,
.oca-site .oca-btn:hover,
.oca-site a.oca-btn:focus,
.oca-site .oca-btn:focus {
  background-color: #805674 !important;
  border-color: #805674 !important;
  color: #ffffff !important;
}

.oca-site a.oca-btn--ghost,
.oca-site .oca-btn--ghost,
.oca-site a.oca-btn--ghost:visited,
.oca-site .oca-btn--ghost:visited,
.oca-site .oca-nav a.oca-btn--ghost,
.oca-site .oca-nav a.oca-btn--ghost:visited {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.24) !important;
}

.oca-site a.oca-btn--ghost:hover,
.oca-site .oca-btn--ghost:hover,
.oca-site a.oca-btn--ghost:focus,
.oca-site .oca-btn--ghost:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  color: #ffffff !important;
}

.oca-site a.oca-btn--light,
.oca-site .oca-btn--light,
.oca-site a.oca-btn--light:visited,
.oca-site .oca-btn--light:visited {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
  color: #3b2738 !important;
  text-shadow: none !important;
}

.oca-site a.oca-btn--light:hover,
.oca-site .oca-btn--light:hover,
.oca-site a.oca-btn--light:focus,
.oca-site .oca-btn--light:focus {
  background-color: #f6eff4 !important;
  border-color: #f6eff4 !important;
  color: #241922 !important;
}

.oca-site .oca-btn *,
.oca-site .oca-btn--ghost *,
.oca-site .oca-btn--light * {
  color: inherit !important;
}

.oca-site .oca-cta a.oca-btn--ghost,
.oca-site .oca-cta a.oca-btn--ghost:visited {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}

.oca-site .oca-card__footer .oca-link,
.oca-site .oca-card__footer .oca-link:visited,
.oca-site .oca-article__footer .oca-link,
.oca-site .oca-article__footer .oca-link:visited {
  color: #714b67 !important;
}

.oca-site[data-theme="dark"] .oca-card__footer .oca-link,
html[data-bs-theme="dark"] .oca-site .oca-card__footer .oca-link,
body.o_dark .oca-site .oca-card__footer .oca-link {
  color: #d7b8cc !important;
}
