/* Copyright (c) 2020 Graphcore Ltd. All rights reserved.
   Override the sphinx-readthedocs-theme settings */

   /* GC FONTS */
@font-face {
  font-family: 'Graphik';
  src: url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Regular-Web.eot");
  src: url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Regular-Web.eot?#iefix") format("embedded-opentype"), url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Regular-Web.woff2") format("woff2"), url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Regular-Web.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Graphik';
  src: url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Medium-Web.eot");
  src: url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Medium-Web.eot?#iefix") format("embedded-opentype"), url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Medium-Web.woff2") format("woff2"), url("https://www.graphcore.ai/hubfs/assets/fonts/Graphik-Medium-Web.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'GC Quantized';
  src: url('https://www.graphcore.ai/hubfs/assets/fonts/Caslons Egyptian Pentagram Reg.eot');
  src: url('https://www.graphcore.ai/hubfs/assets/fonts/Caslons Egyptian Pentagram Reg.eot?#iefix') format('embedded-opentype'),
      url('https://www.graphcore.ai/hubfs/assets/fonts/Caslons Egyptian Pentagram Reg.woff2') format('woff2'),
      url('https://www.graphcore.ai/hubfs/assets/fonts/Caslons Egyptian Pentagram Reg.woff') format('woff'),
      url('https://www.graphcore.ai/hubfs/assets/fonts/Caslons Egyptian Pentagram Reg.ttf') format('truetype'),
      url('https://www.graphcore.ai/hubfs/assets/fonts/Caslons Egyptian Pentagram Reg.svg#Caslons Egyptian Pentagram Reg') format('svg');
  font-weight: normal;
  font-style: normal;
}
/*  improve table layout, allowing cells to wrap */
.rst-content table.docutils col {
  width: auto;
}

.wy-table-responsive table td, .wy-table-responsive table th,
.rst-content .wy-table-responsive table td, .rst-content .wy-table-responsive table th {
  white-space: normal;
  word-wrap: break-word;
  border: solid 2px #e1e4e5;
}

th.head p {
  margin-bottom: 0;
}

/* make image captions a sensible size and format */

.rst-content .toctree-wrapper p.caption {
  font-size: 14px;
  font-weight: 700;
  font-family: "Graphik", "Lato", "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  margin-top: 14px;
}

/* change background colour for code samples */

div.highlight,
.rst-content pre.literal-block,
.rst-content pre.literal-block div[class^='highlight'],
.rst-content div[class^='highlight'],
.rst-content div[class^='highlight'] pre,
.rst-content div[class^='highlight'] div[class^='highlight'],
.rst-content div[class^='highlight'] td.code {
  background-color: white ;
  color: #292c31;
}

/* remove ugly top border from definition lists */

.rst-content dl:not(.docutils) dt {
  border-top: none;
}

/* TABLET NAV BG */
.wy-nav-top {
  background: #292c31;
}

/* Style nav menu in Graphcore colours and fonts */

.wy-menu-vertical li.toctree-l1 span.toctree-expand,
.wy-menu-vertical li span.toctree-expand,
.wy-menu-vertical li.on a span.toctree-expand,
.wy-menu-vertical li a.current span.toctree-expand {
  color: white;
  visibility: visible;
  display: inline-block;
  mix-blend-mode: difference;
}

.fa-home:before, .icon-home:before {
  display: none;
}

.btn {
  font-family: "Graphik", "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
}

input[type="button"], input[type="reset"], input[type="submit"],
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], input[type="month"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="week"], input[type="number"], input[type="search"], input[type="tel"], input[type="color"] {
  font-family: "Graphik", "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
}

textarea {
  font-family: "Graphik", "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
}

a:link {
  color: #ff6f79;
}

a:visited {
  color: #ff6f79;
}

a:hover {
  color: #fbc3aa;
}

a.icon,
a.icon:visited,
a.icon:hover,
a.icon-home,
a.icon-home:hover,
a.icon-home:visited {
  color: #FAF8F9;
  font-weight: bold;
}

/* Next + Previous btns */
a.btn.btn-neutral {
  border: none;
  box-shadow: none;
  background: #FAF8F9!important;
  color: #292c31 !important;
  border-radius: 0;
  line-height: 1;
  min-width: 150px;
  padding: 11px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #eee;
}
a.btn.btn-neutral.float-left {
text-align: right;
}
a.btn.btn-neutral > span.fa.fa-arrow-circle-right {
display: inline-block;
float: right;
}
a.btn.btn-neutral > span.fa.fa-arrow-circle-left {
  display: inline-block;
  float: left;
}

