/*************************************************************************
 * Important Dimensions
 *************************************************************************/
.featured-event,
.featured-image,
.featured-image img {
  width: 100%;
}
@media (min-width: 37.5em) {
  .featured-event,
  .featured-image,
  .featured-image img {
    width: 281px;
  }
}

.featured-image,
.featured-image img {
  height: 162px;
}

.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 100%;
  max-width: 100%;
  line-height: 0;
  padding: 0;
  margin: 0;
}

.featured-description {
  padding-left: 2.47219%;
  padding-right: 2.47219%;
  width: 95.05562%;
  float: left;
  margin-right: 2.05192%;
  display: inline;
}
@media (min-width: 37.5em) {
  .featured-description {
    width: 269px;
    /* above width - 10px padding (x2) */
    height: 112px;
    /* above height - 25px padding (x2) */
  }
}

/**************************************************************************
 * Basic Styles
 *************************************************************************/
.content {
  position: relative;
}

#event-nav {
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  max-width: 100%;
}
@media (min-width: 61.5em) {
  #event-nav {
    max-width: 81.73em;
    padding-left: 0.83em;
    padding-right: 0.83em;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
  #event-nav:after {
    content: "";
    display: table;
    clear: both;
  }
}

#event-nav ul {
  margin: 0;
  padding: 0;
}
@media (min-width: 37.5em) {
  #event-nav ul {
    float: right;
  }
}

#event-nav li {
  list-style: none;
  float: left;
  margin: 0;
  height: 2.5em;
  line-height: 2.5em;
  width: 100%;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}
@media (min-width: 37.5em) {
  #event-nav li {
    width: auto;
    text-align: left;
    padding: 0 20px;
    border-bottom: none;
    height: 68px;
    line-height: 68px;
  }
}

#event-nav li.active {
  background: url("/_img/view-arrow.png") no-repeat center 2em;
}
@media (min-width: 37.5em) {
  #event-nav li.active {
    background-position: center bottom;
  }
}

#event-nav li.featured.active {
  background: url("/_img/view-arrow-featured.png") no-repeat center 2em;
}
@media (min-width: 37.5em) {
  #event-nav li.featured.active {
    background-position: center bottom;
  }
}

#event-nav li a {
  text-decoration: none;
}

#event-control-bar {
  padding: 10px;
  height: 30px;
}

.event-left {
  float: left;
}

.event-right {
  float: right;
  *width: 400px;
  /* ie7 needs a specific width */
}

/** Controls - Controls are separate for cal/list views because they have very different markup **/
/* list controls */
.list-controls {
  float: left;
  position: relative;
  top: -40px;
  width: 221px;
  line-height: 30px;
  text-align: center;
  display: none;
}

.list-month-title {
  margin: 0 25px 0 0;
  line-height: 30px;
  /* event-control-bar height */
  font-weight: bold;
}

.list-event-prev {
  float: left;
  width: 17px;
  height: 17px;
  background: url("/_img/month-arrows.png") no-repeat left top;
  position: absolute;
  right: 16px;
  top: 8px;
}

.list-event-next {
  float: left;
  width: 17px;
  height: 17px;
  background: url("/_img/month-arrows.png") no-repeat right top;
  position: absolute;
  right: 0px;
  top: 8px;
}

.list-event-prev.hasPrev {
  background-position: left -26px;
  cursor: pointer;
}

.list-event-next.hasNext {
  background-position: right -26px;
  cursor: pointer;
}

/* calendar controls */
.calendar-month {
  display: block;
  float: left;
  margin: 0 0 0 0;
  line-height: 30px;
  /* event-control-bar height */
  position: relative;
  top: -41px;
  left: 10px;
  font-weight: bold;
  padding-right: 50px;
  text-align: center;
  *text-align: right;
  /*ie7 hack to make the layout at least look decent */
  background: url("/_img/month-arrows.png") no-repeat right 8px;
}
@media (min-width: 61.5em) {
  .calendar-month {
    width: 221px;
  }
}

.calendar-prev {
  float: right;
  width: 17px;
  height: 17px;
  background: url("/_img/month-arrows.png") no-repeat left -26px;
  cursor: pointer;
  text-indent: -999em;
  display: block;
  position: absolute;
  right: 16px;
  top: 8px;
  text-align: left;
}

.calendar-next {
  float: right;
  width: 17px;
  height: 17px;
  background: url("/_img/month-arrows.png") no-repeat right -26px;
  cursor: pointer;
  text-indent: -999em;
  display: block;
  position: absolute;
  right: 0;
  top: 8px;
  text-align: left;
}

/* ---------- List ---------- */
.date,
.day,
.month {
  display: block;
}

.date {
  width: 48px;
  float: left;
  margin-right: 10px;
  font-weight: 200;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0.18em;
  border-top-width: 2px;
  border-top-style: solid;
}

.day {
  line-height: 1.3em;
  font-size: 1.7em;
  padding-top: 8px;
}

.month {
  padding: 0 0 0 0;
  font-size: 1em;
  line-height: 1em;
}

.list-day-detail {
  padding-left: 68px;
}

