:root {
  --white: rgb(255,255,255);
  --dark: rgb(2,10,10);
  --dark-tint: rgba(2,10,10, 0.6); 
  --light: rgb(125,125,125); 
  --light-tint: rgba(125,125,125,0.2);
  --dark-primary: rgb(35,124,139);
  --primary: rgb(43,154,174); 
  --primary-tint: rgba(43,154,174,0.1); 
  --secondary: rgb(0,175,108); 
  --secondary-tint: rgba(0,175,108,0.2); 
  --tertiary: rgb(0,219,135); 
  --highlight: rgb(0,219,135);
} 

/* Type */

body {
  font-family: "Poppins", arial, sans-serif;  
  font-weight: 400;
  background: white;
  font-size: 1.1rem;
}

h1, h2, .h1, .h2, h2.entry-title {
  font-family: "Poppins", arial, sans-serif;  
  font-weight: 700;
  color: var(--primary);
}

h3, h4, .h3, .h4 {
  font-family: "Poppins", arial, sans-serif;  
  font-weight: 700;
  color: var(--primary);
}

h2, .h2 {
  font-size: 1.8rem;
}

h3, .h3 {
  font-size: 1.4rem;
}

strong {
  font-weight: 700;
}

.entry-content a:link, .entry-content a:visited, 
.entry-code a:link, .entry-code a:visited {
  border-bottom: 1px solid var(--secondary);
  color: var(--secondary);
}

a.downloadlink {
  color: var(--secondary);
}

a.listing_url {
  color: var(--dark);
}

a.listing_url:hover, a.listing_url:focus, a.listing_url:hover h2, a.listing_url:focus h2,
a.toolkit_url:hover, a.toolkit_url:focus, a.toolkit_url:hover h3, a.toolkit_url:focus h3,
a.toolkit_url:hover .download-link, a.toolkit_url:focus .download-link {
  color: var(--white);
}

.wp-caption .wp-caption-text {
  text-align: left;
  background: var(--light-tint);
  margin: 0;
  padding: 0.5rem;
}

/* Layout & nav overrides */

.site-branding {
  display: inline-block;
}

.site-title, .site-description {
  left: -9999px;  
}

#masthead {
  background: var(--white);
  padding: 1.5rem 0;
}

#masthead #logo {
  max-width: 1000px;
  max-height: 250px;
  border: 2px solid transparent !important;
  position: relative;
  left: 0;
  padding: 2px;
}

#masthead #logo img {
  display: inline-block;
  max-width: 250px;
  width: auto;  
}

nav {
  font-size: 1.3rem;
}

.main-navigation ul.navbar-nav > li {
  font-weight: 700;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  text-align: center;
}

.main-navigation ul.navbar-nav > li > a:link, .main-navigation ul.navbar-nav > li > a:visited {
  color: var(--primary);
}

.main-navigation li.menu-item a {
  color: var(--primary);
}

.main-navigation ul.navbar-nav a:hover, .main-navigation ul.navbar-nav a:active {
  border-bottom: 2px solid var(--primary);  
}

.offcanvas {
  background: var(--primary);  
}

.offcanvas-title a {
  color: var(--white);
  margin-left: 1rem;
}

@media (max-width: 996px) {
  .offcanvas-body li.menu-item a:link,  .offcanvas-body li.menu-item a:visited {
     color: var(--white) !important;
   }
}

ul.navbar-nav {
  align-items: center;
}

ul.navbar-nav li.current-menu-item {
    color: var(--highlight);  
}

ul.navbar-nav li.current_page_item a {
    border-color: var(--highlight);  
}

ul.dropdown-menu {
  background: var(--highlight);
  border: 0;
}

ul.dropdown-menu li a.dropdown-item {
  padding: 0.25rem 0.5rem;
  color: var(--primary);
}

ul.dropdown-menu li a.dropdown-item:hover, ul.dropdown-menu li a.dropdown-item:focus, ul.dropdown-menu li a.dropdown-item:active {
  color: var(--white);
}

ul.dropdown-menu li.current-menu-item, 
ul.dropdown-menu li.current-menu-item a {
  color: var(--dark) !important;
  border-bottom: 0 !important;  
} 

.main-navigation ul.navbar-nav li.current_page_item li a {
  color: var(--dark) !important;
  border-bottom: none !important;  
}

