/* The existing snapshot harness mounts the actual exported docs shell and its styles below. */
@media (min-width: 1280px) {
  html #topbar-cta-button {
    translate: var(--ds-cta-offset, 0px) 0;
  }
  html #search-bar-entry {
    margin: 0;
    position: fixed;
    left: var(--ds-article-left);
    width: var(--ds-header-search-width);
    max-width: none;
  }
}
.ds-dialog {
  padding: 0;
  margin: min(15vh, 120px) auto 0;
  width: min(640px, calc(100vw - 32px));
  max-height: 76vh;
  border: 1px solid rgb(var(--gray-200));
  border-radius: 16px;
  background: rgb(var(--background-light));
  color: rgb(var(--gray-800));
  box-shadow: 0 24px 100px #0005;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}
.dark .ds-dialog {
  background: rgb(var(--gray-950));
  color: rgb(var(--gray-200));
  border-color: rgb(var(--gray-800));
}
.ds-dialog::backdrop {
  background: #0007;
  backdrop-filter: blur(4px);
}
.ds-query {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgb(var(--gray-200));
}
.dark .ds-query,
.dark .ds-footer {
  border-color: rgb(var(--gray-800));
}
.ds-query svg {
  width: 20px;
  height: 20px;
  color: rgb(var(--primary));
  flex-shrink: 0;
}
.ds-query input {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: inherit;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
}
.ds-close {
  background: transparent;
  color: rgb(var(--gray-500));
  font-size: 11px;
  border: 1px solid rgb(var(--gray-300));
  border-radius: 5px;
  padding: 2px 5px;
  cursor: pointer;
}
.ds-results {
  padding: 10px;
  max-height: 49vh;
  overflow: auto;
}
.ds-label {
  padding: 8px 12px;
  color: rgb(var(--gray-500));
  font-size: 12px;
}
.ds-result {
  display: block;
  padding: 13px 14px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  outline: none;
}
.ds-result[aria-selected="true"] {
  background: rgb(var(--primary) / 0.1);
  box-shadow: inset 0 0 0 1px rgb(var(--primary) / 0.2);
}
.ds-result small {
  display: block;
  font-size: 11px;
  color: rgb(var(--gray-500));
  margin-bottom: 3px;
}
.ds-result strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.ds-result p {
  font-size: 13px;
  line-height: 1.6;
  color: rgb(var(--gray-500));
  margin: 5px 0 0;
}
.ds-result mark {
  background: transparent;
  color: rgb(var(--primary));
  font-weight: 600;
}
.ds-enter {
  font-size: 15px;
  color: rgb(var(--primary));
  opacity: 0;
}
.ds-result[aria-selected="true"] .ds-enter {
  opacity: 1;
}
.ds-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgb(var(--gray-200));
  padding: 11px 20px;
  color: rgb(var(--gray-500));
  font-size: 11px;
}
.ds-empty {
  padding: 35px 20px;
  text-align: center;
}

.ds-status {
  padding: 8px 12px;
  color: rgb(var(--gray-500));
  font-size: 12px;
}
.ds-more {
  display: block;
  margin: 8px auto;
  color: rgb(var(--primary));
  padding: 8px 16px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .ds-footer {
    gap: 6px;
  }
  .ds-dialog {
    margin-top: 32px;
  }
}

/* Shown inside flowjoe.app/docs (see siteEmbed.js): the site header above replaces the docs logo image (the link
   stays, titled "FlowJoe Docs" by mintlify/flowjoe-site.css) and the Download button. */
html.fj-site-embed #navbar a[href="/"] .nav-logo,
html.fj-site-embed #navbar a[href="https://flowjoe.app/download"] { display: none; }
html.fj-site-embed #navbar-transition { border-bottom-color: transparent; }
/* Superseded inside flowjoe.app: siteEmbed.js lines the switch up with the left edge of "On this page" (and
   mintlify/flowjoe-site.css keeps it at the right edge when that column is hidden and keeps the sidebar under the
   header row), overriding the two rules below. */
/* Inside flowjoe.app, line the light/dark switch up with the "On this page" column (shown from 1280px). Both are
   anchored to the right edge, so the gap is a constant 13.5rem: the column's 19rem width, minus its 2.5rem left
   padding and the switch's own 2rem width, minus the 1rem the header stops short of the column. Pages without the
   column keep the switch on the right. */
@media (min-width: 1280px) {
  html.fj-site-embed:has(#table-of-contents) #theme-preference-menu-trigger { translate: -13.5rem 0; }
}
@media (min-width: 1024px) {
  html.fj-site-embed #sidebar { margin-top: -4.6rem; top: -0.6rem; height: calc(100vh + 0.6rem); z-index: 40; background: rgb(var(--background-light)); }
  html.fj-site-embed.dark #sidebar { background: rgb(var(--background-dark)); }
}
