/* stylelint-disable docusaurus/copyright-header */
* {
  list-style: none;
}

html,
body {
  overflow: hidden;
}

html {
  --snippet-header-height: 36px;
  background-color: var(--default-background-color);
}

.h1,
h1 {
  font-size: var(--h1-size);
}

.h2,
h2 {
  font-size: var(--h2-size);
}

.h3,
h3 {
  font-size: var(--h3-size);
}

body,
input {
  font-family: "NB International Pro";
}

code,
blockquote,
li {
  word-break: break-word;
}

table code {
  word-break: initial;
}

ol li {
  list-style: decimal;
}

body a:hover {
  color: var(--ifm-link-color);
}

body .hash-link {
  padding-right: 9px;
  position: absolute;
}

main > .container.padding-vert--lg {
  padding-top: 0 !important;
}

.main-content {
  flex: 1;
  max-width: calc( 100% - var(--right-sidebar-width) );
}

.width-wrapper {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1440px;
  width: 100%;
}

.width-wrapper.diem-org-width {
  max-width: 1400px;
}

article header h1 {
  margin-bottom: 11px;
}

article h1 {
  font-weight: normal;
  letter-spacing: -0.2px;
}

.markdown li {
  list-style: initial;
}

.markdown > h2 {
  font-weight: 400;
  margin-top: 37px;
  margin-bottom: 25px;
}

article h1,
.markdown > h4,
.markdown > h5,
.markdown > h6 {
  font-weight: normal;
}

article h1,
.markdown > h2,
.markdown > h3,
.markdown > h4,
.markdown > h5,
.markdown > h6 {
  position: relative;
}

.markdown > p,
.markdown > .p,
.markdown li {
  font-weight: lighter;
}

.markdown > p,
.markdown > .p {
  font-size: 18px;
  line-height: inherit;
  margin: 11px 0;
}

.markdown > p,
.markdown > .p,
.markdown > * > li {
  color: var(--doc-secondary-color);
}

.markdown > ul > li {
  list-style: initial;
}

.container {
  padding: 0;
}

/*
 * These are selectors classes that we do not have
 * direct access to, as they are scope by CSS modules.
 * Most of them belong to the DocPage component.
 * The original class is written for reference
 * Due to the fragile nature of selecting a class like this,
 * it may break upon further updates.
 */
.main-wrapper > div {
  /* .docPage */
  color: var(--doc-primary);
}

/*.docSidebarContainer {*/
.main-wrapper > div > div:first-child:not(.row):not(.modal) {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 302px;
  margin-top: 0;
  position: relative;
}

/* docMainContainer */
main {
  flex: 1;
  flex-grow: 1;
}

/* codeBlockLines */
.prism-code > div {
  width: 0;
}

/* Container for the /papers page */
.archiveContainer {
  margin: 2em;
}

/* Adds spacing to default layouts like PageNotFound */
.row {
  margin: 0 auto;
}

/* Code Snippet */
.snippet-container {
  --copy-snippet-url: url("/img/shared/copy.svg");
  --copy-snippet-hover-url: url("/img/shared/copy-hover.svg");
  --snippet-background: rgb(246, 248, 250);
  --snippet-button-color: #6b7689;
  --snippet-button-hover-color: #15112c;
  background-color: var(--snippet-background);
  border-radius: var(--snippet-border-radius);
  position: relative;
}

.snippet-container .tabs,
.snippet-header {
  background-color: var(--snippet-header-background);
  border-top-left-radius: var(--ifm-global-radius);
  border-top-right-radius: var(--ifm-global-radius);
  flex-wrap: wrap;
  height: var(--snippet-header-height);
}

.snippet-container:not(.is-within-multi-step) .prism-code {
  border: 1px solid var(--snippet-border-color);
  max-height: 350px;
}

.single-wrapper {
  height: 100%;
}

