/*
Theme Name: Ananda.org
Theme URI: https://www.ananda.org
Author: Ananda
Author URI: https://www.ananda.org
Description: A theme for the Ananda.org website, child of the X theme and based on the Ananda Designs template.
Version: 1.0.0
Template: x

Table of Contents:
==================
- quiz styles
- Find Ananda
- GeoIP
- Misc
*/

/* Homepage fix for two-column Featured Items */
.x-2-3 .ananda-x-featured-post-column.ananda-x-featured-post-column-1,
.x-2-3 .ananda-x-featured-post-column.ananda-x-featured-post-column-2 {
  width: 100% !important;
}

/* Visitor returning classes, @see js/visitor-segments.js */
body.visitor-returning .show-visitor-returning,
body.visitor-new .show-visitor-new {
  display: block !important;
}

body.visitor-new .show-visitor-returning,
body.visitor-returning .show-visitor-new {
  display: none !important;
}

/* Hide footer CTA on child sites; it could be distracting and also it doesn't work */
.child-site .ananda-x-footer-cta {
  display: none;
}

.ananda-x-footer-cta-title,
.ananda-x-footer-cta-subtitle.subtitle,
.ananda-x-footer-cta-content-block > p:first-of-type {
  font-weight: 400;
}

/* Improve readability of footer CTA; experimental for Ananda.org for now */
.ananda-x-footer-cta-content-block {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Adjust footer band height */
.ananda-x-footer-band {
  height: 108px;
}

/* Remove the wrong highlight when child sites pull in the menu */
.child-site
  .x-navbar
  .ubermenu
  .ubermenu-item-level-0.ubermenu-current-menu-item
  > .ubermenu-target {
  background: transparent;
}

/**
 * Fixing some ubermenu stuff
 */
.ubermenu .ubermenu-widget-area {
}

.ubermenu .ubermenu-widgettitle {
  display: none;
}

.ubermenu .ubermenu-submenu-type-stack > .ubermenu-item.x-btn-secondary,
.ubermenu .x-btn-secondary > a {
  display: inline-block;
  width: auto;
}

/**
 * Yogapedia
 */
.yogapedia-audio {
  color: rgba(0, 107, 232, 0.8);
}

.post-excerpt.type-yogapedia p {
  font-size: 20px;
  margin-bottom: 0.5em;
}

/* The "play" icon */
.yogapedia-audio:before {
  margin-right: 10px;
}

/* Quiz styles
---------------------------------------- */
body .gform_wrapper .quiz .gfield_radio li label,
body .gform_wrapper .gfield_checkbox li label {
  font-size: 18px;
  font-weight: lighter;
  margin-left: 12px;
}

/* Renew settings would center images in links, not otherwise */
a.x-img > img {
  margin-left: unset;
  margin-right: unset;
}

/* Find Ananda
---------------------------------------- */
.location_search_submit_cell {
  display: flex;
}
.location_search_submit_cell .location_search_cell {
  height: 100px;
}
.location_search_submit_cell.location_search_cell input {
  height: 75%;
  margin: 10px;
  /* so that the secondary button ('view all', which has a border) doesn't appear larger */
  border: 1px solid transparent;
}

/* Miscellaneous classes and styles 
---------------------------------------- */

.app-icon {
  border-radius: 24px;
}

.size-thumbnail.app-icon {
  border-radius: 20px;
}

.alignleft.app-icon {
  margin-right: 12px;
}

.pair img {
  float: left;
  margin-right: 24px;
}

.single-ask .x-sidebar ul .cat-item > a {
  margin: 0;
}

html .woocommerce-checkout h3.checkout-header:before {
  border-radius: 8px;
}

div#id-ananda-book-secondary.menu-ananda-book-secondary li a {
  padding: 2px 20px;
}

/* Answerers page
---------------------------------*/

.ask-experts-answerers .sectionnav-subtitle {
  margin-top: 8px;
}

.ask-experts-answerers .x-header-landmark {
  margin: 0;
}

.ask-experts-answerers .x-header-landmark + .x-container {
  margin-top: 32px;
}

.ask-experts-answerers #ask_experts .pair {
  margin-bottom: 23px;
  padding-bottom: 13px;
  border-bottom: 1px solid lightgray;
}

.ask-experts-answerers #ask_experts .pair h3 {
  line-height: 1;
}

.ask-experts-answerers h2.ananda-x-entry-title {
  margin-bottom: 33px;
}
