/* ================= LUA SECTION ================= */

.lua-section {
  overflow: hidden;
}


/* Alignment wrapper — intentionally invisible */
.lua-align {
  margin-top: 1.5rem;
  /* space below section label */
}

/* Grid */
.lua-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: stretch;
}

/* LEFT */
.lua-content h2 {
  margin-top: 0;
}

.lua-content p {
  margin-top: 1rem;
  max-width: 520px;
}

/* RIGHT */
.lua-code {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  max-height: 400px;
  overflow: auto;
}

/* Code fills column */
.lua-code pre {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  font-family: var(--font-body);
  color: #e5e5e5;
  white-space: pre;
}

/* Prism reset */
pre[class*="language-"] {
  background: none;
  margin-top: 0px;
  margin-left: 6px;
}

/* Scrollbar */
.lua-code::-webkit-scrollbar {
  width: 6px;
}

.lua-code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.section-actions {
  margin-top: 2rem;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .lua-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-actions {
    text-align: center;
  }

  .lua-code {
    max-height: 260px;
  }
}