.md-content__inner { max-width: 1200px; }

.md-typeset .grid > ul { gap: 1.5rem; }
@media (min-width: 48rem) {
  .md-typeset .grid > ul {
    grid-template-columns: repeat(2, minmax(28rem, 1fr));
  }
}
@media (min-width: 110rem) {
  .md-typeset .grid > ul {
    grid-template-columns: repeat(3, minmax(24rem, 1fr));
  }
}

.md-typeset .grid.cards > ul > li {
  background: var(--md-default-bg-color);
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow:
    0 8px 24px rgba(17, 24, 39, 0.06),
    0 1px 3px rgba(17, 24, 39, 0.04);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  display: block;
  height: 100%;
  padding: .85rem 1rem;
  cursor: pointer;
  position: relative;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ul > li:focus-within {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow:
    0 16px 28px rgba(17, 24, 39, 0.10),
    0 4px 10px rgba(17, 24, 39, 0.06);
}

.md-typeset .grid.cards > ul > li > *:first-child a {
  font-size: .94rem;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  color: #ff9800;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li > *:first-child a {
  color: #ffb74d;
}

.md-typeset .grid.cards > ul > li > *:first-child a:hover {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .06em;
}

.md-typeset .grid.cards > ul > li > *:first-child { margin-bottom: .15rem; }
.md-typeset .grid.cards hr {
  margin: .3rem 0 .5rem;
  height: 1px;
  background: currentColor;
  opacity: .12;
  border: 0;
}

.md-typeset .grid.cards > ul > li p {
  margin: 0;
  font-size: .90rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.22);
}
[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover,
[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:focus-within {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.34),
    0 4px 10px rgba(0, 0, 0, 0.26);
}

/* Make the whole card clickable using the first link */
.md-typeset .grid.cards > ul > li > *:first-child a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep any other interactive elements above the overlay */
.md-typeset .grid.cards > ul > li > *:not(:first-child) a,
.md-typeset .grid.cards > ul > li :is(ul a, ol a, button, [role="button"], [role="link"]) {
  position: relative;
  z-index: 2;
}

@supports selector(:has(*)) {
  .md-typeset .grid.cards > ul > li:has(> *:first-child a:focus-visible) {
    outline: 2px solid var(--md-accent-fg-color);
    outline-offset: 3px;
  }
}
