/* Karana Pooja "How to" guides, flat design, namespaced pj-.
   Colors come from the theme.css tokens; no hardcoded palette here. */

/* ---------- section ---------- */

.pj-howto {
  text-align: left;
  margin: 24px 0 8px;
}

.pj-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
  text-align: left;
}

.pj-sub {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 16px;
  text-align: left;
}

.pj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pj-fallback {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: left;
  margin: 4px 0;
}

/* ---------- guide cards ---------- */

.pj-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 14px 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.pj-card:hover { border-color: var(--text-muted); }
.pj-card:active { transform: scale(0.985); }

.pj-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pj-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}

.pj-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pj-card-chev {
  color: var(--text-muted);
  display: inline-flex;
  flex-shrink: 0;
}

/* ---------- icon tiles ---------- */

.pj-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  flex-shrink: 0;
}

.pj-tile-lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

/* ---------- guide detail (inside .detail-body) ---------- */

.pj-guide {
  text-align: left;
  padding-bottom: 8px; /* .detail-body already clears the nav */
}

.pj-guide-head {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.pj-guide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 14px 0 4px;
  text-align: left;
}

.pj-guide-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.pj-guide-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
  text-align: left;
}

/* ---------- steps ---------- */

.pj-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pj-step { text-align: left; }

.pj-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pj-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pj-step-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.pj-step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0 0 10px;
  text-align: left;
}

/* Why toggle */

.pj-why-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--card-marigold-text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pj-why-toggle:hover { background: var(--brand-primary-light); border-color: var(--border); }
.pj-why-toggle .k-icon { transition: transform 0.18s ease; }
.pj-why-toggle.pj-open .k-icon { transform: rotate(180deg); }

.pj-why-body {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--brand-primary-light);
  border-radius: 10px;
}

.pj-why-body p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--card-marigold-text);
  margin: 0;
  text-align: left;
}

/* Dark mode inherits automatically from theme.css tokens. */

/* guide learned via the lesson player */
.pj-card-learned .pj-tile {
  background: var(--brand-primary);
  color: #fff;
}
