/* Newbie cheat sheet (/<lang>/guide/): client screenshots, a red arrow over each. */

.guide-steps {
  display: grid;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.94), rgba(10, 14, 21, 0.92));
  box-shadow: var(--shadow-md);
}

/* The arrow is laid over exactly the screenshot's box, so it scales with it. */
.guide-shot {
  position: relative;
}

.guide-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.guide-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* A dark rim keeps the red readable over both light and dark scenery. */
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

/* Both strokes are screen px (vector-effect="non-scaling-stroke"). The head's
   own stroke, as thick as the shaft with round joins, covers the shaft's end
   at the point, so the point stays sharp. */
.guide-arrow-line {
  fill: none;
  stroke: #e11d2e;
  stroke-width: 5px;
  stroke-linecap: round;
}

.guide-arrow-head {
  fill: #e11d2e;
  stroke: #e11d2e;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.guide-step-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  padding: 20px 26px 24px;
}

.guide-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  background: #e11d2e;
}

.guide-step h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.guide-step p {
  grid-column: 2;
  margin: 0;
  color: var(--text-muted);
}

/* The close-up (an SVG window onto the same picture) and its toggle exist for
   narrow screens only; wide screens see the whole screenshot. */
.guide-zoom,
.guide-zoom-toggle {
  display: none;
}

.guide-zoom {
  width: 100%;
  height: auto;
}

/* The close-up is in the screenshot's px grid, scaled down ~0.7-0.9x, so these
   strokes are a touch wider than the overlay's screen px. */
.guide-zoom-line {
  fill: none;
  stroke: #e11d2e;
  stroke-width: 6px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}

.guide-zoom-head {
  fill: #e11d2e;
}

.guide-zoom-toggle {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--border);
  color: var(--gold-bright, #e7c58a);
  font: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.guide-zoom-toggle:focus-visible {
  outline: 2px solid var(--gold-bright, #e7c58a);
  outline-offset: -2px;
}

@media (max-width: 760px) {
  /* Close-up first; "Show the whole screen" (guide.js, `is-full` on the step)
     swaps it for the full screenshot with the overlay arrow, and back. */
  .guide-zoom,
  .guide-zoom-toggle {
    display: block;
  }

  .guide-step:not(.is-full) .guide-shot img,
  .guide-step:not(.is-full) .guide-arrow {
    display: none;
  }

  .guide-step.is-full .guide-zoom {
    display: none;
  }
}

@media (max-width: 640px) {
  .guide-steps {
    gap: 22px;
  }

  .guide-step {
    border-radius: var(--radius-md);
  }

  .guide-step-copy {
    gap: 8px 12px;
    padding: 16px 16px 18px;
  }

  .guide-step-number {
    width: 36px;
    height: 36px;
  }

  .guide-step p {
    grid-column: 1 / -1;
  }

  /* The head shrinks with the screenshot, so the shaft gets thinner too. */
  .guide-arrow-line,
  .guide-arrow-head {
    stroke-width: 3px;
  }
}
