body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 2rem;
  background: #f5f5f7;
  color: #222;
  line-height: 1.6;
}

.api-doc {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

h1 {
  margin-top: 0;
  font-size: 1.9rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

h2 {
  margin-top: 1.8rem;
  font-size: 1.3rem;
  color: #333;
}

p {
  margin: 0.4rem 0 0.8rem;
}

code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem; 
}

pre {
  background: #1e1e1e;
  color: #f5f5f5;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

pre code {
  white-space: pre;
  background: #1e1e1e;
  display: block;
}

.meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.2rem;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3949ab;
  margin-right: 0.4rem;
}
/* Generic table styling for field tables */
.field-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.field-table th,
.field-table td {
  border: 1px solid #d0d0d5;
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.field-table thead th {
  background-color: #f3f4f8;
  font-weight: 600;
}

.field-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.field-table tbody tr:hover {
  background-color: #f0f4ff;
}

  table.field-table {
    table-layout: fixed;
    width: 100%;
  }

  table.field-table th,
  table.field-table td {
    white-space: normal;        /* allow wrapping */
    word-wrap: break-word;      /* legacy support */
    overflow-wrap: break-word;  /* modern property */
  }

/* Generic note box */
.note {
  border-left: 4px solid #2563eb; /* default blue */
  background-color: #f1f5f9;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Optional: constrain width in wide layouts */
.api-doc .note {
  max-width: 52rem;
}

/* Label (Note / Tip / Warning) */
.note-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin-right: 0.5rem;
  padding-top: 0.1rem;
  color: #0f172a;
}

/* Body text */
.note-body {
  color: #0f172a;
}

/* Inline code inside notes */
.note code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.85em;
  background-color: #e5e7eb;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
}

/* Variants */
.note-info {
  border-left-color: #2563eb;
  background-color: #eff6ff;
}

.note-tip {
  border-left-color: #059669;
  background-color: #ecfdf5;
}

.note-warning {
  border-left-color: #b56204;
  background-color: #f6dbc6;
  
}

.note-error {
  border-left-color: #dc2626;
  background-color: #fef2f2;
}