body {
  font-family: 'proxima-nova', Helvetica, Arial, sans-serif;
}

aside h1 a img {
  width: 75%;
}

.markdown-section h1 a.anchor:hover,
.markdown-section h2 a.anchor:hover,
.markdown-section h3 a.anchor:hover {
  text-decoration: none;
}

.app-nav a {
  color: #8d538b;
  margin-right: 15px;
  font-size: 16px;
}

.app-nav a:hover {
  text-decoration: underline;
}

main {
  position: relative;
  overflow: visible;
}

/* ------------------------------------ */
/* Variables */
/* ------------------------------------ */

:root {
  --sidebar-toggle-offset-top: 23px;
  --base-font-size: 18px;
}

/* ------------------------------------ */
/* Typography */
/* ------------------------------------ */

.markdown-section h1,
.markdown-section h2 {
  line-height: 130%;
}

.markdown-section h1 {
  font-size: 25px;
}

.markdown-section h2 {
  font-size: 18px;
}

.markdown-section h3 {
  font-size: 18px;
  word-break: break-all; /* some of the redux actions are very long */
}

@media (min-width: 500px) {
  .markdown-section h1 {
    font-size: 28px;
  }
  .markdown-section h2 {
    font-size: 22px;
  }

  .markdown-section h3 {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .markdown-section h1 {
    font-size: 32px;
  }
  .markdown-section h2 {
    font-size: 24px;
  }
}

/* ------------------------------------ */
/* Top Header */
/* ------------------------------------ */

header {
  min-height: 90px;
  width: 100%;
  z-index: 11;
  top: 0;
  border-bottom: 1px solid var(--sidebar-border-color);
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Header gradient */
/* 
header:after {
	content: '';
	display: block;
	position: absolute;
	top: 96px;
	width: 100%;
	height: 4px;
	background-image: linear-gradient(-113deg, #FEEBF6 2%, #F7EFF9 60%, #E5F9FF 100%);
}
*/

header .logo {
  width: 155px;
  margin-left: 20px;
  margin-top: 5px;
}

header ul li {
  list-style-type: none;
  padding-left: 30px;
}

header ul li a {
  opacity: 0.9;
  color: #895687;
}

#mobile-nav-toggle {
  display: none;
}

#mobile-nav-toggle ~ label {
  text-transform: uppercase;
  color: #8d538b;
  justify-content: flex-end;
  flex: 1;
  display: flex;
  cursor: pointer;
  margin-right: 2.5rem;
}

#mobile-nav-toggle ~ label ~ ul {
  display: none;
}

@media (max-width: 799px) {
  header .logo {
    margin-left: 2.5rem;
  }

  #mobile-nav-toggle:checked ~ label ~ ul {
    display: block;
  }

  header ul {
    position: absolute;
    top: 70px;
    z-index: 100;
    background: #fff;
    padding: 0px;
    width: 100%;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  }

  header ul li:not(:last-of-type) {
    border-bottom: 1px solid #efefef;
  }

  header ul li a {
    padding: 12px 0;
    display: block;
  }
}

@media (min-width: 800px) {
  header {
    flex-direction: row;
  }

  header .logo {
    margin-top: 5px;
  }

  header ul li a:hover {
    opacity: 1;
  }

  #mobile-nav-toggle ~ label {
    display: none;
  }

  #mobile-nav-toggle ~ label ~ ul {
    display: flex;
    margin-right: 20px;
    justify-content: flex-end;
    flex: 1;
  }
}

/* ------------------------------------ */
/* Sidebar */
/* ------------------------------------ */

body.sticky .sidebar {
  position: absolute;
  height: 100%;
}

body.sticky .sidebar-toggle {
  position: relative;
}

.sidebar-nav,
.sidebar nav {
  padding-right: 30px;
}

.sidebar-nav li.active > a,
.sidebar-nav li.collapse > a {
  border: none;
}

.sidebar-nav li {
  position: relative;
}

.sidebar-nav ul li ul li.active:after,
.sidebar-nav li.collapse:after {
  content: '';
  width: 4px;
  height: 100%;
  display: block;
  background: #895687;
  position: absolute;
  top: 0;
  right: -55px;
  opacity: 0.7;
}

.sidebar .search {
  margin-top: 0;
}

.sidebar .search .input-wrap {
  border-top: none;
}

.sidebar-nav a {
  white-space: normal;
  position: relative;
  line-height: 140%;
  margin-bottom: 10px;
}

.sidebar-nav li > a:before,
.sidebar-nav li > strong:before {
  position: absolute;
  left: 5px;
}

.sidebar-nav > ul > li > ul > li > ul > li > a:before {
  content: '\25E6';
  display: block;
  color: #999;
}

main.sidebar-fixed .sidebar {
  position: fixed !important;
}

main.sidebar-fixed .sidebar-toggle {
  position: fixed;
  top: 22px;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  width: 6px;
  background: #efefef;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
  width: 4px;
}

/* ------------------------------------ */
/* Content */
/* ------------------------------------ */

/* Necessary because of the sticky menu handle */
.markdown-section {
  padding: 10px 45px 2rem;
}