.main-navigation ul.navbar-nav li.current_page_item li.current-menu-item a,
.main-navigation ul.navbar-nav li.current_page_parent li.current-menu-item a {
  font-weight: bold;
}

.main-navigation ul.navbar-nav li.current_page_ancestor:hover a {
  background: var(--highlight);
  color: var(--dark);
  border-bottom: 0 !important;
}

.main-navigation ul.navbar-nav li {
  margin: 0;
}

@media (max-width: 776px) {
  .main-navigation ul.navbar-nav li ul.dropdown-menu {
    box-shadow: none;
  }
  .main-navigation ul.navbar-nav li.current_page_item li a {
    color: var(--white) !important;
  }
}

.nav-utility li.menu-item {
  padding: 0.5rem;  
  color: var(--secondary);
}

.footer-social a, .nav-utility .navbar-nav a:link, .nav-utility .navbar-nav a:visited {
  color: var(--secondary);
}

@media (max-width: 992px) {
  * {
    --bs-body-font-size: 1rem;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.6rem;
  }
  h3, .h3 {
    font-size: 1.4rem;
  }
  
  #masthead {
    display: block;
    padding: 2rem 1rem;
  }
  
  #masthead .logo {
    display: block;
    width: 100%;
  }
  
  .main-navigation {
    display: block;
    width: 100%;
    padding-right: 0;
  }
  
  .main-navigation ul.navbar-nav a {
    color: var(--primary); 
  }
  
  ul.navbar-nav li.current-menu-item {
      color: var(--white);  
  }
  
  ul.navbar-nav li.current_page_item a {
      border-color: var(--white); 
      background: var(--primary); 
  }
  
  .promo_text {
    padding: 0.5rem;
  }
}

#primary {
  padding: 0;
}
 
/* component overrides */

.block-banner-image p {
  font-size: 120%;
}

.block-image-text {
  align-items: flex-start;  
}

.block-image-text+:not(.block-twocol) img {
  aspect-ratio: auto;  
}

.block-promo img:hover, .listing-image img:hover {
  transform: none;
}

.block-promo img, .listing-image img:hover {
  transition: none;
} 

.block-toolkit img:hover {
  transform: none;
} 

.block-toolkit img {
  transition: none;
} 

body.home .block-listing {
  width: 31%;
  margin: 0 1%;
}

body.home .block-listing .col-md-4, body.home .block-listing .col-md-8 {
  width: 100%;
  display: block;
}

.caption_blocks div:last-child {
  text-align: right;
}

.promo_title, .promo_teaser, .block-subtitle, .subtitle, .button-cta, .btn {
  text-align: left;
}

.button-cta a.btn-primary, .button-cta a.cta-link {
  background: var(--primary);
  color: var(--white);
}

.btn:link, .btn:visited , .button-cta a, a.btn-primary {
  border: 0;
  border-radius: 2rem;
}

.btn-primary:hover, .btn-primary:focus, input.button-cta:hover, input.button-cta:focus, .pseudo-btn-cta span, input.button-cta, .cta-link:hover, .cta-link:focus {
  background: var(--secondary) !important;
  color: var(--white) !important;
}

.theme-dark {
  background: var(--dark);
}

.theme-light {
  background: var(--white);
}

.theme-bold {
  background: var(--primary);
}

.theme-highlight {
  background: var(--highlight);
}

.theme-dark .block-banner-image .teaser {
  background: var(--secondary);
}

.theme-light .block-banner-image .teaser {
  background: var(--white);
}

.theme-bold .block-banner-image .teaser {
  background: var(--primary);
}

.theme-highlight .block-banner-image .teaser {
  background: var(--highlight);
}

.no-banner-image .block-banner-image.overlay h1.block-subtitle,
.no-banner-image .block-banner-image.overlay h2.block-subtitle {
  text-shadow: none !important;
}

