/*
 * WP12 progressive-enhancement/accessibility corrections.
 * Scope: verified WCAG text-contrast failures only.
 * This file intentionally loads after all locked/page-specific presentation.
 */

/* Shared Blocksy footer labels: 45% white measured 4.42:1 on #000016. */
body.gfx-final-ui-wordpress .gh-final-footer-label {
  color: rgba(255,255,255,.58) !important;
}

/* Home muted index/ledger labels measured below 4.5:1. */
body.gfx-final-ui-wordpress.gfx-page-home .principle-rail span,
body.gfx-final-ui-wordpress.gfx-page-home .section-kicker span:last-child {
  color:#62636c !important;
}

/* WordPress Development muted scope labels. */
body.gfx-final-ui-wordpress.gfx-page-wordpress-development
.gh-wp3-scope-item small {
  color:#62636c !important;
}

/* Contact required/optional helper labels. */
body.gfx-final-ui-wordpress.gfx-page-contact
.gfx-final-ui-root .optional {
  color:#62636c !important;
}

/* Mobile App muted decision labels on white/soft surfaces. */
body.gfx-final-ui-wordpress.gfx-page-mobile-app-development
.gfx-final-ui-root :is(
  .job-node small,
  .gate-question small,
  .outcome small,
  .signal-strip-label,
  .diagnosis-label,
  .release-lane small,
  .future-label,
  .future-zone small,
  .signal-title
) {
  color:#62636c !important;
}

/* Social Media muted operational labels on light surfaces. */
body.gfx-final-ui-wordpress.gfx-page-social-media-management
.gfx-final-ui-root small {
  color:#62636c !important;
}

/*
 * Crimson brand text is strong enough on light surfaces but failed when the
 * same token was used as small text on navy. Use the existing lighter brand
 * red only in known dark-section contexts.
 */
body.gfx-final-ui-wordpress .gfx-final-ui-root :is(
  .section-navy,
  .chapter.dark,
  .bg-navy,
  .bg-deep-navy,
  .founder,
  .founder-led,
  .remote,
  .gh-wp3-maintain
) :is(
  .eyebrow,
  .gh-wp3-eyebrow,
  .category,
  .chapter-no,
  .text-gfx-crimson,
  .text-brand-crimson
) {
  color:#E1493F !important;
}

/* Known dark-section plain brand-emphasis text in Case Studies. */
body.gfx-final-ui-wordpress.gfx-page-case-studies
.gfx-final-ui-root .chapter.dark b {
  color:#E1493F !important;
}

/* Social Media dark-section kicker uses muted gray rather than brand red. */
body.gfx-final-ui-wordpress.gfx-page-social-media-management
.gfx-final-ui-root :is(.section-navy,.bg-navy,.bg-deep-navy,.close) .kicker {
  color:rgba(255,255,255,.74) !important;
}

/* White-Label low-opacity explanatory line measured below 4.5:1. */
body.gfx-final-ui-wordpress.gfx-page-white-label-development
.gfx-final-ui-root .opacity-60.italic {
  opacity:1 !important;
  color:#62636c !important;
}


/* --------------------------------------------------------------------------
   WP12 durable progressive-enhancement fallback
   -------------------------------------------------------------------------- */

/*
 * The deterministic Final UI builder restores the locked restore.css verbatim.
 * Keep that source immutable. This later WP12 layer overrides only the no-JS
 * failure: at <=767px the server-rendered desktop-authored content remains
 * visible until JavaScript has successfully activated the mobile authored view.
 */
@media (max-width:767px) {
  body.gfx-final-ui-wordpress
  .gfx-final-ui-root:not([data-gfx-final-ui-ready="mobile"])
  > .approved-view-desktop {
    display:block !important;
  }
}

/* --------------------------------------------------------------------------
   Fresh Run 36118862317 residual contrast corrections
   -------------------------------------------------------------------------- */

/* WordPress Development: two mobile transaction helper labels at 4.37:1. */
body.gfx-final-ui-wordpress.gfx-page-wordpress-development
.gh-wp3-mobile-outcome > span {
  color:#62636c !important;
}

/* WordPress SEO: evidence micro-labels on the light proof cards. */
body.gfx-final-ui-wordpress.gfx-page-wordpress-seo
.gfx-final-ui-root :is(.metric-label,.mini span) {
  color:#62636c !important;
}

