.tutorials-page {
  background: #f2f5f9;
  color: #344459;
}

.guide-shell {
  width: min(calc(100% - 40px), 1060px);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.breadcrumbs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  margin-bottom: 20px;
  color: #5b6d85;
  font-size: 0.83rem;
}

.breadcrumbs a,
.guide-toc a,
.guide-related a {
  color: #125ab4;
}

.guide-heading {
  margin-bottom: 22px;
}

.guide-heading h1 {
  max-width: 25ch;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.12;
}

.guide-summary {
  margin-top: 12px;
  max-width: 68ch;
  font-size: 1.04rem;
  color: #43566f;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #5b6d85;
  font-size: 0.82rem;
}

.guide-meta span:first-child {
  border-radius: 6px;
  padding: 3px 9px;
  background: #e0eaf7;
  color: #244366;
  font-weight: 650;
}

.tutorial-shot {
  min-width: 0;
}

.tutorial-shot .image-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #cbd7e6;
  border-radius: 11px;
  overflow: hidden;
  background: #e7edf5;
  cursor: zoom-in;
}

.tutorial-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.tutorial-shot figcaption {
  margin-top: 7px;
  color: #50617a;
  font-size: 0.78rem;
}

.tutorial-shot figcaption a {
  color: #125ab4;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(165px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 4vw, 48px);
  margin-top: 28px;
}

.guide-toc {
  position: sticky;
  top: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: white;
  padding: 16px;
}

.guide-toc h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

.guide-toc ol {
  margin: 10px 0 0;
  padding-left: 21px;
  font-size: 0.88rem;
}

.guide-toc li + li {
  margin-top: 7px;
}

.guide-prose {
  min-width: 0;
}

.guide-section {
  margin-top: 31px;
}

.guide-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 13px;
}

.guide-section h3 {
  font-size: 1.08rem;
}

.guide-section > h3 {
  margin-top: 17px;
  margin-bottom: 6px;
}

.guide-prose p {
  font-size: 1rem;
  line-height: 1.6;
}

.guide-steps {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  min-width: 0;
  border: 1px solid #d9e3ee;
  border-radius: 13px;
  background: white;
  padding: 14px;
}

.guide-step h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}

.guide-step h3 span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  min-height: 31px;
  border-radius: 7px;
  background: #e5f0ff;
  color: #125ab4;
  font-size: 0.93rem;
}

.guide-step > p {
  margin-top: 11px;
}

.guide-watch {
  padding: 18px;
  border: 1px solid #d9e3ee;
  border-radius: 13px;
  background: white;
}

.guide-watch .button {
  margin-top: 13px;
}

.guide-related ul {
  margin: 0;
  padding-left: 21px;
}

.guide-related li + li {
  margin-top: 5px;
}

.tutorial-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 16px;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e3ee;
  border-radius: 13px;
  background: white;
}

.tutorial-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #e5edf7;
  border-bottom: 1px solid #d9e3ee;
}

.tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.tutorial-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 11px;
  padding: 16px;
}

.tutorial-card h2 {
  font-size: 1.14rem;
  letter-spacing: -0.025em;
}

.tutorial-card h2 a {
  color: #142744;
}

.tutorial-card p {
  font-size: 0.9rem;
}

.tutorial-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  color: #125ab4;
  font-size: 0.88rem;
  font-weight: 650;
}

.tutorial-card-actions a {
  color: #125ab4;
}

@media (max-width: 740px) {
  .guide-shell {
    width: min(calc(100% - 28px), 620px);
    padding-top: 17px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 17px;
  }

  .guide-toc {
    position: static;
    padding: 12px 14px;
  }

  .guide-toc li + li {
    margin-top: 4px;
  }

  .breadcrumbs,
  .guide-heading {
    margin-bottom: 14px;
  }

  .guide-heading h1 {
    font-size: clamp(1.5rem, 5.4vw, 2rem);
  }

  .guide-summary,
  .guide-prose p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .guide-section {
    margin-top: 24px;
  }

  .guide-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 460px) {
  .tutorials-page .brand {
    font-size: 19px;
  }

  .guide-step {
    padding: 10px;
  }
}
