/* stylelint-disable docusaurus/copyright-header */
/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary-dark: rgb(33, 175, 144);
  --ifm-color-primary-darker: rgb(31, 165, 136);
  --ifm-color-primary-darkest: rgb(26, 136, 112);
  --ifm-color-primary-light: rgb(70, 203, 174);
  --ifm-color-primary-lighter: rgb(102, 212, 189);
  --ifm-color-primary-lightest: rgb(146, 224, 208);
  --ifm-code-font-size: 95%;

  /* CAN Colors */
  --ifm-color-primary: rgb(0, 208, 125);
  --ifm-link-color: rgb(59, 188, 230);

  /* Table Settings */
  --ifm-table-cell-padding: 10px;
  --ifm-table-stripe-background: none;
}

table td {
  border: var(--ifm-table-border-width) solid var(--ifm-table-border-color);
}

.pagination-nav__link:hover {
  border-color: var(--ifm-link-color);
}

.docusaurus-highlight-code-line {
  background-color: rgb(72, 77, 91);
  display: block;
  margin: 0 calc(-1 * var(--ifm-pre-padding));
  padding: 0 var(--ifm-pre-padding);
}

/* Resets the background and text color on Redoc codeblocks */
.redoc-json > code {
  background-color: rgba(0, 0, 0, 0);
}

.redoc-json > code > token.punctuation {
  color: white;
}

.redoc-json > code > .ellipsis {
  color: white;
}

/* Typography overwrites to make Redoc content consistent with Docusaurus */

.api-content {
  font-family: var(--ifm-font-family-base);
}

/* Top-level title */
.api-content .api-info h1 {
  color: var(--ifm-heading-color);
  font-size: 3rem;
  margin-bottom: calc(var(--ifm-leading-desktop) * var(--ifm-leading));
  font-weight: var(--ifm-heading-font-weight);
  line-height: var(--ifm-heading-line-height);
}

/* Headings for API sections */

div[data-section-id] h1 {
  color: var(--ifm-heading-color);
  font-size: var(--ifm-h1-font-size);
  font-weight: var(--ifm-heading-font-weight);
  line-height: var(--ifm-heading-line-height);
  font-family: var(--ifm-font-family-base);
}

div[data-section-id] h2 {
  color: var(--ifm-heading-color);
  font-size: var(--ifm-h2-font-size);
  font-weight: var(--ifm-heading-font-weight);
  line-height: var(--ifm-heading-line-height);
  font-family: var(--ifm-font-family-base);
}

div[data-section-id] h3 {
  color: var(--ifm-heading-color);
  font-size: var(--ifm-h3-font-size);
  font-weight: var(--ifm-heading-font-weight);
  line-height: var(--ifm-heading-line-height);
  font-family: var(--ifm-font-family-base);
}

div[data-section-id] h4 {
  color: var(--ifm-heading-color);
  font-size: var(--ifm-h4-font-size);
  font-weight: var(--ifm-heading-font-weight);
  line-height: var(--ifm-heading-line-height);
  font-family: var(--ifm-font-family-base);
}

div[data-section-id] h5 {
  color: var(--ifm-heading-color);
  font-size: var(--ifm-h5-font-size);
  font-weight: var(--ifm-heading-font-weight);
  line-height: var(--ifm-heading-line-height);
  font-family: var(--ifm-font-family-base);
}

div[data-section-id] h6 {
  color: var(--ifm-heading-color);
  font-size: var(--ifm-h6-font-size);
  font-weight: var(--ifm-heading-font-weight);
  line-height: var(--ifm-heading-line-height);
  font-family: var(--ifm-font-family-base);
}
