/*

Theme Name: PEAK
Theme URI: http://theme.co/x/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.0
Template: x

*/

/* Set master font override (TypeKit fonts not supported by X Theme) */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
blockquote {
    font-family: "futura-pt",sans-serif;
    font-style: normal;
    font-weight: 400;
}

/* Styling for outer containers used on many pages */
.texture-container {
    background-image: url(images/debut_light.png);
    border: 1px solid rgba(0,0,0,0.075);
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}
.dark-container {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: #fff;
    border: 1px solid rgba(0,0,0,0.075);
    padding: 30px 20px !important;
}

/* Reduce excessive heading top margins */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 0.5em;
}
h4, h5, h6, .h4, .h5, .h6 {
    margin-top: 1.25em;
}

/* Custom button styling */
.x-btn, .button {
    border-width: 4px;
    text-transform: uppercase;
    padding: 0.563em 1.125em;
}
.x-btn:hover, .button:hover {
    border-width: 4px;
}
/* Correct padding */
.x-btn.x-btn-large {
  padding: 0.579em 1.105em;
}
.x-btn.x-btn-jumbo {
  padding: 0.643em 1.429em
}
.x-btn.x-btn-regular, .button, [type="submit"] {
  padding: 0.563em 1.125em;
}
.x-btn.x-btn-x-large {
    padding: 0.714em 1.286em
}
.x-btn.x-btn-small {
    padding: 0.429em 1.143em;
}

/* Light button variant */
.x-btn.light-btn,
.dark-container .gform_button,
.dark-container .x-btn {
    border-color: #fff;
    color: #fff;
}
.x-btn:hover.light-btn,
.dark-container .gform_button,
.dark-container .x-btn{
    border-color: #fff;
    color: #fff;
}

/* Fix squished responsive menu items on homepage in T4E and L4E feature areas and on resources page */
.ubermenu-has-submenu-flyout {
     width: 100% !important;
}
.resources-nav .ubermenu-item {
    margin: 20px 0 !important;
    width: 100% !important;
}

/* Recent Posts widget in Icon stack goes fully transparent on mouseover. Fix this */
.x-recent-posts a:hover img {
    opacity: 0.4;
}

/* ShiftNav customizations */
.shiftnav {
    background-color: rgba(50,50,50, 0.8) !important;
}
#shiftnav-toggle-main {
    border-bottom: 1px solid rgba(0,0,0,0.075);
}
#shiftnav-toggle-main .shiftnav-main-toggle-content {
    padding-right: 10px !important;
}

/* Disable ShiftNav and header section for Editing Dashboard and Cornerstone interfaces */
.editing-dashboard .shiftnav-toggle,
.editing-dashboard .masthead,
body.cs-editor-active .shiftnav-toggle {
    display: none !important;
}

/* Color alternating rows in editing dashboard */
.ui-tabs-panel li:nth-child(even) {
    background-color: #eee;
}

/* Hide password update form on editing dashboard */
#wck-fep-update-form {
    display: none !important;
}

/* Custom styling on UberMenus in widgets */
.widget .ubermenu .ubermenu-submenu {
    background-color: rgba(255, 255, 255, 0.9);
}
.widget .ubermenu .ubermenu-submenu a:hover {
    color: #2b303b;
}
.widget ul li:first-child {
    border: none;
}
.widget .ubermenu .ubermenu-current_page_item * {
    color: #9040a0 !important;
}
.widget .ubermenu-resources-menu a {
    border: 4px solid #2b303b !important;
    padding: 0.563em 1.125em !important;
}
.example-subject-button {
    width: 300px;
}


/* Generic classes for adding smokey background to elements */
/* (See also .light-btn, .shiftnav, and .x-accordion-group styles) */
.smoke {
    background-color: rgba(50, 50, 50, 0.8) !important;
}
.dark-smoke {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: #fff;
}
.dark-smoke a:hover {
    color: #fff;
}
.light-smoke {
    background-color: rgba(100, 100, 100, 0.7) !important;
}
.white-smoke {
    background-color: rgba(255, 255, 255, 0.7) !important;
}
.white-smoke .x-cite {
    color: #2b303b;
}
blockquote.dark-smoke, blockquote.smoke {
    color: #fff;
    border: none;
    font-size: 16px;
}

/* Accordion style overrides */
.x-accordion-inner {
    background-color: #fff;
}

