/* Local layout helpers for Getting Started page. Keeps existing color scheme. */
:root {
  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap-md: 16px;
  --gap-lg: 20px;
  --gap-xl: 24px;
}

/* Left/Right card layout */
.lr-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-lg);
  align-items: flex-start;
  padding: 20px;
  margin: 18px 0;
  border-radius: 14px;
}
.lr-card--tight {
  padding: 16px 18px;
  margin: 12px 0;
  gap: 14px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.lr-card--tight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(99,102,241,.10));
  pointer-events: none;
}
.lr-card > * { position: relative; z-index: 1; }
.lr-left {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lr-left--slim { flex-basis: 110px; }
.lr-main {
  flex: 1 1 460px;
  min-width: 300px;
}
.lr-art {
  flex: 0 0 200px;
  min-width: 180px;
  margin-left: auto;
}

/* Vertical stacks with gaps */
.stack-gap {
  display: grid;
  gap: var(--gap-lg);
}

/* Steps list (no default numbers, custom bubble) */
.steps-list {
  list-style: none;
  padding: 0;
  margin: var(--gap-md) 0;
  display: grid;
  gap: var(--gap-md);
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--gap-md);
  align-items: start;
  padding: 16px 18px;
  border-radius: 12px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Minor tweaks for headings inside cards */
.lr-main > h3 {
  margin: 0 0 6px;
}
.lr-main > p {
  margin: 0 0 8px;
}
/* Normalize paragraph spacing directly under lr-card to avoid margin-collapsing differences */
.lr-card > p {
  margin: 6px 0 10px;
  color: var(--muted);
}

/* Card header and chips */
.card-head { display:flex; align-items:center; justify-content:space-between; margin: 0 0 8px; gap: 10px; }
/* Ensure the header row spans full width so following elements (like descriptions) start on a new line */
.lr-card .card-head { flex-basis: 100%; width: 100%; }
.cmd-chip { display:inline-flex; align-items:center; gap:8px; font-weight:700; padding:6px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.cmd-chip code { font-weight:800; }
.lr-card code { white-space: nowrap; }
.lr-card code::before{ content: ' '; }
.lr-card code::after{ content: ' '; }
.label-small { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); font-size: 12px; }
.accent-emoji { font-size: 18px; line-height: 1; }

/* Chip rows and mini-steps to fill dead space elegantly */
.chip-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.chip { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); font-weight:600; }
.chip--cmd code { font-weight:800; }
.chip--role { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.25); }
.chip--tip { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.25); }

/* Subtle bands for card footers */
.card-band { margin-top:10px; padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); display:flex; align-items:center; gap:10px; }
.card-band--success { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.25); }
.card-band--info { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.25); }
.card-band .emoji { font-size:18px; }

/* Uniform command description styling */
.cmd-desc { color: var(--muted); margin: 6px 0 10px; line-height: 1.55; }

/* Small screens: let art wrap nicely */
@media (max-width: 640px) {
  .lr-left { flex-basis: 120px; }
  .lr-art { flex-basis: 100%; order: 3; min-width: 0; }
}

/* Optional flipped layout to alternate art position */
.lr--flip { flex-direction: row-reverse; }

/* Friendlier bullets with emojis */
.bullets { list-style: none; padding-left: 0; display: grid; gap: 6px; }
.bullets li { display: flex; align-items: flex-start; }
.bullets.star li::before { content: '✦'; color: #9fb3ff; margin-right: 8px; line-height: 1.25; }
.bullets.check li::before { content: '✔'; color: #10b981; margin-right: 8px; line-height: 1.25; }

/* Tighter checklist spacing */
.step { padding: 14px 16px; gap: 12px; }
.step + .step { margin-top: 6px; }
.step-num { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
