/* ============================================================
   BKP v2.0.3.3 — Inner-page and companion Press visibility FINAL
   Base: v2.0.3 mobile-contact fix (via v2.0.3.2).
   HERO buttons and slider styles intentionally untouched.
   ============================================================ */
:root { --bkp-fix-ink:#f7f8fc; --bkp-fix-muted:#c9d2df; --bkp-fix-card:#192130; --bkp-fix-accent:#fa8561; }

/* Main content on dark inner pages, including rendered page content. */
body:not(.home) main.inner-page,
body:not(.home) main#main-content { color:var(--bkp-fix-ink); }
body:not(.home) main.inner-page :is(.page-banner,.reading-layout,.archive-wrap) :is(h1,h2,h3,h4,h5,h6) {
  color:var(--bkp-fix-ink);
}
body:not(.home) main.inner-page .entry-content :is(p,li,blockquote) { color:var(--bkp-fix-muted); }

/* The press/news cards are rendered by the separate BK Press plugin, not
   by the theme's .inner-page elements. Target the actual bkph namespace.
   Apply a DARK card AND LIGHT card copy together to avoid white-on-white. */
body main [class*="bkph-"] :is(article, [class*="card"], [class*="featured"], [class*="feature"], [class*="story"]):not([class*="image"]):not([class*="thumb"]),
body main :is(.bkph-featured-card,.bkph-news-card,.bkph-press-card,.bkph-home-card,.bkph-media-card,.bkph-featured-story) {
  background-color:var(--bkp-fix-card) !important;
  border-color:rgba(255,255,255,.16) !important;
  color:var(--bkp-fix-ink) !important;
}
/* Photo blocks stay as photos; no dark overlay on the image. */
body main [class*="bkph-"] :is(img,picture,figure) { opacity:1; }

/* Text within press cards: headings, anchors, source and excerpts. These
   selectors intentionally cover both home and /news-and-press/ templates. */
body main [class*="bkph-"] :is(article,[class*="card"],[class*="featured"],[class*="feature"],[class*="story"]) :is(h1,h2,h3,h4,h5,h6,[class*="title"],[class*="heading"]),
body main :is(.bkph-featured-card,.bkph-news-card,.bkph-press-card,.bkph-media-card) :is(h1,h2,h3,h4,h5,h6) {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
  visibility:visible !important;
  text-shadow:none !important;
}
body main [class*="bkph-"] :is(article,[class*="card"],[class*="featured"],[class*="feature"],[class*="story"]) :is(p,li,time,small,[class*="source"],[class*="excerpt"],[class*="description"]),
body main :is(.bkph-featured-card,.bkph-news-card,.bkph-press-card,.bkph-media-card) :is(p,small,time){
  color:var(--bkp-fix-muted) !important;
  -webkit-text-fill-color:var(--bkp-fix-muted) !important;
  opacity:1 !important;
  visibility:visible !important;
}
body main [class*="bkph-"] :is(article,[class*="card"],[class*="featured"],[class*="feature"],[class*="story"]) a:not([class*="tab"]):not([class*="filter"]),
body main :is(.bkph-featured-card,.bkph-news-card,.bkph-press-card,.bkph-media-card) a {
  color:var(--bkp-fix-accent) !important;
  -webkit-text-fill-color:var(--bkp-fix-accent) !important;
  opacity:1 !important;
  visibility:visible !important;
}
/* Titles linked to original stories should retain headline contrast. */
body main [class*="bkph-"] :is(article,[class*="card"],[class*="featured"],[class*="feature"],[class*="story"]) :is(h2,h3,h4) a,
body main [class*="bkph-"] :is(article,[class*="card"],[class*="featured"],[class*="feature"],[class*="story"]) a[class*="title"]{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
/* Some plugin layouts place content in a white split card with generic markup.
   Give the CONTENT HALF its own dark backdrop even when there is no card class. */
body main [class*="bkph-"] :is([class*="content"],[class*="body"],[class*="details"],[class*="info"]):not(.bkph-news-intro):not([class*="image"]):not([class*="thumb"]) {
  color:var(--bkp-fix-ink) !important;
}
/* Never override the brand header or the homepage HERO slider. */
/* Accessibility: keep visible keyboard focus in plugin cards. */
body main [class*="bkph-"] a:focus-visible { outline:2px solid var(--bkp-fix-accent);outline-offset:3px; }
@media(max-width:680px){
  body main [class*="bkph-"] :is(article,[class*="card"],[class*="featured"],[class*="feature"],[class*="story"]) :is(h2,h3,h4) {overflow-wrap:anywhere;}
}
