@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;700;900&family=Roboto+Condensed:wght@300;400;700&family=Roboto:wght@300;400;500;700;900&family=Rubik:wght@400;600;900&family=Source+Serif+Pro:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/** CUSTOM CSS & THEME TO MATCH EXPLORATORY VISUAL ANALYSIS **/

* {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 65px;
}

body {
  font-family: 'Source Serif Pro', serif;
  margin: 0;
  padding-top: 65px;
  padding-bottom: 40px;
  font-size: 11pt;
  line-height: 1.5;
  color: #333333;
  background-color: #fff;
}

p {
  font-family: 'Source Serif Pro', serif;
  font-size: 11pt;
  padding: 1.4px;
  line-height: 1.5em;
  color: #292929;
  margin: 0 0 10px;
}

p.caption {
  font-size: 9.6pt;
  color: black;
  font-family: 'Roboto Condensed', sans-serif;
  margin-top: 4px;
}

a {
  color: #5367f8;
  text-decoration: none;
}

a:hover, a:focus {
  color: #23527c;
  text-decoration: underline;
}

code {
  font-family: 'Roboto Condensed', sans-serif;
  color: inherit;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 90%;
}

pre:not([class]) {
  background-color: white;
}

pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.42857143;
  word-break: break-all;
  word-wrap: break-word;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Roboto Condensed', Menlo, Monaco, Consolas, monospace;
}

blockquote {
  border-left: 5px solid #33554c;
  background: whitesmoke;
  box-shadow: 1px 1px 6px 0px darkgrey;
  padding: 10.5px 20px;
  margin: 15px 0 20px;
  font-size: 17.5px;
}

blockquote p {
  font-size: 12pt;
  font-family: 'Roboto Condensed', sans-serif;
  color: #292929;
  line-height: 1.5;
  padding: 0;
  margin-bottom: 0;
}

/* Header section */
div#header {
  margin-bottom: 20pt;
}

.title {
  margin-bottom: 0.01em;
  font-family: 'Poppins', sans-serif;
  color: #292929;
  font-size: 22pt !important;
  text-align: left;
  font-weight: 900;
  line-height: 1.15;
}

.author {
  font-size: 14pt;
  margin-top: 0.2em;
  margin-bottom: 0;
  font-family: 'Poppins', sans-serif;
  color: #757575;
  font-weight: 300;
}

.date {
  font-size: 14pt;
  margin-top: 0.2em;
  margin-bottom: 0.75em;
  font-family: 'Poppins', sans-serif;
  color: #757575;
  font-weight: 300;
}

/* Headings */
h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 28pt;
  font-weight: 900;
  margin: auto;
  color: #292929;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18.5pt;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 12pt;
  color: #292929;
}

h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 15pt;
  font-weight: 500;
  margin-top: 20px !important;
  padding-top: 0 !important;
  margin-bottom: 10px;
  color: #292929;
}

h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5pt;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 8px;
  color: #292929;
}

h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 10pt;
  font-weight: 400;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #292929;
}

h6 {
  font-size: 12px;
}

/* Topbar / Navigation */
.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.navbar-fixed-top {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 1030;
  top: 0;
  border-width: 0 0 1px;
}

.navbar-default {
  background-color: white;
  box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 11%);
  border-color: #e7e7e7;
}

.navbar .container {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.navbar-header {
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-family: 'Source Sans Pro', 'Poppins', sans-serif;
  font-size: 9pt;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #535556 !important;
  height: 50px;
  line-height: 20px;
  padding: 15px 15px 15px 0;
  display: inline-block;
}

.navbar-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.navbar-nav > li > a {
  padding: 15px 15px;
  line-height: 20px;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: #333;
}

.navbar-toggle {
  display: none;
  position: relative;
  padding: 9px 10px;
  margin-right: 10px;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: #888;
}

.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1050;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: #222;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Layout Grid */
.container-fluid.main-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col-xs-12, .col-sm-4, .col-md-3, .col-sm-8, .col-md-9 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 992px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    width: 25%;
  }
  .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
    width: 75%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
  }
  .col-sm-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    width: 66.666667%;
  }
}

@media (max-width: 767px) {
  .col-xs-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

.toc-content {
  padding-left: 30px;
  padding-right: 40px;
  min-width: 0;
}

/* Left Panel (TOC - Tocify) */
#TOC {
  margin: 25px 0px 20px 0px;
}

div.tocify {
  position: sticky;
  top: 75px;
  width: 100%;
  max-width: 260px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #ffffff;
  scrollbar-width: thin;
}