.snippet-container .prism-code {
  margin-top: calc(var(--snippet-header-height) * -1);
  padding-top: var(--snippet-header-height);
}

.snippet-container .tab-item {
  border: 0px !important;
  font-family: NB International Pro Bold;
  font-size: 12px;
  outline: none;
  padding: 8px;
}

.snippet-container .tab-item:hover,
.snippet-container .tab-item:focus {
  background-color: inherit;
}

.snippet-container .tab-item:first-child {
  padding-left: 15px;
}

.snippet-container div {
  position: initial;
}

.snippet-container div[role="tabpanel"] {
  margin: 0 !important;
}

.snippet-container button {
  background-color: transparent;
  background-image: var(--copy-snippet-url);
  background-repeat: no-repeat;
  background-position: right;
  background-size: 12px;
  opacity: 1;
  padding-right: 20px;
  right: 20px;
  top: 1px;
  visibility: visible;
}

.snippet-container button:hover {
  --copy-snippet-url: var(--copy-snippet-hover-url);
}

.snippet-container button,
.snippet-container .learn-more {
  color: var(--snippet-button-color);
  font-size: 10px;
  line-height: var(--snippet-header-height);
  padding-top: 0;
  padding-bottom: 0;
}

.snippet-container button:hover,
.snippet-container .learn-more:hover {
  color: var(--snippet-button-hover-color);
}

.snippet-container .learn-more {
  position: absolute;
  right: 82px;
  text-decoration: none;
  top: 0;
}

.snippet-container.is-within-multi-step .prism-code {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

html[data-theme="dark"] .snippet-container {
  --copy-snippet-url: url("../img/shared/copy-dark.svg");
  --copy-snippet-hover-url: url("../img/shared/copy-dark-hover.svg");
  --snippet-button-color: white;
  --snippet-button-hover-color: rgba(255, 255, 255, 0.7);
  --snippet-background: rgb(41, 45, 62);
}

/* Fonts */
@font-face {
  font-family: "NB International Pro Bold";
  src: url("./fonts/nb_international_pro_bold.otf");
}

@font-face {
  font-family: "NB International Pro";
  font-weight: 500;
  src: local("NBInternationalPro-Bold"), local("NBInternationalBoldWebfont"),
    url("./fonts/nb_international_pro_bold.otf");
}

@font-face {
  font-family: "NB International Pro";
  font-weight: 400;
  font-style: normal;
  font-display: auto;
  src: local("NBInternationalPro-Reg"), local("NBInternationalRegularWebfont"),
    url("./fonts/nb_international_pro_regular-webfont-c77cab7d176ad6c0a735e9e54398f4b5.eot")
      format("embedded-opentype"),
    url("./fonts/nb_international_pro_regular-webfont-23316df531b081018ab50f3fdebb911d.woff2")
      format("woff2"),
    url("./fonts/nb_international_pro_regular-webfont-2055eda1f28e3f2766b54ff5d7fa9c3a.woff")
      format("woff"),
    url("./fonts/nb_international_pro_regular-webfont-5a1862044e5200d96d6e081b00abaab2.ttf")
      format("truetype");
}

@font-face {
  font-family: "NB International Pro";
  font-weight: 300;
  font-style: normal;
  font-display: auto;
  src: local("NBInternationalPro-Lig"), local("NBInternationalLightWebfont"),
    url("./fonts/nb_international_pro_light-webfont-79e1edf03d8ddf7d46731839a1463613.eot")
      format("embedded-opentype"),
    url("./fonts/nb_international_pro_light-webfont-51e77a94d273016b7b0fbf54dc201e99.woff2")
      format("woff2"),
    url("./fonts/nb_international_pro_light-webfont-21efbc5b931089585cc7d67affc7490e.woff")
      format("woff"),
    url("./fonts/nb_international_pro_light-webfont-07bd85ca228c4cd11e30a21b915f20c6.ttf")
      format("truetype");
}
