/*
 Theme Name:   Viable Child
 Theme URI:    http://nordicnaturals.com/blog
 Description:  Viable Child Theme for Nordic nordicnaturals
 Author:       Launch Brigade
 Author URI:   http://launchbrigade.com
 Template:     viable-blog
 Version:      1.0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  viable-child
*/

.nav-toggle:before {
  /* content: '\f0c9';
  color: #656565; */
  content: ' ';
  background: url('dist/images/navicon.png') no-repeat center;
  background-size: 100%;
  width: 22px;
  height: 17px;
}

_::-webkit-full-page-media, _:future, :root .promo-head span {
  font-size: 0.91em;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: subpixel-antialiased;
}

.promo-head span {
  font-size: 0.96875em;
}

/* Accessibility link */
.ea-link-block {
  position: absolute;
  right: 20px;
  top: 18px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

.ea-link-block a,.ea-link-block a:visited {color: #00467F;}
.ea-link-block a:hover {text-decoration: underline;}
.ea-link-block a:focus {outline:1px solid rgba(0, 70, 127, 0.5);}

@media only screen and (max-width: 1023px) {
  .ea-link-block {
    top: 4px;
  }
}
.un-skip-links {
  overflow: hidden;
}
.wrapper .panel.header .head-links > li .title-storelocator > span {display: none;}
.wrapper .panel.header .head-links > li .title-storelocator:before {
  top: -20px;
  left: -8px;
}

.wrapper .panel.header .head-links > li {margin: 0 0 0 35px;}
.wrapper .panel.header{min-height:26px;}
@media only screen and (max-width: 1023px) {
  .promo-head.top-left {
    text-align: left;
    margin-left: 15px;
  }
}
@media all and (min-width: 1024px), print {
  .header.panel .head-links.top-right {
      margin-right: 185px;
  }
}

/* Healthy science header */

.healthy-header {
  width: 100%;
  background: #014a87;
  padding: 50px 0 30px 0;
}

.healthy-header .vb_container {
  max-width: 1240px;
}

.blog-logo {
  max-width: 240px;
  height: auto;
}

#healthy-menu.menu-blog-nav-container {
  background: none;
  width: 100%;
  float: right;
}

#healthy-menu .menu>li {
  padding: 60px 0 0 0;
}

#healthy-menu .menu>li>a {
  font: 20px GothamMedium;
  color: #FFF;
}

#healthy-menu .current-menu-item > a {
  color: #FFF !important;
  border-bottom: 2px solid #FFC40B;
}

.expand-categories {display: none;}

/* Homepage */

.post-title-level-two>h2 {
  line-height: 0.5em
}

.post-title-level-two>h2>a {
  font: 500 20px 'Lora', serif;
  line-height: 1.2;
}

.excerpt > p {
  font: 13px 'GothamRegular' !important;
}

article.post {
  margin-right: 10px;
}

.post-thumb-link {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}

.post-thumb-link:hover .post-thumb-bg {
  -webkit-transform: scale(1.1);
     -moz-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.post-thumb-bg {
  width: 100%;
  padding-bottom: 66.666%;
  -webkit-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-transition: all 0.4s ease-out;
     -moz-transition: all 0.4s ease-out;
          transition: all 0.4s ease-out;
  -webkit-transform: scale(1);
     -moz-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}

/* Sidebar */

aside#secondary.widget-area{
  border: 1px solid #cacaca;
  clear:both;
}

.mc4wp-form-fields > p > input[type="submit"] {
  background: #014a87;
}
.mc4wp-form-fields > p > label {
  line-height: 1.3;
  margin-bottom: 15px;
  font-size: 14px;
}

.widget div.widget-title h3 {
  padding: 10px 10px 5px 10px;
}

#mc4wp_form_widget-2 {
  margin-bottom: 15px;
}

#search_mini_form {width:100%;}

.block.newsletter input {
  padding-left: 15px;
}

div.block.block-search {
  position: relative;
  width: 100%;
  float: none;
  z-index: 4;
  padding: 0;
}

.block-search .control {padding: 0;border:none;margin: 0;}

.block-search input[type="text"] {
  position: static;
  margin: 0;
  padding: 10px 35px 10px 33px;
  height: auto;
  line-height: 1;
  border-radius: 3px;
}

.block-search .action.search {
  display: inline-block;
  background-image: none;
  background: none;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  border: 0;
  box-shadow: none;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-decoration: none;
  text-shadow: none;
  font-weight: 400;
  position: absolute;
  left: 8px;
  top: 1px;
  z-index: 1
}

