/* Shared styles for tutorial pages (html/tutorials/_<slug>.html).
   Deliberately scoped under .tutorial: docs.css restyles bare p/h2/h3 globally and
   tutorials must not inherit that. */

.tutorial {
  line-height: 1.6;
  max-width: 60rem;
}

.tutorial .lead {
  font-size: 1.15rem;
}

.tutorial section + section {
  margin-top: 2rem;
}

.tutorial h2 {
  margin-bottom: 0.5rem;
}

.tutorial h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.tutorial ol,
.tutorial ul {
  padding-left: 1.25rem;
}

.tutorial li {
  margin-bottom: 0.4rem;
}

.tutorial p {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

/* Same meaning as on the documentation page: a UI path, and an inline warning. */
.tutorial .menu {
  color: #ac4142;
  font-weight: bold;
}

.tutorial .note {
  color: orangered;
  font-weight: bold;
}

.tutorial code {
  background: #f4f1f8;
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

.tutorial figure {
  margin: 1rem 0;
}

.tutorial figure img,
.tutorial > section img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e6e1ef;
  border-radius: 6px;
}

.tutorial figcaption {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.35rem;
}

.tutorial table {
  border-collapse: collapse;
  width: 100%;
}

.tutorial th,
.tutorial td {
  border: 1px solid #e6e1ef;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.tutorial th {
  background: #faf8fd;
}

@media screen and (max-width: 479px) {
  .tutorial table,
  .tutorial thead,
  .tutorial tbody,
  .tutorial tr,
  .tutorial th,
  .tutorial td {
    display: block;
    width: auto;
  }

  .tutorial thead {
    display: none;
  }

  .tutorial tr {
    border: 1px solid #e6e1ef;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
  }

  .tutorial td {
    border: none;
  }
}
