/*
Theme Name: Saved Child
Description: A child theme for Saved.
Author: Your Name
Version: 1.0
Template: saved
*/

/*
This stylesheet is loaded instead of the parent theme's stylesheet, which is enqueued in functions.php.
To override styles, copy them here from the original stylesheet, then change the properties.

See http://churchthemes.com/guides/developer/child-theming/ and the WordPress Codex:
http://codex.wordpress.org/Child_Themes
*/

/* Increase height of header bar and increase menu font size */
#saved-header-top-inner {
  display: table;
  width: 100%;
  min-height: 2em;
  /* Default: 3.8125em = 61px desktop / 54px tablet / 50px phone */
  height: 64px;  /* Don't change vertical spacing in header depending on screen size */
  font-size: 1.15rem;
}

/* Increase height of logo */
#saved-logo-image img {
  max-height: 50px;
  height: auto;
  width: auto;
}

/* Add a little more horizontal space between logo and header menu */
#saved-header-menu {
  padding-top: 0.625em;
  padding-left: 2em;
}

/* Push down the banner image so it isn't behind the header bar */
/* DISABLED for now - try changing thumbnail settings, take 64px off height and regenerate thumbnails */
/*#saved-banner {
  margin-top: 64px;
}*/

/* Fix size of pastor's title heading (0.95em by default) */
#saved-person-position {
  font-size: 2em;
}

/* Increase vertical spacing between menu dropdown items on desktop menu */
.sf-menu li {
    position: relative;
    margin: 4px;
}

/* Increase font size and line height for mobile menu */
.mean-container .mean-nav {
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Add padding above page header to make up for thicker header bar on mobile */
.saved-no-header-image #saved-banner-inner, .saved-no-header-image.saved-has-header-bottom #saved-banner-inner {
  padding-top: 10%;
}

/* Hide the "more info" button on the Locations widget, which doesn't add any value */
li.saved-map-button-more-item {
  display: none;
}

/* Add a border on the left of the widgets row elements */
.saved-widgets-row-content aside {
  padding-left: 1.5em;
  border-left: solid 4px;
}

/* Stack events and sermons closer together vertically */
.saved-widget .saved-entry-compact {
  margin-top: 0.8em;
}

/* Add colour to events widget */
.saved-widget.widget_ctfw-events {
  border-color: #ee7355;
}

/* Add colour to sermons widget */
.saved-widget.widget_ctfw-sermons {
  border-color: #2aac87;
}

/* Add colour to text widget */
.saved-widget.widget_text {
  border-color: #f9e672;
}

/* Remove author from news entries on home page, on news list page, on news detail page */
li.saved-entry-compact-author, li.saved-entry-short-author, li.saved-entry-full-author {
  display: none;
}

/* Remove category link at top of page ("featured" / "uncategorized") from news detail page */
li.saved-entry-full-category {
  display: none;
}

/* Enlarge sermon listen icon (headphones image) */
.saved-entry-short-icons .saved-icon-audio-listen, .saved-entry-compact-icons .saved-icon-audio-listen {
  font-size: 1.4em;
}

/* Remove sermon filters */
ul#saved-header-archives {
  display: none;
}

/* Remove sermon topic links from individual sermon page; we don't have good topics metadata */
li.saved-sermon-topic {
  display: none;
}

/* Increase size of sermon filters (note: currently hidden anyway) */
.ctfw-breadcrumbs,
#saved-header-archives,
.saved-header-archive-dropdown {
  font-size: 0.9em;
}

/* Hide post thumbnails in article excerpts - it only shows if there is a page banner set, which isn't the case if we use default banner */
article.saved-entry-short div.saved-entry-short-image img.wp-post-image {
  display: none;
}

/* Fix anchor targets scrolling to the wrong place, putting header underneath fixed header bar */
:target:before {
  content: "";
  display: block;
  height: 80px; /* fixed header height*/
  margin: -80px 0 0; /* negative fixed header height */
}
