/* ============================================================
   Contribute page — extends community.css
   Schema tables, code blocks, numbered/bulleted lists.
   ============================================================ */

.contribute-main { max-width: 880px; }

.contribute-section {
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line-1);
}
.contribute-section:first-of-type {
  margin-top: var(--s-7);
  padding-top: 0;
  border-top: none;
}

.contribute-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0 0 var(--s-4);
}
.contribute-section h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: var(--s-6) 0 var(--s-3);
}
.contribute-section p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 var(--s-3);
  max-width: 70ch;
}
.contribute-section p.muted { color: var(--fg-3); font-size: 13px; }

.contribute-section a { color: var(--brand-400); text-decoration: none; border-bottom: 1px dotted var(--line-3); }
.contribute-section a:hover { color: var(--brand-300); }

/* ─── Lists ───────────────────────────────────────────────── */
.numbered-list, .bullet-list {
  margin: 0 0 var(--s-4);
  padding-left: 24px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
}
.numbered-list li, .bullet-list li { margin-bottom: var(--s-3); }
.numbered-list li strong, .bullet-list li strong { color: var(--fg-1); }
.numbered-list li code, .bullet-list li code,
.contribute-section p code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--brand-300);
}

/* ─── Schema table (the field reference grids) ────────────── */
.schema-table {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--s-3) 0 var(--s-5);
  font-size: 13px;
}
.schema-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 3fr;
  gap: var(--s-3);
  padding: 10px var(--s-4);
  align-items: baseline;
  color: var(--fg-2);
  border-top: 1px solid var(--line-1);
}
.schema-row:first-child { border-top: none; }
.schema-row.schema-head {
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.schema-row code {
  font-family: var(--font-mono);
  color: var(--brand-300);
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}

@media (max-width: 660px) {
  .schema-row { grid-template-columns: 1fr; gap: 4px; }
  .schema-row.schema-head { display: none; }
  .schema-row > span:nth-child(1)::before { content: ""; }
  .schema-row > span:nth-child(2)::before { content: "Type — "; color: var(--fg-3); }
  .schema-row > span:nth-child(3)::before { content: "Required — "; color: var(--fg-3); }
}

/* ─── Code blocks ─────────────────────────────────────────── */
.code-block {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: var(--s-3) 0 var(--s-5);
}
.code-block code {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.code-block.code-inline-block {
  margin: var(--s-3) 0;
  font-size: 12px;
}

/* ─── Final CTA row ───────────────────────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-9) 0 0;
  padding-top: var(--s-7);
  border-top: 1px solid var(--line-1);
}
