/* The getting-started page.
 *
 * Deliberately terse. Someone reading this wants to be finished with it, so each step is one
 * instruction and one thing to copy — not a paragraph explaining why. */

.guide {
  padding: 48px 0 88px;
}

.guide-inner {
  max-width: 62ch;
}

.guide h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 8px;
}

.guide-lede {
  margin: 0 0 40px;
  font-size: 17px;
  color: var(--ink-soft);
}

.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.gstep {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 52px;
  border-left: 2px solid var(--rule);
  margin-left: 15px;
}

.gstep:last-of-type {
  border-left-color: transparent;
  padding-bottom: 8px;
}

/* The number sits on the connecting line, so the sequence reads as one path rather than as six
   separate cards. */
.gstep::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gstep h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 2px 0 6px;
  border: none;
  padding: 0;
}

.gstep p {
  margin: 0 0 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.gstep .btn {
  margin-top: 2px;
}

.gnote {
  font-size: 14px !important;
  color: var(--ink-faint) !important;
}

.gwarn {
  font-size: 14px !important;
  background: var(--amber-bg);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--ink) !important;
}

/* ---------- copyable command blocks ---------- */

/* The button sits above the block rather than floating over it. Overlaying meant a long command
   ran underneath it, which reads as truncated — and nobody pastes a command they cannot fully
   see. */
.copyblock {
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
}

/* Wrapping rather than scrolling: a command that runs horizontally under the Copy button reads
   as truncated, and nobody scrolls a code block sideways to check what they are about to paste. */
.copyblock pre {
  margin: 0;
  padding: 16px 18px 16px 18px;
  background: var(--ink);
  color: #e8eaed;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copyblock pre code {
  display: block;
}

.copyblock.plain pre {
  background: var(--bg-sunken);
  color: var(--ink);
}

.copyblock pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-family: var(--mono);
}

.copybtn {
  order: -1;
  align-self: flex-end;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue);
  background: var(--bg-sunken);
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
}

.copybtn:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.copybtn.copied {
  background: #e6f4ea;
  color: var(--green);
}

.gdetails {
  margin: 0 0 14px;
}

.gdetails summary {
  font-size: 14.5px;
  color: var(--blue);
  cursor: pointer;
  margin-bottom: 12px;
}

.gdetails p {
  margin-bottom: 10px;
}

/* ---------- tail sections ---------- */

.gsection {
  font-size: 20px;
  font-weight: 500;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.guide > .wrap > p {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.gfaq {
  margin: 0;
}

.gfaq dt {
  font-weight: 500;
  font-size: 15.5px;
  margin-top: 16px;
}

.gfaq dd {
  margin: 3px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.gcontact {
  margin-top: 32px;
  font-size: 15px;
  color: var(--ink-faint);
}

/* ---------- the plugin install path ---------- */

/* Step 5 is a sequence of clicks rather than one instruction, so it carries its own numbering.
   The numbering runs straight through both halves — installing and connecting are one path the
   reader walks once, not two things to choose between. */
.gsub {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--ink) !important;
  margin: 0 0 8px !important;
}

.gpath {
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.gpath li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* The menu labels are what the reader hunts for on screen, so they are set in the body ink while
   the instruction around them stays soft. */
.gpath strong {
  color: var(--ink);
  font-weight: 500;
}

.gpath .copyblock {
  margin: 10px 0 4px;
}
