/*
Theme Name: Moog Child
Theme URI: https://www.bnim.com
Description: A custom child theme for the Moog theme.
Author: BNIM
Author URI: https://www.bnim.com
Template: moog
Version: 1.0.0
Text Domain: moog-child
*/




/* ==========================================================================
   CSS Variables
   ========================================================================== */
/**
 * Any screen size
 *
 */

:root {
  
  /* color vars */
  --distr--color--black: #222;
  --distr--color--white: #fff;
  --distr--color--grey-dark: #34343c;
  --distr--color--grey-medium: #494955;
}

/* ==========================================================================
   WP Admin bar (Globals)
   ========================================================================== */
/**
 * Any screen size
 *
 */

html {
  margin-top: 0 !important;
}

html #wpadminbar {
  height: 32px;
  min-width: 33px;
  overflow: hidden;
  position: fixed;
  transition: width 0.1s ease-in-out;
  width: 33px;
}

html #wpadminbar:hover {
  width: 100%;
}

html #wpadminbar #wp-admin-bar-wp-logo,
html #wpadminbar #wp-admin-bar-customize,
html #wpadminbar #wp-admin-bar-new-content,
html #wpadminbar #wp-admin-bar-comments,
html #wpadminbar #wp-admin-bar-wpseo-menu,
html #wpadminbar #wp-admin-bar-elementor_notes {
  display: none;
}


@media (max-width: 782px ) {
  #wpadminbar #wp-admin-bar-customize>.ab-item, #wpadminbar #wp-admin-bar-edit>.ab-item, #wpadminbar #wp-admin-bar-my-account>.ab-item, #wpadminbar #wp-admin-bar-my-sites>.ab-item, #wpadminbar #wp-admin-bar-site-editor>.ab-item, #wpadminbar #wp-admin-bar-site-name>.ab-item {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    width: 32px;
    padding: 0;
    color: #a7aaad;
    position: relative;
  }

  html #wp-admin-bar-elementor_edit_page .ab-item {
    display: flex;
    height: 32px;
  }

  html #wp-admin-bar-elementor_edit_page .ab-item .elementor-edit-link-title {
    padding: 0 8px 0 7px;
  }

  #wpadminbar #wp-admin-bar-customize>.ab-item:before, #wpadminbar #wp-admin-bar-edit>.ab-item:before, #wpadminbar #wp-admin-bar-my-account>.ab-item:before, #wpadminbar #wp-admin-bar-my-sites>.ab-item:before, #wpadminbar #wp-admin-bar-site-editor>.ab-item:before, #wpadminbar #wp-admin-bar-site-name>.ab-item:before {
    display: block;
    text-indent: 0;
    font: normal 20px/1 dashicons; 
    speak: never;
    top: 7px; 
    width: 32px; 
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  #wp-admin-bar-elementor_edit_page .ab-item::before {
    display: block;
    text-indent: 0;
    font-size: 20px;
    line-height: 1;
    speak: never;
    top: 7px; 
    width: 32px; 
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  #wpadminbar .quicklinks ul > li {
    display: none !important;
  }

  #wpadminbar .quicklinks ul > li#wp-admin-bar-site-name {
    display: block !important;
  }

  #wpadminbar .quicklinks ul > li#wp-admin-bar-edit {
    display: block !important;
  }

  #wpadminbar .quicklinks ul > li#wp-admin-bar-elementor_edit_page {
    display: block !important;
  }

}


@media (max-width: 600px) {

  #wpadminbar {
    position: fixed; 
  }

}


/* ==========================================================================
   General
   ========================================================================== */
/**
 * Any screen size
 *
 */

.site-main,
.appendix-template-default main {
  min-height: calc( 100vh - 125px);
}


.page-template-page-no-title main {
  min-height: calc( 100vh - 125px - 48px);
}


/* ==========================================================================
   Header (Global)
   ========================================================================== */
/**
 * Any screen size
 *
 */

.wp-site-blocks header {
  background: var( --distr--color--grey-dark );
  position: sticky;
  top: 0;
  z-index: 9;
}

.sticky .wp-site-blocks header {
  box-shadow: 0 8px 8px 0 rgba(52, 52, 60, 0.4);
}


.distr-header .wp-block-search__input {
  min-height: 44px;
}

.distr-header .wp-block-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
  cursor: pointer;
  height: 16px;
  width: 16px;

}


/* ==========================================================================
   Archive pages and pages
   ========================================================================== */
/**
 * Any screen size
 *
 */


.wp-block-post-title :where(a) {
  text-underline-offset: 0.15em;
}

.distr-archive-page-left {
  height: min-content;
  position: sticky;
  top: 125px;
}

.wp-block-post-excerpt__excerpt {
  font-weight: 400;
}


.distr-map-wrap {
  margin: 0;
}

