/*
 Theme Name:   UW 2014 Child
 Theme URI:    http://example.com/none/
 Description:  UW 2014 Child Theme
 Author:       Rachel Seymour
 Author URI:   http://example.com
 Template:     uw-2014
 Version:      0.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         none
 Text Domain:  uw-2014-child
*/

/*
 Based on uw-2014 theme version 2.2.6: https://github.com/uweb/uw-2014 
 Specifically this commit: https://github.com/uweb/uw-2014/commit/e36398c9efeb256b1fbb8b9334d14bf1a386dee5

 One thing to note is I had to make a fix in `getBaseUrl()` (uw.init.js) of parent theme so that `site` was
 included in the URL even if it isn't hosted on 'www.washington.edu' or 'depts.washington.edu'. This shouldn't
 be an issue when hosted on one of those two subdomains.
*/

/* Prevent headers from being all caps */
#uw-container .hero-height2 h1, #uw-container #hero-container .uw-site-title {
  text-transform: none;
}

/* Special spacing for mobile clients of blog page so they can see menu */
.uw-site-title-blank.hprc-blog-page {
  height: 10px;
}

@media (max-width: 767px) {
  .uw-site-title-blank.hprc-blog-page {
    height: auto;
  }
}

/* import font for header */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@600&display=swap');
.uw-thinstrip {
  height: 60px;
}

/* fix for desktop menu being position too high */
nav ul.uw-sidebar-menu {
  margin-top: -50px;
}

/************** Fix to wrap title before it hits menu on mobile *****************/
@media (max-width: 767px) {
  .uw-hero-image.hero-blank .uw-site-title-blank {
    padding-right: 68px;
  }
}


/***************** Styling for tile group on homepage ***************************/
.tile-group h2 a {
  color: #4b2e83;
}

.tile-group h2 a:hover {
  color: #85754d;
}

/*********************** CSS for header *****************************************/
.uw-thinstrip .hprc-wordmark {
  display: block;
  position: absolute;
  top: 7px;
  left: 80px;
  width: 65%;
  height: 24px;
  color: #ffffff;
  font-family: "Encode Sans", "Open Sans", "Arial", sans-serif, "Arial", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
}

.uw-thinstrip .hprc-wordmark span {
  display: none;
  font-size: 12px;
}

.uw-thinstrip .hprc-wordmark:hover {
  color: #b7a57a;
}

.uw-thinstrip .uw-patch {
  top: 5px;
}

.uw-thinstrip button.uw-search {
  top: 7px;
  right: 0;
  margin-right: 0;
}

@media (max-width: 768px) {
  .uw-thinstrip .uw-patch {
    height: 60px;
    background-size: 510px;
  }

  .uw-hero-image.hero-blank .uw-site-title-blank {
    font-size: 25px;
  }
}

@media (min-width: 768px) {
  .uw-thinstrip {
    height: 140px;
  }
  .uw-thinstrip .hprc-wordmark {
    font-size: 25px;
    line-height: 26px;
    top: -5px;
    left: 150px;
    width: 75%;
    z-index: 20;
  }
  .uw-thinstrip .hprc-wordmark span {
    display: block;
    font-size: 18px;
  }
  .uw-thinstrip .uw-patch {
    top: -22px;
  }
  .uw-thinstrip button.uw-search {
    right: 0;
    margin: 0 15px;
  }
  .uw-thinstrip div.align-right #search-quicklinks {
    right: -150px;
    top: 15px;
  }
  #mobile-relative {
    display: none;
  }
  .uw-thinstrip ul.uw-thin-links {
    margin-top: -20px;
  }
  .uw-thinstrip div.align-right #search-quicklinks {
    top: -4px;
  }
}

@media (min-width: 992px) {
  .uw-thinstrip {
    height: 90px;
  }
  .uw-thinstrip .hprc-wordmark {
    font-size: 29px;
    line-height: 30px;
  }
  .uw-thinstrip ul.uw-thin-links {
    margin-top: 18px;
  }
  .uw-thinstrip div.align-right #search-quicklinks {
    right: 0;
    top: 0;
  }
}

@media (min-width: 1400px) {
  .uw-thinstrip ul.uw-thin-links {
    margin-top: 0;
  }
}