.theme-dark .promo_title, 
.theme-dark .panel_title, 
.theme-dark .block-subtitle, 
.theme-dark p,
.theme-bold .promo_title, 
.theme-bold .panel_title, 
.theme-bold .block-subtitle, 
.theme-bold p,
.theme-highlight .promo_title, 
.theme-highlight .panel_title, 
.theme-highlight .block-subtitle, 
.theme-dark .block-listing a,
.theme-dark .block-listing .entry-title a,
.theme-dark .block-listing .entry-content,
.theme-dark .block-listing .offsite-listing-link,
.theme-bold .block-listing .entry-title a,
.theme-bold .block-listing .entry-content,
.theme-bold .block-listing .offsite-listing-link,
.theme-dark p.section-meta,
.theme-bold p.section-meta,
.theme-dark h1,
.theme-bold h1,
.theme-highlight h1,
.theme-dark h2,
.theme-bold h2,
.theme-highlight h2,
.theme-dark h3,
.theme-bold h3,
.theme-highlight h3 {
  color: var(--white);
}

.theme-dark a:active .promo_title,
.theme-dark a:focus .promo_title,
.theme-bold a:active .promo_title,
.theme-bold a:focus .promo_title,
.theme-bold .block-listing a:hover .entry-content,
.theme-dark .block-listing a:hover .entry-content,
.theme-bold .block-listing a:focus .entry-content,
.theme-dark .block-listing a:focus .entry-content,
.theme-bold .block-listing a:hover .entry-title,
.theme-dark .block-listing a:hover .entry-title,
.theme-bold .block-listing a:focus .entry-title,
.theme-dark .block-listing a:focus .entry-title,
.theme-bold .block-listing a:hover .entry-date,
.theme-dark .block-listing a:hover .entry-date,
.theme-bold .block-listing a:focus .entry-date,
.theme-dark .block-listing a:focus .entry-date {
  color: var(--dark);
}

.theme-highlight .entry-content a {
  color: var(--dark);
  border-bottom-color: var(--dark); 
}

.theme-dark .btn-primary,
.theme-bold .btn-primary,
.theme-highlight .btn-primary,
.theme-bold .button-cta a,
.theme-dark .button-cta a,
.theme-highlight .button-cta a {
  background-color: var(--white);
  color: var(--dark) !important;
}

.theme-light .block-promo .promo_url {
  background: var(--light-tint);
  margin: 1rem;
}

.theme-bold .block-promo .promo_url {
  background: var(--white);
  margin: 1rem;
}

.theme-bold .block-promo .promo_url,
.theme-bold .block-promo .promo_url .promo_title, 
.theme-bold .block-promo .promo_url .block-subtitle, 
.theme-bold .block-promo .promo_url p {
  color: var(--dark);
}

.band.theme-light + .band.theme-light {
  padding-top: 0;
}

/* Footer news promo styling */

#site-footer {
  margin-top: 2rem;
  background: var(--primary-tint);
}

#footer-promo h2, #footer-promo h4 {
  color: var(--white);
}

#footer-promo a, #footer-contact a {
  color: var(--white);
  border-bottom: 1px solid var(--white);
}

#footer-contact img.footer-logo {
  max-width: 150px;
}

#site-footer * {
  color: var(--dark);
}

#site-footer a {
  color: var(--secondary);
}

#footer1 p {
  margin: 0.5rem 0;
}

#footer2 img { /* logos */
  max-width: 100px;
  max-height: 100px;
  position: static;
}

#footer2 a {
  display: inline-block;
}

/* Forms */

.gform_wrapper.gravity-theme .gf_progressbar_percentage.percentbar_blue {
  background-color: var(--primary) !important;
}

.gform_page_fields td font {
  font-size: 1rem !important;
}

.gform-theme-button.button, input[type=submit].gform_button {
  border-radius: 0 !important;
}

.gform_next_button.button, input[type=submit].gform_button, .frm_button_submit {
  background: var(--dark) !important;
  color: var(--white) !important;
}

.gform-theme-button.button:focus, .gform-theme-button.button:active,
input[type=submit].gform_button:focus, input[type=submit].gform_button:active {
  background: var(--highlight) !important;
  color: var(--dark) !important;
}

.gfield_consent_label {
  font-weight: normal;
}

.gform-theme--framework .gfield_list_group_item::before, .gform-theme--framework .gform-field-label {
  --gf-local-font-size: 1.2rem;
}

.gchoice {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  margin-left: 0.25rem;
}

.gchoice label {
  position: relative;
  top: -3px;
  left: 3px;
}

.gform_footer, .gform_page_footer {
  padding: 1rem 0 3rem 0;
}

