/* ==========================================================
   SPARKK / UP NEXT — EDITORIAL CSS v8.5
   COMPLETE REPLACEMENT for upnext-v8-2.css / upnext.css.
   Load after HelpSpace's docs.css. CSS only: no HTML or JS.
   Shared warm-ivory editorial canvas; full-width site chrome.
   ========================================================== */

:root {
  --un-midnight: #110033;
  --un-purple: #220066;
  --un-violet: #4302b2;
  --un-lime: #b8f818;
  --un-ivory: #f3edde;
  --un-paper: #fffaf3;
  --un-ink: #110033;
  --un-copy: #51495f;
  --un-muted: #746c7e;
  --un-line: rgba(17,0,51,.13);
  --un-light-line: rgba(243,237,222,.16);
  --un-radius: 14px;
  --un-font: 'Mont', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Mont priority without overwriting icon fonts or monospace code. */
html body,
html body :is(h1,h2,h3,h4,h5,h6,p,a,span,small,div,li,blockquote,label,time,button,input,textarea,select,strong,em,b,td,th,summary):not(i):not([class*="fa-"]):not([class*="icon"]) {
  font-family: var(--un-font) !important;
}
html { font-size: 17px; background: var(--un-ivory); }
body, .docs-site { background: var(--un-ivory) !important; color: var(--un-ink); }
button, input, select, textarea { font-family: var(--un-font); }
h1,h2,h3,h4,h5,h6 { font-family: var(--un-font); text-decoration: none; }
:where(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--un-violet); outline-offset: 3px; }

/* ==========================================================
   HEADER — BROADCAST BAR
   A dark editorial masthead with one cohesive navigation rail.
   The existing HelpSpace logo, navigation and search remain real.
   ========================================================== */
