/* BPF 5.15.2.13 — accessible contrast and layout finishing pass.
 * Page-scoped styling only. No business logic. Last-loaded override.
 * Deep audit should still measure computed ratios for every page and state. */
:root { --bpf-513-ink: #061427; --bpf-513-light: #f4faff; }
/* Home: ID specificity previously defeated shared CSS. */
#page-ask a.bpf-premium-cta.primary,
#page-ask a.bpf-premium-cta.primary *,
#page-ask .bpf-premium-cta.primary,
#page-ask .bpf-premium-cta.primary * {
 color:var(--bpf-513-ink)!important;-webkit-text-fill-color:var(--bpf-513-ink)!important;opacity:1!important;
}
/* Home and shared pale-blue actions: preserve bright BPF blue with dark foreground. */
a.bpf-store-btn.primary,a.bpf-store-btn.primary *,
a.bpf-513-readable-primary,a.bpf-513-readable-primary *,
.bpf-513-readable-primary,.bpf-513-readable-primary * {color:var(--bpf-513-ink)!important;-webkit-text-fill-color:var(--bpf-513-ink)!important;}
/* Nutrition hub: its own CSS didn't load the previous shared fix. */
.bpf-eat-hero a.bpf-eat-btn.primary,.bpf-eat-hero a.bpf-eat-btn.primary *,
.bpf-eat-hero .bpf-eat-btn.primary {color:var(--bpf-513-ink)!important;-webkit-text-fill-color:var(--bpf-513-ink)!important;}
/* Diet full-plan actions. */
#player-view .meal-source-note button,
#player-view .eat-label,
#player-view .bpf-see-plans-btn,
#player-view .bpf-see-plans-btn *,
#player-view .check-btn.done {color:var(--bpf-513-ink)!important;-webkit-text-fill-color:var(--bpf-513-ink)!important;opacity:1!important;}
/* Avoid dimmed nutrition labels and adherence metrics. */
#player-view .meal-macros,#player-view .meal-macros *,#player-view .adh-pct,#player-view .adh-val {opacity:1!important;}
/* Macro Tracker: prevent the former maroon-on-navy small labels. */
.bpf-513-macro-guide-label {color:#9cddff!important;-webkit-text-fill-color:#9cddff!important;opacity:1!important;}
.ncmd-actions .ncmd-btn.ghost {color:#eaf7ff!important;-webkit-text-fill-color:#eaf7ff!important;opacity:1!important;}
.macro-calc-link {color:#061427!important;-webkit-text-fill-color:#061427!important;}
/* Train Today, Perpetual Trainer, Workout Player, Aerobic, Progress, RBA. */
.tt-hero-actions .btn.primary,.tt-hero-actions .btn.primary *,
.pt-coach-primary-actions .pt-btn.primary,.pt-coach-primary-actions .pt-btn.primary *,
#finishBtn,#finishBtn *,
.bpf-w4-actions .bpf-w4-primary,.bpf-w4-actions .bpf-w4-primary *,
.rba-start-card a.primary,.rba-start-card a.primary *,
.bpf-513-bright-action,.bpf-513-bright-action * {
 color:var(--bpf-513-ink)!important;-webkit-text-fill-color:var(--bpf-513-ink)!important;opacity:1!important;
}
/* Fix Workout Player DURATION badge breaking mid-word at narrow widths. */
#overview .meta #duration {min-width:84px!important;width:auto!important;max-width:100%!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;}
/* Module gutter: only the Diet Player main content, do not rewrite navigation. */
@media(max-width:760px){body.bpf-513-diet .main-content,body.bpf-513-diet #main-content,body.bpf-513-diet main {padding-left:max(14px,env(safe-area-inset-left))!important;padding-right:max(14px,env(safe-area-inset-right))!important;box-sizing:border-box;}}
/* Keep tap targets practical, without changing control actions. */
#player-view .check-btn {min-width:40px;min-height:40px;}
#player-view .swap-btn {min-height:44px;}