/********************** CSS for tiles on homepage *********************************/

.tile-group {
  padding: 3rem 0 5rem 0;
  background-color: #e8e3d3;
}

.tile-group h2 {
  display: block;
  text-align: center;
  margin: 0 auto 3rem auto;
  color: #4b2e83;
}

.tiles {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
}

.tiles [class*='col-'] {
  margin: 0 -1px 30px -1px;
}

.tiles [class*='col-'] a {
  text-decoration: none;
}

.tiles [class*='col-'] .tile {
  height: 100%;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
  -webkit-transition: box-shadow .1s ease, -webkit-transform .1s ease;
  transition: box-shadow .1s ease, -webkit-transform .1s ease;
  transition: box-shadow .1s ease, transform .1s ease;
  transition: box-shadow .1s ease, transform .1s ease, -webkit-transform .1s ease;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(1, 1);
  transform: translateZ(0);
}

.tiles [class*='col-'] .tile .tile-text-wrap {
  padding: 30px;
}

.tiles [class*='col-'] .tile .tile-text-wrap .title {
  color: #4b2e83;
  font-family: "Encode Sans Compressed", "Open Sans", "Arial", sans-serif, "Arial", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  margin-bottom: 5px;
}

.tiles [class*='col-'] .tile .tile-text-wrap .category {
  margin-bottom: 5px;
  color: #4b2e83;
}

.tiles [class*='col-'] .tile .tile-text-wrap .body-text p, .tiles [class*='col-'] .tile .tile-text-wrap .body-text ul li {
  margin-bottom: 3rem;
  color: #000000;
  font-size: 14px;
  line-height: 1.42857;
}

.tiles [class*='col-'] .tile .tile-text-wrap .body-text p a, .tiles [class*='col-'] .tile .tile-text-wrap .body-text ul li a {
  color: #4b2e83;
}

.tiles [class*='col-'] .tile .tile-text-wrap .link {
  text-transform: uppercase;
  font-family: "Encode Sans Compressed", "Open Sans", "Arial", sans-serif, "Arial", sans-serif;
  font-weight: 600;
  color: #4b2e83;
}

.tiles [class*='col-'] .tile .tile-text-wrap .link:hover {
  color: #85754d;
  text-decoration: none;
}

.tiles [class*='col-'] .tile .tile-text-wrap .link:after {
  content: " \00BB";
}

.tiles [class*='col-'] .tile:hover {
  box-shadow: 0 1px 3px 0 #bcbdbd, 0 0 0 1px #d4d4d5;
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}

/********************************* Fix hero image title cutoff ******************************/
/* use two classes to make sure we win */
.page .uw-hero-image {
  height: auto;
}

.page .hero-height2 {
  height: auto;
}

/******************************* Allow breadcrumb items to wrap ****************************/
.uw-breadcrumbs a, .uw-breadcrumbs span {
  white-space: normal;
}

/******************************* Style 'categories' widget for blog sidebar ****************/
/* not sure if this is right to hide the screen reader text but it's duplicated text... */
.uw-blog-sidebar .screen-reader-text {
  display: none;
}

/************************** Fix slashes in hero image on narrow windows *******************/
/*  When window is between 768 and 991px, the bg image needs to be extended */
@media (min-width: 768px) and (max-width: 991px) {
  .uw-hero-image.hero-height #hero-container h1::after, .no-uw-hero-image.hero-height #hero-container h1::after {
    height: 508px;
  }
}

/***************************** Fix mobile menu close icon ********************************/
@media only screen and (max-width : 992px) {
	nav ul.uw-sidebar-menu {
		margin-top: 50px;
	}
}

/**************************** Try to undo uw.checkbox-and-radio.less ***********************/
#uw-container .checkbox input,
#uw-container .radio input,
body .checkbox input,
body .radio input
{
  display: initial;
  position: initial;
  top: initial;
  left: initial;
  width: initial;
  height: initial;
  padding: initial;
  margin: initial;
  outline: initial !important;
  opacity: initial !important;
}

#uw-container .checkbox,
#uw-container .radio
body .checkbox,
body .radio
{
  padding-left: initial;
}

.uw-search-bar-container div.labels input
{
  margin-top: 4px !important;
}