/* LUNARTECH Academy: Help Center (/help) and Documentation (/docs), generated by tools/support/build.mjs.
   Pure black, the home page's type and text edge, hairlines between rows, one still picture. No glass, no boxes. Nothing here uses 100vw, so the page never scrolls sideways.
   The template restyles h2, h3, p, a, ul and li, so every rule that touches them names its own font, size, spacing and colour. */

html:has(body.sp-page) { background-color: #000; }
body.sp-page { margin: 0; background-color: #000; color: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.sp-page ::selection { background: #fff; color: #000; }

/* --sp-edge: where the home page's text sections start (.container.padding-9rem, 10% on small screens) */
.sp { --sp-edge: min(10vw, 9rem); --sp-line: rgba(255, 255, 255, 0.1); --sp-dim: #9a9a9a; --sp-body: #c9c9c9; display: block; padding: 150px 0 clamp(5rem, 9vw, 9rem); font-family: 'Inter', sans-serif; font-weight: 300; color: #fff; }
.sp :focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.sp [hidden] { display: none !important; }
.sp [id] { scroll-margin-top: 110px; }
.sp-wrap { width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 var(--sp-edge); box-sizing: border-box; }
.sp-section { margin-top: clamp(4.5rem, 8vw, 8rem); }
.sp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────────── type: the home page's. Titles are Inter 300 in two tones, short text Geist 300 ───────────── */
.sp .sp-label { margin: 0 0 1.1rem; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.3; letter-spacing: 0; color: var(--sp-dim); }
.sp .sp-title { margin: 0; font-family: 'Inter', sans-serif; font-size: 3.33vw; font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; text-transform: none; color: #f5f5f5; }
.sp .sp-h2 { margin: 0; font-family: 'Inter', sans-serif; font-size: 2vw; font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; text-transform: none; color: #f5f5f5; }
.sp .sp-h3 { margin: 2.4rem 0 0.9rem; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.3; letter-spacing: 0; text-transform: none; color: #f5f5f5; }
.sp .sp-dim { color: var(--sp-dim); }
.sp .sp-lede { max-width: 36rem; margin: 1rem 0 0; font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--sp-body); text-wrap: pretty; }
.sp .sp-sub { max-width: 26rem; margin: 0.9rem 0 0; font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--sp-dim); text-wrap: pretty; }
.sp .sp-meta { margin: 1rem 0 0; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--sp-dim); }
.sp .sp-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sp .sp-note { margin: 0; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--sp-dim); }

/* running text: answers and documentation */
.sp-prose { max-width: 46rem; font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--sp-body); }
.sp-prose p { margin: 0 0 0.9rem; font: inherit; line-height: inherit; color: inherit; text-wrap: pretty; }
.sp-prose > :last-child { margin-bottom: 0; }
.sp-prose ul, .sp-prose ol { display: block; margin: 0 0 0.9rem; padding: 0 0 0 1.15rem; font: inherit; line-height: inherit; color: inherit; list-style-position: outside; }
.sp-prose ul { list-style-type: disc; }
.sp-prose ol { list-style-type: decimal; }
.sp-prose li { display: list-item; margin: 0 0 0.4rem; padding: 0; font: inherit; line-height: inherit; color: inherit; }
.sp-prose li::marker { color: #6a6a6a; }
.sp-prose a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); transition: text-decoration-color 0.2s; }
.sp-prose a:hover { text-decoration-color: #fff; }

/* ───────────── the flat white pill, and text links ───────────── */
.sp .sp-btn { display: inline-flex; flex: none; align-items: center; height: 46px; padding: 0 22px; box-sizing: border-box; border-radius: 9999px; background: #fff; color: #000; font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 400; line-height: 1; white-space: nowrap; text-decoration: none; transition: opacity 0.2s; }
.sp .sp-btn:hover { opacity: 0.86; }
.sp .sp-text-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 300; line-height: 1.4; text-decoration: none; }
.sp .sp-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 1.6rem; }

