/*
    DEMO STYLE
*/

/* @import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700"; */
:root {
  background: #fff;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* background: #fafafa; */
  background: #fff;
  color: #3d4449;
}

p {
  /* font-family: "Poppins", sans-serif; */
  color: #61686f;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* font-size: 14pt; */
  font-weight: 400;
  /* line-height: 1.65; */
  font-size: 1.1em;
  /* font-weight: 300; */
  line-height: 1.7em;
  /* color: #999; */
}

header h3 {
  padding-bottom: 10px;
  border-bottom: solid 5px rgba(28, 174, 142, 0.5);
}

.h3,
h3 {
  font-size: 1.5em;
}

.h4,
h4 {
  font-size: 1.2em;
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}

.line {
  /* width: 100%; */
  height: 1px;
  border-bottom: 2px dotted rgb(28, 174, 142, 0.5); /*rgb(92, 206, 200, 0.6);*/
  /* margin: 40px 0; */
  margin: 40px 10px;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

ul ul a {
  font-size: 0.9em !important;
  padding-left: 30px !important;
  background-color: #f1f1f1;
}

/* ul.CTAs {
  padding: 20px;
}

ul.CTAs a {
  text-align: center;
  font-size: 0.9em !important;
  display: block;
  border-radius: 5px;
  margin-bottom: 5px;
} */

a.download {
  /* background: #fff; */
  /* color: #7386d5; */
  color: #1cae8e;
}

/* a.article,
a.article:hover {
  background: #6d7fcc !important;
  color: #fff !important;
} */

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
  width: 100%;
  padding: 20px;
  min-height: 100vh;
  transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
#content a{
  color: #1cae8e;
  /* color: mediumturquoise; */
}

#content a.anchor{
  color: #585858;
}

/* table */

.table-container {
  width: 100%;
  /* overflow: auto; */
}

.table-container table {
  /* width: 100%; */
  overflow: auto;
}

.scrolledTable {
    /* overflow-y: auto; */
    overflow: auto;
    clear: both; 
}

.table-container input[type="search"] {
  width: 10em;
}

.dt-buttons .btn {
  margin-right: 3px;
}

.table-container input {
  height: 30px;
}

.table-container table th {
  font-size: 0.9em;
}

.table-container table td {
  font-size: 0.85em;
}

.table-container table td:first-child,
.table-container table th:first-child {
  background: rgba(230, 230, 230);
  color: #5e5e5e;
  font-weight: bold;
}

@media (min-width: 1134px) {
  .dataTables_scrollHeadInner,
  .table {
    width: 100% !important;
  }
}

/* plots */

div#plot {
  /*    width: 100%;*/
  height: auto;
}

div#plot iframe {
  width: 100%;
  /*    height: auto;*/
  display: block;
  border: none;

  position: inherit;
}

div.plot {
  width: 100%;
  display: none;
  height: auto;
  -webkit-animation: fadeEffect 1s;
  animation: fadeEffect 0.5s;
}

div.plot iframe {
  width: 100%;
  /*    height: auto;*/
  display: block;
  border: none;

  position: inherit;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */

/* Fade in tabs */
@-webkit-keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Germany map */

.jqvmap-zoomin,
.jqvmap-zoomout {
  width: auto !important;
  height: auto !important;
}

span a {
  color: mediumturquoise;
}

span a:hover {
  color: aquamarine;
}

/* Frequencies table */
.highlight-row {
  background-color: #ffe0e0 !important;
  font-weight: bold;
}

.info {
  font-size: 0.8em;
  color: #999;
}

.wrapper {
  display: flex;
  flex-direction: row;   /* force horizontal */
  align-items: stretch;
  width: 100%;
}

/* Desktop */
@media (min-width: 992px) {
  #sidebar-container {
    width: 20em;
    min-width: 20em;
    max-width: 20em;
    flex-shrink: 0;
  }

  #content {
    flex: 1;
    min-width: 0;
  }
}

/* Mobile: sidebar must NOT participate in layout */
@media (max-width: 991px) {
  #sidebar-container {
    /* display: none !important; */
    width: 0;
    flex: 0 0 0;
    overflow: visible;
  }

  .wrapper {
    flex-direction: column;
  }

  #content {
    width: 100%;
    min-width: 0;
  }
}


sl-drawer.sidebar-drawer::part(panel) {
  width: 20em;
  min-width: 20em;
  max-width: 20em;
  padding: 0;
}

.sidebar {
  width: 100% !important;   /* instead of 290px */
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f1f1f1;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #3d4449;
  transition: all 0.05s;
}

/* Match old sidebar appearance */
.sidebar .sidebar-header {
  padding: 10px;
  background-color: #f1f1f1;
  margin: 0;
}

