/* !Schools (Author: mail@jandousek.cz) */

/*
  sch
  ***
*/

.sch {
  overflow: hidden;
  padding: 0 4%;
  border-top: 1px solid #eee;
}
.sch__inset {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 0 60px 0;
}

/*
  format
  ---
*/

.sch b {
  display: inline-block;
  line-height: inherit;
  transform: rotate(0.025deg);
  font-weight: 700;
}
.sch ul address {
  margin: 0;
}
.sch li:last-child {
  margin-bottom: 0;
}

/*
  lock
  ***
*/

.sch_lock {
  box-sizing: border-box;
  position: relative;
  margin-top: -17px;
  padding: 10px 10px 10px 46px;
  background-color: #fff;
  border: 1px solid #AFC9CD;
  border-radius: 6px 4px 4px 6px;
  line-height: 1;
  text-align: right;
  font-size: 11px;
}
.sch_lock:before {
  content: '';
  width: 36px;
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  background: #F1C40F url('../img/sch_list-apps__li__a__before.png') center center no-repeat;
  border: 1px solid #CBA717;
  border-radius: 4px 0 0 4px;
}
.sch_lock.n1:before {
  background-image: url('../img/sch_list-apps__li__a__before_1.png');
}
.sch_lock.n2:before {
  background-image: url('../img/sch_list-apps__li__a__before_2.png');
}
.sch_lock.n3:before {
  background-image: url('../img/sch_list-apps__li__a__before_3.png');
}
.sch_lock.n4:before {
  background-image: url('../img/sch_list-apps__li__a__before_4.png');
}
.sch_lock.n5:before {
  background-image: url('../img/sch_list-apps__li__a__before_5.png');
}

/*
  sch_list-dir
  ***
*/

.sch_list-dir {
  margin: 0 -12px;
  font-size: 0;
}

/*
  - size
  ...
*/

.sch_list-dir--size-small {
  margin: 0 -3px 24px -3px;
}

/*
  ITEM
  ---
*/

.sch_list-dir li {
  width: 33.33%;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 24px 0 !important;
  padding: 0;
}
.sch_list-dir li:before {
  display: none;
}

/*
  - size
  ...
*/

.sch_list-dir--size-small li {
  margin-bottom: 6px !important;
}
  

/*
  LINK
  ---
*/

.sch_list-dir li a {
  position: relative;
  display: block;
  margin: 0 12px;
  padding: 14px 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  color: #545a5b;
}
.sch_list-dir li a b {
  overflow: hidden;
  display: block;
  line-height: inherit;
  text-decoration: underline;
  font-size: 16px;
  color: #00636d;
  white-space: nowrap;
  text-overflow: ellipsis
}

/* actions */

.sch_list-dir li a:hover, .sch_list-dir li.--active a {
  border-color: #fed349;
}
.sch_list-dir li.--active a {
  background-color: #fed349;
}

/*
  - size
  ...
*/

.sch_list-dir--size-small li a {
  margin: 0 3px;
  padding: 8px 12px;
}
.sch_list-dir--size-small li a b {
  font-weight: 400;
  font-size: 13px !important;
}

/*
  IMG
  ...
*/

.sch_list-dir li a img {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.sch_list-dir li a img + b {
  margin-left: 36px;
}

/*
  _ trigger
  ---
*/

.sch_list-dir___trigger {
  display: table;
  margin: 0 auto 32px auto;
}

/*
  filter
  ***
*/

.sch__filter {
  padding: 24px 32px;
  border: 2px dashed #00636d;
  border-radius: 16px;
}
.sch__filter__inset {
  width: 100%;
  display: table;
}

/*
  adjust link
  ---
*/

.sch__filter .link.type-button {
  width: 100%;
  display: block;
  border-radius: 5px;
}


/*
  adjust field
  ---
*/

.sch__filter .field {
  margin-bottom: 16px;
}

/*
  By ID
  ...
*/

/*

.sch__filter .field#field-school, .sch__filter .field#field-region {
  width: 47%;
}
.sch__filter .field#field-school {
  float: left;
}
.sch__filter .field#field-region {
  float: right;
}

*/

/*
  adjust field-label
  ---
*/

.sch__filter .field-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
}

/*
  item-school
  ***
*/

.sch_item-school__inset {
  width: 100%;
  position: relative;
  display: table;
  background-color: #F2F9FA;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  color: #0f2325;
}

/* actions */

.sch_item-school__inset:hover {
  background-color: #fed349;
}



/*
  adjust link
  ---
*/

.sch_item-school .link {
  margin: 0;
}

/*
  col
  ---
*/

.sch_item-school__col {
  display: table-cell;
  vertical-align: middle;
  padding: 26px 32px;
}

