/* Fonts
   ===== */

/* Ubuntu Font Family Bower-ready v0.1.10 */

/* BEGIN Ubuntu Regular */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-regular-webfont.eot');
  src: url('../fonts/ubuntu-regular-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntu-regular-webfont.woff') format('woff'),
     url('../fonts/ubuntu-regular-webfont.ttf') format('truetype'),
     url('../fonts/ubuntu-regular-webfont.svg#ubunturegular') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* END Ubuntu Regular */

/* BEGIN Ubuntu Regular Italic */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-regular-italic-webfont.eot');
  src: url('../fonts/ubuntu-regular-italic-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntu-regular-italic-webfont.woff') format('woff'),
     url('../fonts/ubuntu-regular-italic-webfont.ttf') format('truetype'),
     url('../fonts/ubuntu-regular-italic-webfont.svg#ubuntuitalic') format('svg');
  font-weight: normal;
  font-style: italic;
}
/* END Ubuntu Regular Italic */

/* BEGIN Ubuntu Bold */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-bold-webfont.eot');
  src: url('../fonts/ubuntu-bold-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntu-bold-webfont.woff') format('woff'),
     url('../fonts/ubuntu-bold-webfont.ttf') format('truetype'),
     url('../fonts/ubuntu-bold-webfont.svg#ubuntubold') format('svg');
  font-weight: bold;
  font-style: normal;
}
/* END Ubuntu Bold */

/* BEGIN Ubuntu Bold Italic */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu-bold-italic-webfont.eot');
  src: url('../fonts/ubuntu-bold-italic-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntu-bold-italic-webfont.woff') format('woff'),
     url('../fonts/ubuntu-bold-italic-webfont.ttf') format('truetype'),
     url('../fonts/ubuntu-bold-italic-webfont.svg#ubuntubold_italic') format('svg');
  font-weight: bold;
  font-style: italic;
}
/* END Ubuntu Bold Italic */
/* MIT License (MIT), Copyright (c) 2015 Ewerton Assis <earaujoassis@gmail.com>*/

/* BEGIN Ubuntu Mono Regular */
@font-face {
  font-family: 'Ubuntu Monospace';
  src: url('../fonts/ubuntumono-regular-webfont.eot');
  src: url('../fonts/ubuntumono-regular-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntumono-regular-webfont.woff') format('woff'),
     url('../fonts/ubuntumono-regular-webfont.ttf') format('truetype'),
     url('../fonts/ubuntumono-regular-webfont.svg#ubuntu_monoregular') format('svg');
  font-weight: normal;
  font-style: normal;

}
/* END Ubuntu Mono Regular */

/* BEGIN Ubuntu Mono Italic */
@font-face {
  font-family: 'Ubuntu Monospace';
  src: url('../fonts/ubuntumono-regular-italic-webfont.eot');
  src: url('../fonts/ubuntumono-regular-italic-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntumono-regular-italic-webfont.woff') format('woff'),
     url('../fonts/ubuntumono-regular-italic-webfont.ttf') format('truetype'),
     url('../fonts/ubuntumono-regular-italic-webfont.svg#ubuntu_monoitalic') format('svg');
  font-weight: normal;
  font-style: italic;
}
/* END Ubuntu Mono Italic */

/* BEGIN Ubuntu Mono Bold */
@font-face {
  font-family: 'Ubuntu Monospace';
  src: url('../fonts/ubuntumono-b-webfont.eot');
  src: url('../fonts/ubuntumono-b-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntumono-b-webfont.woff') format('woff'),
     url('../fonts/ubuntumono-b-webfont.ttf') format('truetype'),
     url('../fonts/ubuntumono-b-webfont.svg#ubuntu_monobold') format('svg');
  font-weight: bold;
  font-style: normal;
}
/* END Ubuntu Mono Bold */

