/**
 * LDB student launch interstitial (ohm/respondus_ldb/launch.php).
 * Accordion step layout (OHM-1783) + plain installer lists (OHM-1711 labels).
 * Close to UX screenshots; not pixel-perfect.
 */

/* --- Steps 1–3 (OHM-1783) --- */

.interstitial .ldb-launch-step {
  box-sizing: border-box;
  max-width: 42rem;
  margin: 0.85rem 0;
  /* Soft default / Step 3 border; expanded Steps 1–2 use Grape 600. */
  border: 2px solid var(--middle-gray, #eae8e3);
  border-radius: 10px;
  background: var(--white, #ffffff);
  color: var(--primary-text, #202325);
}

details.ldb-launch-step > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
}

details.ldb-launch-step > summary::-webkit-details-marker {
  display: none;
}

/* Custom chevron (native marker is hard to style consistently). */
details.ldb-launch-step > summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--primary-text, #202325);
  border-bottom: 2px solid var(--primary-text, #202325);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

details.ldb-launch-step[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

/* Header / body divider when expanded (matches UX screenshots). */
details.ldb-launch-step[open] > summary {
  border-bottom: 1px solid var(--middle-gray, #eae8e3);
}

details.ldb-launch-step:not([open]):hover {
  border-color: var(--indigo-500, #5367ea);
}

details.ldb-launch-step:not([open]):hover > summary::after {
  transform: translateY(1px) rotate(45deg);
  border-color: var(--indigo-500, #5367ea);
}

details.ldb-launch-step[open] {
  border-color: var(--grape-600, #330675);
}

details.ldb-launch-step > summary:focus {
  outline: none;
}

details.ldb-launch-step > summary:focus-visible {
  outline: 2px solid var(--indigo-500, #5367ea);
  outline-offset: 2px;
  border-radius: 8px;
}

.ldb-launch-step__body {
  padding: 1.15rem 1.35rem 1.35rem;
}

.ldb-launch-step__body > p:first-child {
  margin-top: 0;
}

.ldb-launch-step__body > p:last-child {
  margin-bottom: 0;
}

/* Step 2 secondary CTA: match screenshot density (outline, not oversized). */
.ldb-launch-step__body .button-secondary {
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  border-width: 1px;
  border-radius: 8px;
}

.ldb-launch-step--continue {
  padding: 0;
}

.ldb-launch-step--continue > h2 {
  margin: 0;
  padding: 1.15rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-text, #202325);
  border-bottom: 1px solid var(--middle-gray, #eae8e3);
}

.ldb-launch-step--continue .ldb-launch-step__body {
  padding: 1.15rem 1.35rem 1.35rem;
}

.ldb-launch-step--continue .button-primary {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

/*
 * Installer platform lists inside Step 1 (OHM-1783).
 * UX screenshots: plain headings + bullets — no nested cards.
 */
.interstitial-ldb-installer-groups {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1rem 0 0;
  max-width: none;
}

.interstitial-ldb-installer-group {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.interstitial-ldb-installer-group__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-text, #202325);
}

.interstitial-ldb-installer-group ul {
  margin: 0;
  padding-left: 1.35rem;
}

.interstitial-ldb-installer-group li + li {
  margin-top: 0.25rem;
}

.interstitial-ldb-installer-group a {
  color: var(--primary-text, #202325);
  font-weight: 700;
  text-decoration: underline;
}

.interstitial-ldb-installer-group a:hover,
.interstitial-ldb-installer-group a:focus {
  color: var(--indigo-700, #323e8c);
}