/* WordPress SEO: the AI process band is navy. */
body.gfx-final-ui-wordpress.gfx-page-wordpress-seo
.gfx-final-ui-root .ai-band .eyebrow {
  color:#E1493F !important;
}
body.gfx-final-ui-wordpress.gfx-page-wordpress-seo
.gfx-final-ui-root .ai-band .text-link {
  color:#fff !important;
}

/* WordPress SEO mobile: proven dark Diagnosis label and light closing label. */
body.gfx-final-ui-wordpress.gfx-page-wordpress-seo
.gfx-final-ui-root .gfx-inline-style-49f96f5d4074 {
  color:#E1493F !important;
}
body.gfx-final-ui-wordpress.gfx-page-wordpress-seo
.gfx-html2wp-view--mobile .close .eyebrow {
  color:#B31912 !important;
}

/* Custom Software: dark proof/maintain bands. */
body.gfx-final-ui-wordpress.gfx-page-custom-software-development
.gfx-final-ui-root :is(.proof-growth,.maintain) .eyebrow {
  color:#E1493F !important;
}
body.gfx-final-ui-wordpress.gfx-page-custom-software-development
.gfx-final-ui-root .proof-growth .text-route {
  color:#fff !important;
}
body.gfx-final-ui-wordpress.gfx-page-custom-software-development
.gfx-final-ui-root .proof-growth .text-route span {
  color:#E1493F !important;
}

/* Custom Software: light/soft micro-labels measured between 3.81:1 and 4.23:1. */
body.gfx-final-ui-wordpress.gfx-page-custom-software-development
.gfx-final-ui-root :is(
  .outer-label,
  .micro,
  .system-form-label,
  .boundary-label,
  .forms-label,
  .model-caption,
  .lane-label
) {
  color:#62636c !important;
}
body.gfx-final-ui-wordpress.gfx-page-custom-software-development
.gfx-final-ui-root :is(
  .complexity-section,
  .requirement-gate,
  .risk-proof
) small,
body.gfx-final-ui-wordpress.gfx-page-custom-software-development
.gfx-final-ui-root .result-copy small {
  color:#62636c !important;
}

/* Mobile App: dark System Around the App band + definition boundary helpers. */
body.gfx-final-ui-wordpress.gfx-page-mobile-app-development
.gfx-final-ui-root .system-section .eyebrow {
  color:#E1493F !important;
}
body.gfx-final-ui-wordpress.gfx-page-mobile-app-development
.gfx-final-ui-root .definition-boundary small {
  color:#62636c !important;
}

/* Social Media: dark calendar/scope accents and light blueprint helper text. */
body.gfx-final-ui-wordpress.gfx-page-social-media-management
.gfx-final-ui-root .calendar-outcome .eyebrow,
body.gfx-final-ui-wordpress.gfx-page-social-media-management
.gfx-final-ui-root .scope-section .eyebrow {
  color:#E1493F !important;
}
body.gfx-final-ui-wordpress.gfx-page-social-media-management
.gfx-final-ui-root .in-scope small {
  color:rgba(255,255,255,.82) !important;
}
body.gfx-final-ui-wordpress.gfx-page-social-media-management
.gfx-final-ui-root .blueprint-row span {
  color:#62636c !important;
}

/* Case Studies: Growth OS topology core is a light card inside a dark chapter. */
body.gfx-final-ui-wordpress.gfx-page-case-studies
.gfx-final-ui-root .chapter.dark .topo-core .eyebrow {
  color:#B31912 !important;
}

/* About: light AI-panel header helper + light closing-section eyebrow. */
body.gfx-final-ui-wordpress.gfx-page-about
.gfx-final-ui-root .ai-panel-head span {
  color:#62636c !important;
}
body.gfx-final-ui-wordpress.gfx-page-about
.gfx-final-ui-root .close .eyebrow {
  color:#B31912 !important;
}


/* Final three residuals from Run 36146963960. */
body.gfx-final-ui-wordpress.gfx-page-custom-software-development
.gfx-final-ui-root .model-core small {
  color:#62636c !important;
}

body.gfx-final-ui-wordpress.gfx-page-mobile-app-development
.gfx-final-ui-root .definition-authority small {
  color:#62636c !important;
}

body.gfx-final-ui-wordpress.gfx-page-case-studies
.gfx-final-ui-root .close .eyebrow {
  color:#E1493F !important;
}