/* Adjust size and styling of accordion items on workshop topics page */
#t4e-topics .x-accordion-toggle,
#l4e-topics .x-accordion-toggle {
    font-size: 16px;
}

/* Adjust styling of various home and landing page elements */
#t4e blockquote, #l4e blockquote, #welcome blockquote {
    font-size: 16px;
    color: #fff;
    border: none;
    background-color: rgba(255, 255, 255, 0.25);
}
#t4e table,
#l4e table,
#t4e table td,
#l4e table td,
#t4e .x-promo,
#l4e .x-promo {
    background-color: rgba(255, 255, 255, 0.25);
}
#t4e,
#l4e,
#t4e .h-custom-headline,
#l4e .h-custom-headline {
   color: #fff;
}

/* Limit size of massive featured images */
.single-post .entry-featured {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    display: block;
}

/* Set social network colors */
#facebook, #facebook i {
    color: #3B5999;
}
#facebook i {
    background-color: #3B5999 !important;
    color: #fff;
}
#twitter {
    color: #55ACEE;
}
#twitter i {
    background-color: #55ACEE !important;
    color: #fff;
}

/* Make social share blend in to masonry items */
.social-share .x-entry-share {
    border: none;
    margin: 0;
    padding: 0;
}

/* Give Faceook Like/Share bar some breathing room */
div.fb-like {
    margin-top: 10px;
}
.entry-content.excerpt {
    padding: 0;
}

/* Make mailing list opt in label text bigger */
.list-signup label {
    font-size: 16px !important;
}
.list-signup input {
    margin-top: .4em !important;
}

/* Override styling for homepage map */
#regions_div path {
    stroke-width:1; /* control the countries borders width */
    stroke: #2b303b; /* choose a color for the border */
}

/* Homepage mailing list signup form */
#mailing-list {
    border: 4px solid #2b303b;
}
#mailing-list .x-accordion-toggle {
    font-size: 19px;
    text-transform: uppercase;
    background: none;
    background-color: #63008e;
    color: #fff;
}
#mailing-list .x-accordion-toggle:hover {
    font-size: 19px;
    text-transform: uppercase;
    background: none;
    background-color: #2b303b;
    color: #fff;
}
#mailing-list .x-accordion-heading .x-accordion-toggle:before{
    content:"\f0e0";
    font-size: 19px;
    color: #fff;
}

/* Dates are bad...kill them */
.x-recent-posts-date,
body.search .p-meta {
    display: none !important;
}

/* Footer styles */
footer.x-colophon.top {
    -webkit-background-size: cover;
    background-attachment: fixed;
    background-image: url(/wp-content/uploads/2015/04/mountains.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 0 30px 0 #000 inset;
    border-top: 1px solid #2b303b;
    border-bottom: 1px solid #2b303b;
}
footer .widget {
    margin-top: 20px !important;
}
footer.x-colophon.bottom {
    background-image: url(/wp-content/uploads/2015/04/debut_light.png);
    background-color: transparent;
    background-repeat: repeat;
    background-position: 50% 50%;
}
.footer-container {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: #fff;
    padding: 20px;
}
.footer-container h5 {
    color: #fff;
}
.footer-container a:hover {
    color: #fff;
}
.footer-container .x-ul-icons {
    margin-bottom: 0 !important;
}
.footer-container .x-hr {
    border-color: #fff;
}
.footer-container a {
    color: #fff !important;
}
.footer-container a:hover {
    color: #9040a0 !important;
}
footer .form-search::before {
    font-size: 30px;
    bottom: 34%;
    left 20px;
}
footer input[type="text"] {
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.8);
}
footer .form-search .search-query {
    padding-left: 50px;
}

/* Hide meta info for Staff and Resource pages */
body.single-staff .entry-header,
body.single-resource .entry-header,
body.single-reference .entry-header {
    display: none;
}

/* Hide huge featured image on Resource pages */
body.single-resource .entry-featured {
    display: none;
}

/* Remove padding from Resource pages */
body.single-resource .entry-content {
    padding: 0;
}

/* Styling for resource index page */
.resource-tile {
    border: 1px solid rgba(0,0,0,0.075) !important;
    background-color: #fff !important;
    padding: 10px !important;
    margin-bottom: 20px !important;
}

