.wy-side-nav-search .icon-home {
  padding: 0 !important;
  font-size: 125% !important;
}

.wy-side-nav-search .icon-home:hover {
  text-decoration: none !important;
}

.wy-side-nav-search .icon-home:before {
  content: "" !important;
  background: url(/images/Cotality_Logomark_RGB_Cream.svg) no-repeat center;
  height: 45px;
  width: 45px;
  vertical-align: middle;
  margin-left: -8px;
}

.wy-nav-content {
  max-width: 1140px !important;
}

.wy-table-responsive {
  overflow: visible !important;
}

pre:has(code) {
  /* display: none; */
}

.document h2 {
  font-size: 1.5em !important;
}

.document video {
  max-width: 100% !important;
  display: block !important;
}

.tabs {
  display: flex;
  /* border-bottom: 2px solid #ccc; */
  /* margin-bottom: 10px; */
}

.tab {
  padding: 8px 16px;
  color: rgba(58, 58, 58, 0.75);
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f5f5f5;
  margin-right: 4px;
}

.tab.active {
  background-color: transparent;
  /* font-weight: bold; */
  border-bottom: 1px solid #fcfcfc;
  color: rgba(58, 58, 58, 1);
  margin-bottom: -1px;
  z-index: 1000;
}

.code-block {
  display: none;
}

.code-block.active {
  display: block;
}

.code-block pre code {
  font-size: 14px;
  /* border: 1px solid #ccc;
  border-top: none; */
  border-radius: 0;
  z-index: 999;
}

footer .btn .icon-circle-arrow-left::before {
  margin-right: 8px;
}

footer .btn .icon-circle-arrow-right::before {
  margin-left: 8px;
}

/* Make rst-content fill the viewport vertically with footer pinned to the bottom */
.wy-nav-content-wrap,
.wy-nav-content {
  padding: 0 !important;
  /* min-height: 100vh; */
}

.rst-content {
  padding: 1.618em 3.236em !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 4em !important;
}

.rst-content footer {
  margin-top: auto;
}

/* Copy buttons (shared) */
pre {
  position: relative;
}

.copy-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition:
    opacity 0.15s ease,
    color 0.15s ease;
  outline: none !important;
}

/* Code block copy button */
.copy-code-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 4px 6px;
  font-size: 18px;
  color: rgba(0, 0, 0, 1);
  opacity: 0.5;
  margin: 0 !important;
}

/* Heading link copy button */
.copy-link-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4em;
  padding: 2px 5px;
  font-size: 0.7em;
  vertical-align: middle;
  color: currentColor;
  opacity: 0;
}

:is(h1, h2, h3, h4, h5, h6):hover .copy-link-btn {
  opacity: 0.5;
}

.copy-btn:hover,
.copy-btn:has(.fa-check) {
  opacity: 1 !important;
}

.copy-btn .fa-check {
  color: #8bc34a;
}