/* Single fact pages use exactly the single-investigation layout. */
body.single-fact,
body.single-fact .site,
body.single-fact .site-content,
body.single-fact .ast-container,
body.single-fact #primary,
body.single-fact .content-area,
body.single-fact .site-main,
body.single-fact article,
body.single-fact .ast-article-single,
body.single-fact .entry-content {
  background:#09080D !important;
}

body.single-fact .site-content,
body.single-fact .ast-container,
body.single-fact #primary,
body.single-fact .content-area,
body.single-fact .site-main {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

body.single-fact article.ast-article-single {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:40px 0 !important;
}

/* Copy the compact site-wide header and footer wrappers from investigations. */
body.single-fact header.xpro-theme-builder-header,
body.single-fact header.xpro-theme-builder-header .elementor,
body.single-fact header.xpro-theme-builder-header .elementor-element,
body.single-fact header.xpro-theme-builder-header .e-con,
body.single-fact footer#xpro-theme-builder-footer,
body.single-fact footer#xpro-theme-builder-footer .elementor,
body.single-fact footer#xpro-theme-builder-footer .elementor-element,
body.single-fact footer#xpro-theme-builder-footer .e-con {
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

body.single-fact header.xpro-theme-builder-header .elementor,
body.single-fact header.xpro-theme-builder-header .e-con {
  padding:0 !important;
}

body.single-fact footer#xpro-theme-builder-footer .elementor,
body.single-fact footer#xpro-theme-builder-footer .e-con {
  padding-left:0 !important;
  padding-right:0 !important;
}

body.single-fact .entry-meta,
body.single-fact .post-navigation,
body.single-fact .navigation.post-navigation {
  display:none !important;
}

body.single-fact .entry-header {
  width:100%;
  max-width:900px !important;
  margin:0 auto 32px !important;
  padding:24px 28px !important;
  background:#09080D !important;
}

body.single-fact .entry-title {
  margin:0 !important;
  padding:0 !important;
  color:#F7F4FF !important;
  font-family:"Playfair Display",Georgia,serif !important;
  font-size:clamp(42px,6vw,78px) !important;
  font-weight:700 !important;
  line-height:1.03 !important;
}

body.single-fact .qa-fact-single-back-wrap {
  display:block !important;
  width:100%;
  margin:0 0 24px !important;
  padding:0 !important;
  text-align:left !important;
  vertical-align:top !important;
}

body.single-fact .qa-fact-single-back {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 !important;
  padding:10px 15px;
  border:1px solid rgba(167,139,250,.46);
  border-radius:4px;
  color:#F7F4FF;
  background:transparent;
  font-family:Manrope,Arial,sans-serif;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  transition:color .2s ease,border-color .2s ease,background-color .2s ease,transform .2s ease;
}

body.single-fact .qa-fact-single-back:hover,
body.single-fact .qa-fact-single-back:focus-visible {
  color:#F7F4FF;
  border-color:#A78BFA;
  background:#14121C;
  transform:translateX(-2px);
}

body.single-fact .entry-content {
  width:100%;
  max-width:900px !important;
  margin:0 auto !important;
  padding:26px 28px 110px !important;
  color:#A6A0B8 !important;
  font-family:Manrope,Arial,sans-serif;
  font-size:18px;
  line-height:1.76;
}

body.single-fact .entry-content,
body.single-fact .entry-content p,
body.single-fact .entry-content li {
  color:#A6A0B8 !important;
  font-family:Manrope,Arial,sans-serif;
  font-size:18px;
  line-height:1.76;
}

body.single-fact .entry-content > :first-child { margin-top:0; }
body.single-fact .entry-content a { color:#A78BFA; }

body.single-fact .qa-fact-single-cover {
  display:block;
  width:100%;
  margin:0 0 32px !important;
}
body.single-fact .qa-fact-single-cover img,
body.single-fact .entry-content img {
  display:block;
  width:100%;
  height:auto;
  margin:0 !important;
  border-radius:4px;
}

body.single-fact .qa-fact-post-nav {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  width:100%;
  margin:56px 0 0;
  padding:32px 0 0;
  border-top:1px solid rgba(166,160,184,.24);
}

body.single-fact .qa-fact-post-nav__link {
  display:flex;
  min-width:0;
  min-height:92px;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  padding:16px 18px;
  border:1px solid rgba(167,139,250,.40);
  border-radius:4px;
  color:#F7F4FF;
  background:#14121C;
  text-decoration:none;
  transition:border-color .2s ease,background-color .2s ease,transform .2s ease;
}

body.single-fact .qa-fact-post-nav__link--next { text-align:right; }
body.single-fact .qa-fact-post-nav__direction {
  color:#A78BFA;
  font-family:Manrope,Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-transform:uppercase;
}
body.single-fact .qa-fact-post-nav__title {
  overflow:hidden;
  color:#F7F4FF;
  font-family:Manrope,Arial,sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.single-fact .qa-fact-post-nav__link:hover,
body.single-fact .qa-fact-post-nav__link:focus-visible {
  border-color:#A78BFA;
  background:#1A1725;
  color:#F7F4FF;
  transform:translateY(-2px);
}

@media (max-width:767px) {
  body.single-fact article.ast-article-single { padding:24px 0 !important; }
  body.single-fact .entry-header {
    margin:0 auto 20px !important;
    padding:22px 24px !important;
  }
  body.single-fact .entry-content { padding:20px 24px 70px !important; }
  body.single-fact .entry-content,
  body.single-fact .entry-content p,
  body.single-fact .entry-content li { font-size:16px; line-height:1.7; }
  body.single-fact .qa-fact-post-nav {
    grid-template-columns:1fr;
    margin-top:42px;
    padding-top:24px;
  }
  body.single-fact .qa-fact-post-nav__link--next { text-align:left; }
}

/* Fact-page refinements. */
body.single-fact header.xpro-theme-builder-header .elementor-element-76b45b9b,
body.single-fact header.xpro-theme-builder-header .elementor-element-76b45b9b > .xpro-heading-wrapper {
  flex:0 0 auto !important;
  min-width:145px !important;
  width:auto !important;
}
body.single-fact header.xpro-theme-builder-header .elementor-element-76b45b9b .xpro-heading-title {
  display:block !important;
  white-space:nowrap !important;
  word-break:normal !important;
  overflow:visible !important;
}

body.single-fact .entry-title {
  font-size:clamp(36px,5vw,64px) !important;
  line-height:1.02 !important;
}

body.single-fact .qa-fact-single-cover,
body.single-fact .qa-fact-single-cover img {
  height:360px !important;
}
body.single-fact .qa-fact-single-cover img {
  object-fit:cover !important;
  object-position:center !important;
}

body.single-fact footer#xpro-theme-builder-footer > .elementor.elementor-47,
body.single-fact footer#xpro-theme-builder-footer > .elementor.elementor-47 > .elementor-element-f0a1b2c3 {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

@media (max-width:767px) {
  body.single-fact header.xpro-theme-builder-header .elementor-element-76b45b9b,
  body.single-fact header.xpro-theme-builder-header .elementor-element-76b45b9b > .xpro-heading-wrapper {
    min-width:142px !important;
  }
  body.single-fact .qa-fact-single-cover,
  body.single-fact .qa-fact-single-cover img {
    height:220px !important;
  }
}
