/*
 * Royal Pro Homepage Layout Test 3.2.7
 * Narrow, reversible corrections only. Existing theme typography and responsive
 * rules remain authoritative unless a selector is listed below.
 */

/* Homepage credential rail: directly below the menu, above the hero eyebrow/title. */
body.rph-home-layout-test main#main > .hero {
  padding-top: 0 !important;
}

.rph-hero-credential-rail {
  position: relative;
  z-index: 3;
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #061d35;
  backdrop-filter: blur(8px);
}

body.rph-home-layout-test .rph-hero-credential-rail + .hero-layout {
  padding-top: 28px;
}

/* LTR grid placement makes BBB the first card from the left. */
.credential-grid.rph-approved-credential-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
  direction: ltr;
}

.credential-grid.rph-approved-credential-grid .rph-approved-credential {
  display: flex !important;
  min-width: 0;
  height: 92px;
  align-items: center;
  justify-content: center;
  padding: 5px !important;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 238, .92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  text-decoration: none;
  direction: ltr;
}

.credential-grid.rph-approved-credential-grid .rph-approved-credential > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

.rph-approved-credential--google {
  padding: 7px 9px !important;
}

.rph-google-rating-lockup {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.rph-google-rating-lockup > img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
}

.rph-google-rating-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.rph-google-rating-copy strong {
  color: #17243a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.rph-google-rating-copy > span {
  margin: 4px 0 3px;
  color: #f4b400;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.rph-google-rating-copy small {
  color: #526477;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/*
 * Contact routes: ONLY the region labels are made larger, heavier and brighter.
 * Phone-number font size is intentionally not overridden.
 */
.estimate-section .contact-route-grid a {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-width: 0;
  align-items: center;
  gap: 12px !important;
  padding: 14px 16px !important;
  overflow: hidden;
}

.estimate-section .contact-route-grid span:not(.rph-phone-number) {
  min-width: 0;
  color: #e6f0f7 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
  overflow-wrap: normal;
  word-break: normal;
}

.estimate-section .contact-route-grid strong,
.estimate-section .contact-route-grid .rph-phone-number {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  text-align: right;
}

/* Footer labels for the two explicitly retained phone routes. */
.rph-footer-contact-info .rph-footer-call-now span,
.rph-footer-contact-info .rph-footer-office-line span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.rph-footer-contact-info .rph-footer-call-now small,
.rph-footer-contact-info .rph-footer-office-line small {
  color: #9fb4c8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Google review panel and source badges use one consistent visual language. */
.rph-google-review-summary {
  display: grid;
  width: min(100%, 480px);
  margin: 18px 0 14px;
  padding: 16px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 15px;
  background: rgba(255, 255, 255, .09);
}

.rph-google-review-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rph-google-review-brand > img {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
}

.rph-google-review-brand > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rph-google-review-brand strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.rph-google-review-brand small {
  margin-top: 2px;
  color: #c7d8e7;
  font-size: 12px;
  font-weight: 750;
}

.rph-google-review-summary .rph-google-stars {
  color: #f4b600;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 3px;
}

.rph-google-review-summary p {
  margin: 0;
  color: #d7e4ef !important;
  font-size: 13px;
  line-height: 1.5;
}

.rph-google-review-summary p strong {
  color: #fff;
  font-size: inherit;
}

.rph-google-review-directory {
  position: relative;
  width: min(100%, 480px);
}

.rph-google-review-directory > summary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 10px;
  background: #fff;
  color: #071a33;
  font-weight: 900;
  list-style: none;
}

.rph-google-review-directory > summary::-webkit-details-marker { display: none; }

.rph-google-profile-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
  color: #071a33;
}

.rph-google-profile-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f4f7fa;
}

.rph-google-profile-row span { font-size: 14px; font-weight: 850; }
.rph-google-profile-row a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: #055bbd;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.rph-modern-reviews .rph-google-review-cards footer .rph-review-source {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #e0e7ee;
  border-radius: 999px;
  background: #f7f9fb;
  color: #526477;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.rph-modern-reviews .rph-google-review-cards footer .rph-review-source img {
  box-sizing: border-box !important;
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Visible internal navigation and matching BreadcrumbList schema are added only
 * when the theme does not already provide breadcrumbs. */
