/* NeQter User Manual polish. Loaded only by pages under /user_manual/. */
:root {
  --manual-ink: #17213d;
  --manual-muted: #59647c;
  --manual-soft: #faf9ff;
  --manual-panel: #ffffff;
  --manual-line: #ded9f0;
  --manual-teal: #315dcc;
  --manual-teal-dark: #2452b7;
  --manual-mint: #f0eaff;
  --manual-green: #e65b9f;
  --manual-amber: #8a6200;
  --manual-code-bg: #171b36;
  --manual-shadow: 0 14px 34px rgba(53, 36, 110, 0.08);
}

body {
  background:
    linear-gradient(180deg, #faf7ff 0, #fdfbff 320px, #ffffff 720px);
  color: var(--manual-ink);
}

.main-content-wrap {
  background:
    radial-gradient(circle at top right, rgba(230, 91, 159, 0.07), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

.page-content {
  max-width: 1160px;
}

#main-content {
  font-size: 16.5px;
  line-height: 1.68;
}

#main-content > p:first-child {
  margin: 0 0 1.1rem;
}

#main-content > p:first-child img {
  width: min(310px, 72vw) !important;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.10));
}

#main-content > h1:first-of-type {
  max-width: 980px;
  margin: 0 0 1rem;
  color: #17213d;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

#main-content > h1:first-of-type::after {
  content: "";
  display: block;
  width: 8.5rem;
  height: 0.35rem;
  margin-top: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--manual-teal), var(--manual-green), #ffd85e);
}

#main-content > h1:first-of-type + p {
  max-width: 900px;
  color: #37425f;
  font-size: 1.12rem;
}

#main-content > h1:first-of-type + p + p {
  max-width: 900px;
  color: var(--manual-muted);
}

#main-content a {
  color: var(--manual-teal-dark);
  text-decoration-color: rgba(189, 43, 120, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

#main-content a:hover {
  color: #56308e;
  text-decoration-color: #d9468e;
}

#main-content blockquote {
  margin: 1.45rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #f1d875;
  border-left: 0.38rem solid var(--manual-amber);
  border-radius: 8px;
  background: #fff8d8;
  color: #4b3b0d;
  box-shadow: 0 10px 22px rgba(138, 98, 0, 0.08);
}

#main-content blockquote p {
  margin: 0;
}

#main-content details {
  margin: 1.75rem 0 2.25rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--manual-shadow);
}

#main-content details > summary {
  cursor: pointer;
  color: #17213d;
  font-weight: 800;
}

#main-content #markdown-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.45rem 1rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
  line-height: 1.38;
}

#main-content #markdown-toc ul {
  margin: 0.32rem 0 0.25rem;
  padding-left: 1rem;
}

#main-content #markdown-toc li {
  margin: 0.18rem 0;
}

#main-content #markdown-toc a {
  text-decoration: none;
}

#main-content h2 {
  margin-top: 3.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--manual-line);
  color: #17213d;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

#main-content h2::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 0.24rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--manual-teal);
}

#main-content h3 {
  margin-top: 2rem;
  color: #493391;
  font-size: 1.24rem;
  font-weight: 760;
  line-height: 1.28;
}

#main-content h4 {
  color: #534478;
  font-weight: 760;
}

#main-content ul,
#main-content ol {
  padding-left: 1.35rem;
}

#main-content li {
  margin: 0.28rem 0;
}

#main-content li::marker {
  color: var(--manual-teal);
  font-weight: 800;
}

#main-content .table-wrapper {
  margin: 1.35rem 0 1.8rem;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  background: var(--manual-panel);
  box-shadow: var(--manual-shadow);
  overflow-x: auto;
}

#main-content table {
  width: 100%;
  min-width: 42rem;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}

#main-content thead th {
  border: 0;
  border-bottom: 1px solid #3449a1;
  background: linear-gradient(180deg, #315dcc, #55339a);
  color: #ffffff;
  font-weight: 780;
  text-align: left;
}

#main-content th,
#main-content td {
  padding: 0.82rem 0.95rem;
  border: 0;
  border-bottom: 1px solid #e5e0f3;
  vertical-align: top;
}

#main-content tbody tr:nth-child(even) {
  background: #fdfbff;
}

#main-content tbody tr:hover {
  background: #fff0f7;
}

#main-content tbody tr:last-child td {
  border-bottom: 0;
}

#main-content code {
  padding: 0.1rem 0.34rem;
  border: 1px solid #dcd3f1;
  border-radius: 5px;
  background: #faf7ff;
  color: #5935a3;
  font-size: 0.91em;
}

#main-content pre {
  margin: 1rem 0 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid #514279;
  border-radius: 8px;
  background: var(--manual-code-bg);
  box-shadow: 0 16px 30px rgba(23, 27, 54, 0.14);
  overflow-x: auto;
}

#main-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f0ff;
  font-size: 0.93rem;
  line-height: 1.58;
}

#main-content strong {
  color: #17213d;
}

#main-content hr {
  margin-top: 3rem;
  border-color: var(--manual-line);
}

.breadcrumb-nav {
  margin-bottom: 1.3rem;
}

.breadcrumb-nav-list-item,
.breadcrumb-nav-list-item a {
  color: var(--manual-muted);
}

.navigation-list-item.active > .navigation-list-link,
.navigation-list-link.active {
  color: var(--manual-teal-dark);
  font-weight: 700;
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(76, 51, 145, 0.18);
}

@media (max-width: 50rem) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content-wrap,
  .main-content,
  .page,
  .page-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .main-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  #main-content {
    font-size: 16px;
    overflow-wrap: break-word;
  }

  #main-content > * {
    max-width: calc(100vw - 4rem) !important;
    box-sizing: border-box;
  }

  #main-content > p:first-child img {
    width: min(100%, 310px) !important;
  }

  #main-content > h1:first-of-type {
    font-size: 2rem;
    overflow-wrap: normal;
  }

  #main-content details {
    width: calc(100vw - 4rem);
    padding: 0.85rem;
  }

  #main-content #markdown-toc {
    display: block;
  }

  #main-content pre,
  #main-content .table-wrapper {
    width: calc(100vw - 4rem);
    max-width: calc(100vw - 4rem) !important;
  }

  #main-content table {
    min-width: 34rem;
  }

  #main-content th,
  #main-content td {
    padding: 0.72rem 0.78rem;
  }
}

/* Keep strong content contrast while adding pink and purple accents. */
#main-content h2::before { background: linear-gradient(90deg, #315dcc, #8450b7, #e65b9f); }
#main-content details { box-shadow: 0 10px 28px rgba(76, 51, 145, .07); }
#main-content code { background: #f0ebfc; }
.search-input:focus { box-shadow: 0 0 0 3px rgba(189, 43, 120, .18); }