/* Surface palette sampled from the live BravoFin homepage at 390, 768 and 1440 px. */
html[data-bf-home-palette] {
  --bf-palette-page: #e5ded2;
  --bf-palette-hero: linear-gradient(160deg, rgba(36, 52, 71, .64), rgba(34, 42, 54, .68));
  --bf-palette-hero-start: rgba(36, 52, 71, .64);
  --bf-palette-hero-end: rgba(34, 42, 54, .68);
  --bf-palette-light-section: rgba(229, 222, 210, .25);
  --bf-palette-light-card: #efe9dd;
  --bf-palette-dark-section: #202e40;
  --bf-palette-federal: #e4ded2;
  --bf-palette-footer: rgba(36, 52, 71, .68);
}
/* Homepage palette: only existing standard-template background surfaces.
   Scope marker is attached to explicitly inventoried HTML files; home/mail excluded. */
html[data-bf-home-palette="standard"] body {
  background-color: var(--bf-palette-page) !important;
}

/* Ordinary content keeps the homepage's transparent stone base. */
html[data-bf-home-palette="standard"] body > .section:not(.section--surface):not(.section--surface2):not(.section--blue):not(.section--dark):not(.section--navy):not(.conversion-hero):not(.leadership-section),
html[data-bf-home-palette="standard"] main > .section:not(.section--surface):not(.section--surface2):not(.section--blue):not(.section--dark):not(.section--navy):not(.conversion-hero):not(.leadership-section) {
  background-color: transparent !important;
}

/* Light blocks and application areas match homepage positioning and #apply. */
html[data-bf-home-palette="standard"] body > :is(.section--surface,.section--surface2,.section--blue),
html[data-bf-home-palette="standard"] main > :is(.section--surface,.section--surface2,.section--blue) {
  background-color: var(--bf-palette-light-section) !important;
  background-image: none !important;
}

/* Dark information areas use the existing homepage review-panel navy. */
html[data-bf-home-palette="standard"] body > :is(.section--dark,.section--navy,.leadership-section),
html[data-bf-home-palette="standard"] main > :is(.section--dark,.section--navy,.leadership-section) {
  background-color: var(--bf-palette-dark-section) !important;
  background-image: none !important;
}

/* Existing heroes have only CSS gradients, no photographic background layer.
   Photos remain untouched in their existing img/media containers. */
html[data-bf-home-palette="standard"] body.page-criminal.theme-stone section.criminal-hero.conversion-hero,
html[data-bf-home-palette="standard"] body > section.conversion-hero,
html[data-bf-home-palette="standard"] main > section.conversion-hero,
html[data-bf-home-palette="standard"] body > section.contacts-hero,
html[data-bf-home-palette="standard"] body > section.section--dark:first-of-type {
  background-color: transparent !important;
  background-image: var(--bf-palette-hero) !important;
}

/* Rendered shared footer already uses this exact homepage layer. */
html[data-bf-home-palette="standard"] #site-footer > .footer,
html[data-bf-home-palette="standard"] footer.footer {
  background-color: var(--bf-palette-footer) !important;
  background-image: none !important;
}
/* Federal Scale, review cards, forms, buttons, media and decorative layers
   retain their existing canonical backgrounds, gradients and text colors. */

/* Color-only homepage palette; explicit per-page opt-in, no geometry or asset URL changes. */