.docs-header {
  position: relative;
  z-index: 10;
  color: var(--un-ivory) !important;
  background:
    linear-gradient(112deg, rgba(67,2,178,.28), transparent 39%),
    linear-gradient(95deg, #0d0027 0%, #110033 58%, #0a001d 100%) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(243,237,222,.14) !important;
  box-shadow: 0 8px 24px rgba(17,0,51,.07);
}
/* No arbitrary lime stripe along the page edge. */
.docs-header::before,
.docs-header::after { content: none !important; display: none !important; }
.docs-header-site-logo {
  display: block;
  height: clamp(1.5rem,1.8vw,1.7rem) !important;
  max-width: min(100%,13.5rem);
  width: auto; object-fit: contain; margin: auto;
}
.docs-header .absolute.top-0.mt-\[-0\.4rem\].md\:pl-8.right-0.w-full.z-50 { margin-top: .4rem; }
.docs-header .mt-8 { margin-top: 1.05rem; }
.docs-header .mb-8 { margin-bottom: 1.05rem; }
/* One navigation group, not five separate buttons. */
.docs-header .docs-top-menu {
  align-items: center;
  gap: clamp(.1rem,.45vw,.45rem);
}
.docs-header .docs-top-menu li a,
.docs-header .docs-top-menu-item:not(svg) {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: .35rem clamp(.38rem,.75vw,.75rem) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: rgba(243,237,222,.74) !important;
  font-size: clamp(.72rem,.83vw,.81rem) !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: color .2s ease;
}
.docs-header .docs-top-menu li a::after {
  content: ""; position: absolute;
  left: .7rem; right: .7rem; bottom: .22rem;
  height: 2px; border-radius: 2px;
  background: transparent;
  transition: background-color .2s ease;
}
.docs-header .docs-top-menu li a:hover,
.docs-header .docs-top-menu li.active a {
  color: var(--un-ivory) !important;
}
.docs-header .docs-top-menu li a:hover::after,
.docs-header .docs-top-menu li.active a::after { background: var(--un-lime); }
.docs-header .docs-top-menu li a:focus-visible { outline: 2px solid var(--un-lime); outline-offset: 2px; }
@media (min-width:900px) {
  .docs-header :is(.max-w-3xl,.max-w-4xl,.max-w-5xl,.max-w-6xl,.max-w-7xl):has(.docs-top-menu) {
    max-width: 1120px !important;
  }
  .docs-header .docs-top-menu {
    padding: .18rem .55rem !important;
    background: rgba(243,237,222,.055) !important;
    border: 1px solid rgba(243,237,222,.09) !important;
    border-radius: 999px !important;
  }
}
/* Keep the existing search markup, and centre the input's text. */
.docs-header input:not([type="checkbox"]):not([type="radio"]) {
  box-sizing: border-box;
  height: 2.75rem !important; min-height: 2.75rem !important;
  padding-top: 0 !important; padding-bottom: 0 !important;
  line-height: 2.75rem !important;
  font-size: .94rem !important; font-weight: 500;
  vertical-align: middle;
}
.docs-header input::placeholder { line-height: inherit !important; opacity: .82; }
@media(max-width:767px) {
  .docs-header-site-logo { height: 1.45rem !important; }
  .docs-header .mt-8 { margin-top: .9rem; }
  .docs-header .mb-8 { margin-bottom: .9rem; }
}

/* ==========================================================
   HOMEPAGE AND LISTINGS — consistent editorial ivory
   ========================================================== */
/* Remove v4's narrow, disconnected pastel gradient panel. */
.docs-site-overview { color: var(--un-ink); background: transparent !important; }
.docs-site-overview .text-center.mt-10.mb-10.md\:mb-20.px-5 {
  position: relative;
  margin: 0 auto !important;
  padding: clamp(3.25rem,5.5vw,5.5rem) clamp(1rem,2vw,1.5rem) clamp(2.5rem,4vw,3.5rem) !important;
  text-align: left !important;
  border: 0;
  background: transparent !important;
}
.docs-site-overview .text-center.mt-10.mb-10.md\:mb-20.px-5::before {
  content: ""; display: block; width: 3.75rem; height: 4px;
  margin: 0 0 1.4rem; background: var(--un-lime);
  border-radius: 2px;
}
.docs-site-overview .text-center.mt-10.mb-10.md\:mb-20.px-5::after {
  content: ""; display: block; height: 1px; width: 100%;
  margin: 2rem 0 0; background: var(--un-line);
}
.docs-site-header-title {
  max-width: 18ch; margin: 0 !important;
  color: var(--un-ink) !important;
  font-size: clamp(3.2rem,6vw,5.4rem);
  font-weight: 900 !important; line-height: .96;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}
.docs-site-header-subtitle {
  max-width: 58ch; margin: 1rem 0 0 !important;
  color: var(--un-copy) !important;
  font-size: clamp(1rem,1.25vw,1.15rem);
  line-height: 1.6; font-weight: 500;
  text-wrap: pretty;
}
@media(min-width:900px) {
  .docs-site-overview :is(.max-w-3xl,.max-w-4xl,.max-w-5xl,.max-w-6xl,.max-w-7xl):has(.docs-site-article-list-item) {
    max-width:1120px !important;
  }
  .docs-site-overview .text-center.mt-10.mb-10.md\:mb-20.px-5 {
    max-width:1120px !important;
  }
}
.docs-site-overview .grid:has(.docs-site-article-list-item) { gap: clamp(1.1rem,2vw,1.65rem) !important; }

/* Keep HelpSpace's grid. Let the art and headlines drive each card. */
.docs-site-article-list-item {
  overflow: hidden;
  background: var(--un-paper) !important;
  color: var(--un-ink) !important;
  border: 1px solid rgba(17,0,51,.10) !important;
  border-radius: var(--un-radius) !important;
  box-shadow: 0 5px 18px rgba(17,0,51,.055) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.docs-site-article-list-item:hover {
  transform: translateY(-4px);
  border-color: rgba(67,2,178,.3) !important;
  box-shadow: 0 15px 30px rgba(17,0,51,.13) !important;
}
.docs-site-article-list-item-image { overflow: hidden; background: var(--un-purple); }
.docs-site-article-list-item-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: none !important; transition: none !important;
}
.docs-site-article-list-item:hover .docs-site-article-list-item-image img { transform: none !important; }
.docs-site-article-list-item a.text-gray-650 {
  margin-bottom: .25rem; padding: 1rem;
  background: transparent !important; color: var(--un-ink) !important;
  text-decoration: none !important;
}
.docs-site-article-list-item :is(h2,h3,h4,.font-bold,.font-extrabold) {
  color: var(--un-ink) !important; font-weight: 900; line-height: 1.22;
}
.docs-site-article-list-item p,
.docs-site-article-list-item :is(.text-gray-600,.text-gray-650,.text-gray-700) {
  color: var(--un-copy) !important; line-height: 1.65;
}
.docs-site-article-list-item :is(.text-gray-400,.text-gray-500,.opacity-75) { color: var(--un-muted) !important; }
.docs-site-article-list-item small.bg-gray-100 {
  display: inline-block; background: transparent !important;
  color: var(--un-violet) !important; border: 0;
  border-radius: 0; padding: .12rem 0;
  font-size: .66rem; font-weight: 900;
  letter-spacing: .065em !important; text-transform: uppercase;
}

/* ==========================================================
   PAGINATION — one consistent box for EVERY direct item.
   HelpSpace may render arrows as links and page numbers as li/span;
   do not assume only direct li children. No nested full-height spans.
   ========================================================== */
.pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  margin-inline: auto;
  padding: 0 !important;
  list-style: none !important;
}
.pagination > * {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 2.7rem !important;
  inline-size: 2.7rem !important;
  min-inline-size: 2.7rem !important;
  block-size: 2.7rem !important;
  min-block-size: 2.7rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--un-violet) !important;
  border: 1px solid rgba(17,0,51,.16) !important;
  border-radius: .6rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  list-style: none !important;
  transition: background-color .2s ease, border-color .2s ease;
}
.pagination > * > :is(a,button,span) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  inline-size: 100% !important;
  block-size: 100% !important;
  min-block-size: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}
