/* Reduce padding-bottom of Preceding && padding-top of Subsequent Section IF...
- Preceding && Subsequent Section are same color
- Preceding && Subsequent Sections are NOT Heroes
- Preceding && Subsequent Sections do NOT contain background-media
- Subsequent Sections is NOT Singular Content 1
*/

  /* Preceding */
  div.mode--dark:not([class*="Hero"]):not(:has(.background--media)):has(+ a + div.mode--dark:not([class*="Hero"]) > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section,
  div.mode--light:not([class*="Hero"]):not(:has(.background--media)):has(+ a + div.mode--light:not([class*="Hero"]) > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section,
  div.mode--primary:not([class*="Hero"]):not(:has(.background--media)):has(+ a + div.mode--primary:not([class*="Hero"]) > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section  {
    padding-bottom: 12.5px !important;
  }
    /* Subsequent */
  div.mode--dark:not([class*="Hero"]):not(:has(.background--media)) + a + div.mode--dark:not([class*="Hero"]):not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section,
  div.mode--light:not([class*="Hero"]):not(:has(.background--media)) + a + div.mode--light:not([class*="Hero"]):not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section,
  div.mode--primary:not([class*="Hero"]):not(:has(.background--media)) + a  + div.mode--primary:not([class*="Hero"]):not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section {
  padding-top: 12.5px !important;
  }
  
  /* Reduce padding-bottom of Preceding && padding-top of Subsequent Section IF...
  - Preceding && Subsequent Section are same color
  - Preceding Section is Team Section
  - Subsequent Section does NOT contain background-media
  - Subsequent Section is NOT Singular Content 1
  */
    /* Preceding */
  div[class*='Team-H-M'].mode--light:has(+ div.modal + script + a + div.mode--light > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section,
  div[class*='Team-H-M'].mode--dark:has(+ div.modal + script + a + div.mode--dark > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section,
  div[class*='Team-H-M'].mode--primary:has(+ div.modal + script + a + div.mode--primary > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section,
  div[class*='Team-H-M'].mode--light:has(+ script + a + div.mode--light > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section,
  div[class*='Team-H-M'].mode--dark:has(+ script + a + div.mode--dark > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section,
  div[class*='Team-H-M'].mode--primary:has(+ script + a + div.mode--primary > .section:not([class*="background--media"]):not([class*="section--textBanner-cta-img-cover-top"])) > .section {
    padding-bottom: 12.5px !important;
  }
    /* Subsequent */
  div[class*='Team-H-M'].mode--light + div.modal + script + a + div.mode--light:not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section,
  div[class*='Team-H-M'].mode--dark + div.modal + script + a + div.mode--dark:not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section,
  div[class*='Team-H-M'].mode--primary + div.modal + script + a + div.mode--primary:not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section,
  div[class*='Team-H-M'].mode--light + script + a + div.mode--light:not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section,
  div[class*='Team-H-M'].mode--dark + script + a + div.mode--dark:not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section,
  div[class*='Team-H-M'].mode--primary + script + a + div.mode--primary:not(:has(.background--media)):not(:has(.section--textBanner-cta-img-cover-top)) > .section {
    padding-top: 12.5px !important;
  }
  
  /* Remove padding-bottom of Preceding && padding-top of Subsequent Section IF...
  - Preceding && Subsequent Section are same color
  - Preceding && Subsequent Section are BOTH Team Sections
  - Subsequent Team Section has no text
  */
    /* Preceding */
  div.mode--dark[class*="Team-H-M"]:has(+ div.modal + script + a + div.mode--dark[class*="Team-H-M"] > .section > .container > div:first-child:not([class*="container--title"])) > .section,
  div.mode--light[class*="Team-H-M"]:has(+ div.modal + script + a + div.mode--light[class*="Team-H-M"] > .section > .container > div:first-child:not([class*="container--title"])) > .section,
  div.mode--primary[class*="Team-H-M"]:has(+ div.modal + script + a + div.mode--primary[class*="Team-H-M"] > .section > .container > div:first-child:not([class*="container--title"])) > .section {
    padding-bottom: 0 !important;
  }
  
    /* Subsequent */
  div.mode--dark[class*="Team-H-M"] + div.modal + script + a + div.mode--dark[class*="Team-H-M"]:not(:has(div.container--title)) > .section,
  div.mode--light[class*="Team-H-M"] + div.modal + script + a + div.mode--light[class*="Team-H-M"]:not(:has(div.container--title)) > .section,
  div.mode--primary[class*="Team-H-M"] + div.modal + script + a + div.mode--primary[class*="Team-H-M"]:not(:has(div.container--title)) > .section {
    padding-top: 0 !important;
  }
  
  
  /* Singular Content 3 */
    /* Match width of other content */
  div[class*='Singular-Content-H-M-OptCTA'] .container--title,
  div[class*='Singular-Content-H-M-OptCTA'] p.lead {
    max-width: 1140px;
  }
  
    /* Headline with no Message Field Text */
  div[class*='Singular-Content-H-M-OptCTA'] .container--title:not(:has(div.custom-wysiwyg)):not(:has(a.btn)) hgroup .title {
    margin-bottom: 0 !important;
  }
  
    /* If there's no button, remove margin from last child */
  div[class*='Singular-Content-H-M-OptCTA'] .custom-wysiwyg:not(:has(+ a.btn)) > *:last-child {
    margin-bottom: 0 !important;
  }
  
    