.rph-seo-breadcrumbs {
  border-bottom: 1px solid #e2e9f0;
  background: #f7f9fc;
  color: #42556b;
}

.rph-seo-breadcrumbs .container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.rph-seo-breadcrumbs ol {
  display: flex;
  min-height: 42px;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.35;
}

.rph-seo-breadcrumbs li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.rph-seo-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: #8b9aab;
}

.rph-seo-breadcrumbs a {
  color: #075fbd;
  font-weight: 750;
  text-decoration: none;
}

.rph-seo-breadcrumbs a:hover,
.rph-seo-breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.rph-seo-breadcrumbs [aria-current="page"] span {
  max-width: min(58vw, 620px);
  overflow: hidden;
  color: #42556b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .credential-grid.rph-approved-credential-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100%;
    overflow: visible !important;
    scroll-snap-type: none !important;
    touch-action: auto;
  }

  .credential-grid.rph-approved-credential-grid .rph-approved-credential { height: 94px; }
}

@media (max-width: 720px) {
  .estimate-section .contact-route-grid a {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .estimate-section .contact-route-grid span:not(.rph-phone-number) {
    font-size: 16px !important;
  }

  body.rph-home-layout-test .rph-hero-credential-rail {
    padding: 12px 0 10px;
  }

  body.rph-home-layout-test .rph-hero-credential-rail + .hero-layout {
    padding-top: 20px;
  }

  /* Seven credentials fit in exactly two rows (4 + 3) with no sideways scroll. */
  .credential-grid.rph-approved-credential-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100%;
    padding-bottom: 0;
    overflow: visible !important;
    scroll-snap-type: none;
  }

  .credential-grid.rph-approved-credential-grid .rph-approved-credential {
    width: auto !important;
    min-width: 0 !important;
    height: 74px;
    min-height: 74px;
    flex: initial !important;
    padding: 4px !important;
    scroll-snap-align: none;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1px;
    text-align: center;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-lockup > img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy {
    align-items: center;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy strong {
    font-size: 8px;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy > span {
    margin: 1px 0;
    font-size: 8px;
    letter-spacing: .25px;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy small {
    font-size: 7px;
  }


  .rph-google-review-summary { grid-template-columns: minmax(0, 1fr); }
  .rph-google-review-summary strong,
  .rph-google-review-summary span:last-child { grid-column: 1 / -1; }
  .rph-google-review-directory > summary { width: 100%; }
  .rph-google-profile-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rph-google-profile-row span { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .rph-seo-breadcrumbs .container {
    width: 100%;
    padding-inline: 13px;
  }

  .rph-seo-breadcrumbs ol {
    min-height: 38px;
    padding-block: 7px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .estimate-section .contact-route-grid a {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .estimate-section .contact-route-grid strong,
  .estimate-section .contact-route-grid .rph-phone-number {
    text-align: left;
  }

  .credential-grid.rph-approved-credential-grid {
    gap: 5px !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-approved-credential {
    width: auto !important;
    min-width: 0 !important;
    height: 68px;
    min-height: 68px;
    flex-basis: auto !important;
  }

}


/*
 * Homepage body layout test.
 * Scoped to the front-page body class. No selectors target .site-header,
 * .primary-nav, .site-footer, footer columns or header controls.
 */
body.rph-home-layout-test main#main > .section-pad {
  padding-top: 74px !important;
  padding-bottom: 74px !important;
}

/* The old standalone credential section must never remain below the hero. */
body.rph-home-layout-test main#main > .trust-band {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body.rph-home-layout-test main#main > .intent-section .intent-layout {
  gap: clamp(28px, 5vw, 70px);
}

body.rph-home-layout-test main#main > .rph-home-local-authority {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

body.rph-home-layout-test main#main > .areas-section {
  padding-top: 64px !important;
  padding-bottom: 68px !important;
  background: #f4f8fc;
}

body.rph-home-layout-test .areas-section .rph-location-banner {
  margin-bottom: 22px;
}

body.rph-home-layout-test .areas-section .area-grid {
  gap: 10px !important;
}

body.rph-home-layout-test .areas-section .area-grid > a {
  min-height: 76px !important;
  padding: 14px 16px !important;
}

body.rph-home-layout-test .areas-section .area-grid > a strong {
  font-size: 14px !important;
}

body.rph-home-layout-test .areas-section .area-grid > a span {
  font-size: 11px !important;
}

body.rph-home-layout-test main#main > .local-proof {
  padding-top: 68px !important;
  padding-bottom: 72px !important;
}

body.rph-home-layout-test .rph-confidence-grid {
  gap: 12px !important;
}

body.rph-home-layout-test .rph-confidence-grid > article {
  padding: 22px 18px !important;
}

body.rph-home-layout-test main#main > .reviews-section {
  padding-top: 76px !important;
  padding-bottom: 76px !important;
}

body.rph-home-layout-test .rph-modern-reviews .rph-review-layout {
  align-items: start !important;
}

body.rph-home-layout-test main#main > .project-section .project-grid {
  gap: 14px !important;
}

body.rph-home-layout-test main#main > .process-section .process-grid {
  gap: 12px !important;
}

body.rph-home-layout-test main#main > .resource-section .resource-grid,
body.rph-home-layout-test main#main > .brand-section .brand-grid,
body.rph-home-layout-test main#main > .faq-section .faq-layout {
  gap: clamp(22px, 4vw, 54px) !important;
}