.gform-theme--framework .gf_progressbar .percentbar_blue {
  background-color: var(--secondary);  
}

/* Formidable */

.frm_opt_container {
  padding: 1rem 0;
}

.with_frm_style {
  --check-font-size: 15px;
}

/* custom overrides */

.wider-image {
  left: 0;
  margin-left: 0;
  margin-right: -20vw;
  max-width: 80vw;
  position: relative;
  right: 10vw;
  width: 80vw;
} 

@media (max-width: 768px) {
  .wider-image {
    margin-right: 0;
    max-width: 95vw;
    width: 95vw;
  }
} 

.band {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.block-image-text {
  align-items: flex-start;
}

body.home .band:first-child { /* top hero band, homepage */
  padding-bottom: 180px;
}

body.home .band:first-child .block-text:last-child .entry-content {
  text-align: right;
  width: 100%;
  font-weight: bold;
  font-size: 140%;
  line-height: 100%;
}

body.home .band:first-child .block-text:last-child p:not(.button-cta) {
  opacity: 0.7;
} 

body.home #block_our-approach {
  position: relative;
  top: -200px;
  background: none;
  margin-bottom: -200px;
}

body.home #block_our-approach .block-subtitle {
  color: var(--white);
  font-size: 120%;
}

body.home #block_our-approach .block-panel {
  background: var(--tertiary);
  margin: 0 1%;
  width: 23%;
}

body.home #block_our-approach .panel_title {
 margin-top: 1rem;
 color: var(--white);  
  font-size: 120%;
}

body.home #block_our-approach .entry-content a {
  color: var(--white);
  border-bottom-color: var(--white);
}

body.home .band:nth-child(3) h2.panel_title { /* 4 x how we work */
  color: var(--highlight);
  font-size: 120%;
}

body.home #block_our-team-and-story figure {
  max-width: 66%;
  padding: 1rem;
}

body.home #block_our-team-and-story .block-image {
  justify-content: center;
}

body.home #block_our-news-and-insights .block-promo {
  width: 31%;
  margin: 0 1%;
  font-size: 120%;
}

body.home .block-readmore {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

body.home #block_about-dave article {
  margin: 0 auto;
}

body.home #block_supporting-the-community {
  padding-bottom: 0;
}

@media (max-width: 996px) {
  body.home .band:first-child .block-text:last-child .entry-content { 
    text-align: left;
  }
  
  body.home #block_our-approach .block-panel {
    margin: auto;
    width: inherit;
  }
  
  body.home #block_our-news-and-insights .block-listing {
    width: inherit;
    margin: auto;
  }
}

/* Single post meta */

.entry-avatar {
  display: inline-block;
  border-radius: 50%;
}

.meta {
  font-size: 80%;
  text-transform: uppercase;
}

.meta-tags span, .meta-dimensions span, .meta-date span {
  margin: 0 0.5rem 1rem 0;
  display: inline-block;
}

.block-listing .meta-tags span, 
.block-listing .meta-dimensions span, 
.block-listing .meta-categories span,
.inactive-dimension-link {
  border-radius: 1rem;
  background-color: var(--primary);
  color: var(--white);
  border-bottom: 0;
}

.meta-tags span a, 
.meta-dimensions span a, 
.meta-categories span a {
  border-radius: 1rem;
  padding: 0.25rem 0.5rem; 
  background-color: var(--primary);
  color: var(--white);
  border-bottom: 0;
}

.unlinked-meta span {
  padding: 0.25rem 0.5rem; 
}

.meta-dimensions span a,
.block-listing .meta-dimensions span,
.inactive-dimension-link {
  background-color: var(--secondary);
}

.meta-categories span a,
.block-listing .meta-categories span  {
  background-color: var(--dark);
  color: var(--white)
}

.meta-tags span a:hover, .meta-tags span a:focus,
.meta-dimensions span a:hover, .meta-dimensions span a:focus,
.meta-categories span a:hover, .meta-categories span a:focus {
  background-color: var(--dark) !important;        
}

.link-meta-box {
  background: var(--primary-tint);
  padding: 1rem 1rem 0.25rem 1rem;
  margin: 1rem 0;
}

