/* Sitewide CTA rule for non-home page-home pages.
 * Uses the homepage CTA as the visual reference while keeping homepage styles independent.
 */

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format .text-format-el {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:first-of-type {
  margin-bottom: 24px !important;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:first-of-type .text-format-el {
  font-family: var(--theme-title-font);
  font-size: 35px !important;
  font-weight: 700;
  line-height: 1.22;
  max-width: 980px;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(2) {
  margin-bottom: 34px !important;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(2) .text-format-el {
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.58;
  max-width: 1080px;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(3) {
  margin-bottom: 42px !important;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(3) .text-format-el {
  font-size: 18px !important;
  line-height: 1.55;
  max-width: 760px;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-button {
  margin-bottom: 0 !important;
}

body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-button .modules-button-inner {
  text-align: center !important;
}

@media (max-width: 991px) {
  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:first-of-type .text-format-el {
    font-size: 31px !important;
    max-width: 860px;
  }

  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(2) .text-format-el {
    font-size: 22px !important;
    max-width: 920px;
  }

  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(3) .text-format-el {
    font-size: 17px !important;
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:first-of-type {
    margin-bottom: 18px !important;
  }

  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:first-of-type .text-format-el {
    font-size: 25px !important;
    line-height: 1.3;
    max-width: none;
  }

  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(2) {
    margin-bottom: 24px !important;
  }

  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(2) .text-format-el {
    font-size: 17px !important;
    line-height: 1.62;
    max-width: none;
  }

  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(3) {
    margin-bottom: 28px !important;
  }

  body.page-template-page-home:not(.home) #wrap > .wpcom-modules.modules-fullwidth:last-of-type .modules-text-format:nth-of-type(3) .text-format-el {
    font-size: 15px !important;
    line-height: 1.56;
    max-width: none;
  }
}