body.rph-home-layout-test main#main > .estimate-section {
  padding-top: 76px !important;
  padding-bottom: 76px !important;
}

body.rph-home-layout-test main#main > .prefooter-cta {
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

@media (max-width: 960px) {
  body.rph-home-layout-test main#main > .section-pad {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  body.rph-home-layout-test main#main > .rph-home-local-authority,
  body.rph-home-layout-test main#main > .areas-section,
  body.rph-home-layout-test main#main > .local-proof,
  body.rph-home-layout-test main#main > .reviews-section,
  body.rph-home-layout-test main#main > .estimate-section {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }
}

@media (max-width: 640px) {
  body.rph-home-layout-test main#main > .section-pad {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }


  body.rph-home-layout-test .areas-section .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.rph-home-layout-test .areas-section .area-grid > a {
    min-height: 70px !important;
    padding: 12px !important;
  }

  body.rph-home-layout-test .rph-confidence-grid {
    grid-template-columns: 1fr !important;
  }

  body.rph-home-layout-test main#main > .prefooter-cta {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}



/* --------------------------------------------------------------------------
 * 3.1.5 — Homepage service-path section only.
 * Convert the dark service-intent block to a light section while preserving
 * its content, DOM order, heading hierarchy, spacing and interactive behavior.
 * -------------------------------------------------------------------------- */
body.rph-home-layout-test main#main > .intent-section {
  background: #f7f9fc !important;
  color: #07182f !important;
  border-top: 1px solid #e3eaf2;
  border-bottom: 1px solid #e3eaf2;
}

body.rph-home-layout-test main#main > .intent-section .intent-copy .eyebrow.light {
  color: #0868d8 !important;
}

body.rph-home-layout-test main#main > .intent-section .intent-copy h2 {
  color: #07182f !important;
}

body.rph-home-layout-test main#main > .intent-section .intent-copy > p {
  color: #607086 !important;
}

body.rph-home-layout-test main#main > .intent-section .intent-tab {
  border-color: #cbd7e3 !important;
  background: #ffffff !important;
  color: #071a33 !important;
  box-shadow: 0 4px 12px rgba(6, 31, 58, .04);
}

body.rph-home-layout-test main#main > .intent-section .intent-tab:hover {
  border-color: #8fbbe9 !important;
  background: #eaf3ff !important;
  color: #075dbf !important;
}