div.tocify::-webkit-scrollbar {
  width: 6px;
}

div.tocify::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 3px;
}

.tocify ul, .tocify li {
  line-height: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.tocify .list-group-item {
  position: relative;
  display: block;
  padding: 6px 12px;
  margin-bottom: -1px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0px;
  color: #337ab7;
  font-size: 11pt;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tocify .list-group-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.tocify .list-group-item:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-bottom: 0;
}

.tocify .list-group-item:hover,
.tocify .list-group-item:focus {
  background-color: #f5f5f5;
  color: #23527c;
  text-decoration: none;
}

.tocify .list-group-item.active,
.tocify .list-group-item.active:hover,
.tocify .list-group-item.active:focus {
  z-index: 2;
  color: #fff !important;
  background-color: #337ab7 !important;
  border-color: #337ab7 !important;
}

.tocify .list-group-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tocify-header {
  text-indent: 0;
}

.tocify-header > .list-group-item {
  font-weight: 500;
}

.tocify-subheader {
  display: none;
}

.tocify-subheader.is-open {
  display: block;
}

.tocify-subheader .list-group-item {
  font-size: 0.90em;
  padding-left: 24px;
  color: #4b86b0;
  background-color: #fafbfc;
}

.tocify-subheader .list-group-item.active,
.tocify-subheader .list-group-item.active:hover,
.tocify-subheader .list-group-item.active:focus {
  color: #fff !important;
  background-color: #337ab7 !important;
  border-color: #337ab7 !important;
}

/* Sections & Articles */
.section {
  margin-bottom: 25px;
}

.section.project-section {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.project-kicker {
  margin: 0 0 4px;
  color: #757575;
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-kicker span {
  margin: 0 4px;
  color: #a0a8af;
}

.source-links {
  margin: 8px 0 16px;
  font-size: 10pt;
  font-family: 'Poppins', sans-serif;
}

.source-links a {
  color: #5367f8;
  text-decoration: none;
}

.source-links a:hover {
  text-decoration: underline;
}

.formula-block {
  margin: 15px 0 20px;
}

.formula-block pre {
  margin: 0 0 6px;
  padding: 12px 16px;
  background-color: #f7f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  font-family: 'Roboto Condensed', Menlo, Monaco, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: #24292e;
  overflow-x: auto;
}

.formula-block p {
  color: #666;
  font-size: 10pt;
  margin-top: 4px;
}

.result-figure {
  max-width: 640px;
  margin: 18px 0 22px;
  padding: 12px 16px 10px;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  background: #fff;
}

.result-figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 255px;
}

.grid { fill: none; stroke: #e1e5e8; stroke-width: 1; }
.axis { fill: none; stroke: #858e96; stroke-width: 1.2; }
.series { fill: none; stroke: #337ab7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.series-alt { fill: none; stroke: #33554c; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.points circle, .points .point-main { fill: #337ab7; stroke: #fff; stroke-width: 1.5; }
.bar { fill: #337ab7; }
.bar-alt { fill: #33554c; }
.result-figure text { fill: #5c6872; font-family: 'Roboto Condensed', sans-serif; font-size: 11px; }
.point-main { fill: #337ab7; }
.point-fade { fill: #8298a4; opacity: 0.58; }
.outlier { fill: #c86f61; }
.cluster-a circle { fill: #337ab7; }
.cluster-b circle { fill: #33554c; }
.cluster-c circle { fill: #b8860b; }
.center-mark { fill: none; stroke: #263844; stroke-width: 2; }
.heat rect { fill: #95b9cd; stroke: white; stroke-width: 2; }
.heat rect:nth-child(3n) { fill: #d5e3ea; }
.heat rect:nth-child(4n) { fill: #6395ac; }

.reference-list {
  padding-left: 20px;
  font-family: 'Source Serif Pro', serif;
}

.reference-list li {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #292929;
}

.reference-list li small {
  display: block;
  margin-top: 3px;
  color: #757575;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 10.5pt;
}

.article-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #757575;
  font-family: 'Poppins', sans-serif;
  font-size: 10pt;
}

/* Responsive Overrides */
@media (max-width: 767px) {
  body {
    padding-top: 55px;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-nav {
    display: flex;
  }
  .toc-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  #TOC {
    margin: 15px 0;
  }
  div.tocify {
    position: relative;
    top: 0;
    width: 100%;
    max-width: none;
    max-height: 340px;
  }
  .title {
    font-size: 20pt !important;
  }
  h1 { font-size: 22pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 13.5pt; }
  .author, .date { font-size: 12pt; }
}
