:root {
  --md-primary-fg-color: #4F46E5;
  --md-primary-fg-color--light: #6366F1;
  --md-primary-fg-color--dark: #4338CA;
  --md-accent-fg-color: #4F46E5;
}

.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-typeset code {
  font-size: 0.85em;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-default-bg-color);
  font-weight: 600;
}

/* Redoc container */
.redoc-container {
  margin: 0 -1.5rem;
  min-height: calc(100vh - 4rem);
}

/* Product screenshots — subtle frame so dark UI shots sit cleanly on the docs page. */
.md-typeset .screenshot,
.md-typeset figure.screenshot img {
  border-radius: 8px;
  border: 1px solid var(--md-default-fg-color--lightest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  max-width: 100%;
}
.md-typeset figure.screenshot {
  margin: 1.2em 0;
}
.md-typeset figure.screenshot figcaption {
  font-size: 0.78rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.5em;
}

/* Audience tags on a page header ("Created for: …"). */
.md-typeset .audience {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.md-typeset .audience > span {
  background: var(--md-primary-fg-color--light);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

/* PDF export only: WeasyPrint cannot lay out CSS grid (crashes on the function-valued
   grid-template used by Material's grid cards). Stack them as blocks in print; the HTML
   site is unaffected. */
@media print {
  .md-typeset .grid,
  .md-typeset .grid.cards {
    display: block !important;
  }
  .md-typeset .grid.cards > ul > li,
  .md-typeset .grid > * {
    margin-bottom: 0.8rem;
  }
}
