

/* -- Tutorial Layout -- */

.tutorial-container {
  font-size: 0.9375rem; /* matches .panel */
  /* narrower than our default pages, for readability */
  max-width: 828px !important; /* 768px content + 30px+30px padding, border-box now includes padding in max-width */
  padding-left: 30px;
  padding-right: 30px;
}

.tutorial-container header {
  margin-top: 1rem;
  margin-bottom: 3rem;
  text-align: left;
}

.tutorial-container header .title {
  margin-bottom: 1.5rem;
}


/* -- Tutorials Index Page -- */

.tutorials-intro {
  color: var(--default-font-color);
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
}

.tutorials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tutorials-list li {
  border-bottom: 1px solid var(--border-color--panel);
  margin-bottom: 0;
  padding: 1rem 0;
}

.tutorials-list h2,
.tutorials-list h3 {
  text-align: left;
}

.tutorials-list li:last-child {
  border-bottom: none;
}


/* -- Tutorial Breadcrumb Nav -- */

.tutorial-nav {
  display: flex;
  align-items: center;
  gap: 7.5px;
  font-size: 0.8125rem; /* 13px */
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tutorial-nav a {
  color: var(--link-color);
  text-decoration: none;
}

.tutorial-nav .sep {
  color: var(--border-color--panel);
}

.tutorial-nav .current {
  color: var(--default-font-color);
  opacity: 0.75;
}


/* -- Tutorial Steps -- */

.tutorial-steps {
  counter-reset: step-counter;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.tutorial-step {
  counter-increment: step-counter;
  position: relative;
  padding: 0 0 60px 60px;
  border-left: 0.75px solid var(--border-color--panel);
  margin-left: 1rem;
}

@media (max-width: 768px) { /* iPad Portrait */
  .tutorial-step {
    padding: 0 0 30px 30px;
  }
}

.tutorial-step:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.tutorial-step::before {
  content: counter(step-counter);
  position: absolute;
  left: -1.125rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-family: var(--title-font-family);
  font-size: 0.8125rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tutorial-step h2 {
  font-family: var(--title-font-family);
  color: var(--title-font-color);
  font-size: 1.1rem;
  text-align: left;
  font-weight: bold;
  margin-bottom: 0.75rem;
  margin-top: 0.1rem;
}

.tutorial-step p {
  margin-bottom: 1rem;
  line-height: 1.7;
}


/* -- Tutorial Tip Box -- */

.tutorial-tip {
  background-color: var(--bg-color--panel);
  border-left: 3.75px solid var(--highlight-color--blue);
  padding: 12px 15px;
  border-radius: 3px;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1rem 0;
}

.tutorial-tip strong {
  color: var(--title-font-color);
}


/* -- Tutorial Footer Nav -- */

.tutorial-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color--panel);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tutorial-footer-nav a {
  color: var(--link-color);
  text-decoration: none;
}


.tutorial-footer-nav .back-link::before {
  content: "← ";
}