.block-search .action.search>span {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.block-search .action.search:before {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 22px;
  line-height: inherit;
  color: #d8d8d8;
  content: '\f002';
  font-family: 'FontAwesome';
  margin: 0;
  vertical-align: top;
  display: inline-block;
  font-weight: normal;
  overflow: hidden;
  text-align: center
}

.block-search .action.search:hover:before {
  color: inherit
}

.block-search .action.search:active:before {
  color: inherit
}

.menu-search {
  padding: 0 10px;
}

/* Single */

.container.single-content {
  padding: 0 65px;
}
@media (min-width: 1200px) { .container.single-content { width: 1235px;}}
@media (max-width: 780px) { .container.single-content { padding: 0 15px;}}

.post-container {
  max-width: 840px;
  margin: 0 auto;
  font-size: 1.125em;
}

.single-content {
  font-size: 1.125em;
}

a[data-tooltip="tooltip"] {
  border-bottom: 1px dashed #4ba9f5;
}

.post-title>h1 {
  font: 500 48px 'Lora', serif;
  text-align: left;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #4c4c4c;
}

div.postpage_entry h2 {
  font: 500 38px 'GothamMedium', serif !important;
  color: #484848;
}

div.postpage_entry h3 {
  font: 500 30px 'GothamMedium', serif !important;
  color: #484848;
}

div.postpage_entry h4 {
  font: 500 22px 'GothamMedium', serif !important;
  color: #484848;
}

.related h5 {
  margin: 35px 0;
  font-weight: 500;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
}

div.highlights {
  background: none;
  border-top: 4px solid #e8e8e8;
  border-bottom: 4px solid #e8e8e8;
  margin-bottom: 35px;
  padding: 10px 40px 10px 40px;
}

div.postpage_entry div.highlights h2, div.postpage_entry div.highlights strong {
  font-size: 30px !important;
  margin: 15px 0 20px 0 !important;
  font-weight: 400;
}

div.highlights ul {
  margin-top: 10px;
}

div.highlights li {
  margin-bottom: 15px;
}

.post_meta {float:left;}

/* Youtube video embed */

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Share buttons */

.sharethis-inline-share-buttons {float: right;}

div#st-2.st-left, div#st-3.st-left, div#st-4.st-left {
  top: 45%;
  left: 10px;
}

div#st-2 .st-btn.st-first, div#st-3 .st-btn.st-first {border-top-right-radius: 100px;}
div#st-2 .st-btn.st-last, div#st-3 .st-btn.st-last {border-bottom-right-radius: 100px;}

div#st-2 .st-btn, div#st-3 .st-btn {
  background-color: #014a87;
  border-radius: 100px;
  margin-top: 10px;
  width: 42px;
  height: 42px;
  padding: 9px;
}
div#st-2 .st-btn:hover, div#st-3 .st-btn:hover {
  border-bottom-right-radius: 100px;
  border-top-right-radius: 100px;
}
div#st-2:not(.st-has-labels) .st-btn:hover, div#st-3:not(.st-has-labels) .st-btn:hover {
  width: 42px;
}
div#st-2 .st-btn:hover > svg, div#st-3 .st-btn:hover > svg {
  margin-left: 0;
}
div#st-2.st-toggleable:hover .st-btn.st-last, div#st-3.st-toggleable:hover .st-btn.st-last {
  border-bottom-right-radius: 100px;
}
div#st-2 .st-toggle, div#st-3 .st-toggle {display: none;}

.postpage_entry .post_meta .posted_date {
  color: #a5a5a5;
}

.postpage_entry .post_meta .posted_by {
  padding-right: 4px;
}

.postpage_entry .post_meta .posted_by,
.postpage_entry .post_meta .reviewed_by {
  font-size: 16px;
}

.post_meta .reviewed_by {
  border-left: 1px solid #e2e2e2;
  padding: 0 5px 0 10px;
}

.related.row {margin: 0;}

.related_posts .card {
  border: none;
}

.related_posts .excerpt p {
  font-size: 14px !important;
}

.related_posts .post_title h3 {
  font: 500 20px 'Lora', serif;
  line-height: 1.2;
}

/* New related posts row */

.related-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.related-column {
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  max-width: 100%;
  min-width: 200px;
  padding: 0 15px;
}

.related-column .card_content {
  padding: 15px 5px;
}

.related-column .post_title h3 {margin-bottom: 15px;}

.related-column .post_title h3::after {right: unset;}

.related-bottom {
  margin-top: 2em;
}