html[data-bf-home-palette="custom-abon"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-abon"] .hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-abon"] .team-section,
html[data-bf-home-palette="custom-abon"] .offer-section--light { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-abon"] .staff-section,
html[data-bf-home-palette="custom-abon"] .offer-section--dark { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-abon"] .team-card,
html[data-bf-home-palette="custom-abon"] .offer-card,
html[data-bf-home-palette="custom-abon"] .staff-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-abon"] .premium-footer { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-abon"] .hero,
html[data-bf-home-palette="custom-abon"] .hero h1,
html[data-bf-home-palette="custom-abon"] .hero p,
html[data-bf-home-palette="custom-abon"] .hero .lead,
html[data-bf-home-palette="custom-abon"] .hero .hero__lead { color:#f4efe6!important; }

html[data-bf-home-palette="custom-abon"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-abon"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-amb"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-amb"] .hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-amb"] .sec,
html[data-bf-home-palette="custom-amb"] .sec--tight,
html[data-bf-home-palette="custom-amb"] .cta-band { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-amb"] .card,
html[data-bf-home-palette="custom-amb"] .tcard,
html[data-bf-home-palette="custom-amb"] .zone,
html[data-bf-home-palette="custom-amb"] .step,
html[data-bf-home-palette="custom-amb"] .leadc,
html[data-bf-home-palette="custom-amb"] .hero__income,
html[data-bf-home-palette="custom-amb"] .gd-card__cap,
html[data-bf-home-palette="custom-amb"] .person-card__cap,
html[data-bf-home-palette="custom-amb"] .faq details,
html[data-bf-home-palette="custom-amb"] .form-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-amb"] body>footer { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-amb"] .hero,
html[data-bf-home-palette="custom-amb"] .hero h1,
html[data-bf-home-palette="custom-amb"] .hero p,
html[data-bf-home-palette="custom-amb"] .hero .lead,
html[data-bf-home-palette="custom-amb"] .hero .hero__lead { color:#f4efe6!important; }

html[data-bf-home-palette="custom-amb"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-amb"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-bfl-vk"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-bfl-vk"] .hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-bfl-vk"] .section--white,
html[data-bf-home-palette="custom-bfl-vk"] .section--alt,
html[data-bf-home-palette="custom-bfl-vk"] .final-cta { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-vk"] .section--navy,
html[data-bf-home-palette="custom-bfl-vk"] .staff-section { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-vk"] .card,
html[data-bf-home-palette="custom-bfl-vk"] .panel,
html[data-bf-home-palette="custom-bfl-vk"] .situation-card,
html[data-bf-home-palette="custom-bfl-vk"] .staff-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-bfl-vk"] .premium-footer { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-vk"] .hero,
html[data-bf-home-palette="custom-bfl-vk"] .hero h1,
html[data-bf-home-palette="custom-bfl-vk"] .hero p,
html[data-bf-home-palette="custom-bfl-vk"] .hero .lead,
html[data-bf-home-palette="custom-bfl-vk"] .hero .hero__lead { color:#f4efe6!important; }

html[data-bf-home-palette="custom-bfl-vk"] .premium-footer,
html[data-bf-home-palette="custom-bfl-vk"] .premium-footer h2,
html[data-bf-home-palette="custom-bfl-vk"] .premium-footer p { color:#f4efe6!important; }

html[data-bf-home-palette="custom-bfl-vk"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-bfl-vk"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-bfl-old"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-bfl-old"] .hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-bfl-old"] .section--white,
html[data-bf-home-palette="custom-bfl-old"] .section--alt,
html[data-bf-home-palette="custom-bfl-old"] .bfl-desktop-benefits,
html[data-bf-home-palette="custom-bfl-old"] .bfl-closing-cta { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-old"] .section--navy,
html[data-bf-home-palette="custom-bfl-old"] .staff-section,
html[data-bf-home-palette="custom-bfl-old"] .company-section { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-old"] .card,
html[data-bf-home-palette="custom-bfl-old"] .panel,
html[data-bf-home-palette="custom-bfl-old"] .situation-card,
html[data-bf-home-palette="custom-bfl-old"] .staff-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-bfl-old"] .footer { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-old"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-bfl-old"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-bfl-mirror"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-bfl-mirror"] .hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-bfl-mirror"] .decision,
html[data-bf-home-palette="custom-bfl-mirror"] #steps,
html[data-bf-home-palette="custom-bfl-mirror"] .home-office,
html[data-bf-home-palette="custom-bfl-mirror"] .quiz-section { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-mirror"] .tone-dark,
html[data-bf-home-palette="custom-bfl-mirror"] .benefits,
html[data-bf-home-palette="custom-bfl-mirror"] .bf-pricing { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-mirror"] .decision-card,
html[data-bf-home-palette="custom-bfl-mirror"] .step-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-bfl-mirror"] body>footer.wrap { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-bfl-mirror"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-bfl-mirror"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-partner"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-partner"] .bp-hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-partner"] .bp-partner,
html[data-bf-home-palette="custom-partner"] .quiz-section { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-partner"] .bp-ambassador { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-partner"] body>footer.wrap { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-partner"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-partner"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-realty"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-realty"] .hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-realty"] body>section:not(.hero):not([data-bf-shared-reach]):not(#client-reviews) { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-realty"] .card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-realty"] .bf-footer-home-wrap { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-realty"] .bf-footer-home-wrap,
html[data-bf-home-palette="custom-realty"] .bf-footer-home-wrap h2,
html[data-bf-home-palette="custom-realty"] .bf-footer-home-wrap p { color:#f4efe6!important; }

html[data-bf-home-palette="custom-realty"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-realty"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-roman"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-roman"] .intro { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-roman"] .profile { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-roman"] .services { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-roman"] .service-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-roman"] .footer { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-roman"] .footer,
html[data-bf-home-palette="custom-roman"] .footer h2,
html[data-bf-home-palette="custom-roman"] .footer p { color:#f4efe6!important; }

html[data-bf-home-palette="custom-roman"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-roman"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-vk"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-vk"] body>div:first-of-type { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-vk"] .bf-footer-home-wrap { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-vk"] body>div:first-of-type,
html[data-bf-home-palette="custom-vk"] body>div:first-of-type h1,
html[data-bf-home-palette="custom-vk"] body>div:first-of-type p,
html[data-bf-home-palette="custom-vk"] body>div:first-of-type .lead,
html[data-bf-home-palette="custom-vk"] body>div:first-of-type .hero__lead { color:#f4efe6!important; }

html[data-bf-home-palette="custom-vk"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-vk"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-legal"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-legal"] .hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-legal"] #practices,
html[data-bf-home-palette="custom-legal"] #process,
html[data-bf-home-palette="custom-legal"] .team,
html[data-bf-home-palette="custom-legal"] #questions { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-legal"] .situations,
html[data-bf-home-palette="custom-legal"] .contact { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-legal"] .practice-card,
html[data-bf-home-palette="custom-legal"] .person-card,
html[data-bf-home-palette="custom-legal"] .process-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-legal"] .footer { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-legal"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-legal"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-legal-topic"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-legal-topic"] .topic-hero { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-legal-topic"] .practice-read.wrap { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-legal-topic"] .practice-catalog { background-color:var(--bf-palette-dark-section,#202e40)!important;background-image:none!important; }

html[data-bf-home-palette="custom-legal-topic"] #topic-contact { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-legal-topic"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-legal-topic"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-orion"] body { background-color:var(--bf-palette-page,#e5ded2)!important; }

html[data-bf-home-palette="custom-orion"] header.intro { background-color:transparent!important;background-image:var(--bf-palette-hero,linear-gradient(160deg,rgba(36,52,71,.64),rgba(34,42,54,.68)))!important; }

html[data-bf-home-palette="custom-orion"] .content-section { background-color:var(--bf-palette-light-section,rgba(229,222,210,.25))!important;background-image:none!important; }

html[data-bf-home-palette="custom-orion"] .soft-card { background-color:var(--bf-palette-light-card,#efe9dd)!important; }

html[data-bf-home-palette="custom-orion"] .site-footer { background-color:var(--bf-palette-footer,rgba(36,52,71,.68))!important;background-image:none!important; }

html[data-bf-home-palette="custom-orion"] header.intro,
html[data-bf-home-palette="custom-orion"] header.intro h1,
html[data-bf-home-palette="custom-orion"] header.intro p,
html[data-bf-home-palette="custom-orion"] header.intro .lead,
html[data-bf-home-palette="custom-orion"] header.intro .hero__lead { color:#f4efe6!important; }

html[data-bf-home-palette="custom-orion"] [data-bf-shared-reach] { background-color:var(--bf-palette-federal,#e4ded2)!important; }

html[data-bf-home-palette="custom-orion"] #client-reviews { background-color:var(--bf-palette-dark-section,#202e40)!important; }

html[data-bf-home-palette="custom-abon"] .hero h1 span { color:#e4cf96!important; }

html[data-bf-home-palette="custom-amb"] .hero h1 span { color:#e4cf96!important; }

html[data-bf-home-palette="custom-bfl-vk"] .hero h1 span { color:#e4cf96!important; }

html[data-bf-home-palette="custom-realty"] .hero .sub { color:#eae5db!important; }
