/* Hide duplicate theme navigation bars */
.wp-block-navigation,
nav.wp-block-navigation {
  display: none !important;
}

/* Keep the custom homepage ribbon at the top of the page. */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

#wpadminbar {
  display: none !important;
}

.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.wp-site-blocks > header:first-child {
  display: none !important;
}

body.home {
  padding-top: 100px !important;
}

/* Keep the overflowing shortcut ribbon anchored at the left edge. */
.ean-shared-header .shortcuts-bar {
  justify-content: flex-start !important;
}
.ean-shared-header .shortcuts-bar > a {
  flex: 0 0 auto;
}

/* Restore the About page's full desktop canvas. */
body.page-id-261 .wp-site-blocks > main#wp--skip-link--target {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.page-id-261 .entry-content.wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.page-id-261 .about-page .shortcuts-bar {
  justify-content: flex-start !important;
}
body.page-id-261 .about-page .shortcuts-bar > a {
  flex: 0 0 auto;
}

/* Let the About page content escape the block editor's narrow child constraint. */
body.page-id-261 .entry-content.wp-block-post-content > .about-page {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep Sabrina's face visible in the homepage testimonial crop. */
.testimonials-coming .testimonial-card:first-child .testimonial-photo {
  object-position: 90% center !important;
}

/* Flip Amy's training photo so the branding reads correctly. */
body.page-id-248 .testimonial-photos img[alt="Amy training"] {
  transform: scaleX(-1);
}

/* Center ribbon headings on desktop; keep Book a Call first on mobile. */
@media (min-width: 701px) {
  .ean-shared-header .shortcuts-bar,
  body.page-id-261 .about-page .shortcuts-bar {
    justify-content: safe center !important;
  }
}
@media (max-width: 700px) {
  .ean-shared-header .shortcuts-bar,
  body.page-id-261 .about-page .shortcuts-bar {
    justify-content: flex-start !important;
  }
}

/* Keep horizontal movement inside the shortcut ribbon rather than the page. */
html,
body,
body.home .wp-site-blocks {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@supports (overflow: clip) {
  html,
  body,
  body.home .wp-site-blocks {
    overflow-x: clip !important;
  }
}

/* Centre the MNU-certified item as a complete tick-and-label group. */
.trust-bar .trust-item:nth-child(2) {
  justify-content: center;
  text-align: center;
}

@media (max-width: 700px) {
  .trust-bar .trust-item:nth-child(2) {
    flex: 0 1 100%;
  }
}

/* Keep the Contact Form ribbon anchored at its first link on mobile. */
@media (max-width: 700px) {
  body.page-id-298 .shortcuts-bar {
    justify-content: flex-start !important;
    text-align: left !important;
    scroll-padding-inline-start: 0 !important;
  }
  body.page-id-298 .shortcuts-bar > a {
    flex: 0 0 auto !important;
  }
}