/* Related posts sidebar */
.related-sidebar h5 {
  margin-top: 1em;
}
.related-sidebar .related_posts .post_title h3 {
  font-size: 20px;
}
div.post_title h2::after, div.post_title h3::after, div.post_title h4::after {
  border-color: #FFC40B;
}
.archive-list.row {
  margin: 0 auto;
  max-width: 1240px;
  padding: 40px 0;
}

.archive-list .col-sm-4:nth-of-type(3n+1) {
  clear: left;
}

nav.post-navigation {
  display: none;
  font-size: 14px;
  border-radius: 3px;
  padding: 10px;
  margin: 60px auto;
}

ul.post-categories {
  line-height: 1.1;
  margin-bottom: 7px;
  margin-top: -2px;
}

ul.post-categories li a {font: 11px 'GothamBold' !important;}

.post-category a {
  font: 11px 'GothamBold';
  text-transform: uppercase;
}

.wp-post-image {border-radius: 3px;}

/* Sidebar */

.right-sidebar-single {
  display: none;
  border: 1px solid #cacaca;
  padding: 0 20px 20px 20px;
}
.right-sidebar-single.active {display:block;}

.right-sidebar-single .widget {
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e2e2;
  margin-top: 20px;
}

.right-sidebar-single .widget:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.right-sidebar-single div.widget-title h3 {
  padding: 5px 0 0 0;
}

.right-sidebar-single input[type="submit"] {
  font-size: 0.875em;
}

.right-sidebar-single ul {
  list-style: none;
  margin-top: 30px;
}

.right-sidebar-single ul li {
  position: relative;
  font-size: 0.875em;
  margin-bottom: 30px
}

.right-sidebar-single ul li:last-child {
  margin-bottom: 10px;
}

.right-sidebar-single ul li a {
  color: #2196F3;
  border-bottom: 1px solid #d8edfe;
}

.right-sidebar-single li .post-date {
  color: grey;
  font-size: 0.875em;
  display: block;
  position: absolute;
  top: -20px;
}

/* Footer/other */

@media (max-width: 1280px) {
  .footer.content .block {
    float: none;
  }
}

.footer input[type="email"] {
  border: none;
  border-radius: 3px;
  background-color: rgba(255,255,255,0.9);
}

hr {
  border: none;
  border-bottom: 2px solid #e2e2e2;
}

hr.homerule {
  border-bottom: 3px solid #e2e2e2;
  margin: 60px 0;
}

div#toTop {
  background: #014a87;
  padding: 8px 14.12px;
  border-radius: 85px;
}

.site-main .row .col-sm-4:nth-of-type(4) {
  clear: left;
}

.row .col-sm-3:nth-of-type(5), .row .col-lg-3:nth-of-type(5), .row .col-md-3:nth-of-type(5) {
  clear: left;
}

/* Media queries */

@media only screen and (max-width: 991px) {
  .col-sm-3.right-sidebar {
    width: 100%;
    margin: 2em auto 0 auto;
  }
  .right-sidebar .widget-area {
    margin: 0 auto;
    max-width: 640px;
  }
  .related-sidebar {
    display: none;
  }
  .related-column {
    min-width: 48%;
  }
  .right-sidebar-single, .right-sidebar-single.active {
    display: none;
  }
}

@media only screen and (min-width:993px){
  .single-content .right-sidebar-single {
    margin-top: 5.4375em;
  }
}

@media only screen and (min-width: 1024px) {
  .minicart-wrapper .action.showcart:after {bottom: 4px;}
}

@media only screen and (max-width: 1023px) {
  .header.content .logo img, #main-menu, ul.head-links {
    display: none;
  }
  .header.content .logo {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: url('dist/images/logo-mobile.svg');
    background-position: center center;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }
  .header.content {
    position: relative;
    height: 95px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-right {width: 100%;}

  .promo-head {
    text-align: center;
    padding: 3px 0;
  }

  /* Healthy header mobile */
  .healthy-header {
    text-align: center;
    padding: 25px 15px 10px 15px;
    margin-bottom: 20px;
  }
  .blog-logo {
    margin: 0 auto 15px auto;
    max-width: 160px;
    display: block;
  }
  #healthy-menu.menu-blog-nav-container {
    float:none;
    text-align: center;
    margin-top: 20px;
  }
  #healthy-menu .menu>li {
    padding: 5px 0;
  }
  #healthy-menu .menu>li>a {font-size: 16px;}

}

