/* Tables span the full content width across the whole site. */
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
}

/* Schema-driven preview form (illustrative — does not submit). Compact. */
.md-typeset .schema-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 22rem;
}
.md-typeset .schema-form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.md-typeset .schema-form .field-name {
  font-weight: 600;
  font-size: 0.7rem;
}
.md-typeset .schema-form .req {
  color: #d3302f;
}
.md-typeset .schema-form input {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--md-default-fg-color--light);
  border-radius: 5px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
}
.md-typeset .schema-form input:focus {
  outline: none;
  border-color: var(--md-accent-fg-color);
}
.md-typeset .schema-form small {
  font-size: 0.65rem;
  color: var(--md-default-fg-color--light);
}
.md-typeset .schema-form button {
  align-self: flex-start;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 5px;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  cursor: pointer;
}

/* Center Mermaid diagrams (left-aligned by default). */
.md-typeset .mermaid {
  text-align: center;
}
.md-typeset .mermaid svg {
  margin: 0 auto;
}