body.rph-home-layout-test main#main > .intent-section .intent-tab.active,
body.rph-home-layout-test main#main > .intent-section .intent-tab[aria-selected="true"] {
  border-color: #071a33 !important;
  background: #071a33 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(7, 26, 51, .16);
}

body.rph-home-layout-test main#main > .intent-section .intent-tab:focus-visible {
  outline: 3px solid rgba(8, 104, 216, .28);
  outline-offset: 3px;
}

body.rph-home-layout-test main#main > .intent-section .intent-panel {
  border: 1px solid #dbe4ee;
  background: #ffffff !important;
  color: #07182f !important;
  box-shadow: 0 18px 50px rgba(6, 31, 58, .12);
}

/* --------------------------------------------------------------------------
 * 3.1.4 — Interior pages only.
 * The homepage selectors and approved homepage dimensions above are untouched.
 * -------------------------------------------------------------------------- */

/* The old trust component contains a large visible heading/copy block. Hide it
 * only where the compact sitewide rail is active, preventing duplicate logos,
 * duplicate headings and unnecessary vertical whitespace. */
body.rph-interior-credential-rail-active section.trust-band,
body.rph-interior-credential-rail-active .trust-band {
  display: none !important;
}

/* Compact logo-only rail immediately below the shared navigation. */
body.rph-interior-credential-rail-active .rph-sitewide-credential-rail {
  margin: 0 !important;
  padding: 10px 0 9px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  background: #061d35;
  overflow: hidden;
}

