/* Sitewide readability safeguards — loaded last on every page. */

/* Navigation language controls must never fall back to browser-link blue. */
.navbar .container .lang-switch,
.navbar > .container .lang-switch {
  color: #ffffff !important;
  background: #123b68 !important;
  border-color: #123b68 !important;
}

.navbar .container .lang-switch:hover,
.navbar .container .lang-switch:focus-visible {
  color: #07182d !important;
  background-color: #ffd21a;
  border-color: #ffd21a;
}

/* Breadcrumbs displayed on the navy SEO hero. */
html body .seo-hero .seo-breadcrumb {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}

html body .seo-hero .seo-breadcrumb a {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Moving sector labels: retain the understated look without sacrificing contrast. */
.sectors .sectors-inner span,
.sectors .sectors-inner span:nth-child(3n) {
  color: rgba(255, 255, 255, 0.72) !important;
}

.sectors .sectors-inner span + span::before {
  color: #ffd21a !important;
  opacity: 0.8;
}

/* Article calls to action and highlighted sidebar cards are intentionally dark. */
html body .article-cta {
  background: #0051ba !important;
  color: #ffffff !important;
}

html body .article-cta h2,
html body .article-cta h3,
html body .article-cta p {
  color: #ffffff !important;
}

html body .article-cta p {
  opacity: 0.9 !important;
}

html body .sidebar-card[style*="linear-gradient"],
html body .sidebar-card[style*="background: var(--blue)"],
html body .sidebar-card[style*="background:var(--blue)"] {
  background: #0051ba !important;
  color: #ffffff !important;
}

html body .sidebar-card[style*="linear-gradient"] h4,
html body .sidebar-card[style*="background: var(--blue)"] h4,
html body .sidebar-card[style*="background:var(--blue)"] h4 {
  color: #ffd21a !important;
}

html body .sidebar-card[style*="linear-gradient"] p,
html body .sidebar-card[style*="background: var(--blue)"] p,
html body .sidebar-card[style*="background:var(--blue)"] p {
  color: #ffffff !important;
  opacity: 0.9;
}

/* Secondary buttons inside pale service and case-study heroes. */
html body .service-hero .btn-secondary {
  color: #123b68 !important;
  border-color: #123b68 !important;
  background-color: transparent !important;
}

html body .service-hero .btn-secondary:hover,
html body .service-hero .btn-secondary:focus-visible {
  color: #ffffff !important;
  background-color: #123b68 !important;
}

/* Comparison article: Google's brand red is too light for small copy on ivory. */
.google h2,
.google h3 {
  color: #a52714 !important;
}

/* Small supporting copy needs a full WCAG AA ratio on ivory. */
.about-approach .section-header p {
  color: #4b5563 !important;
}

/* Data-table and avatar surfaces that carry white text. */
html body .article-content table thead th,
html body .author-av {
  color: #ffffff !important;
  background: #123b68 !important;
}

/* Keep the hero emphasis typographic: yellow text, never a highlighted block. */
html body .hero .highlight,
html body .home-hero .highlight {
  color: #ffd338 !important;
  background: transparent !important;
  padding: 0 !important;
  box-decoration-break: initial;
  -webkit-box-decoration-break: initial;
}

.input-suffix > span {
  color: #475569 !important;
}

/* Article sidebars stay light and legible across older and newer templates. */
html body .article-sidebar .sidebar-card:nth-child(2) {
  color: #101828 !important;
  background: #fbfaf8 !important;
}

html body .article-sidebar .sidebar-card:nth-child(2) h2,
html body .article-sidebar .sidebar-card:nth-child(2) h3,
html body .article-sidebar .sidebar-card:nth-child(2) h4 {
  color: #101828 !important;
}

html body .article-sidebar .sidebar-card:nth-child(2) p {
  color: #374151 !important;
  opacity: 1 !important;
}

html body .article-sidebar .sidebar-card:nth-child(2) a {
  color: #004494 !important;
}

html body .btn-primary {
  color: #07182d !important;
}

/* Full-width conversion bands carry white copy on a dependable navy surface. */
html body .seo-cta,
html body .cases-cta,
html body .blog-newsletter {
  color: #ffffff !important;
  background: #123b68 !important;
}

html body .seo-cta h2,
html body .seo-cta p,
html body .cases-cta h2,
html body .cases-cta p,
html body .blog-newsletter h2,
html body .blog-newsletter p {
  color: #ffffff !important;
}

html body .section-header > p {
  color: #4b5563 !important;
}

html body .blog-filter.active,
html body .filter-btn.active {
  color: #07182d !important;
  background: #ffd338 !important;
}

html body .cat-metrics {
  color: #047857 !important;
}

html body .cat-comparison {
  color: #9a4f00 !important;
}

/* Founder-page proof and closing sections use white copy on navy. */
html body .about-stats,
html body .about-cta {
  color: #ffffff !important;
  background: #123b68 !important;
}

html body .about-stats h2,
html body .about-stats h3,
html body .about-stats p,
html body .about-cta h2,
html body .about-cta h3,
html body .about-cta p {
  color: #ffffff !important;
}

