/* Ghostline AIO Help. Palette from the landing site (ghostline-aio.pages.dev).
   Classes pages may use (in Markdown as raw HTML):
     <div class="callout">…</div>        a side note
     <div class="callout warn">…</div>   a warning (orange edge)
     <div class="check">…</div>          "Check": what the screen looks like when the step worked
     <ol class="steps">…</ol>            numbered steps with big numbers (plain "1." lists render the same)
     <figure><img …><figcaption>…</figcaption></figure>   a screenshot with its caption */
:root {
  --bg: #0b0d14; --panel: #141824; --line: #232940; --text: #e8eaf2; --muted: #9aa3bb;
  --accent: #8b7bff; --accent2: #5ad1ff; --warn: #f5a524;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent2); }
a:hover { text-decoration: underline; }

header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 20px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; }
.brand span { color: var(--accent); }
.brand img { border-radius: 4px; }
header .help { color: var(--muted); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 18px; border-radius: 6px; width: 38px; height: 38px; cursor: pointer; }

.layout { display: flex; min-height: calc(100vh - 56px); }
nav {
  width: 240px; flex: none; padding: 20px 0; border-right: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
}
nav a { display: block; padding: 7px 20px 7px 17px; color: var(--muted); text-decoration: none; border-left: 3px solid transparent; font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }
nav a.current { color: var(--text); border-left-color: var(--accent); background: var(--panel); }

main { flex: 1; min-width: 0; max-width: 820px; padding: 32px 40px 64px; }
main h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
main h1 + p { color: var(--muted); font-size: 17px; margin-top: 0; }
main h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
main h3 { font-size: 17px; margin: 24px 0 8px; }
main p, main li { max-width: 70ch; }
main code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 14px; }
main pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; overflow-x: auto; }
main pre code { border: 0; padding: 0; background: none; }
main img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; display: block; }
main figure { margin: 16px 0 24px; }
main figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
main table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 24px; }
main th, main td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
main th { color: var(--muted); font-weight: 600; }
main td:first-child { white-space: nowrap; font-weight: 600; }
main hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

ol.steps, main ol { padding-left: 0; list-style: none; counter-reset: step; }
main ol > li { position: relative; padding-left: 44px; margin: 0 0 14px; counter-increment: step; }
main ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #0b0d14; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
main ul { padding-left: 22px; }

.callout { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent2); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.callout.warn { border-left-color: var(--warn); }
.callout p:first-child, .check p:first-child { margin-top: 0; }
.callout p:last-child, .check p:last-child { margin-bottom: 0; }
.check { background: rgba(139, 123, 255, 0.08); border: 1px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 16px 0 24px; }
.check::before { content: "Check"; display: block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }

footer { padding: 20px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 900px) {
  .menu { display: inline-flex; align-items: center; justify-content: center; }
  nav { position: fixed; top: 56px; left: 0; bottom: 0; transform: translateX(-100%); transition: transform 0.15s ease; z-index: 9; width: 260px; height: auto; }
  body.nav-open nav { transform: none; box-shadow: 0 0 0 100vw rgba(0,0,0,0.5); }
  main { padding: 20px 16px 48px; }
  main h1 { font-size: 26px; }
  main table { display: block; overflow-x: auto; }
  main td:first-child { white-space: normal; }
}
