/* White Label editorial-commercial visual system — pilot v1, 2026-11-16.
 * Enabled exclusively by the rue-white-label-pilot body class.
 * Source content, ACF fields, forms and the published landing are unchanged.
 */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot {
  --wl-pilot-ink: #222d36;
  --wl-pilot-muted: #52616c;
  --wl-pilot-gold: #bfa161;
  --wl-pilot-pale: #fcf9f2;
  --wl-pilot-border: #e6dcc9;
  --wl-pilot-shadow: 0 12px 32px rgba(26,34,42,.055);
}

/* Editorial rhythm: wider data, narrower narrative. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary > .fx-builder > section.fx--rich_text:not(:where(#white-label-facts)) {
  padding-block: clamp(48px,4.8vw,70px);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary > .fx-builder > section.fx--rich_text:not(:where(#white-label-facts)):nth-of-type(4n + 1),
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary > .fx-builder > section.fx--rich_text:not(:where(#white-label-facts)):nth-of-type(4n + 2) {
  background: var(--wl-pilot-pale);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--rich_text:not(:has(.wl-child-table-scroll,.wl-pricing-summary,.wl-requirements,.wl-comparison-cards,.wl-team-profile,.wl-enquiry-form)) .fx-rich {
  max-width: 920px;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--rich_text .fx-rich-body {
  overflow-wrap: break-word;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--rich_text .fx-rich-body > :where(p,ul,ol) {
  max-width: 96ch;
  margin-inline: auto;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--rich_text[id^="what-is-"] .fx-rich-body > p:first-of-type {
  color: var(--wl-pilot-ink);
  font-size: clamp(17px,1.45vw,19px);
  line-height: 1.75;
}
/* Hierarchy without adding copy or decorative pseudo-headings. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--rich_text:has(:is(.wl-pricing-summary,.wl-requirements,.wl-comparison-cards)) .fx-rich__heading::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--wl-pilot-gold);
}

/* Shared headings force pale gold/centering with !important. These two scoped
 * declarations are necessary to correct that cascade without touching shared CSS. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary.fx-main > .fx-builder > section.fx:not(:where(#white-label-top,#white-label-facts)) :is(.fx-heading,h2,h3,h4,h5,h6):not(:where(.wl-team-profile *)) {
  color: var(--wl-pilot-ink) !important;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary.fx-main .fx--rich_text:not(:has(.wl-pricing-summary,.wl-requirements,.wl-comparison-cards,.wl-team-profile,.wl-enquiry-form,.wl-child-table-scroll)) .fx-rich__heading {
  text-align: left !important;
}
/* An anonymous continuation contains timeline qualifications/CTA, not a new topic.
 * Give it compact section padding instead of the generic narrative 48–70px. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary.fx-main > .fx-builder > .fx--step_by_step + .fx--rich_text:not([id]) {
  padding-block: 8px 24px;
}

body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary.fx-main > .fx-builder > .fx--step_by_step + .fx--rich_text:not([id]) .wl-actionbar {
  margin-bottom: 0 !important; /* shared actionbar forces a collapsing 32px bottom margin */
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary.fx-main > .fx-builder > .fx--step_by_step + .fx--rich_text:not([id]) + .fx--rich_text {
  padding-top: 32px;
}