.pagination > :is(a,button,span) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pagination :is(svg,img) {
  display: block !important;
  width: 1.05rem !important;
  height: 1.05rem !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}
.pagination > *:hover:not(.active):not([aria-current="page"]) {
  background: rgba(67,2,178,.055) !important;
  border-color: rgba(67,2,178,.32) !important;
}
.pagination > :is(.active,[aria-current="page"]),
.pagination > *:has(> [aria-current="page"]) {
  background: var(--un-midnight) !important;
  border-color: var(--un-midnight) !important;
  color: var(--un-lime) !important;
}
.pagination > :is(.active,[aria-current="page"]) > *,
.pagination > *:has(> [aria-current="page"]) > * {
  color: var(--un-lime) !important;
}
.pagination > :is(.disabled,[aria-disabled="true"]),
.pagination > *:has(> [disabled]),
.pagination > *:has(> [aria-disabled="true"]) {
  opacity: .36 !important;
  cursor: default !important;
}
.docs-pagination a { color: var(--un-violet); font-weight: 900; text-decoration: none; }
.docs-pagination a:hover { color: var(--un-midnight); }

/* ==========================================================
   ARTICLES — same warm-ivory visual world, editorial typography
   ========================================================== */
.docs-article { color: var(--un-ink); word-break: normal; overflow-wrap: break-word; }
.docs-article .docs-article-title {
  color: var(--un-ink); font-family: var(--un-font);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 900; letter-spacing: -.035em !important;
  line-height: 1.06; margin-bottom: .6rem;
}
.docs-article .docs-article-subtitle {
  color: var(--un-muted); font-size: clamp(.93rem,1.18vw,1.08rem);
  line-height: 1.6; font-weight: 500; margin-top: .4rem;
}
.docs-article .docs-article-image { border-radius: var(--un-radius) !important; overflow: hidden !important; }
.docs-article .docs-article-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.docs-article p { color: var(--un-copy); font-size: 1rem; line-height: 1.85; font-weight: 400; margin: 1.15rem 0 0; }
.docs-article :is(h1,h2,h3,h4,h5,h6) { color: var(--un-ink); font-family: var(--un-font); }
.docs-article h2:not(.docs-article-subtitle) {
  margin: 2.8rem 0 0; padding: 1.2rem 0 0;
  font-size: clamp(1.45rem,2vw,1.9rem); line-height: 1.16;
  font-weight: 900; border-top: 1px solid var(--un-line);
}
.docs-article h3 { margin: 2rem 0 0; font-size: clamp(1rem,1.3vw,1.15rem); line-height: 1.3; font-weight: 900; }
.docs-article h6 { margin: 2rem 0 .25rem; font-size: .73rem; color: var(--un-violet); font-weight: 900; text-transform: uppercase; }
.docs-article :is(ul,ol) { margin: 1.25rem 0 0; padding-left: 1.3rem; }
.docs-article li { margin: .5rem 0; color: var(--un-copy); line-height: 1.75; }
.docs-article :is(ul,ol) li p { margin: .45rem 0; }
.docs-article a:not(.no-underline) { color: var(--un-violet); font-weight: 700; text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .2em; text-decoration-color: rgba(67,2,178,.3); }
.docs-article a:hover, .docs-article a:focus-visible { color: var(--un-midnight); text-decoration-color: currentColor; }
.docs-article blockquote {
  margin: 2.5rem 0 0; padding: 1.25rem 0 1.25rem 1.35rem;
  background: transparent; border-left: 4px solid var(--un-lime);
  border-top: 1px solid var(--un-line); border-bottom: 1px solid var(--un-line);
  border-radius: 0; color: var(--un-ink); font-style: normal;
  font-size: clamp(1.15rem,1.6vw,1.4rem); font-weight: 900; line-height: 1.38;
}
.docs-article code { background: rgba(67,2,178,.065); border: 1px solid rgba(67,2,178,.15); border-radius: 6px; color: var(--un-violet); font-size: .85rem; font-weight: 700; padding: .2rem .45rem; }
.docs-article table { margin: 2rem 0 0; overflow: hidden; border: 1px solid var(--un-line); border-radius: var(--un-radius); }
.docs-article table tr { border-top: 1px solid var(--un-line); font-size: .95rem; }
.docs-article table tr th { background: var(--un-midnight); color: var(--un-ivory); font-size: .8rem; font-weight: 900; text-transform: uppercase; padding: .75rem 1rem; }
.docs-article table tr th p { color: var(--un-ivory); font-size: .8rem; }
.docs-article table td { color: var(--un-copy); }
.docs-article .border-gray-200 { border-color: var(--un-line) !important; }
.docs-article-video-container { border: 1px solid var(--un-line); border-radius: var(--un-radius); overflow: hidden; }
.docs-article-video, .docs-article iframe { border: 0; padding: 0 !important; }
.docs-article iframe { border-radius: 0; }