body {
  font-family: "Graphik", "Lato", "Helvetica Neue", Arial, sans-serif;
  color: #565656;
}

h1, h2, h3, h4, h5, h6, legend {
  font-family: "Graphik", "Lato", "Helvetica Neue", Arial, sans-serif;
  color: #292c31;
}

h1 {
  text-transform: uppercase;
  font-family: "GC Quantized", "Roboto Slab", "ff-tisa-web-pro", "Georgia", Arial, sans-serif;
}

/* inline code samples */
.rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal,
.rst-content pre.literal-block, .rst-content .linenodiv pre,
code, .rst-content tt, .rst-content code,
.rst-content pre, .rst-content kbd, .rst-content samp,
footer span.commit code, footer span.commit .rst-content tt, .rst-content footer span.commit tt {
  font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
  font-size: 95%;
  color: inherit;
  border: none;
  background: inherit;
  padding-left: 0;
  padding-right: 0;
}

.wy-menu-vertical li.toctree-l1 >a,
.wy-menu-vertical li.toctree-l1 >a:visited {
    color: #e9e9e9;
}

.wy-menu-vertical .local-toc ul > li:only-child > a {
  color: #FAF8F9;
}

.wy-menu-vertical .local-toc ul > li.current:only-child > a,
.wy-menu-vertical li.toctree-l1.current a,
.wy-menu-vertical li a {
    color: #292c31;
    padding-top: 11px;
    padding-bottom: 11px;
    line-height: 1.2;
  }

.wy-menu-vertical li.current {
  background: #faf8f9;
}

.toctree-l1.current > a.reference.internal {
  border-color: transparent;
  border-top: none !important;
  border-bottom: none !important;
  border-left: 5px solid #ff6f79;
  padding-left: 19px;
}

.wy-menu-vertical li.current a {
  border-right: none;
}
.wy-menu-vertical a {
padding: 12px 14px;
padding-left: 24px;
}

.wy-menu-vertical .local-toc ul > li:only-child > a {
  color: #FAF8F9;
}

.wy-menu-vertical a:hover {
  background: #ff6f79 !important;
  color: #fff  !important;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a, .wy-menu-vertical li.toctree-l3.current li.toctree-l4>a {
  padding-top: 12px;
  padding-bottom: 12px;
}
.wy-menu,
.wy-menu-vertical,
.wy-nav-side,
.wy-side-nav-search {
  background-color: #292c31;
}

.wy-side-nav-search {
  padding: .809em 0 0;
  margin-bottom: 10px;
}

.wy-side-nav-search>a {
  padding: 4px 24px;
  text-align: left;
}

.wy-side-nav-search > a > img {
  padding: 5px 0;
}

.wy-side-nav-search>div.version {
  color: #FAF8F9;
  text-align: left;
  padding: 5px 24px 8px;
}

form#rtd-search-form {
  padding: 0;
}

form#rtd-search-form > input:first-child{
  border-radius: 0;
  border-color: #eee;
  height: 42px;
  font-size: 15px;
  padding-left: 22px;
}

.rst-content .sidebar .sidebar-title {
  font-family: "GC Quantized", "Roboto Slab", "ff-tisa-web-pro", "Georgia", Arial, sans-serif;
}

.rst-content .footnote-reference, .rst-content .citation-reference {
  vertical-align: super;
}

.rst-content table.docutils.citation, .rst-content table.docutils.footnote {
  color: #999;
}

.wy-breadcrumbs {
  display: none;
}

.rst-content .section ul li > p {
  line-height: 20px;
}
.rst-content .section ul li > p:last-child,
.rst-content .section p {
  margin-bottom: 16px;
}
.rst-content .section ul li > p:first-child {
  margin-bottom: 0px;
}

footer {
  margin-top: 60px;
}
footer p {
  color: #565656;
  font-size: 15px;
}

@media screen and (min-width: 1100px) {
  .wy-nav-content {
    min-height: 100vh;
  }
}
/* Hide the link to GitHub */
div.rst-other-versions dl:last-of-type {
  display: none;
  visibility: hidden;
}
.rst-versions .rst-current-version {
  color: #ff6f79;
}
.rst-versions.shift-up {
  overflow-y: auto;
}

div[role="contentinfo"] {
  display: none;
}

dl.cpp.enum,
dl.cpp.struct,
dl.cpp.class {
  border-left: thin solid #edf0f2;
}

dl.cpp dt {
  background: #edf0f2 !important;
  border-top: none !important;
}

table.genindextable > tbody > tr > td > ul > li {
  font-size: 75%;
}
