.pt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 1rem;
  background: var(--md-code-bg-color);
}

.pt-hero h1 {
  margin-top: 0;
  margin-bottom: .6rem;
  color: var(--md-default-fg-color);
  font-weight: 700;
  line-height: 1.2;
}

.pt-hero img {
  width: 100%;
  height: auto;
}

.pt-actions > p {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.md-typeset a.pt-button {
  display: inline-block;
  padding: .55rem .9rem;
  border: 1px solid currentColor;
  border-radius: .45rem;
  font-weight: 600;
}

.md-typeset a.pt-button-primary {
  background: var(--md-default-fg-color);
  color: var(--md-default-bg-color);
  border-color: var(--md-default-fg-color);
}

.md-typeset a.pt-button:hover,
.md-typeset a.pt-button:focus-visible {
  text-decoration: underline;
  outline-offset: .2rem;
}

.pt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.pt-card {
  padding: 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: .6rem;
}

.pt-card h3 {
  margin: 0 0 .5rem;
  font-weight: 600;
}

.pt-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 40rem) {
  .pt-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
  }

  .pt-mascot {
    display: none;
  }
}