/* Styling for reference index page */
.reference-tile {
    border: 1px solid rgba(0,0,0,0.075) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

/* Styling for search results */
body.search-results .entry-title a {
    color: #9040a0;
    font-size: 0.7em;
}
body.search-results .entry-header,
body.search-results .entry-featured {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
body.search-results .entry-title {
    max-width: 600px;
    min-height: 50px;
    margin-left: auto;
    margin-right: auto;
}
body.search-results .entry-content {
    max-width: 600px;
    min-height: 100px;
    margin-left: auto;
    margin-right: auto;
}
body.search-no-results .form-search {
    max-width: 500px;
    margin: 0 auto;
}
.result-type {
    opacity: 0.1;
    text-align: center;
    border: 1px solid #2b303b;
}
.result-tags {
    opacity: 0.5;
    text-align: center;
    border: 1px solid #2b303b;
    margin-top: 10px;
}
.search-string {
    text-align: center;
}
.search-string span {
    color: #9040a0;
}
.searchwp-highlight {
    background-color: #E4B0EF;
}
body.search-results .product-cat-slides .entry-title,
body.search-results .product-cat-posters .entry-title{
    height: 0.5em;
}
body.search-results .product-cat-slides .entry-header h2 a,
body.search-results .product-cat-posters .entry-header h2 a,
body.search-results .product-cat-slides .entry-header h2 a .searchwp-highlight,
body.search-results .product-cat-posters .entry-header h2 a .searchwp-highlight {
    overflow: hidden;
    height: 0px;
    color: #fff;
    background-color: #fff;
}
body.search-results .product-cat-slides .entry-header h2 a:before {
    content: "SLIDE";
    display: block;
    opacity: 1;
    color: #9040a0;
}

body.search-results .product-cat-posters .entry-header h2 a:before {
    content: "POSTER";
    display: block;
    opacity: 1;
    color: #9040a0;
}
body.search-results .product-cat-slides .entry-content,
body.search-results .product-cat-posters .entry-content{
    display: none;
}
.facetwp-type-checkboxes,
.facetwp-type-hierarchy {
    max-height: initial !important;
}
.facetwp-facet-resource_category {
    margin-bottom: 0 !important;
}

/* Fix height of Yoast breadcrumb container */
#breadcrumbs {
    margin: 0 !important;
    width: 85%;
    float: left;
}

/* Integrat X search with Ubermenu */
.x-menu-item-search {
    display: none;
}
.x-btn-navbar-search {
    font-size: 34px;
    line-height: 1.4em;
    padding-left: 10px;
}

/* Too manu menu items in Quick Links bar...kill the icons and resize the text when they start wrapping */
@media (max-width: 1250px) {
    .ubermenu-loc-primary .ubermenu-target {
        font-size: 11px !important;
    }
}
@media (max-width: 1100px) {
    .x-navbar .ubermenu-icon {
        display: none !important;
    }
}

/* Add 'Home' to beginning of breadcrumb trail */
.x-breadcrumbs .home .x-icon-home:after {
    content: " Home";
    font-family: "futura-pt",sans-serif;
    font-style: normal;
    font-weight: 400;}

/* Standardize height of staff info boxes */
#staff .x-promo-content {
    min-height: 260px;
}
#staff .staff-info {
    min-height: 80px;
}

/* Status labels for Events page */
.label {
    background-color:#5cb85c;
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}
.label a {
    color: #fff;
}
.Open {
    background-color:#5cb85c;
}
.Full {
    background-color:#d9534f;
}
.TBA {
    background-color:#777;
}

/* WooCommerce style customizations */

/* Replace slide and poster names with generic text */
body.woocommerce .product-cat-slides h1,
body.woocommerce .product-cat-posters h1 {
    overflow: hidden;
    height: 1em;
    color: #fff;
}
body.woocommerce .product-cat-slides h3 a,
body.woocommerce .product-cat-posters h3 a {
    overflow: hidden;
    height: 1em;
    display: none;
}
body.woocommerce .product-cat-posters h1:before,
body.woocommerce .product-cat-posters h3:before {
    content: "POSTER";
    display: inline;
    color: #2b303b;
    opacity: 1;
}
body.woocommerce .product-cat-slides h1:before,
body.woocommerce .product-cat-slides h3:before {
    content: "SLIDE";
    display: inline;
    color: #2b303b;
    opacity: 1;
}
body.woocommerce .product_list_widget .wp-post-image {
    float: right;
}
.single-product .breadcrumb_last {
    color: #fff;
}
.single-product .breadcrumb_last:before {
    content: "VIEW ITEM";
    color: #566471;
}
.product-name a,
.product-name a:hover {
    overflow: hidden;
    height: 1em;
    color: #fff;
}
.product-name a:before {
    content: "VIEW ITEM";
    color: #9040a0;
}
.remove {
    font-size: 4em !important;
    bottom: 50% !important;
}
#billing_country_field label {
    margin-right: 10px;
}
.count {
    background-color: initial;
}
#wizard .payment_methods li input {
    margin-left: 6px !important;
}
.woocommerce-result-count,
.woocommerce-ordering {
    display: none;
}

