/* BSI 8.10.6 — align standard page/post headings and content panels. */
:root {
  --bsi-reading-column: 920px;
}

/*
 * Previously the page/post heading was left-aligned to the wide outer wrapper,
 * while .entry-content remained a narrower auto-centered panel. Center both
 * elements in the same reading column so breadcrumbs, title, and panel line up.
 * Do not apply this to the homepage, product templates, or company profile template.
 */
body.page:not(.home):not(.page-template-company-profile-template-php):not(.page-template-company-profile-template) .page-header,
body.single-post .single-header {
  width: min(var(--bsi-reading-column), 100%) !important;
  max-width: var(--bsi-reading-column) !important;
  margin: 0 auto 28px !important;
  text-align: left !important;
  box-sizing: border-box;
}

body.page:not(.home):not(.page-template-company-profile-template-php):not(.page-template-company-profile-template) .page-header .page-title,
body.single-post .single-header .entry-title {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

body.page:not(.home):not(.page-template-company-profile-template-php):not(.page-template-company-profile-template) article.page > .entry-content,
body.single-post article.post > .entry-content {
  width: min(var(--bsi-reading-column), 100%) !important;
  max-width: var(--bsi-reading-column) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

@media (min-width: 701px) {
  body.page:not(.home):not(.page-template-company-profile-template-php):not(.page-template-company-profile-template) .page-header .page-title,
  body.single-post .single-header .entry-title {
    font-size: clamp(38px, 4vw, 60px) !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 700px) {
  body.page:not(.home):not(.page-template-company-profile-template-php):not(.page-template-company-profile-template) .page-header,
  body.single-post .single-header {
    width: 100% !important;
    max-width: var(--bsi-reading-column) !important;
    margin: 0 auto 16px !important;
  }

  body.page:not(.home):not(.page-template-company-profile-template-php):not(.page-template-company-profile-template) article.page > .entry-content,
  body.single-post article.post > .entry-content {
    width: 100% !important;
    max-width: var(--bsi-reading-column) !important;
    margin: 0 auto !important;
  }
}
