/* Getting started
   A practical first-run guide. Uses the site's theme tokens and keeps the
   layout closer to documentation than to the marketing pages. */

.gs-page { width: min(100%, 1080px); margin: 0 auto; padding-bottom: 8px; }

/* Header */
.gs-header { max-width: 820px; padding: 8px 0 24px; border-bottom: 1px solid var(--line-soft); }
.gs-header .eyebrow { margin-bottom: 10px; }
.gs-header h1 { margin-bottom: 12px; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.045em; }
.gs-lede { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Article + table of contents */
.gs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  margin-top: 26px;
}
.gs-content { grid-column: 1; grid-row: 1; min-width: 0; }
.gs-aside { grid-column: 2; grid-row: 1; position: sticky; top: 78px; }
.gs-toc {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-2);
}
.gs-toc .eyebrow { margin-bottom: 8px; }
.gs-toc a { display: block; padding: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-decoration: none; }
.gs-toc a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

/* Sections */
.gs-section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line-soft); scroll-margin-top: 82px; }
.gs-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.gs-section > h2 { margin-bottom: 12px; font-size: clamp(24px, 2.8vw, 31px); line-height: 1.15; letter-spacing: -.035em; }
.gs-subsection { margin-top: 26px; }
.gs-subsection h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.gs-section p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.gs-section p:last-child { margin-bottom: 0; }
.gs-section li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.gs-section b, .gs-section strong { color: var(--ink); font-weight: 580; }
.gs-section a { color: var(--mint); }
.gs-section ul { margin: 10px 0 14px; padding-left: 20px; }
.gs-section ul li { margin: 6px 0; }
.gs-section code { color: var(--ink); font-size: .92em; }

.gs-ui {
  display: inline;
  padding: 1px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink);
  background: var(--panel-2);
  font-size: .92em;
  font-weight: 520;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.gs-label { margin: 16px 0 0 !important; color: var(--ink) !important; font-size: 12px !important; font-weight: 600; letter-spacing: .01em; }

/* Numbered steps */
.gs-steps { counter-reset: step; margin: 10px 0 14px; padding: 0; list-style: none; }
.gs-steps > li { counter-increment: step; position: relative; margin: 8px 0; padding-left: 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.gs-steps > li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 8px;
}
.gs-steps > li b { color: var(--ink); font-weight: 580; }

/* Platform blocks */
.gs-os-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 4px; }
.gs-os { padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel-2); }
.gs-os h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.gs-os .gs-steps { margin-top: 0; }
.gs-os .gs-steps > li { font-size: 13px; }
.gs-os p { font-size: 12px; }
p.gs-small { color: var(--muted-2); font-size: 11px; line-height: 1.6; }

/* Command line */
.gs-cmd { display: flex; align-items: center; gap: 9px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-inset); }
.gs-cmd-prompt { flex: 0 0 auto; color: var(--mint); font-family: var(--font-mono); font-size: 12px; }
.gs-cmd code { flex: 1; min-width: 0; overflow-x: auto; color: var(--ink); font-size: 12px; line-height: 1.55; white-space: nowrap; }
.gs-cmd .copy-button { flex: 0 0 auto; }

/* Callouts and notes */
.gs-callout { margin: 14px 0; padding: 11px 13px; border: 1px solid var(--line-soft); border-left: 2px solid var(--mint); border-radius: 6px; background: var(--panel-2); }
.gs-callout-label { display: block; margin-bottom: 5px; color: var(--mint); font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.gs-callout p { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.gs-callout p:last-child { margin-bottom: 0; }
.gs-callout pre { margin: 6px 0; overflow-x: auto; color: var(--ink); font-family: var(--font-mono); font-size: 11px; line-height: 1.65; }
.gs-callout code { color: var(--ink); }
.gs-callout.note { border-left-color: var(--amber); }
.gs-callout.note .gs-callout-label { color: var(--amber); }
p.gs-note { margin: 12px 0; padding: 9px 11px; border-left: 2px solid var(--line); color: var(--muted); background: var(--panel-2); font-size: 12px; line-height: 1.6; }
.gs-note b { color: var(--ink); }

/* Check line */
.gs-check { display: flex; gap: 7px; margin: 10px 0 0 !important; color: var(--muted) !important; font-size: 12px !important; line-height: 1.55 !important; }
.gs-check::before { content: "✓"; flex: 0 0 auto; color: var(--mint); font-family: var(--font-mono); }
.gs-check b { color: var(--ink); }

/* Tables */
.gs-table-wrap { margin: 12px 0; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 7px; }
.gs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gs-table th { padding: 8px 10px; text-align: left; color: var(--muted-2); background: var(--panel-2); font-size: 9px; font-weight: 560; letter-spacing: .08em; text-transform: uppercase; }
.gs-table td { padding: 8px 10px; border-top: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; line-height: 1.55; }
.gs-table td:first-child { color: var(--ink); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.gs-table.plain td:first-child { font-family: inherit; font-size: 12px; white-space: normal; }

/* Copyable example prompt */
.gs-prompt { margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-inset); }
.gs-prompt p { margin: 0; padding: 12px 14px 10px; color: var(--ink); font-size: 13px; line-height: 1.6; }
.gs-prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 11px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; }
.gs-prompt-foot .copy-button { margin-left: 0; }

/* Related links */
.gs-related { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.gs-related .eyebrow { margin-bottom: 8px; }
.gs-related a { display: inline-block; margin: 0 14px 6px 0; font-size: 12px; }

@media (max-width: 980px) {
  .gs-layout { grid-template-columns: 1fr; }
  .gs-content, .gs-aside { grid-column: 1; grid-row: auto; }
  .gs-aside { position: static; order: -1; }
  .gs-toc { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; }
  .gs-toc .eyebrow { width: 100%; margin-bottom: 4px; }
  .gs-toc a { padding: 3px 0; }
}

/* btop sets a page-sized h1 for the marketing pages; this guide uses a
   documentation-sized title. */
html[data-theme="btop"] .gs-header h1 {
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: -.045em;
}

@media (max-width: 760px) {
  .gs-header h1 { font-size: 30px; }
}

@media (max-width: 620px) {
  .gs-cmd { flex-wrap: wrap; align-items: flex-start; }
  .gs-cmd code { white-space: normal; word-break: break-word; }
  .gs-table td:first-child { white-space: normal; }
  .gs-prompt-foot { align-items: flex-start; flex-direction: column; }
}