/* BEGIN Ubuntu Mono Bold Italic */
@font-face {
  font-family: 'Ubuntu Monospace';
  src: url('../fonts/ubuntumono-bold-italic-webfont.eot');
  src: url('../fonts/ubuntumono-bold-italic-webfont.eot?#iefix') format('embedded-opentype'),
     url('../fonts/ubuntumono-bold-italic-webfont.woff') format('woff'),
     url('../fonts/ubuntumono-bold-italic-webfont.ttf') format('truetype'),
     url('../fonts/ubuntumono-bold-italic-webfont.svg#ubuntu_monobold_italic') format('svg');
  font-weight: bold;
  font-style: italic;

}
/* END Ubuntu Mono Bold Italic */

/* Headings
   ======== */

/* fix heading sizes */
h1 {
  font-size: 2.5em;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1.25em;
}
h4 {
  font-size: 1.125em;
}
h5 {
  font-size: 1em;
}
h6 {
  font-size: 0.8em;
}

/* shrink heading on small font size */
@media (max-width: 63em) {
  h1 {font-size: 2em;}
}

/* heading margins */
h1, h2, h3, h4, h5, h6 {
  margin: 1rem -.5rem;
}
h1, h2 {
  margin-top: 1.75rem;
}

/* Text
   ==== */

/* override large screen font size change */
/* we have Ctrl++ for a reason */
@media (min-width: 97em) {
  html {
    font-size: 100%;
  }
}

/* Shortcut scheme
   =============== */

.shortcut-toggle {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  padding: 0;
  width: 24px;
  height: 24px;
}
.mobile-header .shortcut-toggle svg {
  width: 24px;
  height: 24px;
}
.theme-toggle-container {
  gap: .3rem;
}
.toc-header-icon {
  margin-left: .3rem;
}
.theme-toggle-content .shortcut-toggle, .theme-toggle-content .shortcut-toggle svg{
  width: 20px;
  height: 20px;
}
body[data-shortcuts=cmd] .show-on-pc {display: none;}
body[data-shortcuts=cmd] .show-on-mac {display: inline;}
body[data-shortcuts=ctrl] .show-on-mac {display: none;}
body[data-shortcuts=ctrl] .show-on-pc {display: inline;}

/* Graphic goodies
   =============== */

/* max width setting */
.w-600 {
  max-width: 600px;
}

/* inline icons */
.inline {
  display: inline;
  height: 1.1em;
  vertical-align: text-bottom;
}
/* icons in header section */
.header-icon {
  width: 3em;
}
/* decorative elements */
.deco {
  display: block;
  margin: 0 0 2em;
}

.deco.left {
  float: left;
  margin-right: 2em;
}

.deco.center {
  margin: 2em auto;
}

.deco.right {
  float: right;
  margin-left: 2em;
}                                                                                            
.deco.small {
  width: 25%;
}

.deco.medium {
  width: 50%;
}

.deco.large {
  width: 85%;
}

@media (max-width: 768px) {
  .deco {
    margin-bottom: 1em;
  }

  .deco.left {
    float: left;
    margin-right: 1em;
  }
  
  .deco.center {
    margin: 1em auto;
  }
  
  .deco.right {
    float: right;
    margin-left: 1em;
  }
  /* class for disabling floating on mobile */
  .mobile-nofloat, .deco.mobile-nofloat {
    float: none;
    width: initial;
    margin: initial;
  }
}

/* image invert in dark mode */
@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] .dark-invert {
    filter: brightness(0) invert(1);
  }
}
body[data-theme="dark"] .dark-invert {
  filter: brightness(0) invert(1);
}

/* Directives and Roles
   ==================== */

/* container settings */
.container {
  margin: 2rem 0;
}

.flex {
  display: flex;
  gap: .5em;
}

.flex > * {
  flex-grow: 1;
}

/* figures */
article figure {
  font-size: var(--admonition-font-size);
  margin: 1.5rem auto 1.25rem;
  overflow: hidden;
  page-break-inside: avoid;
}
figure img {
  border-radius: inherit;
}
figure figcaption {padding: 0.5rem 1rem 0}
figure figcaption p {margin: 0}

.two-column {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin: 2rem 0 0 0;
}

.nowrap {
  flex-wrap: nowrap;
}

.two-column div {
  display: flex;
  flex-basis: 300px;
  flex-grow: 1;
  flex-flow: column;
  margin: 4px;
}

