/**
 * Theme Name:   Curtin Site 2015
 * Theme URI:    http: //www.curtin.edu.au/
 * Author:       Curtin University
 * Author URI:   http: //www.curtin.edu.au
 * Description:  WordPress Theme for Curtin Sites
 * Version:      1.1
 */

/* Add 'is-active' style if the site navigation has 'is-expanded' class */
.site-navi .site-navi__layout li.is-current a,
.site-navi .site-navi__layout li.is-current-ancestor a {
  border-bottom: 4px solid #f2b500;
}

/* Overwrite sub navigation styles */
.sub-navi__layout > li > ul > li.has-subnav.is-active > ul {
  background: #fff;
  display: block;
}

/* Post date */
.article-pubdate {
  font-weight: bold;
  font-size: 14px;
  font-size: 0.875rem
}

article.list__item:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

/* Browse Happy styles */
.browsehappy {
  background: #95000c;
  color: #fff;
  padding: 10px;
  margin: 0;
  width: 100%;
}

.browsehappy a {
  color: #fff;
}

/* Stackable Table */
@media only screen and (max-width: 1023px) {
  .stackable {
    width: 100%;
  }

  .stackable thead {
    display: none;
  }

  .stackable tbody,
  .stackable tr,
  .stackable tr > th,
  .stackable tr > td {
    width: auto;
    display: block;
  }

  .stackable table thead th {
    border-bottom: none;
  }

  .stackable tr > th,
  .stackable tr > td {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }

  .stackable tr > td:first-child {
    font-weight: bold;
  }

  .stackable tr > td:last-child,
  .stackable tr > th:last-child {
    padding-bottom: 15px !important;
  }

  .stackable tr > td:first-child,
  .stackable tr > th:first-child {
    padding-top: 15px !important;
  }
}


/* Expandable Table */
.js-table-expandable .button {
  display: none;
  padding: 5px 8px;
}

@media only screen and (min-width: 1024px) {

  .js-table-expandable {
    position: relative;
    margin-right: 0;
    transition: all .2s ease-in;
  }

  .js-table-expandable.is-expand {
    margin-right: -52% !important;
    z-index: 10 !important;
    transition: all .2s ease-in;
  }

  .js-table-expandable .button {
    display: block;
    float: right;
    margin-bottom: -3px;
  }

  .js-table-expandable .button i {
    font-size: 10px;
    margin-top: -2px;
  }

  .js-table-expandable.is-expand table {
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
  }

  .secondary-content {
    opacity: 1;
    transition: all .1s ease-in;
  }

  .secondary-content.is-overlay {
    opacity: 0.3;
    transition: all .2s ease-in;
  }
}


/* Contact Form 7 */
span.wpcf7-not-valid-tip {
  color: #95000c;
  font-size: 16px;
  display: block;
}

/* Error message */
.wpcf7-validation-errors {
  border: 1px solid #95000c !important;
  background-color: #faf6e8 !important;
  color: #95000c;
  margin: 16px 0 !important;
  padding: 16px !important;
}

.wpcf7-validation-errors::before {
  content: "\f118";
  margin-right: 10px;
  float: left;
  font-size: 23px;
  color: #95000c;
  font-family: "icon-curtin";
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  speak: none;
  text-decoration: inherit;
  text-transform: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Successful message */
.wpcf7-mail-sent-ok {
  border: 1px solid #178800 !important;
  background-color: #faf6e8 !important;
  color: #262626;
  margin: 16px 0 !important;
  padding: 16px !important;
}

.wpcf7-mail-sent-ok::before {
  content: "\f10a";
  margin-right: 10px;
  float: left;
  font-size: 23px;
  color: #178800;
  font-family: "icon-curtin";
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  speak: none;
  text-decoration: inherit;
  text-transform: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Stackable Table */
@media only screen and (min-width: 1024px) {
  .staff-list td {
    width: 50%;
  }
}

p+.contextual_nav {
	margin-top:3.2826em
}
.contextual_nav {
	margin-left:94px;
	position:relative;
	min-height:84px;
	font-size:85.7%;
	margin-bottom:1.2em
}
.span-3-33 .contextual_nav {
	margin-left:80px;
	width:220px
}
.contextual_nav h2, .contextual_nav h3 {
	font-size:1.333em;
	line-height:1.25em;
	margin-bottom:.312em;
	margin-top:.312em;
	font-weight:normal
}
.contextual_nav a {
	text-decoration:none
}
.contextual_nav a img, .contextual_nav img {
	position:absolute;
	left:-94px;
	padding:9px;
	background:#FFF;
	border:1px solid #CCC;
	top:-3px;
	margin:0
}
.contextual_nav p {
	margin-top:0
}