/* ───────────── the opening: words and search beside one still picture ───────────── */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: stretch; }
.sp-hero-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(0.5rem, 2vw, 2rem) 0; }
/* The ribbon runs off the picture's sides, so they fade into the black rather than cutting it off. */
.sp-hero-art { position: relative; min-height: 26rem; max-height: 34rem; overflow: hidden; background: #000; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.sp-hero-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.sp-search { position: relative; display: flex; align-items: center; gap: 0.8rem; max-width: 34rem; margin-top: clamp(2rem, 3.5vw, 3rem); padding: 0 0 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.34); color: #fff; transition: border-color 0.2s; }
.sp-search:focus-within { border-bottom-color: #fff; }
.sp-search-icon { flex: none; color: var(--sp-dim); }
.sp .sp-search-input { flex: 1 1 auto; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; appearance: none; -webkit-appearance: none; color: #fff; font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 300; line-height: 1.4; }
.sp .sp-search-input::placeholder { color: #8a8a8a; opacity: 1; }
.sp .sp-search-input::-webkit-search-cancel-button { display: none; }
.sp .sp-search-clear { flex: none; padding: 0; border: 0; background: none; cursor: pointer; color: var(--sp-dim); font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; transition: color 0.2s; }
.sp .sp-search-clear:hover { color: #fff; }
.sp .sp-results { min-height: 1.3em; margin: 0.8rem 0 0; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.4; color: var(--sp-dim); }

.sp-popular { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.2rem; margin-top: 0.7rem; font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 300; line-height: 1.4; }
.sp .sp-popular-label { width: 100%; margin-bottom: 0.1rem; color: var(--sp-dim); }
.sp .sp-popular a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.34); transition: text-decoration-color 0.2s; }
.sp .sp-popular a:hover { text-decoration-color: #fff; }

/* ───────────── topics ───────────── */
.sp-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.sp .sp-topic { display: flex; flex-direction: column; min-width: 0; padding: 1.3rem 0 1.5rem; border-top: 1px solid var(--sp-line); color: #fff; text-decoration: none; }
.sp .sp-topic-name { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.3; color: #f5f5f5; }
.sp .sp-topic:hover .sp-topic-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sp .sp-topic-text { margin-top: 0.4rem; font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--sp-dim); text-wrap: pretty; }
.sp .sp-topic-count { margin-top: 0.7rem; font-family: 'Geist', sans-serif; font-size: 12.5px; font-weight: 300; line-height: 1.4; color: #6f6f6f; }

/* ───────────── the two-column body: a list that stays beside the reading ───────────── */
.sp-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.sp-side { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: none; }
.sp-side::-webkit-scrollbar { display: none; }
.sp-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; width: 100%; }
.sp .sp-side-label { margin: 0 0 0.45rem; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.3; color: #6f6f6f; }
.sp .sp-nav a { font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 300; line-height: 1.4; color: #8a8a8a; text-decoration: none; transition: color 0.2s; }
.sp .sp-nav a:hover, .sp .sp-nav a[aria-current="true"] { color: #fff; }
.sp .sp-all { padding: 0; border: 0; background: none; cursor: pointer; color: #fff; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.4; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.34); }
.sp .sp-all:hover { text-decoration-color: #fff; }
.sp-main { min-width: 0; }

.sp-group + .sp-group { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.sp-group > .sp-h2 { margin-bottom: clamp(1.2rem, 2vw, 1.8rem); }

/* ───────────── questions that open and close ───────────── */
.sp-qs { border-top: 1px solid var(--sp-line); }
.sp-q { border-bottom: 1px solid var(--sp-line); }
.sp .sp-q-h { margin: 0; font: inherit; }
.sp .sp-q-btn { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; padding: 1.15rem 0; border: 0; background: none; cursor: pointer; text-align: left; color: #f5f5f5; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.35; letter-spacing: 0; }
.sp .sp-q-t { min-width: 0; text-wrap: pretty; }
.sp-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: background-color 0.25s, box-shadow 0.25s; }
.sp-plus::before, .sp-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: #e6e6e6; transform: translate(-50%, -50%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.sp-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.sp-q-btn:hover .sp-plus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.sp-q.is-open .sp-plus::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Closed only once the script has run, so without it every answer can be read. Hidden from the keyboard too, so a closed answer's links can't be tabbed into. */
.sp-q-a { display: grid; grid-template-rows: 1fr; }
.sp-q-in { min-height: 0; overflow: hidden; }
.sp-q-a .sp-prose { padding: 0 2.8rem 1.4rem 0; }
.sp-js .sp-q-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s; }
.sp-js .sp-q.is-open .sp-q-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }

.sp .sp-none { margin: 0 0 2rem; font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--sp-body); }
.sp .sp-none a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* While searching, only the answers stay: topics, common questions and the closing sections step aside */
.is-searching [data-sp-topics], .is-searching [data-sp-popular], .is-searching [data-sp-after], .is-searching .sp-nav { display: none; }
.is-searching .sp-layout { margin-top: clamp(2rem, 4vw, 3.5rem); }
.is-searching .sp-group + .sp-group { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* ───────────── tables and steps ───────────── */
.sp-split { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.sp-table { width: 100%; max-width: 100%; margin: 0 0 1.2rem; border-collapse: collapse; font-family: 'Geist', sans-serif; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: var(--sp-body); }
.sp-table:last-child { margin-bottom: 0; }
.sp-table thead th { padding: 0 1.5rem 0.75rem 0; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: bottom; font-size: 13px; font-weight: 300; color: #6f6f6f; }
.sp-table tbody th, .sp-table tbody td { padding: 0.85rem 1.5rem 0.85rem 0; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: top; font-weight: 300; }
.sp-table tbody th { width: 34%; color: #f5f5f5; }
.sp-table tr > :last-child { padding-right: 0; }
.sp-table a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.sp-table a:hover { text-decoration-color: #fff; }
.sp-table-routes tbody th { width: 58%; font-weight: 300; }
.sp-table-routes { max-width: 46rem; }
.sp-table-nohead thead { display: none; }
.sp-table-nohead tbody tr:first-child > * { border-top: 1px solid var(--sp-line); }

.sp .sp-steps { display: block; margin: 0 0 1.2rem; padding: 0; list-style: none; counter-reset: sp-step; font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--sp-body); border-top: 1px solid var(--sp-line); }
.sp .sp-steps > li { display: flex; gap: 1.2rem; margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--sp-line); counter-increment: sp-step; }
.sp .sp-steps > li::before { content: counter(sp-step, decimal-leading-zero); flex: none; width: 1.6rem; color: #6f6f6f; font-size: 13px; line-height: 1.75; }
.sp .sp-steps > li > span { min-width: 0; }
.sp-include { max-width: 46rem; }

.sp-prose .sp-callout { margin: 1.2rem 0; padding: 0 0 0 1.1rem; border-left: 1px solid rgba(255, 255, 255, 0.4); color: #f5f5f5; }

/* two columns of names, with a count where there is one */
.sp .sp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); margin: 0 0 1.2rem; padding: 0; list-style: none; border-top: 1px solid var(--sp-line); }
.sp .sp-cols > li { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.65rem 0; border-bottom: 1px solid var(--sp-line); }
.sp .sp-count { flex: none; color: #6f6f6f; font-variant-numeric: tabular-nums; }

/* ───────────── documentation ───────────── */
.sp-docs-hero { padding-top: clamp(0.5rem, 2vw, 2rem); }
.sp-doc-part + .sp-doc-part { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.sp-doc-part > .sp-h2 { margin-bottom: clamp(1.1rem, 1.8vw, 1.6rem); }
.sp-doc .sp-prose { max-width: 50rem; }
.sp-doc .sp-q-a .sp-prose { padding-right: 2.8rem; }

/* ───────────── more help, and the close ───────────── */
.sp-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem clamp(1.5rem, 3vw, 3rem); }
.sp .sp-go { display: block; min-width: 0; color: #fff; text-decoration: none; }
.sp .sp-go-name { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.3; color: #f5f5f5; }
.sp .sp-go-text { display: block; margin-top: 0.45rem; font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--sp-dim); text-wrap: pretty; }
.sp .sp-go:hover .sp-go-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sp-close .sp-sub { max-width: 34rem; }

/* ───────────── narrower screens ───────────── */
@media (max-width: 1199px) {
  .sp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .sp { padding-top: 120px; }
  .sp .sp-title { font-size: 5vw; }
  .sp .sp-h2 { font-size: clamp(1.45rem, 3.4vw, 1.8rem); }
  .sp-hero { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .sp-hero-text { padding: 0; }
  .sp-hero-art { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
  .sp-layout, .sp-split { grid-template-columns: minmax(0, 1fr); row-gap: 1.8rem; }
  .sp-side { position: static; max-height: none; overflow: visible; }
  /* the topic grid above does this job on /help; on /docs the list stays as contents */
  .sp-help .sp-nav { display: none; }
  .sp-docs .sp-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1.5rem; }
  .sp-docs .sp-side-label { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sp .sp-title { font-size: 8vw; }
  .sp .sp-q-btn { gap: 1rem; font-size: 16px; }
  .sp-q-a .sp-prose, .sp-doc .sp-q-a .sp-prose { padding-right: 0; }
  .sp .sp-cols { grid-template-columns: minmax(0, 1fr); }

  /* Tables become label-and-value rows, so nothing runs off the side of a phone */
  .sp-table thead { display: none; }
  .sp-table, .sp-table tbody { display: block; width: 100%; }
  .sp-table tbody tr { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--sp-line); }
  .sp-table tbody tr:first-child { border-top: 1px solid var(--sp-line); }
  .sp-table tbody th, .sp-table tbody td, .sp-table-routes tbody th { display: block; width: auto; padding: 0; border: 0; }
  .sp-table tbody td { margin-top: 0.3rem; }
  .sp-table tbody td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; color: #6f6f6f; }
  .sp-table-nohead tbody tr:first-child > * { border-top: 0; }
}
@media (max-width: 520px) {
  .sp-topics, .sp-more { grid-template-columns: minmax(0, 1fr); }
  .sp-docs .sp-nav { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sp-js .sp-q-a, .sp-js .sp-q.is-open .sp-q-a, .sp-plus::before, .sp-plus::after { transition: none; }
}
