.lab-page { padding-bottom: 1px; }
.lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(12px, 3vw, 34px);
  margin-block: 22px;
  padding: clamp(20px, 4.5vw, 52px);
  background: #e9e1ff;
  border-color: #d8c8f7;
}
.lab-audience { color: #51268e; font-size: .9rem; font-weight: 700; }
.lab-hero h1 {
  margin-block: 5px 10px;
  font-size: clamp(3rem, 7.8vw, 6rem);
  line-height: .98;
  letter-spacing: -.085em;
}
.lab-hero h1 span { color: var(--purple); }
.lab-intro { max-width: 36ch; font-size: clamp(1rem, 2vw, 1.25rem); }
.lab-hero-art { display: block; width: 100%; height: auto; }
.lab-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lab-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #bba6e6;
  border-radius: 9px;
  background: #faf7ff;
  color: #51268e;
  font-size: .9rem;
  font-weight: 700;
}
.lab-jump a:hover { background: #fff; }
.lab-section h2, .lab-book h2, .lab-resources h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.35rem);
}
.lab-section h2 { margin-bottom: 14px; }
.lab-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lab-topic { display: flex; flex-direction: column; gap: 10px; }
.lab-topic h3 { font-size: 1.3rem; line-height: 1.18; letter-spacing: -.045em; }
.lab-topic > p { color: #473950; }
.lab-topic .lab-example {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f1ebff;
  color: #402464;
  font-size: .9rem;
}
.lab-topic:nth-child(3n + 2) .lab-example { background: #f1f7ce; color: #333c17; }
.lab-topic:nth-child(3n) .lab-example { background: #fce8f4; color: #61254b; }
.lab-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 205px);
  align-items: center;
  gap: clamp(12px, 4vw, 42px);
  margin-top: 22px;
  background: #f1ebff;
  border-color: #dacaf4;
}
.lab-book-copy > p { max-width: 55ch; margin-top: 9px; }
.lab-book .planner-actions { margin-top: 14px; }
.lab-book-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  border: 1px solid #d1bdf1;
  border-radius: 8px;
  box-shadow: 3px 4px 0 #dad0ea;
}
.lab-resources { margin-top: 22px; }
.lab-resources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 12px 0 0;
  padding-inline-start: 20px;
}
.lab-resources a { color: #51268e; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) {
  .lab-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lab-book { grid-template-columns: minmax(0, 1fr) minmax(0, 115px); }
  .lab-resources ul { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
  .lab-hero { grid-template-columns: 1fr; }
  .lab-hero-art { width: min(100%, 265px); justify-self: center; }
  .lab-topics, .lab-book { grid-template-columns: 1fr; }
  .lab-book-cover { grid-row: 1; width: min(44%, 135px); margin-inline: 0; }
}
