/* AlanBush360 v4.21.0 — inner-page contrast restoration over a faded fixed photograph.
   Deliberately scoped to inner pages; dark photographic heroes/cards remain untouched. */

html body.ab360-inner-page { color:#193448; }

/* Light editorial surfaces: opaque enough that the global photograph never eats the copy.
   Use complete `background` to win over old background images and alpha section colors. */
html body.ab360-inner-page main :is(
  .topic-overview,.topic-steps,.topic-choice-improvement,.choice-section,
  .choice-grid-section,.related-topics,.faq,.faq-wrap,.disclosure,
  .authority,.choice-handoff,.flow-action,.different-path,
  .goall-value,.goall-resources,.goall-employee,.goall-compliance,
  .business-flagships,.provider-expectation,.specialist-context,
  .bc-wrap,.bc-decision,.hc-content,.hc-handoff,.hc-info,.hc-faq,
  .kyros-section,.kyros-discovery,.kyros-watch-section,
  .credentials-content,.credentials-section,.review-dedicated,
  .funding-result,.fund-result,.referral-shell,.conversation-shell,
  .payroll-video-section
) {
  background:rgba(248,251,253,.97) !important;
  border:1px solid #c7d9e3 !important;
  box-shadow:0 14px 34px rgba(1,15,27,.16) !important;
  color:#193448 !important;
}

/* Clear labels and section titles. Limit these rules to immediate editorial hierarchy,
   not content inside photographic cards or dark CTAs. */
html body.ab360-inner-page main :is(
  .topic-overview,.topic-steps,.topic-choice-improvement,.choice-section,
  .related-topics,.faq,.faq-wrap,.disclosure,.authority,.flow-action,
  .goall-value,.goall-resources,.goall-employee,.business-flagships,
  .specialist-context,.bc-wrap,.bc-decision,.hc-content,.hc-handoff,
  .kyros-section,.kyros-discovery,.kyros-watch-section,.credentials-content,
  .credentials-section,.payroll-video-section
) > :is(h2,h3,h4),
html body.ab360-inner-page main :is(.bc-heading,.hc-sectionhead,.section-heading) > :is(h2,h3),
html body.ab360-inner-page main :is(.bc-decision-heading,.kyros-discovery-copy) > :is(h2,h3) {
  color:#102d43 !important;
  text-shadow:none !important;
}
html body.ab360-inner-page main :is(
  .topic-overview,.topic-steps,.topic-choice-improvement,.choice-section,
  .related-topics,.faq,.faq-wrap,.disclosure,.authority,.flow-action,
  .goall-value,.goall-resources,.goall-employee,.business-flagships,
  .specialist-context,.bc-wrap,.bc-decision,.hc-content,.hc-handoff,
  .kyros-section,.kyros-discovery,.kyros-watch-section,.credentials-content,
  .credentials-section,.payroll-video-section
) > :is(p,ol,ul,small),
html body.ab360-inner-page main :is(.bc-heading,.hc-sectionhead,.section-heading,.bc-decision-heading) > p {
  color:#385266 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
html body.ab360-inner-page main :is(.bc-wrap,.bc-decision,.hc-content,.kyros-section) :is(.bc-note,.note,.help-text,.service-disclaimer) {
  color:#3d586b !important;
}

/* Top-level business diagnostics and content on previously transparent sections. */
html body.ab360-inner-page .bc-main > .bc-wrap {
  max-width:1190px;
  margin:24px auto;
  border-radius:28px;
}
html body.ab360-inner-page main .bc-decision .bc-decision-heading h2,
html body.ab360-inner-page main .bc-decision .bc-decision-heading p {
  text-shadow:none !important;
}
html body.ab360-inner-page main .bc-related a.bc-btn-outline {
  background:#fff !important;
  color:#12465c !important;
  border:2px solid #9cbccc !important;
}

/* Ordinary (non-photo) panels and steps need a reliable dark-on-light pairing. */
html body.ab360-inner-page main :is(
  .topic-overview .panel,.topic-steps .route-step,
  .faq details,.choice-card:not(.ab360-card-photo),
  .specialist-context-card:not(.ab360-card-photo),
  .provider-reveal,.utility-note,.review-page-link,.lead-form,
  .referral-form,.conversation-form,.dedicated-review-form,
  .action-intake,.goall-value-grid article,.goall-employee .panel,
  .kyros-card:not(.ab360-card-photo),.credentials-card:not(.ab360-card-photo)
) {
  background:#fff !important;
  color:#17384a !important;
  border-color:#c9d9e3 !important;
}
html body.ab360-inner-page main :is(
  .topic-overview .panel,.topic-steps .route-step,
  .faq details,.choice-card:not(.ab360-card-photo),
  .provider-reveal,.utility-note,.review-page-link,.lead-form,
  .referral-form,.conversation-form,.dedicated-review-form,
  .action-intake,.kyros-card:not(.ab360-card-photo)
) :is(h2,h3,h4,summary,strong,label) { color:#153448 !important; }
html body.ab360-inner-page main :is(
  .topic-overview .panel,.topic-steps .route-step,
  .faq details,.choice-card:not(.ab360-card-photo),
  .provider-reveal,.utility-note,.review-page-link,.lead-form,
  .referral-form,.conversation-form,.dedicated-review-form,
  .action-intake,.kyros-card:not(.ab360-card-photo)
) :is(p,li,small,.field-help,.form-privacy) { color:#385568 !important; }

/* Form legibility, including select menus and placeholders. */
html body.ab360-inner-page main :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  background:#fff !important;
  color:#142e42 !important;
  border:2px solid #9fb8c9 !important;
}
html body.ab360-inner-page main :is(input,textarea)::placeholder {
  color:#5a7283 !important;
  opacity:1 !important;
}
html body.ab360-inner-page main :is(.lead-form,.referral-form,.conversation-form,.dedicated-review-form,.action-intake) label {
  color:#17384a !important;
}

/* Keep intentional dark/high-impact inner-page surfaces dark with light foregrounds.
   These must follow the editorial light-panel rules to restore correct contrast. */
html body.ab360-inner-page main :is(
  .ab360-premium-hero,.bc-hero,.hc-hero,.topic-hero,
  .kyros-hero,.credentials-hero,.bc-diagnostic,
  .referral-copy,.conversation-copy,.business-score-cta,
  .provider-cta-band,.provider-cta-inline,.kyros-side
) {
  color:#f8fbff !important;
}
html body.ab360-inner-page main :is(
  .bc-diagnostic,.referral-copy,.conversation-copy,
  .business-score-cta,.provider-cta-band,.provider-cta-inline,.kyros-side
) :is(h2,h3,h4,strong) {
  color:#fff !important;
}
html body.ab360-inner-page main :is(
  .bc-diagnostic,.referral-copy,.conversation-copy,
  .business-score-cta,.provider-cta-band,.provider-cta-inline,.kyros-side
) :is(p,li,small) {
  color:#e6f0f6 !important;
}

/* Never impose dark copy on previously upgraded photographic cards. */
html body.ab360-inner-page main .ab360-card-photo :is(h2,h3,h4,strong) { color:#fff !important; }
html body.ab360-inner-page main .ab360-card-photo :is(p,li,small,.card-fact) { color:#eef6fa !important; }

/* Accessible text links and focus, without modifying actual destinations. */
html body.ab360-inner-page main :is(.topic-overview,.topic-steps,.related-topics,.faq,.bc-wrap,.hc-content,.kyros-section) a:not(.btn):not(.bc-btn):not(.ab360-card-photo) {
  color:#075c7b;
}
html body.ab360-inner-page main :is(a,button,input,select,textarea):focus-visible {
  outline:3px solid #b3812e !important;
  outline-offset:3px !important;
}

@media (max-width:700px) {
  html body.ab360-inner-page main :is(.bc-wrap,.hc-content,.kyros-section,.choice-section,.topic-overview,.related-topics,.faq) {
    border-radius:20px;
  }
}
