/* Tutorials — guides with real screenshots + numbered markers */
.tut-wrap {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.tut-intro {
  margin: 0 0 20px;
  color: var(--ne-muted);
  line-height: 1.65;
  font-size: 15px;
}

.tut-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  background: var(--ne-card-bg);
}

.tut-subnav button {
  padding: 8px 14px;
  border: 1px solid var(--ne-border);
  border-radius: 999px;
  background: var(--ne-subnav-bg);
  color: var(--ne-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tut-subnav button:hover {
  border-color: var(--ne-brand);
}

.tut-subnav button.active {
  background: var(--ne-brand);
  border-color: var(--ne-brand);
  color: #fff;
}

.tut-panel {
  display: none;
}

.tut-panel.is-active {
  display: block;
}

.tut-panel.card {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 24px 26px 28px;
}

.tut-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ne-text);
}

.tut-panel h3 {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ne-text);
}

.tut-panel-lead {
  margin: 0 0 20px;
  color: var(--ne-muted);
  line-height: 1.6;
  font-size: 14px;
}

.tut-go-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ne-brand);
  text-decoration: none;
}

.tut-go-link:hover {
  text-decoration: underline;
}

.tut-figures-stack {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.tut-figures-row {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  grid-template-columns: 1fr;
}

.tut-figures-row[hidden],
.tut-figure[hidden] {
  display: none !important;
}

.tut-figure {
  margin: 0 0 24px;
  border: 1px solid var(--ne-border);
  border-radius: 12px;
  overflow: hidden;
  background: #0f141c;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tut-figures-stack .tut-figure {
  margin-bottom: 0;
}

.tut-figures-row .tut-figure {
  margin-bottom: 0;
}

.tut-shot {
  position: relative;
  line-height: 0;
  background: #0b0f14;
}

.tut-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.tut-marker {
  position: absolute;
  left: var(--tut-x, 50%);
  top: var(--tut-y, 50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.tut-marker::before {
  content: attr(data-n);
}

.tut-caption {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--ne-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tut-legend {
  margin: 0;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--ne-border);
  background: var(--ne-card-bg);
  list-style: none;
  counter-reset: tut-leg;
  flex: 1 1 auto;
}

.tut-legend.tut-legend--offset {
  counter-reset: tut-leg var(--tut-leg-offset, 0);
}

.tut-legend li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 36px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ne-text);
}

.tut-legend li:last-child {
  margin-bottom: 0;
}

.tut-legend li::before {
  counter-increment: tut-leg;
  content: counter(tut-leg);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.tut-legend strong {
  color: var(--ne-brand);
}

.tut-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--ne-text);
  line-height: 1.7;
  font-size: 14px;
}

.tut-steps li {
  margin-bottom: 10px;
}

.tut-steps li:last-child {
  margin-bottom: 0;
}

.tut-checklist {
  margin: 16px 0 0;
  padding: 14px 16px 14px 36px;
  border-radius: 10px;
  border: 1px solid var(--ne-border);
  background: var(--ne-subnav-bg);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ne-text);
}

.tut-checklist li {
  margin-bottom: 8px;
}

.tut-checklist li:last-child {
  margin-bottom: 0;
}

.tut-mistakes {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(231, 76, 60, 0.35);
  background: rgba(231, 76, 60, 0.08);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ne-text);
}

.tut-mistakes strong {
  color: #e74c3c;
}

.tut-mistakes ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.tut-tip {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(52, 152, 219, 0.35);
  background: rgba(52, 152, 219, 0.1);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ne-text);
}

.tut-figures-extras {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  grid-template-columns: 1fr;
}

.tut-figures-extras[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .tut-subnav button {
    font-size: 12px;
    padding: 7px 11px;
  }

  .tut-panel.card {
    padding: 18px 16px 22px;
  }

  .tut-marker {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    font-size: 11px;
    line-height: 18px;
  }
}