/* Taxonomy, search and breadcrumbs stay legible on ivory. */
.docs-site-breadcrumb-tag { background: rgba(67,2,178,.07); color: var(--un-ink); border: 1px solid var(--un-line); border-radius: 6px; }
.docs-categories-tags a, .docs-article-tags a { color: var(--un-violet); }
.docs-categories-tags a:hover, .docs-article-tags a:hover { color: var(--un-midnight); }
.docs-search-hit, .text__highlight.docs-search-hit { background: rgba(184,248,24,.3); color: var(--un-midnight); box-shadow: 0 0 0 2px rgba(184,248,24,.3); }
.spm-heading-link { display: none; }

/* ==========================================================
   FOOTER — THE EDITORIAL COLOPHON
   Actual supplied Sparkk / Up Next SVG at left, existing links
   across the right; a separate, readable copyright row below.
   No extra UP NEXT text, ghost wordmarks or fabricated links.
   ========================================================== */
.docs-footer {
  position: relative;
  box-sizing: border-box !important;
  display: block !important;
  width: 100vw !important; max-width: none !important;
  margin: clamp(3rem,5vw,4.25rem) 0 0 calc(50% - 50vw) !important;
  padding: clamp(3rem,5vw,4.5rem) max(1.5rem,calc((100vw - 1120px)/2)) 1.5rem !important;
  color: var(--un-ivory) !important;
  background:
    radial-gradient(ellipse 55% 100% at 18% 0%,rgba(67,2,178,.25),transparent 80%),
    linear-gradient(125deg,#0a0518,#110033 55%,#080014) !important;
  border: 0 !important;
  text-align: left !important;
  box-shadow: none !important;
}
/* The short lime rule at the top appeared as an accidental fragment.
   Keep the footer edge completely clean. */
.docs-footer::before { content: none !important; display: none !important; }
.docs-footer::after { content: none !important; display: none !important; }
.docs-footer > * { position: relative; z-index: 1; }
.docs-footer .hidden.md\:inline-block.font-bold.mx-1,
.docs-footer .rounded { display: none; }

/* Desktop: a single horizontal identity + navigation row. */
.docs-footer-menu,
ul.docs-footer-menu.w-full.flex.flex-row.justify-center.text-xs {
  display: grid !important;
  grid-template-columns: 16.5rem repeat(5,minmax(0,1fr));
  align-items: center !important;
  justify-content: stretch !important;
  column-gap: clamp(1.4rem,2vw,1.85rem);
  row-gap: 0;
  width: 100% !important; max-width: 1120px;
  min-width: 0;
  margin: 0 auto !important;
  padding: 0 0 clamp(2rem,3.5vw,3rem) !important;
  border-bottom: 1px solid rgba(243,237,222,.18);
  list-style: none;
  text-align: left !important;
}
/* Complete, unmodified Sparkk / Up Next wordmark provided by user. */
ul.docs-footer-menu::before {
  content: "";
  display: block;
  grid-column: 1; grid-row: 1;
  min-width: 0; width: 100%;
  height: 3.25rem;
  margin: 0;
  background-image: url("https://cdn.helpspace.com/4ae1dbc49c514e278cbb60b25f44cbbb/media/4174/UpNext_logo.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: min(100%,13.75rem) auto;
  /* A balanced gap: ~2.75rem after the 13.75rem logo,
     then ~1.85rem from the divider to the first link. */
  border-right: 1px solid rgba(243,237,222,.18);
  width: 100%;
}
ul.docs-footer-menu::after { content: none !important; display: none !important; }
.docs-footer-menu > li {
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  align-self: center;
}
.docs-footer-menu a {
  display: inline-block !important;
  width: auto !important; min-height: 0 !important;
  padding: .5rem 0 !important;
  color: rgba(243,237,222,.83) !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  font-size: clamp(.84rem,1vw,.96rem) !important;
  font-weight: 900 !important; line-height: 1.4 !important;
  letter-spacing: .015em !important;
  text-transform: uppercase; text-decoration: none !important;
  white-space: nowrap;
  transition: color .2s ease,border-color .2s ease;
}
.docs-footer-menu a:hover,
.docs-footer-menu a:focus-visible {
  color: var(--un-lime) !important;
  border-bottom-color: var(--un-lime) !important;
}
/* Distinct legal line with dependable text contrast. */
.docs-footer .w-full.opacity-75 {
  display: block;
  width: 100%; max-width: 1120px;
  margin: 1.35rem auto 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  color: rgba(243,237,222,.9) !important;
  font-size: .91rem !important;
  font-weight: 700 !important;
  line-height: 1.6;
  text-align: left !important;
}
.docs-footer .w-full.opacity-75 :is(span,p,small),
.docs-footer .flex-wrap span {
  color: rgba(243,237,222,.9) !important;
  opacity: 1 !important;
  font-size: .91rem !important;
  font-weight: 700 !important;
}
body:has(.docs-article) .docs-footer { margin-top: 3rem !important; }

/* On medium widths the links become a tidy second row. */
@media(min-width:768px) and (max-width:1050px) {
  .docs-footer-menu,
  ul.docs-footer-menu.w-full.flex.flex-row.justify-center.text-xs {
    grid-template-columns: repeat(5,minmax(0,1fr));
    row-gap: 1.45rem;
  }
  ul.docs-footer-menu::before {
    grid-column: 1 / -1; grid-row: 1;
    width: min(16rem,100%); height: 3rem;
    border-right: 0;
  }
  .docs-footer-menu > li { grid-row: 2; }
}
@media(max-width:767px) {
  .docs-footer { padding: 2.75rem 1.25rem 1.5rem !important; }
  .docs-footer-menu,
  ul.docs-footer-menu.w-full.flex.flex-row.justify-center.text-xs {
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 1.25rem; row-gap: .8rem;
    padding-bottom: 1.8rem !important;
  }
  ul.docs-footer-menu::before {
    grid-column: 1 / -1; grid-row: 1;
    width: 100%; height: 3.3rem;
    background-size: min(100%,13rem) auto;
    margin-bottom: .75rem;
    border-right: 0;
  }
  .docs-footer-menu > li { grid-row: auto; }
  .docs-footer-menu a { padding: .4rem 0 !important; font-size: .86rem !important; }
  .docs-footer .w-full.opacity-75 { margin-top: 1rem !important; }
}

/* ==========================================================
   RESPONSIVE / MOTION
   ========================================================== */
@media (min-width: 900px) {
  body:has(.docs-article) :is(.max-w-xl,.max-w-2xl,.max-w-3xl,.max-w-4xl):has(.docs-article) { max-width: 880px !important; }
}
@media (max-width: 767px) {
  .docs-site-header-title { font-size: clamp(2.4rem,9vw,3.75rem); }

}
@media (prefers-reduced-motion: reduce) {
  .docs-site-article-list-item { transition: none; }
  .docs-site-article-list-item:hover { transform: none; }
}

/* ==========================================================
   V8.2 — SEARCH SVG FIX + MOBILE MENU
   The search SVG uses .docs-top-menu-item; it is NOT a nav link.
   Use one CSS-painted magnifier to avoid dependence on unknown
   SVG path/fill attributes in HelpSpace's template.
   ========================================================== */

/* Native interactive SVG: a real, visible 44px touch target.
   Never give an SVG link typography, flex layout or nav padding. */
.docs-header svg.docs-top-menu-item {
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 2.75rem !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem !important;
  min-height: 0 !important;
  max-width: 2.75rem !important;
  max-height: 2.75rem !important;
  margin: 0 !important;
  padding: .64rem !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: var(--un-ivory) !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.7' cy='10.7' r='6.45' fill='none' stroke='%23f3edde' stroke-width='1.9'/%3E%3Cpath d='M15.6 15.6 21 21' fill='none' stroke='%23f3edde' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 1.48rem 1.48rem !important;
  border: 1px solid transparent !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: background-color .2s ease,border-color .2s ease !important;
}
/* Hide the original icon drawing, not the SVG/button itself. This
   prevents an overlapping second magnifying glass. */
.docs-header svg.docs-top-menu-item > * {
  opacity: 0 !important;
}
.docs-header svg.docs-top-menu-item:hover,
.docs-header svg.docs-top-menu-item:focus-visible {
  background-color: rgba(243,237,222,.09) !important;
  border-color: rgba(243,237,222,.16) !important;
}
.docs-header svg.docs-top-menu-item:focus-visible {
  outline: 2px solid var(--un-lime) !important;
  outline-offset: 3px !important;
}

/* Keep the popup dark so the same warm-white links remain readable. */
@media (max-width: 899px) {
  .docs-header .docs-top-menu,
  .docs-header :is(div,nav,ul):has(> .docs-top-menu),
  .docs-header :is(div,nav,ul)[class~="bg-white"]:has(.docs-top-menu) {
    background-color: var(--un-midnight) !important;
    background-image: linear-gradient(135deg,#16053b,#100027 78%) !important;
    color: var(--un-ivory) !important;
  }
  .docs-header .docs-top-menu {
    border: 1px solid rgba(243,237,222,.16) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 44px rgba(3,0,16,.28) !important;
    overflow: hidden;
  }
  .docs-header .docs-top-menu li,
  .docs-header .docs-top-menu li a,
  .docs-header .docs-top-menu-item:not(svg) {
    color: var(--un-ivory) !important;
    background: transparent !important;
    opacity: 1 !important;
  }
  .docs-header .docs-top-menu li a:hover,
  .docs-header .docs-top-menu li.active a {
    color: var(--un-lime) !important;
    background: rgba(243,237,222,.055) !important;
  }
  /* Larger icon drawing, without making the entire mobile header taller. */
  .docs-header svg.docs-top-menu-item {
    flex-basis: 3rem !important;
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    max-width: 3rem !important;
    max-height: 3rem !important;
    background-size: 1.72rem 1.72rem !important;
    padding: .59rem !important;
    /* Moving the actual interactive SVG shifts the icon AND click target.
       Margin alone had no effect in HelpSpace's positioned mobile toolbar. */
    margin-right: 0 !important;
    transform: translateX(-1.25rem) !important;
    border-color: transparent !important;
  }
  /* Avoid the old hover/focus ring crowding the hamburger. */
  .docs-header svg.docs-top-menu-item:hover {
    background-color: transparent !important;
    border-color: transparent !important;
  }
}
@media (max-width: 380px) {
  .docs-header svg.docs-top-menu-item { transform: translateX(-.8rem) !important; }
}

/* ==========================================================
   V8.4 — Pagination: one surface, no nested hover card
   ========================================================== */
.pagination > li {
  overflow: hidden !important;
  isolation: isolate;
}
/* HelpSpace gives inner links/spans their own hover/focus surface.
   Make the outer box the ONLY painted control. */
.pagination > li :is(a,button,span,div),
.pagination > li :is(a,button,span,div):hover,
.pagination > li :is(a,button,span,div):focus,
.pagination > li :is(a,button,span,div):focus-visible {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: inherit !important;
}
.pagination > li:not(.active):not(.disabled):not([aria-current="page"]):not([aria-disabled="true"]):not(:has([disabled])):not(:has([aria-disabled="true"])):is(:hover,:focus-within) {
  background: var(--un-purple) !important;
  border-color: var(--un-purple) !important;
  color: var(--un-lime) !important;
}
.pagination > li:focus-within { outline: 2px solid var(--un-violet) !important; outline-offset: 3px !important; }
.pagination > li.active:focus-within { outline-color: var(--un-lime) !important; }
.pagination > li.disabled:hover,
.pagination > li:has([disabled]):hover,
.pagination > li:has([aria-disabled="true"]):hover { background: transparent !important; border-color: var(--un-line) !important; }

/* ==========================================================
   UP NEXT v8.5 — Two targeted fixes for v8.4
   Add at the END of v8.4, or use the complete v8.5 file.
   ========================================================== */

/* 1. Desktop search overlay: v8.4's +.4rem margin pushes it down.
   Mobile retains its existing (correct) positioning. */
@media (min-width: 900px) {
  .docs-header .absolute.top-0.mt-\[-0\.4rem\].md\:pl-8.right-0.w-full.z-50 {
    margin-top: 0 !important;
  }
}

/* 2. Pagination: keep exactly one visual surface per control.
   HelpSpace's default .pagination li:hover paints a pale background.
   Neutralize that at EVERY nesting level, not only direct children. */
.pagination li:hover,
.pagination li:focus-within {
  background-color: transparent !important;
  background-image: none !important;
}

/* Preserve the selected page's solid midnight surface. */
.pagination > :is(.active,[aria-current="page"]),
.pagination > *:has(> [aria-current="page"]),
.pagination > :is(.active,[aria-current="page"]):hover,
.pagination > *:has(> [aria-current="page"]):hover {
  background: var(--un-midnight) !important;
  border-color: var(--un-midnight) !important;
  color: var(--un-lime) !important;
}

/* The outer control retains its shape, with a restrained border-only hover. */
.pagination > *:not(.active):not(.disabled):not([aria-current="page"]):not([aria-disabled="true"]):not(:has([disabled])):not(:has([aria-disabled="true"])):is(:hover,:focus-within) {
  background: transparent !important;
  border-color: rgba(67,2,178,.5) !important;
  color: var(--un-violet) !important;
  box-shadow: none !important;
}

/* Strip the inset hover/focus card from nested HelpSpace controls.
   Do not size or reposition anything: v8.4's corrected alignment stays. */
.pagination > * :is(li,a,button,span,div),
.pagination > * :is(li,a,button,span,div):is(:hover,:focus,:focus-visible),
.pagination > * :is(li,a,button,span,div)::before,
.pagination > * :is(li,a,button,span,div)::after {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Avoid an inset white background when a link itself is the direct item. */
.pagination > :is(a,button,span):is(:hover,:focus,:focus-visible)::before,
.pagination > :is(a,button,span):is(:hover,:focus,:focus-visible)::after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Keep inner labels / arrows inheriting the outer control's state. */
.pagination > * :is(a,button,span,div) {
  color: inherit !important;
}