.distr-map {
  border-radius: 20px;
  height: 100%;
}

.distr-map-marker {
  align-items: center;
  background-color: transparent;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.distr-map-marker span {
  background-color: blue;
  border-radius: 50%;
  display: block;
  height: 16px;
  width: 16px;
}

.distr-map .gm-style .transit-container .gm-title {
  color: var( --distr--color--black );
}

.distr-map .gm-style-iw {

}

.distr-map .gm-style-iw-ch {
  display: none;
}

.distr-map .gm-style-iw-chr {
  position: absolute;
  top: 0;
  right: 0;
}


.distr-map-info-title {
  align-items: center;
  color: var( --distr--color--black ) !important;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  min-height: 50px;
  padding: 10px 30px 0 0;
}



.page-template-default h1.wp-block-post-title {
  padding: 0 0 0.5em;
}

.page-template-default h2.wp-block-heading {
  margin-bottom: 0.8em;
}

.post-navigation-link-previous a {
  position: relative;
}

.post-navigation-link-previous a::after {
  content: '>';
  display: inline-block;
  font-size: 1.2em;
  padding-left: 10px;
  position: absolute;
}


.distr-home-page-button-wrap {
  background-color: var( --distr--color--grey-medium );
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.distr-home-page-button-wrap * {
  color: var( --distr--color--white ) !important;
}

.distr-home-page-button-wrap h2 {
  padding-bottom: 10px;
  transition: all 0.2s ease-in-out;
}

.distr-home-page-button-wrap:hover * {
  color: var( --distr--color--white ) !important;
}

.distr-home-page-button-wrap:hover h2 {
  text-underline-offset: 0.15em;
  text-decoration: underline;
}









.distr-single-page-eyebrow-link {
  text-underline-offset: 0.15em;
  text-decoration: underline;
}


.wp-block-post-content li:not(:last-child) {
  margin-bottom: 0.2em;
}

p a,
li a {
  text-underline-offset: 0.2em;
}

.wp-block-table table {
  min-width: 700px;
}

.intro {
  font-size: var(--wp--preset--font-size--text-m) !important;
}

.page-index {
  column-count: 2;
  column-gap: 2rem;
  list-style-type: none;
  padding-left: 0;
}

.page-index li {
  margin-bottom: 0.5em !important;
}

em {
  color: #dae5a2;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp--preset--font-family--dm-sans), sans-serif;
}


.back-to-top-button-wrap {
  align-items: center;
  background-color: rgba(238, 238, 238, 0.80);
  border-radius: 2px;
  bottom: 16px;
  display: flex;
  height: 44px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 16px;
  transition: opacity 200ms ease-in-out;
  width: 44px;
  z-index: 15;
}

.back-to-top-button-wrap.is-visible {
  opacity: 0.7;
  pointer-events: auto; /* Re-enable clicks when visible */
}

.back-to-top-button {
/*  background-image: url( '../images/chevron-up-icon-v1.svg' );*/
  background-image: url('data:image/svg+xml,<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.cls-1{fill:none;}.cls-2{fill:%23111;}</style></defs><path class="cls-1" d="M0,0H24V24H0Z"/><path class="cls-2" d="M.89,16.25,3.5,18.86,12,10.38l8.5,8.48,2.61-2.61L12,5.14Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  height: 24px;
  opacity: 0.5;
  transition: opacity 3s ease-in-out;
  width: 24px;
}







@media (min-width: 40em) {
  .wp-block-query .wp-block-post-template.masonry.columns-4 {
    columns: 2;
  }
}

@media (min-width: 52em) {
  .wp-block-query .wp-block-post-template.masonry.columns-4 {
    columns: 3;
  }
}

@media (min-width: 64em) {
  .wp-block-query .wp-block-post-template.masonry.columns-4 {
    columns: 3;
  }
}

@media (min-width: 80em) {
  .wp-block-query .wp-block-post-template.masonry.columns-4 {
    columns: 4;
  }
}


@media (min-width: 1025px) and (max-width: 1279px) {

  .distr-home-page__right-side {
    flex-wrap: wrap !important;
  }

  .distr-home-page__right-side > div {
    flex-basis: 100% !important;
  }

}

@media (max-width: 1024px) {

  .wp-block-columns {
    flex-wrap: wrap!important;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    flex-basis: 100%!important;
  }

  .distr-archive-page-left {
    position: static;
  }

}


@media (min-width: 600px) and (max-width: 699px) {

  .wp-block-navigation .wp-block-navigation-item__label {
    font-size: 0.94rem;
  }

}

@media (max-width: 599px) {

  .back-to-top-button-wrap {
    height: 45px;
    right: 0;
    width: 45px;
  }

  .back-to-top-button {
    height: 25px;
    width: 25px;
  }

  .page-index {
    column-count: auto;
  }

}