@media only screen and (max-width: 840px) {
  .post-container {
    padding: 0 20px;
  }
  div.highlights {
    padding: 10px 15px 10px 15px;
  }
  /* . {
    padding: 0 15px 0 20px;
  } */
}

@media only screen and (max-width: 768px) {
  .post-preview-left {
    text-align: left;
  }
  .post_meta {
    float: none;
  }
  .excerpt p {
    font: 14px GothamRegular !important;
  }
  .mc4wp-form-fields > p > label {
    text-align: center!important;
  }
  .sharethis-inline-share-buttons {
    float: none;
    margin-top: 10px;
  }
  .author_box .author_thumb img {
    margin: 0 auto;
    width: 140px;
    height: 140px;
  }
}

@media only screen and (max-width: 640px) {
  #healthy-menu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
  }
  #healthy-menu.active {
    max-height: 35em;
  }
  #healthy-menu .menu {
    flex-flow: column;
    align-items: center;
  }
  /* Healthy categories mobile */
  .expand-categories {
    display: inline-block;
    color: #FFF;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(0,0,0,0.25);
    padding: 5px 15px;
    border-radius: 3px;
  }
  .expand-categories:visited,.expand-categories:hover {color: #FFF;}
  .expand-categories i.fas  {
    color: #ffc905;
    font-size: 0.9375em;
  }
  #healthy-menu .menu>li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    width: 85%;
  }
  #healthy-menu .menu>li:last-child {border:none;}
  #healthy-menu.menu-blog-nav-container {
    margin-top: 10px;
  }

  .post-title>h1 {
    font: 500 40px 'Lora', serif;
    line-height: 1.15;
  }
  div.post-title-level-two {width:100%;}

  .related-column {
    min-width: 98%;
  }

  table.wp-block-table {
    overflow: hidden;
    overflow-x: scroll;
    display: block;
  }

  .editor_contents a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

@media only screen and (max-width:768px) {
  .col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {
    float: none !important;
  }
}

/* Update dropdown menu */

#healthy-menu .menu {
  padding: 0 22% 0 7%;
  display: flex;
  flex-direction: row;
  flex-flow: row;
  justify-content: space-between;
  list-style: none;
}
#healthy-menu .menu > li.menu-item-has-children {
  position: relative;
}
#healthy-menu .menu > li.menu-item-has-children:after {
  position: absolute;
  font-family: 'FontAwesome';
  content: '\f0dd';
  font-weight: normal;
  color: rgba(255,255,255,0.5);
  transform: translate(8px, -3px);
  font-size: 1.125em;
}
@media only screen and (max-width: 640px) {
  #healthy-menu .menu > li.menu-item-has-children:after {display:none;}
}
#healthy-menu .menu .sub-menu {
  position: absolute;
  list-style: none;
  background: rgba(1, 74, 134,1);
  margin: 5px 0 0 -10px;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: all 0.3s ease-in-out;
  z-index: 90;
  min-width: 200px;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 11px 15px rgba(0,0,0,0.3)
}
#healthy-menu .menu .sub-menu li {
  margin: 0;
}
#healthy-menu .menu .sub-menu li a {
  display: block;
  padding: 10px;
  color: #FFF;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
#healthy-menu .menu .sub-menu li a:hover {
  background: #085a9e;
}
#healthy-menu .menu .sub-menu li:last-child a {
  border: none;
}
/*#healthy-menu .menu > li:active .sub-menu {
  max-height: 15em;
}*/
#healthy-menu .menu .sub-menu.active {
  max-height: 15em;
}
@media only screen and (max-width: 991px) {
  #healthy-menu .menu {
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Mobile */
@media only screen and (max-width: 640px) {
  #healthy-menu .menu {
    flex-direction: column;
    flex-flow: column;
    align-items: center;
    margin-top: 10px !important;
  }
  #healthy-menu .menu .sub-menu {
    position: relative;
    margin: 0;
    max-height: 50em;
    box-shadow: none;
  }
  #healthy-menu .menu .sub-menu li a {
    border: none; 
    padding: 5px;
  }
  .menu-item-has-children > a {
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
  }
  #healthy-menu .menu > li {
    border-bottom: none;
    width: 90%;
  }
  #healthy-menu .menu > li > a {
    font-size: 18px;

  }
}

/* Header height adjustment */
.healthy-header {
  padding: 30px 0 15px 0;
}
.blog-logo {
  max-width: 200px;
}
#healthy-menu {
  margin-top: 15px;
}

/* Between 640 and 850px: */
@media only screen and (min-width:641px) and (max-width:850px) {
  #healthy-menu {
    padding: 0 130px;
  }
}