@media only screen and (min-width: 851px) {

  .sch_item-school__col:nth-child(1) {
    width: auto;
    text-align: left;
  }
  .sch_item-school__col:nth-child(2) {
    width: 180px;
    text-align: center;
  }
  .sch_item-school__col:nth-child(3) {
    width: 120px;
    text-align: center;
  }

}

/*
  title
  ---
*/

.sch_item-school__title {
  margin: 0;
  text-decoration: underline;
}

/*
  name
  ---
*/

.sch_item-school__name {
  margin: 6px 0 0 0;
  font-style: italic;
}

/*
  fields
  ---
*/

.sch_item-school__fields {
  margin: 6px 0 0 0;
  font-size: 13px;
}

/*
  location
  ---
*/

.sch_item-school__location {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}
.sch_item-school__location small {
  display: block;
  line-height: inherit;
  font-weight: 400;
}

/*
  -- list
  ---
*/

.sch_item-school---list {
  /* TODO */
}

/*
  adjust item-school
  ...
*/

.sch_item-school---list .sch_item-school {
  margin-bottom: 24px;
}
.sch_item-school---list .sch_item-school:last-child {
  margin-bottom: 0;
}

/*
  pager
  ***
*/

.sch__pager {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
}

/*
  LINK
  ---
*/


.sch__pager a {
  display: inline-block;
  margin-top: 3px;
  padding: 9px 13px;
  border-radius: 4px;
  color: #000;
}

/* actions */

.sch__pager a.--active {
  background-color: #b7bdc0;
  text-decoration: none;
  font-weight: 700;
}
.sch__pager a:hover {
  background-color: #fed349;
}

/*
  prev, next
  ---
*/

@media only screen and (min-width: 701px) {

  .sch__pager__prev, .sch__pager__next {
    background-color: #b7bdc0;
    text-decoration: none;
  }
  .sch__pager__prev {
    float: left;
  }
  .sch__pager__next {
    float: right;
  }

}

/*
  table-fields
  ***
*/

.sch_table-fields {
  margin: 0;
}

/*
  CELLS
  ---
*/

.sch_table-fields th, .sch_table-fields td {
  padding: 8px 12px;
  font-size: 11px;
}
.sch_table-fields th:last-child, .sch_table-fields td:last-child {
  text-align: center;
}
.sch_table-fields td:last-child {
  width: 140px;
}

/*
  list-fields
  ***
*/

.sch_list-fields {
  overflow: hidden;
  margin: 0;
}
.sch_list-fields > li {
  padding-left: 0;
}
.sch_list-fields > li:before {
  display: none;
}

/*
  nth-*
  ---
*/

@media only screen and (min-width: 751px) {

  .sch_list-fields > li:nth-child(odd), .sch_list-fields > li:nth-child(even) {
    width: 45%;
  }
  .sch_list-fields > li:nth-child(odd) {
    float: left;
  }
  .sch_list-fields > li:nth-child(even) {
    float: right;
  }

}

/*
  2nd level
  ---
*/

.sch_list-fields > li > ul {
  margin: 8px 0 0 0;
}

/*
  tabs
  ***
*/

.sch_tabs {
  /* TODO */
}

/*
  nav
  ---
*/

.sch_tabs__nav {
  margin: 0 0 -1px 0;
  text-align: center;
  font-size: 0;
}
.sch_tabs__nav a {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 16px;
  border: 1px solid #F2F9FA;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
}

/* actions */

.sch_tabs__nav a.--active {
  background-color: #F2F9FA;
  text-decoration: none;
}


/*
  content
  ---
*/

.sch_tabs__content {
  overflow: hidden;
  padding: 24px 32px 12px 32px;
  background-color: #F2F9FA;
  border-radius: 16px;
  font-size: 15px;
}

/*
  adjust link
  ...
*/

.sch_tabs__content .link.type-button {
  margin: 0 4px 18px 4px;
}

/*
  adjust list-fields
  ...
*/

.sch_tabs__content .sch_list-fields {
  margin-bottom: 16px;
}


/*
  head
  ***
*/

.sch__head {
  text-align: center;
}

/*
  title
  ...
*/

.sch__head__title {
  margin: 0;
}
.sch__head__title b {
  display: block;
  margin-top: 10px;
  line-height: inherit;
  font-size: 60%;
}

/*
  excerpt
  ...
*/

.sch__head__excerpt {
  margin: 12px 0 0 0;
  line-height: 1.8;
  font-size: 16px;
}

/*
  content
  ...
*/

.sch__head__content {
  margin: 16px 0 -6px 0;
}

/*
  adjust link
*/

.sch__head__content .link.type-button {
  margin: 0 3px 6px 3px;
}

/*
  side
  ***
*/

.sch__side {
  width: 36%;
  float: left;
}

/*
  adjust table-fields
  ---
*/

.sch__side .sch_table-fields {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 16px;
}

/*
  adjust list-apps
  ---
*/

