/**
 * @file
 * Visual styles for tabs.
 */

div.tabs {
  margin: 1em 0;
}

ul.tabs {
  margin: 0 0 0.5em;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #ccc;
}

.tabs > li {
  display: inline-block;
  margin-right: 0.3em; /* LTR */
}

[dir="rtl"] .tabs > li {
  margin-right: 0;
  margin-left: 0.3em;
}

.tabs a {
  display: block;
  padding: 0.2em 1em;
  text-decoration: none;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background-color: #f5f5f5;
}

.tabs a.is-active,
nav.tabs > ul li.is-active a {
  margin-bottom: -2px;
  border: 2px solid #ccc;
  border-bottom: 1px solid #fff;
  background-color: transparent;
}

.tabs a:focus,
.tabs a:hover {
  background-color: transparent;
}

/* Styling for fake tabs inside content. */

.block-system-main-block .tabs a:hover,
.block-system-main-block .tabs a:active,
.block-system-main-block .tabs a:focus {
  padding: 0.2em 1em;
  border-top: 1px solid #ccc;
  border-bottom: none;
}

.block-system-main-block .tabs a.is-active:hover,
.block-system-main-block .tabs a.is-active:active,
.block-system-main-block .tabs a.is-active:focus {
  padding: 0.2em 1em;
  border-top: 2px solid #ccc;
  border-bottom: 1px solid #fff;
}
