/**
 * Quantum Search wide-screen shell correction.
 *
 * Major page furniture expands to 1440px on large displays. Long-form prose
 * remains within the existing 780px reading measure, and mobile insets remain
 * at least 24px.
 */
:root {
  --qs-wide-shell: 1440px;
  --qs-reading-column: 780px;
}

body .qs-seo-page .qs-shell,
body .qd-pricing-post .qd-shell,
body .qd-kl-pricing .qd-shell,
body .qd-wave2-pricing .qd-shell,
body .qsw2-pricing .qd-shell,
body .qdca .shell,
body .qs-footer-shell {
  max-width: var(--qs-wide-shell) !important;
}

/* Older service-page extensions used a more specific fixed-width rule. */
body .qs-seo-page .qs-r37-visual .qs-shell,
body .qs-seo-page .qs-r37-links .qs-shell,
body .qs-seo-page .qs-r37-blog .qs-shell,
body .qs-seo-page .qs-r37-sources .qs-shell,
body .qs-seo-page .qs-r43-cases .qs-shell {
  width: min(var(--qs-wide-shell), calc(100% - 48px)) !important;
  max-width: var(--qs-wide-shell) !important;
}

body .qd-pricing-post .qd-article,
body .qd-kl-pricing .qd-article,
body .qd-wave2-pricing .qd-article,
body .qsw2-pricing .qd-article,
body .qdca .read {
  max-width: var(--qs-reading-column) !important;
}

@media (max-width: 700px) {
  body .qs-seo-page .qs-shell,
  body .qd-pricing-post .qd-shell,
  body .qd-kl-pricing .qd-shell,
  body .qd-wave2-pricing .qd-shell,
  body .qsw2-pricing .qd-shell,
  body .qdca .shell,
  body .qs-footer-shell {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body .qs-seo-page .qs-r37-visual .qs-shell,
  body .qs-seo-page .qs-r37-links .qs-shell,
  body .qs-seo-page .qs-r37-blog .qs-shell,
  body .qs-seo-page .qs-r37-sources .qs-shell,
  body .qs-seo-page .qs-r43-cases .qs-shell {
    width: calc(100% - 48px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