.sch__side .sch_list-apps {
  margin-top: 24px;
}

/*
  title
  ---
*/

.sch__side__title {
  margin: 0;
  text-align: center;
}

/*
  img
  ---
*/

.sch__side__img {
  display: block;
  margin: 0 auto 32px auto;
}

/*
  foot
  ---
*/

.sch__side__foot {
  margin-top: 24px;
  text-align: center;
}

/*
  adjust link
  ...
*/

.sch__side__foot .link.type-button {
  margin: 16px 8px 0 8px;
}
.sch__side__foot .link.type-button:first-child {
  margin-top: 0;
}

/*
  note
  ...
*/

.sch__side__foot__note {
  margin: 20px 0 0 0;
  line-height: 2;
  font-size: 10px;
  opacity: 0.6;
}

/*
  content
  ***
*/

.sch__content {
  width: 59%;
  float: right;
}

/*
  adjust head
  ---
*/

.sch__content .sch__head__inset {
  max-width: 540px;
  margin: 0 auto;
}

/*
  adjust tabs
  ---
*/

.sch__content .sch_tabs {
  margin-top: 32px;
}

/*
  list
  ***
*/

.sch__list {
  /* TODO */
}

/*
  adjust head
  ---
*/

.sch__list .sch__head {
  margin-bottom: 48px;
}
.sch__list .sch__head__inset {
  width: 60%;
  float: left;
  padding-bottom: 174px;
  background: url('../img/sch__head.png') center bottom no-repeat;
}

/*
  title, excerpt
  ...
*/

.sch__list .sch__head__excerpt {
  font-size: 15px;
}

/*
  adjust filter
  ...
*/

.sch__list .sch__head .sch__filter {
  width: 29%;
  float: right;
}

/*
  detail
  ***
*/

.sch__detail {
  position: relative;
}

/*
  adjust sch
  ---
*/

.sch__detail .sch__inset {
  max-width: 1140px;
}

/*
  back
  ---
*/

.sch__detail__back {
  position: absolute;
  left: 24px;
  top: 24px;
  margin: 0;
  background-color: #fff !important;
}

/* !Responzive (Author: mail@jandousek.cz) */

@media only screen and (max-width: 950px) {

  .sch__inset {
    padding: 40px 0;
  }
  .sch__content, .sch__side {
    width: auto;
    float: none;
  }
  .sch__side {
    margin-top: 24px;
  }
  .sch__side__img {
    display: none;
  }
  .sch__detail__back {
    position: static;
    display: table;
    margin: 0 auto 16px auto !important;
  }
  .sch__content .sch__head__inset {
    max-width: none;
  }
  .sch__side__foot {
    text-align: left;
  }
  .sch__list .sch__head__inset, .sch__list .sch__head .sch__filter {
    width: auto;
    float: none;
  }
  .sch__list .sch__head__inset {
    padding-bottom: 0;
    background: transparent;
  }
  .sch__list .sch__head .sch__filter {
    margin-top: 24px;
  }
  .sch__head__title br {
    display: none;
  }
  .sch__list .sch__head {
    margin-bottom: 26px;
  }

}

@media only screen and (max-width: 850px) {

  .sch_item-school__inset, .sch_item-school__col {
    width: auto !important;
    display: block;
  }
  .sch_item-school__inset {
    display: block;
    padding: 24px 28px;
    text-align: center;
  }
  .sch_item-school__col {
    padding: 0;
  }
  .sch_item-school__location {
    padding: 12px 0;
  }

}

@media only screen and (max-width: 800px) {

  .sch_list-dir li {
    width: 50%;
  }

}

@media only screen and (max-width: 750px) {

  .sch__head__excerpt {
    margin-top: 6px;
  }
  .sch__content .sch_tabs {
    margin-top: 24px;
  }
  .sch__filter {
    padding: 18px 22px;
  }

}

@media only screen and (max-width: 700px) {

  .sch__pager {
    margin-top: 16px;
  }

}

@media only screen and (max-width: 550px) {

  .sch_list-dir {
    margin: 0 -6px -12px -6px;
  }
  .sch_list-dir li {
    width: 100%;
    margin-bottom: 12px !important;
  }
  .sch_list-dir li a {
    margin: 0 6px;
    padding: 10px 14px;
  }
  .sch_list-dir li a b {
    font-size: 14px;
  }


}


@media only screen and (max-width: 500px) {

  .webHead--wrapper {
    height: 73px !important;
  }
  .sch__inset {
    padding: 32px 0;
  }
  .sch_tabs__nav a {
    padding: 6px 13px;
    font-size: 14px;
  }
  .sch__side__foot__note {
    margin-top: 12px;
  }

}

@media only screen and (max-width: 400px) {

  .sch_tabs__nav a {
    padding: 5px 10px;
    font-size: 13px;
  }

}
