/* Learn tab headings */
.tutorial-heading {
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}


/* Soft pill badges (already used elsewhere but re-affirm style) */
.pill-soft {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
}

/* Card that wraps the description text in Learn step */
.guided-card {
  backdrop-filter: blur(12px);
}

/* Progress row under Learn*/
.cr-schema-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.cr-table-name{
  color: var(--text);
  letter-spacing: 0.2px;
}

.cr-col-chip-wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cr-col-chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(106,165,156,0.10); /* mint tint */
  color: var(--text);
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}
.tut-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(106,165,156,0.45);
  background: rgba(106,165,156,0.10);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tut-title{
  margin: 12px 0 12px;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.15;
  color: #e5e7eb;
}

.tut-md{
  color: rgba(203, 213, 225, 0.82);
  font-size: 15.5px;
  line-height: 1.75;
}
.tut-md strong{
  color: rgba(125, 211, 199, 0.95);
  font-weight: 750;
}

/* Code example cards */
.tut-code-card{
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2, 6, 23, 0.35);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.tut-code{
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.8px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: rgba(226,232,240,0.92);
}

.tut-code-caption{
  margin-top: 10px;
  font-size: 12.8px;
  color: rgba(203,213,225,0.72);
  font-style: italic;
}

/* Callouts */
.tut-callout{
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.03);
}

.tut-callout-icon{
  font-size: 16px;
  line-height: 1.2;
  margin-top: 1px;
}

.tut-callout-text{
  font-size: 13.8px;
  line-height: 1.55;
  color: rgba(226,232,240,0.88);
}

/* Variants */
.tut-callout--tip{
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
}
.tut-callout--tip .tut-callout-text{ color: rgba(252, 211, 77, 0.95); }

.tut-callout--note{
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.08);
}
.tut-callout--note .tut-callout-text{ color: rgba(147, 197, 253, 0.95); }

.tut-callout--warn{
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
}
.tut-callout--warn .tut-callout-text{ color: rgba(252, 165, 165, 0.95); }

/* Make highlighted Markdown render like a code block inside the card */
.tut-code-md{
  margin: 0;
}

/* dcc.Markdown renders HTML; target the inner code */
.tut-code-md code, .tut-code-md pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.8px;
  line-height: 1.65;
  color: rgba(226,232,240,0.92);
  background: transparent !important;
}

/* Remove default markdown spacing */
.tut-code-md pre{
  margin: 0;
  padding: 0;
  border: 0;
}
/* allow spans to control color */
.tut-code-card, .tut-code-card * { color: inherit; }

/* Force syntax colors INSIDE tutorial code cards */
.tut-code-card .sql-kw  { color: #E8935A !important; font-weight: 650 !important; }
.tut-code-card .sql-str { color: #fde68a !important; }
.tut-code-card .sql-id  { color: #93c5fd !important; }