/* Sidebar styles */
.x-sidebar .widget {
    margin-top: 30px;
}
.x-sidebar .h-widget {
    font-size: 150%;
}

/* Special search filtering area for mobile devices */
#mobile-filters-accordion {
    background-color: #fbfbfb !important;
}
.mobile-filters {
    margin-left: 20px;
    padding-bottom: 20px;
}
.mobile-facet {
    display: inline-block;
    vertical-align: top;
    padding: 0 20px 0 20px;
}
.mobile-facet .facetwp-facet {
    margin-bottom: 0;
}

/* Mobile responsive tweaks */
@media (max-width: 767px) {
    .x-block-grid>li {
        width: auto !important;
        float: none !important;
        padding: 0;
        margin-bottom: 15px;
    }
    #events-list td {
        display: block;
        border-right: 5px solid rgba(0, 0, 0, 0.8);
        border-left: 5px solid rgba(0, 0, 0, 0.8);
    }
    #events-list .last {
        border-bottom: 5px solid rgba(0, 0, 0, 0.8);
    }
    footer .x-container {
        width: 100% !important;
    }
    footer .form-search .search-query {
        border-radius: 0;
    }
}
@media (min-width: 767px) and (max-width: 1400px) {
    #staff .x-block-grid .staff-position {
        font-size: 75%;
    }
}

/* Complete rebuild of Icon Stack sidebar implementation on blog posts to get the header full-width */
@media (min-width: 1400px) {
    .x-icon .x-sidebar {
        margin-top: 52px;
        border-top: 1px solid rgba(0,0,0,0.075);
        z-index: 1;
    }
    body.x-content-sidebar-active {
        padding-right: 0px !important;
    }
    body.single-post .x-main,
    body.single-post .x-colophon,
    body.single-post .x-breadcrumb-wrap,
    body.blog .x-main,
    body.blog .x-colophon,
    body.blog .x-breadcrumb-wrap {
        margin-right: 600px !important;
    }
    body.single-post .x-navbar,
    body.blog .x-navbar {
        right: 0px !important;
    }
    .x-iso-container-posts.cols-3 .entry-title {
        font-size: 130%;
    }
    .mobile-filters,
    #mobile-filters-accordion {
        display: none;
    }
}
@media (min-width: 1200px) and (max-width: 1400px) {
    .x-icon .x-sidebar {
        margin-top: 52px;
        border-top: 1px solid rgba(0,0,0,0.075);
        z-index: 1;
    }
    body.x-content-sidebar-active {
        padding-right: 0px !important;
    }
    body.single-post .x-main,
    body.single-post .x-colophon,
    body.single-post .x-breadcrumb-wrap,
    body.blog .x-main,
    body.blog .x-colophon,
    body.blog .x-breadcrumb-wrap {
        margin-right: 400px !important;
    }
    body.single-post .x-navbar,
    body.blog .x-navbar {
        right: 0px !important;
    }
    body.single-post .x-sidebar,
    body.blog .x-sidebar {
        width: 400px !important;
    }
    .x-iso-container-posts.cols-3 .entry-title {
        font-size: 130%;
    }
    .mobile-filters,
    #mobile-filters-accordion {
        display: none;
    }
}
@media (min-width: 1200px) {
    body.woocommerce .x-navbar,
    body.search .x-navbar{
        right: 0px !important;
    }
    body.woocommerce .x-main,
    body.woocommerce .x-colophon,
    body.woocommerce .x-breadcrumb-wrap,
    body.search .x-main,
    body.search .x-colophon,
    body.search .x-breadcrumb-wrap{
        margin-right: 400px !important;
    }
    body.woocommerce .x-sidebar,
    body.search .x-sidebar{
        width: 400px !important;
    }
}