.sidebar .sidebar-header h2 {
  color: #3d4449;
  font-size: 2em;
  font-weight: 400;
  margin: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar .sidebar-header h2 a {
  color: #3d4449;
  text-decoration: none;
}

.sidebar .sidebar-close-btn {
  background: transparent;
  border: none;
  color: #3d4449;
  font-size: 0.9em;
  line-height: 1;
  padding: 0.1em 0.2em;
  cursor: pointer;
}

.sidebar .sidebar-close-btn:hover {
  color: #1cae8e;
}

/* Show sidebar close "X" only when sidebar overlays page content (mobile/tablet). */
@media (min-width: 992px) {
  .sidebar .sidebar-close-btn {
    display: none;
  }
}

@media (max-width: 991px) {
  .sidebar .sidebar-close-btn {
    display: inline-block;
  }
}

.sidebar .sidebar-header span {
  color: #3d4449;
  font-size: 0.9em;
  display: block;
  line-height: 1.5;
}

.sidebar ul.components {
  padding: 20px 0;
  border-bottom: 2px dotted rgb(28, 174, 142, 0.5);
  background-color: #f1f1f1;
  margin: 0 10px;
}

.sidebar ul.components li {
  margin: 0;
}

.sidebar ul.components li a {
  padding: 10px;
  font-size: 1.1em;
  display: block;
  color: #3d4449;
  text-decoration: none;
}

.sidebar ul.components li a:hover {
  color: #1cae8e;
  background: #fff;
}

.sidebar ul.components li.active > a,
.sidebar ul.components li a[aria-expanded="true"] {
  color: #3d4449;
  background: #ddd;
}

.sidebar ul.components ul.collapse {
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #f1f1f1;
}

.sidebar ul.components ul.collapse li {
  margin: 0;
}

.sidebar ul.components ul.collapse li a {
  padding: 10px;
  font-size: 0.9em !important;
  padding-left: 30px !important;
  display: block;
  color: #3d4449;
  text-decoration: none;
  background-color: #f1f1f1;
}

.sidebar ul.components ul.collapse li a:hover {
  color: #1cae8e;
  background: #fff;
}

.sidebar ul.components ul.collapse li.active > a,
.sidebar ul.components ul.collapse li a.active {
  color: #3d4449;
  background: #ddd;
}

.sidebar ul.components ul.collapse li ul.collapse li a,
.sidebar ul.components ul.collapse li ul.collapsing li a {
  padding-left: 40px !important;
}

.sidebar .sidebar-subheader {
  padding: 2em 0 0 0.5em;
  font-size: 0.9em;
  margin: 0;
}

.sidebar .sidebar-subheader h4 {
  color: #3d4449;
  font-size: 1.2em;
  margin: 0;
}

.sidebar .contact {
  list-style-type: none;
  padding-left: 15px;
  margin: 0;
}

.sidebar .contact li {
  vertical-align: middle;
  margin: 0;
}

.sidebar .copyright {
  color: #9fa3a6;
  font-size: 0.8em;
  padding: 0 10px;
  margin: 0;
}

.sidebar .copyright a {
  color: inherit;
}

.sidebar .sidebar-footer {
  margin-top: auto;
}

.sidebar .sidebar-last-update {
  color: #9fa3a6;
  font-size: 0.8em;
  padding: 0.75rem 10px 0;
  margin: 0;
  line-height: 1.4;
}

sl-drawer.sidebar-drawer::part(body) {
  padding: 0 !important;
  margin: 0 !important;
}

/* Toggle button overlays content; doesn't consume layout space */
#sidebarCollapse.sidebar-toggle {
  position: fixed;
  bottom: 48px;
  left: 12px;
  z-index: 3000;
}

#sidebarCollapse.sidebar-toggle.in-heading {
  position: static;
  bottom: auto;
  left: auto;
  z-index: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Desktop: place toggle on sidebar edge so it does not cover content/sidebar items. */
@media (min-width: 992px) {
  body:not(.sidebar-collapsed) #sidebarCollapse.sidebar-toggle {
    left: calc(20em - 18px);
  }

  body.sidebar-collapsed #sidebarCollapse.sidebar-toggle {
    left: 12px;
  }
}


/* Desktop: docked sidebar (no overlay sliding) */
@media (min-width: 992px) {
  sl-drawer.sidebar-drawer {
    position: static;
    display: block;
  }

  sl-drawer.sidebar-drawer::part(base) {
    position: static;
    inset: auto;
  }

  sl-drawer.sidebar-drawer::part(panel) {
    position: static;
    transform: none !important;
    height: 100vh;
    max-height: 100vh;
    border-right: 1px solid rgba(0,0,0,0.08);
  }

  sl-drawer.sidebar-drawer::part(overlay) {
    display: none;
  }

  /* When collapsed: hide the docked drawer */
  body.sidebar-collapsed sl-drawer.sidebar-drawer {
    display: none !important;
    width: 0 !important;
  }

  /* When collapsed: remove reserved space from drawer panel */
  body.sidebar-collapsed sl-drawer.sidebar-drawer::part(panel) {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
  }

  /* When collapsed: remove reserved space */
  body.sidebar-collapsed #sidebar-container {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    overflow: hidden !important;
  }

  /* When collapsed: ensure content expands */
  body.sidebar-collapsed #content {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 992px) {
  body { overflow: auto !important; }
  html { overflow: auto !important; }
}