.list-weekday {
  line-height: 1.1;
  font-size: 24px;
  font-weight: bold;
  color: #999999;
  border-bottom: 1px solid;
  border-color: #999999;
  padding: 10px 0 10px 0;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.nrf-message {
  text-align: center;
}

.day-stage {
  margin-top: 20px;
}

article.event {
  margin-bottom: 30px;
}

/* -------- Calendar ------- */
.calendar {
  width: 100%;
  table-layout: fixed;
}

.calendar th {
  text-align: center;
  padding: 10px;
  line-height: 1.1;
}

.calendar td {
  padding: 3px;
  height: 75px;
  /* will grow ... not sure how but it does */
  border: 1px solid;
  vertical-align: top;
}

.calendar td > a {
  /* this is the clickable number */
  text-decoration: none;
  line-height: 1.1;
  display: block;
  padding: 3px;
  float: left;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin-bottom: 5px;
}

.calendar td ul {
  margin: 0 0 0 15px;
  padding: 0;
  clear: both;
}

.calendar td ul li {
  margin: 0 0 15px 0;
  line-height: 1.1;
}

/* Featured Events */
#featured-events {
  margin: 45px 0;
}

.featured-event {
  float: left;
  margin: 0 20px 20px 0;
}

.featured-event.end {
  margin-right: 0;
}

.featured-image {
  position: relative;
  overflow: hidden;
  display: block;
  margin-bottom: 15px;
  text-decoration: none;
  *z-index: 0;
}

.featured-image img {
  z-index: 2;
  position: relative;
}

.featured-image:hover img {
  z-index: 0;
}

.featured-description {
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  padding: 25px 10px;
}

.featured-description p {
  margin: 0;
  line-height: 1.8;
}

.featured-event h2 {
  margin: 5px 0;
  font-weight: bold;
}

.event-row {
  margin-bottom: 10px;
  width: 100%;
}

/**************************************************************************
 * Filtering
 *************************************************************************/
.ui-selectmenu {
  display: block;
  float: left;
  position: relative;
  height: 28px;
  width: 150px;
  text-decoration: none;
  overflow: hidden;
  background: #dedede url(/_img/article_selectmenu_icon.png) no-repeat 95% 50%;
  margin-right: 5px;
  -webkit-transition: background-color 0.15s ease-in-out;
  -moz-transition: background-color 0.15s ease-in-out;
  -o-transition: background-color 0.15s ease-in-out;
  transition: background-color 0.15s ease-in-out;
}
.ui-selectmenu:hover {
  background-color: #FFF;
}

#content a.ui-selectmenu:hover {
  text-decoration: none;
}

.ui-selectmenu-icon {
  position: absolute;
  right: 6px;
  margin-top: -8px;
  top: 50%;
}

.ui-selectmenu-menu {
  padding: 0 !important;
  margin: 0;
  list-style: none;
  position: absolute;
  z-index: 1001;
  top: 0;
  visibility: hidden;
  overflow: auto;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  background: #f6f6f6;
  height: 200px;
  width: 200px !important;
}

.ui-selectmenu-open {
  visibility: visible;
}

.ui-selectmenu-menu-popup {
  margin-top: -1px;
}

.ui-selectmenu-menu-dropdown {
  width: 100% !important;
  margin: 0;
}

.ui-selectmenu-menu li {
  padding: 0;
  margin: 0;
  display: block;
  border-top: 1px dotted transparent;
  border-bottom: 1px dotted transparent;
  border-right-width: 0 !important;
  border-left-width: 0 !important;
  font-weight: normal !important;
}

.ui-selectmenu-menu li a, .ui-selectmenu-status {
  line-height: 1.4em;
  display: block;
  padding: .3em 1.5em .3em 1em;
  outline: none;
  text-decoration: none;
  color: #363636;
  font-size: 11px;
}

.ui-selectmenu-menu li.ui-selectmenu-hasIcon a, .ui-selectmenu-hasIcon .ui-selectmenu-status {
  padding-left: 20px;
  position: relative;
  margin-left: 5px;
}

.ui-selectmenu-menu li .ui-icon, .ui-selectmenu-status .ui-icon {
  position: absolute;
  top: 1em;
  margin-top: -8px;
  left: 0;
}

.ui-selectmenu-status {
  line-height: 28px;
  height: 28px;
  font-size: 17px;
  overflow: hidden;
  color: #737373;
  padding: 1px 26px 1px 10px;
  text-transform: uppercase;
}

.ui-selectmenu-open li.ui-selectmenu-item-focus a {
  background: #ebebeb;
}

.ui-selectmenu-menu li span, .ui-selectmenu-status span {
  display: block;
  margin-bottom: .2em;
}

.ui-selectmenu-menu li .ui-selectmenu-item-header {
  font-weight: bold;
}

.ui-selectmenu-menu li .ui-selectmenu-item-footer {
  opacity: .8;
}

/*for optgroups*/
.ui-selectmenu-menu .ui-selectmenu-group {
  font-size: 1em;
}