body.rph-interior-credential-rail-active .rph-sitewide-credential-rail .container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  direction: ltr;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential {
  width: auto !important;
  min-width: 0 !important;
  height: 76px !important;
  min-height: 76px !important;
  flex: initial !important;
  padding: 4px !important;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .13);
  contain: layout paint style;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential > img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential:focus-visible {
  outline: 3px solid #8fd2ff;
  outline-offset: 2px;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential--google {
  padding: 5px 7px !important;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup > img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy strong {
  font-size: 10px;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy > span {
  margin: 3px 0 2px;
  font-size: 11px;
  letter-spacing: .65px;
}

body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy small {
  font-size: 8px;
}

/* Seven cards remain in one compact row on standard desktop and landscape
 * tablet widths. This overrides the theme's generic four-column rule only for
 * the interior rail. */
@media (min-width: 921px) and (max-width: 1180px) {
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  body.rph-interior-credential-rail-active .rph-sitewide-credential-rail .container {
    width: min(100% - 24px, 1120px);
  }
}

/* On portrait tablets and phones, seven credentials use a compact 4 + 3 grid.
 * No horizontal swipe is required. */
@media (max-width: 920px) {
  body.rph-interior-credential-rail-active .rph-sitewide-credential-rail {
    padding: 9px 0 7px !important;
  }

  body.rph-interior-credential-rail-active .rph-sitewide-credential-rail .container {
    width: 100%;
    padding-inline: 13px;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100%;
    padding: 1px 0 !important;
    overflow: visible !important;
    scroll-snap-type: none;
    touch-action: auto;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential {
    width: auto !important;
    min-width: 0 !important;
    height: 72px !important;
    min-height: 72px !important;
    flex: initial !important;
    scroll-snap-align: none;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1px;
    text-align: center;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup > img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy {
    align-items: center;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy strong {
    font-size: 8px;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy > span {
    margin: 1px 0;
    font-size: 8px;
    letter-spacing: .25px;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy small {
    font-size: 7px;
  }
}

@media (max-width: 480px) {
  body.rph-interior-credential-rail-active .rph-sitewide-credential-rail .container {
    padding-inline: 11px;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide {
    gap: 5px !important;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential {
    width: auto !important;
    min-width: 0 !important;
    height: 66px !important;
    min-height: 66px !important;
    flex-basis: auto !important;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup > img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
}


/* 3.2.0: duplicate upper city cards removed only when a lower copy exists. */
.rph-local-connections-deduped :is(.area-grid, .location-grid, .service-area-grid) > :empty {
  display: none !important;
}

/* --------------------------------------------------------------------------
 * Mobile two-column credential layout retained in 3.2.2.
 * Keep the approved credential rail in its existing location. On phones, show
 * the original artwork in two balanced columns without horizontal scrolling,
 * fixed-height clipping, stretching or image cropping.
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .credential-grid.rph-approved-credential-grid,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    overscroll-behavior-inline: auto !important;
    touch-action: auto !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-approved-credential,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 96px !important;
    padding: 10px !important;
    flex: initial !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-approved-credential > img,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential > img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 78px !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .credential-grid.rph-approved-credential-grid > .rph-approved-credential:last-child:nth-child(odd),
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide > .rph-approved-credential:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 4.5px) !important;
    justify-self: center;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-lockup,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 7px !important;
    justify-items: initial !important;
    text-align: left !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-lockup > img,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-lockup > img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy {
    align-items: flex-start !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy strong,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy strong {
    font-size: 10px !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy > span,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy > span {
    margin: 2px 0 !important;
    font-size: 10px !important;
    letter-spacing: .5px !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-google-rating-copy small,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-google-rating-copy small {
    font-size: 8px !important;
  }
}

@media (max-width: 380px) {
  .credential-grid.rph-approved-credential-grid,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide {
    gap: 7px !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-approved-credential,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential {
    min-height: 88px !important;
    padding: 8px !important;
  }

  .credential-grid.rph-approved-credential-grid .rph-approved-credential > img,
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide .rph-approved-credential > img {
    max-height: 70px !important;
  }

  .credential-grid.rph-approved-credential-grid > .rph-approved-credential:last-child:nth-child(odd),
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide > .rph-approved-credential:last-child:nth-child(odd) {
    width: calc(50% - 3.5px) !important;
  }
}

/* Remove the exact “Service areas” eyebrow and collapse the space it occupied. */
.rph-service-areas-compact .section-header,
.rph-service-areas-compact .centered-heading {
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  row-gap: 0 !important;
}

.rph-service-areas-compact .section-header:empty,
.rph-service-areas-compact .centered-heading:empty {
  display: none !important;
}

.rph-service-areas-compact .rph-location-banner {
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.rph-service-areas-compact .rph-location-banner > :first-child {
  margin-top: 0 !important;
}

.rph-service-areas-compact .rph-location-banner > :last-child {
  margin-bottom: 0 !important;
}


/* --------------------------------------------------------------------------
 * 3.2.2 — Exact homepage correction.
 * The credentials live inside the dark hero above its eyebrow. The obsolete
 * standalone section and any margin/padding left by it collapse completely.
 * -------------------------------------------------------------------------- */
body.rph-home-layout-test main#main > .hero {
  margin-bottom: 0 !important;
}

body.rph-home-layout-test main#main > .hero > .rph-hero-credential-rail,
body.rph-home-layout-test main#main > .hero .rph-hero-credential-rail {
  width: 100% !important;
  margin: 0 !important;
}

body.rph-home-layout-test main#main > .hero > .rph-hero-credential-rail + .hero-layout,
body.rph-home-layout-test main#main > .hero .rph-hero-credential-rail + .hero-layout {
  margin-top: 0 !important;
}

body.rph-home-layout-test main#main > .hero + .trust-band,
body.rph-home-layout-test main#main > .hero ~ .trust-band {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
 * 3.2.7 — Homepage-only placement requested by the site owner.
 * Credential logos sit immediately below the three hero actions. The seven
 * assurance checks sit in one desktop row immediately above the company-stats
 * strip. Mobile presentation is two columns with no horizontal scrolling.
 * -------------------------------------------------------------------------- */
body.rph-home-layout-test main#main > .hero .rph-hero-credential-rail {
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.rph-home-layout-test main#main > .hero .rph-approved-credential-grid--hero {
  width: 100% !important;
  margin: 0 !important;
}

body.rph-home-layout-test main#main > .hero .rph-approved-credential-grid--hero .rph-approved-credential {
  height: 78px;
  min-height: 78px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

body.rph-home-layout-test .rph-home-proof-points {
  width: 100%;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid #dbe5ef;
  background: #fff;
}

body.rph-home-layout-test .rph-home-proof-points .container {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

body.rph-home-layout-test .rph-home-proof-list {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 9px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  list-style: none !important;
}

body.rph-home-layout-test .rph-home-proof-list > li {
  display: flex !important;
  min-width: 0;
  min-height: 58px;
  margin: 0 !important;
  padding: 10px 9px !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  background: #f8fbfe;
  color: #17334f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: center;
  overflow-wrap: anywhere;
}

body.rph-home-layout-test .rph-home-proof-list > li::before {
  content: "✓" !important;
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: #13704a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 980px) {
  body.rph-home-layout-test .rph-home-proof-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.rph-home-layout-test main#main > .hero .rph-hero-credential-rail {
    margin-top: 16px !important;
  }

  body.rph-home-layout-test main#main > .hero .rph-approved-credential-grid--hero {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }

  body.rph-home-layout-test main#main > .hero .rph-approved-credential-grid--hero .rph-approved-credential {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 92px !important;
  }

  body.rph-home-layout-test .rph-home-proof-points {
    padding: 13px 0;
  }

  body.rph-home-layout-test .rph-home-proof-points .container {
    width: min(100% - 24px, 1240px);
  }

  body.rph-home-layout-test .rph-home-proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow-x: visible !important;
  }

  body.rph-home-layout-test .rph-home-proof-list > li {
    min-height: 60px;
    padding: 9px 7px !important;
    font-size: 12px !important;
  }

  body.rph-home-layout-test .rph-home-proof-list > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 4px);
    justify-self: center;
  }
}

@media (max-width: 380px) {
  body.rph-home-layout-test .rph-home-proof-list {
    gap: 7px !important;
  }

  body.rph-home-layout-test .rph-home-proof-list > li {
    min-height: 58px;
    padding: 8px 6px !important;
    font-size: 11px !important;
  }
}


/* --------------------------------------------------------------------------
 * 3.2.8 — Sitewide credential coverage and mobile-search safeguards.
 * The same seven verified credentials appear once on every non-home public
 * template. Explicit containment and width rules prevent horizontal overflow;
 * phone layouts remain two-column with reserved image dimensions in markup.
 * -------------------------------------------------------------------------- */
body.rph-interior-credential-rail-active .rph-sitewide-credential-rail,
body.rph-interior-credential-rail-active .rph-sitewide-credential-rail .container,
body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide,
body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide > * {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

body.rph-interior-credential-rail-active .rph-sitewide-credential-rail {
  width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body.rph-interior-credential-rail-active .rph-sitewide-credential-rail {
    overflow-x: hidden;
  }
}

@media (max-width: 767px) {
  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
  }

  body.rph-interior-credential-rail-active .rph-approved-credential-grid--sitewide a {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
 * 3.2.9 — Interior credentials belong inside each page's content header.
 * They sit below the header copy/actions (and span a two-column hero layout),
 * never as a detached strip immediately below the global site navigation.
 * -------------------------------------------------------------------------- */
body.rph-interior-credential-rail-active .rph-page-header-credential-rail {
  position: static !important;
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.rph-interior-credential-rail-active .rph-page-header-credential-rail .rph-sitewide-credential-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.rph-interior-credential-rail-active .rph-page-header-credential-rail .rph-approved-credential-grid--sitewide {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  body.rph-interior-credential-rail-active .rph-page-header-credential-rail {
    margin-top: 16px !important;
  }

  body.rph-interior-credential-rail-active .rph-page-header-credential-rail .rph-approved-credential-grid--sitewide {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    overflow: visible !important;
    overflow-x: visible !important;
  }
}