/* Active link */
.sidebar a.active {
  font-weight: 700;
  background-color: #e1e1e1;

}

/* Active summary (section header) */
.sidebar summary.active {
  font-weight: 800;
  opacity: 1;
}

/* Optional: highlight the whole section */
.sidebar details.active > summary {
  font-weight: 800;
}

.sidebar li.active {
  background-color: #e1e1e1;
}

.sidebar summary.active {
  background-color: #e1e1e1;
}

/* .sidebar details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0 0.25rem;
  margin: 0 !important;
  list-style: none;
} */

/* Bootstrap dropdown toggle styling */
.sidebar a.dropdown-toggle {
  position: relative;
}

.sidebar details ul li {
  line-height: normal;
  margin-bottom: 1em;
}
/* The "Tree reconstruction" dropdown at the top of every page. See assets/js/protein-sets.js. */
.tree-reconstruction-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4em 0.75em;
  margin: 0 0 1em;
  padding: 0.5em 0.75em;
  background-color: #f4f7fa;
  border: 1px solid #dbe3ea;
  border-radius: 0.4em;
  font-size: 0.9em;
}

.tree-reconstruction-bar__label {
  margin: 0;
  font-weight: bold;
  color: #333;
}

.tree-reconstruction-bar__select {
  max-width: 100%;
  padding: 0.2em 0.5em;
  border: 1px solid #b6b6b6;
  border-radius: 0.3em;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

.tree-reconstruction-bar__note {
  flex: 1 1 20em;
  color: #6b6b6b;
}

/* Each set drawn on the page gets its own panel, captioned with the method that produced it. */
.protein-set-panel__caption {
  font-weight: bold;
  margin: 0.5em 0 0.25em;
}

.protein-set-panel__note {
  font-size: 0.85em;
  color: #7e7e7e;
  font-weight: normal;
  margin-left: 0.5em;
}

/* The switcher sidebar-loader.js appends to .sidebar-header when a site declares siblings: a small
   caps label linking up to the group's landing page, then one pill per sibling site, the current
   one filled. */
.sidebar .sidebar-header .site-switch {
  margin-top: 0.9em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(28, 174, 142, 0.35);
}

.sidebar .sidebar-header .site-switch__group {
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7e7e7e;
  text-decoration: none;
}

.sidebar .sidebar-header .site-switch__group:hover {
  color: #1cae8e;
}

.sidebar .sidebar-header .site-switch__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.sidebar .sidebar-header .site-switch__item {
  display: inline-block;
  padding: 0.2em 0.7em;
  border: 1px solid #cfd6d9;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8em;
  line-height: 1.5;
  color: #3d4449;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.sidebar .sidebar-header a.site-switch__item:hover {
  border-color: #1cae8e;
  color: #1cae8e;
}

.sidebar .sidebar-header .site-switch__item.is-current {
  background: #1cae8e;
  border-color: #1cae8e;
  color: #fff;
  font-weight: 600;
}

/* The data-source line under the brand: a quiet caption, links keep the accent colour. */
.sidebar .sidebar-header span[data-site-text="sidebar_source"] {
  color: #6b7479;
  font-size: 0.78em;
  line-height: 1.6;
}

.sidebar .sidebar-header span[data-site-text="sidebar_source"] a {
  color: #1cae8e;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 174, 142, 0.4);
}

.sidebar .sidebar-header span[data-site-text="sidebar_source"] a:hover {
  border-bottom-color: #1cae8e;
}

.sidebar .sidebar-header .site-brand-suffix {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #1cae8e;
  background: rgba(28, 174, 142, 0.12);
  border-radius: 999px;
  padding: 0.15em 0.7em;
  margin-right: auto;
}

/* Brand: heavier and tighter than the old thin Helvetica, suffix pill on the same line. */
.sidebar .sidebar-header h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar .sidebar-header h2 > a {
  flex: none;
}

/* Inline Font Awesome icons (the sidebar's envelope) carry no size of their own: fontawesome.js
   injects the rule that sizes them, so a page that does not load it, or before it has run (it is
   deferred, from a CDN), draws them as wide as their container. Same values as Font Awesome's. */
svg.svg-inline--fa {
    display: inline-block;
    height: 1em;
    width: 1em;
    overflow: visible;
    vertical-align: -0.125em;
    font-size: inherit;
}