.two-column div p.caption, .two-column figcaption {
    flex-grow: 1;
}

.two-column figure {
    display: flex;
    flex-basis: 300px;
    flex-grow: 1;
    flex-flow: column;
    margin: 4px;
}

/* video */

video {max-width: 100%}

/* lists */
ul, ol, .toctree-wrapper {
  margin-top: .5rem;
  margin-bottom: 1rem;
}

/* admonitions */
.admonition p {
  padding: 0 .25rem 0;
  margin-bottom: .25em;
  margin-top: .25rem;
}
.admonition > :last-child {
  padding-bottom: .05rem
}

/* hover links */
.code-block-caption > .headerlink,
dl dt > .headerlink,
figcaption p > .headerlink,
h1 > .headerlink,
h2 > .headerlink,
h3 > .headerlink,
h4 > .headerlink,
h5 > .headerlink,
h6 > .headerlink,
p.caption > .headerlink,
table > caption > .headerlink {
  float: inline-end;
}

/* guilabels */
.guilabel {
  border-radius: .2em;
  position: relative;
  top: -.025em;
}

/* code blocks */
pre {
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.05),0 0 .0625rem rgba(0,0,0,.1);
}

/* menuselections */
.menuselection {
  font-weight: bold;
}

/* kbds */
kbd:not(.compound) {
  font-family: Ubuntu;
  margin: 0 .1rem;
  display: inline-block;
  background-color: #eee;
  border: 1px solid #b4b4b4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
  color: #555;
  line-height: 1;
  padding: 3px 5px;
  white-space: nowrap;
  cursor: default;
}
kbd.accel {
  display: inline-block;
  background-color: #555;
  border: 1px solid #666;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .2) inset;
  color: white;
  font-weight: bold;
  line-height: 1;
  padding: 3px 5px;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

/* kbds, dark theme */
body[data-theme="dark"] kbd:not(.compound) {
  background-color: #333;
  border: 1px solid #666;
  box-shadow: 0 1px 1px rgba(0, 0, 0), 0 1.5px 0 0 rgba(255, 255, 255, .1) inset, 0 -1.5px 0 0 rgba(0, 0, 0, .5) inset;
  color: white;
}
body[data-theme="dark"] kbd:not(.compound).accel {
  background-color: #555;
  border-color: #666;
  box-shadow: 0 1px 1px rgba(0, 0, 0), 0 1.5px 0 0 rgba(255, 255, 255, .1) inset, 0 -1.5px 0 0 rgba(0, 0, 0, .15) inset;
  color: white;
}
/* copy required to support both system and selt-switched dark themes */
@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] kbd:not(.compound) {
    background-color: #333;
    border: 1px solid #666;
    box-shadow: 0 1px 1px rgba(0, 0, 0), 0 1.5px 0 0 rgba(255, 255, 255, .1) inset, 0 -1.5px 0 0 rgba(0, 0, 0, .5) inset;
    color: white;
  }
  body[data-theme="auto"] kbd:not(.compound).accel {
    background-color: #555;
    border: 1px solid #666;
    box-shadow: 0 1px 1px rgba(0, 0, 0), 0 1.5px 0 0 rgba(255, 255, 255, .1) inset, 0 -1.5px 0 0 rgba(0, 0, 0, .15) inset;
    color: white;
  }
}

/* linked kbds */
span.kbd {
  display: inline-block;
  border-radius: .2em;
  margin: 0 .1rem;
}
span.kbd > :first-child {
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
}
span.kbd > :not(:first-child) {
  border-left: none;
}
span.kbd > :last-child {
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
}
span.kbd kbd {
  margin: 0;
  border-radius: 0;
}

/* description lists & lists */
.field-list dt,
.option-list dt,
dl.footnote dt,
dl.glossary dt,
dl.simple dt,
dl:not([class]) dt {
  font-weight: bold;
}
@media (max-width: 63em) {
  dd {margin-left: 1.25em;}
}

/* tables */
.align-default th {
  text-align: left;
}
table.docutils {
  width: 100%;
}

/* inline icons */
svg.inkicon {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.25;
  position: relative;
  bottom: -0.1em;
  padding: 0 0.1em;
}