.ui-selectmenu-menu .ui-selectmenu-group .ui-selectmenu-group-label {
  line-height: 1.4em;
  display: block;
  padding: .6em .5em 0;
  font-weight: bold;
}

.ui-selectmenu-menu .ui-selectmenu-group ul {
  margin: 0;
  padding: 0;
}

/**************************************************************************
 * Seach field
 *************************************************************************/
#category-selector,
#event_categories div {
  float: left;
}

#event-search {
  display: none;
}
@media (min-width: 37.5em) {
  #event-search {
    display: block;
    float: right;
    position: relative;
  }
}

#event-search-term {
  height: 29px;
  line-height: 29px;
  padding: 0 25px 0 10px;
  border: 0;
}

#search_submit {
  width: 17px;
  padding: 0 !important;
  height: 21px;
  background: url("/_img/search_go.png") no-repeat left top;
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
  border: none !important;
  text-transform: capitalize;
  /* yes this is necessary: http://stackoverflow.com/questions/2888298/text-indent-is-not-working-in-ie7 */
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

/**************************************************************************
 * Font & Sizing
 *************************************************************************/
#event-nav li {
  font-size: 20px;
}

.calendar th {
  font-size: 17px;
}

.calendar td {
  /* this is the number */
  font-size: 13px;
}

.calendar td ul li {
  font-size: 12px;
}

.list-month-title,
.calendar-month {
  font-size: 1.3em;
}
@media (min-width: 61.5em) {
  .list-month-title,
  .calendar-month {
    font-size: 22px;
  }
}

.list-time-day {
  font-size: 24px;
}

.featured-description p {
  font-size: 12px;
}

.featured-start {
  font-size: 14px;
}

.featured-event .meta {
  font-size: 12px;
  margin-top: 10px;
}

/**************************************************************************
* Colors
***************************************************************************/
#event-control-bar {
  background-color: #f1f1f1;
}

.calendar-month,
.list-month-title {
  color: #999999;
}

.calendar td {
  border-color: #dfdfdf;
}

.calendar td > a {
  /* this is the number */
  color: #333333;
}

.calendar td > a:hover {
  color: #ffffff;
}

.list-time-day {
  background-color: #dfdfdf;
}

.list-time-month {
  color: #ffffff;
}

.list-time {
  border-color: #aaaaaa;
}

.featured-description:hover {
  background-color: #444444;
  /* for older browsers */
  background-color: rgba(80, 80, 80, 0.9);
}

.featured-description:hover p {
  color: #ffffff;
}

.meta {
  color: #555555;
  /*text color*/
}

/**************************************************************************
 * Common Overrides
 *************************************************************************/
.calendar td ul li {
  list-style: none;
}

.calendar td ul li a {
  text-decoration: none;
}

.event h3 {
  margin-bottom: 5px;
}

/**************************************************************************
 * HTML 5 considerations
 *************************************************************************/
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
  display: block;
}

audio, canvas, video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

/**************************************************************************
 * Helper Functions - From HTML 5 Boilerplate
 *************************************************************************/
/* For image replacement */
.ir {
  display: block;
  border: 0;
  text-indent: -999em;
  overflow: hidden;
  background-color: transparent;
  background-repeat: no-repeat;
  text-align: left;
  direction: ltr;
}

.ir br {
  display: none;
}

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden {
  display: none !important;
  visibility: hidden;
}

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/* Hide visually and from screenreaders, but maintain layout */
.invisible {
  visibility: hidden;
}

/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

.push {
  clear: both;
}

.floatleft {
  float: left;
}

/**************************************************************************
 * Overrides because the base layouts site has no core styling to inherit
   You can probably delete this in your site
 *************************************************************************/
a {
  text-decoration: none;
}

.featured-event h2 {
  font-size: 22px;
}

.featured-event h2 a {
  text-decoration: none;
}

.list-day h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.list-controls {
  width: 170px;
}
@media (min-width: 61.5em) {
  .list-controls {
    width: 221px;
  }
}

#events #event-nav li:last-child {
  display: none;
}
@media (min-width: 37.5em) {
  #events #event-nav li:last-child {
    display: block;
  }
}
#events #event_categories {
  margin-right: 20px;
  display: none;
}
@media (min-width: 37.5em) {
  #events #event_categories {
    display: block;
  }
}
#events .calendar th,
#events .list-time-month {
  /*! $bgNav */
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(255, 255, 255, 0.1)), color-stop(100%, rgba(0, 0, 0, 0.1)));
  background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
  background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
  background-image: -o-linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
  background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
}
#events td ul li a {
  padding-bottom: 1px;
}
#events td ul li a:hover {
  text-decoration: none;
  border-bottom-style: solid;
  border-bottom-width: 1px;
}
#events .list-controls {
  float: none;
  margin: 0 auto;
}
@media (min-width: 37.5em) {
  #events .list-controls {
    float: left;
    margin: auto;
  }
}

#event-control-bar .floatleft {
  font-size: 1.5em;
}

.list-month-search > h4 {
  font-size: 2em;
  margin-bottom: 20px;
}

#event-control-bar .event-right.clearfix {
  clear: none;
}