/* Price block: a compact commercial summary, with qualifications intact. */
@media (min-width: 980px) {
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary {
    display: grid;
    grid-template-columns: minmax(280px,.83fr) minmax(0,1.45fr);
    align-items: stretch;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__head {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--wl-pilot-border);
    border-bottom: 0;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__body {
    grid-column: 2;
    grid-row: 1;
    padding-top: 27px;
    padding-bottom: 25px;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__body > ul {
    grid-template-columns: minmax(0,1fr);
    gap: 9px;
    margin-bottom: 0;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__foot {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary {
  box-shadow: var(--wl-pilot-shadow);
  border-color: var(--wl-pilot-border);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__head {
  background: linear-gradient(150deg,#f6f1e7,#fcfaf5);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__body > ul li {
  padding-block: 3px;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__foot {
  background: #fdfbf7;
}

/* Benefits and details: meaningful scannability without removing text. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary ul.wl-benefits {
  list-style: none;
  padding: 0;
  gap: 12px 16px;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary ul.wl-benefits > li {
  position: relative;
  margin: 0;
  padding: 16px 16px 16px 49px;
  border: 1px solid var(--wl-pilot-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(26,34,42,.025);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary ul.wl-benefits > li::before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #725722;
  background: #f8ecd2;
  border-radius: 50%;
  font: 700 14px/1 Nunito,Arial,sans-serif;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-requirements {
  align-items: start;
  gap: 15px;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-requirement {
  box-shadow: 0 5px 20px rgba(26,34,42,.035);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-requirement:focus-within {
  border-color: var(--wl-pilot-gold);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-comparison-cards {
  align-items: stretch;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-comparison-card {
  padding: clamp(20px,2.5vw,30px);
  box-shadow: var(--wl-pilot-shadow);
}

/* Data tables: generous headers, traceable rows, keyboard-scrollable overflow. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-child-table-scroll {
  width: 100%;
  max-width: 100%;
  margin-block: 22px;
  border: 1px solid var(--wl-pilot-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--wl-pilot-shadow);
  scrollbar-width: thin;
  scrollbar-color: #bda774 #f5f1e8;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-child-table-scroll:focus-visible {
  outline: 2px solid #96733b;
  outline-offset: 3px;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-child-table-scroll > table {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-child-table th {
  background: #f4eee2;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-child-table tbody tr:nth-child(even) {
  background: #fcfaf7;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-child-table tbody tr:hover {
  background: #f8f2e6;
}

/* Process and navigation cards: restrained interactive feedback. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--step_by_step .fx-sbs {
  gap: clamp(14px,1.9vw,22px);
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--step_by_step .fx-sbs__item,
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--link_cards .fx-link_cards__card,
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-comparison-card,
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-requirement {
  transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--step_by_step .fx-sbs__item:focus-within,
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--link_cards .fx-link_cards__card:focus-visible {
  border-color: var(--wl-pilot-gold);
  box-shadow: 0 14px 30px rgba(25,33,42,.095);
}

/* A light conversion band in the middle of the narrative, not a second hero. */
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary > .fx-builder > section.fx--cta {
  padding-block: clamp(30px,3.5vw,50px);
  background: var(--wl-pilot-pale) !important; /* inherited shared CTA is forcibly dark */
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--cta .fx-cta__panel {
  max-width: 900px;
  padding: clamp(22px,3vw,38px);
  background: #fff !important; /* inherited shared CTA panel is forcibly dark */
  border: 1px solid var(--wl-pilot-border) !important;
  box-shadow: var(--wl-pilot-shadow) !important;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary.fx-main > .fx-builder > section.fx--cta.fx:not(#white-label-top) .fx-cta__title {
  color: #84662f !important; /* inherited heading forces pale gold on dark */
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--cta :is(.fx-cta__text,.fx-cta__note) {
  color: var(--wl-pilot-muted) !important;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--cta .fx-cta__btn {
  color: #1b242e !important;
  background: #f4d48a !important;
  border-color: #cba755 !important;
}
body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--cta .fx-cta__btn:hover {
  background: #e7c273 !important;
}

/* Breakpoints are based on available space, not device brand. */
@media (max-width: 1199px) {
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--step_by_step .fx-sbs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 979px) {
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__body > ul {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 767px) {
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary > .fx-builder > section.fx--rich_text:not(:where(#white-label-facts)) {
    padding-block: 34px;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--rich_text .fx-rich-body {
    overflow-wrap: anywhere;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary :is(.wl-benefits,.wl-requirements,.wl-comparison-cards,.wl-pricing-summary__body > ul),
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--step_by_step .fx-sbs {
    grid-template-columns: minmax(0,1fr);
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary :is(.wl-pricing-summary__head,.wl-pricing-summary__body,.wl-pricing-summary__foot) {
    padding-inline: 18px;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-child-table-scroll {
    margin-block: 15px;
    -webkit-overflow-scrolling: touch;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-comparison-card {
    padding: 20px;
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--cta .fx-cta__panel {
    padding: 22px 18px !important; /* inherited shared mobile padding is forced */
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary :is(.fx--cta .fx-cta__btn,.wl-actionbar .wl-child-button,.fx-hero__cta) {
    min-height: 44px;
  }
}
@media (max-width: 420px) {
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--step_by_step .fx-sbs__item {
    padding: 16px !important; /* inherited shared compact-card padding is forced */
  }
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-pricing-summary__body > ul {
    grid-template-columns: minmax(0,1fr);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--step_by_step .fx-sbs__item:hover,
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .fx--link_cards .fx-link_cards__card:hover,
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary .wl-comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(26,34,42,.09);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.rue-white-label.rue-white-label-components.rue-white-label-pilot #primary :is(.fx--step_by_step .fx-sbs__item,.fx--link_cards .fx-link_cards__card,.wl-comparison-card,.wl-requirement) {
    transition: none;
    transform: none;
  }
}
