/* Older Learning Center Elementor articles share librarysection. Keep the
   newer comfort-article layout, ordinary posts, pages and directory untouched. */
body.single-post:has(.elementor-element-librarysection .fsfq-learning) #main > .row > .col-lg-8 {
  width:100%!important;
  max-width:100%!important;
  flex:0 0 100%!important;
}
body.single-post:has(.elementor-element-librarysection .fsfq-learning) #main > .row > .col-3:not(:has(a,img,button,input,iframe,video)) {
  display:none!important;
}
body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-ad-content-grid[data-fsfq-article-layout] {
  width:100%;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:28px;
}
body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-learning {
  width:100%;
  min-width:0;
}
/* There is already an in-article contents list. Avoid another inner sidebar
   competing with the actual advertisement sidebar for reading width. */
body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-learning .articlelayout {
  grid-template-columns:minmax(0,1fr);
}
body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-learning .article-aside {
  display:none;
}
body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-learning .article > p {
  max-width:76ch;
}
@media(max-width:1000px) {
  body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-ad-content-grid[data-fsfq-article-layout] {
    grid-template-columns:minmax(0,1fr);
  }
  body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-ad-content-grid > aside {
    width:100%;max-width:none;display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;
  }
}
@media(max-width:600px) {
  body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-ad-content-grid > aside {
    grid-template-columns:minmax(0,1fr);
  }
  body.single-post:has(.elementor-element-librarysection .fsfq-learning) .fsfq-learning {
    padding:16px 4px;
  }
}
