/*
 * User guide — role-specific onboarding and best practices.
 */

.user-guide-btn.has-hint {
  border-color: var(--accent);
}

.nav-btn--guide {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* ── Layout ── */

.user-guide-page {
  display: grid;
  gap: 14px;
  max-width: var(--content-max);
  padding-bottom: 24px;
}

/* ── Welcome banner ── */

.guide-welcome {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 1px solid #d0daf0;
}

.guide-welcome__greeting {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a3060;
}

.guide-welcome__intro {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3a4a6a;
  margin: 0;
}

/* ── Cards (shared) ── */

.user-guide-card {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.user-guide-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a2a40;
}

.user-guide-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}

.user-guide-card li + li {
  margin-top: 6px;
}

.user-guide-card li strong {
  color: #1a3060;
}

.user-guide-card .muted-line {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ── Quick start (numbered steps) ── */

.guide-quickstart {
  background: linear-gradient(135deg, #f9fdf6 0%, #eef7e8 100%);
  border-color: #c5deb5;
}

.guide-quickstart h3 {
  color: #2a5a1a;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}

.guide-steps li + li {
  margin-top: 10px;
}

.guide-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3a7a20;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ── Tips card ── */

.guide-tips {
  background: linear-gradient(135deg, #fffdf5 0%, #fef8e8 100%);
  border-color: #e5d9a8;
}

.guide-tips h3 {
  color: #6a5a10;
}

.guide-tips ul {
  padding-left: 1.2rem;
}

.guide-tips li::marker {
  color: #c0a830;
}

/* ── Mobile adjustments ── */

@media (max-width: 840px) {
  .guide-welcome {
    padding: 16px 16px;
  }
  .guide-welcome__greeting {
    font-size: 1rem;
  }
  .guide-welcome__intro {
    font-size: 0.85rem;
  }
  .user-guide-card {
    padding: 14px 14px;
  }
  .user-guide-card h3 {
    font-size: 0.95rem;
  }
  .user-guide-card ul,
  .guide-steps li {
    font-size: 0.84rem;
  }
  .guide-step-num {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
}
