/* ============ KStars tutorial + workflow pages ============ */
.kstars { max-width: 880px; padding-top: 1.5rem; padding-bottom: 4rem; }

.kstars-head { margin-bottom: 2.5rem; }
.kstars .eyebrow { color: var(--plasma); font-size: 0.8rem; margin: 0 0 0.6rem; }
.kstars-head h1 { margin-bottom: 0.6rem; }
.kstars-lede { font-size: 1.08rem; line-height: 1.6; max-width: 70ch; }
.kstars-lede code,
.kstars-section code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: rgba(255, 255, 255, 0.05); color: var(--aurora);
  padding: 0.1em 0.4em; border-radius: 5px;
}
.kstars-repo { font-size: 0.85rem; margin-top: 1rem; }

.kstars-section { margin: 2.6rem 0; }
.kstars-section h2 {
  font-size: 1.5rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line); margin-bottom: 1.1rem;
}
.kstars-section h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--ink); margin: 1.8rem 0 0.7rem;
}
.kstars-section p { line-height: 1.65; color: var(--ink); }

.kstars-list, .kstars-steps { line-height: 1.65; padding-left: 1.2rem; }
.kstars-list li, .kstars-steps li { margin: 0.5rem 0; }
.kstars-steps--big li { margin: 0.85rem 0; }

.kstars-callout {
  background: rgba(245, 180, 0, 0.08);
  border-left: 3px solid var(--stellar);
  border-radius: 8px; padding: 0.8rem 1rem; margin: 1.2rem 0;
}

/* ---- copyable code block ---- */
.codeblock {
  margin: 1rem 0 1.4rem; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--deep);
}
.codeblock-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.codeblock-lang {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
}
.codeblock-copy {
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--plasma); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.75rem; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.codeblock-copy:hover { border-color: var(--plasma); background: rgba(34, 211, 238, 0.1); }
.codeblock-copy.is-copied { color: var(--aurora); border-color: var(--aurora); }
.codeblock-pre {
  margin: 0; padding: 1rem 1.1rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.55;
  color: var(--ink);
}
.codeblock-pre code { font-family: inherit; white-space: pre; }

/* ---- responsive video embed ---- */
.kstars-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--deep);
}
.kstars-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kstars-video--placeholder { display: grid; place-items: center; }
.kstars-video-ph { text-align: center; padding: 2rem; }
.kstars-video-ph .mono { color: var(--plasma); margin: 0 0 0.5rem; }
.kstars-video-ph .dim { max-width: 42ch; margin: 0 auto; }
