/* Tutorial-page shared styles. Imported after style.css on every tutorial. */

.tut-hero { padding-top: var(--space-lg); padding-bottom: var(--space-md); }

.tut-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
}

.tut-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
}

.tut-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.tut-body p,
.tut-body ul,
.tut-body ol {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}

.tut-body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.tut-body h3 {
  margin-top: var(--space-md);
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.tut-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

.tut-step {
  counter-increment: tut-step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  position: relative;
}

.tut-step::before {
  content: counter(tut-step);
  position: absolute;
  top: -16px;
  left: var(--space-md);
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.tut-steps { counter-reset: tut-step; }
.tut-step h3 { margin-top: 0; }

.tut-screenshot {
  display: block;
  max-width: 320px;
  width: 100%;
  margin: var(--space-sm) auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.tut-screenshot[data-placeholder] {
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-md);
}

/* For Mac/iPad tutorials, allow wider placeholders */
.tut-screenshot--wide {
  max-width: 640px;
}
.tut-screenshot--wide[data-placeholder] {
  aspect-ratio: 16 / 10;
}

.tut-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  margin: var(--space-md) 0;
  font-size: 0.9375rem;
}

.tut-callout strong { color: var(--primary); }

.tut-callout--warn {
  background: #FFF4E5;
  border-left-color: #FF9500;
}

.tut-callout--warn strong { color: #C56500; }

.tut-prereq {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
}

.tut-prereq h3 {
  margin-top: 0;
  font-size: 1rem;
}

.tut-prereq ul {
  margin: 8px 0 0 0;
  padding-left: 1.25rem;
}

.tut-prereq li {
  font-size: 0.9375rem;
  margin: 4px 0;
}

.tut-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.tut-next a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, border-color .15s;
}

.tut-next a:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.tut-next strong {
  display: block;
  font-size: 0.9375rem;
}

.tut-next span {
  font-size: 0.8125rem;
  color: var(--text-light);
}