.link-meta-box a.library_link {
  color: var(--secondary);
  background: var(--white);
  padding: 0.25rem 1rem 0.25rem 0.75rem;
  border: 0;
  display: block;
  border-radius: 1rem;
}

.link-meta-box span.dashicons {
  position: relative;
  top: 2px;
}

 body.home .panel_image {
   max-width: 100px;
 }
 
/* read more */

.readmore-button {
   margin-top: -5rem; 
   margin-bottom: 2rem;
   padding-top: 5rem;
   display: block;
   z-index: 1000;
   position: relative;
   background-image: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,1));
}
 
 .readmore-button a {
   font-size: 80%;
   text-transform: uppercase;
   color: white;
   background: var(--primary);
   padding: 0.25rem 0.5rem;
   font-weight: 500;
 }
 
 .readmore-button:has(a.readmore-close) {
   background: none;
 }
 
 /* dimensions pages */
body.page-template-page-flexible .block-listing {
   width: 31%;
   margin: 0 1%;
 }
 
body.page-template-page-flexible .block-listing .col-md-4,
body.page-template-page-flexible .block-listing .col-md-8 {
  width: 100%;
  display: block;
}

body:not(.home) .block-listing-text .entry-excerpt {
  display: none;
}

@media (max-width: 768px) {
  body.page-template-page-flexible .block-listing {
    width: 100%;
    margin: 0;
  }
}

/* search */

#site-search-modal .modal-dialog {
  margin: 40vh auto;
  min-height: 40vh;
  width: 60%; 
}

#site-search-modal .search-field {
  font-size: 120%;
}

@media (max-width: 768px) {
  #site-search-modal .modal-dialog {
    width: 90%;
  }
  #site-search-modal .search-field {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}


/* Testimonial block */

.block-testimonial p.testimonial-quotemark {
  font-size: 400%;
  font-weight: normal;
  text-align: right;
  display: inline-block;
  width: 100%;
  position: relative;
  top: -1.5rem;
  margin-right: 0.5rem;
}

.block-testimonial .testimonial-quote {
  font-weight: bold;
  font-size: 120%;
  text-align: left;
}

.block-testimonial .testimonial-attribution {
  font-weight: normal;
  font-size: 120%;
  text-align: right;
}

/* email popup overrides for mobile */

@media (max-width: 768px) {
  #popmake-534 {
    width: 80% !important;
    margin-left: auto;
    margin-right: auto;
    max-height: 90vh !important;
  }
  
  .pum-theme-528 .pum-content + .pum-close, .pum-theme-hello-box .pum-content + .pum-close {
    top: -15px !important;
    right: -15px !important;
  }
}

/* Skills-specific bits */

button, input[type=submit] {
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
}

.frm_display_format_buttons .frm_label_button_container, .frm_display_format_buttons .frm_image_option_container {
  display: inline-block;
}

.with_frm_style .frm_radio {
  display: inline-block;
}

.frm_display_format_buttons .frm_radio input[type=radio]:checked + .frm_label_button_container, .frm_display_format_buttons .frm_radio input[type=radio]:checked + .frm_image_option_container, .frm_display_format_buttons .frm_radio input[type=radio]:checked + div .frm_text_label_for_image, .frm_display_format_buttons .frm_checkbox input[type=checkbox]:checked + .frm_label_button_container, .frm_display_format_buttons .frm_checkbox input[type=checkbox]:checked + .frm_image_option_container, .frm_display_format_buttons .frm_checkbox input[type=checkbox]:checked + div .frm_text_label_for_image, .frm_display_format_buttons .frm_scale input[type=radio]:checked + .frm_label_button_container, .frm_display_format_buttons .frm_scale input[type=radio]:checked + .frm_image_option_container, .frm_display_format_buttons .frm_scale input[type=radio]:checked + div .frm_text_label_for_image, .frm_nps__button.frm_nps__button--active, .frm_nps__buttons input[type=radio]:focus + .frm_nps__button, .frm_nps__buttons input[type=radio]:checked + .frm_nps__button {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* sticky top nav */

.fixed-top {
  position: static !important;
}

.fancy-button {
    background: var(--primary);
    color: var(--white) !important;
    border: 0 !important;
    border-radius: 2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}
  
.fancy-button:hover, .fancy-button:focus {
    background: var(--secondary) !important;
    color: var(--white) !important;
}